aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitattributes4
-rw-r--r--.gitignore159
-rw-r--r--.qmake.conf8
-rw-r--r--.tag1
-rw-r--r--LICENSE.FDL450
-rw-r--r--LICENSE.GPL2339
-rw-r--r--LICENSE.GPL3674
-rw-r--r--LICENSE.GPLv3686
-rw-r--r--LICENSE.LGPL3165
-rw-r--r--LICENSE.LGPLv3174
-rw-r--r--README.md59
-rw-r--r--configure.json6
-rw-r--r--dependencies.yaml7
-rw-r--r--dist/changes-5.10.0166
-rw-r--r--dist/changes-5.10.149
-rw-r--r--dist/changes-5.11.0161
-rw-r--r--dist/changes-5.11.125
-rw-r--r--dist/changes-5.11.232
-rw-r--r--dist/changes-5.11.320
-rw-r--r--dist/changes-5.12.0171
-rw-r--r--dist/changes-5.12.120
-rw-r--r--dist/changes-5.12.260
-rw-r--r--dist/changes-5.12.346
-rw-r--r--dist/changes-5.12.420
-rw-r--r--dist/changes-5.12.528
-rw-r--r--dist/changes-5.13.033
-rw-r--r--dist/changes-5.13.131
-rw-r--r--dist/changes-5.7.1196
-rw-r--r--dist/changes-5.8.0208
-rw-r--r--dist/changes-5.9.0208
-rw-r--r--dist/changes-5.9.175
-rw-r--r--dist/changes-5.9.279
-rw-r--r--dist/changes-5.9.352
-rw-r--r--dist/changes-5.9.463
-rw-r--r--dist/changes-5.9.556
-rw-r--r--dist/changes-5.9.639
-rw-r--r--examples/examples.pro3
-rw-r--r--examples/quickcontrols2/chattutorial/chapter1-settingup/chapter1-settingup.pro11
-rw-r--r--examples/quickcontrols2/chattutorial/chapter1-settingup/main.cpp65
-rw-r--r--examples/quickcontrols2/chattutorial/chapter1-settingup/main.qml70
-rw-r--r--examples/quickcontrols2/chattutorial/chapter1-settingup/qml.qrc6
-rw-r--r--examples/quickcontrols2/chattutorial/chapter2-lists/chapter2-lists.pro12
-rw-r--r--examples/quickcontrols2/chattutorial/chapter2-lists/main.cpp65
-rw-r--r--examples/quickcontrols2/chattutorial/chapter2-lists/main.qml92
-rw-r--r--examples/quickcontrols2/chattutorial/chapter2-lists/qml.qrc6
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml88
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/ConversationPage.qml142
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/chapter3-navigation.pro12
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/main.cpp65
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/main.qml66
-rw-r--r--examples/quickcontrols2/chattutorial/chapter3-navigation/qml.qrc7
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml90
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml165
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/chapter4-models.pro18
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/main.cpp100
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/main.qml66
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/qml.qrc7
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.cpp90
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h62
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.cpp154
-rw-r--r--examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h79
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/+material/ChatToolBar.qml56
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/ChatToolBar.qml54
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml90
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml164
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/chapter5-styling.pro18
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/main.cpp100
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/main.qml66
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/qml.qrc10
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/qtquickcontrols2.conf7
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.cpp90
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h62
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.cpp154
-rw-r--r--examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h79
-rw-r--r--examples/quickcontrols2/chattutorial/chattutorial.pro8
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter1.pngbin5877 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter2-listview-header.gifbin176936 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter2.pngbin22195 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3-listview-header.gifbin262432 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3-view-margins.pngbin3895 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3.gifbin169856 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4-long-message.pngbin16495 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4-message-timestamp.pngbin10762 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4.gifbin102536 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material-dark.pngbin21774 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material-test.pngbin18308 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material.pngbin19284 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-universal-dark.pngbin19534 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-universal.pngbin18259 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material-dark.pngbin16739 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material-test.pngbin2970 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material.pngbin3524 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-universal-dark.pngbin9875 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-universal.pngbin11716 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/doc/src/qtquickcontrols2-chattutorial.qdoc896
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Albert_Einstein.pngbin3638 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.pngbin10178 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.pngbin18568 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.pngbin29420 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.pngbin4053 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.pngbin12231 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.pngbin23040 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.pngbin38378 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Hans_Gude.pngbin3610 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.pngbin10977 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.pngbin21196 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.pngbin32962 -> 0 bytes
-rw-r--r--examples/quickcontrols2/chattutorial/shared/shared.qrc16
-rw-r--r--examples/quickcontrols2/contactlist/ContactDelegate.ui.qml127
-rw-r--r--examples/quickcontrols2/contactlist/ContactDialog.qml92
-rw-r--r--examples/quickcontrols2/contactlist/ContactForm.ui.qml119
-rw-r--r--examples/quickcontrols2/contactlist/ContactView.ui.qml83
-rw-r--r--examples/quickcontrols2/contactlist/SectionDelegate.ui.qml64
-rw-r--r--examples/quickcontrols2/contactlist/contactlist.pro28
-rw-r--r--examples/quickcontrols2/contactlist/contactlist.qml117
-rw-r--r--examples/quickcontrols2/contactlist/contactmodel.cpp130
-rw-r--r--examples/quickcontrols2/contactlist/contactmodel.h91
-rw-r--r--examples/quickcontrols2/contactlist/designer/Backend/ContactModel.qml88
-rw-r--r--examples/quickcontrols2/contactlist/designer/Backend/qmldir2
-rw-r--r--examples/quickcontrols2/contactlist/doc/images/qtquickcontrols2-contactlist.pngbin25824 -> 0 bytes
-rw-r--r--examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc73
-rw-r--r--examples/quickcontrols2/contactlist/main.cpp66
-rw-r--r--examples/quickcontrols2/flatstyle/Flat/Button.qml122
-rw-r--r--examples/quickcontrols2/flatstyle/Flat/CheckBox.qml146
-rw-r--r--examples/quickcontrols2/flatstyle/Flat/Switch.qml140
-rw-r--r--examples/quickcontrols2/flatstyle/MainForm.ui.qml146
-rw-r--r--examples/quickcontrols2/flatstyle/doc/images/qtquickcontrols2-flatstyle-creator.pngbin22469 -> 0 bytes
-rw-r--r--examples/quickcontrols2/flatstyle/doc/images/qtquickcontrols2-flatstyle.pngbin12186 -> 0 bytes
-rw-r--r--examples/quickcontrols2/flatstyle/doc/src/qtquickcontrols2-flatstyle.qdoc95
-rw-r--r--examples/quickcontrols2/flatstyle/flatstyle.pro22
-rw-r--r--examples/quickcontrols2/flatstyle/flatstyle.qml80
-rw-r--r--examples/quickcontrols2/flatstyle/imports/Theme/Theme.qml74
-rw-r--r--examples/quickcontrols2/flatstyle/imports/Theme/qmldir2
-rw-r--r--examples/quickcontrols2/flatstyle/main.cpp64
-rw-r--r--examples/quickcontrols2/flatstyle/qtquickcontrols2.conf2
-rw-r--r--examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-drawer.pngbin15785 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-menu.pngbin16618 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-welcome.pngbin20138 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/doc/src/qtquickcontrols2-gallery.qdoc63
-rw-r--r--examples/quickcontrols2/gallery/gallery.cpp82
-rw-r--r--examples/quickcontrols2/gallery/gallery.pro65
-rw-r--r--examples/quickcontrols2/gallery/gallery.qml323
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20/back.pngbin220 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20/drawer.pngbin123 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20/menu.pngbin123 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@2/back.pngbin289 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@2/drawer.pngbin126 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@2/menu.pngbin158 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@3/back.pngbin351 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@3/drawer.pngbin130 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@3/menu.pngbin193 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@4/back.pngbin452 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@4/drawer.pngbin131 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/20x20@4/menu.pngbin223 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/icons/gallery/index.theme24
-rw-r--r--examples/quickcontrols2/gallery/images/arrow.pngbin319 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/arrow@2x.pngbin476 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/arrow@3x.pngbin611 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/arrow@4x.pngbin758 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/arrows.pngbin458 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/arrows@2x.pngbin699 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/arrows@3x.pngbin942 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/arrows@4x.pngbin1211 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/qt-logo.pngbin1301 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/qt-logo@2x.pngbin2611 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/qt-logo@3x.pngbin4155 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/images/qt-logo@4x.pngbin5916 -> 0 bytes
-rw-r--r--examples/quickcontrols2/gallery/pages/BusyIndicatorPage.qml73
-rw-r--r--examples/quickcontrols2/gallery/pages/ButtonPage.qml91
-rw-r--r--examples/quickcontrols2/gallery/pages/CheckBoxPage.qml87
-rw-r--r--examples/quickcontrols2/gallery/pages/ComboBoxPage.qml97
-rw-r--r--examples/quickcontrols2/gallery/pages/DelayButtonPage.qml74
-rw-r--r--examples/quickcontrols2/gallery/pages/DelegatePage.qml218
-rw-r--r--examples/quickcontrols2/gallery/pages/DialPage.qml74
-rw-r--r--examples/quickcontrols2/gallery/pages/DialogPage.qml226
-rw-r--r--examples/quickcontrols2/gallery/pages/FramePage.qml94
-rw-r--r--examples/quickcontrols2/gallery/pages/GroupBoxPage.qml95
-rw-r--r--examples/quickcontrols2/gallery/pages/PageIndicatorPage.qml74
-rw-r--r--examples/quickcontrols2/gallery/pages/ProgressBarPage.qml80
-rw-r--r--examples/quickcontrols2/gallery/pages/RadioButtonPage.qml86
-rw-r--r--examples/quickcontrols2/gallery/pages/RangeSliderPage.qml82
-rw-r--r--examples/quickcontrols2/gallery/pages/ScrollBarPage.qml87
-rw-r--r--examples/quickcontrols2/gallery/pages/ScrollIndicatorPage.qml87
-rw-r--r--examples/quickcontrols2/gallery/pages/ScrollablePage.qml71
-rw-r--r--examples/quickcontrols2/gallery/pages/SliderPage.qml80
-rw-r--r--examples/quickcontrols2/gallery/pages/SpinBoxPage.qml76
-rw-r--r--examples/quickcontrols2/gallery/pages/StackViewPage.qml96
-rw-r--r--examples/quickcontrols2/gallery/pages/SwipeViewPage.qml96
-rw-r--r--examples/quickcontrols2/gallery/pages/SwitchPage.qml86
-rw-r--r--examples/quickcontrols2/gallery/pages/TabBarPage.qml104
-rw-r--r--examples/quickcontrols2/gallery/pages/TextAreaPage.qml76
-rw-r--r--examples/quickcontrols2/gallery/pages/TextFieldPage.qml74
-rw-r--r--examples/quickcontrols2/gallery/pages/ToolTipPage.qml77
-rw-r--r--examples/quickcontrols2/gallery/pages/TumblerPage.qml73
-rw-r--r--examples/quickcontrols2/gallery/qtquickcontrols2.conf8
-rw-r--r--examples/quickcontrols2/imagine/automotive/automotive.cpp75
-rw-r--r--examples/quickcontrols2/imagine/automotive/automotive.pro15
-rw-r--r--examples/quickcontrols2/imagine/automotive/doc/images/qtquickcontrols2-automotive.pngbin356738 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/doc/src/qtquickcontrols2-automotive.qdoc42
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/air-con.pngbin1394 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/command.pngbin1350 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/message.pngbin479 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/music.pngbin622 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/seats.pngbin1017 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/settings.pngbin1406 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/statistics.pngbin324 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/windows.pngbin564 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/air-con.pngbin2337 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/command.pngbin2461 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/message.pngbin639 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/music.pngbin1106 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/navigation.pngbin1604 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/seats.pngbin1793 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/settings.pngbin2413 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/statistics.pngbin394 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/windows.pngbin999 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/icons.svg526
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/automotive/index.theme14
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/car.pngbin14952 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/car@2x.pngbin37391 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/icons.qrc29
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/warning.pngbin1212 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/warning@2x.pngbin2118 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/weather.pngbin1092 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/icons/weather@2x.pngbin1798 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background.pngbin91 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background@2x.pngbin98 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered.9.pngbin368 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered@2x.9.pngbin669 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked.9.pngbin291 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked@2x.9.pngbin506 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered.9.pngbin315 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered@2x.9.pngbin581 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed.9.pngbin289 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed@2x.9.pngbin501 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background.9.pngbin291 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/button-background@2x.9.pngbin515 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered.pngbin3383 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered@2x.pngbin7128 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed.pngbin3084 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed@2x.pngbin6196 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background.pngbin2746 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background@2x.pngbin6094 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed.pngbin136 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed@2x.pngbin172 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle.pngbin164 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle@2x.pngbin177 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background.9.pngbin257 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background@2x.9.pngbin383 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/imagine-assets.qrc80
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked.9.pngbin141 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked@2x.9.pngbin180 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered.9.pngbin200 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered@2x.9.pngbin243 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed.9.pngbin139 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed@2x.9.pngbin178 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background.9.pngbin134 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background@2x.9.pngbin172 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered.pngbin623 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered@2x.pngbin1062 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed.pngbin271 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed@2x.pngbin429 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked.pngbin291 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked@2x.pngbin452 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered.pngbin444 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered@2x.pngbin842 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed.pngbin249 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed@2x.pngbin420 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator.pngbin231 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator@2x.pngbin384 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle.pngbin99 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle@2x.pngbin100 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal.9.pngbin177 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal@2x.9.pngbin274 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered.pngbin217 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered@2x.pngbin385 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed.pngbin155 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed@2x.pngbin258 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle.pngbin166 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle@2x.pngbin312 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed.9.pngbin168 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed@2x.9.pngbin262 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal.9.pngbin175 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal@2x.9.pngbin269 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background.9.pngbin112 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background@2x.9.pngbin118 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered.pngbin253 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered@2x.pngbin441 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked.pngbin145 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked@2x.pngbin195 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered.pngbin253 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered@2x.pngbin452 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed.pngbin145 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed@2x.pngbin195 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle.pngbin217 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle@2x.pngbin354 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed.pngbin129 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed@2x.pngbin180 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator.pngbin129 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator@2x.pngbin180 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical.9.pngbin145 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical@2x.9.pngbin213 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/automotive/qml/CustomGlow.qml57
-rw-r--r--examples/quickcontrols2/imagine/automotive/qml/FeatureButton.qml70
-rw-r--r--examples/quickcontrols2/imagine/automotive/qml/GlowingLabel.qml90
-rw-r--r--examples/quickcontrols2/imagine/automotive/qml/automotive.qml642
-rw-r--r--examples/quickcontrols2/imagine/automotive/qml/qml.qrc8
-rw-r--r--examples/quickcontrols2/imagine/automotive/qtquickcontrols2.conf10
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/doc/images/qtquickcontrols2-musicplayer.pngbin1457884 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/doc/src/qtquickcontrols2-musicplayer.qdoc59
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/icons.qrc40
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/bluetooth.pngbin556 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cart.pngbin425 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cloud.pngbin525 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/favorite.pngbin379 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/filter.pngbin441 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/folder.pngbin279 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/message.pngbin466 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/music.pngbin454 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/next.pngbin201 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/pause.pngbin141 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/power.pngbin710 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/previous.pngbin203 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/repeat.pngbin328 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/save.pngbin419 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/settings.pngbin499 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/shuffle.pngbin366 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/stop.pngbin157 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/bluetooth.pngbin1202 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cart.pngbin782 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cloud.pngbin1003 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/favorite.pngbin744 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/filter.pngbin872 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/folder.pngbin437 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/grid.pngbin177 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/message.pngbin850 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/music.pngbin842 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/next.pngbin354 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/pause.pngbin163 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/power.pngbin1329 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/previous.pngbin436 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/repeat.pngbin634 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/save.pngbin496 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/settings.pngbin960 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/shuffle.pngbin724 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/stop.pngbin242 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/icons.svg648
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/index.theme14
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/images/album-cover.jpgbin917863 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/applicationwindow-background.pngbin82 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered.9.pngbin1446 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered@2x.9.pngbin4150 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked.9.pngbin1353 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked@2x.9.pngbin4049 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled.9.pngbin543 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled@2x.9.pngbin1509 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered.9.pngbin1444 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered@2x.9.pngbin3855 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed.9.pngbin1437 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed@2x.9.pngbin4048 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background.9.pngbin1368 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background@2x.9.pngbin3813 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered.9.pngbin4220 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered@2x.9.pngbin15135 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open.9.pngbin4197 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open@2x.9.pngbin14766 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed.9.pngbin4254 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed@2x.9.pngbin14995 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background.9.pngbin4283 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background@2x.9.pngbin14357 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered.pngbin390 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered@2x.pngbin961 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open.pngbin415 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open@2x.pngbin929 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed.pngbin373 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed@2x.pngbin955 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator.pngbin381 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator@2x.pngbin970 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup.9.pngbin2437 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup@2x.9.pngbin5349 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered.pngbin11658 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered@2x.pngbin36836 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed.pngbin13807 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed@2x.pngbin46319 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background.pngbin12858 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background@2x.pngbin43910 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed.pngbin528 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed@2x.pngbin1091 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle.pngbin478 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle@2x.pngbin852 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background.9.pngbin353 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background@2x.9.pngbin451 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/imagine-assets.qrc113
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked.9.pngbin1552 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked@2x.9.pngbin3489 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled.9.pngbin241 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled@2x.9.pngbin254 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered.9.pngbin1490 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered@2x.9.pngbin3316 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed.9.pngbin1572 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed@2x.9.pngbin3534 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background.9.pngbin241 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background@2x.9.pngbin254 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered.pngbin2109 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered@2x.pngbin5930 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked.pngbin1883 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked@2x.pngbin5271 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled.pngbin1073 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled@2x.pngbin3011 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered.pngbin1901 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered@2x.pngbin5306 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed.pngbin1886 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed@2x.pngbin5263 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background.pngbin1802 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background@2x.pngbin5131 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered.pngbin199 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered@2x.pngbin199 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed.pngbin199 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed@2x.pngbin199 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive.pngbin199 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive@2x.pngbin199 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled.9.pngbin340 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled@2x.9.pngbin539 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal.9.pngbin353 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal@2x.9.pngbin550 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled.9.pngbin355 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled@2x.9.pngbin474 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical.9.pngbin344 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical@2x.9.pngbin501 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled.pngbin639 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled@2x.pngbin1069 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered.pngbin1342 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered@2x.pngbin3642 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle.pngbin1333 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle@2x.pngbin3593 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal.9.pngbin353 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal@2x.9.pngbin550 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled.9.pngbin344 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled@2x.9.pngbin501 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical.9.pngbin344 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical@2x.9.pngbin501 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled.9.pngbin377 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled@2x.9.pngbin495 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background.9.pngbin379 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background@2x.9.pngbin535 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background.9.pngbin405 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background@2x.9.pngbin584 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered.9.pngbin1628 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered@2x.9.pngbin3508 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked.9.pngbin1533 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked@2x.9.pngbin3516 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered.9.pngbin1509 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered@2x.9.pngbin3475 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed.9.pngbin1599 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed@2x.9.pngbin3509 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background.9.pngbin1469 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background@2x.9.pngbin3314 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background.9.pngbin2576 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background@2x.9.pngbin4783 -> 0 bytes
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/musicplayer.cpp73
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/musicplayer.pro16
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/musicplayer.qml466
-rw-r--r--examples/quickcontrols2/imagine/musicplayer/qtquickcontrols2.conf10
-rw-r--r--examples/quickcontrols2/quickcontrols2.pro13
-rw-r--r--examples/quickcontrols2/sidepanel/doc/images/qtquickcontrols2-sidepanel-landscape.pngbin58907 -> 0 bytes
-rw-r--r--examples/quickcontrols2/sidepanel/doc/images/qtquickcontrols2-sidepanel-portrait.pngbin32492 -> 0 bytes
-rw-r--r--examples/quickcontrols2/sidepanel/doc/src/qtquickcontrols2-sidepanel.qdoc83
-rw-r--r--examples/quickcontrols2/sidepanel/images/qt-logo.pngbin2695 -> 0 bytes
-rw-r--r--examples/quickcontrols2/sidepanel/images/qt-logo@2x.pngbin5521 -> 0 bytes
-rw-r--r--examples/quickcontrols2/sidepanel/images/qt-logo@3x.pngbin8166 -> 0 bytes
-rw-r--r--examples/quickcontrols2/sidepanel/images/qt-logo@4x.pngbin11600 -> 0 bytes
-rw-r--r--examples/quickcontrols2/sidepanel/sidepanel.cpp65
-rw-r--r--examples/quickcontrols2/sidepanel/sidepanel.pro18
-rw-r--r--examples/quickcontrols2/sidepanel/sidepanel.qml180
-rw-r--r--examples/quickcontrols2/swipetoremove/doc/images/qtquickcontrols2-swipetoremove.pngbin23387 -> 0 bytes
-rw-r--r--examples/quickcontrols2/swipetoremove/doc/src/qtquickcontrols2-swipetoremove.qdoc64
-rw-r--r--examples/quickcontrols2/swipetoremove/fonts/LICENSE.txt12
-rw-r--r--examples/quickcontrols2/swipetoremove/fonts/fontello.ttfbin5164 -> 0 bytes
-rw-r--r--examples/quickcontrols2/swipetoremove/swipetoremove.cpp68
-rw-r--r--examples/quickcontrols2/swipetoremove/swipetoremove.pro13
-rw-r--r--examples/quickcontrols2/swipetoremove/swipetoremove.qml177
-rw-r--r--examples/quickcontrols2/texteditor/+touch/texteditor.html19
-rw-r--r--examples/quickcontrols2/texteditor/doc/images/qtquickcontrols2-texteditor-desktop.jpgbin76304 -> 0 bytes
-rw-r--r--examples/quickcontrols2/texteditor/doc/images/qtquickcontrols2-texteditor-touch.jpgbin31203 -> 0 bytes
-rw-r--r--examples/quickcontrols2/texteditor/doc/src/qtquickcontrols2-texteditor.qdoc124
-rw-r--r--examples/quickcontrols2/texteditor/documenthandler.cpp387
-rw-r--r--examples/quickcontrols2/texteditor/documenthandler.h177
-rw-r--r--examples/quickcontrols2/texteditor/fonts/fontello.ttfbin10152 -> 0 bytes
-rw-r--r--examples/quickcontrols2/texteditor/images/qt-logo.pngbin5681 -> 0 bytes
-rw-r--r--examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml270
-rw-r--r--examples/quickcontrols2/texteditor/qml/texteditor.qml467
-rw-r--r--examples/quickcontrols2/texteditor/qtquickcontrols2.conf11
-rw-r--r--examples/quickcontrols2/texteditor/texteditor.cpp99
-rw-r--r--examples/quickcontrols2/texteditor/texteditor.html44
-rw-r--r--examples/quickcontrols2/texteditor/texteditor.pro22
-rw-r--r--examples/quickcontrols2/texteditor/texteditor.qrc11
-rw-r--r--examples/quickcontrols2/wearable/doc/images/qtquickcontrols2-wearable.pngbin115578 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc191
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.pngbin689 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.pngbin541 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.pngbin581 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.pngbin683 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/settings.pngbin703 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/weather.pngbin548 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.pngbin601 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.pngbin1208 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.pngbin958 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.pngbin1063 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.pngbin1316 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.pngbin1233 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.pngbin1061 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.pngbin1101 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/icons/wearable/index.theme14
-rw-r--r--examples/quickcontrols2/wearable/images/back.pngbin1691 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/back@2x.pngbin1105 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/back@3x.pngbin1679 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/back@4x.pngbin2184 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/background-dark.pngbin44625 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/background-light.pngbin400411 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/home.pngbin1780 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/home@2x.pngbin1142 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/home@3x.pngbin1710 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/images/home@4x.pngbin2277 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Alarms/AlarmsPage.qml114
-rw-r--r--examples/quickcontrols2/wearable/qml/DemoMode.qml258
-rw-r--r--examples/quickcontrols2/wearable/qml/DemoModeIndicator.qml94
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml131
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/fitness.js65
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark.pngbin1693 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark@2x.pngbin2694 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light.pngbin16047 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light@2x.pngbin2795 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark.pngbin1631 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark@2x.pngbin2483 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light.pngbin16062 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light@2x.pngbin2668 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/LauncherPage.qml189
-rw-r--r--examples/quickcontrols2/wearable/qml/NaviButton.qml83
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/NavigationPage.qml120
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/RouteElement.qml95
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/end.pngbin16408 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/end@2x.pngbin2833 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark.pngbin1940 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark@2x.pngbin1583 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light.pngbin16111 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light@2x.pngbin2148 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/marker.pngbin16408 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark.pngbin704 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark@2x.pngbin1068 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light.pngbin581 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light@2x.pngbin1063 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark.pngbin1947 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark@2x.pngbin1532 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light.pngbin16077 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light@2x.pngbin1613 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/start.pngbin16411 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/start@2x.pngbin2803 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark.pngbin1330 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark@2x.pngbin911 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/straight-light.pngbin15727 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/straight-light@2x.pngbin790 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/uturn.pngbin3254 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/images/uturn@2x.pngbin6946 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/navigation.js131
-rw-r--r--examples/quickcontrols2/wearable/qml/Navigation/walk_route.json1
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/NotificationsPage.qml112
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark.pngbin2130 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark@2x.pngbin1928 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light.pngbin16396 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light@2x.pngbin2183 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark.pngbin1909 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark@2x.pngbin1739 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light.pngbin16198 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light@2x.pngbin2011 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark.pngbin2273 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark@2x.pngbin1727 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light.pngbin2833 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light@2x.pngbin2685 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Notifications/notifications.js72
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml176
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.pngbin1033 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark@2x.pngbin3001 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.pngbin2770 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light@2x.pngbin4123 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.pngbin1522 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark@2x.pngbin1443 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.pngbin2692 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/brightness-light@2x.pngbin2320 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.pngbin1053 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark@2x.pngbin1418 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.pngbin1057 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.pngbin1737 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.pngbin825 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white@2x.pngbin1318 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg93
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.pngbin1433 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme-dark@2x.pngbin2431 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme-light.pngbin1628 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme-light@2x.pngbin3340 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/theme.svg84
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.pngbin1749 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark@2x.pngbin1388 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.pngbin16308 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Settings/images/wifi-light@2x.pngbin2151 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/PageIndicator.qml89
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/Slider.qml86
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/Switch.qml86
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/UIStyle.qml107
-rw-r--r--examples/quickcontrols2/wearable/qml/Style/qmldir1
-rw-r--r--examples/quickcontrols2/wearable/qml/SwipeViewPage.qml60
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml297
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.pngbin1907 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.pngbin1749 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.pngbin16450 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.pngbin3076 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.pngbin1735 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.pngbin1938 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.pngbin16902 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.pngbin3256 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.pngbin2036 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.pngbin1575 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.pngbin16534 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.pngbin2427 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.pngbin2055 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.pngbin1603 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.pngbin16586 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.pngbin2489 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.pngbin1471 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.pngbin1255 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.pngbin2004 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.pngbin1977 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.pngbin1993 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.pngbin1464 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-light.pngbin16440 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.pngbin2309 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/weather.js77
-rw-r--r--examples/quickcontrols2/wearable/qml/Weather/weather.json1
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml188
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/WorldClockPage.qml107
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/center.pngbin765 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/center@2x.pngbin2655 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night.pngbin25619 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night@2x.pngbin67554 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/clock.pngbin15616 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/second.pngbin1015 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/second@2x.pngbin1000 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial.pngbin7999 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial@2x.pngbin17696 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour.pngbin1088 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour@2x.pngbin1234 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute.pngbin1109 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute@2x.pngbin1325 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial.pngbin8899 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial@2x.pngbin18135 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour.pngbin1117 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour@2x.pngbin1353 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute.pngbin1063 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute@2x.pngbin1337 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/qml/WorldClock/images/swissseconds.pngbin2752 -> 0 bytes
-rw-r--r--examples/quickcontrols2/wearable/wearable.cpp76
-rw-r--r--examples/quickcontrols2/wearable/wearable.pro12
-rw-r--r--examples/quickcontrols2/wearable/wearable.qml140
-rw-r--r--examples/quickcontrols2/wearable/wearable.qrc155
-rw-r--r--qtquickcontrols2.pro2
-rw-r--r--src/imports/calendar/DayOfWeekRow.qml71
-rw-r--r--src/imports/calendar/MonthGrid.qml73
-rw-r--r--src/imports/calendar/WeekNumberColumn.qml71
-rw-r--r--src/imports/calendar/calendar.pri24
-rw-r--r--src/imports/calendar/calendar.pro23
-rw-r--r--src/imports/calendar/doc/images/qtlabscalendar-calendarmodel.pngbin5724 -> 0 bytes
-rw-r--r--src/imports/calendar/doc/images/qtlabscalendar-dayofweekrow-layout.pngbin7455 -> 0 bytes
-rw-r--r--src/imports/calendar/doc/images/qtlabscalendar-dayofweekrow.pngbin2017 -> 0 bytes
-rw-r--r--src/imports/calendar/doc/images/qtlabscalendar-monthgrid-layout.pngbin8876 -> 0 bytes
-rw-r--r--src/imports/calendar/doc/images/qtlabscalendar-monthgrid.pngbin3827 -> 0 bytes
-rw-r--r--src/imports/calendar/doc/images/qtlabscalendar-weeknumbercolumn-layout.pngbin4986 -> 0 bytes
-rw-r--r--src/imports/calendar/doc/images/qtlabscalendar-weeknumbercolumn.pngbin1453 -> 0 bytes
-rw-r--r--src/imports/calendar/doc/qtlabscalendar.qdocconf41
-rw-r--r--src/imports/calendar/doc/snippets/qtlabscalendar-calendarmodel.qml57
-rw-r--r--src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml47
-rw-r--r--src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow.qml35
-rw-r--r--src/imports/calendar/doc/snippets/qtlabscalendar-monthgrid-layout.qml61
-rw-r--r--src/imports/calendar/doc/snippets/qtlabscalendar-monthgrid.qml37
-rw-r--r--src/imports/calendar/doc/snippets/qtlabscalendar-weeknumbercolumn-layout.qml49
-rw-r--r--src/imports/calendar/doc/snippets/qtlabscalendar-weeknumbercolumn.qml37
-rw-r--r--src/imports/calendar/doc/src/qtlabscalendar-index.qdoc51
-rw-r--r--src/imports/calendar/doc/src/qtlabscalendar-qmltypes.qdoc58
-rw-r--r--src/imports/calendar/plugins.qmltypes161
-rw-r--r--src/imports/calendar/qmldir6
-rw-r--r--src/imports/calendar/qquickcalendar.cpp78
-rw-r--r--src/imports/calendar/qquickcalendar_p.h85
-rw-r--r--src/imports/calendar/qquickcalendarmodel.cpp276
-rw-r--r--src/imports/calendar/qquickcalendarmodel_p.h109
-rw-r--r--src/imports/calendar/qquickdayofweekmodel.cpp121
-rw-r--r--src/imports/calendar/qquickdayofweekmodel_p.h96
-rw-r--r--src/imports/calendar/qquickdayofweekrow.cpp193
-rw-r--r--src/imports/calendar/qquickdayofweekrow_p.h92
-rw-r--r--src/imports/calendar/qquickmonthgrid.cpp449
-rw-r--r--src/imports/calendar/qquickmonthgrid_p.h115
-rw-r--r--src/imports/calendar/qquickmonthmodel.cpp226
-rw-r--r--src/imports/calendar/qquickmonthmodel_p.h115
-rw-r--r--src/imports/calendar/qquickweeknumbercolumn.cpp261
-rw-r--r--src/imports/calendar/qquickweeknumbercolumn_p.h102
-rw-r--r--src/imports/calendar/qquickweeknumbermodel.cpp180
-rw-r--r--src/imports/calendar/qquickweeknumbermodel_p.h104
-rw-r--r--src/imports/calendar/qtlabscalendarplugin.cpp79
-rw-r--r--src/imports/controls/AbstractButton.qml47
-rw-r--r--src/imports/controls/Action.qml40
-rw-r--r--src/imports/controls/ActionGroup.qml40
-rw-r--r--src/imports/controls/ApplicationWindow.qml55
-rw-r--r--src/imports/controls/BusyIndicator.qml63
-rw-r--r--src/imports/controls/Button.qml80
-rw-r--r--src/imports/controls/ButtonGroup.qml40
-rw-r--r--src/imports/controls/CheckBox.qml93
-rw-r--r--src/imports/controls/CheckDelegate.qml110
-rw-r--r--src/imports/controls/ComboBox.qml141
-rw-r--r--src/imports/controls/Container.qml47
-rw-r--r--src/imports/controls/Control.qml47
-rw-r--r--src/imports/controls/DelayButton.qml105
-rw-r--r--src/imports/controls/Dial.qml79
-rw-r--r--src/imports/controls/Dialog.qml86
-rw-r--r--src/imports/controls/DialogButtonBox.qml72
-rw-r--r--src/imports/controls/Drawer.qml79
-rw-r--r--src/imports/controls/Frame.qml56
-rw-r--r--src/imports/controls/GroupBox.qml74
-rw-r--r--src/imports/controls/ItemDelegate.qml77
-rw-r--r--src/imports/controls/Label.qml47
-rw-r--r--src/imports/controls/Menu.qml80
-rw-r--r--src/imports/controls/MenuBar.qml63
-rw-r--r--src/imports/controls/MenuBarItem.qml77
-rw-r--r--src/imports/controls/MenuItem.qml105
-rw-r--r--src/imports/controls/MenuSeparator.qml58
-rw-r--r--src/imports/controls/Page.qml57
-rw-r--r--src/imports/controls/PageIndicator.qml72
-rw-r--r--src/imports/controls/Pane.qml55
-rw-r--r--src/imports/controls/Popup.qml64
-rw-r--r--src/imports/controls/ProgressBar.qml67
-rw-r--r--src/imports/controls/RadioButton.qml86
-rw-r--r--src/imports/controls/RadioDelegate.qml103
-rw-r--r--src/imports/controls/RangeSlider.qml96
-rw-r--r--src/imports/controls/RoundButton.qml81
-rw-r--r--src/imports/controls/ScrollBar.qml76
-rw-r--r--src/imports/controls/ScrollIndicator.qml76
-rw-r--r--src/imports/controls/ScrollView.qml65
-rw-r--r--src/imports/controls/Slider.qml83
-rw-r--r--src/imports/controls/SpinBox.qml135
-rw-r--r--src/imports/controls/SplitView.qml55
-rw-r--r--src/imports/controls/StackView.qml67
-rw-r--r--src/imports/controls/SwipeDelegate.qml78
-rw-r--r--src/imports/controls/SwipeView.qml65
-rw-r--r--src/imports/controls/Switch.qml92
-rw-r--r--src/imports/controls/SwitchDelegate.qml109
-rw-r--r--src/imports/controls/TabBar.qml69
-rw-r--r--src/imports/controls/TabButton.qml73
-rw-r--r--src/imports/controls/TextArea.qml75
-rw-r--r--src/imports/controls/TextField.qml83
-rw-r--r--src/imports/controls/ToolBar.qml54
-rw-r--r--src/imports/controls/ToolButton.qml75
-rw-r--r--src/imports/controls/ToolSeparator.qml58
-rw-r--r--src/imports/controls/ToolTip.qml69
-rw-r--r--src/imports/controls/Tumbler.qml75
-rw-r--r--src/imports/controls/controls.pri70
-rw-r--r--src/imports/controls/controls.pro28
-rw-r--r--src/imports/controls/dependencies.json17
-rw-r--r--src/imports/controls/designer/AbstractButtonSection.qml118
-rw-r--r--src/imports/controls/designer/BusyIndicatorSpecifics.qml74
-rw-r--r--src/imports/controls/designer/ButtonSection.qml80
-rw-r--r--src/imports/controls/designer/ButtonSpecifics.qml63
-rw-r--r--src/imports/controls/designer/CheckBoxSpecifics.qml64
-rw-r--r--src/imports/controls/designer/CheckDelegateSpecifics.qml68
-rw-r--r--src/imports/controls/designer/CheckSection.qml68
-rw-r--r--src/imports/controls/designer/ComboBoxSpecifics.qml119
-rw-r--r--src/imports/controls/designer/ContainerSection.qml59
-rw-r--r--src/imports/controls/designer/ControlSection.qml108
-rw-r--r--src/imports/controls/designer/ControlSpecifics.qml55
-rw-r--r--src/imports/controls/designer/DelayButtonSpecifics.qml81
-rw-r--r--src/imports/controls/designer/DialSpecifics.qml160
-rw-r--r--src/imports/controls/designer/FrameSpecifics.qml59
-rw-r--r--src/imports/controls/designer/GroupBoxSpecifics.qml77
-rw-r--r--src/imports/controls/designer/ItemDelegateSection.qml58
-rw-r--r--src/imports/controls/designer/ItemDelegateSpecifics.qml63
-rw-r--r--src/imports/controls/designer/LabelSpecifics.qml82
-rw-r--r--src/imports/controls/designer/PaddingSection.qml101
-rw-r--r--src/imports/controls/designer/PageIndicatorSpecifics.qml90
-rw-r--r--src/imports/controls/designer/PageSpecifics.qml101
-rw-r--r--src/imports/controls/designer/PaneSection.qml73
-rw-r--r--src/imports/controls/designer/PaneSpecifics.qml59
-rw-r--r--src/imports/controls/designer/ProgressBarSpecifics.qml119
-rw-r--r--src/imports/controls/designer/RadioButtonSpecifics.qml59
-rw-r--r--src/imports/controls/designer/RadioDelegateSpecifics.qml63
-rw-r--r--src/imports/controls/designer/RangeSliderSpecifics.qml175
-rw-r--r--src/imports/controls/designer/RoundButtonSpecifics.qml83
-rw-r--r--src/imports/controls/designer/ScrollViewSpecifics.qml90
-rw-r--r--src/imports/controls/designer/SliderSpecifics.qml160
-rw-r--r--src/imports/controls/designer/SpinBoxSpecifics.qml130
-rw-r--r--src/imports/controls/designer/StackViewSpecifics.qml55
-rw-r--r--src/imports/controls/designer/SwipeDelegateSpecifics.qml63
-rw-r--r--src/imports/controls/designer/SwipeViewSpecifics.qml91
-rw-r--r--src/imports/controls/designer/SwitchDelegateSpecifics.qml59
-rw-r--r--src/imports/controls/designer/SwitchSpecifics.qml59
-rw-r--r--src/imports/controls/designer/TabBarSpecifics.qml107
-rw-r--r--src/imports/controls/designer/TabButtonSpecifics.qml59
-rw-r--r--src/imports/controls/designer/TextAreaSpecifics.qml77
-rw-r--r--src/imports/controls/designer/TextFieldSpecifics.qml74
-rw-r--r--src/imports/controls/designer/ToolBarSpecifics.qml79
-rw-r--r--src/imports/controls/designer/ToolButtonSpecifics.qml63
-rw-r--r--src/imports/controls/designer/ToolSeparatorSpecifics.qml71
-rw-r--r--src/imports/controls/designer/TumblerSpecifics.qml102
-rw-r--r--src/imports/controls/designer/designer.pri51
-rw-r--r--src/imports/controls/designer/images/busyindicator-icon.pngbin320 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/busyindicator-icon16.pngbin229 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/busyindicator-icon@2x.pngbin643 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/button-icon.pngbin162 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/button-icon16.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/button-icon@2x.pngbin259 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/checkbox-icon.pngbin258 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/checkbox-icon16.pngbin230 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/checkbox-icon@2x.pngbin336 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/combobox-icon.pngbin156 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/combobox-icon16.pngbin155 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/combobox-icon@2x.pngbin185 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/delaybutton-icon.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/delaybutton-icon16.pngbin160 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/delaybutton-icon@2x.pngbin286 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/dial-icon.pngbin267 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/dial-icon16.pngbin243 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/dial-icon@2x.pngbin505 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/frame-icon.pngbin121 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/frame-icon16.pngbin117 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/frame-icon@2x.pngbin125 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/groupbox-icon.pngbin133 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/groupbox-icon16.pngbin125 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/groupbox-icon@2x.pngbin136 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/itemdelegate-icon.pngbin127 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/itemdelegate-icon16.pngbin124 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/itemdelegate-icon@2x.pngbin133 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/label-icon.pngbin206 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/label-icon16.pngbin182 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/label-icon@2x.pngbin284 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/page-icon.pngbin190 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/page-icon16.pngbin148 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/page-icon@2x.pngbin195 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/pageindicator-icon.pngbin179 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/pageindicator-icon16.pngbin158 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/pageindicator-icon@2x.pngbin207 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/pane-icon.pngbin93 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/pane-icon16.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/pane-icon@2x.pngbin96 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/progressbar-icon.pngbin101 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/progressbar-icon16.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/progressbar-icon@2x.pngbin127 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/radiobutton-icon.pngbin279 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/radiobutton-icon16.pngbin218 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/radiobutton-icon@2x.pngbin482 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/rangeslider-icon.pngbin269 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/rangeslider-icon16.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/rangeslider-icon@2x.pngbin282 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/roundbutton-icon.pngbin229 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/roundbutton-icon16.pngbin186 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/roundbutton-icon@2x.pngbin381 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/scrollview-icon.pngbin110 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/scrollview-icon16.pngbin116 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/scrollview-icon@2x.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/slider-icon.pngbin190 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/slider-icon16.pngbin156 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/slider-icon@2x.pngbin227 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/spinbox-icon.pngbin144 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/spinbox-icon16.pngbin151 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/spinbox-icon@2x.pngbin178 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/stackview-icon.pngbin162 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/stackview-icon16.pngbin151 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/stackview-icon@2x.pngbin167 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/swipeview-icon.pngbin163 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/swipeview-icon16.pngbin152 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/swipeview-icon@2x.pngbin184 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/switch-icon.pngbin205 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/switch-icon16.pngbin160 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/switch-icon@2x.pngbin314 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/textarea-icon.pngbin149 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/textarea-icon16.pngbin133 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/textarea-icon@2x.pngbin163 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/textfield-icon.pngbin154 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/textfield-icon16.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/textfield-icon@2x.pngbin172 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolbar-icon.pngbin131 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolbar-icon16.pngbin114 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolbar-icon@2x.pngbin140 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolbutton-icon.pngbin141 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolbutton-icon16.pngbin128 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolbutton-icon@2x.pngbin158 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolseparator-icon.pngbin111 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolseparator-icon16.pngbin123 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/toolseparator-icon@2x.pngbin131 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/tumbler-icon.pngbin132 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/tumbler-icon16.pngbin127 -> 0 bytes
-rw-r--r--src/imports/controls/designer/images/tumbler-icon@2x.pngbin153 -> 0 bytes
-rw-r--r--src/imports/controls/designer/qtquickcontrols2.metainfo522
-rw-r--r--src/imports/controls/doc/doc.pri7
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-applicationwindow-wireframe.pngbin8518 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-busyindicator-custom.pngbin1502 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-busyindicator.gifbin17357 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-busyindicator.pngbin1713 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-button-custom.pngbin1512 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-button-flat.gifbin2388 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-button-highlighted.gifbin1856 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-button-icononly.pngbin626 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-button-textbesideicon.pngbin1827 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-button-textonly.pngbin1470 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-button-textundericon.pngbin5980 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-button.gifbin4140 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-checkbox-custom.pngbin2268 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-checkbox-group.pngbin3675 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-checkbox-tristate.gifbin8784 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-checkbox.gifbin6403 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-checkdelegate-custom.pngbin2619 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-checkdelegate-tristate.gifbin10487 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-checkdelegate.gifbin15290 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-combobox-custom.pngbin1169 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-combobox-delegate.pngbin1343 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-combobox-popup.pngbin1343 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-combobox.gifbin7873 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-control.pngbin53439 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-control.svg936
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-customize-buttons.pngbin3224 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-default-thumbnail.pngbin6159 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-default.pngbin16855 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-delaybutton-custom.pngbin7340 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-delaybutton.gifbin12595 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial-custom.pngbin6274 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial-handle.pngbin5703 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial-inputMode.svgzbin2753 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial-inputmode.pngbin12922 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial-no-wrap.gifbin52372 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial-wrap.gifbin70792 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dial.pngbin7204 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dialogbuttonbox-attached.pngbin1993 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-dialogbuttonbox.pngbin1987 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-drawer-expanded-wireframe.pngbin3004 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-drawer-wireframe.pngbin3956 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-drawer.gifbin55780 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-frame-custom.pngbin2261 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-frame.pngbin3824 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-fusion-palettes.pngbin12467 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-fusion-thumbnail.pngbin7522 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-fusion-violet.pngbin3763 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-fusion.pngbin12316 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-groupbox-checkable.pngbin6388 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-groupbox-custom.pngbin3551 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-groupbox-label.pngbin2052 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-groupbox.pngbin5682 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-4x.pngbin6210 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-inset-boundaries.pngbin7797 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-inset.pngbin2435 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-resized-padding.pngbin27813 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-resized-stretchable.pngbin24222 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-size.pngbin7982 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch.svgzbin7598 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-customization-dark.pngbin4542 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-customization.svgzbin2215 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine-thumbnail.pngbin5192 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-imagine.pngbin10113 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-itemdelegate-custom.pngbin1812 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-itemdelegate.gifbin16287 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-itemdelegate.pngbin7029 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-label-custom.pngbin963 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-label.pngbin946 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-accent.pngbin1633 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-attributes.pngbin8934 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-background.pngbin1883 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-dark.pngbin14996 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-elevation.pngbin3087 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-foreground.pngbin1726 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-light.pngbin14682 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-purple.pngbin4981 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-theme.pngbin2002 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-thumbnail.pngbin12572 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-variant-dense.pngbin21059 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-material-variant-normal.pngbin22897 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-menu-custom.pngbin8745 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-menu.gifbin4683 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-menu.pngbin4821 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-menubar-custom.pngbin3392 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-menubar.pngbin10188 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-menuseparator-custom.pngbin5574 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-menuseparator.pngbin5614 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-page-wireframe.pngbin1795 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-pageindicator-custom.pngbin396 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-pageindicator-delegate.pngbin498 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-pageindicator.pngbin416 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-pane-custom.pngbin2244 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-pane.pngbin3561 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-popup-custom.pngbin630 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-popup-settings.pngbin12440 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-popup-transformorigin.pngbin8927 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-popup.pngbin67730 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-popup.svg712
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-progressbar-custom.pngbin226 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-progressbar-indeterminate.gifbin5882 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-progressbar.gifbin2072 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-radiobutton-custom.pngbin2868 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-radiobutton.gifbin7993 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-radiodelegate-custom.pngbin3135 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-radiodelegate.gifbin16859 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-rangeslider-custom.pngbin1077 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-rangeslider.gifbin24125 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-roundbutton.pngbin1001 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollbar-custom.pngbin236 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollbar-non-attached.pngbin5459 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollbar-nosnap.gifbin5271 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollbar-snapalways.gifbin4707 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollbar-snaponrelease.gifbin5646 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollbar.gifbin32067 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollindicator-custom.pngbin123 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollindicator-non-attached.pngbin5280 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollindicator.gifbin42352 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollview-custom.pngbin5909 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollview-wireframe.pngbin1343 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-scrollview.pngbin5922 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-slider-custom.pngbin954 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-slider-handle.pngbin967 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-slider-nosnap.gifbin18138 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-slider-snapalways.gifbin7201 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-slider-snaponrelease.gifbin18377 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-slider.gifbin13697 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-spinbox-custom.pngbin1175 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-spinbox-double.pngbin933 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-spinbox-down.pngbin984 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-spinbox-textual.pngbin1505 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-spinbox-up.pngbin995 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-spinbox.pngbin989 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-splitview-custom.pngbin383 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-stackview-custom.pngbin200 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-stackview-pop.gifbin23801 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-stackview-push.gifbin42790 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-stackview-replace.gifbin28882 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-stackview-unwind.gifbin23744 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-stackview-visible.pngbin1083 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-stackview-wireframe.pngbin646 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-styles.pngbin115398 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-behind.gifbin248344 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-custom.pngbin2434 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-leading-trailing.gifbin132134 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-swipedelegate.gifbin123494 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-swipeview-indicator.pngbin695 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-swipeview-wireframe.pngbin1583 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-swipeview.gifbin35983 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-switch-checked.pngbin2427 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-switch-custom.pngbin2251 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-switch.gifbin3466 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-switch.pngbin2669 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-switchdelegate-custom.pngbin3567 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-switchdelegate.gifbin38688 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tabbar-custom.pngbin3568 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tabbar-explicit.pngbin2701 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tabbar-flickable.pngbin3349 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tabbar-wireframe.pngbin609 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tabbar.gifbin8590 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tabbar.pngbin3882 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tabbutton.pngbin3597 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-textarea-custom.pngbin1974 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-textarea-scrollable.pngbin1942 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-textarea.pngbin2238 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-textfield-custom.pngbin2387 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-textfield-disabled.pngbin1282 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-textfield-focused.pngbin1633 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-textfield-normal.pngbin1325 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-textfield.pngbin2088 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-toolbar-custom.pngbin1531 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-toolbar.pngbin1186 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-toolbutton-custom.pngbin1419 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-toolbutton.pngbin1683 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-toolseparator-custom.pngbin4729 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-toolseparator.pngbin7148 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tooltip-delay.pngbin1278 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tooltip-hover.pngbin1205 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tooltip-pressandhold.pngbin1205 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tooltip-slider.pngbin2057 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tooltip.pngbin6315 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tumbler-custom.pngbin2282 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tumbler-delegate.pngbin1176 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tumbler-wrap.gifbin54328 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-tumbler.pngbin1123 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-accent.pngbin1079 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-attributes.pngbin6181 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-background.pngbin1326 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-button.pngbin674 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-dark.pngbin12152 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-foreground.pngbin1027 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-light.pngbin12564 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-theme.pngbin1386 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-thumbnail.pngbin9512 -> 0 bytes
-rw-r--r--src/imports/controls/doc/images/qtquickcontrols2-universal-violet.pngbin2894 -> 0 bytes
-rw-r--r--src/imports/controls/doc/manifest-meta.qdocconf35
-rw-r--r--src/imports/controls/doc/qtquickcontrols.qdocconf104
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-action.qml56
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-busyindicator-custom.qml88
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-button-custom.qml55
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-button-icononly.qml34
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-button-textbesideicon.qml35
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-button-textonly.qml34
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-checkbox-custom.qml65
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-checkbox-group.qml58
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-checkdelegate-custom.qml74
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-combobox-accepted.qml45
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-combobox-custom.qml112
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-combobox-valuerole.qml58
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-delaybutton-custom.qml82
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-dial-custom.qml67
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-dialog-modal.qml41
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-dialog-modeless.qml41
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-dialog.qml44
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-dialogbuttonbox-attached.qml42
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-dialogbuttonbox.qml38
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-frame-custom.qml43
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-frame.qml41
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-groupbox-checkable.qml48
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-groupbox-custom.qml57
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-groupbox.qml42
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-itemdelegate-custom.qml59
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-itemdelegate.qml46
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-label-custom.qml36
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-label.qml35
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-material-accent.qml43
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-material-background.qml42
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-material-elevation.qml51
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-material-foreground.qml41
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-material-theme.qml44
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-material-variant.qml212
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-menu-custom.qml133
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-menubar-custom.qml84
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-menubar.qml67
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-menuseparator-custom.qml69
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-menuseparator.qml60
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-overlay-modal.qml55
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-overlay-modeless.qml55
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator-custom.qml53
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator-interactive.qml58
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator.qml35
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-pane-custom.qml41
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-pane.qml41
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-popup-custom.qml53
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-popup.qml46
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-progressbar-custom.qml56
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-radiobutton-custom.qml65
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-radiodelegate-custom.qml74
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-rangeslider-custom.qml76
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-roundbutton.qml36
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-active.qml46
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-custom.qml46
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-non-attached.qml80
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-policy.qml38
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-active.qml46
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-custom.qml45
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-non-attached.qml84
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-custom.qml81
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-interactive.qml38
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-listview.qml61
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-policy.qml38
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-scrollview.qml61
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-slider-custom.qml64
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-custom.qml96
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-double.qml56
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-textual.qml55
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-spinbox.qml35
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-splitview-custom.qml57
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-stackview-custom.qml53
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-stackview-visible.qml76
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate-custom.qml72
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate-transition.qml37
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml82
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-swipeview-custom.qml39
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-swipeview-indicator.qml63
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-switch-custom.qml64
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-switchdelegate-custom.qml73
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-custom.qml49
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-explicit.qml52
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-flickable.qml50
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tabbar.qml64
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tabbutton.qml43
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-textarea-custom.qml42
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-textarea-scrollable.qml47
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-textfield-custom.qml43
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-textfield-disabled.qml35
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-textfield-focused.qml35
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-textfield-normal.qml34
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-toolbar-custom.qml59
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-toolbar.qml62
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-toolbutton-custom.qml55
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-toolseparator-custom.qml69
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-toolseparator.qml68
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-custom.qml48
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-hover.qml41
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-pressandhold.qml39
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-slider.qml53
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tooltip.qml51
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-custom.qml78
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-listView.qml46
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-pathView.qml57
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-timePicker.qml86
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-universal-accent.qml43
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-universal-background.qml44
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-universal-foreground.qml41
-rw-r--r--src/imports/controls/doc/snippets/qtquickcontrols2-universal-theme.qml44
-rw-r--r--src/imports/controls/doc/src/includes/inputmethodhints.qdocinc38
-rw-r--r--src/imports/controls/doc/src/includes/qquickcontrol-background.qdocinc13
-rw-r--r--src/imports/controls/doc/src/includes/qquickcontrol-focusreason.qdocinc15
-rw-r--r--src/imports/controls/doc/src/includes/qquickdial.qdocinc13
-rw-r--r--src/imports/controls/doc/src/includes/qquickicon.qdocinc48
-rw-r--r--src/imports/controls/doc/src/includes/qquickimaginestyle.qdocinc57
-rw-r--r--src/imports/controls/doc/src/includes/qquickmaterialstyle.qdocinc79
-rw-r--r--src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc20
-rw-r--r--src/imports/controls/doc/src/includes/qquickpopup-padding.qdocinc10
-rw-r--r--src/imports/controls/doc/src/includes/qquickstackview.qdocinc5
-rw-r--r--src/imports/controls/doc/src/includes/qquickswipedelegate-interaction.qdocinc5
-rw-r--r--src/imports/controls/doc/src/includes/qquickswitch.qdocinc28
-rw-r--r--src/imports/controls/doc/src/includes/qquickuniversalstyle.qdocinc53
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-buttons.qdoc191
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-configuration.qdoc206
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-containers.qdoc113
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-cppclasses.qdoc54
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc893
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-default.qdoc55
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-delegates.qdoc79
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-deployment.qdoc97
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-differences.qdoc689
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-environment.qdoc84
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-examples.qdoc37
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-fileselectors.qdoc141
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-focus.qdoc48
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-fusion.qdoc93
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-gettingstarted.qdoc87
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-guidelines.qdoc46
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-highdpi.qdoc63
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-icons.qdoc170
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc2529
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-index.qdoc188
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc83
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-input.qdoc123
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-material.qdoc404
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-menus.qdoc68
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-navigation.qdoc70
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-palette.qdoc107
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-popups.qdoc99
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-qmltypes.qdoc58
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-separators.qdoc63
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-styles.qdoc146
-rw-r--r--src/imports/controls/doc/src/qtquickcontrols2-universal.qdoc288
-rw-r--r--src/imports/controls/fusion/ApplicationWindow.qml55
-rw-r--r--src/imports/controls/fusion/BusyIndicator.qml71
-rw-r--r--src/imports/controls/fusion/Button.qml76
-rw-r--r--src/imports/controls/fusion/ButtonPanel.qml77
-rw-r--r--src/imports/controls/fusion/CheckBox.qml72
-rw-r--r--src/imports/controls/fusion/CheckDelegate.qml87
-rw-r--r--src/imports/controls/fusion/CheckIndicator.qml92
-rw-r--r--src/imports/controls/fusion/ComboBox.qml175
-rw-r--r--src/imports/controls/fusion/DelayButton.qml116
-rw-r--r--src/imports/controls/fusion/Dial.qml76
-rw-r--r--src/imports/controls/fusion/Dialog.qml100
-rw-r--r--src/imports/controls/fusion/DialogButtonBox.qml74
-rw-r--r--src/imports/controls/fusion/Drawer.qml89
-rw-r--r--src/imports/controls/fusion/Frame.qml58
-rw-r--r--src/imports/controls/fusion/GroupBox.qml77
-rw-r--r--src/imports/controls/fusion/ItemDelegate.qml77
-rw-r--r--src/imports/controls/fusion/Label.qml49
-rw-r--r--src/imports/controls/fusion/Menu.qml93
-rw-r--r--src/imports/controls/fusion/MenuBar.qml74
-rw-r--r--src/imports/controls/fusion/MenuBarItem.qml78
-rw-r--r--src/imports/controls/fusion/MenuItem.qml103
-rw-r--r--src/imports/controls/fusion/MenuSeparator.qml60
-rw-r--r--src/imports/controls/fusion/Page.qml59
-rw-r--r--src/imports/controls/fusion/PageIndicator.qml74
-rw-r--r--src/imports/controls/fusion/Pane.qml57
-rw-r--r--src/imports/controls/fusion/Popup.qml67
-rw-r--r--src/imports/controls/fusion/ProgressBar.qml117
-rw-r--r--src/imports/controls/fusion/RadioButton.qml72
-rw-r--r--src/imports/controls/fusion/RadioDelegate.qml87
-rw-r--r--src/imports/controls/fusion/RadioIndicator.qml78
-rw-r--r--src/imports/controls/fusion/RangeSlider.qml82
-rw-r--r--src/imports/controls/fusion/RoundButton.qml99
-rw-r--r--src/imports/controls/fusion/ScrollBar.qml78
-rw-r--r--src/imports/controls/fusion/ScrollIndicator.qml78
-rw-r--r--src/imports/controls/fusion/Slider.qml68
-rw-r--r--src/imports/controls/fusion/SliderGroove.qml94
-rw-r--r--src/imports/controls/fusion/SliderHandle.qml86
-rw-r--r--src/imports/controls/fusion/SpinBox.qml182
-rw-r--r--src/imports/controls/fusion/SplitView.qml56
-rw-r--r--src/imports/controls/fusion/SwipeDelegate.qml79
-rw-r--r--src/imports/controls/fusion/Switch.qml72
-rw-r--r--src/imports/controls/fusion/SwitchDelegate.qml86
-rw-r--r--src/imports/controls/fusion/SwitchIndicator.qml137
-rw-r--r--src/imports/controls/fusion/TabBar.qml80
-rw-r--r--src/imports/controls/fusion/TabButton.qml97
-rw-r--r--src/imports/controls/fusion/TextArea.qml77
-rw-r--r--src/imports/controls/fusion/TextField.qml103
-rw-r--r--src/imports/controls/fusion/ToolBar.qml83
-rw-r--r--src/imports/controls/fusion/ToolButton.qml76
-rw-r--r--src/imports/controls/fusion/ToolSeparator.qml67
-rw-r--r--src/imports/controls/fusion/ToolTip.qml80
-rw-r--r--src/imports/controls/fusion/Tumbler.qml77
-rw-r--r--src/imports/controls/fusion/dependencies.json7
-rw-r--r--src/imports/controls/fusion/fusion.pri67
-rw-r--r--src/imports/controls/fusion/fusion.pro27
-rw-r--r--src/imports/controls/fusion/images/arrow.pngbin195 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/arrow.svg75
-rw-r--r--src/imports/controls/fusion/images/arrow@2x.pngbin219 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/arrow@3x.pngbin245 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/arrow@4x.pngbin290 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/checkmark.pngbin255 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/checkmark.svg72
-rw-r--r--src/imports/controls/fusion/images/checkmark@2x.pngbin390 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/checkmark@3x.pngbin494 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/checkmark@4x.pngbin556 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/progressmask.pngbin383 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/progressmask.svg74
-rw-r--r--src/imports/controls/fusion/images/progressmask@2x.pngbin660 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/progressmask@3x.pngbin866 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/images/progressmask@4x.pngbin1103 -> 0 bytes
-rw-r--r--src/imports/controls/fusion/plugins.qmltypes214
-rw-r--r--src/imports/controls/fusion/qmldir4
-rw-r--r--src/imports/controls/fusion/qquickfusionbusyindicator.cpp111
-rw-r--r--src/imports/controls/fusion/qquickfusionbusyindicator_p.h82
-rw-r--r--src/imports/controls/fusion/qquickfusiondial.cpp151
-rw-r--r--src/imports/controls/fusion/qquickfusiondial_p.h80
-rw-r--r--src/imports/controls/fusion/qquickfusionknob.cpp99
-rw-r--r--src/imports/controls/fusion/qquickfusionknob_p.h75
-rw-r--r--src/imports/controls/fusion/qquickfusionstyle.cpp149
-rw-r--r--src/imports/controls/fusion/qquickfusionstyle_p.h87
-rw-r--r--src/imports/controls/fusion/qquickfusiontheme.cpp55
-rw-r--r--src/imports/controls/fusion/qquickfusiontheme_p.h65
-rw-r--r--src/imports/controls/fusion/qtquickcontrols2fusionstyle.qrc16
-rw-r--r--src/imports/controls/fusion/qtquickcontrols2fusionstyleplugin.cpp107
-rw-r--r--src/imports/controls/images/arrow-indicator.pngbin260 -> 0 bytes
-rw-r--r--src/imports/controls/images/arrow-indicator@2x.pngbin343 -> 0 bytes
-rw-r--r--src/imports/controls/images/arrow-indicator@3x.pngbin438 -> 0 bytes
-rw-r--r--src/imports/controls/images/arrow-indicator@4x.pngbin545 -> 0 bytes
-rw-r--r--src/imports/controls/images/check.pngbin424 -> 0 bytes
-rw-r--r--src/imports/controls/images/check@2x.pngbin997 -> 0 bytes
-rw-r--r--src/imports/controls/images/check@3x.pngbin1433 -> 0 bytes
-rw-r--r--src/imports/controls/images/check@4x.pngbin1931 -> 0 bytes
-rw-r--r--src/imports/controls/images/dial-indicator.pngbin214 -> 0 bytes
-rw-r--r--src/imports/controls/images/dial-indicator@2x.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/images/dial-indicator@3x.pngbin384 -> 0 bytes
-rw-r--r--src/imports/controls/images/dial-indicator@4x.pngbin463 -> 0 bytes
-rw-r--r--src/imports/controls/images/double-arrow.pngbin491 -> 0 bytes
-rw-r--r--src/imports/controls/images/double-arrow@2x.pngbin937 -> 0 bytes
-rw-r--r--src/imports/controls/images/double-arrow@3x.pngbin1368 -> 0 bytes
-rw-r--r--src/imports/controls/images/double-arrow@4x.pngbin1833 -> 0 bytes
-rw-r--r--src/imports/controls/images/drop-indicator.pngbin157 -> 0 bytes
-rw-r--r--src/imports/controls/images/drop-indicator@2x.pngbin226 -> 0 bytes
-rw-r--r--src/imports/controls/images/drop-indicator@3x.pngbin297 -> 0 bytes
-rw-r--r--src/imports/controls/images/drop-indicator@4x.pngbin507 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/ApplicationWindow.qml77
-rw-r--r--src/imports/controls/imagine/BusyIndicator.qml88
-rw-r--r--src/imports/controls/imagine/Button.qml99
-rw-r--r--src/imports/controls/imagine/CheckBox.qml106
-rw-r--r--src/imports/controls/imagine/CheckDelegate.qml118
-rw-r--r--src/imports/controls/imagine/ComboBox.qml173
-rw-r--r--src/imports/controls/imagine/DelayButton.qml138
-rw-r--r--src/imports/controls/imagine/Dial.qml104
-rw-r--r--src/imports/controls/imagine/Dialog.qml117
-rw-r--r--src/imports/controls/imagine/DialogButtonBox.qml85
-rw-r--r--src/imports/controls/imagine/Drawer.qml96
-rw-r--r--src/imports/controls/imagine/Frame.qml69
-rw-r--r--src/imports/controls/imagine/GroupBox.qml101
-rw-r--r--src/imports/controls/imagine/ItemDelegate.qml94
-rw-r--r--src/imports/controls/imagine/Label.qml63
-rw-r--r--src/imports/controls/imagine/Menu.qml106
-rw-r--r--src/imports/controls/imagine/MenuItem.qml138
-rw-r--r--src/imports/controls/imagine/MenuSeparator.qml79
-rw-r--r--src/imports/controls/imagine/Page.qml73
-rw-r--r--src/imports/controls/imagine/PageIndicator.qml92
-rw-r--r--src/imports/controls/imagine/Pane.qml69
-rw-r--r--src/imports/controls/imagine/Popup.qml87
-rw-r--r--src/imports/controls/imagine/ProgressBar.qml142
-rw-r--r--src/imports/controls/imagine/RadioButton.qml104
-rw-r--r--src/imports/controls/imagine/RadioDelegate.qml116
-rw-r--r--src/imports/controls/imagine/RangeSlider.qml134
-rw-r--r--src/imports/controls/imagine/RoundButton.qml98
-rw-r--r--src/imports/controls/imagine/ScrollBar.qml119
-rw-r--r--src/imports/controls/imagine/ScrollIndicator.qml111
-rw-r--r--src/imports/controls/imagine/ScrollView.qml86
-rw-r--r--src/imports/controls/imagine/Slider.qml120
-rw-r--r--src/imports/controls/imagine/SpinBox.qml152
-rw-r--r--src/imports/controls/imagine/SplitView.qml63
-rw-r--r--src/imports/controls/imagine/StackView.qml91
-rw-r--r--src/imports/controls/imagine/SwipeDelegate.qml96
-rw-r--r--src/imports/controls/imagine/SwipeView.qml89
-rw-r--r--src/imports/controls/imagine/Switch.qml134
-rw-r--r--src/imports/controls/imagine/SwitchDelegate.qml147
-rw-r--r--src/imports/controls/imagine/TabBar.qml87
-rw-r--r--src/imports/controls/imagine/TabButton.qml92
-rw-r--r--src/imports/controls/imagine/TextArea.qml97
-rw-r--r--src/imports/controls/imagine/TextField.qml96
-rw-r--r--src/imports/controls/imagine/ToolBar.qml71
-rw-r--r--src/imports/controls/imagine/ToolButton.qml95
-rw-r--r--src/imports/controls/imagine/ToolSeparator.qml83
-rw-r--r--src/imports/controls/imagine/ToolTip.qml85
-rw-r--r--src/imports/controls/imagine/Tumbler.qml94
-rw-r--r--src/imports/controls/imagine/dependencies.json7
-rw-r--r--src/imports/controls/imagine/design/9-patch-export.sketchplugin/Contents/Sketch/9-patch-export.js24
-rw-r--r--src/imports/controls/imagine/design/9-patch-export.sketchplugin/Contents/Sketch/manifest.json19
-rw-r--r--src/imports/controls/imagine/design/imagine.sketchbin164993 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-background.pngbin84 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-background@2x.pngbin91 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-background@3x.pngbin93 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-background@4x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-overlay-modal.pngbin86 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-overlay-modal@2x.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-overlay-modal@3x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-overlay-modal@4x.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-overlay.pngbin86 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-overlay@2x.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-overlay@3x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/applicationwindow-overlay@4x.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/busyindicator-animation.webpbin30116 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/busyindicator-animation@2x.webpbin56588 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/busyindicator-animation@3x.webpbin77816 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/busyindicator-animation@4x.webpbin103290 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-disabled.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-disabled@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-disabled@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-disabled@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-focused.9.pngbin355 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-focused@2x.9.pngbin730 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-focused@3x.9.pngbin1149 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-focused@4x.9.pngbin1653 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-hovered.9.pngbin355 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-hovered@2x.9.pngbin730 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-hovered@3x.9.pngbin1149 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked-hovered@4x.9.pngbin1653 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked.9.pngbin372 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked@2x.9.pngbin694 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked@3x.9.pngbin1170 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-checked@4x.9.pngbin1723 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-disabled.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-disabled@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-disabled@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-disabled@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-checked-pressed.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-checked-pressed@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-checked-pressed@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-checked-pressed@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-checked.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-checked@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-checked@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-checked@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-disabled.9.pngbin197 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-disabled@2x.9.pngbin308 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-disabled@3x.9.pngbin589 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-disabled@4x.9.pngbin860 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted-checked.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted-checked@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted-checked@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted-checked@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted-pressed.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted.9.pngbin197 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted@2x.9.pngbin308 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted@3x.9.pngbin589 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-highlighted@4x.9.pngbin860 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-hovered.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-hovered@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-hovered@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-hovered@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-pressed.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-pressed@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-pressed@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat-pressed@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat.9.pngbin197 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat@2x.9.pngbin308 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat@3x.9.pngbin589 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-flat@4x.9.pngbin860 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-focused.9.pngbin341 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-focused@2x.9.pngbin663 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-focused@3x.9.pngbin1120 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-focused@4x.9.pngbin1584 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-checked.9.pngbin342 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-checked@2x.9.pngbin658 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-checked@3x.9.pngbin1122 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-checked@4x.9.pngbin1583 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-disabled.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-disabled@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-disabled@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-disabled@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-focused.9.pngbin342 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-focused@2x.9.pngbin712 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-focused@3x.9.pngbin1075 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-focused@4x.9.pngbin1577 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-hovered.9.pngbin342 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-hovered@2x.9.pngbin712 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-hovered@3x.9.pngbin1075 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-hovered@4x.9.pngbin1577 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-pressed.9.pngbin342 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-pressed@2x.9.pngbin658 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-pressed@3x.9.pngbin1122 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted-pressed@4x.9.pngbin1583 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted.9.pngbin355 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted@2x.9.pngbin727 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted@3x.9.pngbin1145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-highlighted@4x.9.pngbin1686 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-hovered.9.pngbin341 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-hovered@2x.9.pngbin663 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-hovered@3x.9.pngbin1120 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-hovered@4x.9.pngbin1584 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-pressed.9.pngbin372 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-pressed@2x.9.pngbin694 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-pressed@3x.9.pngbin1170 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background-pressed@4x.9.pngbin1723 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background.9.pngbin358 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background@2x.9.pngbin650 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background@3x.9.pngbin1145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/button-background@4x.9.pngbin1600 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-focused.pngbin394 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-focused@2x.pngbin709 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-focused@3x.pngbin1059 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-focused@4x.pngbin1514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-hovered.pngbin394 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@2x.pngbin709 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@3x.pngbin1059 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@4x.pngbin1514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-pressed.pngbin436 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@2x.pngbin799 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@3x.pngbin1186 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@4x.pngbin1672 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked@2x.pngbin795 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked@3x.pngbin1149 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-checked@4x.pngbin1625 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-disabled.pngbin167 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-disabled@2x.pngbin289 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-disabled@3x.pngbin433 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-disabled@4x.pngbin695 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-focused.pngbin165 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-focused@2x.pngbin292 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-focused@3x.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-focused@4x.pngbin705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-hovered.pngbin165 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-hovered@2x.pngbin292 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-hovered@3x.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-hovered@4x.pngbin705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused.pngbin185 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@2x.pngbin330 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@3x.pngbin473 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@4x.pngbin702 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered.pngbin185 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@2x.pngbin330 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@3x.pngbin473 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@4x.pngbin702 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed.pngbin191 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@2x.pngbin332 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@3x.pngbin491 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@4x.pngbin709 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked.pngbin190 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked@2x.pngbin340 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked@3x.pngbin477 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-partially-checked@4x.pngbin713 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-pressed.pngbin164 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-pressed@2x.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-pressed@3x.pngbin430 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator-pressed@4x.pngbin615 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator.pngbin168 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator@2x.pngbin299 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator@3x.pngbin427 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkbox-indicator@4x.pngbin623 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-disabled.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-disabled@2x.9.pngbin201 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-disabled@3x.9.pngbin228 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-disabled@4x.9.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-focused.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-focused@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-focused@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-focused@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-highlighted.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-highlighted@2x.9.pngbin205 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-highlighted@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-highlighted@4x.9.pngbin307 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-hovered.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-hovered@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-hovered@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-hovered@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-pressed.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-pressed@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-pressed@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background-pressed@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-background@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused.pngbin394 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@2x.pngbin709 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@3x.pngbin1059 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@4x.pngbin1514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered.pngbin394 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@2x.pngbin709 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@3x.pngbin1059 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@4x.pngbin1514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed.pngbin436 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@2x.pngbin799 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@3x.pngbin1186 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@4x.pngbin1672 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked@2x.pngbin795 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked@3x.pngbin1149 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-checked@4x.pngbin1625 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-disabled.pngbin167 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-disabled@2x.pngbin289 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-disabled@3x.pngbin433 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-disabled@4x.pngbin695 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-focused.pngbin165 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-focused@2x.pngbin292 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-focused@3x.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-focused@4x.pngbin705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-hovered.pngbin165 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-hovered@2x.pngbin292 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-hovered@3x.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-hovered@4x.pngbin705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused.pngbin185 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@2x.pngbin330 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@3x.pngbin473 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@4x.pngbin702 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered.pngbin185 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@2x.pngbin330 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@3x.pngbin473 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@4x.pngbin702 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed.pngbin191 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@2x.pngbin332 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@3x.pngbin491 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@4x.pngbin709 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked.pngbin190 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@2x.pngbin340 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@3x.pngbin477 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@4x.pngbin713 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-pressed.pngbin164 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-pressed@2x.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-pressed@3x.pngbin430 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator-pressed@4x.pngbin615 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator.pngbin168 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator@2x.pngbin299 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator@3x.pngbin427 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/checkdelegate-indicator@4x.pngbin623 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-disabled.9.pngbin450 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-disabled@2x.9.pngbin986 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-disabled@3x.9.pngbin1655 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-disabled@4x.9.pngbin2297 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable-disabled.9.pngbin435 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable-disabled@2x.9.pngbin993 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable-disabled@3x.9.pngbin1652 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable-disabled@4x.9.pngbin2400 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable-focused.9.pngbin447 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable-focused@2x.9.pngbin1114 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable-focused@3x.9.pngbin1905 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable-focused@4x.9.pngbin2792 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable.9.pngbin460 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable@2x.9.pngbin1185 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable@3x.9.pngbin1898 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-editable@4x.9.pngbin2750 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-focused.9.pngbin443 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-focused@2x.9.pngbin957 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-focused@3x.9.pngbin1630 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-focused@4x.9.pngbin2392 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-hovered.9.pngbin443 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-hovered@2x.9.pngbin957 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-hovered@3x.9.pngbin1630 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-hovered@4x.9.pngbin2392 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-open.9.pngbin475 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-open@2x.9.pngbin1018 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-open@3x.9.pngbin1693 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-open@4x.9.pngbin2461 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-pressed.9.pngbin475 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-pressed@2x.9.pngbin1018 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-pressed@3x.9.pngbin1693 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background-pressed@4x.9.pngbin2461 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background.9.pngbin461 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background@2x.9.pngbin930 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background@3x.9.pngbin1635 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-background@4x.9.pngbin2273 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-disabled.pngbin215 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-disabled@2x.pngbin261 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-disabled@3x.pngbin426 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-disabled@4x.pngbin530 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-disabled.pngbin316 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-disabled@2x.pngbin559 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-disabled@3x.pngbin937 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-disabled@4x.pngbin1188 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled.pngbin333 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@2x.pngbin544 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@3x.pngbin885 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@4x.pngbin1291 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-mirrored.pngbin361 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@2x.pngbin589 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@3x.pngbin939 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@4x.pngbin1350 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable.pngbin346 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable@2x.pngbin558 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable@3x.pngbin971 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator-editable@4x.pngbin1314 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator.pngbin190 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator@2x.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator@3x.pngbin407 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-indicator@4x.pngbin533 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-popup.9.pngbin664 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-popup@2x.9.pngbin1398 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-popup@3x.9.pngbin2438 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/combobox-popup@4x.9.pngbin3448 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked-focused.9.pngbin355 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked-focused@2x.9.pngbin730 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked-focused@3x.9.pngbin1149 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked-focused@4x.9.pngbin1653 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked-hovered.9.pngbin355 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked-hovered@2x.9.pngbin730 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked-hovered@3x.9.pngbin1149 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked-hovered@4x.9.pngbin1653 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked.9.pngbin372 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked@2x.9.pngbin694 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked@3x.9.pngbin1170 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-checked@4x.9.pngbin1723 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-disabled-checked.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-disabled-checked@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-disabled-checked@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-disabled-checked@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-disabled.9.pngbin351 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-disabled@2x.9.pngbin711 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-disabled@3x.9.pngbin1070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-disabled@4x.9.pngbin1696 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-focused.9.pngbin342 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-focused@2x.9.pngbin649 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-focused@3x.9.pngbin1170 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-focused@4x.9.pngbin1687 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-hovered.9.pngbin341 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-hovered@2x.9.pngbin663 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-hovered@3x.9.pngbin1120 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-hovered@4x.9.pngbin1584 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-pressed.9.pngbin372 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-pressed@2x.9.pngbin694 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-pressed@3x.9.pngbin1170 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background-pressed@4x.9.pngbin1723 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background.9.pngbin358 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background@2x.9.pngbin650 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background@3x.9.pngbin1145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-background@4x.9.pngbin1600 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-mask.9.pngbin297 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-mask@2x.9.pngbin645 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-mask@3x.9.pngbin1066 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-mask@4x.9.pngbin1499 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-progress-disabled.9.pngbin227 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-progress-disabled@2x.9.pngbin366 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-progress-disabled@3x.9.pngbin676 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-progress-disabled@4x.9.pngbin938 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-progress.9.pngbin229 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-progress@2x.9.pngbin368 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-progress@3x.9.pngbin678 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/delaybutton-progress@4x.9.pngbin940 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background-disabled.pngbin6691 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background-disabled@2x.pngbin15224 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background-disabled@3x.pngbin25013 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background-disabled@4x.pngbin36000 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background-focused.pngbin6852 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background-focused@2x.pngbin15317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background-focused@3x.pngbin25211 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background-focused@4x.pngbin36274 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background.pngbin6798 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background@2x.pngbin15237 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background@3x.pngbin25121 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-background@4x.pngbin36025 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-disabled.pngbin191 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-disabled@2x.pngbin256 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-disabled@3x.pngbin316 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-disabled@4x.pngbin367 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused-hovered.pngbin185 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused-hovered@2x.pngbin254 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused-hovered@3x.pngbin321 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused-hovered@4x.pngbin371 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused-pressed.pngbin188 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused-pressed@2x.pngbin255 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused-pressed@3x.pngbin323 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused-pressed@4x.pngbin386 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused@2x.pngbin263 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused@3x.pngbin320 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-focused@4x.pngbin380 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-hovered.pngbin178 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-hovered@2x.pngbin253 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-hovered@3x.pngbin312 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-hovered@4x.pngbin367 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-pressed.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-pressed@2x.pngbin274 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-pressed@3x.pngbin332 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle-pressed@4x.pngbin398 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle@2x.pngbin253 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle@3x.pngbin320 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dial-handle@4x.pngbin378 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-background.9.pngbin663 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-background@2x.9.pngbin1415 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-background@3x.9.pngbin2438 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-background@4x.9.pngbin3437 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-overlay-modal.pngbin86 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-overlay-modal@2x.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-overlay-modal@3x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-overlay-modal@4x.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-overlay.pngbin86 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-overlay@2x.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-overlay@3x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialog-overlay@4x.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialogbuttonbox-background.9.pngbin128 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialogbuttonbox-background@2x.9.pngbin173 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialogbuttonbox-background@3x.9.pngbin232 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/dialogbuttonbox-background@4x.9.pngbin274 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-bottom.9.pngbin315 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-bottom@2x.9.pngbin598 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-bottom@3x.9.pngbin1042 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-bottom@4x.9.pngbin1716 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-left.9.pngbin314 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-left@2x.9.pngbin699 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-left@3x.9.pngbin1001 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-left@4x.9.pngbin1628 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-right.9.pngbin317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-right@2x.9.pngbin710 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-right@3x.9.pngbin1189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-right@4x.9.pngbin1684 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-top.9.pngbin308 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-top@2x.9.pngbin572 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-top@3x.9.pngbin1137 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-background-top@4x.9.pngbin1739 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-overlay-modal.pngbin86 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-overlay-modal@2x.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-overlay-modal@3x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-overlay-modal@4x.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-overlay.pngbin86 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-overlay@2x.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-overlay@3x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/drawer-overlay@4x.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/frame-background.9.pngbin307 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/frame-background@2x.9.pngbin604 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/frame-background@3x.9.pngbin889 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/frame-background@4x.9.pngbin1354 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/groupbox-background.9.pngbin307 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/groupbox-background@2x.9.pngbin604 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/groupbox-background@3x.9.pngbin889 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/groupbox-background@4x.9.pngbin1354 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/groupbox-title.9.pngbin141 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/groupbox-title@2x.9.pngbin222 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/groupbox-title@3x.9.pngbin268 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/groupbox-title@4x.9.pngbin379 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-disabled.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-disabled@2x.9.pngbin201 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-disabled@3x.9.pngbin228 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-disabled@4x.9.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-focused.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-focused@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-focused@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-focused@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-highlighted.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-highlighted@2x.9.pngbin205 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-highlighted@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-highlighted@4x.9.pngbin307 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-hovered.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-hovered@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-hovered@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-hovered@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-pressed.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-pressed@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-pressed@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background-pressed@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/itemdelegate-background@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menu-background.9.pngbin1329 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menu-background@2x.9.pngbin3172 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menu-background@3x.9.pngbin5762 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menu-background@4x.9.pngbin8797 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-disabled.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-disabled@2x.pngbin276 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-disabled@3x.pngbin362 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-disabled@4x.pngbin440 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled.pngbin206 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@2x.pngbin302 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@3x.pngbin392 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@4x.pngbin465 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-mirrored.pngbin201 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-mirrored@2x.pngbin304 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-mirrored@3x.pngbin417 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow-mirrored@4x.pngbin506 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow.pngbin195 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow@2x.pngbin281 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow@3x.pngbin380 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-arrow@4x.pngbin457 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-background-highlighted.9.pngbin155 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-background-highlighted@2x.9.pngbin211 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-background-highlighted@3x.9.pngbin257 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-background-highlighted@4x.9.pngbin392 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-background.9.pngbin148 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-background@2x.9.pngbin211 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-background@3x.9.pngbin268 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-background@4x.9.pngbin379 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-focused.pngbin394 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-focused@2x.pngbin709 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-focused@3x.pngbin1059 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-focused@4x.pngbin1514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-hovered.pngbin394 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@2x.pngbin709 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@3x.pngbin1059 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@4x.pngbin1514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-pressed.pngbin436 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@2x.pngbin799 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@3x.pngbin1186 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@4x.pngbin1672 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked@2x.pngbin795 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked@3x.pngbin1149 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-checked@4x.pngbin1625 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-disabled.pngbin167 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-disabled@2x.pngbin289 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-disabled@3x.pngbin433 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-disabled@4x.pngbin695 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-focused.pngbin165 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-focused@2x.pngbin292 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-focused@3x.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-focused@4x.pngbin705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-hovered.pngbin165 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-hovered@2x.pngbin292 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-hovered@3x.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-hovered@4x.pngbin705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-pressed.pngbin164 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-pressed@2x.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-pressed@3x.pngbin430 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator-pressed@4x.pngbin615 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator.pngbin168 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator@2x.pngbin299 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator@3x.pngbin427 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuitem-indicator@4x.pngbin623 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuseparator-separator.9.pngbin114 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuseparator-separator@2x.9.pngbin131 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuseparator-separator@3x.9.pngbin144 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/menuseparator-separator@4x.9.pngbin168 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/page-background.pngbin84 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/page-background@2x.pngbin91 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/page-background@3x.pngbin93 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/page-background@4x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-current.pngbin198 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-current@2x.pngbin352 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-current@3x.pngbin515 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-current@4x.pngbin727 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-disabled-current.pngbin175 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@2x.pngbin317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@3x.pngbin511 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@4x.pngbin677 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-disabled.pngbin175 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-disabled@2x.pngbin317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-disabled@3x.pngbin511 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-disabled@4x.pngbin677 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-pressed.pngbin198 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-pressed@2x.pngbin352 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-pressed@3x.pngbin515 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate-pressed@4x.pngbin727 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate.pngbin181 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate@2x.pngbin353 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate@3x.pngbin506 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pageindicator-delegate@4x.pngbin701 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pane-background.9.pngbin162 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pane-background@2x.9.pngbin230 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pane-background@3x.9.pngbin270 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/pane-background@4x.9.pngbin392 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-background.9.pngbin663 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-background@2x.9.pngbin1415 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-background@3x.9.pngbin2438 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-background@4x.9.pngbin3437 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-overlay-modal.pngbin86 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-overlay-modal@2x.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-overlay-modal@3x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-overlay-modal@4x.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-overlay.pngbin86 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-overlay@2x.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-overlay@3x.pngbin94 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/popup-overlay@4x.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-animation.webpbin4760 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-animation@2x.webpbin7932 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-animation@3x.webpbin8154 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-animation@4x.webpbin9646 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-background.9.pngbin424 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-background@2x.9.pngbin875 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-background@3x.9.pngbin1544 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-background@4x.9.pngbin2279 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-mask.9.pngbin205 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-mask@2x.9.pngbin344 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-mask@3x.9.pngbin478 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-mask@4x.9.pngbin673 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-progress.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-progress@2x.pngbin97 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-progress@3x.pngbin101 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/progressbar-progress@4x.pngbin115 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-focused.pngbin451 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@2x.pngbin996 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@3x.pngbin1595 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@4x.pngbin2157 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered.pngbin451 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@2x.pngbin996 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@3x.pngbin1595 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@4x.pngbin2157 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed.pngbin475 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@2x.pngbin1030 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@3x.pngbin1612 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@4x.pngbin2224 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked.pngbin471 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked@2x.pngbin1028 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked@3x.pngbin1604 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-checked@4x.pngbin2224 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-disabled.pngbin382 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-disabled@2x.pngbin767 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-disabled@3x.pngbin1182 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-disabled@4x.pngbin1737 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-focused.pngbin373 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-focused@2x.pngbin765 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-focused@3x.pngbin1182 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-focused@4x.pngbin1705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-hovered.pngbin373 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-hovered@2x.pngbin765 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-hovered@3x.pngbin1182 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-hovered@4x.pngbin1705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-pressed.pngbin401 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-pressed@2x.pngbin791 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-pressed@3x.pngbin1188 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator-pressed@4x.pngbin1708 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator.pngbin369 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator@2x.pngbin791 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator@3x.pngbin1190 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiobutton-indicator@4x.pngbin1740 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-disabled.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-disabled@2x.9.pngbin201 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-disabled@3x.9.pngbin228 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-disabled@4x.9.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-focused.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-focused@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-focused@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-focused@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-highlighted.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-highlighted@2x.9.pngbin205 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-highlighted@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-highlighted@4x.9.pngbin307 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-hovered.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-hovered@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-hovered@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-hovered@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-pressed.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-pressed@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-pressed@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background-pressed@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-background@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused.pngbin451 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@2x.pngbin996 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@3x.pngbin1595 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@4x.pngbin2157 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered.pngbin451 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@2x.pngbin996 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@3x.pngbin1595 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@4x.pngbin2157 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed.pngbin475 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@2x.pngbin1030 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@3x.pngbin1612 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@4x.pngbin2224 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked.pngbin471 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked@2x.pngbin1028 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked@3x.pngbin1604 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-checked@4x.pngbin2224 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-disabled.pngbin382 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-disabled@2x.pngbin767 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-disabled@3x.pngbin1182 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-disabled@4x.pngbin1737 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-focused.pngbin373 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-focused@2x.pngbin765 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-focused@3x.pngbin1182 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-focused@4x.pngbin1705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-hovered.pngbin373 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-hovered@2x.pngbin765 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-hovered@3x.pngbin1182 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-hovered@4x.pngbin1705 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-pressed.pngbin401 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-pressed@2x.pngbin791 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-pressed@3x.pngbin1188 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator-pressed@4x.pngbin1708 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator.pngbin369 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator@2x.pngbin791 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator@3x.pngbin1190 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/radiodelegate-indicator@4x.pngbin1740 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-background-horizontal.9.pngbin360 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-background-horizontal@2x.9.pngbin792 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-background-horizontal@3x.9.pngbin1427 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-background-horizontal@4x.9.pngbin2255 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-background-vertical.9.pngbin430 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-background-vertical@2x.9.pngbin1291 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-background-vertical@3x.9.pngbin2041 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-background-vertical@4x.9.pngbin3159 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-disabled.pngbin478 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-disabled@2x.pngbin1031 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-disabled@3x.pngbin1685 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-disabled@4x.pngbin2514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused-hovered.pngbin500 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@2x.pngbin1113 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@3x.pngbin1728 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@4x.pngbin2541 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused-pressed.pngbin500 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@2x.pngbin1113 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@3x.pngbin1728 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@4x.pngbin2541 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused.pngbin419 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused@2x.pngbin1008 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused@3x.pngbin1702 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-focused@4x.pngbin2593 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-hovered.pngbin478 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-hovered@2x.pngbin1031 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-hovered@3x.pngbin1685 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-hovered@4x.pngbin2514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-pressed.pngbin478 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-pressed@2x.pngbin1031 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-pressed@3x.pngbin1685 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle-pressed@4x.pngbin2514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle.pngbin441 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle@2x.pngbin1010 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle@3x.pngbin1687 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-handle@4x.pngbin2518 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@2x.9.pngbin316 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@3x.9.pngbin417 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-horizontal.9.pngbin195 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-horizontal@2x.9.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-horizontal@3x.9.pngbin438 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-horizontal@4x.9.pngbin567 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled.9.pngbin206 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@2x.9.pngbin328 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@3x.9.pngbin442 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@4x.9.pngbin607 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-vertical.9.pngbin207 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-vertical@2x.9.pngbin317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-vertical@3x.9.pngbin450 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/rangeslider-progress-vertical@4x.9.pngbin593 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked-focused.pngbin829 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked-focused@2x.pngbin1748 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked-focused@3x.pngbin3070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked-focused@4x.pngbin4349 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked-hovered.pngbin829 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked-hovered@2x.pngbin1748 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked-hovered@3x.pngbin3070 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked-hovered@4x.pngbin4349 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked.pngbin890 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked@2x.pngbin1805 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked@3x.pngbin3147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-checked@4x.pngbin4489 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-disabled-checked.pngbin767 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-disabled-checked@2x.pngbin1737 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-disabled-checked@3x.pngbin2990 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-disabled-checked@4x.pngbin4284 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-disabled.pngbin767 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-disabled@2x.pngbin1737 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-disabled@3x.pngbin2990 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-disabled@4x.pngbin4284 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-focused.pngbin779 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-focused@2x.pngbin1731 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-focused@3x.pngbin2999 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-focused@4x.pngbin4278 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-focused.pngbin777 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@2x.pngbin1683 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@3x.pngbin2942 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@4x.pngbin4214 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered.pngbin777 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@2x.pngbin1683 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@3x.pngbin2942 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@4x.pngbin4214 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed.pngbin791 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@2x.pngbin1734 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@3x.pngbin3009 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@4x.pngbin4281 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted.pngbin780 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted@2x.pngbin1734 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted@3x.pngbin3057 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-highlighted@4x.pngbin4263 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-hovered.pngbin779 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-hovered@2x.pngbin1731 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-hovered@3x.pngbin2999 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-hovered@4x.pngbin4278 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-pressed.pngbin890 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-pressed@2x.pngbin1805 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-pressed@3x.pngbin3147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background-pressed@4x.pngbin4489 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background.pngbin791 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background@2x.pngbin1708 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background@3x.pngbin3035 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/roundbutton-background@4x.pngbin4329 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-disabled.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-disabled@2x.pngbin96 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-disabled@3x.pngbin97 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-disabled@4x.pngbin102 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled.pngbin97 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@2x.pngbin109 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@3x.pngbin133 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@4x.pngbin129 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered.pngbin97 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@2x.pngbin109 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@3x.pngbin133 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@4x.pngbin129 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed.pngbin96 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@2x.pngbin109 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@3x.pngbin132 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@4x.pngbin128 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive.pngbin97 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive@2x.pngbin109 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive@3x.pngbin133 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle-interactive@4x.pngbin129 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle@2x.pngbin96 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle@3x.pngbin97 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollbar-handle@4x.pngbin102 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollindicator-handle.pngbin95 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollindicator-handle@2x.pngbin96 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollindicator-handle@3x.pngbin97 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/scrollindicator-handle@4x.pngbin102 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-background-horizontal.9.pngbin360 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-background-horizontal@2x.9.pngbin792 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-background-horizontal@3x.9.pngbin1427 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-background-horizontal@4x.9.pngbin2255 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-background-vertical.9.pngbin430 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-background-vertical@2x.9.pngbin1291 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-background-vertical@3x.9.pngbin2041 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-background-vertical@4x.9.pngbin3159 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-disabled.pngbin478 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-disabled@2x.pngbin1031 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-disabled@3x.pngbin1685 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-disabled@4x.pngbin2514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused-hovered.pngbin500 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused-hovered@2x.pngbin1113 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused-hovered@3x.pngbin1728 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused-hovered@4x.pngbin2541 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused-pressed.pngbin500 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused-pressed@2x.pngbin1113 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused-pressed@3x.pngbin1728 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused-pressed@4x.pngbin2541 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused.pngbin419 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused@2x.pngbin1008 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused@3x.pngbin1702 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-focused@4x.pngbin2593 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-hovered.pngbin478 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-hovered@2x.pngbin1031 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-hovered@3x.pngbin1685 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-hovered@4x.pngbin2514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-pressed.pngbin478 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-pressed@2x.pngbin1031 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-pressed@3x.pngbin1685 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle-pressed@4x.pngbin2514 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle.pngbin441 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle@2x.pngbin1010 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle@3x.pngbin1687 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-handle@4x.pngbin2518 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-horizontal-disabled.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-horizontal-disabled@2x.9.pngbin316 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-horizontal-disabled@3x.9.pngbin417 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-horizontal-disabled@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-horizontal.9.pngbin195 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-horizontal@2x.9.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-horizontal@3x.9.pngbin438 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-horizontal@4x.9.pngbin567 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-vertical-disabled.9.pngbin206 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-vertical-disabled@2x.9.pngbin328 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-vertical-disabled@3x.9.pngbin442 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-vertical-disabled@4x.9.pngbin607 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-vertical.9.pngbin207 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-vertical@2x.9.pngbin317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-vertical@3x.9.pngbin450 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/slider-progress-vertical@4x.9.pngbin593 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-disabled.9.pngbin425 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-disabled@2x.9.pngbin955 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-disabled@3x.9.pngbin1600 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-disabled@4x.9.pngbin2303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-editable.9.pngbin481 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-editable@2x.9.pngbin1145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-editable@3x.9.pngbin1922 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-editable@4x.9.pngbin2775 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-focused.9.pngbin468 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-focused@2x.9.pngbin1076 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-focused@3x.9.pngbin1850 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background-focused@4x.9.pngbin2733 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background.9.pngbin454 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background@2x.9.pngbin1087 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background@3x.9.pngbin1892 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-background@4x.9.pngbin2732 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-disabled.9.pngbin226 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-disabled@2x.9.pngbin413 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-disabled@3x.9.pngbin663 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-disabled@4x.9.pngbin1018 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused.9.pngbin224 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@2x.9.pngbin410 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@3x.9.pngbin598 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@4x.9.pngbin936 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered.9.pngbin224 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@2x.9.pngbin410 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@3x.9.pngbin598 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@4x.9.pngbin936 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused.9.pngbin237 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@2x.9.pngbin425 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@3x.9.pngbin738 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@4x.9.pngbin965 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered.9.pngbin237 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@2x.9.pngbin425 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@3x.9.pngbin738 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@4x.9.pngbin965 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed.9.pngbin244 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@2x.9.pngbin417 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@3x.9.pngbin745 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@4x.9.pngbin1000 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored.9.pngbin244 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@2x.9.pngbin441 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@3x.9.pngbin741 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@4x.9.pngbin1003 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed.9.pngbin227 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@2x.9.pngbin418 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@3x.9.pngbin642 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@4x.9.pngbin959 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable.9.pngbin227 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable@2x.9.pngbin420 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable@3x.9.pngbin740 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-editable@4x.9.pngbin1033 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-focused.9.pngbin227 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-focused@2x.9.pngbin407 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-focused@3x.9.pngbin608 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-focused@4x.9.pngbin954 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-hovered.9.pngbin227 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-hovered@2x.9.pngbin407 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-hovered@3x.9.pngbin608 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-hovered@4x.9.pngbin954 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled.9.pngbin242 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@2x.9.pngbin404 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@3x.9.pngbin749 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@4x.9.pngbin971 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused.9.pngbin244 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@2x.9.pngbin417 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@3x.9.pngbin738 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@4x.9.pngbin1005 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered.9.pngbin244 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@2x.9.pngbin417 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@3x.9.pngbin738 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@4x.9.pngbin1005 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed.9.pngbin241 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@2x.9.pngbin432 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@3x.9.pngbin739 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@4x.9.pngbin970 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored.9.pngbin244 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@2x.9.pngbin434 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@3x.9.pngbin729 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@4x.9.pngbin983 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-pressed.9.pngbin227 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-pressed@2x.9.pngbin432 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-pressed@3x.9.pngbin723 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down-pressed@4x.9.pngbin952 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down.9.pngbin227 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down@2x.9.pngbin422 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down@3x.9.pngbin600 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-down@4x.9.pngbin962 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-disabled.9.pngbin260 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-disabled@2x.9.pngbin429 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-disabled@3x.9.pngbin762 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-disabled@4x.9.pngbin1004 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused.9.pngbin265 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@2x.9.pngbin442 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@3x.9.pngbin756 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@4x.9.pngbin1002 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered.9.pngbin265 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@2x.9.pngbin442 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@3x.9.pngbin756 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@4x.9.pngbin1002 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused.9.pngbin250 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@2x.9.pngbin429 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@3x.9.pngbin719 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@4x.9.pngbin988 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered.9.pngbin250 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@2x.9.pngbin429 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@3x.9.pngbin719 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@4x.9.pngbin988 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed.9.pngbin251 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@2x.9.pngbin437 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@3x.9.pngbin731 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@4x.9.pngbin1010 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored.9.pngbin251 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@2x.9.pngbin448 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@3x.9.pngbin775 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@4x.9.pngbin1044 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed.9.pngbin262 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@2x.9.pngbin444 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@3x.9.pngbin764 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@4x.9.pngbin1022 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable.9.pngbin262 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable@2x.9.pngbin456 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable@3x.9.pngbin758 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-editable@4x.9.pngbin1035 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-focused.9.pngbin262 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-focused@2x.9.pngbin436 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-focused@3x.9.pngbin776 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-focused@4x.9.pngbin1032 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-hovered.9.pngbin262 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-hovered@2x.9.pngbin436 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-hovered@3x.9.pngbin776 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-hovered@4x.9.pngbin1032 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled.9.pngbin249 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@2x.9.pngbin438 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@3x.9.pngbin725 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@4x.9.pngbin1041 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused.9.pngbin251 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@2x.9.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@3x.9.pngbin734 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@4x.9.pngbin1007 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered.9.pngbin251 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@2x.9.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@3x.9.pngbin734 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@4x.9.pngbin1007 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed.9.pngbin250 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@2x.9.pngbin447 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@3x.9.pngbin756 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@4x.9.pngbin1004 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored.9.pngbin251 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@2x.9.pngbin449 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@3x.9.pngbin736 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@4x.9.pngbin1013 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-pressed.9.pngbin259 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-pressed@2x.9.pngbin450 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-pressed@3x.9.pngbin760 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up-pressed@4x.9.pngbin1009 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up.9.pngbin262 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up@2x.9.pngbin462 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up@3x.9.pngbin758 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/spinbox-indicator-up@4x.9.pngbin1010 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-disabled.pngbin93 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-disabled@2x.pngbin99 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-disabled@3x.pngbin112 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-disabled@4x.pngbin130 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-hovered.pngbin93 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-hovered@2x.pngbin99 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-hovered@3x.pngbin112 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-hovered@4x.pngbin130 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-pressed.pngbin93 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-pressed@2x.pngbin99 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-pressed@3x.pngbin112 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle-pressed@4x.pngbin129 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle.pngbin93 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle@2x.pngbin99 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle@3x.pngbin112 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/splitview-handle@4x.pngbin130 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-disabled.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-disabled@2x.9.pngbin201 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-disabled@3x.9.pngbin228 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-disabled@4x.9.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-focused.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-focused@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-focused@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-focused@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-highlighted.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-highlighted@2x.9.pngbin205 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-highlighted@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-highlighted@4x.9.pngbin307 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-hovered.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-hovered@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-hovered@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-hovered@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-pressed.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-pressed@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-pressed@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background-pressed@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/swipedelegate-background@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle-disabled.pngbin409 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle-disabled@2x.pngbin811 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle-disabled@3x.pngbin1317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle-disabled@4x.pngbin1908 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle-pressed.pngbin409 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle-pressed@2x.pngbin811 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle-pressed@3x.pngbin1317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle-pressed@4x.pngbin1908 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle.pngbin301 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle@2x.pngbin599 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle@3x.pngbin1002 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-handle@4x.pngbin1563 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-focused.pngbin550 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-focused@2x.pngbin1129 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-focused@3x.pngbin1984 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-focused@4x.pngbin2835 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-hovered.pngbin550 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-hovered@2x.pngbin1129 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-hovered@3x.pngbin1984 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-hovered@4x.pngbin2835 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-pressed.pngbin541 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-pressed@2x.pngbin1090 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-pressed@3x.pngbin2024 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked-pressed@4x.pngbin2919 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked.pngbin546 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked@2x.pngbin1142 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked@3x.pngbin2025 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-checked@4x.pngbin2880 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-disabled.pngbin572 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-disabled@2x.pngbin1155 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-disabled@3x.pngbin2007 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-disabled@4x.pngbin2894 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-focused.pngbin571 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-focused@2x.pngbin1124 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-focused@3x.pngbin2029 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-focused@4x.pngbin2942 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-hovered.pngbin571 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-hovered@2x.pngbin1124 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-hovered@3x.pngbin2029 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-hovered@4x.pngbin2942 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-pressed.pngbin563 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-pressed@2x.pngbin1142 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-pressed@3x.pngbin1996 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator-pressed@4x.pngbin2885 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator.pngbin564 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator@2x.pngbin1086 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator@3x.pngbin2042 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switch-indicator@4x.pngbin2920 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-disabled.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-disabled@2x.9.pngbin201 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-disabled@3x.9.pngbin228 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-disabled@4x.9.pngbin303 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-focused.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-focused@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-focused@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-focused@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-hovered.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-hovered@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-hovered@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-hovered@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-pressed.9.pngbin147 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-pressed@2x.9.pngbin204 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-pressed@3x.9.pngbin231 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background-pressed@4x.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background.9.pngbin145 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background@2x.9.pngbin194 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background@3x.9.pngbin221 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-background@4x.9.pngbin296 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle-disabled.pngbin409 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle-disabled@2x.pngbin811 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle-disabled@3x.pngbin1317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle-disabled@4x.pngbin1908 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle-pressed.pngbin409 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle-pressed@2x.pngbin811 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle-pressed@3x.pngbin1317 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle-pressed@4x.pngbin1908 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle.pngbin301 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle@2x.pngbin599 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle@3x.pngbin1002 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-handle@4x.pngbin1563 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused.pngbin550 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@2x.pngbin1129 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@3x.pngbin1984 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@4x.pngbin2835 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered.pngbin550 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@2x.pngbin1129 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@3x.pngbin1984 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@4x.pngbin2835 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed.pngbin541 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@2x.pngbin1090 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@3x.pngbin2024 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@4x.pngbin2919 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked.pngbin546 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked@2x.pngbin1142 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked@3x.pngbin2025 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-checked@4x.pngbin2880 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-disabled.pngbin572 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-disabled@2x.pngbin1155 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-disabled@3x.pngbin2007 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-disabled@4x.pngbin2894 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-focused.pngbin571 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-focused@2x.pngbin1124 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-focused@3x.pngbin2029 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-focused@4x.pngbin2942 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-hovered.pngbin571 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-hovered@2x.pngbin1124 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-hovered@3x.pngbin2029 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-hovered@4x.pngbin2942 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-pressed.pngbin563 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-pressed@2x.pngbin1142 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-pressed@3x.pngbin1996 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator-pressed@4x.pngbin2885 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator.pngbin564 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator@2x.pngbin1086 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator@3x.pngbin2042 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/switchdelegate-indicator@4x.pngbin2920 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbar-background.pngbin90 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbar-background@2x.pngbin101 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbar-background@3x.pngbin107 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbar-background@4x.pngbin128 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-checked.9.pngbin210 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-checked@2x.9.pngbin431 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-checked@3x.9.pngbin608 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-checked@4x.9.pngbin924 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-disabled-checked.9.pngbin209 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-disabled-checked@2x.9.pngbin430 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-disabled-checked@3x.9.pngbin608 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-disabled-checked@4x.9.pngbin923 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-disabled.9.pngbin209 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-disabled@2x.9.pngbin430 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-disabled@3x.9.pngbin608 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-disabled@4x.9.pngbin923 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-hovered.9.pngbin209 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-hovered@2x.9.pngbin430 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-hovered@3x.9.pngbin607 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-hovered@4x.9.pngbin923 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-pressed.9.pngbin208 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-pressed@2x.9.pngbin429 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-pressed@3x.9.pngbin606 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background-pressed@4x.9.pngbin922 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background.9.pngbin208 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background@2x.9.pngbin429 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background@3x.9.pngbin606 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tabbutton-background@4x.9.pngbin922 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background-disabled.9.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background-disabled@2x.9.pngbin527 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background-disabled@3x.9.pngbin865 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background-disabled@4x.9.pngbin1246 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background-focused.9.pngbin331 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background-focused@2x.9.pngbin617 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background-focused@3x.9.pngbin1017 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background-focused@4x.9.pngbin1598 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background.9.pngbin345 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background@2x.9.pngbin652 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background@3x.9.pngbin1019 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textarea-background@4x.9.pngbin1627 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background-disabled.9.pngbin397 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background-disabled@2x.9.pngbin829 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background-disabled@3x.9.pngbin1349 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background-disabled@4x.9.pngbin1940 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background-focused.9.pngbin426 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background-focused@2x.9.pngbin961 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background-focused@3x.9.pngbin1591 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background-focused@4x.9.pngbin2335 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background.9.pngbin437 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background@2x.9.pngbin1011 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background@3x.9.pngbin1655 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/textfield-background@4x.9.pngbin2386 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbar-background.pngbin92 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbar-background@2x.pngbin102 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbar-background@3x.pngbin108 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbar-background@4x.pngbin130 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked-focused.9.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked-focused@2x.9.pngbin298 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked-focused@3x.9.pngbin428 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked-focused@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked-hovered.9.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked-hovered@2x.9.pngbin298 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked-hovered@3x.9.pngbin428 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked-hovered@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked.9.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked@2x.9.pngbin298 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked@3x.9.pngbin428 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-checked@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-disabled-checked.9.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-disabled-checked@2x.9.pngbin298 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-disabled-checked@3x.9.pngbin428 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-disabled-checked@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-focused.9.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-focused@2x.9.pngbin298 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-focused@3x.9.pngbin428 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-focused@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-hovered.9.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-hovered@2x.9.pngbin298 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-hovered@3x.9.pngbin428 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-hovered@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-pressed.9.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-pressed@2x.9.pngbin298 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-pressed@3x.9.pngbin428 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background-pressed@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background.9.pngbin189 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background@2x.9.pngbin298 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background@3x.9.pngbin428 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolbutton-background@4x.9.pngbin576 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolseparator-separator-horizontal.9.pngbin177 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolseparator-separator-horizontal@2x.9.pngbin254 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolseparator-separator-horizontal@3x.9.pngbin398 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolseparator-separator-horizontal@4x.9.pngbin550 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolseparator-separator-vertical.9.pngbin178 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolseparator-separator-vertical@2x.9.pngbin250 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolseparator-separator-vertical@3x.9.pngbin398 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/toolseparator-separator-vertical@4x.9.pngbin557 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tooltip-background.9.pngbin360 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tooltip-background@2x.9.pngbin651 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tooltip-background@3x.9.pngbin986 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/images/tooltip-background@4x.9.pngbin1515 -> 0 bytes
-rw-r--r--src/imports/controls/imagine/imagine.pri59
-rw-r--r--src/imports/controls/imagine/imagine.pro30
-rw-r--r--src/imports/controls/imagine/plugins.qmltypes60
-rw-r--r--src/imports/controls/imagine/qmldir5
-rw-r--r--src/imports/controls/imagine/qquickimageselector.cpp338
-rw-r--r--src/imports/controls/imagine/qquickimageselector_p.h151
-rw-r--r--src/imports/controls/imagine/qquickimaginestyle.cpp168
-rw-r--r--src/imports/controls/imagine/qquickimaginestyle_p.h93
-rw-r--r--src/imports/controls/imagine/qquickimaginetheme.cpp66
-rw-r--r--src/imports/controls/imagine/qquickimaginetheme_p.h65
-rw-r--r--src/imports/controls/imagine/qquickninepatchimage.cpp440
-rw-r--r--src/imports/controls/imagine/qquickninepatchimage_p.h106
-rw-r--r--src/imports/controls/imagine/qtquickcontrols2imaginestyleplugin.cpp94
-rw-r--r--src/imports/controls/material/ApplicationWindow.qml56
-rw-r--r--src/imports/controls/material/BoxShadow.qml70
-rw-r--r--src/imports/controls/material/BusyIndicator.qml61
-rw-r--r--src/imports/controls/material/Button.qml118
-rw-r--r--src/imports/controls/material/CheckBox.qml83
-rw-r--r--src/imports/controls/material/CheckDelegate.qml98
-rw-r--r--src/imports/controls/material/CheckIndicator.qml120
-rw-r--r--src/imports/controls/material/ComboBox.qml179
-rw-r--r--src/imports/controls/material/CursorDelegate.qml65
-rw-r--r--src/imports/controls/material/DelayButton.qml117
-rw-r--r--src/imports/controls/material/Dial.qml85
-rw-r--r--src/imports/controls/material/Dialog.qml113
-rw-r--r--src/imports/controls/material/DialogButtonBox.qml79
-rw-r--r--src/imports/controls/material/Drawer.qml91
-rw-r--r--src/imports/controls/material/ElevationEffect.qml279
-rw-r--r--src/imports/controls/material/Frame.qml63
-rw-r--r--src/imports/controls/material/GroupBox.qml81
-rw-r--r--src/imports/controls/material/ItemDelegate.qml89
-rw-r--r--src/imports/controls/material/LICENSE_ANGULARJS.txt19
-rw-r--r--src/imports/controls/material/Label.qml46
-rw-r--r--src/imports/controls/material/Menu.qml106
-rw-r--r--src/imports/controls/material/MenuBar.qml65
-rw-r--r--src/imports/controls/material/MenuBarItem.qml89
-rw-r--r--src/imports/controls/material/MenuItem.qml112
-rw-r--r--src/imports/controls/material/MenuSeparator.qml56
-rw-r--r--src/imports/controls/material/Page.qml56
-rw-r--r--src/imports/controls/material/PageIndicator.qml71
-rw-r--r--src/imports/controls/material/Pane.qml61
-rw-r--r--src/imports/controls/material/Popup.qml85
-rw-r--r--src/imports/controls/material/ProgressBar.qml67
-rw-r--r--src/imports/controls/material/RadioButton.qml83
-rw-r--r--src/imports/controls/material/RadioDelegate.qml98
-rw-r--r--src/imports/controls/material/RadioIndicator.qml62
-rw-r--r--src/imports/controls/material/RangeSlider.qml91
-rw-r--r--src/imports/controls/material/RectangularGlow.qml240
-rw-r--r--src/imports/controls/material/RoundButton.qml115
-rw-r--r--src/imports/controls/material/ScrollBar.qml89
-rw-r--r--src/imports/controls/material/ScrollIndicator.qml75
-rw-r--r--src/imports/controls/material/Slider.qml80
-rw-r--r--src/imports/controls/material/SliderHandle.qml76
-rw-r--r--src/imports/controls/material/SpinBox.qml156
-rw-r--r--src/imports/controls/material/SplitView.qml74
-rw-r--r--src/imports/controls/material/StackView.qml79
-rw-r--r--src/imports/controls/material/SwipeDelegate.qml99
-rw-r--r--src/imports/controls/material/SwipeView.qml65
-rw-r--r--src/imports/controls/material/Switch.qml79
-rw-r--r--src/imports/controls/material/SwitchDelegate.qml98
-rw-r--r--src/imports/controls/material/SwitchIndicator.qml81
-rw-r--r--src/imports/controls/material/TabBar.qml89
-rw-r--r--src/imports/controls/material/TabButton.qml79
-rw-r--r--src/imports/controls/material/TextArea.qml84
-rw-r--r--src/imports/controls/material/TextField.qml86
-rw-r--r--src/imports/controls/material/ToolBar.qml66
-rw-r--r--src/imports/controls/material/ToolButton.qml87
-rw-r--r--src/imports/controls/material/ToolSeparator.qml57
-rw-r--r--src/imports/controls/material/ToolTip.qml83
-rw-r--r--src/imports/controls/material/Tumbler.qml76
-rw-r--r--src/imports/controls/material/dependencies.json7
-rw-r--r--src/imports/controls/material/images/arrow-indicator.pngbin200 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/arrow-indicator.svg56
-rw-r--r--src/imports/controls/material/images/arrow-indicator@2x.pngbin239 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/arrow-indicator@3x.pngbin277 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/arrow-indicator@4x.pngbin317 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/check.pngbin705 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/check@2x.pngbin1347 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/check@3x.pngbin1982 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/check@4x.pngbin2580 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/drop-indicator.pngbin205 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/drop-indicator.svg5
-rw-r--r--src/imports/controls/material/images/drop-indicator@2x.pngbin255 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/drop-indicator@3x.pngbin306 -> 0 bytes
-rw-r--r--src/imports/controls/material/images/drop-indicator@4x.pngbin331 -> 0 bytes
-rw-r--r--src/imports/controls/material/material.pri71
-rw-r--r--src/imports/controls/material/material.pro27
-rw-r--r--src/imports/controls/material/plugins.qmltypes282
-rw-r--r--src/imports/controls/material/qmldir4
-rw-r--r--src/imports/controls/material/qquickmaterialbusyindicator.cpp245
-rw-r--r--src/imports/controls/material/qquickmaterialbusyindicator_p.h86
-rw-r--r--src/imports/controls/material/qquickmaterialprogressbar.cpp245
-rw-r--r--src/imports/controls/material/qquickmaterialprogressbar_p.h89
-rw-r--r--src/imports/controls/material/qquickmaterialripple.cpp442
-rw-r--r--src/imports/controls/material/qquickmaterialripple_p.h118
-rw-r--r--src/imports/controls/material/qquickmaterialstyle.cpp1334
-rw-r--r--src/imports/controls/material/qquickmaterialstyle_p.h313
-rw-r--r--src/imports/controls/material/qquickmaterialtheme.cpp112
-rw-r--r--src/imports/controls/material/qquickmaterialtheme_p.h65
-rw-r--r--src/imports/controls/material/qt_attribution.json13
-rw-r--r--src/imports/controls/material/qtquickcontrols2materialstyleplugin.cpp102
-rw-r--r--src/imports/controls/material/qtquickcontrols2materialstyleplugin.qrc20
-rw-r--r--src/imports/controls/material/shaders/+glslcore/RectangularGlow.frag25
-rw-r--r--src/imports/controls/material/shaders/+hlsl/RectangularGlow.frag21
-rw-r--r--src/imports/controls/material/shaders/+qsb/RectangularGlow.fragbin2321 -> 0 bytes
-rw-r--r--src/imports/controls/material/shaders/RectangularGlow.frag19
-rw-r--r--src/imports/controls/material/shaders/RectangularGlow_rhi.frag28
-rw-r--r--src/imports/controls/plugins.qmltypes660
-rw-r--r--src/imports/controls/qmldir5
-rw-r--r--src/imports/controls/qquickdefaultbusyindicator.cpp223
-rw-r--r--src/imports/controls/qquickdefaultbusyindicator_p.h91
-rw-r--r--src/imports/controls/qquickdefaultdial.cpp122
-rw-r--r--src/imports/controls/qquickdefaultdial_p.h80
-rw-r--r--src/imports/controls/qquickdefaultprogressbar.cpp280
-rw-r--r--src/imports/controls/qquickdefaultprogressbar_p.h89
-rw-r--r--src/imports/controls/qquickdefaultstyle.cpp246
-rw-r--r--src/imports/controls/qquickdefaultstyle_p.h147
-rw-r--r--src/imports/controls/qquickdefaulttheme.cpp89
-rw-r--r--src/imports/controls/qquickdefaulttheme_p.h65
-rw-r--r--src/imports/controls/qtquickcontrols2plugin.cpp320
-rw-r--r--src/imports/controls/qtquickcontrols2plugin.qrc24
-rw-r--r--src/imports/controls/universal/ApplicationWindow.qml62
-rw-r--r--src/imports/controls/universal/BusyIndicator.qml60
-rw-r--r--src/imports/controls/universal/Button.qml90
-rw-r--r--src/imports/controls/universal/CheckBox.qml74
-rw-r--r--src/imports/controls/universal/CheckDelegate.qml97
-rw-r--r--src/imports/controls/universal/CheckIndicator.qml82
-rw-r--r--src/imports/controls/universal/ComboBox.qml158
-rw-r--r--src/imports/controls/universal/DelayButton.qml94
-rw-r--r--src/imports/controls/universal/Dial.qml86
-rw-r--r--src/imports/controls/universal/Dialog.qml91
-rw-r--r--src/imports/controls/universal/DialogButtonBox.qml76
-rw-r--r--src/imports/controls/universal/Drawer.qml78
-rw-r--r--src/imports/controls/universal/Frame.qml55
-rw-r--r--src/imports/controls/universal/GroupBox.qml75
-rw-r--r--src/imports/controls/universal/ItemDelegate.qml87
-rw-r--r--src/imports/controls/universal/Label.qml47
-rw-r--r--src/imports/controls/universal/Menu.qml81
-rw-r--r--src/imports/controls/universal/MenuBar.qml64
-rw-r--r--src/imports/controls/universal/MenuBarItem.qml91
-rw-r--r--src/imports/controls/universal/MenuItem.qml115
-rw-r--r--src/imports/controls/universal/MenuSeparator.qml62
-rw-r--r--src/imports/controls/universal/Page.qml56
-rw-r--r--src/imports/controls/universal/PageIndicator.qml69
-rw-r--r--src/imports/controls/universal/Pane.qml54
-rw-r--r--src/imports/controls/universal/Popup.qml64
-rw-r--r--src/imports/controls/universal/ProgressBar.qml68
-rw-r--r--src/imports/controls/universal/README.md9
-rw-r--r--src/imports/controls/universal/RadioButton.qml74
-rw-r--r--src/imports/controls/universal/RadioDelegate.qml97
-rw-r--r--src/imports/controls/universal/RadioIndicator.qml80
-rw-r--r--src/imports/controls/universal/RangeSlider.qml109
-rw-r--r--src/imports/controls/universal/RoundButton.qml91
-rw-r--r--src/imports/controls/universal/ScrollBar.qml93
-rw-r--r--src/imports/controls/universal/ScrollIndicator.qml78
-rw-r--r--src/imports/controls/universal/Slider.qml96
-rw-r--r--src/imports/controls/universal/SpinBox.qml148
-rw-r--r--src/imports/controls/universal/SplitView.qml56
-rw-r--r--src/imports/controls/universal/StackView.qml76
-rw-r--r--src/imports/controls/universal/SwipeDelegate.qml93
-rw-r--r--src/imports/controls/universal/Switch.qml74
-rw-r--r--src/imports/controls/universal/SwitchDelegate.qml97
-rw-r--r--src/imports/controls/universal/SwitchIndicator.qml81
-rw-r--r--src/imports/controls/universal/TabBar.qml73
-rw-r--r--src/imports/controls/universal/TabButton.qml70
-rw-r--r--src/imports/controls/universal/TextArea.qml94
-rw-r--r--src/imports/controls/universal/TextField.qml94
-rw-r--r--src/imports/controls/universal/ToolBar.qml53
-rw-r--r--src/imports/controls/universal/ToolButton.qml84
-rw-r--r--src/imports/controls/universal/ToolSeparator.qml59
-rw-r--r--src/imports/controls/universal/ToolTip.qml72
-rw-r--r--src/imports/controls/universal/Tumbler.qml76
-rw-r--r--src/imports/controls/universal/dependencies.json7
-rw-r--r--src/imports/controls/universal/images/checkmark.pngbin243 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/checkmark@2x.pngbin367 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/checkmark@3x.pngbin817 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/checkmark@4x.pngbin634 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/downarrow.pngbin233 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/downarrow@2x.pngbin325 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/downarrow@3x.pngbin387 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/downarrow@4x.pngbin423 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/leftarrow.pngbin179 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/leftarrow@2x.pngbin243 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/leftarrow@3x.pngbin304 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/leftarrow@4x.pngbin343 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/rightarrow.pngbin173 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/rightarrow@2x.pngbin247 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/rightarrow@3x.pngbin279 -> 0 bytes
-rw-r--r--src/imports/controls/universal/images/rightarrow@4x.pngbin359 -> 0 bytes
-rw-r--r--src/imports/controls/universal/plugins.qmltypes140
-rw-r--r--src/imports/controls/universal/qmldir4
-rw-r--r--src/imports/controls/universal/qquickuniversalbusyindicator.cpp251
-rw-r--r--src/imports/controls/universal/qquickuniversalbusyindicator_p.h87
-rw-r--r--src/imports/controls/universal/qquickuniversalfocusrectangle.cpp84
-rw-r--r--src/imports/controls/universal/qquickuniversalfocusrectangle_p.h67
-rw-r--r--src/imports/controls/universal/qquickuniversalprogressbar.cpp338
-rw-r--r--src/imports/controls/universal/qquickuniversalprogressbar_p.h89
-rw-r--r--src/imports/controls/universal/qquickuniversalstyle.cpp618
-rw-r--r--src/imports/controls/universal/qquickuniversalstyle_p.h241
-rw-r--r--src/imports/controls/universal/qquickuniversaltheme.cpp70
-rw-r--r--src/imports/controls/universal/qquickuniversaltheme_p.h65
-rw-r--r--src/imports/controls/universal/qtquickcontrols2universalstyleplugin.cpp95
-rw-r--r--src/imports/controls/universal/qtquickcontrols2universalstyleplugin.qrc20
-rw-r--r--src/imports/controls/universal/universal.pri65
-rw-r--r--src/imports/controls/universal/universal.pro27
-rw-r--r--src/imports/imports.pro12
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-colordialog-gtk.pngbin11057 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-filedialog-gtk.pngbin49506 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-folderdialog-gtk.pngbin49092 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-fontdialog-gtk.pngbin43653 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-menu.pngbin6377 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-menubar.pngbin71036 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-messagedialog-android.pngbin7946 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-messagedialog-informative-android.pngbin15759 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-systemtrayicon-menu.pngbin24016 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-systemtrayicon-message.pngbin36932 -> 0 bytes
-rw-r--r--src/imports/platform/doc/images/qtlabsplatform-systemtrayicon.pngbin19927 -> 0 bytes
-rw-r--r--src/imports/platform/doc/qtlabsplatform.qdocconf41
-rw-r--r--src/imports/platform/doc/src/includes/widgets.qdocinc29
-rw-r--r--src/imports/platform/doc/src/qtlabsplatform-index.qdoc50
-rw-r--r--src/imports/platform/doc/src/qtlabsplatform-qmltypes.qdoc58
-rw-r--r--src/imports/platform/platform.pri39
-rw-r--r--src/imports/platform/platform.pro22
-rw-r--r--src/imports/platform/plugins.qmltypes489
-rw-r--r--src/imports/platform/qmldir3
-rw-r--r--src/imports/platform/qquickplatformcolordialog.cpp206
-rw-r--r--src/imports/platform/qquickplatformcolordialog_p.h98
-rw-r--r--src/imports/platform/qquickplatformdialog.cpp409
-rw-r--r--src/imports/platform/qquickplatformdialog_p.h153
-rw-r--r--src/imports/platform/qquickplatformfiledialog.cpp664
-rw-r--r--src/imports/platform/qquickplatformfiledialog_p.h197
-rw-r--r--src/imports/platform/qquickplatformfolderdialog.cpp281
-rw-r--r--src/imports/platform/qquickplatformfolderdialog_p.h110
-rw-r--r--src/imports/platform/qquickplatformfontdialog.cpp208
-rw-r--r--src/imports/platform/qquickplatformfontdialog_p.h98
-rw-r--r--src/imports/platform/qquickplatformicon.cpp81
-rw-r--r--src/imports/platform/qquickplatformicon_p.h86
-rw-r--r--src/imports/platform/qquickplatformiconloader.cpp101
-rw-r--r--src/imports/platform/qquickplatformiconloader_p.h86
-rw-r--r--src/imports/platform/qquickplatformmenu.cpp940
-rw-r--r--src/imports/platform/qquickplatformmenu_p.h223
-rw-r--r--src/imports/platform/qquickplatformmenubar.cpp330
-rw-r--r--src/imports/platform/qquickplatformmenubar_p.h120
-rw-r--r--src/imports/platform/qquickplatformmenuitem.cpp625
-rw-r--r--src/imports/platform/qquickplatformmenuitem_p.h199
-rw-r--r--src/imports/platform/qquickplatformmenuitemgroup.cpp390
-rw-r--r--src/imports/platform/qquickplatformmenuitemgroup_p.h123
-rw-r--r--src/imports/platform/qquickplatformmenuseparator.cpp65
-rw-r--r--src/imports/platform/qquickplatformmenuseparator_p.h67
-rw-r--r--src/imports/platform/qquickplatformmessagedialog.cpp383
-rw-r--r--src/imports/platform/qquickplatformmessagedialog_p.h121
-rw-r--r--src/imports/platform/qquickplatformstandardpaths.cpp159
-rw-r--r--src/imports/platform/qquickplatformstandardpaths_p.h92
-rw-r--r--src/imports/platform/qquickplatformsystemtrayicon.cpp484
-rw-r--r--src/imports/platform/qquickplatformsystemtrayicon_p.h155
-rw-r--r--src/imports/platform/qtlabsplatformplugin.cpp116
-rw-r--r--src/imports/platform/widgets/qwidgetplatform_p.h170
-rw-r--r--src/imports/platform/widgets/qwidgetplatformcolordialog.cpp87
-rw-r--r--src/imports/platform/widgets/qwidgetplatformcolordialog_p.h78
-rw-r--r--src/imports/platform/widgets/qwidgetplatformdialog.cpp58
-rw-r--r--src/imports/platform/widgets/qwidgetplatformdialog_p.h66
-rw-r--r--src/imports/platform/widgets/qwidgetplatformfiledialog.cpp140
-rw-r--r--src/imports/platform/widgets/qwidgetplatformfiledialog_p.h84
-rw-r--r--src/imports/platform/widgets/qwidgetplatformfontdialog.cpp87
-rw-r--r--src/imports/platform/widgets/qwidgetplatformfontdialog_p.h78
-rw-r--r--src/imports/platform/widgets/qwidgetplatformmenu.cpp183
-rw-r--r--src/imports/platform/widgets/qwidgetplatformmenu_p.h98
-rw-r--r--src/imports/platform/widgets/qwidgetplatformmenuitem.cpp125
-rw-r--r--src/imports/platform/widgets/qwidgetplatformmenuitem_p.h88
-rw-r--r--src/imports/platform/widgets/qwidgetplatformmessagedialog.cpp87
-rw-r--r--src/imports/platform/widgets/qwidgetplatformmessagedialog_p.h75
-rw-r--r--src/imports/platform/widgets/qwidgetplatformsystemtrayicon.cpp118
-rw-r--r--src/imports/platform/widgets/qwidgetplatformsystemtrayicon_p.h87
-rw-r--r--src/imports/platform/widgets/widgets.pri56
-rw-r--r--src/imports/templates/dependencies.json12
-rw-r--r--src/imports/templates/doc/src/qtquicktemplates2-index.qdoc54
-rw-r--r--src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc63
-rw-r--r--src/imports/templates/plugins.qmltypes1876
-rw-r--r--src/imports/templates/qmldir4
-rw-r--r--src/imports/templates/qtquicktemplates2plugin.cpp361
-rw-r--r--src/imports/templates/templates.pro17
-rw-r--r--src/quickcontrols2/configure.json60
-rw-r--r--src/quickcontrols2/qquickanimatednode.cpp167
-rw-r--r--src/quickcontrols2/qquickanimatednode_p.h112
-rw-r--r--src/quickcontrols2/qquickattachedobject.cpp274
-rw-r--r--src/quickcontrols2/qquickattachedobject_p.h84
-rw-r--r--src/quickcontrols2/qquickchecklabel.cpp49
-rw-r--r--src/quickcontrols2/qquickchecklabel_p.h68
-rw-r--r--src/quickcontrols2/qquickclippedtext.cpp116
-rw-r--r--src/quickcontrols2/qquickclippedtext_p.h96
-rw-r--r--src/quickcontrols2/qquickcolor.cpp66
-rw-r--r--src/quickcontrols2/qquickcolor_p.h70
-rw-r--r--src/quickcontrols2/qquickcolorimage.cpp103
-rw-r--r--src/quickcontrols2/qquickcolorimage_p.h88
-rw-r--r--src/quickcontrols2/qquickiconimage.cpp213
-rw-r--r--src/quickcontrols2/qquickiconimage_p.h94
-rw-r--r--src/quickcontrols2/qquickiconimage_p_p.h77
-rw-r--r--src/quickcontrols2/qquickiconlabel.cpp642
-rw-r--r--src/quickcontrols2/qquickiconlabel_p.h140
-rw-r--r--src/quickcontrols2/qquickiconlabel_p_p.h111
-rw-r--r--src/quickcontrols2/qquickitemgroup.cpp122
-rw-r--r--src/quickcontrols2/qquickitemgroup_p.h83
-rw-r--r--src/quickcontrols2/qquickmnemoniclabel.cpp132
-rw-r--r--src/quickcontrols2/qquickmnemoniclabel_p.h82
-rw-r--r--src/quickcontrols2/qquickpaddedrectangle.cpp211
-rw-r--r--src/quickcontrols2/qquickpaddedrectangle_p.h119
-rw-r--r--src/quickcontrols2/qquickplaceholdertext.cpp73
-rw-r--r--src/quickcontrols2/qquickplaceholdertext_p.h74
-rw-r--r--src/quickcontrols2/qquickstyle.cpp662
-rw-r--r--src/quickcontrols2/qquickstyle.h60
-rw-r--r--src/quickcontrols2/qquickstyle_p.h76
-rw-r--r--src/quickcontrols2/qquickstyleplugin.cpp91
-rw-r--r--src/quickcontrols2/qquickstyleplugin_p.h80
-rw-r--r--src/quickcontrols2/qquickstyleselector.cpp157
-rw-r--r--src/quickcontrols2/qquickstyleselector_p.h86
-rw-r--r--src/quickcontrols2/qquickstyleselector_p_p.h70
-rw-r--r--src/quickcontrols2/qquicktumblerview.cpp317
-rw-r--r--src/quickcontrols2/qquicktumblerview_p.h109
-rw-r--r--src/quickcontrols2/qtquickcontrols2global.h56
-rw-r--r--src/quickcontrols2/qtquickcontrols2global_p.h56
-rw-r--r--src/quickcontrols2/quickcontrols2.pri44
-rw-r--r--src/quickcontrols2/quickcontrols2.pro14
-rw-r--r--src/quicktemplates2/configure.json28
-rw-r--r--src/quicktemplates2/qquickabstractbutton.cpp1172
-rw-r--r--src/quicktemplates2/qquickabstractbutton_p.h223
-rw-r--r--src/quicktemplates2/qquickabstractbutton_p_p.h148
-rw-r--r--src/quicktemplates2/qquickaction.cpp577
-rw-r--r--src/quicktemplates2/qquickaction_p.h128
-rw-r--r--src/quicktemplates2/qquickaction_p_p.h133
-rw-r--r--src/quicktemplates2/qquickactiongroup.cpp471
-rw-r--r--src/quicktemplates2/qquickactiongroup_p.h130
-rw-r--r--src/quicktemplates2/qquickapplicationwindow.cpp1078
-rw-r--r--src/quicktemplates2/qquickapplicationwindow_p.h184
-rw-r--r--src/quicktemplates2/qquickbusyindicator.cpp130
-rw-r--r--src/quicktemplates2/qquickbusyindicator_p.h89
-rw-r--r--src/quicktemplates2/qquickbutton.cpp162
-rw-r--r--src/quicktemplates2/qquickbutton_p.h91
-rw-r--r--src/quicktemplates2/qquickbutton_p_p.h66
-rw-r--r--src/quicktemplates2/qquickbuttongroup.cpp547
-rw-r--r--src/quicktemplates2/qquickbuttongroup_p.h141
-rw-r--r--src/quicktemplates2/qquickcheckbox.cpp248
-rw-r--r--src/quicktemplates2/qquickcheckbox_p.h96
-rw-r--r--src/quicktemplates2/qquickcheckdelegate.cpp242
-rw-r--r--src/quicktemplates2/qquickcheckdelegate_p.h100
-rw-r--r--src/quicktemplates2/qquickcombobox.cpp1979
-rw-r--r--src/quicktemplates2/qquickcombobox_p.h242
-rw-r--r--src/quicktemplates2/qquickcontainer.cpp929
-rw-r--r--src/quicktemplates2/qquickcontainer_p.h140
-rw-r--r--src/quicktemplates2/qquickcontainer_p_p.h109
-rw-r--r--src/quicktemplates2/qquickcontentitem.cpp61
-rw-r--r--src/quicktemplates2/qquickcontentitem_p.h70
-rw-r--r--src/quicktemplates2/qquickcontrol.cpp2308
-rw-r--r--src/quicktemplates2/qquickcontrol_p.h304
-rw-r--r--src/quicktemplates2/qquickcontrol_p_p.h245
-rw-r--r--src/quicktemplates2/qquickdeferredexecute.cpp149
-rw-r--r--src/quicktemplates2/qquickdeferredexecute_p_p.h93
-rw-r--r--src/quicktemplates2/qquickdeferredpointer_p_p.h188
-rw-r--r--src/quicktemplates2/qquickdelaybutton.cpp267
-rw-r--r--src/quicktemplates2/qquickdelaybutton_p.h99
-rw-r--r--src/quicktemplates2/qquickdial.cpp828
-rw-r--r--src/quicktemplates2/qquickdial_p.h181
-rw-r--r--src/quicktemplates2/qquickdialog.cpp543
-rw-r--r--src/quicktemplates2/qquickdialog_p.h144
-rw-r--r--src/quicktemplates2/qquickdialog_p_p.h82
-rw-r--r--src/quicktemplates2/qquickdialogbuttonbox.cpp860
-rw-r--r--src/quicktemplates2/qquickdialogbuttonbox_p.h169
-rw-r--r--src/quicktemplates2/qquickdialogbuttonbox_p_p.h109
-rw-r--r--src/quicktemplates2/qquickdrawer.cpp809
-rw-r--r--src/quicktemplates2/qquickdrawer_p.h109
-rw-r--r--src/quicktemplates2/qquickdrawer_p_p.h101
-rw-r--r--src/quicktemplates2/qquickframe.cpp88
-rw-r--r--src/quicktemplates2/qquickframe_p.h80
-rw-r--r--src/quicktemplates2/qquickframe_p_p.h63
-rw-r--r--src/quicktemplates2/qquickgroupbox.cpp290
-rw-r--r--src/quicktemplates2/qquickgroupbox_p.h108
-rw-r--r--src/quicktemplates2/qquickicon.cpp263
-rw-r--r--src/quicktemplates2/qquickicon_p.h115
-rw-r--r--src/quicktemplates2/qquickitemdelegate.cpp135
-rw-r--r--src/quicktemplates2/qquickitemdelegate_p.h91
-rw-r--r--src/quicktemplates2/qquickitemdelegate_p_p.h65
-rw-r--r--src/quicktemplates2/qquicklabel.cpp650
-rw-r--r--src/quicktemplates2/qquicklabel_p.h140
-rw-r--r--src/quicktemplates2/qquicklabel_p_p.h147
-rw-r--r--src/quicktemplates2/qquickmenu.cpp1514
-rw-r--r--src/quicktemplates2/qquickmenu_p.h162
-rw-r--r--src/quicktemplates2/qquickmenu_p_p.h140
-rw-r--r--src/quicktemplates2/qquickmenubar.cpp581
-rw-r--r--src/quicktemplates2/qquickmenubar_p.h110
-rw-r--r--src/quicktemplates2/qquickmenubar_p_p.h107
-rw-r--r--src/quicktemplates2/qquickmenubaritem.cpp185
-rw-r--r--src/quicktemplates2/qquickmenubaritem_p.h102
-rw-r--r--src/quicktemplates2/qquickmenubaritem_p_p.h78
-rw-r--r--src/quicktemplates2/qquickmenuitem.cpp279
-rw-r--r--src/quicktemplates2/qquickmenuitem_p.h108
-rw-r--r--src/quicktemplates2/qquickmenuitem_p_p.h86
-rw-r--r--src/quicktemplates2/qquickmenuseparator.cpp91
-rw-r--r--src/quicktemplates2/qquickmenuseparator_p.h78
-rw-r--r--src/quicktemplates2/qquickoverlay.cpp711
-rw-r--r--src/quicktemplates2/qquickoverlay_p.h143
-rw-r--r--src/quicktemplates2/qquickoverlay_p_p.h101
-rw-r--r--src/quicktemplates2/qquickpage.cpp480
-rw-r--r--src/quicktemplates2/qquickpage_p.h124
-rw-r--r--src/quicktemplates2/qquickpage_p_p.h79
-rw-r--r--src/quicktemplates2/qquickpageindicator.cpp346
-rw-r--r--src/quicktemplates2/qquickpageindicator_p.h107
-rw-r--r--src/quicktemplates2/qquickpalette.cpp326
-rw-r--r--src/quicktemplates2/qquickpalette_p.h163
-rw-r--r--src/quicktemplates2/qquickpaletteprovider.cpp175
-rw-r--r--src/quicktemplates2/qquickpaletteprovider_p.h72
-rw-r--r--src/quicktemplates2/qquickpane.cpp426
-rw-r--r--src/quicktemplates2/qquickpane_p.h105
-rw-r--r--src/quicktemplates2/qquickpane_p_p.h90
-rw-r--r--src/quicktemplates2/qquickpopup.cpp2706
-rw-r--r--src/quicktemplates2/qquickpopup_p.h481
-rw-r--r--src/quicktemplates2/qquickpopup_p_p.h205
-rw-r--r--src/quicktemplates2/qquickpopupanchors.cpp72
-rw-r--r--src/quicktemplates2/qquickpopupanchors_p.h85
-rw-r--r--src/quicktemplates2/qquickpopupanchors_p_p.h75
-rw-r--r--src/quicktemplates2/qquickpopupitem.cpp409
-rw-r--r--src/quicktemplates2/qquickpopupitem_p_p.h116
-rw-r--r--src/quicktemplates2/qquickpopuppositioner.cpp308
-rw-r--r--src/quicktemplates2/qquickpopuppositioner_p_p.h86
-rw-r--r--src/quicktemplates2/qquickpresshandler.cpp144
-rw-r--r--src/quicktemplates2/qquickpresshandler_p_p.h84
-rw-r--r--src/quicktemplates2/qquickprogressbar.cpp271
-rw-r--r--src/quicktemplates2/qquickprogressbar_p.h110
-rw-r--r--src/quicktemplates2/qquickradiobutton.cpp117
-rw-r--r--src/quicktemplates2/qquickradiobutton_p.h75
-rw-r--r--src/quicktemplates2/qquickradiodelegate.cpp118
-rw-r--r--src/quicktemplates2/qquickradiodelegate_p.h77
-rw-r--r--src/quicktemplates2/qquickrangeslider.cpp1319
-rw-r--r--src/quicktemplates2/qquickrangeslider_p.h225
-rw-r--r--src/quicktemplates2/qquickroundbutton.cpp135
-rw-r--r--src/quicktemplates2/qquickroundbutton_p.h84
-rw-r--r--src/quicktemplates2/qquickscrollbar.cpp1080
-rw-r--r--src/quicktemplates2/qquickscrollbar_p.h206
-rw-r--r--src/quicktemplates2/qquickscrollbar_p_p.h143
-rw-r--r--src/quicktemplates2/qquickscrollindicator.cpp665
-rw-r--r--src/quicktemplates2/qquickscrollindicator_p.h159
-rw-r--r--src/quicktemplates2/qquickscrollview.cpp604
-rw-r--r--src/quicktemplates2/qquickscrollview_p.h87
-rw-r--r--src/quicktemplates2/qquickshortcutcontext.cpp98
-rw-r--r--src/quicktemplates2/qquickshortcutcontext_p_p.h65
-rw-r--r--src/quicktemplates2/qquickslider.cpp886
-rw-r--r--src/quicktemplates2/qquickslider_p.h188
-rw-r--r--src/quicktemplates2/qquickspinbox.cpp1178
-rw-r--r--src/quicktemplates2/qquickspinbox_p.h226
-rw-r--r--src/quicktemplates2/qquicksplitview.cpp2049
-rw-r--r--src/quicktemplates2/qquicksplitview_p.h218
-rw-r--r--src/quicktemplates2/qquicksplitview_p_p.h178
-rw-r--r--src/quicktemplates2/qquickstackelement.cpp325
-rw-r--r--src/quicktemplates2/qquickstackelement_p_p.h106
-rw-r--r--src/quicktemplates2/qquickstacktransition.cpp150
-rw-r--r--src/quicktemplates2/qquickstacktransition_p_p.h79
-rw-r--r--src/quicktemplates2/qquickstackview.cpp1363
-rw-r--r--src/quicktemplates2/qquickstackview_p.cpp310
-rw-r--r--src/quicktemplates2/qquickstackview_p.h221
-rw-r--r--src/quicktemplates2/qquickstackview_p_p.h124
-rw-r--r--src/quicktemplates2/qquickswipe_p.h140
-rw-r--r--src/quicktemplates2/qquickswipedelegate.cpp1385
-rw-r--r--src/quicktemplates2/qquickswipedelegate_p.h123
-rw-r--r--src/quicktemplates2/qquickswipedelegate_p_p.h76
-rw-r--r--src/quicktemplates2/qquickswipeview.cpp476
-rw-r--r--src/quicktemplates2/qquickswipeview_p.h148
-rw-r--r--src/quicktemplates2/qquickswitch.cpp242
-rw-r--r--src/quicktemplates2/qquickswitch_p.h98
-rw-r--r--src/quicktemplates2/qquickswitchdelegate.cpp239
-rw-r--r--src/quicktemplates2/qquickswitchdelegate_p.h98
-rw-r--r--src/quicktemplates2/qquicktabbar.cpp484
-rw-r--r--src/quicktemplates2/qquicktabbar_p.h134
-rw-r--r--src/quicktemplates2/qquicktabbutton.cpp90
-rw-r--r--src/quicktemplates2/qquicktabbutton_p.h75
-rw-r--r--src/quicktemplates2/qquicktextarea.cpp1229
-rw-r--r--src/quicktemplates2/qquicktextarea_p.h221
-rw-r--r--src/quicktemplates2/qquicktextarea_p_p.h179
-rw-r--r--src/quicktemplates2/qquicktextfield.cpp1017
-rw-r--r--src/quicktemplates2/qquicktextfield_p.h194
-rw-r--r--src/quicktemplates2/qquicktextfield_p_p.h168
-rw-r--r--src/quicktemplates2/qquicktheme.cpp178
-rw-r--r--src/quicktemplates2/qquicktheme_p.h104
-rw-r--r--src/quicktemplates2/qquicktheme_p_p.h78
-rw-r--r--src/quicktemplates2/qquicktoolbar.cpp159
-rw-r--r--src/quicktemplates2/qquicktoolbar_p.h94
-rw-r--r--src/quicktemplates2/qquicktoolbutton.cpp82
-rw-r--r--src/quicktemplates2/qquicktoolbutton_p.h71
-rw-r--r--src/quicktemplates2/qquicktoolseparator.cpp151
-rw-r--r--src/quicktemplates2/qquicktoolseparator_p.h93
-rw-r--r--src/quicktemplates2/qquicktooltip.cpp563
-rw-r--r--src/quicktemplates2/qquicktooltip_p.h154
-rw-r--r--src/quicktemplates2/qquicktumbler.cpp1045
-rw-r--r--src/quicktemplates2/qquicktumbler_p.h177
-rw-r--r--src/quicktemplates2/qquicktumbler_p_p.h153
-rw-r--r--src/quicktemplates2/qquickvelocitycalculator.cpp102
-rw-r--r--src/quicktemplates2/qquickvelocitycalculator_p_p.h76
-rw-r--r--src/quicktemplates2/qtquicktemplates2global_p.h69
-rw-r--r--src/quicktemplates2/quicktemplates2.pri179
-rw-r--r--src/quicktemplates2/quicktemplates2.pro14
-rw-r--r--src/src.pro8
-rw-r--r--sync.profile6
-rw-r--r--tests/auto/accessibility/accessibility.pro15
-rw-r--r--tests/auto/accessibility/data/abstractbutton.qml6
-rw-r--r--tests/auto/accessibility/data/busyindicator.qml4
-rw-r--r--tests/auto/accessibility/data/button.qml6
-rw-r--r--tests/auto/accessibility/data/checkbox.qml6
-rw-r--r--tests/auto/accessibility/data/checkdelegate.qml6
-rw-r--r--tests/auto/accessibility/data/combobox.qml6
-rw-r--r--tests/auto/accessibility/data/container.qml4
-rw-r--r--tests/auto/accessibility/data/control.qml4
-rw-r--r--tests/auto/accessibility/data/dayofweekrow-2.qml4
-rw-r--r--tests/auto/accessibility/data/dayofweekrow.qml6
-rw-r--r--tests/auto/accessibility/data/dial.qml4
-rw-r--r--tests/auto/accessibility/data/dialog.qml6
-rw-r--r--tests/auto/accessibility/data/drawer.qml4
-rw-r--r--tests/auto/accessibility/data/frame.qml4
-rw-r--r--tests/auto/accessibility/data/groupbox.qml6
-rw-r--r--tests/auto/accessibility/data/itemdelegate.qml6
-rw-r--r--tests/auto/accessibility/data/label.qml6
-rw-r--r--tests/auto/accessibility/data/menu.qml4
-rw-r--r--tests/auto/accessibility/data/menuitem.qml6
-rw-r--r--tests/auto/accessibility/data/monthgrid-2.qml6
-rw-r--r--tests/auto/accessibility/data/monthgrid.qml7
-rw-r--r--tests/auto/accessibility/data/page.qml6
-rw-r--r--tests/auto/accessibility/data/pageindicator.qml4
-rw-r--r--tests/auto/accessibility/data/pane.qml4
-rw-r--r--tests/auto/accessibility/data/popup.qml4
-rw-r--r--tests/auto/accessibility/data/progressbar.qml8
-rw-r--r--tests/auto/accessibility/data/radiobutton.qml6
-rw-r--r--tests/auto/accessibility/data/radiodelegate.qml6
-rw-r--r--tests/auto/accessibility/data/rangeslider.qml11
-rw-r--r--tests/auto/accessibility/data/roundbutton.qml6
-rw-r--r--tests/auto/accessibility/data/scrollbar.qml4
-rw-r--r--tests/auto/accessibility/data/scrollindicator.qml4
-rw-r--r--tests/auto/accessibility/data/slider.qml10
-rw-r--r--tests/auto/accessibility/data/spinbox.qml9
-rw-r--r--tests/auto/accessibility/data/stackview.qml4
-rw-r--r--tests/auto/accessibility/data/swipedelegate.qml6
-rw-r--r--tests/auto/accessibility/data/swipeview.qml4
-rw-r--r--tests/auto/accessibility/data/switch.qml6
-rw-r--r--tests/auto/accessibility/data/switchdelegate.qml6
-rw-r--r--tests/auto/accessibility/data/tabbar.qml4
-rw-r--r--tests/auto/accessibility/data/tabbutton.qml6
-rw-r--r--tests/auto/accessibility/data/textarea.qml6
-rw-r--r--tests/auto/accessibility/data/textfield.qml6
-rw-r--r--tests/auto/accessibility/data/toolbar.qml4
-rw-r--r--tests/auto/accessibility/data/toolbutton.qml6
-rw-r--r--tests/auto/accessibility/data/tooltip.qml6
-rw-r--r--tests/auto/accessibility/data/tumbler.qml4
-rw-r--r--tests/auto/accessibility/data/weeknumbercolumn-2.qml4
-rw-r--r--tests/auto/accessibility/data/weeknumbercolumn.qml6
-rw-r--r--tests/auto/accessibility/tst_accessibility.cpp182
-rw-r--r--tests/auto/auto.pro32
-rw-r--r--tests/auto/bic/data/QtQuickControls2.5.10.0.linux-gcc-amd64.txt10983
-rw-r--r--tests/auto/bic/data/QtQuickControls2.5.11.0.linux-gcc-amd64.txt10993
-rw-r--r--tests/auto/bic/data/QtQuickControls2.5.12.0.linux-gcc-amd64.txt11123
-rw-r--r--tests/auto/bic/data/QtQuickControls2.5.13.0.linux-gcc-amd64.txt11498
-rw-r--r--tests/auto/calendar/calendar.pro12
-rw-r--r--tests/auto/calendar/data/tst_calendarmodel.qml125
-rw-r--r--tests/auto/calendar/data/tst_dayofweekrow.qml95
-rw-r--r--tests/auto/calendar/data/tst_monthgrid.qml284
-rw-r--r--tests/auto/calendar/data/tst_weeknumbercolumn.qml134
-rw-r--r--tests/auto/calendar/tst_calendar.cpp38
-rw-r--r--tests/auto/cmake/CMakeLists.txt13
-rw-r--r--tests/auto/cmake/cmake.pro7
-rw-r--r--tests/auto/controls/controls.pro7
-rw-r--r--tests/auto/controls/data/SignalSequenceSpy.qml147
-rw-r--r--tests/auto/controls/data/TestItem.qml59
-rw-r--r--tests/auto/controls/data/TumblerDatePicker.qml98
-rw-r--r--tests/auto/controls/data/TumblerListView.qml69
-rw-r--r--tests/auto/controls/data/TumblerPathView.qml80
-rw-r--r--tests/auto/controls/data/splitview/fillItemInMiddle.qml77
-rw-r--r--tests/auto/controls/data/splitview/fillItemOnLeft.qml77
-rw-r--r--tests/auto/controls/data/splitview/fillItemOnTop.qml78
-rw-r--r--tests/auto/controls/data/tst_abstractbutton.qml890
-rw-r--r--tests/auto/controls/data/tst_action.qml197
-rw-r--r--tests/auto/controls/data/tst_actiongroup.qml400
-rw-r--r--tests/auto/controls/data/tst_busyindicator.qml103
-rw-r--r--tests/auto/controls/data/tst_button.qml512
-rw-r--r--tests/auto/controls/data/tst_buttongroup.qml465
-rw-r--r--tests/auto/controls/data/tst_checkbox.qml544
-rw-r--r--tests/auto/controls/data/tst_checkdelegate.qml220
-rw-r--r--tests/auto/controls/data/tst_combobox.qml1856
-rw-r--r--tests/auto/controls/data/tst_container.qml222
-rw-r--r--tests/auto/controls/data/tst_control.qml1417
-rw-r--r--tests/auto/controls/data/tst_delaybutton.qml333
-rw-r--r--tests/auto/controls/data/tst_dial.qml688
-rw-r--r--tests/auto/controls/data/tst_dialog.qml414
-rw-r--r--tests/auto/controls/data/tst_dialogbuttonbox.qml447
-rw-r--r--tests/auto/controls/data/tst_frame.qml148
-rw-r--r--tests/auto/controls/data/tst_groupbox.qml148
-rw-r--r--tests/auto/controls/data/tst_itemdelegate.qml162
-rw-r--r--tests/auto/controls/data/tst_label.qml294
-rw-r--r--tests/auto/controls/data/tst_menuitem.qml193
-rw-r--r--tests/auto/controls/data/tst_page.qml315
-rw-r--r--tests/auto/controls/data/tst_pageindicator.qml183
-rw-r--r--tests/auto/controls/data/tst_pane.qml195
-rw-r--r--tests/auto/controls/data/tst_popup.qml1390
-rw-r--r--tests/auto/controls/data/tst_progressbar.qml196
-rw-r--r--tests/auto/controls/data/tst_radiobutton.qml377
-rw-r--r--tests/auto/controls/data/tst_radiodelegate.qml173
-rw-r--r--tests/auto/controls/data/tst_rangeslider.qml1085
-rw-r--r--tests/auto/controls/data/tst_roundbutton.qml166
-rw-r--r--tests/auto/controls/data/tst_scrollbar.qml842
-rw-r--r--tests/auto/controls/data/tst_scrollindicator.qml309
-rw-r--r--tests/auto/controls/data/tst_scrollview.qml505
-rw-r--r--tests/auto/controls/data/tst_slider.qml926
-rw-r--r--tests/auto/controls/data/tst_spinbox.qml661
-rw-r--r--tests/auto/controls/data/tst_splitview.qml1961
-rw-r--r--tests/auto/controls/data/tst_stackview.qml1248
-rw-r--r--tests/auto/controls/data/tst_swipedelegate.qml1652
-rw-r--r--tests/auto/controls/data/tst_swipeview.qml577
-rw-r--r--tests/auto/controls/data/tst_switch.qml611
-rw-r--r--tests/auto/controls/data/tst_switchdelegate.qml607
-rw-r--r--tests/auto/controls/data/tst_tabbar.qml726
-rw-r--r--tests/auto/controls/data/tst_tabbutton.qml178
-rw-r--r--tests/auto/controls/data/tst_textarea.qml759
-rw-r--r--tests/auto/controls/data/tst_textfield.qml663
-rw-r--r--tests/auto/controls/data/tst_toolbar.qml148
-rw-r--r--tests/auto/controls/data/tst_toolbutton.qml243
-rw-r--r--tests/auto/controls/data/tst_toolseparator.qml105
-rw-r--r--tests/auto/controls/data/tst_tooltip.qml424
-rw-r--r--tests/auto/controls/data/tst_tumbler.qml1260
-rw-r--r--tests/auto/controls/default/default.pro14
-rw-r--r--tests/auto/controls/default/dependencies.qml5
-rw-r--r--tests/auto/controls/default/tst_default.cpp44
-rw-r--r--tests/auto/controls/fusion/dependencies.qml6
-rw-r--r--tests/auto/controls/fusion/fusion.pro15
-rw-r--r--tests/auto/controls/fusion/tst_fusion.cpp46
-rw-r--r--tests/auto/controls/imagine/dependencies.qml6
-rw-r--r--tests/auto/controls/imagine/imagine.pro15
-rw-r--r--tests/auto/controls/imagine/tst_imagine.cpp46
-rw-r--r--tests/auto/controls/material/dependencies.qml6
-rw-r--r--tests/auto/controls/material/material.pro15
-rw-r--r--tests/auto/controls/material/tst_material.cpp46
-rw-r--r--tests/auto/controls/universal/dependencies.qml6
-rw-r--r--tests/auto/controls/universal/tst_universal.cpp46
-rw-r--r--tests/auto/controls/universal/universal.pro15
-rw-r--r--tests/auto/cursor/cursor.pro14
-rw-r--r--tests/auto/cursor/data/buttons.qml104
-rw-r--r--tests/auto/cursor/data/containers.qml77
-rw-r--r--tests/auto/cursor/data/editable.qml72
-rw-r--r--tests/auto/cursor/data/pageindicator.qml62
-rw-r--r--tests/auto/cursor/data/scrollbar.qml74
-rw-r--r--tests/auto/cursor/data/sliders.qml71
-rw-r--r--tests/auto/cursor/tst_cursor.cpp215
-rw-r--r--tests/auto/customization/customization.pro11
-rw-r--r--tests/auto/customization/data/styles/empty/AbstractButton.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ApplicationWindow.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/BusyIndicator.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Button.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/CheckBox.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/CheckDelegate.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ComboBox.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Container.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Control.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/DelayButton.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Dial.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Dialog.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/DialogButtonBox.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Drawer.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Frame.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/GroupBox.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ItemDelegate.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Label.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Menu.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/MenuBar.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/MenuBarItem.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/MenuItem.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/MenuSeparator.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Page.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/PageIndicator.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Pane.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Popup.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ProgressBar.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/RadioButton.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/RadioDelegate.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/RangeSlider.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/RoundButton.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ScrollBar.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ScrollIndicator.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ScrollView.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Slider.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/SpinBox.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/StackView.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/SwipeDelegate.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/SwipeView.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Switch.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/SwitchDelegate.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/TabBar.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/TabButton.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/TextArea.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/TextField.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ToolBar.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ToolButton.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ToolSeparator.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/ToolTip.qml57
-rw-r--r--tests/auto/customization/data/styles/empty/Tumbler.qml57
-rw-r--r--tests/auto/customization/data/styles/identified/AbstractButton.qml72
-rw-r--r--tests/auto/customization/data/styles/identified/ApplicationWindow.qml62
-rw-r--r--tests/auto/customization/data/styles/identified/BusyIndicator.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Button.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/CheckBox.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/CheckDelegate.qml72
-rw-r--r--tests/auto/customization/data/styles/identified/ComboBox.qml78
-rw-r--r--tests/auto/customization/data/styles/identified/Container.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Control.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/DelayButton.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Dial.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Dialog.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/DialogButtonBox.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Drawer.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Frame.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/GroupBox.qml72
-rw-r--r--tests/auto/customization/data/styles/identified/ItemDelegate.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Label.qml62
-rw-r--r--tests/auto/customization/data/styles/identified/Menu.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/MenuBar.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/MenuBarItem.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/MenuItem.qml77
-rw-r--r--tests/auto/customization/data/styles/identified/MenuSeparator.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Page.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/PageIndicator.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Pane.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Popup.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/ProgressBar.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/RadioButton.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/RadioDelegate.qml72
-rw-r--r--tests/auto/customization/data/styles/identified/RangeSlider.qml72
-rw-r--r--tests/auto/customization/data/styles/identified/RoundButton.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/ScrollBar.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/ScrollIndicator.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/ScrollView.qml62
-rw-r--r--tests/auto/customization/data/styles/identified/Slider.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/SpinBox.qml77
-rw-r--r--tests/auto/customization/data/styles/identified/StackView.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/SwipeDelegate.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/SwipeView.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Switch.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/SwitchDelegate.qml72
-rw-r--r--tests/auto/customization/data/styles/identified/TabBar.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/TabButton.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/TextArea.qml62
-rw-r--r--tests/auto/customization/data/styles/identified/TextField.qml62
-rw-r--r--tests/auto/customization/data/styles/identified/ToolBar.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/ToolButton.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/ToolSeparator.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/ToolTip.qml67
-rw-r--r--tests/auto/customization/data/styles/identified/Tumbler.qml67
-rw-r--r--tests/auto/customization/data/styles/incomplete/AbstractButton.qml69
-rw-r--r--tests/auto/customization/data/styles/incomplete/ApplicationWindow.qml61
-rw-r--r--tests/auto/customization/data/styles/incomplete/BusyIndicator.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Button.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/CheckBox.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/CheckDelegate.qml69
-rw-r--r--tests/auto/customization/data/styles/incomplete/ComboBox.qml73
-rw-r--r--tests/auto/customization/data/styles/incomplete/Container.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Control.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/DelayButton.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Dial.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Dialog.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/DialogButtonBox.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Drawer.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Frame.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/GroupBox.qml69
-rw-r--r--tests/auto/customization/data/styles/incomplete/ItemDelegate.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Label.qml61
-rw-r--r--tests/auto/customization/data/styles/incomplete/Menu.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/MenuBar.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/MenuBarItem.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/MenuItem.qml73
-rw-r--r--tests/auto/customization/data/styles/incomplete/MenuSeparator.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Page.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/PageIndicator.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Pane.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Popup.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/ProgressBar.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/RadioButton.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/RadioDelegate.qml69
-rw-r--r--tests/auto/customization/data/styles/incomplete/RangeSlider.qml69
-rw-r--r--tests/auto/customization/data/styles/incomplete/RoundButton.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/ScrollBar.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/ScrollIndicator.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/ScrollView.qml61
-rw-r--r--tests/auto/customization/data/styles/incomplete/Slider.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/SpinBox.qml73
-rw-r--r--tests/auto/customization/data/styles/incomplete/StackView.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/SwipeDelegate.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/SwipeView.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Switch.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/SwitchDelegate.qml69
-rw-r--r--tests/auto/customization/data/styles/incomplete/TabBar.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/TabButton.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/TextArea.qml61
-rw-r--r--tests/auto/customization/data/styles/incomplete/TextField.qml61
-rw-r--r--tests/auto/customization/data/styles/incomplete/ToolBar.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/ToolButton.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/ToolSeparator.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/ToolTip.qml65
-rw-r--r--tests/auto/customization/data/styles/incomplete/Tumbler.qml65
-rw-r--r--tests/auto/customization/data/styles/override/AbstractButton.qml69
-rw-r--r--tests/auto/customization/data/styles/override/ApplicationWindow.qml61
-rw-r--r--tests/auto/customization/data/styles/override/BusyIndicator.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Button.qml65
-rw-r--r--tests/auto/customization/data/styles/override/CheckBox.qml65
-rw-r--r--tests/auto/customization/data/styles/override/CheckDelegate.qml69
-rw-r--r--tests/auto/customization/data/styles/override/ComboBox.qml74
-rw-r--r--tests/auto/customization/data/styles/override/Container.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Control.qml65
-rw-r--r--tests/auto/customization/data/styles/override/DelayButton.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Dial.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Dialog.qml65
-rw-r--r--tests/auto/customization/data/styles/override/DialogButtonBox.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Drawer.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Frame.qml65
-rw-r--r--tests/auto/customization/data/styles/override/GroupBox.qml69
-rw-r--r--tests/auto/customization/data/styles/override/ItemDelegate.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Label.qml61
-rw-r--r--tests/auto/customization/data/styles/override/Menu.qml65
-rw-r--r--tests/auto/customization/data/styles/override/MenuBar.qml65
-rw-r--r--tests/auto/customization/data/styles/override/MenuBarItem.qml65
-rw-r--r--tests/auto/customization/data/styles/override/MenuItem.qml73
-rw-r--r--tests/auto/customization/data/styles/override/MenuSeparator.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Page.qml65
-rw-r--r--tests/auto/customization/data/styles/override/PageIndicator.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Pane.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Popup.qml65
-rw-r--r--tests/auto/customization/data/styles/override/ProgressBar.qml65
-rw-r--r--tests/auto/customization/data/styles/override/RadioButton.qml65
-rw-r--r--tests/auto/customization/data/styles/override/RadioDelegate.qml69
-rw-r--r--tests/auto/customization/data/styles/override/RangeSlider.qml69
-rw-r--r--tests/auto/customization/data/styles/override/RoundButton.qml65
-rw-r--r--tests/auto/customization/data/styles/override/ScrollBar.qml65
-rw-r--r--tests/auto/customization/data/styles/override/ScrollIndicator.qml65
-rw-r--r--tests/auto/customization/data/styles/override/ScrollView.qml61
-rw-r--r--tests/auto/customization/data/styles/override/Slider.qml65
-rw-r--r--tests/auto/customization/data/styles/override/SpinBox.qml73
-rw-r--r--tests/auto/customization/data/styles/override/StackView.qml65
-rw-r--r--tests/auto/customization/data/styles/override/SwipeDelegate.qml65
-rw-r--r--tests/auto/customization/data/styles/override/SwipeView.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Switch.qml65
-rw-r--r--tests/auto/customization/data/styles/override/SwitchDelegate.qml69
-rw-r--r--tests/auto/customization/data/styles/override/TabBar.qml65
-rw-r--r--tests/auto/customization/data/styles/override/TabButton.qml65
-rw-r--r--tests/auto/customization/data/styles/override/TextArea.qml61
-rw-r--r--tests/auto/customization/data/styles/override/TextField.qml61
-rw-r--r--tests/auto/customization/data/styles/override/ToolBar.qml65
-rw-r--r--tests/auto/customization/data/styles/override/ToolButton.qml65
-rw-r--r--tests/auto/customization/data/styles/override/ToolSeparator.qml65
-rw-r--r--tests/auto/customization/data/styles/override/ToolTip.qml65
-rw-r--r--tests/auto/customization/data/styles/override/Tumbler.qml65
-rw-r--r--tests/auto/customization/data/styles/simple/AbstractButton.qml77
-rw-r--r--tests/auto/customization/data/styles/simple/ApplicationWindow.qml66
-rw-r--r--tests/auto/customization/data/styles/simple/BusyIndicator.qml69
-rw-r--r--tests/auto/customization/data/styles/simple/Button.qml72
-rw-r--r--tests/auto/customization/data/styles/simple/CheckBox.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/CheckDelegate.qml77
-rw-r--r--tests/auto/customization/data/styles/simple/ComboBox.qml81
-rw-r--r--tests/auto/customization/data/styles/simple/Container.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/Control.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/DelayButton.qml72
-rw-r--r--tests/auto/customization/data/styles/simple/Dial.qml71
-rw-r--r--tests/auto/customization/data/styles/simple/Dialog.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/DialogButtonBox.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/Drawer.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/Frame.qml73
-rw-r--r--tests/auto/customization/data/styles/simple/GroupBox.qml78
-rw-r--r--tests/auto/customization/data/styles/simple/ItemDelegate.qml72
-rw-r--r--tests/auto/customization/data/styles/simple/Label.qml63
-rw-r--r--tests/auto/customization/data/styles/simple/Menu.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/MenuBar.qml71
-rw-r--r--tests/auto/customization/data/styles/simple/MenuBarItem.qml72
-rw-r--r--tests/auto/customization/data/styles/simple/MenuItem.qml82
-rw-r--r--tests/auto/customization/data/styles/simple/MenuSeparator.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/Page.qml73
-rw-r--r--tests/auto/customization/data/styles/simple/PageIndicator.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/Pane.qml73
-rw-r--r--tests/auto/customization/data/styles/simple/Popup.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/ProgressBar.qml69
-rw-r--r--tests/auto/customization/data/styles/simple/RadioButton.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/RadioDelegate.qml77
-rw-r--r--tests/auto/customization/data/styles/simple/RangeSlider.qml76
-rw-r--r--tests/auto/customization/data/styles/simple/RoundButton.qml73
-rw-r--r--tests/auto/customization/data/styles/simple/ScrollBar.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/ScrollIndicator.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/ScrollView.qml64
-rw-r--r--tests/auto/customization/data/styles/simple/Slider.qml71
-rw-r--r--tests/auto/customization/data/styles/simple/SpinBox.qml80
-rw-r--r--tests/auto/customization/data/styles/simple/StackView.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/SwipeDelegate.qml72
-rw-r--r--tests/auto/customization/data/styles/simple/SwipeView.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/Switch.qml68
-rw-r--r--tests/auto/customization/data/styles/simple/SwitchDelegate.qml77
-rw-r--r--tests/auto/customization/data/styles/simple/TabBar.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/TabButton.qml72
-rw-r--r--tests/auto/customization/data/styles/simple/TextArea.qml66
-rw-r--r--tests/auto/customization/data/styles/simple/TextField.qml66
-rw-r--r--tests/auto/customization/data/styles/simple/ToolBar.qml73
-rw-r--r--tests/auto/customization/data/styles/simple/ToolButton.qml72
-rw-r--r--tests/auto/customization/data/styles/simple/ToolSeparator.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/ToolTip.qml70
-rw-r--r--tests/auto/customization/data/styles/simple/Tumbler.qml68
-rw-r--r--tests/auto/customization/tst_customization.cpp510
-rw-r--r--tests/auto/designer/designer.pro9
-rw-r--r--tests/auto/designer/tst_designer.cpp161
-rw-r--r--tests/auto/focus/BLACKLIST3
-rw-r--r--tests/auto/focus/data/activeFocusOnTab.qml203
-rw-r--r--tests/auto/focus/data/keyNavigation.qml260
-rw-r--r--tests/auto/focus/data/visualFocus.qml64
-rw-r--r--tests/auto/focus/focus.pro11
-rw-r--r--tests/auto/focus/tst_focus.cpp418
-rw-r--r--tests/auto/font/data/font-appwindow-custom.qml62
-rw-r--r--tests/auto/font/data/font-appwindow-default.qml55
-rw-r--r--tests/auto/font/data/font-control-custom.qml62
-rw-r--r--tests/auto/font/data/font-control-default.qml55
-rw-r--r--tests/auto/font/data/font-popup-custom.qml62
-rw-r--r--tests/auto/font/data/font-popup-default.qml55
-rw-r--r--tests/auto/font/data/inheritance-childcontrol.qml76
-rw-r--r--tests/auto/font/data/inheritance-childpopup.qml76
-rw-r--r--tests/auto/font/data/inheritance-control.qml74
-rw-r--r--tests/auto/font/data/inheritance-dynamicchildcontrol.qml75
-rw-r--r--tests/auto/font/data/inheritance-dynamicchildpopup.qml80
-rw-r--r--tests/auto/font/data/inheritance-dynamiccontrol.qml71
-rw-r--r--tests/auto/font/data/inheritance-dynamicpopup.qml76
-rw-r--r--tests/auto/font/data/inheritance-popup.qml74
-rw-r--r--tests/auto/font/data/listview.qml79
-rw-r--r--tests/auto/font/font.pro14
-rw-r--r--tests/auto/font/tst_font.cpp361
-rw-r--r--tests/auto/palette/data/inheritance-childcontrol.qml76
-rw-r--r--tests/auto/palette/data/inheritance-childpopup.qml76
-rw-r--r--tests/auto/palette/data/inheritance-control.qml74
-rw-r--r--tests/auto/palette/data/inheritance-dynamicchildcontrol.qml75
-rw-r--r--tests/auto/palette/data/inheritance-dynamicchildpopup.qml80
-rw-r--r--tests/auto/palette/data/inheritance-dynamiccontrol.qml71
-rw-r--r--tests/auto/palette/data/inheritance-dynamicpopup.qml76
-rw-r--r--tests/auto/palette/data/inheritance-popup.qml74
-rw-r--r--tests/auto/palette/data/listview.qml79
-rw-r--r--tests/auto/palette/data/palette-appwindow-custom.qml74
-rw-r--r--tests/auto/palette/data/palette-appwindow-default.qml55
-rw-r--r--tests/auto/palette/data/palette-control-custom.qml74
-rw-r--r--tests/auto/palette/data/palette-control-default.qml55
-rw-r--r--tests/auto/palette/data/palette-popup-custom.qml74
-rw-r--r--tests/auto/palette/data/palette-popup-default.qml55
-rw-r--r--tests/auto/palette/palette.pro16
-rw-r--r--tests/auto/palette/qtquickcontrols2.conf5
-rw-r--r--tests/auto/palette/tst_palette.cpp350
-rw-r--r--tests/auto/platform/data/tst_colordialog.qml71
-rw-r--r--tests/auto/platform/data/tst_filedialog.qml71
-rw-r--r--tests/auto/platform/data/tst_folderdialog.qml71
-rw-r--r--tests/auto/platform/data/tst_fontdialog.qml71
-rw-r--r--tests/auto/platform/data/tst_menu.qml264
-rw-r--r--tests/auto/platform/data/tst_menubar.qml239
-rw-r--r--tests/auto/platform/data/tst_menuitem.qml117
-rw-r--r--tests/auto/platform/data/tst_menuitemgroup.qml390
-rw-r--r--tests/auto/platform/data/tst_menuseparator.qml74
-rw-r--r--tests/auto/platform/data/tst_messagedialog.qml113
-rw-r--r--tests/auto/platform/data/tst_standardpaths.qml88
-rw-r--r--tests/auto/platform/data/tst_systemtrayicon.qml132
-rw-r--r--tests/auto/platform/platform.pro12
-rw-r--r--tests/auto/platform/tst_platform.cpp38
-rw-r--r--tests/auto/pressandhold/data/dependencies.qml4
-rw-r--r--tests/auto/pressandhold/pressandhold.pro9
-rw-r--r--tests/auto/pressandhold/tst_pressandhold.cpp212
-rw-r--r--tests/auto/qquickapplicationwindow/data/activeFocusControl.qml115
-rw-r--r--tests/auto/qquickapplicationwindow/data/activefocusontab.qml94
-rw-r--r--tests/auto/qquickapplicationwindow/data/attachedProperties.qml190
-rw-r--r--tests/auto/qquickapplicationwindow/data/basicapplicationwindow.qml56
-rw-r--r--tests/auto/qquickapplicationwindow/data/clearfocusondestruction.qml84
-rw-r--r--tests/auto/qquickapplicationwindow/data/defaultFocus.qml69
-rw-r--r--tests/auto/qquickapplicationwindow/data/fill.qml79
-rw-r--r--tests/auto/qquickapplicationwindow/data/focusAfterPopupClosed.qml111
-rw-r--r--tests/auto/qquickapplicationwindow/data/font.qml97
-rw-r--r--tests/auto/qquickapplicationwindow/data/layout.qml62
-rw-r--r--tests/auto/qquickapplicationwindow/data/locale.qml77
-rw-r--r--tests/auto/qquickapplicationwindow/qquickapplicationwindow.pro15
-rw-r--r--tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp889
-rw-r--r--tests/auto/qquickcolor/data/tst_color.qml65
-rw-r--r--tests/auto/qquickcolor/qquickcolor.pro12
-rw-r--r--tests/auto/qquickcolor/tst_qquickcolor.cpp38
-rw-r--r--tests/auto/qquickdrawer/data/applicationwindow-button.qml70
-rw-r--r--tests/auto/qquickdrawer/data/applicationwindow-hover.qml82
-rw-r--r--tests/auto/qquickdrawer/data/applicationwindow-wheel.qml80
-rw-r--r--tests/auto/qquickdrawer/data/applicationwindow.qml65
-rw-r--r--tests/auto/qquickdrawer/data/dragOverModalShadow.qml87
-rw-r--r--tests/auto/qquickdrawer/data/flickable.qml75
-rw-r--r--tests/auto/qquickdrawer/data/grabber.qml73
-rw-r--r--tests/auto/qquickdrawer/data/header.qml73
-rw-r--r--tests/auto/qquickdrawer/data/multiTouch.qml82
-rw-r--r--tests/auto/qquickdrawer/data/multiple.qml95
-rw-r--r--tests/auto/qquickdrawer/data/reposition.qml76
-rw-r--r--tests/auto/qquickdrawer/data/slider.qml74
-rw-r--r--tests/auto/qquickdrawer/data/topEdgeScreenEdge.qml78
-rw-r--r--tests/auto/qquickdrawer/data/window-button.qml71
-rw-r--r--tests/auto/qquickdrawer/data/window-hover.qml83
-rw-r--r--tests/auto/qquickdrawer/data/window-wheel.qml81
-rw-r--r--tests/auto/qquickdrawer/data/window.qml66
-rw-r--r--tests/auto/qquickdrawer/qquickdrawer.pro14
-rw-r--r--tests/auto/qquickdrawer/tst_qquickdrawer.cpp1341
-rw-r--r--tests/auto/qquickiconimage/data/alignment.qml16
-rw-r--r--tests/auto/qquickiconimage/data/color.qml18
-rw-r--r--tests/auto/qquickiconimage/data/fileSelectors.qml16
-rw-r--r--tests/auto/qquickiconimage/data/imageProvider.qml9
-rw-r--r--tests/auto/qquickiconimage/data/nameBindingNoSizes.qml7
-rw-r--r--tests/auto/qquickiconimage/data/nameBindingSourceSize.qml16
-rw-r--r--tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml10
-rw-r--r--tests/auto/qquickiconimage/data/root.qml6
-rw-r--r--tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml15
-rw-r--r--tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml16
-rw-r--r--tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml10
-rw-r--r--tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml8
-rw-r--r--tests/auto/qquickiconimage/data/svgNoSizes.qml15
-rw-r--r--tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml17
-rw-r--r--tests/auto/qquickiconimage/data/translucentColors.qml67
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/16x16/actions/appointment-new.pngbin897 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22/actions/+testselector/appointment-new.pngbin1146 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22/actions/+testselector/appointment-new@2x.pngbin256 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22/actions/appointment-new.pngbin1411 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22/actions/appointment-new@2x.pngbin4075 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-original.pngbin1105 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-original@2x.pngbin173 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-tinted.pngbin1111 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-tinted@2x.pngbin172 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22@2/actions/+testselector/appointment-new.pngbin256 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/22x22@2/actions/appointment-new.pngbin4075 -> 0 bytes
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/appointment-new.svg425
-rw-r--r--tests/auto/qquickiconimage/icons/testtheme/index.theme21
-rw-r--r--tests/auto/qquickiconimage/qquickiconimage.pro17
-rw-r--r--tests/auto/qquickiconimage/resources.qrc17
-rw-r--r--tests/auto/qquickiconimage/tst_qquickiconimage.cpp572
-rw-r--r--tests/auto/qquickiconlabel/data/colorChanges.qml66
-rw-r--r--tests/auto/qquickiconlabel/data/iconlabel.qml66
-rw-r--r--tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml66
-rw-r--r--tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml63
-rw-r--r--tests/auto/qquickiconlabel/qquickiconlabel.pro13
-rw-r--r--tests/auto/qquickiconlabel/tst_qquickiconlabel.cpp334
-rw-r--r--tests/auto/qquickimaginestyle/control-assets/button-background.9.pngbin251 -> 0 bytes
-rw-r--r--tests/auto/qquickimaginestyle/data/tst_imagine.qml108
-rw-r--r--tests/auto/qquickimaginestyle/qquickimaginestyle.pro16
-rw-r--r--tests/auto/qquickimaginestyle/qtquickcontrols2.conf5
-rw-r--r--tests/auto/qquickimaginestyle/tst_qquickimaginestyle.cpp38
-rw-r--r--tests/auto/qquickmaterialstyle/data/tst_material.qml718
-rw-r--r--tests/auto/qquickmaterialstyle/qquickmaterialstyle.pro15
-rw-r--r--tests/auto/qquickmaterialstyle/qtquickcontrols2.conf2
-rw-r--r--tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp38
-rw-r--r--tests/auto/qquickmaterialstyleconf/data/applicationwindow.qml69
-rw-r--r--tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro17
-rw-r--r--tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.qrc7
-rw-r--r--tests/auto/qquickmaterialstyleconf/qtquickcontrols2.conf10
-rw-r--r--tests/auto/qquickmaterialstyleconf/tst_qquickmaterialstyleconf.cpp120
-rw-r--r--tests/auto/qquickmaterialstyleconf/variant-dense.conf6
-rw-r--r--tests/auto/qquickmaterialstyleconf/variant-normal.conf6
-rw-r--r--tests/auto/qquickmenu/data/actions.qml67
-rw-r--r--tests/auto/qquickmenu/data/addItem.qml71
-rw-r--r--tests/auto/qquickmenu/data/applicationWindowScrollable.qml73
-rw-r--r--tests/auto/qquickmenu/data/applicationwindow.qml91
-rw-r--r--tests/auto/qquickmenu/data/delegateFromSeparateComponent.qml107
-rw-r--r--tests/auto/qquickmenu/data/disableWhenTriggered.qml121
-rw-r--r--tests/auto/qquickmenu/data/disabledMenuItemKeyNavigation.qml74
-rw-r--r--tests/auto/qquickmenu/data/menuItemWidths.qml103
-rw-r--r--tests/auto/qquickmenu/data/menuSeparator.qml83
-rw-r--r--tests/auto/qquickmenu/data/mnemonics.qml87
-rw-r--r--tests/auto/qquickmenu/data/order.qml81
-rw-r--r--tests/auto/qquickmenu/data/popup.qml124
-rw-r--r--tests/auto/qquickmenu/data/pressAndHold.qml73
-rw-r--r--tests/auto/qquickmenu/data/removeTakeItem.qml91
-rw-r--r--tests/auto/qquickmenu/data/repeater.qml69
-rw-r--r--tests/auto/qquickmenu/data/subMenuDisabled.qml79
-rw-r--r--tests/auto/qquickmenu/data/subMenus.qml134
-rw-r--r--tests/auto/qquickmenu/data/windowScrollable.qml74
-rw-r--r--tests/auto/qquickmenu/qquickmenu.pro15
-rw-r--r--tests/auto/qquickmenu/tst_qquickmenu.cpp1824
-rw-r--r--tests/auto/qquickmenubar/data/delegateFromSeparateComponent.qml79
-rw-r--r--tests/auto/qquickmenubar/data/empty.qml54
-rw-r--r--tests/auto/qquickmenubar/data/menubar.qml106
-rw-r--r--tests/auto/qquickmenubar/qquickmenubar.pro14
-rw-r--r--tests/auto/qquickmenubar/tst_qquickmenubar.cpp569
-rw-r--r--tests/auto/qquickninepatchimage/data/foo.9.pngbin213 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/foo@2x.9.pngbin295 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/foo@3x.9.pngbin377 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/foo@4x.9.pngbin482 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-all.9.pngbin245 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-all@2x.9.pngbin341 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-all@3x.9.pngbin470 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-all@4x.9.pngbin577 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-bottomright.9.pngbin246 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-bottomright@2x.9.pngbin348 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-bottomright@3x.9.pngbin460 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-bottomright@4x.9.pngbin565 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-topleft.9.pngbin227 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-topleft@2x.9.pngbin305 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-topleft@3x.9.pngbin420 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/inset-topleft@4x.9.pngbin516 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/ninepatchimage.qml7
-rw-r--r--tests/auto/qquickninepatchimage/data/padding.9.pngbin226 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/padding@2x.9.pngbin298 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/padding@3x.9.pngbin381 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/data/padding@4x.9.pngbin485 -> 0 bytes
-rw-r--r--tests/auto/qquickninepatchimage/qquickninepatchimage.pro14
-rw-r--r--tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp254
-rw-r--r--tests/auto/qquickpopup/data/activeFocusOnClose1.qml69
-rw-r--r--tests/auto/qquickpopup/data/activeFocusOnClose2.qml79
-rw-r--r--tests/auto/qquickpopup/data/activeFocusOnClose3.qml78
-rw-r--r--tests/auto/qquickpopup/data/applicationwindow-hover.qml79
-rw-r--r--tests/auto/qquickpopup/data/applicationwindow-wheel.qml81
-rw-r--r--tests/auto/qquickpopup/data/applicationwindow.qml93
-rw-r--r--tests/auto/qquickpopup/data/closeOnEscapeWithNestedPopups.qml112
-rw-r--r--tests/auto/qquickpopup/data/countChanged.qml80
-rw-r--r--tests/auto/qquickpopup/data/cursor.qml71
-rw-r--r--tests/auto/qquickpopup/data/dialog.qml75
-rw-r--r--tests/auto/qquickpopup/data/disabledPalette.qml72
-rw-r--r--tests/auto/qquickpopup/data/grabber.qml80
-rw-r--r--tests/auto/qquickpopup/data/nested.qml74
-rw-r--r--tests/auto/qquickpopup/data/orientation.qml76
-rw-r--r--tests/auto/qquickpopup/data/toolTipCrashOnClose.qml94
-rw-r--r--tests/auto/qquickpopup/data/window-hover.qml80
-rw-r--r--tests/auto/qquickpopup/data/window-wheel.qml81
-rw-r--r--tests/auto/qquickpopup/data/window.qml94
-rw-r--r--tests/auto/qquickpopup/qquickpopup.pro14
-rw-r--r--tests/auto/qquickpopup/tst_qquickpopup.cpp1236
-rw-r--r--tests/auto/qquickstyle/data/custom.conf6
-rw-r--r--tests/auto/qquickstyle/data/default.conf6
-rw-r--r--tests/auto/qquickstyle/data/dependencies.qml4
-rw-r--r--tests/auto/qquickstyle/data/designer/ButtonSpecifics.qml3
-rw-r--r--tests/auto/qquickstyle/data/dummy.dSYM/empty0
-rw-r--r--tests/auto/qquickstyle/data/dummyStyles/DummyStyle/Button.qml2
-rw-r--r--tests/auto/qquickstyle/data/fusion.conf6
-rw-r--r--tests/auto/qquickstyle/data/imagine.conf6
-rw-r--r--tests/auto/qquickstyle/data/material.conf6
-rw-r--r--tests/auto/qquickstyle/data/universal.conf6
-rw-r--r--tests/auto/qquickstyle/qquickstyle.pro28
-rw-r--r--tests/auto/qquickstyle/qrcStyles1/QrcStyle1/Button.qml2
-rw-r--r--tests/auto/qquickstyle/qrcStyles2/QrcStyle2/Button.qml2
-rw-r--r--tests/auto/qquickstyle/qrcStyles3/QrcStyle3/Button.qml2
-rw-r--r--tests/auto/qquickstyle/qrcStyles4/QrcStyle4/Button.qml2
-rw-r--r--tests/auto/qquickstyle/tst_qquickstyle.cpp348
-rw-r--r--tests/auto/qquickstyleselector/ResourceStyle/Button.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/Button.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/Control.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/FallbackStyle/Button.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/FallbackStyle/Label.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/FileSystemStyle/Button.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/Label.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/PlatformStyle/+linux/Button.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/PlatformStyle/+macos/Button.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/PlatformStyle/+windows/Button.qml2
-rw-r--r--tests/auto/qquickstyleselector/data/PlatformStyle/Button.qml2
-rw-r--r--tests/auto/qquickstyleselector/qquickstyleselector.pro19
-rw-r--r--tests/auto/qquickstyleselector/tst_qquickstyleselector.cpp167
-rw-r--r--tests/auto/qquickuniversalstyle/data/tst_universal.qml441
-rw-r--r--tests/auto/qquickuniversalstyle/qquickuniversalstyle.pro15
-rw-r--r--tests/auto/qquickuniversalstyle/qtquickcontrols2.conf2
-rw-r--r--tests/auto/qquickuniversalstyle/tst_qquickuniversalstyle.cpp38
-rw-r--r--tests/auto/qquickuniversalstyleconf/data/applicationwindow.qml64
-rw-r--r--tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro17
-rw-r--r--tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.qrc5
-rw-r--r--tests/auto/qquickuniversalstyleconf/qtquickcontrols2.conf10
-rw-r--r--tests/auto/qquickuniversalstyleconf/tst_qquickuniversalstyleconf.cpp78
-rw-r--r--tests/auto/revisions/data/dependencies.qml6
-rw-r--r--tests/auto/revisions/revisions.pro7
-rw-r--r--tests/auto/revisions/tst_revisions.cpp113
-rw-r--r--tests/auto/sanity/BLACKLIST4
-rw-r--r--tests/auto/sanity/data/dependencies.qml4
-rw-r--r--tests/auto/sanity/sanity.pro14
-rw-r--r--tests/auto/sanity/tst_sanity.cpp377
-rw-r--r--tests/auto/shared/qtest_quickcontrols.h86
-rw-r--r--tests/auto/shared/util.cpp136
-rw-r--r--tests/auto/shared/util.h106
-rw-r--r--tests/auto/shared/util.pri14
-rw-r--r--tests/auto/shared/visualtestutil.cpp135
-rw-r--r--tests/auto/shared/visualtestutil.h146
-rw-r--r--tests/auto/snippets/data/dependencies.qml8
-rw-r--r--tests/auto/snippets/snippets.pro17
-rw-r--r--tests/auto/snippets/tst_snippets.cpp168
-rw-r--r--tests/auto/translation/data/dialogButtonBox.qml61
-rw-r--r--tests/auto/translation/qtbase_fr.ts22
-rw-r--r--tests/auto/translation/translation.pro19
-rw-r--r--tests/auto/translation/tst_translation.cpp100
-rw-r--r--tests/benchmarks/benchmarks.pro4
-rw-r--r--tests/benchmarks/creationtime/creationtime.pro11
-rw-r--r--tests/benchmarks/creationtime/data/dependencies.qml9
-rw-r--r--tests/benchmarks/creationtime/tst_creationtime.cpp167
-rw-r--r--tests/benchmarks/objectcount/data/dependencies.qml9
-rw-r--r--tests/benchmarks/objectcount/objectcount.pro11
-rw-r--r--tests/benchmarks/objectcount/tst_objectcount.cpp154
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_abstractbutton.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_busyindicator.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_button.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_checkbox.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_checkdelegate.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_combobox.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_container.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_control.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_delaybutton.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_dial.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_dialog.qml28
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_drawer.qml21
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_frame.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_groupbox.qml18
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_itemdelegate.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_label.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_menu.qml22
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_menuitem.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml13
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_page.qml18
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_pageindicator.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_pane.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_popup.qml26
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_progressbar.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_radiobutton.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_radiodelegate.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_rangeslider.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_roundbutton.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_scrollbar.qml17
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_scrollview.qml23
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_slider.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_spinbox.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_stackview.qml18
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_swipedelegate.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_swipeview.qml24
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_switch.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_switchdelegate.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tabbar.qml23
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tabbutton.qml16
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_textarea.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_textfield.qml14
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_toolbutton.qml15
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_toolseparator.qml13
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tooltip.qml20
-rw-r--r--tests/benchmarks/qmlbench/creation/delegates_tumbler.qml15
-rw-r--r--tests/global/global.cfg5
-rw-r--r--tests/manual/buttons/ButtonLoader.qml101
-rw-r--r--tests/manual/buttons/buttons.cpp62
-rw-r--r--tests/manual/buttons/buttons.pro6
-rw-r--r--tests/manual/buttons/buttons.qml150
-rw-r--r--tests/manual/dialogs/CustomDialog.qml74
-rw-r--r--tests/manual/dialogs/DialogLabel.qml60
-rw-r--r--tests/manual/dialogs/Marker.qml68
-rw-r--r--tests/manual/dialogs/dialogs.cpp63
-rw-r--r--tests/manual/dialogs/dialogs.pro11
-rw-r--r--tests/manual/dialogs/dialogs.qml247
-rw-r--r--tests/manual/dialogs/qtquickcontrols2.conf6
-rw-r--r--tests/manual/fonts/deployment.pri14
-rw-r--r--tests/manual/fonts/fonts.pro14
-rw-r--r--tests/manual/fonts/main.cpp49
-rw-r--r--tests/manual/fonts/main.qml102
-rw-r--r--tests/manual/fonts/qml.qrc6
-rw-r--r--tests/manual/gifs/capturedevent.cpp113
-rw-r--r--tests/manual/gifs/capturedevent.h67
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-busyindicator.qml67
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-button-flat.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-button-highlighted.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-button.qml65
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-checkbox-tristate.qml87
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-checkbox.qml82
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-checkdelegate-tristate.qml91
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-checkdelegate.qml74
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-combobox.qml69
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-delaybutton.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml67
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-drawer.qml99
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-itemdelegate.qml73
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-menu.qml85
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-progressbar-indeterminate.qml67
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-progressbar.qml81
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-radiobutton.qml83
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-radiodelegate.qml80
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-rangeslider.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-scrollbar-snap.qml71
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-scrollbar.qml80
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-scrollindicator.qml77
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-slider-snap.qml89
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-slider.qml66
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-stackview-pop.qml112
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-stackview-push.qml107
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-stackview-replace.qml112
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-stackview-unwind.qml112
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-swipedelegate-behind.qml81
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-swipedelegate-leading-trailing.qml93
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-swipedelegate.qml92
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-swipeview.qml99
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-switch.qml64
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-switchdelegate.qml74
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-tabbar.qml68
-rw-r--r--tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml104
-rw-r--r--tests/manual/gifs/eventcapturer.cpp236
-rw-r--r--tests/manual/gifs/eventcapturer.h97
-rw-r--r--tests/manual/gifs/gifrecorder.cpp327
-rw-r--r--tests/manual/gifs/gifrecorder.h92
-rw-r--r--tests/manual/gifs/gifs.pro20
-rw-r--r--tests/manual/gifs/tst_gifs.cpp1052
-rw-r--r--tests/manual/manual.pro12
-rw-r--r--tests/manual/screenshots/qtquickcontrols2.conf5
-rw-r--r--tests/manual/screenshots/screenshots.cpp72
-rw-r--r--tests/manual/screenshots/screenshots.pro13
-rw-r--r--tests/manual/screenshots/screenshots.qml174
-rw-r--r--tests/manual/shared/FontAwesome.otfbin106260 -> 0 bytes
-rw-r--r--tests/manual/shared/FontAwesome.qml746
-rw-r--r--tests/manual/shared/FontAwesomeIcon.qml58
-rw-r--r--tests/manual/shared/qmldir4
-rw-r--r--tests/manual/shared/shared.qrc8
-rw-r--r--tests/manual/styles-cover-flow/CoverFlowDelegate.qml136
-rw-r--r--tests/manual/styles-cover-flow/CoverFlowPath.qml157
-rw-r--r--tests/manual/styles-cover-flow/styles-cover-flow.cpp66
-rw-r--r--tests/manual/styles-cover-flow/styles-cover-flow.pro11
-rw-r--r--tests/manual/styles-cover-flow/styles-cover-flow.qml100
-rw-r--r--tests/manual/styles/styles.cpp64
-rw-r--r--tests/manual/styles/styles.pro9
-rw-r--r--tests/manual/styles/styles.qml115
-rw-r--r--tests/manual/systemtrayicon/images/qt_logo_green_256.pngbin3977 -> 0 bytes
-rw-r--r--tests/manual/systemtrayicon/systemtrayicon.cpp64
-rw-r--r--tests/manual/systemtrayicon/systemtrayicon.pro9
-rw-r--r--tests/manual/systemtrayicon/systemtrayicon.qml89
-rw-r--r--tests/manual/systemtrayicon/systemtrayicon.qrc6
-rw-r--r--tests/manual/testbench/.gitignore83
-rw-r--r--tests/manual/testbench/ColorEditor.qml80
-rw-r--r--tests/manual/testbench/ControlContainer.qml70
-rw-r--r--tests/manual/testbench/ExampleContainer.qml83
-rw-r--r--tests/manual/testbench/README.md35
-rw-r--r--tests/manual/testbench/SettingsDialog.qml453
-rw-r--r--tests/manual/testbench/assetfixer.cpp564
-rw-r--r--tests/manual/testbench/assetfixer.h126
-rw-r--r--tests/manual/testbench/clipboard.cpp124
-rw-r--r--tests/manual/testbench/clipboard.h72
-rw-r--r--tests/manual/testbench/controls/BusyIndicator.qml65
-rw-r--r--tests/manual/testbench/controls/Button.qml90
-rw-r--r--tests/manual/testbench/controls/CheckBox.qml74
-rw-r--r--tests/manual/testbench/controls/CheckDelegate.qml87
-rw-r--r--tests/manual/testbench/controls/ComboBox.qml71
-rw-r--r--tests/manual/testbench/controls/DelayButton.qml72
-rw-r--r--tests/manual/testbench/controls/Dial.qml65
-rw-r--r--tests/manual/testbench/controls/Dialog.qml87
-rw-r--r--tests/manual/testbench/controls/Frame.qml64
-rw-r--r--tests/manual/testbench/controls/GroupBox.qml66
-rw-r--r--tests/manual/testbench/controls/ItemDelegate.qml84
-rw-r--r--tests/manual/testbench/controls/Label.qml66
-rw-r--r--tests/manual/testbench/controls/Menu.qml121
-rw-r--r--tests/manual/testbench/controls/MenuBar.qml79
-rw-r--r--tests/manual/testbench/controls/Page.qml68
-rw-r--r--tests/manual/testbench/controls/PageIndicator.qml111
-rw-r--r--tests/manual/testbench/controls/Pane.qml68
-rw-r--r--tests/manual/testbench/controls/ProgressBar.qml66
-rw-r--r--tests/manual/testbench/controls/RadioButton.qml73
-rw-r--r--tests/manual/testbench/controls/RadioDelegate.qml86
-rw-r--r--tests/manual/testbench/controls/RangeSlider.qml69
-rw-r--r--tests/manual/testbench/controls/RoundButton.qml88
-rw-r--r--tests/manual/testbench/controls/ScrollBar.qml114
-rw-r--r--tests/manual/testbench/controls/ScrollIndicator.qml104
-rw-r--r--tests/manual/testbench/controls/Slider.qml69
-rw-r--r--tests/manual/testbench/controls/SpinBox.qml78
-rw-r--r--tests/manual/testbench/controls/SplitView.qml79
-rw-r--r--tests/manual/testbench/controls/SwipeDelegate.qml106
-rw-r--r--tests/manual/testbench/controls/Switch.qml76
-rw-r--r--tests/manual/testbench/controls/SwitchDelegate.qml86
-rw-r--r--tests/manual/testbench/controls/TabBar.qml81
-rw-r--r--tests/manual/testbench/controls/TextArea.qml73
-rw-r--r--tests/manual/testbench/controls/TextField.qml73
-rw-r--r--tests/manual/testbench/controls/ToolBar.qml87
-rw-r--r--tests/manual/testbench/controls/ToolTip.qml67
-rw-r--r--tests/manual/testbench/controls/Tumbler.qml67
-rw-r--r--tests/manual/testbench/deployment.pri14
-rw-r--r--tests/manual/testbench/directoryvalidator.cpp102
-rw-r--r--tests/manual/testbench/directoryvalidator.h84
-rw-r--r--tests/manual/testbench/fonts.qrc5
-rw-r--r--tests/manual/testbench/fonts/LICENSE.txt12
-rw-r--r--tests/manual/testbench/fonts/fontawesome.ttfbin5464 -> 0 bytes
-rw-r--r--tests/manual/testbench/main.cpp94
-rw-r--r--tests/manual/testbench/qml.qrc45
-rw-r--r--tests/manual/testbench/testbench.pro24
-rw-r--r--tests/manual/testbench/testbench.qml545
-rw-r--r--tests/manual/viewinqwidget/main.cpp91
-rw-r--r--tests/manual/viewinqwidget/main.qml49
-rw-r--r--tests/manual/viewinqwidget/viewinqwidget.pro6
-rw-r--r--tests/manual/viewinqwidget/viewinqwidget.qrc5
-rw-r--r--tests/tests.pro4
4064 files changed, 14 insertions, 283958 deletions
diff --git a/.gitattributes b/.gitattributes
deleted file mode 100644
index 1a045fa1..00000000
--- a/.gitattributes
+++ /dev/null
@@ -1,4 +0,0 @@
-.tag export-subst
-.gitignore export-ignore
-.gitattributes export-ignore
-.commit-template export-ignore
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 52b333ca..00000000
--- a/.gitignore
+++ /dev/null
@@ -1,159 +0,0 @@
-# This file is used to ignore files which are generated in the Qt build system
-# ----------------------------------------------------------------------------
-
-/include
-/lib
-/mkspecs
-/doc
-
-/src/quickcontrols2/qtquickcontrols2-config.h
-/src/quickcontrols2/qtquickcontrols2-config.pri
-/src/quickcontrols2/qtquickcontrols2-config_p.h
-/src/quicktemplates2/qtquicktemplates2-config.h
-/src/quicktemplates2/qtquicktemplates2-config.pri
-/src/quicktemplates2/qtquicktemplates2-config_p.h
-
-/examples/quickcontrols2/chattutorial/chapter1-settingup/chapter1-settingup
-/examples/quickcontrols2/chattutorial/chapter2-lists/chapter2-lists
-/examples/quickcontrols2/chattutorial/chapter3-navigation/chapter3-navigation
-/examples/quickcontrols2/chattutorial/chapter4-models/chapter4-models
-/examples/quickcontrols2/chattutorial/chapter5-styling/chapter5-styling
-/examples/quickcontrols2/contactlist/contactlist
-/examples/quickcontrols2/flatstyle/flatstyle
-/examples/quickcontrols2/gallery/gallery
-/examples/quickcontrols2/imagine/automotive/automotive
-/examples/quickcontrols2/imagine/musicplayer/musicplayer
-/examples/quickcontrols2/sidepanel/sidepanel
-/examples/quickcontrols2/swipetoremove/swipetoremove
-/examples/quickcontrols2/texteditor/texteditor
-/examples/quickcontrols2/wearable/wearable
-
-/tests/auto/accessibility/tst_accessibility
-/tests/auto/calendar/tst_calendar
-/tests/auto/controls/default/tst_default
-/tests/auto/controls/fusion/tst_fusion
-/tests/auto/controls/imagine/tst_imagine
-/tests/auto/controls/material/tst_material
-/tests/auto/controls/universal/tst_universal
-/tests/auto/cursor/tst_cursor
-/tests/auto/customization/tst_customization
-/tests/auto/focus/tst_focus
-/tests/auto/font/tst_font
-/tests/auto/palette/tst_palette
-/tests/auto/platform/tst_platform
-/tests/auto/pressandhold/tst_pressandhold
-/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow
-/tests/auto/qquickcolor/tst_qquickcolor
-/tests/auto/qquickdrawer/tst_qquickdrawer
-/tests/auto/qquickiconimage/tst_qquickiconimage
-/tests/auto/qquickiconlabel/tst_qquickiconlabel
-/tests/auto/qquickimaginestyle/tst_qquickimaginestyle
-/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle
-/tests/auto/qquickmaterialstyleconf/tst_qquickmaterialstyleconf
-/tests/auto/qquickmenu/tst_qquickmenu
-/tests/auto/qquickmenubar/tst_qquickmenubar
-/tests/auto/qquickninepatchimage/tst_qquickninepatchimage
-/tests/auto/qquickpopup/tst_qquickpopup
-/tests/auto/qquickstyle/tst_qquickstyle
-/tests/auto/qquickstyleselector/tst_qquickstyleselector
-/tests/auto/qquickuniversalstyle/tst_qquickuniversalstyle
-/tests/auto/qquickuniversalstyleconf/tst_qquickuniversalstyleconf
-/tests/auto/revisions/tst_revisions
-/tests/auto/sanity/tst_sanity
-/tests/auto/snippets/tst_snippets
-/tests/auto/styles/tst_styles
-/tests/benchmarks/creationtime/tst_creationtime
-/tests/benchmarks/objectcount/tst_objectcount
-/tests/manual/buttons/buttons
-/tests/manual/fonts/fonts
-/tests/manual/gifs/tst_gifs
-/tests/manual/styles/styles
-/tests/manual/testbench/testbench
-/tests/manual/screenshots/screenshots
-
-/tests/auto/snippets/screenshots/*.png
-/tests/manual/gifs/gifs/*.gif
-
-*.so
-*.so.*
-*.app
-*.exe
-*.dll
-*.dylib
-*.lib
-*.exp
-*.a
-*.la
-*.core
-*.moc
-*.o
-*.obj
-*.orig
-*.swp
-*.rej
-*.so
-*.pbxuser
-*.mode1
-*.mode1v3
-*_pch.h.cpp
-*_resource.rc
-*~
-.#*
-*.*#
-.qmake.stash
-.qmake.cache
-.qmake.vars
-*.prl
-tags
-.DS_Store
-*.debug
-Makefile*
-*.Debug
-*.Release
-*.prl
-*.pro.user
-*.pro.user.*
-*.qmlproject.user*
-moc_*.cpp
-ui_*.h
-qrc_*.cpp
-callgrind.out.*
-pcviewer.cfg
-*.flc
-.*.swp
-*.ib_pdb_index
-*.idb
-*.ilk
-*.pdb
-*.sln
-*.suo
-*.vcproj
-*vcproj.*.*.user
-*.ncb
-.pch
-.rcc
-.project
-.cproject
-.make.cache
-android-build
-app_process
-qtc-debugging-helper
-android-*.so-deployment-settings.json
-*.directory
-*_plugin_import.cpp
-*_wrapper.sh
-*_wrapper.bat
-*.mak
-*.xib
-*.plist
-*.pbxproj
-*_plugin_import.cpp
-*.xcsettings
-*.xcscheme
-*.xcodeproj
-qt.conf
-*.version
-*.version.in
-*.qmlc
-.qmlcache
-codeattributions.qdoc
diff --git a/.qmake.conf b/.qmake.conf
deleted file mode 100644
index f8fe8390..00000000
--- a/.qmake.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-load(qt_build_config)
-CONFIG += warning_clean
-
-DEFINES += QT_NO_FOREACH QT_NO_JAVA_STYLE_ITERATORS QT_NO_LINKED_LIST
-
-QQC2_SOURCE_TREE = $$PWD
-
-MODULE_VERSION = 6.0.0
diff --git a/.tag b/.tag
deleted file mode 100644
index 6828f88d..00000000
--- a/.tag
+++ /dev/null
@@ -1 +0,0 @@
-$Format:%H$
diff --git a/LICENSE.FDL b/LICENSE.FDL
deleted file mode 100644
index 938bb8da..00000000
--- a/LICENSE.FDL
+++ /dev/null
@@ -1,450 +0,0 @@
- GNU Free Documentation License
- Version 1.3, 3 November 2008
-
-
- Copyright (C) 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.
- <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-0. PREAMBLE
-
-The purpose of this License is to make a manual, textbook, or other
-functional and useful document "free" in the sense of freedom: to
-assure everyone the effective freedom to copy and redistribute it,
-with or without modifying it, either commercially or noncommercially.
-Secondarily, this License preserves for the author and publisher a way
-to get credit for their work, while not being considered responsible
-for modifications made by others.
-
-This License is a kind of "copyleft", which means that derivative
-works of the document must themselves be free in the same sense. It
-complements the GNU General Public License, which is a copyleft
-license designed for free software.
-
-We have designed this License in order to use it for manuals for free
-software, because free software needs free documentation: a free
-program should come with manuals providing the same freedoms that the
-software does. But this License is not limited to software manuals;
-it can be used for any textual work, regardless of subject matter or
-whether it is published as a printed book. We recommend this License
-principally for works whose purpose is instruction or reference.
-
-
-1. APPLICABILITY AND DEFINITIONS
-
-This License applies to any manual or other work, in any medium, that
-contains a notice placed by the copyright holder saying it can be
-distributed under the terms of this License. Such a notice grants a
-world-wide, royalty-free license, unlimited in duration, to use that
-work under the conditions stated herein. The "Document", below,
-refers to any such manual or work. Any member of the public is a
-licensee, and is addressed as "you". You accept the license if you
-copy, modify or distribute the work in a way requiring permission
-under copyright law.
-
-A "Modified Version" of the Document means any work containing the
-Document or a portion of it, either copied verbatim, or with
-modifications and/or translated into another language.
-
-A "Secondary Section" is a named appendix or a front-matter section of
-the Document that deals exclusively with the relationship of the
-publishers or authors of the Document to the Document's overall
-subject (or to related matters) and contains nothing that could fall
-directly within that overall subject. (Thus, if the Document is in
-part a textbook of mathematics, a Secondary Section may not explain
-any mathematics.) The relationship could be a matter of historical
-connection with the subject or with related matters, or of legal,
-commercial, philosophical, ethical or political position regarding
-them.
-
-The "Invariant Sections" are certain Secondary Sections whose titles
-are designated, as being those of Invariant Sections, in the notice
-that says that the Document is released under this License. If a
-section does not fit the above definition of Secondary then it is not
-allowed to be designated as Invariant. The Document may contain zero
-Invariant Sections. If the Document does not identify any Invariant
-Sections then there are none.
-
-The "Cover Texts" are certain short passages of text that are listed,
-as Front-Cover Texts or Back-Cover Texts, in the notice that says that
-the Document is released under this License. A Front-Cover Text may
-be at most 5 words, and a Back-Cover Text may be at most 25 words.
-
-A "Transparent" copy of the Document means a machine-readable copy,
-represented in a format whose specification is available to the
-general public, that is suitable for revising the document
-straightforwardly with generic text editors or (for images composed of
-pixels) generic paint programs or (for drawings) some widely available
-drawing editor, and that is suitable for input to text formatters or
-for automatic translation to a variety of formats suitable for input
-to text formatters. A copy made in an otherwise Transparent file
-format whose markup, or absence of markup, has been arranged to thwart
-or discourage subsequent modification by readers is not Transparent.
-An image format is not Transparent if used for any substantial amount
-of text. A copy that is not "Transparent" is called "Opaque".
-
-Examples of suitable formats for Transparent copies include plain
-ASCII without markup, Texinfo input format, LaTeX input format, SGML
-or XML using a publicly available DTD, and standard-conforming simple
-HTML, PostScript or PDF designed for human modification. Examples of
-transparent image formats include PNG, XCF and JPG. Opaque formats
-include proprietary formats that can be read and edited only by
-proprietary word processors, SGML or XML for which the DTD and/or
-processing tools are not generally available, and the
-machine-generated HTML, PostScript or PDF produced by some word
-processors for output purposes only.
-
-The "Title Page" means, for a printed book, the title page itself,
-plus such following pages as are needed to hold, legibly, the material
-this License requires to appear in the title page. For works in
-formats which do not have any title page as such, "Title Page" means
-the text near the most prominent appearance of the work's title,
-preceding the beginning of the body of the text.
-
-The "publisher" means any person or entity that distributes copies of
-the Document to the public.
-
-A section "Entitled XYZ" means a named subunit of the Document whose
-title either is precisely XYZ or contains XYZ in parentheses following
-text that translates XYZ in another language. (Here XYZ stands for a
-specific section name mentioned below, such as "Acknowledgements",
-"Dedications", "Endorsements", or "History".) To "Preserve the Title"
-of such a section when you modify the Document means that it remains a
-section "Entitled XYZ" according to this definition.
-
-The Document may include Warranty Disclaimers next to the notice which
-states that this License applies to the Document. These Warranty
-Disclaimers are considered to be included by reference in this
-License, but only as regards disclaiming warranties: any other
-implication that these Warranty Disclaimers may have is void and has
-no effect on the meaning of this License.
-
-2. VERBATIM COPYING
-
-You may copy and distribute the Document in any medium, either
-commercially or noncommercially, provided that this License, the
-copyright notices, and the license notice saying this License applies
-to the Document are reproduced in all copies, and that you add no
-other conditions whatsoever to those of this License. You may not use
-technical measures to obstruct or control the reading or further
-copying of the copies you make or distribute. However, you may accept
-compensation in exchange for copies. If you distribute a large enough
-number of copies you must also follow the conditions in section 3.
-
-You may also lend copies, under the same conditions stated above, and
-you may publicly display copies.
-
-
-3. COPYING IN QUANTITY
-
-If you publish printed copies (or copies in media that commonly have
-printed covers) of the Document, numbering more than 100, and the
-Document's license notice requires Cover Texts, you must enclose the
-copies in covers that carry, clearly and legibly, all these Cover
-Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on
-the back cover. Both covers must also clearly and legibly identify
-you as the publisher of these copies. The front cover must present
-the full title with all words of the title equally prominent and
-visible. You may add other material on the covers in addition.
-Copying with changes limited to the covers, as long as they preserve
-the title of the Document and satisfy these conditions, can be treated
-as verbatim copying in other respects.
-
-If the required texts for either cover are too voluminous to fit
-legibly, you should put the first ones listed (as many as fit
-reasonably) on the actual cover, and continue the rest onto adjacent
-pages.
-
-If you publish or distribute Opaque copies of the Document numbering
-more than 100, you must either include a machine-readable Transparent
-copy along with each Opaque copy, or state in or with each Opaque copy
-a computer-network location from which the general network-using
-public has access to download using public-standard network protocols
-a complete Transparent copy of the Document, free of added material.
-If you use the latter option, you must take reasonably prudent steps,
-when you begin distribution of Opaque copies in quantity, to ensure
-that this Transparent copy will remain thus accessible at the stated
-location until at least one year after the last time you distribute an
-Opaque copy (directly or through your agents or retailers) of that
-edition to the public.
-
-It is requested, but not required, that you contact the authors of the
-Document well before redistributing any large number of copies, to
-give them a chance to provide you with an updated version of the
-Document.
-
-
-4. MODIFICATIONS
-
-You may copy and distribute a Modified Version of the Document under
-the conditions of sections 2 and 3 above, provided that you release
-the Modified Version under precisely this License, with the Modified
-Version filling the role of the Document, thus licensing distribution
-and modification of the Modified Version to whoever possesses a copy
-of it. In addition, you must do these things in the Modified Version:
-
-A. Use in the Title Page (and on the covers, if any) a title distinct
- from that of the Document, and from those of previous versions
- (which should, if there were any, be listed in the History section
- of the Document). You may use the same title as a previous version
- if the original publisher of that version gives permission.
-B. List on the Title Page, as authors, one or more persons or entities
- responsible for authorship of the modifications in the Modified
- Version, together with at least five of the principal authors of the
- Document (all of its principal authors, if it has fewer than five),
- unless they release you from this requirement.
-C. State on the Title page the name of the publisher of the
- Modified Version, as the publisher.
-D. Preserve all the copyright notices of the Document.
-E. Add an appropriate copyright notice for your modifications
- adjacent to the other copyright notices.
-F. Include, immediately after the copyright notices, a license notice
- giving the public permission to use the Modified Version under the
- terms of this License, in the form shown in the Addendum below.
-G. Preserve in that license notice the full lists of Invariant Sections
- and required Cover Texts given in the Document's license notice.
-H. Include an unaltered copy of this License.
-I. Preserve the section Entitled "History", Preserve its Title, and add
- to it an item stating at least the title, year, new authors, and
- publisher of the Modified Version as given on the Title Page. If
- there is no section Entitled "History" in the Document, create one
- stating the title, year, authors, and publisher of the Document as
- given on its Title Page, then add an item describing the Modified
- Version as stated in the previous sentence.
-J. Preserve the network location, if any, given in the Document for
- public access to a Transparent copy of the Document, and likewise
- the network locations given in the Document for previous versions
- it was based on. These may be placed in the "History" section.
- You may omit a network location for a work that was published at
- least four years before the Document itself, or if the original
- publisher of the version it refers to gives permission.
-K. For any section Entitled "Acknowledgements" or "Dedications",
- Preserve the Title of the section, and preserve in the section all
- the substance and tone of each of the contributor acknowledgements
- and/or dedications given therein.
-L. Preserve all the Invariant Sections of the Document,
- unaltered in their text and in their titles. Section numbers
- or the equivalent are not considered part of the section titles.
-M. Delete any section Entitled "Endorsements". Such a section
- may not be included in the Modified Version.
-N. Do not retitle any existing section to be Entitled "Endorsements"
- or to conflict in title with any Invariant Section.
-O. Preserve any Warranty Disclaimers.
-
-If the Modified Version includes new front-matter sections or
-appendices that qualify as Secondary Sections and contain no material
-copied from the Document, you may at your option designate some or all
-of these sections as invariant. To do this, add their titles to the
-list of Invariant Sections in the Modified Version's license notice.
-These titles must be distinct from any other section titles.
-
-You may add a section Entitled "Endorsements", provided it contains
-nothing but endorsements of your Modified Version by various
-parties--for example, statements of peer review or that the text has
-been approved by an organization as the authoritative definition of a
-standard.
-
-You may add a passage of up to five words as a Front-Cover Text, and a
-passage of up to 25 words as a Back-Cover Text, to the end of the list
-of Cover Texts in the Modified Version. Only one passage of
-Front-Cover Text and one of Back-Cover Text may be added by (or
-through arrangements made by) any one entity. If the Document already
-includes a cover text for the same cover, previously added by you or
-by arrangement made by the same entity you are acting on behalf of,
-you may not add another; but you may replace the old one, on explicit
-permission from the previous publisher that added the old one.
-
-The author(s) and publisher(s) of the Document do not by this License
-give permission to use their names for publicity for or to assert or
-imply endorsement of any Modified Version.
-
-
-5. COMBINING DOCUMENTS
-
-You may combine the Document with other documents released under this
-License, under the terms defined in section 4 above for modified
-versions, provided that you include in the combination all of the
-Invariant Sections of all of the original documents, unmodified, and
-list them all as Invariant Sections of your combined work in its
-license notice, and that you preserve all their Warranty Disclaimers.
-
-The combined work need only contain one copy of this License, and
-multiple identical Invariant Sections may be replaced with a single
-copy. If there are multiple Invariant Sections with the same name but
-different contents, make the title of each such section unique by
-adding at the end of it, in parentheses, the name of the original
-author or publisher of that section if known, or else a unique number.
-Make the same adjustment to the section titles in the list of
-Invariant Sections in the license notice of the combined work.
-
-In the combination, you must combine any sections Entitled "History"
-in the various original documents, forming one section Entitled
-"History"; likewise combine any sections Entitled "Acknowledgements",
-and any sections Entitled "Dedications". You must delete all sections
-Entitled "Endorsements".
-
-
-6. COLLECTIONS OF DOCUMENTS
-
-You may make a collection consisting of the Document and other
-documents released under this License, and replace the individual
-copies of this License in the various documents with a single copy
-that is included in the collection, provided that you follow the rules
-of this License for verbatim copying of each of the documents in all
-other respects.
-
-You may extract a single document from such a collection, and
-distribute it individually under this License, provided you insert a
-copy of this License into the extracted document, and follow this
-License in all other respects regarding verbatim copying of that
-document.
-
-
-7. AGGREGATION WITH INDEPENDENT WORKS
-
-A compilation of the Document or its derivatives with other separate
-and independent documents or works, in or on a volume of a storage or
-distribution medium, is called an "aggregate" if the copyright
-resulting from the compilation is not used to limit the legal rights
-of the compilation's users beyond what the individual works permit.
-When the Document is included in an aggregate, this License does not
-apply to the other works in the aggregate which are not themselves
-derivative works of the Document.
-
-If the Cover Text requirement of section 3 is applicable to these
-copies of the Document, then if the Document is less than one half of
-the entire aggregate, the Document's Cover Texts may be placed on
-covers that bracket the Document within the aggregate, or the
-electronic equivalent of covers if the Document is in electronic form.
-Otherwise they must appear on printed covers that bracket the whole
-aggregate.
-
-
-8. TRANSLATION
-
-Translation is considered a kind of modification, so you may
-distribute translations of the Document under the terms of section 4.
-Replacing Invariant Sections with translations requires special
-permission from their copyright holders, but you may include
-translations of some or all Invariant Sections in addition to the
-original versions of these Invariant Sections. You may include a
-translation of this License, and all the license notices in the
-Document, and any Warranty Disclaimers, provided that you also include
-the original English version of this License and the original versions
-of those notices and disclaimers. In case of a disagreement between
-the translation and the original version of this License or a notice
-or disclaimer, the original version will prevail.
-
-If a section in the Document is Entitled "Acknowledgements",
-"Dedications", or "History", the requirement (section 4) to Preserve
-its Title (section 1) will typically require changing the actual
-title.
-
-
-9. TERMINATION
-
-You may not copy, modify, sublicense, or distribute the Document
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense, or distribute it is void, and
-will automatically terminate your rights under this License.
-
-However, if you cease all violation of this License, then your license
-from a particular copyright holder is reinstated (a) provisionally,
-unless and until the copyright holder explicitly and finally
-terminates your license, and (b) permanently, if the copyright holder
-fails to notify you of the violation by some reasonable means prior to
-60 days after the cessation.
-
-Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
-Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, receipt of a copy of some or all of the same material does
-not give you any rights to use it.
-
-
-10. FUTURE REVISIONS OF THIS LICENSE
-
-The Free Software Foundation may publish new, revised versions of the
-GNU Free Documentation License from time to time. Such new versions
-will be similar in spirit to the present version, but may differ in
-detail to address new problems or concerns. See
-http://www.gnu.org/copyleft/.
-
-Each version of the License is given a distinguishing version number.
-If the Document specifies that a particular numbered version of this
-License "or any later version" applies to it, you have the option of
-following the terms and conditions either of that specified version or
-of any later version that has been published (not as a draft) by the
-Free Software Foundation. If the Document does not specify a version
-number of this License, you may choose any version ever published (not
-as a draft) by the Free Software Foundation. If the Document
-specifies that a proxy can decide which future versions of this
-License can be used, that proxy's public statement of acceptance of a
-version permanently authorizes you to choose that version for the
-Document.
-
-11. RELICENSING
-
-"Massive Multiauthor Collaboration Site" (or "MMC Site") means any
-World Wide Web server that publishes copyrightable works and also
-provides prominent facilities for anybody to edit those works. A
-public wiki that anybody can edit is an example of such a server. A
-"Massive Multiauthor Collaboration" (or "MMC") contained in the site
-means any set of copyrightable works thus published on the MMC site.
-
-"CC-BY-SA" means the Creative Commons Attribution-Share Alike 3.0
-license published by Creative Commons Corporation, a not-for-profit
-corporation with a principal place of business in San Francisco,
-California, as well as future copyleft versions of that license
-published by that same organization.
-
-"Incorporate" means to publish or republish a Document, in whole or in
-part, as part of another Document.
-
-An MMC is "eligible for relicensing" if it is licensed under this
-License, and if all works that were first published under this License
-somewhere other than this MMC, and subsequently incorporated in whole or
-in part into the MMC, (1) had no cover texts or invariant sections, and
-(2) were thus incorporated prior to November 1, 2008.
-
-The operator of an MMC Site may republish an MMC contained in the site
-under CC-BY-SA on the same site at any time before August 1, 2009,
-provided the MMC is eligible for relicensing.
-
-
-ADDENDUM: How to use this License for your documents
-
-To use this License in a document you have written, include a copy of
-the License in the document and put the following copyright and
-license notices just after the title page:
-
- Copyright (c) YEAR YOUR NAME.
- Permission is granted to copy, distribute and/or modify this document
- under the terms of the GNU Free Documentation License, Version 1.3
- or any later version published by the Free Software Foundation;
- with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
- A copy of the license is included in the section entitled "GNU
- Free Documentation License".
-
-If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts,
-replace the "with...Texts." line with this:
-
- with the Invariant Sections being LIST THEIR TITLES, with the
- Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST.
-
-If you have Invariant Sections without Cover Texts, or some other
-combination of the three, merge those two alternatives to suit the
-situation.
-
-If your document contains nontrivial examples of program code, we
-recommend releasing these examples in parallel under your choice of
-free software license, such as the GNU General Public License,
-to permit their use in free software.
diff --git a/LICENSE.GPL2 b/LICENSE.GPL2
deleted file mode 100644
index d159169d..00000000
--- a/LICENSE.GPL2
+++ /dev/null
@@ -1,339 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 2, June 1991
-
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- GNU GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
-the term "modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
- 1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
- 2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) You must cause the modified files to carry prominent notices
- stating that you changed the files and the date of any change.
-
- b) You must cause any work that you distribute or publish, that in
- whole or in part contains or is derived from the Program or any
- part thereof, to be licensed as a whole at no charge to all third
- parties under the terms of this License.
-
- c) If the modified program normally reads commands interactively
- when run, you must cause it, when started running for such
- interactive use in the most ordinary way, to print or display an
- announcement including an appropriate copyright notice and a
- notice that there is no warranty (or else, saying that you provide
- a warranty) and that users may redistribute the program under
- these conditions, and telling the user how to view a copy of this
- License. (Exception: if the Program itself is interactive but
- does not normally print such an announcement, your work based on
- the Program is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
- a) Accompany it with the complete corresponding machine-readable
- source code, which must be distributed under the terms of Sections
- 1 and 2 above on a medium customarily used for software interchange; or,
-
- b) Accompany it with a written offer, valid for at least three
- years, to give any third party, for a charge no more than your
- cost of physically performing source distribution, a complete
- machine-readable copy of the corresponding source code, to be
- distributed under the terms of Sections 1 and 2 above on a medium
- customarily used for software interchange; or,
-
- c) Accompany it with the information you received as to the offer
- to distribute corresponding source code. (This alternative is
- allowed only for noncommercial distribution and only if you
- received the program in object code or executable form with such
- an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
- 6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
- 7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
-the limitation as if written in the body of this License.
-
- 9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
- 10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
- NO WARRANTY
-
- 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
- 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.
diff --git a/LICENSE.GPL3 b/LICENSE.GPL3
deleted file mode 100644
index 94a9ed02..00000000
--- a/LICENSE.GPL3
+++ /dev/null
@@ -1,674 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- <program> Copyright (C) <year> <name of author>
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/LICENSE.GPLv3 b/LICENSE.GPLv3
deleted file mode 100644
index cffb3b30..00000000
--- a/LICENSE.GPLv3
+++ /dev/null
@@ -1,686 +0,0 @@
- GNU GENERAL PUBLIC LICENSE
-
- The Qt Toolkit is Copyright (C) 2017 The Qt Company Ltd.
- Contact: http://www.qt.io/licensing/
-
- You may use, distribute and copy the Qt Toolkit under the terms of
- GNU Lesser General Public License version 3. That license references
- the General Public License version 3, that is displayed below. Other
- portions of the Qt Toolkit may be licensed directly under this license.
-
--------------------------------------------------------------------------
-
- GNU GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
- Preamble
-
- The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
- The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works. By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users. We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors. You can apply it to
-your programs, too.
-
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
- To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights. Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received. You must make sure that they, too, receive
-or can get the source code. And you must show them these terms so they
-know their rights.
-
- Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
- For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software. For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
- Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so. This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software. The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable. Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products. If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
- Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary. To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
- The precise terms and conditions for copying, distribution and
-modification follow.
-
- TERMS AND CONDITIONS
-
- 0. Definitions.
-
- "This License" refers to version 3 of the GNU General Public License.
-
- "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
- "The Program" refers to any copyrightable work licensed under this
-License. Each licensee is addressed as "you". "Licensees" and
-"recipients" may be individuals or organizations.
-
- To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy. The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
- A "covered work" means either the unmodified Program or a work based
-on the Program.
-
- To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy. Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
- To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies. Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
- An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License. If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
- 1. Source Code.
-
- The "source code" for a work means the preferred form of the work
-for making modifications to it. "Object code" means any non-source
-form of a work.
-
- A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
- The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form. A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
- The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities. However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work. For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
- The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
- The Corresponding Source for a work in source code form is that
-same work.
-
- 2. Basic Permissions.
-
- All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met. This License explicitly affirms your unlimited
-permission to run the unmodified Program. The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work. This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
- You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force. You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright. Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
- Conveying under any other circumstances is permitted solely under
-the conditions stated below. Sublicensing is not allowed; section 10
-makes it unnecessary.
-
- 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
- No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
- When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
- 4. Conveying Verbatim Copies.
-
- You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
- You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
- 5. Conveying Modified Source Versions.
-
- You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
- a) The work must carry prominent notices stating that you modified
- it, and giving a relevant date.
-
- b) The work must carry prominent notices stating that it is
- released under this License and any conditions added under section
- 7. This requirement modifies the requirement in section 4 to
- "keep intact all notices".
-
- c) You must license the entire work, as a whole, under this
- License to anyone who comes into possession of a copy. This
- License will therefore apply, along with any applicable section 7
- additional terms, to the whole of the work, and all its parts,
- regardless of how they are packaged. This License gives no
- permission to license the work in any other way, but it does not
- invalidate such permission if you have separately received it.
-
- d) If the work has interactive user interfaces, each must display
- Appropriate Legal Notices; however, if the Program has interactive
- interfaces that do not display Appropriate Legal Notices, your
- work need not make them do so.
-
- A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit. Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
- 6. Conveying Non-Source Forms.
-
- You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
- a) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by the
- Corresponding Source fixed on a durable physical medium
- customarily used for software interchange.
-
- b) Convey the object code in, or embodied in, a physical product
- (including a physical distribution medium), accompanied by a
- written offer, valid for at least three years and valid for as
- long as you offer spare parts or customer support for that product
- model, to give anyone who possesses the object code either (1) a
- copy of the Corresponding Source for all the software in the
- product that is covered by this License, on a durable physical
- medium customarily used for software interchange, for a price no
- more than your reasonable cost of physically performing this
- conveying of source, or (2) access to copy the
- Corresponding Source from a network server at no charge.
-
- c) Convey individual copies of the object code with a copy of the
- written offer to provide the Corresponding Source. This
- alternative is allowed only occasionally and noncommercially, and
- only if you received the object code with such an offer, in accord
- with subsection 6b.
-
- d) Convey the object code by offering access from a designated
- place (gratis or for a charge), and offer equivalent access to the
- Corresponding Source in the same way through the same place at no
- further charge. You need not require recipients to copy the
- Corresponding Source along with the object code. If the place to
- copy the object code is a network server, the Corresponding Source
- may be on a different server (operated by you or a third party)
- that supports equivalent copying facilities, provided you maintain
- clear directions next to the object code saying where to find the
- Corresponding Source. Regardless of what server hosts the
- Corresponding Source, you remain obligated to ensure that it is
- available for as long as needed to satisfy these requirements.
-
- e) Convey the object code using peer-to-peer transmission, provided
- you inform other peers where the object code and Corresponding
- Source of the work are being offered to the general public at no
- charge under subsection 6d.
-
- A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
- A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling. In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage. For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product. A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
- "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source. The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
- If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information. But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
- The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed. Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
- Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
- 7. Additional Terms.
-
- "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law. If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
- When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it. (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.) You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
- Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
- a) Disclaiming warranty or limiting liability differently from the
- terms of sections 15 and 16 of this License; or
-
- b) Requiring preservation of specified reasonable legal notices or
- author attributions in that material or in the Appropriate Legal
- Notices displayed by works containing it; or
-
- c) Prohibiting misrepresentation of the origin of that material, or
- requiring that modified versions of such material be marked in
- reasonable ways as different from the original version; or
-
- d) Limiting the use for publicity purposes of names of licensors or
- authors of the material; or
-
- e) Declining to grant rights under trademark law for use of some
- trade names, trademarks, or service marks; or
-
- f) Requiring indemnification of licensors and authors of that
- material by anyone who conveys the material (or modified versions of
- it) with contractual assumptions of liability to the recipient, for
- any liability that these contractual assumptions directly impose on
- those licensors and authors.
-
- All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10. If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term. If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
- If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
- Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
- 8. Termination.
-
- You may not propagate or modify a covered work except as expressly
-provided under this License. Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
- However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
- Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
- Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License. If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
- 9. Acceptance Not Required for Having Copies.
-
- You are not required to accept this License in order to receive or
-run a copy of the Program. Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance. However,
-nothing other than this License grants you permission to propagate or
-modify any covered work. These actions infringe copyright if you do
-not accept this License. Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
- 10. Automatic Licensing of Downstream Recipients.
-
- Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License. You are not responsible
-for enforcing compliance by third parties with this License.
-
- An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations. If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
- You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License. For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
- 11. Patents.
-
- A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based. The
-work thus licensed is called the contributor's "contributor version".
-
- A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version. For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
- Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
- In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement). To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
- If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients. "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
- If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
- A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License. You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
- Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
- 12. No Surrender of Others' Freedom.
-
- If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all. For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
- 13. Use with the GNU Affero General Public License.
-
- Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work. The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
- 14. Revised Versions of this License.
-
- The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time. Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation. If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
- If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
- Later license versions may give you additional or different
-permissions. However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
- 15. Disclaimer of Warranty.
-
- THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. Limitation of Liability.
-
- IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
- 17. Interpretation of Sections 15 and 16.
-
- If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software: you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
- If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
- <program> Copyright (C) <year> <name of author>
- This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
- You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
- The GNU General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library. If this is what you want to do, use the GNU Lesser General
-Public License instead of this License. But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/LICENSE.LGPL3 b/LICENSE.LGPL3
deleted file mode 100644
index 65c5ca88..00000000
--- a/LICENSE.LGPL3
+++ /dev/null
@@ -1,165 +0,0 @@
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-
- This version of the GNU Lesser General Public License incorporates
-the terms and conditions of version 3 of the GNU General Public
-License, supplemented by the additional permissions listed below.
-
- 0. Additional Definitions.
-
- As used herein, "this License" refers to version 3 of the GNU Lesser
-General Public License, and the "GNU GPL" refers to version 3 of the GNU
-General Public License.
-
- "The Library" refers to a covered work governed by this License,
-other than an Application or a Combined Work as defined below.
-
- An "Application" is any work that makes use of an interface provided
-by the Library, but which is not otherwise based on the Library.
-Defining a subclass of a class defined by the Library is deemed a mode
-of using an interface provided by the Library.
-
- A "Combined Work" is a work produced by combining or linking an
-Application with the Library. The particular version of the Library
-with which the Combined Work was made is also called the "Linked
-Version".
-
- The "Minimal Corresponding Source" for a Combined Work means the
-Corresponding Source for the Combined Work, excluding any source code
-for portions of the Combined Work that, considered in isolation, are
-based on the Application, and not on the Linked Version.
-
- The "Corresponding Application Code" for a Combined Work means the
-object code and/or source code for the Application, including any data
-and utility programs needed for reproducing the Combined Work from the
-Application, but excluding the System Libraries of the Combined Work.
-
- 1. Exception to Section 3 of the GNU GPL.
-
- You may convey a covered work under sections 3 and 4 of this License
-without being bound by section 3 of the GNU GPL.
-
- 2. Conveying Modified Versions.
-
- If you modify a copy of the Library, and, in your modifications, a
-facility refers to a function or data to be supplied by an Application
-that uses the facility (other than as an argument passed when the
-facility is invoked), then you may convey a copy of the modified
-version:
-
- a) under this License, provided that you make a good faith effort to
- ensure that, in the event an Application does not supply the
- function or data, the facility still operates, and performs
- whatever part of its purpose remains meaningful, or
-
- b) under the GNU GPL, with none of the additional permissions of
- this License applicable to that copy.
-
- 3. Object Code Incorporating Material from Library Header Files.
-
- The object code form of an Application may incorporate material from
-a header file that is part of the Library. You may convey such object
-code under terms of your choice, provided that, if the incorporated
-material is not limited to numerical parameters, data structure
-layouts and accessors, or small macros, inline functions and templates
-(ten or fewer lines in length), you do both of the following:
-
- a) Give prominent notice with each copy of the object code that the
- Library is used in it and that the Library and its use are
- covered by this License.
-
- b) Accompany the object code with a copy of the GNU GPL and this license
- document.
-
- 4. Combined Works.
-
- You may convey a Combined Work under terms of your choice that,
-taken together, effectively do not restrict modification of the
-portions of the Library contained in the Combined Work and reverse
-engineering for debugging such modifications, if you also do each of
-the following:
-
- a) Give prominent notice with each copy of the Combined Work that
- the Library is used in it and that the Library and its use are
- covered by this License.
-
- b) Accompany the Combined Work with a copy of the GNU GPL and this license
- document.
-
- c) For a Combined Work that displays copyright notices during
- execution, include the copyright notice for the Library among
- these notices, as well as a reference directing the user to the
- copies of the GNU GPL and this license document.
-
- d) Do one of the following:
-
- 0) Convey the Minimal Corresponding Source under the terms of this
- License, and the Corresponding Application Code in a form
- suitable for, and under terms that permit, the user to
- recombine or relink the Application with a modified version of
- the Linked Version to produce a modified Combined Work, in the
- manner specified by section 6 of the GNU GPL for conveying
- Corresponding Source.
-
- 1) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (a) uses at run time
- a copy of the Library already present on the user's computer
- system, and (b) will operate properly with a modified version
- of the Library that is interface-compatible with the Linked
- Version.
-
- e) Provide Installation Information, but only if you would otherwise
- be required to provide such information under section 6 of the
- GNU GPL, and only to the extent that such information is
- necessary to install and execute a modified version of the
- Combined Work produced by recombining or relinking the
- Application with a modified version of the Linked Version. (If
- you use option 4d0, the Installation Information must accompany
- the Minimal Corresponding Source and Corresponding Application
- Code. If you use option 4d1, you must provide the Installation
- Information in the manner specified by section 6 of the GNU GPL
- for conveying Corresponding Source.)
-
- 5. Combined Libraries.
-
- You may place library facilities that are a work based on the
-Library side by side in a single library together with other library
-facilities that are not Applications and are not covered by this
-License, and convey such a combined library under terms of your
-choice, if you do both of the following:
-
- a) Accompany the combined library with a copy of the same work based
- on the Library, uncombined with any other library facilities,
- conveyed under the terms of this License.
-
- b) Give prominent notice with the combined library that part of it
- is a work based on the Library, and explaining where to find the
- accompanying uncombined form of the same work.
-
- 6. Revised Versions of the GNU Lesser General Public License.
-
- The Free Software Foundation may publish revised and/or new versions
-of the GNU Lesser General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
-
- Each version is given a distinguishing version number. If the
-Library as you received it specifies that a certain numbered version
-of the GNU Lesser General Public License "or any later version"
-applies to it, you have the option of following the terms and
-conditions either of that published version or of any later version
-published by the Free Software Foundation. If the Library as you
-received it does not specify a version number of the GNU Lesser
-General Public License, you may choose any version of the GNU Lesser
-General Public License ever published by the Free Software Foundation.
-
- If the Library as you received it specifies that a proxy can decide
-whether future versions of the GNU Lesser General Public License shall
-apply, that proxy's public statement of acceptance of any version is
-permanent authorization for you to choose that version for the
-Library.
diff --git a/LICENSE.LGPLv3 b/LICENSE.LGPLv3
deleted file mode 100644
index 1d9bb213..00000000
--- a/LICENSE.LGPLv3
+++ /dev/null
@@ -1,174 +0,0 @@
- GNU LESSER GENERAL PUBLIC LICENSE
-
- The Qt Toolkit is Copyright (C) 2017 The Qt Company Ltd.
- Contact: http://www.qt.io/licensing/
-
- You may use, distribute and copy the Qt Toolkit under the terms of
- GNU Lesser General Public License version 3, which is displayed below.
- This license makes reference to the version 3 of the GNU General
- Public License, which you can find in the LICENSE.GPLv3 file.
-
--------------------------------------------------------------------------
-
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 3, 29 June 2007
-
- Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
-Everyone is permitted to copy and distribute verbatim copies of this
-licensedocument, but changing it is not allowed.
-
-This version of the GNU Lesser General Public License incorporates
-the terms and conditions of version 3 of the GNU General Public
-License, supplemented by the additional permissions listed below.
-
-0. Additional Definitions.
-
- As used herein, “this License” refers to version 3 of the GNU Lesser
-General Public License, and the “GNU GPL” refers to version 3 of the
-GNU General Public License.
-
- “The Library” refers to a covered work governed by this License,
-other than an Application or a Combined Work as defined below.
-
- An “Application” is any work that makes use of an interface provided
-by the Library, but which is not otherwise based on the Library.
-Defining a subclass of a class defined by the Library is deemed a mode
-of using an interface provided by the Library.
-
- A “Combined Work” is a work produced by combining or linking an
-Application with the Library. The particular version of the Library
-with which the Combined Work was made is also called the “Linked
-Version”.
-
- The “Minimal Corresponding Source” for a Combined Work means the
-Corresponding Source for the Combined Work, excluding any source code
-for portions of the Combined Work that, considered in isolation, are
-based on the Application, and not on the Linked Version.
-
- The “Corresponding Application Code” for a Combined Work means the
-object code and/or source code for the Application, including any data
-and utility programs needed for reproducing the Combined Work from the
-Application, but excluding the System Libraries of the Combined Work.
-
-1. Exception to Section 3 of the GNU GPL.
-
- You may convey a covered work under sections 3 and 4 of this License
-without being bound by section 3 of the GNU GPL.
-
-2. Conveying Modified Versions.
-
- If you modify a copy of the Library, and, in your modifications, a
-facility refers to a function or data to be supplied by an Application
-that uses the facility (other than as an argument passed when the
-facility is invoked), then you may convey a copy of the modified
-version:
-
- a) under this License, provided that you make a good faith effort
- to ensure that, in the event an Application does not supply the
- function or data, the facility still operates, and performs
- whatever part of its purpose remains meaningful, or
-
- b) under the GNU GPL, with none of the additional permissions of
- this License applicable to that copy.
-
-3. Object Code Incorporating Material from Library Header Files.
-
- The object code form of an Application may incorporate material from
-a header file that is part of the Library. You may convey such object
-code under terms of your choice, provided that, if the incorporated
-material is not limited to numerical parameters, data structure
-layouts and accessors, or small macros, inline functions and templates
-(ten or fewer lines in length), you do both of the following:
-
- a) Give prominent notice with each copy of the object code that
- the Library is used in it and that the Library and its use are
- covered by this License.
-
- b) Accompany the object code with a copy of the GNU GPL and this
- license document.
-
-4. Combined Works.
-
- You may convey a Combined Work under terms of your choice that, taken
-together, effectively do not restrict modification of the portions of
-the Library contained in the Combined Work and reverse engineering for
-debugging such modifications, if you also do each of the following:
-
- a) Give prominent notice with each copy of the Combined Work that
- the Library is used in it and that the Library and its use are
- covered by this License.
-
- b) Accompany the Combined Work with a copy of the GNU GPL and this
- license document.
-
- c) For a Combined Work that displays copyright notices during
- execution, include the copyright notice for the Library among
- these notices, as well as a reference directing the user to the
- copies of the GNU GPL and this license document.
-
- d) Do one of the following:
-
- 0) Convey the Minimal Corresponding Source under the terms of
- this License, and the Corresponding Application Code in a form
- suitable for, and under terms that permit, the user to
- recombine or relink the Application with a modified version of
- the Linked Version to produce a modified Combined Work, in the
- manner specified by section 6 of the GNU GPL for conveying
- Corresponding Source.
-
- 1) Use a suitable shared library mechanism for linking with
- the Library. A suitable mechanism is one that (a) uses at run
- time a copy of the Library already present on the user's
- computer system, and (b) will operate properly with a modified
- version of the Library that is interface-compatible with the
- Linked Version.
-
- e) Provide Installation Information, but only if you would
- otherwise be required to provide such information under section 6
- of the GNU GPL, and only to the extent that such information is
- necessary to install and execute a modified version of the
- Combined Work produced by recombining or relinking the Application
- with a modified version of the Linked Version. (If you use option
- 4d0, the Installation Information must accompany the Minimal
- Corresponding Source and Corresponding Application Code. If you
- use option 4d1, you must provide the Installation Information in
- the manner specified by section 6 of the GNU GPL for conveying
- Corresponding Source.)
-
-5. Combined Libraries.
-
- You may place library facilities that are a work based on the Library
-side by side in a single library together with other library
-facilities that are not Applications and are not covered by this
-License, and convey such a combined library under terms of your
-choice, if you do both of the following:
-
- a) Accompany the combined library with a copy of the same work
- based on the Library, uncombined with any other library
- facilities, conveyed under the terms of this License.
-
- b) Give prominent notice with the combined library that part of
- it is a work based on the Library, and explaining where to find
- the accompanying uncombined form of the same work.
-
-6. Revised Versions of the GNU Lesser General Public License.
-
- The Free Software Foundation may publish revised and/or new versions
-of the GNU Lesser General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Library
-as you received it specifies that a certain numbered version of the
-GNU Lesser General Public License “or any later version” applies to
-it, you have the option of following the terms and conditions either
-of that published version or of any later version published by the
-Free Software Foundation. If the Library as you received it does not
-specify a version number of the GNU Lesser General Public License,
-you may choose any version of the GNU Lesser General Public License
-ever published by the Free Software Foundation.
-
-If the Library as you received it specifies that a proxy can decide
-whether future versions of the GNU Lesser General Public License shall
-apply, that proxy's public statement of acceptance of any version is
-permanent authorization for you to choose that version for the Library.
diff --git a/README.md b/README.md
index d387da81..dbb6d32a 100644
--- a/README.md
+++ b/README.md
@@ -1,55 +1,24 @@
-Qt Quick Controls 2
-===================
+# Qt Quick Controls 2
-![Qt Quick Controls 2 Styles](https://doc.qt.io/qt-5/images/qtquickcontrols2-styles.png)
+**The Qt Quick Controls 2 module has been moved into qtdeclarative.git.**
-The Qt Quick Controls 2 module delivers the next generation user interface
-controls based on Qt Quick. In comparison to the desktop-oriented Qt Quick
-Controls 1, Qt Quick Controls 2 are an order of magnitude simpler, lighter and
-faster, and are primarily targeted towards embedded and mobile platforms.
+## Why?
-Qt Quick Controls 2 are based on a flexible template system that enables rapid
-development of entire custom styles and user experiences. Qt Quick Controls 2
-comes with a selection of built-in styles:
+The motivation for the move is explained here:
-- Default style - a simple and minimal all-round style that offers the maximum performance
-- Fusion style - a platform-agnostic style that offers a desktop-oriented look'n'feel
-- Imagine style - a designer-friendly style based on image assets
-- Material style - a style based on the Google Material Design Guidelines
-- Universal style - a style based on the Microsoft Universal Design Guidelines
+https://bugreports.qt.io/browse/QTBUG-79454
-More information can be found in the following blog posts:
+There was then a contributor summit session:
-- http://blog.qt.io/blog/2015/03/31/qt-quick-controls-for-embedded/
-- http://blog.qt.io/blog/2015/11/23/qt-quick-controls-re-engineered-status-update/
-- http://blog.qt.io/blog/2016/06/10/qt-quick-controls-2-0-a-new-beginning/
-- http://blog.qt.io/blog/2016/10/06/qt-quick-controls-2-1-and-beyond/
-- http://blog.qt.io/blog/2017/05/31/ready-made-ui-controls-qt-quick-controls-2-summary/
-- http://blog.qt.io/blog/2017/11/23/qt-quick-controls-2-imagine-style/
-- http://blog.qt.io/blog/2017/11/23/ready-qt-quick-controls-2-3/
+https://wiki.qt.io/QtCS2021_-_Testing_upstream_changes_with_downstream_modules
-## Help
+The conclusion from this was that the best solution would be to move qtquickcontrols2 into qtdeclarative.
-If you have problems or questions, don't hesitate to:
+## Going back in time
-- ask on the Qt Interest mailing list http://lists.qt-project.org/mailman/listinfo/interest
-- ask on the Qt Forum http://forum.qt.io/category/12/qt-quick
-- report issues to the Qt Bug Tracker https://bugreports.qt.io (component: *Qt Quick: Controls 2*)
+To inspect the code in the `dev` branch prior to its removal, follow these steps:
-## Installation
-
-The MINIMUM REQUIREMENT for building this project is to use the same branch
-of Qt 5. The dependencies are *qtbase*, *qtxmlpatterns* and *qtdeclarative*.
-
-To install the controls into your Qt directory (```QTDIR/qml```):
-
- qmake
- make
- make install
-
-If you are compiling against a system Qt on Linux, you might have to use
-```sudo make install``` to install the project.
-
-## Usage
-
-Please refer to the [Getting Started with Qt Quick Controls 2](https://doc.qt.io/qt-5/qtquickcontrols2-gettingstarted.html) documentation.
+```bash
+$ git checkout -b my-dev dev~1
+Switched to a new branch 'my-dev'
+```
diff --git a/configure.json b/configure.json
deleted file mode 100644
index 717877a8..00000000
--- a/configure.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "subconfigs": [
- "src/quickcontrols2",
- "src/quicktemplates2"
- ]
-}
diff --git a/dependencies.yaml b/dependencies.yaml
deleted file mode 100644
index 90f78825..00000000
--- a/dependencies.yaml
+++ /dev/null
@@ -1,7 +0,0 @@
-dependencies:
- ../qtgraphicaleffects:
- ref: 80350f179e63245738994c369b8f261e0389c60d
- required: true
- ../qtimageformats:
- ref: 4b0424379fb5550b9014b3c4a7300ab74e5cbc0e
- required: false
diff --git a/dist/changes-5.10.0 b/dist/changes-5.10.0
deleted file mode 100644
index 88f2afe8..00000000
--- a/dist/changes-5.10.0
+++ /dev/null
@@ -1,166 +0,0 @@
-Qt 5.10 introduces many new features and improvements as well as bugfixes
-over the 5.9.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.10 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.9 will continue to run with 5.10.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Important Behavior Changes *
-****************************************************************************
-
- - [QTBUG-58060] DialogButtonBox with Material style now uses the Android
- button layout.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - AbstractButton:
- * [QTBUG-49820] Added support for icons. The following properties are
- now available for derived types to use: icon.name, icon.source,
- icon.width, icon.height, icon.color.
- * [QTBUG-49820] Added display property to allow control over how icons
- and text are displayed within buttons, without having to implement
- custom delegates.
- * [QTBUG-50705] Added AbstractButton::action property.
-
- - Action:
- * [QTBUG-50705] Introduced Action, an abstract user interface action
- that can have shortcuts and be assigned to buttons.
-
- - ActionGroup:
- * [QTBUG-50705] Introduced ActionGroup, a non-visual group of actions
- that is mutually exclusive by default.
-
- - ApplicationWindow:
- * [QTBUG-61336] The attached activeFocusControl property has been made
- functional with a plain QML Window to make the functionality available
- when using QQuickWindow/View/Widget instead of ApplicationWindow.
- * [QTBUG-61336] Deprecated the overlay grouped property in favor of the
- newly introduced Overlay attached properties.
-
- - ButtonGroup:
- * Added exclusive property to allow creating non-exclusive button
- groups.
-
- - Container:
- * Deprecated removeItem(int) in favor of removeItem(Item) and
- takeItem(int) with clearer semantics. The former destroys the item,
- whereas the latter transfers ownership to the caller.
-
- - Dialog:
- * Added "result" property that holds whether the dialog was previously
- accepted or rejected.
- * Added a standardButton() method for accessing the standard buttons in
- the dialog's button box.
- * [QTBUG-59423] Added missing applied(), discarded(), helpRequested(),
- and reset() signals that are emitted when the respective standard
- buttons are clicked.
-
- - DialogButtonBox:
- * [QTBUG-59423] Added missing applied(), reset(), and discarded()
- signals.
-
- - Menu:
- * [QTBUG-50471] Added a popup() method that opens a menu at the mouse
- cursor on desktop platforms that have a mouse cursor available, and
- otherwise centers the menu over its parent item.
- * Added support for declaring Actions. The new "delegate" property is
- used to define a Component that is used to create menu items that
- present the actions.
- * Deprecated removeItem(int) in favor of removeItem(Item) and
- takeItem(int) with clearer semantics. The former destroys the item,
- whereas the latter transfers ownership to the caller.
- * [QTBUG-60351] Added support for cascading sub-menus.
- * Added addMenu(), insertMenu(), removeMenu(), and takeMenu() methods
- for adding and removing sub-menus programmatically.
- * Added addAction(), insertAction(), removeAction(), and takeAction()
- methods for adding and removing actions programmatically.
- * Added currentIndex property for styling purposes.
- * Added actionAt() and menuAt() accessors.
- * Added a dismiss() method. Unlike close() that only closes a menu and
- its sub-menus, dismiss() closes the whole hierarchy of menus,
- including the parent menus.
- * Added "count" property.
-
- - MenuBar:
- * [QTBUG-60350] Introduced a MenuBar control.
-
- - MenuItem:
- * Added a "menu" property that provides access to the menu that contains
- the menu item.
- * Menu has been fixed to highlight its items while key navigating and
- mouse hovering to ensure seamless item highlight between mouse hover
- and key navigation. In order to provide appropriate highlighting that
- works for key navigation and mouse hover, styles should bind their
- visual highlight to MenuItem::highlighted instead of
- Control::activeFocus or Control::hovered.
-
- - Overlay:
- * [QTBUG-61336] Introduced Overlay attached properties and signals that
- supersede the overlay grouped property in Application Window. The
- Overlay attached type allows providing background dimming for popups
- without requiring an ApplicationWindow instance.
-
- - Popup:
- * Added an "opened" boolean property that holds whether a popup is fully
- open. That is, the popup is visible and neither the enter nor exit
- transitions are running.
- * Added "enabled" property.
- * Added a read-only "mirrored" property that is true when the popup's
- locale is right-to-left.
-
- - RangeSlider:
- * Added horizontal and vertical properties to make it more convenient to
- create orientation-dependent bindings in styles.
-
- - ScrollBar:
- * Added horizontal and vertical properties to make it more convenient to
- create orientation-dependent bindings in styles.
-
- - ScrollIndicator:
- * Added horizontal and vertical properties to make it more convenient to
- create orientation-dependent bindings in styles.
-
- - Slider:
- * Added horizontal and vertical properties to make it more convenient to
- create orientation-dependent bindings in styles.
-
- - SpinBox:
- * [QTBUG-58760] Added wrap-property to allow wrapping circular
- spinboxes.
-
- - StackView:
- * Allowed specifying a transition when clearing the stack view.
-
- - SwipeView:
- * Added horizontal and vertical properties to make it more convenient to
- create orientation-dependent bindings in styles.
-
- - TabBar:
- * Added index/tabBar/position attached properties.
-
-****************************************************************************
-* Styles *
-****************************************************************************
-
- - Introduced a Fusion style that offers a platform agnostic
- desktop-oriented look'n'feel.
- - Added the Imagine style, which is based on image assets that can be
- provided using a predefined naming convention.
- - Added support for specifying the default font for different styles in
- qtquickcontrols2.conf.
- - Fixed the style selection mechanism so that now it is possible to
- organize platform and locale-specific files into sub-directories, such
- as "+linux", "+macos", and "+windows".
diff --git a/dist/changes-5.10.1 b/dist/changes-5.10.1
deleted file mode 100644
index c94cb75d..00000000
--- a/dist/changes-5.10.1
+++ /dev/null
@@ -1,49 +0,0 @@
-Qt 5.10.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.10.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.10 series is binary compatible with the 5.9.x series.
-Applications compiled for 5.9 will continue to run with 5.10.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-This release contains all fixes included in the Qt 5.9.4 release.
-
-****************************************************************************
-* Qt 5.10.1 Changes *
-****************************************************************************
-
-Controls
---------
-
- - AbstractButton:
- * [QTBUG-65193] Made button's text win over action's when both are
- specified.
-
- - Action:
- * [QTBUG-65108] Fixed an issue where a checkable action would toggle
- twice when toggling an associated checkable button.
- * [QTBUG-65889] Fixed shortcuts in Repeater.
-
-Styles
-------
-
- - Imagine:
- * [QTBUG-65500] Fixed to respect user font settings from
- qtquickcontrols2.conf.
-
-Third-Party Code
-----------------
-
- - [QTBUG-65409] Document constants from AngularJS in
- src/imports/controls/material/ElevationEffect.qml
diff --git a/dist/changes-5.11.0 b/dist/changes-5.11.0
deleted file mode 100644
index 9368e951..00000000
--- a/dist/changes-5.11.0
+++ /dev/null
@@ -1,161 +0,0 @@
-Qt 5.11 introduces many new features and improvements as well as bugfixes
-over the 5.10.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.11 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.10 will continue to run with 5.11.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.11.0 Changes *
-****************************************************************************
-
-Important Behavior Changes
---------------------------
-
- - [QTBUG-56295] CheckBox and CheckDelegate no longer force the tristate
- property to true when setting checkState to Qt.PartiallyChecked. This
- allows the controls to present a partially checked state without being
- interactively tri-state.
- - [QTBUG-56295] CheckBox and CheckDelegate no longer consider the partially
- checked state as a checked state. This fixes check state cycling for non-
- tri-state controls so that the check state goes from partially checked to
- fully checked state.
-
-Controls
---------
-
- - AbstractButton:
- * The autoRepeat property was promoted from Button to AbstractButton.
- * Added autoRepeatDelay and autoRepeatInterval properties.
- * [QTBUG-62811] Added pressX and pressY properties.
- * [QTBUG-66625] Fixed the icon property group type registration.
-
- - Action:
- * [QTBUG-65193] Made AbstractButton's icon properties win over Action's
- when both are set.
- * [QTBUG-66625] Fixed the icon property group type registration.
-
- - ButtonGroup:
- * [QTBUG-56295][QTBUG-63782] Added checkState property that indicates
- the combined check state of the entire group.
-
- - CheckBox:
- * [QTBUG-63238] Made it possible to implement nextCheckState() in QML.
-
- - CheckDelegate:
- * [QTBUG-63238] Made it possible to implement nextCheckState() in QML.
-
- - ComboBox:
- * [QTBUG-61348] Fixed key search in the popup.
- * [QTBUG-66044] Fixed wheel event propagation.
-
- - Control:
- * [QTBUG-66133] Fixed focus scope controls, such as Frame, GroupBox,
- Page, and Pane, to respect click focus policy by clearing a potential
- sub-focus child. This makes it possible to close the virtual keyboard
- by clicking the background of a Pane that has Qt.ClickFocus set as its
- focusPolicy, for example.
- * [QTBUG-66133] Fixed focus scope controls to respect wheel focus
- policy.
-
- - Dial:
- * [QTBUG-66637] Fixed to keep mouse grab on mouse press.
-
- - DialogButtonBox:
- * [QTBUG-59719] Fixed implicit size calculation with one button.
-
- - Drawer:
- * [QTBUG-66637] Fixed to no steal mouse/touch grab when e.g. dragging a
- horizontal Slider in a horizontal Drawer.
-
- - Label:
- * [QTBUG-65880] Fixed a background size regression caused by deferred
- execution.
-
- - Popup:
- * [QTBUG-66113] Fixed restoring focus for popups that did not originally
- request focus, but gained focus after opening.
- * Fixed Shortcuts in Popups with window context not being activated.
-
- - RangeSlider:
- * [QTBUG-66637] Fixed to keep mouse grab on mouse press.
-
- - ScrollBar:
- * [QTBUG-56557] Added minimumSize, visualSize, and visualPosition
- properties.
-
- - ScrollIndicator:
- * [QTBUG-56557] Added minimumSize, visualSize, and visualPosition
- properties.
-
- - Slider:
- * [QTBUG-66637] Fixed to keep mouse grab on mouse press.
-
- - SpinBox:
- * Added a displayText property that allows styles to create a simple
- and efficient QML binding to display the textual value instead of
- calling the textFromValue() JS-function.
- * [QTBUG-66044] Fixed wheel event propagation.
-
- - StackView:
- * [QTBUG-51321] Fixed to transfer focus to the current item.
- * [QTBUG-67118] Fixed a crash with initialItem.
-
- - TextArea:
- * [QTBUG-67334] Fixed the background to not scroll when TextArea is
- placed in a ScrollView.
- * [QTBUG-65880] Fixed a background size regression caused by deferred
- execution.
-
- - TextField:
- * [QTBUG-65880] Fixed a background size regression caused by deferred
- execution.
-
-Styles
-------
-
- - [QTBUG-66430] Fixed to not override/reset platform default fonts and
- palettes if :/qtquickcontrols2.conf exists but doesn't define fonts
- or palettes.
-
- - Fusion:
- * [QTBUG-66752] Fixed BusyIndicator to show up when running is set to
- true after creation.
- * [QTBUG-66276] Added missing plugins.qmltypes.
-
- - Material:
- * Decreased Dial's handle size from 14 to 10.
- * [QTBUG-64872] Made BusyIndicator's line size adapt to the size of the
- control.
- * [QTBUG-58646] Fixed artifacts in ripple effects.
- * [QTBUG-67442] Fixed CheckBox's, CheckDelegate's, RadioButton's and
- RadioDelegate's indicator in disabled state.
-
- - Universal:
- * Decreased Dial's handle size from 20 to 14.
-
-Platform
---------
-
- - ColorDialog:
- * [QT3DS-1363] Fixed currentColor to get correctly updated when opening
- the dialog first time.
-
- - Menu:
- * [QTBUG-55251] Fixed positioning on high-DPI screens.
- * [QTBUG-66876] Fixed menu titles not being visible if they were defined
- using qsTr() or bindings.
- * [QTBUG-66889] Fixed a crash on exist with sub-menus on Windows.
-
- - MenuItem:
- * [QTBUG-66386] Fixed checked state handling.
diff --git a/dist/changes-5.11.1 b/dist/changes-5.11.1
deleted file mode 100644
index 5680f38b..00000000
--- a/dist/changes-5.11.1
+++ /dev/null
@@ -1,25 +0,0 @@
-Qt 5.11.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.11.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.11 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.10 will continue to run with 5.11.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.11.1 Changes *
-****************************************************************************
-
- - [QTBUG-67684] ComboBox: don't block the escape/back key
- - [QTBUG-67684] ComboBox: reset when hidden
diff --git a/dist/changes-5.11.2 b/dist/changes-5.11.2
deleted file mode 100644
index 335804a4..00000000
--- a/dist/changes-5.11.2
+++ /dev/null
@@ -1,32 +0,0 @@
-Qt 5.11.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.11.0 through 5.11.1.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.11 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.10 will continue to run with 5.11.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.11.2 Changes *
-****************************************************************************
-
- - [QTBUG-69897] StackView: fixed a crash in viewItemTransitionFinished()
- - [QTBUG-69839] ColorDialog: fixed a crash when initializing the platform dialog helper
- - [QTBUG-69506] IconImage: prevented the color from being applied twice
- - [QTBUG-66483] Popup: fixed a crash on exit when using a shader
- - [QTBUG-68219] Styles: fixed handling of QRC paths in QT_QUICK_CONTROLS_STYLE_PATH
- - [QTBUG-68858] Menu: fixed items not being scrollable when using Window
- - [QTBUG-68737] Tumbler: fixed to respect currentIndex changes in onModelChanged
- - [QTBUG-68769] TextArea, TextField: fixed to use the control's renderType in placeholder text
- - SpinBox: fixed "function expressions as statements" warnings
diff --git a/dist/changes-5.11.3 b/dist/changes-5.11.3
deleted file mode 100644
index f71fa341..00000000
--- a/dist/changes-5.11.3
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.11.3 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.11.0 through 5.11.2.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.11 series is binary compatible with the 5.10.x series.
-Applications compiled for 5.10 will continue to run with 5.11.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.12.0 b/dist/changes-5.12.0
deleted file mode 100644
index fd9b1ba3..00000000
--- a/dist/changes-5.12.0
+++ /dev/null
@@ -1,171 +0,0 @@
-Qt 5.12 introduces many new features and improvements as well as bugfixes
-over the 5.11.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - AbstractButton:
- * Added implicitIndicatorWidth and implicitIndicatorHeight properties.
-
- - ComboBox:
- * Added implicitIndicatorWidth and implicitIndicatorHeight properties.
-
- - Control:
- * Added horizontalPadding and verticalPadding properties as a convenient
- way to set both left and right, or top and bottom paddings in one go.
- * Unless explicitly specified, baselineOffset is now automatically
- updated based on the top padding of the control and the baselineOffset
- of the contentItem. Styles no longer need to specify the
- baselineOffset in QML.
- * [QTBUG-60156] Added implicitBackgroundWidth and
- implicitBackgroundHeight properties that can be used to simplify
- complex implicit size bindings.
- * Added implicitContentWidth and implicitContentHeight properties that
- can be used to simplify complex implicit size bindings.
- * [QTBUG-60156] Added topInset, bottomInset, leftInset, and rightInset
- properties to control the geometry of the background similarly to how
- paddings control the geometry of the contentItem.
-
- - Dial:
- * [QTBUG-56323] Added the inputMode property. This property controls how
- the dial is interacted with. The circular input mode (default, old
- behavior) operates on an absolute input system, whereas the horizontal
- and vertical input modes use a relative input system.
-
- - Dialog:
- * Added implicitHeaderWidth, implicitHeaderHeight, implicitFooterWidth,
- and implicitFooterHeight properties.
-
- - DialogButtonBox:
- * Added buttonLayout property that can be used to arrange the buttons.
- * Added contentWidth and contentHeight properties.
-
- - GroupBox:
- * Added implicitLabelWidth and implicitLabelHeight properties.
-
- - Label:
- * Added implicitBackgroundWidth and implicitBackgroundHeight properties
- that can be used to simplify complex implicit size bindings.
- [ChangeLog][Controls][TextArea] Added implicitBackgroundWidth and
- implicitBackgroundHeight properties that can be used to simplify
- complex implicit size bindings. [ChangeLog][Controls][TextField] Added
- implicitBackgroundWidth and implicitBackgroundHeight properties that
- can be used to simplify complex implicit size bindings.
- * Added topInset, bottomInset, leftInset, and rightInset properties to
- control the geometry of the background similarly to how paddings
- control the geometry of the contentItem.
-
- - Page:
- * Added implicitHeaderWidth, implicitHeaderHeight, implicitFooterWidth,
- and implicitFooterHeight properties.
-
- - Popup:
- * Added horizontalPadding and verticalPadding properties as a convenient
- way to set both left and right, or top and bottom paddings in one go.
- * [QTBUG-60354] Added anchors.centerIn to Popup to allow a covenient way
- of centering a popup.
- * Added implicitBackgroundWidth, implicitBackgroundHeight,
- implicitContentWidth, and implicitContentHeight properties.
- * [QTBUG-60156] Added topInset, bottomInset, leftInset, and rightInset
- properties to control the geometry of the background similarly to how
- paddings control the geometry of the contentItem.
-
- - QQuickStyle:
- * [QTBUG-67062] Added stylePathList() and addStylePath() methods for
- managing the list of directories where Qt Quick Controls 2 searches
- for available styles.
-
- - RangeSlider:
- * [QTBUG-67311] Added a moved() signal to each handle (similar to the
- Slider's moved() signal) to react to the values being interactively
- changed by the user.
- * [QTBUG-67317] Added a valueAt() function to allow accessing each
- handle's value when the live property is set to false.
- * Added first.implicitHandleWidth, first.implicitHandleHeight,
- second.implicitHandleWidth, and second.implicitHandleHeight
- properties.
- * [QTBUG-62784] Added touchDragThreshold property for configuring the
- threshold to initiate the touch 'drag' of the handle of the slider. The
- mouse 'drag' won't be affected by the property.
-
- - Slider:
- * Added implicitHandleWidth and implicitHandleHeight properties.
- * [QTBUG-62784] Added touchDragThreshold property for configuring the
- threshold to initiate the touch 'drag' of the handle of the slider. The
- mouse 'drag' won't be affected by the property.
-
- - SpinBox:
- * Added up.implicitIndicatorWidth, up.implicitIndicatorHeight,
- down.implicitIndicatorWidth, and down.implicitIndicatorHeight
- properties.
-
- - SwipeView:
- * Added contentWidth and contentHeight properties.
-
- - TextArea:
- * Added topInset, bottomInset, leftInset, and rightInset properties to
- control the geometry of the background similarly to how paddings
- control the geometry of the contentItem.
- * Added placeholderTextColor property for user convenience to customize
- the placeholderText color to fit the backgrounds.
-
- - TextField:
- * Added topInset, bottomInset, leftInset, and rightInset properties to
- control the geometry of the background similarly to how paddings
- control the geometry of the contentItem.
- * [QTBUG-66260] Added placeholderTextColor property for user convenience
- to customize the placeholderText color to fit the backgrounds.
-
- - ToolTip:
- * [QTBUG-62890] Added non-attached show() and hide() methods to make it
- more flexible to meet certain requirements.
-
- - Tumbler:
- * [QTBUG-66358] Added positionViewAtIndex() function that calls the
- respective PathView/ListView function, depending on the value of wrap.
- This allows changing currentIndex without animations.
-
-****************************************************************************
-* Material *
-****************************************************************************
-
- - [QTBUG-51109] Added Dense variant of the Material style for use on
- desktop platforms. Some controls are slightly smaller in height and use
- smaller font sizes. The variant can be enabled by setting
- QT_QUICK_CONTROLS_MATERIAL_VARIANT to Dense or setting Variant=Dense in
- the qtquickcontrols.conf file.
-
-****************************************************************************
-* Platform *
-****************************************************************************
-
- - Menu:
- * [QTBUG-67730] Deprecated iconName and iconSource properties in favor
- of icon.name and icon.source grouped properties.
- * [QTBUG-67730] Added icon.mask grouped property.
- [ChangeLog][Platform][MenuItem] Added icon.mask grouped property.
- [ChangeLog][Platform][SystemTrayIcon] Added icon.mask grouped
- property.
-
- - MenuItem:
- * [QTBUG-67730] Deprecated iconName and iconSource properties in favor
- of icon.name and icon.source grouped properties.
-
- - SystemTrayIcon:
- * [QTBUG-67730] Deprecated iconName and iconSource properties in favor
- of icon.name and icon.source grouped properties.
diff --git a/dist/changes-5.12.1 b/dist/changes-5.12.1
deleted file mode 100644
index 1cb4dd73..00000000
--- a/dist/changes-5.12.1
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.12.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.12.2 b/dist/changes-5.12.2
deleted file mode 100644
index 420ded77..00000000
--- a/dist/changes-5.12.2
+++ /dev/null
@@ -1,60 +0,0 @@
-Qt 5.12.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0 through 5.12.1.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - [QTBUG-73849] Fixed incorrect documentation link to
- Number.toLocaleString().
- - [QTBUG-72536] Fixed bug with long text in ScrollView.
- - [QTBUG-73447] Fixed Menu's appearance not changing when enabled state
- changes
- - [QTBUG-70181] Fixed disabled menu items getting focus.
- - [QTBUG-69540] Fixed disabled sub-menu items being highlighted.
- - [QTBUG-72023] Fixed font and palette settings in .conf files not being
- respected.
- - [QTBUG-69682] Fixed Menu not being dismissed when the triggered item
- disables itself.
- - [QTBUG-73412] Fixed Dial's new properties not being detected by Creator.
- - [QTBUG-73202] Documented how to move active focus out of TextArea with
- tab.
- - [QTBUG-72786] Fixed palette colors not propagating to ComboBox's popup.
- - [QTBUG-73179] Fixed Qt.labs.platform.FileDialog not honoring folder
- property.
- - [QTBUG-72811] Fixed AbstractButton's clicked() signal not being emitted
- after long press.
- - [QTBUG-72746] Fixed crash on exit when using popups.
- - [QTBUG-72372] Fixed issue where a button would go outside of
- DialogButtonBox.
- - [QTBUG-71902] Fixed incorrect font size in certain styles on Windows.
- - [QTBUG-72750] Fixed Slider's wheel event propagation.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
-Fusion
-------
-
- - [QTBUG-70819] Made Active and Disabled button colors closer to Widgets'
- Fusion style.
- - [QTBUG-70819] Use white ButtonText when a dark system theme is in use.
- - [QTBUG-70652] Use system palette for highlightedText instead of a fixed
- white color.
diff --git a/dist/changes-5.12.3 b/dist/changes-5.12.3
deleted file mode 100644
index 8a9bad9f..00000000
--- a/dist/changes-5.12.3
+++ /dev/null
@@ -1,46 +0,0 @@
-Qt 5.12.3 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0 through 5.12.2.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
- https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - [QTBUG-70451] DialogButtonBox: fixed buttons with equal roles being
- randomly sorted.
- - [QTBUG-70161] ComboBox: fixed popup immediately closing on iOS
- - [QTBUG-72886] DialogButtonBox: fixed content size calculation
- - [QTBUG-74226] Fixed attached ToolTips using the timeout of the last shown
- tool tip
- - [QTBUG-72536] ScrollView now respects the content size set on/by
- the flickable
- - [QTBUG-73354] Menu: enter/return can now be used to activate items,
- rather than just space.
- - [QTBUG-71290] Drawer: fixed infinite positioning loop
- - [QTBUG-66494] Page: fixed binding loop
-
-****************************************************************************
-* Styles *
-****************************************************************************
-
-Default
---------
- - [QTBUG-72786] Made ItemDelegate respect highlightedText and improved
- highlightedText color so that text shows up against a highlighted background.
- This also allows easily switching ComboBox to a dark style via palette
- customization.
diff --git a/dist/changes-5.12.4 b/dist/changes-5.12.4
deleted file mode 100644
index a285cd8e..00000000
--- a/dist/changes-5.12.4
+++ /dev/null
@@ -1,20 +0,0 @@
-Qt 5.12.4 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0 through 5.12.3.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
- - This release contains only minor code improvements.
diff --git a/dist/changes-5.12.5 b/dist/changes-5.12.5
deleted file mode 100644
index 3d5d25e7..00000000
--- a/dist/changes-5.12.5
+++ /dev/null
@@ -1,28 +0,0 @@
-Qt 5.12.5 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.12.0 through 5.12.4.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.12 series is binary compatible with the 5.11.x series.
-Applications compiled for 5.11 will continue to run with 5.12.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - TextArea:
- * [QTBUG-76369] Fixed rendering issue using the Material style.
-
- - Container
- * [QTBUG-76164] Fixed crash when removing items.
diff --git a/dist/changes-5.13.0 b/dist/changes-5.13.0
deleted file mode 100644
index 5792b032..00000000
--- a/dist/changes-5.13.0
+++ /dev/null
@@ -1,33 +0,0 @@
-Qt 5.13 introduces many new features and improvements as well as bugfixes
-over the 5.12.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.13 series is binary compatible with the 5.12.x series.
-Applications compiled for 5.12 will continue to run with 5.13.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - Added SplitView, a control that lays out items horizontally or vertically
- with a draggable splitter between each item.
- - Added cache property to icon.
- - [QTBUG-75072] ScrollBar: fixed value not changing when scrolling via
- VoiceOver.
- - [QTBUG-74661] QQuickComboBox: we no longer hide popup when it's focused.
- - [QTBUG-69096] Doc: expanded upon Pane's Content Sizing section.
- - [QTBUG-74902] Doc: added a Size section to explain StackView's sizing
- behavior.
- - [QTBUG-74688] SpinBox: fixed indicators being hovered when mouse is moved
- while pressed.
- - [QTBUG-74276] Fix SplitView crash when using certain attached properties.
diff --git a/dist/changes-5.13.1 b/dist/changes-5.13.1
deleted file mode 100644
index 3acd7b6e..00000000
--- a/dist/changes-5.13.1
+++ /dev/null
@@ -1,31 +0,0 @@
-Qt 5.13.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.13.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-https://doc.qt.io/qt-5/index.html
-
-The Qt version 5.13 series is binary compatible with the 5.12.x series.
-Applications compiled for 5.12 will continue to run with 5.13.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - [QTBUG-76356] Accessibility: a Switch now has checkbox as its accessibleRole.
- - [QTBUG-75572] Fixed an issue with transforming Shortcut.sequence to string.
- - [QTBUG-75844] The text cursor no longer disappears while dragging it
- around on iOS with the magnifier showing.
- - [QTBUG-75972] The countChanged signal now will be emitted when a new
- model is set on a ComboBox.
- - [QTBUG-67343] It's now OK to use a ShaderEffect in a ComboBox delegate
- (fixed in Qt Quick, tested in Controls 2)
diff --git a/dist/changes-5.7.1 b/dist/changes-5.7.1
deleted file mode 100644
index a206118e..00000000
--- a/dist/changes-5.7.1
+++ /dev/null
@@ -1,196 +0,0 @@
-Qt 5.7.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.7.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.7 series is binary compatible with the 5.6.x series.
-Applications compiled for 5.6 will continue to run with 5.7.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Important Behavior Changes *
-****************************************************************************
-
- - AbstractButton, Control, and Container now calculate their implicit size
- based on the implicit size of the content item plus paddings, and the
- implicit size of the background item. This makes it convenient to implement
- custom controls and buttons, because the implicit size calculation for
- these abstract/non-visual base types works as expected out of the box, but
- may cause surprises if an application relies on the old behavior that a
- custom control does not have any implicit size by default.
-
- - Drawers have been changed to follow the same visibility rules than all
- other types of popups do. This means that drawers no longer stay visible
- at the window edge in order to intercept input events, because that caused
- severe conflicts in input handling and stacking order between multiple
- drawers and other popups.
-
- - Popups have been fixed to respect explicitly set width and height.
- Previously, explicitly set size was accidentally ignored when a popup had
- implicit size set.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - ApplicationWindow:
- * [QTBUG-55143] Fixed the content layout to take header and footer
- visibility into account.
-
- - ComboBox:
- * [QTBUG-54573] Fixed a bug which caused ghost items, from outside the
- popup's visible area, to appear in the popup.
- * [QTBUG-55118] Fixed the display text to be properly updated on model
- changes.
- * [QTBUG-55050] Fixed the default delegates to respect the popup width.
- * [QTBUG-55030] Fixed the highlighted item to be visible in the popup when
- it is opened.
-
- - Control:
- * [QTBUG-56007] Fixed the hovered state to get cleared when hidden.
-
- - Dial:
- * [QTBUG-55228] Fixed step size and snap mode handling with ranges starting
- from a non-zero value.
-
- - Drawer:
- * [QTBUG-54578] Fixed a closed drawer to not peek out from the window edge
- while resizing the window.
- * [QTBUG-54629] Fixed a bug in drag margin handling that allowed the user
- to sometimes drag out the drawer even if dragging was disabled.
- * Fixed a bug in the calculation of swipe velocity.
- * [QTBUG-54800] Fixed conflicts between multiple drawers.
- * [QTBUG-54794][QTBUG-55022] Fixed conflicts between drawers and other
- popups.
- * [QTBUG-55703] Fixed the stacking order of multiple drawers and popups.
- * [QTBUG-55995] Fixed flickering on touch release.
- * [QTBUG-55360] Made it possible to control the vertical position of
- a horizontal drawer, and vice versa. This allows placing a drawer below
- a header/toolbar, for instance.
-
- - Page:
- * [QTBUG-55143] Fixed the content layout to take header and footer
- visibility into account.
-
- - RangeSlider:
- * [QTBUG-55015] Fixed step size and snap mode handling with ranges starting
- from a non-zero value.
-
- - Slider:
- * [QTBUG-54140] Fixed step size and snap mode handling with ranges starting
- from a non-zero value.
-
- - Popup:
- * [QTBUG-56025] Fixed to respect explicitly set width and height.
- * [QTBUG-53419] Fixed hover events to not leak through popups or modal
- background dimming.
- * [QTBUG-55004] Fixed popups to appear above the QML-based dialogs from
- QtQuick.Dialogs 1.x.
- * [QTBUG-55347] Fixed a crash on dynamic parent item changes.
- * [QTBUG-54797] Fixed the background dimming to update accordingly on
- dynamic changes to the dim and modal properties.
- * [QTBUG-55729] Fixed popups to close on touch events when using a plain
- Window instead of ApplicationWindow.
- * [QTBUG-54913] Fixed hover event delivery with plain Window.
- * [QTBUG-55769] Fixed wheel events to not leak through modal background
- dimming.
-
- - ScrollIndicator:
- * [QTBUG-55620] Fixed to respect the paddings when overshooting, so that
- the indicator doesn't move outside the bounds of the attached flickable.
-
- - SpinBox:
- * [QTBUG-56215] Fixed valueFromText() to not get called for non-editable
- spinboxes.
-
- - StackView:
- * Fixed the "unknown argument" warning when popping down to the current
- item.
- * [QTBUG-54552] Fixed to claim ownership of dynamically created items.
- * [QTBUG-56158] Fixed a crash in pop() when attempting to pop an item that
- is still activating from a previous popup.
- * [QTBUG-55749] Allowed loading remote URLs.
-
- - SwipeDelegate:
- * [QTBUG-54648] Fixed the use of buttons or other interactive controls at
- the sides or behind the delegate.
- * [QTBUG-54660][QTBUG-54780] Fixed content re-layouting issues.
- * [QTBUG-55040] Added a warning for conflicting anchors.
-
- - Switch:
- * [QTBUG-55647] Fixed focus on tap/click over the handle.
- * Fixed missing pressed() and released() signals.
- * Fixed dragging of the handle on touch.
-
- - SwitchDelegate:
- * Made the handle draggable.
-
- - TabBar:
- * [QTBUG-55129] Fixed a bug which caused ghost items, from outside the
- tabbar's visible area, to appear in the tabbar.
- * [QTBUG-55129] Improved the behavior of flickable tabs.
- * [QTBUG-56265] Fixed mixing of fixed and implicitly resized tabs.
- * Fixed to re-layout as appropriate when tabs are resized at run-time.
-
- - TabButton:
- * [QTBUG-55129] Fixed implicit width calculation.
-
- - TextArea:
- * [QTBUG-54615] Fixed mouse double click to select a word.
- * [QTBUG-54897] Fixed to not intercept input events outside the visual
- bounds when attached to a Flickable.
- * Set a caret or ibeam mouse cursor, indicating that the control can accept
- and display text input.
-
- - TextField:
- * [QTBUG-54615] Fixed mouse double click to select a word.
- * Set a caret or ibeam mouse cursor, indicating that the control can accept
- and display text input.
- * [QTBUG-55684] Improved the implicit size calculation.
-
- - ToolTip:
- * Fixed the shared tooltip instance to get destructed when the associated
- QML engine is destructed.
- * [QTBUG-55347] Fixed attached properties to apply to the shared tooltip
- instance only when the shared tooltip is visible for the respective item
- that the property is attached to.
- * [QTBUG-54206] Fixed a bug that caused the shared tooltip to sometimes
- fade out when it should stay visible.
- * [QTBUG-55572] Fixed delay and visibility handling for standlone tooltips.
-
-Material
---------
-
- - Fixed (optional) elevation effects for Frame, GroupBox, Pane, and TabBar.
- - Fixed SpinBox text color in disabled state.
- - [QTBUG-54269] Added documentation for Material.Shade and the related
- parameter of Material.color().
- - [QTBUG-54935] Fixed white text on white background in ComboBox that is
- placed in a ToolBar.
- - [QTBUG-54472] Fixed rendering issues with multiple BusyIndicators.
- - [QTBUG-55366] Fixed the default foreground and background colors read from
- :/qtquickcontrols2.conf or environment variables.
- - [QTBUG-55687] Fixed several issues with accent and background inheritance.
- - Fixed the accent color, where the shade depends on the theme, to update as
- appropriate on run-time theme changes.
- - [QTBUG-52631] Fixed style inheritance issues with popups.
- - [QTBUG-53266] Fixed the background color of dialogs in the dark theme.
- - Fixed text cursor blink period.
-
-Universal
----------
-
- - Fixed Dial press effect.
- - [QTBUG-52738] Fixed editor colors in the dark theme.
- - [QTBUG-55366] Fixed the default foreground and background colors read from
- :/qtquickcontrols2.conf or environment variables.
diff --git a/dist/changes-5.8.0 b/dist/changes-5.8.0
deleted file mode 100644
index 5b431fca..00000000
--- a/dist/changes-5.8.0
+++ /dev/null
@@ -1,208 +0,0 @@
-Qt 5.8 introduces many new features and improvements as well as bugfixes
-over the 5.7.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
- http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.8 series is binary compatible with the 5.7.x series.
-Applications compiled for 5.7 will continue to run with 5.8.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
- https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Important Behavior Changes *
-****************************************************************************
-
- - Control:
- * Control::hoverEnabled has been made to inherit to children, to make it
- possible to disable hover effects for a tree of controls in one place.
-
- - Tumbler:
- * Changed the default value of visibleItemCount to 5 to make it visually
- clearer that it's a Tumbler.
- * [QTBUG-53587] Changed the default value of wrap to be false when count
- is less than visibleItemCount. Explicitly setting wrap overrides this
- behavior.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - AbstractButton:
- * A plain AbstractButton now calculates its implicit size based on the
- implicit size of the content item plus paddings, and the implicit size
- of the background item.
- * [QTBUG-51554] The checkable property has been made accessible from
- QML. Previously it was only exposed for Button and MenuItem, but it is
- now available for any AbstractButton to make it possible to create
- custom QML-based checkable buttons.
- * [QTBUG-57085] Fixed auto-repeat to not cancel on the tiniest mouse/touch
- move, but keep repeating until moved outside the button.
- * Fixed press-and-hold for checkable buttons to not toggle the checked
- state on release after press-and-hold.
-
- - ButtonGroup:
- * Added clicked(AbstractButton) signal for centralized click handling for
- grouped buttons.
-
- - ComboBox:
- * [QTBUG-56884] Added handling for Home and End keys.
- * [QTBUG-56884] Added missing keyboard search functionality.
- * [QTBUG-54935] Added a flat property that provides more suitable looks
- for using ComboBox in a ToolBar.
-
- - Container:
- * Added incrementCurrentIndex() and decrementCurrentIndex() methods for
- changing the current index without losing its property binding.
- * A plain Container now calculates its implicit size based on the
- implicit size of the content item plus paddings, and the implicit size
- of the background item.
-
- - Control:
- * A plain Control now calculates its implicit size based on the implicit
- size of the content item plus paddings, and the implicit size of the
- background item.
-
- - Dialog:
- * Added a new Dialog type to provide convenience for handling dialog
- popups. Dialog integrates with DialogButtonBox, and provides convenient
- accepted() and rejected() signals.
-
- - DialogButtonBox:
- * Added DialogButtonBox to provide convenience for handling dialog buttons.
- DialogButtonBox is able to create a set of standard buttons with a single
- line of QML code, and provides convenient accepted() and rejected() signals.
-
- - Drawer:
- * [QTBUG-55360] Made it possible to control the vertical position of a
- horizontal drawer, and vice versa. This allows placing a drawer below
- a header/toolbar, for instance.
-
- - MenuSeparator:
- * [QTBUG-54862] Added MenuSeparator to visually distinguish between groups
- of items in a menu.
-
- - Page:
- * [QTBUG-56709] Page has been made to calculate its implicit size based
- on the implicit size of the header, content, and footer plus paddings,
- and the implicit size of the background item.
-
- - Popup:
- * [QTBUG-56025] Fixed to respect explicitly set width and height.
- * [QTBUG-56562] The QML Shortcut type from QtQuick has been fixed to
- respect modal popups from QtQuick Controls 2.
- * [QTBUG-56755] Fixed binding loops with size-dependent positioning.
-
- - RangeSlider:
- * [QTBUG-50003] Added first.hovered and second.hovered properties that
- hold whether the respective handles are hovered.
-
- - RoundButton:
- * [QTBUG-54967] Added RoundButton.
-
- - Slider:
- * [QTBUG-53847] Added valueAt() method for converting any position to a
- value in the slider's range. It is also possible to use valueAt() to get
- continuous value updates.
-
- - SpinBox:
- * [QTBUG-50003] Added up.hovered and down.hovered properties that hold
- whether the respective buttons are hovered.
- * [QTBUG-57085] Fixed auto-repeat to not cancel on the tiniest mouse/touch
- move, but keep repeating until moved outside the button.
-
- - StackView:
- * Added attached StackView.activated(), StackView.deactivated(),
- StackView.activating(), and StackView.deactivating() signals that are
- convenient for initializing and cleaning up item-specific resources.
- * [QTBUG-55405] Added StackView.removed() attached signal to provide a
- way to delete items that StackView won't.
- * Made it possible to choose the visual transition type for any operation.
- This allows using for example push and pop transitions with replace(),
- which allows implementing an "infinite" back and forward navigation
- pattern while keeping the amount of instantiated items constant.
-
- - SwipeDelegate:
- * [QTBUG-54651] Added swipe.close() for setting swipe.position to 0.
- * [QTBUG-54651] Added swipe.completed() for responding to completion of
- swipes.
- * [QTBUG-54651] Added attached SwipeDelegate.pressed property and
- SwipeDelegate.clicked() signal for detecting when non-interactive
- left/right/behind items are pressed and clicked.
- * [QTBUG-56312][QTBUG-57285] Fixed spurious clicked() signal emission when
- released outside the delegate.
- * [QTBUG-57271] Fixed swipes that begin over a child item of a delegate.
-
- - SwipeView:
- * Added SwipeView.isNextItem and SwipeView.isPreviousItem attached
- properties to make it straight-forward to use Loader for unloading
- pages that are outside the reach.
- * [QTBUG-54268] Added interactive property for controlling whether swipe
- interaction is enabled.
-
- - TextArea:
- * [QTBUG-51009] Added pressed() and released() signals.
-
- - TextField:
- * [QTBUG-51009] Added pressed() and released() signals.
- * Aligned the name of the pressAndHold() argument with TextArea
-
- - ToolSeparator:
- * [QTBUG-54862] Added ToolSeparator to visually distinguish between groups
- of items in a toolbar by separating them with a line. It can be used in
- horizontal or vertical toolbars.
-
- - Tumbler:
- * [QTBUG-53587] Added wrap property to control whether or not tumbler
- wraps when it reaches the top and bottom.
-
-****************************************************************************
-* Styles *
-****************************************************************************
-
- - Added support for specifying the fallback style for custom styles via
- :/qtquickcontrols2.conf, QT_QUICK_CONTROLS_FALLBACK_STYLE or
- QQuickStyle::setFallbackStyle().
-
-Material
---------
-
- - [QTBUG-50003] Implemented ripple and hover effects.
- - Fixed (optional) elevation effects for Frame, GroupBox, Pane, and
- TabBar.
- - Added Material.System theme enum value, that can be used to let the
- Material style choose either the light or dark theme based on the
- system theme colors.
-
-Universal
----------
-
- - [QTBUG-50003] Implemented hover effects
- - Added Universal.System theme enum value, that can be used to let the
- Universal style choose either the light or dark theme based on the
- system theme colors.
-
-****************************************************************************
-* Platform *
-****************************************************************************
-
- - Introduced a new experimental Qt Labs Platform module that provides the
- following native (Qt Widgets fallback when not available) QML types:
- * ColorDialog
- * FileDialog
- * FolderDialog
- * FontDialog
- * Menu
- * MenuBar
- * MenuItem
- * MenuItemGroup
- * MenuSeparator
- * MessageDialog
- * StandardPaths
- * SystemTrayIcon
diff --git a/dist/changes-5.9.0 b/dist/changes-5.9.0
deleted file mode 100644
index 39b064fb..00000000
--- a/dist/changes-5.9.0
+++ /dev/null
@@ -1,208 +0,0 @@
-Qt 5.9 introduces many new features and improvements as well as bugfixes
-over the 5.8.x series. For more details, refer to the online documentation
-included in this distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Important Behavior Changes *
-****************************************************************************
-
- - Added multi-touch support for buttons and sliders. It is now possible to
- touch-interact with multiple sliders and buttons at the same time.
- - By popular demand, Slider, RangeSlider, and Dial have been changed to
- report live value updates by default. This can be disabled by setting the
- "live" property to false.
- - [QTBUG-59920] Sliders and Dials now react immediately when using a
- mouse. Now the initial drag threshold applies only on touch, to avoid
- conflicting with flickables.
- - [QTBUG-58667] ScrollBar now reacts immediately when using a mouse.
- - [QTBUG-59629] Set explicit cursors on all interactive controls.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - AbstractButton:
- * Added support for multi-touch.
- * [QTBUG-57203] Added a toggled() signal that is emitted whenever a
- checkable button is interactively toggled by the user by using either
- touch, mouse, or keys.
-
- - ApplicationWindow:
- * [QTBUG-58932] The "data" property has been renamed to contentData, as it
- was documented. Notice that a "data" property still exists in QML
- Window, but is no longer overshadowed in ApplicationWindow.
-
- - Control:
- * [QTBUG-50992] Resolved the "Object destroyed during incubation" issue
- that occurred randomly when customizing built-in delegates.
-
- - ComboBox:
- * [QTBUG-53876] Added "editable" property.
- * Added "down" property.
-
- - DelayButton:
- * Added DelayButton that incorporates a delay before the button becomes
- activated, to prevent accidental triggers.
-
- - Dial:
- * Added a "live" property that determines whether the dial provides live
- updates for the "value" property while the handle is dragged.
- * Added support for wheel handling when wheelEnabled is set to true.
- * [QTBUG-57203] Added a moved() signal that is emitted whenever the dial
- is interactively moved by the user by using either touch, mouse, or
- keys.
- * Fixed handling of inverted wheel events (natural touchpad scrolling
- direction on macOS).
-
- - Drawer:
- * [QTBUG-53169] Added "interactive" property that specifies whether the
- drawer reacts to swipes. This can be used to make drawer a
- non-closable persistent side-bar.
-
- - Menu:
- * Fixed populating Menus with a Repeater.
-
- - Popup:
- * Allowed passing a Window as a parent when creating dynamic Popup
- instances using eg. Component.createObject(). Previously, Popup
- assumed the parent to be an Item, and would complain "cannot find
- any window to open popup in" if a Window was passed.
- * [QTBUG-58196] Allowed dynamic window changes after construction.
- * Fixed the CloseOnRelease close policy for non-modal popups.
-
- - RangeSlider:
- * Added a "live" property that determines whether the range slider
- provides live updates for the first.value and second.value properties
- while the respective handle is dragged.
-
- - ScrollBar:
- * [QTBUG-56569] Added snapMode property for incremental or discrete
- scrolling.
- * Added an "interactive "property. A non-interactive ScrollBar is visually
- and behaviorally similar to ScrollIndicator. This property is useful
- for switching between typical mouse- and touch-orientated UIs with
- interactive and non- interactive scroll bars, respectively.
- * Added a "policy" property, which holds whether the scroll bar is shown
- always/never/as needed (default).
-
- - ScrollView:
- * Added ScrollView. On touch, ScrollView enables flicking and makes
- the scroll bars non-interactive. When interacted with a mouse device,
- flicking is disabled and the scroll bars are interactive.
-
- - Slider:
- * Added support for multi-touch.
- * Added a "live" property that determines whether the slider provides live
- updates for the "value" property while the handle is dragged.
- * [QTBUG-57203] Added a moved() signal that is emitted whenever the
- slider is interactively moved by the user by using either touch,
- mouse, wheel, or keys.
- * Fixed handling of inverted wheel events (natural touchpad scrolling
- direction on macOS).
-
- - SpinBox:
- * [QTBUG-56837] Added inputMethodHints and inputMethodComposing
- properties for controlling the input method when using editable spin
- boxes.
- * [QTBUG-57203] Added a valueModified() signal that is emitted whenever
- the value of a spin box has been interactively modified by the user by
- using either touch, mouse, wheel, or keys.
- * [QTBUG-60356] Forwarded focus to the internal editor of an editable
- spin box.
-
- - StackView:
- * [QTBUG-56801] Added attached "StackView.visible" property that can be
- used to control whether items below the top- most item are kept
- visible.
- * [QTBUG-57266] Prevented pushing duplicate items.
- * [QTBUG-59034] Fixed pop/replace exit transition leak, sometimes leading
- to random crashes since a transition could have been left running in the
- background at destruction time.
- * [QTBUG-59098] Prevented StackView filtering mouse ungrab events to avoid
- MouseAreas being stuck in the pressed state.
- * [QTBUG-59634] Improved component creation errors by using the standard
- QML warning system that gives a context/location for the error.
-
- - SwipeDelegate:
- * [QTBUG-57192] Added "swipe.enabled" property to allow disabling of
- swiping.
- * Added swipe.open(side) method that can be used to programmatically
- open the side item on the specified side, which can be either
- SwipeDelegate.Left or SwipeDelegate.Right.
- * Added swipe.opened() and swipe.closed() signals, which are emitted
- when the delegate has been opened or closed by swipe, and the
- respective transition has finished.
- * Added a swipe.transition property that holds the transition that is
- applied when a swipe is released, or swipe.open() or swipe.close() is
- called.
-
- - SwipeView:
- * [QTBUG-56031] Added "orientation" property.
-
- - TabBar:
- * [QTBUG-57858] Added contentWidth and contentHeight properties that are
- automatically calculated based on the total size of the tab items, but
- can be manually overridden if desired. This fixes an issue that TabBar
- was not able to reliably calculate an implicit size, and could in
- certain scenarios enter an infinite loop due to a circular dependency
- between the items' sizes and the tabbar's size.
-
- - TextArea:
- * [QTBUG-55999] Fixed the horizontal alignment of the placeholder text
- in right-to-left UIs.
- * TextArea has been made to work inside ScrollView, providing necessary
- scroll bars out of the box.
-
- - TextField:
- * [QTBUG-55999] Fixed the horizontal alignment of the placeholder text
- in right-to-left UIs.
-
- - Tumbler:
- * Added a "moving" property that describes whether the tumbler is
- currently moving, due to the user either dragging or flicking the
- tumbler.
-
-****************************************************************************
-* Styles *
-****************************************************************************
-
- - Added support for a QT_QUICK_CONTROLS_STYLE_PATH environment variable,
- which can be used to specify lookup paths for Qt Quick Controls 2
- styles. This allows device manufacturers and Linux distributions to
- specify a system-wide style installation folder that may be located
- outside the Qt installation tree.
- - Added support for a QT_QUICK_CONTROLS_STYLE_CONF environment variable,
- which can be used to override the default location of the Qt Quick
- 2 Controls configuration file (:/qtquickcontrols2.conf).
- - QQuickStyle:
- * Added availableStyles() method that returns the list of available
- built-in styles.
-
-Default
---------
- - Visualized RangeSliders's range.
-
-Material
---------
- - [QTBUG-58797] Fixed cursor visibility for read-only editors.
-
-****************************************************************************
-* Platform *
-****************************************************************************
-
- - Menu:
- * Fixed sub-menu handling when using the Qt Widgets fallbacks on
- platforms that do not support native menus (Windows, for example).
diff --git a/dist/changes-5.9.1 b/dist/changes-5.9.1
deleted file mode 100644
index 46c62047..00000000
--- a/dist/changes-5.9.1
+++ /dev/null
@@ -1,75 +0,0 @@
-Qt 5.9.1 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* General *
-****************************************************************************
-
- - [QTBUG-58571] Enabled the use of QML caching at build time.
- - [QTBUG-61144] Added a configure feature for disabling multi- touch
- support (configure -no-feature-quicktemplates2-multitouch).
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - ApplicationWindow:
- * [QTBUG-60893] Fixed access to revisioned members in base classes.
-
- - ComboBox:
- * [QTBUG-60684] Fixed an empty popup being shown after model is cleared.
-
- - Container:
- * [QTBUG-61310] Fixed a crash that occurred with Repeater under certain
- circumstances.
-
- - Menu:
- * Fixed key navigation to skip separators.
-
- - Page:
- * [QTBUG-61109] Fixed the initial content layouting of dynamically created
- Page instances.
-
- - Popup:
- * [QTBUG-61114] Fixed font inheritance for popups.
-
- - SpinBox:
- * [QTBUG-61426] Fixed valueModified() to get emitted on repeated value
- changes during long press.
-
- - StackView:
- * Fixed clear() to not emit depthChanged() when the view is empty.
-
-****************************************************************************
-* Styles *
-****************************************************************************
-
- - QQuickStyle:
- * [QTBUG-60973] Fixed availableStyles() to exclude debug symbol folders
- (.dSYM) on macOS.
-
-Default
---------
- - RangeSlider:
- * Fixed the second handle to visualize its pressed state.
-
-Material & Universal
---------------------
- - ScrollBar:
- * Fixed flashing when calling decrease() or increase() for key navigation.
diff --git a/dist/changes-5.9.2 b/dist/changes-5.9.2
deleted file mode 100644
index 370f77cb..00000000
--- a/dist/changes-5.9.2
+++ /dev/null
@@ -1,79 +0,0 @@
-Qt 5.9.2 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - BusyIndicator:
- * [QTBUG-61785] Fixed busy indicators to not block touch events.
-
- - Control:
- * [QTBUG-63119] Fixed font inheritance in item views.
-
- - Drawer:
- * [QTBUG-61581] Fixed multi-touch leaking through modal overlay.
- * [QTBUG-59652] Fixed non-modal drawer drag/swipe open and close.
-
- - Menu:
- * [QTBUG-61608] Fixed press-and-hold support by removing OnReleaseOutside
- from the default close policy, to avoid closing on release when opened
- from an onPressAndHold signal handler.
-
- - Popup:
- * [QTBUG-61698] Fixed multi-touch leaking through modal overlay
- * Fixed focus handling for chained popups. When a popup is closed, focus
- is now restored to the next popup in chain instead of transferring focus
- to the window content.
- * [QTBUG-62158] Fixed popups to take Window::contentOrientation into
- account.
-
- - PageIndicator:
- * Fixed interactive page indicators to work on touch.
- * [QTBUG-61785] Fixed non-interactive page indicators to not block touch
- events.
-
- - ScrollIndicator:
- * [QTBUG-61785] Fixed scroll indicators to not block touch events.
-
- - SpinBox:
- * [QTBUG-61426] Fixed to emit valueModified() on long press.
- * [QTBUG-62508] Fixed initial value validation.
-
- - StackView:
- * [QTBUG-62153] Fixed a crash that would occur when pushing new items
- from a StackView.onRemoved signal handler.
- * Fixed resolving of the initialItem URL.
-
- - TextArea:
- - TextField:
- * [QTBUG-62854] Improved the Default style.
-
- - ToolTip:
- * [QTBUG-60492] Fixed tooltips to not block shortcuts.
-
- - Tumbler:
- * [QTBUG-61374] Fixed a regression with currentIndex and currentItem.
-
-****************************************************************************
-* Calendar *
-****************************************************************************
-
- - MonthGrid:
- * [QTBUG-61585] Fixed the clicked() signal to be emitted on touch.
diff --git a/dist/changes-5.9.3 b/dist/changes-5.9.3
deleted file mode 100644
index 8879b939..00000000
--- a/dist/changes-5.9.3
+++ /dev/null
@@ -1,52 +0,0 @@
-Qt 5.9.3 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.9.3 Changes *
-****************************************************************************
-
- - ButtonGroup:
- * [QTBUG-62946][QTBUG-63470] Fixed an issue in tracking of the currently
- checked button that caused a crash under certain circumstances.
-
- - DialogButtonBox:
- * [QTBUG-63898] Fixed a potential crash when using DialogButtonBox without
- a contentItem.
-
- - Popup:
- * [QTBUG-63672] Fixed a dangling QML context that was causing random
- crashes in the QML engine debug service.
-
- - ScrollView:
- * [QTBUG-62325] Fixed a binding loop when using a wrapping TextArea as
- content.
-
- - StackView:
- * Fixed a resource leak that occurred when the creation of the initial
- item failed.
-
- - TextArea & TextField:
- * [QTBUG-62854] Improved the Default style.
- - Removed top-level opacity assignments to allow full customization.
- - Added more distinction between disabled and placeholder text.
- - Made disabled text more visible.
-
- - ToolTip:
- * [QTBUG-63644] Disabled hover to avoid tooltips blocking hover events,
- which are typically used for showing tooltips on desktop platforms.
diff --git a/dist/changes-5.9.4 b/dist/changes-5.9.4
deleted file mode 100644
index 3ac6f4a5..00000000
--- a/dist/changes-5.9.4
+++ /dev/null
@@ -1,63 +0,0 @@
-Qt 5.9.4 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Important Behavior Changes *
-****************************************************************************
-
- - As a fix to QTBUG-50992, execution of delegates, such as contentItem and
- background, is deferred until the construction of a control is complete,
- or a delegate is accessed. Consequently, if a delegate is replaced with
- a custom delegate, the default delegate is not created. Previously, when
- a default delegate was replaced by a custom delegate, the default
- delegate was nevertheless created and destroyed during the construction
- of the control.
-
-****************************************************************************
-* Controls *
-****************************************************************************
-
- - [QTBUG-64548] Fixed shortcuts in QQuickWidget
-
- - [QTBUG-65016] Fixed QQuickStyle::setFallbackStyle() in static builds
-
- - [QTBUG-50992] Fixed a bug which caused delegates of customized controls
- to often be "destroyed during incubation" when asynchronously incubated
- by item views or asynchronous loaders.
-
- - BusyIndicator:
- * [QTBUG-62874] Fixed busy animation in QQuickWidget
-
- - ProgressBar:
- * [QTBUG-62874] Fixed indeterminate animation in QQuickWidget
-
- - StackView:
- * [QTBUG-65084] Fixed to not block touch events.
-
- - SwipeView:
- * [QTBUG-62110] Fixed slow swiping in large views
-
- - ToolButton:
- * [QTBUG-65052] Fixed round ripple for square buttons in the Material style
-
- - Tumbler:
- * [QTBUG-65165] Made currentIndex animations take a constant amount of
- time (1 second) regardless of how many items are in the model. This
- prevents Tumblers with large amounts of items from scrolling too
- slowly when changing the currentIndex.
diff --git a/dist/changes-5.9.5 b/dist/changes-5.9.5
deleted file mode 100644
index 82842add..00000000
--- a/dist/changes-5.9.5
+++ /dev/null
@@ -1,56 +0,0 @@
-Qt 5.9.5 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.9.5 Changes *
-****************************************************************************
-
-Controls
---------
-
- - Control:
- * [QTBUG-65880] Fixed a bug in deferred execution, that caused the
- background item to not follow the size of the control under certain
- circumstances, leading to a visually missing background.
- * [QTBUG-66133] Fixed focus scope controls, such as Frame, GroupBox,
- Page, and Pane, to respect click and wheel focus policies by clearing
- a potential sub-focus child. This makes it possible to close the virtual
- keyboard by clicking the background of a Pane that has Qt.ClickFocus
- set as its focusPolicy, for example.
-
- - ComboBox:
- * [QTBUG-65962] Fixed a bug in deferred execution, that caused the popup's
- bindings to not get finalized under certain circumstances, leading to
- a visually missing popup.
-
- - Popup:
- * [QTBUG-66113] Fixed restoring focus to popups that did not request
- focus when opened, but gained focus later.
-
-Platform
---------
-
- - Menu:
- * [QTBUG-55251] Fixed opening position on high-DPI screens.
-
-Third-Party Code
-----------------
-
- - [QTBUG-65409] Document constants from AngularJS in
- src/imports/controls/material/ElevationEffect.qml
diff --git a/dist/changes-5.9.6 b/dist/changes-5.9.6
deleted file mode 100644
index 9684e2b1..00000000
--- a/dist/changes-5.9.6
+++ /dev/null
@@ -1,39 +0,0 @@
-Qt 5.9.6 is a bug-fix release. It maintains both forward and backward
-compatibility (source and binary) with Qt 5.9.0 through 5.9.5.
-
-For more details, refer to the online documentation included in this
-distribution. The documentation is also available online:
-
-http://doc.qt.io/qt-5/index.html
-
-The Qt version 5.9 series is binary compatible with the 5.8.x series.
-Applications compiled for 5.8 will continue to run with 5.9.
-
-Some of the changes listed in this file include issue tracking numbers
-corresponding to tasks in the Qt Bug Tracker:
-
-https://bugreports.qt.io/
-
-Each of these identifiers can be entered in the bug tracker to obtain more
-information about a particular change.
-
-****************************************************************************
-* Qt 5.9.6 Changes *
-****************************************************************************
-
-Controls
---------
-
- - Label:
- * [QTBUG-65880] Fixed a background size regression caused by deferred
- execution.
-
- - TextArea:
- * [QTBUG-67334] Fixed the background to not scroll when TextArea is
- placed in a ScrollView.
- * [QTBUG-65880] Fixed a background size regression caused by deferred
- execution.
-
- - TextField:
- * [QTBUG-65880] Fixed a background size regression caused by deferred
- execution.
diff --git a/examples/examples.pro b/examples/examples.pro
deleted file mode 100644
index baa83d16..00000000
--- a/examples/examples.pro
+++ /dev/null
@@ -1,3 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- quickcontrols2
diff --git a/examples/quickcontrols2/chattutorial/chapter1-settingup/chapter1-settingup.pro b/examples/quickcontrols2/chattutorial/chapter1-settingup/chapter1-settingup.pro
deleted file mode 100644
index 6b7e7108..00000000
--- a/examples/quickcontrols2/chattutorial/chapter1-settingup/chapter1-settingup.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick
-CONFIG += c++11
-
-SOURCES += main.cpp
-
-RESOURCES += qml.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/chattutorial/chapter1-settingup
-INSTALLS += target
diff --git a/examples/quickcontrols2/chattutorial/chapter1-settingup/main.cpp b/examples/quickcontrols2/chattutorial/chapter1-settingup/main.cpp
deleted file mode 100644
index 246d5665..00000000
--- a/examples/quickcontrols2/chattutorial/chapter1-settingup/main.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
-
- return app.exec();
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter1-settingup/main.qml b/examples/quickcontrols2/chattutorial/chapter1-settingup/main.qml
deleted file mode 100644
index 29e5c300..00000000
--- a/examples/quickcontrols2/chattutorial/chapter1-settingup/main.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 540
- height: 960
- visible: true
-
- Page {
- anchors.fill: parent
- header: Label {
- padding: 10
- text: qsTr("Contacts")
- font.pixelSize: 20
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter1-settingup/qml.qrc b/examples/quickcontrols2/chattutorial/chapter1-settingup/qml.qrc
deleted file mode 100644
index 0ff3892d..00000000
--- a/examples/quickcontrols2/chattutorial/chapter1-settingup/qml.qrc
+++ /dev/null
@@ -1,6 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- </qresource>
-</RCC>
-
diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/chapter2-lists.pro b/examples/quickcontrols2/chattutorial/chapter2-lists/chapter2-lists.pro
deleted file mode 100644
index dff0aac2..00000000
--- a/examples/quickcontrols2/chattutorial/chapter2-lists/chapter2-lists.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick
-CONFIG += c++11
-
-SOURCES += main.cpp
-
-RESOURCES += qml.qrc \
- ../shared/shared.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/chattutorial/chapter2-lists
-INSTALLS += target
diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/main.cpp b/examples/quickcontrols2/chattutorial/chapter2-lists/main.cpp
deleted file mode 100644
index 246d5665..00000000
--- a/examples/quickcontrols2/chattutorial/chapter2-lists/main.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
-
- return app.exec();
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/main.qml b/examples/quickcontrols2/chattutorial/chapter2-lists/main.qml
deleted file mode 100644
index 8308f5c0..00000000
--- a/examples/quickcontrols2/chattutorial/chapter2-lists/main.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 540
- height: 960
- visible: true
-
- Page {
- anchors.fill: parent
- header: Label {
- padding: 10
- text: qsTr("Contacts")
- font.pixelSize: 20
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-
- ListView {
- id: listView
- anchors.fill: parent
- topMargin: 48
- leftMargin: 48
- bottomMargin: 48
- rightMargin: 48
- spacing: 20
- model: ["Albert Einstein", "Ernest Hemingway", "Hans Gude"]
- delegate: ItemDelegate {
- text: modelData
- width: listView.width - listView.leftMargin - listView.rightMargin
- height: avatar.implicitHeight
- leftPadding: avatar.implicitWidth + 32
-
- Image {
- id: avatar
- source: "qrc:/" + modelData.replace(" ", "_") + ".png"
- }
- }
- }
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter2-lists/qml.qrc b/examples/quickcontrols2/chattutorial/chapter2-lists/qml.qrc
deleted file mode 100644
index 0ff3892d..00000000
--- a/examples/quickcontrols2/chattutorial/chapter2-lists/qml.qrc
+++ /dev/null
@@ -1,6 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- </qresource>
-</RCC>
-
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml b/examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml
deleted file mode 100644
index 826aee42..00000000
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/ContactPage.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Page {
- id: root
-
- header: ToolBar {
- Label {
- text: qsTr("Contacts")
- font.pixelSize: 20
- anchors.centerIn: parent
- }
- }
-
- ListView {
- id: listView
- anchors.fill: parent
- topMargin: 48
- leftMargin: 48
- bottomMargin: 48
- rightMargin: 48
- spacing: 20
- model: ["Albert Einstein", "Ernest Hemingway", "Hans Gude"]
- delegate: ItemDelegate {
- text: modelData
- width: listView.width - listView.leftMargin - listView.rightMargin
- height: avatar.implicitHeight
- leftPadding: avatar.implicitWidth + 32
- onClicked: root.StackView.view.push("qrc:/ConversationPage.qml", { inConversationWith: modelData })
-
- Image {
- id: avatar
- source: "qrc:/" + modelData.replace(" ", "_") + ".png"
- }
- }
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/ConversationPage.qml b/examples/quickcontrols2/chattutorial/chapter3-navigation/ConversationPage.qml
deleted file mode 100644
index 90a846ac..00000000
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/ConversationPage.qml
+++ /dev/null
@@ -1,142 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-Page {
- id: root
-
- property string inConversationWith
-
- header: ToolBar {
- ToolButton {
- text: qsTr("Back")
- anchors.left: parent.left
- anchors.leftMargin: 10
- anchors.verticalCenter: parent.verticalCenter
- onClicked: root.StackView.view.pop()
- }
-
- Label {
- id: pageTitle
- text: inConversationWith
- font.pixelSize: 20
- anchors.centerIn: parent
- }
- }
-
- ColumnLayout {
- anchors.fill: parent
-
- ListView {
- Layout.fillWidth: true
- Layout.fillHeight: true
- Layout.margins: pane.leftPadding + messageField.leftPadding
- displayMarginBeginning: 40
- displayMarginEnd: 40
- verticalLayoutDirection: ListView.BottomToTop
- spacing: 12
- model: 10
- delegate: Row {
- readonly property bool sentByMe: index % 2 == 0
-
- anchors.right: sentByMe ? parent.right : undefined
- spacing: 6
-
- Rectangle {
- id: avatar
- width: height
- height: parent.height
- color: "grey"
- visible: !sentByMe
- }
-
- Rectangle {
- width: 80
- height: 40
- color: sentByMe ? "lightgrey" : "steelblue"
-
- Label {
- anchors.centerIn: parent
- text: index
- color: sentByMe ? "black" : "white"
- }
- }
- }
-
- ScrollBar.vertical: ScrollBar {}
- }
-
- Pane {
- id: pane
- Layout.fillWidth: true
-
- RowLayout {
- width: parent.width
-
- TextArea {
- id: messageField
- Layout.fillWidth: true
- placeholderText: qsTr("Compose message")
- wrapMode: TextArea.Wrap
- }
-
- Button {
- id: sendButton
- text: qsTr("Send")
- enabled: messageField.length > 0
- }
- }
- }
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/chapter3-navigation.pro b/examples/quickcontrols2/chattutorial/chapter3-navigation/chapter3-navigation.pro
deleted file mode 100644
index 92736a65..00000000
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/chapter3-navigation.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick
-CONFIG += c++11
-
-SOURCES += main.cpp
-
-RESOURCES += qml.qrc \
- ../shared/shared.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/chattutorial/chapter3-navigation
-INSTALLS += target
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/main.cpp b/examples/quickcontrols2/chattutorial/chapter3-navigation/main.cpp
deleted file mode 100644
index 246d5665..00000000
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/main.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
-
- return app.exec();
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/main.qml b/examples/quickcontrols2/chattutorial/chapter3-navigation/main.qml
deleted file mode 100644
index 3c0d1a23..00000000
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/main.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 540
- height: 960
- visible: true
-
- StackView {
- id: stackView
- anchors.fill: parent
- initialItem: ContactPage {}
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter3-navigation/qml.qrc b/examples/quickcontrols2/chattutorial/chapter3-navigation/qml.qrc
deleted file mode 100644
index a72e1b71..00000000
--- a/examples/quickcontrols2/chattutorial/chapter3-navigation/qml.qrc
+++ /dev/null
@@ -1,7 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- <file>ContactPage.qml</file>
- <file>ConversationPage.qml</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml b/examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml
deleted file mode 100644
index 61819491..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/ContactPage.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-import io.qt.examples.chattutorial 1.0
-
-Page {
- id: root
-
- header: ToolBar {
- Label {
- text: qsTr("Contacts")
- font.pixelSize: 20
- anchors.centerIn: parent
- }
- }
-
- ListView {
- id: listView
- anchors.fill: parent
- topMargin: 48
- leftMargin: 48
- bottomMargin: 48
- rightMargin: 48
- spacing: 20
- model: SqlContactModel {}
- delegate: ItemDelegate {
- text: model.display
- width: listView.width - listView.leftMargin - listView.rightMargin
- height: avatar.implicitHeight
- leftPadding: avatar.implicitWidth + 32
- onClicked: root.StackView.view.push("qrc:/ConversationPage.qml", { inConversationWith: model.display })
-
- Image {
- id: avatar
- source: "qrc:/" + model.display.replace(" ", "_") + ".png"
- }
- }
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml b/examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml
deleted file mode 100644
index 6684c233..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/ConversationPage.qml
+++ /dev/null
@@ -1,165 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-import io.qt.examples.chattutorial 1.0
-
-Page {
- id: root
-
- property string inConversationWith
-
- header: ToolBar {
- ToolButton {
- text: qsTr("Back")
- anchors.left: parent.left
- anchors.leftMargin: 10
- anchors.verticalCenter: parent.verticalCenter
- onClicked: root.StackView.view.pop()
- }
-
- Label {
- id: pageTitle
- text: inConversationWith
- font.pixelSize: 20
- anchors.centerIn: parent
- }
- }
-
- ColumnLayout {
- anchors.fill: parent
-
- ListView {
- id: listView
- Layout.fillWidth: true
- Layout.fillHeight: true
- Layout.margins: pane.leftPadding + messageField.leftPadding
- displayMarginBeginning: 40
- displayMarginEnd: 40
- verticalLayoutDirection: ListView.BottomToTop
- spacing: 12
- model: SqlConversationModel {
- recipient: inConversationWith
- }
- delegate: Column {
- anchors.right: sentByMe ? parent.right : undefined
- spacing: 6
-
- readonly property bool sentByMe: model.recipient !== "Me"
-
- Row {
- id: messageRow
- spacing: 6
- anchors.right: sentByMe ? parent.right : undefined
-
- Image {
- id: avatar
- source: !sentByMe ? "qrc:/" + model.author.replace(" ", "_") + ".png" : ""
- }
-
- Rectangle {
- width: Math.min(messageText.implicitWidth + 24,
- listView.width - (!sentByMe ? avatar.width + messageRow.spacing : 0))
- height: messageText.implicitHeight + 24
- color: sentByMe ? "lightgrey" : "steelblue"
-
- Label {
- id: messageText
- text: model.message
- color: sentByMe ? "black" : "white"
- anchors.fill: parent
- anchors.margins: 12
- wrapMode: Label.Wrap
- }
- }
- }
-
- Label {
- id: timestampText
- text: Qt.formatDateTime(model.timestamp, "d MMM hh:mm")
- color: "lightgrey"
- anchors.right: sentByMe ? parent.right : undefined
- }
- }
-
- ScrollBar.vertical: ScrollBar {}
- }
-
- Pane {
- id: pane
- Layout.fillWidth: true
-
- RowLayout {
- width: parent.width
-
- TextArea {
- id: messageField
- Layout.fillWidth: true
- placeholderText: qsTr("Compose message")
- wrapMode: TextArea.Wrap
- }
-
- Button {
- id: sendButton
- text: qsTr("Send")
- enabled: messageField.length > 0
- onClicked: {
- listView.model.sendMessage(inConversationWith, messageField.text);
- messageField.text = "";
- }
- }
- }
- }
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/chapter4-models.pro b/examples/quickcontrols2/chattutorial/chapter4-models/chapter4-models.pro
deleted file mode 100644
index 2a2d955b..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/chapter4-models.pro
+++ /dev/null
@@ -1,18 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick sql
-CONFIG += c++11
-
-HEADERS += sqlcontactmodel.h \
- sqlconversationmodel.h
-
-SOURCES += main.cpp \
- sqlcontactmodel.cpp \
- sqlconversationmodel.cpp
-
-RESOURCES += \
- qml.qrc \
- ../shared/shared.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/chattutorial/chapter4-models
-INSTALLS += target
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/main.cpp b/examples/quickcontrols2/chattutorial/chapter4-models/main.cpp
deleted file mode 100644
index 7b694b0a..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/main.cpp
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QStandardPaths>
-#include <QSqlDatabase>
-#include <QSqlError>
-#include <QtQml>
-
-#include "sqlcontactmodel.h"
-#include "sqlconversationmodel.h"
-
-static void connectToDatabase()
-{
- QSqlDatabase database = QSqlDatabase::database();
- if (!database.isValid()) {
- database = QSqlDatabase::addDatabase("QSQLITE");
- if (!database.isValid())
- qFatal("Cannot add database: %s", qPrintable(database.lastError().text()));
- }
-
- const QDir writeDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
- if (!writeDir.mkpath("."))
- qFatal("Failed to create writable directory at %s", qPrintable(writeDir.absolutePath()));
-
- // Ensure that we have a writable location on all devices.
- const QString fileName = writeDir.absolutePath() + "/chat-database.sqlite3";
- // When using the SQLite driver, open() will create the SQLite database if it doesn't exist.
- database.setDatabaseName(fileName);
- if (!database.open()) {
- qFatal("Cannot open database: %s", qPrintable(database.lastError().text()));
- QFile::remove(fileName);
- }
-}
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
-
- qmlRegisterType<SqlContactModel>("io.qt.examples.chattutorial", 1, 0, "SqlContactModel");
- qmlRegisterType<SqlConversationModel>("io.qt.examples.chattutorial", 1, 0, "SqlConversationModel");
-
- connectToDatabase();
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/main.qml b/examples/quickcontrols2/chattutorial/chapter4-models/main.qml
deleted file mode 100644
index 3c0d1a23..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/main.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 540
- height: 960
- visible: true
-
- StackView {
- id: stackView
- anchors.fill: parent
- initialItem: ContactPage {}
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/qml.qrc b/examples/quickcontrols2/chattutorial/chapter4-models/qml.qrc
deleted file mode 100644
index a72e1b71..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/qml.qrc
+++ /dev/null
@@ -1,7 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- <file>ContactPage.qml</file>
- <file>ConversationPage.qml</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.cpp b/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.cpp
deleted file mode 100644
index 6203ebec..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "sqlcontactmodel.h"
-
-#include <QDebug>
-#include <QSqlError>
-#include <QSqlQuery>
-
-static void createTable()
-{
- if (QSqlDatabase::database().tables().contains(QStringLiteral("Contacts"))) {
- // The table already exists; we don't need to do anything.
- return;
- }
-
- QSqlQuery query;
- if (!query.exec(
- "CREATE TABLE IF NOT EXISTS 'Contacts' ("
- " 'name' TEXT NOT NULL,"
- " PRIMARY KEY(name)"
- ")")) {
- qFatal("Failed to query database: %s", qPrintable(query.lastError().text()));
- }
-
- query.exec("INSERT INTO Contacts VALUES('Albert Einstein')");
- query.exec("INSERT INTO Contacts VALUES('Ernest Hemingway')");
- query.exec("INSERT INTO Contacts VALUES('Hans Gude')");
-}
-
-SqlContactModel::SqlContactModel(QObject *parent) :
- QSqlQueryModel(parent)
-{
- createTable();
-
- QSqlQuery query;
- if (!query.exec("SELECT * FROM Contacts"))
- qFatal("Contacts SELECT query failed: %s", qPrintable(query.lastError().text()));
-
- setQuery(query);
- if (lastError().isValid())
- qFatal("Cannot set query on SqlContactModel: %s", qPrintable(lastError().text()));
-}
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h b/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h
deleted file mode 100644
index fdbe5f1e..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/sqlcontactmodel.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef SQLCONTACTMODEL_H
-#define SQLCONTACTMODEL_H
-
-#include <QSqlQueryModel>
-
-class SqlContactModel : public QSqlQueryModel
-{
-public:
- SqlContactModel(QObject *parent = 0);
-};
-
-#endif // SQLCONTACTMODEL_H
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.cpp b/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.cpp
deleted file mode 100644
index 99526e81..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.cpp
+++ /dev/null
@@ -1,154 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "sqlconversationmodel.h"
-
-#include <QDateTime>
-#include <QDebug>
-#include <QSqlError>
-#include <QSqlRecord>
-#include <QSqlQuery>
-
-static const char *conversationsTableName = "Conversations";
-
-static void createTable()
-{
- if (QSqlDatabase::database().tables().contains(conversationsTableName)) {
- // The table already exists; we don't need to do anything.
- return;
- }
-
- QSqlQuery query;
- if (!query.exec(
- "CREATE TABLE IF NOT EXISTS 'Conversations' ("
- "'author' TEXT NOT NULL,"
- "'recipient' TEXT NOT NULL,"
- "'timestamp' TEXT NOT NULL,"
- "'message' TEXT NOT NULL,"
- "FOREIGN KEY('author') REFERENCES Contacts ( name ),"
- "FOREIGN KEY('recipient') REFERENCES Contacts ( name )"
- ")")) {
- qFatal("Failed to query database: %s", qPrintable(query.lastError().text()));
- }
-
- query.exec("INSERT INTO Conversations VALUES('Me', 'Ernest Hemingway', '2016-01-07T14:36:06', 'Hello!')");
- query.exec("INSERT INTO Conversations VALUES('Ernest Hemingway', 'Me', '2016-01-07T14:36:16', 'Good afternoon.')");
- query.exec("INSERT INTO Conversations VALUES('Me', 'Albert Einstein', '2016-01-01T11:24:53', 'Hi!')");
- query.exec("INSERT INTO Conversations VALUES('Albert Einstein', 'Me', '2016-01-07T14:36:16', 'Good morning.')");
- query.exec("INSERT INTO Conversations VALUES('Hans Gude', 'Me', '2015-11-20T06:30:02', 'God morgen. Har du fått mitt maleri?')");
- query.exec("INSERT INTO Conversations VALUES('Me', 'Hans Gude', '2015-11-20T08:21:03', 'God morgen, Hans. Ja, det er veldig fint. Tusen takk! "
- "Hvor mange timer har du brukt på den?')");
-}
-
-SqlConversationModel::SqlConversationModel(QObject *parent) :
- QSqlTableModel(parent)
-{
- createTable();
- setTable(conversationsTableName);
- setSort(2, Qt::DescendingOrder);
- // Ensures that the model is sorted correctly after submitting a new row.
- setEditStrategy(QSqlTableModel::OnManualSubmit);
-}
-
-QString SqlConversationModel::recipient() const
-{
- return m_recipient;
-}
-
-void SqlConversationModel::setRecipient(const QString &recipient)
-{
- if (recipient == m_recipient)
- return;
-
- m_recipient = recipient;
-
- const QString filterString = QString::fromLatin1(
- "(recipient = '%1' AND author = 'Me') OR (recipient = 'Me' AND author='%1')").arg(m_recipient);
- setFilter(filterString);
- select();
-
- emit recipientChanged();
-}
-
-QVariant SqlConversationModel::data(const QModelIndex &index, int role) const
-{
- if (role < Qt::UserRole)
- return QSqlTableModel::data(index, role);
-
- const QSqlRecord sqlRecord = record(index.row());
- return sqlRecord.value(role - Qt::UserRole);
-}
-
-QHash<int, QByteArray> SqlConversationModel::roleNames() const
-{
- QHash<int, QByteArray> names;
- names[Qt::UserRole] = "author";
- names[Qt::UserRole + 1] = "recipient";
- names[Qt::UserRole + 2] = "timestamp";
- names[Qt::UserRole + 3] = "message";
- return names;
-}
-
-void SqlConversationModel::sendMessage(const QString &recipient, const QString &message)
-{
- const QString timestamp = QDateTime::currentDateTime().toString(Qt::ISODate);
-
- QSqlRecord newRecord = record();
- newRecord.setValue("author", "Me");
- newRecord.setValue("recipient", recipient);
- newRecord.setValue("timestamp", timestamp);
- newRecord.setValue("message", message);
- if (!insertRecord(rowCount(), newRecord)) {
- qWarning() << "Failed to send message:" << lastError().text();
- return;
- }
-
- submitAll();
-}
diff --git a/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h b/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h
deleted file mode 100644
index 14ab12e2..00000000
--- a/examples/quickcontrols2/chattutorial/chapter4-models/sqlconversationmodel.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef SQLCONVERSATIONMODEL_H
-#define SQLCONVERSATIONMODEL_H
-
-#include <QSqlTableModel>
-
-class SqlConversationModel : public QSqlTableModel
-{
- Q_OBJECT
- Q_PROPERTY(QString recipient READ recipient WRITE setRecipient NOTIFY recipientChanged)
-
-public:
- SqlConversationModel(QObject *parent = 0);
-
- QString recipient() const;
- void setRecipient(const QString &recipient);
-
- QVariant data(const QModelIndex &index, int role) const override;
- QHash<int, QByteArray> roleNames() const override;
-
- Q_INVOKABLE void sendMessage(const QString &recipient, const QString &message);
-
-signals:
- void recipientChanged();
-
-private:
- QString m_recipient;
-};
-
-#endif // SQLCONVERSATIONMODEL_H
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/+material/ChatToolBar.qml b/examples/quickcontrols2/chattutorial/chapter5-styling/+material/ChatToolBar.qml
deleted file mode 100644
index 1252706b..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/+material/ChatToolBar.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-ToolBar {
- Material.theme: Material.Dark
-}
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/ChatToolBar.qml b/examples/quickcontrols2/chattutorial/chapter5-styling/ChatToolBar.qml
deleted file mode 100644
index 32e6217c..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/ChatToolBar.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls 2.12
-
-ToolBar {
-}
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml b/examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml
deleted file mode 100644
index f26712f8..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/ContactPage.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-import io.qt.examples.chattutorial 1.0
-
-Page {
- id: root
-
- header: ChatToolBar {
- Label {
- text: qsTr("Contacts")
- font.pixelSize: 20
- anchors.centerIn: parent
- }
- }
-
- ListView {
- id: listView
- anchors.fill: parent
- topMargin: 48
- leftMargin: 48
- bottomMargin: 48
- rightMargin: 48
- spacing: 20
- model: SqlContactModel {}
- delegate: ItemDelegate {
- text: model.display
- width: listView.width - listView.leftMargin - listView.rightMargin
- height: avatar.implicitHeight
- leftPadding: avatar.implicitWidth + 32
- onClicked: root.StackView.view.push("qrc:/ConversationPage.qml", { inConversationWith: model.display })
-
- Image {
- id: avatar
- source: "qrc:/" + model.display.replace(" ", "_") + ".png"
- }
- }
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml b/examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml
deleted file mode 100644
index 790f9ee9..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/ConversationPage.qml
+++ /dev/null
@@ -1,164 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-import io.qt.examples.chattutorial 1.0
-
-Page {
- id: root
-
- property string inConversationWith
-
- header: ChatToolBar {
- ToolButton {
- text: qsTr("Back")
- anchors.left: parent.left
- anchors.leftMargin: 10
- anchors.verticalCenter: parent.verticalCenter
- onClicked: root.StackView.view.pop()
- }
-
- Label {
- id: pageTitle
- text: inConversationWith
- font.pixelSize: 20
- anchors.centerIn: parent
- }
- }
-
- ColumnLayout {
- anchors.fill: parent
-
- ListView {
- id: listView
- Layout.fillWidth: true
- Layout.fillHeight: true
- Layout.margins: pane.leftPadding + messageField.leftPadding
- displayMarginBeginning: 40
- displayMarginEnd: 40
- verticalLayoutDirection: ListView.BottomToTop
- spacing: 12
- model: SqlConversationModel {
- recipient: inConversationWith
- }
- delegate: Column {
- anchors.right: sentByMe ? parent.right : undefined
- spacing: 6
-
- readonly property bool sentByMe: model.recipient !== "Me"
-
- Row {
- id: messageRow
- spacing: 6
- anchors.right: sentByMe ? parent.right : undefined
-
- Image {
- id: avatar
- source: !sentByMe ? "qrc:/" + model.author.replace(" ", "_") + ".png" : ""
- }
-
- Rectangle {
- width: Math.min(messageText.implicitWidth + 24, listView.width - avatar.width - messageRow.spacing)
- height: messageText.implicitHeight + 24
- color: sentByMe ? "lightgrey" : "steelblue"
-
- Label {
- id: messageText
- text: model.message
- color: sentByMe ? "black" : "white"
- anchors.fill: parent
- anchors.margins: 12
- wrapMode: Label.Wrap
- }
- }
- }
-
- Label {
- id: timestampText
- text: Qt.formatDateTime(model.timestamp, "d MMM hh:mm")
- color: "lightgrey"
- anchors.right: sentByMe ? parent.right : undefined
- }
- }
-
- ScrollBar.vertical: ScrollBar {}
- }
-
- Pane {
- id: pane
- Layout.fillWidth: true
-
- RowLayout {
- width: parent.width
-
- TextArea {
- id: messageField
- Layout.fillWidth: true
- placeholderText: qsTr("Compose message")
- wrapMode: TextArea.Wrap
- }
-
- Button {
- id: sendButton
- text: qsTr("Send")
- enabled: messageField.length > 0
- onClicked: {
- listView.model.sendMessage(inConversationWith, messageField.text);
- messageField.text = "";
- }
- }
- }
- }
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/chapter5-styling.pro b/examples/quickcontrols2/chattutorial/chapter5-styling/chapter5-styling.pro
deleted file mode 100644
index e798fe3c..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/chapter5-styling.pro
+++ /dev/null
@@ -1,18 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick sql
-CONFIG += c++11
-
-HEADERS += sqlcontactmodel.h \
- sqlconversationmodel.h
-
-SOURCES += main.cpp \
- sqlcontactmodel.cpp \
- sqlconversationmodel.cpp
-
-RESOURCES += \
- qml.qrc \
- ../shared/shared.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/chattutorial/chapter5-styling
-INSTALLS += target
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/main.cpp b/examples/quickcontrols2/chattutorial/chapter5-styling/main.cpp
deleted file mode 100644
index 7b694b0a..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/main.cpp
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QStandardPaths>
-#include <QSqlDatabase>
-#include <QSqlError>
-#include <QtQml>
-
-#include "sqlcontactmodel.h"
-#include "sqlconversationmodel.h"
-
-static void connectToDatabase()
-{
- QSqlDatabase database = QSqlDatabase::database();
- if (!database.isValid()) {
- database = QSqlDatabase::addDatabase("QSQLITE");
- if (!database.isValid())
- qFatal("Cannot add database: %s", qPrintable(database.lastError().text()));
- }
-
- const QDir writeDir = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
- if (!writeDir.mkpath("."))
- qFatal("Failed to create writable directory at %s", qPrintable(writeDir.absolutePath()));
-
- // Ensure that we have a writable location on all devices.
- const QString fileName = writeDir.absolutePath() + "/chat-database.sqlite3";
- // When using the SQLite driver, open() will create the SQLite database if it doesn't exist.
- database.setDatabaseName(fileName);
- if (!database.open()) {
- qFatal("Cannot open database: %s", qPrintable(database.lastError().text()));
- QFile::remove(fileName);
- }
-}
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
-
- qmlRegisterType<SqlContactModel>("io.qt.examples.chattutorial", 1, 0, "SqlContactModel");
- qmlRegisterType<SqlConversationModel>("io.qt.examples.chattutorial", 1, 0, "SqlConversationModel");
-
- connectToDatabase();
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/main.qml b/examples/quickcontrols2/chattutorial/chapter5-styling/main.qml
deleted file mode 100644
index 3c0d1a23..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/main.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 540
- height: 960
- visible: true
-
- StackView {
- id: stackView
- anchors.fill: parent
- initialItem: ContactPage {}
- }
-}
-
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/qml.qrc b/examples/quickcontrols2/chattutorial/chapter5-styling/qml.qrc
deleted file mode 100644
index 6dcfb073..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/qml.qrc
+++ /dev/null
@@ -1,10 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- <file>ContactPage.qml</file>
- <file>ConversationPage.qml</file>
- <file>qtquickcontrols2.conf</file>
- <file>ChatToolBar.qml</file>
- <file>+material/ChatToolBar.qml</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/qtquickcontrols2.conf b/examples/quickcontrols2/chattutorial/chapter5-styling/qtquickcontrols2.conf
deleted file mode 100644
index e338c804..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/qtquickcontrols2.conf
+++ /dev/null
@@ -1,7 +0,0 @@
-[material]
-Primary=Indigo
-Accent=Indigo
-Theme=Dark
-
-[Universal]
-Theme=Dark
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.cpp b/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.cpp
deleted file mode 100644
index 6203ebec..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "sqlcontactmodel.h"
-
-#include <QDebug>
-#include <QSqlError>
-#include <QSqlQuery>
-
-static void createTable()
-{
- if (QSqlDatabase::database().tables().contains(QStringLiteral("Contacts"))) {
- // The table already exists; we don't need to do anything.
- return;
- }
-
- QSqlQuery query;
- if (!query.exec(
- "CREATE TABLE IF NOT EXISTS 'Contacts' ("
- " 'name' TEXT NOT NULL,"
- " PRIMARY KEY(name)"
- ")")) {
- qFatal("Failed to query database: %s", qPrintable(query.lastError().text()));
- }
-
- query.exec("INSERT INTO Contacts VALUES('Albert Einstein')");
- query.exec("INSERT INTO Contacts VALUES('Ernest Hemingway')");
- query.exec("INSERT INTO Contacts VALUES('Hans Gude')");
-}
-
-SqlContactModel::SqlContactModel(QObject *parent) :
- QSqlQueryModel(parent)
-{
- createTable();
-
- QSqlQuery query;
- if (!query.exec("SELECT * FROM Contacts"))
- qFatal("Contacts SELECT query failed: %s", qPrintable(query.lastError().text()));
-
- setQuery(query);
- if (lastError().isValid())
- qFatal("Cannot set query on SqlContactModel: %s", qPrintable(lastError().text()));
-}
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h b/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h
deleted file mode 100644
index fdbe5f1e..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlcontactmodel.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef SQLCONTACTMODEL_H
-#define SQLCONTACTMODEL_H
-
-#include <QSqlQueryModel>
-
-class SqlContactModel : public QSqlQueryModel
-{
-public:
- SqlContactModel(QObject *parent = 0);
-};
-
-#endif // SQLCONTACTMODEL_H
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.cpp b/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.cpp
deleted file mode 100644
index 99526e81..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.cpp
+++ /dev/null
@@ -1,154 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "sqlconversationmodel.h"
-
-#include <QDateTime>
-#include <QDebug>
-#include <QSqlError>
-#include <QSqlRecord>
-#include <QSqlQuery>
-
-static const char *conversationsTableName = "Conversations";
-
-static void createTable()
-{
- if (QSqlDatabase::database().tables().contains(conversationsTableName)) {
- // The table already exists; we don't need to do anything.
- return;
- }
-
- QSqlQuery query;
- if (!query.exec(
- "CREATE TABLE IF NOT EXISTS 'Conversations' ("
- "'author' TEXT NOT NULL,"
- "'recipient' TEXT NOT NULL,"
- "'timestamp' TEXT NOT NULL,"
- "'message' TEXT NOT NULL,"
- "FOREIGN KEY('author') REFERENCES Contacts ( name ),"
- "FOREIGN KEY('recipient') REFERENCES Contacts ( name )"
- ")")) {
- qFatal("Failed to query database: %s", qPrintable(query.lastError().text()));
- }
-
- query.exec("INSERT INTO Conversations VALUES('Me', 'Ernest Hemingway', '2016-01-07T14:36:06', 'Hello!')");
- query.exec("INSERT INTO Conversations VALUES('Ernest Hemingway', 'Me', '2016-01-07T14:36:16', 'Good afternoon.')");
- query.exec("INSERT INTO Conversations VALUES('Me', 'Albert Einstein', '2016-01-01T11:24:53', 'Hi!')");
- query.exec("INSERT INTO Conversations VALUES('Albert Einstein', 'Me', '2016-01-07T14:36:16', 'Good morning.')");
- query.exec("INSERT INTO Conversations VALUES('Hans Gude', 'Me', '2015-11-20T06:30:02', 'God morgen. Har du fått mitt maleri?')");
- query.exec("INSERT INTO Conversations VALUES('Me', 'Hans Gude', '2015-11-20T08:21:03', 'God morgen, Hans. Ja, det er veldig fint. Tusen takk! "
- "Hvor mange timer har du brukt på den?')");
-}
-
-SqlConversationModel::SqlConversationModel(QObject *parent) :
- QSqlTableModel(parent)
-{
- createTable();
- setTable(conversationsTableName);
- setSort(2, Qt::DescendingOrder);
- // Ensures that the model is sorted correctly after submitting a new row.
- setEditStrategy(QSqlTableModel::OnManualSubmit);
-}
-
-QString SqlConversationModel::recipient() const
-{
- return m_recipient;
-}
-
-void SqlConversationModel::setRecipient(const QString &recipient)
-{
- if (recipient == m_recipient)
- return;
-
- m_recipient = recipient;
-
- const QString filterString = QString::fromLatin1(
- "(recipient = '%1' AND author = 'Me') OR (recipient = 'Me' AND author='%1')").arg(m_recipient);
- setFilter(filterString);
- select();
-
- emit recipientChanged();
-}
-
-QVariant SqlConversationModel::data(const QModelIndex &index, int role) const
-{
- if (role < Qt::UserRole)
- return QSqlTableModel::data(index, role);
-
- const QSqlRecord sqlRecord = record(index.row());
- return sqlRecord.value(role - Qt::UserRole);
-}
-
-QHash<int, QByteArray> SqlConversationModel::roleNames() const
-{
- QHash<int, QByteArray> names;
- names[Qt::UserRole] = "author";
- names[Qt::UserRole + 1] = "recipient";
- names[Qt::UserRole + 2] = "timestamp";
- names[Qt::UserRole + 3] = "message";
- return names;
-}
-
-void SqlConversationModel::sendMessage(const QString &recipient, const QString &message)
-{
- const QString timestamp = QDateTime::currentDateTime().toString(Qt::ISODate);
-
- QSqlRecord newRecord = record();
- newRecord.setValue("author", "Me");
- newRecord.setValue("recipient", recipient);
- newRecord.setValue("timestamp", timestamp);
- newRecord.setValue("message", message);
- if (!insertRecord(rowCount(), newRecord)) {
- qWarning() << "Failed to send message:" << lastError().text();
- return;
- }
-
- submitAll();
-}
diff --git a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h b/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h
deleted file mode 100644
index 14ab12e2..00000000
--- a/examples/quickcontrols2/chattutorial/chapter5-styling/sqlconversationmodel.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef SQLCONVERSATIONMODEL_H
-#define SQLCONVERSATIONMODEL_H
-
-#include <QSqlTableModel>
-
-class SqlConversationModel : public QSqlTableModel
-{
- Q_OBJECT
- Q_PROPERTY(QString recipient READ recipient WRITE setRecipient NOTIFY recipientChanged)
-
-public:
- SqlConversationModel(QObject *parent = 0);
-
- QString recipient() const;
- void setRecipient(const QString &recipient);
-
- QVariant data(const QModelIndex &index, int role) const override;
- QHash<int, QByteArray> roleNames() const override;
-
- Q_INVOKABLE void sendMessage(const QString &recipient, const QString &message);
-
-signals:
- void recipientChanged();
-
-private:
- QString m_recipient;
-};
-
-#endif // SQLCONVERSATIONMODEL_H
diff --git a/examples/quickcontrols2/chattutorial/chattutorial.pro b/examples/quickcontrols2/chattutorial/chattutorial.pro
deleted file mode 100644
index 2f38254e..00000000
--- a/examples/quickcontrols2/chattutorial/chattutorial.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-TEMPLATE = subdirs
-
-SUBDIRS += \
- chapter1-settingup \
- chapter2-lists \
- chapter3-navigation \
- chapter4-models \
- chapter5-styling
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter1.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter1.png
deleted file mode 100644
index ee03535f..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter1.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter2-listview-header.gif b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter2-listview-header.gif
deleted file mode 100644
index 17096519..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter2-listview-header.gif
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter2.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter2.png
deleted file mode 100644
index c2c49e3e..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter2.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3-listview-header.gif b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3-listview-header.gif
deleted file mode 100644
index 07eb93b1..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3-listview-header.gif
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3-view-margins.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3-view-margins.png
deleted file mode 100644
index 9ca0fe69..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3-view-margins.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3.gif b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3.gif
deleted file mode 100644
index 1763b1f3..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter3.gif
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4-long-message.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4-long-message.png
deleted file mode 100644
index acbe1886..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4-long-message.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4-message-timestamp.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4-message-timestamp.png
deleted file mode 100644
index e4a578cc..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4-message-timestamp.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4.gif b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4.gif
deleted file mode 100644
index dd47c4cb..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter4.gif
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material-dark.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material-dark.png
deleted file mode 100644
index 9a3d00bd..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material-test.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material-test.png
deleted file mode 100644
index 501ea772..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material-test.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material.png
deleted file mode 100644
index 57782b58..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-material.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-universal-dark.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-universal-dark.png
deleted file mode 100644
index 22183c82..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-universal-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-universal.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-universal.png
deleted file mode 100644
index 327076d3..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-contacts-universal.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material-dark.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material-dark.png
deleted file mode 100644
index 19a7b685..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material-test.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material-test.png
deleted file mode 100644
index 4cc4caa3..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material-test.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material.png
deleted file mode 100644
index bdc9bcd3..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-material.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-universal-dark.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-universal-dark.png
deleted file mode 100644
index f10d6cb6..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-universal-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-universal.png b/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-universal.png
deleted file mode 100644
index a6913c3c..00000000
--- a/examples/quickcontrols2/chattutorial/doc/images/qtquickcontrols2-chattutorial-chapter5-conversations-universal.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/doc/src/qtquickcontrols2-chattutorial.qdoc b/examples/quickcontrols2/chattutorial/doc/src/qtquickcontrols2-chattutorial.qdoc
deleted file mode 100644
index 0da8f7c5..00000000
--- a/examples/quickcontrols2/chattutorial/doc/src/qtquickcontrols2-chattutorial.qdoc
+++ /dev/null
@@ -1,896 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
-\example chattutorial
-\keyword Qt Quick Controls - Chat Tutorial
-\title Qt Quick Controls - Chat Tutorial
-\keyword Qt Quick Controls 2 - Chat Tutorial
-\brief Tutorial about writing a basic chat client using Qt Quick Controls.
-\ingroup qtquickcontrols2-examples
-
-This tutorial shows how to write a basic chat application using Qt Quick
-Controls. It will also explain how to integrate an SQL database into a Qt
-application.
-
-\section1 Chapter 1: Setting Up
-
-When setting up a new project, it's easiest to use
-\l {Qt Creator Manual}{Qt Creator}. For this project, we chose the
-\l {Qt Creator: Creating Qt Quick Projects}{Qt Quick application} template, which creates a
-basic "Hello World" application with the following files:
-
-\list
-\li \c MainForm.ui.qml - Defines the default UI
-\li \c main.qml - Embeds the default UI in a Window
-\li \c qml.qrc - Lists the \c .qml files that are built into the binary
-\li \c main.cpp - Loads \c main.qml
-\li \c chattutorial.pro - Provides the qmake configuration
-\endlist
-
-\note Delete the \c MainForm.ui.qml from the project as we will
-not use it in this tutorial.
-
-\section2 main.cpp
-
-The default code in \c main.cpp has two includes:
-
-\quotefromfile chattutorial/chapter1-settingup/main.cpp
-\skipto include
-\printline include
-\printline include
-
-The first gives us access to QGuiApplication. All Qt applications require
-an application object, but the precise type depends on what the application
-does. QCoreApplication is sufficient for non-graphical applications.
-QGuiApplication is sufficient for graphical applications that do not use
-\l {Qt Widgets}, while QApplication is required for those that do.
-
-The second include makes QQmlApplicationEngine available, along with
-some useful functions required for making C++ types accessible from QML.
-
-Within \c main(), we set up the application object and QML engine:
-
-\skipto main
-\printuntil }
-
-It begins with enabling \l {High DPI Displays}{high DPI scaling}, which is not
-part of the default code. It is necessary to do so before the application
-object is constructed.
-
-After that's done, we construct the application object, passing any application
-arguments provided by the user.
-
-Next, the QML engine is created. \l QQmlApplicationEngine is a convenient
-wrapper over QQmlEngine, providing the \l {QQmlApplicationEngine::load}{load()}
-function to easily load QML for an application. It also adds some convenience
-for using \l {Using File Selectors with Qt Quick Controls}{file selectors}.
-
-Once we've set up things in C++, we can move on to the user interface in QML.
-
-\section2 main.qml
-
-Let's modify the default QML code to suit our needs.
-
-\quotefromfile chattutorial/chapter1-settingup/main.qml
-\skipto import
-\printuntil import QtQuick.Controls 2.12
-
-First, import the \l {Qt Quick} module. This gives us
-access to graphical primitives such as \l Item, \l Rectangle, \l Text, and so
-on.
-For the full list of types, see the \l {Qt Quick QML Types} documentation.
-
-Next, import the Qt Quick Controls module. Amongst other things, this
-provides access to \l ApplicationWindow, which will replace the existing
-root type, \c Window:
-
-\skipto ApplicationWindow
-\printuntil visible: true
-\dots
-\skipto }
-\skipuntil }
-\printuntil }
-
-ApplicationWindow is a \l Window with some added convenience for creating a
-\l {ApplicationWindow::}{header} and a \l {ApplicationWindow::}{footer}.
-It also provides the foundation for \l {Popup}{popups} and supports some
-basic styling, such as the background \l {Window::}{color}.
-
-There are three properties that are almost always set when using
-ApplicationWindow: \l {Window::}{width}, \l {Window::}{height}, and
-\l {Window::}{visible}.
-Once we've set these, we have a properly sized, empty window ready to be
-filled with content.
-
-\note The \c title property from the default code is removed.
-
-The first \e "screen" in our application will be a list of contacts. It would
-be nice to have some text at the top of each screen that describes its purpose.
-The header and footer properties of ApplicationWindow could work in
-this situation. They have some characteristics that make them ideal for
-items that should be displayed on every screen of an application:
-
-\list
-\li They are anchored to the top and bottom of the window, respectively.
-\li They fill the width of the window.
-\endlist
-
-However, when the contents of the header and footer varies depending on
-which screen the user is viewing, it is much easier to use \l Page.
-For now, we'll just add one page, but in the next chapter, we'll demonstrate
-how to navigate between several pages.
-
-\quotefromfile chattutorial/chapter1-settingup/main.qml
-\skipto Page
-\printuntil }
-\printuntil }
-
-We replace the default \c{MainForm {...}} code block with a Page, which is
-sized to occupy all the space on the window using the \l {Item::}{anchors.fill}
-property.
-
-Then, we assign a \l Label to its \l {Page::}{header} property. Label extends
-the primitive \l Text item from the Qt Quick module by adding
-\l{Styling Qt Quick Controls}{styling} and \l {Control::}{font} inheritance.
-This means that a Label can look different depending on which style is in use,
-and can also propagate its pixel size to its children.
-
-We want some distance between the top of the application window and the text,
-so we set the \l {Text::padding}{padding} property. This allocates extra
-space on each side of the label (within its bounds). We can also explicitly set
-the \l {Text::}{topPadding} and \l {Text::}{bottomPadding} properties instead.
-
-We set the text of the label using the \c qsTr() function, which ensures that
-the text can be translated by \l {Writing Source Code for Translation}{Qt's
-translation system}. It's a good practice to follow for text that is visible to
-the end users of your application.
-
-By default, text is vertically aligned to the top of its bounds, while the
-horizontal alignment depends on the natural direction of the text; for example,
-text that is read from left to right will be aligned to the left. If we
-used these defaults, our text would be at the top-left corner of the window.
-This is not desirable for a header, so we align the text to the center of its
-bounds, both horizontally and vertically.
-
-\section2 The Project File
-
-The \c .pro or \l {Creating Project Files}{project} file contains all of the
-information needed by \l {qmake Manual}{qmake} to generate a Makefile, which is
-then used to compile and link the application.
-
-\quotefromfile chattutorial/chapter1-settingup/chapter1-settingup.pro
-\printline TEMPLATE
-
-The first line tells \c qmake which kind of project this is. We're building an
-application, so we use the \c app template.
-
-\printline QT
-
-The next line declares the Qt libraries that we want to use from C++.
-
-\printline CONFIG
-
-This line states that a C++11 compatible compiler is required to build the
-project.
-
-\printline SOURCES
-
-The \c SOURCES variable lists all of the source files that should be compiled.
-A similar variable, \c HEADERS, is available for header files.
-
-\printline RESOURCES
-
-The next line tells \c qmake that we have a collection of
-\l {The Qt Resource System}{resources} that should be built into the
-executable.
-
-\printline target.path
-
-This line replaces deployment settings that come with the default project file.
-It determines where the example is copied, on running "\c{make install}".
-
-Now we can build and run the application:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter1.png
-
-\noautolist
-\generatelist examplefiles .*chapter1.*
-
-\section1 Chapter 2: Lists
-
-In this chapter, we'll explain how to create a list of interactive items using
-\l ListView and \l ItemDelegate.
-
-ListView comes from the Qt Quick module, and displays a list of items
-populated from a \l {Models and Views in Qt Quick}{model}. ItemDelegate comes from
-the Qt Quick Controls module, and provides a standard view item for use in views
-and controls such as ListView and \l ComboBox. For example, each ItemDelegate
-can display text, be checked on and off, and react to mouse clicks.
-
-Here is our ListView:
-
-\quotefromfile chattutorial/chapter2-lists/main.qml
-\dots 8
-\codeline
-\skipto ListView
-\printuntil }
-\printuntil }
-\printuntil }
-\codeline
-\dots 8
-
-\section2 Sizing and Positioning
-
-The first thing we do is set a size for the view. It should fill the available
-space on the page, so we use \l {Item::}{anchors.fill}. Note that
-Page ensures that its header and footer have enough of their own space
-reserved, so the view in this case will sit below the header, for example.
-
-Next, we set \l {Flickable::leftMargin}{margins} around the ListView to put
-some distance between it and the edges of the window. The margin properties
-reserve space within the bounds of the view, which means that the empty areas
-can still be \e "flicked" by the user.
-
-The items should be nicely spaced out within the view, so the
-\l {ListView::}{spacing} property is set to \c 20.
-
-\section2 Model
-
-In order to quickly populate the view with some items, we've used a JavaScript
-array as the model. One of the greatest strengths of QML is its ability to
-make prototyping an application extremely quick, and this is an example of
-that. It's also possible to simply assign a \l {Integers as Models}{number} to
-the model property to indicate how many items you need. For example, if you
-assign \c 10 to the \c model property, each item's display text will be a
-number from \c 0 to \c 9.
-
-However, once the application gets past the prototype stage, it quickly becomes
-necessary to use some real data. For this, it's best to use a proper C++ model
-by \l {QAbstractItemModel}{subclassing QAbstractItemModel}.
-
-\section2 Delegate
-
-On to the \l {ListView::}{delegate}. We assign the corresponding text from the
-model to the \l {AbstractButton::text}{text} property of ItemDelegate. The exact
-manner in which the data from the model is made available to each delegate
-depends on the type of model used. See \l {Models and Views in Qt Quick} for
-more information.
-
-In our application, the width of each item in the view should be the same
-as the width of the view. This ensures that the user has a lot of room with
-which to select a contact from the list, which is an important factor on
-devices with small touch screens, like mobile phones. However, the width of the
-view includes our \c 48 pixel margins, so we must account for that in our
-assignment to the width property.
-
-Next, we define an \l Image. This will display a picture of the user's contact.
-The image will be \c 40 pixels wide and \c 40 pixels high. We'll base the
-height of the delegate on the image's height, so that we don't have any empty
-vertical space.
-
-\borderedimage qtquickcontrols2-chattutorial-chapter2.png
-
-\generatelist examplefiles .*(chapter2|shared).*
-\generatelist exampleimages .*shared.*(Einstein|Hemingway|Gude)\.png
-
-\section1 Chapter 3: Navigation
-
-In this chapter, you'll learn how to use \l StackView to navigate between pages
-in an application. Here's the revised \c main.qml:
-
-\quotefromfile chattutorial/chapter3-navigation/main.qml
-\skipto import
-\printuntil }
-\printuntil }
-\printuntil }
-
-\section2 StackView
-
-As its name suggests, StackView provides stack-based navigation. The last item
-to be \e "pushed" onto the stack is the first one to be removed, and the
-top-most item is always the one that is visible.
-
-In the same manner as we did with Page, we tell the StackView to fill the
-application window. The only thing left to do after that is to give it an item
-to display, via \l {StackView::}{initialItem}. StackView accepts
-\l {Item}{items}, \l {Component}{components} and \l [QML]{url}{URLs}.
-
-You'll notice that we moved the code for the contact list into
-\c ContactPage.qml. It's a good idea to do this as soon as you have a general
-idea of which screens your application will contain. Doing so not only makes
-your code easier to read, but ensures that items are only instantiated from
-a given component when completely necessary, reducing memory usage.
-
-\note Qt Creator provides several convenient \l {http://doc.qt.io/qtcreator/creator-editor-refactoring.html#refactoring-qml-code}{refactoring options for QML},
-one of which allows you to move a block of code into a separate file
- (\c {Alt + Enter > Move Component into Separate File}).
-
-Another thing to consider when using ListView is whether to refer to it by
-\c id, or use the attached \l {ListView::view}{ListView.view}
-property. The best approach depends on a few different factors. Giving the
-view an id will result in shorter and more efficient binding expressions, as
-the attached property has a very small amount of overhead. However, if you plan
-on reusing the delegate in other views, it is better to use the attached
-properties to avoid tying the delegate to a particular view. For example, using
-the attached properties, the \c width assignment in our delegate becomes:
-
-\code
-width: ListView.view.width - ListView.view.leftMargin - ListView.view.rightMargin
-\endcode
-
-In chapter 2, we added a ListView below the header. If you run the application
-for that chapter, you'll see that the contents of the view can be scrolled over
-the top of the header:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter2-listview-header.gif
-
-This is not that nice, especially if the text in the
-delegates is long enough that it reaches the text in the header. What we
-ideally want to do is to have a solid block of color under the header text, but
-\e {above} the view. This ensures that the listview contents can't visually
-interfere with the header contents. Note that it's also possible to achieve
-this by setting the \l {Item::}{clip} property of the view to \c true, but
-doing so \l {Clipping}{can affect performance}.
-
-\l ToolBar is the right tool for this job. It is a container of both
-application-wide and context-sensitive actions and controls, such as navigation
-buttons and search fields. Best of all, it has a background color that, as
-usual, comes from the application style. Here it is in action:
-
-\quotefromfile chattutorial/chapter3-navigation/ContactPage.qml
-\skipto header
-\printuntil }
-\printuntil }
-
-\borderedimage qtquickcontrols2-chattutorial-chapter3-listview-header.gif
-
-It has no layout of its own, so we center the label within it ourselves.
-
-The rest of the code is the same as it was in chapter 2, except that we've
-taken advantage of the \l {AbstractButton::}{clicked} signal to push the next
-page onto the stackview:
-
-\skipto onClicked
-\printline onClicked
-
-When pushing a \l Component or \l [QML] url onto StackView, it's often
-necessary to initialize the (eventually) instantiated item with some variables.
-StackView's \l {StackView::push}{push()} function accounts for this, by taking a JavaScript object
-as the second argument. We use this to provide the next page with a contact's
-name, which it then uses to display the relevant conversation. Note the
-\c {root.StackView.view.push} syntax; this is necessary because of how
-\l {A Note About Accessing Attached Properties and Signal Handlers}
-{attached properties} work.
-
-Let's step through \c ConversationPage.qml, beginning with the imports:
-
-\quotefromfile chattutorial/chapter3-navigation/ConversationPage.qml
-\skipto import
-\printline import
-\printline import
-\printline import
-
-These are the same as before, except for the addition of the \c QtQuick.Layouts
-import, which we'll cover shortly.
-
-\skipto Page
-\printuntil }
-\printuntil }
-\printuntil }
-\dots 4
-
-The root item of this component is another Page, which has a custom property
-called \c inConversationWith. For now, this property will simply determine what
-the label in the header displays. Later on, we'll use it in the SQL query that
-populates the list of messages in the conversation.
-
-To allow the user to go back to the Contact page, we add a \l ToolButton that
-calls \l {StackView::pop}{pop()} when clicked. A \l ToolButton is functionally
-similar to \l Button, but provides a look that is more suitable within a
-ToolBar.
-
-There are two ways of laying out items in QML: \l {Item Positioners}
-and \l {Qt Quick Layouts}. Item positioners (\l Row, \l Column, and so on) are
-useful for situations where the size of items is known or fixed, and all that
-is required is to neatly position them in a certain formation. The layouts in
-Qt Quick Layouts can both position and resize items, making them well suited
-for resizable user interfaces. Below, we use \l ColumnLayout to vertically
-lay out a ListView and a \l Pane:
-
-\skipto ColumnLayout
-\printto Layout.margins
-\codeline
-\dots 12
-\codeline
-\skipuntil ScrollBar
-\printline }
-\codeline
-\dots 8
-\codeline
-\printuntil Layout.fillWidth: true
-\dots 12
-\skipuntil }
-\skipuntil }
-\skipuntil }
-\skipuntil }
-\printline }
-
-Pane is basically a rectangle whose color comes from the application's style.
-It is similar to \l Frame, with the only difference being that it has no stroke
-around its border.
-
-Items that are direct children of a layout have various
-\l {Layout}{attached properties} available to them. We use
-\l {Layout::fillWidth}{Layout.fillWidth} and
-\l {Layout::fillHeight}{Layout.fillHeight} on the ListView to ensure
-that it takes as much space within the ColumnLayout as it can. The
-same is done for the Pane. As ColumnLayout is a vertical layout, there
-aren't any items to the left or right of each child, so this will result in
-each item consuming the entire width of the layout.
-
-On the other hand, the \l {Layout::fillHeight}{Layout.fillHeight} statement in
-the ListView will enable it to occupy the remaining space that is left after
-accommodating the Pane.
-
-Let's look at the listview in detail:
-
-\quotefromfile chattutorial/chapter3-navigation/ConversationPage.qml
-\skipto ListView
-\printuntil ScrollBar
-\printuntil }
-
-After filling the width and height of its parent, we also set some margins on
-the view. This gives us a nice alignment with the placeholder text in the
-"compose message" field:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter3-view-margins.png
-
-Next, we set \l {ListView::}{displayMarginBeginning} and \l
-{ListView::}{displayMarginEnd}. These properties ensure that the delegates
-outside the bounds of the view do not disappear while scrolling at the edges of
-the view. It's easiest to understand this by commenting out the properties and
-seeing what happens when scrolling the view.
-
-We then flip the vertical direction of the view, so that first items are at the
-bottom. The delegates are spaced out by 12 pixels, and a \e "dummy" model is
-assigned for testing purposes, until we implement the real model in chapter 4.
-
-Within the delegate, we declare a \l Row as the root item, as we want the
-avatar to be followed by the message contents, as shown in the image above.
-
-Messages sent by the user should be distinguished from those sent by a contact.
-For now, we set a dummy property \c sentByMe, which simply uses the index
-of the delegate to alternate between different authors. Using this property,
-we distinguish between different authors in three ways:
-
-\list
-\li Messages sent by the user are aligned to the right side of the screen
-by setting \c anchors.right to \c parent.right.
-
-\li By setting the \c visible property of the avatar (which is simply a
-Rectangle for now) based on \c sentByMe, we only show it if the message was
-sent by a contact.
-
-\li We change the color of the rectangle depending on the author. Since we
-do not want to display dark text on a dark background, and vice versa, we also
-set the text color depending on who the author is. In chapter 5, we'll see how
-styling takes care of matters like this for us.
-\endlist
-
-At the bottom of the screen, we place a \l TextArea item to allow multi-line
-text input, and a button to send the message. We use Pane to cover the area
-under these two items, in the same way that we use ToolBar to prevent the
-contents of the listview from interfering with the page header:
-
-\skipto Pane
-\printuntil }
-\printuntil }
-\printuntil }
-\printuntil }
-
-The TextArea should fill the available width of the screen. We assign some
-placeholder text to provide a visual cue to the user as to where they should
-begin typing. The text within the input area is wrapped to ensure that it
-does not go outside of the screen.
-
-Finally, the button is only enabled when there is actually a message to send.
-
-\borderedimage qtquickcontrols2-chattutorial-chapter3.gif
-
-\generatelist examplefiles .*(chapter3|shared).*
-\generatelist exampleimages .*shared.*(Einstein|Hemingway|Gude)\.png
-
-\section1 Chapter 4: Models
-
-In chapter 4, we'll take you through the process of creating both read-only and
-read-write SQL models in C++ and exposing them to QML to populate views.
-
-\section2 QSqlQueryModel
-
-In order to keep the tutorial simple, we've chosen to make the list of user
-contacts non-editable. \l QSqlQueryModel is the logical choice for this
-purpose, as it provides a read-only data model for SQL result sets.
-
-Let's take a look at our \c SqlContactModel class that derives from
-QSqlQueryModel:
-
-\quotefromfile chattutorial/chapter4-models/sqlcontactmodel.h
-\skipto #include
-\printuntil };
-
-There's not much going on here, so let's move on to the \c .cpp file:
-
-\quotefromfile chattutorial/chapter4-models/sqlcontactmodel.cpp
-\skipto #include
-\printuntil }
-\printuntil }
-\printuntil }
-
-We include the header file of our class and those that we require from Qt. We
-then define a static function named \c createTable() that we'll use to create
-the SQL table (if it doesn't already exist), and then populate it with some
-dummy contacts.
-
-The call to \l {QSqlDatabase::database}{database()} might look a little bit
-confusing because we have not set up a specific database yet. If no connection
-name is passed to this function, it will return a \e {"default connection"},
-whose creation we will cover soon.
-
-\skipto SqlContactModel
-\printuntil }
-
-In the constructor, we call \c createTable(). We then construct a query that
-will be used to populate the model. In this case, we are simply interested in
-all rows of the \c Contacts table.
-
-\section2 QSqlTableModel
-
-\c SqlConversationModel is more complex:
-
-\quotefromfile chattutorial/chapter4-models/sqlconversationmodel.h
-\skipto #include
-\printuntil };
-
-We use both the \c Q_PROPERTY and \c Q_INVOKABLE macros, and therefore we must
-let \l {Using the Meta-Object Compiler (moc)}{moc} know by using the \c
-Q_OBJECT macro.
-
-The \c recipient property will be set from QML to let the model know which
-conversation it should retrieve messages for.
-
-We override the \l {QSqlTableModel::data}{data()} and
-\l {QAbstractItemModel::}{roleNames()} functions so that we can use our
-custom roles in QML.
-
-We also define the \c sendMessage() function that we want to call from
-QML, hence the \c Q_INVOKABLE macro.
-
-Let's take a look at the \c .cpp file:
-
-\quotefromfile chattutorial/chapter4-models/sqlconversationmodel.cpp
-\skipto #include
-\printuntil }
-\printuntil }
-\printuntil }
-
-This is very similar to \c sqlcontactmodel.cpp, with the exception that we are
-now operating on the \c Conversations table. We also define
-\c conversationsTableName as a static const variable, as we use it in a couple
-of places throughout the file.
-
-\skipto SqlConversationModel
-\printuntil }
-
-As with \c SqlContactModel, the first thing that we do in the constructor is
-create the table. We tell QSqlTableModel the name of the table we'll be using
-via the \l {QSqlTableModel::setTable}{setTable()} function. To ensure that the
-latest messages in the conversation are shown first, we sort the query results
-by the \c timestamp field in descending order. This goes hand in hand with
-setting ListView's \l {ListView::}{verticalLayoutDirection} property to
-\c ListView.BottomToTop (which we covered in chapter 3).
-
-\skipto ::recipient(
-\printuntil }
-\printuntil }
-
-In \c setRecipient(), we set a filter over the results returned from
-the database.
-
-\skipto ::data(
-\printuntil }
-
-The \c data() function falls back to QSqlTableModel's implementation if the
-role is not a custom user role. If the role is a user role, we can subtract
-Qt::UserRole from it to get the index of that field and then use that to find
-the value that we need to return.
-
-\skipto ::roleNames(
-\printuntil }
-
-In \c roleNames(), we return a mapping of our custom role values to role names.
-This enables us to use these roles in QML. It can be useful to declare an enum
-to hold all of the role values, but since we don't refer to any specific value
-in code outside of this function, we don't bother.
-
-\skipto ::sendMessage(
-\printuntil }
-
-The \c sendMessage() function uses the given \c recipient and a \c message to
-insert a new record into the database. Due to our usage
-of \l QSqlTableModel::OnManualSubmit, we must manually call
-\l {QSqlTableModel::submitAll}{submitAll()}.
-
-\section2 Connecting to the Database and Registering Types With QML
-
-Now that we've established the model classes, let's take a look at \c main.cpp:
-
-\quotefromfile chattutorial/chapter4-models/main.cpp
-\skipto #include
-\printuntil return app.exec();
-\printuntil }
-
-\c connectToDatabase() creates the connection to the SQLite database, creating
-the actual file if it doesn't already exist.
-
-Within \c main(), we call \l {qmlRegisterType}{qmlRegisterType()} to
-register our models as types within QML.
-
-\section2 Using the Models in QML
-
-Now that we have the models available as QML types, there are some minor
-changes to be done to \c ContactPage.qml. To be able to use the types,
-we must first import them using the URI we set in \c main.cpp:
-
-\quotefromfile chattutorial/chapter4-models/ContactPage.qml
-\skipto import io.qt.examples.chattutorial 1.0
-\printline import io.qt.examples.chattutorial 1.0
-
-We then replace the dummy model with the proper one:
-
-\skipto model: SqlContactModel {}
-\printline model: SqlContactModel {}
-
-Within the delegate, we use a different syntax for accessing the model data:
-
-\skipto text: model.display
-\printline text: model.display
-
-In \c ConversationPage.qml, we add the same \c chattutorial import, and replace
-the dummy model:
-
-\quotefromfile chattutorial/chapter4-models/ConversationPage.qml
-\skipto model: SqlConversationModel {
-\printuntil }
-
-Within the model, we set the \c recipient property to the name of the contact
-for which the page is being displayed.
-
-The root delegate item changes from a Row to a Column, to accommodate the
-timestamp that we want to display below every message:
-
-\skipto delegate: Column {
-\printuntil Label {
-\printuntil }
-\printuntil }
-\printuntil }
-\printuntil }
-\printuntil }
-
-\borderedimage qtquickcontrols2-chattutorial-chapter4-message-timestamp.png
-
-Now that we have a proper model, we can use its \c recipient role in the
-expression for the \c sentByMe property.
-
-The Rectangle that was used for the avatar has been converted into an Image.
-The image has its own implicit size, so we don't need to specify it explicitly.
-As before, we only show the avatar when the author isn't the user, except this
-time we set the \c source of the image to an empty URL instead of using the
-\c visible property.
-
-We want each message background to be slightly wider (12 pixels each side) than
-its text. However, if it's too long, we want to limit its width to the edge
-of the listview, hence the usage of \c Math.min(). When the message wasn't sent
-by us, an avatar will always come before it, so we account for that by
-subtracting the width of the avatar and the row spacing.
-
-For example, in the image above, the implicit width of the message text is the
-smaller value. However, in the image below, the message text is quite long, so
-the smaller value (the width of the view) is chosen, ensuring that the text
-stops at the opposite edge of the screen:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter4-long-message.png
-
-In order to display the timestamp for each message that we discussed earlier,
-we use a Label. The date and time are formatted with
-\l {QtQml::Qt::formatDateTime}{Qt.formatDateTime()}, using a custom format.
-
-The \e "send" button must now react to being clicked:
-
-\skipto Button
-\printuntil }
-\printuntil }
-
-First, we call the invokable \c sendMessage() function of the model, which
-inserts a new row into the Conversations database table. Then, we clear the
-text field to make way for future input.
-
-\borderedimage qtquickcontrols2-chattutorial-chapter4.gif
-
-\generatelist examplefiles .*(chapter4|shared).*
-\generatelist exampleimages
-
-\section1 Chapter 5: Styling
-
-Styles in Qt Quick Controls are designed to work on any platform. In this
-chapter, we'll do some minor visual tweaks to make sure our application
-looks good when run with the \l {Default Style}{Default},
-\l {Material Style}{Material}, and \l {Universal Style}{Universal} styles.
-
-So far, we've just been testing the application with the Default style. If we
-run it with the \l {Material Style}, for example, we'll immediately see some issues.
-Here is the Contacts page:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter5-contacts-material-test.png
-
-The header text is black on a dark blue background, which is very difficult to
-read. The same thing occurs with the Conversations page:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter5-conversations-material-test.png
-
-The solution is to tell the toolbar that it should use the \e "Dark" theme, so
-that this information is propagated to its children, allowing them to switch
-their text color to something lighter. The simplest way of doing so is to
-import the Material style directly and use the Material attached property:
-
-\code
- import QtQuick.Controls.Material 2.12
-
- // ...
-
- header: ToolBar {
- Material.theme: Material.Dark
-
- // ...
- }
-\endcode
-
-However, this brings with it a hard dependency to the Material style; the
-Material style plugin \e must be deployed with the application, even if the
-target device doesn't use it, otherwise the QML engine will fail to find the
-import.
-
-Instead, it is better to rely on Qt Quick Controls's built-in support for
-\l {Using File Selectors with Qt Quick Controls}{style-based file selectors}.
-To do this, we must move the ToolBar out into its own file. We'll call it
-\c ChatToolBar.qml. This will be the \e "default" version of the file, which
-means that it will be used when the \l {Default Style}{Default style} is in
-use. Here's the new file:
-
-\quotefromfile chattutorial/chapter5-styling/ChatToolBar.qml
-\skipto import
-\printuntil }
-
-As we only use the ToolBar type within this file, we only need the
-Qt Quick Controls import. The code itself has not changed from how it was
-in \c ContactPage.qml, which is how it should be; for the default version
-of the file, nothing needs to be different.
-
-Back in \c ContactPage.qml, we update the code to use the new type:
-
-\quotefromfile chattutorial/chapter5-styling/ContactPage.qml
-\skipto ToolBar
-\printuntil }
-\printuntil }
-
-Now we need to add the Material version of the toolbar. File selectors expect
-variants of a file to be in appropriately named directories that exist
-alongside the default version of the file. This means that we need to add a
-folder named "+material" in the same directory that ChatToolBar.qml is in:
-the root folder. The "+" is required by \l QFileSelector as a way of ensuring
-that the selection feature is not accidentally triggered.
-
-Here's \c +material/ChatToolBar.qml:
-
-\quotefromfile chattutorial/chapter5-styling/+material/ChatToolBar.qml
-\skipto import
-\printuntil }
-
-We'll make the same changes to \c ConversationPage.qml:
-
-\quotefromfile chattutorial/chapter5-styling/ConversationPage.qml
-\skipto header: ChatToolBar
-\printuntil }
-\printuntil }
-\printuntil }
-
-Now both pages look correct:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter5-contacts-material.png
-\borderedimage qtquickcontrols2-chattutorial-chapter5-conversations-material.png
-
-Let's try out the Universal style:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter5-contacts-universal.png
-\borderedimage qtquickcontrols2-chattutorial-chapter5-conversations-universal.png
-
-No issues there. For a relatively simple application such as this one, there
-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 qtquickcontrols2.conf that tells it to use its dark theme:
-
-\code
-[material]
-Primary=Indigo
-Accent=Indigo
-Theme=Dark
-\endcode
-
-Once this is done, build and run the application. This is what you should see:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter5-contacts-material-dark.png
-\borderedimage qtquickcontrols2-chattutorial-chapter5-conversations-material-dark.png
-
-Both pages look fine. Now add an entry for the Universal style:
-
-\code
-[universal]
-Theme=Dark
-\endcode
-
-After building and running the application, you should see these results:
-
-\borderedimage qtquickcontrols2-chattutorial-chapter5-contacts-universal-dark.png
-\borderedimage qtquickcontrols2-chattutorial-chapter5-conversations-universal-dark.png
-
-\generatelist examplefiles .*(chapter5|shared).*
-\generatelist exampleimages
-
-\section1 Summary
-
-In this tutorial, we've taken you through the following steps of writing a
-basic application using Qt Quick Controls:
-
-\list
-\li Creating a new project using Qt Creator.
-\li Setting up a basic ApplicationWindow.
-\li Defining headers and footers with Page.
-\li Displaying content in a ListView.
-\li Refactoring components into their own files.
-\li Navigating between screens with StackView.
-\li Using layouts to allow an application to resize gracefully.
-\li Implementing both custom read-only and writable models that integrate an
-SQL database into the application.
-\li Integrating C++ with QML via \l Q_PROPERTY, \l Q_INVOKABLE, and
-\l qmlRegisterType().
-\li Testing and configuring multiple styles.
-\endlist
-
-*/
diff --git a/examples/quickcontrols2/chattutorial/shared/Albert_Einstein.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein.png
deleted file mode 100644
index 47cb15f6..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Albert_Einstein.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png
deleted file mode 100644
index c80ddd15..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png
deleted file mode 100644
index 41778835..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png b/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png
deleted file mode 100644
index 88768902..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Albert_Einstein@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png
deleted file mode 100644
index 988c2416..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png
deleted file mode 100644
index efffc1f2..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png
deleted file mode 100644
index 12633ec2..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png b/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png
deleted file mode 100644
index f5639280..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Ernest_Hemingway@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Hans_Gude.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude.png
deleted file mode 100644
index 7367a4a4..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Hans_Gude.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png
deleted file mode 100644
index c3a394e1..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Hans_Gude@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png
deleted file mode 100644
index 38ec67ee..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Hans_Gude@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png b/examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png
deleted file mode 100644
index 8c75d3e0..00000000
--- a/examples/quickcontrols2/chattutorial/shared/Hans_Gude@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/chattutorial/shared/shared.qrc b/examples/quickcontrols2/chattutorial/shared/shared.qrc
deleted file mode 100644
index 9eda6aa2..00000000
--- a/examples/quickcontrols2/chattutorial/shared/shared.qrc
+++ /dev/null
@@ -1,16 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>Albert_Einstein.png</file>
- <file>Albert_Einstein@2x.png</file>
- <file>Albert_Einstein@3x.png</file>
- <file>Albert_Einstein@4x.png</file>
- <file>Ernest_Hemingway.png</file>
- <file>Ernest_Hemingway@2x.png</file>
- <file>Ernest_Hemingway@3x.png</file>
- <file>Ernest_Hemingway@4x.png</file>
- <file>Hans_Gude.png</file>
- <file>Hans_Gude@2x.png</file>
- <file>Hans_Gude@3x.png</file>
- <file>Hans_Gude@4x.png</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/contactlist/ContactDelegate.ui.qml b/examples/quickcontrols2/contactlist/ContactDelegate.ui.qml
deleted file mode 100644
index 36803599..00000000
--- a/examples/quickcontrols2/contactlist/ContactDelegate.ui.qml
+++ /dev/null
@@ -1,127 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-ItemDelegate {
- id: delegate
-
- checkable: true
-
- contentItem: ColumnLayout {
- spacing: 10
-
- Label {
- text: fullName
- font.bold: true
- elide: Text.ElideRight
- Layout.fillWidth: true
- }
-
- GridLayout {
- id: grid
- visible: false
-
- columns: 2
- rowSpacing: 10
- columnSpacing: 10
-
- Label {
- text: qsTr("Address:")
- Layout.leftMargin: 60
- }
-
- Label {
- text: address
- font.bold: true
- elide: Text.ElideRight
- Layout.fillWidth: true
- }
-
- Label {
- text: qsTr("City:")
- Layout.leftMargin: 60
- }
-
- Label {
- text: city
- font.bold: true
- elide: Text.ElideRight
- Layout.fillWidth: true
- }
-
- Label {
- text: qsTr("Number:")
- Layout.leftMargin: 60
- }
-
- Label {
- text: number
- font.bold: true
- elide: Text.ElideRight
- Layout.fillWidth: true
- }
- }
- }
-
- states: [
- State {
- name: "expanded"
- when: delegate.checked
-
- PropertyChanges {
- target: grid
- visible: true
- }
- }
- ]
-}
diff --git a/examples/quickcontrols2/contactlist/ContactDialog.qml b/examples/quickcontrols2/contactlist/ContactDialog.qml
deleted file mode 100644
index 7569f356..00000000
--- a/examples/quickcontrols2/contactlist/ContactDialog.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Dialog {
- id: dialog
-
- signal finished(string fullName, string address, string city, string number)
-
- function createContact() {
- form.fullName.clear();
- form.address.clear();
- form.city.clear();
- form.number.clear();
-
- dialog.title = qsTr("Add Contact");
- dialog.open();
- }
-
- function editContact(contact) {
- form.fullName.text = contact.fullName;
- form.address.text = contact.address;
- form.city.text = contact.city;
- form.number.text = contact.number;
-
- dialog.title = qsTr("Edit Contact");
- dialog.open();
- }
-
- x: parent.width / 2 - width / 2
- y: parent.height / 2 - height / 2
-
- focus: true
- modal: true
- title: qsTr("Add Contact")
- standardButtons: Dialog.Ok | Dialog.Cancel
-
- contentItem: ContactForm {
- id: form
- }
-
- onAccepted: finished(form.fullName.text, form.address.text, form.city.text, form.number.text)
-}
diff --git a/examples/quickcontrols2/contactlist/ContactForm.ui.qml b/examples/quickcontrols2/contactlist/ContactForm.ui.qml
deleted file mode 100644
index 5988735a..00000000
--- a/examples/quickcontrols2/contactlist/ContactForm.ui.qml
+++ /dev/null
@@ -1,119 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-GridLayout {
- id: grid
- property alias fullName: fullName
- property alias address: address
- property alias city: city
- property alias number: number
- property int minimumInputSize: 120
- property string placeholderText: qsTr("<enter>")
-
- rows: 4
- columns: 2
-
- Label {
- text: qsTr("Full Name")
- Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline
- }
-
- TextField {
- id: fullName
- focus: true
- Layout.fillWidth: true
- Layout.minimumWidth: grid.minimumInputSize
- Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline
- placeholderText: grid.placeholderText
- }
-
- Label {
- text: qsTr("Address")
- Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline
- }
-
- TextField {
- id: address
- Layout.fillWidth: true
- Layout.minimumWidth: grid.minimumInputSize
- Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline
- placeholderText: grid.placeholderText
- }
-
- Label {
- text: qsTr("City")
- Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline
- }
-
- TextField {
- id: city
- Layout.fillWidth: true
- Layout.minimumWidth: grid.minimumInputSize
- Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline
- placeholderText: grid.placeholderText
- }
-
- Label {
- text: qsTr("Number")
- Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline
- }
-
- TextField {
- id: number
- Layout.fillWidth: true
- Layout.minimumWidth: grid.minimumInputSize
- Layout.alignment: Qt.AlignLeft | Qt.AlignBaseline
- placeholderText: grid.placeholderText
- }
-}
diff --git a/examples/quickcontrols2/contactlist/ContactView.ui.qml b/examples/quickcontrols2/contactlist/ContactView.ui.qml
deleted file mode 100644
index 984fc787..00000000
--- a/examples/quickcontrols2/contactlist/ContactView.ui.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import Backend 1.0
-
-ListView {
- id: listView
-
- signal pressAndHold(int index)
-
- width: 320
- height: 480
-
- focus: true
- boundsBehavior: Flickable.StopAtBounds
-
- section.property: "fullName"
- section.criteria: ViewSection.FirstCharacter
- section.delegate: SectionDelegate {
- width: listView.width
- }
-
- delegate: ContactDelegate {
- id: delegate
- width: listView.width
- onPressAndHold: listView.pressAndHold(index)
- }
-
- model: ContactModel {
- id: contactModel
- }
-
- ScrollBar.vertical: ScrollBar { }
-}
diff --git a/examples/quickcontrols2/contactlist/SectionDelegate.ui.qml b/examples/quickcontrols2/contactlist/SectionDelegate.ui.qml
deleted file mode 100644
index e7d7c2aa..00000000
--- a/examples/quickcontrols2/contactlist/SectionDelegate.ui.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ToolBar {
- id: background
-
- Label {
- id: label
- text: section
- anchors.fill: parent
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- }
-}
diff --git a/examples/quickcontrols2/contactlist/contactlist.pro b/examples/quickcontrols2/contactlist/contactlist.pro
deleted file mode 100644
index 101db15a..00000000
--- a/examples/quickcontrols2/contactlist/contactlist.pro
+++ /dev/null
@@ -1,28 +0,0 @@
-TEMPLATE = app
-TARGET = contactlist
-QT += quick
-
-HEADERS += \
- contactmodel.h
-
-SOURCES += \
- main.cpp \
- contactmodel.cpp
-
-RESOURCES += \
- ContactDelegate.ui.qml \
- ContactDialog.qml \
- ContactForm.ui.qml \
- contactlist.qml \
- ContactView.ui.qml \
- designer/Backend/ContactModel.qml \
- SectionDelegate.ui.qml
-
-# Additional import path used to resolve QML modules just for Qt Quick Designer
-QML_DESIGNER_IMPORT_PATH = $$PWD/designer
-
-OTHER_FILES += \
- designer/Backend/*.qml
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/contactlist
-INSTALLS += target
diff --git a/examples/quickcontrols2/contactlist/contactlist.qml b/examples/quickcontrols2/contactlist/contactlist.qml
deleted file mode 100644
index f79c609b..00000000
--- a/examples/quickcontrols2/contactlist/contactlist.qml
+++ /dev/null
@@ -1,117 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property int currentContact: -1
-
- width: 320
- height: 480
- visible: true
- title: qsTr("Contact List")
-
- ContactDialog {
- id: contactDialog
- onFinished: {
- if (currentContact === -1)
- contactView.model.append(fullName, address, city, number)
- else
- contactView.model.set(currentContact, fullName, address, city, number)
- }
- }
-
- Menu {
- id: contactMenu
- x: parent.width / 2 - width / 2
- y: parent.height / 2 - height / 2
- modal: true
-
- Label {
- padding: 10
- font.bold: true
- width: parent.width
- horizontalAlignment: Qt.AlignHCenter
- text: currentContact >= 0 ? contactView.model.get(currentContact).fullName : ""
- }
- MenuItem {
- text: qsTr("Edit...")
- onTriggered: contactDialog.editContact(contactView.model.get(currentContact))
- }
- MenuItem {
- text: qsTr("Remove")
- onTriggered: contactView.model.remove(currentContact)
- }
- }
-
- ContactView {
- id: contactView
- anchors.fill: parent
- onPressAndHold: {
- currentContact = index
- contactMenu.open()
- }
- }
-
- RoundButton {
- text: qsTr("+")
- highlighted: true
- anchors.margins: 10
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- onClicked: {
- currentContact = -1
- contactDialog.createContact()
- }
- }
-}
diff --git a/examples/quickcontrols2/contactlist/contactmodel.cpp b/examples/quickcontrols2/contactlist/contactmodel.cpp
deleted file mode 100644
index 9c83090c..00000000
--- a/examples/quickcontrols2/contactlist/contactmodel.cpp
+++ /dev/null
@@ -1,130 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "contactmodel.h"
-
-ContactModel::ContactModel(QObject *parent ) : QAbstractListModel(parent)
-{
- m_contacts.append({ "Angel Hogan", "Chapel St. 368 ", "Clearwater" , "0311 1823993" });
- m_contacts.append({ "Felicia Patton", "Annadale Lane 2", "Knoxville" , "0368 1244494" });
- m_contacts.append({ "Grant Crawford", "Windsor Drive 34", "Riverdale" , "0351 7826892" });
- m_contacts.append({ "Gretchen Little", "Sunset Drive 348", "Virginia Beach" , "0343 1234991" });
- m_contacts.append({ "Geoffrey Richards", "University Lane 54", "Trussville" , "0423 2144944" });
- m_contacts.append({ "Henrietta Chavez", "Via Volto San Luca 3", "Piobesi Torinese" , "0399 2826994" });
- m_contacts.append({ "Harvey Chandler", "North Squaw Creek 11", "Madisonville" , "0343 1244492" });
- m_contacts.append({ "Miguel Gomez", "Wild Rose Street 13", "Trussville" , "0343 9826996" });
- m_contacts.append({ "Norma Rodriguez", " Glen Eagles Street 53", "Buffalo" , "0241 5826596" });
- m_contacts.append({ "Shelia Ramirez", "East Miller Ave 68", "Pickerington" , "0346 4844556" });
- m_contacts.append({ "Stephanie Moss", "Piazza Trieste e Trento 77", "Roata Chiusani" , "0363 0510490" });
-}
-
-int ContactModel::rowCount(const QModelIndex &) const
-{
- return m_contacts.count();
-}
-
-QVariant ContactModel::data(const QModelIndex &index, int role) const
-{
- if (index.row() < rowCount())
- switch (role) {
- case FullNameRole: return m_contacts.at(index.row()).fullName;
- case AddressRole: return m_contacts.at(index.row()).address;
- case CityRole: return m_contacts.at(index.row()).city;
- case NumberRole: return m_contacts.at(index.row()).number;
- default: return QVariant();
- }
- return QVariant();
-}
-
-QHash<int, QByteArray> ContactModel::roleNames() const
-{
- static const QHash<int, QByteArray> roles {
- { FullNameRole, "fullName" },
- { AddressRole, "address" },
- { CityRole, "city" },
- { NumberRole, "number" }
- };
- return roles;
-}
-
-QVariantMap ContactModel::get(int row) const
-{
- const Contact contact = m_contacts.value(row);
- return { {"fullName", contact.fullName}, {"address", contact.address}, {"city", contact.city}, {"number", contact.number} };
-}
-
-void ContactModel::append(const QString &fullName, const QString &address, const QString &city, const QString &number)
-{
- int row = 0;
- while (row < m_contacts.count() && fullName > m_contacts.at(row).fullName)
- ++row;
- beginInsertRows(QModelIndex(), row, row);
- m_contacts.insert(row, {fullName, address, city, number});
- endInsertRows();
-}
-
-void ContactModel::set(int row, const QString &fullName, const QString &address, const QString &city, const QString &number)
-{
- if (row < 0 || row >= m_contacts.count())
- return;
-
- m_contacts.replace(row, { fullName, address, city, number });
- dataChanged(index(row, 0), index(row, 0), { FullNameRole, AddressRole, CityRole, NumberRole });
-}
-
-void ContactModel::remove(int row)
-{
- if (row < 0 || row >= m_contacts.count())
- return;
-
- beginRemoveRows(QModelIndex(), row, row);
- m_contacts.removeAt(row);
- endRemoveRows();
-}
diff --git a/examples/quickcontrols2/contactlist/contactmodel.h b/examples/quickcontrols2/contactlist/contactmodel.h
deleted file mode 100644
index ec7ce35f..00000000
--- a/examples/quickcontrols2/contactlist/contactmodel.h
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef CONTACTMODEL_H
-#define CONTACTMODEL_H
-
-#include <QAbstractListModel>
-
-class ContactModel : public QAbstractListModel
-{
- Q_OBJECT
-
-public:
- enum ContactRole {
- FullNameRole = Qt::DisplayRole,
- AddressRole = Qt::UserRole,
- CityRole,
- NumberRole
- };
- Q_ENUM(ContactRole)
-
- ContactModel(QObject *parent = nullptr);
-
- int rowCount(const QModelIndex & = QModelIndex()) const;
- QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
- QHash<int, QByteArray> roleNames() const;
-
- Q_INVOKABLE QVariantMap get(int row) const;
- Q_INVOKABLE void append(const QString &fullName, const QString &address, const QString &city, const QString &number);
- Q_INVOKABLE void set(int row, const QString &fullName, const QString &address, const QString &city, const QString &number);
- Q_INVOKABLE void remove(int row);
-
-private:
- struct Contact {
- QString fullName;
- QString address;
- QString city;
- QString number;
- };
-
- QList<Contact> m_contacts;
-};
-
-#endif // CONTACTMODEL_H
diff --git a/examples/quickcontrols2/contactlist/designer/Backend/ContactModel.qml b/examples/quickcontrols2/contactlist/designer/Backend/ContactModel.qml
deleted file mode 100644
index 12c1d416..00000000
--- a/examples/quickcontrols2/contactlist/designer/Backend/ContactModel.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-ListModel {
- ListElement {
- address: "Chapel St. 368"
- city: "Knoxville"
- number: "0311 1823993"
- fullName: "Angel Hogan"
- }
-
- ListElement {
- address: "Annadale Lane 2"
- city: "Clearwater"
- number: "0368 1244494"
- fullName: "Felicia Patton"
- }
-
- ListElement {
- address: "Windsor Drive 34"
- city: "Riverdale"
- number: "0368 1244494"
- fullName: "Grant Crawford"
- }
-
- ListElement {
- address: "Sunset Drive 348"
- city: "Virginia Beach"
- number: "0351 7826892"
- fullName: "Gretchen Little"
- }
-
- ListElement {
- address: "University Lane 54"
- city: "Trussville"
- number: "0399 2826994"
- fullName: "Geoffrey Richards"
- }
-}
diff --git a/examples/quickcontrols2/contactlist/designer/Backend/qmldir b/examples/quickcontrols2/contactlist/designer/Backend/qmldir
deleted file mode 100644
index 8e2037d4..00000000
--- a/examples/quickcontrols2/contactlist/designer/Backend/qmldir
+++ /dev/null
@@ -1,2 +0,0 @@
-module Backend
-ContactModel 1.0 ContactModel.qml
diff --git a/examples/quickcontrols2/contactlist/doc/images/qtquickcontrols2-contactlist.png b/examples/quickcontrols2/contactlist/doc/images/qtquickcontrols2-contactlist.png
deleted file mode 100644
index d7424ed3..00000000
--- a/examples/quickcontrols2/contactlist/doc/images/qtquickcontrols2-contactlist.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc b/examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc
deleted file mode 100644
index 1c97617c..00000000
--- a/examples/quickcontrols2/contactlist/doc/src/qtquickcontrols2-contactlist.qdoc
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-/*!
- \example contactlist
- \keyword Qt Quick Controls - Contact List
- \title Qt Quick Controls - Contact List
- \keyword Qt Quick Controls 2 - Contact List
- \ingroup qtquickcontrols2-examples
- \brief A QML app using Qt Quick Controls and a C++ class that implements
- a simple contact list.
-
- The \e {Contact List Example} shows how to integrate a C++ backend in a way that
- is compatible with Qt Quick Designer.
- For the declarative parts of the UI, .ui.qml files are used that can be edited
- visually in the Qt Quick Designer.
-
- \image qtquickcontrols2-contactlist.png
-
- \section1 C++ Backend
-
- The contact list application allows the user to add, edit, and remove contacts.
- The actual implementation is done in C++ and exposed as a QAbstractListModel.
-
- The ContactModel C++ class is registered under a namespace and later
- imported and instantiated by \e MainForm.ui.qml. For more information about registering C++
- classes as QML types, see \l {Defining QML Types from C++}.
-
- \code
- #include <QtQml/qqml.h>
- ...
- qmlRegisterType<ContactModel>("Backend", 1, 0, "ContactModel");
- ...
- \endcode
-
- \section1 Designer Support
-
- In the designer subdirectory, we create a plugin that replaces the ContactModel
- in Qt Quick Designer. For this to work we add the following line to \e contactlist.pro.
-
- \code
- QML_DESIGNER_IMPORT_PATH = $$PWD/designer
- \endcode
-
- Because Qt Quick Designer cannot instantiate the ContactModel C++ class, we define
- a mockup using a ListModel. This ensures that the ListView using the model shows something
- in Qt Quick Designer.
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/contactlist/main.cpp b/examples/quickcontrols2/contactlist/main.cpp
deleted file mode 100644
index 44619663..00000000
--- a/examples/quickcontrols2/contactlist/main.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-#include "contactmodel.h"
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- qmlRegisterType<ContactModel>("Backend", 1, 0, "ContactModel");
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/contactlist.qml")));
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/flatstyle/Flat/Button.qml b/examples/quickcontrols2/flatstyle/Flat/Button.qml
deleted file mode 100644
index 0420ddb4..00000000
--- a/examples/quickcontrols2/flatstyle/Flat/Button.qml
+++ /dev/null
@@ -1,122 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import Theme 1.0
-
-T.Button {
- id: control
-
- font: Theme.font
-
- implicitWidth: Math.max(background ? background.implicitWidth : 0,
- contentItem.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(background ? background.implicitHeight : 0,
- contentItem.implicitHeight + topPadding + bottomPadding)
- leftPadding: 4
- rightPadding: 4
-
- background: Rectangle {
- id: buttonBackground
- implicitWidth: 100
- implicitHeight: 40
- opacity: enabled ? 1 : 0.3
- border.color: Theme.mainColor
- border.width: 1
- radius: 2
-
- states: [
- State {
- name: "normal"
- when: !control.down
- PropertyChanges {
- target: buttonBackground
- }
- },
- State {
- name: "down"
- when: control.down
- PropertyChanges {
- target: buttonBackground
- border.color: Theme.mainColorDarker
- }
- }
- ]
- }
-
- contentItem: Text {
- id: textItem
- text: control.text
-
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: Theme.mainColor
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
-
- states: [
- State {
- name: "normal"
- when: !control.down
- },
- State {
- name: "down"
- when: control.down
- PropertyChanges {
- target: textItem
- color: Theme.mainColorDarker
- }
- }
- ]
- }
-}
-
diff --git a/examples/quickcontrols2/flatstyle/Flat/CheckBox.qml b/examples/quickcontrols2/flatstyle/Flat/CheckBox.qml
deleted file mode 100644
index ae819afa..00000000
--- a/examples/quickcontrols2/flatstyle/Flat/CheckBox.qml
+++ /dev/null
@@ -1,146 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import Theme 1.0
-
-T.CheckBox {
- id: control
-
- font: Theme.font
-
- implicitWidth: Math.max(background ? background.implicitWidth : 0,
- contentItem.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(background ? background.implicitHeight : 0,
- Math.max(contentItem.implicitHeight,
- indicator ? indicator.implicitHeight : 0) + topPadding + bottomPadding)
- leftPadding: 4
- indicator: Rectangle {
- id: checkboxHandle
- implicitWidth: Theme.baseSize * 2.6
- implicitHeight: Theme.baseSize * 2.6
- x: control.leftPadding
- anchors.verticalCenter: parent.verticalCenter
- radius: 2
- border.color: Theme.mainColor
-
- Rectangle {
- id: rectangle
- width: Theme.baseSize * 1.4
- height: Theme.baseSize * 1.4
- x: Theme.baseSize * 0.6
- y: Theme.baseSize * 0.6
- radius: Theme.baseSize * 0.4
- visible: false
- color: Theme.mainColor
- }
-
- states: [
- State {
- name: "unchecked"
- when: !control.checked && !control.down
- },
- State {
- name: "checked"
- when: control.checked && !control.down
-
- PropertyChanges {
- target: rectangle
- visible: true
- }
- },
- State {
- name: "unchecked_down"
- when: !control.checked && control.down
-
- PropertyChanges {
- target: rectangle
- color: Theme.mainColorDarker
- }
-
- PropertyChanges {
- target: checkboxHandle
- border.color: Theme.mainColorDarker
- }
- },
- State {
- name: "checked_down"
- extend: "unchecked_down"
- when: control.checked && control.down
-
- PropertyChanges {
- target: rectangle
- visible: true
- }
- }
- ]
- }
-
- background: Rectangle {
- implicitWidth: 140
- implicitHeight: Theme.baseSize * 3.8
- color: Theme.lightGray
- border.color: Theme.gray
- }
-
- contentItem: Text {
- leftPadding: control.indicator.width + 4
-
- text: control.text
- font: control.font
- color: Theme.dark
- elide: Text.ElideRight
- visible: control.text
- horizontalAlignment: Text.AlignLeft
- verticalAlignment: Text.AlignVCenter
- }
-}
-
diff --git a/examples/quickcontrols2/flatstyle/Flat/Switch.qml b/examples/quickcontrols2/flatstyle/Flat/Switch.qml
deleted file mode 100644
index 3eea062f..00000000
--- a/examples/quickcontrols2/flatstyle/Flat/Switch.qml
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import Theme 1.0
-
-T.Switch {
- id: control
-
- implicitWidth: indicator.implicitWidth
- implicitHeight: background.implicitHeight
-
- background: Rectangle {
- implicitWidth: 140
- implicitHeight: Theme.baseSize * 3.8
- color: Theme.lightGray
- border.color: Theme.gray
- }
-
- leftPadding: 4
-
- indicator: Rectangle {
- id: switchHandle
- implicitWidth: Theme.baseSize * 4.8
- implicitHeight: Theme.baseSize * 2.6
- x: control.leftPadding
- anchors.verticalCenter: parent.verticalCenter
- radius: Theme.baseSize * 1.3
- color: Theme.light
- border.color: Theme.lightGray
-
- Rectangle {
- id: rectangle
-
- width: Theme.baseSize * 2.6
- height: Theme.baseSize * 2.6
- radius: Theme.baseSize * 1.3
- color: Theme.light
- border.color: Theme.gray
- }
-
- states: [
- State {
- name: "off"
- when: !control.checked && !control.down
- },
- State {
- name: "on"
- when: control.checked && !control.down
-
- PropertyChanges {
- target: switchHandle
- color: Theme.mainColor
- border.color: Theme.mainColor
- }
-
- PropertyChanges {
- target: rectangle
- x: parent.width - width
-
- }
- },
- State {
- name: "off_down"
- when: !control.checked && control.down
-
- PropertyChanges {
- target: rectangle
- color: Theme.light
- }
-
- },
- State {
- name: "on_down"
- extend: "off_down"
- when: control.checked && control.down
-
- PropertyChanges {
- target: rectangle
- x: parent.width - width
- color: Theme.light
- }
-
- PropertyChanges {
- target: switchHandle
- color: Theme.mainColorDarker
- border.color: Theme.mainColorDarker
- }
- }
- ]
- }
-}
diff --git a/examples/quickcontrols2/flatstyle/MainForm.ui.qml b/examples/quickcontrols2/flatstyle/MainForm.ui.qml
deleted file mode 100644
index e25158a3..00000000
--- a/examples/quickcontrols2/flatstyle/MainForm.ui.qml
+++ /dev/null
@@ -1,146 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-import Theme 1.0
-
-Item {
- id: form
-
- width: 320
- height: 480
- property alias slider: slider
- property alias checkBoxUnderline: checkBoxUnderline
- property alias checkBoxBold: checkBoxBold
- property alias sizeSwitch: sizeSwitch
- property alias button: button
-
- Slider {
- id: slider
- width: 297
- height: 38
- stepSize: 1
- to: 18
- from: 10
- value: 14
- anchors.topMargin: Theme.baseSize
- anchors.top: gridLayout.bottom
- anchors.right: gridLayout.right
- anchors.left: gridLayout.left
- handle: Rectangle {
- id: sliderHandle
- x: slider.leftPadding + slider.visualPosition * (slider.availableWidth - width)
- y: slider.topPadding + slider.availableHeight / 2 - height / 2
- implicitWidth: 26
- implicitHeight: 26
- radius: 13
- color: slider.pressed ? Theme.mainColorDarker : Theme.mainColor
- border.color: Theme.gray
- }
- }
-
- GridLayout {
- id: gridLayout
- anchors.top: parent.top
- anchors.topMargin: 64
-
- anchors.horizontalCenter: parent.horizontalCenter
- columnSpacing: Theme.baseSize * 0.5
- rowSpacing: Theme.baseSize * 0.5
- rows: 4
- columns: 2
-
- Label {
- text: qsTr("Toggle Size")
- font: Theme.font
- }
-
- Switch {
- id: sizeSwitch
- Layout.fillWidth: true
- }
-
- CheckBox {
- id: checkBoxBold
- text: qsTr("Bold")
- checked: true
- Layout.fillWidth: true
- }
-
- CheckBox {
- id: checkBoxUnderline
- text: qsTr("Underline")
- Layout.fillWidth: true
- }
-
- Rectangle {
- id: rectangle
- color: Theme.mainColor
- Layout.fillWidth: true
- Layout.columnSpan: 2
- Layout.preferredHeight: 38
- Layout.preferredWidth: 297
- }
-
- Label {
- id: label
- text: qsTr("Customization")
- font: Theme.font
- }
-
- Button {
- id: button
- text: qsTr("Change Color")
- Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/flatstyle/doc/images/qtquickcontrols2-flatstyle-creator.png b/examples/quickcontrols2/flatstyle/doc/images/qtquickcontrols2-flatstyle-creator.png
deleted file mode 100644
index d77a7ffc..00000000
--- a/examples/quickcontrols2/flatstyle/doc/images/qtquickcontrols2-flatstyle-creator.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/flatstyle/doc/images/qtquickcontrols2-flatstyle.png b/examples/quickcontrols2/flatstyle/doc/images/qtquickcontrols2-flatstyle.png
deleted file mode 100644
index 71fa8411..00000000
--- a/examples/quickcontrols2/flatstyle/doc/images/qtquickcontrols2-flatstyle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/flatstyle/doc/src/qtquickcontrols2-flatstyle.qdoc b/examples/quickcontrols2/flatstyle/doc/src/qtquickcontrols2-flatstyle.qdoc
deleted file mode 100644
index 5da21ff4..00000000
--- a/examples/quickcontrols2/flatstyle/doc/src/qtquickcontrols2-flatstyle.qdoc
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example flatstyle
- \keyword Qt Quick Controls - Flat Style
- \title Qt Quick Controls - Flat Style
- \keyword Qt Quick Controls 2 - Flat Style
- \ingroup qtquickcontrols2-examples
- \brief A QML app using Qt Quick Controls and a QML plugin
- with customized controls.
-
- \e Flat Style shows how to integrate customized controls into Qt Quick Designer.
- The example uses a pure QML plugin to define constants in a singleton. For the
- declarative parts of the UI, \c .ui.qml files are used. These can be edited
- visually in Qt Quick Designer.
-
- \borderedimage qtquickcontrols2-flatstyle.png
-
- \section1 QML Plugin
-
- The example contains a plugin called Theme. The plugin consists of a QML file
- \c Theme.qml and a \c qmldir file. The plugin is located in the imports subdirectory
- and added as a resource.
- To ensure the plugin is found by QML, we add the import directory to the import
- paths of the engine in \c main.cpp.
-
- \code
- ...
- engine.addImportPath(":/imports");
- ...
- \endcode
-
- To ensure the code model and Qt Quick Designer can find the plugin, we add the following
- line to \e flatstyle.pro.
-
- \code
- QML_IMPORT_PATH = $$PWD/imports
- \endcode
-
- All colors, font parameters, and size constants that are used in this example
- are defined as properties in the singleton called \e Theme.qml.
- Usually such attribute values are defined as constants as they are not suppose to change at run time.
- In this example, we allow the user to change some attributes like the main color, the size parameter,
- and some font parameters while the application is running.
-
- Defining these attribute values in a singleton makes it easy to maintain and change them.
- This pattern makes it easy to implement theming.
-
- \section1 Implementing Custom Controls
-
- The plugin also contains a style for a couple of controls that implement a custom look and feel.
- This style is located in \c Flat and is set as the style for the application in \c qtquickcontrols2.conf.
-
- The example uses the states of a Qt Quick Item to implement the different states of a control.
- This has the advantage that we can define the custom look in Qt Quick Designer and we can easily
- verify the different states of a control.
- To edit the indicator of a switch in Qt Quick Designer we can open Switch.qml and then enter the implementation
- of the indicator called \c switchHandle using the combo box on the top next to the combo box for the open documents.
-
- \borderedimage qtquickcontrols2-flatstyle-creator.png
-
- The application itself is just a simple form that allows the user to adjust a couple of parameters of the custom controls.
- The user can choose another main color, set the font to bold or underline, and increase the size of the controls by
- toggling a switch.
-
- \e MainForm.ui.qml is just the pure declarative definition of the form, while \e flatstyle.qml instantiates the form
- and implements the logic.
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/flatstyle/flatstyle.pro b/examples/quickcontrols2/flatstyle/flatstyle.pro
deleted file mode 100644
index fe9e42a8..00000000
--- a/examples/quickcontrols2/flatstyle/flatstyle.pro
+++ /dev/null
@@ -1,22 +0,0 @@
-TEMPLATE = app
-TARGET = flatstyle
-
-QT += quick quickcontrols2 widgets
-
-SOURCES += main.cpp
-
-RESOURCES += \
- qtquickcontrols2.conf \
- flatstyle.qml \
- MainForm.ui.qml \
- Flat/Button.qml \
- Flat/CheckBox.qml \
- Flat/Switch.qml \
- imports/Theme/Theme.qml \
- imports/Theme/qmldir
-
-# Additional import path used to resolve QML modules in Qt Creator's code model
-QML_IMPORT_PATH = $$PWD/imports
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/flatstyle
-INSTALLS += target
diff --git a/examples/quickcontrols2/flatstyle/flatstyle.qml b/examples/quickcontrols2/flatstyle/flatstyle.qml
deleted file mode 100644
index 44a29cda..00000000
--- a/examples/quickcontrols2/flatstyle/flatstyle.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import Qt.labs.platform 1.0
-import Theme 1.0
-
-ApplicationWindow {
- id: window
- visible: true
- minimumWidth: 360
- height: 480
-
- title: qsTr("Flat Style")
-
- MainForm {
- id: form
-
- anchors.fill: parent
- button.onClicked: colorDialog.open()
-
- sizeSwitch.onCheckedChanged: Theme.baseSize = (sizeSwitch.checked ? Theme.largeSize : Theme.smallSize)
- checkBoxBold.onCheckedChanged: Theme.font.bold = checkBoxBold.checked
- checkBoxUnderline.onCheckedChanged: Theme.font.underline = checkBoxUnderline.checked
- slider.onPositionChanged: Theme.font.pixelSize = slider.valueAt(slider.position)
- }
-
- ColorDialog {
- id: colorDialog
- onCurrentColorChanged: Theme.mainColor = currentColor
- }
-}
diff --git a/examples/quickcontrols2/flatstyle/imports/Theme/Theme.qml b/examples/quickcontrols2/flatstyle/imports/Theme/Theme.qml
deleted file mode 100644
index 9018ece5..00000000
--- a/examples/quickcontrols2/flatstyle/imports/Theme/Theme.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-pragma Singleton
-
-import QtQuick 2.12
-
-QtObject {
- readonly property color gray: "#b2b1b1"
- readonly property color lightGray: "#dddddd"
- readonly property color light: "#ffffff"
- readonly property color blue: "#2d548b"
- property color mainColor: "#17a81a"
- readonly property color dark: "#222222"
- readonly property color mainColorDarker: Qt.darker(mainColor, 1.5)
-
- property int baseSize: 10
-
- readonly property int smallSize: 10
- readonly property int largeSize: 16
-
- property font font
- font.bold: true
- font.underline: false
- font.pixelSize: 14
- font.family: "arial"
-}
diff --git a/examples/quickcontrols2/flatstyle/imports/Theme/qmldir b/examples/quickcontrols2/flatstyle/imports/Theme/qmldir
deleted file mode 100644
index 4a58c13a..00000000
--- a/examples/quickcontrols2/flatstyle/imports/Theme/qmldir
+++ /dev/null
@@ -1,2 +0,0 @@
-module Theme
-singleton Theme 1.0 Theme.qml
diff --git a/examples/quickcontrols2/flatstyle/main.cpp b/examples/quickcontrols2/flatstyle/main.cpp
deleted file mode 100644
index 93f856a9..00000000
--- a/examples/quickcontrols2/flatstyle/main.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.addImportPath(":/imports");
- engine.load(QUrl(QStringLiteral("qrc:/flatstyle.qml")));
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/flatstyle/qtquickcontrols2.conf b/examples/quickcontrols2/flatstyle/qtquickcontrols2.conf
deleted file mode 100644
index 9cd59e5a..00000000
--- a/examples/quickcontrols2/flatstyle/qtquickcontrols2.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-[Controls]
-Style=Flat
diff --git a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-drawer.png b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-drawer.png
deleted file mode 100644
index 9109fdda..00000000
--- a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-drawer.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-menu.png b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-menu.png
deleted file mode 100644
index 3cbfbe65..00000000
--- a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-menu.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-welcome.png b/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-welcome.png
deleted file mode 100644
index e69e7e46..00000000
--- a/examples/quickcontrols2/gallery/doc/images/qtquickcontrols2-gallery-welcome.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/doc/src/qtquickcontrols2-gallery.qdoc b/examples/quickcontrols2/gallery/doc/src/qtquickcontrols2-gallery.qdoc
deleted file mode 100644
index 17496043..00000000
--- a/examples/quickcontrols2/gallery/doc/src/qtquickcontrols2-gallery.qdoc
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example gallery
- \keyword Qt Quick Controls - Gallery
- \title Qt Quick Controls - Gallery
- \keyword Qt Quick Controls 2 - Gallery
- \ingroup qtquickcontrols2-examples
- \brief A gallery of controls.
-
- \raw HTML
- <div class="table"><table style="background:transparent; border:0px">
- <tr><td style="border:0px">
- \endraw
- \image qtquickcontrols2-gallery-welcome.png
- \caption Welcome Screen
- \raw HTML
- </td><td style="border:0px">
- \endraw
- \image qtquickcontrols2-gallery-drawer.png
- \caption Side Drawer
- \raw HTML
- </td><td style="border:0px">
- \endraw
- \image qtquickcontrols2-gallery-menu.png
- \caption Options Menu
- \raw HTML
- </td></tr>
- </table></div>
- \endraw
-
- The gallery example is a simple application with a drawer menu that contains
- all the \l {Qt Quick Controls}. Each menu item opens a page that shows the
- graphical appearance of a control, allows you to interact with the control,
- and explains in which circumstances it is handy to use this control.
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/gallery/gallery.cpp b/examples/quickcontrols2/gallery/gallery.cpp
deleted file mode 100644
index b4d59685..00000000
--- a/examples/quickcontrols2/gallery/gallery.cpp
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-#include <QSettings>
-#include <QQuickStyle>
-#include <QIcon>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setApplicationName("Gallery");
- QGuiApplication::setOrganizationName("QtProject");
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
- QGuiApplication app(argc, argv);
-
- QIcon::setThemeName("gallery");
-
- QSettings settings;
- QString style = QQuickStyle::name();
- if (!style.isEmpty())
- settings.setValue("style", style);
- else
- QQuickStyle::setStyle(settings.value("style").toString());
-
- QQmlApplicationEngine engine;
- engine.rootContext()->setContextProperty("availableStyles", QQuickStyle::availableStyles());
- engine.load(QUrl("qrc:/gallery.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/gallery/gallery.pro b/examples/quickcontrols2/gallery/gallery.pro
deleted file mode 100644
index 2b898fca..00000000
--- a/examples/quickcontrols2/gallery/gallery.pro
+++ /dev/null
@@ -1,65 +0,0 @@
-TEMPLATE = app
-TARGET = gallery
-QT += quick quickcontrols2
-
-SOURCES += \
- gallery.cpp
-
-RESOURCES += \
- gallery.qml \
- pages/BusyIndicatorPage.qml \
- pages/ButtonPage.qml \
- pages/CheckBoxPage.qml \
- pages/ComboBoxPage.qml \
- pages/DelayButtonPage.qml \
- pages/DelegatePage.qml \
- pages/DialogPage.qml \
- pages/DialPage.qml \
- pages/FramePage.qml \
- pages/GroupBoxPage.qml \
- pages/PageIndicatorPage.qml \
- pages/ProgressBarPage.qml \
- pages/RadioButtonPage.qml \
- pages/RangeSliderPage.qml \
- pages/ScrollablePage.qml \
- pages/ScrollBarPage.qml \
- pages/ScrollIndicatorPage.qml \
- pages/SliderPage.qml \
- pages/SpinBoxPage.qml \
- pages/StackViewPage.qml \
- pages/SwipeViewPage.qml \
- pages/SwitchPage.qml \
- pages/TabBarPage.qml \
- pages/TextAreaPage.qml \
- pages/TextFieldPage.qml \
- pages/ToolTipPage.qml \
- pages/TumblerPage.qml \
- qtquickcontrols2.conf \
- icons/gallery/index.theme \
- icons/gallery/20x20/back.png \
- icons/gallery/20x20/drawer.png \
- icons/gallery/20x20/menu.png \
- icons/gallery/20x20@2/back.png \
- icons/gallery/20x20@2/drawer.png \
- icons/gallery/20x20@2/menu.png \
- icons/gallery/20x20@3/back.png \
- icons/gallery/20x20@3/drawer.png \
- icons/gallery/20x20@3/menu.png \
- icons/gallery/20x20@4/back.png \
- icons/gallery/20x20@4/drawer.png \
- icons/gallery/20x20@4/menu.png \
- images/arrow.png \
- images/arrow@2x.png \
- images/arrow@3x.png \
- images/arrow@4x.png \
- images/arrows.png \
- images/arrows@2x.png \
- images/arrows@3x.png \
- images/arrows@4x.png \
- images/qt-logo.png \
- images/qt-logo@2x.png \
- images/qt-logo@3x.png \
- images/qt-logo@4x.png
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/gallery
-INSTALLS += target
diff --git a/examples/quickcontrols2/gallery/gallery.qml b/examples/quickcontrols2/gallery/gallery.qml
deleted file mode 100644
index 44987ada..00000000
--- a/examples/quickcontrols2/gallery/gallery.qml
+++ /dev/null
@@ -1,323 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Universal 2.12
-import Qt.labs.settings 1.0
-
-ApplicationWindow {
- id: window
- width: 360
- height: 520
- visible: true
- title: "Qt Quick Controls 2"
-
- Settings {
- id: settings
- property string style: "Default"
- }
-
- Shortcut {
- sequences: ["Esc", "Back"]
- enabled: stackView.depth > 1
- onActivated: navigateBackAction.trigger()
- }
-
- Action {
- id: navigateBackAction
- icon.name: stackView.depth > 1 ? "back" : "drawer"
- onTriggered: {
- if (stackView.depth > 1) {
- stackView.pop()
- listView.currentIndex = -1
- } else {
- drawer.open()
- }
- }
- }
-
- Shortcut {
- sequence: "Menu"
- onActivated: optionsMenuAction.trigger()
- }
-
- Action {
- id: optionsMenuAction
- icon.name: "menu"
- onTriggered: optionsMenu.open()
- }
-
- header: ToolBar {
- Material.foreground: "white"
-
- RowLayout {
- spacing: 20
- anchors.fill: parent
-
- ToolButton {
- action: navigateBackAction
- }
-
- Label {
- id: titleLabel
- text: listView.currentItem ? listView.currentItem.text : "Gallery"
- font.pixelSize: 20
- elide: Label.ElideRight
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- Layout.fillWidth: true
- }
-
- ToolButton {
- action: optionsMenuAction
-
- Menu {
- id: optionsMenu
- x: parent.width - width
- transformOrigin: Menu.TopRight
-
- Action {
- text: "Settings"
- onTriggered: settingsDialog.open()
- }
- Action {
- text: "About"
- onTriggered: aboutDialog.open()
- }
- }
- }
- }
- }
-
- Drawer {
- id: drawer
- width: Math.min(window.width, window.height) / 3 * 2
- height: window.height
- interactive: stackView.depth === 1
-
- ListView {
- id: listView
-
- focus: true
- currentIndex: -1
- anchors.fill: parent
-
- delegate: ItemDelegate {
- width: parent.width
- text: model.title
- highlighted: ListView.isCurrentItem
- onClicked: {
- listView.currentIndex = index
- stackView.push(model.source)
- drawer.close()
- }
- }
-
- model: ListModel {
- ListElement { title: "BusyIndicator"; source: "qrc:/pages/BusyIndicatorPage.qml" }
- ListElement { title: "Button"; source: "qrc:/pages/ButtonPage.qml" }
- ListElement { title: "CheckBox"; source: "qrc:/pages/CheckBoxPage.qml" }
- ListElement { title: "ComboBox"; source: "qrc:/pages/ComboBoxPage.qml" }
- ListElement { title: "DelayButton"; source: "qrc:/pages/DelayButtonPage.qml" }
- ListElement { title: "Dial"; source: "qrc:/pages/DialPage.qml" }
- ListElement { title: "Dialog"; source: "qrc:/pages/DialogPage.qml" }
- ListElement { title: "Delegates"; source: "qrc:/pages/DelegatePage.qml" }
- ListElement { title: "Frame"; source: "qrc:/pages/FramePage.qml" }
- ListElement { title: "GroupBox"; source: "qrc:/pages/GroupBoxPage.qml" }
- ListElement { title: "PageIndicator"; source: "qrc:/pages/PageIndicatorPage.qml" }
- ListElement { title: "ProgressBar"; source: "qrc:/pages/ProgressBarPage.qml" }
- ListElement { title: "RadioButton"; source: "qrc:/pages/RadioButtonPage.qml" }
- ListElement { title: "RangeSlider"; source: "qrc:/pages/RangeSliderPage.qml" }
- ListElement { title: "ScrollBar"; source: "qrc:/pages/ScrollBarPage.qml" }
- ListElement { title: "ScrollIndicator"; source: "qrc:/pages/ScrollIndicatorPage.qml" }
- ListElement { title: "Slider"; source: "qrc:/pages/SliderPage.qml" }
- ListElement { title: "SpinBox"; source: "qrc:/pages/SpinBoxPage.qml" }
- ListElement { title: "StackView"; source: "qrc:/pages/StackViewPage.qml" }
- ListElement { title: "SwipeView"; source: "qrc:/pages/SwipeViewPage.qml" }
- ListElement { title: "Switch"; source: "qrc:/pages/SwitchPage.qml" }
- ListElement { title: "TabBar"; source: "qrc:/pages/TabBarPage.qml" }
- ListElement { title: "TextArea"; source: "qrc:/pages/TextAreaPage.qml" }
- ListElement { title: "TextField"; source: "qrc:/pages/TextFieldPage.qml" }
- ListElement { title: "ToolTip"; source: "qrc:/pages/ToolTipPage.qml" }
- ListElement { title: "Tumbler"; source: "qrc:/pages/TumblerPage.qml" }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
-
- initialItem: Pane {
- id: pane
-
- Image {
- id: logo
- width: pane.availableWidth / 2
- height: pane.availableHeight / 2
- anchors.centerIn: parent
- anchors.verticalCenterOffset: -50
- fillMode: Image.PreserveAspectFit
- source: "images/qt-logo.png"
- }
-
- Label {
- text: "Qt Quick Controls 2 provides a set of controls that can be used to build complete interfaces in Qt Quick."
- anchors.margins: 20
- anchors.top: logo.bottom
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: arrow.top
- horizontalAlignment: Label.AlignHCenter
- verticalAlignment: Label.AlignVCenter
- wrapMode: Label.Wrap
- }
-
- Image {
- id: arrow
- source: "images/arrow.png"
- anchors.left: parent.left
- anchors.bottom: parent.bottom
- }
- }
- }
-
- Dialog {
- id: settingsDialog
- x: Math.round((window.width - width) / 2)
- y: Math.round(window.height / 6)
- width: Math.round(Math.min(window.width, window.height) / 3 * 2)
- modal: true
- focus: true
- title: "Settings"
-
- standardButtons: Dialog.Ok | Dialog.Cancel
- onAccepted: {
- settings.style = styleBox.displayText
- settingsDialog.close()
- }
- onRejected: {
- styleBox.currentIndex = styleBox.styleIndex
- settingsDialog.close()
- }
-
- contentItem: ColumnLayout {
- id: settingsColumn
- spacing: 20
-
- RowLayout {
- spacing: 10
-
- Label {
- text: "Style:"
- }
-
- ComboBox {
- id: styleBox
- property int styleIndex: -1
- model: availableStyles
- Component.onCompleted: {
- styleIndex = find(settings.style, Qt.MatchFixedString)
- if (styleIndex !== -1)
- currentIndex = styleIndex
- }
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: "Restart required"
- color: "#e41e25"
- opacity: styleBox.currentIndex !== styleBox.styleIndex ? 1.0 : 0.0
- horizontalAlignment: Label.AlignHCenter
- verticalAlignment: Label.AlignVCenter
- Layout.fillWidth: true
- Layout.fillHeight: true
- }
- }
- }
-
- Dialog {
- id: aboutDialog
- modal: true
- focus: true
- title: "About"
- x: (window.width - width) / 2
- y: window.height / 6
- width: Math.min(window.width, window.height) / 3 * 2
- contentHeight: aboutColumn.height
-
- Column {
- id: aboutColumn
- spacing: 20
-
- Label {
- width: aboutDialog.availableWidth
- text: "The Qt Quick Controls 2 module delivers the next generation user interface controls based on Qt Quick."
- wrapMode: Label.Wrap
- font.pixelSize: 12
- }
-
- Label {
- width: aboutDialog.availableWidth
- text: "In comparison to the desktop-oriented Qt Quick Controls 1, Qt Quick Controls 2 "
- + "are an order of magnitude simpler, lighter and faster, and are primarily targeted "
- + "towards embedded and mobile platforms."
- wrapMode: Label.Wrap
- font.pixelSize: 12
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20/back.png b/examples/quickcontrols2/gallery/icons/gallery/20x20/back.png
deleted file mode 100644
index db43e273..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20/back.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20/drawer.png b/examples/quickcontrols2/gallery/icons/gallery/20x20/drawer.png
deleted file mode 100644
index 1e974efa..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20/drawer.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20/menu.png b/examples/quickcontrols2/gallery/icons/gallery/20x20/menu.png
deleted file mode 100644
index a10473d9..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20/menu.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@2/back.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@2/back.png
deleted file mode 100644
index c55ab315..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@2/back.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@2/drawer.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@2/drawer.png
deleted file mode 100644
index eba3b6cc..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@2/drawer.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@2/menu.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@2/menu.png
deleted file mode 100644
index 649c2a08..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@2/menu.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@3/back.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@3/back.png
deleted file mode 100644
index b228eb87..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@3/back.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@3/drawer.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@3/drawer.png
deleted file mode 100644
index 3584ed6d..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@3/drawer.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@3/menu.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@3/menu.png
deleted file mode 100644
index 9554b695..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@3/menu.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@4/back.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@4/back.png
deleted file mode 100644
index dd157e78..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@4/back.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@4/drawer.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@4/drawer.png
deleted file mode 100644
index 60d93aff..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@4/drawer.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/20x20@4/menu.png b/examples/quickcontrols2/gallery/icons/gallery/20x20@4/menu.png
deleted file mode 100644
index 187c171c..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/20x20@4/menu.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/icons/gallery/index.theme b/examples/quickcontrols2/gallery/icons/gallery/index.theme
deleted file mode 100644
index a1bcd5e0..00000000
--- a/examples/quickcontrols2/gallery/icons/gallery/index.theme
+++ /dev/null
@@ -1,24 +0,0 @@
-[Icon Theme]
-Name=Gallery
-Comment=Qt Quick Controls 2 Gallery Example Icon Theme
-
-Directories=20x20,20x20@2,20x20@3,20x20@4
-
-[20x20]
-Size=20
-Type=Fixed
-
-[20x20@2]
-Size=20
-Scale=2
-Type=Fixed
-
-[20x20@3]
-Size=20
-Scale=3
-Type=Fixed
-
-[20x20@4]
-Size=20
-Scale=4
-Type=Fixed
diff --git a/examples/quickcontrols2/gallery/images/arrow.png b/examples/quickcontrols2/gallery/images/arrow.png
deleted file mode 100644
index 9835108e..00000000
--- a/examples/quickcontrols2/gallery/images/arrow.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/arrow@2x.png b/examples/quickcontrols2/gallery/images/arrow@2x.png
deleted file mode 100644
index a5187d48..00000000
--- a/examples/quickcontrols2/gallery/images/arrow@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/arrow@3x.png b/examples/quickcontrols2/gallery/images/arrow@3x.png
deleted file mode 100644
index a512f648..00000000
--- a/examples/quickcontrols2/gallery/images/arrow@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/arrow@4x.png b/examples/quickcontrols2/gallery/images/arrow@4x.png
deleted file mode 100644
index fd893ebb..00000000
--- a/examples/quickcontrols2/gallery/images/arrow@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/arrows.png b/examples/quickcontrols2/gallery/images/arrows.png
deleted file mode 100644
index 3a4cc9b9..00000000
--- a/examples/quickcontrols2/gallery/images/arrows.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/arrows@2x.png b/examples/quickcontrols2/gallery/images/arrows@2x.png
deleted file mode 100644
index 8c80a2b4..00000000
--- a/examples/quickcontrols2/gallery/images/arrows@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/arrows@3x.png b/examples/quickcontrols2/gallery/images/arrows@3x.png
deleted file mode 100644
index 22f23cef..00000000
--- a/examples/quickcontrols2/gallery/images/arrows@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/arrows@4x.png b/examples/quickcontrols2/gallery/images/arrows@4x.png
deleted file mode 100644
index 6d1afeef..00000000
--- a/examples/quickcontrols2/gallery/images/arrows@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/qt-logo.png b/examples/quickcontrols2/gallery/images/qt-logo.png
deleted file mode 100644
index dff77295..00000000
--- a/examples/quickcontrols2/gallery/images/qt-logo.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/qt-logo@2x.png b/examples/quickcontrols2/gallery/images/qt-logo@2x.png
deleted file mode 100644
index dbd73aab..00000000
--- a/examples/quickcontrols2/gallery/images/qt-logo@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/qt-logo@3x.png b/examples/quickcontrols2/gallery/images/qt-logo@3x.png
deleted file mode 100644
index 68e763b5..00000000
--- a/examples/quickcontrols2/gallery/images/qt-logo@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/images/qt-logo@4x.png b/examples/quickcontrols2/gallery/images/qt-logo@4x.png
deleted file mode 100644
index 08fd8825..00000000
--- a/examples/quickcontrols2/gallery/images/qt-logo@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/gallery/pages/BusyIndicatorPage.qml b/examples/quickcontrols2/gallery/pages/BusyIndicatorPage.qml
deleted file mode 100644
index b0aa6284..00000000
--- a/examples/quickcontrols2/gallery/pages/BusyIndicatorPage.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "BusyIndicator is used to indicate activity while content is being loaded,"
- + " or when the UI is blocked waiting for a resource to become available."
- }
-
- BusyIndicator {
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/ButtonPage.qml b/examples/quickcontrols2/gallery/pages/ButtonPage.qml
deleted file mode 100644
index c77b41e4..00000000
--- a/examples/quickcontrols2/gallery/pages/ButtonPage.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "Button presents a push-button that can be pushed or clicked by the user. "
- + "Buttons are normally used to perform an action, or to answer a question."
- }
-
- ColumnLayout {
- spacing: 20
- anchors.horizontalCenter: parent.horizontalCenter
-
- Button {
- text: "First"
- Layout.fillWidth: true
- }
- Button {
- id: button
- text: "Second"
- highlighted: true
- Layout.fillWidth: true
- }
- Button {
- text: "Third"
- enabled: false
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/CheckBoxPage.qml b/examples/quickcontrols2/gallery/pages/CheckBoxPage.qml
deleted file mode 100644
index 7795f814..00000000
--- a/examples/quickcontrols2/gallery/pages/CheckBoxPage.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "CheckBox presents an option button that can be toggled on or off. "
- + "Check boxes are typically used to select one or more options from a set of options."
- }
-
- Column {
- spacing: 20
- anchors.horizontalCenter: parent.horizontalCenter
-
- CheckBox {
- text: "First"
- checked: true
- }
- CheckBox {
- text: "Second"
- }
- CheckBox {
- text: "Third"
- checked: true
- enabled: false
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/ComboBoxPage.qml b/examples/quickcontrols2/gallery/pages/ComboBoxPage.qml
deleted file mode 100644
index ec75607c..00000000
--- a/examples/quickcontrols2/gallery/pages/ComboBoxPage.qml
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "ComboBox is a combined button and popup list. It presents "
- + "a list of options to the user that occupies minimal screen space."
- }
-
- ComboBox {
- model: ["First", "Second", "Third"]
- anchors.horizontalCenter: parent.horizontalCenter
- }
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "ComboBox can be made \l editable. An editable combo box auto-"
- + "completes its text based on what is available in the model."
- }
-
- ComboBox {
- editable: true
- model: ListModel {
- id: model
- ListElement { text: "Banana" }
- ListElement { text: "Apple" }
- ListElement { text: "Coconut" }
- }
- onAccepted: {
- if (find(editText) === -1)
- model.append({text: editText})
- }
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/DelayButtonPage.qml b/examples/quickcontrols2/gallery/pages/DelayButtonPage.qml
deleted file mode 100644
index 91110567..00000000
--- a/examples/quickcontrols2/gallery/pages/DelayButtonPage.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "DelayButton is a checkable button that incorporates a delay before the "
- + "button is activated. This delay prevents accidental presses."
- }
-
- DelayButton {
- text: "DelayButton"
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/DelegatePage.qml b/examples/quickcontrols2/gallery/pages/DelegatePage.qml
deleted file mode 100644
index 30f07be1..00000000
--- a/examples/quickcontrols2/gallery/pages/DelegatePage.qml
+++ /dev/null
@@ -1,218 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-Pane {
- padding: 0
-
- property var delegateComponentMap: {
- "ItemDelegate": itemDelegateComponent,
- "SwipeDelegate": swipeDelegateComponent,
- "CheckDelegate": checkDelegateComponent,
- "RadioDelegate": radioDelegateComponent,
- "SwitchDelegate": switchDelegateComponent
- }
-
- Component {
- id: itemDelegateComponent
-
- ItemDelegate {
- text: labelText
- width: parent.width
- }
- }
-
- Component {
- id: swipeDelegateComponent
-
- SwipeDelegate {
- id: swipeDelegate
- text: labelText
- width: parent.width
-
- Component {
- id: removeComponent
-
- Rectangle {
- color: SwipeDelegate.pressed ? "#333" : "#444"
- width: parent.width
- height: parent.height
- clip: true
-
- SwipeDelegate.onClicked: view.model.remove(ourIndex)
-
- Label {
- font.pixelSize: swipeDelegate.font.pixelSize
- text: "Remove"
- color: "white"
- anchors.centerIn: parent
- }
- }
- }
-
- swipe.left: removeComponent
- swipe.right: removeComponent
- }
- }
-
- Component {
- id: checkDelegateComponent
-
- CheckDelegate {
- text: labelText
- width: parent.width
- }
- }
-
- ButtonGroup {
- id: radioButtonGroup
- }
-
- Component {
- id: radioDelegateComponent
-
- RadioDelegate {
- text: labelText
- ButtonGroup.group: radioButtonGroup
- }
- }
-
- Component {
- id: switchDelegateComponent
-
- SwitchDelegate {
- text: labelText
- }
- }
-
- ColumnLayout {
- id: column
- spacing: 40
- anchors.fill: parent
- anchors.topMargin: 20
-
- Label {
- Layout.fillWidth: true
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "Delegate controls are used as delegates in views such as ListView."
- }
-
- ListView {
- id: listView
- Layout.fillWidth: true
- Layout.fillHeight: true
- clip: true
- model: ListModel {
- ListElement { type: "ItemDelegate"; text: "ItemDelegate" }
- ListElement { type: "ItemDelegate"; text: "ItemDelegate" }
- ListElement { type: "ItemDelegate"; text: "ItemDelegate" }
- ListElement { type: "SwipeDelegate"; text: "SwipeDelegate" }
- ListElement { type: "SwipeDelegate"; text: "SwipeDelegate" }
- ListElement { type: "SwipeDelegate"; text: "SwipeDelegate" }
- ListElement { type: "CheckDelegate"; text: "CheckDelegate" }
- ListElement { type: "CheckDelegate"; text: "CheckDelegate" }
- ListElement { type: "CheckDelegate"; text: "CheckDelegate" }
- ListElement { type: "RadioDelegate"; text: "RadioDelegate" }
- ListElement { type: "RadioDelegate"; text: "RadioDelegate" }
- ListElement { type: "RadioDelegate"; text: "RadioDelegate" }
- ListElement { type: "SwitchDelegate"; text: "SwitchDelegate" }
- ListElement { type: "SwitchDelegate"; text: "SwitchDelegate" }
- ListElement { type: "SwitchDelegate"; text: "SwitchDelegate" }
- }
-
- section.property: "type"
- section.delegate: Pane {
- width: listView.width
- height: sectionLabel.implicitHeight + 20
-
- Label {
- id: sectionLabel
- text: section
- anchors.centerIn: parent
- }
- }
-
- delegate: Loader {
- id: delegateLoader
- width: listView.width
- sourceComponent: delegateComponentMap[text]
-
- property string labelText: text
- property ListView view: listView
- property int ourIndex: index
-
- // Can't find a way to do this in the SwipeDelegate component itself,
- // so do it here instead.
- ListView.onRemove: SequentialAnimation {
- PropertyAction {
- target: delegateLoader
- property: "ListView.delayRemove"
- value: true
- }
- NumberAnimation {
- target: item
- property: "height"
- to: 0
- easing.type: Easing.InOutQuad
- }
- PropertyAction {
- target: delegateLoader
- property: "ListView.delayRemove"
- value: false
- }
- }
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/DialPage.qml b/examples/quickcontrols2/gallery/pages/DialPage.qml
deleted file mode 100644
index 3bb3bb28..00000000
--- a/examples/quickcontrols2/gallery/pages/DialPage.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "The Dial is similar to a traditional dial knob that is found on devices such as "
- + "stereos or industrial equipment. It allows the user to specify a value within a range."
- }
-
- Dial {
- value: 0.5
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/DialogPage.qml b/examples/quickcontrols2/gallery/pages/DialogPage.qml
deleted file mode 100644
index 9d23e260..00000000
--- a/examples/quickcontrols2/gallery/pages/DialogPage.qml
+++ /dev/null
@@ -1,226 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- readonly property int buttonWidth: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 2, page.availableWidth / 3))
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "Dialog is a popup that is mostly used for short-term tasks "
- + "and brief communications with the user."
- }
-
- Button {
- text: "Message"
- anchors.horizontalCenter: parent.horizontalCenter
- width: buttonWidth
- onClicked: messageDialog.open()
-
- Dialog {
- id: messageDialog
-
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
-
- title: "Message"
-
- Label {
- text: "Lorem ipsum dolor sit amet..."
- }
- }
- }
-
- Button {
- id: button
- text: "Confirmation"
- anchors.horizontalCenter: parent.horizontalCenter
- width: buttonWidth
- onClicked: confirmationDialog.open()
-
- Dialog {
- id: confirmationDialog
-
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- parent: Overlay.overlay
-
- modal: true
- title: "Confirmation"
- standardButtons: Dialog.Yes | Dialog.No
-
- Column {
- spacing: 20
- anchors.fill: parent
- Label {
- text: "The document has been modified.\nDo you want to save your changes?"
- }
- CheckBox {
- text: "Do not ask again"
- anchors.right: parent.right
- }
- }
- }
- }
-
- Button {
- text: "Content"
- anchors.horizontalCenter: parent.horizontalCenter
- width: buttonWidth
- onClicked: contentDialog.open()
-
- Dialog {
- id: contentDialog
-
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: Math.min(page.width, page.height) / 3 * 2
- contentHeight: logo.height * 2
- parent: Overlay.overlay
-
- modal: true
- title: "Content"
- standardButtons: Dialog.Close
-
- Flickable {
- id: flickable
- clip: true
- anchors.fill: parent
- contentHeight: column.height
-
- Column {
- id: column
- spacing: 20
- width: parent.width
-
- Image {
- id: logo
- width: parent.width / 2
- anchors.horizontalCenter: parent.horizontalCenter
- fillMode: Image.PreserveAspectFit
- source: "../images/qt-logo.png"
- }
-
- Label {
- width: parent.width
- text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc finibus "
- + "in est quis laoreet. Interdum et malesuada fames ac ante ipsum primis "
- + "in faucibus. Curabitur eget justo sollicitudin enim faucibus bibendum. "
- + "Suspendisse potenti. Vestibulum cursus consequat mauris id sollicitudin. "
- + "Duis facilisis hendrerit consectetur. Curabitur sapien tortor, efficitur "
- + "id auctor nec, efficitur et nisl. Ut venenatis eros in nunc placerat, "
- + "eu aliquam enim suscipit."
- wrapMode: Label.Wrap
- }
- }
-
- ScrollIndicator.vertical: ScrollIndicator {
- parent: contentDialog.contentItem
- anchors.top: flickable.top
- anchors.bottom: flickable.bottom
- anchors.right: parent.right
- anchors.rightMargin: -contentDialog.rightPadding + 1
- }
- }
- }
- }
-
- Button {
- text: "Input"
- anchors.horizontalCenter: parent.horizontalCenter
- width: buttonWidth
- onClicked: inputDialog.open()
-
- Dialog {
- id: inputDialog
-
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- parent: Overlay.overlay
-
- focus: true
- modal: true
- title: "Input"
- standardButtons: Dialog.Ok | Dialog.Cancel
-
- ColumnLayout {
- spacing: 20
- anchors.fill: parent
- Label {
- elide: Label.ElideRight
- text: "Please enter the credentials:"
- Layout.fillWidth: true
- }
- TextField {
- focus: true
- placeholderText: "Username"
- Layout.fillWidth: true
- }
- TextField {
- placeholderText: "Password"
- echoMode: TextField.PasswordEchoOnEdit
- Layout.fillWidth: true
- }
- }
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/FramePage.qml b/examples/quickcontrols2/gallery/pages/FramePage.qml
deleted file mode 100644
index 4834d04d..00000000
--- a/examples/quickcontrols2/gallery/pages/FramePage.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- readonly property int itemWidth: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 3, page.availableWidth / 3 * 2))
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "Frame is used to layout a logical group of controls together, within a visual frame."
- }
-
- Frame {
- anchors.horizontalCenter: parent.horizontalCenter
-
- Column {
- spacing: 20
- width: page.itemWidth
-
- RadioButton {
- text: "First"
- checked: true
- width: parent.width
- }
- RadioButton {
- id: button
- text: "Second"
- width: parent.width
- }
- RadioButton {
- text: "Third"
- width: parent.width
- }
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/GroupBoxPage.qml b/examples/quickcontrols2/gallery/pages/GroupBoxPage.qml
deleted file mode 100644
index 16f8762a..00000000
--- a/examples/quickcontrols2/gallery/pages/GroupBoxPage.qml
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- readonly property int itemWidth: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 3, page.availableWidth / 3 * 2))
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "A GroupBox provides a frame, a title on top of it, and a logical group of controls within that frame."
- }
-
- GroupBox {
- title: "Title"
- anchors.horizontalCenter: parent.horizontalCenter
-
- Column {
- spacing: 20
- width: page.itemWidth
-
- RadioButton {
- text: "First"
- checked: true
- width: parent.width
- }
- RadioButton {
- id: button
- text: "Second"
- width: parent.width
- }
- RadioButton {
- text: "Third"
- width: parent.width
- }
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/PageIndicatorPage.qml b/examples/quickcontrols2/gallery/pages/PageIndicatorPage.qml
deleted file mode 100644
index 4f13ce33..00000000
--- a/examples/quickcontrols2/gallery/pages/PageIndicatorPage.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "PageIndicator is used to indicate the currently active page in a container of pages."
- }
-
- PageIndicator {
- count: 5
- currentIndex: 2
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/ProgressBarPage.qml b/examples/quickcontrols2/gallery/pages/ProgressBarPage.qml
deleted file mode 100644
index 1f3c81b9..00000000
--- a/examples/quickcontrols2/gallery/pages/ProgressBarPage.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "ProgressBar indicates the progress of an operation. It can be set in an "
- + "indeterminate mode to indicate that the length of the operation is unknown."
- }
-
- ProgressBar {
- id: bar
- value: 0.5
- anchors.horizontalCenter: parent.horizontalCenter
- }
-
- ProgressBar {
- indeterminate: true
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/RadioButtonPage.qml b/examples/quickcontrols2/gallery/pages/RadioButtonPage.qml
deleted file mode 100644
index b573731e..00000000
--- a/examples/quickcontrols2/gallery/pages/RadioButtonPage.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "RadioButton presents an option button that can be toggled on or off. "
- + "Radio buttons are typically used to select one option from a set of options."
- }
-
- Column {
- spacing: 20
- anchors.horizontalCenter: parent.horizontalCenter
-
- RadioButton {
- text: "First"
- }
- RadioButton {
- text: "Second"
- checked: true
- }
- RadioButton {
- text: "Third"
- enabled: false
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/RangeSliderPage.qml b/examples/quickcontrols2/gallery/pages/RangeSliderPage.qml
deleted file mode 100644
index b6c35766..00000000
--- a/examples/quickcontrols2/gallery/pages/RangeSliderPage.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "RangeSlider is used to select a range specified by two values, by sliding each handle along a track."
- }
-
- RangeSlider {
- id: slider
- first.value: 0.25
- second.value: 0.75
- anchors.horizontalCenter: parent.horizontalCenter
- }
-
- RangeSlider {
- orientation: Qt.Vertical
- first.value: 0.25
- second.value: 0.75
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/ScrollBarPage.qml b/examples/quickcontrols2/gallery/pages/ScrollBarPage.qml
deleted file mode 100644
index d9e77fa4..00000000
--- a/examples/quickcontrols2/gallery/pages/ScrollBarPage.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Flickable {
- id: flickable
-
- contentHeight: pane.height
-
- Pane {
- id: pane
- width: flickable.width
- height: flickable.height * 1.25
-
- Column {
- id: column
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "ScrollBar is an interactive bar that can be used to scroll to a specific position. "
- + "A scroll bar can be either vertical or horizontal, and can be attached to any Flickable, "
- + "such as ListView and GridView."
- }
-
- Image {
- rotation: 90
- source: "../images/arrows.png"
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- }
-
- ScrollBar.vertical: ScrollBar { }
-}
diff --git a/examples/quickcontrols2/gallery/pages/ScrollIndicatorPage.qml b/examples/quickcontrols2/gallery/pages/ScrollIndicatorPage.qml
deleted file mode 100644
index 2adcbc6b..00000000
--- a/examples/quickcontrols2/gallery/pages/ScrollIndicatorPage.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Flickable {
- id: flickable
-
- contentHeight: pane.height
-
- Pane {
- id: pane
- width: flickable.width
- height: flickable.height * 1.25
-
- Column {
- id: column
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "ScrollIndicator is a non-interactive indicator that indicates the current scroll position. "
- + "A scroll indicator can be either vertical or horizontal, and can be attached to any Flickable, "
- + "such as ListView and GridView."
- }
-
- Image {
- rotation: 90
- source: "../images/arrows.png"
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
-}
diff --git a/examples/quickcontrols2/gallery/pages/ScrollablePage.qml b/examples/quickcontrols2/gallery/pages/ScrollablePage.qml
deleted file mode 100644
index afb5ef5c..00000000
--- a/examples/quickcontrols2/gallery/pages/ScrollablePage.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Page {
- id: page
-
- default property alias content: pane.contentItem
-
- Flickable {
- anchors.fill: parent
- contentHeight: pane.implicitHeight
- flickableDirection: Flickable.AutoFlickIfNeeded
-
- Pane {
- id: pane
- width: parent.width
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/SliderPage.qml b/examples/quickcontrols2/gallery/pages/SliderPage.qml
deleted file mode 100644
index 93a1ebb1..00000000
--- a/examples/quickcontrols2/gallery/pages/SliderPage.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "Slider is used to select a value by sliding a handle along a track."
- }
-
- Slider {
- id: slider
- value: 0.5
- anchors.horizontalCenter: parent.horizontalCenter
- }
-
- Slider {
- orientation: Qt.Vertical
- value: 0.5
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/SpinBoxPage.qml b/examples/quickcontrols2/gallery/pages/SpinBoxPage.qml
deleted file mode 100644
index 9e458331..00000000
--- a/examples/quickcontrols2/gallery/pages/SpinBoxPage.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "SpinBox allows the user to choose an integer value by clicking the up or down indicator buttons, "
- + "by pressing up or down on the keyboard, or by entering a text value in the input field."
- }
-
- SpinBox {
- id: box
- value: 50
- anchors.horizontalCenter: parent.horizontalCenter
- editable: true
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/StackViewPage.qml b/examples/quickcontrols2/gallery/pages/StackViewPage.qml
deleted file mode 100644
index 43ee5684..00000000
--- a/examples/quickcontrols2/gallery/pages/StackViewPage.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-StackView {
- id: stackView
- initialItem: page
-
- Component {
- id: page
-
- Pane {
- id: pane
- width: parent ? parent.width : 0 // TODO: fix null parent on destruction
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "StackView provides a stack-based navigation model which can be used with a set of interlinked pages. "
- + "Items are pushed onto the stack as the user navigates deeper into the material, and popped off again "
- + "when he chooses to go back."
- }
-
- Button {
- id: button
- text: "Push"
- anchors.horizontalCenter: parent.horizontalCenter
- width: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 2, pane.availableWidth / 3))
- onClicked: stackView.push(page)
- }
-
- Button {
- text: "Pop"
- enabled: stackView.depth > 1
- width: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 2, pane.availableWidth / 3))
- anchors.horizontalCenter: parent.horizontalCenter
- onClicked: stackView.pop()
- }
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/SwipeViewPage.qml b/examples/quickcontrols2/gallery/pages/SwipeViewPage.qml
deleted file mode 100644
index 3c3bc56c..00000000
--- a/examples/quickcontrols2/gallery/pages/SwipeViewPage.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Pane {
- id: pane
-
- SwipeView {
- id: view
- currentIndex: 1
- anchors.fill: parent
-
- Repeater {
- model: 3
-
- Pane {
- width: view.width
- height: view.height
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "SwipeView provides a navigation model that simplifies horizontal paged scrolling. "
- + "The page indicator on the bottom shows which is the presently active page."
- }
-
- Image {
- source: "../images/arrows.png"
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- }
- }
- }
-
- PageIndicator {
- count: view.count
- currentIndex: view.currentIndex
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/SwitchPage.qml b/examples/quickcontrols2/gallery/pages/SwitchPage.qml
deleted file mode 100644
index 53ee1660..00000000
--- a/examples/quickcontrols2/gallery/pages/SwitchPage.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "Switch is an option button that can be dragged or toggled on or off. "
- + "Switches are typically used to select between two states."
- }
-
- Column {
- spacing: 20
- anchors.horizontalCenter: parent.horizontalCenter
-
- Switch {
- text: "First"
- }
- Switch {
- text: "Second"
- checked: true
- }
- Switch {
- text: "Third"
- enabled: false
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/TabBarPage.qml b/examples/quickcontrols2/gallery/pages/TabBarPage.qml
deleted file mode 100644
index 7c3cae44..00000000
--- a/examples/quickcontrols2/gallery/pages/TabBarPage.qml
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Page {
- id: page
-
- SwipeView {
- id: swipeView
- anchors.fill: parent
- currentIndex: tabBar.currentIndex
-
- Repeater {
- model: 3
-
- Pane {
- width: swipeView.width
- height: swipeView.height
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "TabBar is a bar with icons or text which allows the user "
- + "to switch between different subtasks, views, or modes."
- }
-
- Image {
- source: "../images/arrows.png"
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
- }
- }
- }
-
- footer: TabBar {
- id: tabBar
- currentIndex: swipeView.currentIndex
-
- TabButton {
- text: "First"
- }
- TabButton {
- text: "Second"
- }
- TabButton {
- text: "Third"
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/TextAreaPage.qml b/examples/quickcontrols2/gallery/pages/TextAreaPage.qml
deleted file mode 100644
index 7ed2b58b..00000000
--- a/examples/quickcontrols2/gallery/pages/TextAreaPage.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "TextArea is a multi-line text editor."
- }
-
- TextArea {
- width: Math.max(implicitWidth, Math.min(implicitWidth * 3, pane.availableWidth / 3))
- anchors.horizontalCenter: parent.horizontalCenter
-
- wrapMode: TextArea.Wrap
- text: "TextArea\n...\n...\n..."
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/TextFieldPage.qml b/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
deleted file mode 100644
index 37a5d605..00000000
--- a/examples/quickcontrols2/gallery/pages/TextFieldPage.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "TextField is a single-line text editor."
- }
-
- TextField {
- id: field
- placeholderText: "TextField"
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/ToolTipPage.qml b/examples/quickcontrols2/gallery/pages/ToolTipPage.qml
deleted file mode 100644
index 295ea2c4..00000000
--- a/examples/quickcontrols2/gallery/pages/ToolTipPage.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "A tool tip is a short piece of text that informs the user of a control's function."
- }
-
- Button {
- text: "Tip"
- anchors.horizontalCenter: parent.horizontalCenter
-
- ToolTip.timeout: 5000
- ToolTip.visible: pressed
- ToolTip.text: "This is a tool tip."
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/pages/TumblerPage.qml b/examples/quickcontrols2/gallery/pages/TumblerPage.qml
deleted file mode 100644
index af4caee3..00000000
--- a/examples/quickcontrols2/gallery/pages/TumblerPage.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollablePage {
- id: page
-
- Column {
- spacing: 40
- width: parent.width
-
- Label {
- width: parent.width
- wrapMode: Label.Wrap
- horizontalAlignment: Qt.AlignHCenter
- text: "Tumbler is used to select a value by spinning a wheel."
- }
-
- Tumbler {
- model: 10
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/gallery/qtquickcontrols2.conf b/examples/quickcontrols2/gallery/qtquickcontrols2.conf
deleted file mode 100644
index da1a8f41..00000000
--- a/examples/quickcontrols2/gallery/qtquickcontrols2.conf
+++ /dev/null
@@ -1,8 +0,0 @@
-[Material]
-Primary=#41cd52
-Accent=#41cd52
-Theme=System
-
-[Universal]
-Accent=#41cd52
-Theme=System
diff --git a/examples/quickcontrols2/imagine/automotive/automotive.cpp b/examples/quickcontrols2/imagine/automotive/automotive.cpp
deleted file mode 100644
index 63cc702d..00000000
--- a/examples/quickcontrols2/imagine/automotive/automotive.cpp
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-#include <QSettings>
-#include <QQuickStyle>
-#include <QIcon>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setApplicationName("Automotive");
- QGuiApplication::setOrganizationName("QtProject");
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
-
- QGuiApplication app(argc, argv);
-
- QIcon::setThemeName("automotive");
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/qml/automotive.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/imagine/automotive/automotive.pro b/examples/quickcontrols2/imagine/automotive/automotive.pro
deleted file mode 100644
index 890e63d8..00000000
--- a/examples/quickcontrols2/imagine/automotive/automotive.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = automotive
-QT += quick quickcontrols2
-
-SOURCES += \
- automotive.cpp
-
-RESOURCES += \
- icons/icons.qrc \
- imagine-assets/imagine-assets.qrc \
- qml/qml.qrc \
- qtquickcontrols2.conf
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/imagine/automotive
-INSTALLS += target
diff --git a/examples/quickcontrols2/imagine/automotive/doc/images/qtquickcontrols2-automotive.png b/examples/quickcontrols2/imagine/automotive/doc/images/qtquickcontrols2-automotive.png
deleted file mode 100644
index 93ea2854..00000000
--- a/examples/quickcontrols2/imagine/automotive/doc/images/qtquickcontrols2-automotive.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/doc/src/qtquickcontrols2-automotive.qdoc b/examples/quickcontrols2/imagine/automotive/doc/src/qtquickcontrols2-automotive.qdoc
deleted file mode 100644
index 4e3d3352..00000000
--- a/examples/quickcontrols2/imagine/automotive/doc/src/qtquickcontrols2-automotive.qdoc
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example imagine/automotive
- \keyword Qt Quick Controls - Imagine Style Example: Automotive
- \title Qt Quick Controls - Imagine Style Example: Automotive
- \keyword Qt Quick Controls 2 - Imagine Style Example: Automotive
- \ingroup qtquickcontrols2-examples
- \brief An automotive user interface using custom Imagine style assets.
-
- This example demonstrates how custom Imagine style assets can be used to
- style an automotive user interface.
-
- \image qtquickcontrols2-automotive.png
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/air-con.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/air-con.png
deleted file mode 100644
index 70175f6f..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/air-con.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/command.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/command.png
deleted file mode 100644
index 8f712c78..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/command.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/message.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/message.png
deleted file mode 100644
index 7773ca63..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/message.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/music.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/music.png
deleted file mode 100644
index dc73322b..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/music.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/seats.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/seats.png
deleted file mode 100644
index 2f9eaa62..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/seats.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/settings.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/settings.png
deleted file mode 100644
index b65598b5..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/statistics.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/statistics.png
deleted file mode 100644
index 97970298..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/statistics.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/windows.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/windows.png
deleted file mode 100644
index 8ed8cec4..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44/windows.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/air-con.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/air-con.png
deleted file mode 100644
index 8822979e..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/air-con.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/command.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/command.png
deleted file mode 100644
index 918e2b69..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/command.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/message.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/message.png
deleted file mode 100644
index 1debfdfb..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/message.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/music.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/music.png
deleted file mode 100644
index 01a3ece4..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/music.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/navigation.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/navigation.png
deleted file mode 100644
index 3a18fb5f..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/navigation.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/seats.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/seats.png
deleted file mode 100644
index 7d67f1be..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/seats.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/settings.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/settings.png
deleted file mode 100644
index 3ce2a1f1..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/statistics.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/statistics.png
deleted file mode 100644
index afc2cc09..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/statistics.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/windows.png b/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/windows.png
deleted file mode 100644
index 59bac584..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/44x44@2/windows.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/icons.svg b/examples/quickcontrols2/imagine/automotive/icons/automotive/icons.svg
deleted file mode 100644
index daf4633c..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/icons.svg
+++ /dev/null
@@ -1,526 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="449"
- height="384.99988"
- viewBox="0 0 449.00001 384.99988"
- id="svg2"
- version="1.1"
- inkscape:version="0.92.1 r15371"
- sodipodi:docname="icons.svg"
- inkscape:export-filename="/home/mitch/dev/qqc2-futuristic-style-demo/icons/futuristic/44x44@2/settings.png"
- inkscape:export-xdpi="180"
- inkscape:export-ydpi="180">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="2.3750001"
- inkscape:cx="227.69632"
- inkscape:cy="173.66895"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="true"
- units="px"
- inkscape:window-width="1920"
- inkscape:window-height="1137"
- inkscape:window-x="-8"
- inkscape:window-y="-8"
- inkscape:window-maximized="1"
- showguides="true"
- inkscape:snap-grids="false"
- inkscape:snap-midpoints="false"
- inkscape:object-paths="false"
- inkscape:guide-bbox="true"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0">
- <inkscape:grid
- type="xygrid"
- id="grid4380"
- originx="-0.042045451"
- originy="0.87827274" />
- </sodipodi:namedview>
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-0.04204545,-668.2406)"
- style="display:inline">
- <g
- id="g4481"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\navigation.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <rect
- y="1009.2405"
- x="180.04205"
- height="44"
- width="44"
- id="rect4273"
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path4147"
- d="m 187.6832,1027.7359 29.7995,-11.9955 -8.46002,30.1783 -5.42957,-15.5311 z"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- </g>
- <g
- id="g4474"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\music.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <rect
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- id="rect4279"
- width="44"
- height="44"
- x="135.04205"
- y="1009.2405" />
- <path
- sodipodi:nodetypes="cscccc"
- inkscape:connector-curvature="0"
- id="path4140"
- d="m 167.59902,1035.8159 c -1.31413,-1.8397 -8.0497,1.4976 -5.98214,5.5357 1.67413,3.2698 7.60481,-0.9006 7.23214,-2.1428 l 0.043,-22.367 -1.3203,2.4448 z"
- style="fill:#6affcd;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- <path
- sodipodi:nodetypes="cscccccc"
- inkscape:connector-curvature="0"
- id="path4149-3"
- d="m 151.55515,1038.884 c -1.31413,-1.8398 -8.0497,1.4975 -5.98214,5.5357 1.67413,3.2698 7.60481,-0.9006 7.23214,-2.1428 v -19.7322 l 14.7673,-3.2197 1.32996,-2.4891 -17.34726,3.4767 z"
- style="fill:#6affcd;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- </g>
- <g
- id="g4518"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\message.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <rect
- y="1009.2405"
- x="315.04205"
- height="44"
- width="44"
- id="rect4281"
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <rect
- y="1019.9489"
- x="321.94974"
- height="22.583223"
- width="30.18462"
- id="rect4144"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path4146"
- d="m 322.03814,1020.1699 15.1144,15.1144 14.95973,-14.9597"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path4148"
- d="m 352.09018,1042.3996 -11.00435,-11.0044"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path4150"
- d="m 321.99394,1042.4438 11.13693,-11.137"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- </g>
- <g
- id="g4460"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\command.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <rect
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- id="rect4287"
- width="44"
- height="44"
- x="90.042053"
- y="1009.2405" />
- <circle
- r="19.047689"
- cy="1031.2406"
- cx="112.04205"
- id="path4152"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <rect
- ry="5.5033379"
- rx="4.5719934"
- y="1018.0177"
- x="107.24899"
- height="17.67367"
- width="9.1883745"
- id="rect4156"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:0.9598186;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- sodipodi:open="true"
- d="m 118.4944,1031.2297 a 6.6733203,6.6733203 0 0 1 -3.33666,5.7793 6.6733203,6.6733203 0 0 1 -6.67332,0 6.6733203,6.6733203 0 0 1 -3.33666,-5.7793"
- sodipodi:end="3.1415927"
- sodipodi:start="0"
- sodipodi:ry="6.6733203"
- sodipodi:rx="6.6733203"
- sodipodi:cy="1031.2297"
- sodipodi:cx="111.82108"
- sodipodi:type="arc"
- id="path4160"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path4171"
- d="m 111.68097,1037.9274 v 6.75"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path4173"
- d="m 108.71222,1044.6618 h 5.96875"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- </g>
- <g
- id="g4547"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\weather@4x.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <rect
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- id="rect4275"
- width="44"
- height="44"
- x="405.04205"
- y="1009.2405" />
- <path
- sodipodi:nodetypes="sccssssssss"
- inkscape:connector-curvature="0"
- id="rect4181"
- d="m 415.77154,1020.3319 h 1.72458 c 1.92048,-6.3943 13.78409,-9.9869 18.47317,0 h 2.34328 c 4.38985,0 7.92391,3.3764 7.92391,7.5705 v 0.3996 c 0,4.194 -3.53406,7.5704 -7.92391,7.5704 h -22.54103 c -4.38985,0 -7.92392,-3.3764 -7.92392,-7.5704 v -0.3996 c 0,-4.1941 3.53407,-7.5705 7.92392,-7.5705 z"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#c6c6c6;stroke-width:1.06007564;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path4184"
- d="m 418.4242,1048.7629 2.37846,-8.8765"
- style="fill:none;fill-rule:evenodd;stroke:#c6c6c6;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#c6c6c6;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 425.80463,1048.7629 2.37846,-8.8765"
- id="path4186"
- inkscape:connector-curvature="0" />
- <path
- inkscape:connector-curvature="0"
- id="path4188"
- d="m 433.36269,1048.7629 2.37846,-8.8765"
- style="fill:none;fill-rule:evenodd;stroke:#c6c6c6;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- </g>
- <g
- id="g4408"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\settings.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <rect
- y="1009.2405"
- x="0.042050309"
- height="44"
- width="44"
- id="rect4289"
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path4175"
- d="m 18.04247,1017.9491 1.40804,-5.2549 h 5.24319 l 1.47,5.4862 2.38326,1.376 4.34476,-3.4414 4.37522,4.3753 -3.31456,4.3973 1.149046,2.6737 h 5.08233 v 6.7396 l -4.596194,0.3315 -1.590992,3.1157 3.137788,4.0438 -4.209498,4.2095 -4.56007,-2.6328 -2.72092,1.5389 -1.3074,4.8793 h -5.14495 l -1.06066,-5.6527 -2.65524,-0.7114 -4.4148,2.5489 -3.89011,-4.3123 3.13778,-4.088 -1.73918,-3.0124 -4.66897,-0.8988 v -5.5905 l 4.83926,-0.4862 1.41421,-2.9831 -3.13778,-4.1321 4.08796,-4.088 4.04377,2.3644 z"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- <circle
- r="5.5242715"
- cy="1031.0306"
- cx="22.064146"
- id="path4177"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- </g>
- <g
- id="g4487"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\windows.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <rect
- y="1009.2405"
- x="225.04205"
- height="44"
- width="44"
- id="rect4277"
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- sodipodi:nodetypes="cccc"
- inkscape:connector-curvature="0"
- id="rect4190"
- d="m 261.03309,1017.2897 v 28 h -27.9375 c 2.35953,-27.5958 7.73302,-28.5625 27.9375,-28 z"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- </g>
- <g
- id="g4538"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\air-con.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384"
- transform="translate(-45.000003)">
- <rect
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- id="rect4283"
- width="44"
- height="44"
- x="405.04205"
- y="1009.2405" />
- <path
- sodipodi:nodetypes="sscsscsscsscs"
- inkscape:connector-curvature="0"
- id="path4197"
- d="m 421.26481,1044.4851 c -3.23157,3.5413 -10.47885,-3.4697 -9.9718,-8.4477 0.83559,-8.2035 7.65867,-5.1475 12.04763,-6.9077 -1.79559,-3.4382 -6.54603,-1.0408 -9.27801,-3.5338 -3.54131,-3.2316 3.46971,-10.4789 8.44775,-9.9718 8.20348,0.8356 5.14746,7.6586 6.84142,12.0034 3.37187,-1.8398 0.97447,-6.5902 3.4675,-9.3222 3.23157,-3.5413 10.47885,3.4697 9.9718,8.4478 -0.83559,8.2034 -7.65867,5.1474 -12.00344,6.753 1.83978,3.2835 6.59022,0.8861 9.3222,3.3791 3.54131,3.2316 -3.46971,10.4789 -8.44775,9.9718 -8.20348,-0.8356 -5.14746,-7.6587 -6.88561,-11.8488 -3.41606,1.9945 -1.01866,6.7449 -3.51169,9.4769 z"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- </g>
- <g
- id="g4531"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\seats.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384"
- transform="translate(-90.000003)">
- <rect
- y="1009.2405"
- x="360.04205"
- height="44"
- width="44"
- id="rect4285"
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- sodipodi:nodetypes="sccs"
- inkscape:connector-curvature="0"
- id="rect4203"
- d="m 391.91622,1017.2238 c 0.17067,-5.6932 5.2149,-4.4637 5.2149,-4.4637 v 9.1924 c -0.7292,-0.07 -5.33548,-0.7063 -5.2149,-4.7287 z"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <path
- sodipodi:nodetypes="cscccsc"
- inkscape:connector-curvature="0"
- id="path4206"
- d="m 386.60297,1040.4014 c -5.60375,-1.1635 -16.63421,-2.7578 -18.84543,0.6535 -1.53027,2.3608 -0.87435,7.5961 2.06641,8.7796 h 21.0795 c 3.59502,-0.5935 6.26483,-6.7048 2.51333,-8.7058 3.19134,-0.9113 5.05406,-18.5249 2.48667,-19.5701 -1.7401,-0.7084 -5.84062,6.4475 -9.30048,18.8428 z"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- </g>
- <g
- id="g4435"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\automotive\44x44@4\statistics.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <rect
- style="opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- id="rect4291"
- width="44"
- height="44"
- x="45.042053"
- y="1009.2405" />
- <path
- inkscape:connector-curvature="0"
- id="path4208"
- d="M 51.05768,1048.9905 V 1032.553"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 54.60974,1048.9905 v -35.5"
- id="path4210"
- inkscape:connector-curvature="0" />
- <path
- inkscape:connector-curvature="0"
- id="path4212"
- d="M 58.16187,1048.9905 V 1019.178"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 61.71393,1048.9905 v -20"
- id="path4214"
- inkscape:connector-curvature="0" />
- <path
- inkscape:connector-curvature="0"
- id="path4216"
- d="m 65.26599,1048.9905 v -22.875"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="M 68.81812,1048.9905 V 1034.178"
- id="path4218"
- inkscape:connector-curvature="0" />
- <path
- inkscape:connector-curvature="0"
- id="path4220"
- d="m 72.37018,1048.9905 v -6.8125"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 75.92224,1048.9905 v -9.75"
- id="path4222"
- inkscape:connector-curvature="0" />
- <path
- inkscape:connector-curvature="0"
- id="path4224"
- d="m 79.47437,1048.9905 v -19.75"
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="M 83.02643,1048.9905 V 1026.303"
- id="path4226"
- inkscape:connector-curvature="0" />
- </g>
- <g
- id="g4957"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\warning@4x.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <g
- id="g4952">
- <g
- id="g4984">
- <rect
- style="display:inline;opacity:1;fill:#dc7878;fill-opacity:0;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- id="rect4888"
- width="44"
- height="44"
- x="405.04205"
- y="964.24048" />
- <path
- transform="translate(91.459048,54.521538)"
- d="m 335.89844,913.67383 a 6.7448861,6.7448861 0 0 0 -6.15625,3.36328 l -6.5293,11.30859 -6.5293,11.3086 a 6.7448861,6.7448861 0 0 0 5.83985,10.11718 h 13.05859 13.06055 a 6.7448861,6.7448861 0 0 0 5.83984,-10.11718 l -6.53125,-11.3086 -6.52929,-11.30859 a 6.7448861,6.7448861 0 0 0 -5.52344,-3.36328 z"
- id="path4914"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#d5242f;stroke-width:1.10000002;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- inkscape:original="M 335.58203 920.41016 L 329.05273 931.71875 L 322.52344 943.02734 L 335.58203 943.02734 L 348.64258 943.02734 L 342.11133 931.71875 L 335.58203 920.41016 z "
- inkscape:radius="6.7442117"
- sodipodi:type="inkscape:offset" />
- <text
- id="text4916"
- y="997.82135"
- x="418.31409"
- style="font-style:normal;font-weight:normal;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#d5232f;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- xml:space="preserve"><tspan
- style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:29.11217499px;line-height:1.25;font-family:'Liberation Mono';-inkscape-font-specification:'Liberation Mono';fill:#d5232f;fill-opacity:1"
- y="997.82135"
- x="418.31409"
- id="tspan4918"
- sodipodi:role="line">!</tspan></text>
- </g>
- </g>
- </g>
- <g
- id="g4579"
- transform="translate(0.91359708)"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\car@4x.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384">
- <g
- transform="translate(0,-0.52629089)"
- inkscape:export-ydpi="180.02795"
- inkscape:export-xdpi="180.02795"
- inkscape:export-filename="/home/mitch/dev/qqc2-futuristic-style-demo/icons/car@2x.png"
- id="g4940">
- <g
- inkscape:export-ydpi="288.18481"
- inkscape:export-xdpi="288.18481"
- inkscape:export-filename="C:\dev\qt5.10\qtquickcontrols2\examples\quickcontrols2\imagine\automotive\icons\car@3x.png"
- transform="translate(-4.2105261)"
- id="g5027">
- <g
- id="g4990"
- transform="translate(38)">
- <path
- style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 155.0705,782.17781 c 6.07598,2.81282 15.70745,5.54152 16.78045,0.12114 1.47822,-7.46742 -7.82673,-9.03073 -12.74213,-11.21517 0.35496,-28.39708 4.52948,-61.94987 -16.18718,-79.16009 -15.28126,-12.6948 -36.88923,-13.70761 -54.94737,-13.89474 -44.75939,1.12608 -72.2307,7.25376 -66.73684,92.42105 -5.10694,0.73154 -15.36618,6.19984 -11.96169,13.62693 2.26424,4.93957 10.32335,-1.55401 16.17222,-2.04798 l -4.42106,70.10526 c -4.88809,9.36444 -1.70447,13.26861 -0.21052,18.31579 l 2.31579,28.21053 c -5.87521,7.89365 -9.18606,65.22384 5.21645,80.45936 20.44842,21.63111 45.69753,20.41018 69.7353,20.35721 29.24164,-0.0644 46.2493,-7.41397 57.516,-25.0271 6.1501,-9.61441 6.80873,-24.11582 6.56857,-37.94412 -0.50608,-29.14019 -2.51723,-31.93372 -3.87843,-38.05588 0.24603,-10.87137 0.62319,-26.86855 0.62319,-26.86855 0.13708,-2.99847 -4.07078,-3.32117 -4.26379,-0.30212 -1.23557,19.32726 -2.52156,37.97398 -4.14887,52.01278 -5.15807,-50.19881 -8.22005,-100.65169 -0.42106,-152.42105 l 1.77142,14.22858"
- id="path4198"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cscsccsccccssssccsccc" />
- <rect
- style="opacity:0;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- id="rect4200"
- width="75.39991"
- height="41.533218"
- x="52.331917"
- y="811.89917" />
- <rect
- ry="5.0999999"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#6affcd;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
- id="rect4204"
- width="74.730019"
- height="42.277542"
- x="53.001808"
- y="811.97357"
- rx="5.0999999" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 33.76375,753.50264 c 21.81505,-33.62758 93.76507,-29.21973 112.94736,0.52631 l -6.52631,45.1579 c -32.75184,-8.71732 -66.12565,-8.2607 -100,-0.42106 z"
- id="path4207"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="M 30.39532,772.45 C 39.7558,824.45977 33.67511,874.57878 29.86901,924.97632 27.0264,874.92466 21.98491,825.44889 30.39532,772.45 Z"
- id="path4209"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccc" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 40.07953,905.29211 c 31.5016,11.5654 64.23888,15.63953 100.21053,0.10526 l -1.68421,49.36842 c -34.36634,20.89476 -66.32657,16.8029 -97.05263,-0.10526 z"
- id="path4211"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- <path
- style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 132.39532,693.08158 c -0.1013,1.76525 -0.0679,3.42272 0.52632,4.63158 4.7808,3.23458 8.19086,9.38341 11.57895,15.57895 1.5083,-0.0482 2.87102,0.42463 4.63157,-0.52632 0.15986,-2.57309 0.37258,-5.12353 -0.42105,-8.10526 -3.09684,-4.12667 -6.44714,-7.87314 -10.10526,-11.15789 -2.00632,-0.36221 -3.93976,-0.97762 -6.21053,-0.42106 z"
- id="path4213"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccccc" />
- <path
- sodipodi:nodetypes="ccccccc"
- inkscape:connector-curvature="0"
- id="path4215"
- d="m 48.05537,693.08158 c 0.1013,1.76525 0.0679,3.42272 -0.52632,4.63158 -4.7808,3.23458 -8.19086,9.38341 -11.57895,15.57895 -1.5083,-0.0482 -2.87102,0.42463 -4.63157,-0.52632 -0.15986,-2.57309 -0.37258,-5.12353 0.42105,-8.10526 3.09684,-4.12667 6.44714,-7.87314 10.10526,-11.15789 2.00632,-0.36221 3.93976,-0.97762 6.21053,-0.42106 z"
- style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#6affcd;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
- <path
- style="display:inline;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#d5222f;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:0.87843137"
- d="m 151.92716,785.02141 59.0707,63.0345 c 1.5809,-0.4544 3.3564,-1.3935 2.958,-3.8128 -1.0167,-6.1727 -4.9133,-10.6123 -10.7475,-11.7661 l -48.0616,-50.3775"
- id="path4240"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- </g>
- <rect
- y="669.29321"
- x="4.2525716"
- height="338.94736"
- width="250.17281"
- id="rect4844"
- style="opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- </g>
- </g>
- <rect
- y="668.2406"
- x="-0.87155163"
- height="340"
- width="252"
- id="rect4563"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.01560712;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- </g>
-</svg>
diff --git a/examples/quickcontrols2/imagine/automotive/icons/automotive/index.theme b/examples/quickcontrols2/imagine/automotive/icons/automotive/index.theme
deleted file mode 100644
index cd84146e..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/automotive/index.theme
+++ /dev/null
@@ -1,14 +0,0 @@
-[Icon Theme]
-Name=Automotive
-Comment=Icon theme for the Qt Quick Controls 2 Automotive Imagine Style Example
-
-Directories=44x44,44x44@2
-
-[44x44]
-Size=44
-Type=Fixed
-
-[44x44@2]
-Size=44
-Scale=2
-Type=Fixed
diff --git a/examples/quickcontrols2/imagine/automotive/icons/car.png b/examples/quickcontrols2/imagine/automotive/icons/car.png
deleted file mode 100644
index 4bfc9a47..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/car.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/car@2x.png b/examples/quickcontrols2/imagine/automotive/icons/car@2x.png
deleted file mode 100644
index 966bc47b..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/car@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/icons.qrc b/examples/quickcontrols2/imagine/automotive/icons/icons.qrc
deleted file mode 100644
index 5cb79781..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/icons.qrc
+++ /dev/null
@@ -1,29 +0,0 @@
-<RCC>
- <qresource prefix="/icons">
- <file>car.png</file>
- <file>car@2x.png</file>
- <file>warning.png</file>
- <file>warning@2x.png</file>
- <file>weather.png</file>
- <file>weather@2x.png</file>
- <file>automotive/icons.svg</file>
- <file>automotive/index.theme</file>
- <file>automotive/44x44/air-con.png</file>
- <file>automotive/44x44/command.png</file>
- <file>automotive/44x44/message.png</file>
- <file>automotive/44x44/music.png</file>
- <file>automotive/44x44/seats.png</file>
- <file>automotive/44x44/settings.png</file>
- <file>automotive/44x44/statistics.png</file>
- <file>automotive/44x44/windows.png</file>
- <file>automotive/44x44@2/air-con.png</file>
- <file>automotive/44x44@2/command.png</file>
- <file>automotive/44x44@2/message.png</file>
- <file>automotive/44x44@2/music.png</file>
- <file>automotive/44x44@2/navigation.png</file>
- <file>automotive/44x44@2/seats.png</file>
- <file>automotive/44x44@2/settings.png</file>
- <file>automotive/44x44@2/statistics.png</file>
- <file>automotive/44x44@2/windows.png</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/imagine/automotive/icons/warning.png b/examples/quickcontrols2/imagine/automotive/icons/warning.png
deleted file mode 100644
index 590a61eb..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/warning.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/warning@2x.png b/examples/quickcontrols2/imagine/automotive/icons/warning@2x.png
deleted file mode 100644
index 487fbafc..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/warning@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/weather.png b/examples/quickcontrols2/imagine/automotive/icons/weather.png
deleted file mode 100644
index b1479de2..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/weather.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/icons/weather@2x.png b/examples/quickcontrols2/imagine/automotive/icons/weather@2x.png
deleted file mode 100644
index 8b4333ab..00000000
--- a/examples/quickcontrols2/imagine/automotive/icons/weather@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background.png
deleted file mode 100644
index 8f7152e5..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background@2x.png
deleted file mode 100644
index 72bd2f11..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/applicationwindow-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered.9.png
deleted file mode 100644
index 0ec1a28d..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered@2x.9.png
deleted file mode 100644
index 53e1041f..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked.9.png
deleted file mode 100644
index 16ed8185..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked@2x.9.png
deleted file mode 100644
index ca5d4db6..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered.9.png
deleted file mode 100644
index a7a0252e..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered@2x.9.png
deleted file mode 100644
index 28a0d1f1..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed.9.png
deleted file mode 100644
index 0f8b0c4e..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed@2x.9.png
deleted file mode 100644
index 6048dba0..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background.9.png
deleted file mode 100644
index 65653dee..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background@2x.9.png
deleted file mode 100644
index 0cb87ad3..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/button-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered.png
deleted file mode 100644
index aaa24dea..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered@2x.png
deleted file mode 100644
index 6c1a8d9e..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed.png
deleted file mode 100644
index e730f74a..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed@2x.png
deleted file mode 100644
index bf189c9a..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background.png
deleted file mode 100644
index 6cb099ce..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background@2x.png
deleted file mode 100644
index dca94220..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed.png
deleted file mode 100644
index a65e68bd..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed@2x.png
deleted file mode 100644
index c2b4c86a..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle.png
deleted file mode 100644
index 1f338bbe..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle@2x.png
deleted file mode 100644
index a894eb6c..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/dial-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background.9.png
deleted file mode 100644
index bfb27a20..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background@2x.9.png
deleted file mode 100644
index 73db47d3..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/frame-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/imagine-assets.qrc b/examples/quickcontrols2/imagine/automotive/imagine-assets/imagine-assets.qrc
deleted file mode 100644
index 81eadda6..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/imagine-assets.qrc
+++ /dev/null
@@ -1,80 +0,0 @@
-<RCC>
- <qresource prefix="/imagine-assets">
- <file>applicationwindow-background.png</file>
- <file>applicationwindow-background@2x.png</file>
- <file>button-background.9.png</file>
- <file>button-background@2x.9.png</file>
- <file>button-background-checked.9.png</file>
- <file>button-background-checked@2x.9.png</file>
- <file>button-background-checked-hovered.9.png</file>
- <file>button-background-checked-hovered@2x.9.png</file>
- <file>button-background-hovered.9.png</file>
- <file>button-background-hovered@2x.9.png</file>
- <file>button-background-pressed.9.png</file>
- <file>button-background-pressed@2x.9.png</file>
- <file>dial-background.png</file>
- <file>dial-background@2x.png</file>
- <file>dial-background-hovered.png</file>
- <file>dial-background-hovered@2x.png</file>
- <file>dial-background-pressed.png</file>
- <file>dial-background-pressed@2x.png</file>
- <file>dial-handle.png</file>
- <file>dial-handle@2x.png</file>
- <file>dial-handle-pressed.png</file>
- <file>dial-handle-pressed@2x.png</file>
- <file>frame-background.9.png</file>
- <file>frame-background@2x.9.png</file>
- <file>itemdelegate-background.9.png</file>
- <file>itemdelegate-background@2x.9.png</file>
- <file>itemdelegate-background-checked.9.png</file>
- <file>itemdelegate-background-checked@2x.9.png</file>
- <file>itemdelegate-background-hovered.9.png</file>
- <file>itemdelegate-background-hovered@2x.9.png</file>
- <file>itemdelegate-background-pressed.9.png</file>
- <file>itemdelegate-background-pressed@2x.9.png</file>
- <file>radiobutton-indicator.png</file>
- <file>radiobutton-indicator@2x.png</file>
- <file>radiobutton-indicator-checked.png</file>
- <file>radiobutton-indicator-checked@2x.png</file>
- <file>radiobutton-indicator-checked-hovered.png</file>
- <file>radiobutton-indicator-checked-hovered@2x.png</file>
- <file>radiobutton-indicator-checked-pressed.png</file>
- <file>radiobutton-indicator-checked-pressed@2x.png</file>
- <file>radiobutton-indicator-hovered.png</file>
- <file>radiobutton-indicator-hovered@2x.png</file>
- <file>radiobutton-indicator-pressed.png</file>
- <file>radiobutton-indicator-pressed@2x.png</file>
- <file>scrollindicator-handle.png</file>
- <file>scrollindicator-handle@2x.png</file>
- <file>slider-background-horizontal.9.png</file>
- <file>slider-background-horizontal@2x.9.png</file>
- <file>slider-handle.png</file>
- <file>slider-handle@2x.png</file>
- <file>slider-handle-hovered.png</file>
- <file>slider-handle-hovered@2x.png</file>
- <file>slider-handle-pressed.png</file>
- <file>slider-handle-pressed@2x.png</file>
- <file>slider-progress-horizontal.9.png</file>
- <file>slider-progress-horizontal@2x.9.png</file>
- <file>slider-progress-horizontal-pressed.9.png</file>
- <file>slider-progress-horizontal-pressed@2x.9.png</file>
- <file>switchdelegate-background.9.png</file>
- <file>switchdelegate-background@2x.9.png</file>
- <file>switchdelegate-handle.png</file>
- <file>switchdelegate-handle@2x.png</file>
- <file>switchdelegate-handle-checked.png</file>
- <file>switchdelegate-handle-checked@2x.png</file>
- <file>switchdelegate-handle-checked-hovered.png</file>
- <file>switchdelegate-handle-checked-hovered@2x.png</file>
- <file>switchdelegate-handle-hovered.png</file>
- <file>switchdelegate-handle-hovered@2x.png</file>
- <file>switchdelegate-handle-pressed.png</file>
- <file>switchdelegate-handle-pressed@2x.png</file>
- <file>switchdelegate-indicator.png</file>
- <file>switchdelegate-indicator@2x.png</file>
- <file>switchdelegate-indicator-pressed.png</file>
- <file>switchdelegate-indicator-pressed@2x.png</file>
- <file>toolseparator-separator-vertical.9.png</file>
- <file>toolseparator-separator-vertical@2x.9.png</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked.9.png
deleted file mode 100644
index 8941ad9f..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked@2x.9.png
deleted file mode 100644
index a17e4469..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered.9.png
deleted file mode 100644
index ab6d2947..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered@2x.9.png
deleted file mode 100644
index 65120b4b..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed.9.png
deleted file mode 100644
index c9b86741..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed@2x.9.png
deleted file mode 100644
index cc3393e1..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background.9.png
deleted file mode 100644
index 42d580b0..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background@2x.9.png
deleted file mode 100644
index 76008e8c..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/itemdelegate-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered.png
deleted file mode 100644
index f64c9665..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered@2x.png
deleted file mode 100644
index ace1717a..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed.png
deleted file mode 100644
index c77ad470..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed@2x.png
deleted file mode 100644
index 2798f77f..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked.png
deleted file mode 100644
index ea714eaa..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked@2x.png
deleted file mode 100644
index 4f29b80b..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered.png
deleted file mode 100644
index a7d07ed1..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered@2x.png
deleted file mode 100644
index b0fff06e..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed.png
deleted file mode 100644
index 7d657ac9..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed@2x.png
deleted file mode 100644
index 9a8b9cd8..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator.png
deleted file mode 100644
index b59ba0ce..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator@2x.png
deleted file mode 100644
index e4a2b9a2..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/radiobutton-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle.png
deleted file mode 100644
index 0faa2592..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle@2x.png
deleted file mode 100644
index 09616c5e..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/scrollindicator-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal.9.png
deleted file mode 100644
index eafe5da0..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal@2x.9.png
deleted file mode 100644
index c14bf788..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-background-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered.png
deleted file mode 100644
index 9f56b8c0..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered@2x.png
deleted file mode 100644
index 87a8126a..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed.png
deleted file mode 100644
index 771b71c2..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed@2x.png
deleted file mode 100644
index b0edf7da..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle.png
deleted file mode 100644
index 9634d2ae..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle@2x.png
deleted file mode 100644
index 8983436c..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed.9.png
deleted file mode 100644
index 15726a9f..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed@2x.9.png
deleted file mode 100644
index d25c9e63..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal.9.png
deleted file mode 100644
index cff4e860..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal@2x.9.png
deleted file mode 100644
index ecb5e15a..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/slider-progress-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background.9.png
deleted file mode 100644
index 1fbb5626..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background@2x.9.png
deleted file mode 100644
index 18880980..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered.png
deleted file mode 100644
index e66ef713..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered@2x.png
deleted file mode 100644
index 05d6f82e..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked.png
deleted file mode 100644
index bcfa06ae..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked@2x.png
deleted file mode 100644
index b9985f0f..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered.png
deleted file mode 100644
index 3de8aa15..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered@2x.png
deleted file mode 100644
index b9551590..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed.png
deleted file mode 100644
index 547b2c17..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed@2x.png
deleted file mode 100644
index b4bb748a..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle.png
deleted file mode 100644
index b30fdaa2..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle@2x.png
deleted file mode 100644
index 4e98604c..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed.png
deleted file mode 100644
index 6833d624..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed@2x.png
deleted file mode 100644
index 3d5498a0..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator.png
deleted file mode 100644
index 3db5fe20..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator@2x.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator@2x.png
deleted file mode 100644
index b5c10f74..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/switchdelegate-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical.9.png
deleted file mode 100644
index a6d2009b..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical@2x.9.png b/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical@2x.9.png
deleted file mode 100644
index 9ab9ca56..00000000
--- a/examples/quickcontrols2/imagine/automotive/imagine-assets/toolseparator-separator-vertical@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/automotive/qml/CustomGlow.qml b/examples/quickcontrols2/imagine/automotive/qml/CustomGlow.qml
deleted file mode 100644
index 483059ae..00000000
--- a/examples/quickcontrols2/imagine/automotive/qml/CustomGlow.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtGraphicalEffects 1.12
-
-Glow {
- color: glowColor
- samples: 20
- spread: 0.3
-}
diff --git a/examples/quickcontrols2/imagine/automotive/qml/FeatureButton.qml b/examples/quickcontrols2/imagine/automotive/qml/FeatureButton.qml
deleted file mode 100644
index d86b39c7..00000000
--- a/examples/quickcontrols2/imagine/automotive/qml/FeatureButton.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-Button {
- id: button
- checkable: true
- font.pixelSize: fontSizeExtraSmall
- leftPadding: 4
- rightPadding: 4
- topPadding: 12
- bottomPadding: 12
- implicitWidth: 60
- implicitHeight: 90
-
- icon.name: "placeholder"
- icon.width: 44
- icon.height: 44
- display: Button.TextUnderIcon
-}
diff --git a/examples/quickcontrols2/imagine/automotive/qml/GlowingLabel.qml b/examples/quickcontrols2/imagine/automotive/qml/GlowingLabel.qml
deleted file mode 100644
index 088e9c16..00000000
--- a/examples/quickcontrols2/imagine/automotive/qml/GlowingLabel.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-// This container and the transform on the Label are
-// necessary to get precise bounding rect of the text for layouting reasons,
-// since some of the labels' font sizes can get quite large.
-Item {
- id: root
- implicitHeight: labelTextMetrics.tightBoundingRect.height
- implicitWidth: label.implicitWidth
-
- property alias text: label.text
- property alias font: label.font
- property alias horizontalAlignment: label.horizontalAlignment
- property alias verticalAlignment: label.verticalAlignment
- property bool glowEnabled: true
- property color glowColor: colorGlow
- property color color: colorBright
-
- Label {
- id: label
- anchors.baseline: root.baseline
- color: root.color
-
- layer.enabled: root.glowEnabled
- layer.effect: CustomGlow {
- color: glowColor
- }
-
- TextMetrics {
- id: labelTextMetrics
- text: label.text
- font: label.font
- }
-
- transform: Translate {
- y: -labelTextMetrics.tightBoundingRect.y
- }
- }
-}
diff --git a/examples/quickcontrols2/imagine/automotive/qml/automotive.qml b/examples/quickcontrols2/imagine/automotive/qml/automotive.qml
deleted file mode 100644
index 91e3bf7c..00000000
--- a/examples/quickcontrols2/imagine/automotive/qml/automotive.qml
+++ /dev/null
@@ -1,642 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Window 2.0
-
-ApplicationWindow {
- id: window
- width: 1280
- height: 720
- minimumWidth: 1180
- minimumHeight: 663
- visible: true
- title: "Qt Quick Controls 2 - Imagine Style Example: Automotive"
-
- readonly property color colorGlow: "#1d6d64"
- readonly property color colorWarning: "#d5232f"
- readonly property color colorMain: "#6affcd"
- readonly property color colorBright: "#ffffff"
- readonly property color colorLightGrey: "#888"
- readonly property color colorDarkGrey: "#333"
-
- readonly property int fontSizeExtraSmall: Qt.application.font.pixelSize * 0.8
- readonly property int fontSizeMedium: Qt.application.font.pixelSize * 1.5
- readonly property int fontSizeLarge: Qt.application.font.pixelSize * 2
- readonly property int fontSizeExtraLarge: Qt.application.font.pixelSize * 5
-
- Component.onCompleted: {
- x = Screen.width / 2 - width / 2
- y = Screen.height / 2 - height / 2
- }
-
- Shortcut {
- sequence: "Ctrl+Q"
- onActivated: Qt.quit()
- }
-
- Frame {
- id: frame
- anchors.fill: parent
- anchors.margins: 90
-
- RowLayout {
- id: mainRowLayout
- anchors.fill: parent
- anchors.margins: 24
- spacing: 36
-
- Container {
- id: leftTabBar
-
- currentIndex: 1
-
- Layout.fillWidth: false
- Layout.fillHeight: true
-
- ButtonGroup {
- buttons: columnLayout.children
- }
-
- contentItem: ColumnLayout {
- id: columnLayout
- spacing: 3
-
- Repeater {
- model: leftTabBar.contentModel
- }
- }
-
- FeatureButton {
- id: navigationFeatureButton
- text: qsTr("Navigation")
- icon.name: "navigation"
- Layout.fillHeight: true
- }
-
- FeatureButton {
- text: qsTr("Music")
- icon.name: "music"
- checked: true
- Layout.fillHeight: true
- }
-
- FeatureButton {
- text: qsTr("Message")
- icon.name: "message"
- Layout.fillHeight: true
- }
-
- FeatureButton {
- text: qsTr("Command")
- icon.name: "command"
- Layout.fillHeight: true
- }
-
- FeatureButton {
- text: qsTr("Settings")
- icon.name: "settings"
- Layout.fillHeight: true
- }
- }
-
- StackLayout {
- currentIndex: leftTabBar.currentIndex
-
- Layout.preferredWidth: 150
- Layout.maximumWidth: 150
- Layout.fillWidth: false
-
- Item {}
-
- ColumnLayout {
- spacing: 16
-
- ButtonGroup {
- id: viewButtonGroup
- buttons: viewTypeRowLayout.children
- }
-
- RowLayout {
- id: viewTypeRowLayout
- spacing: 3
-
- Layout.bottomMargin: 12
-
- Button {
- text: qsTr("Compact")
- font.pixelSize: fontSizeExtraSmall
- checked: true
-
- Layout.fillWidth: true
- }
- Button {
- text: qsTr("Full")
- font.pixelSize: fontSizeExtraSmall
- checkable: true
-
- Layout.fillWidth: true
- }
- }
-
- GlowingLabel {
- text: qsTr("VOLUME")
- color: "white"
- font.pixelSize: fontSizeMedium
- }
-
- Dial {
- id: volumeDial
- from: 0
- value: 42
- to: 100
- stepSize: 1
-
- Layout.alignment: Qt.AlignHCenter
- Layout.minimumWidth: 64
- Layout.minimumHeight: 64
- Layout.preferredWidth: 128
- Layout.preferredHeight: 128
- Layout.maximumWidth: 128
- Layout.maximumHeight: 128
- Layout.fillHeight: true
-
- Label {
- text: volumeDial.value.toFixed(0)
- color: "white"
- font.pixelSize: Qt.application.font.pixelSize * 3
- anchors.centerIn: parent
- }
- }
-
- ButtonGroup {
- id: audioSourceButtonGroup
- }
-
- RowLayout {
- Layout.topMargin: 16
-
- GlowingLabel {
- id: radioOption
- text: qsTr("RADIO")
- color: "white"
- font.pixelSize: fontSizeMedium
- horizontalAlignment: Label.AlignLeft
-
- Layout.fillWidth: true
- }
- GlowingLabel {
- text: qsTr("AUX")
- color: colorLightGrey
- font.pixelSize: fontSizeMedium * 0.8
- horizontalAlignment: Label.AlignHCenter
- glowEnabled: false
-
- Layout.alignment: Qt.AlignBottom
- Layout.fillWidth: true
- }
- GlowingLabel {
- text: qsTr("MP3")
- color: colorDarkGrey
- font.pixelSize: fontSizeMedium * 0.6
- horizontalAlignment: Label.AlignRight
- glowEnabled: false
-
- Layout.alignment: Qt.AlignBottom
- Layout.fillWidth: true
- }
- }
-
- Frame {
- id: stationFrame
- leftPadding: 1
- rightPadding: 1
- topPadding: 1
- bottomPadding: 1
-
- Layout.fillWidth: true
- Layout.fillHeight: true
- Layout.preferredHeight: 128
-
- ListView {
- clip: true
- anchors.fill: parent
-
- ScrollIndicator.vertical: ScrollIndicator {
- parent: stationFrame
- anchors.top: parent.top
- anchors.right: parent.right
- anchors.rightMargin: 1
- anchors.bottom: parent.bottom
- }
-
- model: ListModel {
- ListElement { name: "V-Radio"; frequency: "105.5 MHz" }
- ListElement { name: "World News"; frequency: "93.4 MHz" }
- ListElement { name: "TekStep FM"; frequency: "95.0 MHz" }
- ListElement { name: "Classic Radio"; frequency: "89.9 MHz" }
- ListElement { name: "Buena Vista FM"; frequency: "100.8 MHz" }
- ListElement { name: "Drive-by Radio"; frequency: "99.1 MHz" }
- ListElement { name: "Unknown #1"; frequency: "104.5 MHz" }
- ListElement { name: "Unknown #2"; frequency: "91.2 MHz" }
- ListElement { name: "Unknown #3"; frequency: "93.8 MHz" }
- ListElement { name: "Unknown #4"; frequency: "80.4 MHz" }
- ListElement { name: "Unknown #5"; frequency: "101.1 MHz" }
- ListElement { name: "Unknown #6"; frequency: "92.2 MHz" }
- }
- delegate: ItemDelegate {
- id: stationDelegate
- width: parent.width
- height: 22
- text: model.name
- font.pixelSize: fontSizeExtraSmall
- topPadding: 0
- bottomPadding: 0
-
- contentItem: RowLayout {
- Label {
- text: model.name
- font: stationDelegate.font
- horizontalAlignment: Text.AlignLeft
- Layout.fillWidth: true
- }
- Label {
- text: model.frequency
- font: stationDelegate.font
- horizontalAlignment: Text.AlignRight
- Layout.fillWidth: true
- }
- }
- }
- }
- }
-
- Frame {
- Layout.fillWidth: true
-
- RowLayout {
- anchors.fill: parent
-
- Label {
- text: qsTr("Sort by")
- font.pixelSize: fontSizeExtraSmall
-
- Layout.alignment: Qt.AlignTop
- }
-
- ColumnLayout {
- RadioButton {
- text: qsTr("Name")
- font.pixelSize: fontSizeExtraSmall
- }
- RadioButton {
- text: qsTr("Frequency")
- font.pixelSize: fontSizeExtraSmall
- }
- RadioButton {
- text: qsTr("Favourites")
- font.pixelSize: fontSizeExtraSmall
- checked: true
- }
- }
- }
- }
- }
- }
-
- Rectangle {
- color: colorMain
- implicitWidth: 1
- Layout.fillHeight: true
- }
-
- ColumnLayout {
- Layout.preferredWidth: 350
- Layout.fillWidth: true
- Layout.fillHeight: true
-
- GlowingLabel {
- id: timeLabel
- text: qsTr("11:02")
- font.pixelSize: fontSizeExtraLarge
-
- Layout.alignment: Qt.AlignHCenter
-
- GlowingLabel {
- text: qsTr("AM")
- font.pixelSize: fontSizeLarge
- anchors.left: parent.right
- anchors.leftMargin: 8
- }
- }
-
- Label {
- text: qsTr("01/01/2018")
- color: colorLightGrey
- font.pixelSize: fontSizeMedium
-
- Layout.alignment: Qt.AlignHCenter
- Layout.topMargin: 2
- Layout.bottomMargin: 10
- }
-
- Image {
- source: "qrc:/icons/car.png"
- fillMode: Image.PreserveAspectFit
-
- Layout.fillHeight: true
-
- Column {
- x: parent.width * 0.88
- y: parent.height * 0.56
- spacing: 3
-
- Image {
- source: "qrc:/icons/warning.png"
- anchors.horizontalCenter: parent.horizontalCenter
-
- layer.enabled: true
- layer.effect: CustomGlow {
- spread: 0.2
- samples: 40
- color: colorWarning
- }
- }
-
- GlowingLabel {
- text: qsTr("Door open")
- color: colorWarning
- glowColor: Qt.rgba(colorWarning.r, colorWarning.g, colorWarning.b, 0.4)
- }
- }
- }
- }
-
- Rectangle {
- color: colorMain
- implicitWidth: 1
- Layout.fillHeight: true
- }
-
- ColumnLayout {
- Row {
- spacing: 8
-
- Image {
- source: "qrc:/icons/weather.png"
- }
-
- Column {
- spacing: 8
-
- Row {
- anchors.horizontalCenter: parent.horizontalCenter
-
- GlowingLabel {
- id: outsideTempValueLabel
- text: qsTr("31")
- font.pixelSize: fontSizeExtraLarge
- }
-
- GlowingLabel {
- text: qsTr("°C")
- font.pixelSize: Qt.application.font.pixelSize * 2.5
- anchors.baseline: outsideTempValueLabel.baseline
- }
- }
-
- Label {
- text: qsTr("Osaka, Japan")
- color: colorLightGrey
- font.pixelSize: fontSizeMedium
- }
- }
- }
-
- ColumnLayout {
- id: airConRowLayout
- spacing: 8
-
- Layout.preferredWidth: 128
- Layout.preferredHeight: 380
- Layout.fillHeight: true
-
- Item {
- Layout.fillHeight: true
- }
-
- SwitchDelegate {
- text: qsTr("AC")
- leftPadding: 0
- rightPadding: 0
- topPadding: 0
- bottomPadding: 0
-
- Layout.fillWidth: true
- }
-
- // QTBUG-63269
- Item {
- implicitHeight: temperatureValueLabel.implicitHeight
- Layout.fillWidth: true
- Layout.topMargin: 16
-
- Label {
- text: qsTr("Temperature")
- anchors.baseline: temperatureValueLabel.bottom
- anchors.left: parent.left
- }
-
- GlowingLabel {
- id: temperatureValueLabel
- text: qsTr("24°C")
- font.pixelSize: fontSizeLarge
- anchors.right: parent.right
- }
- }
-
- Slider {
- value: 0.35
- Layout.fillWidth: true
- }
-
- // QTBUG-63269
- Item {
- implicitHeight: powerValueLabel.implicitHeight
- Layout.fillWidth: true
- Layout.topMargin: 16
-
- Label {
- text: qsTr("Power")
- anchors.baseline: powerValueLabel.bottom
- anchors.left: parent.left
- }
-
- GlowingLabel {
- id: powerValueLabel
- text: qsTr("10%")
- font.pixelSize: fontSizeLarge
- anchors.right: parent.right
- }
- }
-
- Slider {
- value: 0.25
- Layout.fillWidth: true
- }
-
- SwitchDelegate {
- text: qsTr("Low")
- leftPadding: 0
- rightPadding: 0
- topPadding: 0
- bottomPadding: 0
-
- Layout.fillWidth: true
- Layout.topMargin: 16
- }
-
- SwitchDelegate {
- text: qsTr("High")
- checked: true
- leftPadding: 0
- rightPadding: 0
- topPadding: 0
- bottomPadding: 0
-
- Layout.fillWidth: true
- }
-
- SwitchDelegate {
- text: qsTr("Defog")
- leftPadding: 0
- rightPadding: 0
- topPadding: 0
- bottomPadding: 0
-
- Layout.fillWidth: true
- }
-
- SwitchDelegate {
- text: qsTr("Recirculate")
- leftPadding: 0
- rightPadding: 0
- topPadding: 0
- bottomPadding: 0
-
- Layout.fillWidth: true
- }
-
- Item {
- Layout.fillHeight: true
- }
- }
- }
-
- Container {
- id: rightTabBar
-
- currentIndex: 1
-
- Layout.fillHeight: true
-
- ButtonGroup {
- buttons: rightTabBarContentLayout.children
- }
-
- contentItem: ColumnLayout {
- id: rightTabBarContentLayout
- spacing: 3
-
- Repeater {
- model: rightTabBar.contentModel
- }
- }
-
- Item {
- Layout.fillHeight: true
- }
-
- FeatureButton {
- text: qsTr("Windows")
- icon.name: "windows"
-
- Layout.maximumHeight: navigationFeatureButton.height
- Layout.fillHeight: true
- }
- FeatureButton {
- text: qsTr("Air Con.")
- icon.name: "air-con"
- checked: true
-
- Layout.maximumHeight: navigationFeatureButton.height
- Layout.fillHeight: true
- }
- FeatureButton {
- text: qsTr("Seats")
- icon.name: "seats"
-
- Layout.maximumHeight: navigationFeatureButton.height
- Layout.fillHeight: true
- }
- FeatureButton {
- text: qsTr("Statistics")
- icon.name: "statistics"
-
- Layout.maximumHeight: navigationFeatureButton.height
- Layout.fillHeight: true
- }
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/imagine/automotive/qml/qml.qrc b/examples/quickcontrols2/imagine/automotive/qml/qml.qrc
deleted file mode 100644
index d193fd32..00000000
--- a/examples/quickcontrols2/imagine/automotive/qml/qml.qrc
+++ /dev/null
@@ -1,8 +0,0 @@
-<RCC>
- <qresource prefix="/qml">
- <file>FeatureButton.qml</file>
- <file>GlowingLabel.qml</file>
- <file>CustomGlow.qml</file>
- <file>automotive.qml</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/imagine/automotive/qtquickcontrols2.conf b/examples/quickcontrols2/imagine/automotive/qtquickcontrols2.conf
deleted file mode 100644
index c7fc7a61..00000000
--- a/examples/quickcontrols2/imagine/automotive/qtquickcontrols2.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-[Controls]
-Style=Imagine
-
-[Imagine]
-Path=:/imagine-assets
-
-[Imagine\Palette]
-Text=#6affcd
-ButtonText=#6affcd
-WindowText=#6affcd
diff --git a/examples/quickcontrols2/imagine/musicplayer/doc/images/qtquickcontrols2-musicplayer.png b/examples/quickcontrols2/imagine/musicplayer/doc/images/qtquickcontrols2-musicplayer.png
deleted file mode 100644
index 25b6344f..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/doc/images/qtquickcontrols2-musicplayer.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/doc/src/qtquickcontrols2-musicplayer.qdoc b/examples/quickcontrols2/imagine/musicplayer/doc/src/qtquickcontrols2-musicplayer.qdoc
deleted file mode 100644
index 28d298e7..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/doc/src/qtquickcontrols2-musicplayer.qdoc
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example imagine/musicplayer
- \keyword Qt Quick Controls - Imagine Style Example: Music Player
- \title Qt Quick Controls - Imagine Style Example: Music Player
- \keyword Qt Quick Controls 2 - Imagine Style Example: Music Player
- \ingroup qtquickcontrols2-examples
- \brief An audio player user interface using custom Imagine style assets.
-
- This example demonstrates how custom Imagine style assets
- can be used to style a user interface for an audio player application.
-
- \image qtquickcontrols2-musicplayer.png
-
- \omit
- The assets are generated from a Photoshop file: \e musicplayer.psd.
- This file can found in the \e design folder in the example directory.
- All objects related to a particular asset are collected in a layer group.
- For example, the assets for Button's background element are under a layer group with the following name:
-
- \badcode
- 100% button-background.9.png, 200% button-background@2x.9.png, 300% button-background@3x.9.png, 400% button-background@4x.9.png
- \endcode
-
- Using Photoshop's \l {Generate Image Assets}{https://helpx.adobe.com/photoshop/using/generate-assets-layers.html} feature,
- the size and name for each asset are encoded into the name of the layer group.
-
- Where applicable, \l {Smart Objects}{https://helpx.adobe.com/photoshop/using/create-smart-objects.html}
- are used to reduce duplication for common objects such as 9-patch lines.
- \endomit
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/icons.qrc b/examples/quickcontrols2/imagine/musicplayer/icons/icons.qrc
deleted file mode 100644
index 870b4445..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/icons.qrc
+++ /dev/null
@@ -1,40 +0,0 @@
-<RCC>
- <qresource prefix="/icons">
- <file>musicplayer/index.theme</file>
- <file>musicplayer/32x32/bluetooth.png</file>
- <file>musicplayer/32x32/cart.png</file>
- <file>musicplayer/32x32/cloud.png</file>
- <file>musicplayer/32x32/filter.png</file>
- <file>musicplayer/32x32/folder.png</file>
- <file>musicplayer/32x32/message.png</file>
- <file>musicplayer/32x32/music.png</file>
- <file>musicplayer/32x32/next.png</file>
- <file>musicplayer/32x32/pause.png</file>
- <file>musicplayer/32x32/power.png</file>
- <file>musicplayer/32x32/previous.png</file>
- <file>musicplayer/32x32/repeat.png</file>
- <file>musicplayer/32x32/save.png</file>
- <file>musicplayer/32x32/settings.png</file>
- <file>musicplayer/32x32/shuffle.png</file>
- <file>musicplayer/32x32/stop.png</file>
- <file>musicplayer/32x32@2/bluetooth.png</file>
- <file>musicplayer/32x32@2/cart.png</file>
- <file>musicplayer/32x32@2/cloud.png</file>
- <file>musicplayer/32x32@2/filter.png</file>
- <file>musicplayer/32x32@2/folder.png</file>
- <file>musicplayer/32x32@2/grid.png</file>
- <file>musicplayer/32x32@2/message.png</file>
- <file>musicplayer/32x32@2/music.png</file>
- <file>musicplayer/32x32@2/next.png</file>
- <file>musicplayer/32x32@2/pause.png</file>
- <file>musicplayer/32x32@2/power.png</file>
- <file>musicplayer/32x32@2/previous.png</file>
- <file>musicplayer/32x32@2/repeat.png</file>
- <file>musicplayer/32x32@2/save.png</file>
- <file>musicplayer/32x32@2/settings.png</file>
- <file>musicplayer/32x32@2/shuffle.png</file>
- <file>musicplayer/32x32@2/stop.png</file>
- <file>musicplayer/32x32/favorite.png</file>
- <file>musicplayer/32x32@2/favorite.png</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/bluetooth.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/bluetooth.png
deleted file mode 100644
index 925f564c..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/bluetooth.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cart.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cart.png
deleted file mode 100644
index 4d5ad099..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cart.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cloud.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cloud.png
deleted file mode 100644
index 62ef5118..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/cloud.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/favorite.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/favorite.png
deleted file mode 100644
index 16ea84de..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/favorite.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/filter.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/filter.png
deleted file mode 100644
index 4472cead..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/filter.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/folder.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/folder.png
deleted file mode 100644
index 5dd05778..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/folder.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/message.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/message.png
deleted file mode 100644
index 1d93b3c6..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/message.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/music.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/music.png
deleted file mode 100644
index 44489213..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/music.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/next.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/next.png
deleted file mode 100644
index ab9164e8..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/next.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/pause.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/pause.png
deleted file mode 100644
index 9c9ef8fa..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/pause.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/power.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/power.png
deleted file mode 100644
index 8f7d0c77..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/power.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/previous.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/previous.png
deleted file mode 100644
index 3a0880fd..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/previous.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/repeat.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/repeat.png
deleted file mode 100644
index 7c8e8c1c..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/repeat.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/save.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/save.png
deleted file mode 100644
index c0b27483..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/save.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/settings.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/settings.png
deleted file mode 100644
index 7992146a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/shuffle.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/shuffle.png
deleted file mode 100644
index 885782a2..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/shuffle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/stop.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/stop.png
deleted file mode 100644
index 3e9c3327..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32/stop.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/bluetooth.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/bluetooth.png
deleted file mode 100644
index 2e70afc3..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/bluetooth.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cart.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cart.png
deleted file mode 100644
index 5717dd65..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cart.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cloud.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cloud.png
deleted file mode 100644
index ce5ab9f9..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/cloud.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/favorite.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/favorite.png
deleted file mode 100644
index ddc9aa45..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/favorite.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/filter.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/filter.png
deleted file mode 100644
index 3632c556..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/filter.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/folder.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/folder.png
deleted file mode 100644
index 49d41e20..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/folder.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/grid.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/grid.png
deleted file mode 100644
index 8a1624e7..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/grid.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/message.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/message.png
deleted file mode 100644
index 6650f26b..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/message.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/music.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/music.png
deleted file mode 100644
index 2cb8d49a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/music.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/next.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/next.png
deleted file mode 100644
index d7bb4b27..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/next.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/pause.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/pause.png
deleted file mode 100644
index 8a081d02..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/pause.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/power.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/power.png
deleted file mode 100644
index 1201e55b..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/power.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/previous.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/previous.png
deleted file mode 100644
index 4236afdb..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/previous.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/repeat.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/repeat.png
deleted file mode 100644
index c8cb06d8..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/repeat.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/save.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/save.png
deleted file mode 100644
index 448b25e4..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/save.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/settings.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/settings.png
deleted file mode 100644
index 12a0cf6b..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/shuffle.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/shuffle.png
deleted file mode 100644
index 22b901cc..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/shuffle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/stop.png b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/stop.png
deleted file mode 100644
index 0521a943..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/32x32@2/stop.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/icons.svg b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/icons.svg
deleted file mode 100644
index 4cede992..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/icons.svg
+++ /dev/null
@@ -1,648 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- version="1.1"
- id="svg4485"
- width="1116.5374"
- height="64"
- viewBox="0 0 1116.5374 63.999997"
- sodipodi:docname="icons.svg"
- inkscape:version="0.92.2 (5c3e80d, 2017-08-06)">
- <metadata
- id="metadata4491">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs4489" />
- <sodipodi:namedview
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1"
- objecttolerance="10"
- gridtolerance="10"
- guidetolerance="10"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:window-width="1920"
- inkscape:window-height="1017"
- id="namedview4487"
- showgrid="true"
- inkscape:zoom="1.9019737"
- inkscape:cx="833.25423"
- inkscape:cy="74.046593"
- inkscape:window-x="-8"
- inkscape:window-y="-8"
- inkscape:window-maximized="1"
- inkscape:current-layer="svg4485"
- inkscape:snap-grids="false"
- inkscape:object-nodes="false"
- fit-margin-top="2.7755576e-017"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0">
- <inkscape:grid
- type="xygrid"
- id="grid4517"
- originx="-8.3788162"
- originy="-6.3974667" />
- </sodipodi:namedview>
- <g
- id="g5472"
- transform="translate(0,3.2401047)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\grid.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5318">
- <rect
- y="998.53882"
- x="27.755102"
- height="9.2473469"
- width="9.2473469"
- id="rect4501"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- <rect
- y="1014.5388"
- x="11.755102"
- height="9.2473469"
- width="9.2473469"
- id="rect4513"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect4515"
- width="9.2473469"
- height="9.2473469"
- x="27.755102"
- y="1014.5388" />
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect4519"
- width="9.2473469"
- height="9.2473469"
- x="11.755102"
- y="998.53882" />
- </g>
- <rect
- y="28.759895"
- x="0"
- height="32"
- width="32"
- id="rect5360"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g5478"
- transform="translate(0,3.6478805)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32\settings.png"
- inkscape:export-xdpi="96"
- inkscape:export-ydpi="96">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5322">
- <path
- style="fill:none;stroke:#000000;stroke-width:5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="M 84.166529,1022.8327 69.433468,1008.4131"
- id="path4507"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 64.778344,1000.0771 c 0.15838,-2.21589 0.892654,-3.97239 4.064921,-3.9244 l 5.79089,5.4089 -0.06518,5.0971 -6.56108,6.4293 -4.0079,0.3962 -6.391837,-5.0204 c 0.003,-1.8969 0.615654,-4.5976 3.391837,-4.2539 l 3.804082,2.5118 c 1.756369,-0.3456 2.524226,-1.6258 3.156295,-3.1014 z"
- id="path4523"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccccccccc" />
- </g>
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5362"
- width="32"
- height="32"
- x="47.771301"
- y="28.352119" />
- </g>
- <g
- id="g5484"
- transform="translate(0,1.8732223)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\filter.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5326">
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 124.017,1012.8017 9.67769,-13.7927 H 108.6116 l 9.37299,13.931 v 13.1097 h 6.03241 z"
- id="path4509"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccccc" />
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 116.70205,1019.6217 h 7.31466"
- id="path4525"
- inkscape:connector-curvature="0" />
- </g>
- <rect
- y="30.126778"
- x="96.808228"
- height="32"
- width="32"
- id="rect5364"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g5490"
- transform="translate(0,3.322319)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\message.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5330">
- <path
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- d="m 155.38109,1005.6573 14.74014,12.3019 14.29684,-12.3019 v 16.8459 h -29.03698 z"
- id="rect4527"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccccc" />
- <path
- sodipodi:nodetypes="cccccc"
- inkscape:connector-curvature="0"
- id="path4532"
- d="m 155.38109,1002.206 14.74014,12.8565 14.29684,-12.8565 v -2.5487 h -29.03698 z"
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5366"
- width="32"
- height="32"
- x="145.52081"
- y="28.677681" />
- </g>
- <g
- id="g5497"
- transform="translate(0,3.5476608)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\music.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5335">
- <circle
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="path4534"
- cx="210.02449"
- cy="1019.4025"
- r="5.7991834" />
- <circle
- r="5.7991834"
- cy="1019.4025"
- cx="227.51147"
- id="circle4536"
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- <path
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:2.77122235;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- d="m 214.45548,1019.7112 v -19.81316 c 0,-1.11042 0.86314,-2.00436 1.93529,-2.00436 h 13.59886 c 1.07214,0 1.93528,0.89394 1.93528,2.00436 v 19.81316"
- id="rect4538"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cssssc" />
- </g>
- <rect
- y="28.452339"
- x="194.38922"
- height="32"
- width="32"
- id="rect5368"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g5501"
- transform="translate(0,3.1662521)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\cloud.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <path
- sodipodi:nodetypes="cccscc"
- inkscape:connector-curvature="0"
- id="rect4181"
- d="m 251.48461,45.034419 c 0.4638,-10.8715 12.40207,-12.59447 15.43885,-2.5078 2.73388,0.2127 5.14555,2.6373 5.18665,5.068 0,3.4504 -2.90742,6.2281 -6.51889,6.2281 h -16.54418 c -5.83464,-1.7769 -4.57322,-9.6738 2.43757,-8.7883 z"
- style="opacity:1;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.46805668;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5370"
- width="32"
- height="32"
- x="242.73279"
- y="28.833748" />
- </g>
- <g
- id="g5506"
- transform="translate(0,2.188591)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32\bluetooth.png"
- inkscape:export-xdpi="96"
- inkscape:export-ydpi="96">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5338">
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 302.67171,1006.3777 22.49812,12.0249 -9.75572,5.6324 v -23.642 l 9.85555,5.6901 -22.32088,12.5411"
- id="path5197"
- inkscape:connector-curvature="0" />
- </g>
- <rect
- y="29.811409"
- x="290.75372"
- height="32"
- width="32"
- id="rect5372"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g5514"
- transform="translate(0,3.6180954)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\cart.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5344">
- <rect
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.30289125;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5199"
- width="19.591835"
- height="14.419591"
- x="355.70938"
- y="1002.3185" />
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 373.79839,1003.2635 v -5.25054 h 7.75837"
- id="path5201"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccc" />
- <circle
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="path5207"
- cx="357.12"
- cy="1020.8915"
- r="2.6644897" />
- <circle
- r="2.6644897"
- cy="1020.8915"
- cx="374.64978"
- id="circle5209"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5374"
- width="32"
- height="32"
- x="342.87732"
- y="28.381905" />
- </g>
- <g
- id="g5520"
- transform="translate(0,3.3700485)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32\power.png"
- inkscape:export-xdpi="96"
- inkscape:export-ydpi="96">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5348">
- <path
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- d="m 423.9111,999.19805 c 4.9899,1.81935 7.7689,6.19995 7.7689,11.81915 0,7.1847 -5.8243,13.009 -13.009,13.009 -7.1847,0 -13.009,-5.8243 -13.009,-13.009 0,-5.2414 3.0998,-9.7589 7.5661,-11.81915"
- id="path5211"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cscsc" />
- <rect
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.90877056;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5214"
- width="3"
- height="14.321534"
- x="417.20502"
- y="996.53888" />
- </g>
- <rect
- y="28.629951"
- x="394.29221"
- height="32"
- width="32"
- id="rect5376"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g5528"
- transform="translate(0,1.3681564)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\save.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="translate(-8.3787758,-966.40258)"
- id="g5354">
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 461.313,1007.55 7.71825,-7.7187 H 486.75 v 26.4062 h -25.437 z"
- id="path5250"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccccc" />
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 466.625,1002.4875 v 5.625 h 14.1875 v -7.5625"
- id="path5252"
- inkscape:connector-curvature="0" />
- <rect
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:2.85498571;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5254"
- width="3"
- height="3"
- x="469.43436"
- y="1002.7332" />
- <path
- inkscape:connector-curvature="0"
- id="path5256"
- d="m 466.625,1025.1125 v -7.9375 h 14.1875 v 7.875"
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- sodipodi:nodetypes="cccc" />
- </g>
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5378"
- width="32"
- height="32"
- x="449.65271"
- y="30.631844" />
- </g>
- <g
- id="g5534"
- transform="translate(0,2.5602951)"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32\folder.png"
- inkscape:export-xdpi="96"
- inkscape:export-ydpi="96">
- <g
- transform="translate(-8.3787758,-972.40258)"
- id="g5358">
- <path
- id="rect5216"
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- d="m 510.7344,1007.7803 h 6.307 c 1.108,0 2,0.892 2,2 0.058,1.9158 0.4001,5.5746 -2,5.6471 l -6.307,-4e-4 h -2.0004 v -1.9996 l 4e-4,-3.6471 c 1e-4,-1.108 0.892,-2 2,-2 z m 3.3587,3.7123 h 13.2014 c 1.108,0 2.001,0.8774 2.0005,1.9674 v 1.967 h -2.0005 l -13.2014,5e-4 c -1.108,0 -2,-0.8775 -2,-1.9674 0,-1.09 0.892,-1.9674 2,-1.9674 z"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="sscccccsscssccsssc" />
- <path
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- d="m 508.8555,1017.2315 v 8.6728 c 0,1.108 0.892,2 2,2 h 16.5957 c 1.108,0 2,-0.892 2,-2 v -8.6728 z"
- id="rect5242"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="csssscc" />
- </g>
- <rect
- y="29.439705"
- x="494.71381"
- height="32"
- width="32"
- id="rect5380"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g3966"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\favorite.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <path
- sodipodi:nodetypes="ccc"
- inkscape:connector-curvature="0"
- id="path5258"
- d="m 679.76049,43.397888 c -11.16654,-4.90607 -6.54023,-14.887481 0.0528,-8.582499 6.18385,-6.259313 11.86465,3.625989 -0.0528,8.582499 z"
- style="fill:none;stroke:#000000;stroke-width:2.2720654;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <rect
- y="22.143074"
- x="663.8728"
- height="32"
- width="32"
- id="rect5399"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g3970"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32\stop.png"
- inkscape:export-xdpi="96"
- inkscape:export-ydpi="96">
- <rect
- ry="2"
- rx="2"
- y="30.209908"
- x="730.55872"
- height="13.875"
- width="13.875"
- id="rect5260"
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5405"
- width="32"
- height="32"
- x="721.49622"
- y="21.147408" />
- </g>
- <g
- id="g3976"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32\previous.png"
- inkscape:export-xdpi="96"
- inkscape:export-ydpi="96">
- <g
- transform="matrix(0.92512795,0,0,0.92512795,49.646365,-1594.3495)"
- id="g5275">
- <path
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.84269726;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- inkscape:transform-center-x="1.6220757"
- inkscape:transform-center-y="-9.5697762e-005"
- d="m 809.37017,1768.9096 h -8.55767 -8.55877 v -4.1758 l 8.55877,-10.6475 8.55767,10.6475 z"
- id="path5264"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccccc"
- transform="matrix(0,-0.65656157,0.65656157,0,-358.61037,2289.4994)" />
- <path
- sodipodi:nodetypes="ccccccc"
- inkscape:connector-curvature="0"
- id="path5267"
- d="m 810.35019,1758.0981 v 5.6186 5.6193 h -2.74167 l -6.99073,-5.6193 6.99073,-5.6186 z"
- inkscape:transform-center-y="-9.5697762e-005"
- inkscape:transform-center-x="1.6220757"
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.20984423;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <rect
- y="21.314461"
- x="777.32397"
- height="32"
- width="32"
- id="rect5407"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g3988"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\next.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="matrix(-0.92512795,0,0,0.92512795,1729.0016,-1594.3495)"
- id="g5281">
- <path
- transform="matrix(0,-0.65656157,0.65656157,0,-358.61037,2289.4994)"
- sodipodi:nodetypes="ccccccc"
- inkscape:connector-curvature="0"
- id="path5277"
- d="m 809.37017,1768.9096 h -8.55767 -8.55877 v -4.1758 l 8.55877,-10.6475 8.55767,10.6475 z"
- inkscape:transform-center-y="-9.5697762e-005"
- inkscape:transform-center-x="1.6220757"
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.84269726;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- <path
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.20984423;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- inkscape:transform-center-x="1.6220757"
- inkscape:transform-center-y="-9.5697762e-005"
- d="m 810.35019,1758.0981 v 5.6186 5.6193 h -2.74167 l -6.99073,-5.6193 6.99073,-5.6186 z"
- id="path5279"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccccc" />
- </g>
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5409"
- width="32"
- height="32"
- x="969.32397"
- y="21.314461" />
- </g>
- <g
- id="g3996"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\repeat.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="matrix(0.61777671,0,0,0.61777671,393.26213,-582.60358)"
- id="g5386">
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 1057,996.9258 h -11 c -1.7949,2e-4 -3.2498,1.4551 -3.25,3.25 v 3.375"
- id="path5283"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccc" />
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 1055.4787,992.6896 3.375,4.25 -3.75,3.875"
- id="path5288"
- inkscape:connector-curvature="0" />
- <path
- sodipodi:nodetypes="cccc"
- inkscape:connector-curvature="0"
- id="path5290"
- d="m 1044.6035,1011.3192 h 11 c 1.7949,-2e-4 3.2498,-1.4551 3.25,-3.25 v -3.375"
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <path
- inkscape:connector-curvature="0"
- id="path5292"
- d="m 1046.1248,1015.5554 -3.375,-4.25 3.75,-3.875"
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- </g>
- <rect
- y="21.719917"
- x="1026.423"
- height="32"
- width="32"
- id="rect5411"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <g
- id="g4005"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\shuffle.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="matrix(0.6410961,0,0,0.6410961,389.61554,-606.18813)"
- id="g5393">
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 1101,997.8001 c 10.7776,0 1.9407,12.75 14.125,12.75"
- id="path5294"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cc" />
- <path
- inkscape:connector-curvature="0"
- id="path5298"
- d="m 1113.4787,992.6896 3.375,4.25 -3.75,3.875"
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 1113.4787,1006.4897 3.375,4.25 -3.75,3.875"
- id="path5300"
- inkscape:connector-curvature="0" />
- <path
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 1101.2501,1010.2375 c 1.479,0.07 2.6346,-0.5915 3.875,-1.6562"
- id="path5302"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cc" />
- <path
- sodipodi:nodetypes="cc"
- inkscape:connector-curvature="0"
- id="path5312"
- d="m 1113.6825,996.9157 c -1.479,-0.07 -2.6346,0.5915 -3.875,1.6562"
- style="fill:none;stroke:#000000;stroke-width:3;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
- </g>
- <rect
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5413"
- width="32"
- height="32"
- x="1084.5374"
- y="21.248909" />
- </g>
- <g
- id="g3982"
- inkscape:export-filename="C:\dev\qqc2-technical-style-demo\icons\technical\32x32@2\pause.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <g
- transform="matrix(0.26732473,0,0,0.26732473,607.52158,-229.58324)"
- id="g5397">
- <rect
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.19984221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal"
- id="rect5269"
- width="14.495689"
- height="54.800774"
- x="877.34277"
- y="971.0022" />
- <rect
- y="971.0022"
- x="904.9892"
- height="54.800774"
- width="14.495689"
- id="rect5271"
- style="opacity:1;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.19984221;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
- <rect
- y="21.314461"
- x="831.68982"
- height="32"
- width="32"
- id="rect5458"
- style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.49999988;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:normal" />
- </g>
-</svg>
diff --git a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/index.theme b/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/index.theme
deleted file mode 100644
index 25232935..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/icons/musicplayer/index.theme
+++ /dev/null
@@ -1,14 +0,0 @@
-[Icon Theme]
-Name=Music Player
-Comment=Icon theme for the Qt Quick Controls 2 Music Player Imagine Style Example
-
-Directories=32x32,32x32@2
-
-[32x32]
-Size=32
-Type=Fixed
-
-[32x32@2]
-Size=32
-Scale=2
-Type=Fixed
diff --git a/examples/quickcontrols2/imagine/musicplayer/images/album-cover.jpg b/examples/quickcontrols2/imagine/musicplayer/images/album-cover.jpg
deleted file mode 100644
index 48bd6231..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/images/album-cover.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/applicationwindow-background.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/applicationwindow-background.png
deleted file mode 100644
index 036bf746..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/applicationwindow-background.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered.9.png
deleted file mode 100644
index c275d324..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered@2x.9.png
deleted file mode 100644
index eec285f3..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked.9.png
deleted file mode 100644
index 2d284a5b..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked@2x.9.png
deleted file mode 100644
index fec385f5..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled.9.png
deleted file mode 100644
index bcad1470..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled@2x.9.png
deleted file mode 100644
index 03aba153..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered.9.png
deleted file mode 100644
index 962cf677..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered@2x.9.png
deleted file mode 100644
index 841c0064..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed.9.png
deleted file mode 100644
index f97f42b8..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed@2x.9.png
deleted file mode 100644
index 97058349..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background.9.png
deleted file mode 100644
index 74a8574f..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background@2x.9.png
deleted file mode 100644
index 25163385..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/button-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered.9.png
deleted file mode 100644
index f9f90df4..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered@2x.9.png
deleted file mode 100644
index a4be50e1..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open.9.png
deleted file mode 100644
index 147231ec..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open@2x.9.png
deleted file mode 100644
index 0a978572..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-open@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed.9.png
deleted file mode 100644
index 7726198a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed@2x.9.png
deleted file mode 100644
index d64d4052..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background.9.png
deleted file mode 100644
index e919d50a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background@2x.9.png
deleted file mode 100644
index 5effba7e..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered.png
deleted file mode 100644
index 78b06505..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered@2x.png
deleted file mode 100644
index ec3c8734..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open.png
deleted file mode 100644
index 7a831632..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open@2x.png
deleted file mode 100644
index 47c664a2..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-open@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed.png
deleted file mode 100644
index 3340294f..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed@2x.png
deleted file mode 100644
index aa35b882..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator.png
deleted file mode 100644
index 2c7f5578..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator@2x.png
deleted file mode 100644
index 20b9c44c..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup.9.png
deleted file mode 100644
index cae75cd7..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup@2x.9.png
deleted file mode 100644
index 392607bc..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/combobox-popup@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered.png
deleted file mode 100644
index ac614678..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered@2x.png
deleted file mode 100644
index b13783c2..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed.png
deleted file mode 100644
index 22e3958d..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed@2x.png
deleted file mode 100644
index 72f6fadd..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background.png
deleted file mode 100644
index 4d9eb023..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background@2x.png
deleted file mode 100644
index 7ca50be8..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed.png
deleted file mode 100644
index 39cd2b82..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed@2x.png
deleted file mode 100644
index 01556b92..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle.png
deleted file mode 100644
index 8fb85691..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle@2x.png
deleted file mode 100644
index f6dc4c90..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/dial-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background.9.png
deleted file mode 100644
index aa305355..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background@2x.9.png
deleted file mode 100644
index b4a4bc9d..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/frame-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/imagine-assets.qrc b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/imagine-assets.qrc
deleted file mode 100644
index 7bda4995..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/imagine-assets.qrc
+++ /dev/null
@@ -1,113 +0,0 @@
-<RCC>
- <qresource prefix="/imagine-assets">
- <file>applicationwindow-background.png</file>
- <file>button-background-checked-hovered.9.png</file>
- <file>button-background-checked-hovered@2x.9.png</file>
- <file>button-background-checked.9.png</file>
- <file>button-background-checked@2x.9.png</file>
- <file>button-background-disabled.9.png</file>
- <file>button-background-disabled@2x.9.png</file>
- <file>button-background-hovered.9.png</file>
- <file>button-background-hovered@2x.9.png</file>
- <file>button-background-pressed.9.png</file>
- <file>button-background-pressed@2x.9.png</file>
- <file>button-background.9.png</file>
- <file>button-background@2x.9.png</file>
- <file>combobox-background-hovered.9.png</file>
- <file>combobox-background-hovered@2x.9.png</file>
- <file>combobox-background-open.9.png</file>
- <file>combobox-background-open@2x.9.png</file>
- <file>combobox-background-pressed.9.png</file>
- <file>combobox-background-pressed@2x.9.png</file>
- <file>combobox-background.9.png</file>
- <file>combobox-background@2x.9.png</file>
- <file>combobox-indicator-hovered.png</file>
- <file>combobox-indicator-hovered@2x.png</file>
- <file>combobox-indicator-open.png</file>
- <file>combobox-indicator-open@2x.png</file>
- <file>combobox-indicator-pressed.png</file>
- <file>combobox-indicator-pressed@2x.png</file>
- <file>combobox-indicator.png</file>
- <file>combobox-indicator@2x.png</file>
- <file>combobox-popup.9.png</file>
- <file>combobox-popup@2x.9.png</file>
- <file>dial-background-hovered.png</file>
- <file>dial-background-hovered@2x.png</file>
- <file>dial-background-pressed.png</file>
- <file>dial-background-pressed@2x.png</file>
- <file>dial-background.png</file>
- <file>dial-background@2x.png</file>
- <file>dial-handle-pressed.png</file>
- <file>dial-handle-pressed@2x.png</file>
- <file>dial-handle.png</file>
- <file>dial-handle@2x.png</file>
- <file>frame-background.9.png</file>
- <file>frame-background@2x.9.png</file>
- <file>itemdelegate-background-checked.9.png</file>
- <file>itemdelegate-background-checked@2x.9.png</file>
- <file>itemdelegate-background-disabled.9.png</file>
- <file>itemdelegate-background-disabled@2x.9.png</file>
- <file>itemdelegate-background-hovered.9.png</file>
- <file>itemdelegate-background-hovered@2x.9.png</file>
- <file>itemdelegate-background-pressed.9.png</file>
- <file>itemdelegate-background-pressed@2x.9.png</file>
- <file>itemdelegate-background.9.png</file>
- <file>itemdelegate-background@2x.9.png</file>
- <file>roundbutton-background-checked-hovered.png</file>
- <file>roundbutton-background-checked-hovered@2x.png</file>
- <file>roundbutton-background-checked.png</file>
- <file>roundbutton-background-checked@2x.png</file>
- <file>roundbutton-background-disabled.png</file>
- <file>roundbutton-background-disabled@2x.png</file>
- <file>roundbutton-background-hovered.png</file>
- <file>roundbutton-background-hovered@2x.png</file>
- <file>roundbutton-background-pressed.png</file>
- <file>roundbutton-background-pressed@2x.png</file>
- <file>roundbutton-background.png</file>
- <file>roundbutton-background@2x.png</file>
- <file>scrollbar-handle-interactive-hovered.png</file>
- <file>scrollbar-handle-interactive-hovered@2x.png</file>
- <file>scrollbar-handle-interactive-pressed.png</file>
- <file>scrollbar-handle-interactive-pressed@2x.png</file>
- <file>scrollbar-handle-interactive.png</file>
- <file>scrollbar-handle-interactive@2x.png</file>
- <file>slider-background-horizontal-disabled.9.png</file>
- <file>slider-background-horizontal-disabled@2x.9.png</file>
- <file>slider-background-horizontal.9.png</file>
- <file>slider-background-horizontal@2x.9.png</file>
- <file>slider-background-vertical-disabled.9.png</file>
- <file>slider-background-vertical-disabled@2x.9.png</file>
- <file>slider-background-vertical.9.png</file>
- <file>slider-background-vertical@2x.9.png</file>
- <file>slider-handle-disabled.png</file>
- <file>slider-handle-disabled@2x.png</file>
- <file>slider-handle-hovered.png</file>
- <file>slider-handle-hovered@2x.png</file>
- <file>slider-handle.png</file>
- <file>slider-handle@2x.png</file>
- <file>slider-progress-horizontal.9.png</file>
- <file>slider-progress-horizontal@2x.9.png</file>
- <file>slider-progress-vertical-disabled.9.png</file>
- <file>slider-progress-vertical-disabled@2x.9.png</file>
- <file>slider-progress-vertical.9.png</file>
- <file>slider-progress-vertical@2x.9.png</file>
- <file>textfield-background-disabled.9.png</file>
- <file>textfield-background-disabled@2x.9.png</file>
- <file>textfield-background.9.png</file>
- <file>textfield-background@2x.9.png</file>
- <file>toolbar-background.9.png</file>
- <file>toolbar-background@2x.9.png</file>
- <file>toolbutton-background-checked-hovered.9.png</file>
- <file>toolbutton-background-checked-hovered@2x.9.png</file>
- <file>toolbutton-background-checked.9.png</file>
- <file>toolbutton-background-checked@2x.9.png</file>
- <file>toolbutton-background-hovered.9.png</file>
- <file>toolbutton-background-hovered@2x.9.png</file>
- <file>toolbutton-background-pressed.9.png</file>
- <file>toolbutton-background-pressed@2x.9.png</file>
- <file>toolbutton-background.9.png</file>
- <file>toolbutton-background@2x.9.png</file>
- <file>tooltip-background.9.png</file>
- <file>tooltip-background@2x.9.png</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked.9.png
deleted file mode 100644
index a83c2577..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked@2x.9.png
deleted file mode 100644
index ded49620..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled.9.png
deleted file mode 100644
index 2047e888..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled@2x.9.png
deleted file mode 100644
index 422b2832..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered.9.png
deleted file mode 100644
index 5c436be5..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered@2x.9.png
deleted file mode 100644
index 2b98dc22..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed.9.png
deleted file mode 100644
index c3c2ac1d..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed@2x.9.png
deleted file mode 100644
index 3b7ba51a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background.9.png
deleted file mode 100644
index b926d423..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background@2x.9.png
deleted file mode 100644
index 422b2832..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/itemdelegate-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered.png
deleted file mode 100644
index 39e71430..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered@2x.png
deleted file mode 100644
index dd9610d1..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked.png
deleted file mode 100644
index 7020a0f5..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked@2x.png
deleted file mode 100644
index b24dc0bf..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled.png
deleted file mode 100644
index 7f60101d..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled@2x.png
deleted file mode 100644
index ff0459ed..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered.png
deleted file mode 100644
index 363d35e6..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered@2x.png
deleted file mode 100644
index 61f109b7..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed.png
deleted file mode 100644
index 7ca9d6c9..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed@2x.png
deleted file mode 100644
index 5b35d944..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background.png
deleted file mode 100644
index 47f9decd..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background@2x.png
deleted file mode 100644
index f6944b7a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/roundbutton-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered.png
deleted file mode 100644
index 050e9edb..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered@2x.png
deleted file mode 100644
index 096c750e..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed.png
deleted file mode 100644
index 2fd4bd65..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed@2x.png
deleted file mode 100644
index f5c9fe44..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive.png
deleted file mode 100644
index 45edd220..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive@2x.png
deleted file mode 100644
index 2e02f30a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/scrollbar-handle-interactive@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled.9.png
deleted file mode 100644
index 0a3e6d1a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled@2x.9.png
deleted file mode 100644
index 174c03fd..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal.9.png
deleted file mode 100644
index a4324dad..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal@2x.9.png
deleted file mode 100644
index 8a7127c8..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled.9.png
deleted file mode 100644
index ee4486c7..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled@2x.9.png
deleted file mode 100644
index b48efcd4..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical.9.png
deleted file mode 100644
index f3f8f75d..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical@2x.9.png
deleted file mode 100644
index 76397566..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-background-vertical@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled.png
deleted file mode 100644
index 1157718c..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled@2x.png
deleted file mode 100644
index b9c55bdd..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered.png
deleted file mode 100644
index 50ffc782..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered@2x.png
deleted file mode 100644
index a89d05e4..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle.png
deleted file mode 100644
index d9334948..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle@2x.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle@2x.png
deleted file mode 100644
index a8c59db8..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal.9.png
deleted file mode 100644
index 08bd59da..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal@2x.9.png
deleted file mode 100644
index ce1ca6e5..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled.9.png
deleted file mode 100644
index f906bb7d..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled@2x.9.png
deleted file mode 100644
index 2ec0f792..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical.9.png
deleted file mode 100644
index 7797c4ed..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical@2x.9.png
deleted file mode 100644
index 891eb100..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/slider-progress-vertical@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled.9.png
deleted file mode 100644
index 0de72f69..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled@2x.9.png
deleted file mode 100644
index 6ed5134b..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background.9.png
deleted file mode 100644
index d9396673..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background@2x.9.png
deleted file mode 100644
index 322b6c40..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/textfield-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background.9.png
deleted file mode 100644
index b1e8a08b..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background@2x.9.png
deleted file mode 100644
index d3a26620..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbar-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered.9.png
deleted file mode 100644
index dcd5e0db..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered@2x.9.png
deleted file mode 100644
index f083b78e..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked.9.png
deleted file mode 100644
index 154b7d02..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked@2x.9.png
deleted file mode 100644
index 8c60ca6d..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered.9.png
deleted file mode 100644
index 52c7321a..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered@2x.9.png
deleted file mode 100644
index 8eda3fc4..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed.9.png
deleted file mode 100644
index e1c29027..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed@2x.9.png
deleted file mode 100644
index 604a3136..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background.9.png
deleted file mode 100644
index 205b5f70..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background@2x.9.png
deleted file mode 100644
index 7c97b8d1..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/toolbutton-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background.9.png
deleted file mode 100644
index bc56e3bd..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background@2x.9.png b/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background@2x.9.png
deleted file mode 100644
index 72990330..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/imagine-assets/tooltip-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/imagine/musicplayer/musicplayer.cpp b/examples/quickcontrols2/imagine/musicplayer/musicplayer.cpp
deleted file mode 100644
index a9fc2b9e..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/musicplayer.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QSettings>
-#include <QIcon>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setApplicationName("Music Player");
- QGuiApplication::setOrganizationName("QtProject");
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
-
- QGuiApplication app(argc, argv);
-
- QIcon::setThemeName("musicplayer");
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/musicplayer.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/imagine/musicplayer/musicplayer.pro b/examples/quickcontrols2/imagine/musicplayer/musicplayer.pro
deleted file mode 100644
index b1970ee9..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/musicplayer.pro
+++ /dev/null
@@ -1,16 +0,0 @@
-TEMPLATE = app
-TARGET = musicplayer
-QT += quick quickcontrols2
-
-SOURCES += \
- musicplayer.cpp
-
-RESOURCES += \
- icons/icons.qrc \
- images/album-cover.jpg \
- imagine-assets/imagine-assets.qrc \
- qtquickcontrols2.conf \
- musicplayer.qml
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/imagine/musicplayer
-INSTALLS += target
diff --git a/examples/quickcontrols2/imagine/musicplayer/musicplayer.qml b/examples/quickcontrols2/imagine/musicplayer/musicplayer.qml
deleted file mode 100644
index de4fd281..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/musicplayer.qml
+++ /dev/null
@@ -1,466 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.0
-
-ApplicationWindow {
- id: window
- width: 1280
- height: 720
- visible: true
- title: "Qt Quick Controls 2 - Imagine Style Example: Music Player"
-
- Component.onCompleted: {
- x = Screen.width / 2 - width / 2
- y = Screen.height / 2 - height / 2
- }
-
- Shortcut {
- sequence: "Ctrl+Q"
- onActivated: Qt.quit()
- }
-
- header: ToolBar {
- RowLayout {
- id: headerRowLayout
- anchors.fill: parent
- spacing: 0
-
- ToolButton {
- icon.name: "grid"
- }
- ToolButton {
- icon.name: "settings"
- }
- ToolButton {
- icon.name: "filter"
- }
- ToolButton {
- icon.name: "message"
- }
- ToolButton {
- icon.name: "music"
- }
- ToolButton {
- icon.name: "cloud"
- }
- ToolButton {
- icon.name: "bluetooth"
- }
- ToolButton {
- icon.name: "cart"
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- ToolButton {
- icon.name: "power"
- onClicked: Qt.quit()
- }
- }
- }
-
- Label {
- text: "Qtify"
- font.pixelSize: Qt.application.font.pixelSize * 1.3
- anchors.centerIn: header
- z: header.z + 1
- }
-
- RowLayout {
- spacing: 115
- anchors.fill: parent
- anchors.margins: 70
-
- ColumnLayout {
- spacing: 0
- Layout.preferredWidth: 230
-
- RowLayout {
- Layout.maximumHeight: 170
-
- ColumnLayout {
- Label {
- text: "12 dB"
- Layout.fillHeight: true
- }
- Label {
- text: "6 dB"
- Layout.fillHeight: true
- }
- Label {
- text: "0 dB"
- Layout.fillHeight: true
- }
- Label {
- text: "-6 dB"
- Layout.fillHeight: true
- }
- Label {
- text: "-12 dB"
- Layout.fillHeight: true
- }
- }
-
- Repeater {
- model: 7
-
- Slider {
- value: Math.random()
- orientation: Qt.Vertical
-
- Layout.fillWidth: true
- Layout.fillHeight: true
- }
- }
- }
-
- RowLayout {
- spacing: 10
- Layout.topMargin: 23
-
- ComboBox {
- currentIndex: 1
- model: ["Blues", "Classical", "Jazz", "Metal"]
- Layout.fillWidth: true
- }
-
- Button {
- icon.name: "folder"
- }
-
- Button {
- icon.name: "save"
- enabled: false
- }
- }
-
- Dial {
- Layout.alignment: Qt.AlignHCenter
- Layout.topMargin: 50
- }
-
- Label {
- text: "Volume"
-
- Layout.alignment: Qt.AlignHCenter
- Layout.topMargin: 12
- }
- }
-
- ColumnLayout {
- spacing: 26
- Layout.preferredWidth: 230
-
- Item {
- Layout.fillWidth: true
- Layout.fillHeight: true
-
- Image {
- anchors.fill: parent
- fillMode: Image.PreserveAspectCrop
- source: "images/album-cover.jpg"
- }
- }
-
- Item {
- id: songLabelContainer
- clip: true
-
- Layout.fillWidth: true
- Layout.preferredHeight: songNameLabel.implicitHeight
-
- SequentialAnimation {
- running: true
- loops: Animation.Infinite
-
- PauseAnimation {
- duration: 2000
- }
- ParallelAnimation {
- XAnimator {
- target: songNameLabel
- from: 0
- to: songLabelContainer.width - songNameLabel.implicitWidth
- duration: 5000
- }
- OpacityAnimator {
- target: leftGradient
- from: 0
- to: 1
- }
- }
- OpacityAnimator {
- target: rightGradient
- from: 1
- to: 0
- }
- PauseAnimation {
- duration: 1000
- }
- OpacityAnimator {
- target: rightGradient
- from: 0
- to: 1
- }
- ParallelAnimation {
- XAnimator {
- target: songNameLabel
- from: songLabelContainer.width - songNameLabel.implicitWidth
- to: 0
- duration: 5000
- }
- OpacityAnimator {
- target: leftGradient
- from: 0
- to: 1
- }
- }
- OpacityAnimator {
- target: leftGradient
- from: 1
- to: 0
- }
- }
-
- Rectangle {
- id: leftGradient
- gradient: Gradient {
- GradientStop {
- position: 0
- color: "#dfe4ea"
- }
- GradientStop {
- position: 1
- color: "#00dfe4ea"
- }
- }
-
- width: height
- height: parent.height
- anchors.left: parent.left
- z: 1
- rotation: -90
- opacity: 0
- }
-
- Label {
- id: songNameLabel
- text: "Edvard Grieg - In the Hall of the Mountain King"
- font.pixelSize: Qt.application.font.pixelSize * 1.4
- }
-
- Rectangle {
- id: rightGradient
- gradient: Gradient {
- GradientStop {
- position: 0
- color: "#00dfe4ea"
- }
- GradientStop {
- position: 1
- color: "#dfe4ea"
- }
- }
-
- width: height
- height: parent.height
- anchors.right: parent.right
- rotation: -90
- }
- }
-
- RowLayout {
- spacing: 8
- Layout.alignment: Qt.AlignHCenter
-
- RoundButton {
- icon.name: "favorite"
- icon.width: 32
- icon.height: 32
- }
- RoundButton {
- icon.name: "stop"
- icon.width: 32
- icon.height: 32
- }
- RoundButton {
- icon.name: "previous"
- icon.width: 32
- icon.height: 32
- }
- RoundButton {
- icon.name: "pause"
- icon.width: 32
- icon.height: 32
- }
- RoundButton {
- icon.name: "next"
- icon.width: 32
- icon.height: 32
- }
- RoundButton {
- icon.name: "repeat"
- icon.width: 32
- icon.height: 32
- }
- RoundButton {
- icon.name: "shuffle"
- icon.width: 32
- icon.height: 32
- }
- }
-
- Slider {
- id: seekSlider
- value: 113
- to: 261
-
- Layout.fillWidth: true
-
- ToolTip {
- parent: seekSlider.handle
- visible: seekSlider.pressed
- text: pad(Math.floor(value / 60)) + ":" + pad(Math.floor(value % 60))
- y: parent.height
-
- readonly property int value: seekSlider.valueAt(seekSlider.position)
-
- function pad(number) {
- if (number <= 9)
- return "0" + number;
- return number;
- }
- }
- }
- }
-
- ColumnLayout {
- spacing: 16
- Layout.preferredWidth: 230
-
- ButtonGroup {
- buttons: libraryRowLayout.children
- }
-
- RowLayout {
- id: libraryRowLayout
- Layout.alignment: Qt.AlignHCenter
-
- Button {
- text: "Files"
- checked: true
- }
- Button {
- text: "Playlists"
- checkable: true
- }
- Button {
- text: "Favourites"
- checkable: true
- }
- }
-
- RowLayout {
- TextField {
- Layout.fillWidth: true
- }
- Button {
- icon.name: "folder"
- }
- }
-
- Frame {
- id: filesFrame
- leftPadding: 1
- rightPadding: 1
-
- Layout.fillWidth: true
- Layout.fillHeight: true
-
- ListView {
- clip: true
- anchors.fill: parent
- model: ListModel {
- Component.onCompleted: {
- for (var i = 0; i < 100; ++i) {
- append({
- author: "Author",
- album: "Album",
- track: "Track 0" + (i % 9 + 1),
- });
- }
- }
- }
- delegate: ItemDelegate {
- text: model.author + " - " + model.album + " - " + model.track
- width: parent.width
- }
-
- ScrollBar.vertical: ScrollBar {
- parent: filesFrame
- policy: ScrollBar.AlwaysOn
- anchors.top: parent.top
- anchors.topMargin: filesFrame.topPadding
- anchors.right: parent.right
- anchors.rightMargin: 1
- anchors.bottom: parent.bottom
- anchors.bottomMargin: filesFrame.bottomPadding
- }
- }
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/imagine/musicplayer/qtquickcontrols2.conf b/examples/quickcontrols2/imagine/musicplayer/qtquickcontrols2.conf
deleted file mode 100644
index 33eab6a5..00000000
--- a/examples/quickcontrols2/imagine/musicplayer/qtquickcontrols2.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-[Controls]
-Style=Imagine
-
-[Imagine]
-Path=:/imagine-assets
-
-[Imagine\Palette]
-Text=#6b7b89
-ButtonText=#6b7b89
-WindowText=#6b7b89
diff --git a/examples/quickcontrols2/quickcontrols2.pro b/examples/quickcontrols2/quickcontrols2.pro
deleted file mode 100644
index a9784d86..00000000
--- a/examples/quickcontrols2/quickcontrols2.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- gallery \
- chattutorial \
- texteditor \
- contactlist \
- sidepanel \
- swipetoremove \
- wearable \
- imagine/automotive \
- imagine/musicplayer
-
-qtHaveModule(widgets): SUBDIRS += flatstyle
diff --git a/examples/quickcontrols2/sidepanel/doc/images/qtquickcontrols2-sidepanel-landscape.png b/examples/quickcontrols2/sidepanel/doc/images/qtquickcontrols2-sidepanel-landscape.png
deleted file mode 100644
index 73ad4307..00000000
--- a/examples/quickcontrols2/sidepanel/doc/images/qtquickcontrols2-sidepanel-landscape.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/sidepanel/doc/images/qtquickcontrols2-sidepanel-portrait.png b/examples/quickcontrols2/sidepanel/doc/images/qtquickcontrols2-sidepanel-portrait.png
deleted file mode 100644
index ad23add5..00000000
--- a/examples/quickcontrols2/sidepanel/doc/images/qtquickcontrols2-sidepanel-portrait.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/sidepanel/doc/src/qtquickcontrols2-sidepanel.qdoc b/examples/quickcontrols2/sidepanel/doc/src/qtquickcontrols2-sidepanel.qdoc
deleted file mode 100644
index 49e997fb..00000000
--- a/examples/quickcontrols2/sidepanel/doc/src/qtquickcontrols2-sidepanel.qdoc
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example sidepanel
- \keyword Qt Quick Controls - Side Panel
- \title Qt Quick Controls - Side Panel
- \keyword Qt Quick Controls 2 - Side Panel
- \ingroup qtquickcontrols2-examples
- \brief A persistent side panel with Drawer.
-
- This example demonstrates how \l Drawer can be used as a persistent side
- panel.
-
- \raw HTML
- <div class="table"><table style="background:transparent; border:0px">
- <tr><td style="border:0px">
- \endraw
- \image qtquickcontrols2-sidepanel-portrait.png
- \caption An interactive Drawer in portrait mode
- \raw HTML
- </td><td style="border:0px">
- \endraw
- \image qtquickcontrols2-sidepanel-landscape.png
- \caption A non-interactive Drawer in landscape mode
- \raw HTML
- </td></tr>
- </table></div>
- \endraw
-
- When the application is in portrait mode, the drawer is an interactive
- side panel that can be swiped open from the left edge. It appears on
- top of the content, blocking user interaction through its modal
- background. When the application is in landscape mode, the drawer and
- the content are laid out side-by-side.
-
- The current orientation of the application is determined by comparing
- the width and height of the window:
-
- \snippet sidepanel/sidepanel.qml orientation
-
- This is used to determine whether the drawer should be \l {Popup::}{modal}
- and \l {Drawer::}{interactive}, and to configure its \l {Drawer::}{position}
- and \l {Popup::visible}{visibility} accordingly.
-
- \quotefromfile sidepanel/sidepanel.qml
- \skipto Drawer
- \printline Drawer
- \dots 8
- \codeline
- \skipto modal
- \printuntil visible
- \dots 8
- \skipuntil ScrollIndicator
- \skipuntil }
- \printline }
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/sidepanel/images/qt-logo.png b/examples/quickcontrols2/sidepanel/images/qt-logo.png
deleted file mode 100644
index 90e6f905..00000000
--- a/examples/quickcontrols2/sidepanel/images/qt-logo.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/sidepanel/images/qt-logo@2x.png b/examples/quickcontrols2/sidepanel/images/qt-logo@2x.png
deleted file mode 100644
index 22d111ad..00000000
--- a/examples/quickcontrols2/sidepanel/images/qt-logo@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/sidepanel/images/qt-logo@3x.png b/examples/quickcontrols2/sidepanel/images/qt-logo@3x.png
deleted file mode 100644
index 627746cd..00000000
--- a/examples/quickcontrols2/sidepanel/images/qt-logo@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/sidepanel/images/qt-logo@4x.png b/examples/quickcontrols2/sidepanel/images/qt-logo@4x.png
deleted file mode 100644
index dc62286d..00000000
--- a/examples/quickcontrols2/sidepanel/images/qt-logo@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/sidepanel/sidepanel.cpp b/examples/quickcontrols2/sidepanel/sidepanel.cpp
deleted file mode 100644
index a2617291..00000000
--- a/examples/quickcontrols2/sidepanel/sidepanel.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/sidepanel.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/sidepanel/sidepanel.pro b/examples/quickcontrols2/sidepanel/sidepanel.pro
deleted file mode 100644
index 1fddc70a..00000000
--- a/examples/quickcontrols2/sidepanel/sidepanel.pro
+++ /dev/null
@@ -1,18 +0,0 @@
-TEMPLATE = app
-TARGET = sidepanel
-QT += quick
-
-SOURCES += \
- sidepanel.cpp
-
-RESOURCES += \
- doc/images/qtquickcontrols2-sidepanel-landscape.png \
- doc/images/qtquickcontrols2-sidepanel-portrait.png \
- images/qt-logo@2x.png \
- images/qt-logo@3x.png \
- images/qt-logo@4x.png \
- images/qt-logo.png \
- sidepanel.qml
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/sidepanel
-INSTALLS += target
diff --git a/examples/quickcontrols2/sidepanel/sidepanel.qml b/examples/quickcontrols2/sidepanel/sidepanel.qml
deleted file mode 100644
index e2473ac9..00000000
--- a/examples/quickcontrols2/sidepanel/sidepanel.qml
+++ /dev/null
@@ -1,180 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-ApplicationWindow {
- id: window
- width: 360
- height: 520
- visible: true
- title: qsTr("Side Panel")
-
- //! [orientation]
- readonly property bool inPortrait: window.width < window.height
- //! [orientation]
-
- ToolBar {
- id: overlayHeader
-
- z: 1
- width: parent.width
- parent: window.overlay
-
- Label {
- id: label
- anchors.centerIn: parent
- text: "Qt Quick Controls 2"
- }
- }
-
- Drawer {
- id: drawer
-
- y: overlayHeader.height
- width: window.width / 2
- height: window.height - overlayHeader.height
-
- modal: inPortrait
- interactive: inPortrait
- position: inPortrait ? 0 : 1
- visible: !inPortrait
-
- ListView {
- id: listView
- anchors.fill: parent
-
- headerPositioning: ListView.OverlayHeader
- header: Pane {
- id: header
- z: 2
- width: parent.width
-
- contentHeight: logo.height
-
- Image {
- id: logo
- width: parent.width
- source: "images/qt-logo.png"
- fillMode: implicitWidth > width ? Image.PreserveAspectFit : Image.Pad
- }
-
- MenuSeparator {
- parent: header
- width: parent.width
- anchors.verticalCenter: parent.bottom
- visible: !listView.atYBeginning
- }
- }
-
- footer: ItemDelegate {
- id: footer
- text: qsTr("Footer")
- width: parent.width
-
- MenuSeparator {
- parent: footer
- width: parent.width
- anchors.verticalCenter: parent.top
- }
- }
-
- model: 10
-
- delegate: ItemDelegate {
- text: qsTr("Title %1").arg(index + 1)
- width: parent.width
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
- }
-
- Flickable {
- id: flickable
-
- anchors.fill: parent
- anchors.topMargin: overlayHeader.height
- anchors.leftMargin: !inPortrait ? drawer.width : undefined
-
- topMargin: 20
- bottomMargin: 20
- contentHeight: column.height
-
- Column {
- id: column
- spacing: 20
- anchors.margins: 20
- anchors.left: parent.left
- anchors.right: parent.right
-
- Label {
- font.pixelSize: 22
- width: parent.width
- elide: Label.ElideRight
- horizontalAlignment: Qt.AlignHCenter
- text: qsTr("Side Panel Example")
- }
-
- Label {
- width: parent.width
- wrapMode: Label.WordWrap
- text: qsTr("This example demonstrates how Drawer can be used as a non-closable persistent side panel.\n\n" +
- "When the application is in portrait mode, the drawer is an interactive side panel that can " +
- "be swiped open from the left edge. When the application is in landscape mode, the drawer " +
- "and the content are laid out side by side.\n\nThe application is currently in %1 mode.").arg(inPortrait ? qsTr("portrait") : qsTr("landscape"))
- }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
-}
diff --git a/examples/quickcontrols2/swipetoremove/doc/images/qtquickcontrols2-swipetoremove.png b/examples/quickcontrols2/swipetoremove/doc/images/qtquickcontrols2-swipetoremove.png
deleted file mode 100644
index 11005371..00000000
--- a/examples/quickcontrols2/swipetoremove/doc/images/qtquickcontrols2-swipetoremove.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/swipetoremove/doc/src/qtquickcontrols2-swipetoremove.qdoc b/examples/quickcontrols2/swipetoremove/doc/src/qtquickcontrols2-swipetoremove.qdoc
deleted file mode 100644
index c359a423..00000000
--- a/examples/quickcontrols2/swipetoremove/doc/src/qtquickcontrols2-swipetoremove.qdoc
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example swipetoremove
- \keyword Qt Quick Controls - Swipe to Remove
- \title Qt Quick Controls - Swipe to Remove
- \keyword Qt Quick Controls 2 - Swipe to Remove
- \ingroup qtquickcontrols2-examples
- \brief Demonstrates removal of list items by swipe gesture.
-
- This example demonstrates how \l SwipeDelegate can be used to implement
- removal of list items by swiping. This UI pattern is often used in touch
- user interfaces.
-
- \image qtquickcontrols2-swipetoremove.png
-
- Each list item can be swiped to the left, which reveals a label on the
- \l {SwipeDelegate::swipe}{right} side indicating that the item will be
- removed if the swipe is completed. The following snippet contains the
- implementation of the side item.
-
- \snippet swipetoremove/swipetoremove.qml delegate
-
- The following snippet presents how the logic of removing items is
- implemented. When the swipe is \l {SwipeDelegate::swipe}{completed}, it
- starts a timer that waits a few seconds to let the user undo the remove
- action. Once the undo timer triggers, the item is removed from the list:
-
- \snippet swipetoremove/swipetoremove.qml removal
-
- Finally, the removal of an item triggers the following transitions. The
- \l {ListView::} {remove} transition applies to the item that is removed,
- and the \l {ListView::}{displaced} transition applies to the other items
- that got displaced due to the removal:
-
- \snippet swipetoremove/swipetoremove.qml transitions
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/swipetoremove/fonts/LICENSE.txt b/examples/quickcontrols2/swipetoremove/fonts/LICENSE.txt
deleted file mode 100644
index 7394a58d..00000000
--- a/examples/quickcontrols2/swipetoremove/fonts/LICENSE.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Font license info
-
-
-## Elusive
-
- Copyright (C) 2013 by Aristeides Stathopoulos
-
- Author: Aristeides Stathopoulos
- License: SIL (http://scripts.sil.org/OFL)
- Homepage: http://aristeides.com/
-
-
diff --git a/examples/quickcontrols2/swipetoremove/fonts/fontello.ttf b/examples/quickcontrols2/swipetoremove/fonts/fontello.ttf
deleted file mode 100644
index 553fd2ef..00000000
--- a/examples/quickcontrols2/swipetoremove/fonts/fontello.ttf
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/swipetoremove/swipetoremove.cpp b/examples/quickcontrols2/swipetoremove/swipetoremove.cpp
deleted file mode 100644
index 9f54bc15..00000000
--- a/examples/quickcontrols2/swipetoremove/swipetoremove.cpp
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QFontDatabase>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
-
- QFontDatabase::addApplicationFont(":/fonts/fontello.ttf");
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/swipetoremove.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/swipetoremove/swipetoremove.pro b/examples/quickcontrols2/swipetoremove/swipetoremove.pro
deleted file mode 100644
index 8e6bd5f6..00000000
--- a/examples/quickcontrols2/swipetoremove/swipetoremove.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATE = app
-TARGET = swipetoremove
-QT += qml
-
-SOURCES += \
- swipetoremove.cpp
-
-RESOURCES += \
- swipetoremove.qml \
- fonts/fontello.ttf
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/swipetoremove
-INSTALLS += target
diff --git a/examples/quickcontrols2/swipetoremove/swipetoremove.qml b/examples/quickcontrols2/swipetoremove/swipetoremove.qml
deleted file mode 100644
index b4b0d588..00000000
--- a/examples/quickcontrols2/swipetoremove/swipetoremove.qml
+++ /dev/null
@@ -1,177 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-ApplicationWindow {
- id: window
- width: 300
- height: 400
- visible: true
- title: qsTr("Swipe to Remove")
-
- ListView {
- id: listView
- anchors.fill: parent
-
- delegate: SwipeDelegate {
- id: delegate
-
- text: modelData
- width: parent.width
-
- //! [delegate]
- swipe.right: Rectangle {
- width: parent.width
- height: parent.height
-
- clip: true
- color: SwipeDelegate.pressed ? "#555" : "#666"
-
- Label {
- font.family: "Fontello"
- text: delegate.swipe.complete ? "\ue805" // icon-cw-circled
- : "\ue801" // icon-cancel-circled-1
-
- padding: 20
- anchors.fill: parent
- horizontalAlignment: Qt.AlignRight
- verticalAlignment: Qt.AlignVCenter
-
- opacity: 2 * -delegate.swipe.position
-
- color: Material.color(delegate.swipe.complete ? Material.Green : Material.Red, Material.Shade200)
- Behavior on color { ColorAnimation { } }
- }
-
- Label {
- text: qsTr("Removed")
- color: "white"
-
- padding: 20
- anchors.fill: parent
- horizontalAlignment: Qt.AlignLeft
- verticalAlignment: Qt.AlignVCenter
-
- opacity: delegate.swipe.complete ? 1 : 0
- Behavior on opacity { NumberAnimation { } }
- }
-
- SwipeDelegate.onClicked: delegate.swipe.close()
- SwipeDelegate.onPressedChanged: undoTimer.stop()
- }
- //! [delegate]
-
- //! [removal]
- Timer {
- id: undoTimer
- interval: 3600
- onTriggered: listModel.remove(index)
- }
-
- swipe.onCompleted: undoTimer.start()
- //! [removal]
- }
-
- model: ListModel {
- id: listModel
- ListElement { text: "Lorem ipsum dolor sit amet" }
- ListElement { text: "Curabitur sit amet risus" }
- ListElement { text: "Suspendisse vehicula nisi" }
- ListElement { text: "Mauris imperdiet libero" }
- ListElement { text: "Sed vitae dui aliquet augue" }
- ListElement { text: "Praesent in elit eu nulla" }
- ListElement { text: "Etiam vitae magna" }
- ListElement { text: "Pellentesque eget elit euismod" }
- ListElement { text: "Nulla at enim porta" }
- ListElement { text: "Fusce tincidunt odio" }
- ListElement { text: "Ut non ex a ligula molestie" }
- ListElement { text: "Nam vitae justo scelerisque" }
- ListElement { text: "Vestibulum pulvinar tellus" }
- ListElement { text: "Quisque dignissim leo sed gravida" }
- }
-
- //! [transitions]
- remove: Transition {
- SequentialAnimation {
- PauseAnimation { duration: 125 }
- NumberAnimation { property: "height"; to: 0; easing.type: Easing.InOutQuad }
- }
- }
-
- displaced: Transition {
- SequentialAnimation {
- PauseAnimation { duration: 125 }
- NumberAnimation { property: "y"; easing.type: Easing.InOutQuad }
- }
- }
- //! [transitions]
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- Label {
- id: placeholder
- text: qsTr("Swipe no more")
-
- anchors.margins: 60
- anchors.fill: parent
-
- opacity: 0.5
- visible: listView.count === 0
-
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- wrapMode: Label.WordWrap
- font.pixelSize: 18
- }
-}
diff --git a/examples/quickcontrols2/texteditor/+touch/texteditor.html b/examples/quickcontrols2/texteditor/+touch/texteditor.html
deleted file mode 100644
index b5f03f25..00000000
--- a/examples/quickcontrols2/texteditor/+touch/texteditor.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="qrichtext" content="1">
- <title>Text Editor Example</title>
-</head>
-<body>
-<body>
- <p align="center">
- <img src="qrc:/images/qt-logo.png" />
- </p>
- <h2 align="center">
- Qt Quick Controls 2
- </h2>
- <p align="center">
- This example demonstrates a modern rich text editor.
- </p>
-</body>
-</html>
diff --git a/examples/quickcontrols2/texteditor/doc/images/qtquickcontrols2-texteditor-desktop.jpg b/examples/quickcontrols2/texteditor/doc/images/qtquickcontrols2-texteditor-desktop.jpg
deleted file mode 100644
index 259e0e8b..00000000
--- a/examples/quickcontrols2/texteditor/doc/images/qtquickcontrols2-texteditor-desktop.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/texteditor/doc/images/qtquickcontrols2-texteditor-touch.jpg b/examples/quickcontrols2/texteditor/doc/images/qtquickcontrols2-texteditor-touch.jpg
deleted file mode 100644
index 6a924cdf..00000000
--- a/examples/quickcontrols2/texteditor/doc/images/qtquickcontrols2-texteditor-touch.jpg
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/texteditor/doc/src/qtquickcontrols2-texteditor.qdoc b/examples/quickcontrols2/texteditor/doc/src/qtquickcontrols2-texteditor.qdoc
deleted file mode 100644
index 28cf3f3b..00000000
--- a/examples/quickcontrols2/texteditor/doc/src/qtquickcontrols2-texteditor.qdoc
+++ /dev/null
@@ -1,124 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-/*!
- \example texteditor
- \keyword Qt Quick Controls - Text Editor
- \title Qt Quick Controls - Text Editor
- \keyword Qt Quick Controls 2 - Text Editor
- \ingroup qtquickcontrols2-examples
- \brief A QML app using Qt Quick Controls and a C++ class to
- provide a fully-functional rich-text editor application.
-
- The \e {Text Editor Example} presents a sample HTML file using the TextArea
- control, preserving the HTML formatting. The application comes with two user
- interfaces; one for traditional desktop platforms with a mouse pointer, and
- another simpler, touch-oriented version.
-
- \section1 Desktop User Interface
-
- \image qtquickcontrols2-texteditor-desktop.jpg
-
- The desktop version is a complete text editor with capabilities for formatting
- text, and opening and saving HTML and plain text files. It demonstrates the
- native-looking dialogs and menus using the \l{Qt Labs Platform} module. These
- types are mostly suitable for desktop platforms with support for multiple
- top-level windows, a mouse pointer, and moderate screen size.
-
- The desktop UI uses FileDialog for opening and saving files:
-
- \quotefromfile texteditor/qml/texteditor.qml
- \skipto FileDialog
- \printuntil /\bsaveAs\b/
- \printline }
-
- It uses FontDialog and ColorDialog for choosing fonts and colors:
-
- \skipto FontDialog
- \printuntil /.*colorDialog$/
- \printuntil /^\s{4}\}$/
-
- It also uses \l[QML QtLabsPlatform]{Menu} and
- \l[QML QtLabsPlatform]{MenuItem} that provide a context menu to format text
- within:
-
- \skipto /\bMenu\b/
- \printuntil /^\s{4}\}$/
-
- \note There is also a standard menubar with more options than the
- context menu.
-
- \section1 Touch User Interface
-
- \image qtquickcontrols2-texteditor-touch.jpg
-
- The touch user interface is a simplified version of the text editor. It is
- suitable for touch devices with limited screen size. The example uses
- \l{Using File Selectors with Qt Quick Controls}{file selectors} to load
- the appropriate user interface automatically.
-
- Unlike the desktop version, which uses top-level dialogs, the touch version
- uses the QML \l Dialog type, which is not a top-level window. This type of
- dialog is fully supported on mobile and embedded platforms that do not support
- multiple top-level windows.
-
- \quotefromfile texteditor/qml/+touch/texteditor.qml
- \skipto /\bDialog\b/
- \printuntil /^\s{4}\}$/
-
- \section1 C++ Backend
-
- Both user interfaces use the same C++ backend, which supports opening, formatting,
- and editing a document. The C++ class, \c DocumentHandler, extends QObject and is
- registered as a QML type under the namespace \c {io.qt.examples.texteditor 1.0}.
-
- The following snippets show how the type is registered under a namespace and later
- imported and instantiated by \e main.qml. For more information about registering C++
- classes as QML types, see \l {Defining QML Types from C++}.
-
- QML type registration:
-
- \code
- #include <QtQml/qqml.h>
- ...
- qmlRegisterType<DocumentHandler>("io.qt.examples.texteditor", 1, 0, "DocumentHandler");
- ...
- \endcode
-
- QML namespace import:
-
- \code
- import io.qt.examples.texteditor 1.0
- \endcode
-
- QML instance:
-
- \quotefromfile texteditor/qml/texteditor.qml
- \skipto DocumentHandler
- \printuntil /^\s{4}\}$/
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/texteditor/documenthandler.cpp b/examples/quickcontrols2/texteditor/documenthandler.cpp
deleted file mode 100644
index 5def1b61..00000000
--- a/examples/quickcontrols2/texteditor/documenthandler.cpp
+++ /dev/null
@@ -1,387 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "documenthandler.h"
-
-#include <QFile>
-#include <QFileInfo>
-#include <QFileSelector>
-#include <QQmlFile>
-#include <QQmlFileSelector>
-#include <QQuickTextDocument>
-#include <QTextCharFormat>
-#include <QTextCodec>
-#include <QTextDocument>
-#include <QDebug>
-
-DocumentHandler::DocumentHandler(QObject *parent)
- : QObject(parent)
- , m_document(nullptr)
- , m_cursorPosition(-1)
- , m_selectionStart(0)
- , m_selectionEnd(0)
-{
-}
-
-QQuickTextDocument *DocumentHandler::document() const
-{
- return m_document;
-}
-
-void DocumentHandler::setDocument(QQuickTextDocument *document)
-{
- if (document == m_document)
- return;
-
- if (m_document)
- m_document->textDocument()->disconnect(this);
- m_document = document;
- if (m_document)
- connect(m_document->textDocument(), &QTextDocument::modificationChanged, this, &DocumentHandler::modifiedChanged);
- emit documentChanged();
-}
-
-int DocumentHandler::cursorPosition() const
-{
- return m_cursorPosition;
-}
-
-void DocumentHandler::setCursorPosition(int position)
-{
- if (position == m_cursorPosition)
- return;
-
- m_cursorPosition = position;
- reset();
- emit cursorPositionChanged();
-}
-
-int DocumentHandler::selectionStart() const
-{
- return m_selectionStart;
-}
-
-void DocumentHandler::setSelectionStart(int position)
-{
- if (position == m_selectionStart)
- return;
-
- m_selectionStart = position;
- emit selectionStartChanged();
-}
-
-int DocumentHandler::selectionEnd() const
-{
- return m_selectionEnd;
-}
-
-void DocumentHandler::setSelectionEnd(int position)
-{
- if (position == m_selectionEnd)
- return;
-
- m_selectionEnd = position;
- emit selectionEndChanged();
-}
-
-QString DocumentHandler::fontFamily() const
-{
- QTextCursor cursor = textCursor();
- if (cursor.isNull())
- return QString();
- QTextCharFormat format = cursor.charFormat();
- return format.font().family();
-}
-
-void DocumentHandler::setFontFamily(const QString &family)
-{
- QTextCharFormat format;
- format.setFontFamily(family);
- mergeFormatOnWordOrSelection(format);
- emit fontFamilyChanged();
-}
-
-QColor DocumentHandler::textColor() const
-{
- QTextCursor cursor = textCursor();
- if (cursor.isNull())
- return QColor(Qt::black);
- QTextCharFormat format = cursor.charFormat();
- return format.foreground().color();
-}
-
-void DocumentHandler::setTextColor(const QColor &color)
-{
- QTextCharFormat format;
- format.setForeground(QBrush(color));
- mergeFormatOnWordOrSelection(format);
- emit textColorChanged();
-}
-
-Qt::Alignment DocumentHandler::alignment() const
-{
- QTextCursor cursor = textCursor();
- if (cursor.isNull())
- return Qt::AlignLeft;
- return textCursor().blockFormat().alignment();
-}
-
-void DocumentHandler::setAlignment(Qt::Alignment alignment)
-{
- QTextBlockFormat format;
- format.setAlignment(alignment);
- QTextCursor cursor = textCursor();
- cursor.mergeBlockFormat(format);
- emit alignmentChanged();
-}
-
-bool DocumentHandler::bold() const
-{
- QTextCursor cursor = textCursor();
- if (cursor.isNull())
- return false;
- return textCursor().charFormat().fontWeight() == QFont::Bold;
-}
-
-void DocumentHandler::setBold(bool bold)
-{
- QTextCharFormat format;
- format.setFontWeight(bold ? QFont::Bold : QFont::Normal);
- mergeFormatOnWordOrSelection(format);
- emit boldChanged();
-}
-
-bool DocumentHandler::italic() const
-{
- QTextCursor cursor = textCursor();
- if (cursor.isNull())
- return false;
- return textCursor().charFormat().fontItalic();
-}
-
-void DocumentHandler::setItalic(bool italic)
-{
- QTextCharFormat format;
- format.setFontItalic(italic);
- mergeFormatOnWordOrSelection(format);
- emit italicChanged();
-}
-
-bool DocumentHandler::underline() const
-{
- QTextCursor cursor = textCursor();
- if (cursor.isNull())
- return false;
- return textCursor().charFormat().fontUnderline();
-}
-
-void DocumentHandler::setUnderline(bool underline)
-{
- QTextCharFormat format;
- format.setFontUnderline(underline);
- mergeFormatOnWordOrSelection(format);
- emit underlineChanged();
-}
-
-int DocumentHandler::fontSize() const
-{
- QTextCursor cursor = textCursor();
- if (cursor.isNull())
- return 0;
- QTextCharFormat format = cursor.charFormat();
- return format.font().pointSize();
-}
-
-void DocumentHandler::setFontSize(int size)
-{
- if (size <= 0)
- return;
-
- QTextCursor cursor = textCursor();
- if (cursor.isNull())
- return;
-
- if (!cursor.hasSelection())
- cursor.select(QTextCursor::WordUnderCursor);
-
- if (cursor.charFormat().property(QTextFormat::FontPointSize).toInt() == size)
- return;
-
- QTextCharFormat format;
- format.setFontPointSize(size);
- mergeFormatOnWordOrSelection(format);
- emit fontSizeChanged();
-}
-
-QString DocumentHandler::fileName() const
-{
- const QString filePath = QQmlFile::urlToLocalFileOrQrc(m_fileUrl);
- const QString fileName = QFileInfo(filePath).fileName();
- if (fileName.isEmpty())
- return QStringLiteral("untitled.txt");
- return fileName;
-}
-
-QString DocumentHandler::fileType() const
-{
- return QFileInfo(fileName()).suffix();
-}
-
-QUrl DocumentHandler::fileUrl() const
-{
- return m_fileUrl;
-}
-
-void DocumentHandler::load(const QUrl &fileUrl)
-{
- if (fileUrl == m_fileUrl)
- return;
-
- QQmlEngine *engine = qmlEngine(this);
- if (!engine) {
- qWarning() << "load() called before DocumentHandler has QQmlEngine";
- return;
- }
-
- const QUrl path = QQmlFileSelector::get(engine)->selector()->select(fileUrl);
- const QString fileName = QQmlFile::urlToLocalFileOrQrc(path);
- if (QFile::exists(fileName)) {
- QFile file(fileName);
- if (file.open(QFile::ReadOnly)) {
- QByteArray data = file.readAll();
- QTextCodec *codec = QTextCodec::codecForHtml(data);
- if (QTextDocument *doc = textDocument())
- doc->setModified(false);
-
- emit loaded(codec->toUnicode(data));
- reset();
- }
- }
-
- m_fileUrl = fileUrl;
- emit fileUrlChanged();
-}
-
-void DocumentHandler::saveAs(const QUrl &fileUrl)
-{
- QTextDocument *doc = textDocument();
- if (!doc)
- return;
-
- const QString filePath = fileUrl.toLocalFile();
- const bool isHtml = QFileInfo(filePath).suffix().contains(QLatin1String("htm"));
- QFile file(filePath);
- if (!file.open(QFile::WriteOnly | QFile::Truncate | (isHtml ? QFile::NotOpen : QFile::Text))) {
- emit error(tr("Cannot save: ") + file.errorString());
- return;
- }
- file.write((isHtml ? doc->toHtml() : doc->toPlainText()).toUtf8());
- file.close();
-
- if (fileUrl == m_fileUrl)
- return;
-
- m_fileUrl = fileUrl;
- emit fileUrlChanged();
-}
-
-void DocumentHandler::reset()
-{
- emit fontFamilyChanged();
- emit alignmentChanged();
- emit boldChanged();
- emit italicChanged();
- emit underlineChanged();
- emit fontSizeChanged();
- emit textColorChanged();
-}
-
-QTextCursor DocumentHandler::textCursor() const
-{
- QTextDocument *doc = textDocument();
- if (!doc)
- return QTextCursor();
-
- QTextCursor cursor = QTextCursor(doc);
- if (m_selectionStart != m_selectionEnd) {
- cursor.setPosition(m_selectionStart);
- cursor.setPosition(m_selectionEnd, QTextCursor::KeepAnchor);
- } else {
- cursor.setPosition(m_cursorPosition);
- }
- return cursor;
-}
-
-QTextDocument *DocumentHandler::textDocument() const
-{
- if (!m_document)
- return nullptr;
-
- return m_document->textDocument();
-}
-
-void DocumentHandler::mergeFormatOnWordOrSelection(const QTextCharFormat &format)
-{
- QTextCursor cursor = textCursor();
- if (!cursor.hasSelection())
- cursor.select(QTextCursor::WordUnderCursor);
- cursor.mergeCharFormat(format);
-}
-
-bool DocumentHandler::modified() const
-{
- return m_document && m_document->textDocument()->isModified();
-}
-
-void DocumentHandler::setModified(bool m)
-{
- if (m_document)
- m_document->textDocument()->setModified(m);
-}
diff --git a/examples/quickcontrols2/texteditor/documenthandler.h b/examples/quickcontrols2/texteditor/documenthandler.h
deleted file mode 100644
index 97e55658..00000000
--- a/examples/quickcontrols2/texteditor/documenthandler.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef DOCUMENTHANDLER_H
-#define DOCUMENTHANDLER_H
-
-#include <QFont>
-#include <QObject>
-#include <QTextCursor>
-#include <QUrl>
-
-QT_BEGIN_NAMESPACE
-class QTextDocument;
-class QQuickTextDocument;
-QT_END_NAMESPACE
-
-class DocumentHandler : public QObject
-{
- Q_OBJECT
-
- Q_PROPERTY(QQuickTextDocument *document READ document WRITE setDocument NOTIFY documentChanged)
- Q_PROPERTY(int cursorPosition READ cursorPosition WRITE setCursorPosition NOTIFY cursorPositionChanged)
- Q_PROPERTY(int selectionStart READ selectionStart WRITE setSelectionStart NOTIFY selectionStartChanged)
- Q_PROPERTY(int selectionEnd READ selectionEnd WRITE setSelectionEnd NOTIFY selectionEndChanged)
-
- Q_PROPERTY(QColor textColor READ textColor WRITE setTextColor NOTIFY textColorChanged)
- Q_PROPERTY(QString fontFamily READ fontFamily WRITE setFontFamily NOTIFY fontFamilyChanged)
- Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment NOTIFY alignmentChanged)
-
- Q_PROPERTY(bool bold READ bold WRITE setBold NOTIFY boldChanged)
- Q_PROPERTY(bool italic READ italic WRITE setItalic NOTIFY italicChanged)
- Q_PROPERTY(bool underline READ underline WRITE setUnderline NOTIFY underlineChanged)
-
- Q_PROPERTY(int fontSize READ fontSize WRITE setFontSize NOTIFY fontSizeChanged)
-
- Q_PROPERTY(QString fileName READ fileName NOTIFY fileUrlChanged)
- Q_PROPERTY(QString fileType READ fileType NOTIFY fileUrlChanged)
- Q_PROPERTY(QUrl fileUrl READ fileUrl NOTIFY fileUrlChanged)
-
- Q_PROPERTY(bool modified READ modified WRITE setModified NOTIFY modifiedChanged)
-
-public:
- explicit DocumentHandler(QObject *parent = nullptr);
-
- QQuickTextDocument *document() const;
- void setDocument(QQuickTextDocument *document);
-
- int cursorPosition() const;
- void setCursorPosition(int position);
-
- int selectionStart() const;
- void setSelectionStart(int position);
-
- int selectionEnd() const;
- void setSelectionEnd(int position);
-
- QString fontFamily() const;
- void setFontFamily(const QString &family);
-
- QColor textColor() const;
- void setTextColor(const QColor &color);
-
- Qt::Alignment alignment() const;
- void setAlignment(Qt::Alignment alignment);
-
- bool bold() const;
- void setBold(bool bold);
-
- bool italic() const;
- void setItalic(bool italic);
-
- bool underline() const;
- void setUnderline(bool underline);
-
- int fontSize() const;
- void setFontSize(int size);
-
- QString fileName() const;
- QString fileType() const;
- QUrl fileUrl() const;
-
- bool modified() const;
- void setModified(bool m);
-
-public Q_SLOTS:
- void load(const QUrl &fileUrl);
- void saveAs(const QUrl &fileUrl);
-
-Q_SIGNALS:
- void documentChanged();
- void cursorPositionChanged();
- void selectionStartChanged();
- void selectionEndChanged();
-
- void fontFamilyChanged();
- void textColorChanged();
- void alignmentChanged();
-
- void boldChanged();
- void italicChanged();
- void underlineChanged();
-
- void fontSizeChanged();
-
- void textChanged();
- void fileUrlChanged();
-
- void loaded(const QString &text);
- void error(const QString &message);
-
- void modifiedChanged();
-
-private:
- void reset();
- QTextCursor textCursor() const;
- QTextDocument *textDocument() const;
- void mergeFormatOnWordOrSelection(const QTextCharFormat &format);
-
- QQuickTextDocument *m_document;
-
- int m_cursorPosition;
- int m_selectionStart;
- int m_selectionEnd;
-
- QFont m_font;
- int m_fontSize;
- QUrl m_fileUrl;
-};
-
-#endif // DOCUMENTHANDLER_H
diff --git a/examples/quickcontrols2/texteditor/fonts/fontello.ttf b/examples/quickcontrols2/texteditor/fonts/fontello.ttf
deleted file mode 100644
index db957652..00000000
--- a/examples/quickcontrols2/texteditor/fonts/fontello.ttf
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/texteditor/images/qt-logo.png b/examples/quickcontrols2/texteditor/images/qt-logo.png
deleted file mode 100644
index e16b4182..00000000
--- a/examples/quickcontrols2/texteditor/images/qt-logo.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml b/examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml
deleted file mode 100644
index e56eddcd..00000000
--- a/examples/quickcontrols2/texteditor/qml/+touch/texteditor.qml
+++ /dev/null
@@ -1,270 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Window 2.0
-
-import io.qt.examples.texteditor 1.0
-
-// TODO:
-// - make designer-friendly
-
-ApplicationWindow {
- id: window
- visible: true
- title: document.fileName + " - Text Editor Example"
-
- header: ToolBar {
- leftPadding: 5
-
- RowLayout {
- anchors.fill: parent
- spacing: 0
-
- ToolButton {
- id: doneEditingButton
- font.family: "fontello"
- text: "\uE80A" // icon-ok
- opacity: !textArea.readOnly ? 1 : 0
- onClicked: textArea.readOnly = true
-
- Material.foreground: Material.accent
- }
-
- Label {
- text: qsTr("Text Editor Example")
- font.bold: true
- font.pixelSize: 20
- elide: Label.ElideRight
- Layout.fillWidth: true
- }
-
- ToolButton {
- font.family: "fontello"
- text: "\uF142" // icon-ellipsis-vert
- onClicked: menu.open()
-
- Menu {
- id: menu
-
- MenuItem {
- text: qsTr("About")
- onTriggered: aboutDialog.open()
- }
- }
- }
- }
- }
-
- DocumentHandler {
- id: document
- document: textArea.textDocument
- cursorPosition: textArea.cursorPosition
- selectionStart: textArea.selectionStart
- selectionEnd: textArea.selectionEnd
- // textColor: TODO
- Component.onCompleted: document.load("qrc:/texteditor.html")
- onLoaded: {
- textArea.text = text
- }
- onError: {
- errorDialog.text = message
- errorDialog.visible = true
- }
- }
-
- Flickable {
- id: flickable
- flickableDirection: Flickable.VerticalFlick
- anchors.fill: parent
-
- TextArea.flickable: TextArea {
- id: textArea
- textFormat: Qt.RichText
- wrapMode: TextArea.Wrap
- readOnly: true
- persistentSelection: true
- // Different styles have different padding and background
- // decorations, but since this editor is almost taking up the
- // entire window, we don't need them.
- leftPadding: 6
- rightPadding: 6
- topPadding: 0
- bottomPadding: 0
- background: null
-
- onLinkActivated: Qt.openUrlExternally(link)
- }
-
- ScrollBar.vertical: ScrollBar {}
- }
-
- footer: ToolBar {
- visible: !textArea.readOnly && textArea.activeFocus
-
- Material.primary: "#E0E0E0"
- Material.elevation: 0
-
- Flickable {
- anchors.fill: parent
- contentWidth: toolRow.implicitWidth
- flickableDirection: Qt.Horizontal
- boundsBehavior: Flickable.StopAtBounds
-
- Row {
- id: toolRow
-
- ToolButton {
- id: boldButton
- text: "\uE800" // icon-bold
- font.family: "fontello"
- // Don't want to close the virtual keyboard when this is clicked.
- focusPolicy: Qt.NoFocus
- checkable: true
- checked: document.bold
- onClicked: document.bold = !document.bold
- }
- ToolButton {
- id: italicButton
- text: "\uE801" // icon-italic
- font.family: "fontello"
- focusPolicy: Qt.NoFocus
- checkable: true
- checked: document.italic
- onClicked: document.italic = !document.italic
- }
- ToolButton {
- id: underlineButton
- text: "\uF0CD" // icon-underline
- font.family: "fontello"
- focusPolicy: Qt.NoFocus
- checkable: true
- checked: document.underline
- onClicked: document.underline = !document.underline
- }
-
- ToolSeparator {}
-
- ToolButton {
- id: alignLeftButton
- text: "\uE803" // icon-align-left
- font.family: "fontello"
- focusPolicy: Qt.NoFocus
- checkable: true
- checked: document.alignment == Qt.AlignLeft
- onClicked: document.alignment = Qt.AlignLeft
- }
- ToolButton {
- id: alignCenterButton
- text: "\uE804" // icon-align-center
- font.family: "fontello"
- focusPolicy: Qt.NoFocus
- checkable: true
- checked: document.alignment == Qt.AlignHCenter
- onClicked: document.alignment = Qt.AlignHCenter
- }
- ToolButton {
- id: alignRightButton
- text: "\uE805" // icon-align-right
- font.family: "fontello"
- focusPolicy: Qt.NoFocus
- checkable: true
- checked: document.alignment == Qt.AlignRight
- onClicked: document.alignment = Qt.AlignRight
- }
- ToolButton {
- id: alignJustifyButton
- text: "\uE806" // icon-align-justify
- font.family: "fontello"
- focusPolicy: Qt.NoFocus
- checkable: true
- checked: document.alignment == Qt.AlignJustify
- onClicked: document.alignment = Qt.AlignJustify
- }
- }
- }
- }
-
- RoundButton {
- id: editButton
- font.family: "fontello"
- text: "\uE809" // icon-pencil
- width: 48
- height: width
- // Don't want to use anchors for the y position, because it will anchor
- // to the footer, leaving a large vertical gap.
- y: parent.height - height - 12
- anchors.right: parent.right
- anchors.margins: 12
- visible: textArea.readOnly
- highlighted: true
-
- onClicked: {
- textArea.readOnly = false
- // Force focus on the text area so the cursor and footer show up.
- textArea.forceActiveFocus()
- }
- }
-
- Dialog {
- id: aboutDialog
- standardButtons: Dialog.Ok
- modal: true
- x: parent.width / 2 - width / 2
- y: parent.height / 2 - height / 2
-
- contentItem: Label {
- text: qsTr("Qt Quick Controls 2 - Text Editor Example")
- }
- }
-}
diff --git a/examples/quickcontrols2/texteditor/qml/texteditor.qml b/examples/quickcontrols2/texteditor/qml/texteditor.qml
deleted file mode 100644
index 6c95335b..00000000
--- a/examples/quickcontrols2/texteditor/qml/texteditor.qml
+++ /dev/null
@@ -1,467 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.0
-import Qt.labs.platform 1.0
-
-import io.qt.examples.texteditor 1.0
-
-// TODO:
-// - make designer-friendly
-
-ApplicationWindow {
- id: window
- width: 1024
- height: 600
- visible: true
- title: document.fileName + " - Text Editor Example"
-
- Component.onCompleted: {
- x = Screen.width / 2 - width / 2
- y = Screen.height / 2 - height / 2
- }
-
- Shortcut {
- sequence: StandardKey.Open
- onActivated: openDialog.open()
- }
- Shortcut {
- sequence: StandardKey.SaveAs
- onActivated: saveDialog.open()
- }
- Shortcut {
- sequence: StandardKey.Quit
- onActivated: close()
- }
- Shortcut {
- sequence: StandardKey.Copy
- onActivated: textArea.copy()
- }
- Shortcut {
- sequence: StandardKey.Cut
- onActivated: textArea.cut()
- }
- Shortcut {
- sequence: StandardKey.Paste
- onActivated: textArea.paste()
- }
- Shortcut {
- sequence: StandardKey.Bold
- onActivated: document.bold = !document.bold
- }
- Shortcut {
- sequence: StandardKey.Italic
- onActivated: document.italic = !document.italic
- }
- Shortcut {
- sequence: StandardKey.Underline
- onActivated: document.underline = !document.underline
- }
-
- MenuBar {
- Menu {
- title: qsTr("&File")
-
- MenuItem {
- text: qsTr("&Open")
- onTriggered: openDialog.open()
- }
- MenuItem {
- text: qsTr("&Save As...")
- onTriggered: saveDialog.open()
- }
- MenuItem {
- text: qsTr("&Quit")
- onTriggered: close()
- }
- }
-
- Menu {
- title: qsTr("&Edit")
-
- MenuItem {
- text: qsTr("&Copy")
- enabled: textArea.selectedText
- onTriggered: textArea.copy()
- }
- MenuItem {
- text: qsTr("Cu&t")
- enabled: textArea.selectedText
- onTriggered: textArea.cut()
- }
- MenuItem {
- text: qsTr("&Paste")
- enabled: textArea.canPaste
- onTriggered: textArea.paste()
- }
- }
-
- Menu {
- title: qsTr("F&ormat")
-
- MenuItem {
- text: qsTr("&Bold")
- checkable: true
- checked: document.bold
- onTriggered: document.bold = !document.bold
- }
- MenuItem {
- text: qsTr("&Italic")
- checkable: true
- checked: document.italic
- onTriggered: document.italic = !document.italic
- }
- MenuItem {
- text: qsTr("&Underline")
- checkable: true
- checked: document.underline
- onTriggered: document.underline = !document.underline
- }
- }
- }
-
- FileDialog {
- id: openDialog
- fileMode: FileDialog.OpenFile
- selectedNameFilter.index: 1
- nameFilters: ["Text files (*.txt)", "HTML files (*.html *.htm)"]
- folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
- onAccepted: document.load(file)
- }
-
- FileDialog {
- id: saveDialog
- fileMode: FileDialog.SaveFile
- defaultSuffix: document.fileType
- nameFilters: openDialog.nameFilters
- selectedNameFilter.index: document.fileType === "txt" ? 0 : 1
- folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
- onAccepted: document.saveAs(file)
- }
-
- FontDialog {
- id: fontDialog
- onAccepted: {
- document.fontFamily = font.family;
- document.fontSize = font.pointSize;
- }
- }
-
- ColorDialog {
- id: colorDialog
- currentColor: "black"
- }
-
- MessageDialog {
- id: errorDialog
- }
-
- MessageDialog {
- id : quitDialog
- title: qsTr("Quit?")
- text: qsTr("The file has been modified. Quit anyway?")
- buttons: (MessageDialog.Yes | MessageDialog.No)
- onYesClicked: Qt.quit()
- }
-
- header: ToolBar {
- leftPadding: 8
-
- Flow {
- id: flow
- width: parent.width
-
- Row {
- id: fileRow
- ToolButton {
- id: openButton
- text: "\uF115" // icon-folder-open-empty
- font.family: "fontello"
- onClicked: openDialog.open()
- }
- ToolSeparator {
- contentItem.visible: fileRow.y === editRow.y
- }
- }
-
- Row {
- id: editRow
- ToolButton {
- id: copyButton
- text: "\uF0C5" // icon-docs
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- enabled: textArea.selectedText
- onClicked: textArea.copy()
- }
- ToolButton {
- id: cutButton
- text: "\uE802" // icon-scissors
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- enabled: textArea.selectedText
- onClicked: textArea.cut()
- }
- ToolButton {
- id: pasteButton
- text: "\uF0EA" // icon-paste
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- enabled: textArea.canPaste
- onClicked: textArea.paste()
- }
- ToolSeparator {
- contentItem.visible: editRow.y === formatRow.y
- }
- }
-
- Row {
- id: formatRow
- ToolButton {
- id: boldButton
- text: "\uE800" // icon-bold
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- checkable: true
- checked: document.bold
- onClicked: document.bold = !document.bold
- }
- ToolButton {
- id: italicButton
- text: "\uE801" // icon-italic
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- checkable: true
- checked: document.italic
- onClicked: document.italic = !document.italic
- }
- ToolButton {
- id: underlineButton
- text: "\uF0CD" // icon-underline
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- checkable: true
- checked: document.underline
- onClicked: document.underline = !document.underline
- }
- ToolButton {
- id: fontFamilyToolButton
- text: qsTr("\uE808") // icon-font
- font.family: "fontello"
- font.bold: document.bold
- font.italic: document.italic
- font.underline: document.underline
- onClicked: {
- fontDialog.currentFont.family = document.fontFamily;
- fontDialog.currentFont.pointSize = document.fontSize;
- fontDialog.open();
- }
- }
- ToolButton {
- id: textColorButton
- text: "\uF1FC" // icon-brush
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- onClicked: colorDialog.open()
-
- Rectangle {
- width: aFontMetrics.width + 3
- height: 2
- color: document.textColor
- parent: textColorButton.contentItem
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.baseline: parent.baseline
- anchors.baselineOffset: 6
-
- TextMetrics {
- id: aFontMetrics
- font: textColorButton.font
- text: textColorButton.text
- }
- }
- }
- ToolSeparator {
- contentItem.visible: formatRow.y === alignRow.y
- }
- }
-
- Row {
- id: alignRow
- ToolButton {
- id: alignLeftButton
- text: "\uE803" // icon-align-left
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- checkable: true
- checked: document.alignment == Qt.AlignLeft
- onClicked: document.alignment = Qt.AlignLeft
- }
- ToolButton {
- id: alignCenterButton
- text: "\uE804" // icon-align-center
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- checkable: true
- checked: document.alignment == Qt.AlignHCenter
- onClicked: document.alignment = Qt.AlignHCenter
- }
- ToolButton {
- id: alignRightButton
- text: "\uE805" // icon-align-right
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- checkable: true
- checked: document.alignment == Qt.AlignRight
- onClicked: document.alignment = Qt.AlignRight
- }
- ToolButton {
- id: alignJustifyButton
- text: "\uE806" // icon-align-justify
- font.family: "fontello"
- focusPolicy: Qt.TabFocus
- checkable: true
- checked: document.alignment == Qt.AlignJustify
- onClicked: document.alignment = Qt.AlignJustify
- }
- }
- }
- }
-
- DocumentHandler {
- id: document
- document: textArea.textDocument
- cursorPosition: textArea.cursorPosition
- selectionStart: textArea.selectionStart
- selectionEnd: textArea.selectionEnd
- textColor: colorDialog.color
- Component.onCompleted: document.load("qrc:/texteditor.html")
- onLoaded: {
- textArea.text = text
- }
- onError: {
- errorDialog.text = message
- errorDialog.visible = true
- }
- }
-
- Flickable {
- id: flickable
- flickableDirection: Flickable.VerticalFlick
- anchors.fill: parent
-
- TextArea.flickable: TextArea {
- id: textArea
- textFormat: Qt.RichText
- wrapMode: TextArea.Wrap
- focus: true
- selectByMouse: true
- persistentSelection: true
- // Different styles have different padding and background
- // decorations, but since this editor is almost taking up the
- // entire window, we don't need them.
- leftPadding: 6
- rightPadding: 6
- topPadding: 0
- bottomPadding: 0
- background: null
-
- MouseArea {
- acceptedButtons: Qt.RightButton
- anchors.fill: parent
- onClicked: contextMenu.open()
- }
-
- onLinkActivated: Qt.openUrlExternally(link)
- }
-
- ScrollBar.vertical: ScrollBar {}
- }
-
- Menu {
- id: contextMenu
-
- MenuItem {
- text: qsTr("Copy")
- enabled: textArea.selectedText
- onTriggered: textArea.copy()
- }
- MenuItem {
- text: qsTr("Cut")
- enabled: textArea.selectedText
- onTriggered: textArea.cut()
- }
- MenuItem {
- text: qsTr("Paste")
- enabled: textArea.canPaste
- onTriggered: textArea.paste()
- }
-
- MenuSeparator {}
-
- MenuItem {
- text: qsTr("Font...")
- onTriggered: fontDialog.open()
- }
-
- MenuItem {
- text: qsTr("Color...")
- onTriggered: colorDialog.open()
- }
- }
-
- onClosing: {
- if (document.modified) {
- quitDialog.open()
- close.accepted = false
- }
- }
-}
diff --git a/examples/quickcontrols2/texteditor/qtquickcontrols2.conf b/examples/quickcontrols2/texteditor/qtquickcontrols2.conf
deleted file mode 100644
index ecac617f..00000000
--- a/examples/quickcontrols2/texteditor/qtquickcontrols2.conf
+++ /dev/null
@@ -1,11 +0,0 @@
-[Controls]
-Style=Material
-
-[Material]
-Primary=White
-Foreground=#444444
-Accent=Blue
-Theme=System
-
-[Universal]
-Theme=System
diff --git a/examples/quickcontrols2/texteditor/texteditor.cpp b/examples/quickcontrols2/texteditor/texteditor.cpp
deleted file mode 100644
index e3d9ad79..00000000
--- a/examples/quickcontrols2/texteditor/texteditor.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifdef QT_WIDGETS_LIB
-#include <QApplication>
-#else
-#include <QGuiApplication>
-#endif
-#include <QFontDatabase>
-#include <QDebug>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-#include <QQmlFileSelector>
-#include <QQuickStyle>
-
-#include "documenthandler.h"
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setApplicationName("Text Editor");
- QGuiApplication::setOrganizationName("QtProject");
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
-#ifdef QT_WIDGETS_LIB
- QApplication app(argc, argv);
-#else
- QGuiApplication app(argc, argv);
-#endif
-
- QFontDatabase fontDatabase;
- if (fontDatabase.addApplicationFont(":/fonts/fontello.ttf") == -1)
- qWarning() << "Failed to load fontello.ttf";
-
- qmlRegisterType<DocumentHandler>("io.qt.examples.texteditor", 1, 0, "DocumentHandler");
-
- QStringList selectors;
-#ifdef QT_EXTRA_FILE_SELECTOR
- selectors += QT_EXTRA_FILE_SELECTOR;
-#else
- if (app.arguments().contains("-touch"))
- selectors += "touch";
-#endif
-
- QQmlApplicationEngine engine;
- QQmlFileSelector::get(&engine)->setExtraSelectors(selectors);
-
- engine.load(QUrl("qrc:/qml/texteditor.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/texteditor/texteditor.html b/examples/quickcontrols2/texteditor/texteditor.html
deleted file mode 100644
index 1310da42..00000000
--- a/examples/quickcontrols2/texteditor/texteditor.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <meta name="qrichtext" content="1">
- <title>Text Editor Example</title>
- <style type="text/css">
- p,
- body, <!-- specifiying font-size for body seems to be necessary to avoid bullet points being incorrectly positioned -->
- li {
- white-space: pre-wrap;
- font-size:11pt;
- }
- </style>
-</head>
-<body>
- <p align="center">
- <img src="qrc:/images/qt-logo.png" />
- </p>
- <h2 align="center">
- Qt Quick Controls 2
- </h2>
- <p align="center">
- This example demonstrates a modern rich text editor. The UI uses Qt Labs Platforms to provide native menus and dialogs.
- </p>
- <br />
- <br />
- <br />
-
- <p>
- Below you'll find a list of the native controls used in this application.
- </p>
-
- <ul>
- <!-- TODO: update the links before the 5.8 release -->
- <li><a href="http://doc-snapshots.qt.io/qt5-dev/qml-qt-labs-platform-menu.html">Menu</a> - provides a QML API for native platform menu popups.</li>
- <li><a href="http://doc-snapshots.qt.io/qt5-dev/qml-qt-labs-platform-menubar.html">MenuBar</a> - provides a QML API for native platform menubars.</li>
- <li><a href="http://doc-snapshots.qt.io/qt5-dev/qml-qt-labs-platform-menuitem.html">MenuItem</a> - provides a QML API for native platform menu items.</li>
- <li><a href="http://doc-snapshots.qt.io/qt5-dev/qml-qt-labs-platform-filedialog.html">FileDialog</a> - provides a QML API for native platform file dialogs.</li>
- <li><a href="http://doc-snapshots.qt.io/qt5-dev/qml-qt-labs-platform-fontdialog.html">FontDialog</a> - provides a QML API for native platform font dialogs.</li>
- <li><a href="http://doc-snapshots.qt.io/qt5-dev/qml-qt-labs-platform-colordialog.html">ColorDialog</a> - provides a QML API for native platform color dialogs.</li>
- <li><a href="http://doc-snapshots.qt.io/qt5-dev/qml-qt-labs-platform-messagedialog.html">MessageDialog</a> - provides a QML API for native platform message dialogs.</li>
- </ul>
-</body>
-</html>
diff --git a/examples/quickcontrols2/texteditor/texteditor.pro b/examples/quickcontrols2/texteditor/texteditor.pro
deleted file mode 100644
index deb24576..00000000
--- a/examples/quickcontrols2/texteditor/texteditor.pro
+++ /dev/null
@@ -1,22 +0,0 @@
-TEMPLATE = app
-TARGET = texteditor
-QT += quick quickcontrols2
-qtHaveModule(widgets): QT += widgets
-
-cross_compile: DEFINES += QT_EXTRA_FILE_SELECTOR=\\\"touch\\\"
-
-HEADERS += \
- documenthandler.h
-
-SOURCES += \
- texteditor.cpp \
- documenthandler.cpp
-
-OTHER_FILES += \
- qml/*.qml
-
-RESOURCES += \
- texteditor.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/texteditor
-INSTALLS += target
diff --git a/examples/quickcontrols2/texteditor/texteditor.qrc b/examples/quickcontrols2/texteditor/texteditor.qrc
deleted file mode 100644
index 8f2da843..00000000
--- a/examples/quickcontrols2/texteditor/texteditor.qrc
+++ /dev/null
@@ -1,11 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>qtquickcontrols2.conf</file>
- <file>images/qt-logo.png</file>
- <file>fonts/fontello.ttf</file>
- <file>qml/texteditor.qml</file>
- <file>texteditor.html</file>
- <file>qml/+touch/texteditor.qml</file>
- <file>+touch/texteditor.html</file>
- </qresource>
-</RCC>
diff --git a/examples/quickcontrols2/wearable/doc/images/qtquickcontrols2-wearable.png b/examples/quickcontrols2/wearable/doc/images/qtquickcontrols2-wearable.png
deleted file mode 100644
index e01b3687..00000000
--- a/examples/quickcontrols2/wearable/doc/images/qtquickcontrols2-wearable.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc b/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc
deleted file mode 100644
index 7e4edea4..00000000
--- a/examples/quickcontrols2/wearable/doc/src/qtquickcontrols2-wearable.qdoc
+++ /dev/null
@@ -1,191 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \example wearable
- \keyword Qt Quick Controls - Wearable Demo
- \title Qt Quick Controls - Wearable Demo
- \keyword Qt Quick Controls 2 - Wearable Demo
- \ingroup qtquickcontrols2-examples
- \brief Demonstrates an application launcher designed for wearable devices.
-
- \image qtquickcontrols2-wearable.png
-
- The \e {Wearable Demo} consists of an application launcher and a collection
- of small and simple example applications aimed at wearable devices.
-
- \section1 Structure
-
- The main .qml file, \c wearable.qml, consists of an ApplicationWindow, a StackView
- for a stack-based navigation model, and buttons for interactive navigation.
-
- \quotefromfile wearable/wearable.qml
- \skipuntil import "qml/Style"
- \printuntil id: window
- \dots
- \skipto header
- \printuntil id: homeButton
- \dots 8
- \skipto onClicked
- \printuntil }
- \printuntil id: backButton
- \dots 8
- \skipto onClicked
- \printuntil id: stackView
- \dots 8
- \skipuntil initialItem
- \printuntil /^\}/
-
- \section1 Styling
-
- The demo uses a custom \l {Styling Qt Quick Controls}{Qt Quick Controls 2 style}
- embedded into the demo's resources. The custom style is implemented for a
- few controls only, as it is specific to this particular demo. It uses a
- singleton type for various styling attributes, such as fonts and colors.
-
- \list
- \li \c qml/Style/PageIndicator.qml
- \li \c qml/Style/Slider.qml
- \li \c qml/Style/Switch.qml
- \li \c qml/Style/UIStyle.qml
- \endlist
-
- The style is applied in \c main() in \c wearable.cpp:
-
- \snippet wearable/wearable.cpp style
-
- The main benefit of using the built-in styling system is that the style selection
- is fully transparent to the application code. There is no need to import a specific
- folder that contains the styled controls. This way, the application can be run with
- other styles too.
-
- \section1 Custom Type
-
- The demo application contains a custom button type implemented in
- \c qml/NaviButton.qml. The navigation button is used as a home and back
- button in \c wearable.qml. \c NaviButton extends the AbstractButton type
- with properties that control the slide in and slide out transitions and
- the button image.
-
- \quotefromfile wearable/qml/NaviButton.qml
- \skipuntil import "Style"
- \printuntil id: image
- \dots 8
- \skipuntil }
- \printuntil background:
- \dots 8
- \skipto }
- \printuntil /^\}/
-
- \section1 Icons
-
- The demo ships a custom icon theme. The icons are bundled into the \c :/icons
- folder in the application's resources. The \c index.theme file lists the contents
- of the icon theme:
-
- \quotefile wearable/icons/wearable/index.theme
-
- Finally, the icon theme is selected in \c main():
-
- \snippet wearable/wearable.cpp icons
-
- The icons are used on the Launcher Page, which is presented below. See
- \l {Icons in Qt Quick Controls} for more details about icons and themes.
-
- \section1 Launcher Page
-
- The application launcher is implemented using a circular PathView in
- \c LauncherPage.qml. Each application is in a separate .qml file,
- which is added to the ListModel on the launcher page.
-
- \quotefromfile wearable/qml/LauncherPage.qml
- \skipto PathView
- \printuntil signal launched
- \dots
- \skipto ListModel
- \printuntil }
- \dots 8
- \printline ListElement
- \skipto "Settings"
- \printuntil delegate:
- \dots 8
- \skipto icon.width
- \printuntil icon.name
- \dots 8
- \skipto onClicked:
- \printto path:
- \dots
- \skipto /^\}/
- \printline }
-
- \section1 Applications
-
- The applications are designed for touch input based on what input methods
- or communication means are typically offered by wearable devices.
-
- Most applications have their own JavaScript files that act as dummy
- application backends. They illustrate fetching external data and help
- manipulating or converting the data. In the \c Navigation and \c Weather
- applications, data acquisition is implemented using \l XMLHttpRequest to
- read from local files. These files were generated by storing responses from
- remote servers in JSON format. This code can be easily modified to acquire
- data from remote servers.
-
- \section2 Navigation
-
- This application displays a walking route from source to destination. This
- route information is obtained using the REST API provided by
- \l {https://www.openstreetmap.org/}. The API response is in JSON format, which
- is parsed using JavaScript by the application. Currently, it is not possible
- to specify the source and destination from within the application, but it can
- be added based on the device's capabilities. For example, user input
- could be implemented as screens with input fields, or can be communicated
- over Bluetooth/Wifi from a paired application running on another device
- such as a smart phone or PC.
-
- \section2 Weather
-
- This application displays weather information such as temperature, sunrise
- and sunset times, air pressure, and so on. This information is obtained
- from \l {https://openweathermap.org/} using its REST API. The API response is
- in JSON format, which is parsed using JavaScript by the application. This
- application can also be modified by adding screens to obtain weather data for
- a given location.
-
- \section2 World Clock
-
- This application displays a world clock for different cities. As of now, the
- list of cities is hard-coded in the application, but that can be changed based
- on the input capabilities of the device.
-
- \section2 Others
-
- The remaining applications return static data for now, but they can be
- modified to process response data obtained from respective services.
-
- \include examples-run.qdocinc
-*/
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png
deleted file mode 100644
index f38b3d4e..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/alarms.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png
deleted file mode 100644
index 80ec43cc..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/fitness.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png
deleted file mode 100644
index 9b8cb8e6..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/navigation.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png
deleted file mode 100644
index bcbe85ef..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/notifications.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png
deleted file mode 100644
index 093404f9..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png
deleted file mode 100644
index 07bf8187..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/weather.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png b/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png
deleted file mode 100644
index 91a70493..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36/worldclock.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png
deleted file mode 100644
index ba68519a..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/alarms.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png
deleted file mode 100644
index 088c15b8..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/fitness.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png
deleted file mode 100644
index 8d133abc..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/navigation.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png
deleted file mode 100644
index c3b284ed..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/notifications.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png
deleted file mode 100644
index a24a1df7..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/settings.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png
deleted file mode 100644
index 6e4ce2f3..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/weather.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png b/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png
deleted file mode 100644
index 03abe162..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/36x36@2/worldclock.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/icons/wearable/index.theme b/examples/quickcontrols2/wearable/icons/wearable/index.theme
deleted file mode 100644
index da702d4a..00000000
--- a/examples/quickcontrols2/wearable/icons/wearable/index.theme
+++ /dev/null
@@ -1,14 +0,0 @@
-[Icon Theme]
-Name=Wearable
-Comment=Qt Quick Controls 2 Wearable Demo Icon Theme
-
-Directories=36x36,36x36@2
-
-[36x36]
-Size=36
-Type=Fixed
-
-[36x36@2]
-Size=36
-Scale=2
-Type=Fixed
diff --git a/examples/quickcontrols2/wearable/images/back.png b/examples/quickcontrols2/wearable/images/back.png
deleted file mode 100644
index 153162e7..00000000
--- a/examples/quickcontrols2/wearable/images/back.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/back@2x.png b/examples/quickcontrols2/wearable/images/back@2x.png
deleted file mode 100644
index 6f6b2e3c..00000000
--- a/examples/quickcontrols2/wearable/images/back@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/back@3x.png b/examples/quickcontrols2/wearable/images/back@3x.png
deleted file mode 100644
index f51847d0..00000000
--- a/examples/quickcontrols2/wearable/images/back@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/back@4x.png b/examples/quickcontrols2/wearable/images/back@4x.png
deleted file mode 100644
index 4060f8fa..00000000
--- a/examples/quickcontrols2/wearable/images/back@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/background-dark.png b/examples/quickcontrols2/wearable/images/background-dark.png
deleted file mode 100644
index e8eb169d..00000000
--- a/examples/quickcontrols2/wearable/images/background-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/background-light.png b/examples/quickcontrols2/wearable/images/background-light.png
deleted file mode 100644
index 1c6920e6..00000000
--- a/examples/quickcontrols2/wearable/images/background-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/home.png b/examples/quickcontrols2/wearable/images/home.png
deleted file mode 100644
index 0d02f696..00000000
--- a/examples/quickcontrols2/wearable/images/home.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/home@2x.png b/examples/quickcontrols2/wearable/images/home@2x.png
deleted file mode 100644
index dd9f4605..00000000
--- a/examples/quickcontrols2/wearable/images/home@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/home@3x.png b/examples/quickcontrols2/wearable/images/home@3x.png
deleted file mode 100644
index 9276ceb4..00000000
--- a/examples/quickcontrols2/wearable/images/home@3x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/images/home@4x.png b/examples/quickcontrols2/wearable/images/home@4x.png
deleted file mode 100644
index bd1245d9..00000000
--- a/examples/quickcontrols2/wearable/images/home@4x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Alarms/AlarmsPage.qml b/examples/quickcontrols2/wearable/qml/Alarms/AlarmsPage.qml
deleted file mode 100644
index 6874008f..00000000
--- a/examples/quickcontrols2/wearable/qml/Alarms/AlarmsPage.qml
+++ /dev/null
@@ -1,114 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import ".."
-import "../Style"
-
-Item {
- QQC2.SwipeView {
- id: svAlarmsContainer
-
- anchors.fill: parent
-
- Repeater {
- model: ListModel {
- ListElement { name: qsTr("Week Days"); state: true; time: "06:00 AM" }
- ListElement { name: qsTr("Week Ends"); state: false; time: "07:30 AM" }
- }
-
- SwipeViewPage {
- property alias stateSwitch: stateSwitch
-
- Column {
- spacing: 30
- anchors.centerIn: parent
-
- QQC2.Switch {
- id: stateSwitch
- checked: model.state
- anchors.left: nameLabel.right
- }
-
- Text {
- text: model.time
- anchors.horizontalCenter: parent.horizontalCenter
- verticalAlignment: Text.AlignVCenter
- height: UIStyle.fontSizeXL
- font.bold: stateSwitch.checked
- font.pixelSize: stateSwitch.checked ? UIStyle.fontSizeXL : UIStyle.fontSizeL
- font.letterSpacing: 4
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- id: nameLabel
- text: model.name
- anchors.horizontalCenter: parent.horizontalCenter
- font.pixelSize: UIStyle.fontSizeS
- font.italic: true
- font.bold: true
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray2
- }
- }
- }
- }
- }
-
- QQC2.PageIndicator {
- count: svAlarmsContainer.count
- currentIndex: svAlarmsContainer.currentIndex
-
- anchors.bottom: svAlarmsContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/DemoMode.qml b/examples/quickcontrols2/wearable/qml/DemoMode.qml
deleted file mode 100644
index 9d0f4d6b..00000000
--- a/examples/quickcontrols2/wearable/qml/DemoMode.qml
+++ /dev/null
@@ -1,258 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-import "Style"
-
-Item {
- property StackView stackView
-
- SequentialAnimation {
- id: demoModeAnimation
- running: settings.demoMode
-
- // Set brightness back to normal.
- ScriptAction { script: settings.brightness = 0 }
-
- // Go back to the launcher page.
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the world clock page.
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("WorldClock/WorldClockPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Swipe across a few times.
- SequentialAnimation {
- loops: 6
-
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
- PauseAnimation { duration: 2500 }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the navigation page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Navigation/NavigationPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Flick down a few times.
- SequentialAnimation {
- loops: 6
-
- ScriptAction { script: stackView.currentItem.routeListView.incrementCurrentIndex() }
- PauseAnimation { duration: 2000 }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the weather page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Weather/WeatherPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Swipe across a few times.
- SequentialAnimation {
- loops: 4
-
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
- PauseAnimation { duration: 2000 }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the fitness page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Fitness/FitnessPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Swipe across a few times.
- SequentialAnimation {
- loops: 2
-
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
- PauseAnimation { duration: 2000 }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the notifications page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Notifications/NotificationsPage.qml")) }
-
- // Flick down a few times.
- SequentialAnimation {
- loops: 3
-
- PauseAnimation { duration: 2000 }
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the alarms page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Alarms/AlarmsPage.qml")) }
- PauseAnimation { duration: 2000 }
-
- // Toggle the switch.
- ScriptAction { script: stackView.currentItem.children[0].currentItem.stateSwitch.toggle() }
- PauseAnimation { duration: 2000 }
-
- // Go to the next alarm.
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
- PauseAnimation { duration: 2000 }
-
- // Toggle the switch there too.
- ScriptAction { script: stackView.currentItem.children[0].currentItem.stateSwitch.toggle() }
- PauseAnimation { duration: 2000 }
-
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- PauseAnimation { duration: 2000 }
-
- // Open the settings page.
- ScriptAction { script: stackView.currentItem.incrementCurrentIndex() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.launched(Qt.resolvedUrl("Settings/SettingsPage.qml")) }
- PauseAnimation { duration: 3000 }
-
- // Toggle the switches.
- ScriptAction { script: stackView.currentItem.children[0].currentItem.bluetoothSwitch.toggle() }
- PauseAnimation { duration: 1000 }
- ScriptAction { script: stackView.currentItem.children[0].currentItem.wirelessSwitch.toggle() }
- PauseAnimation { duration: 3000 }
-
- // Go to the next page.
- ScriptAction { script: stackView.currentItem.children[0].incrementCurrentIndex() }
-
- // Play with the brightness slider.
- // First, set it to full brightness so we start in the correct state.
- ScriptAction {
- script: {
- var brightnessSlider = stackView.currentItem.children[0].currentItem.brightnessSlider
- brightnessSlider.value = 0
- // increase()/decrease() are not a result of user interaction and
- // hence moved() will not be emitted, so we do it ourselves.
- brightnessSlider.moved()
- }
- }
-
- // Decrease the brightness.
- SequentialAnimation {
- loops: 3
-
- PauseAnimation { duration: 1000 }
- ScriptAction {
- script: {
- var brightnessSlider = stackView.currentItem.children[0].currentItem.brightnessSlider
- brightnessSlider.decrease()
- brightnessSlider.moved()
- }
- }
- }
-
- // Increase the brightness back to full.
- PauseAnimation { duration: 3000 }
- SequentialAnimation {
- loops: 3
-
- PauseAnimation { duration: 1000 }
- ScriptAction {
- script: {
- var brightnessSlider = stackView.currentItem.children[0].currentItem.brightnessSlider
- brightnessSlider.increase()
- brightnessSlider.moved()
- }
- }
- }
-
- // Toggle the dark theme switch.
- PauseAnimation { duration: 2000 }
- ScriptAction {
- script: {
- var darkThemeSwitch = stackView.currentItem.children[0].currentItem.darkThemeSwitch
- darkThemeSwitch.toggle()
- // As above, only proper user interaction results in toggled() being emitted,
- // so we do it ourselves.
- darkThemeSwitch.toggled()
- }
- }
- PauseAnimation { duration: 4000 }
-
- // Go back to the launcher page.
- ScriptAction { script: stackView.pop(null) }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/DemoModeIndicator.qml b/examples/quickcontrols2/wearable/qml/DemoModeIndicator.qml
deleted file mode 100644
index 88678b36..00000000
--- a/examples/quickcontrols2/wearable/qml/DemoModeIndicator.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import "Style"
-
-Item {
- id: root
- width: row.implicitWidth + margins * 2
-
- readonly property int topMargin: 24
- readonly property int margins: 12
-
- Behavior on y {
- NumberAnimation {}
- }
-
- Rectangle {
- id: demoModeIndicatorBg
- anchors.fill: parent
- anchors.topMargin: -topMargin
- radius: 20
- color: UIStyle.colorRed
- }
-
- Row {
- id: row
- spacing: 8
- anchors.fill: parent
- anchors.leftMargin: margins
- anchors.rightMargin: margins
-
- Image {
- source: "Settings/images/demo-mode-white.png"
- width: height
- height: instructionLabel.height * 2
- anchors.verticalCenter: parent.verticalCenter
- }
- QQC2.Label {
- id: instructionLabel
- text: "Tap screen to use"
- color: UIStyle.colorQtGray10
- anchors.verticalCenter: parent.verticalCenter
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml b/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
deleted file mode 100644
index 0e361066..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/FitnessPage.qml
+++ /dev/null
@@ -1,131 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import ".."
-import "../Style"
-import "fitness.js" as FitnessData
-
-Item {
- QQC2.SwipeView {
- id: svFitnessContainer
-
- anchors.fill: parent
-
- SwipeViewPage {
- id: fitnessPage1
-
- Column {
- anchors.centerIn: parent
- spacing: 15
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Steps: ") + FitnessData.getSteps()
- font.italic: true
- font.pixelSize: UIStyle.fontSizeM
- color: UIStyle.themeColorQtGray1
- }
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/man-walking")
- }
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Calories: ") + FitnessData.getCalories()
- font.pixelSize: UIStyle.fontSizeS
- font.italic: true
- color: UIStyle.themeColorQtGray3
- }
- }
- }
-
- SwipeViewPage {
- id: fitnessPage2
-
- Column {
- anchors.centerIn: parent
- spacing: 15
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Distance: ")
- + FitnessData.getDistance()
- + qsTr(" miles")
- font.italic: true
- font.pixelSize: UIStyle.fontSizeM
- color: UIStyle.themeColorQtGray1
- }
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/man-running")
- }
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: qsTr("Time: ")
- + FitnessData.getTime()
- + qsTr(" mins")
- font.pixelSize: UIStyle.fontSizeS
- font.italic: true
- color: UIStyle.themeColorQtGray3
- }
- }
- }
- }
-
- QQC2.PageIndicator {
- count: svFitnessContainer.count
- currentIndex: svFitnessContainer.currentIndex
-
- anchors.bottom: svFitnessContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/fitness.js b/examples/quickcontrols2/wearable/qml/Fitness/fitness.js
deleted file mode 100644
index 7e159e2a..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/fitness.js
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-function getSteps() {
- return 105;
-}
-
-function getCalories() {
- return 150;
-}
-
-function getDistance() {
- return 10;
-}
-
-function getTime() {
- return "00:30";
-}
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark.png
deleted file mode 100644
index 709c4b0f..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark@2x.png
deleted file mode 100644
index 1497ba4a..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light.png
deleted file mode 100644
index 5efab6e2..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light@2x.png
deleted file mode 100644
index 2073d97f..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-running-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark.png
deleted file mode 100644
index 6de13144..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark@2x.png
deleted file mode 100644
index e094e071..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light.png
deleted file mode 100644
index 01add534..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light@2x.png b/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light@2x.png
deleted file mode 100644
index 037a8f03..00000000
--- a/examples/quickcontrols2/wearable/qml/Fitness/images/man-walking-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/LauncherPage.qml b/examples/quickcontrols2/wearable/qml/LauncherPage.qml
deleted file mode 100644
index 96a2d975..00000000
--- a/examples/quickcontrols2/wearable/qml/LauncherPage.qml
+++ /dev/null
@@ -1,189 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import "Style"
-
-PathView {
- id: circularView
-
- signal launched(string page)
-
- readonly property int cX: width / 2
- readonly property int cY: height / 2
- readonly property int itemSize: size / 4
- readonly property int size: Math.min(width - 80, height)
- readonly property int radius: size / 2 - itemSize / 3
-
- snapMode: PathView.SnapToItem
-
- model: ListModel {
- ListElement {
- title: qsTr("World Clock")
- icon: "worldclock"
- page: "WorldClock/WorldClockPage.qml"
- }
- ListElement {
- title: qsTr("Navigation")
- icon: "navigation"
- page: "Navigation/NavigationPage.qml"
- }
- ListElement {
- title: qsTr("Weather")
- icon: "weather"
- page: "Weather/WeatherPage.qml"
- }
- ListElement {
- title: qsTr("Fitness")
- icon: "fitness"
- page: "Fitness/FitnessPage.qml"
- }
- ListElement {
- title: qsTr("Notifications")
- icon: "notifications"
- page: "Notifications/NotificationsPage.qml"
- }
- ListElement {
- title: qsTr("Alarm")
- icon: "alarms"
- page: "Alarms/AlarmsPage.qml"
- }
- ListElement {
- title: qsTr("Settings")
- icon: "settings"
- page: "Settings/SettingsPage.qml"
- }
- }
-
- delegate: QQC2.RoundButton {
- width: circularView.itemSize
- height: circularView.itemSize
-
- property string title: model.title
-
- icon.width: 36
- icon.height: 36
- icon.name: model.icon
- opacity: PathView.itemOpacity
- padding: 12
-
- background: Rectangle {
- radius: width / 2
- border.width: 3
- border.color: parent.PathView.isCurrentItem ? UIStyle.colorQtPrimGreen : UIStyle.themeColorQtGray4
- }
-
- onClicked: {
- if (PathView.isCurrentItem)
- circularView.launched(Qt.resolvedUrl(page))
- else
- circularView.currentIndex = index
- }
- }
-
- path: Path {
- startX: circularView.cX
- startY: circularView.cY
- PathAttribute {
- name: "itemOpacity"
- value: 1.0
- }
- PathLine {
- x: circularView.cX + circularView.radius
- y: circularView.cY
- }
- PathAttribute {
- name: "itemOpacity"
- value: 0.7
- }
- PathArc {
- x: circularView.cX - circularView.radius
- y: circularView.cY
- radiusX: circularView.radius
- radiusY: circularView.radius
- useLargeArc: true
- direction: PathArc.Clockwise
- }
- PathAttribute {
- name: "itemOpacity"
- value: 0.5
- }
- PathArc {
- x: circularView.cX + circularView.radius
- y: circularView.cY
- radiusX: circularView.radius
- radiusY: circularView.radius
- useLargeArc: true
- direction: PathArc.Clockwise
- }
- PathAttribute {
- name: "itemOpacity"
- value: 0.3
- }
- }
-
- Text {
- id: appTitle
-
- property Item currentItem: circularView.currentItem
-
- visible: currentItem ? currentItem.PathView.itemOpacity === 1.0 : 0
-
- text: currentItem ? currentItem.title : ""
- anchors.centerIn: parent
- anchors.verticalCenterOffset: (circularView.itemSize + height) / 2
-
- font.bold: true
- font.pixelSize: circularView.itemSize / 3
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/NaviButton.qml b/examples/quickcontrols2/wearable/qml/NaviButton.qml
deleted file mode 100644
index 55ccc19d..00000000
--- a/examples/quickcontrols2/wearable/qml/NaviButton.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import "Style"
-
-QQC2.AbstractButton {
- id: button
-
- property int edge: Qt.TopEdge
- property alias imageSource: image.source
-
- contentItem: Image {
- id: image
- fillMode: Image.Pad
- sourceSize { width: 40; height: 40 } // ### TODO: resize the image
- }
-
- background: Rectangle {
- height: button.height * 4
- width: height
- radius: width / 2
-
- anchors.horizontalCenter: button.horizontalCenter
- anchors.top: edge === Qt.BottomEdge ? button.top : undefined
- anchors.bottom: edge === Qt.TopEdge ? button.bottom : undefined
-
- color: UIStyle.colorQtGray2
- }
-
- transform: Translate {
- Behavior on y { NumberAnimation { } }
- y: enabled ? 0 : edge === Qt.TopEdge ? -button.height : button.height
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/NavigationPage.qml b/examples/quickcontrols2/wearable/qml/Navigation/NavigationPage.qml
deleted file mode 100644
index 4a7fbde1..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/NavigationPage.qml
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../Style"
-import "navigation.js" as NavigationData
-
-Item {
- property alias routeListView: routeView
-
- Column {
- anchors.fill: parent
- anchors.margins: 2
- spacing: 2
-
- Rectangle {
- anchors.horizontalCenter: parent.horizontalCenter
- width: parent.width
- height: titleRow.height
-
- color: UIStyle.themeColorQtGray9
-
- Row {
- id: titleRow
- spacing: 10
- anchors.centerIn: parent
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/navigation")
- fillMode: Image.PreserveAspectCrop
- }
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: qsTr("Walking")
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 2
- color: UIStyle.themeColorQtGray2
- }
- }
- }
-
- ListModel {
- id: routeModel
- }
-
- ListView {
- id: routeView
-
- width: parent.width
- height: parent.height - titleRow.height - parent.spacing
- property var imageList: [UIStyle.themeImagePath("images/straight"),
- UIStyle.themeImagePath("images/leftturn"),
- UIStyle.themeImagePath("images/rightturn"),
- "images/uturn.png",
- "images/start.png",
- "images/end.png"]
-
- clip: true
- focus: true
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
- model: routeModel
- delegate: RouteElement {
- width: routeView.width
- height: routeView.height
- }
- }
- }
- Component.onCompleted: {
- NavigationData.requestNavigationRoute(routeModel)
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/RouteElement.qml b/examples/quickcontrols2/wearable/qml/Navigation/RouteElement.qml
deleted file mode 100644
index 005ae3f7..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/RouteElement.qml
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../Style"
-
-Rectangle {
- color: UIStyle.themeColorQtGray8
-
- Row {
- spacing: 5
- width: parent.width - 80
- anchors.centerIn: parent
-
- Image {
- id: img
- anchors.verticalCenter: parent.verticalCenter
- source: navImage
- fillMode: Image.PreserveAspectFit
- }
-
- Column {
- spacing: 5
- width: parent.width - img.width
- anchors.verticalCenter: parent.verticalCenter
-
- Text {
- width: parent.width
- wrapMode: Text.WordWrap
- text: navInstruction
- font.pixelSize: UIStyle.fontSizeS
- verticalAlignment: Text.AlignVCenter
- padding: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- width: parent.width
- wrapMode: Text.WordWrap
- text: navAuxInfo
- font.pixelSize: UIStyle.fontSizeXS
- verticalAlignment: Text.AlignVCenter
- padding: 1
- color: UIStyle.themeColorQtGray2
- }
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/end.png b/examples/quickcontrols2/wearable/qml/Navigation/images/end.png
deleted file mode 100644
index 3006c0f3..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/end.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/end@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/end@2x.png
deleted file mode 100644
index d5fbe17d..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/end@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark.png b/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark.png
deleted file mode 100644
index b318b954..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark@2x.png
deleted file mode 100644
index ec782ebd..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light.png b/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light.png
deleted file mode 100644
index 3c416304..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light@2x.png
deleted file mode 100644
index 39e9be84..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/leftturn-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/marker.png b/examples/quickcontrols2/wearable/qml/Navigation/images/marker.png
deleted file mode 100644
index 3006c0f3..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/marker.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark.png b/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark.png
deleted file mode 100644
index 7dce6aa5..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark@2x.png
deleted file mode 100644
index 5061e52b..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light.png b/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light.png
deleted file mode 100644
index 9b8cb8e6..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light@2x.png
deleted file mode 100644
index 8d133abc..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/navigation-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark.png b/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark.png
deleted file mode 100644
index 634ab593..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark@2x.png
deleted file mode 100644
index 9a388440..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light.png b/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light.png
deleted file mode 100644
index a29ec694..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light@2x.png
deleted file mode 100644
index 258c4144..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/rightturn-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/start.png b/examples/quickcontrols2/wearable/qml/Navigation/images/start.png
deleted file mode 100644
index 1adf0ac8..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/start.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/start@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/start@2x.png
deleted file mode 100644
index 2e577df4..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/start@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark.png b/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark.png
deleted file mode 100644
index 014ed7c8..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark@2x.png
deleted file mode 100644
index be51d2ac..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light.png b/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light.png
deleted file mode 100644
index e3c5bb5c..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light@2x.png
deleted file mode 100644
index ef71ab1b..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/straight-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/uturn.png b/examples/quickcontrols2/wearable/qml/Navigation/images/uturn.png
deleted file mode 100644
index b6917f67..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/uturn.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/images/uturn@2x.png b/examples/quickcontrols2/wearable/qml/Navigation/images/uturn@2x.png
deleted file mode 100644
index 8419b5e1..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/images/uturn@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/navigation.js b/examples/quickcontrols2/wearable/qml/Navigation/navigation.js
deleted file mode 100644
index 0414731d..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/navigation.js
+++ /dev/null
@@ -1,131 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-function requestNavigationRoute(rModel) {
- var xhr = new XMLHttpRequest;
- xhr.open("GET", "walk_route.json");
- xhr.onreadystatechange = function () {
- if (xhr.readyState === XMLHttpRequest.DONE) {
- var a = JSON.parse(xhr.responseText);
- var steps = a.routes[0].legs[0].steps;
-
- for (var step in steps) {
- var maneuver = steps[step].maneuver;
- var duration = steps[step].duration;
- var distance = steps[step].distance;
-
- rModel.append({
- navInstruction: maneuver.instruction,
- navImage: getNavigationImage(
- maneuver.type,
- maneuver.modifier,
- routeView.imageList),
- navAuxInfo: getAuxInfo(distance,
- duration)
- });
- }
- }
- }
- xhr.send();
-}
-
-function getNavigationImage(maneuverType, maneuverModifier, imageList) {
- var imageToReturn;
- if (maneuverType === "depart") {
- imageToReturn = imageList[4];
- } else if (maneuverType === "arrive") {
- imageToReturn = imageList[5];
- } else if (maneuverType === "turn") {
- if (maneuverModifier.search("left") >= 0)
- imageToReturn = imageList[1];
- else if (maneuverModifier.search("right") >= 0)
- imageToReturn = imageList[2];
- else
- imageToReturn = imageList[0];
- } else {
- if (maneuverModifier === "uturn") {
- imageToReturn = imageList[3];
- } else {
- imageToReturn = imageList[0];
- }
- }
-
- return imageToReturn;
-}
-
-function getAuxInfo(distInMeters, timeInSecs) {
- var distance = convertDistance(distInMeters);
- if (distance.length > 0)
- return "Distance: " + distance + "\nTime: " + formatSeconds(
- timeInSecs);
- else
- return "";
-}
-
-function convertDistance(meter) {
- var dist = "";
- var feet = (meter * 0.3048).toPrecision(6);
- var miles = (meter * 0.000621371).toPrecision(6);
-
- if (Math.floor(miles) > 1) {
- dist += Math.floor(miles) + " mi";
- feet = ((miles - Math.floor(miles)) * 0.3048).toPrecision(6);
- }
- if (Math.floor(feet) > 1)
- dist += Math.floor(feet) + " ft";
-
- return dist
-}
-
-function formatSeconds(seconds) {
- var date = new Date(1970, 0, 1);
- date.setSeconds(seconds);
- return date.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
-}
diff --git a/examples/quickcontrols2/wearable/qml/Navigation/walk_route.json b/examples/quickcontrols2/wearable/qml/Navigation/walk_route.json
deleted file mode 100644
index e69b5cc1..00000000
--- a/examples/quickcontrols2/wearable/qml/Navigation/walk_route.json
+++ /dev/null
@@ -1 +0,0 @@
-{"routes":[{"legs":[{"steps":[{"intersections":[{"out":0,"entry":[true],"bearings":[144],"location":[-122.394553,37.795984]},{"out":1,"location":[-122.393896,37.795268],"bearings":[60,150,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.393179,37.79453],"bearings":[60,135,180,225,315],"entry":[true,true,true,true,false],"in":4},{"out":1,"location":[-122.393072,37.79443],"bearings":[45,135,225,315],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.392787,37.79415],"bearings":[60,135,315],"entry":[true,true,false],"in":2},{"out":1,"location":[-122.392537,37.793915],"bearings":[45,135,225,315],"entry":[true,true,true,false],"in":3},{"out":0,"location":[-122.392448,37.793831],"bearings":[135,225,315],"entry":[true,true,false],"in":2}],"geometry":"{_ueF|d`jVRQdB}ARQh@g@XUVWVW^a@RUv@w@l@q@PQNQ","maneuver":{"bearing_after":144,"location":[-122.394553,37.795984],"bearing_before":0,"type":"depart","instruction":"Head southeast on The Embarcadero"},"duration":230.8,"distance":314.8,"name":"The Embarcadero","mode":"walking"},{"intersections":[{"out":2,"location":[-122.392361,37.793748],"bearings":[45,135,225,315],"entry":[true,true,true,false],"in":3}],"geometry":"}qteFfw_jVHJBDHJ","maneuver":{"bearing_after":225,"type":"turn","modifier":"right","bearing_before":140,"location":[-122.392361,37.793748],"instruction":"Turn right"},"duration":13.2,"distance":18.5,"name":"","mode":"walking"},{"intersections":[{"out":1,"location":[-122.39251,37.793631],"bearings":[45,135,225,315],"entry":[false,true,true,true],"in":0},{"out":1,"location":[-122.391284,37.792459],"bearings":[45,150,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.391217,37.792342],"bearings":[45,165,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.391165,37.792231],"bearings":[45,165,225,345],"entry":[true,true,true,false],"in":3},{"out":0,"location":[-122.390884,37.791536],"bearings":[150,285,345],"entry":[true,true,false],"in":2},{"out":1,"location":[-122.390254,37.790827],"bearings":[45,135,210,315],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.390144,37.790745],"bearings":[45,135,225,315],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.390038,37.790665],"bearings":[45,135,240,315],"entry":[true,true,true,false],"in":3},{"out":0,"location":[-122.389245,37.790036],"bearings":[135,225,315],"entry":[true,true,false],"in":2},{"out":1,"location":[-122.38871,37.789596],"bearings":[45,150,210,315],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.388618,37.789494],"bearings":[45,150,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.388527,37.789394],"bearings":[45,150,225,330],"entry":[true,true,true,false],"in":3},{"out":1,"location":[-122.388005,37.787907],"bearings":[0,180,270],"entry":[false,true,true],"in":0},{"out":1,"location":[-122.387985,37.787622],"bearings":[0,180,240],"entry":[false,true,true],"in":0},{"out":2,"location":[-122.388005,37.787197],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388015,37.787093],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388022,37.786994],"bearings":[0,90,180,285],"entry":[false,true,true,true],"in":0},{"out":1,"location":[-122.388163,37.785186],"bearings":[0,180,315],"entry":[false,true,true],"in":0},{"out":1,"location":[-122.388184,37.784944],"bearings":[0,180,315],"entry":[false,true,true],"in":0},{"out":2,"location":[-122.388191,37.784855],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388198,37.784748],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388207,37.784633],"bearings":[0,90,180,270],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.388309,37.783373],"bearings":[0,60,180,270],"entry":[false,true,true,true],"in":0},{"out":1,"location":[-122.388376,37.782545],"bearings":[0,180,315],"entry":[false,true,true],"in":0},{"out":1,"location":[-122.388394,37.782316],"bearings":[0,180,315],"entry":[false,true,true],"in":0}],"geometry":"eqteFdx_jVf@k@\\a@|@iAV[FGJMPOTOPKDAPITItAa@r@WXOXQXSTUTWRYNUNS|B}CdAwAPSTQRQ\\W^Q\\KZIrB]^EPCH?\\CZ?Z?\\?XBT@R?~IZF?H@f@@N@T@V@zFRbDLl@@pADV@","maneuver":{"bearing_after":139,"type":"turn","modifier":"left","bearing_before":226,"location":[-122.39251,37.793631],"instruction":"Turn left onto The Embarcadero"},"duration":1055.9,"distance":1450.3,"name":"The Embarcadero","mode":"walking"},{"intersections":[{"out":2,"location":[-122.388431,37.781791],"bearings":[0,90,180,285],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.389672,37.779922],"bearings":[45,135,225,315],"entry":[false,true,true,true],"in":0},{"out":1,"location":[-122.390803,37.77905],"bearings":[45,225,315],"entry":[false,true,true],"in":0},{"out":2,"location":[-122.391916,37.778155],"bearings":[45,135,225,315],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.393073,37.777251],"bearings":[45,75,225,315],"entry":[false,true,true,true],"in":0}],"geometry":"egreFt~~iVR@bABXDVDXHVNXNXVVZp@|@z@hAnCvDLRNTHLFJbArAzApBdB`CTZZb@\\b@@@pCvD","maneuver":{"bearing_after":183,"type":"new name","modifier":"straight","bearing_before":183,"location":[-122.388431,37.781791],"instruction":"Continue straight onto King Street"},"duration":567.4,"distance":782.5,"name":"King Street","mode":"walking"},{"intersections":[{"out":3,"location":[-122.394003,37.776513],"bearings":[45,135,225,300],"entry":[false,true,true,true],"in":0},{"out":2,"location":[-122.394218,37.776486],"bearings":[45,135,225,315],"entry":[false,true,true,true],"in":0}],"geometry":"efqeFna`jVGJ?NJNNR","maneuver":{"bearing_after":313,"type":"turn","modifier":"straight","bearing_before":225,"location":[-122.394003,37.776513],"instruction":"Go straight"},"duration":26.1,"distance":36.2,"name":"","mode":"walking"},{"intersections":[{"out":2,"location":[-122.394321,37.776405],"bearings":[45,180,315],"entry":[false,true,true],"in":0},{"out":1,"location":[-122.394729,37.776487],"bearings":[45,180],"entry":[false,true],"in":0}],"geometry":"qeqeFnc`jVe@p@A@V\\DF","maneuver":{"bearing_after":315,"type":"turn","modifier":"right","bearing_before":225,"location":[-122.394321,37.776405],"instruction":"Turn right"},"duration":39.9,"distance":55.6,"name":"","mode":"walking"},{"intersections":[{"in":0,"entry":[true],"bearings":[45],"location":[-122.394768,37.776455]}],"geometry":"{eqeFhf`jV","maneuver":{"bearing_after":0,"type":"arrive","modifier":"straight","bearing_before":225,"location":[-122.394729,37.776487],"instruction":"You have arrived at your destination, straight ahead"},"duration":0,"distance":0,"name":"","mode":"walking"}],"summary":"The Embarcadero, King Street","duration":1933.3,"distance":2657.8}],"geometry":"{_ueF|d`jV|LuLV\\`EyElHaD~I_LvB_AdGk@he@|AbBd@bZl`@R~@g@r@\\d@","duration":1933.3,"distance":2657.8}],"waypoints":[{"name":"The Embarcadero","location":[-122.394553,37.795984]},{"name":"","location":[-122.394768,37.776455]}],"code":"Ok"}
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/NotificationsPage.qml b/examples/quickcontrols2/wearable/qml/Notifications/NotificationsPage.qml
deleted file mode 100644
index b3102771..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/NotificationsPage.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import "../Style"
-import "notifications.js" as NotificationData
-
-ListView {
- id: missedCallsView
-
- clip: true
- focus: true
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
-
- model: ListModel {
- id: missedCallsList
- }
-
- Image {
- id: missedCallIcon
- width: parent.width / 2
- anchors.right: parent.horizontalCenter
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/missedcall")
- fillMode: Image.Pad
- }
-
- delegate: Item {
- height: missedCallsView.height
- width: missedCallsView.width / 2
- anchors.left: parent.horizontalCenter
-
- Column {
- spacing: 15
- anchors.verticalCenter: parent.verticalCenter
-
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: qsTr("images/avatar%1-%2.png").arg(model.gender).arg(UIStyle.darkTheme ? "dark" : "light")
- }
-
- Text {
- text: model.name
- anchors.horizontalCenter: parent.horizontalCenter
- font.bold: true
- font.pixelSize: UIStyle.fontSizeS
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: date + " " + time
- font.pixelSize: UIStyle.fontSizeXS
- font.italic: true
- color: UIStyle.themeColorQtGray2
- }
- }
- }
-
- Component.onCompleted: {
- NotificationData.populateData(missedCallsList)
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark.png
deleted file mode 100644
index 2a553aed..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark@2x.png
deleted file mode 100644
index a91031f3..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light.png
deleted file mode 100644
index c88edc60..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light@2x.png
deleted file mode 100644
index 2c916b2c..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarf-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark.png
deleted file mode 100644
index 5810312c..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark@2x.png
deleted file mode 100644
index 64ddd8ea..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light.png
deleted file mode 100644
index f7abb4c9..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light@2x.png
deleted file mode 100644
index d30eb2d2..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/avatarm-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark.png b/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark.png
deleted file mode 100644
index 4080e3e4..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark@2x.png
deleted file mode 100644
index 6002e456..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light.png b/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light.png
deleted file mode 100644
index d05f17b3..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light@2x.png b/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light@2x.png
deleted file mode 100644
index d28e62c5..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/images/missedcall-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Notifications/notifications.js b/examples/quickcontrols2/wearable/qml/Notifications/notifications.js
deleted file mode 100644
index 8716c56f..00000000
--- a/examples/quickcontrols2/wearable/qml/Notifications/notifications.js
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-function populateData(listData) {
- listData.append({
- name: "John Doe",
- gender: "m",
- date: "02/15/2017",
- time: "09:20 am"
- });
-
- listData.append({
- name: "Jane Worldege",
- gender: "f",
- date: "02/06/2017",
- time: "10:15 am"
- });
-
- listData.append({
- name: "Jennifer Wang",
- gender: "f",
- date: "02/03/2017",
- time: "05:16 pm"
- });
-}
diff --git a/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml b/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml
deleted file mode 100644
index 23bb9acd..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/SettingsPage.qml
+++ /dev/null
@@ -1,176 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import ".."
-import "../Style"
-
-Item {
-
- QQC2.SwipeView {
- id: svSettingsContainer
-
- anchors.fill: parent
-
- SwipeViewPage {
- id: settingsPage1
-
- property alias bluetoothSwitch: bluetoothSwitch
- property alias wirelessSwitch: wirelessSwitch
-
- Column {
- anchors.centerIn: parent
- spacing: 25
-
- Row {
- spacing: 50
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/bluetooth")
- }
- QQC2.Switch {
- id: bluetoothSwitch
- anchors.verticalCenter: parent.verticalCenter
- checked: settings.bluetooth
- onToggled: settings.bluetooth = checked
- }
- }
- Row {
- spacing: 50
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/wifi")
- }
- QQC2.Switch {
- id: wirelessSwitch
- anchors.verticalCenter: parent.verticalCenter
- checked: settings.wireless
- onToggled: settings.wireless = checked
- }
- }
- }
- }
-
- SwipeViewPage {
- id: settingsPage2
-
- property alias brightnessSlider: brightnessSlider
- property alias darkThemeSwitch: darkThemeSwitch
-
- Column {
- anchors.centerIn: parent
- spacing: 2
-
- Column {
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/brightness")
- }
- QQC2.Slider {
- id: brightnessSlider
- anchors.horizontalCenter: parent.horizontalCenter
- from: 0
- to: 5
- stepSize: 1
- value: settings.brightness
- onMoved: settings.brightness = value
- }
- }
- Column {
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/theme")
- }
- QQC2.Switch {
- id: darkThemeSwitch
- anchors.horizontalCenter: parent.horizontalCenter
- checked: settings.darkTheme
- onToggled: settings.darkTheme = checked
- }
- }
- }
- }
-
- SwipeViewPage {
- id: settingsPage3
-
- Column {
- anchors.centerIn: parent
-
- Column {
- anchors.horizontalCenter: parent.horizontalCenter
- spacing: 6
-
- Image {
- anchors.horizontalCenter: parent.horizontalCenter
- source: UIStyle.themeImagePath("images/demo-mode")
- }
- QQC2.Switch {
- id: demoModeSwitch
- anchors.horizontalCenter: parent.horizontalCenter
- checked: settings.demoMode
- onToggled: settings.demoMode = checked
- }
- }
- }
- }
- }
-
- QQC2.PageIndicator {
- count: svSettingsContainer.count
- currentIndex: svSettingsContainer.currentIndex
-
- anchors.bottom: svSettingsContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png
deleted file mode 100644
index 32040b18..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark@2x.png
deleted file mode 100644
index d29c6d3a..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png
deleted file mode 100644
index 2b2d0e7e..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light@2x.png
deleted file mode 100644
index 276d7337..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/bluetooth-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png
deleted file mode 100644
index 1904a6a4..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark@2x.png
deleted file mode 100644
index 7cd287e9..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png
deleted file mode 100644
index 846a896c..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light@2x.png
deleted file mode 100644
index 94753ea6..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/brightness-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png
deleted file mode 100644
index 571a4645..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark@2x.png
deleted file mode 100644
index a8203b35..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png
deleted file mode 100644
index 0f8fcc75..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.png
deleted file mode 100644
index 57282a5a..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png
deleted file mode 100644
index 1f967488..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white@2x.png
deleted file mode 100644
index fd0611e6..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-white@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg b/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg
deleted file mode 100644
index ad1ce448..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode.svg
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="64"
- height="64"
- viewBox="0 0 16.933333 16.933333"
- version="1.1"
- id="svg8"
- inkscape:version="0.92.3 (d244b95, 2018-08-02)"
- sodipodi:docname="demo-mode.svg"
- inkscape:export-filename="/home/mitch/dev/qt5.12/qtquickcontrols2/examples/quickcontrols2/wearable/qml/Settings/images/demo-mode-light@2x.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <defs
- id="defs2" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="15.839192"
- inkscape:cx="26.498574"
- inkscape:cy="25.685519"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="true"
- units="px"
- fit-margin-top="1"
- fit-margin-left="1"
- fit-margin-right="1"
- fit-margin-bottom="1"
- inkscape:window-width="3706"
- inkscape:window-height="2031"
- inkscape:window-x="134"
- inkscape:window-y="55"
- inkscape:window-maximized="1"
- inkscape:snap-global="false">
- <inkscape:grid
- type="xygrid"
- id="grid3713"
- originx="-0.0070880335"
- originy="-280.58354" />
- </sodipodi:namedview>
- <metadata
- id="metadata5">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-0.00708803,0.51688025)">
- <path
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="m 1.6489221,4.3034973 h 0.7205171 v 7.0102767 c 0.01422,0.27678 0.1921164,0.348966 0.392741,0.392741 H 14.169383 c 0.276028,-0.04241 0.382882,-0.208883 0.423747,-0.423747 V 4.3094031 h 0.692464 v 7.0279949 c -0.111554,0.831949 -0.589986,1.000696 -1.104399,1.104399 H 9.3324693 l 2.2589977,2.258998 c -0.0189,0.375139 -0.204956,0.516261 -0.501999,0.502 L 8.8304698,12.943797 v 1.972563 c -0.051861,0.342631 -0.6681357,0.36382 -0.7323291,0 V 12.949702 L 5.8391425,15.208701 C 5.5142667,15.206145 5.3522558,15.056484 5.3725781,14.742136 L 7.7172116,12.397503 H 2.7415096 C 2.1429244,12.357576 1.6879444,12.049089 1.6444927,11.300486 Z"
- id="path826"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccccccccccccccccccccc" />
- <rect
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.2619375;stroke-miterlimit:4;stroke-dasharray:0.523875, 0.2619375;stroke-dashoffset:0"
- id="rect828"
- width="16.044523"
- height="1.9126476"
- x="0.441401"
- y="2.0340116"
- rx="1.0583333"
- ry="1.0583333" />
- <path
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="M 7.8323763,1.681278 V 1.1615701 c 0.1987987,-0.67546179 1.0821701,-0.66495897 1.2992931,0 V 1.681278 Z"
- id="path830"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccccc" />
- </g>
-</svg>
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png
deleted file mode 100644
index 346ffec3..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark@2x.png
deleted file mode 100644
index 4207d739..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png
deleted file mode 100644
index 2f02744c..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/theme-light@2x.png
deleted file mode 100644
index 07c4b774..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg b/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg
deleted file mode 100644
index bf3f1e57..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/theme.svg
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="64"
- height="64"
- viewBox="0 0 16.933333 16.933333"
- version="1.1"
- id="svg8"
- inkscape:version="0.92.3 (2405546, 2018-03-11)"
- sodipodi:docname="theme.svg"
- inkscape:export-filename="C:\dev\qt5.11\qtquickcontrols2\examples\quickcontrols2\wearable\qml\Settings\images\theme@2x.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <defs
- id="defs2" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="7.9195959"
- inkscape:cx="-11.371874"
- inkscape:cy="28.405259"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="true"
- units="px"
- fit-margin-top="1"
- fit-margin-left="1"
- fit-margin-right="1"
- fit-margin-bottom="1"
- inkscape:window-width="3840"
- inkscape:window-height="2066"
- inkscape:window-x="-11"
- inkscape:window-y="-11"
- inkscape:window-maximized="1"
- inkscape:snap-global="false">
- <inkscape:grid
- type="xygrid"
- id="grid3713"
- originx="-0.0070880335"
- originy="-280.58354" />
- </sodipodi:namedview>
- <metadata
- id="metadata5">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title />
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(-0.00708803,0.51688025)">
- <path
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.25668776px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="M 2.7296861,14.56437 H 12.831038 C 13.464556,14.411157 15.01089,14.101758 15.231756,11.825604 15.232242,10.48538 13.96701,8.4813248 11.69084,9.0467292 10.687852,7.3630573 9.1232541,7.2558172 8.2817051,7.654427 6.9050791,4.9744381 2.9222535,5.8560797 2.9703307,8.9435956 1.7108806,9.1004362 0.37826375,9.7182846 0.27167137,11.745388 0.31660717,13.546059 1.5831259,14.350467 2.7296861,14.56437 Z"
- id="path4535"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccccccc" />
- <path
- style="fill:#141f3a;fill-opacity:1;stroke:none;stroke-width:0.25668776px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- d="M 11.392726,0.92763044 C 8.8246143,2.2754379 7.9809615,4.3443829 8.9780532,7.1830936 10.167295,7.1426991 11.108291,7.6664967 11.822182,8.7064442 12.799984,8.6194307 13.765772,8.6795708 14.658208,9.6382815 15.605885,9.3257847 16.200803,8.852941 16.675838,8.325607 13.735088,9.4033595 8.6151974,5.957728 11.392726,0.92763044 Z"
- id="path4537"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccccc" />
- </g>
-</svg>
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png
deleted file mode 100644
index 72b84245..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark@2x.png
deleted file mode 100644
index bc49e4f4..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png
deleted file mode 100644
index 42c92516..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light@2x.png b/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light@2x.png
deleted file mode 100644
index 8aa4c9a8..00000000
--- a/examples/quickcontrols2/wearable/qml/Settings/images/wifi-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Style/PageIndicator.qml b/examples/quickcontrols2/wearable/qml/Style/PageIndicator.qml
deleted file mode 100644
index 68485f5d..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/PageIndicator.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import "."
-
-T.PageIndicator {
- id: control
-
- implicitWidth: contentItem.implicitWidth + leftPadding + rightPadding
- implicitHeight: contentItem.implicitHeight + topPadding + bottomPadding
-
- spacing: 6
- padding: 6
- bottomPadding: 7
-
- delegate: Rectangle {
- implicitWidth: 8
- implicitHeight: 8
-
- radius: width / 2
- color: UIStyle.themeColorQtGray3
-
- opacity: index === control.currentIndex ? 1.0 : 0.35
-
- Behavior on opacity {
- OpacityAnimator {
- duration: 100
- }
- }
- }
-
- contentItem: Row {
- spacing: control.spacing
-
- Repeater {
- model: control.count
- delegate: control.delegate
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Style/Slider.qml b/examples/quickcontrols2/wearable/qml/Style/Slider.qml
deleted file mode 100644
index a0be11c7..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/Slider.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import "."
-
-T.Slider {
- id: control
-
- implicitWidth: 200
- implicitHeight: 26
-
- handle: Rectangle {
- x: control.visualPosition * (control.width - width)
- y: (control.height - height) / 2
- width: 20
- height: 15
-
- radius: 5
- color: control.pressed ? "#f0f0f0" : "#f6f6f6"
- border.color: UIStyle.themeColorQtGray7
- }
-
- background: Rectangle {
- y: (control.height - height) / 2
- height: 4
- radius: 2
- color: UIStyle.themeColorQtGray3
-
- Rectangle {
- width: control.visualPosition * parent.width
- height: parent.height
- color: UIStyle.colorQtAuxGreen2
- radius: 2
- }
- }
-}
-
diff --git a/examples/quickcontrols2/wearable/qml/Style/Switch.qml b/examples/quickcontrols2/wearable/qml/Style/Switch.qml
deleted file mode 100644
index 4a0f4e49..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/Switch.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import "."
-
-T.Switch {
- id: control
-
- implicitWidth: 48
- implicitHeight: 26
-
- indicator: Rectangle {
- x: control.visualPosition * (control.width - width)
- y: (control.height - height) / 2
- width: 26
- height: 26
-
- radius: 13
- color: control.down ? UIStyle.themeColorQtGray6 : UIStyle.themeColorQtGray10
- border.color: !control.checked ? "#999999"
- : (control.down ? UIStyle.colorQtAuxGreen2
- : UIStyle.colorQtAuxGreen1)
-
- Behavior on x {
- enabled: !control.pressed
- SmoothedAnimation { velocity: 200 }
- }
- }
-
- background: Rectangle {
- radius: 13
- color: control.checked ? UIStyle.colorQtAuxGreen2 : UIStyle.colorRed
- border.color: control.checked ? UIStyle.colorQtAuxGreen2
- : UIStyle.themeColorQtGray6
- }
-}
-
diff --git a/examples/quickcontrols2/wearable/qml/Style/UIStyle.qml b/examples/quickcontrols2/wearable/qml/Style/UIStyle.qml
deleted file mode 100644
index 0efe84e5..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/UIStyle.qml
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-pragma Singleton
-
-QtObject {
- id: uiStyle
-
- // Font Sizes
- readonly property int fontSizeXXS: 10
- readonly property int fontSizeXS: 15
- readonly property int fontSizeS: 20
- readonly property int fontSizeM: 25
- readonly property int fontSizeL: 30
- readonly property int fontSizeXL: 35
- readonly property int fontSizeXXL: 40
-
- // Color Scheme
- // Green
- readonly property color colorQtPrimGreen: "#41cd52"
- readonly property color colorQtAuxGreen1: "#21be2b"
- readonly property color colorQtAuxGreen2: "#17a81a"
-
- // Red
- readonly property color colorRed: "#e6173d"
-
- // Gray
- readonly property color colorQtGray1: "#09102b"
- readonly property color colorQtGray2: "#222840"
- readonly property color colorQtGray3: "#3a4055"
- readonly property color colorQtGray4: "#53586b"
- readonly property color colorQtGray5: "#53586b"
- readonly property color colorQtGray6: "#848895"
- readonly property color colorQtGray7: "#9d9faa"
- readonly property color colorQtGray8: "#b5b7bf"
- readonly property color colorQtGray9: "#cecfd5"
- readonly property color colorQtGray10: "#f3f3f4"
-
- // Light/dark versions of the colors above.
- // Some UI elements always use a specific color regardless of theme,
- // which is why we have both sets: so that those elements don't need to hard-code the hex string.
- readonly property color themeColorQtGray1: darkTheme ? colorQtGray10 : colorQtGray1
- readonly property color themeColorQtGray2: darkTheme ? colorQtGray9 : colorQtGray2
- readonly property color themeColorQtGray3: darkTheme ? colorQtGray8 : colorQtGray3
- readonly property color themeColorQtGray4: darkTheme ? colorQtGray7 : colorQtGray4
- readonly property color themeColorQtGray5: darkTheme ? colorQtGray6 : colorQtGray5
- readonly property color themeColorQtGray6: darkTheme ? colorQtGray5 : colorQtGray6
- readonly property color themeColorQtGray7: darkTheme ? colorQtGray4 : colorQtGray7
- readonly property color themeColorQtGray8: darkTheme ? colorQtGray3 : colorQtGray8
- readonly property color themeColorQtGray9: darkTheme ? colorQtGray2 : colorQtGray9
- readonly property color themeColorQtGray10: darkTheme ? colorQtGray1 : colorQtGray10
-
- property bool darkTheme: false
-
- function themeImagePath(baseImagePath) {
- return baseImagePath + (darkTheme ? "-dark" : "-light") + ".png"
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Style/qmldir b/examples/quickcontrols2/wearable/qml/Style/qmldir
deleted file mode 100644
index a04072be..00000000
--- a/examples/quickcontrols2/wearable/qml/Style/qmldir
+++ /dev/null
@@ -1 +0,0 @@
-singleton UIStyle 1.0 UIStyle.qml
diff --git a/examples/quickcontrols2/wearable/qml/SwipeViewPage.qml b/examples/quickcontrols2/wearable/qml/SwipeViewPage.qml
deleted file mode 100644
index 1417d9f7..00000000
--- a/examples/quickcontrols2/wearable/qml/SwipeViewPage.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- // Don't show the item when the StackView that contains us
- // is being popped off the stack, as we use an x animation
- // and hence would show pages that we shouldn't since we
- // also don't have our own background.
- visible: SwipeView.isCurrentItem || (SwipeView.view.contentItem.moving && (SwipeView.isPreviousItem || SwipeView.isNextItem))
-}
diff --git a/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml b/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
deleted file mode 100644
index 2d411302..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/WeatherPage.qml
+++ /dev/null
@@ -1,297 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import ".."
-import "../Style"
-import "weather.js" as WeatherData
-
-Item {
- QQC2.SwipeView {
- id: svWeatherContainer
-
- anchors.fill: parent
-
- SwipeViewPage {
- id: weatherPage1
-
- Row {
- anchors.centerIn: parent
- spacing: 2
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/temperature")
- }
-
- Column {
- anchors.verticalCenter: parent.verticalCenter
- spacing: 40
-
- Text {
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.temp) ?
- qsTr("Avg: ")
- + String(wDataCntr.weatherData.main.temp)
- + " °F" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.temp_min) ?
- qsTr("Min: ")
- + String(wDataCntr.weatherData.main.temp_min)
- + " °F" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.temp_max) ?
- qsTr("Max: ")
- + String(wDataCntr.weatherData.main.temp_max)
- + " °F " : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
- }
- }
-
- SwipeViewPage {
- id: weatherPage2
-
- Column {
- spacing: 40
- anchors.centerIn: parent
-
- Row {
- spacing: 20
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- id: wImg
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/wind")
- }
-
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.wind
- && wDataCntr.weatherData.wind.speed) ?
- String(wDataCntr.weatherData.wind.speed)
- + " mph" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
-
- Row {
- spacing: 20
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- id: hImg
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/humidity")
- }
-
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.humidity) ?
- String(wDataCntr.weatherData.main.humidity)
- + " %" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
- }
- }
-
- SwipeViewPage {
- id: weatherPage3
-
- Row {
- anchors.centerIn: parent
- spacing: 10
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/pressure")
- }
-
- Column {
- anchors.verticalCenter: parent.verticalCenter
- spacing: 40
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.pressure) ?
- String(wDataCntr.weatherData.main.pressure)
- + " hPa" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.sea_level) ?
- String(wDataCntr.weatherData.main.sea_level)
- + " hPa" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
-
- Text {
- anchors.horizontalCenter: parent.horizontalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.main
- && wDataCntr.weatherData.main.grnd_level) ?
- String(wDataCntr.weatherData.main.grnd_level)
- + " hPa" : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
- }
- }
-
- SwipeViewPage {
- id: weatherPage4
-
- Column {
- spacing: 40
- anchors.centerIn: parent
-
- Row {
- spacing: 30
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/sunrise")
- }
-
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.sys
- && wDataCntr.weatherData.sys.sunrise) ?
- WeatherData.getTimeHMS(wDataCntr.weatherData.sys.sunrise)
- : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
-
- Row {
- spacing: 30
- anchors.horizontalCenter: parent.horizontalCenter
-
- Image {
- anchors.verticalCenter: parent.verticalCenter
- source: UIStyle.themeImagePath("images/sunset")
- }
-
- Text {
- anchors.verticalCenter: parent.verticalCenter
- text: (wDataCntr.weatherData
- && wDataCntr.weatherData.sys
- && wDataCntr.weatherData.sys.sunset) ?
- WeatherData.getTimeHMS(wDataCntr.weatherData.sys.sunset)
- : "N/A"
- font.pixelSize: UIStyle.fontSizeM
- font.letterSpacing: 1
- color: UIStyle.themeColorQtGray1
- }
- }
- }
- }
- }
-
- QtObject {
- id: wDataCntr
- property var weatherData
- }
-
- QQC2.PageIndicator {
- count: svWeatherContainer.count
- currentIndex: svWeatherContainer.currentIndex
-
- anchors.bottom: svWeatherContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
- Component.onCompleted: {
- WeatherData.requestWeatherData(wDataCntr)
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png
deleted file mode 100644
index 6baaefda..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png
deleted file mode 100644
index 7060c48d..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png
deleted file mode 100644
index ef9ed9de..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png
deleted file mode 100644
index 5c367a3e..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/humidity-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png
deleted file mode 100644
index 2038c695..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png
deleted file mode 100644
index 9b5a4abe..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png
deleted file mode 100644
index 7850609e..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png
deleted file mode 100644
index 14c1cab3..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/pressure-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png
deleted file mode 100644
index 5a70f984..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png
deleted file mode 100644
index 2baa7135..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png
deleted file mode 100644
index 70a9a969..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png
deleted file mode 100644
index 3a7892eb..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunrise-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png
deleted file mode 100644
index 5dde7c0f..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png
deleted file mode 100644
index 3892c2ea..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png
deleted file mode 100644
index 01bb9ec8..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png
deleted file mode 100644
index 39aeebe5..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/sunset-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png
deleted file mode 100644
index 1c86bae2..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png
deleted file mode 100644
index c1ac7d66..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png
deleted file mode 100644
index 5d7faa99..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png
deleted file mode 100644
index 0b4340ce..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/temperature-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png
deleted file mode 100644
index 4e5264a3..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png
deleted file mode 100644
index 0a893d50..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind-dark@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png
deleted file mode 100644
index c728fcc0..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind-light.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png b/examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png
deleted file mode 100644
index bab49c04..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/images/wind-light@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/Weather/weather.js b/examples/quickcontrols2/wearable/qml/Weather/weather.js
deleted file mode 100644
index b3bf4465..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/weather.js
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-function requestWeatherData(cntr) {
- var xhr = new XMLHttpRequest;
- xhr.open("GET", "weather.json");
- xhr.onreadystatechange = function () {
- if (xhr.readyState === XMLHttpRequest.DONE) {
- cntr.weatherData = JSON.parse(xhr.responseText)
- }
- }
- xhr.send();
-}
-
-function getTimeHMS(utcTime) {
- var date = new Date(utcTime * 1000);
- // Hours part from the timestamp
- var hours = date.getHours();
- var ampm = Math.floor((hours / 12)) ? " PM" : " AM";
- hours = (hours % 12);
-
- // Minutes part from the timestamp
- var minutes = "0" + date.getMinutes();
- // Seconds part from the timestamp
- var seconds = "0" + date.getSeconds();
-
- // Will display time in 10:30:23 format
- return hours % 12 + ':' + minutes.substr(-2) + ':' + seconds.substr(-2)
- + ampm;
-}
diff --git a/examples/quickcontrols2/wearable/qml/Weather/weather.json b/examples/quickcontrols2/wearable/qml/Weather/weather.json
deleted file mode 100644
index 2cce95c6..00000000
--- a/examples/quickcontrols2/wearable/qml/Weather/weather.json
+++ /dev/null
@@ -1 +0,0 @@
-{"coord":{"lon":-122.42,"lat":37.77},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"base":"stations","main":{"temp":45.22,"pressure":1020.17,"humidity":88,"temp_min":36.92,"temp_max":58.92,"sea_level":1028.19,"grnd_level":1020.17},"wind":{"speed":6.73,"deg":201.002},"clouds":{"all":68},"dt":1476412232,"sys":{"message":0.012,"country":"US","sunrise":1476454666,"sunset":1476495156},"id":5391959,"name":"San Francisco","cod":200}
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml b/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml
deleted file mode 100644
index 613d936b..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/Clock.qml
+++ /dev/null
@@ -1,188 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import ".."
-import "../Style"
-
-SwipeViewPage {
- id: clock
-
- property int hours
- property int minutes
- property int seconds
- property real shift: timeShift
- property bool night: false
- property bool internationalTime: true //Unset for local time
-
- function getWatchFaceImage(imageName) {
- return "images/" + imageName
- }
-
- function timeChanged() {
- var date = new Date
- hours = internationalTime ? date.getUTCHours() + Math.floor(
- clock.shift) : date.getHours()
- night = (hours < 7 || hours > 19)
- minutes = internationalTime ?
- date.getUTCMinutes() + ((clock.shift % 1) * 60) : date.getMinutes()
- seconds = date.getUTCSeconds()
- }
-
- Timer {
- interval: 100
- running: true
- repeat: true
- onTriggered: clock.timeChanged()
- }
-
- Item {
- anchors.centerIn: parent
-
- width: 200
- height: 220
-
- Rectangle {
- color: clock.night ? UIStyle.colorQtGray1 : UIStyle.colorQtGray10
- radius: width / 2
- width: parent.width
- height: parent.width
- }
-
- Image {
- id: background
- source: getWatchFaceImage("swissdaydial.png")
- visible: clock.night == false
- }
- Image {
- source: getWatchFaceImage("swissnightdial.png")
- visible: clock.night == true
- }
-
- Image {
- x: 92.5
- y: 27
- source: getWatchFaceImage(clock.night ?
- "swissnighthour.png"
- : "swissdayhour.png")
- transform: Rotation {
- id: hourRotation
- origin.x: 7.5
- origin.y: 73
- angle: (clock.hours * 30) + (clock.minutes * 0.5)
- Behavior on angle {
- SpringAnimation {
- spring: 2
- damping: 0.2
- modulus: 360
- }
- }
- }
- }
-
- Image {
- x: 93.5
- y: 17
- source: getWatchFaceImage(clock.night ?
- "swissnightminute.png"
- : "swissdayminute.png")
- transform: Rotation {
- id: minuteRotation
- origin.x: 6.5
- origin.y: 83
- angle: clock.minutes * 6
- Behavior on angle {
- SpringAnimation {
- spring: 2
- damping: 0.2
- modulus: 360
- }
- }
- }
- }
-
- Image {
- x: 97.5
- y: 20
- source: getWatchFaceImage("second.png")
- transform: Rotation {
- id: secondRotation
- origin.x: 2.5
- origin.y: 80
- angle: clock.seconds * 6
- Behavior on angle {
- SpringAnimation {
- spring: 2
- damping: 0.2
- modulus: 360
- }
- }
- }
- }
-
- Image {
- anchors.centerIn: background
- source: getWatchFaceImage("center.png")
- }
-
- Text {
- id: cityLabel
- anchors.bottom: parent.bottom
- anchors.bottomMargin: 2
- anchors.horizontalCenter: parent.horizontalCenter
-
- text: cityName
- color: UIStyle.themeColorQtGray1
- font.pixelSize: UIStyle.fontSizeXS
- font.letterSpacing: 2
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/WorldClockPage.qml b/examples/quickcontrols2/wearable/qml/WorldClock/WorldClockPage.qml
deleted file mode 100644
index 8def8b45..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/WorldClockPage.qml
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import "../Style"
-
-Item {
- QQC2.SwipeView {
- id: svWatchContainer
-
- anchors.fill: parent
-
- ListModel {
- id: placesList
- ListElement {
- cityName: "New York"
- timeShift: -4
- }
- ListElement {
- cityName: "London"
- timeShift: 0
- }
- ListElement {
- cityName: "Oslo"
- timeShift: 1
- }
- ListElement {
- cityName: "Mumbai"
- timeShift: 5.5
- }
- ListElement {
- cityName: "Tokyo"
- timeShift: 9
- }
- ListElement {
- cityName: "Brisbane"
- timeShift: 10
- }
- ListElement {
- cityName: "Los Angeles"
- timeShift: -8
- }
- }
-
- Repeater {
- model: placesList
- delegate: Clock {
- }
- }
- }
-
- QQC2.PageIndicator {
- count: svWatchContainer.count
- currentIndex: svWatchContainer.currentIndex
-
- anchors.bottom: svWatchContainer.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/center.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/center.png
deleted file mode 100644
index 7fbd802a..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/center.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/center@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/center@2x.png
deleted file mode 100644
index 34ad1900..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/center@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night.png
deleted file mode 100644
index 698f57a5..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night@2x.png
deleted file mode 100644
index 75456795..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock-night@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/clock.png
deleted file mode 100644
index 6e1c6eed..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/clock.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/second.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/second.png
deleted file mode 100644
index eee07efb..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/second.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/second@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/second@2x.png
deleted file mode 100644
index 689a01be..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/second@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial.png
deleted file mode 100644
index 64136618..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial@2x.png
deleted file mode 100644
index 95cb75b6..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdaydial@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour.png
deleted file mode 100644
index 255985d2..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour@2x.png
deleted file mode 100644
index 2fb6feac..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayhour@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute.png
deleted file mode 100644
index bc6992f8..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute@2x.png
deleted file mode 100644
index a7c55d4e..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissdayminute@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial.png
deleted file mode 100644
index e2590af4..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial@2x.png
deleted file mode 100644
index 86ecf5ad..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightdial@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour.png
deleted file mode 100644
index 1c6a6131..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour@2x.png
deleted file mode 100644
index a37e0d12..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnighthour@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute.png
deleted file mode 100644
index 3353ba2c..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute@2x.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute@2x.png
deleted file mode 100644
index 627cca9c..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissnightminute@2x.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissseconds.png b/examples/quickcontrols2/wearable/qml/WorldClock/images/swissseconds.png
deleted file mode 100644
index 66b4f3fa..00000000
--- a/examples/quickcontrols2/wearable/qml/WorldClock/images/swissseconds.png
+++ /dev/null
Binary files differ
diff --git a/examples/quickcontrols2/wearable/wearable.cpp b/examples/quickcontrols2/wearable/wearable.cpp
deleted file mode 100644
index 68dee7c0..00000000
--- a/examples/quickcontrols2/wearable/wearable.cpp
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQuickStyle>
-#include <QIcon>
-
-int main(int argc, char *argv[])
-{
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QCoreApplication::setApplicationName("Wearable");
- QCoreApplication::setOrganizationName("QtProject");
-
- QGuiApplication app(argc, argv);
-
- //! [style]
- QQuickStyle::setStyle(QStringLiteral("qrc:/qml/Style"));
- //! [style]
-
- //! [icons]
- QIcon::setThemeName(QStringLiteral("wearable"));
- //! [icons]
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/wearable.qml")));
-
- return app.exec();
-}
diff --git a/examples/quickcontrols2/wearable/wearable.pro b/examples/quickcontrols2/wearable/wearable.pro
deleted file mode 100644
index 8d55e44e..00000000
--- a/examples/quickcontrols2/wearable/wearable.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-TARGET = wearable
-QT += quick quickcontrols2
-
-SOURCES += \
- wearable.cpp
-
-RESOURCES += \
- wearable.qrc
-
-target.path = $$[QT_INSTALL_EXAMPLES]/quickcontrols2/wearable
-INSTALLS += target
diff --git a/examples/quickcontrols2/wearable/wearable.qml b/examples/quickcontrols2/wearable/wearable.qml
deleted file mode 100644
index bda7d169..00000000
--- a/examples/quickcontrols2/wearable/wearable.qml
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.3 as QQC2
-import Qt.labs.settings 1.0
-import "qml"
-import "qml/Style"
-
-QQC2.ApplicationWindow {
- id: window
- visible: true
- width: 320
- height: 320
- title: qsTr("Wearable")
-
- Settings {
- id: settings
- property bool wireless
- property bool bluetooth
- property int brightness
- property bool darkTheme
- property bool demoMode
- }
-
- Binding {
- target: UIStyle
- property: "darkTheme"
- value: settings.darkTheme
- }
-
- // We need the settings object both here and in SettingsPage,
- // so for convenience, we declare it as a property of the root object so that
- // it will be available to all of the QML files that we load.
- property alias settings: settings
-
- background: Image {
- source: "images/background-" + (settings.darkTheme ? "dark" : "light") + ".png"
- }
-
- header: NaviButton {
- id: homeButton
-
- edge: Qt.TopEdge
- enabled: stackView.depth > 1
- imageSource: "images/home.png"
-
- onClicked: stackView.pop(null)
- }
-
- footer: NaviButton {
- id: backButton
-
- edge: Qt.BottomEdge
- enabled: stackView.depth > 1
- imageSource: "images/back.png"
-
- onClicked: stackView.pop()
- }
-
- QQC2.StackView {
- id: stackView
-
- focus: true
- anchors.fill: parent
-
- initialItem: LauncherPage {
- onLaunched: stackView.push(page)
- }
- }
-
- DemoMode {
- stackView: stackView
- }
-
- DemoModeIndicator {
- id: demoModeIndicator
- y: settings.demoMode ? -height : -height * 2
- anchors.horizontalCenter: parent.horizontalCenter
- height: header.height
- z: window.header.z + 1
- }
-
- MouseArea {
- enabled: settings.demoMode
- anchors.fill: parent
- onClicked: {
- // Stop demo mode and return to the launcher page.
- settings.demoMode = false
- stackView.pop(null)
- }
- }
-}
diff --git a/examples/quickcontrols2/wearable/wearable.qrc b/examples/quickcontrols2/wearable/wearable.qrc
deleted file mode 100644
index db59d038..00000000
--- a/examples/quickcontrols2/wearable/wearable.qrc
+++ /dev/null
@@ -1,155 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>wearable.qml</file>
- <file>qml/LauncherPage.qml</file>
- <file>qml/NaviButton.qml</file>
- <file>icons/wearable/index.theme</file>
- <file>icons/wearable/36x36/alarms.png</file>
- <file>icons/wearable/36x36/fitness.png</file>
- <file>icons/wearable/36x36/navigation.png</file>
- <file>icons/wearable/36x36/notifications.png</file>
- <file>icons/wearable/36x36/settings.png</file>
- <file>icons/wearable/36x36/weather.png</file>
- <file>icons/wearable/36x36/worldclock.png</file>
- <file>icons/wearable/36x36@2/alarms.png</file>
- <file>icons/wearable/36x36@2/fitness.png</file>
- <file>icons/wearable/36x36@2/navigation.png</file>
- <file>icons/wearable/36x36@2/notifications.png</file>
- <file>icons/wearable/36x36@2/settings.png</file>
- <file>icons/wearable/36x36@2/weather.png</file>
- <file>icons/wearable/36x36@2/worldclock.png</file>
- <file>images/background-light.png</file>
- <file>images/background-dark.png</file>
- <file>images/back.png</file>
- <file>images/back@2x.png</file>
- <file>images/home.png</file>
- <file>images/home@2x.png</file>
- <file>qml/Alarms/AlarmsPage.qml</file>
- <file>qml/Fitness/fitness.js</file>
- <file>qml/Fitness/FitnessPage.qml</file>
- <file>qml/Fitness/images/man-running-light.png</file>
- <file>qml/Fitness/images/man-running-light@2x.png</file>
- <file>qml/Fitness/images/man-walking-light.png</file>
- <file>qml/Fitness/images/man-walking-light@2x.png</file>
- <file>qml/Fitness/images/man-running-dark.png</file>
- <file>qml/Fitness/images/man-running-dark@2x.png</file>
- <file>qml/Fitness/images/man-walking-dark.png</file>
- <file>qml/Fitness/images/man-walking-dark@2x.png</file>
- <file>qml/Navigation/navigation.js</file>
- <file>qml/Navigation/NavigationPage.qml</file>
- <file>qml/Navigation/RouteElement.qml</file>
- <file>qml/Navigation/walk_route.json</file>
- <file>qml/Navigation/images/end.png</file>
- <file>qml/Navigation/images/end@2x.png</file>
- <file>qml/Navigation/images/leftturn-light.png</file>
- <file>qml/Navigation/images/leftturn-light@2x.png</file>
- <file>qml/Navigation/images/leftturn-dark.png</file>
- <file>qml/Navigation/images/leftturn-dark@2x.png</file>
- <file>qml/Navigation/images/navigation-light.png</file>
- <file>qml/Navigation/images/navigation-light@2x.png</file>
- <file>qml/Navigation/images/navigation-dark.png</file>
- <file>qml/Navigation/images/navigation-dark@2x.png</file>
- <file>qml/Navigation/images/rightturn-light.png</file>
- <file>qml/Navigation/images/rightturn-light@2x.png</file>
- <file>qml/Navigation/images/rightturn-dark.png</file>
- <file>qml/Navigation/images/rightturn-dark@2x.png</file>
- <file>qml/Navigation/images/start.png</file>
- <file>qml/Navigation/images/start@2x.png</file>
- <file>qml/Navigation/images/straight-light.png</file>
- <file>qml/Navigation/images/straight-light@2x.png</file>
- <file>qml/Navigation/images/straight-dark.png</file>
- <file>qml/Navigation/images/straight-dark@2x.png</file>
- <file>qml/Navigation/images/uturn.png</file>
- <file>qml/Navigation/images/uturn@2x.png</file>
- <file>qml/Notifications/notifications.js</file>
- <file>qml/Notifications/NotificationsPage.qml</file>
- <file>qml/Notifications/images/avatarf-light.png</file>
- <file>qml/Notifications/images/avatarf-light@2x.png</file>
- <file>qml/Notifications/images/avatarm-light.png</file>
- <file>qml/Notifications/images/avatarm-light@2x.png</file>
- <file>qml/Notifications/images/missedcall-light.png</file>
- <file>qml/Notifications/images/missedcall-light@2x.png</file>
- <file>qml/Notifications/images/avatarf-dark.png</file>
- <file>qml/Notifications/images/avatarf-dark@2x.png</file>
- <file>qml/Notifications/images/avatarm-dark.png</file>
- <file>qml/Notifications/images/avatarm-dark@2x.png</file>
- <file>qml/Notifications/images/missedcall-dark.png</file>
- <file>qml/Notifications/images/missedcall-dark@2x.png</file>
- <file>qml/Settings/SettingsPage.qml</file>
- <file>qml/Settings/images/bluetooth-light.png</file>
- <file>qml/Settings/images/bluetooth-light@2x.png</file>
- <file>qml/Settings/images/brightness-light.png</file>
- <file>qml/Settings/images/brightness-light@2x.png</file>
- <file>qml/Settings/images/demo-mode-light.png</file>
- <file>qml/Settings/images/demo-mode-light@2x.png</file>
- <file>qml/Settings/images/demo-mode-dark.png</file>
- <file>qml/Settings/images/demo-mode-dark@2x.png</file>
- <file>qml/Settings/images/demo-mode-white.png</file>
- <file>qml/Settings/images/demo-mode-white@2x.png</file>
- <file>qml/Settings/images/theme-light.png</file>
- <file>qml/Settings/images/theme-light@2x.png</file>
- <file>qml/Settings/images/wifi-light.png</file>
- <file>qml/Settings/images/wifi-light@2x.png</file>
- <file>qml/Settings/images/bluetooth-dark.png</file>
- <file>qml/Settings/images/bluetooth-dark@2x.png</file>
- <file>qml/Settings/images/brightness-dark.png</file>
- <file>qml/Settings/images/brightness-dark@2x.png</file>
- <file>qml/Settings/images/theme-dark.png</file>
- <file>qml/Settings/images/theme-dark@2x.png</file>
- <file>qml/Settings/images/wifi-dark.png</file>
- <file>qml/Settings/images/wifi-dark@2x.png</file>
- <file>qml/Style/qmldir</file>
- <file>qml/Style/PageIndicator.qml</file>
- <file>qml/Style/Slider.qml</file>
- <file>qml/Style/Switch.qml</file>
- <file>qml/Style/UIStyle.qml</file>
- <file>qml/Weather/weather.js</file>
- <file>qml/Weather/weather.json</file>
- <file>qml/Weather/WeatherPage.qml</file>
- <file>qml/Weather/images/humidity-light.png</file>
- <file>qml/Weather/images/humidity-light@2x.png</file>
- <file>qml/Weather/images/pressure-light.png</file>
- <file>qml/Weather/images/pressure-light@2x.png</file>
- <file>qml/Weather/images/sunrise-light.png</file>
- <file>qml/Weather/images/sunrise-light@2x.png</file>
- <file>qml/Weather/images/sunset-light.png</file>
- <file>qml/Weather/images/sunset-light@2x.png</file>
- <file>qml/Weather/images/temperature-light.png</file>
- <file>qml/Weather/images/temperature-light@2x.png</file>
- <file>qml/Weather/images/wind-light.png</file>
- <file>qml/Weather/images/wind-light@2x.png</file>
- <file>qml/Weather/images/humidity-dark.png</file>
- <file>qml/Weather/images/humidity-dark@2x.png</file>
- <file>qml/Weather/images/pressure-dark.png</file>
- <file>qml/Weather/images/pressure-dark@2x.png</file>
- <file>qml/Weather/images/sunrise-dark.png</file>
- <file>qml/Weather/images/sunrise-dark@2x.png</file>
- <file>qml/Weather/images/sunset-dark.png</file>
- <file>qml/Weather/images/sunset-dark@2x.png</file>
- <file>qml/Weather/images/temperature-dark.png</file>
- <file>qml/Weather/images/temperature-dark@2x.png</file>
- <file>qml/Weather/images/wind-dark.png</file>
- <file>qml/Weather/images/wind-dark@2x.png</file>
- <file>qml/WorldClock/Clock.qml</file>
- <file>qml/WorldClock/WorldClockPage.qml</file>
- <file>qml/WorldClock/images/center.png</file>
- <file>qml/WorldClock/images/center@2x.png</file>
- <file>qml/WorldClock/images/second.png</file>
- <file>qml/WorldClock/images/second@2x.png</file>
- <file>qml/WorldClock/images/swissdaydial.png</file>
- <file>qml/WorldClock/images/swissdaydial@2x.png</file>
- <file>qml/WorldClock/images/swissdayhour.png</file>
- <file>qml/WorldClock/images/swissdayhour@2x.png</file>
- <file>qml/WorldClock/images/swissdayminute.png</file>
- <file>qml/WorldClock/images/swissdayminute@2x.png</file>
- <file>qml/WorldClock/images/swissnightdial.png</file>
- <file>qml/WorldClock/images/swissnightdial@2x.png</file>
- <file>qml/WorldClock/images/swissnighthour.png</file>
- <file>qml/WorldClock/images/swissnighthour@2x.png</file>
- <file>qml/WorldClock/images/swissnightminute.png</file>
- <file>qml/WorldClock/images/swissnightminute@2x.png</file>
- <file>qml/SwipeViewPage.qml</file>
- <file>qml/DemoMode.qml</file>
- <file>qml/DemoModeIndicator.qml</file>
- </qresource>
-</RCC>
diff --git a/qtquickcontrols2.pro b/qtquickcontrols2.pro
deleted file mode 100644
index ce6617ea..00000000
--- a/qtquickcontrols2.pro
+++ /dev/null
@@ -1,2 +0,0 @@
-requires(qtHaveModule(quick))
-load(qt_parts)
diff --git a/src/imports/calendar/DayOfWeekRow.qml b/src/imports/calendar/DayOfWeekRow.qml
deleted file mode 100644
index 2fc0d6f7..00000000
--- a/src/imports/calendar/DayOfWeekRow.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-AbstractDayOfWeekRow {
- id: control
-
- implicitWidth: Math.max(background ? background.implicitWidth : 0,
- contentItem.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(background ? background.implicitHeight : 0,
- contentItem.implicitHeight + topPadding + bottomPadding)
-
- spacing: 6
- topPadding: 6
- bottomPadding: 6
- font.bold: true
-
- //! [delegate]
- delegate: Text {
- text: model.shortName
- font: control.font
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- //! [delegate]
-
- //! [contentItem]
- contentItem: Row {
- spacing: control.spacing
- Repeater {
- model: control.source
- delegate: control.delegate
- }
- }
- //! [contentItem]
-}
diff --git a/src/imports/calendar/MonthGrid.qml b/src/imports/calendar/MonthGrid.qml
deleted file mode 100644
index 884ce65f..00000000
--- a/src/imports/calendar/MonthGrid.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-AbstractMonthGrid {
- id: control
-
- implicitWidth: Math.max(background ? background.implicitWidth : 0,
- contentItem.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(background ? background.implicitHeight : 0,
- contentItem.implicitHeight + topPadding + bottomPadding)
-
- spacing: 6
-
- //! [delegate]
- delegate: Text {
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- opacity: model.month === control.month ? 1 : 0
- text: model.day
- font: control.font
- }
- //! [delegate]
-
- //! [contentItem]
- contentItem: Grid {
- rows: 6
- columns: 7
- rowSpacing: control.spacing
- columnSpacing: control.spacing
-
- Repeater {
- model: control.source
- delegate: control.delegate
- }
- }
- //! [contentItem]
-}
diff --git a/src/imports/calendar/WeekNumberColumn.qml b/src/imports/calendar/WeekNumberColumn.qml
deleted file mode 100644
index e2c9d98b..00000000
--- a/src/imports/calendar/WeekNumberColumn.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-AbstractWeekNumberColumn {
- id: control
-
- implicitWidth: Math.max(background ? background.implicitWidth : 0,
- contentItem.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(background ? background.implicitHeight : 0,
- contentItem.implicitHeight + topPadding + bottomPadding)
-
- spacing: 6
- leftPadding: 6
- rightPadding: 6
- font.bold: true
-
- //! [delegate]
- delegate: Text {
- text: model.weekNumber
- font: control.font
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- //! [delegate]
-
- //! [contentItem]
- contentItem: Column {
- spacing: control.spacing
- Repeater {
- model: control.source
- delegate: control.delegate
- }
- }
- //! [contentItem]
-}
diff --git a/src/imports/calendar/calendar.pri b/src/imports/calendar/calendar.pri
deleted file mode 100644
index 00ed1209..00000000
--- a/src/imports/calendar/calendar.pri
+++ /dev/null
@@ -1,24 +0,0 @@
-QML_FILES = \
- DayOfWeekRow.qml \
- MonthGrid.qml \
- WeekNumberColumn.qml
-
-HEADERS += \
- $$PWD/qquickcalendar_p.h \
- $$PWD/qquickcalendarmodel_p.h \
- $$PWD/qquickdayofweekmodel_p.h \
- $$PWD/qquickdayofweekrow_p.h \
- $$PWD/qquickmonthgrid_p.h \
- $$PWD/qquickmonthmodel_p.h \
- $$PWD/qquickweeknumbercolumn_p.h \
- $$PWD/qquickweeknumbermodel_p.h
-
-SOURCES += \
- $$PWD/qquickcalendar.cpp \
- $$PWD/qquickcalendarmodel.cpp \
- $$PWD/qquickdayofweekmodel.cpp \
- $$PWD/qquickdayofweekrow.cpp \
- $$PWD/qquickmonthgrid.cpp \
- $$PWD/qquickmonthmodel.cpp \
- $$PWD/qquickweeknumbercolumn.cpp \
- $$PWD/qquickweeknumbermodel.cpp
diff --git a/src/imports/calendar/calendar.pro b/src/imports/calendar/calendar.pro
deleted file mode 100644
index 039906c1..00000000
--- a/src/imports/calendar/calendar.pro
+++ /dev/null
@@ -1,23 +0,0 @@
-TARGET = qtlabscalendarplugin
-TARGETPATH = Qt/labs/calendar
-IMPORT_VERSION = 1.0
-
-QT += qml quick
-QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-QMAKE_DOCS = $$PWD/doc/qtlabscalendar.qdocconf
-
-OTHER_FILES += \
- qmldir
-
-SOURCES += \
- $$PWD/qtlabscalendarplugin.cpp
-
-include(calendar.pri)
-
-!static: CONFIG += qmlcache
-
-CONFIG += no_cxx_module
-load(qml_plugin)
diff --git a/src/imports/calendar/doc/images/qtlabscalendar-calendarmodel.png b/src/imports/calendar/doc/images/qtlabscalendar-calendarmodel.png
deleted file mode 100644
index 7a140d27..00000000
--- a/src/imports/calendar/doc/images/qtlabscalendar-calendarmodel.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/calendar/doc/images/qtlabscalendar-dayofweekrow-layout.png b/src/imports/calendar/doc/images/qtlabscalendar-dayofweekrow-layout.png
deleted file mode 100644
index 130e3757..00000000
--- a/src/imports/calendar/doc/images/qtlabscalendar-dayofweekrow-layout.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/calendar/doc/images/qtlabscalendar-dayofweekrow.png b/src/imports/calendar/doc/images/qtlabscalendar-dayofweekrow.png
deleted file mode 100644
index 6c8424ab..00000000
--- a/src/imports/calendar/doc/images/qtlabscalendar-dayofweekrow.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/calendar/doc/images/qtlabscalendar-monthgrid-layout.png b/src/imports/calendar/doc/images/qtlabscalendar-monthgrid-layout.png
deleted file mode 100644
index dd903650..00000000
--- a/src/imports/calendar/doc/images/qtlabscalendar-monthgrid-layout.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/calendar/doc/images/qtlabscalendar-monthgrid.png b/src/imports/calendar/doc/images/qtlabscalendar-monthgrid.png
deleted file mode 100644
index 0c3b3c41..00000000
--- a/src/imports/calendar/doc/images/qtlabscalendar-monthgrid.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/calendar/doc/images/qtlabscalendar-weeknumbercolumn-layout.png b/src/imports/calendar/doc/images/qtlabscalendar-weeknumbercolumn-layout.png
deleted file mode 100644
index b015a3e6..00000000
--- a/src/imports/calendar/doc/images/qtlabscalendar-weeknumbercolumn-layout.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/calendar/doc/images/qtlabscalendar-weeknumbercolumn.png b/src/imports/calendar/doc/images/qtlabscalendar-weeknumbercolumn.png
deleted file mode 100644
index 65e25b29..00000000
--- a/src/imports/calendar/doc/images/qtlabscalendar-weeknumbercolumn.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/calendar/doc/qtlabscalendar.qdocconf b/src/imports/calendar/doc/qtlabscalendar.qdocconf
deleted file mode 100644
index 9a88cb25..00000000
--- a/src/imports/calendar/doc/qtlabscalendar.qdocconf
+++ /dev/null
@@ -1,41 +0,0 @@
-include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
-include($QT_INSTALL_DOCS/config/exampleurl-qtquickcontrols2.qdocconf)
-
-project = QtLabsCalendar
-description = Qt Labs Calendar Reference Documentation
-version = $QT_VERSION
-
-qhp.projects = QtLabsCalendar
-
-qhp.QtLabsCalendar.file = qtlabscalendar.qhp
-qhp.QtLabsCalendar.namespace = org.qt-project.qtlabscalendar.$QT_VERSION_TAG
-qhp.QtLabsCalendar.virtualFolder = qtlabscalendar
-qhp.QtLabsCalendar.indexTitle = Qt Labs Calendar
-qhp.QtLabsCalendar.indexRoot =
-
-qhp.QtLabsCalendar.filterAttributes = qtlabscalendar $QT_VERSION qtrefdoc
-qhp.QtLabsCalendar.customFilters.Qt.name = QtLabsCalendar $QT_VERSION
-qhp.QtLabsCalendar.customFilters.Qt.filterAttributes = qtlabscalendar $QT_VERSION
-
-qhp.QtLabsCalendar.subprojects = qmltypes
-qhp.QtLabsCalendar.subprojects.qmltypes.title = QML Types
-qhp.QtLabsCalendar.subprojects.qmltypes.indexTitle = Qt Labs Calendar QML Types
-qhp.QtLabsCalendar.subprojects.qmltypes.selectors = qmlclass
-qhp.QtLabsCalendar.subprojects.qmltypes.sortPages = true
-
-depends = qtcore qtgui qtdoc qtqml qtquick qtquickcontrols
-
-# This module has no documented C++ types, clear the module header
-moduleheader =
-
-headerdirs += ../
-sourcedirs += ../ src
-exampledirs += ../ snippets
-imagedirs += images
-
-navigation.landingpage = "Qt Labs Calendar"
-navigation.qmltypespage = "Qt Labs Calendar QML Types"
-
-tagfile = qtlabscalendar.tags
-
-macro.labs = "\\note \\e{Types in Qt.labs modules are not guaranteed to remain compatible in future versions.}"
diff --git a/src/imports/calendar/doc/snippets/qtlabscalendar-calendarmodel.qml b/src/imports/calendar/doc/snippets/qtlabscalendar-calendarmodel.qml
deleted file mode 100644
index 6f6e8f2e..00000000
--- a/src/imports/calendar/doc/snippets/qtlabscalendar-calendarmodel.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-import QtQuick.Controls 2.12
-
-//! [1]
-ListView {
- id: listview
-
- width: 200; height: 200
- snapMode: ListView.SnapOneItem
- orientation: ListView.Horizontal
- highlightRangeMode: ListView.StrictlyEnforceRange
-
- model: CalendarModel {
- from: new Date(2015, 0, 1)
- to: new Date(2015, 11, 31)
- }
-
- delegate: MonthGrid {
- width: listview.width
- height: listview.height
-
- month: model.month
- year: model.year
- locale: Qt.locale("en_US")
- }
-
- ScrollIndicator.horizontal: ScrollIndicator { }
-}
-//! [1]
diff --git a/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml b/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml
deleted file mode 100644
index 2de76098..00000000
--- a/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow-layout.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import Qt.labs.calendar 1.0
-
-//! [1]
-ColumnLayout {
- DayOfWeekRow {
- locale: grid.locale
- Layout.fillWidth: true
- }
-
- MonthGrid {
- id: grid
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
- Layout.fillWidth: true
- }
-}
-//! [1]
diff --git a/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow.qml b/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow.qml
deleted file mode 100644
index e52ebb2d..00000000
--- a/src/imports/calendar/doc/snippets/qtlabscalendar-dayofweekrow.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-//! [1]
-DayOfWeekRow {
- locale: Qt.locale("en_US")
-}
-//! [1]
diff --git a/src/imports/calendar/doc/snippets/qtlabscalendar-monthgrid-layout.qml b/src/imports/calendar/doc/snippets/qtlabscalendar-monthgrid-layout.qml
deleted file mode 100644
index 5710b4dd..00000000
--- a/src/imports/calendar/doc/snippets/qtlabscalendar-monthgrid-layout.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import Qt.labs.calendar 1.0
-
-//! [1]
-GridLayout {
- columns: 2
-
- DayOfWeekRow {
- locale: grid.locale
-
- Layout.column: 1
- Layout.fillWidth: true
- }
-
- WeekNumberColumn {
- month: grid.month
- year: grid.year
- locale: grid.locale
-
- Layout.fillHeight: true
- }
-
- MonthGrid {
- id: grid
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
-
- Layout.fillWidth: true
- Layout.fillHeight: true
- }
-}
-//! [1]
diff --git a/src/imports/calendar/doc/snippets/qtlabscalendar-monthgrid.qml b/src/imports/calendar/doc/snippets/qtlabscalendar-monthgrid.qml
deleted file mode 100644
index cdb7201e..00000000
--- a/src/imports/calendar/doc/snippets/qtlabscalendar-monthgrid.qml
+++ /dev/null
@@ -1,37 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-//! [1]
-MonthGrid {
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
-}
-//! [1]
diff --git a/src/imports/calendar/doc/snippets/qtlabscalendar-weeknumbercolumn-layout.qml b/src/imports/calendar/doc/snippets/qtlabscalendar-weeknumbercolumn-layout.qml
deleted file mode 100644
index 18613f12..00000000
--- a/src/imports/calendar/doc/snippets/qtlabscalendar-weeknumbercolumn-layout.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import Qt.labs.calendar 1.0
-
-//! [1]
-RowLayout {
- WeekNumberColumn {
- month: grid.month
- year: grid.year
- locale: grid.locale
- Layout.fillHeight: true
- }
-
- MonthGrid {
- id: grid
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
- Layout.fillHeight: true
- }
-}
-//! [1]
diff --git a/src/imports/calendar/doc/snippets/qtlabscalendar-weeknumbercolumn.qml b/src/imports/calendar/doc/snippets/qtlabscalendar-weeknumbercolumn.qml
deleted file mode 100644
index f086468b..00000000
--- a/src/imports/calendar/doc/snippets/qtlabscalendar-weeknumbercolumn.qml
+++ /dev/null
@@ -1,37 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-//! [1]
-WeekNumberColumn {
- month: Calendar.December
- year: 2015
- locale: Qt.locale("en_US")
-}
-//! [1]
diff --git a/src/imports/calendar/doc/src/qtlabscalendar-index.qdoc b/src/imports/calendar/doc/src/qtlabscalendar-index.qdoc
deleted file mode 100644
index 065379ec..00000000
--- a/src/imports/calendar/doc/src/qtlabscalendar-index.qdoc
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtlabscalendar-index.html
- \title Qt Labs Calendar
-
- \brief The experimental Qt Labs Calendar module provides a set of UI controls
- for Qt Quick.
-
- The experimental Qt Labs Calendar module provides a set of types that can be
- used to build calendars in Qt Quick. The module was introduced in Qt 5.7.
-
- \section1 QML Types
-
- \generatelist {qmltypesbymodule Qt.labs.calendar}
-
- \labs
-
- \section1 Related Information
-
- \list
- \li \l{Qt Quick}
- \li \l{Qt Quick Layouts}
- \li \l{Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/calendar/doc/src/qtlabscalendar-qmltypes.qdoc b/src/imports/calendar/doc/src/qtlabscalendar-qmltypes.qdoc
deleted file mode 100644
index 81abf52a..00000000
--- a/src/imports/calendar/doc/src/qtlabscalendar-qmltypes.qdoc
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlmodule Qt.labs.calendar 1.0
- \title Qt Labs Calendar QML Types
- \ingroup qmlmodules
- \brief Provides QML types for calendars (Qt Labs Calendar).
-
- The \l{Qt Labs Calendar} module provides QML types for creating
- calendars. These QML types work in conjunction with \l{Qt Quick} and
- \l{Qt Quick Controls}.
-
- The QML types can be imported into your application using the
- following import statement in your .qml file:
-
- \badcode
- import Qt.labs.calendar 1.0
- \endcode
-
- \section1 QML Types
-
- \generatelist {qmltypesbymodule Qt.labs.calendar}
-
- \labs
-
- \section1 Related Information
-
- \list
- \li \l {Qt Quick Controls QML Types}
- \endlist
-
- \noautolist
-*/
diff --git a/src/imports/calendar/plugins.qmltypes b/src/imports/calendar/plugins.qmltypes
deleted file mode 100644
index 76902876..00000000
--- a/src/imports/calendar/plugins.qmltypes
+++ /dev/null
@@ -1,161 +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 Qt.labs.calendar 1.0'
-
-Module {
- dependencies: ["QtQuick 2.12"]
- Component {
- name: "QQuickCalendar"
- prototype: "QObject"
- exports: ["Qt.labs.calendar/Calendar 1.0"]
- isCreatable: false
- isSingleton: true
- exportMetaObjectRevisions: [0]
- Enum {
- name: "Month"
- values: {
- "January": 0,
- "February": 1,
- "March": 2,
- "April": 3,
- "May": 4,
- "June": 5,
- "July": 6,
- "August": 7,
- "September": 8,
- "October": 9,
- "November": 10,
- "December": 11
- }
- }
- }
- Component {
- name: "QQuickCalendarModel"
- prototype: "QAbstractListModel"
- exports: ["Qt.labs.calendar/CalendarModel 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "from"; type: "QDate" }
- Property { name: "to"; type: "QDate" }
- Property { name: "count"; type: "int"; isReadonly: true }
- Method {
- name: "monthAt"
- type: "int"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "yearAt"
- type: "int"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "indexOf"
- type: "int"
- Parameter { name: "date"; type: "QDate" }
- }
- Method {
- name: "indexOf"
- type: "int"
- Parameter { name: "year"; type: "int" }
- Parameter { name: "month"; type: "int" }
- }
- }
- Component {
- name: "QQuickControl"
- defaultProperty: "data"
- prototype: "QQuickItem"
- Property { name: "font"; type: "QFont" }
- Property { name: "availableWidth"; type: "double"; isReadonly: true }
- Property { name: "availableHeight"; type: "double"; isReadonly: true }
- Property { name: "padding"; type: "double" }
- Property { name: "topPadding"; type: "double" }
- Property { name: "leftPadding"; type: "double" }
- Property { name: "rightPadding"; type: "double" }
- Property { name: "bottomPadding"; type: "double" }
- Property { name: "spacing"; type: "double" }
- Property { name: "locale"; type: "QLocale" }
- Property { name: "mirrored"; type: "bool"; isReadonly: true }
- Property { name: "focusPolicy"; type: "Qt::FocusPolicy" }
- Property { name: "focusReason"; type: "Qt::FocusReason" }
- Property { name: "visualFocus"; type: "bool"; isReadonly: true }
- Property { name: "hovered"; type: "bool"; isReadonly: true }
- Property { name: "hoverEnabled"; type: "bool" }
- Property { name: "wheelEnabled"; type: "bool" }
- Property { name: "background"; type: "QQuickItem"; isPointer: true }
- Property { name: "contentItem"; type: "QQuickItem"; isPointer: true }
- Property { name: "baselineOffset"; type: "double" }
- Property { name: "palette"; revision: 3; type: "QPalette" }
- Property { name: "horizontalPadding"; revision: 5; type: "double" }
- Property { name: "verticalPadding"; revision: 5; type: "double" }
- Property { name: "implicitContentWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitContentHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "topInset"; revision: 5; type: "double" }
- Property { name: "leftInset"; revision: 5; type: "double" }
- Property { name: "rightInset"; revision: 5; type: "double" }
- Property { name: "bottomInset"; revision: 5; type: "double" }
- Signal { name: "paletteChanged"; revision: 3 }
- Signal { name: "horizontalPaddingChanged"; revision: 5 }
- Signal { name: "verticalPaddingChanged"; revision: 5 }
- Signal { name: "implicitContentWidthChanged"; revision: 5 }
- Signal { name: "implicitContentHeightChanged"; revision: 5 }
- Signal { name: "implicitBackgroundWidthChanged"; revision: 5 }
- Signal { name: "implicitBackgroundHeightChanged"; revision: 5 }
- Signal { name: "topInsetChanged"; revision: 5 }
- Signal { name: "leftInsetChanged"; revision: 5 }
- Signal { name: "rightInsetChanged"; revision: 5 }
- Signal { name: "bottomInsetChanged"; revision: 5 }
- }
- Component {
- name: "QQuickDayOfWeekRow"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: ["Qt.labs.calendar/AbstractDayOfWeekRow 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "source"; type: "QVariant" }
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- }
- Component {
- name: "QQuickMonthGrid"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: ["Qt.labs.calendar/AbstractMonthGrid 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "month"; type: "int" }
- Property { name: "year"; type: "int" }
- Property { name: "source"; type: "QVariant" }
- Property { name: "title"; type: "string" }
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- Signal {
- name: "pressed"
- Parameter { name: "date"; type: "QDate" }
- }
- Signal {
- name: "released"
- Parameter { name: "date"; type: "QDate" }
- }
- Signal {
- name: "clicked"
- Parameter { name: "date"; type: "QDate" }
- }
- Signal {
- name: "pressAndHold"
- Parameter { name: "date"; type: "QDate" }
- }
- }
- Component {
- name: "QQuickWeekNumberColumn"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: ["Qt.labs.calendar/AbstractWeekNumberColumn 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "month"; type: "int" }
- Property { name: "year"; type: "int" }
- Property { name: "source"; type: "QVariant" }
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- }
-}
diff --git a/src/imports/calendar/qmldir b/src/imports/calendar/qmldir
deleted file mode 100644
index 9b9e9031..00000000
--- a/src/imports/calendar/qmldir
+++ /dev/null
@@ -1,6 +0,0 @@
-module Qt.labs.calendar
-plugin qtlabscalendarplugin
-classname QtLabsCalendarPlugin
-DayOfWeekRow 1.0 DayOfWeekRow.qml
-MonthGrid 1.0 MonthGrid.qml
-WeekNumberColumn 1.0 WeekNumberColumn.qml
diff --git a/src/imports/calendar/qquickcalendar.cpp b/src/imports/calendar/qquickcalendar.cpp
deleted file mode 100644
index 2ad449f1..00000000
--- a/src/imports/calendar/qquickcalendar.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickcalendar_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Calendar
- \inherits QObject
- \instantiates QQuickCalendar
- \inqmlmodule Qt.labs.calendar
- \brief A calendar namespace.
-
- The Calendar singleton provides miscellaneous calendar related
- utilities.
-
- The Qt Labs Calendar module uses 0-based month numbers to be consistent
- with the JavaScript Date type, that is used by the QML language. This
- means that \c Date::getMonth() can be assigned to MonthGrid::month and
- WeekNumberColumn::month as is. When dealing with month numbers
- directly, it is highly recommended to use the following enumeration values
- to avoid confusion.
-
- \value Calendar.January January (0)
- \value Calendar.February February (1)
- \value Calendar.March March (2)
- \value Calendar.April April (3)
- \value Calendar.May May (4)
- \value Calendar.June June (5)
- \value Calendar.July July (6)
- \value Calendar.August August (7)
- \value Calendar.September September (8)
- \value Calendar.October October (9)
- \value Calendar.November November (10)
- \value Calendar.December December (11)
-
- \sa MonthGrid, DayOfWeekRow, WeekNumberColumn
-*/
-
-QQuickCalendar::QQuickCalendar(QObject *parent) : QObject(parent)
-{
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/calendar/qquickcalendar_p.h b/src/imports/calendar/qquickcalendar_p.h
deleted file mode 100644
index c4f28ebd..00000000
--- a/src/imports/calendar/qquickcalendar_p.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCALENDAR_P_H
-#define QQUICKCALENDAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtCore/qdatetime.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickCalendar : public QObject
-{
- Q_OBJECT
-
-public:
- explicit QQuickCalendar(QObject *parent = nullptr);
-
- enum Month {
- January,
- February,
- March,
- April,
- May,
- June,
- July,
- August,
- September,
- October,
- November,
- December
- };
- Q_ENUM(Month)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickCalendar)
-
-#endif // QQUICKCALENDAR_P_H
diff --git a/src/imports/calendar/qquickcalendarmodel.cpp b/src/imports/calendar/qquickcalendarmodel.cpp
deleted file mode 100644
index 053a4a5f..00000000
--- a/src/imports/calendar/qquickcalendarmodel.cpp
+++ /dev/null
@@ -1,276 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickcalendarmodel_p.h"
-
-#include <QtCore/private/qabstractitemmodel_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype CalendarModel
- \inherits QAbstractListModel
- \instantiates QQuickCalendarModel
- \inqmlmodule Qt.labs.calendar
- \brief A calendar model.
-
- CalendarModel provides a way of creating a range of MonthGrid
- instances. It is typically used as a model for a ListView that uses
- MonthGrid as a delegate.
-
- \snippet qtlabscalendar-calendarmodel.qml 1
-
- In addition to the \c index property, a list of model data roles
- are available in the context of each delegate:
- \table
- \row \li \b model.month : int \li The number of the month
- \row \li \b model.year : int \li The number of the year
- \endtable
-
- The Qt Labs Calendar module uses 0-based month numbers to be consistent
- with the JavaScript Date type, that is used by the QML language. This
- means that \c Date::getMonth() can be passed to the methods as is. When
- dealing with month numbers directly, it is highly recommended to use the
- following enumeration values to avoid confusion.
-
- \value Calendar.January January (0)
- \value Calendar.February February (1)
- \value Calendar.March March (2)
- \value Calendar.April April (3)
- \value Calendar.May May (4)
- \value Calendar.June June (5)
- \value Calendar.July July (6)
- \value Calendar.August August (7)
- \value Calendar.September September (8)
- \value Calendar.October October (9)
- \value Calendar.November November (10)
- \value Calendar.December December (11)
-
- \labs
-
- \sa MonthGrid, Calendar
-*/
-
-class QQuickCalendarModelPrivate : public QAbstractItemModelPrivate
-{
- Q_DECLARE_PUBLIC(QQuickCalendarModel)
-
-public:
- QQuickCalendarModelPrivate() : complete(false),
- from(1,1,1), to(275759, 9, 25), count(0)
- {
- }
-
- static int getCount(const QDate& from, const QDate &to);
-
- void populate(const QDate &from, const QDate &to, bool force = false);
-
- bool complete;
- QDate from;
- QDate to;
- int count;
-};
-
-int QQuickCalendarModelPrivate::getCount(const QDate& from, const QDate &to)
-{
- if (!from.isValid() || !to.isValid())
- return 0;
-
- QDate f(from.year(), from.month(), 1);
- QDate t(to.year(), to.month(), to.daysInMonth());
- int days = f.daysTo(t);
- if (days < 0)
- return 0;
-
- QDate r = QDate(1, 1, 1).addDays(days);
- int years = r.year() - 1;
- int months = r.month() - 1;
- return 12 * years + months + (r.day() / t.day());
-}
-
-void QQuickCalendarModelPrivate::populate(const QDate &f, const QDate &t, bool force)
-{
- Q_Q(QQuickCalendarModel);
- if (!force && f == from && t == to)
- return;
-
- int c = getCount(from, to);
- if (c != count) {
- q->beginResetModel();
- count = c;
- q->endResetModel();
- emit q->countChanged();
- } else {
- emit q->dataChanged(q->index(0, 0), q->index(c - 1, 0));
- }
-}
-
-QQuickCalendarModel::QQuickCalendarModel(QObject *parent) :
- QAbstractListModel(*(new QQuickCalendarModelPrivate), parent)
-{
-}
-
-/*!
- \qmlproperty date Qt.labs.calendar::CalendarModel::from
-
- This property holds the start date.
-*/
-QDate QQuickCalendarModel::from() const
-{
- Q_D(const QQuickCalendarModel);
- return d->from;
-}
-
-void QQuickCalendarModel::setFrom(const QDate &from)
-{
- Q_D(QQuickCalendarModel);
- if (d->from != from) {
- if (d->complete)
- d->populate(from, d->to);
- d->from = from;
- emit fromChanged();
- }
-}
-
-/*!
- \qmlproperty date Qt.labs.calendar::CalendarModel::to
-
- This property holds the end date.
-*/
-QDate QQuickCalendarModel::to() const
-{
- Q_D(const QQuickCalendarModel);
- return d->to;
-}
-
-void QQuickCalendarModel::setTo(const QDate &to)
-{
- Q_D(QQuickCalendarModel);
- if (d->to != to) {
- if (d->complete)
- d->populate(d->from, to);
- d->to = to;
- emit toChanged();
- }
-}
-
-/*!
- \qmlmethod int Qt.labs.calendar::CalendarModel::monthAt(int index)
-
- Returns the month number at the specified model \a index.
-*/
-int QQuickCalendarModel::monthAt(int index) const
-{
- Q_D(const QQuickCalendarModel);
- return d->from.addMonths(index).month() - 1;
-}
-
-/*!
- \qmlmethod int Qt.labs.calendar::CalendarModel::yearAt(int index)
-
- Returns the year number at the specified model \a index.
-*/
-int QQuickCalendarModel::yearAt(int index) const
-{
- Q_D(const QQuickCalendarModel);
- return d->from.addMonths(index).year();
-}
-
-/*!
- \qmlmethod int Qt.labs.calendar::CalendarModel::indexOf(Date date)
-
- Returns the model index of the specified \a date.
-*/
-int QQuickCalendarModel::indexOf(const QDate &date) const
-{
- Q_D(const QQuickCalendarModel);
- return d->getCount(d->from, date) - 1;
-}
-
-/*!
- \qmlmethod int Qt.labs.calendar::CalendarModel::indexOf(int year, int month)
-
- Returns the model index of the specified \a year and \a month.
-*/
-int QQuickCalendarModel::indexOf(int year, int month) const
-{
- return indexOf(QDate(year, month + 1, 1));
-}
-
-QVariant QQuickCalendarModel::data(const QModelIndex &index, int role) const
-{
- Q_D(const QQuickCalendarModel);
- if (index.isValid() && index.row() < d->count) {
- switch (role) {
- case MonthRole:
- return monthAt(index.row());
- case YearRole:
- return yearAt(index.row());
- default:
- break;
- }
- }
- return QVariant();
-}
-
-int QQuickCalendarModel::rowCount(const QModelIndex &parent) const
-{
- Q_D(const QQuickCalendarModel);
- if (!parent.isValid())
- return d->count;
- return 0;
-}
-
-QHash<int, QByteArray> QQuickCalendarModel::roleNames() const
-{
- QHash<int, QByteArray> roles;
- roles[MonthRole] = QByteArrayLiteral("month");
- roles[YearRole] = QByteArrayLiteral("year");
- return roles;
-}
-
-void QQuickCalendarModel::classBegin()
-{
-}
-
-void QQuickCalendarModel::componentComplete()
-{
- Q_D(QQuickCalendarModel);
- d->complete = true;
- d->populate(d->from, d->to, true);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/calendar/qquickcalendarmodel_p.h b/src/imports/calendar/qquickcalendarmodel_p.h
deleted file mode 100644
index d309d175..00000000
--- a/src/imports/calendar/qquickcalendarmodel_p.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCALENDARMODEL_P_H
-#define QQUICKCALENDARMODEL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qabstractitemmodel.h>
-#include <QtCore/qdatetime.h>
-#include <QtQml/qqmlparserstatus.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickCalendarModelPrivate;
-
-class QQuickCalendarModel : public QAbstractListModel, public QQmlParserStatus
-{
- Q_OBJECT
- Q_INTERFACES(QQmlParserStatus)
- Q_PROPERTY(QDate from READ from WRITE setFrom NOTIFY fromChanged FINAL)
- Q_PROPERTY(QDate to READ to WRITE setTo NOTIFY toChanged FINAL)
- Q_PROPERTY(int count READ rowCount NOTIFY countChanged)
-
-public:
- explicit QQuickCalendarModel(QObject *parent = nullptr);
-
- QDate from() const;
- void setFrom(const QDate &from);
-
- QDate to() const;
- void setTo(const QDate &to);
-
- Q_INVOKABLE int monthAt(int index) const;
- Q_INVOKABLE int yearAt(int index) const;
- Q_INVOKABLE int indexOf(const QDate &date) const;
- Q_INVOKABLE int indexOf(int year, int month) const;
-
- enum {
- MonthRole,
- YearRole
- };
-
- QHash<int, QByteArray> roleNames() const override;
- QVariant data(const QModelIndex &index, int role) const override;
- int rowCount(const QModelIndex &parent = QModelIndex()) const override;
-
-Q_SIGNALS:
- void fromChanged();
- void toChanged();
- void countChanged();
-
-protected:
- void classBegin() override;
- void componentComplete() override;
-
-private:
- Q_DISABLE_COPY(QQuickCalendarModel)
- Q_DECLARE_PRIVATE(QQuickCalendarModel)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickCalendarModel)
-
-#endif // QQUICKCALENDARMODEL_P_H
diff --git a/src/imports/calendar/qquickdayofweekmodel.cpp b/src/imports/calendar/qquickdayofweekmodel.cpp
deleted file mode 100644
index bb960c5c..00000000
--- a/src/imports/calendar/qquickdayofweekmodel.cpp
+++ /dev/null
@@ -1,121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickdayofweekmodel_p.h"
-
-#include <QtCore/private/qabstractitemmodel_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDayOfWeekModelPrivate : public QAbstractItemModelPrivate
-{
- Q_DECLARE_PUBLIC(QQuickDayOfWeekModel)
-
-public:
- QLocale locale;
-};
-
-QQuickDayOfWeekModel::QQuickDayOfWeekModel(QObject *parent) :
- QAbstractListModel(*(new QQuickDayOfWeekModelPrivate), parent)
-{
-}
-
-QLocale QQuickDayOfWeekModel::locale() const
-{
- Q_D(const QQuickDayOfWeekModel);
- return d->locale;
-}
-
-void QQuickDayOfWeekModel::setLocale(const QLocale &locale)
-{
- Q_D(QQuickDayOfWeekModel);
- if (d->locale != locale) {
- d->locale = locale;
- emit localeChanged();
- emit dataChanged(index(0, 0), index(6, 0));
- }
-}
-
-int QQuickDayOfWeekModel::dayAt(int index) const
-{
- Q_D(const QQuickDayOfWeekModel);
- int day = d->locale.firstDayOfWeek() + index;
- if (day > 7)
- day -= 7;
- if (day == 7)
- day = 0; // Qt::Sunday = 7, but Sunday is 0 in JS Date
- return day;
-}
-
-QVariant QQuickDayOfWeekModel::data(const QModelIndex &index, int role) const
-{
- Q_D(const QQuickDayOfWeekModel);
- if (index.isValid() && index.row() < 7) {
- int day = dayAt(index.row());
- switch (role) {
- case DayRole:
- return day;
- case LongNameRole:
- return d->locale.standaloneDayName(day == 0 ? Qt::Sunday : day, QLocale::LongFormat);
- case ShortNameRole:
- return d->locale.standaloneDayName(day == 0 ? Qt::Sunday : day, QLocale::ShortFormat);
- case NarrowNameRole:
- return d->locale.standaloneDayName(day == 0 ? Qt::Sunday : day, QLocale::NarrowFormat);
- default:
- break;
- }
- }
- return QVariant();
-}
-
-int QQuickDayOfWeekModel::rowCount(const QModelIndex &parent) const
-{
- if (parent.isValid())
- return 0;
- return 7;
-}
-
-QHash<int, QByteArray> QQuickDayOfWeekModel::roleNames() const
-{
- QHash<int, QByteArray> roles;
- roles[DayRole] = QByteArrayLiteral("day");
- roles[LongNameRole] = QByteArrayLiteral("longName");
- roles[ShortNameRole] = QByteArrayLiteral("shortName");
- roles[NarrowNameRole] = QByteArrayLiteral("narrowName");
- return roles;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/calendar/qquickdayofweekmodel_p.h b/src/imports/calendar/qquickdayofweekmodel_p.h
deleted file mode 100644
index 3f319a7f..00000000
--- a/src/imports/calendar/qquickdayofweekmodel_p.h
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDAYOFWEEKMODEL_P_H
-#define QQUICKDAYOFWEEKMODEL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qabstractitemmodel.h>
-#include <QtCore/qlocale.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDayOfWeekModelPrivate;
-
-class QQuickDayOfWeekModel : public QAbstractListModel
-{
- Q_OBJECT
- Q_PROPERTY(QLocale locale READ locale WRITE setLocale NOTIFY localeChanged FINAL)
- Q_PROPERTY(int count READ rowCount CONSTANT FINAL)
-
-public:
- explicit QQuickDayOfWeekModel(QObject *parent = nullptr);
-
- QLocale locale() const;
- void setLocale(const QLocale &locale);
-
- Q_INVOKABLE int dayAt(int index) const;
-
- enum {
- DayRole = Qt::UserRole + 1,
- LongNameRole,
- ShortNameRole,
- NarrowNameRole
- };
-
- QHash<int, QByteArray> roleNames() const override;
- QVariant data(const QModelIndex &index, int role) const override;
- int rowCount(const QModelIndex &parent = QModelIndex()) const override;
-
-Q_SIGNALS:
- void localeChanged();
-
-private:
- Q_DISABLE_COPY(QQuickDayOfWeekModel)
- Q_DECLARE_PRIVATE(QQuickDayOfWeekModel)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDayOfWeekModel)
-
-#endif // QQUICKDAYOFWEEKMODEL_P_H
diff --git a/src/imports/calendar/qquickdayofweekrow.cpp b/src/imports/calendar/qquickdayofweekrow.cpp
deleted file mode 100644
index da3264f9..00000000
--- a/src/imports/calendar/qquickdayofweekrow.cpp
+++ /dev/null
@@ -1,193 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickdayofweekrow_p.h"
-#include "qquickdayofweekmodel_p.h"
-
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype DayOfWeekRow
- \inherits Control
- \instantiates QQuickDayOfWeekRow
- \inqmlmodule Qt.labs.calendar
- \brief A row of names for the days in a week.
-
- DayOfWeekRow presents day of week names in a row. The names of the days
- are ordered and formatted using the specified \l {Control::locale}{locale}.
-
- \image qtlabscalendar-dayofweekrow.png
- \snippet qtlabscalendar-dayofweekrow.qml 1
-
- DayOfWeekRow can be used as a standalone control, but it is most
- often used in conjunction with MonthGrid. Regardless of the use case,
- positioning of the row is left to the user.
-
- \image qtlabscalendar-dayofweekrow-layout.png
- \snippet qtlabscalendar-dayofweekrow-layout.qml 1
-
- The visual appearance of DayOfWeekRow can be changed by
- implementing a \l {delegate}{custom delegate}.
-
- \labs
-
- \sa MonthGrid, WeekNumberColumn
-*/
-
-class QQuickDayOfWeekRowPrivate : public QQuickControlPrivate
-{
-public:
- QQuickDayOfWeekRowPrivate() : delegate(nullptr), model(nullptr) { }
-
- void resizeItems();
-
- QVariant source;
- QQmlComponent *delegate;
- QQuickDayOfWeekModel *model;
-};
-
-void QQuickDayOfWeekRowPrivate::resizeItems()
-{
- if (!contentItem)
- return;
-
- QSizeF itemSize;
- itemSize.setWidth((contentItem->width() - 6 * spacing) / 7);
- itemSize.setHeight(contentItem->height());
-
- const auto childItems = contentItem->childItems();
- for (QQuickItem *item : childItems)
- item->setSize(itemSize);
-}
-
-QQuickDayOfWeekRow::QQuickDayOfWeekRow(QQuickItem *parent) :
- QQuickControl(*(new QQuickDayOfWeekRowPrivate), parent)
-{
- Q_D(QQuickDayOfWeekRow);
- d->model = new QQuickDayOfWeekModel(this);
- d->source = QVariant::fromValue(d->model);
-}
-
-/*!
- \internal
- \qmlproperty model Qt.labs.calendar::DayOfWeekRow::source
-
- This property holds the source model that is used as a data model
- for the internal content row.
-*/
-QVariant QQuickDayOfWeekRow::source() const
-{
- Q_D(const QQuickDayOfWeekRow);
- return d->source;
-}
-
-void QQuickDayOfWeekRow::setSource(const QVariant &source)
-{
- Q_D(QQuickDayOfWeekRow);
- if (d->source != source) {
- d->source = source;
- emit sourceChanged();
- }
-}
-
-/*!
- \qmlproperty Component Qt.labs.calendar::DayOfWeekRow::delegate
-
- This property holds the item delegate that visualizes each day of the week.
-
- In addition to the \c index property, a list of model data roles
- are available in the context of each delegate:
- \table
- \row \li \b model.day : int \li The day of week (\l Qt::DayOfWeek)
- \row \li \b model.longName : string \li The long version of the day name; for example, "Monday" (\l QLocale::LongFormat)
- \row \li \b model.shortName : string \li The short version of the day name; for example, "Mon" (\l QLocale::ShortFormat)
- \row \li \b model.narrowName : string \li A special version of the day name for use when space is limited; for example, "M" (\l QLocale::NarrowFormat)
- \endtable
-
- The following snippet presents the default implementation of the item
- delegate. It can be used as a starting point for implementing custom
- delegates.
-
- \snippet DayOfWeekRow.qml delegate
-*/
-QQmlComponent *QQuickDayOfWeekRow::delegate() const
-{
- Q_D(const QQuickDayOfWeekRow);
- return d->delegate;
-}
-
-void QQuickDayOfWeekRow::setDelegate(QQmlComponent *delegate)
-{
- Q_D(QQuickDayOfWeekRow);
- if (d->delegate != delegate) {
- d->delegate = delegate;
- emit delegateChanged();
- }
-}
-
-void QQuickDayOfWeekRow::componentComplete()
-{
- Q_D(QQuickDayOfWeekRow);
- QQuickControl::componentComplete();
- d->resizeItems();
-}
-
-void QQuickDayOfWeekRow::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickDayOfWeekRow);
- QQuickControl::geometryChanged(newGeometry, oldGeometry);
- if (isComponentComplete())
- d->resizeItems();
-}
-
-void QQuickDayOfWeekRow::localeChange(const QLocale &newLocale, const QLocale &oldLocale)
-{
- Q_D(QQuickDayOfWeekRow);
- QQuickControl::localeChange(newLocale, oldLocale);
- d->model->setLocale(newLocale);
-}
-
-void QQuickDayOfWeekRow::paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
-{
- Q_D(QQuickDayOfWeekRow);
- QQuickControl::paddingChange(newPadding, oldPadding);
- if (isComponentComplete())
- d->resizeItems();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/calendar/qquickdayofweekrow_p.h b/src/imports/calendar/qquickdayofweekrow_p.h
deleted file mode 100644
index 06b899e0..00000000
--- a/src/imports/calendar/qquickdayofweekrow_p.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDAYOFWEEKROW_P_H
-#define QQUICKDAYOFWEEKROW_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlComponent;
-class QQuickDayOfWeekRowPrivate;
-
-class QQuickDayOfWeekRow : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(QVariant source READ source WRITE setSource NOTIFY sourceChanged FINAL)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
-
-public:
- explicit QQuickDayOfWeekRow(QQuickItem *parent = nullptr);
-
- QVariant source() const;
- void setSource(const QVariant &source);
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
-Q_SIGNALS:
- void sourceChanged();
- void delegateChanged();
-
-protected:
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
- void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override;
-
-private:
- Q_DISABLE_COPY(QQuickDayOfWeekRow)
- Q_DECLARE_PRIVATE(QQuickDayOfWeekRow)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDayOfWeekRow)
-
-#endif // QQUICKDAYOFWEEKROW_P_H
diff --git a/src/imports/calendar/qquickmonthgrid.cpp b/src/imports/calendar/qquickmonthgrid.cpp
deleted file mode 100644
index 46b18db6..00000000
--- a/src/imports/calendar/qquickmonthgrid.cpp
+++ /dev/null
@@ -1,449 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickmonthgrid_p.h"
-#include "qquickmonthmodel_p.h"
-
-#include <QtGui/qstylehints.h>
-#include <QtGui/qguiapplication.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtQml/qqmlinfo.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MonthGrid
- \inherits Control
- \instantiates QQuickMonthGrid
- \inqmlmodule Qt.labs.calendar
- \brief A grid of days for a calendar month.
-
- MonthGrid presents a calendar month in a grid. The contents are
- calculated for a given \l month and \l year, using the specified
- \l {Control::locale}{locale}.
-
- \image qtlabscalendar-monthgrid.png
- \snippet qtlabscalendar-monthgrid.qml 1
-
- MonthGrid can be used as a standalone control, but it is most often
- used in conjunction with DayOfWeekRow and WeekNumberColumn. Regardless
- of the use case, positioning of the grid is left to the user.
-
- \image qtlabscalendar-monthgrid-layout.png
- \snippet qtlabscalendar-monthgrid-layout.qml 1
-
- The visual appearance of MonthGrid can be changed by
- implementing a \l {delegate}{custom delegate}.
-
- \labs
-
- \sa DayOfWeekRow, WeekNumberColumn, CalendarModel
-*/
-
-/*!
- \qmlsignal Qt.labs.calendar::MonthGrid::pressed(date date)
-
- This signal is emitted when \a date is pressed.
-*/
-
-/*!
- \qmlsignal Qt.labs.calendar::MonthGrid::released(date date)
-
- This signal is emitted when \a date is released.
-*/
-
-/*!
- \qmlsignal Qt.labs.calendar::MonthGrid::clicked(date date)
-
- This signal is emitted when \a date is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.calendar::MonthGrid::pressAndHold(date date)
-
- This signal is emitted when \a date is pressed and held down.
-*/
-
-class QQuickMonthGridPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickMonthGrid)
-
-public:
- QQuickMonthGridPrivate() : pressTimer(0), pressedItem(nullptr), model(nullptr), delegate(nullptr) { }
-
- void resizeItems();
-
- QQuickItem *cellAt(const QPointF &pos) const;
- QDate dateOf(QQuickItem *cell) const;
-
- void updatePress(const QPointF &pos);
- void clearPress(bool clicked);
-
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- static void setContextProperty(QQuickItem *item, const QString &name, const QVariant &value);
-
- QString title;
- QVariant source;
- QDate pressedDate;
- int pressTimer;
- QQuickItem *pressedItem;
- QQuickMonthModel *model;
- QQmlComponent *delegate;
-};
-
-void QQuickMonthGridPrivate::resizeItems()
-{
- if (!contentItem)
- return;
-
- QSizeF itemSize;
- itemSize.setWidth((contentItem->width() - 6 * spacing) / 7);
- itemSize.setHeight((contentItem->height() - 5 * spacing) / 6);
-
- const auto childItems = contentItem->childItems();
- for (QQuickItem *item : childItems) {
- if (!QQuickItemPrivate::get(item)->isTransparentForPositioner())
- item->setSize(itemSize);
- }
-}
-
-QQuickItem *QQuickMonthGridPrivate::cellAt(const QPointF &pos) const
-{
- Q_Q(const QQuickMonthGrid);
- if (contentItem) {
- QPointF mapped = q->mapToItem(contentItem, pos);
- return contentItem->childAt(mapped.x(), mapped.y());
- }
- return nullptr;
-}
-
-QDate QQuickMonthGridPrivate::dateOf(QQuickItem *cell) const
-{
- if (contentItem)
- return model->dateAt(contentItem->childItems().indexOf(cell));
- return QDate();
-}
-
-void QQuickMonthGridPrivate::updatePress(const QPointF &pos)
-{
- Q_Q(QQuickMonthGrid);
- clearPress(false);
- pressedItem = cellAt(pos);
- setContextProperty(pressedItem, QStringLiteral("pressed"), true);
- pressedDate = dateOf(pressedItem);
- if (pressedDate.isValid())
- emit q->pressed(pressedDate);
-}
-
-void QQuickMonthGridPrivate::clearPress(bool clicked)
-{
- Q_Q(QQuickMonthGrid);
- setContextProperty(pressedItem, QStringLiteral("pressed"), false);
- if (pressedDate.isValid()) {
- emit q->released(pressedDate);
- if (clicked)
- emit q->clicked(pressedDate);
- }
- pressedDate = QDate();
- pressedItem = nullptr;
-}
-
-void QQuickMonthGridPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickMonthGrid);
- QQuickControlPrivate::handlePress(point);
- updatePress(point);
- if (pressedDate.isValid())
- pressTimer = q->startTimer(qGuiApp->styleHints()->mousePressAndHoldInterval());
-}
-
-void QQuickMonthGridPrivate::handleMove(const QPointF &point)
-{
- QQuickControlPrivate::handleMove(point);
- updatePress(point);
-}
-
-void QQuickMonthGridPrivate::handleRelease(const QPointF &point)
-{
- QQuickControlPrivate::handleRelease(point);
- clearPress(true);
-}
-
-void QQuickMonthGridPrivate::handleUngrab()
-{
- QQuickControlPrivate::handleUngrab();
- clearPress(false);
-}
-
-void QQuickMonthGridPrivate::setContextProperty(QQuickItem *item, const QString &name, const QVariant &value)
-{
- QQmlContext *context = qmlContext(item);
- if (context && context->isValid()) {
- context = context->parentContext();
- if (context && context->isValid())
- context->setContextProperty(name, value);
- }
-}
-
-QQuickMonthGrid::QQuickMonthGrid(QQuickItem *parent) :
- QQuickControl(*(new QQuickMonthGridPrivate), parent)
-{
- Q_D(QQuickMonthGrid);
- setFlag(ItemIsFocusScope);
- setActiveFocusOnTab(true);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-
- d->model = new QQuickMonthModel(this);
- d->source = QVariant::fromValue(d->model);
- connect(d->model, &QQuickMonthModel::monthChanged, this, &QQuickMonthGrid::monthChanged);
- connect(d->model, &QQuickMonthModel::yearChanged, this, &QQuickMonthGrid::yearChanged);
- connect(d->model, &QQuickMonthModel::titleChanged, this, &QQuickMonthGrid::titleChanged);
-}
-
-/*!
- \qmlproperty int Qt.labs.calendar::MonthGrid::month
-
- This property holds the number of the month. The default value is the
- current month.
-
- The Qt Labs Calendar module uses 0-based month numbers to be consistent
- with the JavaScript Date type, that is used by the QML language. This
- means that \c Date::getMonth() can be assigned to this property as is.
- When dealing with dealing with month numbers directly, it is highly
- recommended to use the following enumeration values to avoid confusion.
-
- \value Calendar.January January (0)
- \value Calendar.February February (1)
- \value Calendar.March March (2)
- \value Calendar.April April (3)
- \value Calendar.May May (4)
- \value Calendar.June June (5)
- \value Calendar.July July (6)
- \value Calendar.August August (7)
- \value Calendar.September September (8)
- \value Calendar.October October (9)
- \value Calendar.November November (10)
- \value Calendar.December December (11)
-
- \sa Calendar
-*/
-int QQuickMonthGrid::month() const
-{
- Q_D(const QQuickMonthGrid);
- return d->model->month() - 1;
-}
-
-void QQuickMonthGrid::setMonth(int month)
-{
- Q_D(QQuickMonthGrid);
- if (month < 0 || month > 11) {
- qmlWarning(this) << "month " << month << " is out of range [0...11]";
- return;
- }
- d->model->setMonth(month + 1);
-}
-
-/*!
- \qmlproperty int Qt.labs.calendar::MonthGrid::year
-
- This property holds the number of the year.
-
- The value must be in the range from \c -271820 to \c 275759. The default
- value is the current year.
-*/
-int QQuickMonthGrid::year() const
-{
- Q_D(const QQuickMonthGrid);
- return d->model->year();
-}
-
-void QQuickMonthGrid::setYear(int year)
-{
- Q_D(QQuickMonthGrid);
- if (year < -271820 || year > 275759) {
- qmlWarning(this) << "year " << year << " is out of range [-271820...275759]";
- return;
- }
- d->model->setYear(year);
-}
-
-/*!
- \internal
- \qmlproperty model Qt.labs.calendar::MonthGrid::source
-
- This property holds the source model that is used as a data model
- for the internal content column.
-*/
-QVariant QQuickMonthGrid::source() const
-{
- Q_D(const QQuickMonthGrid);
- return d->source;
-}
-
-void QQuickMonthGrid::setSource(const QVariant &source)
-{
- Q_D(QQuickMonthGrid);
- if (d->source != source) {
- d->source = source;
- emit sourceChanged();
- }
-}
-
-/*!
- \qmlproperty string Qt.labs.calendar::MonthGrid::title
-
- This property holds a title for the calendar.
-
- This property is provided for convenience. MonthGrid itself does
- not visualize the title. The default value consists of the month name,
- formatted using \l {Control::locale}{locale}, and the year number.
-*/
-QString QQuickMonthGrid::title() const
-{
- Q_D(const QQuickMonthGrid);
- if (d->title.isNull())
- return d->model->title();
- return d->title;
-}
-
-void QQuickMonthGrid::setTitle(const QString &title)
-{
- Q_D(QQuickMonthGrid);
- if (d->title != title) {
- d->title = title;
- emit titleChanged();
- }
-}
-
-/*!
- \qmlproperty Component Qt.labs.calendar::MonthGrid::delegate
-
- This property holds the item delegate that visualizes each day.
-
- In addition to the \c index property, a list of model data roles
- are available in the context of each delegate:
- \table
- \row \li \b model.date : date \li The date of the cell
- \row \li \b model.day : int \li The number of the day
- \row \li \b model.today : bool \li Whether the delegate represents today
- \row \li \b model.weekNumber : int \li The week number
- \row \li \b model.month : int \li The number of the month
- \row \li \b model.year : int \li The number of the year
- \endtable
-
- The following snippet presents the default implementation of the item
- delegate. It can be used as a starting point for implementing custom
- delegates.
-
- \snippet MonthGrid.qml delegate
-*/
-QQmlComponent *QQuickMonthGrid::delegate() const
-{
- Q_D(const QQuickMonthGrid);
- return d->delegate;
-}
-
-void QQuickMonthGrid::setDelegate(QQmlComponent *delegate)
-{
- Q_D(QQuickMonthGrid);
- if (d->delegate != delegate) {
- d->delegate = delegate;
- emit delegateChanged();
- }
-}
-
-void QQuickMonthGrid::componentComplete()
-{
- Q_D(QQuickMonthGrid);
- QQuickControl::componentComplete();
- if (d->contentItem) {
- const auto childItems = d->contentItem->childItems();
- for (QQuickItem *child : childItems) {
- if (!QQuickItemPrivate::get(child)->isTransparentForPositioner())
- d->setContextProperty(child, QStringLiteral("pressed"), false);
- }
- }
- d->resizeItems();
-}
-
-void QQuickMonthGrid::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickMonthGrid);
- QQuickControl::geometryChanged(newGeometry, oldGeometry);
- if (isComponentComplete())
- d->resizeItems();
-}
-
-void QQuickMonthGrid::localeChange(const QLocale &newLocale, const QLocale &oldLocale)
-{
- Q_D(QQuickMonthGrid);
- QQuickControl::localeChange(newLocale, oldLocale);
- d->model->setLocale(newLocale);
-}
-
-void QQuickMonthGrid::paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
-{
- Q_D(QQuickMonthGrid);
- QQuickControl::paddingChange(newPadding, oldPadding);
- if (isComponentComplete())
- d->resizeItems();
-}
-
-void QQuickMonthGrid::updatePolish()
-{
- Q_D(QQuickMonthGrid);
- QQuickControl::updatePolish();
- d->resizeItems();
-}
-
-void QQuickMonthGrid::timerEvent(QTimerEvent *event)
-{
- Q_D(QQuickMonthGrid);
- if (event->timerId() == d->pressTimer) {
- if (d->pressedDate.isValid())
- emit pressAndHold(d->pressedDate);
- killTimer(d->pressTimer);
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/calendar/qquickmonthgrid_p.h b/src/imports/calendar/qquickmonthgrid_p.h
deleted file mode 100644
index b85e0921..00000000
--- a/src/imports/calendar/qquickmonthgrid_p.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMONTHGRID_P_H
-#define QQUICKMONTHGRID_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlComponent;
-class QQuickMonthGridPrivate;
-
-class QQuickMonthGrid : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(int month READ month WRITE setMonth NOTIFY monthChanged FINAL)
- Q_PROPERTY(int year READ year WRITE setYear NOTIFY yearChanged FINAL)
- Q_PROPERTY(QVariant source READ source WRITE setSource NOTIFY sourceChanged FINAL)
- Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
-
-public:
- explicit QQuickMonthGrid(QQuickItem *parent = nullptr);
-
- int month() const;
- void setMonth(int month);
-
- int year() const;
- void setYear(int year);
-
- QVariant source() const;
- void setSource(const QVariant &source);
-
- QString title() const;
- void setTitle(const QString &title);
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
-Q_SIGNALS:
- void monthChanged();
- void yearChanged();
- void sourceChanged();
- void titleChanged();
- void delegateChanged();
-
- void pressed(const QDate &date);
- void released(const QDate &date);
- void clicked(const QDate &date);
- void pressAndHold(const QDate &date);
-
-protected:
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
- void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override;
- void updatePolish() override;
-
- void timerEvent(QTimerEvent *event) override;
-
-private:
- Q_DISABLE_COPY(QQuickMonthGrid)
- Q_DECLARE_PRIVATE(QQuickMonthGrid)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMonthGrid)
-
-#endif // QQUICKMONTHGRID_P_H
diff --git a/src/imports/calendar/qquickmonthmodel.cpp b/src/imports/calendar/qquickmonthmodel.cpp
deleted file mode 100644
index 34bce814..00000000
--- a/src/imports/calendar/qquickmonthmodel.cpp
+++ /dev/null
@@ -1,226 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickmonthmodel_p.h"
-
-#include <QtCore/private/qabstractitemmodel_p.h>
-
-namespace {
- static const int daysInAWeek = 7;
- static const int weeksOnACalendarMonth = 6;
- static const int daysOnACalendarMonth = daysInAWeek * weeksOnACalendarMonth;
-}
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMonthModelPrivate : public QAbstractItemModelPrivate
-{
- Q_DECLARE_PUBLIC(QQuickMonthModel)
-
-public:
- QQuickMonthModelPrivate() : dates(daysOnACalendarMonth)
- {
- today = QDate::currentDate();
- month = today.month();
- year = today.year();
- }
-
- bool populate(int month, int year, const QLocale &locale, bool force = false);
-
- int month;
- int year;
- QString title;
- QLocale locale;
- QVector<QDate> dates;
- QDate today;
-};
-
-bool QQuickMonthModelPrivate::populate(int m, int y, const QLocale &l, bool force)
-{
- Q_Q(QQuickMonthModel);
- if (!force && m == month && y == year && l.firstDayOfWeek() == locale.firstDayOfWeek())
- return false;
-
- // The actual first (1st) day of the month.
- QDate firstDayOfMonthDate(y, m, 1);
- int difference = ((firstDayOfMonthDate.dayOfWeek() - l.firstDayOfWeek()) + 7) % 7;
- // The first day to display should never be the 1st of the month, as we want some days from
- // the previous month to be visible.
- if (difference == 0)
- difference += 7;
- QDate firstDateToDisplay = firstDayOfMonthDate.addDays(-difference);
-
- today = QDate::currentDate();
- for (int i = 0; i < daysOnACalendarMonth; ++i)
- dates[i] = firstDateToDisplay.addDays(i);
-
- q->setTitle(l.standaloneMonthName(m) + QStringLiteral(" ") + QString::number(y));
-
- return true;
-}
-
-QQuickMonthModel::QQuickMonthModel(QObject *parent) :
- QAbstractListModel(*(new QQuickMonthModelPrivate), parent)
-{
- Q_D(QQuickMonthModel);
- d->populate(d->month, d->year, d->locale, true);
-}
-
-int QQuickMonthModel::month() const
-{
- Q_D(const QQuickMonthModel);
- return d->month;
-}
-
-void QQuickMonthModel::setMonth(int month)
-{
- Q_D(QQuickMonthModel);
- if (d->month != month) {
- if (d->populate(month, d->year, d->locale))
- emit dataChanged(index(0, 0), index(daysOnACalendarMonth - 1, 0));
- d->month = month;
- emit monthChanged();
- }
-}
-
-int QQuickMonthModel::year() const
-{
- Q_D(const QQuickMonthModel);
- return d->year;
-}
-
-void QQuickMonthModel::setYear(int year)
-{
- Q_D(QQuickMonthModel);
- if (d->year != year) {
- if (d->populate(d->month, year, d->locale))
- emit dataChanged(index(0, 0), index(daysOnACalendarMonth - 1, 0));
- d->year = year;
- emit yearChanged();
- }
-}
-
-QLocale QQuickMonthModel::locale() const
-{
- Q_D(const QQuickMonthModel);
- return d->locale;
-}
-
-void QQuickMonthModel::setLocale(const QLocale &locale)
-{
- Q_D(QQuickMonthModel);
- if (d->locale != locale) {
- if (d->populate(d->month, d->year, locale))
- emit dataChanged(index(0, 0), index(daysOnACalendarMonth - 1, 0));
- d->locale = locale;
- emit localeChanged();
- }
-}
-
-QString QQuickMonthModel::title() const
-{
- Q_D(const QQuickMonthModel);
- return d->title;
-}
-
-void QQuickMonthModel::setTitle(const QString &title)
-{
- Q_D(QQuickMonthModel);
- if (d->title != title) {
- d->title = title;
- emit titleChanged();
- }
-}
-
-QDate QQuickMonthModel::dateAt(int index) const
-{
- Q_D(const QQuickMonthModel);
- return d->dates.value(index);
-}
-
-int QQuickMonthModel::indexOf(const QDate &date) const
-{
- Q_D(const QQuickMonthModel);
- if (date < d->dates.first() || date > d->dates.last())
- return -1;
- return qMax(qint64(0), d->dates.first().daysTo(date));
-}
-
-QVariant QQuickMonthModel::data(const QModelIndex &index, int role) const
-{
- Q_D(const QQuickMonthModel);
- if (index.isValid() && index.row() < daysOnACalendarMonth) {
- const QDate date = d->dates.at(index.row());
- switch (role) {
- case DateRole:
- return date;
- case DayRole:
- return date.day();
- case TodayRole:
- return date == d->today;
- case WeekNumberRole:
- return date.weekNumber();
- case MonthRole:
- return date.month() - 1;
- case YearRole:
- return date.year();
- default:
- break;
- }
- }
- return QVariant();
-}
-
-int QQuickMonthModel::rowCount(const QModelIndex &parent) const
-{
- if (parent.isValid())
- return 0;
- return daysOnACalendarMonth;
-}
-
-QHash<int, QByteArray> QQuickMonthModel::roleNames() const
-{
- QHash<int, QByteArray> roles;
- roles[DateRole] = QByteArrayLiteral("date");
- roles[DayRole] = QByteArrayLiteral("day");
- roles[TodayRole] = QByteArrayLiteral("today");
- roles[WeekNumberRole] = QByteArrayLiteral("weekNumber");
- roles[MonthRole] = QByteArrayLiteral("month");
- roles[YearRole] = QByteArrayLiteral("year");
- return roles;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/calendar/qquickmonthmodel_p.h b/src/imports/calendar/qquickmonthmodel_p.h
deleted file mode 100644
index 55346282..00000000
--- a/src/imports/calendar/qquickmonthmodel_p.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMONTHMODEL_P_H
-#define QQUICKMONTHMODEL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qabstractitemmodel.h>
-#include <QtCore/qdatetime.h>
-#include <QtCore/qlocale.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMonthModelPrivate;
-
-class QQuickMonthModel : public QAbstractListModel
-{
- Q_OBJECT
- Q_PROPERTY(int month READ month WRITE setMonth NOTIFY monthChanged FINAL)
- Q_PROPERTY(int year READ year WRITE setYear NOTIFY yearChanged FINAL)
- Q_PROPERTY(QLocale locale READ locale WRITE setLocale NOTIFY localeChanged FINAL)
- Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
- Q_PROPERTY(int count READ rowCount CONSTANT FINAL)
-
-public:
- explicit QQuickMonthModel(QObject *parent = nullptr);
-
- int month() const;
- void setMonth(int month);
-
- int year() const;
- void setYear(int year);
-
- QLocale locale() const;
- void setLocale(const QLocale &locale);
-
- QString title() const;
- void setTitle(const QString &title);
-
- Q_INVOKABLE QDate dateAt(int index) const;
- Q_INVOKABLE int indexOf(const QDate &date) const;
-
- enum {
- DateRole = Qt::UserRole + 1,
- DayRole,
- TodayRole,
- WeekNumberRole,
- MonthRole,
- YearRole
- };
-
- QHash<int, QByteArray> roleNames() const override;
- QVariant data(const QModelIndex &index, int role) const override;
- int rowCount(const QModelIndex &parent = QModelIndex()) const override;
-
-Q_SIGNALS:
- void monthChanged();
- void yearChanged();
- void localeChanged();
- void titleChanged();
-
-private:
- Q_DISABLE_COPY(QQuickMonthModel)
- Q_DECLARE_PRIVATE(QQuickMonthModel)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMonthModel)
-
-#endif // QQUICKMONTHMODEL_P_H
diff --git a/src/imports/calendar/qquickweeknumbercolumn.cpp b/src/imports/calendar/qquickweeknumbercolumn.cpp
deleted file mode 100644
index c1179879..00000000
--- a/src/imports/calendar/qquickweeknumbercolumn.cpp
+++ /dev/null
@@ -1,261 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickweeknumbercolumn_p.h"
-#include "qquickweeknumbermodel_p.h"
-
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtQml/qqmlinfo.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype WeekNumberColumn
- \inherits Control
- \instantiates QQuickWeekNumberColumn
- \inqmlmodule Qt.labs.calendar
- \brief A column of week numbers.
-
- WeekNumberColumn presents week numbers in a column. The week numbers
- are calculated for a given \l month and \l year, using the specified
- \l {Control::locale}{locale}.
-
- \image qtlabscalendar-weeknumbercolumn.png
- \snippet qtlabscalendar-weeknumbercolumn.qml 1
-
- WeekNumberColumn can be used as a standalone control, but it is most
- often used in conjunction with MonthGrid. Regardless of the use case,
- positioning of the column is left to the user.
-
- \image qtlabscalendar-weeknumbercolumn-layout.png
- \snippet qtlabscalendar-weeknumbercolumn-layout.qml 1
-
- The visual appearance of WeekNumberColumn can be changed by
- implementing a \l {delegate}{custom delegate}.
-
- \labs
-
- \sa MonthGrid, DayOfWeekRow
-*/
-
-class QQuickWeekNumberColumnPrivate : public QQuickControlPrivate
-{
-public:
- QQuickWeekNumberColumnPrivate() : delegate(nullptr), model(nullptr) { }
-
- void resizeItems();
-
- QVariant source;
- QQmlComponent *delegate;
- QQuickWeekNumberModel *model;
-};
-
-void QQuickWeekNumberColumnPrivate::resizeItems()
-{
- if (!contentItem)
- return;
-
- QSizeF itemSize;
- itemSize.setWidth(contentItem->width());
- itemSize.setHeight((contentItem->height() - 5 * spacing) / 6);
-
- const auto childItems = contentItem->childItems();
- for (QQuickItem *item : childItems)
- item->setSize(itemSize);
-}
-
-QQuickWeekNumberColumn::QQuickWeekNumberColumn(QQuickItem *parent) :
- QQuickControl(*(new QQuickWeekNumberColumnPrivate), parent)
-{
- Q_D(QQuickWeekNumberColumn);
- d->model = new QQuickWeekNumberModel(this);
- d->source = QVariant::fromValue(d->model);
- connect(d->model, &QQuickWeekNumberModel::monthChanged, this, &QQuickWeekNumberColumn::monthChanged);
- connect(d->model, &QQuickWeekNumberModel::yearChanged, this, &QQuickWeekNumberColumn::yearChanged);
-}
-
-/*!
- \qmlproperty int Qt.labs.calendar::WeekNumberColumn::month
-
- This property holds the number of the month that the week numbers are
- calculated for. The default value is the current month.
-
- The Qt Labs Calendar module uses 0-based month numbers to be consistent
- with the JavaScript Date type, that is used by the QML language. This
- means that \c Date::getMonth() can be assigned to this property as is.
- When dealing with dealing with month numbers directly, it is highly
- recommended to use the following enumeration values to avoid confusion.
-
- \value Calendar.January January (0)
- \value Calendar.February February (1)
- \value Calendar.March March (2)
- \value Calendar.April April (3)
- \value Calendar.May May (4)
- \value Calendar.June June (5)
- \value Calendar.July July (6)
- \value Calendar.August August (7)
- \value Calendar.September September (8)
- \value Calendar.October October (9)
- \value Calendar.November November (10)
- \value Calendar.December December (11)
-
- \sa Calendar
-*/
-int QQuickWeekNumberColumn::month() const
-{
- Q_D(const QQuickWeekNumberColumn);
- return d->model->month() - 1;
-}
-
-void QQuickWeekNumberColumn::setMonth(int month)
-{
- Q_D(QQuickWeekNumberColumn);
- if (month < 0 || month > 11) {
- qmlWarning(this) << "month " << month << " is out of range [0...11]";
- return;
- }
- d->model->setMonth(month + 1);
-}
-
-/*!
- \qmlproperty int Qt.labs.calendar::WeekNumberColumn::year
-
- This property holds the number of the year that the week numbers are calculated for.
-
- The value must be in the range from \c -271820 to \c 275759. The default
- value is the current year.
-*/
-int QQuickWeekNumberColumn::year() const
-{
- Q_D(const QQuickWeekNumberColumn);
- return d->model->year();
-}
-
-void QQuickWeekNumberColumn::setYear(int year)
-{
- Q_D(QQuickWeekNumberColumn);
- if (year < -271820 || year > 275759) {
- qmlWarning(this) << "year " << year << " is out of range [-271820...275759]";
- return;
- }
- d->model->setYear(year);
-}
-
-/*!
- \internal
- \qmlproperty model Qt.labs.calendar::WeekNumberColumn::source
-
- This property holds the source model that is used as a data model
- for the internal content column.
-*/
-QVariant QQuickWeekNumberColumn::source() const
-{
- Q_D(const QQuickWeekNumberColumn);
- return d->source;
-}
-
-void QQuickWeekNumberColumn::setSource(const QVariant &source)
-{
- Q_D(QQuickWeekNumberColumn);
- if (d->source != source) {
- d->source = source;
- emit sourceChanged();
- }
-}
-
-/*!
- \qmlproperty Component Qt.labs.calendar::WeekNumberColumn::delegate
-
- This property holds the item delegate that visualizes each week number.
-
- In addition to the \c index property, a list of model data roles
- are available in the context of each delegate:
- \table
- \row \li \b model.weekNumber : int \li The week number
- \endtable
-
- The following snippet presents the default implementation of the item
- delegate. It can be used as a starting point for implementing custom
- delegates.
-
- \snippet WeekNumberColumn.qml delegate
-*/
-QQmlComponent *QQuickWeekNumberColumn::delegate() const
-{
- Q_D(const QQuickWeekNumberColumn);
- return d->delegate;
-}
-
-void QQuickWeekNumberColumn::setDelegate(QQmlComponent *delegate)
-{
- Q_D(QQuickWeekNumberColumn);
- if (d->delegate != delegate) {
- d->delegate = delegate;
- emit delegateChanged();
- }
-}
-
-void QQuickWeekNumberColumn::componentComplete()
-{
- Q_D(QQuickWeekNumberColumn);
- QQuickControl::componentComplete();
- d->resizeItems();
-}
-
-void QQuickWeekNumberColumn::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickWeekNumberColumn);
- QQuickControl::geometryChanged(newGeometry, oldGeometry);
- if (isComponentComplete())
- d->resizeItems();
-}
-
-void QQuickWeekNumberColumn::localeChange(const QLocale &newLocale, const QLocale &oldLocale)
-{
- Q_D(QQuickWeekNumberColumn);
- QQuickControl::localeChange(newLocale, oldLocale);
- d->model->setLocale(newLocale);
-}
-
-void QQuickWeekNumberColumn::paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
-{
- Q_D(QQuickWeekNumberColumn);
- QQuickControl::paddingChange(newPadding, oldPadding);
- if (isComponentComplete())
- d->resizeItems();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/calendar/qquickweeknumbercolumn_p.h b/src/imports/calendar/qquickweeknumbercolumn_p.h
deleted file mode 100644
index 30f267ca..00000000
--- a/src/imports/calendar/qquickweeknumbercolumn_p.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKWEEKNUMBERCOLUMN_P_H
-#define QQUICKWEEKNUMBERCOLUMN_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlComponent;
-class QQuickWeekNumberColumnPrivate;
-
-class QQuickWeekNumberColumn : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(int month READ month WRITE setMonth NOTIFY monthChanged FINAL)
- Q_PROPERTY(int year READ year WRITE setYear NOTIFY yearChanged FINAL)
- Q_PROPERTY(QVariant source READ source WRITE setSource NOTIFY sourceChanged FINAL)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
-
-public:
- explicit QQuickWeekNumberColumn(QQuickItem *parent = nullptr);
-
- int month() const;
- void setMonth(int month);
-
- int year() const;
- void setYear(int year);
-
- QVariant source() const;
- void setSource(const QVariant &source);
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
-Q_SIGNALS:
- void monthChanged();
- void yearChanged();
- void sourceChanged();
- void delegateChanged();
-
-protected:
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
- void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override;
-
-private:
- Q_DISABLE_COPY(QQuickWeekNumberColumn)
- Q_DECLARE_PRIVATE(QQuickWeekNumberColumn)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickWeekNumberColumn)
-
-#endif // QQUICKWEEKNUMBERCOLUMN_P_H
diff --git a/src/imports/calendar/qquickweeknumbermodel.cpp b/src/imports/calendar/qquickweeknumbermodel.cpp
deleted file mode 100644
index c45d8938..00000000
--- a/src/imports/calendar/qquickweeknumbermodel.cpp
+++ /dev/null
@@ -1,180 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickweeknumbermodel_p.h"
-
-#include <QtCore/private/qabstractitemmodel_p.h>
-#include <QtCore/qdatetime.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickWeekNumberModelPrivate : public QAbstractItemModelPrivate
-{
- Q_DECLARE_PUBLIC(QQuickWeekNumberModel)
-
-public:
- QQuickWeekNumberModelPrivate() : month(-1), year(-1)
- {
- QDate date = QDate::currentDate();
- init(date.month(), date.year(), locale);
- month = date.month();
- year = date.year();
- }
-
- void init(int month, int year, const QLocale &locale = QLocale());
- static QDate calculateFirst(int month, int year, const QLocale &locale);
-
- int month;
- int year;
- QLocale locale;
- int weekNumbers[6];
-};
-
-void QQuickWeekNumberModelPrivate::init(int m, int y, const QLocale &l)
-{
- Q_Q(QQuickWeekNumberModel);
- if (m == month && y == year && l.firstDayOfWeek() == locale.firstDayOfWeek())
- return;
-
- // The actual first (1st) day of the month.
- QDate firstDayOfMonthDate(y, m, 1);
- int difference = ((firstDayOfMonthDate.dayOfWeek() - l.firstDayOfWeek()) + 7) % 7;
- // The first day to display should never be the 1st of the month, as we want some days from
- // the previous month to be visible.
- if (difference == 0)
- difference += 7;
-
- for (int i = 0; i < 6; ++i)
- weekNumbers[i] = firstDayOfMonthDate.addDays(i * 7 - difference).weekNumber();
-
- if (q) // null at construction
- emit q->dataChanged(q->index(0, 0), q->index(5, 0));
-}
-
-QQuickWeekNumberModel::QQuickWeekNumberModel(QObject *parent) :
- QAbstractListModel(*(new QQuickWeekNumberModelPrivate), parent)
-{
-}
-
-int QQuickWeekNumberModel::month() const
-{
- Q_D(const QQuickWeekNumberModel);
- return d->month;
-}
-
-void QQuickWeekNumberModel::setMonth(int month)
-{
- Q_D(QQuickWeekNumberModel);
- if (d->month != month) {
- d->init(month, d->year, d->locale);
- d->month = month;
- emit monthChanged();
- }
-}
-
-int QQuickWeekNumberModel::year() const
-{
- Q_D(const QQuickWeekNumberModel);
- return d->year;
-}
-
-void QQuickWeekNumberModel::setYear(int year)
-{
- Q_D(QQuickWeekNumberModel);
- if (d->year != year) {
- d->init(d->month, year, d->locale);
- d->year = year;
- emit yearChanged();
- }
-}
-
-QLocale QQuickWeekNumberModel::locale() const
-{
- Q_D(const QQuickWeekNumberModel);
- return d->locale;
-}
-
-void QQuickWeekNumberModel::setLocale(const QLocale &locale)
-{
- Q_D(QQuickWeekNumberModel);
- if (d->locale != locale) {
- d->init(d->month, d->year, locale);
- d->locale = locale;
- emit localeChanged();
- }
-}
-
-int QQuickWeekNumberModel::weekNumberAt(int index) const
-{
- Q_D(const QQuickWeekNumberModel);
- if (index < 0 || index > 5)
- return -1;
- return d->weekNumbers[index];
-}
-
-int QQuickWeekNumberModel::indexOf(int weekNumber) const
-{
- Q_D(const QQuickWeekNumberModel);
- if (weekNumber < d->weekNumbers[0] || weekNumber > d->weekNumbers[5])
- return -1;
- return weekNumber - d->weekNumbers[0];
-}
-
-QVariant QQuickWeekNumberModel::data(const QModelIndex &index, int role) const
-{
- if (role == WeekNumberRole) {
- int weekNumber = weekNumberAt(index.row());
- if (weekNumber != -1)
- return weekNumber;
- }
- return QVariant();
-}
-
-int QQuickWeekNumberModel::rowCount(const QModelIndex &parent) const
-{
- if (parent.isValid())
- return 0;
- return 6;
-}
-
-QHash<int, QByteArray> QQuickWeekNumberModel::roleNames() const
-{
- QHash<int, QByteArray> roles;
- roles[WeekNumberRole] = QByteArrayLiteral("weekNumber");
- return roles;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/calendar/qquickweeknumbermodel_p.h b/src/imports/calendar/qquickweeknumbermodel_p.h
deleted file mode 100644
index 129c58fd..00000000
--- a/src/imports/calendar/qquickweeknumbermodel_p.h
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKWEEKNUMBERMODEL_P_H
-#define QQUICKWEEKNUMBERMODEL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qabstractitemmodel.h>
-#include <QtCore/qlocale.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickWeekNumberModelPrivate;
-
-class QQuickWeekNumberModel : public QAbstractListModel
-{
- Q_OBJECT
- Q_PROPERTY(int month READ month WRITE setMonth NOTIFY monthChanged FINAL)
- Q_PROPERTY(int year READ year WRITE setYear NOTIFY yearChanged FINAL)
- Q_PROPERTY(QLocale locale READ locale WRITE setLocale NOTIFY localeChanged FINAL)
- Q_PROPERTY(int count READ rowCount CONSTANT FINAL)
-
-public:
- explicit QQuickWeekNumberModel(QObject *parent = nullptr);
-
- int month() const;
- void setMonth(int month);
-
- int year() const;
- void setYear(int year);
-
- QLocale locale() const;
- void setLocale(const QLocale &locale);
-
- Q_INVOKABLE int weekNumberAt(int index) const;
- Q_INVOKABLE int indexOf(int weekNumber) const;
-
- enum {
- WeekNumberRole = Qt::UserRole + 1
- };
-
- QHash<int, QByteArray> roleNames() const override;
- QVariant data(const QModelIndex &index, int role) const override;
- int rowCount(const QModelIndex &parent = QModelIndex()) const override;
-
-Q_SIGNALS:
- void monthChanged();
- void yearChanged();
- void localeChanged();
-
-private:
- Q_DISABLE_COPY(QQuickWeekNumberModel)
- Q_DECLARE_PRIVATE(QQuickWeekNumberModel)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickWeekNumberModel)
-
-#endif // QQUICKWEEKNUMBERMODEL_P_H
diff --git a/src/imports/calendar/qtlabscalendarplugin.cpp b/src/imports/calendar/qtlabscalendarplugin.cpp
deleted file mode 100644
index 903eb8c0..00000000
--- a/src/imports/calendar/qtlabscalendarplugin.cpp
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Calendar 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 "qquickdayofweekrow_p.h"
-#include "qquickmonthgrid_p.h"
-#include "qquickweeknumbercolumn_p.h"
-#include "qquickcalendarmodel_p.h"
-#include "qquickcalendar_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QtLabsCalendarPlugin: public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtLabsCalendarPlugin(QObject *parent = nullptr);
- void registerTypes(const char *uri) override;
-};
-
-QtLabsCalendarPlugin::QtLabsCalendarPlugin(QObject *parent) : QQmlExtensionPlugin(parent)
-{
-}
-
-static QObject *calendarSingleton(QQmlEngine *engine, QJSEngine *scriptEngine)
-{
- Q_UNUSED(engine);
- Q_UNUSED(scriptEngine);
- return new QQuickCalendar;
-}
-
-void QtLabsCalendarPlugin::registerTypes(const char *uri)
-{
- qmlRegisterType<QQuickDayOfWeekRow>(uri, 1, 0, "AbstractDayOfWeekRow");
- qmlRegisterType<QQuickMonthGrid>(uri, 1, 0, "AbstractMonthGrid");
- qmlRegisterType<QQuickWeekNumberColumn>(uri, 1, 0, "AbstractWeekNumberColumn");
- qmlRegisterType<QQuickCalendarModel>(uri, 1, 0, "CalendarModel");
- qmlRegisterSingletonType<QQuickCalendar>(uri, 1, 0, "Calendar", calendarSingleton);
-}
-
-QT_END_NAMESPACE
-
-#include "qtlabscalendarplugin.moc"
diff --git a/src/imports/controls/AbstractButton.qml b/src/imports/controls/AbstractButton.qml
deleted file mode 100644
index 50ddb933..00000000
--- a/src/imports/controls/AbstractButton.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.AbstractButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-}
diff --git a/src/imports/controls/Action.qml b/src/imports/controls/Action.qml
deleted file mode 100644
index 996e9086..00000000
--- a/src/imports/controls/Action.qml
+++ /dev/null
@@ -1,40 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Action { }
diff --git a/src/imports/controls/ActionGroup.qml b/src/imports/controls/ActionGroup.qml
deleted file mode 100644
index 89e72c8f..00000000
--- a/src/imports/controls/ActionGroup.qml
+++ /dev/null
@@ -1,40 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ActionGroup { }
diff --git a/src/imports/controls/ApplicationWindow.qml b/src/imports/controls/ApplicationWindow.qml
deleted file mode 100644
index 4686a298..00000000
--- a/src/imports/controls/ApplicationWindow.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ApplicationWindow {
- id: window
-
- color: palette.window
-
- overlay.modal: Rectangle {
- color: Color.transparent(window.palette.shadow, 0.5)
- }
-
- overlay.modeless: Rectangle {
- color: Color.transparent(window.palette.shadow, 0.12)
- }
-}
diff --git a/src/imports/controls/BusyIndicator.qml b/src/imports/controls/BusyIndicator.qml
deleted file mode 100644
index ff5c191c..00000000
--- a/src/imports/controls/BusyIndicator.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.BusyIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
-
- contentItem: BusyIndicatorImpl {
- implicitWidth: 48
- implicitHeight: 48
-
- pen: control.palette.dark
- fill: control.palette.dark
-
- running: control.running
- opacity: control.running ? 1 : 0
- Behavior on opacity { OpacityAnimator { duration: 250 } }
- }
-}
diff --git a/src/imports/controls/Button.qml b/src/imports/controls/Button.qml
deleted file mode 100644
index a9e7fce6..00000000
--- a/src/imports/controls/Button.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Button {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- horizontalPadding: padding + 2
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: control.checked || control.highlighted ? control.palette.brightText :
- control.flat && !control.down ? (control.visualFocus ? control.palette.highlight : control.palette.windowText) : control.palette.buttonText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.checked || control.highlighted ? control.palette.brightText :
- control.flat && !control.down ? (control.visualFocus ? control.palette.highlight : control.palette.windowText) : control.palette.buttonText
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- visible: !control.flat || control.down || control.checked || control.highlighted
- color: Color.blend(control.checked || control.highlighted ? control.palette.dark : control.palette.button,
- control.palette.mid, control.down ? 0.5 : 0.0)
- border.color: control.palette.highlight
- border.width: control.visualFocus ? 2 : 0
- }
-}
diff --git a/src/imports/controls/ButtonGroup.qml b/src/imports/controls/ButtonGroup.qml
deleted file mode 100644
index cf0355ba..00000000
--- a/src/imports/controls/ButtonGroup.qml
+++ /dev/null
@@ -1,40 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ButtonGroup { }
diff --git a/src/imports/controls/CheckBox.qml b/src/imports/controls/CheckBox.qml
deleted file mode 100644
index b1f50ed1..00000000
--- a/src/imports/controls/CheckBox.qml
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.CheckBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- // keep in sync with CheckDelegate.qml (shared CheckIndicator.qml was removed for performance reasons)
- indicator: Rectangle {
- implicitWidth: 28
- implicitHeight: 28
-
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
-
- color: control.down ? control.palette.light : control.palette.base
- border.width: control.visualFocus ? 2 : 1
- border.color: control.visualFocus ? control.palette.highlight : control.palette.mid
-
- ColorImage {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- defaultColor: "#353637"
- color: control.palette.text
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
- visible: control.checkState === Qt.Checked
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 16
- height: 3
- color: control.palette.text
- visible: control.checkState === Qt.PartiallyChecked
- }
- }
-
- contentItem: CheckLabel {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.windowText
- }
-}
diff --git a/src/imports/controls/CheckDelegate.qml b/src/imports/controls/CheckDelegate.qml
deleted file mode 100644
index 71b390ac..00000000
--- a/src/imports/controls/CheckDelegate.qml
+++ /dev/null
@@ -1,110 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.CheckDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 12
- spacing: 12
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- // keep in sync with CheckBox.qml (shared CheckIndicator.qml was removed for performance reasons)
- indicator: Rectangle {
- implicitWidth: 28
- implicitHeight: 28
-
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- color: control.down ? control.palette.light : control.palette.base
- border.width: control.visualFocus ? 2 : 1
- border.color: control.visualFocus ? control.palette.highlight : control.palette.mid
-
- ColorImage {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- defaultColor: "#353637"
- color: control.palette.text
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
- visible: control.checkState === Qt.Checked
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 16
- height: 3
- color: control.palette.text
- visible: control.checkState === Qt.PartiallyChecked
- }
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- visible: control.down || control.highlighted
- color: control.down ? control.palette.midlight : control.palette.light
- }
-}
diff --git a/src/imports/controls/ComboBox.qml b/src/imports/controls/ComboBox.qml
deleted file mode 100644
index 8eefc686..00000000
--- a/src/imports/controls/ComboBox.qml
+++ /dev/null
@@ -1,141 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.14
-import QtQuick.Window 2.14
-import QtQuick.Controls 2.14
-import QtQuick.Controls.impl 2.14
-import QtQuick.Templates 2.14 as T
-
-T.ComboBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
- rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
-
- delegate: ItemDelegate {
- width: parent.width
- text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
- palette.text: control.palette.text
- palette.highlightedText: control.palette.highlightedText
- font.weight: control.currentIndex === index ? Font.DemiBold : Font.Normal
- highlighted: control.highlightedIndex === index
- hoverEnabled: control.hoverEnabled
- }
-
- indicator: ColorImage {
- x: control.mirrored ? control.padding : control.width - width - control.padding
- y: control.topPadding + (control.availableHeight - height) / 2
- color: control.palette.dark
- defaultColor: "#353637"
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/double-arrow.png"
- opacity: enabled ? 1 : 0.3
- }
-
- contentItem: T.TextField {
- leftPadding: !control.mirrored ? 12 : control.editable && activeFocus ? 3 : 1
- rightPadding: control.mirrored ? 12 : control.editable && activeFocus ? 3 : 1
- topPadding: 6 - control.padding
- bottomPadding: 6 - control.padding
-
- text: control.editable ? control.editText : control.displayText
-
- enabled: control.editable
- autoScroll: control.editable
- readOnly: control.down
- inputMethodHints: control.inputMethodHints
- validator: control.validator
-
- font: control.font
- color: control.editable ? control.palette.text : control.palette.buttonText
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- verticalAlignment: Text.AlignVCenter
-
- background: Rectangle {
- visible: control.enabled && control.editable && !control.flat
- border.width: parent && parent.activeFocus ? 2 : 1
- border.color: parent && parent.activeFocus ? control.palette.highlight : control.palette.button
- color: control.palette.base
- }
- }
-
- background: Rectangle {
- implicitWidth: 140
- implicitHeight: 40
-
- color: control.down ? control.palette.mid : control.palette.button
- border.color: control.palette.highlight
- border.width: !control.editable && control.visualFocus ? 2 : 0
- visible: !control.flat || control.down
- }
-
- popup: T.Popup {
- y: control.height
- width: control.width
- height: Math.min(contentItem.implicitHeight, control.Window.height - topMargin - bottomMargin)
- topMargin: 6
- bottomMargin: 6
-
- contentItem: ListView {
- clip: true
- implicitHeight: contentHeight
- model: control.delegateModel
- currentIndex: control.highlightedIndex
- highlightMoveDuration: 0
-
- Rectangle {
- z: 10
- width: parent.width
- height: parent.height
- color: "transparent"
- border.color: control.palette.mid
- }
-
- T.ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- background: Rectangle {
- color: control.palette.window
- }
- }
-}
diff --git a/src/imports/controls/Container.qml b/src/imports/controls/Container.qml
deleted file mode 100644
index 83ab957d..00000000
--- a/src/imports/controls/Container.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Container {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-}
diff --git a/src/imports/controls/Control.qml b/src/imports/controls/Control.qml
deleted file mode 100644
index a963a563..00000000
--- a/src/imports/controls/Control.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Control {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-}
diff --git a/src/imports/controls/DelayButton.qml b/src/imports/controls/DelayButton.qml
deleted file mode 100644
index 1c545a71..00000000
--- a/src/imports/controls/DelayButton.qml
+++ /dev/null
@@ -1,105 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DelayButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- horizontalPadding: padding + 2
-
- transition: Transition {
- NumberAnimation {
- duration: control.delay * (control.pressed ? 1.0 - control.progress : 0.3 * control.progress)
- }
- }
-
- contentItem: ItemGroup {
- ClippedText {
- clip: control.progress > 0
- clipX: -control.leftPadding + control.progress * control.width
- clipWidth: (1.0 - control.progress) * control.width
- visible: control.progress < 1
-
- text: control.text
- font: control.font
- opacity: enabled ? 1 : 0.3
- color: control.palette.buttonText
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- ClippedText {
- clip: control.progress > 0
- clipX: -control.leftPadding
- clipWidth: control.progress * control.width
- visible: control.progress > 0
-
- text: control.text
- font: control.font
- opacity: enabled ? 1 : 0.3
- color: control.palette.brightText
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- color: Color.blend(control.palette.button, control.palette.mid, control.down ? 0.5 : 0.0)
- border.color: control.palette.highlight
- border.width: control.visualFocus ? 2 : 0
-
- PaddedRectangle {
- padding: control.visualFocus ? 2 : 0
- width: control.progress * parent.width
- height: parent.height
- color: Color.blend(control.palette.dark, control.palette.mid, control.down ? 0.5 : 0.0)
- }
- }
-}
diff --git a/src/imports/controls/Dial.qml b/src/imports/controls/Dial.qml
deleted file mode 100644
index cc4618a5..00000000
--- a/src/imports/controls/Dial.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dial {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 184 // ### remove 184 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 184 // ### remove 184 in Qt 6
-
- background: DialImpl {
- implicitWidth: 184
- implicitHeight: 184
- color: control.visualFocus ? control.palette.highlight : control.palette.dark
- progress: control.position
- opacity: control.enabled ? 1 : 0.3
- }
-
- handle: ColorImage {
- x: control.background.x + control.background.width / 2 - control.handle.width / 2
- y: control.background.y + control.background.height / 2 - control.handle.height / 2
- width: 14
- height: 10
- defaultColor: "#353637"
- color: control.visualFocus ? control.palette.highlight : control.palette.dark
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/dial-indicator.png"
- antialiasing: true
- opacity: control.enabled ? 1 : 0.3
- transform: [
- Translate {
- y: -Math.min(control.background.width, control.background.height) * 0.4 + control.handle.height / 2
- },
- Rotation {
- angle: control.angle
- origin.x: control.handle.width / 2
- origin.y: control.handle.height / 2
- }
- ]
- }
-}
diff --git a/src/imports/controls/Dialog.qml b/src/imports/controls/Dialog.qml
deleted file mode 100644
index 6c2e4b1b..00000000
--- a/src/imports/controls/Dialog.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.Dialog {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- padding: 12
-
- background: Rectangle {
- color: control.palette.window
- border.color: control.palette.dark
- }
-
- header: Label {
- text: control.title
- visible: control.title
- elide: Label.ElideRight
- font.bold: true
- padding: 12
- background: Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 1
- color: control.palette.window
- }
- }
-
- footer: DialogButtonBox {
- visible: count > 0
- }
-
- T.Overlay.modal: Rectangle {
- color: Color.transparent(control.palette.shadow, 0.5)
- }
-
- T.Overlay.modeless: Rectangle {
- color: Color.transparent(control.palette.shadow, 0.12)
- }
-}
diff --git a/src/imports/controls/DialogButtonBox.qml b/src/imports/controls/DialogButtonBox.qml
deleted file mode 100644
index 3c9d5b48..00000000
--- a/src/imports/controls/DialogButtonBox.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DialogButtonBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- (control.count === 1 ? implicitContentWidth * 2 : implicitContentWidth) + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
- contentWidth: contentItem.contentWidth
-
- spacing: 1
- padding: 12
- alignment: count === 1 ? Qt.AlignRight : undefined
-
- delegate: Button {
- width: control.count === 1 ? control.availableWidth / 2 : undefined
- }
-
- contentItem: ListView {
- model: control.contentModel
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
- }
-
- background: Rectangle {
- implicitHeight: 40
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- color: control.palette.window
- }
-}
diff --git a/src/imports/controls/Drawer.qml b/src/imports/controls/Drawer.qml
deleted file mode 100644
index 17465fd4..00000000
--- a/src/imports/controls/Drawer.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Drawer {
- id: control
-
- parent: T.Overlay.overlay
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: control.edge === Qt.BottomEdge
- leftPadding: control.edge === Qt.RightEdge
- rightPadding: control.edge === Qt.LeftEdge
- bottomPadding: control.edge === Qt.TopEdge
-
- enter: Transition { SmoothedAnimation { velocity: 5 } }
- exit: Transition { SmoothedAnimation { velocity: 5 } }
-
- background: Rectangle {
- color: control.palette.window
- Rectangle {
- readonly property bool horizontal: control.edge === Qt.LeftEdge || control.edge === Qt.RightEdge
- width: horizontal ? 1 : parent.width
- height: horizontal ? parent.height : 1
- color: control.palette.dark
- x: control.edge === Qt.LeftEdge ? parent.width - 1 : 0
- y: control.edge === Qt.TopEdge ? parent.height - 1 : 0
- }
- }
-
- T.Overlay.modal: Rectangle {
- color: Color.transparent(control.palette.shadow, 0.5)
- }
-
- T.Overlay.modeless: Rectangle {
- color: Color.transparent(control.palette.shadow, 0.12)
- }
-}
diff --git a/src/imports/controls/Frame.qml b/src/imports/controls/Frame.qml
deleted file mode 100644
index 2fe46104..00000000
--- a/src/imports/controls/Frame.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Frame {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
-
- background: Rectangle {
- color: "transparent"
- border.color: control.palette.mid
- }
-}
diff --git a/src/imports/controls/GroupBox.qml b/src/imports/controls/GroupBox.qml
deleted file mode 100644
index 96f776f2..00000000
--- a/src/imports/controls/GroupBox.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.GroupBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitLabelWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: 6
- padding: 12
- topPadding: padding + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
-
- label: Text {
- x: control.leftPadding
- width: control.availableWidth
-
- text: control.title
- font: control.font
- color: control.palette.windowText
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- background: Rectangle {
- y: control.topPadding - control.bottomPadding
- width: parent.width
- height: parent.height - control.topPadding + control.bottomPadding
-
- color: "transparent"
- border.color: control.palette.mid
- }
-}
diff --git a/src/imports/controls/ItemDelegate.qml b/src/imports/controls/ItemDelegate.qml
deleted file mode 100644
index 6229e2bb..00000000
--- a/src/imports/controls/ItemDelegate.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ItemDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 12
- spacing: 8
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.highlighted ? control.palette.highlightedText : control.palette.text
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- visible: control.down || control.highlighted || control.visualFocus
- color: Color.blend(control.down ? control.palette.midlight : control.palette.light,
- control.palette.highlight, control.visualFocus ? 0.15 : 0.0)
- }
-}
diff --git a/src/imports/controls/Label.qml b/src/imports/controls/Label.qml
deleted file mode 100644
index 9a42635f..00000000
--- a/src/imports/controls/Label.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Label {
- id: control
-
- color: control.palette.windowText
- linkColor: control.palette.link
-}
diff --git a/src/imports/controls/Menu.qml b/src/imports/controls/Menu.qml
deleted file mode 100644
index 041942f5..00000000
--- a/src/imports/controls/Menu.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Window 2.12
-
-T.Menu {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- margins: 0
- overlap: 1
-
- delegate: MenuItem { }
-
- contentItem: ListView {
- implicitHeight: contentHeight
- model: control.contentModel
- interactive: Window.window ? contentHeight > Window.window.height : false
- clip: true
- currentIndex: control.currentIndex
-
- ScrollIndicator.vertical: ScrollIndicator {}
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
- color: control.palette.window
- border.color: control.palette.dark
- }
-
- T.Overlay.modal: Rectangle {
- color: Color.transparent(control.palette.shadow, 0.5)
- }
-
- T.Overlay.modeless: Rectangle {
- color: Color.transparent(control.palette.shadow, 0.12)
- }
-}
diff --git a/src/imports/controls/MenuBar.qml b/src/imports/controls/MenuBar.qml
deleted file mode 100644
index 122cdc53..00000000
--- a/src/imports/controls/MenuBar.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.MenuBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- delegate: MenuBarItem { }
-
- contentItem: Row {
- spacing: control.spacing
- Repeater {
- model: control.contentModel
- }
- }
-
- background: Rectangle {
- implicitHeight: 40
- color: control.palette.button
- }
-}
diff --git a/src/imports/controls/MenuBarItem.qml b/src/imports/controls/MenuBarItem.qml
deleted file mode 100644
index f6835412..00000000
--- a/src/imports/controls/MenuBarItem.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.MenuBarItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 6
- padding: 6
- leftPadding: 12
- rightPadding: 16
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.buttonText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.buttonText
- }
-
- background: Rectangle {
- implicitWidth: 40
- implicitHeight: 40
- color: control.down || control.highlighted ? control.palette.mid : "transparent"
- }
-}
diff --git a/src/imports/controls/MenuItem.qml b/src/imports/controls/MenuItem.qml
deleted file mode 100644
index 22cdf3ea..00000000
--- a/src/imports/controls/MenuItem.qml
+++ /dev/null
@@ -1,105 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.windowText
-
- contentItem: IconLabel {
- readonly property real arrowPadding: control.subMenu && control.arrow ? control.arrow.width + control.spacing : 0
- readonly property real indicatorPadding: control.checkable && control.indicator ? control.indicator.width + control.spacing : 0
- leftPadding: !control.mirrored ? indicatorPadding : arrowPadding
- rightPadding: control.mirrored ? indicatorPadding : arrowPadding
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.windowText
- }
-
- indicator: ColorImage {
- x: control.mirrored ? control.width - width - control.rightPadding : control.leftPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- visible: control.checked
- source: control.checkable ? "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png" : ""
- color: control.palette.windowText
- defaultColor: "#353637"
- }
-
- arrow: ColorImage {
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- visible: control.subMenu
- mirror: control.mirrored
- source: control.subMenu ? "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/arrow-indicator.png" : ""
- color: control.palette.windowText
- defaultColor: "#353637"
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
- x: 1
- y: 1
- width: control.width - 2
- height: control.height - 2
- color: control.down ? control.palette.midlight : control.highlighted ? control.palette.light : "transparent"
- }
-}
diff --git a/src/imports/controls/MenuSeparator.qml b/src/imports/controls/MenuSeparator.qml
deleted file mode 100644
index cc5c2b6e..00000000
--- a/src/imports/controls/MenuSeparator.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 2
- verticalPadding: padding + 4
-
- contentItem: Rectangle {
- implicitWidth: 188
- implicitHeight: 1
- color: control.palette.mid
- }
-}
diff --git a/src/imports/controls/Page.qml b/src/imports/controls/Page.qml
deleted file mode 100644
index 4b3cf3d2..00000000
--- a/src/imports/controls/Page.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Page {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- background: Rectangle {
- color: control.palette.window
- }
-}
diff --git a/src/imports/controls/PageIndicator.qml b/src/imports/controls/PageIndicator.qml
deleted file mode 100644
index 78f9e3cf..00000000
--- a/src/imports/controls/PageIndicator.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.PageIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- delegate: Rectangle {
- implicitWidth: 8
- implicitHeight: 8
-
- radius: width / 2
- color: control.palette.dark
-
- opacity: index === currentIndex ? 0.95 : pressed ? 0.7 : 0.45
- Behavior on opacity { OpacityAnimator { duration: 100 } }
- }
-
- contentItem: Row {
- spacing: control.spacing
-
- Repeater {
- model: control.count
- delegate: control.delegate
- }
- }
-}
diff --git a/src/imports/controls/Pane.qml b/src/imports/controls/Pane.qml
deleted file mode 100644
index 47b916e3..00000000
--- a/src/imports/controls/Pane.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Pane {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
-
- background: Rectangle {
- color: control.palette.window
- }
-}
diff --git a/src/imports/controls/Popup.qml b/src/imports/controls/Popup.qml
deleted file mode 100644
index ee243c10..00000000
--- a/src/imports/controls/Popup.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Popup {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
-
- background: Rectangle {
- color: control.palette.window
- border.color: control.palette.dark
- }
-
- T.Overlay.modal: Rectangle {
- color: Color.transparent(control.palette.shadow, 0.5)
- }
-
- T.Overlay.modeless: Rectangle {
- color: Color.transparent(control.palette.shadow, 0.12)
- }
-}
diff --git a/src/imports/controls/ProgressBar.qml b/src/imports/controls/ProgressBar.qml
deleted file mode 100644
index 61cdea43..00000000
--- a/src/imports/controls/ProgressBar.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.ProgressBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- contentItem: ProgressBarImpl {
- implicitHeight: 6
- implicitWidth: 116
- scale: control.mirrored ? -1 : 1
- progress: control.position
- indeterminate: control.visible && control.indeterminate
- color: control.palette.dark
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 6
- y: (control.height - height) / 2
- height: 6
-
- color: control.palette.midlight
- }
-}
diff --git a/src/imports/controls/RadioButton.qml b/src/imports/controls/RadioButton.qml
deleted file mode 100644
index cdf0c30e..00000000
--- a/src/imports/controls/RadioButton.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- // keep in sync with RadioDelegate.qml (shared RadioIndicator.qml was removed for performance reasons)
- indicator: Rectangle {
- implicitWidth: 28
- implicitHeight: 28
-
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
-
- radius: width / 2
- color: control.down ? control.palette.light : control.palette.base
- border.width: control.visualFocus ? 2 : 1
- border.color: control.visualFocus ? control.palette.highlight : control.palette.mid
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 20
- height: 20
- radius: width / 2
- color: control.palette.text
- visible: control.checked
- }
- }
-
- contentItem: CheckLabel {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.windowText
- }
-}
diff --git a/src/imports/controls/RadioDelegate.qml b/src/imports/controls/RadioDelegate.qml
deleted file mode 100644
index a7e7dec0..00000000
--- a/src/imports/controls/RadioDelegate.qml
+++ /dev/null
@@ -1,103 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 12
- spacing: 12
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- // keep in sync with RadioButton.qml (shared RadioIndicator.qml was removed for performance reasons)
- indicator: Rectangle {
- implicitWidth: 28
- implicitHeight: 28
-
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- radius: width / 2
- color: control.down ? control.palette.light : control.palette.base
- border.width: control.visualFocus ? 2 : 1
- border.color: control.visualFocus ? control.palette.highlight : control.palette.mid
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 20
- height: 20
- radius: width / 2
- color: control.palette.text
- visible: control.checked
- }
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- visible: control.down || control.highlighted
- color: control.down ? control.palette.midlight : control.palette.light
- }
-}
diff --git a/src/imports/controls/RangeSlider.qml b/src/imports/controls/RangeSlider.qml
deleted file mode 100644
index c3e7c964..00000000
--- a/src/imports/controls/RangeSlider.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RangeSlider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- first.implicitHandleWidth + leftPadding + rightPadding,
- second.implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- first.implicitHandleHeight + topPadding + bottomPadding,
- second.implicitHandleHeight + topPadding + bottomPadding)
-
- padding: 6
-
- first.handle: Rectangle {
- x: control.leftPadding + (control.horizontal ? control.first.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.first.visualPosition * (control.availableHeight - height))
- implicitWidth: 28
- implicitHeight: 28
- radius: width / 2
- border.width: activeFocus ? 2 : 1
- border.color: activeFocus ? control.palette.highlight : control.enabled ? control.palette.mid : control.palette.midlight
- color: control.first.pressed ? control.palette.light : control.palette.window
- }
-
- second.handle: Rectangle {
- x: control.leftPadding + (control.horizontal ? control.second.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.second.visualPosition * (control.availableHeight - height))
- implicitWidth: 28
- implicitHeight: 28
- radius: width / 2
- border.width: activeFocus ? 2 : 1
- border.color: activeFocus ? control.palette.highlight : control.enabled ? control.palette.mid : control.palette.midlight
- color: control.second.pressed ? control.palette.light : control.palette.window
- }
-
- background: Rectangle {
- x: control.leftPadding + (control.horizontal ? 0 : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : 0)
- implicitWidth: control.horizontal ? 200 : 6
- implicitHeight: control.horizontal ? 6 : 200
- width: control.horizontal ? control.availableWidth : implicitWidth
- height: control.horizontal ? implicitHeight : control.availableHeight
- radius: 3
- color: control.palette.midlight
- scale: control.horizontal && control.mirrored ? -1 : 1
-
- Rectangle {
- x: control.horizontal ? control.first.position * parent.width + 3 : 0
- y: control.horizontal ? 0 : control.second.visualPosition * parent.height + 3
- width: control.horizontal ? control.second.position * parent.width - control.first.position * parent.width - 6 : 6
- height: control.horizontal ? 6 : control.second.position * parent.height - control.first.position * parent.height - 6
-
- color: control.palette.dark
- }
- }
-}
diff --git a/src/imports/controls/RoundButton.qml b/src/imports/controls/RoundButton.qml
deleted file mode 100644
index 825d5252..00000000
--- a/src/imports/controls/RoundButton.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RoundButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: control.checked || control.highlighted ? control.palette.brightText :
- control.flat && !control.down ? (control.visualFocus ? control.palette.highlight : control.palette.windowText) : control.palette.buttonText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.checked || control.highlighted ? control.palette.brightText :
- control.flat && !control.down ? (control.visualFocus ? control.palette.highlight : control.palette.windowText) : control.palette.buttonText
- }
-
- background: Rectangle {
- implicitWidth: 40
- implicitHeight: 40
- radius: control.radius
- opacity: enabled ? 1 : 0.3
- visible: !control.flat || control.down || control.checked || control.highlighted
- color: Color.blend(control.checked || control.highlighted ? control.palette.dark : control.palette.button,
- control.palette.mid, control.down ? 0.5 : 0.0)
- border.color: control.palette.highlight
- border.width: control.visualFocus ? 2 : 0
- }
-}
diff --git a/src/imports/controls/ScrollBar.qml b/src/imports/controls/ScrollBar.qml
deleted file mode 100644
index 0948fb1d..00000000
--- a/src/imports/controls/ScrollBar.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 2
- visible: control.policy !== T.ScrollBar.AlwaysOff
- minimumSize: orientation == Qt.Horizontal ? height / width : width / height
-
- contentItem: Rectangle {
- implicitWidth: control.interactive ? 6 : 2
- implicitHeight: control.interactive ? 6 : 2
-
- radius: width / 2
- color: control.pressed ? control.palette.dark : control.palette.mid
- opacity: 0.0
-
- states: State {
- name: "active"
- when: control.policy === T.ScrollBar.AlwaysOn || (control.active && control.size < 1.0)
- PropertyChanges { target: control.contentItem; opacity: 0.75 }
- }
-
- transitions: Transition {
- from: "active"
- SequentialAnimation {
- PauseAnimation { duration: 450 }
- NumberAnimation { target: control.contentItem; duration: 200; property: "opacity"; to: 0.0 }
- }
- }
- }
-}
diff --git a/src/imports/controls/ScrollIndicator.qml b/src/imports/controls/ScrollIndicator.qml
deleted file mode 100644
index 795c20ee..00000000
--- a/src/imports/controls/ScrollIndicator.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 2
-
- contentItem: Rectangle {
- implicitWidth: 2
- implicitHeight: 2
-
- color: control.palette.mid
- visible: control.size < 1.0
- opacity: 0.0
-
- states: State {
- name: "active"
- when: control.active
- PropertyChanges { target: control.contentItem; opacity: 0.75 }
- }
-
- transitions: [
- Transition {
- from: "active"
- SequentialAnimation {
- PauseAnimation { duration: 450 }
- NumberAnimation { target: control.contentItem; duration: 200; property: "opacity"; to: 0.0 }
- }
- }
- ]
- }
-}
diff --git a/src/imports/controls/ScrollView.qml b/src/imports/controls/ScrollView.qml
deleted file mode 100644
index f775d624..00000000
--- a/src/imports/controls/ScrollView.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollView {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- ScrollBar.vertical: ScrollBar {
- parent: control
- x: control.mirrored ? 0 : control.width - width
- y: control.topPadding
- height: control.availableHeight
- active: control.ScrollBar.horizontal.active
- }
-
- ScrollBar.horizontal: ScrollBar {
- parent: control
- x: control.leftPadding
- y: control.height - height
- width: control.availableWidth
- active: control.ScrollBar.vertical.active
- }
-}
diff --git a/src/imports/controls/Slider.qml b/src/imports/controls/Slider.qml
deleted file mode 100644
index 6d532389..00000000
--- a/src/imports/controls/Slider.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Slider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitHandleHeight + topPadding + bottomPadding)
-
- padding: 6
-
- handle: Rectangle {
- x: control.leftPadding + (control.horizontal ? control.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.visualPosition * (control.availableHeight - height))
- implicitWidth: 28
- implicitHeight: 28
- radius: width / 2
- color: control.pressed ? control.palette.light : control.palette.window
- border.width: control.visualFocus ? 2 : 1
- border.color: control.visualFocus ? control.palette.highlight : control.enabled ? control.palette.mid : control.palette.midlight
- }
-
- background: Rectangle {
- x: control.leftPadding + (control.horizontal ? 0 : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : 0)
- implicitWidth: control.horizontal ? 200 : 6
- implicitHeight: control.horizontal ? 6 : 200
- width: control.horizontal ? control.availableWidth : implicitWidth
- height: control.horizontal ? implicitHeight : control.availableHeight
- radius: 3
- color: control.palette.midlight
- scale: control.horizontal && control.mirrored ? -1 : 1
-
- Rectangle {
- y: control.horizontal ? 0 : control.visualPosition * parent.height
- width: control.horizontal ? control.position * parent.width : 6
- height: control.horizontal ? 6 : control.position * parent.height
-
- radius: 3
- color: control.palette.dark
- }
- }
-}
diff --git a/src/imports/controls/SpinBox.qml b/src/imports/controls/SpinBox.qml
deleted file mode 100644
index d1c2ea5b..00000000
--- a/src/imports/controls/SpinBox.qml
+++ /dev/null
@@ -1,135 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SpinBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentItem.implicitWidth + 2 * padding +
- up.implicitIndicatorWidth +
- down.implicitIndicatorWidth)
- implicitHeight: Math.max(implicitContentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight,
- up.implicitIndicatorHeight,
- down.implicitIndicatorHeight)
-
- padding: 6
- leftPadding: padding + (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0))
- rightPadding: padding + (control.mirrored ? (down.indicator ? down.indicator.width : 0) : (up.indicator ? up.indicator.width : 0))
-
- validator: IntValidator {
- locale: control.locale.name
- bottom: Math.min(control.from, control.to)
- top: Math.max(control.from, control.to)
- }
-
- contentItem: TextInput {
- z: 2
- text: control.displayText
-
- font: control.font
- color: control.palette.text
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
-
- readOnly: !control.editable
- validator: control.validator
- inputMethodHints: control.inputMethodHints
-
- Rectangle {
- x: -6 - (control.down.indicator ? 1 : 0)
- y: -6
- width: control.width - (control.up.indicator ? control.up.indicator.width - 1 : 0) - (control.down.indicator ? control.down.indicator.width - 1 : 0)
- height: control.height
- visible: control.activeFocus
- color: "transparent"
- border.color: control.palette.highlight
- border.width: 2
- }
- }
-
- up.indicator: Rectangle {
- x: control.mirrored ? 0 : parent.width - width
- height: parent.height
- implicitWidth: 40
- implicitHeight: 40
- color: control.up.pressed ? control.palette.mid : control.palette.button
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: parent.width / 3
- height: 2
- color: enabled ? control.palette.buttonText : control.palette.mid
- }
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 2
- height: parent.width / 3
- color: enabled ? control.palette.buttonText : control.palette.mid
- }
- }
-
- down.indicator: Rectangle {
- x: control.mirrored ? parent.width - width : 0
- height: parent.height
- implicitWidth: 40
- implicitHeight: 40
- color: control.down.pressed ? control.palette.mid : control.palette.button
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: parent.width / 3
- height: 2
- color: enabled ? control.palette.buttonText : control.palette.mid
- }
- }
-
- background: Rectangle {
- implicitWidth: 140
- color: enabled ? control.palette.base : control.palette.button
- border.color: control.palette.button
- }
-}
diff --git a/src/imports/controls/SplitView.qml b/src/imports/controls/SplitView.qml
deleted file mode 100644
index 9d37a83e..00000000
--- a/src/imports/controls/SplitView.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Templates 2.13 as T
-import QtQuick.Controls 2.13
-import QtQuick.Controls.impl 2.13
-
-T.SplitView {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- handle: Rectangle {
- implicitWidth: control.orientation === Qt.Horizontal ? 6 : control.width
- implicitHeight: control.orientation === Qt.Horizontal ? control.height : 6
- color: T.SplitHandle.pressed ? control.palette.mid
- : (T.SplitHandle.hovered ? control.palette.midlight : control.palette.button)
- }
-}
diff --git a/src/imports/controls/StackView.qml b/src/imports/controls/StackView.qml
deleted file mode 100644
index 3e416b87..00000000
--- a/src/imports/controls/StackView.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-T.StackView {
- id: control
-
- popEnter: Transition {
- XAnimator { from: (control.mirrored ? -1 : 1) * -control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
-
- popExit: Transition {
- XAnimator { from: 0; to: (control.mirrored ? -1 : 1) * control.width; duration: 400; easing.type: Easing.OutCubic }
- }
-
- pushEnter: Transition {
- XAnimator { from: (control.mirrored ? -1 : 1) * control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
-
- pushExit: Transition {
- XAnimator { from: 0; to: (control.mirrored ? -1 : 1) * -control.width; duration: 400; easing.type: Easing.OutCubic }
- }
-
- replaceEnter: Transition {
- XAnimator { from: (control.mirrored ? -1 : 1) * control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
-
- replaceExit: Transition {
- XAnimator { from: 0; to: (control.mirrored ? -1 : 1) * -control.width; duration: 400; easing.type: Easing.OutCubic }
- }
-}
diff --git a/src/imports/controls/SwipeDelegate.qml b/src/imports/controls/SwipeDelegate.qml
deleted file mode 100644
index 37d66bb6..00000000
--- a/src/imports/controls/SwipeDelegate.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 12
- spacing: 12
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- swipe.transition: Transition { SmoothedAnimation { velocity: 3; easing.type: Easing.InOutCubic } }
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- color: Color.blend(control.down ? control.palette.midlight : control.palette.light,
- control.palette.highlight, control.visualFocus ? 0.15 : 0.0)
- }
-}
diff --git a/src/imports/controls/SwipeView.qml b/src/imports/controls/SwipeView.qml
deleted file mode 100644
index ad242e1a..00000000
--- a/src/imports/controls/SwipeView.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeView {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- contentItem: ListView {
- model: control.contentModel
- interactive: control.interactive
- currentIndex: control.currentIndex
-
- spacing: control.spacing
- orientation: control.orientation
- snapMode: ListView.SnapOneItem
- boundsBehavior: Flickable.StopAtBounds
-
- highlightRangeMode: ListView.StrictlyEnforceRange
- preferredHighlightBegin: 0
- preferredHighlightEnd: 0
- highlightMoveDuration: 250
- maximumFlickVelocity: 4 * (control.orientation === Qt.Horizontal ? width : height)
- }
-}
diff --git a/src/imports/controls/Switch.qml b/src/imports/controls/Switch.qml
deleted file mode 100644
index f62e2502..00000000
--- a/src/imports/controls/Switch.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.Switch {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- indicator: PaddedRectangle {
- implicitWidth: 56
- implicitHeight: 28
-
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
-
- radius: 8
- leftPadding: 0
- rightPadding: 0
- padding: (height - 16) / 2
- color: control.checked ? control.palette.dark : control.palette.midlight
-
- Rectangle {
- x: Math.max(0, Math.min(parent.width - width, control.visualPosition * parent.width - (width / 2)))
- y: (parent.height - height) / 2
- width: 28
- height: 28
- radius: 16
- color: control.down ? control.palette.light : control.palette.window
- border.width: control.visualFocus ? 2 : 1
- border.color: control.visualFocus ? control.palette.highlight : control.enabled ? control.palette.mid : control.palette.midlight
-
- Behavior on x {
- enabled: !control.down
- SmoothedAnimation { velocity: 200 }
- }
- }
- }
-
- contentItem: CheckLabel {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.windowText
- }
-}
diff --git a/src/imports/controls/SwitchDelegate.qml b/src/imports/controls/SwitchDelegate.qml
deleted file mode 100644
index d6447e77..00000000
--- a/src/imports/controls/SwitchDelegate.qml
+++ /dev/null
@@ -1,109 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.SwitchDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 12
- spacing: 12
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- indicator: PaddedRectangle {
- implicitWidth: 56
- implicitHeight: 28
-
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
-
- radius: 8
- leftPadding: 0
- rightPadding: 0
- padding: (height - 16) / 2
- color: control.checked ? control.palette.dark : control.palette.midlight
-
- Rectangle {
- x: Math.max(0, Math.min(parent.width - width, control.visualPosition * parent.width - (width / 2)))
- y: (parent.height - height) / 2
- width: 28
- height: 28
- radius: 16
- color: control.down ? control.palette.light : control.palette.window
- border.width: control.visualFocus ? 2 : 1
- border.color: control.visualFocus ? control.palette.highlight : control.enabled ? control.palette.mid : control.palette.midlight
-
- Behavior on x {
- enabled: !control.down
- SmoothedAnimation { velocity: 200 }
- }
- }
- }
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- visible: control.down || control.highlighted
- color: control.down ? control.palette.midlight : control.palette.light
- }
-}
diff --git a/src/imports/controls/TabBar.qml b/src/imports/controls/TabBar.qml
deleted file mode 100644
index 83f6b3b2..00000000
--- a/src/imports/controls/TabBar.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: 1
-
- contentItem: ListView {
- model: control.contentModel
- currentIndex: control.currentIndex
-
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- flickableDirection: Flickable.AutoFlickIfNeeded
- snapMode: ListView.SnapToItem
-
- highlightMoveDuration: 0
- highlightRangeMode: ListView.ApplyRange
- preferredHighlightBegin: 40
- preferredHighlightEnd: width - 40
- }
-
- background: Rectangle {
- color: control.palette.window
- }
-}
diff --git a/src/imports/controls/TabButton.qml b/src/imports/controls/TabButton.qml
deleted file mode 100644
index f8b303ea..00000000
--- a/src/imports/controls/TabButton.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: checked ? control.palette.windowText : control.palette.brightText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.checked ? control.palette.windowText : control.palette.brightText
- }
-
- background: Rectangle {
- implicitHeight: 40
- color: Color.blend(control.checked ? control.palette.window : control.palette.dark,
- control.palette.mid, control.down ? 0.5 : 0.0)
- }
-}
diff --git a/src/imports/controls/TextArea.qml b/src/imports/controls/TextArea.qml
deleted file mode 100644
index 45790e67..00000000
--- a/src/imports/controls/TextArea.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextArea {
- id: control
-
- implicitWidth: Math.max(contentWidth + leftPadding + rightPadding,
- implicitBackgroundWidth + leftInset + rightInset,
- placeholder.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(contentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight + topInset + bottomInset,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- padding: 6
- leftPadding: padding + 4
-
- color: control.palette.text
- placeholderTextColor: Color.transparent(control.color, 0.5)
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
-
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- verticalAlignment: control.verticalAlignment
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- elide: Text.ElideRight
- renderType: control.renderType
- }
-}
diff --git a/src/imports/controls/TextField.qml b/src/imports/controls/TextField.qml
deleted file mode 100644
index 4d9cb691..00000000
--- a/src/imports/controls/TextField.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextField {
- id: control
-
- implicitWidth: implicitBackgroundWidth + leftInset + rightInset
- || Math.max(contentWidth, placeholder.implicitWidth) + leftPadding + rightPadding
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- padding: 6
- leftPadding: padding + 4
-
- color: control.palette.text
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- placeholderTextColor: Color.transparent(control.color, 0.5)
- verticalAlignment: TextInput.AlignVCenter
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
-
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- verticalAlignment: control.verticalAlignment
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- elide: Text.ElideRight
- renderType: control.renderType
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
- border.width: control.activeFocus ? 2 : 1
- color: control.palette.base
- border.color: control.activeFocus ? control.palette.highlight : control.palette.mid
- }
-}
diff --git a/src/imports/controls/ToolBar.qml b/src/imports/controls/ToolBar.qml
deleted file mode 100644
index 1e07b6bf..00000000
--- a/src/imports/controls/ToolBar.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- background: Rectangle {
- implicitHeight: 40
- color: control.palette.button
- }
-}
diff --git a/src/imports/controls/ToolButton.qml b/src/imports/controls/ToolButton.qml
deleted file mode 100644
index 63aaf893..00000000
--- a/src/imports/controls/ToolButton.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: visualFocus ? control.palette.highlight : control.palette.buttonText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.visualFocus ? control.palette.highlight : control.palette.buttonText
- }
-
- background: Rectangle {
- implicitWidth: 40
- implicitHeight: 40
-
- opacity: control.down ? 1.0 : 0.5
- color: control.down || control.checked || control.highlighted ? control.palette.mid : control.palette.button
- }
-}
diff --git a/src/imports/controls/ToolSeparator.qml b/src/imports/controls/ToolSeparator.qml
deleted file mode 100644
index 188d0758..00000000
--- a/src/imports/controls/ToolSeparator.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: vertical ? 6 : 2
- verticalPadding: vertical ? 2 : 6
-
- contentItem: Rectangle {
- implicitWidth: vertical ? 1 : 30
- implicitHeight: vertical ? 30 : 1
- color: control.palette.mid
- }
-}
diff --git a/src/imports/controls/ToolTip.qml b/src/imports/controls/ToolTip.qml
deleted file mode 100644
index ae903e4c..00000000
--- a/src/imports/controls/ToolTip.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolTip {
- id: control
-
- x: parent ? (parent.width - implicitWidth) / 2 : 0
- y: -implicitHeight - 3
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- margins: 6
- padding: 6
-
- closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent | T.Popup.CloseOnReleaseOutsideParent
-
- contentItem: Text {
- text: control.text
- font: control.font
- color: control.palette.toolTipText
- // TODO: wrapMode: Label.Wrap
- }
-
- background: Rectangle {
- border.color: control.palette.dark
- color: control.palette.toolTipBase
- }
-}
diff --git a/src/imports/controls/Tumbler.qml b/src/imports/controls/Tumbler.qml
deleted file mode 100644
index cd10263b..00000000
--- a/src/imports/controls/Tumbler.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Tumbler {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 60 // ### remove 60 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 200 // ### remove 200 in Qt 6
-
- delegate: Text {
- text: modelData
- color: control.visualFocus ? control.palette.highlight : control.palette.text
- font: control.font
- opacity: 1.0 - Math.abs(Tumbler.displacement) / (control.visibleItemCount / 2)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-
- contentItem: TumblerView {
- implicitWidth: 60
- implicitHeight: 200
- model: control.model
- delegate: control.delegate
- path: Path {
- startX: control.contentItem.width / 2
- startY: -control.contentItem.delegateHeight / 2
- PathLine {
- x: control.contentItem.width / 2
- y: (control.visibleItemCount + 1) * control.contentItem.delegateHeight - control.contentItem.delegateHeight / 2
- }
- }
-
- property real delegateHeight: control.availableHeight / control.visibleItemCount
- }
-}
diff --git a/src/imports/controls/controls.pri b/src/imports/controls/controls.pri
deleted file mode 100644
index fbf5d075..00000000
--- a/src/imports/controls/controls.pri
+++ /dev/null
@@ -1,70 +0,0 @@
-HEADERS += \
- $$PWD/qquickdefaultbusyindicator_p.h \
- $$PWD/qquickdefaultdial_p.h \
- $$PWD/qquickdefaultprogressbar_p.h \
- $$PWD/qquickdefaultstyle_p.h \
- $$PWD/qquickdefaulttheme_p.h
-
-SOURCES += \
- $$PWD/qquickdefaultbusyindicator.cpp \
- $$PWD/qquickdefaultdial.cpp \
- $$PWD/qquickdefaultprogressbar.cpp \
- $$PWD/qquickdefaultstyle.cpp \
- $$PWD/qquickdefaulttheme.cpp
-
-QML_FILES += \
- $$PWD/AbstractButton.qml \
- $$PWD/Action.qml \
- $$PWD/ActionGroup.qml \
- $$PWD/ApplicationWindow.qml \
- $$PWD/BusyIndicator.qml \
- $$PWD/Button.qml \
- $$PWD/ButtonGroup.qml \
- $$PWD/CheckBox.qml \
- $$PWD/CheckDelegate.qml \
- $$PWD/ComboBox.qml \
- $$PWD/Container.qml \
- $$PWD/Control.qml \
- $$PWD/DelayButton.qml \
- $$PWD/Dial.qml \
- $$PWD/Dialog.qml \
- $$PWD/DialogButtonBox.qml \
- $$PWD/Drawer.qml \
- $$PWD/Frame.qml \
- $$PWD/GroupBox.qml \
- $$PWD/ItemDelegate.qml \
- $$PWD/Label.qml \
- $$PWD/Menu.qml \
- $$PWD/MenuBar.qml \
- $$PWD/MenuBarItem.qml \
- $$PWD/MenuItem.qml \
- $$PWD/MenuSeparator.qml \
- $$PWD/Page.qml \
- $$PWD/PageIndicator.qml \
- $$PWD/Pane.qml \
- $$PWD/Popup.qml \
- $$PWD/ProgressBar.qml \
- $$PWD/RadioButton.qml \
- $$PWD/RadioDelegate.qml \
- $$PWD/RangeSlider.qml \
- $$PWD/RoundButton.qml \
- $$PWD/ScrollBar.qml \
- $$PWD/ScrollIndicator.qml \
- $$PWD/ScrollView.qml \
- $$PWD/Slider.qml \
- $$PWD/SpinBox.qml \
- $$PWD/SplitView.qml \
- $$PWD/StackView.qml \
- $$PWD/SwipeDelegate.qml \
- $$PWD/Switch.qml \
- $$PWD/SwitchDelegate.qml \
- $$PWD/SwipeView.qml \
- $$PWD/TabBar.qml \
- $$PWD/TabButton.qml \
- $$PWD/TextArea.qml \
- $$PWD/TextField.qml \
- $$PWD/ToolBar.qml \
- $$PWD/ToolButton.qml \
- $$PWD/ToolSeparator.qml \
- $$PWD/ToolTip.qml \
- $$PWD/Tumbler.qml
diff --git a/src/imports/controls/controls.pro b/src/imports/controls/controls.pro
deleted file mode 100644
index 2aeaf9ab..00000000
--- a/src/imports/controls/controls.pro
+++ /dev/null
@@ -1,28 +0,0 @@
-TARGET = qtquickcontrols2plugin
-TARGETPATH = QtQuick/Controls.2
-IMPORT_VERSION = 2.$$QT_MINOR_VERSION
-
-QT += qml quick
-QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-include(controls.pri)
-
-OTHER_FILES += \
- qmldir \
- $$QML_FILES
-
-SOURCES += \
- $$PWD/qtquickcontrols2plugin.cpp
-
-RESOURCES += \
- $$PWD/qtquickcontrols2plugin.qrc
-
-!static: qtConfig(quick-designer): include(designer/designer.pri)
-include(doc/doc.pri)
-
-CONFIG += no_cxx_module install_qml_files builtin_resources qtquickcompiler
-load(qml_plugin)
-
-requires(qtConfig(quickcontrols2-default))
diff --git a/src/imports/controls/dependencies.json b/src/imports/controls/dependencies.json
deleted file mode 100644
index 78029004..00000000
--- a/src/imports/controls/dependencies.json
+++ /dev/null
@@ -1,17 +0,0 @@
-[
- {
- "name": "QtQuick",
- "type": "module",
- "version": "2.11"
- },
- {
- "name": "QtQuick.Window",
- "type": "module",
- "version": "2.2"
- },
- {
- "name": "QtQuick.Templates",
- "type": "module",
- "version": "2.5"
- }
-]
diff --git a/src/imports/controls/designer/AbstractButtonSection.qml b/src/imports/controls/designer/AbstractButtonSection.qml
deleted file mode 100644
index e8aa39c2..00000000
--- a/src/imports/controls/designer/AbstractButtonSection.qml
+++ /dev/null
@@ -1,118 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Section {
- caption: qsTr("AbstractButton")
-
- SectionLayout {
- Label {
- text: qsTr("Text")
- tooltip: qsTr("The text displayed on the button.")
- }
- SecondColumnLayout {
- LineEdit {
- backendValue: backendValues.text
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Display")
- tooltip: qsTr("Determines how the icon and text are displayed within the button.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.display
- model: [ "IconOnly", "TextOnly", "TextBesideIcon" ]
- scope: "AbstractButton"
- Layout.fillWidth: true
- }
- }
-
- Label {
- visible: checkable
- text: qsTr("Checkable")
- tooltip: qsTr("Whether the button is checkable.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.checkable.valueToString
- backendValue: backendValues.checkable
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Checked")
- tooltip: qsTr("Whether the button is checked.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.checked.valueToString
- backendValue: backendValues.checked
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Exclusive")
- tooltip: qsTr("Whether the button is exclusive.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.autoExclusive.valueToString
- backendValue: backendValues.autoExclusive
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Repeat")
- tooltip: qsTr("Whether the button repeats while pressed and held down.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.autoRepeat.valueToString
- backendValue: backendValues.autoRepeat
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/src/imports/controls/designer/BusyIndicatorSpecifics.qml b/src/imports/controls/designer/BusyIndicatorSpecifics.qml
deleted file mode 100644
index 7ae927fc..00000000
--- a/src/imports/controls/designer/BusyIndicatorSpecifics.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("BusyIndicator")
-
- SectionLayout {
- Label {
- text: qsTr("Running")
- tooltip: qsTr("Whether the busy indicator is currently indicating activity.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.running.valueToString
- backendValue: backendValues.running
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/ButtonSection.qml b/src/imports/controls/designer/ButtonSection.qml
deleted file mode 100644
index fef46071..00000000
--- a/src/imports/controls/designer/ButtonSection.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Section {
- id: section
- caption: qsTr("Button")
-
- SectionLayout {
- Label {
- text: qsTr("AutoRepeat")
- tooltip: qsTr("Whether the button repeats pressed(), released() and clicked() signals while the button is pressed and held down.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.autoRepeat.valueToString
- backendValue: backendValues.autoRepeat
- Layout.fillWidth: true
- }
- }
- Label {
- text: qsTr("Flat")
- tooltip: qsTr("Whether the button is flat.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.flat.valueToString
- backendValue: backendValues.flat
- Layout.fillWidth: true
- }
- }
- Label {
- text: qsTr("Highlighted")
- tooltip: qsTr("Whether the button is highlighted.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.highlighted.valueToString
- backendValue: backendValues.highlighted
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/src/imports/controls/designer/ButtonSpecifics.qml b/src/imports/controls/designer/ButtonSpecifics.qml
deleted file mode 100644
index e094b9df..00000000
--- a/src/imports/controls/designer/ButtonSpecifics.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- ButtonSection {
- width: parent.width
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/CheckBoxSpecifics.qml b/src/imports/controls/designer/CheckBoxSpecifics.qml
deleted file mode 100644
index f76aa215..00000000
--- a/src/imports/controls/designer/CheckBoxSpecifics.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- CheckSection {
- width: parent.width
- caption: qsTr("CheckBox")
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/CheckDelegateSpecifics.qml b/src/imports/controls/designer/CheckDelegateSpecifics.qml
deleted file mode 100644
index 1df55e11..00000000
--- a/src/imports/controls/designer/CheckDelegateSpecifics.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- CheckSection {
- width: parent.width
- caption: qsTr("CheckDelegate")
- }
-
- ItemDelegateSection {
- width: parent.width
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/CheckSection.qml b/src/imports/controls/designer/CheckSection.qml
deleted file mode 100644
index 76cde03e..00000000
--- a/src/imports/controls/designer/CheckSection.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Section {
- SectionLayout {
- Label {
- text: qsTr("Check State")
- tooltip: qsTr("The current check state.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.checkState
- model: [ "Unchecked", "PartiallyChecked", "Checked" ]
- scope: "Qt"
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Tri-state")
- tooltip: qsTr("Whether the checkbox has three states.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.tristate.valueToString
- backendValue: backendValues.tristate
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/src/imports/controls/designer/ComboBoxSpecifics.qml b/src/imports/controls/designer/ComboBoxSpecifics.qml
deleted file mode 100644
index 8a5e33b6..00000000
--- a/src/imports/controls/designer/ComboBoxSpecifics.qml
+++ /dev/null
@@ -1,119 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("ComboBox")
-
- SectionLayout {
- Label {
- text: qsTr("Text Role")
- tooltip: qsTr("The model role used for displaying text.")
- }
- SecondColumnLayout {
- LineEdit {
- backendValue: backendValues.textRole
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Current")
- tooltip: qsTr("The index of the current item.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.currentIndex
- Layout.fillWidth: true
- }
- }
- Label {
- text: qsTr("Editable")
- tooltip: qsTr("Whether the combo box is editable.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.editable.valueToString
- backendValue: backendValues.editable
- Layout.fillWidth: true
- }
- }
- Label {
- text: qsTr("Flat")
- tooltip: qsTr("Whether the combo box button is flat.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.flat.valueToString
- backendValue: backendValues.flat
- Layout.fillWidth: true
- }
- }
- Label {
- text: qsTr("DisplayText")
- tooltip: qsTr("Holds the text that is displayed on the combo box button.")
- }
- SecondColumnLayout {
- LineEdit {
- backendValue: backendValues.displayText
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/ContainerSection.qml b/src/imports/controls/designer/ContainerSection.qml
deleted file mode 100644
index 896804c0..00000000
--- a/src/imports/controls/designer/ContainerSection.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Section {
- caption: qsTr("Container")
-
- SectionLayout {
- Label {
- text: qsTr("Current")
- tooltip: qsTr("The index of the current item.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.currentIndex
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/src/imports/controls/designer/ControlSection.qml b/src/imports/controls/designer/ControlSection.qml
deleted file mode 100644
index 7c53ac73..00000000
--- a/src/imports/controls/designer/ControlSection.qml
+++ /dev/null
@@ -1,108 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Section {
- caption: qsTr("Control")
-
- SectionLayout {
- Label {
- text: qsTr("Enabled")
- tooltip: qsTr("Whether the control is enabled.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.enabled.valueToString
- backendValue: backendValues.enabled
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Focus Policy")
- tooltip: qsTr("Focus policy of the control.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.focusPolicy
- model: [ "TabFocus", "ClickFocus", "StrongFocus", "WheelFocus", "NoFocus" ]
- scope: "Qt"
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Hover")
- tooltip: qsTr("Whether control accepts hover evets.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.hoverEnabled.valueToString
- backendValue: backendValues.hoverEnabled
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Spacing")
- tooltip: qsTr("Spacing between internal elements of the control.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.spacing
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Wheel")
- tooltip: qsTr("Whether control accepts wheel evets.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.wheelEnabled.valueToString
- backendValue: backendValues.wheelEnabled
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/src/imports/controls/designer/ControlSpecifics.qml b/src/imports/controls/designer/ControlSpecifics.qml
deleted file mode 100644
index ccfd8853..00000000
--- a/src/imports/controls/designer/ControlSpecifics.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/DelayButtonSpecifics.qml b/src/imports/controls/designer/DelayButtonSpecifics.qml
deleted file mode 100644
index 40b673a1..00000000
--- a/src/imports/controls/designer/DelayButtonSpecifics.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("DelayButton")
-
- SectionLayout {
- Label {
- text: qsTr("Delay")
- tooltip: qsTr("The delay in milliseconds.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: 0
- maximumValue: 9999999
- decimals: 0
- stepSize: 1
- backendValue: backendValues.delay
- Layout.fillWidth: true
- }
- }
- }
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/DialSpecifics.qml b/src/imports/controls/designer/DialSpecifics.qml
deleted file mode 100644
index fc5b5e83..00000000
--- a/src/imports/controls/designer/DialSpecifics.qml
+++ /dev/null
@@ -1,160 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("Dial")
-
- SectionLayout {
- Label {
- text: qsTr("Value")
- tooltip: qsTr("The current value of the dial.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: Math.min(backendValues.from.value, backendValues.to.value)
- maximumValue: Math.max(backendValues.from.value, backendValues.to.value)
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.value
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("From")
- tooltip: qsTr("The starting value of the dial range.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.from
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("To")
- tooltip: qsTr("The ending value of the dial range.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.to
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Step Size")
- tooltip: qsTr("The step size of the dial.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.stepSize
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Snap Mode")
- tooltip: qsTr("The snap mode of the dial.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.orientation
- model: [ "NoSnap", "SnapOnRelease", "SnapAlways" ]
- scope: "Dial"
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Live")
- tooltip: qsTr("Whether the dial provides live value updates.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.live.valueToString
- backendValue: backendValues.live
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Input Mode")
- tooltip: qsTr("How the dial tracks movement.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.inputMode
- model: [ "Circular", "Horizontal", "Vertical" ]
- scope: "Dial"
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/FrameSpecifics.qml b/src/imports/controls/designer/FrameSpecifics.qml
deleted file mode 100644
index f17b6399..00000000
--- a/src/imports/controls/designer/FrameSpecifics.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- PaneSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/GroupBoxSpecifics.qml b/src/imports/controls/designer/GroupBoxSpecifics.qml
deleted file mode 100644
index 3a705bcc..00000000
--- a/src/imports/controls/designer/GroupBoxSpecifics.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("GroupBox")
-
- SectionLayout {
- Label {
- text: qsTr("Title")
- tooltip: qsTr("The title of the group box.")
- }
- SecondColumnLayout {
- LineEdit {
- backendValue: backendValues.title
- Layout.fillWidth: true
- }
- }
- }
- }
-
- PaneSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/ItemDelegateSection.qml b/src/imports/controls/designer/ItemDelegateSection.qml
deleted file mode 100644
index a337bcee..00000000
--- a/src/imports/controls/designer/ItemDelegateSection.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Section {
- id: section
- caption: qsTr("ItemDelegate")
-
- SectionLayout {
- Label {
- text: qsTr("Highlighted")
- tooltip: qsTr("Whether the delegate is highlighted.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.highlighted.valueToString
- backendValue: backendValues.highlighted
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/src/imports/controls/designer/ItemDelegateSpecifics.qml b/src/imports/controls/designer/ItemDelegateSpecifics.qml
deleted file mode 100644
index 58063980..00000000
--- a/src/imports/controls/designer/ItemDelegateSpecifics.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- ItemDelegateSection {
- width: parent.width
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/LabelSpecifics.qml b/src/imports/controls/designer/LabelSpecifics.qml
deleted file mode 100644
index c832f894..00000000
--- a/src/imports/controls/designer/LabelSpecifics.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- StandardTextSection {
- width: parent.width
- showIsWrapping: true
- showFormatProperty: true
- showVerticalAlignment: true
- }
-
- Section {
- anchors.left: parent.left
- anchors.right: parent.right
- caption: qsTr("Text Color")
-
- ColorEditor {
- caption: qsTr("Text Color")
- backendValue: backendValues.color
- supportGradient: false
- }
- }
-
- Section {
- anchors.left: parent.left
- anchors.right: parent.right
- caption: qsTr("Style Color")
-
- ColorEditor {
- caption: qsTr("Style Color")
- backendValue: backendValues.styleColor
- supportGradient: false
- }
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/PaddingSection.qml b/src/imports/controls/designer/PaddingSection.qml
deleted file mode 100644
index a7dee28e..00000000
--- a/src/imports/controls/designer/PaddingSection.qml
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Section {
- caption: qsTr("Padding")
-
- SectionLayout {
- Label {
- text: qsTr("Top")
- tooltip: qsTr("Padding between the content and the top edge of the control.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.topPadding
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Left")
- tooltip: qsTr("Padding between the content and the left edge of the control.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.leftPadding
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Right")
- tooltip: qsTr("Padding between the content and the right edge of the control.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.rightPadding
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Bottom")
- tooltip: qsTr("Padding between the content and the bottom edge of the control.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.bottomPadding
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/src/imports/controls/designer/PageIndicatorSpecifics.qml b/src/imports/controls/designer/PageIndicatorSpecifics.qml
deleted file mode 100644
index 042672a9..00000000
--- a/src/imports/controls/designer/PageIndicatorSpecifics.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("PageIndicator")
-
- SectionLayout {
- Label {
- text: qsTr("Count")
- tooltip: qsTr("The number of pages.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.count
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Current")
- tooltip: qsTr("The index of the current page.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.currentIndex
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/PageSpecifics.qml b/src/imports/controls/designer/PageSpecifics.qml
deleted file mode 100644
index 2dca1100..00000000
--- a/src/imports/controls/designer/PageSpecifics.qml
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("Page")
-
- SectionLayout {
- Label {
- text: qsTr("Title")
- tooltip: qsTr("Title of the page.")
- }
- SecondColumnLayout {
- LineEdit {
- backendValue: backendValues.title
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Content Width")
- tooltip: qsTr("Content height used for calculating the total implicit width.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.contentWidth
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Content Height")
- tooltip: qsTr("Content height used for calculating the total implicit height.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.contentHeight
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/PaneSection.qml b/src/imports/controls/designer/PaneSection.qml
deleted file mode 100644
index 80d154c9..00000000
--- a/src/imports/controls/designer/PaneSection.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Section {
- caption: qsTr("Pane")
-
- SectionLayout {
- Label {
- text: qsTr("Content Width")
- tooltip: qsTr("Content height used for calculating the total implicit width.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.contentWidth
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Content Height")
- tooltip: qsTr("Content height used for calculating the total implicit height.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.contentHeight
- Layout.fillWidth: true
- }
- }
- }
-}
diff --git a/src/imports/controls/designer/PaneSpecifics.qml b/src/imports/controls/designer/PaneSpecifics.qml
deleted file mode 100644
index f17b6399..00000000
--- a/src/imports/controls/designer/PaneSpecifics.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- PaneSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/ProgressBarSpecifics.qml b/src/imports/controls/designer/ProgressBarSpecifics.qml
deleted file mode 100644
index c24d71db..00000000
--- a/src/imports/controls/designer/ProgressBarSpecifics.qml
+++ /dev/null
@@ -1,119 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("ProgressBar")
-
- SectionLayout {
- Label {
- text: qsTr("Indeterminate")
- tooltip: qsTr("Whether the progress is indeterminate.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.indeterminate.valueToString
- backendValue: backendValues.indeterminate
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Value")
- tooltip: qsTr("The current value of the progress.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: Math.min(backendValues.from.value, backendValues.to.value)
- maximumValue: Math.max(backendValues.from.value, backendValues.to.value)
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.value
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("From")
- tooltip: qsTr("The starting value for the progress.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.from
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("To")
- tooltip: qsTr("The ending value for the progress.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.to
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/RadioButtonSpecifics.qml b/src/imports/controls/designer/RadioButtonSpecifics.qml
deleted file mode 100644
index 6137ad8c..00000000
--- a/src/imports/controls/designer/RadioButtonSpecifics.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/RadioDelegateSpecifics.qml b/src/imports/controls/designer/RadioDelegateSpecifics.qml
deleted file mode 100644
index 58063980..00000000
--- a/src/imports/controls/designer/RadioDelegateSpecifics.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- ItemDelegateSection {
- width: parent.width
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/RangeSliderSpecifics.qml b/src/imports/controls/designer/RangeSliderSpecifics.qml
deleted file mode 100644
index 79d2404f..00000000
--- a/src/imports/controls/designer/RangeSliderSpecifics.qml
+++ /dev/null
@@ -1,175 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("RangeSlider")
-
- SectionLayout {
- Label {
- text: qsTr("First Value")
- tooltip: qsTr("The value of the first range slider handle.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: Math.min(backendValues.from.value, backendValues.to.value)
- maximumValue: Math.max(backendValues.from.value, backendValues.to.value)
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.first_value
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Second Value")
- tooltip: qsTr("The value of the second range slider handle.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: Math.min(backendValues.from.value, backendValues.to.value)
- maximumValue: Math.max(backendValues.from.value, backendValues.to.value)
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.second_value
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("From")
- tooltip: qsTr("The starting value of the range slider range.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.from
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("To")
- tooltip: qsTr("The ending value of the range slider range.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.to
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Step Size")
- tooltip: qsTr("The step size of the range slider.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.stepSize
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Snap Mode")
- tooltip: qsTr("The snap mode of the range slider.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.orientation
- model: [ "NoSnap", "SnapOnRelease", "SnapAlways" ]
- scope: "RangeSlider"
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Orientation")
- tooltip: qsTr("The orientation of the range slider.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.orientation
- model: [ "Horizontal", "Vertical" ]
- scope: "Qt"
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Live")
- tooltip: qsTr("Whether the range slider provides live value updates.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.live.valueToString
- backendValue: backendValues.live
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/RoundButtonSpecifics.qml b/src/imports/controls/designer/RoundButtonSpecifics.qml
deleted file mode 100644
index 2da4cda6..00000000
--- a/src/imports/controls/designer/RoundButtonSpecifics.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- caption: qsTr("RoundButton")
-
- SectionLayout {
- Label {
- text: qsTr("Radius")
- tooltip: qsTr("Radius of the button.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.radius
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ButtonSection {
- width: parent.width
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/ScrollViewSpecifics.qml b/src/imports/controls/designer/ScrollViewSpecifics.qml
deleted file mode 100644
index 0f3d56d2..00000000
--- a/src/imports/controls/designer/ScrollViewSpecifics.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("ScrollView")
-
- SectionLayout {
- Label {
- text: qsTr("Content Width")
- tooltip: qsTr("Content height used for calculating the total implicit width.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.contentWidth
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Content Height")
- tooltip: qsTr("Content height used for calculating the total implicit height.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.contentHeight
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/SliderSpecifics.qml b/src/imports/controls/designer/SliderSpecifics.qml
deleted file mode 100644
index 076d8a1c..00000000
--- a/src/imports/controls/designer/SliderSpecifics.qml
+++ /dev/null
@@ -1,160 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("Slider")
-
- SectionLayout {
- Label {
- text: qsTr("Value")
- tooltip: qsTr("The current value of the slider.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: Math.min(backendValues.from.value, backendValues.to.value)
- maximumValue: Math.max(backendValues.from.value, backendValues.to.value)
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.value
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("From")
- tooltip: qsTr("The starting value of the slider range.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.from
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("To")
- tooltip: qsTr("The ending value of the slider range.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.to
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Step Size")
- tooltip: qsTr("The step size of the slider.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- stepSize: 0.1
- backendValue: backendValues.stepSize
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Snap Mode")
- tooltip: qsTr("The snap mode of the slider.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.snapMode
- model: [ "NoSnap", "SnapOnRelease", "SnapAlways" ]
- scope: "Slider"
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Orientation")
- tooltip: qsTr("The orientation of the slider.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.orientation
- model: [ "Horizontal", "Vertical" ]
- scope: "Qt"
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Live")
- tooltip: qsTr("Whether the slider provides live value updates.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.live.valueToString
- backendValue: backendValues.live
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/SpinBoxSpecifics.qml b/src/imports/controls/designer/SpinBoxSpecifics.qml
deleted file mode 100644
index d6375d7c..00000000
--- a/src/imports/controls/designer/SpinBoxSpecifics.qml
+++ /dev/null
@@ -1,130 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("SpinBox")
-
- SectionLayout {
- Label {
- text: qsTr("Value")
- tooltip: qsTr("The current value of the spinbox.")
- }
- SecondColumnLayout {
- SpinBox {
- minimumValue: Math.min(backendValues.from.value, backendValues.to.value)
- maximumValue: Math.max(backendValues.from.value, backendValues.to.value)
- decimals: 2
- backendValue: backendValues.value
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("From")
- tooltip: qsTr("The starting value of the spinbox range.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- backendValue: backendValues.from
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("To")
- tooltip: qsTr("The ending value of the spinbox range.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- backendValue: backendValues.to
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Step Size")
- tooltip: qsTr("The step size of the spinbox.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 2
- backendValue: backendValues.stepSize
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Editable")
- tooltip: qsTr("Whether the spinbox is editable.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.editable.valueToString
- backendValue: backendValues.editable
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/StackViewSpecifics.qml b/src/imports/controls/designer/StackViewSpecifics.qml
deleted file mode 100644
index ccfd8853..00000000
--- a/src/imports/controls/designer/StackViewSpecifics.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/SwipeDelegateSpecifics.qml b/src/imports/controls/designer/SwipeDelegateSpecifics.qml
deleted file mode 100644
index 58063980..00000000
--- a/src/imports/controls/designer/SwipeDelegateSpecifics.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- ItemDelegateSection {
- width: parent.width
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/SwipeViewSpecifics.qml b/src/imports/controls/designer/SwipeViewSpecifics.qml
deleted file mode 100644
index 02cc900e..00000000
--- a/src/imports/controls/designer/SwipeViewSpecifics.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("SwipeView")
-
- SectionLayout {
- Label {
- text: qsTr("Interactive")
- tooltip: qsTr("Whether the view is interactive.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.interactive.valueToString
- backendValue: backendValues.interactive
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Orientation")
- tooltip: qsTr("Orientation of the view.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.orientation
- model: [ "Horizontal", "Vertical" ]
- scope: "Qt"
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ContainerSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/SwitchDelegateSpecifics.qml b/src/imports/controls/designer/SwitchDelegateSpecifics.qml
deleted file mode 100644
index f8c0dcc6..00000000
--- a/src/imports/controls/designer/SwitchDelegateSpecifics.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- ItemDelegateSection {
- width: parent.width
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/SwitchSpecifics.qml b/src/imports/controls/designer/SwitchSpecifics.qml
deleted file mode 100644
index 6137ad8c..00000000
--- a/src/imports/controls/designer/SwitchSpecifics.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/TabBarSpecifics.qml b/src/imports/controls/designer/TabBarSpecifics.qml
deleted file mode 100644
index f17e8e9a..00000000
--- a/src/imports/controls/designer/TabBarSpecifics.qml
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("TabBar")
-
- SectionLayout {
- Label {
- text: qsTr("Position")
- tooltip: qsTr("Position of the tabbar.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.position
- model: [ "Header", "Footer" ]
- scope: "TabBar"
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Content Width")
- tooltip: qsTr("Content height used for calculating the total implicit width.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.contentWidth
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Content Height")
- tooltip: qsTr("Content height used for calculating the total implicit height.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.contentHeight
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ContainerSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/TabButtonSpecifics.qml b/src/imports/controls/designer/TabButtonSpecifics.qml
deleted file mode 100644
index 6137ad8c..00000000
--- a/src/imports/controls/designer/TabButtonSpecifics.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/TextAreaSpecifics.qml b/src/imports/controls/designer/TextAreaSpecifics.qml
deleted file mode 100644
index a14584e7..00000000
--- a/src/imports/controls/designer/TextAreaSpecifics.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("TextArea")
-
- SectionLayout {
- Label {
- text: qsTr("Placeholder")
- tooltip: qsTr("Placeholder text displayed when the editor is empty.")
- }
- SecondColumnLayout {
- LineEdit {
- backendValue: backendValues.placeholderText
- Layout.fillWidth: true
- }
-
- }
- }
- }
-
- StandardTextSection {
- width: parent.width
- showIsWrapping: true
- showFormatProperty: true
- showVerticalAlignment: true
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/TextFieldSpecifics.qml b/src/imports/controls/designer/TextFieldSpecifics.qml
deleted file mode 100644
index 67a63ec4..00000000
--- a/src/imports/controls/designer/TextFieldSpecifics.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("TextField")
-
- SectionLayout {
- Label {
- text: qsTr("Placeholder")
- tooltip: qsTr("Placeholder text displayed when the editor is empty.")
- }
- SecondColumnLayout {
- LineEdit {
- backendValue: backendValues.placeholderText
- Layout.fillWidth: true
- }
-
- }
- }
- }
-
- StandardTextSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/ToolBarSpecifics.qml b/src/imports/controls/designer/ToolBarSpecifics.qml
deleted file mode 100644
index acf02e7b..00000000
--- a/src/imports/controls/designer/ToolBarSpecifics.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("ToolBar")
-
- SectionLayout {
- Label {
- text: qsTr("Position")
- tooltip: qsTr("Position of the toolbar.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.position
- model: [ "Header", "Footer" ]
- scope: "ToolBar"
- Layout.fillWidth: true
- }
- }
- }
- }
-
- PaneSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/ToolButtonSpecifics.qml b/src/imports/controls/designer/ToolButtonSpecifics.qml
deleted file mode 100644
index e094b9df..00000000
--- a/src/imports/controls/designer/ToolButtonSpecifics.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- ButtonSection {
- width: parent.width
- }
-
- AbstractButtonSection {
- width: parent.width
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/ToolSeparatorSpecifics.qml b/src/imports/controls/designer/ToolSeparatorSpecifics.qml
deleted file mode 100644
index d0ebd57c..00000000
--- a/src/imports/controls/designer/ToolSeparatorSpecifics.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("ToolSeparator")
-
- SectionLayout {
- Label {
- text: qsTr("Orientation")
- tooltip: qsTr("The orientation of the separator.")
- }
- SecondColumnLayout {
- ComboBox {
- backendValue: backendValues.orientation
- model: [ "Horizontal", "Vertical" ]
- scope: "Qt"
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/TumblerSpecifics.qml b/src/imports/controls/designer/TumblerSpecifics.qml
deleted file mode 100644
index 04507ef6..00000000
--- a/src/imports/controls/designer/TumblerSpecifics.qml
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import HelperWidgets 2.0
-import QtQuick.Layouts 1.12
-
-Column {
- width: parent.width
-
- Section {
- width: parent.width
- caption: qsTr("Tumbler")
-
- SectionLayout {
- Label {
- text: qsTr("Visible Count")
- tooltip: qsTr("The count of visible items.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.visibleItemCount
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Current")
- tooltip: qsTr("The index of the current item.")
- }
- SecondColumnLayout {
- SpinBox {
- maximumValue: 9999999
- minimumValue: -9999999
- decimals: 0
- backendValue: backendValues.currentIndex
- Layout.fillWidth: true
- }
- }
-
- Label {
- text: qsTr("Wrap")
- tooltip: qsTr("Whether the tumbler wrap.")
- }
- SecondColumnLayout {
- CheckBox {
- text: backendValues.wrap.valueToString
- backendValue: backendValues.wrap
- Layout.fillWidth: true
- }
- }
- }
- }
-
- ControlSection {
- width: parent.width
- }
-
- FontSection {
- width: parent.width
- }
-
- PaddingSection {
- width: parent.width
- }
-}
diff --git a/src/imports/controls/designer/designer.pri b/src/imports/controls/designer/designer.pri
deleted file mode 100644
index 3ad99df7..00000000
--- a/src/imports/controls/designer/designer.pri
+++ /dev/null
@@ -1,51 +0,0 @@
-AUX_QML_FILES += \
- $$PWD/qtquickcontrols2.metainfo
-
-AUX_QML_FILES += \
- $$PWD/AbstractButtonSection.qml \
- $$PWD/BusyIndicatorSpecifics.qml \
- $$PWD/ButtonSection.qml \
- $$PWD/ButtonSpecifics.qml \
- $$PWD/CheckBoxSpecifics.qml \
- $$PWD/CheckDelegateSpecifics.qml \
- $$PWD/CheckSection.qml \
- $$PWD/ComboBoxSpecifics.qml \
- $$PWD/ContainerSection.qml \
- $$PWD/ControlSection.qml \
- $$PWD/ControlSpecifics.qml \
- $$PWD/DelayButtonSpecifics.qml \
- $$PWD/DialSpecifics.qml \
- $$PWD/FrameSpecifics.qml \
- $$PWD/GroupBoxSpecifics.qml \
- $$PWD/ItemDelegateSection.qml \
- $$PWD/ItemDelegateSpecifics.qml \
- $$PWD/LabelSpecifics.qml \
- $$PWD/PaddingSection.qml \
- $$PWD/PageSpecifics.qml \
- $$PWD/PageIndicatorSpecifics.qml \
- $$PWD/PaneSection.qml \
- $$PWD/PaneSpecifics.qml \
- $$PWD/ProgressBarSpecifics.qml \
- $$PWD/RadioButtonSpecifics.qml \
- $$PWD/RadioDelegateSpecifics.qml \
- $$PWD/RangeSliderSpecifics.qml \
- $$PWD/RoundButtonSpecifics.qml \
- $$PWD/ScrollViewSpecifics.qml \
- $$PWD/SliderSpecifics.qml \
- $$PWD/SpinBoxSpecifics.qml \
- $$PWD/StackViewSpecifics.qml \
- $$PWD/SwipeDelegateSpecifics.qml \
- $$PWD/SwipeViewSpecifics.qml \
- $$PWD/SwitchSpecifics.qml \
- $$PWD/SwitchDelegateSpecifics.qml \
- $$PWD/TabBarSpecifics.qml \
- $$PWD/TabButtonSpecifics.qml \
- $$PWD/TextAreaSpecifics.qml \
- $$PWD/TextFieldSpecifics.qml \
- $$PWD/ToolBarSpecifics.qml \
- $$PWD/ToolButtonSpecifics.qml \
- $$PWD/ToolSeparatorSpecifics.qml \
- $$PWD/TumblerSpecifics.qml
-
-AUX_QML_FILES += \
- $$files($$PWD/images/*.png)
diff --git a/src/imports/controls/designer/images/busyindicator-icon.png b/src/imports/controls/designer/images/busyindicator-icon.png
deleted file mode 100644
index 666d1ed9..00000000
--- a/src/imports/controls/designer/images/busyindicator-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/busyindicator-icon16.png b/src/imports/controls/designer/images/busyindicator-icon16.png
deleted file mode 100644
index 5aa57d7f..00000000
--- a/src/imports/controls/designer/images/busyindicator-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/busyindicator-icon@2x.png b/src/imports/controls/designer/images/busyindicator-icon@2x.png
deleted file mode 100644
index bb2278ff..00000000
--- a/src/imports/controls/designer/images/busyindicator-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/button-icon.png b/src/imports/controls/designer/images/button-icon.png
deleted file mode 100644
index c44909f6..00000000
--- a/src/imports/controls/designer/images/button-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/button-icon16.png b/src/imports/controls/designer/images/button-icon16.png
deleted file mode 100644
index 5c921deb..00000000
--- a/src/imports/controls/designer/images/button-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/button-icon@2x.png b/src/imports/controls/designer/images/button-icon@2x.png
deleted file mode 100644
index f90a1ba7..00000000
--- a/src/imports/controls/designer/images/button-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/checkbox-icon.png b/src/imports/controls/designer/images/checkbox-icon.png
deleted file mode 100644
index ee669b3a..00000000
--- a/src/imports/controls/designer/images/checkbox-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/checkbox-icon16.png b/src/imports/controls/designer/images/checkbox-icon16.png
deleted file mode 100644
index 8d89eab8..00000000
--- a/src/imports/controls/designer/images/checkbox-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/checkbox-icon@2x.png b/src/imports/controls/designer/images/checkbox-icon@2x.png
deleted file mode 100644
index 51c5601d..00000000
--- a/src/imports/controls/designer/images/checkbox-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/combobox-icon.png b/src/imports/controls/designer/images/combobox-icon.png
deleted file mode 100644
index 2d31b17c..00000000
--- a/src/imports/controls/designer/images/combobox-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/combobox-icon16.png b/src/imports/controls/designer/images/combobox-icon16.png
deleted file mode 100644
index 15fc3505..00000000
--- a/src/imports/controls/designer/images/combobox-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/combobox-icon@2x.png b/src/imports/controls/designer/images/combobox-icon@2x.png
deleted file mode 100644
index 5f823905..00000000
--- a/src/imports/controls/designer/images/combobox-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/delaybutton-icon.png b/src/imports/controls/designer/images/delaybutton-icon.png
deleted file mode 100644
index 5a55bd9f..00000000
--- a/src/imports/controls/designer/images/delaybutton-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/delaybutton-icon16.png b/src/imports/controls/designer/images/delaybutton-icon16.png
deleted file mode 100644
index cd21394e..00000000
--- a/src/imports/controls/designer/images/delaybutton-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/delaybutton-icon@2x.png b/src/imports/controls/designer/images/delaybutton-icon@2x.png
deleted file mode 100644
index 7beee2fa..00000000
--- a/src/imports/controls/designer/images/delaybutton-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/dial-icon.png b/src/imports/controls/designer/images/dial-icon.png
deleted file mode 100644
index b3b63e35..00000000
--- a/src/imports/controls/designer/images/dial-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/dial-icon16.png b/src/imports/controls/designer/images/dial-icon16.png
deleted file mode 100644
index 8d8c7c09..00000000
--- a/src/imports/controls/designer/images/dial-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/dial-icon@2x.png b/src/imports/controls/designer/images/dial-icon@2x.png
deleted file mode 100644
index 22547a16..00000000
--- a/src/imports/controls/designer/images/dial-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/frame-icon.png b/src/imports/controls/designer/images/frame-icon.png
deleted file mode 100644
index 32abc8bf..00000000
--- a/src/imports/controls/designer/images/frame-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/frame-icon16.png b/src/imports/controls/designer/images/frame-icon16.png
deleted file mode 100644
index e5b65ad5..00000000
--- a/src/imports/controls/designer/images/frame-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/frame-icon@2x.png b/src/imports/controls/designer/images/frame-icon@2x.png
deleted file mode 100644
index 8b876f38..00000000
--- a/src/imports/controls/designer/images/frame-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/groupbox-icon.png b/src/imports/controls/designer/images/groupbox-icon.png
deleted file mode 100644
index 5542ecf8..00000000
--- a/src/imports/controls/designer/images/groupbox-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/groupbox-icon16.png b/src/imports/controls/designer/images/groupbox-icon16.png
deleted file mode 100644
index 9cf43248..00000000
--- a/src/imports/controls/designer/images/groupbox-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/groupbox-icon@2x.png b/src/imports/controls/designer/images/groupbox-icon@2x.png
deleted file mode 100644
index 80dab3c7..00000000
--- a/src/imports/controls/designer/images/groupbox-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/itemdelegate-icon.png b/src/imports/controls/designer/images/itemdelegate-icon.png
deleted file mode 100644
index 822cf3e7..00000000
--- a/src/imports/controls/designer/images/itemdelegate-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/itemdelegate-icon16.png b/src/imports/controls/designer/images/itemdelegate-icon16.png
deleted file mode 100644
index b3ed007a..00000000
--- a/src/imports/controls/designer/images/itemdelegate-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/itemdelegate-icon@2x.png b/src/imports/controls/designer/images/itemdelegate-icon@2x.png
deleted file mode 100644
index cb81308f..00000000
--- a/src/imports/controls/designer/images/itemdelegate-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/label-icon.png b/src/imports/controls/designer/images/label-icon.png
deleted file mode 100644
index 788bef07..00000000
--- a/src/imports/controls/designer/images/label-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/label-icon16.png b/src/imports/controls/designer/images/label-icon16.png
deleted file mode 100644
index b68d3845..00000000
--- a/src/imports/controls/designer/images/label-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/label-icon@2x.png b/src/imports/controls/designer/images/label-icon@2x.png
deleted file mode 100644
index 7001413d..00000000
--- a/src/imports/controls/designer/images/label-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/page-icon.png b/src/imports/controls/designer/images/page-icon.png
deleted file mode 100644
index b5ac87e8..00000000
--- a/src/imports/controls/designer/images/page-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/page-icon16.png b/src/imports/controls/designer/images/page-icon16.png
deleted file mode 100644
index bc6810b6..00000000
--- a/src/imports/controls/designer/images/page-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/page-icon@2x.png b/src/imports/controls/designer/images/page-icon@2x.png
deleted file mode 100644
index 23db032f..00000000
--- a/src/imports/controls/designer/images/page-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/pageindicator-icon.png b/src/imports/controls/designer/images/pageindicator-icon.png
deleted file mode 100644
index edb6b377..00000000
--- a/src/imports/controls/designer/images/pageindicator-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/pageindicator-icon16.png b/src/imports/controls/designer/images/pageindicator-icon16.png
deleted file mode 100644
index 0fb89675..00000000
--- a/src/imports/controls/designer/images/pageindicator-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/pageindicator-icon@2x.png b/src/imports/controls/designer/images/pageindicator-icon@2x.png
deleted file mode 100644
index 7be0ee81..00000000
--- a/src/imports/controls/designer/images/pageindicator-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/pane-icon.png b/src/imports/controls/designer/images/pane-icon.png
deleted file mode 100644
index 62ebe487..00000000
--- a/src/imports/controls/designer/images/pane-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/pane-icon16.png b/src/imports/controls/designer/images/pane-icon16.png
deleted file mode 100644
index 2b804844..00000000
--- a/src/imports/controls/designer/images/pane-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/pane-icon@2x.png b/src/imports/controls/designer/images/pane-icon@2x.png
deleted file mode 100644
index 55bb116a..00000000
--- a/src/imports/controls/designer/images/pane-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/progressbar-icon.png b/src/imports/controls/designer/images/progressbar-icon.png
deleted file mode 100644
index a023f73c..00000000
--- a/src/imports/controls/designer/images/progressbar-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/progressbar-icon16.png b/src/imports/controls/designer/images/progressbar-icon16.png
deleted file mode 100644
index 6fede21d..00000000
--- a/src/imports/controls/designer/images/progressbar-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/progressbar-icon@2x.png b/src/imports/controls/designer/images/progressbar-icon@2x.png
deleted file mode 100644
index 00694003..00000000
--- a/src/imports/controls/designer/images/progressbar-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/radiobutton-icon.png b/src/imports/controls/designer/images/radiobutton-icon.png
deleted file mode 100644
index d38170e2..00000000
--- a/src/imports/controls/designer/images/radiobutton-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/radiobutton-icon16.png b/src/imports/controls/designer/images/radiobutton-icon16.png
deleted file mode 100644
index 07b46a8a..00000000
--- a/src/imports/controls/designer/images/radiobutton-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/radiobutton-icon@2x.png b/src/imports/controls/designer/images/radiobutton-icon@2x.png
deleted file mode 100644
index 4bbddda4..00000000
--- a/src/imports/controls/designer/images/radiobutton-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/rangeslider-icon.png b/src/imports/controls/designer/images/rangeslider-icon.png
deleted file mode 100644
index 1c4c7b29..00000000
--- a/src/imports/controls/designer/images/rangeslider-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/rangeslider-icon16.png b/src/imports/controls/designer/images/rangeslider-icon16.png
deleted file mode 100644
index 3be4624d..00000000
--- a/src/imports/controls/designer/images/rangeslider-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/rangeslider-icon@2x.png b/src/imports/controls/designer/images/rangeslider-icon@2x.png
deleted file mode 100644
index aee69b33..00000000
--- a/src/imports/controls/designer/images/rangeslider-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/roundbutton-icon.png b/src/imports/controls/designer/images/roundbutton-icon.png
deleted file mode 100644
index d4b470dc..00000000
--- a/src/imports/controls/designer/images/roundbutton-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/roundbutton-icon16.png b/src/imports/controls/designer/images/roundbutton-icon16.png
deleted file mode 100644
index f6f36666..00000000
--- a/src/imports/controls/designer/images/roundbutton-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/roundbutton-icon@2x.png b/src/imports/controls/designer/images/roundbutton-icon@2x.png
deleted file mode 100644
index 4553e165..00000000
--- a/src/imports/controls/designer/images/roundbutton-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/scrollview-icon.png b/src/imports/controls/designer/images/scrollview-icon.png
deleted file mode 100644
index 5ef73ff1..00000000
--- a/src/imports/controls/designer/images/scrollview-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/scrollview-icon16.png b/src/imports/controls/designer/images/scrollview-icon16.png
deleted file mode 100644
index f8ca7a36..00000000
--- a/src/imports/controls/designer/images/scrollview-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/scrollview-icon@2x.png b/src/imports/controls/designer/images/scrollview-icon@2x.png
deleted file mode 100644
index 0eb7f966..00000000
--- a/src/imports/controls/designer/images/scrollview-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/slider-icon.png b/src/imports/controls/designer/images/slider-icon.png
deleted file mode 100644
index bd0a9729..00000000
--- a/src/imports/controls/designer/images/slider-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/slider-icon16.png b/src/imports/controls/designer/images/slider-icon16.png
deleted file mode 100644
index a08622df..00000000
--- a/src/imports/controls/designer/images/slider-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/slider-icon@2x.png b/src/imports/controls/designer/images/slider-icon@2x.png
deleted file mode 100644
index 93842e4c..00000000
--- a/src/imports/controls/designer/images/slider-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/spinbox-icon.png b/src/imports/controls/designer/images/spinbox-icon.png
deleted file mode 100644
index 37277c5e..00000000
--- a/src/imports/controls/designer/images/spinbox-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/spinbox-icon16.png b/src/imports/controls/designer/images/spinbox-icon16.png
deleted file mode 100644
index f88711dd..00000000
--- a/src/imports/controls/designer/images/spinbox-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/spinbox-icon@2x.png b/src/imports/controls/designer/images/spinbox-icon@2x.png
deleted file mode 100644
index b62a3bad..00000000
--- a/src/imports/controls/designer/images/spinbox-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/stackview-icon.png b/src/imports/controls/designer/images/stackview-icon.png
deleted file mode 100644
index a6ced349..00000000
--- a/src/imports/controls/designer/images/stackview-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/stackview-icon16.png b/src/imports/controls/designer/images/stackview-icon16.png
deleted file mode 100644
index 0f19d0ef..00000000
--- a/src/imports/controls/designer/images/stackview-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/stackview-icon@2x.png b/src/imports/controls/designer/images/stackview-icon@2x.png
deleted file mode 100644
index 9b5ef951..00000000
--- a/src/imports/controls/designer/images/stackview-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/swipeview-icon.png b/src/imports/controls/designer/images/swipeview-icon.png
deleted file mode 100644
index 031cb27c..00000000
--- a/src/imports/controls/designer/images/swipeview-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/swipeview-icon16.png b/src/imports/controls/designer/images/swipeview-icon16.png
deleted file mode 100644
index 446c4696..00000000
--- a/src/imports/controls/designer/images/swipeview-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/swipeview-icon@2x.png b/src/imports/controls/designer/images/swipeview-icon@2x.png
deleted file mode 100644
index 0ccb978c..00000000
--- a/src/imports/controls/designer/images/swipeview-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/switch-icon.png b/src/imports/controls/designer/images/switch-icon.png
deleted file mode 100644
index e0181592..00000000
--- a/src/imports/controls/designer/images/switch-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/switch-icon16.png b/src/imports/controls/designer/images/switch-icon16.png
deleted file mode 100644
index 9abd2756..00000000
--- a/src/imports/controls/designer/images/switch-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/switch-icon@2x.png b/src/imports/controls/designer/images/switch-icon@2x.png
deleted file mode 100644
index 787f54ca..00000000
--- a/src/imports/controls/designer/images/switch-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/textarea-icon.png b/src/imports/controls/designer/images/textarea-icon.png
deleted file mode 100644
index f1b2dc0f..00000000
--- a/src/imports/controls/designer/images/textarea-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/textarea-icon16.png b/src/imports/controls/designer/images/textarea-icon16.png
deleted file mode 100644
index 4afc1fba..00000000
--- a/src/imports/controls/designer/images/textarea-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/textarea-icon@2x.png b/src/imports/controls/designer/images/textarea-icon@2x.png
deleted file mode 100644
index c32ecc71..00000000
--- a/src/imports/controls/designer/images/textarea-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/textfield-icon.png b/src/imports/controls/designer/images/textfield-icon.png
deleted file mode 100644
index ba5537ac..00000000
--- a/src/imports/controls/designer/images/textfield-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/textfield-icon16.png b/src/imports/controls/designer/images/textfield-icon16.png
deleted file mode 100644
index c4a62a65..00000000
--- a/src/imports/controls/designer/images/textfield-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/textfield-icon@2x.png b/src/imports/controls/designer/images/textfield-icon@2x.png
deleted file mode 100644
index e05fd41b..00000000
--- a/src/imports/controls/designer/images/textfield-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolbar-icon.png b/src/imports/controls/designer/images/toolbar-icon.png
deleted file mode 100644
index 5cb5b2e1..00000000
--- a/src/imports/controls/designer/images/toolbar-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolbar-icon16.png b/src/imports/controls/designer/images/toolbar-icon16.png
deleted file mode 100644
index 569373af..00000000
--- a/src/imports/controls/designer/images/toolbar-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolbar-icon@2x.png b/src/imports/controls/designer/images/toolbar-icon@2x.png
deleted file mode 100644
index fd9e6cee..00000000
--- a/src/imports/controls/designer/images/toolbar-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolbutton-icon.png b/src/imports/controls/designer/images/toolbutton-icon.png
deleted file mode 100644
index 3298f695..00000000
--- a/src/imports/controls/designer/images/toolbutton-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolbutton-icon16.png b/src/imports/controls/designer/images/toolbutton-icon16.png
deleted file mode 100644
index 9ab7861c..00000000
--- a/src/imports/controls/designer/images/toolbutton-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolbutton-icon@2x.png b/src/imports/controls/designer/images/toolbutton-icon@2x.png
deleted file mode 100644
index e5958cde..00000000
--- a/src/imports/controls/designer/images/toolbutton-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolseparator-icon.png b/src/imports/controls/designer/images/toolseparator-icon.png
deleted file mode 100644
index 5e99f06f..00000000
--- a/src/imports/controls/designer/images/toolseparator-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolseparator-icon16.png b/src/imports/controls/designer/images/toolseparator-icon16.png
deleted file mode 100644
index 68f22c5d..00000000
--- a/src/imports/controls/designer/images/toolseparator-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/toolseparator-icon@2x.png b/src/imports/controls/designer/images/toolseparator-icon@2x.png
deleted file mode 100644
index 549c11c6..00000000
--- a/src/imports/controls/designer/images/toolseparator-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/tumbler-icon.png b/src/imports/controls/designer/images/tumbler-icon.png
deleted file mode 100644
index 98eb8232..00000000
--- a/src/imports/controls/designer/images/tumbler-icon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/tumbler-icon16.png b/src/imports/controls/designer/images/tumbler-icon16.png
deleted file mode 100644
index ff5f95cf..00000000
--- a/src/imports/controls/designer/images/tumbler-icon16.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/images/tumbler-icon@2x.png b/src/imports/controls/designer/images/tumbler-icon@2x.png
deleted file mode 100644
index 236abf0c..00000000
--- a/src/imports/controls/designer/images/tumbler-icon@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/designer/qtquickcontrols2.metainfo b/src/imports/controls/designer/qtquickcontrols2.metainfo
deleted file mode 100644
index 9e6030b1..00000000
--- a/src/imports/controls/designer/qtquickcontrols2.metainfo
+++ /dev/null
@@ -1,522 +0,0 @@
-MetaInfo {
- Type {
- name: "QtQuick.Controls.BusyIndicator"
- icon: "images/busyindicator-icon16.png"
-
- ItemLibraryEntry {
- name: "Busy Indicator"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/busyindicator-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
- }
- }
-
- Type {
- name: "QtQuick.Controls.Button"
- icon: "images/button-icon16.png"
-
- ItemLibraryEntry {
- name: "Button"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/button-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Button\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.CheckBox"
- icon: "images/checkbox-icon16.png"
-
- ItemLibraryEntry {
- name: "Check Box"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/checkbox-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Check Box\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.CheckDelegate"
- icon: "images/checkbox-icon16.png"
-
- ItemLibraryEntry {
- name: "Check Delegate"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/checkbox-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Check Delegate\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.ComboBox"
- icon: "images/combobox-icon16.png"
-
- ItemLibraryEntry {
- name: "Combo Box"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/combobox-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
- }
- }
-
- Type {
- name: "QtQuick.Controls.DelayButton"
- icon: "images/button-icon16.png"
-
- ItemLibraryEntry {
- name: "Delay Button"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/delaybutton-icon.png"
- version: "2.2"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Delay Button\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.Dial"
- icon: "images/dial-icon16.png"
-
- ItemLibraryEntry {
- name: "Dial"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/dial-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
- }
- }
-
- Type {
- name: "QtQuick.Controls.Frame"
- icon: "images/frame-icon16.png"
-
- ItemLibraryEntry {
- name: "Frame"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/frame-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "width"; type: "int"; value: 200 }
- Property { name: "height"; type: "int"; value: 200 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.GroupBox"
- icon: "images/groupbox-icon16.png"
-
- ItemLibraryEntry {
- name: "Group Box"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/groupbox-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "width"; type: "int"; value: 200 }
- Property { name: "height"; type: "int"; value: 200 }
- Property { name: "title"; type: "binding"; value: "qsTr(\"Group Box\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.ItemDelegate"
- icon: "images/itemdelegate-icon16.png"
-
- ItemLibraryEntry {
- name: "Item Delegate"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/itemdelegate-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Item Delegate\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.Label"
- icon: "images/label-icon16.png"
-
- ItemLibraryEntry {
- name: "Label"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/label-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Label\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.Page"
- icon: "images/page-icon16.png"
-
- ItemLibraryEntry {
- name: "Page"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/page-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "width"; type: "int"; value: 200 }
- Property { name: "height"; type: "int"; value: 200 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.PageIndicator"
- icon: "images/pageindicator-icon16.png"
-
- ItemLibraryEntry {
- name: "Page Indicator"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/pageindicator-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "count"; type: "int"; value: 3 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.Pane"
- icon: "images/pane-icon16.png"
-
- ItemLibraryEntry {
- name: "Pane"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/pane-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "width"; type: "int"; value: 200 }
- Property { name: "height"; type: "int"; value: 200 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.ProgressBar"
- icon: "images/progressbar-icon16.png"
-
- ItemLibraryEntry {
- name: "Progress Bar"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/progressbar-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "value"; type: "real"; value: 0.5 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.RadioButton"
- icon: "images/radiobutton-icon16.png"
-
- ItemLibraryEntry {
- name: "Radio Button"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/radiobutton-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Radio Button\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.RadioDelegate"
- icon: "images/radiobutton-icon16.png"
-
- ItemLibraryEntry {
- name: "Radio Delegate"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/radiobutton-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Radio Delegate\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.RangeSlider"
- icon: "images/rangeslider-icon16.png"
-
- ItemLibraryEntry {
- name: "Range Slider"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/rangeslider-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "first.value"; type: "real"; value: 0.25 }
- Property { name: "second.value"; type: "real"; value: 0.75 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.RoundButton"
- icon: "images/roundbutton-icon16.png"
-
- ItemLibraryEntry {
- name: "Round Button"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/roundbutton-icon.png"
- version: "2.1"
- requiredImport: "QtQuick.Controls"
- Property { name: "text"; type: "string"; value: "+" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.Slider"
- icon: "images/slider-icon16.png"
-
- ItemLibraryEntry {
- name: "Slider"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/slider-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "value"; type: "real"; value: 0.5 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.SpinBox"
- icon: "images/spinbox-icon16.png"
-
- ItemLibraryEntry {
- name: "Spin Box"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/spinbox-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
- }
- }
-
- Type {
- name: "QtQuick.Controls.ScrollView"
- icon: "images/scrollview-icon16.png"
-
- ItemLibraryEntry {
- name: "Scroll View"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/scrollview-icon.png"
- version: "2.2"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "width"; type: "int"; value: 200 }
- Property { name: "height"; type: "int"; value: 200 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.StackView"
- icon: "images/stackview-icon16.png"
-
- ItemLibraryEntry {
- name: "Stack View"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/stackview-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "width"; type: "int"; value: 200 }
- Property { name: "height"; type: "int"; value: 200 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.SwipeDelegate"
- icon: "images/itemdelegate-icon16.png"
-
- ItemLibraryEntry {
- name: "Swipe Delegate"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/itemdelegate-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Swipe Delegate\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.SwipeView"
- icon: "images/swipeview-icon16.png"
-
- ItemLibraryEntry {
- name: "Swipe View"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/swipeview-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "width"; type: "int"; value: 200 }
- Property { name: "height"; type: "int"; value: 200 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.Switch"
- icon: "images/switch-icon16.png"
-
- ItemLibraryEntry {
- name: "Switch"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/switch-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Switch\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.SwitchDelegate"
- icon: "images/switch-icon16.png"
-
- ItemLibraryEntry {
- name: "Switch Delegate"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/switch-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Switch Delegate\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.TabBar"
- icon: "images/toolbar-icon16.png"
-
- ItemLibraryEntry {
- name: "Tab Bar"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/toolbar-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
- Property { name: "width"; type: "int"; value: 240 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.TabButton"
- icon: "images/toolbutton-icon16.png"
-
- ItemLibraryEntry {
- name: "Tab Button"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/toolbutton-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
- Property { name: "text"; type: "binding"; value: "qsTr(\"Tab Button\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.TextArea"
- icon: "images/textarea-icon16.png"
-
- ItemLibraryEntry {
- name: "Text Area"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/textarea-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Text Area\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.TextField"
- icon: "images/textfield-icon16.png"
-
- ItemLibraryEntry {
- name: "Text Field"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/textfield-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Text Field\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.ToolBar"
- icon: "images/toolbar-icon16.png"
-
- ItemLibraryEntry {
- name: "Tool Bar"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/toolbar-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "width"; type: "int"; value: 360 }
- }
- }
-
- Type {
- name: "QtQuick.Controls.ToolButton"
- icon: "images/toolbutton-icon16.png"
-
- ItemLibraryEntry {
- name: "Tool Button"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/toolbutton-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "text"; type: "binding"; value: "qsTr(\"Tool Button\")" }
- }
- }
-
- Type {
- name: "QtQuick.Controls.ToolSeparator"
- icon: "images/toolseparator-icon16.png"
-
- ItemLibraryEntry {
- name: "Tool Separator"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/toolseparator-icon.png"
- version: "2.1"
- requiredImport: "QtQuick.Controls"
- }
- }
-
- Type {
- name: "QtQuick.Controls.Tumbler"
- icon: "images/tumbler-icon16.png"
-
- ItemLibraryEntry {
- name: "Tumbler"
- category: "Qt Quick - Controls 2"
- libraryIcon: "images/tumbler-icon.png"
- version: "2.0"
- requiredImport: "QtQuick.Controls"
-
- Property { name: "model"; type: "int"; value: "10" }
- }
- }
-}
diff --git a/src/imports/controls/doc/doc.pri b/src/imports/controls/doc/doc.pri
deleted file mode 100644
index f1bf7e80..00000000
--- a/src/imports/controls/doc/doc.pri
+++ /dev/null
@@ -1,7 +0,0 @@
-QMAKE_DOCS = $$PWD/qtquickcontrols.qdocconf
-
-OTHER_FILES += \
- $$files($$PWD/snippets/*.qml) \
- $$files($$PWD/src/*.qdoc) \
- $$files($$PWD/src/calendar/*.qdoc) \
- $$files($$PWD/src/templates/*.qdoc)
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-applicationwindow-wireframe.png b/src/imports/controls/doc/images/qtquickcontrols2-applicationwindow-wireframe.png
deleted file mode 100644
index 522713bc..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-applicationwindow-wireframe.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-busyindicator-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-busyindicator-custom.png
deleted file mode 100644
index 89a38660..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-busyindicator-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-busyindicator.gif b/src/imports/controls/doc/images/qtquickcontrols2-busyindicator.gif
deleted file mode 100644
index 653d200f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-busyindicator.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-busyindicator.png b/src/imports/controls/doc/images/qtquickcontrols2-busyindicator.png
deleted file mode 100644
index e631df32..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-busyindicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-button-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-button-custom.png
deleted file mode 100644
index e418da04..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-button-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-button-flat.gif b/src/imports/controls/doc/images/qtquickcontrols2-button-flat.gif
deleted file mode 100644
index e2bd8b6f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-button-flat.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-button-highlighted.gif b/src/imports/controls/doc/images/qtquickcontrols2-button-highlighted.gif
deleted file mode 100644
index 7de076d3..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-button-highlighted.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-button-icononly.png b/src/imports/controls/doc/images/qtquickcontrols2-button-icononly.png
deleted file mode 100644
index 91a21d17..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-button-icononly.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-button-textbesideicon.png b/src/imports/controls/doc/images/qtquickcontrols2-button-textbesideicon.png
deleted file mode 100644
index 1d46133f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-button-textbesideicon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-button-textonly.png b/src/imports/controls/doc/images/qtquickcontrols2-button-textonly.png
deleted file mode 100644
index 4449e748..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-button-textonly.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-button-textundericon.png b/src/imports/controls/doc/images/qtquickcontrols2-button-textundericon.png
deleted file mode 100644
index fc031ce1..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-button-textundericon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-button.gif b/src/imports/controls/doc/images/qtquickcontrols2-button.gif
deleted file mode 100644
index 10d626a3..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-button.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-checkbox-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-checkbox-custom.png
deleted file mode 100644
index 922e458a..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-checkbox-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-checkbox-group.png b/src/imports/controls/doc/images/qtquickcontrols2-checkbox-group.png
deleted file mode 100644
index 63d77bee..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-checkbox-group.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-checkbox-tristate.gif b/src/imports/controls/doc/images/qtquickcontrols2-checkbox-tristate.gif
deleted file mode 100644
index 56a15867..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-checkbox-tristate.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-checkbox.gif b/src/imports/controls/doc/images/qtquickcontrols2-checkbox.gif
deleted file mode 100644
index d70c0ee4..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-checkbox.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate-custom.png
deleted file mode 100644
index f565e0e7..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate-tristate.gif b/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate-tristate.gif
deleted file mode 100644
index 8d058d6c..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate-tristate.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate.gif b/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate.gif
deleted file mode 100644
index da3fab98..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-checkdelegate.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-combobox-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-combobox-custom.png
deleted file mode 100644
index 0b2e34bf..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-combobox-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-combobox-delegate.png b/src/imports/controls/doc/images/qtquickcontrols2-combobox-delegate.png
deleted file mode 100644
index 7e716b3d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-combobox-delegate.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-combobox-popup.png b/src/imports/controls/doc/images/qtquickcontrols2-combobox-popup.png
deleted file mode 100644
index 7e716b3d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-combobox-popup.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-combobox.gif b/src/imports/controls/doc/images/qtquickcontrols2-combobox.gif
deleted file mode 100644
index 966a2d4a..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-combobox.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-control.png b/src/imports/controls/doc/images/qtquickcontrols2-control.png
deleted file mode 100644
index 71840a49..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-control.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-control.svg b/src/imports/controls/doc/images/qtquickcontrols2-control.svg
deleted file mode 100644
index 4b2057d1..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-control.svg
+++ /dev/null
@@ -1,936 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="760"
- height="580"
- viewBox="0 0 759.99997 579.99999"
- id="svg2"
- version="1.1"
- inkscape:version="0.92.3 (2405546, 2018-03-11)"
- sodipodi:docname="qtquickcontrols2-control.svg"
- inkscape:export-filename="/home/jpnurmi/Projects/qt-dev/qtquickcontrols2/src/imports/controls/doc/images/qtquickcontrols2-control.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <defs
- id="defs4">
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="Arrow1Mstart"
- orient="auto"
- refY="0"
- refX="0"
- id="Arrow1Mstart"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4191"
- d="M 0,0 5,-5 -12.5,0 5,5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="matrix(0.4,0,0,0.4,4,0)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="Arrow2Mend"
- orient="auto"
- refY="0"
- refX="0"
- id="Arrow2Mend"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4212"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
- d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
- transform="scale(-0.6)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-3"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-9"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-0"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-5"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-9"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-2"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-2"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-9-6"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-2-2"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-1-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-2-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-8"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-96"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-4"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-9-6-4"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-2-2-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-1-1-6"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-2-7-8"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5-6"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7-2"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4-8"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1-9"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5-6-9"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7-2-6"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4-8-4"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1-9-8"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-1-7"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-8-9"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-96-7"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-4-4"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5-6-9-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7-2-6-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4-8-4-0"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1-9-8-6"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-1-9"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-8-3"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-96-3"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-4-46"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5-6-9-5"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7-2-6-6"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4-8-4-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1-9-8-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-1-9-7"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-8-3-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-96-3-2"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-4-46-3"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5-6-9-5-8"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7-2-6-6-1"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4-8-4-1-3"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1-9-8-7-6"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- </defs>
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="1.4142136"
- inkscape:cx="138.75529"
- inkscape:cy="425.28174"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- inkscape:window-width="3840"
- inkscape:window-height="2031"
- inkscape:window-x="0"
- inkscape:window-y="55"
- inkscape:window-maximized="1"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- units="px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(91.482322,-32.9581)">
- <rect
- style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1.05102265;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- id="rect4136"
- width="518.94897"
- height="298.94897"
- x="29.043194"
- y="193.48361" />
- <rect
- style="fill:#ffd5d5;fill-opacity:1;stroke:none;stroke-width:0.83021182;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- id="rect4136-3"
- width="440"
- height="220"
- x="68.517685"
- y="232.9581" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(1.1690183,0,0,1.1690183,115.80023,-231.31953)"><flowRegion
- id="flowRegion4140"
- style="fill:#ff2a2a"><rect
- id="rect4142"
- width="129.78784"
- height="31.668232"
- x="-34.519978"
- y="400.22751"
- style="font-size:15.41801071px;fill:#ff2a2a" /></flowRegion><flowPara
- id="flowPara4144"
- style="font-size:20.55734825px;line-height:1.25;fill:#ff2a2a">Background</flowPara><flowPara
- id="flowPara4146"
- style="font-size:20.55734825px;line-height:1.25;fill:#ff2a2a"> </flowPara></flowRoot> <rect
- style="fill:#d7e3f4;fill-opacity:1;stroke:none;stroke-width:22.32431984;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.58381503"
- id="rect4148"
- width="360"
- height="140"
- x="108.51768"
- y="272.95813" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,184.57261,41.294224)"><flowRegion
- id="flowRegion4140-6"
- style="fill:#0055d4"><rect
- id="rect4142-6"
- width="334.36047"
- height="80.812172"
- x="42.426407"
- y="481.62601"
- style="font-size:40px;fill:#0055d4" /></flowRegion><flowPara
- id="flowPara4146-6"
- style="font-size:40px;line-height:1.25;fill:#0055d4">Content item</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-1"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,247.75903,220.21488)"><flowRegion
- id="flowRegion4140-6-9"><rect
- id="rect4142-6-0"
- width="270.72089"
- height="68.690361"
- x="42.426407"
- y="481.62601"
- style="font-size:25px;fill:#000000" /></flowRegion><flowPara
- id="flowPara4146-6-2"
- style="font-size:17.5px;line-height:1.25">Width</flowPara></flowRoot> <path
- style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.93053311;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-3);marker-end:url(#TriangleOutL-0)"
- d="M 33.168982,505.52033 H 543.32948"
- id="path4179-8"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-9);marker-end:url(#TriangleOutL-1)"
- d="M 16.517683,487.33858 V 198.57762"
- id="path4179-9"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-1-7"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-50.003525,47.195824)"><flowRegion
- id="flowRegion4140-6-9-7"><rect
- id="rect4142-6-0-5"
- width="270.72089"
- height="68.690361"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#000000" /></flowRegion><flowPara
- id="flowPara4146-6-2-9"
- style="font-size:17.5px;line-height:1.25;fill:#000000">Height</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-3"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,206.65956,-144.78636)"><flowRegion
- id="flowRegion4140-6-67"><rect
- id="rect4142-6-5"
- width="334.36047"
- height="80.812172"
- x="42.426407"
- y="481.62601"
- style="font-size:60px;fill:#000000" /></flowRegion><flowPara
- style="font-size:60px;line-height:1.25"
- id="flowPara14323">Popup</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,41.217752,149.93493)"><flowRegion
- id="flowRegion4140-6-6-4-6"
- style="text-align:center;text-anchor:middle;fill:#0055d4"><rect
- id="rect4142-6-1-4-2"
- width="252.53812"
- height="61.619293"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;text-align:center;text-anchor:middle;fill:#0055d4" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#0055d4"
- id="flowPara10048-9">Bottom</flowPara><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#0055d4"
- id="flowPara5290">padding</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,384.82399,-69.046412)"><flowRegion
- id="flowRegion4140-6-6-4-6-2"
- style="fill:#0055d4"><rect
- id="rect4142-6-1-4-2-7"
- width="71.826065"
- height="43.785866"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#0055d4" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#0055d4"
- id="flowPara10048-9-0">Top</flowPara><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#0055d4"
- id="flowPara4830">padding</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-9"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,458.14041,-0.80935844)"><flowRegion
- id="flowRegion4140-6-6-4-6-3"
- style="fill:#0055d4"><rect
- id="rect4142-6-1-4-2-6"
- width="81.109558"
- height="93.762154"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#0055d4" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:125%;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0055d4"
- id="flowPara4386">Right padding</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-9-2"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,19.173452,87.133114)"><flowRegion
- id="flowRegion4140-6-6-4-6-3-5"
- style="fill:#0055d4"><rect
- id="rect4142-6-1-4-2-6-4"
- width="81.109558"
- height="93.762154"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#0055d4" /></flowRegion><flowPara
- style="font-size:17.02554321px;line-height:125%;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0055d4"
- id="flowPara4386-0">Left padding</flowPara></flowRoot> <path
- style="fill:#ff2a2a;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:0.87824047;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-9-6);marker-end:url(#TriangleOutL-1-1)"
- d="M 72.916183,227.96278 V 198.98852"
- id="path4179-9-8"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:0.87323481;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5);marker-end:url(#TriangleOutL-9-4)"
- d="M 34.529058,238.58445 H 63.562954"
- id="path4179-7-8"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1-5"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,47.895402,-88.000508)"><flowRegion
- id="flowRegion4140-6-6-4-6-2-9"
- style="fill:#ff2a2a"><rect
- id="rect4142-6-1-4-2-7-7"
- width="66.476036"
- height="55.080368"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#ff2a2a" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#ff2a2a"
- id="flowPara11237">Top inset</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-9-2-3"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,0.4414194,-43.952242)"><flowRegion
- id="flowRegion4140-6-6-4-6-3-5-8"
- style="fill:#ff2a2a"><rect
- id="rect4142-6-1-4-2-6-4-8"
- width="75.759529"
- height="93.167732"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#ff2a2a" /></flowRegion><flowPara
- style="font-size:17.02554321px;line-height:125%;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#ff2a2a"
- id="flowPara4386-0-3">Left inset</flowPara></flowRoot> <path
- style="fill:#0055d4;fill-rule:evenodd;stroke:#0055d4;stroke-width:0.97500122;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-1);marker-end:url(#TriangleOutL-96)"
- d="M 462.28757,267.38769 V 199.50991"
- id="path4179-3"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#ff2a2a;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:0.87794411;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-9-6-4);marker-end:url(#TriangleOutL-1-1-6)"
- d="M 504.22784,486.94146 V 457.98675"
- id="path4179-9-8-9"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1-5-0"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,424.36985,170.98794)"><flowRegion
- id="flowRegion4140-6-6-4-6-2-9-6"
- style="fill:#ff2a2a"><rect
- id="rect4142-6-1-4-2-7-7-8"
- width="91.442841"
- height="44.974762"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#ff2a2a" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#ff2a2a"
- id="flowPara11237-7">Bottom inset</flowPara></flowRoot> <path
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:0.87314719;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5-6);marker-end:url(#TriangleOutL-9-4-8)"
- d="M 513.47562,448.6218 H 542.5037"
- id="path4179-7-8-6"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-9-2-3-0"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,479.24023,126.32002)"><flowRegion
- id="flowRegion4140-6-6-4-6-3-5-8-7"
- style="fill:#ff2a2a"><rect
- id="rect4142-6-1-4-2-6-4-8-0"
- width="75.759529"
- height="93.167732"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#ff2a2a" /></flowRegion><flowPara
- style="font-size:17.02554321px;line-height:125%;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#ff2a2a"
- id="flowPara3807">Right inset</flowPara></flowRoot> <path
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.05938387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5-6-9);marker-end:url(#TriangleOutL-9-4-8-4)"
- d="m 474.52523,278.31524 h 66.93934"
- id="path4179-7-8-6-0"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#0055d4;fill-rule:evenodd;stroke:#0055d4;stroke-width:0.97513783;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-1-7);marker-end:url(#TriangleOutL-96-7)"
- d="M 114.58911,486.37854 V 418.48175"
- id="path4179-3-9"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.05900466;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5-6-9-1);marker-end:url(#TriangleOutL-9-4-8-4-0)"
- d="M 35.582232,406.88667 H 102.47366"
- id="path4179-7-8-6-0-0"
- inkscape:connector-curvature="0" />
- <rect
- style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1.38;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- id="rect4136-9"
- width="638.62036"
- height="418.6203"
- x="-30.792475"
- y="133.64795" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-3-8"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,192.12072,-213.92909)"><flowRegion
- id="flowRegion4140-6-67-1"><rect
- id="rect4142-6-5-6"
- width="334.36047"
- height="80.812172"
- x="42.426407"
- y="481.62601"
- style="font-size:60px;fill:#000000" /></flowRegion><flowPara
- style="font-size:60px;line-height:1.25"
- id="flowPara14323-3">Window</flowPara></flowRoot> <path
- style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.83036995;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-1-9);marker-end:url(#TriangleOutL-96-3)"
- d="M 16.507747,188.209 V 138.97553"
- id="path4179-3-1"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.90094262;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5-6-9-5);marker-end:url(#TriangleOutL-9-4-8-4-1)"
- d="m 553.67227,505.52244 h 48.41379"
- id="path4179-7-8-6-0-2"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1-2"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-53.285062,-138.90295)"><flowRegion
- id="flowRegion4140-6-6-4-6-2-92"
- style="fill:#000000"><rect
- id="rect4142-6-1-4-2-7-8"
- width="71.826065"
- height="43.785866"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#000000" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#000000"
- id="flowPara10048-9-0-1">Top</flowPara><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#000000"
- id="flowPara4830-2">margin</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1-2-4"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,530.78767,225.71855)"><flowRegion
- id="flowRegion4140-6-6-4-6-2-92-7"
- style="fill:#000000"><rect
- id="rect4142-6-1-4-2-7-8-8"
- width="71.826065"
- height="43.785866"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#000000" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#000000"
- id="flowPara10048-9-0-1-6">Right</flowPara><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#000000"
- id="flowPara4830-2-3">margin</flowPara></flowRoot> <path
- style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.83036995;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-1-9-7);marker-end:url(#TriangleOutL-96-3-2)"
- d="M 16.459117,546.78218 V 497.54871"
- id="path4179-3-1-7"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1-2-2"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-0.06072146,225.50386)"><flowRegion
- id="flowRegion4140-6-6-4-6-2-92-5"
- style="fill:#000000"><rect
- id="rect4142-6-1-4-2-7-8-3"
- width="71.826065"
- height="43.785866"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#000000" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#000000"
- id="flowPara10048-9-0-1-7">Bottom</flowPara><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#000000"
- id="flowPara4830-2-6">margin</flowPara></flowRoot> <path
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.89733517;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5-6-9-5-8);marker-end:url(#TriangleOutL-9-4-8-4-1-3)"
- d="M -25.075855,505.54405 H 22.951007"
- id="path4179-7-8-6-0-2-4"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1-2-2-0"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-55.529842,180.17847)"><flowRegion
- id="flowRegion4140-6-6-4-6-2-92-5-3"
- style="fill:#000000"><rect
- id="rect4142-6-1-4-2-7-8-3-5"
- width="71.826065"
- height="43.785866"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#000000" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#000000"
- id="flowPara10048-9-0-1-7-8">Left</flowPara><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#000000"
- id="flowPara4830-2-6-5">margin</flowPara></flowRoot> </g>
-</svg>
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-customize-buttons.png b/src/imports/controls/doc/images/qtquickcontrols2-customize-buttons.png
deleted file mode 100644
index f4e2454e..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-customize-buttons.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-default-thumbnail.png b/src/imports/controls/doc/images/qtquickcontrols2-default-thumbnail.png
deleted file mode 100644
index 5afcb6d7..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-default-thumbnail.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-default.png b/src/imports/controls/doc/images/qtquickcontrols2-default.png
deleted file mode 100644
index 67e52b84..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-default.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-delaybutton-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-delaybutton-custom.png
deleted file mode 100644
index be7f2586..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-delaybutton-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-delaybutton.gif b/src/imports/controls/doc/images/qtquickcontrols2-delaybutton.gif
deleted file mode 100644
index 16a198f9..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-delaybutton.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dial-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-dial-custom.png
deleted file mode 100644
index dc5779c0..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dial-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dial-handle.png b/src/imports/controls/doc/images/qtquickcontrols2-dial-handle.png
deleted file mode 100644
index 49ba9d0c..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dial-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dial-inputMode.svgz b/src/imports/controls/doc/images/qtquickcontrols2-dial-inputMode.svgz
deleted file mode 100644
index 005ab7b3..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dial-inputMode.svgz
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dial-inputmode.png b/src/imports/controls/doc/images/qtquickcontrols2-dial-inputmode.png
deleted file mode 100644
index 27694ee3..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dial-inputmode.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dial-no-wrap.gif b/src/imports/controls/doc/images/qtquickcontrols2-dial-no-wrap.gif
deleted file mode 100644
index 24f6790b..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dial-no-wrap.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dial-wrap.gif b/src/imports/controls/doc/images/qtquickcontrols2-dial-wrap.gif
deleted file mode 100644
index cfb1fb5b..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dial-wrap.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dial.png b/src/imports/controls/doc/images/qtquickcontrols2-dial.png
deleted file mode 100644
index dfe37f87..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dial.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dialogbuttonbox-attached.png b/src/imports/controls/doc/images/qtquickcontrols2-dialogbuttonbox-attached.png
deleted file mode 100644
index 53ecf83d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dialogbuttonbox-attached.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-dialogbuttonbox.png b/src/imports/controls/doc/images/qtquickcontrols2-dialogbuttonbox.png
deleted file mode 100644
index 87cece98..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-dialogbuttonbox.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-drawer-expanded-wireframe.png b/src/imports/controls/doc/images/qtquickcontrols2-drawer-expanded-wireframe.png
deleted file mode 100644
index 8a8078bf..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-drawer-expanded-wireframe.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-drawer-wireframe.png b/src/imports/controls/doc/images/qtquickcontrols2-drawer-wireframe.png
deleted file mode 100644
index d1ef1801..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-drawer-wireframe.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-drawer.gif b/src/imports/controls/doc/images/qtquickcontrols2-drawer.gif
deleted file mode 100644
index 736f34f6..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-drawer.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-frame-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-frame-custom.png
deleted file mode 100644
index c9d00187..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-frame-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-frame.png b/src/imports/controls/doc/images/qtquickcontrols2-frame.png
deleted file mode 100644
index 3bc1a76a..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-frame.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-fusion-palettes.png b/src/imports/controls/doc/images/qtquickcontrols2-fusion-palettes.png
deleted file mode 100644
index d649e137..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-fusion-palettes.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-fusion-thumbnail.png b/src/imports/controls/doc/images/qtquickcontrols2-fusion-thumbnail.png
deleted file mode 100644
index d15fe970..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-fusion-thumbnail.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-fusion-violet.png b/src/imports/controls/doc/images/qtquickcontrols2-fusion-violet.png
deleted file mode 100644
index 4186a78f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-fusion-violet.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-fusion.png b/src/imports/controls/doc/images/qtquickcontrols2-fusion.png
deleted file mode 100644
index 037069b5..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-fusion.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-groupbox-checkable.png b/src/imports/controls/doc/images/qtquickcontrols2-groupbox-checkable.png
deleted file mode 100644
index fd36aec2..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-groupbox-checkable.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-groupbox-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-groupbox-custom.png
deleted file mode 100644
index 3a585d9f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-groupbox-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-groupbox-label.png b/src/imports/controls/doc/images/qtquickcontrols2-groupbox-label.png
deleted file mode 100644
index 4929be52..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-groupbox-label.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-groupbox.png b/src/imports/controls/doc/images/qtquickcontrols2-groupbox.png
deleted file mode 100644
index ef57cc64..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-groupbox.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-4x.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-4x.png
deleted file mode 100644
index 426a72c4..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-inset-boundaries.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-inset-boundaries.png
deleted file mode 100644
index af078f9e..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-inset-boundaries.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-inset.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-inset.png
deleted file mode 100644
index 2f55b854..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-inset.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-resized-padding.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-resized-padding.png
deleted file mode 100644
index 003cb73d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-resized-padding.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-resized-stretchable.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-resized-stretchable.png
deleted file mode 100644
index be3d8daa..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-resized-stretchable.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-size.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-size.png
deleted file mode 100644
index 5cc76d89..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch-size.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch.svgz b/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch.svgz
deleted file mode 100644
index 5a1a1094..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-9-patch.svgz
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-customization-dark.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine-customization-dark.png
deleted file mode 100644
index d114d2cd..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-customization-dark.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-customization.svgz b/src/imports/controls/doc/images/qtquickcontrols2-imagine-customization.svgz
deleted file mode 100644
index fb830563..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-customization.svgz
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine-thumbnail.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine-thumbnail.png
deleted file mode 100644
index b949ab7c..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine-thumbnail.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-imagine.png b/src/imports/controls/doc/images/qtquickcontrols2-imagine.png
deleted file mode 100644
index 1cf7a0f2..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-imagine.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate-custom.png
deleted file mode 100644
index ff8ba047..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate.gif b/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate.gif
deleted file mode 100644
index dccb6efc..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate.png b/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate.png
deleted file mode 100644
index bbf49fad..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-itemdelegate.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-label-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-label-custom.png
deleted file mode 100644
index 5d950fe6..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-label-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-label.png b/src/imports/controls/doc/images/qtquickcontrols2-label.png
deleted file mode 100644
index a51912f5..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-label.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-accent.png b/src/imports/controls/doc/images/qtquickcontrols2-material-accent.png
deleted file mode 100644
index be0c8212..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-accent.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-attributes.png b/src/imports/controls/doc/images/qtquickcontrols2-material-attributes.png
deleted file mode 100644
index 68999892..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-attributes.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-background.png b/src/imports/controls/doc/images/qtquickcontrols2-material-background.png
deleted file mode 100644
index 132fb538..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-background.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-dark.png b/src/imports/controls/doc/images/qtquickcontrols2-material-dark.png
deleted file mode 100644
index eb0350dd..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-dark.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-elevation.png b/src/imports/controls/doc/images/qtquickcontrols2-material-elevation.png
deleted file mode 100644
index 38c6dc00..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-elevation.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-foreground.png b/src/imports/controls/doc/images/qtquickcontrols2-material-foreground.png
deleted file mode 100644
index 122f7f9b..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-foreground.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-light.png b/src/imports/controls/doc/images/qtquickcontrols2-material-light.png
deleted file mode 100644
index 2635de68..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-light.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-purple.png b/src/imports/controls/doc/images/qtquickcontrols2-material-purple.png
deleted file mode 100644
index 8afb2cd6..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-purple.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-theme.png b/src/imports/controls/doc/images/qtquickcontrols2-material-theme.png
deleted file mode 100644
index 7109f57f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-theme.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-thumbnail.png b/src/imports/controls/doc/images/qtquickcontrols2-material-thumbnail.png
deleted file mode 100644
index c1084673..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-thumbnail.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-variant-dense.png b/src/imports/controls/doc/images/qtquickcontrols2-material-variant-dense.png
deleted file mode 100644
index 02f39b78..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-variant-dense.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-material-variant-normal.png b/src/imports/controls/doc/images/qtquickcontrols2-material-variant-normal.png
deleted file mode 100644
index c1e366c5..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-material-variant-normal.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-menu-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-menu-custom.png
deleted file mode 100644
index b631d871..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-menu-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-menu.gif b/src/imports/controls/doc/images/qtquickcontrols2-menu.gif
deleted file mode 100644
index 93a873a3..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-menu.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-menu.png b/src/imports/controls/doc/images/qtquickcontrols2-menu.png
deleted file mode 100644
index b6446d39..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-menu.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-menubar-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-menubar-custom.png
deleted file mode 100644
index 3903e31d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-menubar-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-menubar.png b/src/imports/controls/doc/images/qtquickcontrols2-menubar.png
deleted file mode 100644
index 94e3676f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-menubar.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-menuseparator-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-menuseparator-custom.png
deleted file mode 100644
index 48785b73..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-menuseparator-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-menuseparator.png b/src/imports/controls/doc/images/qtquickcontrols2-menuseparator.png
deleted file mode 100644
index beb1cfeb..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-menuseparator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-page-wireframe.png b/src/imports/controls/doc/images/qtquickcontrols2-page-wireframe.png
deleted file mode 100644
index f612c243..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-page-wireframe.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-pageindicator-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-pageindicator-custom.png
deleted file mode 100644
index c1f98288..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-pageindicator-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-pageindicator-delegate.png b/src/imports/controls/doc/images/qtquickcontrols2-pageindicator-delegate.png
deleted file mode 100644
index a1e9a8cd..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-pageindicator-delegate.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-pageindicator.png b/src/imports/controls/doc/images/qtquickcontrols2-pageindicator.png
deleted file mode 100644
index 872012d0..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-pageindicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-pane-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-pane-custom.png
deleted file mode 100644
index 4c24f426..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-pane-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-pane.png b/src/imports/controls/doc/images/qtquickcontrols2-pane.png
deleted file mode 100644
index b34e9488..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-pane.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-popup-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-popup-custom.png
deleted file mode 100644
index aa07d53a..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-popup-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-popup-settings.png b/src/imports/controls/doc/images/qtquickcontrols2-popup-settings.png
deleted file mode 100644
index 787de5d4..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-popup-settings.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-popup-transformorigin.png b/src/imports/controls/doc/images/qtquickcontrols2-popup-transformorigin.png
deleted file mode 100644
index 4af320fb..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-popup-transformorigin.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-popup.png b/src/imports/controls/doc/images/qtquickcontrols2-popup.png
deleted file mode 100644
index 01d65709..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-popup.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-popup.svg b/src/imports/controls/doc/images/qtquickcontrols2-popup.svg
deleted file mode 100644
index e39f3dce..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-popup.svg
+++ /dev/null
@@ -1,712 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="640"
- height="420"
- viewBox="0 0 639.99997 419.99999"
- id="svg2"
- version="1.1"
- inkscape:version="0.92.3 (2405546, 2018-03-11)"
- sodipodi:docname="qtquickcontrols2-control.svg"
- inkscape:export-filename="/home/jpnurmi/Projects/qt-dev/qtquickcontrols2/src/imports/controls/doc/images/qtquickcontrols2-control.png"
- inkscape:export-xdpi="192"
- inkscape:export-ydpi="192">
- <defs
- id="defs4">
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="Arrow1Mstart"
- orient="auto"
- refY="0"
- refX="0"
- id="Arrow1Mstart"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4191"
- d="M 0,0 5,-5 -12.5,0 5,5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="matrix(0.4,0,0,0.4,4,0)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="Arrow2Mend"
- orient="auto"
- refY="0"
- refX="0"
- id="Arrow2Mend"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4212"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.625;stroke-linejoin:round;stroke-opacity:1"
- d="M 8.7185878,4.0337352 -2.2072895,0.01601326 8.7185884,-4.0017078 c -1.7454984,2.3720609 -1.7354408,5.6174519 -6e-7,8.035443 z"
- transform="scale(-0.6)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-3"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-9"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-0"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-5"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-9"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-2"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-2"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-9-6"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-2-2"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-1-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-2-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-8"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-96"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-4"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-9-6-4"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-2-2-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-1-1-6"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-2-7-8"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5-6"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7-2"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4-8"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1-9"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5-6-9"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7-2-6"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4-8-4"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1-9-8"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-1-7"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4318-8-9"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-96-7"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- id="path4327-4-4"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)"
- inkscape:connector-curvature="0" />
- </marker>
- <marker
- inkscape:stockid="TriangleInL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleInL-2-5-6-9-1"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4318-4-7-2-6-7"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(-0.8)" />
- </marker>
- <marker
- inkscape:stockid="TriangleOutL"
- orient="auto"
- refY="0"
- refX="0"
- id="TriangleOutL-9-4-8-4-0"
- style="overflow:visible"
- inkscape:isstock="true">
- <path
- inkscape:connector-curvature="0"
- id="path4327-1-1-9-8-6"
- d="M 5.77,0 -2.88,5 V -5 Z"
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.00000003pt;stroke-opacity:1"
- transform="scale(0.8)" />
- </marker>
- </defs>
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="2.8284271"
- inkscape:cx="328.65009"
- inkscape:cy="205.42326"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- inkscape:window-width="3840"
- inkscape:window-height="2031"
- inkscape:window-x="0"
- inkscape:window-y="55"
- inkscape:window-maximized="1"
- fit-margin-top="0"
- fit-margin-left="0"
- fit-margin-right="0"
- fit-margin-bottom="0"
- units="px" />
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(91.482322,-192.9581)">
- <rect
- style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:1.05102265;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- id="rect4136"
- width="518.94897"
- height="298.94897"
- x="-30.956812"
- y="253.48361" />
- <rect
- style="fill:#ffd5d5;fill-opacity:1;stroke:none;stroke-width:0.83021182;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- id="rect4136-3"
- width="440"
- height="220"
- x="8.5176783"
- y="292.9581" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(1.1690183,0,0,1.1690183,55.80022,-171.31953)"><flowRegion
- id="flowRegion4140"
- style="fill:#ff2a2a"><rect
- id="rect4142"
- width="129.78784"
- height="31.668232"
- x="-34.519978"
- y="400.22751"
- style="font-size:15.41801071px;fill:#ff2a2a" /></flowRegion><flowPara
- id="flowPara4144"
- style="font-size:20.55734825px;line-height:1.25;fill:#ff2a2a">Background</flowPara><flowPara
- id="flowPara4146"
- style="font-size:20.55734825px;line-height:1.25;fill:#ff2a2a"> </flowPara></flowRoot> <rect
- style="fill:#d7e3f4;fill-opacity:1;stroke:none;stroke-width:22.32431984;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.58381503"
- id="rect4148"
- width="360"
- height="140"
- x="48.517677"
- y="332.95813" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,124.5726,101.29422)"><flowRegion
- id="flowRegion4140-6"
- style="fill:#0055d4"><rect
- id="rect4142-6"
- width="334.36047"
- height="80.812172"
- x="42.426407"
- y="481.62601"
- style="font-size:40px;fill:#0055d4" /></flowRegion><flowPara
- id="flowPara4146-6"
- style="font-size:40px;line-height:1.25;fill:#0055d4">Content item</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-1"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,187.75902,280.21488)"><flowRegion
- id="flowRegion4140-6-9"><rect
- id="rect4142-6-0"
- width="270.72089"
- height="68.690361"
- x="42.426407"
- y="481.62601"
- style="font-size:25px;fill:#000000" /></flowRegion><flowPara
- id="flowPara4146-6-2"
- style="font-size:17.5px;line-height:1.25">Width</flowPara></flowRoot> <path
- style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.93053311;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-3);marker-end:url(#TriangleOutL-0)"
- d="M -26.831023,563.52033 H 483.32947"
- id="path4179-8"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-9);marker-end:url(#TriangleOutL-1)"
- d="M -41.482322,547.33858 V 258.57762"
- id="path4179-9"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-1-7"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-110.00353,107.19582)"><flowRegion
- id="flowRegion4140-6-9-7"><rect
- id="rect4142-6-0-5"
- width="270.72089"
- height="68.690361"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#000000" /></flowRegion><flowPara
- id="flowPara4146-6-2-9"
- style="font-size:17.5px;line-height:1.25;fill:#000000">Height</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-3"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,138.50125,-84.786365)"><flowRegion
- id="flowRegion4140-6-67"><rect
- id="rect4142-6-5"
- width="334.36047"
- height="80.812172"
- x="42.426407"
- y="481.62601"
- style="font-size:60px;fill:#000000" /></flowRegion><flowPara
- id="flowPara4146-6-3"
- style="font-size:60px;line-height:1.25">Control</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-18.782253,209.93493)"><flowRegion
- id="flowRegion4140-6-6-4-6"
- style="text-align:center;text-anchor:middle;fill:#0055d4"><rect
- id="rect4142-6-1-4-2"
- width="252.53812"
- height="61.619293"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;text-align:center;text-anchor:middle;fill:#0055d4" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#0055d4"
- id="flowPara10048-9">Bottom</flowPara><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#0055d4"
- id="flowPara5290">padding</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,324.82398,-9.0464154)"><flowRegion
- id="flowRegion4140-6-6-4-6-2"
- style="fill:#0055d4"><rect
- id="rect4142-6-1-4-2-7"
- width="71.826065"
- height="43.785866"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#0055d4" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#0055d4"
- id="flowPara10048-9-0">Top</flowPara><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#0055d4"
- id="flowPara4830">padding</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-9"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,398.1404,59.190638)"><flowRegion
- id="flowRegion4140-6-6-4-6-3"
- style="fill:#0055d4"><rect
- id="rect4142-6-1-4-2-6"
- width="81.109558"
- height="93.762154"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#0055d4" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:125%;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0055d4"
- id="flowPara4386">Right padding</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-9-2"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0055d4;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-40.826553,147.13311)"><flowRegion
- id="flowRegion4140-6-6-4-6-3-5"
- style="fill:#0055d4"><rect
- id="rect4142-6-1-4-2-6-4"
- width="81.109558"
- height="93.762154"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#0055d4" /></flowRegion><flowPara
- style="font-size:17.02554321px;line-height:125%;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#0055d4"
- id="flowPara4386-0">Left padding</flowPara></flowRoot> <path
- style="fill:#ff2a2a;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:0.87824047;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-9-6);marker-end:url(#TriangleOutL-1-1)"
- d="M 12.916178,287.96278 V 258.98852"
- id="path4179-9-8"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:0.87323481;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5);marker-end:url(#TriangleOutL-9-4)"
- d="M -25.470947,298.58445 H 3.5629489"
- id="path4179-7-8"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1-5"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-12.104603,-28.000512)"><flowRegion
- id="flowRegion4140-6-6-4-6-2-9"
- style="fill:#ff2a2a"><rect
- id="rect4142-6-1-4-2-7-7"
- width="66.476036"
- height="55.080368"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#ff2a2a" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#ff2a2a"
- id="flowPara11237">Top inset</flowPara></flowRoot> <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-9-2-3"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,-59.558586,16.047754)"><flowRegion
- id="flowRegion4140-6-6-4-6-3-5-8"
- style="fill:#ff2a2a"><rect
- id="rect4142-6-1-4-2-6-4-8"
- width="75.759529"
- height="93.167732"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#ff2a2a" /></flowRegion><flowPara
- style="font-size:17.02554321px;line-height:125%;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#ff2a2a"
- id="flowPara4386-0-3">Left inset</flowPara></flowRoot> <path
- style="fill:#0055d4;fill-rule:evenodd;stroke:#0055d4;stroke-width:0.97500122;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-1);marker-end:url(#TriangleOutL-96)"
- d="M 402.28756,327.38769 V 259.50991"
- id="path4179-3"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#ff2a2a;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:0.87794411;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-9-6-4);marker-end:url(#TriangleOutL-1-1-6)"
- d="M 444.22783,546.94146 V 517.98675"
- id="path4179-9-8-9"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-1-5-0"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,364.36984,230.98794)"><flowRegion
- id="flowRegion4140-6-6-4-6-2-9-6"
- style="fill:#ff2a2a"><rect
- id="rect4142-6-1-4-2-7-7-8"
- width="91.442841"
- height="44.974762"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#ff2a2a" /></flowRegion><flowPara
- style="font-size:17.5px;line-height:1.25;text-align:center;text-anchor:middle;fill:#ff2a2a"
- id="flowPara11237-7">Bottom inset</flowPara></flowRoot> <path
- style="fill:#ff2a2a;fill-opacity:1;fill-rule:evenodd;stroke:#ff2a2a;stroke-width:0.87314719;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5-6);marker-end:url(#TriangleOutL-9-4-8)"
- d="m 453.47561,508.6218 h 29.02808"
- id="path4179-7-8-6"
- inkscape:connector-curvature="0" />
- <flowRoot
- xml:space="preserve"
- id="flowRoot4138-6-2-7-5-9-2-3-0"
- style="font-style:normal;font-weight:normal;line-height:0.01%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#ff2a2a;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
- transform="matrix(0.6007979,0,0,0.6007979,419.24022,186.32002)"><flowRegion
- id="flowRegion4140-6-6-4-6-3-5-8-7"
- style="fill:#ff2a2a"><rect
- id="rect4142-6-1-4-2-6-4-8-0"
- width="75.759529"
- height="93.167732"
- x="42.426407"
- y="481.62601"
- style="font-size:17.5px;fill:#ff2a2a" /></flowRegion><flowPara
- style="font-size:17.02554321px;line-height:125%;text-align:center;writing-mode:lr-tb;text-anchor:middle;fill:#ff2a2a"
- id="flowPara3807">Right inset</flowPara></flowRoot> <path
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.05938387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5-6-9);marker-end:url(#TriangleOutL-9-4-8-4)"
- d="m 414.52522,338.31524 h 66.93934"
- id="path4179-7-8-6-0"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#0055d4;fill-rule:evenodd;stroke:#0055d4;stroke-width:0.97513783;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-1-7);marker-end:url(#TriangleOutL-96-7)"
- d="M 54.589106,546.37854 V 478.48175"
- id="path4179-3-9"
- inkscape:connector-curvature="0" />
- <path
- style="fill:#0055d4;fill-opacity:1;fill-rule:evenodd;stroke:#0055d4;stroke-width:1.05900466;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;marker-start:url(#TriangleInL-2-5-6-9-1);marker-end:url(#TriangleOutL-9-4-8-4-0)"
- d="M -24.417773,466.88667 H 42.473651"
- id="path4179-7-8-6-0-0"
- inkscape:connector-curvature="0" />
- </g>
-</svg>
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-progressbar-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-progressbar-custom.png
deleted file mode 100644
index c018e5e7..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-progressbar-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-progressbar-indeterminate.gif b/src/imports/controls/doc/images/qtquickcontrols2-progressbar-indeterminate.gif
deleted file mode 100644
index d6756d16..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-progressbar-indeterminate.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-progressbar.gif b/src/imports/controls/doc/images/qtquickcontrols2-progressbar.gif
deleted file mode 100644
index 49af5f45..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-progressbar.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-radiobutton-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-radiobutton-custom.png
deleted file mode 100644
index 15835a3c..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-radiobutton-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-radiobutton.gif b/src/imports/controls/doc/images/qtquickcontrols2-radiobutton.gif
deleted file mode 100644
index 4cbf3ed9..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-radiobutton.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-radiodelegate-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-radiodelegate-custom.png
deleted file mode 100644
index 46245323..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-radiodelegate-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-radiodelegate.gif b/src/imports/controls/doc/images/qtquickcontrols2-radiodelegate.gif
deleted file mode 100644
index b6afd6fe..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-radiodelegate.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-rangeslider-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-rangeslider-custom.png
deleted file mode 100644
index 8508a73d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-rangeslider-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-rangeslider.gif b/src/imports/controls/doc/images/qtquickcontrols2-rangeslider.gif
deleted file mode 100644
index db565b0a..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-rangeslider.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-roundbutton.png b/src/imports/controls/doc/images/qtquickcontrols2-roundbutton.png
deleted file mode 100644
index 9f1d44fc..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-roundbutton.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-custom.png
deleted file mode 100644
index f986f674..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-non-attached.png b/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-non-attached.png
deleted file mode 100644
index 8817ad5c..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-non-attached.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-nosnap.gif b/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-nosnap.gif
deleted file mode 100644
index f61ac5b4..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-nosnap.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-snapalways.gif b/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-snapalways.gif
deleted file mode 100644
index 438d4a33..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-snapalways.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-snaponrelease.gif b/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-snaponrelease.gif
deleted file mode 100644
index c2fa67b0..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar-snaponrelease.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar.gif b/src/imports/controls/doc/images/qtquickcontrols2-scrollbar.gif
deleted file mode 100644
index ed3ab607..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollbar.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator-custom.png
deleted file mode 100644
index 75963dc1..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator-non-attached.png b/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator-non-attached.png
deleted file mode 100644
index 758e0451..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator-non-attached.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator.gif b/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator.gif
deleted file mode 100644
index 73007820..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollindicator.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollview-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-scrollview-custom.png
deleted file mode 100644
index 9c2790c9..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollview-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollview-wireframe.png b/src/imports/controls/doc/images/qtquickcontrols2-scrollview-wireframe.png
deleted file mode 100644
index afdc681d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollview-wireframe.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-scrollview.png b/src/imports/controls/doc/images/qtquickcontrols2-scrollview.png
deleted file mode 100644
index 2a1807ee..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-scrollview.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-slider-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-slider-custom.png
deleted file mode 100644
index fc4c89d5..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-slider-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-slider-handle.png b/src/imports/controls/doc/images/qtquickcontrols2-slider-handle.png
deleted file mode 100644
index 093f4a96..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-slider-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-slider-nosnap.gif b/src/imports/controls/doc/images/qtquickcontrols2-slider-nosnap.gif
deleted file mode 100644
index ab233c5b..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-slider-nosnap.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-slider-snapalways.gif b/src/imports/controls/doc/images/qtquickcontrols2-slider-snapalways.gif
deleted file mode 100644
index 8eb4011f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-slider-snapalways.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-slider-snaponrelease.gif b/src/imports/controls/doc/images/qtquickcontrols2-slider-snaponrelease.gif
deleted file mode 100644
index f3b1d5c7..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-slider-snaponrelease.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-slider.gif b/src/imports/controls/doc/images/qtquickcontrols2-slider.gif
deleted file mode 100644
index 2ee56334..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-slider.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-spinbox-custom.png
deleted file mode 100644
index 5aeee0c4..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-double.png b/src/imports/controls/doc/images/qtquickcontrols2-spinbox-double.png
deleted file mode 100644
index cdece17b..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-double.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-down.png b/src/imports/controls/doc/images/qtquickcontrols2-spinbox-down.png
deleted file mode 100644
index 1f88f98d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-down.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-textual.png b/src/imports/controls/doc/images/qtquickcontrols2-spinbox-textual.png
deleted file mode 100644
index 922e59b7..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-textual.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-up.png b/src/imports/controls/doc/images/qtquickcontrols2-spinbox-up.png
deleted file mode 100644
index 7d254971..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-spinbox-up.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-spinbox.png b/src/imports/controls/doc/images/qtquickcontrols2-spinbox.png
deleted file mode 100644
index 6aa341bb..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-spinbox.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-splitview-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-splitview-custom.png
deleted file mode 100644
index 7afd3ff8..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-splitview-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-stackview-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-stackview-custom.png
deleted file mode 100644
index 8890f14d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-stackview-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-stackview-pop.gif b/src/imports/controls/doc/images/qtquickcontrols2-stackview-pop.gif
deleted file mode 100644
index 1971c2e0..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-stackview-pop.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-stackview-push.gif b/src/imports/controls/doc/images/qtquickcontrols2-stackview-push.gif
deleted file mode 100644
index 0218cc0f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-stackview-push.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-stackview-replace.gif b/src/imports/controls/doc/images/qtquickcontrols2-stackview-replace.gif
deleted file mode 100644
index 63a6b2b4..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-stackview-replace.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-stackview-unwind.gif b/src/imports/controls/doc/images/qtquickcontrols2-stackview-unwind.gif
deleted file mode 100644
index 28c051d8..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-stackview-unwind.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-stackview-visible.png b/src/imports/controls/doc/images/qtquickcontrols2-stackview-visible.png
deleted file mode 100644
index 9d21ce9c..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-stackview-visible.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-stackview-wireframe.png b/src/imports/controls/doc/images/qtquickcontrols2-stackview-wireframe.png
deleted file mode 100644
index 65704c25..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-stackview-wireframe.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-styles.png b/src/imports/controls/doc/images/qtquickcontrols2-styles.png
deleted file mode 100644
index 39626e50..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-styles.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-behind.gif b/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-behind.gif
deleted file mode 100644
index 97d6a592..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-behind.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-custom.png
deleted file mode 100644
index 10c60ac3..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-leading-trailing.gif b/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-leading-trailing.gif
deleted file mode 100644
index 0641bd14..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate-leading-trailing.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate.gif b/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate.gif
deleted file mode 100644
index 86c380b7..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-swipedelegate.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-swipeview-indicator.png b/src/imports/controls/doc/images/qtquickcontrols2-swipeview-indicator.png
deleted file mode 100644
index 91786964..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-swipeview-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-swipeview-wireframe.png b/src/imports/controls/doc/images/qtquickcontrols2-swipeview-wireframe.png
deleted file mode 100644
index 7e387c2d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-swipeview-wireframe.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-swipeview.gif b/src/imports/controls/doc/images/qtquickcontrols2-swipeview.gif
deleted file mode 100644
index 4af26c10..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-swipeview.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-switch-checked.png b/src/imports/controls/doc/images/qtquickcontrols2-switch-checked.png
deleted file mode 100644
index f4b0320c..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-switch-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-switch-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-switch-custom.png
deleted file mode 100644
index 737d3a09..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-switch-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-switch.gif b/src/imports/controls/doc/images/qtquickcontrols2-switch.gif
deleted file mode 100644
index 5f956304..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-switch.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-switch.png b/src/imports/controls/doc/images/qtquickcontrols2-switch.png
deleted file mode 100644
index b9d0812e..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-switch.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-switchdelegate-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-switchdelegate-custom.png
deleted file mode 100644
index 3a77a480..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-switchdelegate-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-switchdelegate.gif b/src/imports/controls/doc/images/qtquickcontrols2-switchdelegate.gif
deleted file mode 100644
index 950b1073..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-switchdelegate.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tabbar-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-tabbar-custom.png
deleted file mode 100644
index cadf3079..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tabbar-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tabbar-explicit.png b/src/imports/controls/doc/images/qtquickcontrols2-tabbar-explicit.png
deleted file mode 100644
index cdfee3d0..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tabbar-explicit.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tabbar-flickable.png b/src/imports/controls/doc/images/qtquickcontrols2-tabbar-flickable.png
deleted file mode 100644
index ede59233..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tabbar-flickable.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tabbar-wireframe.png b/src/imports/controls/doc/images/qtquickcontrols2-tabbar-wireframe.png
deleted file mode 100644
index 443f6757..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tabbar-wireframe.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tabbar.gif b/src/imports/controls/doc/images/qtquickcontrols2-tabbar.gif
deleted file mode 100644
index 31db1f9e..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tabbar.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tabbar.png b/src/imports/controls/doc/images/qtquickcontrols2-tabbar.png
deleted file mode 100644
index 6993c8bd..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tabbar.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tabbutton.png b/src/imports/controls/doc/images/qtquickcontrols2-tabbutton.png
deleted file mode 100644
index 3cdce15e..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tabbutton.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-textarea-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-textarea-custom.png
deleted file mode 100644
index 59777574..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-textarea-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-textarea-scrollable.png b/src/imports/controls/doc/images/qtquickcontrols2-textarea-scrollable.png
deleted file mode 100644
index 39578f71..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-textarea-scrollable.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-textarea.png b/src/imports/controls/doc/images/qtquickcontrols2-textarea.png
deleted file mode 100644
index 924f6681..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-textarea.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-textfield-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-textfield-custom.png
deleted file mode 100644
index a9f40c07..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-textfield-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-textfield-disabled.png b/src/imports/controls/doc/images/qtquickcontrols2-textfield-disabled.png
deleted file mode 100644
index a027c72a..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-textfield-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-textfield-focused.png b/src/imports/controls/doc/images/qtquickcontrols2-textfield-focused.png
deleted file mode 100644
index a63d3c85..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-textfield-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-textfield-normal.png b/src/imports/controls/doc/images/qtquickcontrols2-textfield-normal.png
deleted file mode 100644
index 25047227..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-textfield-normal.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-textfield.png b/src/imports/controls/doc/images/qtquickcontrols2-textfield.png
deleted file mode 100644
index 9ea62acb..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-textfield.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-toolbar-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-toolbar-custom.png
deleted file mode 100644
index 374cc836..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-toolbar-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-toolbar.png b/src/imports/controls/doc/images/qtquickcontrols2-toolbar.png
deleted file mode 100644
index 1fe353cc..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-toolbar.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-toolbutton-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-toolbutton-custom.png
deleted file mode 100644
index 4bd209aa..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-toolbutton-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-toolbutton.png b/src/imports/controls/doc/images/qtquickcontrols2-toolbutton.png
deleted file mode 100644
index b350cdba..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-toolbutton.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-toolseparator-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-toolseparator-custom.png
deleted file mode 100644
index 4f423154..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-toolseparator-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-toolseparator.png b/src/imports/controls/doc/images/qtquickcontrols2-toolseparator.png
deleted file mode 100644
index 253c429b..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-toolseparator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tooltip-delay.png b/src/imports/controls/doc/images/qtquickcontrols2-tooltip-delay.png
deleted file mode 100644
index eb9499fd..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tooltip-delay.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tooltip-hover.png b/src/imports/controls/doc/images/qtquickcontrols2-tooltip-hover.png
deleted file mode 100644
index 64a79839..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tooltip-hover.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tooltip-pressandhold.png b/src/imports/controls/doc/images/qtquickcontrols2-tooltip-pressandhold.png
deleted file mode 100644
index 64a79839..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tooltip-pressandhold.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tooltip-slider.png b/src/imports/controls/doc/images/qtquickcontrols2-tooltip-slider.png
deleted file mode 100644
index 440f6eba..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tooltip-slider.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tooltip.png b/src/imports/controls/doc/images/qtquickcontrols2-tooltip.png
deleted file mode 100644
index 902d6ee5..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tooltip.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tumbler-custom.png b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-custom.png
deleted file mode 100644
index 0ebb9edf..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tumbler-custom.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tumbler-delegate.png b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-delegate.png
deleted file mode 100644
index 5213bcd8..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tumbler-delegate.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tumbler-wrap.gif b/src/imports/controls/doc/images/qtquickcontrols2-tumbler-wrap.gif
deleted file mode 100644
index 8f59eedc..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tumbler-wrap.gif
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-tumbler.png b/src/imports/controls/doc/images/qtquickcontrols2-tumbler.png
deleted file mode 100644
index e22330a6..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-tumbler.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-accent.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-accent.png
deleted file mode 100644
index be1a4a89..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-accent.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-attributes.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-attributes.png
deleted file mode 100644
index 96e9abeb..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-attributes.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-background.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-background.png
deleted file mode 100644
index c91ab14d..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-background.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-button.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-button.png
deleted file mode 100644
index 6c764ec9..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-button.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-dark.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-dark.png
deleted file mode 100644
index 2d6937c7..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-dark.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-foreground.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-foreground.png
deleted file mode 100644
index e06b573b..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-foreground.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-light.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-light.png
deleted file mode 100644
index a6da6f7f..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-light.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-theme.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-theme.png
deleted file mode 100644
index f299b853..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-theme.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-thumbnail.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-thumbnail.png
deleted file mode 100644
index a189ed72..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-thumbnail.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/images/qtquickcontrols2-universal-violet.png b/src/imports/controls/doc/images/qtquickcontrols2-universal-violet.png
deleted file mode 100644
index ec459457..00000000
--- a/src/imports/controls/doc/images/qtquickcontrols2-universal-violet.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/doc/manifest-meta.qdocconf b/src/imports/controls/doc/manifest-meta.qdocconf
deleted file mode 100644
index 3d39e0a1..00000000
--- a/src/imports/controls/doc/manifest-meta.qdocconf
+++ /dev/null
@@ -1,35 +0,0 @@
-# Additional meta information (attributes for matched entries, as well as tags)
-# to be added to manifest.xml files.
-#
-# manifestmeta.filters = <filter1>,<filter2>,...
-#
-# manifestmeta.<filter>.names = <Module1>/<name1>,<Module2>/<name2>,..
-# manifestmeta.<filter>.attributes = <attribute1:value1>,<attribute2:value2>,..
-# manifestmeta.<filter>.tags = <tag1>,<tag2>,..
-#
-# <filter>.names specify all the module/name combinations to apply the
-# attributes/tags to. You can use simple wildcard matching by appending
-# '*' at the end of name.
-#
-# Note: You cannot use operators (+, =, -) in the names.
-#
-# Examples: add a 'isHighlighted' attribute for two 'Analog Clock' examples,
-# add a 'database' tag for QtSql examples, and a 'qt5' tag for all examples
-#
-# manifestmeta.filters = highlighted sql global
-#
-# manifestmeta.highlighted.names = "QtGui/Analog Clock Window Example" \
-# "QtWidgets/Analog Clock Example"
-# manifestmeta.highlighted.attributes = isHighlighted:true
-#
-# manifestmeta.sql.names = "QtSql/*"
-# manifestmeta.sql.tags = database
-#
-# manifestmeta.global.names = *
-# manifestmeta.global.tags = qt5
-
-manifestmeta.highlighted.names = "QtQuickControls2/Qt Quick Controls 2 - Gallery" \
- "QtQuickControls2/Qt Quick Controls 2 - Wearable Demo" \
- "QtQuickControls2/Qt Quick Controls 2 - Text Editor" \
- "QtQuickControls2/Qt Quick Controls 2 - Contact List" \
- "QtQuickControls2/Qt Quick Controls 2 - Side Panel"
diff --git a/src/imports/controls/doc/qtquickcontrols.qdocconf b/src/imports/controls/doc/qtquickcontrols.qdocconf
deleted file mode 100644
index f6798f1f..00000000
--- a/src/imports/controls/doc/qtquickcontrols.qdocconf
+++ /dev/null
@@ -1,104 +0,0 @@
-include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
-include($QT_INSTALL_DOCS/config/exampleurl-qtquickcontrols2.qdocconf)
-include(manifest-meta.qdocconf)
-
-moduleheader = QtQuickControls2
-
-project = QtQuickControls
-description = Qt Quick Controls Reference Documentation
-version = $QT_VERSION
-
-qhp.projects = QtQuickControls
-
-qhp.QtQuickControls.file = qtquickcontrols.qhp
-qhp.QtQuickControls.namespace = org.qt-project.qtquickcontrols.$QT_VERSION_TAG
-qhp.QtQuickControls.virtualFolder = qtquickcontrols
-qhp.QtQuickControls.indexTitle = Qt Quick Controls
-qhp.QtQuickControls.indexRoot =
-
-qhp.QtQuickControls.filterAttributes = qtquickcontrols $QT_VERSION qtrefdoc
-qhp.QtQuickControls.customFilters.Qt.name = QtQuickControls $QT_VERSION
-qhp.QtQuickControls.customFilters.Qt.filterAttributes = qtquickcontrols $QT_VERSION
-
-qhp.QtQuickControls.subprojects = qmltypes classes examples
-qhp.QtQuickControls.subprojects.qmltypes.title = QML Types
-qhp.QtQuickControls.subprojects.qmltypes.indexTitle = Qt Quick Controls QML Types
-qhp.QtQuickControls.subprojects.qmltypes.selectors = qmlclass
-qhp.QtQuickControls.subprojects.qmltypes.sortPages = true
-qhp.QtQuickControls.subprojects.classes.title = C++ Classes
-qhp.QtQuickControls.subprojects.classes.indexTitle = Qt Quick Controls C++ Classes
-qhp.QtQuickControls.subprojects.classes.selectors = class fake:headerfile
-qhp.QtQuickControls.subprojects.classes.sortPages = true
-qhp.QtQuickControls.subprojects.examples.title = Examples
-qhp.QtQuickControls.subprojects.examples.indexTitle = Qt Quick Controls Examples
-qhp.QtQuickControls.subprojects.examples.selectors = fake:example
-
-depends = qtcore qtgui qtdoc qtqml qtquick qtquickdialogs qtquickcontrols1 qtquickextras qmake qtsql qtwidgets qtlabscalendar qtlabsplatform qtgraphicaleffects
-
-# Specify the install path under QT_INSTALL_EXAMPLES
-# Note: paths passed to \example command must contain the parent directory, e.g.
-# \example controls/tabs
-exampledirs += ../../../../examples/quickcontrols2 \
- ../../../quicktemplates2 \
- snippets
-
-examples.fileextensions += "*.conf"
-
-examplesinstallpath = quickcontrols2
-
-headerdirs += ../../../quicktemplates2 \
- ../../../quickcontrols2
-
-sourcedirs += ../../../quicktemplates2 \
- ../../../quickcontrols2 \
- ../../templates/doc/src \
- src
-
-# Exclude .qml files from the doc build to prevent conflicts with .qml files
-# in style-specific directories; all types are documented in .cpp/.qdoc files
-sources.fileextensions = "*.c++ *.cc *.cpp *.cxx *.mm *.qdoc"
-
-imagedirs += images \
- ..
-
-navigation.landingpage = "Qt Quick Controls"
-navigation.qmltypespage = "Qt Quick Controls QML Types"
-navigation.cppclassespage = "Qt Quick Controls C++ Classes"
-
-tagfile = qtquickcontrols.tags
-
-# \styleimport {QtQuick.Controls.Universal 2.0}
-macro.styleimport.HTML = "<table class=\"alignedsummary\"><tbody><tr><td class=\"memItemLeft rightAlign topAlign\"> Import Statement:</td><td class=\"memItemRight bottomAlign\"> import \1</td></tr><tr><td class=\"memItemLeft rightAlign topAlign\"> Since:</td><td class=\"memItemRight bottomAlign\"> \2</td></tr></tbody></table>"
-
-# \styleproperty {Universal.accent} {enumeration} {html-target-id}
-# \target html-target-id
-# This property holds ...
-# (empty line)
-# \endstyleproperty
-macro.styleproperty.HTML = "<div class=\"qmlproto\"><table class=\"qmlname\"><tbody><tr valign=\"top\" class=\"odd\" id=\"\3\"><td class=\"tblQmlPropNode\"><p><span class=\"name\">\1</span> : <span class=\"type\">\2</span></p></td></tr></tbody></table></div>"
-macro.endstyleproperty = "\\br"
-
-# \stylemethod {returntype} {methodname} {argtype} {argname} {html-target-id}
-# \target html-target-id
-# This property holds ...
-# (empty line)
-# \endstylemethod
-macro.stylemethod.HTML = "<div class=\"qmlproto\"><table class=\"qmlname\"><tbody><tr valign=\"top\" class=\"odd\" id=\"\5\"><td class=\"tblQmlFuncNode\"><p><span class=\"type\">\1</span> <span class=\"name\">\2</span>(<span class="type">\3</span> <i>\4</i>)</p></td></tr></tbody></table></div>"
-macro.endstylemethod = "\\br"
-
-# \stylemethod2 {returntype} {methodname} {arg1type} {arg1name} {arg2type} {arg2name} {html-target-id}
-# \target html-target-id
-# This method returns ...
-# (empty line)
-# \endstylemethod2
-macro.stylemethod2.HTML = "<div class=\"qmlproto\"><table class=\"qmlname\"><tbody><tr valign=\"top\" class=\"odd\" id=\"\7\"><td class=\"tblQmlFuncNode\"><p><span class=\"type\">\1</span> <span class=\"name\">\2</span>(<span class="type">\3</span> <i>\4</i>, <span class="type">\5</span> <i>\6</i>)</p></td></tr></tbody></table></div>"
-macro.endstylemethod2 = "\\br"
-
-# \stylecolor {#6A00FF} {(default)}
-macro.stylecolor.HTML = "<div style=\"padding:10px;color:#fff;background:\1;\">\1 \2</div>"
-
-macro.nbsp.HTML = "&nbsp;"
-
-#Add output suffix to the html filenames
-outputsuffixes = QML
-outputsuffixes.QML = 2
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-action.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-action.qml
deleted file mode 100644
index 11c7e802..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-action.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- //! [action]
- Action {
- id: copyAction
- text: qsTr("&Copy")
- icon.name: "edit-copy"
- shortcut: StandardKey.Copy
- onTriggered: window.activeFocusItem.copy()
- }
- //! [action]
-
- //! [toolbutton]
- ToolButton {
- id: toolButton
- action: copyAction
- }
- //! [toolbutton]
-
- //! [menuitem]
- MenuItem {
- id: menuItem
- action: copyAction
- text: qsTr("&Copy selected Text")
- }
- //! [menuitem]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-busyindicator-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-busyindicator-custom.qml
deleted file mode 100644
index 93ba9c44..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-busyindicator-custom.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-BusyIndicator {
- id: control
-
- contentItem: Item {
- implicitWidth: 64
- implicitHeight: 64
-
- Item {
- id: item
- x: parent.width / 2 - 32
- y: parent.height / 2 - 32
- width: 64
- height: 64
- opacity: control.running ? 1 : 0
-
- Behavior on opacity {
- OpacityAnimator {
- duration: 250
- }
- }
-
- RotationAnimator {
- target: item
- running: control.visible && control.running
- from: 0
- to: 360
- loops: Animation.Infinite
- duration: 1250
- }
-
- Repeater {
- id: repeater
- model: 6
-
- Rectangle {
- x: item.width / 2 - width / 2
- y: item.height / 2 - height / 2
- implicitWidth: 10
- implicitHeight: 10
- radius: 5
- color: "#21be2b"
- transform: [
- Translate {
- y: -Math.min(item.width, item.height) * 0.5 + 5
- },
- Rotation {
- angle: index / repeater.count * 360
- origin.x: 5
- origin.y: 5
- }
- ]
- }
- }
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-button-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-button-custom.qml
deleted file mode 100644
index 3145a6ef..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-button-custom.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Button {
- id: control
- text: qsTr("Button")
-
- contentItem: Text {
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- opacity: enabled ? 1 : 0.3
- border.color: control.down ? "#17a81a" : "#21be2b"
- border.width: 1
- radius: 2
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-button-icononly.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-button-icononly.qml
deleted file mode 100644
index f6559376..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-button-icononly.qml
+++ /dev/null
@@ -1,34 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Button {
- icon.source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
- display: Button.IconOnly
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-button-textbesideicon.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-button-textbesideicon.qml
deleted file mode 100644
index bc99bba7..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-button-textbesideicon.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Button {
- text: "Button"
- icon.source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
- display: Button.TextBesideIcon
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-button-textonly.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-button-textonly.qml
deleted file mode 100644
index 1ff1f0a8..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-button-textonly.qml
+++ /dev/null
@@ -1,34 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Button {
- text: "Button"
- display: Button.TextOnly
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-checkbox-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-checkbox-custom.qml
deleted file mode 100644
index 806655a3..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-checkbox-custom.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-CheckBox {
- id: control
- text: qsTr("CheckBox")
- checked: true
-
- indicator: Rectangle {
- implicitWidth: 26
- implicitHeight: 26
- x: control.leftPadding
- y: parent.height / 2 - height / 2
- radius: 3
- border.color: control.down ? "#17a81a" : "#21be2b"
-
- Rectangle {
- width: 14
- height: 14
- x: 6
- y: 6
- radius: 2
- color: control.down ? "#17a81a" : "#21be2b"
- visible: control.checked
- }
- }
-
- contentItem: Text {
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- verticalAlignment: Text.AlignVCenter
- leftPadding: control.indicator.width + control.spacing
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-checkbox-group.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-checkbox-group.qml
deleted file mode 100644
index a32e9f5f..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-checkbox-group.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-Column {
- ButtonGroup {
- id: childGroup
- exclusive: false
- checkState: parentBox.checkState
- }
-
- CheckBox {
- id: parentBox
- text: qsTr("Parent")
- checkState: childGroup.checkState
- }
-
- CheckBox {
- checked: true
- text: qsTr("Child 1")
- leftPadding: indicator.width
- ButtonGroup.group: childGroup
- }
-
- CheckBox {
- text: qsTr("Child 2")
- leftPadding: indicator.width
- ButtonGroup.group: childGroup
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-checkdelegate-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-checkdelegate-custom.qml
deleted file mode 100644
index b8fbbf69..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-checkdelegate-custom.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-CheckDelegate {
- id: control
- text: qsTr("CheckDelegate")
- checked: true
-
- contentItem: Text {
- rightPadding: control.indicator.width + control.spacing
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- indicator: Rectangle {
- implicitWidth: 26
- implicitHeight: 26
- x: control.width - width - control.rightPadding
- y: control.topPadding + control.availableHeight / 2 - height / 2
- radius: 3
- color: "transparent"
- border.color: control.down ? "#17a81a" : "#21be2b"
-
- Rectangle {
- width: 14
- height: 14
- x: 6
- y: 6
- radius: 2
- color: control.down ? "#17a81a" : "#21be2b"
- visible: control.checked
- }
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- visible: control.down || control.highlighted
- color: control.down ? "#bdbebf" : "#eeeeee"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-accepted.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-accepted.qml
deleted file mode 100644
index 9f2ad928..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-accepted.qml
+++ /dev/null
@@ -1,45 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [combobox]
-ComboBox {
- editable: true
- model: ListModel {
- id: model
- ListElement { text: "Banana" }
- ListElement { text: "Apple" }
- ListElement { text: "Coconut" }
- }
- onAccepted: {
- if (find(editText) === -1)
- model.append({text: editText})
- }
-}
-//! [combobox]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-custom.qml
deleted file mode 100644
index b902dab1..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-custom.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ComboBox {
- id: control
- model: ["First", "Second", "Third"]
-
- delegate: ItemDelegate {
- width: control.width
- contentItem: Text {
- text: modelData
- color: "#21be2b"
- font: control.font
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
- highlighted: control.highlightedIndex === index
- }
-
- indicator: Canvas {
- id: canvas
- x: control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
- width: 12
- height: 8
- contextType: "2d"
-
- Connections {
- target: control
- function onPressedChanged() { canvas.requestPaint(); }
- }
-
- onPaint: {
- context.reset();
- context.moveTo(0, 0);
- context.lineTo(width, 0);
- context.lineTo(width / 2, height);
- context.closePath();
- context.fillStyle = control.pressed ? "#17a81a" : "#21be2b";
- context.fill();
- }
- }
-
- contentItem: Text {
- leftPadding: 0
- rightPadding: control.indicator.width + control.spacing
-
- text: control.displayText
- font: control.font
- color: control.pressed ? "#17a81a" : "#21be2b"
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- background: Rectangle {
- implicitWidth: 120
- implicitHeight: 40
- border.color: control.pressed ? "#17a81a" : "#21be2b"
- border.width: control.visualFocus ? 2 : 1
- radius: 2
- }
-
- popup: Popup {
- y: control.height - 1
- width: control.width
- implicitHeight: contentItem.implicitHeight
- padding: 1
-
- contentItem: ListView {
- clip: true
- implicitHeight: contentHeight
- model: control.popup.visible ? control.delegateModel : null
- currentIndex: control.highlightedIndex
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- background: Rectangle {
- border.color: "#21be2b"
- radius: 2
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-valuerole.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-valuerole.qml
deleted file mode 100644
index 4d7ae3d3..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-combobox-valuerole.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.14
-import QtQuick.Controls 2.14
-
-//! [file]
-ApplicationWindow {
- width: 640
- height: 480
- visible: true
-
- // Used as an example of a backend - this would usually be
- // e.g. a C++ type exposed to QML.
- QtObject {
- id: backend
- property int modifier
- }
-
- ComboBox {
- textRole: "text"
- valueRole: "value"
- // When an item is selected, update the backend.
- onActivated: backend.modifier = currentValue
- // Set the initial currentIndex to the value stored in the backend.
- Component.onCompleted: currentIndex = indexOfValue(backend.modifier)
- model: [
- { value: Qt.NoModifier, text: qsTr("No modifier") },
- { value: Qt.ShiftModifier, text: qsTr("Shift") },
- { value: Qt.ControlModifier, text: qsTr("Control") }
- ]
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-delaybutton-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-delaybutton-custom.qml
deleted file mode 100644
index 4bcbaa67..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-delaybutton-custom.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-DelayButton {
- id: control
- checked: true
- text: qsTr("Delay\nButton")
-
- contentItem: Text {
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: "white"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 100
- opacity: enabled ? 1 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- radius: size / 2
-
- readonly property real size: Math.min(control.width, control.height)
- width: size
- height: size
- anchors.centerIn: parent
-
- Canvas {
- id: canvas
- anchors.fill: parent
-
- Connections {
- target: control
- function onProgressChanged() { canvas.requestPaint(); }
- }
-
- onPaint: {
- var ctx = getContext("2d")
- ctx.clearRect(0, 0, width, height)
- ctx.strokeStyle = "white"
- ctx.lineWidth = parent.size / 20
- ctx.beginPath()
- var startAngle = Math.PI / 5 * 3
- var endAngle = startAngle + control.progress * Math.PI / 5 * 9
- ctx.arc(width / 2, height / 2, width / 2 - ctx.lineWidth / 2 - 2, startAngle, endAngle)
- ctx.stroke()
- }
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-dial-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-dial-custom.qml
deleted file mode 100644
index 0221350d..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-dial-custom.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Dial {
- id: control
- background: Rectangle {
- x: control.width / 2 - width / 2
- y: control.height / 2 - height / 2
- width: Math.max(64, Math.min(control.width, control.height))
- height: width
- color: "transparent"
- radius: width / 2
- border.color: control.pressed ? "#17a81a" : "#21be2b"
- opacity: control.enabled ? 1 : 0.3
- }
-
- handle: Rectangle {
- id: handleItem
- x: control.background.x + control.background.width / 2 - width / 2
- y: control.background.y + control.background.height / 2 - height / 2
- width: 16
- height: 16
- color: control.pressed ? "#17a81a" : "#21be2b"
- radius: 8
- antialiasing: true
- opacity: control.enabled ? 1 : 0.3
- transform: [
- Translate {
- y: -Math.min(control.background.width, control.background.height) * 0.4 + handleItem.height / 2
- },
- Rotation {
- angle: control.angle
- origin.x: handleItem.width / 2
- origin.y: handleItem.height / 2
- }
- ]
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-dialog-modal.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-dialog-modal.qml
deleted file mode 100644
index c8a71e5b..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-dialog-modal.qml
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: dialog.implicitWidth
- height: dialog.implicitHeight
-//! [1]
-Dialog {
- id: dialog
- modal: true
- standardButtons: Dialog.Ok
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-dialog-modeless.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-dialog-modeless.qml
deleted file mode 100644
index be0e6f02..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-dialog-modeless.qml
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: dialog.implicitWidth
- height: dialog.implicitHeight
-//! [1]
-Dialog {
- id: dialog
- modal: false
- standardButtons: Dialog.Ok
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-dialog.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-dialog.qml
deleted file mode 100644
index 2953c371..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-dialog.qml
+++ /dev/null
@@ -1,44 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: dialog.implicitWidth
- height: dialog.implicitHeight
-//! [1]
-Dialog {
- id: dialog
- title: "Title"
- standardButtons: Dialog.Ok | Dialog.Cancel
-
- onAccepted: console.log("Ok clicked")
- onRejected: console.log("Cancel clicked")
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-dialogbuttonbox-attached.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-dialogbuttonbox-attached.qml
deleted file mode 100644
index f71f91cb..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-dialogbuttonbox-attached.qml
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-DialogButtonBox {
- Button {
- text: qsTr("Save")
- DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
- }
- Button {
- text: qsTr("Close")
- DialogButtonBox.buttonRole: DialogButtonBox.DestructiveRole
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-dialogbuttonbox.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-dialogbuttonbox.qml
deleted file mode 100644
index adfd8035..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-dialogbuttonbox.qml
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-DialogButtonBox {
- standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel
-
- onAccepted: console.log("Ok clicked")
- onRejected: console.log("Cancel clicked")
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-frame-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-frame-custom.qml
deleted file mode 100644
index 0e90f0aa..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-frame-custom.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Frame {
- background: Rectangle {
- color: "transparent"
- border.color: "#21be2b"
- radius: 2
- }
-
- Label {
- text: qsTr("Content goes here!")
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-frame.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-frame.qml
deleted file mode 100644
index 8f8f9c23..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-frame.qml
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-//! [1]
-Frame {
- ColumnLayout {
- anchors.fill: parent
- CheckBox { text: qsTr("E-mail") }
- CheckBox { text: qsTr("Calendar") }
- CheckBox { text: qsTr("Contacts") }
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox-checkable.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox-checkable.qml
deleted file mode 100644
index 5f6ee591..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox-checkable.qml
+++ /dev/null
@@ -1,48 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-//! [1]
-GroupBox {
- label: CheckBox {
- id: checkBox
- checked: true
- text: qsTr("Synchronize")
- }
-
- ColumnLayout {
- anchors.fill: parent
- enabled: checkBox.checked
- CheckBox { text: qsTr("E-mail") }
- CheckBox { text: qsTr("Calendar") }
- CheckBox { text: qsTr("Contacts") }
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox-custom.qml
deleted file mode 100644
index 7ccb55c3..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox-custom.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-GroupBox {
- id: control
- title: qsTr("GroupBox")
-
- background: Rectangle {
- y: control.topPadding - control.bottomPadding
- width: parent.width
- height: parent.height - control.topPadding + control.bottomPadding
- color: "transparent"
- border.color: "#21be2b"
- radius: 2
- }
-
- label: Label {
- x: control.leftPadding
- width: control.availableWidth
- text: control.title
- color: "#21be2b"
- elide: Text.ElideRight
- }
-
- Label {
- text: qsTr("Content goes here!")
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox.qml
deleted file mode 100644
index 67c68cf3..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-groupbox.qml
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-//! [1]
-GroupBox {
- title: qsTr("Synchronize")
- ColumnLayout {
- anchors.fill: parent
- CheckBox { text: qsTr("E-mail") }
- CheckBox { text: qsTr("Calendar") }
- CheckBox { text: qsTr("Contacts") }
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-itemdelegate-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-itemdelegate-custom.qml
deleted file mode 100644
index d6ec5f78..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-itemdelegate-custom.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ItemDelegate {
- id: control
- text: qsTr("ItemDelegate")
-
- contentItem: Text {
- rightPadding: control.spacing
- text: control.text
- font: control.font
- color: control.enabled ? (control.down ? "#17a81a" : "#21be2b") : "#bdbebf"
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- opacity: enabled ? 1 : 0.3
- color: control.down ? "#dddedf" : "#eeeeee"
-
- Rectangle {
- width: parent.width
- height: 1
- color: control.down ? "#17a81a" : "#21be2b"
- anchors.bottom: parent.bottom
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-itemdelegate.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-itemdelegate.qml
deleted file mode 100644
index 8f483ed9..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-itemdelegate.qml
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-ListView {
- width: 160
- height: 240
-
- model: Qt.fontFamilies()
-
- delegate: ItemDelegate {
- text: modelData
- width: parent.width
- onClicked: console.log("clicked:", modelData)
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-label-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-label-custom.qml
deleted file mode 100644
index e984fc71..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-label-custom.qml
+++ /dev/null
@@ -1,36 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Label {
- text: qsTr("Label")
- color: "#21be2b"
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-label.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-label.qml
deleted file mode 100644
index fb68bb04..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-label.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-Label {
- text: "Label"
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-material-accent.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-material-accent.qml
deleted file mode 100644
index 5191efce..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-material-accent.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-Pane {
- padding: 4
-
-//! [1]
-Button {
- text: qsTr("Button")
- highlighted: true
- Material.accent: Material.Orange
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-material-background.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-material-background.qml
deleted file mode 100644
index cdbc16cc..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-material-background.qml
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-Pane {
- padding: 4
-
-//! [1]
-Button {
- text: qsTr("Button")
- highlighted: true
- Material.background: Material.Teal
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-material-elevation.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-material-elevation.qml
deleted file mode 100644
index e15bc216..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-material-elevation.qml
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-Pane {
- contentWidth: 120
- contentHeight: 120
- padding: 10
- bottomPadding: 20
-
-//! [1]
-Pane {
- width: 120
- height: 120
-
- Material.elevation: 6
-
- Label {
- text: qsTr("I'm a card!")
- anchors.centerIn: parent
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-material-foreground.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-material-foreground.qml
deleted file mode 100644
index 003b5624..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-material-foreground.qml
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-Pane {
- padding: 4
-
-//! [1]
-Button {
- text: qsTr("Button")
- Material.foreground: Material.Pink
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-material-theme.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-material-theme.qml
deleted file mode 100644
index 955290fd..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-material-theme.qml
+++ /dev/null
@@ -1,44 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-Pane {
- padding: 10
-
-//! [1]
-Pane {
- Material.theme: Material.Dark
-
- Button {
- text: qsTr("Button")
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-material-variant.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-material-variant.qml
deleted file mode 100644
index ce8a0356..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-material-variant.qml
+++ /dev/null
@@ -1,212 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Layouts 1.12
-
-Pane {
- implicitWidth: 400
- implicitHeight: 600
- padding: 10
-
- readonly property color measurementColor: "darkorange"
- readonly property int barLeftMargin: 10
- readonly property int textTopMargin: 12
-
- Component {
- id: measurementComponent
-
- Rectangle {
- color: measurementColor
- width: 1
- height: parent.height
-
- Rectangle {
- width: 5
- height: 1
- color: measurementColor
- anchors.horizontalCenter: parent.horizontalCenter
- }
-
- Rectangle {
- width: 5
- height: 1
- color: measurementColor
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- }
-
- Text {
- x: 8
- text: parent.height
- height: parent.height
- color: measurementColor
- verticalAlignment: Text.AlignVCenter
- }
- }
- }
-
- ColumnLayout {
- anchors.fill: parent
- spacing: 20
-
- ColumnLayout {
- spacing: textTopMargin
-
- Button {
- id: button
- text: qsTr("Button")
-
- Loader {
- sourceComponent: measurementComponent
- height: parent.height
- anchors.left: parent.right
- anchors.leftMargin: barLeftMargin
- }
-
- }
- Text {
- text: "Roboto " + button.font.pixelSize
- color: measurementColor
- }
- }
-
- ColumnLayout {
- spacing: textTopMargin
-
- ItemDelegate {
- id: itemDelegate
- text: qsTr("ItemDelegate")
-
- Loader {
- sourceComponent: measurementComponent
- height: parent.height
- anchors.left: parent.right
- anchors.leftMargin: barLeftMargin
- }
-
- }
- Text {
- text: "Roboto " + itemDelegate.font.pixelSize
- color: measurementColor
- }
- }
-
- ColumnLayout {
- spacing: textTopMargin
-
- CheckDelegate {
- id: checkDelegate
- text: qsTr("CheckDelegate")
-
- Loader {
- sourceComponent: measurementComponent
- height: parent.height
- anchors.left: parent.right
- anchors.leftMargin: barLeftMargin
- }
-
- }
- Text {
- text: "Roboto " + checkDelegate.font.pixelSize
- color: measurementColor
- }
- }
-
- ColumnLayout {
- spacing: textTopMargin
-
- RadioDelegate {
- id: radioDelegate
- text: qsTr("RadioDelegate")
-
- Loader {
- sourceComponent: measurementComponent
- height: parent.height
- anchors.left: parent.right
- anchors.leftMargin: barLeftMargin
- }
-
- }
- Text {
- text: "Roboto " + radioDelegate.font.pixelSize
- color: measurementColor
- }
- }
-
- ColumnLayout {
- spacing: textTopMargin
-
- ComboBox {
- id: comboBox
- model: [ qsTr("ComboBox") ]
-
- Loader {
- sourceComponent: measurementComponent
- height: parent.height
- anchors.left: parent.right
- anchors.leftMargin: barLeftMargin
- }
-
- }
- Text {
- text: "Roboto " + comboBox.font.pixelSize
- color: measurementColor
- }
- }
-
- ColumnLayout {
- spacing: textTopMargin
-
- Item {
- implicitWidth: groupBox.implicitWidth
- implicitHeight: groupBox.implicitHeight
-
- GroupBox {
- id: groupBox
- title: qsTr("GroupBox")
- }
- Loader {
- sourceComponent: measurementComponent
- height: parent.height
- anchors.left: parent.right
- anchors.leftMargin: barLeftMargin
- }
- }
- Text {
- text: "Roboto " + groupBox.font.pixelSize
- color: measurementColor
- }
- }
-
- Item {
- Layout.fillHeight: true
- }
- }
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-menu-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-menu-custom.qml
deleted file mode 100644
index 5a702b9f..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-menu-custom.qml
+++ /dev/null
@@ -1,133 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: menu.width
- height: menu.height
- visible: true
-
- Component.onCompleted: menu.popup(menu.itemAt(1))
-
-// Indent it like this so that the indenting in the generated doc is normal.
-Menu {
- id: menu
-
- Action { text: qsTr("Tool Bar"); checkable: true }
- Action { text: qsTr("Side Bar"); checkable: true; checked: true }
- Action { text: qsTr("Status Bar"); checkable: true; checked: true }
-
- MenuSeparator {
- contentItem: Rectangle {
- implicitWidth: 200
- implicitHeight: 1
- color: "#21be2b"
- }
- }
-
- Menu {
- title: qsTr("Advanced")
- // ...
- }
-
- topPadding: 2
- bottomPadding: 2
-
- delegate: MenuItem {
- id: menuItem
- implicitWidth: 200
- implicitHeight: 40
-
- arrow: Canvas {
- x: parent.width - width
- implicitWidth: 40
- implicitHeight: 40
- visible: menuItem.subMenu
- onPaint: {
- var ctx = getContext("2d")
- ctx.fillStyle = menuItem.highlighted ? "#ffffff" : "#21be2b"
- ctx.moveTo(15, 15)
- ctx.lineTo(width - 15, height / 2)
- ctx.lineTo(15, height - 15)
- ctx.closePath()
- ctx.fill()
- }
- }
-
- indicator: Item {
- implicitWidth: 40
- implicitHeight: 40
- Rectangle {
- width: 26
- height: 26
- anchors.centerIn: parent
- visible: menuItem.checkable
- border.color: "#21be2b"
- radius: 3
- Rectangle {
- width: 14
- height: 14
- anchors.centerIn: parent
- visible: menuItem.checked
- color: "#21be2b"
- radius: 2
- }
- }
- }
-
- contentItem: Text {
- leftPadding: menuItem.indicator.width
- rightPadding: menuItem.arrow.width
- text: menuItem.text
- font: menuItem.font
- opacity: enabled ? 1.0 : 0.3
- color: menuItem.highlighted ? "#ffffff" : "#21be2b"
- horizontalAlignment: Text.AlignLeft
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
- opacity: enabled ? 1 : 0.3
- color: menuItem.highlighted ? "#21be2b" : "transparent"
- }
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
- color: "#ffffff"
- border.color: "#21be2b"
- radius: 2
- }
-}
-} //! [eof]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-menubar-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-menubar-custom.qml
deleted file mode 100644
index ea27acf6..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-menubar-custom.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- visible: true
- width: menuBar.implicitWidth
- height: menuBar.height
-
- Component.onCompleted: menuBar.itemAt(1).highlighted = true
-
- header:
-
-// Indent it like this so that the indenting in the generated doc is normal.
-MenuBar {
- id: menuBar
-
- Menu { title: qsTr("File") }
- Menu { title: qsTr("Edit") }
- Menu { title: qsTr("View") }
- Menu { title: qsTr("Help") }
-
- delegate: MenuBarItem {
- id: menuBarItem
-
- contentItem: Text {
- text: menuBarItem.text
- font: menuBarItem.font
- opacity: enabled ? 1.0 : 0.3
- color: menuBarItem.highlighted ? "#ffffff" : "#21be2b"
- horizontalAlignment: Text.AlignLeft
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- background: Rectangle {
- implicitWidth: 40
- implicitHeight: 40
- opacity: enabled ? 1 : 0.3
- color: menuBarItem.highlighted ? "#21be2b" : "transparent"
- }
- }
-
- background: Rectangle {
- implicitWidth: 40
- implicitHeight: 40
- color: "#ffffff"
-
- Rectangle {
- color: "#21be2b"
- width: parent.width
- height: 1
- anchors.bottom: parent.bottom
- }
- }
-}
-} //! [eof]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-menubar.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-menubar.qml
deleted file mode 100644
index 87371877..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-menubar.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [begin]
-ApplicationWindow {
- id: window
- width: 320
- height: 260
- visible: true
-
- //! [skipfrom]
- Component.onCompleted: {
- menuBar.itemAt(0).triggered()
- menuBar.itemAt(0).menu.itemAt(2).highlighted = true
- }
- //! [skipto]
-
- menuBar: MenuBar {
- Menu {
- title: qsTr("&File")
- Action { text: qsTr("&New...") }
- Action { text: qsTr("&Open...") }
- Action { text: qsTr("&Save") }
- Action { text: qsTr("Save &As...") }
- MenuSeparator { }
- Action { text: qsTr("&Quit") }
- }
- Menu {
- title: qsTr("&Edit")
- Action { text: qsTr("Cu&t") }
- Action { text: qsTr("&Copy") }
- Action { text: qsTr("&Paste") }
- }
- Menu {
- title: qsTr("&Help")
- Action { text: qsTr("&About") }
- }
- }
-}
-//! [end]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-menuseparator-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-menuseparator-custom.qml
deleted file mode 100644
index ea2d6ae7..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-menuseparator-custom.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- id: window
- width: menu.contentItem.width
- height: menu.contentItem.height
- visible: true
-
-// Indent it like this so that the indenting in the generated doc is normal.
-Menu {
- id: menu
- contentItem.parent: window
-
- MenuItem {
- text: qsTr("New...")
- }
- MenuItem {
- text: qsTr("Open...")
- }
- MenuItem {
- text: qsTr("Save")
- }
-
- MenuSeparator {
- padding: 0
- topPadding: 12
- bottomPadding: 12
- contentItem: Rectangle {
- implicitWidth: 200
- implicitHeight: 1
- color: "#1E000000"
- }
- }
-
- MenuItem {
- text: qsTr("Exit")
- }
-}
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-menuseparator.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-menuseparator.qml
deleted file mode 100644
index 0712c5fa..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-menuseparator.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- id: window
- width: menu.contentItem.width
- height: menu.contentItem.height
- visible: true
-
-// Indent it like this so that the indenting in the generated doc is normal.
-Menu {
- id: menu
- contentItem.parent: window
-
- MenuItem {
- text: qsTr("New...")
- }
- MenuItem {
- text: qsTr("Open...")
- }
- MenuItem {
- text: qsTr("Save")
- }
-
- MenuSeparator {}
-
- MenuItem {
- text: qsTr("Exit")
- }
-}
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-overlay-modal.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-overlay-modal.qml
deleted file mode 100644
index 8913e5bd..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-overlay-modal.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.2
-
-Item {
- id: root
- width: 200
- height: 200
-
- Binding {
- target: popup
- property: "visible"
- value: root.Window.active
- }
-//! [1]
-Popup {
- id: popup
- width: 400
- height: 400
- modal: true
- visible: true
-
- Overlay.modal: Rectangle {
- color: "#aacfdbe7"
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-overlay-modeless.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-overlay-modeless.qml
deleted file mode 100644
index 96fb606f..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-overlay-modeless.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.2
-
-Item {
- id: root
- width: 200
- height: 200
-
- Binding {
- target: popup
- property: "visible"
- value: root.Window.active
- }
-//! [1]
-Popup {
- id: popup
- width: 400
- height: 400
- dim: true
- visible: true
-
- Overlay.modeless: Rectangle {
- color: "#aacfdbe7"
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator-custom.qml
deleted file mode 100644
index 7f828d93..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator-custom.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-PageIndicator {
- id: control
- count: 5
- currentIndex: 2
-
- delegate: Rectangle {
- implicitWidth: 8
- implicitHeight: 8
-
- radius: width / 2
- color: "#21be2b"
-
- opacity: index === control.currentIndex ? 0.95 : pressed ? 0.7 : 0.45
-
- Behavior on opacity {
- OpacityAnimator {
- duration: 100
- }
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator-interactive.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator-interactive.qml
deleted file mode 100644
index 0a40c8b0..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator-interactive.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls 2.12
-
-Pane {
-//! [1]
-SwipeView {
- id: view
- currentIndex: pageIndicator.currentIndex
- anchors.fill: parent
-
- Page {
- title: qsTr("Home")
- }
- Page {
- title: qsTr("Discover")
- }
- Page {
- title: qsTr("Activity")
- }
-}
-
-PageIndicator {
- id: pageIndicator
- interactive: true
- count: view.count
- currentIndex: view.currentIndex
-
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator.qml
deleted file mode 100644
index 0eeec4d8..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-pageindicator.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-PageIndicator {
- count: 5
- currentIndex: 2
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-pane-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-pane-custom.qml
deleted file mode 100644
index dfe2eaa4..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-pane-custom.qml
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Pane {
- background: Rectangle {
- color: "#eeeeee"
- }
-
- Label {
- text: qsTr("Content goes here!")
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-pane.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-pane.qml
deleted file mode 100644
index 9ed7a5b4..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-pane.qml
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-//! [1]
-Pane {
- ColumnLayout {
- anchors.fill: parent
- CheckBox { text: qsTr("E-mail") }
- CheckBox { text: qsTr("Calendar") }
- CheckBox { text: qsTr("Contacts") }
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-popup-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-popup-custom.qml
deleted file mode 100644
index 9408cd66..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-popup-custom.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.2
-
-Item {
- id: root
- width: 200
- height: 200
-
- Binding {
- target: popup
- property: "visible"
- value: root.Window.active
- }
-//! [1]
-Popup {
- id: popup
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 200
- border.color: "#444"
- }
- contentItem: Column {}
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-popup.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-popup.qml
deleted file mode 100644
index 6d46b810..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-popup.qml
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
-//! [centerIn]
-ApplicationWindow {
- id: window
- // ...
-
- Pane {
- // ...
-
- Popup {
- anchors.centerIn: Overlay.overlay
- }
- }
-}
-//! [centerIn]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-progressbar-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-progressbar-custom.qml
deleted file mode 100644
index e23c1438..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-progressbar-custom.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ProgressBar {
- id: control
- value: 0.5
- padding: 2
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 6
- color: "#e6e6e6"
- radius: 3
- }
-
- contentItem: Item {
- implicitWidth: 200
- implicitHeight: 4
-
- Rectangle {
- width: control.visualPosition * parent.width
- height: parent.height
- radius: 2
- color: "#17a81a"
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-radiobutton-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-radiobutton-custom.qml
deleted file mode 100644
index 1361f09e..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-radiobutton-custom.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-RadioButton {
- id: control
- text: qsTr("RadioButton")
- checked: true
-
- indicator: Rectangle {
- implicitWidth: 26
- implicitHeight: 26
- x: control.leftPadding
- y: parent.height / 2 - height / 2
- radius: 13
- border.color: control.down ? "#17a81a" : "#21be2b"
-
- Rectangle {
- width: 14
- height: 14
- x: 6
- y: 6
- radius: 7
- color: control.down ? "#17a81a" : "#21be2b"
- visible: control.checked
- }
- }
-
- contentItem: Text {
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- verticalAlignment: Text.AlignVCenter
- leftPadding: control.indicator.width + control.spacing
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-radiodelegate-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-radiodelegate-custom.qml
deleted file mode 100644
index 27ad9da2..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-radiodelegate-custom.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-RadioDelegate {
- id: control
- text: qsTr("RadioDelegate")
- checked: true
-
- contentItem: Text {
- rightPadding: control.indicator.width + control.spacing
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- indicator: Rectangle {
- implicitWidth: 26
- implicitHeight: 26
- x: control.width - width - control.rightPadding
- y: parent.height / 2 - height / 2
- radius: 13
- color: "transparent"
- border.color: control.down ? "#17a81a" : "#21be2b"
-
- Rectangle {
- width: 14
- height: 14
- x: 6
- y: 6
- radius: 7
- color: control.down ? "#17a81a" : "#21be2b"
- visible: control.checked
- }
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- visible: control.down || control.highlighted
- color: control.down ? "#bdbebf" : "#eeeeee"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-rangeslider-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-rangeslider-custom.qml
deleted file mode 100644
index 1c5db214..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-rangeslider-custom.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-RangeSlider {
- id: control
- first.value: 0.25
- second.value: 0.75
-
- background: Rectangle {
- x: control.leftPadding
- y: control.topPadding + control.availableHeight / 2 - height / 2
- implicitWidth: 200
- implicitHeight: 4
- width: control.availableWidth
- height: implicitHeight
- radius: 2
- color: "#bdbebf"
-
- Rectangle {
- x: control.first.visualPosition * parent.width
- width: control.second.visualPosition * parent.width - x
- height: parent.height
- color: "#21be2b"
- radius: 2
- }
- }
-
- first.handle: Rectangle {
- x: control.leftPadding + first.visualPosition * (control.availableWidth - width)
- y: control.topPadding + control.availableHeight / 2 - height / 2
- implicitWidth: 26
- implicitHeight: 26
- radius: 13
- color: first.pressed ? "#f0f0f0" : "#f6f6f6"
- border.color: "#bdbebf"
- }
-
- second.handle: Rectangle {
- x: control.leftPadding + second.visualPosition * (control.availableWidth - width)
- y: control.topPadding + control.availableHeight / 2 - height / 2
- implicitWidth: 26
- implicitHeight: 26
- radius: 13
- color: second.pressed ? "#f0f0f0" : "#f6f6f6"
- border.color: "#bdbebf"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-roundbutton.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-roundbutton.qml
deleted file mode 100644
index 4f727344..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-roundbutton.qml
+++ /dev/null
@@ -1,36 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-RoundButton {
- text: "\u2713" // Unicode Character 'CHECK MARK'
- onClicked: textArea.readOnly = true
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-active.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-active.qml
deleted file mode 100644
index a4a66e93..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-active.qml
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 100
- height: 100
-
- //! [1]
- Flickable {
- anchors.fill: parent
-
- contentWidth: parent.width * 2
- contentHeight: parent.height * 2
-
- ScrollBar.horizontal: ScrollBar { id: hbar; active: vbar.active }
- ScrollBar.vertical: ScrollBar { id: vbar; active: hbar.active }
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-custom.qml
deleted file mode 100644
index 5efcb461..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-custom.qml
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollBar {
- id: control
- size: 0.3
- position: 0.2
- active: true
- orientation: Qt.Vertical
-
- contentItem: Rectangle {
- implicitWidth: 6
- implicitHeight: 100
- radius: width / 2
- color: control.pressed ? "#81e889" : "#c2f4c6"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-non-attached.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-non-attached.qml
deleted file mode 100644
index 43e2853e..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-non-attached.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 200
- height: 200
-
-//! [1]
-Rectangle {
- id: frame
- clip: true
- width: 160
- height: 160
- border.color: "black"
- anchors.centerIn: parent
-
- Text {
- id: content
- text: "ABC"
- font.pixelSize: 160
- x: -hbar.position * width
- y: -vbar.position * height
- }
-
- ScrollBar {
- id: vbar
- hoverEnabled: true
- active: hovered || pressed
- orientation: Qt.Vertical
- size: frame.height / content.height
- anchors.top: parent.top
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- }
-
- ScrollBar {
- id: hbar
- hoverEnabled: true
- active: hovered || pressed
- orientation: Qt.Horizontal
- size: frame.width / content.width
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- }
-}
-//! [1]
-
-Component.onCompleted: {
- hbar.active = true
- vbar.active = true
-}
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-policy.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-policy.qml
deleted file mode 100644
index 942722a5..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollbar-policy.qml
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-Flickable {
- contentHeight: 2000
- ScrollBar.vertical: ScrollBar {
- policy: ScrollBar.AlwaysOn
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-active.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-active.qml
deleted file mode 100644
index 6cb749e6..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-active.qml
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 100
- height: 100
-
- //! [1]
- Flickable {
- anchors.fill: parent
-
- contentWidth: parent.width * 2
- contentHeight: parent.height * 2
-
- ScrollIndicator.horizontal: ScrollIndicator { id: hbar; active: vbar.active }
- ScrollIndicator.vertical: ScrollIndicator { id: vbar; active: hbar.active }
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-custom.qml
deleted file mode 100644
index 616c877d..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-custom.qml
+++ /dev/null
@@ -1,45 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollIndicator {
- id: control
- size: 0.3
- position: 0.2
- active: true
- orientation: Qt.Vertical
-
- contentItem: Rectangle {
- implicitWidth: 2
- implicitHeight: 100
- color: "#c2f4c6"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-non-attached.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-non-attached.qml
deleted file mode 100644
index f1b99bca..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollindicator-non-attached.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 200
- height: 200
-
-//! [1]
-Rectangle {
- id: frame
- clip: true
- width: 160
- height: 160
- border.color: "black"
- anchors.centerIn: parent
-
- Text {
- id: content
- text: "ABC"
- font.pixelSize: 169
-
- MouseArea {
- id: mouseArea
- drag.target: content
- drag.minimumX: frame.width - width
- drag.minimumY: frame.height - height
- drag.maximumX: 0
- drag.maximumY: 0
- anchors.fill: content
- }
- }
-
- ScrollIndicator {
- id: verticalIndicator
- active: mouseArea.pressed
- orientation: Qt.Vertical
- size: frame.height / content.height
- position: -content.y / content.height
- anchors { top: parent.top; right: parent.right; bottom: parent.bottom }
- }
-
- ScrollIndicator {
- id: horizontalIndicator
- active: mouseArea.pressed
- orientation: Qt.Horizontal
- size: frame.width / content.width
- position: -content.x / content.width
- anchors { left: parent.left; right: parent.right; bottom: parent.bottom }
- }
-}
-//! [1]
-
-Component.onCompleted: {
- horizontalIndicator.active = true;
- verticalIndicator.active = true;
-}
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-custom.qml
deleted file mode 100644
index 9010f0af..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-custom.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 200
- height: 200
-
- Binding {
- target: control.ScrollBar.horizontal
- property: "active"
- value: true
- }
-
- Binding {
- target: control.ScrollBar.vertical
- property: "active"
- value: true
- }
-
-//! [file]
-ScrollView {
- id: control
-
- width: 200
- height: 200
- focus: true
-
- Label {
- text: "ABC"
- font.pixelSize: 224
- }
-
- ScrollBar.vertical: ScrollBar {
- parent: control
- x: control.mirrored ? 0 : control.width - width
- y: control.topPadding
- height: control.availableHeight
- active: control.ScrollBar.horizontal.active
- }
-
- ScrollBar.horizontal: ScrollBar {
- parent: control
- x: control.leftPadding
- y: control.height - height
- width: control.availableWidth
- active: control.ScrollBar.vertical.active
- }
-
- background: Rectangle {
- border.color: control.activeFocus ? "#21be2b" : "#bdbebf"
- }
-}
-//! [file]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-interactive.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-interactive.qml
deleted file mode 100644
index 26b0b5c4..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-interactive.qml
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [file]
-ScrollView {
- // ...
- ScrollBar.horizontal.interactive: true
- ScrollBar.vertical.interactive: true
-}
-//! [file]
-
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-listview.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-listview.qml
deleted file mode 100644
index 6907d674..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-listview.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- id: root
- width: 200
- height: 200
-
- Binding {
- target: root.children[0].ScrollBar.horizontal
- property: "active"
- value: true
- }
-
- Binding {
- target: root.children[0].ScrollBar.vertical
- property: "active"
- value: true
- }
-
-//! [file]
-ScrollView {
- width: 200
- height: 200
-
- ListView {
- model: 20
- delegate: ItemDelegate {
- text: "Item " + index
- }
- }
-}
-//! [file]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-policy.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-policy.qml
deleted file mode 100644
index f5c33975..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview-policy.qml
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [file]
-ScrollView {
- // ...
- ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
- ScrollBar.vertical.policy: ScrollBar.AlwaysOn
-}
-//! [file]
-
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview.qml
deleted file mode 100644
index cbdf9eb8..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-scrollview.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Rectangle {
- id: root
- width: 200
- height: 200
- border.color: "#ddd"
-
- Binding {
- target: root.children[0].ScrollBar.horizontal
- property: "active"
- value: true
- }
-
- Binding {
- target: root.children[0].ScrollBar.vertical
- property: "active"
- value: true
- }
-
-//! [file]
-ScrollView {
- width: 200
- height: 200
- clip: true
-
- Label {
- text: "ABC"
- font.pixelSize: 224
- }
-}
-//! [file]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-slider-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-slider-custom.qml
deleted file mode 100644
index 7745892d..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-slider-custom.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Slider {
- id: control
- value: 0.5
-
- background: Rectangle {
- x: control.leftPadding
- y: control.topPadding + control.availableHeight / 2 - height / 2
- implicitWidth: 200
- implicitHeight: 4
- width: control.availableWidth
- height: implicitHeight
- radius: 2
- color: "#bdbebf"
-
- Rectangle {
- width: control.visualPosition * parent.width
- height: parent.height
- color: "#21be2b"
- radius: 2
- }
- }
-
- handle: Rectangle {
- x: control.leftPadding + control.visualPosition * (control.availableWidth - width)
- y: control.topPadding + control.availableHeight / 2 - height / 2
- implicitWidth: 26
- implicitHeight: 26
- radius: 13
- color: control.pressed ? "#f0f0f0" : "#f6f6f6"
- border.color: "#bdbebf"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-custom.qml
deleted file mode 100644
index ad05d463..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-custom.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-SpinBox {
- id: control
- value: 50
- editable: true
-
- contentItem: TextInput {
- z: 2
- text: control.textFromValue(control.value, control.locale)
-
- font: control.font
- color: "#21be2b"
- selectionColor: "#21be2b"
- selectedTextColor: "#ffffff"
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
-
- readOnly: !control.editable
- validator: control.validator
- inputMethodHints: Qt.ImhFormattedNumbersOnly
- }
-
- up.indicator: Rectangle {
- x: control.mirrored ? 0 : parent.width - width
- height: parent.height
- implicitWidth: 40
- implicitHeight: 40
- color: control.up.pressed ? "#e4e4e4" : "#f6f6f6"
- border.color: enabled ? "#21be2b" : "#bdbebf"
-
- Text {
- text: "+"
- font.pixelSize: control.font.pixelSize * 2
- color: "#21be2b"
- anchors.fill: parent
- fontSizeMode: Text.Fit
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- down.indicator: Rectangle {
- x: control.mirrored ? parent.width - width : 0
- height: parent.height
- implicitWidth: 40
- implicitHeight: 40
- color: control.down.pressed ? "#e4e4e4" : "#f6f6f6"
- border.color: enabled ? "#21be2b" : "#bdbebf"
-
- Text {
- text: "-"
- font.pixelSize: control.font.pixelSize * 2
- color: "#21be2b"
- anchors.fill: parent
- fontSizeMode: Text.Fit
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- background: Rectangle {
- implicitWidth: 140
- border.color: "#bdbebf"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-double.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-double.qml
deleted file mode 100644
index 6f1bb55b..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-double.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-SpinBox {
- id: spinbox
- from: 0
- value: 110
- to: 100 * 100
- stepSize: 100
- anchors.centerIn: parent
-
- property int decimals: 2
- property real realValue: value / 100
-
- validator: DoubleValidator {
- bottom: Math.min(spinbox.from, spinbox.to)
- top: Math.max(spinbox.from, spinbox.to)
- }
-
- textFromValue: function(value, locale) {
- return Number(value / 100).toLocaleString(locale, 'f', spinbox.decimals)
- }
-
- valueFromText: function(text, locale) {
- return Number.fromLocaleString(locale, text) * 100
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-textual.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-textual.qml
deleted file mode 100644
index daa54967..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox-textual.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-SpinBox {
- from: 0
- to: items.length - 1
- value: 1 // "Medium"
-
- property var items: ["Small", "Medium", "Large"]
-
- validator: RegExpValidator {
- regExp: new RegExp("(Small|Medium|Large)", "i")
- }
-
- textFromValue: function(value) {
- return items[value];
- }
-
- valueFromText: function(text) {
- for (var i = 0; i < items.length; ++i) {
- if (items[i].toLowerCase().indexOf(text.toLowerCase()) === 0)
- return i
- }
- return sb.value
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox.qml
deleted file mode 100644
index 32d39b9f..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-spinbox.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-SpinBox {
- value: 50
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-splitview-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-splitview-custom.qml
deleted file mode 100644
index 96e8ad2f..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-splitview-custom.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Controls 2.13
-
-Item {
- width: 200
- height: 100
-
- //! [1]
- SplitView {
- id: splitView
- anchors.fill: parent
-
- handle: Rectangle {
- implicitWidth: 4
- implicitHeight: 4
- color: SplitHandle.pressed ? "#81e889"
- : (SplitHandle.hovered ? Qt.lighter("#c2f4c6", 1.1) : "#c2f4c6")
- }
-
- Rectangle {
- implicitWidth: 150
- color: "#444"
- }
- Rectangle {
- implicitWidth: 50
- color: "#666"
- }
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-stackview-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-stackview-custom.qml
deleted file mode 100644
index cfeab812..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-stackview-custom.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-StackView {
- id: control
-
- popEnter: Transition {
- XAnimator {
- from: (control.mirrored ? -1 : 1) * -control.width
- to: 0
- duration: 400
- easing.type: Easing.OutCubic
- }
- }
-
- popExit: Transition {
- XAnimator {
- from: 0
- to: (control.mirrored ? -1 : 1) * control.width
- duration: 400
- easing.type: Easing.OutCubic
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-stackview-visible.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-stackview-visible.qml
deleted file mode 100644
index a9298460..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-stackview-visible.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-StackView {
- id: stackView
- property real offset: 10
- width: 100; height: 100
-
- initialItem: Component {
- id: page
- Rectangle {
- property real pos: StackView.index * stackView.offset
- property real hue: Math.random()
- color: Qt.hsla(hue, 0.5, 0.8, 0.6)
- border.color: Qt.hsla(hue, 0.5, 0.5, 0.9)
- StackView.visible: true
- }
- }
-
- pushEnter: Transition {
- id: pushEnter
- ParallelAnimation {
- PropertyAction { property: "x"; value: pushEnter.ViewTransition.item.pos }
- NumberAnimation { properties: "y"; from: pushEnter.ViewTransition.item.pos + stackView.offset; to: pushEnter.ViewTransition.item.pos; duration: 400; easing.type: Easing.OutCubic }
- NumberAnimation { property: "opacity"; from: 0; to: 1; duration: 400; easing.type: Easing.OutCubic }
- }
- }
- popExit: Transition {
- id: popExit
- ParallelAnimation {
- PropertyAction { property: "x"; value: popExit.ViewTransition.item.pos }
- NumberAnimation { properties: "y"; from: popExit.ViewTransition.item.pos; to: popExit.ViewTransition.item.pos + stackView.offset; duration: 400; easing.type: Easing.OutCubic }
- NumberAnimation { property: "opacity"; from: 1; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
- }
-
- pushExit: Transition {
- id: pushExit
- PropertyAction { property: "x"; value: pushExit.ViewTransition.item.pos }
- PropertyAction { property: "y"; value: pushExit.ViewTransition.item.pos }
- }
- popEnter: Transition {
- id: popEnter
- PropertyAction { property: "x"; value: popEnter.ViewTransition.item.pos }
- PropertyAction { property: "y"; value: popEnter.ViewTransition.item.pos }
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate-custom.qml
deleted file mode 100644
index 432fcc87..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate-custom.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-SwipeDelegate {
- id: control
- text: qsTr("SwipeDelegate")
-
- Component {
- id: component
-
- Rectangle {
- color: SwipeDelegate.pressed ? "#333" : "#444"
- width: parent.width
- height: parent.height
- clip: true
-
- Label {
- text: qsTr("Press me!")
- color: "#21be2b"
- anchors.centerIn: parent
- }
- }
- }
-
- swipe.left: component
- swipe.right: component
-
- contentItem: Text {
- text: control.text
- font: control.font
- color: control.enabled ? (control.down ? "#17a81a" : "#21be2b") : "#bdbebf"
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
-
- Behavior on x {
- enabled: !control.down
- NumberAnimation {
- easing.type: Easing.InOutCubic
- duration: 400
- }
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate-transition.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate-transition.qml
deleted file mode 100644
index 6b71a5f0..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate-transition.qml
+++ /dev/null
@@ -1,37 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-SwipeDelegate {
- swipe.transition: Transition {
- SmoothedAnimation { velocity: 3; easing.type: Easing.InOutCubic }
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml
deleted file mode 100644
index 6e02c057..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-swipedelegate.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-ListView {
- id: listView
- anchors.fill: parent
- model: ListModel {
- ListElement { sender: "Bob Bobbleton"; title: "How are you going?" }
- ListElement { sender: "Rug Emporium"; title: "SALE! All rugs MUST go!" }
- ListElement { sender: "Electric Co."; title: "Electricity bill 15/07/2016 overdue" }
- ListElement { sender: "Tips"; title: "Five ways this tip will save your life" }
- }
- delegate: SwipeDelegate {
- id: swipeDelegate
- text: model.sender + " - " + model.title
- width: parent.width
-
- ListView.onRemove: SequentialAnimation {
- PropertyAction {
- target: swipeDelegate
- property: "ListView.delayRemove"
- value: true
- }
- NumberAnimation {
- target: swipeDelegate
- property: "height"
- to: 0
- easing.type: Easing.InOutQuad
- }
- PropertyAction {
- target: swipeDelegate
- property: "ListView.delayRemove"
- value: false
- }
- }
-
- swipe.right: Label {
- id: deleteLabel
- text: qsTr("Delete")
- color: "white"
- verticalAlignment: Label.AlignVCenter
- padding: 12
- height: parent.height
- anchors.right: parent.right
-
- SwipeDelegate.onClicked: listView.model.remove(index)
-
- background: Rectangle {
- color: deleteLabel.SwipeDelegate.pressed ? Qt.darker("tomato", 1.1) : "tomato"
- }
- }
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-swipeview-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-swipeview-custom.qml
deleted file mode 100644
index 40833dde..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-swipeview-custom.qml
+++ /dev/null
@@ -1,39 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-SwipeView {
- id: control
-
- background: Rectangle {
- color: "#eeeeee"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-swipeview-indicator.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-swipeview-indicator.qml
deleted file mode 100644
index 1869a032..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-swipeview-indicator.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 200
- height: 320
-
- //! [1]
- SwipeView {
- id: view
-
- currentIndex: 1
- anchors.fill: parent
-
- Item {
- id: firstPage
- }
- Item {
- id: secondPage
- }
- Item {
- id: thirdPage
- }
- }
-
- PageIndicator {
- id: indicator
-
- count: view.count
- currentIndex: view.currentIndex
-
- anchors.bottom: view.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-switch-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-switch-custom.qml
deleted file mode 100644
index a7dd2eea..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-switch-custom.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Switch {
- id: control
- text: qsTr("Switch")
-
- indicator: Rectangle {
- implicitWidth: 48
- implicitHeight: 26
- x: control.leftPadding
- y: parent.height / 2 - height / 2
- radius: 13
- color: control.checked ? "#17a81a" : "#ffffff"
- border.color: control.checked ? "#17a81a" : "#cccccc"
-
- Rectangle {
- x: control.checked ? parent.width - width : 0
- width: 26
- height: 26
- radius: 13
- color: control.down ? "#cccccc" : "#ffffff"
- border.color: control.checked ? (control.down ? "#17a81a" : "#21be2b") : "#999999"
- }
- }
-
- contentItem: Text {
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- verticalAlignment: Text.AlignVCenter
- leftPadding: control.indicator.width + control.spacing
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-switchdelegate-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-switchdelegate-custom.qml
deleted file mode 100644
index 19060824..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-switchdelegate-custom.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-SwitchDelegate {
- id: control
- text: qsTr("SwitchDelegate")
- checked: true
-
- contentItem: Text {
- rightPadding: control.indicator.width + control.spacing
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- indicator: Rectangle {
- implicitWidth: 48
- implicitHeight: 26
- x: control.width - width - control.rightPadding
- y: parent.height / 2 - height / 2
- radius: 13
- color: control.checked ? "#17a81a" : "transparent"
- border.color: control.checked ? "#17a81a" : "#cccccc"
-
- Rectangle {
- x: control.checked ? parent.width - width : 0
- width: 26
- height: 26
- radius: 13
- color: control.down ? "#cccccc" : "#ffffff"
- border.color: control.checked ? (control.down ? "#17a81a" : "#21be2b") : "#999999"
- }
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- visible: control.down || control.highlighted
- color: control.down ? "#bdbebf" : "#eeeeee"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-custom.qml
deleted file mode 100644
index c06c44c7..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-custom.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TabBar {
- id: control
-
- background: Rectangle {
- color: "#eeeeee"
- }
-
- TabButton {
- text: qsTr("Home")
- }
- TabButton {
- text: qsTr("Discover")
- }
- TabButton {
- text: qsTr("Activity")
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-explicit.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-explicit.qml
deleted file mode 100644
index 01f0d875..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-explicit.qml
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 360
- height: childrenRect.height
-
-//! [1]
-TabBar {
- width: parent.width
- TabButton {
- text: "First"
- width: implicitWidth
- }
- TabButton {
- text: "Second"
- width: implicitWidth
- }
- TabButton {
- text: "Third"
- width: implicitWidth
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-flickable.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-flickable.qml
deleted file mode 100644
index 628aef80..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar-flickable.qml
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 360
- height: bar.height
-
-//! [1]
-TabBar {
- id: bar
- width: parent.width
-
- Repeater {
- model: ["First", "Second", "Third", "Fourth", "Fifth"]
-
- TabButton {
- text: modelData
- width: Math.max(100, bar.width / 5)
- }
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar.qml
deleted file mode 100644
index cbf6d728..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbar.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-Column {
- width: 300
-
- //! [1]
- TabBar {
- id: bar
- width: parent.width
- TabButton {
- text: qsTr("Home")
- }
- TabButton {
- text: qsTr("Discover")
- }
- TabButton {
- text: qsTr("Activity")
- }
- }
-
- StackLayout {
- width: parent.width
- currentIndex: bar.currentIndex
- Item {
- id: homeTab
- }
- Item {
- id: discoverTab
- }
- Item {
- id: activityTab
- }
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbutton.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tabbutton.qml
deleted file mode 100644
index 0aae7d15..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tabbutton.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-TabBar {
- TabButton {
- text: qsTr("Home")
- }
- TabButton {
- text: qsTr("Discover")
- }
- TabButton {
- text: qsTr("Activity")
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-textarea-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-textarea-custom.qml
deleted file mode 100644
index 3ce856ac..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-textarea-custom.qml
+++ /dev/null
@@ -1,42 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TextArea {
- id: control
- placeholderText: qsTr("Enter description")
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
- border.color: control.enabled ? "#21be2b" : "transparent"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-textarea-scrollable.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-textarea-scrollable.qml
deleted file mode 100644
index e16c6bbf..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-textarea-scrollable.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- width: 100
- height: 100
-
- Binding { target: view.ScrollBar.vertical; property: "active"; value: true }
-
- //! [1]
- ScrollView {
- id: view
- anchors.fill: parent
-
- TextArea {
- text: "TextArea\n...\n...\n...\n...\n...\n...\n"
- }
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-custom.qml
deleted file mode 100644
index e48e0d65..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-custom.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TextField {
- id: control
- placeholderText: qsTr("Enter description")
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
- color: control.enabled ? "transparent" : "#353637"
- border.color: control.enabled ? "#21be2b" : "transparent"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-disabled.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-disabled.qml
deleted file mode 100644
index 18634d5e..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-disabled.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TextField {
- width: 80
- text: "Disabled"
- enabled: false
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-focused.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-focused.qml
deleted file mode 100644
index 5d8e067b..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-focused.qml
+++ /dev/null
@@ -1,35 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TextField {
- width: 80
- text: "Focused"
- focus: true
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-normal.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-normal.qml
deleted file mode 100644
index b0a04674..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-textfield-normal.qml
+++ /dev/null
@@ -1,34 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TextField {
- width: 80
- text: "Normal"
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-toolbar-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-toolbar-custom.qml
deleted file mode 100644
index 3d26e510..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-toolbar-custom.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-//! [file]
-ToolBar {
- id: control
-
- background: Rectangle {
- implicitHeight: 40
- color: "#eeeeee"
-
- Rectangle {
- width: parent.width
- height: 1
- anchors.bottom: parent.bottom
- color: "transparent"
- border.color: "#21be2b"
- }
- }
-
- RowLayout {
- anchors.fill: parent
- ToolButton {
- text: qsTr("Undo")
- }
- ToolButton {
- text: qsTr("Redo")
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-toolbar.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-toolbar.qml
deleted file mode 100644
index e1c8c580..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-toolbar.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-Item {
- width: children[0].implicitWidth * 2
- height: children[0].implicitHeight
- Binding {
- target: children[0]
- property: "width"
- value: width
- }
-//! [1]
-ToolBar {
- RowLayout {
- anchors.fill: parent
- ToolButton {
- text: qsTr("‹")
- onClicked: stack.pop()
- }
- Label {
- text: "Title"
- elide: Label.ElideRight
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- Layout.fillWidth: true
- }
- ToolButton {
- text: qsTr("⋮")
- onClicked: menu.open()
- }
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-toolbutton-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-toolbutton-custom.qml
deleted file mode 100644
index cf5bc70e..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-toolbutton-custom.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ToolButton {
- id: control
- text: qsTr("ToolButton")
- width: 120
-
- contentItem: Text {
- text: control.text
- font: control.font
- opacity: enabled ? 1.0 : 0.3
- color: control.down ? "#17a81a" : "#21be2b"
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- background: Rectangle {
- implicitWidth: 40
- implicitHeight: 40
- color: Qt.darker("#33333333", control.enabled && (control.checked || control.highlighted) ? 1.5 : 1.0)
- opacity: enabled ? 1 : 0.3
- visible: control.down || (control.enabled && (control.checked || control.highlighted))
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-toolseparator-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-toolseparator-custom.qml
deleted file mode 100644
index e26986cc..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-toolseparator-custom.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-//! [file]
-ToolBar {
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: qsTr("Action 1")
- }
- ToolButton {
- text: qsTr("Action 2")
- }
-
- ToolSeparator {
- padding: vertical ? 10 : 2
- topPadding: vertical ? 2 : 10
- bottomPadding: vertical ? 2 : 10
-
- contentItem: Rectangle {
- implicitWidth: parent.vertical ? 1 : 24
- implicitHeight: parent.vertical ? 24 : 1
- color: "#c3c3c3"
- }
- }
-
- ToolButton {
- text: qsTr("Action 3")
- }
- ToolButton {
- text: qsTr("Action 4")
- }
-
- Item {
- Layout.fillWidth: true
- }
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-toolseparator.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-toolseparator.qml
deleted file mode 100644
index 2ccfb439..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-toolseparator.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-//! [1]
-ToolBar {
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: qsTr("Action 1")
- }
- ToolButton {
- text: qsTr("Action 2")
- }
-
- ToolSeparator {}
-
- ToolButton {
- text: qsTr("Action 3")
- }
- ToolButton {
- text: qsTr("Action 4")
- }
-
- ToolSeparator {}
-
- ToolButton {
- text: qsTr("Action 5")
- }
- ToolButton {
- text: qsTr("Action 6")
- }
-
- Item {
- Layout.fillWidth: true
- }
- }
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-custom.qml
deleted file mode 100644
index 6a0a5b38..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-custom.qml
+++ /dev/null
@@ -1,48 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
-ToolTip {
- id: control
- text: qsTr("A descriptive tool tip of what the button does")
-
- contentItem: Text {
- text: control.text
- font: control.font
- color: "#21be2b"
- }
-
- background: Rectangle {
- border.color: "#21be2b"
- }
-}
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-hover.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-hover.qml
deleted file mode 100644
index 812b5ba2..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-hover.qml
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-Button {
- text: qsTr("Button")
- hoverEnabled: true
-
- ToolTip.delay: 1000
- ToolTip.timeout: 5000
- ToolTip.visible: hovered
- ToolTip.text: qsTr("This tool tip is shown after hovering the button for a second.")
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-pressandhold.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-pressandhold.qml
deleted file mode 100644
index 927d29c3..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-pressandhold.qml
+++ /dev/null
@@ -1,39 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [1]
-Button {
- text: qsTr("Button")
-
- ToolTip.visible: pressed
- ToolTip.delay: Qt.styleHints.mousePressAndHoldInterval
- ToolTip.text: qsTr("This tool tip is shown after pressing and holding the button down.")
-}
-//! [1]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-slider.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-slider.qml
deleted file mode 100644
index 508a417e..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip-slider.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Item {
- id: root
- width: slider.width
- height: slider.height * 2.0
-
- Binding { target: slider.anchors; property: "centerIn"; value: root }
- Binding { target: slider.anchors; property: "verticalCenterOffset"; value: slider.height / 2 }
- Binding { target: slider; property: "pressed"; value: root.Window.active }
-
- //! [1]
- Slider {
- id: slider
- value: 0.5
-
- ToolTip {
- parent: slider.handle
- visible: slider.pressed
- text: slider.value.toFixed(1)
- }
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip.qml
deleted file mode 100644
index a4e92f88..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tooltip.qml
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Item {
- id: root
- width: 360
- height: button.height * 2
-
- property Button button: children[0]
-
- Binding { target: button; property: "down"; value: root.Window.active }
- Binding { target: button.anchors; property: "bottom"; value: root.bottom }
- Binding { target: button.anchors; property: "horizontalCenter"; value: root.horizontalCenter }
-
- //! [1]
- Button {
- text: qsTr("Save")
-
- ToolTip.visible: down
- ToolTip.text: qsTr("Save the active project")
- }
- //! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-custom.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-custom.qml
deleted file mode 100644
index ee054106..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-custom.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [file]
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Tumbler {
- id: control
- model: 15
-
- background: Item {
- Rectangle {
- opacity: control.enabled ? 0.2 : 0.1
- border.color: "#000000"
- width: parent.width
- height: 1
- anchors.top: parent.top
- }
-
- Rectangle {
- opacity: control.enabled ? 0.2 : 0.1
- border.color: "#000000"
- width: parent.width
- height: 1
- anchors.bottom: parent.bottom
- }
- }
-
- delegate: Text {
- text: qsTr("Item %1").arg(modelData + 1)
- font: control.font
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- opacity: 1.0 - Math.abs(Tumbler.displacement) / (control.visibleItemCount / 2)
- }
-
- Rectangle {
- anchors.horizontalCenter: control.horizontalCenter
- y: control.height * 0.4
- width: 40
- height: 1
- color: "#21be2b"
- }
-
- Rectangle {
- anchors.horizontalCenter: control.horizontalCenter
- y: control.height * 0.6
- width: 40
- height: 1
- color: "#21be2b"
- }
-}
-//! [file]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-listView.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-listView.qml
deleted file mode 100644
index 7d16d139..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-listView.qml
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [contentItem]
-Tumbler {
- id: tumbler
-
- contentItem: ListView {
- model: tumbler.model
- delegate: tumbler.delegate
-
- snapMode: ListView.SnapToItem
- highlightRangeMode: ListView.StrictlyEnforceRange
- preferredHighlightBegin: height / 2 - (height / tumbler.visibleItemCount / 2)
- preferredHighlightEnd: height / 2 + (height / tumbler.visibleItemCount / 2)
- clip: true
- }
-}
-//! [contentItem]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-pathView.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-pathView.qml
deleted file mode 100644
index 61e4ce01..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-pathView.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-//! [contentItem]
-Tumbler {
- id: tumbler
-
- contentItem: PathView {
- id: pathView
- model: tumbler.model
- delegate: tumbler.delegate
- clip: true
- pathItemCount: tumbler.visibleItemCount + 1
- preferredHighlightBegin: 0.5
- preferredHighlightEnd: 0.5
- dragMargin: width / 2
-
- path: Path {
- startX: pathView.width / 2
- startY: -pathView.delegateHeight / 2
- PathLine {
- x: pathView.width / 2
- y: pathView.pathItemCount * pathView.delegateHeight - pathView.delegateHeight / 2
- }
- }
-
- property real delegateHeight: tumbler.availableHeight / tumbler.visibleItemCount
- }
-}
-//! [contentItem]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-timePicker.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-timePicker.qml
deleted file mode 100644
index 13130f97..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-tumbler-timePicker.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [tumbler]
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Rectangle {
- width: frame.implicitWidth + 10
- height: frame.implicitHeight + 10
-
- function formatText(count, modelData) {
- var data = count === 12 ? modelData + 1 : modelData;
- return data.toString().length < 2 ? "0" + data : data;
- }
-
- FontMetrics {
- id: fontMetrics
- }
-
- Component {
- id: delegateComponent
-
- Label {
- text: formatText(Tumbler.tumbler.count, modelData)
- opacity: 1.0 - Math.abs(Tumbler.displacement) / (Tumbler.tumbler.visibleItemCount / 2)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- font.pixelSize: fontMetrics.font.pixelSize * 1.25
- }
- }
-
- Frame {
- id: frame
- padding: 0
- anchors.centerIn: parent
-
- Row {
- id: row
-
- Tumbler {
- id: hoursTumbler
- model: 12
- delegate: delegateComponent
- }
-
- Tumbler {
- id: minutesTumbler
- model: 60
- delegate: delegateComponent
- }
-
- Tumbler {
- id: amPmTumbler
- model: ["AM", "PM"]
- delegate: delegateComponent
- }
- }
- }
-}
-//! [tumbler]
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-universal-accent.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-universal-accent.qml
deleted file mode 100644
index c54a18a0..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-universal-accent.qml
+++ /dev/null
@@ -1,43 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-Pane {
- padding: 10
-
-//! [1]
-Button {
- text: qsTr("Button")
- highlighted: true
- Universal.accent: Universal.Orange
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-universal-background.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-universal-background.qml
deleted file mode 100644
index f22b5308..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-universal-background.qml
+++ /dev/null
@@ -1,44 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-Pane {
- padding: 10
-
-//! [1]
-Pane {
- Universal.background: Universal.Steel
-
- Button {
- text: qsTr("Button")
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-universal-foreground.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-universal-foreground.qml
deleted file mode 100644
index 8c5b99a3..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-universal-foreground.qml
+++ /dev/null
@@ -1,41 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-Pane {
- padding: 10
-
-//! [1]
-Button {
- text: qsTr("Button")
- Universal.foreground: Universal.Pink
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/snippets/qtquickcontrols2-universal-theme.qml b/src/imports/controls/doc/snippets/qtquickcontrols2-universal-theme.qml
deleted file mode 100644
index 1f0d6bd0..00000000
--- a/src/imports/controls/doc/snippets/qtquickcontrols2-universal-theme.qml
+++ /dev/null
@@ -1,44 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-Pane {
- padding: 10
-
-//! [1]
-Pane {
- Universal.theme: Universal.Dark
-
- Button {
- text: qsTr("Button")
- }
-}
-//! [1]
-}
diff --git a/src/imports/controls/doc/src/includes/inputmethodhints.qdocinc b/src/imports/controls/doc/src/includes/inputmethodhints.qdocinc
deleted file mode 100644
index 73710e1e..00000000
--- a/src/imports/controls/doc/src/includes/inputmethodhints.qdocinc
+++ /dev/null
@@ -1,38 +0,0 @@
-//! [flags]
-The value is a bit-wise combination of flags or \c Qt.ImhNone if no hints are set.
-
-Flags that alter behavior are:
-
-\list
-\li Qt.ImhHiddenText - Characters should be hidden, as is typically used when entering passwords.
-\li Qt.ImhSensitiveData - Typed text should not be stored by the active input method
- in any persistent storage like predictive user dictionary.
-\li Qt.ImhNoAutoUppercase - The input method should not try to automatically switch to upper case
- when a sentence ends.
-\li Qt.ImhPreferNumbers - Numbers are preferred (but not required).
-\li Qt.ImhPreferUppercase - Upper case letters are preferred (but not required).
-\li Qt.ImhPreferLowercase - Lower case letters are preferred (but not required).
-\li Qt.ImhNoPredictiveText - Do not use predictive text (i.e. dictionary lookup) while typing.
-
-\li Qt.ImhDate - The text editor functions as a date field.
-\li Qt.ImhTime - The text editor functions as a time field.
-\endlist
-
-Flags that restrict input (exclusive flags) are:
-
-\list
-\li Qt.ImhDigitsOnly - Only digits are allowed.
-\li Qt.ImhFormattedNumbersOnly - Only number input is allowed. This includes decimal point and minus sign.
-\li Qt.ImhUppercaseOnly - Only upper case letter input is allowed.
-\li Qt.ImhLowercaseOnly - Only lower case letter input is allowed.
-\li Qt.ImhDialableCharactersOnly - Only characters suitable for phone dialing are allowed.
-\li Qt.ImhEmailCharactersOnly - Only characters suitable for email addresses are allowed.
-\li Qt.ImhUrlCharactersOnly - Only characters suitable for URLs are allowed.
-\endlist
-
-Masks:
-
-\list
-\li Qt.ImhExclusiveInputMask - This mask yields nonzero if any of the exclusive flags are used.
-\endlist
-//! [flags]
diff --git a/src/imports/controls/doc/src/includes/qquickcontrol-background.qdocinc b/src/imports/controls/doc/src/includes/qquickcontrol-background.qdocinc
deleted file mode 100644
index 02d92de0..00000000
--- a/src/imports/controls/doc/src/includes/qquickcontrol-background.qdocinc
+++ /dev/null
@@ -1,13 +0,0 @@
-//! [notes]
-
-\note If the background item has no explicit size specified, it automatically
- follows the control's size. In most cases, there is no need to specify
- width or height for a background item.
-
-\note Most controls use the implicit size of the background item to calculate
-the implicit size of the control itself. If you replace the background item
-with a custom one, you should also consider providing a sensible implicit
-size for it (unless it is an item like \l Image which has its own implicit
-size).
-
-//! [notes]
diff --git a/src/imports/controls/doc/src/includes/qquickcontrol-focusreason.qdocinc b/src/imports/controls/doc/src/includes/qquickcontrol-focusreason.qdocinc
deleted file mode 100644
index b69e9e60..00000000
--- a/src/imports/controls/doc/src/includes/qquickcontrol-focusreason.qdocinc
+++ /dev/null
@@ -1,15 +0,0 @@
-This property holds the reason of the last focus change.
-
-\note This property does not indicate whether the control has \l {Item::activeFocus}
- {active focus}, but the reason why the control either gained or lost focus.
-
-\value Qt.MouseFocusReason A mouse action occurred.
-\value Qt.TabFocusReason The Tab key was pressed.
-\value Qt.BacktabFocusReason A Backtab occurred. The input for this may include the Shift or Control keys; e.g. Shift+Tab.
-\value Qt.ActiveWindowFocusReason The window system made this window either active or inactive.
-\value Qt.PopupFocusReason The application opened/closed a pop-up that grabbed/released the keyboard focus.
-\value Qt.ShortcutFocusReason The user typed a label's buddy shortcut
-\value Qt.MenuBarFocusReason The menu bar took focus.
-\value Qt.OtherFocusReason Another reason, usually application-specific.
-
-\sa Item::activeFocus
diff --git a/src/imports/controls/doc/src/includes/qquickdial.qdocinc b/src/imports/controls/doc/src/includes/qquickdial.qdocinc
deleted file mode 100644
index 3370b3d8..00000000
--- a/src/imports/controls/doc/src/includes/qquickdial.qdocinc
+++ /dev/null
@@ -1,13 +0,0 @@
-//! [inputMode]
-Dial supports three \l {inputMode}{input modes}: \c Dial.Circular,
-\c Dial.Horizontal and \c Dial.Vertical. The circular input mode operates on an
-absolute input system, where the position of the cursor within the dial
-directly reflects its value. The horizontal and vertical input modes use a
-relative input system, where changes in the cursor's position are "added" to
-the value of the dial.
-
-The following image illustrates the directions in which the various input modes
-track movement:
-
-\image qtquickcontrols2-dial-inputmode.png
-//! [inputMode]
diff --git a/src/imports/controls/doc/src/includes/qquickicon.qdocinc b/src/imports/controls/doc/src/includes/qquickicon.qdocinc
deleted file mode 100644
index ba7cede9..00000000
--- a/src/imports/controls/doc/src/includes/qquickicon.qdocinc
+++ /dev/null
@@ -1,48 +0,0 @@
-//! [grouped-properties]
-\table
-\header
- \li Name
- \li Description
-\row
- \li name
- \li This property holds the name of the icon to use.
-
- The icon will be loaded from the platform theme. If the icon is found
- in the theme, it will always be used; even if \l icon.source is also set.
- If the icon is not found, \l icon.source will be used instead.
-
- For more information on theme icons, see \l {QIcon::fromTheme()}.
-\row
- \li source
- \li This property holds the name of the icon to use.
-
- The icon will be loaded as a regular image.
-
- If \l icon.name is set and refers to a valid theme icon, it will always
- be used instead of this property.
-\row
- \li width
- \li This property holds the width of the icon.
-
- The icon's width will never exceed this value, though it will
- shrink when necessary.
-\row
- \li height
- \li This property holds the height of the icon.
-
- The icon's height will never exceed this value, though it will
- shrink when necessary.
-\row
- \li color
- \li This property holds the color of the icon.
-
- The icon is tinted with the specified color, unless the color is
- set to \c "transparent".
-
-\row
- \li cache
- \li This property specifies whether the icon should be cached.
-
- The default value is true.
-\endtable
-//! [grouped-properties]
diff --git a/src/imports/controls/doc/src/includes/qquickimaginestyle.qdocinc b/src/imports/controls/doc/src/includes/qquickimaginestyle.qdocinc
deleted file mode 100644
index f6fe5a97..00000000
--- a/src/imports/controls/doc/src/includes/qquickimaginestyle.qdocinc
+++ /dev/null
@@ -1,57 +0,0 @@
-//! [conf]
-\table
- \header
- \li Variable
- \li Description
- \row
- \li \c Path
- \li Specifies the \l {imagine-path-attached-prop}{path} to the directory that contains
- the Imagine style assets. If not specified, the built-in assets are used.
-
- For example, to specify a path to a directory stored in the
- \l {The Qt Resource System}{resource system}:
-
- \badcode
- [Imagine]
- Path=:/imagine-assets
- \endcode
-
- To specify a relative path to a local directory:
-
- \badcode
- [Imagine]
- Path=imagine-assets
- \endcode
-
- \note Due to a technical limitation, the path should not be named
- \e "imagine" if it is relative to the \c qtquickcontrols2.conf file.
-\endtable
-//! [conf]
-
-//! [env]
-\table
- \header
- \li Variable
- \li Description
- \row
- \li \c QT_QUICK_CONTROLS_IMAGINE_PATH
- \li Specifies the path to the directory that contains the Imagine style assets.
- If not specified, the built-in assets are used.
-
- For example, to specify a path to a directory stored in the
- \l {The Qt Resource System}{resource system}:
-
- \badcode
- QT_QUICK_CONTROLS_IMAGINE_PATH=:/imagine-assets
- \endcode
-
- To specify a relative path to a local directory:
-
- \badcode
- QT_QUICK_CONTROLS_IMAGINE_PATH=imagine-assets
- \endcode
-
- \note Due to a technical limitation, the path should not be named
- \e "imagine" if it is relative to the \c qtquickcontrols2.conf file.
-\endtable
-//! [env]
diff --git a/src/imports/controls/doc/src/includes/qquickmaterialstyle.qdocinc b/src/imports/controls/doc/src/includes/qquickmaterialstyle.qdocinc
deleted file mode 100644
index 72c97bb6..00000000
--- a/src/imports/controls/doc/src/includes/qquickmaterialstyle.qdocinc
+++ /dev/null
@@ -1,79 +0,0 @@
-//! [conf]
-\table
- \header
- \li Variable
- \li Description
- \row
- \li \c Theme
- \li Specifies the default \l {material-theme-attached-prop}{Material theme}.
- The value can be one of the available themes, for example \c "Dark".
- \row
- \li \c Variant
- \li Specifies the Material variant. The Material Design has two
- variants: a normal variant designed for touch devices, and a dense
- variant for desktop. The dense variant uses smaller sizes for
- controls and their fonts.
-
- The value can be \c "Normal" or \c "Dense".
- \row
- \li \c Accent
- \li Specifies the default \l {material-accent-attached-prop}{Material accent color}.
- The value can be any \l {colorbasictypedocs}{color}, but it is recommended to use
- one of the \l {pre-defined Material colors}, for example \c "Teal".
- \row
- \li \c Primary
- \li Specifies the default \l {material-primary-attached-prop}{Material primary color}.
- The value can be any \l {colorbasictypedocs}{color}, but it is recommended to use
- one of the \l {pre-defined Material colors}, for example \c "BlueGrey".
- \row
- \li \c Foreground
- \li Specifies the default \l {material-foreground-attached-prop}{Material foreground color}.
- The value can be any \l {colorbasictypedocs}{color}, or one of the \l {pre-defined Material colors},
- for example \c "Brown".
- \row
- \li \c Background
- \li Specifies the default \l {material-background-attached-prop}{Material background color}.
- The value can be any \l {colorbasictypedocs}{color}, or one of the \l {pre-defined Material colors},
- for example \c "Grey".
-\endtable
-//! [conf]
-
-//! [env]
-\table
- \header
- \li Variable
- \li Description
- \row
- \li \c QT_QUICK_CONTROLS_MATERIAL_THEME
- \li Specifies the default \l {material-theme-attached-prop}{Material theme}.
- The value can be one of the available themes, for example \c "Dark".
- \row
- \li \c QT_QUICK_CONTROLS_MATERIAL_VARIANT
- \li Specifies the Material variant. The Material Design has two
- variants: a normal variant designed for touch devices, and a dense
- variant for desktop. The dense variant uses smaller sizes for
- controls and their fonts.
-
- The value can be \c "Normal" or \c "Dense".
- \row
- \li \c QT_QUICK_CONTROLS_MATERIAL_ACCENT
- \li Specifies the default \l {material-accent-attached-prop}{Material accent color}.
- The value can be any \l {colorbasictypedocs}{color}, but it is recommended to use
- one of the \l {pre-defined Material colors}, for example \c "Teal".
- \row
- \li \c QT_QUICK_CONTROLS_MATERIAL_PRIMARY
- \li Specifies the default \l {material-primary-attached-prop}{Material primary color}.
- The value can be any \l {colorbasictypedocs}{color}, but it is recommended to use
- one of the \l {pre-defined Material colors}, for example \c "BlueGrey".
- \row
- \li \c QT_QUICK_CONTROLS_MATERIAL_FOREGROUND
- \li Specifies the default \l {material-foreground-attached-prop}{Material foreground color}.
- The value can be any \l {colorbasictypedocs}{color}, or one of the \l {pre-defined Material colors},
- for example \c "Brown".
- \row
- \li \c QT_QUICK_CONTROLS_MATERIAL_BACKGROUND
- \li Specifies the default \l {material-background-attached-prop}{Material background color}.
- The value can be any \l {colorbasictypedocs}{color}, or one of the \l {pre-defined Material colors},
- for example \c "Grey".
-\endtable
-//! [env]
diff --git a/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc b/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc
deleted file mode 100644
index 5562f6a0..00000000
--- a/src/imports/controls/doc/src/includes/qquickoverlay-popup-parent.qdocinc
+++ /dev/null
@@ -1,20 +0,0 @@
-The following example uses the attached \l {Overlay::overlay}{Overlay.overlay}
-property to position a popup in the center of the window, despite the position
-of the button that opens the popup:
-
-\code
-Button {
- onClicked: popup.open()
-
- Popup {
- id: popup
-
- parent: Overlay.overlay
-
- x: Math.round((parent.width - width) / 2)
- y: Math.round((parent.height - height) / 2)
- width: 100
- height: 100
- }
-}
-\endcode
diff --git a/src/imports/controls/doc/src/includes/qquickpopup-padding.qdocinc b/src/imports/controls/doc/src/includes/qquickpopup-padding.qdocinc
deleted file mode 100644
index 31f5d2db..00000000
--- a/src/imports/controls/doc/src/includes/qquickpopup-padding.qdocinc
+++ /dev/null
@@ -1,10 +0,0 @@
-//! [padding]
-
-The padding properties are used to control the geometry of the
-\l {contentItem}{content item}.
-
-Popup uses the same approach to padding as \l {Control::padding}{Control}.
-For a visual explanation of the padding system, see the \l {Control Layout}
-section of the documentation.
-
-//! [padding]
diff --git a/src/imports/controls/doc/src/includes/qquickstackview.qdocinc b/src/imports/controls/doc/src/includes/qquickstackview.qdocinc
deleted file mode 100644
index 20c9bdc3..00000000
--- a/src/imports/controls/doc/src/includes/qquickstackview.qdocinc
+++ /dev/null
@@ -1,5 +0,0 @@
-//! [pop-ownership]
-Only items that StackView created itself (from a \l Component or \l [QML]
-url) will be destroyed when popped. See \l {Item Ownership} for more
-information.
-//! [pop-ownership]
diff --git a/src/imports/controls/doc/src/includes/qquickswipedelegate-interaction.qdocinc b/src/imports/controls/doc/src/includes/qquickswipedelegate-interaction.qdocinc
deleted file mode 100644
index 05aeadb6..00000000
--- a/src/imports/controls/doc/src/includes/qquickswipedelegate-interaction.qdocinc
+++ /dev/null
@@ -1,5 +0,0 @@
-Both interactive and non-interactive items can be used here. Normal
-event handling rules apply; if an interactive control like \l Button
-is used, interaction signals of SwipeDelegate such as
-\l {AbstractButton::}{clicked()} will not get emitted if the button
-is clicked.
diff --git a/src/imports/controls/doc/src/includes/qquickswitch.qdocinc b/src/imports/controls/doc/src/includes/qquickswitch.qdocinc
deleted file mode 100644
index 985f85d9..00000000
--- a/src/imports/controls/doc/src/includes/qquickswitch.qdocinc
+++ /dev/null
@@ -1,28 +0,0 @@
-//! [position]
-
-This property holds the logical position of the thumb indicator.
-
-The position is expressed as a fraction of the indicator's size, in the range
-\c 0.0 - \c 1.0. The position can be used for example to determine whether
-the thumb has been dragged past the halfway point. For visualizing a thumb
-indicator, the right-to-left aware \l visualPosition should be used instead.
-
-\sa visualPosition
-
-//! [position]
-
-
-//! [visualPosition]
-
-This property holds the visual position of the thumb indicator.
-
-The position is expressed as a fraction of the indicator's size, in the range
-\c 0.0 - \c 1.0. When the control is \l {Control::mirrored}{mirrored}, the
-value is equal to \c {1.0 - position}. This makes the value suitable for
-visualizing the thumb indicator taking right-to-left support into account.
-In order to for example determine whether the thumb has been dragged past
-the halfway point, the logical \l position should be used instead.
-
-\sa position
-
-//! [visualPosition]
diff --git a/src/imports/controls/doc/src/includes/qquickuniversalstyle.qdocinc b/src/imports/controls/doc/src/includes/qquickuniversalstyle.qdocinc
deleted file mode 100644
index a7ecbaef..00000000
--- a/src/imports/controls/doc/src/includes/qquickuniversalstyle.qdocinc
+++ /dev/null
@@ -1,53 +0,0 @@
-//! [conf]
-\table
- \header
- \li Variable
- \li Description
- \row
- \li \c Theme
- \li Specifies the default \l {universal-theme-attached-prop}{Universal theme}.
- The value can be one of the available themes, for example \c "Dark".
- \row
- \li \c Accent
- \li Specifies the default \l {universal-accent-attached-prop}{Universal accent color}.
- The value can be any \l {colorbasictypedocs}{color}, but it is recommended to use
- one of the \l {pre-defined Universal colors}, for example \c "Violet".
- \row
- \li \c Foreground
- \li Specifies the default \l {universal-foreground-attached-prop}{Universal foreground color}.
- The value can be any \l {colorbasictypedocs}{color}, or one of the \l {pre-defined Universal colors},
- for example \c "Brown".
- \row
- \li \c Background
- \li Specifies the default \l {universal-background-attached-prop}{Universal background color}.
- The value can be any \l {colorbasictypedocs}{color}, or one of the \l {pre-defined Universal colors},
- for example \c "Steel".
-\endtable
-//! [conf]
-
-//! [env]
-\table
- \header
- \li Variable
- \li Description
- \row
- \li \c QT_QUICK_CONTROLS_UNIVERSAL_THEME
- \li Specifies the default \l {universal-theme-attached-prop}{Universal theme}.
- The value can be one of the available themes, for example \c "Dark".
- \row
- \li \c QT_QUICK_CONTROLS_UNIVERSAL_ACCENT
- \li Specifies the default \l {universal-accent-attached-prop}{Universal accent color}.
- The value can be any \l {colorbasictypedocs}{color}, but it is recommended to use
- one of the \l {pre-defined Universal colors}, for example \c "Violet".
- \row
- \li \c QT_QUICK_CONTROLS_UNIVERSAL_FOREGROUND
- \li Specifies the default \l {universal-foreground-attached-prop}{Universal foreground color}.
- The value can be any \l {colorbasictypedocs}{color}, or one of the \l {pre-defined Universal colors},
- for example \c "Brown".
- \row
- \li \c QT_QUICK_CONTROLS_UNIVERSAL_BACKGROUND
- \li Specifies the default \l {universal-background-attached-prop}{Universal background color}.
- The value can be any \l {colorbasictypedocs}{color}, or one of the \l {pre-defined Universal colors},
- for example \c "Steel".
-\endtable
-//! [env]
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-buttons.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-buttons.qdoc
deleted file mode 100644
index 6a4c5926..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-buttons.qdoc
+++ /dev/null
@@ -1,191 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-buttons.html
- \title Button Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for button controls
-
- Qt Quick Controls offers a selection of button-like controls.
-
- \annotatedlist qtquickcontrols2-buttons
-
- Each type of button has its own specific use case. The following
- sections offer guidelines for choosing the appropriate type of button,
- depending on the use case.
-
- \section1 Button Control
-
- \l Button is a clickable control that starts an action, or opens or
- closes a popup. A button usually has a text label but it can also
- contain an icon.
-
- Button is a very suitable control when a popup or dialog needs
- to perform an action. The most common examples are Apply, Cancel,
- Save, Close and Help.
-
- \image qtquickcontrols2-button.gif
-
- Recommendations:
-
- \list
- \li The button's text should be a verb describing the action, or a noun matching
- the title of the popup that will be opened.
- \li Don't use a button to set state. \l Switch is more suitable for that.
- \li Use the default font unless you have UI guidelines specifying otherwise.
- \li If the text is localized, consider the influence of a longer text on the layout.
- \endlist
-
- \b {See also} \l Button and \l AbstractButton
-
- \section1 CheckBox Control
-
- \image qtquickcontrols2-checkbox.gif
-
- \l CheckBox is used to build multi-selection option lists. Any number of
- options can be selected, including none, but the options should
- not be mutually exclusive.
-
- Use a single CheckBox for a yes/no choice, such as when you have
- to accept the terms of service agreement in a form.
-
- For a single yes/no choice, it is also possible to use a switch. If the choice
- concerns an option, it is best to use a CheckBox. If it concerns action to
- be taken, a switch is recommended.
-
- When options can be grouped, you can use a partially checked CheckBox to
- represent the whole group. Use the checkbox's
- \l {CheckBox::checkState}{partially checked state} when a user selects
- some, but not all, sub-items in the group.
-
- The three availables check states are: checked, partially checked and
- unchecked.
-
- The checkable options are often listed vertically.
-
- Recommendations:
- \list
- \li The checkbox label should be a statement that the check mark makes true,
- and that the absence of a check mark makes false.
- \li The checkbox label should not contain a negative statement.
- \li Use the default font, unless you have UI guidelines specifying otherwise.
- \li If the text is localized, consider the influence of a longer text on the layout.
- \endlist
-
- \b {See also} \l CheckBox
-
- \section1 DelayButton Control
-
- \l DelayButton is a button that incorporates a delay before triggering an action.
- This delay prevents accidental presses.
-
- \image qtquickcontrols2-delaybutton.gif
-
- Recommendations:
- \list
- \li Use in touch user interfaces.
- \li Use for actions that must be triggered with care.
- \endlist
-
- \b {See also} \l Button and \l AbstractButton
-
- \section1 RadioButton Control
-
- \image qtquickcontrols2-radiobutton.gif
-
- \l RadioButton is used to select only one option from a set of options.
- Selecting one option automatically deselects the one selected before.
-
- If there are only two mutually exclusive options, combine them into a
- single checkbox or a switch.
-
- Recommendations:
-
- \list
- \li Limit the label text to one line.
- \li Ensure that a sensible default option is checked.
- \li List RadioButton options vertically.
- \li If the text is localized, consider the influence of a longer text on the layout.
- \li Use the default font, unless you have UI guidelines that specify otherwise.
- \li Just like with CheckBox, do not make the list too large.
- \li In order to avoid confusion, do not put two groups of radio buttons next to each
- other.
- \endlist
-
- \b {See also} \l RadioButton
-
- \section1 RoundButton Control
-
- \l RoundButton is a clickable control that starts an action, or opens or
- closes a popup. A round button with a square image icon or one-letter font
- icon is circular. A circular RoundButton takes less space than a normal
- \l Button, and can also be used as a floating action button.
-
- \image qtquickcontrols2-roundbutton.png
-
- Recommendations:
-
- \list
- \li Keep labels short and concise.
- \li If the text is localized, consider the influence of a longer text on the layout.
- \endlist
-
- \b {See also} \l RoundButton
-
- \section1 Switch Control
-
- \image qtquickcontrols2-switch.png
-
- \l Switch represents a physical switch that allows users to choose between an "on"
- or "off" state.
- Use a switch for binary operations that take effect immediately after it has been
- switched on. For example, a switch to turn WIFI on or off.
-
- Recommendations:
-
- \list
- \li Keep labels short and concise.
- \li If the text is localized, consider the influence of a longer text on the layout.
- \endlist
-
- \b {See also} \l Switch
-
- \section1 ToolButton Control
-
- \image qtquickcontrols2-toolbutton.png
-
- \l ToolButton is nearly identical to \l Button, but it has a graphical
- appearance that makes it more suitable for insertion into a \l ToolBar.
-
- \b {See also} \l ToolButton
-
- \section1 Related Information
- \list
- \li \l {Qt Quick Controls Guidelines}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-configuration.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-configuration.qdoc
deleted file mode 100644
index 8caa392f..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-configuration.qdoc
+++ /dev/null
@@ -1,206 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-configuration.html
- \keyword Qt Quick Controls Configuration File
- \title Qt Quick Controls Configuration File
- \keyword Qt Quick Controls 2 Configuration File
-
- Qt Quick Controls support a special configuration file, \c qtquickcontrols2.conf,
- which is built into an application's resources.
-
- The configuration file can specify the preferred style and certain style-specific
- attributes. The following example specifies that the preferred style is the \l {Material style}.
- Furthermore, when the application is run with the Material style, its theme is light and the
- accent and primary colors are teal and blue grey, respectively. However, if the application
- is run with the \l {Universal style} instead, the accent color is red and the appropriate theme
- is chosen based on the system theme colors.
-
- \code
- [Controls]
- Style=Material
-
- [Universal]
- Theme=System
- Accent=Red
-
- [Material]
- Theme=Light
- Accent=Teal
- Primary=BlueGrey
- \endcode
-
- It is possible to specify a custom location for the configuration file with
- the \l {Supported Environment Variables in Qt Quick Controls}
- {QT_QUICK_CONTROLS_CONF} environment variable.
-
- \section1 Controls Section
-
- The following values can be specified in a \c Controls section of the
- configuration file:
-
- \table
- \header
- \li Variable
- \li Description
- \row
- \li \c Style
- \li Specifies the style to run the application with.
- The value can be the name of one of the \l {Available Styles}{built-in styles}
- or a \l {Creating a Custom Style}{custom style}.
- \row
- \li \c FallbackStyle
- \li Specifies the style to use for controls that are not implemented.
- The style must be one of the \l {Available Styles}{built-in styles}.
- By default, the \l {Default Style}{Default} style is used.
- \endtable
-
- \section1 Imagine Section
-
- The following table lists values that can be used to configure the
- \l {Imagine style} in an \c Imagine section of the configuration file:
-
- \include qquickimaginestyle.qdocinc conf
-
- \section1 Material Section
-
- The following table lists values that can be used to configure the
- \l {Material style} in a \c Material section of the configuration file:
-
- \include qquickmaterialstyle.qdocinc conf
-
- \section1 Universal Section
-
- The following table lists values that can be used to configure the
- \l {Universal style} in a \c Universal section of the configuration file:
-
- \include qquickuniversalstyle.qdocinc conf
-
- \section1 Font Configuration
-
- The default \l {Control::font}{font} can be specified in a \c Font sub-group
- in each style's section in the configuration file. The \c Font sub-group can
- be defined in two alternative ways:
-
- \code
- [Default]
- Font\Family=Open Sans
- Font\PixelSize=20
-
- [Material\Font]
- Family=Open Sans
- PixelSize=20
- \endcode
-
- Supported font attributes:
- \table
- \header
- \li Variable
- \li Description
- \row
- \li \c Family
- \li The \l {QFont::family}{font family}.
- \row
- \li \c PointSize
- \li The \l {QFont::pointSizeF}{point size}.
- \row
- \li \c PixelSize
- \li The \l {QFont::pixelSize}{pixel size}.
- \row
- \li \c StyleHint
- \li The \l {QFont::styleHint}{style hint}.
- Available values: \c SansSerif, \c Helvetica, \c Serif, \c Times, \c TypeWriter, \c Courier,
- \c OldEnglish, \c Decorative, \c Monospace, \c Fantasy, \c Cursive.
- \row
- \li \c Weight
- \li The \l {QFont::}{weight}. Qt uses a weighting scale from \c 0 to \c 99 similar to,
- but not the same as, the scales used in Windows or CSS. A weight of \c 0 will be thin,
- whilst \c 99 will be extremely black.
- Available pre-defined weights: \c Thin (0), \c ExtraLight (12), \c Light (25), \c Normal (50),
- \c Medium (57), \c DemiBold (63), \c Bold (75), \c ExtraBold (81),
- \c Black (87).
- \row
- \li \c Style
- \li The \l {QFont::}{style}.
- Available values: \c StyleNormal, \c StyleItalic, \c StyleOblique.
- \endtable
-
- \section1 Palette Configuration
-
- The default \l {Control::palette}{palette} can be specified in a \c Palette sub-group
- in each style's section in the configuration file. The \c Palette sub-group can be
- defined in two alternative ways:
-
- \code
- [Fusion]
- Palette\Window=#dedede
- Palette\WindowText=#212121
- \endcode
-
- or:
- \code
- [Fusion\Palette]
- Window=#dedede
- WindowText=#212121
- \endcode
-
- See \l {qtquickcontrols2-palette}{palette QML Basic Type} for a full list of supported
- attributes.
-
- \section1 Using the Configuration File in a Project
-
- In order to make it possible for Qt Quick Controls to find the configuration file,
- it must be built into application's resources using the \l {The Qt Resource System}.
- Here's an example \c .qrc file:
-
- \code
- <!DOCTYPE RCC><RCC version="1.0">
- <qresource prefix="/">
- <file>qtquickcontrols2.conf</file>
- </qresource>
- </RCC>
- \endcode
-
- \note Qt Quick Controls uses a file selector to load the configuration file. It
- is possible to provide a different configuration file for different platforms and
- locales. See \l QFileSelector documentation for more details.
-
- Finally, the \c .qrc file must be listed in the application's \c .pro file so that
- the build system knows about it. For example:
-
- \code
- RESOURCES = application.qrc
- \endcode
-
- \section1 Related Information
-
- \list
- \li \l{Styling Qt Quick Controls}
- \li \l{Supported Environment Variables in Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-containers.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-containers.qdoc
deleted file mode 100644
index 81e24c26..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-containers.qdoc
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-containers.html
- \title Container Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for container controls
-
- Qt Quick Controls offers a selection of container-like controls.
-
- \annotatedlist qtquickcontrols2-containers
-
- Each type of container can be used to group a set of controls together.
- The following sections offer guidelines for choosing the appropriate type
- of container, depending on the use case.
-
- \section1 ApplicationWindow Control
-
- \image qtquickcontrols2-applicationwindow-wireframe.png
-
- \l ApplicationWindow creates the root window of an application, and makes
- it easy to add an optional header and footer to that window.
-
- \section1 Frame Control
-
- \image qtquickcontrols2-frame.png
-
- \l Frame is used to layout a logical group of controls together, within
- a visual frame.
-
- \section1 GroupBox Control
-
- \image qtquickcontrols2-groupbox.png
-
- \l GroupBox is used to layout a logical group of controls together,
- within a titled visual frame.
-
- \section1 Page Control
-
- \image qtquickcontrols2-page-wireframe.png
-
- \l Page provides page-specific header and footer items.
- It is perfectly possible to use ApplicationWindow for setting the header
- and the footer, but if you have a header and footer which varies per
- screen, then it is better to use \l Page.
-
- \section1 Pane Control
-
- \image qtquickcontrols2-pane.png
-
- \l Pane provides a background color that matches with the application
- style and theme. Pane does not provide a layout of its own, but requires
- you to position its contents, for instance by using a \l RowLayout or
- a \l ColumnLayout.
-
- \section1 ScrollView Control
-
- \image qtquickcontrols2-scrollview-wireframe.png
-
- \l ScrollView provides scrolling for user-defined content.
-
- \section1 StackView Control
-
- \image qtquickcontrols2-stackview-wireframe.png
-
- \l StackView organizes content pages into a stack using a last-in-first-out
- principle: the last item to be "pushed" onto the stack is the first one to
- be removed, and the top-most item is always the one that is visible.
-
- \section1 SwipeView Control
-
- \image qtquickcontrols2-swipeview-wireframe.png
-
- \l SwipeView organizes content pages into a swipable strip.
-
- \section1 TabBar Control
-
- \image qtquickcontrols2-tabbar-wireframe.png
-
- \l TabBar organizes content pages into tabs.
-
- \section1 ToolBar Control
-
- \image qtquickcontrols2-toolbar.png
-
- \l ToolBar is a container of application-wide and context-sensitive
- actions and controls.
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-cppclasses.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-cppclasses.qdoc
deleted file mode 100644
index 4a8ecfea..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-cppclasses.qdoc
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \module QtQuickControls2
- \keyword Qt Quick Controls C++ Classes
- \title Qt Quick Controls C++ Classes
- \keyword Qt Quick Controls 2 C++ Classes
- \ingroup modules
- \qtvariable quickcontrols2
-
- \brief Provides classes for setting up the controls from C++.
-
- The C++ types can be included into your application using the following
- include statement:
-
- \code
- #include <QtQuickControls2>
- \endcode
-
- \note If you are using a few classes from this module, we recommend including
- those specific classes only instead of the module.
-
- To link against the corresponding C++ libraries, add the following to your
- qmake project file:
-
- \code
- QT += quickcontrols2
- \endcode
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc
deleted file mode 100644
index cd06a456..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-customize.qdoc
+++ /dev/null
@@ -1,893 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-customize.html
- \keyword Customizing Qt Quick Controls 2
- \title Customizing Qt Quick Controls
- \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 QML implementation of each
- item can be replaced with a custom one.
-
- \section1 Customizing a Control
-
- Sometimes you'll want to create a "one-off" look for a specific part of
- your UI, and use a complete style everywhere else. Perhaps you're happy
- with the style you're using, but there's a certain button that has some
- special significance.
-
- The first way to create this button is to simply define it in-place,
- wherever it is needed. For example, perhaps you're not satisfied with the
- default style's Button having square corners. To make them rounded, you
- can override the \l {Control::}{background} item and set the radius
- property of Rectangle:
-
- \qml \QtMinorVersion
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- ApplicationWindow {
- width: 400
- height: 400
- visible: true
-
- Button {
- id: button
- text: "A Special Button"
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- color: button.down ? "#d6d6d6" : "#f6f6f6"
- border.color: "#26282a"
- border.width: 1
- radius: 4
- }
- }
- }
- \endqml
-
- The second way to create the button is good if you plan to use your rounded
- button in several places. It involves moving the code into its own QML file
- within your project.
-
- For this approach, we'll copy the background code from the default style's
- \c Button.qml. This file can be found in the following path in your Qt
- installation:
-
- \c {$QTDIR/qml/QtQuick/Controls.2/Button.qml}
-
- After doing that, we'll simply add the following line:
-
- \code
- radius: 4
- \endcode
-
- To avoid confusion with the controls in the
- module itself, we'll call the file \c MyButton.qml. To use the control in
- your application, refer to it by its filename:
-
- \qml \QtMinorVersion
- import QtQuick.Controls 2.\1
-
- ApplicationWindow {
- MyButton {
- text: qsTr("A Special Button")
- }
- }
- \endqml
-
- The third way to create the button is a bit more structured, both in terms
- of where the file sits in the file system and how it is used in QML. First,
- copy an existing file as you did above, but this time, put it into a
- subfolder in your project named (for example) \c controls. To use the
- control, first import the folder into a namespace:
-
- \qml \QtMinorVersion
- import QtQuick.Controls 2.\1
- import "controls" as MyControls
-
- ApplicationWindow {
- MyControls.Button {
- text: qsTr("A Special Button")
- }
- }
- \endqml
-
- As you now have the \c MyControls namespace, you can name the controls after
- their actual counterparts in the Qt Quick Controls module. You can repeat
- this process for any control that you wish to add.
-
- An added benefit of these three methods is that it's not necessary to
- implement the template from scratch.
-
- \section1 Creating a Custom Style
-
- There are several ways to go about creating your own styles. Below, we'll
- explain the various approaches.
-
- \section2 Definition of a Style
-
- In Qt Quick Controls, a style is essentially an interchangeable set of
- QML files within a single directory. There are three requirements for a style
- to be \l {Using Styles in Qt Quick Controls}{usable}:
-
- \list
- \li At least one QML file whose name matches a control (for example,
- \c Button.qml) must exist.
- \li Each QML file must contain the relevant type from the \l {Qt Quick Templates 2}
- {QtQuick.Templates} import as the root item. For example,
- Button.qml must contain a Button template as its root item.
-
- If we instead used the corresponding type from the \l {Qt Quick Controls}
- {QtQuick.Controls} import as we did in the previous section, it would not work:
- the control we were defining would try to derive from itself.
- \li The files must be in a directory in the filesystem or in the
- \l {The Qt Resource System}{resource system}.
-
- For example, these are all valid paths to a style:
-
- \list
- \li \c {./myapp -style /home/absolute/path/to/my/style}
- \li \c {./myapp -style :/mystyle}
- \li \c {./myapp -style relative/path/to/my/style}
- \li \c {./myapp -style MyStyle}
- \endlist
-
- The third and fourth paths will be looked up within the QML engine's import path
- list. This is the same as what happens when you pass \c Material as the style,
- for example.
- \endlist
-
- By default, the styling system uses the Default style as a fallback for
- controls that aren't implemented. To customize or extend any other built-in
- style, it is possible to specify a different fallback style using \l QQuickStyle.
-
- What this means is that you can implement as many controls as you like for
- your custom style, and place them almost anywhere. It also allows users to
- create their own styles for your application.
-
- \section3 Previewing Custom Styles in Qt Quick Designer
-
- Using the approach above, it is possible to preview a custom style
- in \l {Using Qt Quick Designer}{Qt Quick Designer}. In order to do so,
- ensure that the project has a
- \l {Qt Quick Controls Configuration File}{qtquickcontrols2.conf} file,
- and that the following entry exists:
-
- \badcode
- [Controls]
- Style=MyStyle
- \endcode
-
- For more information, take a look at the
- \l {Qt Quick Controls - Flat Style}{Flat Style example}.
-
- \section2 Style-specific C++ Extensions
-
- Sometimes you may need to use C++ to extend your custom style. There are two
- ways to expose such types to QML:
-
- \list
- \li If the style that uses the type is the only style used by an application,
- it's enough to register it with the QML engine via qmlRegisterType():
-
- \code
- qmlRegisterType<ACoolCppItem>("MyApp", 1, 0, "ACoolItem");
- \endcode
-
- See \l {Using C++ Data From QML} for more information about this.
- \li If the style that uses the type is one of many styles used by an
- application, it may be better to only register it when necessary. This
- is the point at which it would make sense to implement your own
- \l {Creating C++ Plugins for QML}{QML plugin}.
-
- Using a plugin as part of your style is not that much different from
- using a set of QML files. The only difference is that the plugin and
- its \c qmldir file must be present in the same directory as the QML
- files.
- \endlist
-
- \section3 Attached properties
-
- It is common for a style to have certain properties or attributes that
- apply to all controls. \l {Attached Properties and Attached Signal
- Handlers}{Attached properties} are a great way of extending an item in QML
- without having to modify any existing C++ belonging to that item. For
- example, both the \l {Material Style}{Material} and \l {Universal
- Style}{Universal} styles have an attached theme property that controls
- whether an item and its children will be rendered in a light or dark theme.
-
- As an example, let's add an attached property that controls elevation. Our
- style will illustrate the elevation with a drop shadow; the higher the
- elevation, the larger the shadow.
-
- The first step is to \l {Qt Creator: Creating Qt Quick Projects}{create a new Qt Quick
- Controls 2 application} in Qt Creator. After that, we
- \l {Qt Creator: Creating C++ Classes}{add a C++ type} that stores the elevation. Since
- the type will be used for every control supported by our style, and because
- we may wish to add other attached properties later on, we'll call it
- MyStyle. Here is \c MyStyle.h:
-
- \code
- #ifndef MYSTYLE_H
- #define MYSTYLE_H
-
- #include <QObject>
- #include <QtQml>
-
- class MyStyle : public QObject
- {
- Q_OBJECT
- Q_PROPERTY(int elevation READ elevation WRITE setElevation NOTIFY elevationChanged)
-
- public:
- explicit MyStyle(QObject *parent = nullptr);
-
- static MyStyle *qmlAttachedProperties(QObject *object);
-
- int elevation() const;
- void setElevation(int elevation);
-
- signals:
- void elevationChanged();
-
- private:
- int m_elevation;
- };
-
- QML_DECLARE_TYPEINFO(MyStyle, QML_HAS_ATTACHED_PROPERTIES)
-
- #endif // MYSTYLE_H
- \endcode
-
- \c MyStyle.cpp:
-
- \code
- #include "mystyle.h"
-
- MyStyle::MyStyle(QObject *parent) :
- QObject(parent),
- m_elevation(0)
- {
- }
-
- MyStyle *MyStyle::qmlAttachedProperties(QObject *object)
- {
- return new MyStyle(object);
- }
-
- int MyStyle::elevation() const
- {
- return m_elevation;
- }
-
- void MyStyle::setElevation(int elevation)
- {
- if (elevation == m_elevation)
- return;
-
- m_elevation = elevation;
- emit elevationChanged();
- }
- \endcode
-
- The \c MyStyle type is special in the sense that it shouldn't be
- instantiated, but rather used for its attached properties. For that reason,
- we register it in the following manner in \c main.cpp:
-
- \code
- #include <QGuiApplication>
- #include <QQmlApplicationEngine>
-
- #include "mystyle.h"
-
- int main(int argc, char *argv[])
- {
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
-
- qmlRegisterUncreatableType<MyStyle>("MyStyle", 1, 0, "MyStyle", "MyStyle is an attached property");
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QLatin1String("qrc:/main.qml")));
-
- return app.exec();
- }
- \endcode
-
- We then copy \c Button.qml from the Default style in
- \c {$QTDIR/qml/QtQuick/Controls.2/} into a new \c myproject folder in our
- project directory. Add the newly copied \c Button.qml to \c qml.qrc, which is
- the resource file that contains our QML files.
-
- Next, we add a drop shadow to the \l {Control::}{background} delegate of
- the Button:
-
- \code \QtMinorVersion
- // ...
- import QtGraphicalEffects 1.\1
- import MyStyle 1.0
- // ...
-
- background: Rectangle {
- // ...
-
- layer.enabled: control.enabled && control.MyStyle.elevation > 0
- layer.effect: DropShadow {
- verticalOffset: 1
- color: control.visualFocus ? "#330066ff" : "#aaaaaa"
- samples: control.MyStyle.elevation
- spread: 0.5
- }
- }
- \endcode
-
- Note that we:
-
- \list
- \li Don't bother using the drop shadow when the elevation is \c 0
- \li Change the shadow's color depending on whether or not the button has
- focus
- \li Make the size of the shadow depend on the elevation
- \endlist
-
- To try out the attached property, we create a \l Row with two Buttons in
- \c main.qml:
-
- \qml \QtMinorVersion
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- import MyStyle 1.0
-
- ApplicationWindow {
- id: window
- width: 400
- height: 400
- visible: true
-
- Row {
- spacing: 20
- anchors.centerIn: parent
-
- Button {
- text: "Button 1"
- }
- Button {
- text: "Button 2"
- MyStyle.elevation: 10
- }
- }
- }
- \endqml
-
- One button has no elevation, and the other has an elevation of \c 10.
-
- With that in place, we can run our example. To tell the application to
- use our new style, we pass \c {-style :/mystyle} as an application
- argument, but there are \l {Using Styles in Qt Quick Controls}{many
- ways} to specify the style to use.
-
- The end result:
-
- \image qtquickcontrols2-customize-buttons.png
-
- Note that the \c {import MyStyle 1.0} statement is only necessary
- because we are using the attached property belonging to \c MyStyle.
- Both buttons will use our custom style, even if we were to remove the
- import.
-
- \section1 Customization Reference
-
- The following snippets present examples where the default style's controls
- have been customized using the same approach as the
- \l {Customizing a Control} section. The code can be used as a starting
- point to implement a custom look and feel.
-
- \section2 Customizing ApplicationWindow
-
- ApplicationWindow consists of one visual item:
- \l {ApplicationWindow::background}{background}. It is also possible
- to customize the \l {ApplicationWindow::overlay}{modal} and
- \l {ApplicationWindow::overlay}{modeless} items.
-
- \code \QtMinorVersion
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- ApplicationWindow {
- visible: true
-
- background: Rectangle {
- gradient: Gradient {
- GradientStop { position: 0; color: "#ffffff" }
- GradientStop { position: 1; color: "#c1bbf9" }
- }
- }
-
- overlay.modal: Rectangle {
- color: "#8f28282a"
- }
-
- overlay.modeless: Rectangle {
- color: "#2f28282a"
- }
- }
- \endcode
-
-
- \section2 Customizing BusyIndicator
-
- BusyIndicator consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{contentItem}.
-
- \image qtquickcontrols2-busyindicator-custom.png
-
- \snippet qtquickcontrols2-busyindicator-custom.qml file
-
-
- \section2 Customizing Button
-
- Button consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-button-custom.png
-
- \snippet qtquickcontrols2-button-custom.qml file
-
-
- \section2 Customizing CheckBox
-
- CheckBox consists of three visual items: \l {Control::background}{background},
- \l {Control::contentItem}{contentItem} and \l {AbstractButton::indicator}{indicator}.
-
- \image qtquickcontrols2-checkbox-custom.png
-
- \snippet qtquickcontrols2-checkbox-custom.qml file
-
- \section2 Customizing CheckDelegate
-
- CheckDelegate consists of three visual items: \l {Control::background}{background},
- \l {Control::contentItem}{contentItem} and \l {AbstractButton::indicator}{indicator}.
-
- \image qtquickcontrols2-checkdelegate-custom.png
-
- \snippet qtquickcontrols2-checkdelegate-custom.qml file
-
-
- \section2 Customizing ComboBox
-
- ComboBox consists of \l {Control::background}{background},
- \l {Control::contentItem}{content item}, \l {ComboBox::popup}{popup},
- \l {ComboBox::indicator}{indicator}, and \l {ComboBox::delegate}{delegate}.
-
- \image qtquickcontrols2-combobox-custom.png
-
- \snippet qtquickcontrols2-combobox-custom.qml file
-
-
- \section2 Customizing DelayButton
-
- DelayButton consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-delaybutton-custom.png
-
- \snippet qtquickcontrols2-delaybutton-custom.qml file
-
-
- \section2 Customizing Dial
-
- Dial consists of two visual items: \l {Control::background}{background}
- and \l {Dial::handle}{handle}.
-
- \image qtquickcontrols2-dial-custom.png
-
- \snippet qtquickcontrols2-dial-custom.qml file
-
-
- \section2 Customizing Drawer
-
- Drawer can have a visual \l {Control::background}{background}
- item.
-
- \code
- background: Rectangle {
- Rectangle {
- x: parent.width - 1
- width: 1
- height: parent.height
- color: "#21be2b"
- }
- }
- \endcode
-
-
- \section2 Customizing Frame
-
- Frame consists of one visual item: \l {Control::background}{background}.
-
- \image qtquickcontrols2-frame-custom.png
-
- \snippet qtquickcontrols2-frame-custom.qml file
-
-
- \section2 Customizing GroupBox
-
- GroupBox consists of two visual items: \l {Control::background}{background}
- and \l {GroupBox::label}{label}.
-
- \image qtquickcontrols2-groupbox-custom.png
-
- \snippet qtquickcontrols2-groupbox-custom.qml file
-
-
- \section2 Customizing ItemDelegate
-
- ItemDelegate consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-itemdelegate-custom.png
-
- \snippet qtquickcontrols2-itemdelegate-custom.qml file
-
-
- \section2 Customizing Label
-
- Label can have a visual \l {Label::background}{background} item.
-
- \image qtquickcontrols2-label-custom.png
-
- \snippet qtquickcontrols2-label-custom.qml file
-
-
- \section2 Customizing Menu
-
- \list
- \li \l Menu consists of a visual \l {Popup::background}{background} item.
- \li \l MenuItem consists of four visual items: \l {Control::background}{background},
- \l {Control::contentItem}{content item}, \l {AbstractButton::}{indicator}, and
- \l {MenuItem::}{arrow}.
- \li \l MenuSeparator consists of a visual \l {Control::background}{background} and
- \l {Control::contentItem}{content item}.
- \endlist
-
- \image qtquickcontrols2-menu-custom.png
-
- \quotefromfile qtquickcontrols2-menu-custom.qml
- \skipto import QtQuick
- \printuntil import QtQuick.Controls
- \skipto Menu
- \printto eof
-
-
- \section2 Customizing MenuBar
-
- MenuBar can have a visual \l {Control::background}{background} item,
- and MenuBarItem consists of two visual items: \l {Control::background}
- {background} and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-menubar-custom.png
-
- \quotefromfile qtquickcontrols2-menubar-custom.qml
- \skipto import QtQuick
- \printuntil import QtQuick.Controls
- \skipto MenuBar
- \printto eof
-
-
- \section2 Customizing PageIndicator
-
- PageIndicator consists of a \l {Control::background}{background}, \l {Control::contentItem}{content item}, and \l {PageIndicator::delegate}{delegate}.
-
- \image qtquickcontrols2-pageindicator-custom.png
-
- \snippet qtquickcontrols2-pageindicator-custom.qml file
-
-
- \section2 Customizing Pane
-
- Pane consists of a \l {Control::background}{background}.
-
- \image qtquickcontrols2-pane-custom.png
-
- \snippet qtquickcontrols2-pane-custom.qml file
-
-
- \section2 Customizing Popup
-
- Popup consists of a \l {Popup::background}{background} and
- \l {Popup::contentItem}{content item}.
-
- \image qtquickcontrols2-popup-custom.png
-
- \quotefromfile qtquickcontrols2-popup-custom.qml
- \skipto import QtQuick 2.12
- \printuntil import QtQuick.Controls 2.12
- \codeline
- \skipto Popup
- \printuntil {
- \printuntil }
- \printuntil }
- \printuntil }
-
-
- \section2 Customizing ProgressBar
-
- ProgressBar consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-progressbar-custom.png
-
- \snippet qtquickcontrols2-progressbar-custom.qml file
-
-
- \section2 Customizing RadioButton
-
- RadioButton consists of three visual items: \l {Control::background}{background},
- \l {Control::contentItem}{content item} and \l {AbstractButton::indicator}{indicator}.
-
- \image qtquickcontrols2-radiobutton-custom.png
-
- \snippet qtquickcontrols2-radiobutton-custom.qml file
-
-
- \section2 Customizing RadioDelegate
-
- RadioDelegate consists of three visual items: \l {Control::background}{background},
- \l {Control::contentItem}{contentItem} and \l {AbstractButton::indicator}{indicator}.
-
- \image qtquickcontrols2-radiodelegate-custom.png
-
- \snippet qtquickcontrols2-radiodelegate-custom.qml file
-
-
- \section2 Customizing RangeSlider
-
- RangeSlider consists of three visual items:
- \l {Control::background}{background},
- \l {RangeSlider::first}{first.handle} and
- \l {RangeSlider::second.handle}{second.handle}.
-
- \image qtquickcontrols2-rangeslider-custom.png
-
- \snippet qtquickcontrols2-rangeslider-custom.qml file
-
-
- \section2 Customizing RoundButton
-
- RoundButton can be customized in the same manner as
- \l {Customizing Button}{Button}.
-
-
- \section2 Customizing ScrollBar
-
- ScrollBar consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-scrollbar-custom.png
-
- \snippet qtquickcontrols2-scrollbar-custom.qml file
-
-
- \section2 Customizing ScrollIndicator
-
- ScrollIndicator consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-scrollindicator-custom.png
-
- \snippet qtquickcontrols2-scrollindicator-custom.qml file
-
-
- \section2 Customizing ScrollView
-
- ScrollView consists of a \l {Control::background}{background} item,
- and horizontal and vertical scroll bars.
-
- \image qtquickcontrols2-scrollview-custom.png
-
- \snippet qtquickcontrols2-scrollview-custom.qml file
-
-
- \section2 Customizing Slider
-
- Slider consists of two visual items: \l {Control::background}{background},
- and \l {Slider::handle}{handle}.
-
- \image qtquickcontrols2-slider-custom.png
-
- \snippet qtquickcontrols2-slider-custom.qml file
-
-
- \section2 Customizing SpinBox
-
- SpinBox consists of four visual items: \l {Control::background}{background},
- \l {Control::contentItem}{contentItem}, \l {SpinBox::up.indicator}{up indicator},
- and \l {SpinBox::down.indicator}{down indicator}.
-
- \image qtquickcontrols2-spinbox-custom.png
-
- \snippet qtquickcontrols2-spinbox-custom.qml file
-
-
- \section2 Customizing SplitView
-
- SplitView consists of a visual \l {SplitView::handle}{handle} delegate.
-
- \image qtquickcontrols2-splitview-custom.png
-
- \snippet qtquickcontrols2-splitview-custom.qml 1
-
-
- \section2 Customizing StackView
-
- StackView can have a visual \l {Control::background}{background}
- item, and it allows customizing the transitions that are used for
- push, pop, and replace operations.
-
- \snippet qtquickcontrols2-stackview-custom.qml file
-
-
- \section2 Customizing SwipeDelegate
-
- SwipeDelegate consists of six visual items: \l {Control::background}{background},
- \l {Control::contentItem}{content item}, \l {AbstractButton::indicator}{indicator},
- \c swipe.left, \c swipe.right, and \c swipe.behind.
-
- \image qtquickcontrols2-swipedelegate-custom.png
-
- \snippet qtquickcontrols2-swipedelegate-custom.qml file
-
-
- \section2 Customizing SwipeView
-
- SwipeView can have a visual \l {Control::background}{background}
- item. The navigation is implemented by the \l {Control::contentItem}
- {content item}.
-
- \snippet qtquickcontrols2-swipeview-custom.qml file
-
-
- \section2 Customizing Switch
-
- Switch consists of three visual items: \l {Control::background}{background},
- \l {Control::contentItem}{content item} and \l {AbstractButton::indicator}{indicator}.
-
- \image qtquickcontrols2-switch-custom.png
-
- \snippet qtquickcontrols2-switch-custom.qml file
-
- \section2 Customizing SwitchDelegate
-
- SwitchDelegate consists of three visual items: \l {Control::background}{background},
- \l {Control::contentItem}{contentItem} and \l {AbstractButton::indicator}{indicator}.
-
- \image qtquickcontrols2-switchdelegate-custom.png
-
- \snippet qtquickcontrols2-switchdelegate-custom.qml file
-
-
- \section2 Customizing TabBar
-
- TabBar consists of two visual items: \l {Control::background}{background},
- and \l {Control::contentItem}{contentItem}.
-
- \image qtquickcontrols2-tabbar-custom.png
-
- \snippet qtquickcontrols2-tabbar-custom.qml file
-
-
- \section2 Customizing TabButton
-
- TabButton can be customized in the same manner as
- \l {Customizing Button}{Button}.
-
-
- \section2 Customizing TextArea
-
- TextArea consists of a \l {TextArea::background}{background} item.
-
- \image qtquickcontrols2-textarea-custom.png
-
- \snippet qtquickcontrols2-textarea-custom.qml file
-
-
- \section2 Customizing TextField
-
- TextField consists of a \l {TextField::background}{background} item.
-
- \image qtquickcontrols2-textfield-custom.png
-
- \snippet qtquickcontrols2-textfield-custom.qml file
-
-
- \section2 Customizing ToolBar
-
- ToolBar consists of one visual item: \l {Control::background}{background}.
-
- \image qtquickcontrols2-toolbar-custom.png
-
- \snippet qtquickcontrols2-toolbar-custom.qml file
-
-
- \section2 Customizing ToolButton
-
- ToolButton consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-toolbutton-custom.png
-
- \snippet qtquickcontrols2-toolbutton-custom.qml file
-
-
- \section2 Customizing ToolSeparator
-
- ToolSeparator consists of two visual items: \l {Control::background}{background}
- and \l {Control::contentItem}{content item}.
-
- \image qtquickcontrols2-toolseparator-custom.png
-
- \snippet qtquickcontrols2-toolseparator-custom.qml file
-
-
- \section2 Customizing ToolTip
-
- ToolTip consists of two visual items: \l {Popup::background}{background}
- and \l {Popup::contentItem}{content item}.
-
- \quotefromfile qtquickcontrols2-tooltip-custom.qml
- \skipto import QtQuick
- \printuntil import QtQuick.Controls
- \skipto ToolTip
- \printuntil }
- \printuntil }
- \printuntil }
-
-
- \section2 Customizing Tumbler
-
- Tumbler consists of three visual items:
- \l {Control::background}{background},
- \l {Control::contentItem}{contentItem}, and
- \l {Tumbler::delegate}{delegate}.
-
- \image qtquickcontrols2-tumbler-custom.png
-
- \snippet qtquickcontrols2-tumbler-custom.qml file
-
- If you want to define your own contentItem, use either a \l ListView or
- \l PathView as the root item. For a wrapping Tumbler, use PathView:
-
- \snippet qtquickcontrols2-tumbler-pathView.qml contentItem
-
- For a non-wrapping Tumbler, use ListView:
-
- \snippet qtquickcontrols2-tumbler-listView.qml contentItem
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-default.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-default.qdoc
deleted file mode 100644
index 779f3241..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-default.qdoc
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-default.html
- \title Default Style
-
- The Default style is a basic all-round style.
-
- The Default style is a simple and light-weight style that offers the maximum
- performance for Qt Quick Controls. It is built with a minimal amount of Qt
- Quick primitives, and keeps animations and transitions to the minimum.
-
- \image qtquickcontrols2-default.png
-
- The style is selected by default when running Qt Quick Controls applications.
- It is built into the module's resources, so by default it is shipped with
- any application that depends on the Qt Quick Controls module
-
- \note The Default style is used as a fallback for other styles. If a style
- does not implement a certain control, the Default style implementation of
- that control is selected.
-
- \b {See also} \l {Material Style}, \l {Universal Style}
-
- \section1 Related Information
-
- \list
- \li \l{Styling Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-delegates.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-delegates.qdoc
deleted file mode 100644
index bea87abf..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-delegates.qdoc
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-delegates.html
- \title Delegate Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for delegate controls
-
- Qt Quick Controls offers a selection of controls that are used as
- delegates in views.
-
- \annotatedlist qtquickcontrols2-delegates
-
- Each type of delegate has its own specific target use case. The following
- sections offer guidelines for choosing the appropriate type of delegate,
- depending on the use case.
-
- \section1 ItemDelegate Control
-
- \image qtquickcontrols2-itemdelegate.gif
-
- \l ItemDelegate presents a checkable control that can be pressed and
- clicked by the user.
-
- \section1 RadioDelegate Control
-
- \image qtquickcontrols2-radiodelegate.gif
-
- \l RadioDelegate presents a checkable control that can be toggled on
- (checked) or off (unchecked). Radio delegates are typically used to select
- one option from a set of options.
-
- \b {See also} \l {RadioButton Control}.
-
- \section1 SwipeDelegate Control
-
- \image qtquickcontrols2-swipedelegate.gif
-
- \l SwipeDelegate presents a view item that can be swiped left or right to
- expose more options or information.
-
- \section1 SwitchDelegate Control
-
- \image qtquickcontrols2-switchdelegate.gif
-
- \l SwitchDelegate presents a switchable delegate that can be toggled on or off.
-
- \b {See also} \l {Switch Control}.
-
- \section1 Related Information
- \list
- \li \l {Qt Quick Controls Guidelines}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-deployment.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-deployment.qdoc
deleted file mode 100644
index 7b27c9d5..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-deployment.qdoc
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-deployment.html
- \title Deploying Qt Quick Controls Applications
-
- Deployment of Qt Quick Controls applications is very similar to
- deployment of other types of Qt applications. However, there are a few
- factors to consider.
-
- \section1 Deploying an Application with Several Styles
-
- Suppose you have an application that will be deployed to both Android and
- Windows devices. To ensure that only the minimum set of files that are
- necessary for the application to run are deployed to each device, you can
- use file selectors. For example, your directory structure could look like
- this:
-
- \code
- resources.qrc
- main.qml
- +windows/MyPage.qml
- +windows/qtquickcontrols2.conf
- +android/MyPage.qml
- +android/qtquickcontrols2.conf
- \endcode
-
- In the project above, \c main.qml would import \c QtQuick.Controls, for
- example, but shouldn't import, say, \c QtQuick.Controls.Material. Any code
- that is style-specific is moved out into separate files; just as we've done
- for \c MyPage.qml.
-
- The \c +windows/qtquickcontrols2.conf file would contain configuration
- options specific to the Universal style:
-
- \code
- [Controls]
- Style=Universal
-
- [Universal]
- Theme=Dark
- Accent=Red
- \endcode
-
- The \c +android/qtquickcontrols2.conf file would contain configuration
- options specific to the Material style:
-
- \code
- [Controls]
- Style=Material
-
- [Material]
- Theme=Light
- Accent=Brown
- \endcode
-
- \section1 Static Builds
-
- For dynamically built applications, it is not necessary to import a
- specific style that should be usable by that application. For statically
- built applications, Qt's build system must be involved to ensure that
- QML plugins function as expected. Specifically, \c qmake uses
- \c qmlimportscanner to scan the QML files in your application for import
- statements. For this reason, any styles that should be usable by a
- statically built application must explicitly import that style. Where the
- import occurs is up to the developer, but it is recommended to follow the
- approach mentioned in the \l {Deploying an Application with Several Styles}
- section, so that only the minimum set of files that are necessary for a
- particular device are deployed.
-
- \sa {Deploying Qt Applications}
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-differences.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-differences.qdoc
deleted file mode 100644
index bfb27dcb..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-differences.qdoc
+++ /dev/null
@@ -1,689 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-differences.html
- \title Differences with Qt Quick Controls 1
-
- Qt Quick Controls 1 was originally developed to support desktop platforms,
- with mobile and embedded support coming shortly afterwards. They have a
- very broad scope, in that they provide a styling system flexible enough to
- allow the development of applications that have either a platform-dependent
- or platform-independent style.
-
- On embedded systems, where the hardware has limited resources, this approach
- can be inefficient. Qt Quick Controls was designed to solve this problem,
- using
- \l {https://blog.qt.io/blog/2015/03/31/qt-quick-controls-for-embedded/}{benchmarks}
- to guide the development.
-
- \section2 C++ and QML
-
- In many cases, the internal state of a control can be more efficiently
- processed in C++. For example, handling input events in C++ makes a
- difference for controls that would otherwise need to create internal
- MouseAreas and attached Keys objects.
-
- \section2 Styles
-
- Not only does handling events and logic in C++ increase performance, but it
- allows the visual QML layer to be a simple, declarative layer on top. This
- is reflected in the structure of the controls project: all visual
- implementations sit in the \e imports folder, so that users who want to
- create their own complete style can copy the folder and start tweaking.
- Read more about implementing a style plugin
- \l {Creating a Custom Style}{here}.
-
- In Qt Quick Controls, styles no longer provide components that are
- dynamically instantiated by controls, but controls themselves consist of
- item delegates that can be replaced. In effect, this means that delegates
- are Qt Quick items that are instantiated on the spot, as properties of the
- control, and are simply parented to the control.
-
- \section2 Modularity and Simplicity
-
- When it comes to more complex controls, it is sometimes better to split
- them up into separate building blocks. As an example, the complex
- ScrollView control:
-
- \qml
- ScrollView {
- horizontalScrollBarPolicy: Qt.ScrollBarAlwaysOff
- Flickable {
- // ...
- }
- }
- \endqml
-
- Is replaced with simple ScrollBar/ScrollIndicator controls that can be
- attached to any Flickable:
-
- \qml
- Flickable {
- // ...
- ScrollBar.vertical: ScrollBar { }
- }
- \endqml
-
- The API of Qt Quick Controls aims to be clean and simple. Common
- operations are easy, and more advanced ones are liberally documented with
- snippets that can be copied into your code.
-
- \section2 Feature Comparison Table
-
- \table
- \header
- \li
- \li Qt Quick Controls 1
- \li Qt Quick Controls
- \row
- \li Stylable delegates
- \li Yes
- \li Yes
- \row
- \li Pre-built native styles
- \li Yes
- \li No
- \row
- \li Runtime style/theme changes
- \li Yes \sup 1
- \li Yes \sup 2
- \row
- \li Can be used on Desktop
- \li Yes
- \li Yes
- \row
- \li Can be used on Mobile
- \li Yes \sup 3
- \li Yes
- \row
- \li Can be used on Embedded
- \li Yes \sup 3
- \li Yes
- \row
- \li Internal event handling
- \li QML
- \li C++
- \endtable
-
- \list 1
- \li Not officially supported, but technically possible via private APIs
- \li Only themes for specific styles can be changed at runtime, styles are fixed
- \li Performance may not be optimal
- \endlist
-
- \section2 Porting Qt Quick Controls 1 Code
-
- The API of Qt Quick Controls is very similar to Qt Quick Controls 1, but it
- does come with some changes necessary to facilitate the improvements. The
- majority of changes are to do with styling; all of a control's delegates
- are now accessible in the control itself, instead of in a separate style
- object.
-
- For example, to style a button in Qt Quick Controls 1:
-
- \qml
- Button {
- style: ButtonStyle {
- label: Label {
- // ...
- }
- }
- }
- \endqml
-
- To style a button in Qt Quick Controls:
-
- \qml
- Button {
- contentItem: Label {
- // ...
- }
- }
- \endqml
-
- \section3 Preparing for Migration
-
- With this in mind, a good way to prepare for a migration to Qt Quick
- Controls 2 is to place each control that you have a custom style for in its
- own QML file. For example, the Qt Quick Controls 1 button above could be
- moved to a file named \c Button.qml in a directory named \c controls, and
- used in the following manner:
-
- \qml
- import "controls" as Controls
-
- Controls.Button {
- // ...
- }
- \endqml
-
- This works with both modules, and will reduce the amount of work needed
- when the migration begins.
-
- \section2 Type Comparison Table
-
- The first column lists all types available in \l {Qt Quick Controls 1},
- \l {Qt Quick Dialogs}, and \l {Qt Quick Extras}.
- The second column documents the respective type in Qt Quick Controls.
- When a direct alternative is not available, the third column contains
- an alternative that provides related functionality. The last column
- contains some remarks about the differences between the types in the
- different modules.
-
- \table
- \header
- \li Qt Quick Controls 1
- \li Qt Quick Controls
- \li Alternatives
- \li Remarks
- \row
- \li \l [QML QtQuickControls1] {Action}
- \li \l [QML QtQuickControls2] {Action}
- \li \l [QML QtQuick] {Shortcut} \br\sup {(Qt Quick)}
- \li
- \row
- \li \l [QML QtQuickControls1] {ApplicationWindow}
- \li \l [QML QtQuickControls2] {ApplicationWindow}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {BusyIndicator}
- \li \l [QML QtQuickControls2] {BusyIndicator}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {Button}
- \li \l [QML QtQuickControls2] {Button}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {Calendar}
- \li \mdash
- \li \l [QML QtLabsCalendar] {MonthGrid},\br
- \l [QML QtLabsCalendar] {DayOfWeekRow},\br
- \l [QML QtLabsCalendar] {WeekNumberColumn} \br\sup {(Qt Labs Calendar)}
- \li \list
- \li \b {Qt Labs Calendar}: \c MonthGrid, \c DayOfWeek, and \c WeekNumberColumn
- are \e experimental unstyled building blocks for calendar views.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {CheckBox}
- \li \l [QML QtQuickControls2] {CheckBox}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {ComboBox}
- \li \l [QML QtQuickControls2] {ComboBox}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {ExclusiveGroup}
- \li \mdash
- \li \l [QML QtQuickControls2] {ActionGroup},\br
- \l [QML QtQuickControls2] {ButtonGroup} \br\sup {(Qt Quick Controls)}
- \li \list
- \li \b {Qt Quick Controls}: \c ActionGroup and \c ButtonGroup offer similar functionality.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {GroupBox}
- \li \l [QML QtQuickControls2] {GroupBox}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {Label}
- \li \l [QML QtQuickControls2] {Label}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {Menu}
- \li \l [QML QtQuickControls2] {Menu}
- \li \l [QML QtLabsPlatform] {Menu} \br\sup {(Qt Labs Platform)}
- \li \list
- \li \b {Qt Quick Controls 1}: \c Menu is native on platforms where an
- implementation is available in the Qt Platform Abstraction Layer.
- Other platforms use a QML-based top-level menu popup window. \c Menu
- supports traditional desktop style cascading submenus, but does not
- work on Embedded Linux because \l EGLFS does not support multiple
- top-level windows.
- \li \b {Qt Quick Controls}: \c Menu is a non-native \c Item-based popup
- that is stacked above the application content. Due to this, menu popups
- are restricted within window boundaries. \c Menu is fully customizable
- using QML and Qt Quick, and allows adding any \c Items. Traditional
- desktop oriented features, such as cascading submenus and visualizing
- keyboard shortcuts are missing.
- \li \b {Qt Labs Platform}: \c Menu is an \e experimental native menu that
- uses Qt Widgets as a fallback on platforms where a native implementation
- is not available in the Qt Platform Abstraction Layer.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {MenuBar}
- \li \l [QML QtQuickControls2] {MenuBar}
- \li \l [QML QtLabsPlatform] {MenuBar} \br\sup {(Qt Labs Platform)}
- \li \list
- \li \b {Qt Quick Controls 1}: \c MenuBar is native on platforms where an
- implementation is available in the Qt Platform Abstraction Layer. Other
- platforms use a QML-based menubar item stacked at the top of the window.
- \li \b {Qt Quick Controls}: \c MenuBar is a non-native QML-based menubar
- that can be fully customized using QML and Qt Quick.
- \li \b {Qt Labs Platform}: \c MenuBar is an \e experimental native menubar.
- It is only available on platforms where a native implementation is available
- in the Qt Platform Abstraction Layer.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {MenuItem},\br
- \l [QML QtQuickControls1] {MenuSeparator}
- \li \l [QML QtQuickControls2] {MenuItem},\br
- \l [QML QtQuickControls2] {MenuSeparator}
- \li \l [QML QtLabsPlatform] {MenuItem},\br
- \l [QML QtLabsPlatform] {MenuSeparator} \br\sup {(Qt Labs Platform)}
- \li \list
- \li \b {Qt Quick Controls 1}: \c MenuItem and \c MenuSeparator are native
- on platforms where an implementation is available in the Qt Platform
- Abstraction Layer. Other platforms use QML-based menu items and separators.
- \li \b {Qt Quick Controls}: \c MenuItem and \c MenuSeparator are a non-native
- QML-based menu items and separators that can be fully customized using QML
- and Qt Quick.
- \li \b {Qt Labs Platform}: \c MenuItem and \c MenuSeparator are \e experimental
- native menu items and separators.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {ProgressBar}
- \li \l [QML QtQuickControls2] {ProgressBar}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {RadioButton}
- \li \l [QML QtQuickControls2] {RadioButton}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {ScrollView}
- \li \l [QML QtQuickControls2] {ScrollView}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {Slider}
- \li \l [QML QtQuickControls2] {Slider}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {SpinBox}
- \li \l [QML QtQuickControls2] {SpinBox}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {SplitView}
- \li \l [QML QtQuickControls2] {SplitView}
- \li
- \li \list
- \li \b {Qt Quick Controls 1}: Uses \l Layout attached properties
- to specify size hints.
- \li \b {Qt Quick Controls}: Uses dedicated
- \l [QML QtQuickControls2] {SplitView} attached properties
- to specify size hints.
- Allows \l {SplitView::saveState()}{saving} and
- \l {SplitView::restoreState()}{restoring} state.
- Separate attached \l SplitHandle API for managing split
- handles.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {StackView},\br
- \l [QML QtQuickControls1] {StackViewDelegate},\br
- \l [QML QtQuickControls1] {Stack}
- \li \l [QML QtQuickControls2] {StackView}
- \li
- \li \list
- \li \b {Qt Quick Controls}: \c StackView provides customizable transitions
- and attached properties via a single \c StackView type.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {StatusBar}
- \li \mdash
- \li \l [QML QtQuickControls2] {ToolBar} \br\sup {(Qt Quick Controls)}
- \li \list
- \li \b {Qt Quick Controls}: \c ApplicationWindow allows assigning any
- item or control, such as \c ToolBar, as a header or footer.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {Switch}
- \li \l [QML QtQuickControls2] {Switch}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {TabView},\br
- \l [QML QtQuickControls1] {Tab}
- \li \mdash
- \li \l [QML QtQuickControls2] {TabBar},\br
- \l [QML QtQuickControls2] {TabButton} \br\sup {(Qt Quick Controls)}
- \li \list
- \li \b {Qt Quick Controls}: \c TabBar and \c TabButton offer similar
- functionality, and can be used to build tabbed views.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {TableView}
- \li \mdash
- \li The new \l [QML QtQuick] {TableView} can be found in the Qt Quick
- module.
- \li
- \row
- \li \l [QML QtQuickControls1] {TextArea}
- \li \l [QML QtQuickControls2] {TextArea}
- \li
- \li \list
- \li \b {Qt Quick Controls 1}: \c TextArea inherits \c ScrollView and is therefore
- always a scrollable editor.
- \li \b {Qt Quick Controls}: \c TextArea is a simpler multi-line editor that can
- be optionally attached to a \c Flickable to provide scrolling functionality.
- This allows using \c TextArea in a scrollable page without having two nested
- scrollable areas, which can be problematic and cause usability issues.
- \endlist
- \row
- \li \l [QML QtQuickControls1] {TextField}
- \li \l [QML QtQuickControls2] {TextField}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {ToolBar}
- \li \l [QML QtQuickControls2] {ToolBar}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {ToolButton}
- \li \l [QML QtQuickControls2] {ToolButton}
- \li
- \li
- \row
- \li \l [QML QtQuickControls1] {TreeView}
- \li \mdash
- \li
- \li
-
- \header
- \li Qt Quick Dialogs
- \li Qt Quick Controls
- \li Alternatives
- \li Remarks
- \row
- \li \l [QML QtQuickDialogs] {Dialog}
- \li \mdash
- \li \l [QML QtQuickControls2] {Dialog}
- \li \list
- \li \b {Qt Quick Dialogs}: \c Dialog is either a top-level window or an \c Item-based popup
- depending on whether the underlying platform supports multiple top-level windows.
- \li \b {Qt Quick Controls}: \c Dialog is not a top-level window, but an \c Item-based
- popup that is stacked above the application content. Due to this, dialogs are restricted
- within window boundaries.
- \endlist
- \row
- \li \l [QML QtQuickDialogs] {ColorDialog},\br
- \l [QML QtQuickDialogs] {FileDialog},\br
- \l [QML QtQuickDialogs] {FontDialog},\br
- \l [QML QtQuickDialogs] {MessageDialog}
- \li \mdash
- \li \l [QML QtLabsPlatform] {ColorDialog},\br
- \l [QML QtLabsPlatform] {FileDialog},\br
- \l [QML QtLabsPlatform] {FolderDialog},\br
- \l [QML QtLabsPlatform] {FontDialog},\br
- \l [QML QtLabsPlatform] {MessageDialog} \br\sup {(Qt Labs Platform)}
- \li \list
- \li \b {Qt Quick Dialogs}: Dialogs are native on platforms where an implementation
- is available in the Qt Platform Abstraction Layer. Other platforms use either
- Qt Widgets or QML-based dialogs depending on whether the underlying platform
- supports multiple top-level windows.
- \li \b {Qt Labs Platform}: \e Experimental native dialogs that use Qt Widgets as
- a fallback on platforms where a native implementation is not available in the
- Qt Platform Abstraction Layer.
- \endlist
-
- \header
- \li Qt Quick Extras
- \li Qt Quick Controls
- \li Alternatives
- \li Remarks
- \row
- \li \l [QML QtQuickExtras] {CircularGauge}
- \li \mdash
- \li
- \li
- \row
- \li \l [QML QtQuickExtras] {DelayButton}
- \li \l [QML QtQuickControls2] {DelayButton}
- \li
- \li
- \row
- \li \l [QML QtQuickExtras] {Dial}
- \li \l [QML QtQuickControls2] {Dial}
- \li
- \li
- \row
- \li \l [QML QtQuickExtras] {Gauge}
- \li \mdash
- \li
- \li
- \row
- \li \l [QML QtQuickExtras] {Picture}
- \li \mdash
- \li
- \li
- \row
- \li \l [QML QtQuickExtras] {PieMenu}
- \li \mdash
- \li
- \li
- \row
- \li \l [QML QtQuickExtras] {StatusIndicator}
- \li \mdash
- \li
- \li
- \row
- \li \l [QML QtQuickExtras] {ToggleButton}
- \li \mdash
- \li
- \li
- \row
- \li \l [QML QtQuickExtras] {Tumbler},\br
- \l [QML QtQuickExtras] {TumblerColumn}
- \li \l [QML QtQuickControls2] {Tumbler}
- \li
- \li \list
- \li \b {Qt Quick Extras}: \c Tumbler can consist of multiple columns.
- \li \b {Qt Quick Controls}: \c Tumbler presents a single spinnable wheel.
- Multiple columns can be created by placing multiple \c Tumblers next
- to each other.
- \endlist
-
- \header
- \li No Predecessor
- \li Qt Quick Controls
- \li Alternatives
- \li Remarks
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {AbstractButton}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {ActionGroup}
- \li \l [QML QtQuickControls1] {ExclusiveGroup} \br\sup {(Qt Quick Controls 1)}
- \li \list
- \li \b {Qt Quick Controls 1}: \c ExclusiveGroup offers similar functionality.
- \endlist
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {ButtonGroup}
- \li \l [QML QtQuickControls1] {ExclusiveGroup} \br\sup {(Qt Quick Controls 1)}
- \li \list
- \li \b {Qt Quick Controls 1}: \c ExclusiveGroup offers similar functionality.
- \endlist
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {CheckDelegate}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {Container}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {Control}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {Drawer}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {Frame}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {ItemDelegate}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {Page}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {PageIndicator}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {Pane}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {Popup}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {RadioDelegate}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {RangeSlider}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {RoundButton}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {ScrollBar},\br
- \l [QML QtQuickControls2] {ScrollIndicator}
- \li \l [QML QtQuickControls1] {ScrollView} \br\sup {(Qt Quick Controls 1)}
- \li \list
- \li \b {Qt Quick Controls 1}: \c ScrollView offers similar functionality.
- It combines horizontal and vertical scrollbars, and the background and
- frame around the scrollable view.
- \endlist
- \row
- \li \mdash
- \li \mdash
- \li \l [QML QtLabsPlatform] {StandardPaths} \br\sup {(Qt Labs Platform)}
- \li \list
- \li \b {Qt Quick Dialogs}: \c FileDialog offers a shortcut property that can be used
- to access the most common standard paths.
- \li \b {Qt Labs Platform}: \c StandardPaths offers a separate type to give full access
- to the standard paths.
- \endlist
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {SwipeDelegate}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {SwipeView}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {SwitchDelegate}
- \li
- \li
- \row
- \li \mdash
- \li \mdash
- \li \l [QML QtLabsPlatform] {SystemTrayIcon} \br\sup {(Qt Labs Platform)}
- \li \list
- \li \b {Qt Labs Platform}: \c SystemTrayIcon is an \e experimental native
- system tray icon that uses Qt Widgets as a fallback on platforms where
- a native implementation is not available in the Qt Platform Abstraction
- Layer.
- \endlist
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {TabBar},\br
- \l [QML QtQuickControls2] {TabButton}
- \li \l [QML QtQuickControls1] {TabView} \br\sup {(Qt Quick Controls 1)}
- \li \list
- \li \b {Qt Quick Controls 1}: \c TabView offers similar functionality.
- It combines the tab bar, background and frame around the tabs.
- \endlist
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {ToolSeparator}
- \li
- \li
- \row
- \li \mdash
- \li \l [QML QtQuickControls2] {ToolTip}
- \li
- \li \list
- \li \b {Qt Quick Controls 1}: \c Button and \c Action have built-in
- Qt Widgets-based tooltips.
- \li \b {Qt Quick Controls}: \c ToolTip can be attached to any \c Item.
- \endlist
- \endtable
-
- \section1 Related Information
-
- \list
- \li \l{Qt Quick}
- \li \l{Qt Quick Controls QML Types}
- \li \l{Qt Quick Controls 1 QML Types}
- \li \l{Qt Quick Extras QML Types}
- \li \l{Qt Labs Calendar QML Types}
- \li \l{Qt Labs Platform QML Types}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-environment.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-environment.qdoc
deleted file mode 100644
index 37be7b4c..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-environment.qdoc
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-environment.html
- \title Supported Environment Variables in Qt Quick Controls
-
- This page contains a list of all environment variables that Qt Quick Controls
- supports. The environment variables are primarily meant for testing purposes, but
- they can also be used to set system-wide defaults.
-
- \table
- \header
- \li Variable
- \li Description
- \row
- \li \c QT_QUICK_CONTROLS_STYLE
- \li Specifies the default \l {Styling Qt Quick Controls}{Qt Quick Controls style}.
- The value can be either one of the built-in styles, for example \c "Material",
- or the path to a custom style such as \c ":/mystyle".
- \row
- \li \c QT_QUICK_CONTROLS_FALLBACK_STYLE
- \li Specifies a fallback style for \l {Creating a Custom Style}{custom styles}.
- The value can be one of the built-in styles, for example \c "Material",
- \row
- \li \c QT_QUICK_CONTROLS_STYLE_PATH
- \li Specifies a list of additional paths that are used to lookup \l {Styling Qt Quick Controls}
- {Qt Quick Controls styles}. Multiple path entries must be \l {QDir::listSeparator}{separated}
- by \c ':' under Unix and \c ';' under Windows. By default, styles are looked up from
- \c $QML2_IMPORT_PATH/QtQuick/Controls.2.
- \row
- \li \c QT_QUICK_CONTROLS_CONF
- \li Specifies the location of the \l {Qt Quick Controls configuration file}.
- By default, the configuration file is loaded from the application's
- resources in \c ":/qtquickcontrols2.conf".
- \row
- \li \c QT_QUICK_CONTROLS_HOVER_ENABLED
- \li Specifies whether Qt Quick Controls use \l {Control::hoverEnabled}{hover effects}.
- The value can be set to \c 0 or \c 1 to disable or enable hover effects, respectively.
- \endtable
-
- \l {Imagine style} specific environment variables:
-
- \include qquickimaginestyle.qdocinc env
-
- \l {Material style} specific environment variables:
-
- \include qquickmaterialstyle.qdocinc env
-
- \l {Universal style} specific environment variables:
-
- \include qquickuniversalstyle.qdocinc env
-
- \section1 Related Information
-
- \list
- \li \l{Styling Qt Quick Controls}
- \li \l{Qt Quick Controls Configuration File}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-examples.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-examples.qdoc
deleted file mode 100644
index 2924114f..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-examples.qdoc
+++ /dev/null
@@ -1,37 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \group qtquickcontrols2-examples
- \ingroup all-examples
- \keyword Qt Quick Controls Examples
- \title Qt Quick Controls Examples
- \keyword Qt Quick Controls 2 Examples
- \brief A collection of examples for \l {Qt Quick Controls}
-
- These examples demonstrate creating user interfaces using \l {Qt Quick Controls}.
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-fileselectors.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-fileselectors.qdoc
deleted file mode 100644
index d73d1abe..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-fileselectors.qdoc
+++ /dev/null
@@ -1,141 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-fileselectors.html
- \title Using File Selectors with Qt Quick Controls
-
- \l {QFileSelector}{File selectors} provide a convenient way of selecting
- file variants. Qt offers the platform name and the locale as built-in
- selectors. Qt Quick Controls extends the built-in selectors with the name
- (lowercase) of the style that an application is running with.
-
- By using file selectors, style-specific tweaks can be applied without
- creating a hard dependency to a style. From the available file variants,
- only the selected QML file is loaded by the QML engine. Each file variant
- can assume the context, that is, a specific style. This typically leads
- to some code duplication, but on the other hand, cuts the aforementioned
- hard dependency to the style, and leads to simpler and more efficient
- QML code. The same technique is used to implement the \l {Styling Qt
- Quick Controls}{Qt Quick Controls styles}.
-
- The following example demonstrates a custom rounded button that has a
- styled drop shadow in the \l {Material Style}{Material style}, and looks
- flat in other styles. The files are organized so that the Material version
- of \c CustomButton.qml is placed into a \c +material sub-directory.
-
- \code
- :/main.qml
- :/CustomButton.qml
- :/+material/CustomButton.qml
- \endcode
-
- By default, \c main.qml will use \c CustomButton.qml for the \c CustomButton
- type. However, when the application is run with the Material style, the
- \c material selector will be present and the \c +material/CustomButton.qml
- version will be used instead.
-
- \code \QtMinorVersion
- // main.qml
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- ApplicationWindow {
- id: window
- visible: true
-
- CustomButton {
- text: "Button"
- anchors.centerIn: parent
- }
- }
- \endcode
-
- The base implementation of the custom button is a simple rounded
- flat button.
-
- \code \QtMinorVersion
- // CustomButton.qml
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- Button {
- id: control
-
- background: Rectangle {
- radius: width / 2
- implicitWidth: 36
- implicitHeight: 36
- color: control.pressed ? "#ccc" : "#eee"
- }
- }
- \endcode
-
- The Material style's implementation of the custom button imports the
- Material style, requests a dark theme to get light text, and creates
- a drop shadow for the background.
-
- \code \QtMinorVersion
- // +material/CustomButton.qml
- import QtQuick 2.\1
- import QtGraphicalEffects 1.\1
- import QtQuick.Controls 2.\1
- import QtQuick.Controls.Material 2.\1
-
- Button {
- id: control
-
- Material.theme: Material.Dark
-
- background: Rectangle {
- implicitWidth: 48
- implicitHeight: 48
- color: Material.accentColor
- radius: width / 2
-
- layer.enabled: control.enabled
- layer.effect: DropShadow {
- verticalOffset: 1
- color: Material.dropShadowColor
- samples: control.pressed ? 20 : 10
- spread: 0.5
- }
- }
- }
- \endcode
-
- \note It is recommended to use \l QQmlApplicationEngine, which internally
- creates a \l QQmlFileSelector instance. This is all that is needed to take
- QML file selectors into use.
-
- \section1 Related Information
- \list
- \li \l {QFileSelector}
- \li \l {QQmlFileSelector}
- \li \l {Styling Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-focus.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-focus.qdoc
deleted file mode 100644
index 77bc9883..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-focus.qdoc
+++ /dev/null
@@ -1,48 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-focus.html
- \keyword Focus Management in Qt Quick Controls 2
- \title Focus Management in Qt Quick Controls
- \brief Overview of focus handling with Qt Quick Controls
-
- Qt Quick Controls follows the standard
- \l {Keyboard Focus in Qt Quick}{Qt Quick focus system}, while also
- providing some added convenience. For example, the
- \l {Control::}{focusPolicy} property can be used to control the ways in
- which a control receives focus.
-
- \section1 Focus Scope Controls
-
- Qt Quick Controls offers a selection of controls that act as
- \l {Acquiring Focus and Focus Scopes}{focus scopes}:
-
- \annotatedlist qtquickcontrols2-focusscopes
-
- \sa {Keyboard Focus in Qt Quick}
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-fusion.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-fusion.qdoc
deleted file mode 100644
index 135cae71..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-fusion.qdoc
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-fusion.html
- \title Fusion Style
-
- The Fusion style is a desktop-oriented style.
-
- The Fusion style is a platform-agnostic style that offers a desktop-oriented
- look'n'feel. It implements the same design language as the \l {Qt Widget Gallery}
- {Fusion style for Qt Widgets}.
-
- \image qtquickcontrols2-fusion.png
-
- To run an application with the Fusion style, see
- \l {Using Styles in Qt Quick Controls}.
-
- \note The Fusion style is not a native desktop style. The style runs on any
- platform, and looks similar everywhere. Minor differences may occur due to
- differences in the standard system palettes, available fonts, and font
- rendering engines.
-
- \section2 Customization
-
- The Fusion style uses the standard system \l {Control::palette}{palettes}
- to provide colors that match the desktop environment.
-
- \image qtquickcontrols2-fusion-palettes.png
-
- Custom palettes can be specified for any \l {Control::palette}{control},
- \l {Popup::palette}{popup}, or \l {ApplicationWindow::palette}{application window}.
- Explicit palette attributes are automatically propagated from parent to children,
- overriding any system defaults for that attribute. In the following example,
- the window and all three switches appear with a violet highlight color:
-
- \table
- \row
- \li
- \qml
- import QtQuick 2.12
- import QtQuick.Controls 2.12
-
- ApplicationWindow {
- visible: true
-
- palette.highlight: "violet"
-
- Column {
- anchors.centerIn: parent
-
- Switch { text: qsTr("First"); checked: true }
- Switch { text: qsTr("Second"); checked: true }
- Switch { text: qsTr("Third") }
- }
- }
- \endqml
- \li
- \image qtquickcontrols2-fusion-violet.png
- \endtable
-
- \b {See also} \l {Default Style}, \l {Material Style}, \l {Universal Style}
-
- \section1 Related Information
-
- \list
- \li \l{Styling Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-gettingstarted.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-gettingstarted.qdoc
deleted file mode 100644
index 22187bf4..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-gettingstarted.qdoc
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-gettingstarted.html
- \keyword Getting Started with Qt Quick Controls 2
- \title Getting Started with Qt Quick Controls
-
- A basic example of a QML file that makes use of controls is shown here:
-
- \qml \QtMinorVersion
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- ApplicationWindow {
- title: "My Application"
- width: 640
- height: 480
- visible: true
-
- Button {
- text: "Push Me"
- anchors.centerIn: parent
- }
- }
- \endqml
-
- \section1 Setting Up Controls from C++
-
- Although QQuickView has traditionally been used to display QML files in a
- C++ application, doing this means you can only set window properties from
- C++.
-
- With Qt Quick Controls, declare an ApplicationWindow as the root item of
- your application and launch it by using QQmlApplicationEngine instead.
- This ensures that you can control top level window properties from QML.
-
- A basic example of a source file that makes use of controls is shown here:
-
- \code
- #include <QGuiApplication>
- #include <QQmlApplicationEngine>
-
- int main(int argc, char *argv[])
- {
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
- return app.exec();
- }
- \endcode
-
- \section2 Using C++ Data From QML
-
- If you need to register a C++ class to use from QML, you can call
- qmlRegisterType() before declaring your QQmlApplicationEngine.
- See \l [QtQml] {Defining QML Types from C++} for more information.
-
- If you need to expose data to QML components, you need to make them
- available to the context of the current QML engine. See QQmlContext for
- more information.
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-guidelines.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-guidelines.qdoc
deleted file mode 100644
index 83d6db93..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-guidelines.qdoc
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-guidelines.html
- \keyword Qt Quick Controls Guidelines
- \title Qt Quick Controls Guidelines
- \keyword Qt Quick Controls 2 Guidelines
-
- Qt Quick Controls offers a selection of controls that can be used to
- build complete interfaces in Qt Quick.
-
- Below you will find practical guidelines on how and when to use
- the controls.
-
- \annotatedlist qtquickcontrols2-guidelines
-
- \section1 Related Information
- \list
- \li \l{Qt Quick Controls QML Types}{All Qt Quick Controls QML Types}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-highdpi.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-highdpi.qdoc
deleted file mode 100644
index f0440e4f..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-highdpi.qdoc
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-highdpi.html
- \keyword High-DPI Support in Qt Quick Controlsi 2
- \title High-DPI Support in Qt Quick Controls
-
- Qt Quick Controls support Qt's cross-platform high-DPI scaling introduced in Qt 5.6.
- The feature is opt-in, and can be enabled by setting the \c Qt::AA_EnableHighDpiScaling
- application attribute in C++ before QGuiApplication is constructed:
-
- \code
- #include <QGuiApplication>
- #include <QQmlApplicationEngine>
-
- int main(int argc, char *argv[])
- {
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // <--
- QGuiApplication app(argc, argv);
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
- return app.exec();
- }
- \endcode
-
- Alternatively, an environment variable \c QT_AUTO_SCREEN_SCALE_FACTOR=1 can be set
- to enable automatic high-DPI scaling.
-
- \warning \l {Qt Quick Controls}{Qt Quick Controls 1.x} are not compatible with Qt's
- automatic high-DPI scaling. There is currently no available solution for high-DPI
- support in applications wishing to mix Qt Quick Controls and Qt Quick Controls.
-
- \section1 Related Information
- \list
- \li \l {High DPI Displays}
- \li \l {Scalability}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-icons.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-icons.qdoc
deleted file mode 100644
index f8cb1f52..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-icons.qdoc
+++ /dev/null
@@ -1,170 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-icons.html
- \keyword Icons in Qt Quick Controls 2
- \title Icons in Qt Quick Controls
-
- Qt Quick Controls comes with support for icons since Qt 5.10. This means,
- Buttons, item delegates, and menu items are now capable of presenting an
- icon in addition to a text label.
-
- \section1 Using Icons
-
- \l {AbstractButton::icon}{AbstractButton} and \l {Action::icon}{Action} provide
- the following properties through which icons can be set:
- \list
- \li \c icon.name
- \li \c icon.source
- \li \c icon.width
- \li \c icon.height
- \li \c icon.color
- \endlist
-
- Theme icons are referenced by a name, and regular icons by a source URL. Both
- \c icon.name and \c icon.source can be set to ensure that an icon will always
- be found. If the icon is found in the theme, it will always be used; even if
- \c icon.source is also set. If the icon is not found in the theme, \c icon.source
- will be used instead.
-
- \code
- Button {
- icon.name: "edit-cut"
- icon.source: "images/cut.png"
- }
- \endcode
-
- Each \l {Styling Qt Quick Controls}{Qt Quick Controls 2 style} requests a
- default icon size and color according to their guidelines, but it is possible
- to override these by setting the \c icon.width, \c icon.height, and \c icon.color
- properties.
-
- The image that is loaded by an icon whose \c width and \c height are not set
- depends on the type of icon in use. For theme icons, the closest available size
- will be chosen. For regular icons, the behavior is the same as the \l {Image::}
- {sourceSize} property of \l Image.
-
- The icon color is specified by default so that it matches the text color in
- different states. In order to use an icon with the original colors, set the
- color to \c "transparent".
-
- \code
- Button {
- icon.color: "transparent"
- icon.source: "images/logo.png"
- }
- \endcode
-
- For buttons, the \l {AbstractButton::}{display} property can be used to control
- how the icon and text are displayed within the button.
-
- \section1 Icon Themes
-
- Compliant icon themes must follow the freedesktop icon theme specification,
- which can be obtained here: \l {http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html}.
-
- Traditionally, only Linux and UNIX support icon themes on the platform level,
- but it is possible to bundle a compliant icon theme in an application to use
- themed icons on any platform.
-
- The default \l {QIcon::themeSearchPaths()}{icon theme search paths} depend on
- the platform. On Linux and UNIX, the search path will use the \c XDG_DATA_DIRS
- environment variable if available. All platforms have the resource directory
- \c :/icons as a fallback. Custom icon theme search paths can be set with
- \l QIcon::setThemeSearchPaths().
-
- The following example bundles an icon theme called \e mytheme into the application's
- resources using \l {The Qt Resource System}{Qt's resource system}.
-
- \badcode
- <RCC>
- <qresource prefix="/">
- <file>icons/mytheme/index.theme</file>
- <file>icons/mytheme/32x32/myicon.png</file>
- <file>icons/mytheme/32x32@2/myicon.png</file>
- </qresource>
- </RCC>
- \endcode
-
- The \c index.theme file describes the general attributes of the icon theme, and
- lists the available theme icon directories:
-
- \badcode
- [Icon Theme]
- Name=mytheme
- Comment=My Icon Theme
-
- Directories=32x32,32x32@2
-
- [32x32]
- Size=32
- Type=Fixed
-
- [32x32@2]
- Size=32
- Scale=2
- Type=Fixed
- \endcode
-
- In order to use the bundled icon theme, an application should call \l QIcon::setThemeName()
- before loading the main QML file:
-
- \code
- #include <QGuiApplication>
- #include <QQmlApplicationEngine>
- #include <QIcon>
-
- int main(int argc, char *argv[])
- {
- QGuiApplication app(argc, argv);
-
- QIcon::setThemeName("mytheme"); // <--
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
- return app.exec();
- }
- \endcode
-
- Now it is possible to use named icons from the bundled icon theme without having
- to specify any fallback source:
-
- \code
- Button {
- icon.name: "myicon"
- }
- \endcode
-
- The \l {Qt Quick Controls - Gallery}{Gallery example} and \l {Qt Quick Controls 2 - Wearable Demo}
- {Wearable Demo} provide complete runnable applications with a bundled icon theme.
-
- \section1 Related Information
- \list
- \li \l {High-DPI Support in Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc
deleted file mode 100644
index 6e15762d..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-imagine.qdoc
+++ /dev/null
@@ -1,2529 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-imagine.html
- \title Imagine Style
-
- The Imagine Style is based on configurable image assets. \l{detailed-desc-imagine}{More...}
-
- \styleimport {QtQuick.Controls.Imagine 2.12} {Qt 5.10}
-
- \section1 Attached Properties
-
- \list
- \li \l {imagine-path-attached-prop}{\b path} : string
- \endlist
-
- \section1 Detailed Description
- \target detailed-desc-imagine
-
- The Imagine style is based on image assets. The style comes with a default
- set of images, but the images can be easily changed by providing a directory
- with images using a predefined naming convention.
-
- \image qtquickcontrols2-imagine.png
- \caption The Imagine style with the default images
-
- To run an application with the Imagine style, see
- \l {Using Styles in Qt Quick Controls}.
-
- \section2 File Names
-
- The image files are named using the following convention:
-
- \c <control>-<element>-<states>
-
- The \c <control> and \c <element> sections are mandatory, but the
- \c <states> section is optional. For example, if a single file named
- \c "button-background.9.png" is provided for \l {Button}, it will be used
- for every state that \c Button supports. It is up to the developer to
- decide the set of states that they will provide images for. However, it
- is recommended to provide images for the most common control states where
- possible, such as \c disabled, \c pressed, etc. This will ensure that
- interactive controls visually behave as the end user would expect them to.
-
- \section2 Element Reference
-
- The following table lists which elements are supported for each control,
- along with the possible states for that element, and the file extension
- that it expects. An element is an image that represents a certain visual
- part of the control. For example, \c {Button}'s \c "background" element
- represents its \l {Control::}{background}.
-
- \table
- \header
- \li Control
- \li Element
- \li States
- \li Extension
- \row
- \li \l ApplicationWindow
- \li background
- \li active
- \li .9.png (or .png)
- \row
- \li
- \li overlay
- \li modal
- \li .9.png (or .png)
- \row
- \li \l BusyIndicator
- \li animation
- \li disabled, running, mirrored, hovered
- \li .webp
- \row
- \li
- \li background
- \li same as above
- \li .webp
- \row
- \li \l Button
- \li background
- \li disabled, pressed, checked, checkable, focused, highlighted, flat, mirrored, hovered
- \li .9.png
- \row
- \li \l CheckBox
- \li background
- \li disabled, pressed, checked, partially-checked, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li same as above
- \li .png
- \row
- \li \l CheckDelegate
- \li background
- \li disabled, pressed, checked, partially-checked, focused, highlighted, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li same as above
- \li .png
- \row
- \li \l ComboBox
- \li background
- \li disabled, pressed, editable, open, focused, mirrored, hovered, flat
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li same as above
- \li .png
- \row
- \li
- \li popup
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l DelayButton
- \li background
- \li disabled, pressed, checked, checkable, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li progress
- \li same as above
- \li .9.png (or .png)
- \row
- \li
- \li mask
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l Dial
- \li background
- \li disabled, pressed, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li handle
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l Dialog
- \li background
- \li modal, dim
- \li .9.png (or .png)
- \row
- \li
- \li title
- \li same as above
- \li .9.png (or .png)
- \row
- \li
- \li overlay
- \li modal
- \li .9.png (or .png)
- \row
- \li \l DialogButtonBox
- \li background
- \li disabled, mirrored
- \li .9.png (or .png)
- \row
- \li \l Drawer
- \li background
- \li modal, dim, top, left, right, bottom
- \li .9.png (or .png)
- \row
- \li
- \li overlay
- \li modal
- \li .9.png (or .png)
- \row
- \li \l Frame
- \li background
- \li disabled, mirrored
- \li .9.png (or .png)
- \row
- \li \l GroupBox
- \li background
- \li disabled, mirrored
- \li .9.png (or .png)
- \row
- \li
- \li title
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l ItemDelegate
- \li background
- \li disabled, pressed, focused, highlighted, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l Label
- \li background
- \li disabled, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l Menu
- \li background
- \li modal, dim
- \li .9.png (or .png)
- \row
- \li
- \li overlay
- \li modal
- \li .9.png (or .png)
- \row
- \li \l MenuItem
- \li arrow
- \li disabled, pressed, checked, focused, highlighted, mirrored, hovered
- \li .png
- \row
- \li
- \li background
- \li same as above
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li same as above
- \li .png
- \row
- \li \l MenuSeparator
- \li background
- \li disabled, mirrored
- \li .9.png (or .png)
- \row
- \li
- \li separator
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l Page
- \li background
- \li disabled, mirrored
- \li .9.png (or .png)
- \row
- \li \l PageIndicator
- \li background
- \li disabled, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li delegate
- \li disabled, pressed, current, mirrored, hovered
- \li .png
- \row
- \li \l Pane
- \li background
- \li disabled, mirrored
- \li .9.png (or .png)
- \row
- \li \l Popup
- \li background
- \li modal, dim
- \li .9.png (or .png)
- \row
- \li
- \li overlay
- \li modal
- \li .9.png (or .png)
- \row
- \li \l ProgressBar
- \li animation
- \li disabled, mirrored, hovered
- \li .png
- \row
- \li
- \li background
- \li disabled, indeterminate, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li mask
- \li same as above
- \li .9.png (or .png)
- \row
- \li
- \li progress
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l RadioButton
- \li background
- \li disabled, pressed, checked, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li same as above
- \li .png
- \row
- \li \l RadioDelegate
- \li background
- \li disabled, pressed, checked, focused, highlighted, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li same as above
- \li .png
- \row
- \li \l RangeSlider
- \li background
- \li vertical, horizontal, disabled, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l RangeSlider
- \li progress
- \li same as above
- \li .9.png (or .png)
- \row
- \li
- \li handle
- \li first, second, vertical, horizontal, disabled, pressed, focused, mirrored, hovered
- \li .png
- \row
- \li \l RoundButton
- \li background
- \li disabled, pressed, checked, checkable, focused, highlighted, flat, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l ScrollBar
- \li background
- \li vertical, horizontal, disabled, interactive, pressed, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li handle
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l ScrollIndicator
- \li background
- \li vertical, horizontal, disabled, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li handle
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l ScrollView
- \li background
- \li disabled, mirrored
- \li .9.png (or .png)
- \row
- \li \l Slider
- \li background
- \li vertical, horizontal, disabled, pressed, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li handle
- \li same as above
- \li .9.png (or .png)
- \row
- \li
- \li progress
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l SpinBox
- \li background
- \li disabled, editable, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li editor
- \li disabled, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li up, down, disabled, editable, pressed, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l StackView
- \li background
- \li disabled, mirrored
- \li .9.png (or .png)
- \row
- \li \l SwipeDelegate
- \li background
- \li disabled, pressed, focused, highlighted, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l SwipeView
- \li background
- \li vertical, horizontal, disabled, interactive, focused, mirrored
- \li .9.png (or .png)
- \row
- \li \l Switch
- \li background
- \li disabled, pressed, checked, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li handle
- \li same as above
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l SwitchDelegate
- \li background
- \li disabled, pressed, checked, focused, highlighted, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li
- \li handle
- \li same as above
- \li .9.png (or .png)
- \row
- \li
- \li indicator
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l TabBar
- \li background
- \li disabled, header, footer, mirrored
- \li .9.png (or .png)
- \row
- \li \l TabButton
- \li background
- \li disabled, pressed, checked, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l TextArea
- \li background
- \li disabled, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l TextField
- \li background
- \li disabled, focused, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l ToolBar
- \li background
- \li disabled, header, footer, mirrored
- \li .9.png (or .png)
- \row
- \li \l ToolButton
- \li background
- \li disabled, pressed, checked, checkable, focused, highlighted, flat, mirrored, hovered
- \li .9.png (or .png)
- \row
- \li \l ToolSeparator
- \li background
- \li vertical, horizontal, disabled, mirrored
- \li .9.png (or .png)
- \row
- \li
- \li separator
- \li same as above
- \li .9.png (or .png)
- \row
- \li \l ToolTip
- \li background
- \li
- \li .9.png (or .png)
- \row
- \li \l Tumbler
- \li background
- \li disabled, focused, mirrored, hovered
- \li .9.png (or .png)
- \endtable
-
- \section2 Asset Examples
-
- The following table lists examples of assets (taken from the default
- Imagine style assets) for all controls. The list is not exhaustive,
- as not all elements need assets, but it can be used as a guide
- when creating your own assets.
-
- \table
- \header
- \li Control
- \li Element
- \li States
- \li Asset
- \li Notes
- \row
- \li \l ApplicationWindow
- \li background
- \li
- \li \image imagine/images/applicationwindow-background.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li
- \li overlay
- \li
- \li \image imagine/images/applicationwindow-overlay.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li
- \li overlay
- \li modal
- \li \image imagine/images/applicationwindow-overlay-modal.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li \l Button
- \li background
- \li
- \li \image imagine/images/button-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/button-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/button-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/button-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li checked
- \li \image imagine/images/button-background-checked.9.png
- \li
- \row
- \li
- \li background
- \li checked, disabled
- \li \image imagine/images/button-background-checked-disabled.9.png
- \li
- \row
- \li
- \li background
- \li checked, focused
- \li \image imagine/images/button-background-checked-focused.9.png
- \li
- \row
- \li
- \li background
- \li checked, hovered
- \li \image imagine/images/button-background-checked-hovered.9.png
- \li
- \row
- \li
- \li background
- \li highlighted
- \li \image imagine/images/button-background-highlighted.9.png
- \li
- \row
- \li
- \li background
- \li highlighted, disabled
- \li \image imagine/images/button-background-highlighted-disabled.9.png
- \li
- \row
- \li
- \li background
- \li highlighted, focused
- \li \image imagine/images/button-background-highlighted-focused.9.png
- \li
- \row
- \li
- \li background
- \li highlighted, hovered
- \li \image imagine/images/button-background-highlighted-hovered.9.png
- \li
- \row
- \li
- \li background
- \li highlighted, pressed
- \li \image imagine/images/button-background-highlighted-pressed.9.png
- \li
- \row
- \li
- \li background
- \li highlighted, checked
- \li \image imagine/images/button-background-highlighted-checked.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/button-background-hovered.9.png
- \li
- \row
- \li
- \li background
- \li flat
- \li \image imagine/images/button-background-flat.9.png
- \li
- \row
- \li
- \li background
- \li flat, disabled
- \li \image imagine/images/button-background-flat-disabled.9.png
- \li
- \row
- \li
- \li background
- \li flat, hovered
- \li \image imagine/images/button-background-flat-hovered.9.png
- \li
- \row
- \li
- \li background
- \li flat, pressed
- \li \image imagine/images/button-background-flat-pressed.9.png
- \li
- \row
- \li
- \li background
- \li flat, checked
- \li \image imagine/images/button-background-flat-checked.9.png
- \li
- \row
- \li \l CheckBox
- \li indicator
- \li
- \li \image imagine/images/checkbox-indicator.png
- \li
- \row
- \li
- \li indicator
- \li disabled
- \li \image imagine/images/checkbox-indicator-disabled.png
- \li
- \row
- \li
- \li indicator
- \li pressed
- \li \image imagine/images/checkbox-indicator-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked
- \li \image imagine/images/checkbox-indicator-checked.png
- \li
- \row
- \li
- \li indicator
- \li checked, pressed
- \li \image imagine/images/checkbox-indicator-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked, hovered
- \li \image imagine/images/checkbox-indicator-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li checked, focused
- \li \image imagine/images/checkbox-indicator-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li partially, checked
- \li \image imagine/images/checkbox-indicator-partially-checked.png
- \li
- \row
- \li
- \li indicator
- \li partially, checked, pressed
- \li \image imagine/images/checkbox-indicator-partially-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li partially, checked, focused
- \li \image imagine/images/checkbox-indicator-partially-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li partially, checked, hovered
- \li \image imagine/images/checkbox-indicator-partially-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li focused
- \li \image imagine/images/checkbox-indicator-focused.png
- \li
- \row
- \li
- \li indicator
- \li hovered
- \li \image imagine/images/checkbox-indicator-hovered.png
- \li
- \row
- \li \l CheckDelegate
- \li background
- \li
- \li \image imagine/images/checkdelegate-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/checkdelegate-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/checkdelegate-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/checkdelegate-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/checkdelegate-background-hovered.9.png
- \li
- \row
- \li
- \li indicator
- \li
- \li \image imagine/images/checkdelegate-indicator.png
- \li
- \row
- \li
- \li indicator
- \li disabled
- \li \image imagine/images/checkdelegate-indicator-disabled.png
- \li
- \row
- \li
- \li indicator
- \li pressed
- \li \image imagine/images/checkdelegate-indicator-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked
- \li \image imagine/images/checkdelegate-indicator-checked.png
- \li
- \row
- \li
- \li indicator
- \li checked, pressed
- \li \image imagine/images/checkdelegate-indicator-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked, focused
- \li \image imagine/images/checkdelegate-indicator-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li checked, hovered
- \li \image imagine/images/checkdelegate-indicator-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li focused
- \li \image imagine/images/checkdelegate-indicator-focused.png
- \li
- \row
- \li
- \li indicator
- \li hovered
- \li \image imagine/images/checkdelegate-indicator-hovered.png
- \li
- \row
- \li
- \li indicator
- \li partially, checked
- \li \image imagine/images/checkdelegate-indicator-partially-checked.png
- \li
- \row
- \li
- \li indicator
- \li partially, checked, pressed
- \li \image imagine/images/checkdelegate-indicator-partially-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li partially, checked, focused
- \li \image imagine/images/checkdelegate-indicator-partially-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li partially, checked, hovered
- \li \image imagine/images/checkdelegate-indicator-partially-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li hovered
- \li \image imagine/images/checkdelegate-indicator-hovered.png
- \li
- \row
- \li \l ComboBox
- \li background
- \li
- \li \image imagine/images/combobox-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/combobox-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/combobox-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/combobox-background-hovered.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/combobox-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li open
- \li \image imagine/images/combobox-background-open.9.png
- \li
- \row
- \li
- \li background
- \li editable
- \li \image imagine/images/combobox-background-editable.9.png
- \li
- \row
- \li
- \li background
- \li editable, focused
- \li \image imagine/images/combobox-background-editable-focused.9.png
- \li
- \row
- \li
- \li background
- \li editable, disabled
- \li \image imagine/images/combobox-background-editable-disabled.9.png
- \li
- \row
- \li
- \li indicator
- \li
- \li \image imagine/images/combobox-indicator.png
- \li
- \row
- \li
- \li indicator
- \li disabled
- \li \image imagine/images/combobox-indicator-disabled.png
- \li
- \row
- \li
- \li indicator
- \li editable
- \li \image imagine/images/combobox-indicator-editable.png
- \li
- \row
- \li
- \li indicator
- \li editable, disabled
- \li \image imagine/images/combobox-indicator-editable-disabled.png
- \li
- \row
- \li
- \li indicator
- \li editable, mirrored
- \li \image imagine/images/combobox-indicator-editable-mirrored.png
- \li
- \row
- \li
- \li indicator
- \li editable, mirrored, disabled
- \li \image imagine/images/combobox-indicator-editable-mirrored-disabled.png
- \li
- \row
- \li
- \li popup
- \li
- \li \image imagine/images/combobox-popup.9.png
- \li
- \row
- \li \l DelayButton
- \li background
- \li
- \li \image imagine/images/delaybutton-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/delaybutton-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li disabled, checked
- \li \image imagine/images/delaybutton-background-disabled-checked.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/delaybutton-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/delaybutton-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li checked
- \li \image imagine/images/delaybutton-background-checked.9.png
- \li
- \row
- \li
- \li background
- \li checked, focused
- \li \image imagine/images/delaybutton-background-checked-focused.9.png
- \li
- \row
- \li
- \li background
- \li checked, hovered
- \li \image imagine/images/delaybutton-background-checked-hovered.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/delaybutton-background-hovered.9.png
- \li
- \row
- \li
- \li progress
- \li
- \li \image imagine/images/delaybutton-progress.9.png
- \li
- \row
- \li
- \li progress
- \li disabled
- \li \image imagine/images/delaybutton-progress-disabled.9.png
- \li
- \row
- \li
- \li mask
- \li
- \li \image imagine/images/delaybutton-mask.9.png
- \li
- \row
- \li \l Dial
- \li background
- \li
- \li \image imagine/images/dial-background.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/dial-background-disabled.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/dial-background-focused.png
- \li
- \row
- \li
- \li handle
- \li
- \li \image imagine/images/dial-handle.png
- \li
- \row
- \li
- \li handle
- \li disabled
- \li \image imagine/images/dial-handle-disabled.png
- \li
- \row
- \li
- \li handle
- \li focused
- \li \image imagine/images/dial-handle-focused.png
- \li
- \row
- \li
- \li handle
- \li focused, pressed
- \li \image imagine/images/dial-handle-focused-pressed.png
- \li
- \row
- \li
- \li handle
- \li focused, hovered
- \li \image imagine/images/dial-handle-focused-hovered.png
- \li
- \row
- \li
- \li handle
- \li pressed
- \li \image imagine/images/dial-handle-pressed.png
- \li
- \row
- \li
- \li handle
- \li hovered
- \li \image imagine/images/dial-handle-hovered.png
- \li
- \row
- \li \l Dialog
- \li background
- \li
- \li \image imagine/images/dialog-background.9.png
- \li
- \row
- \li
- \li overlay
- \li
- \li \image imagine/images/dialog-overlay.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li
- \li overlay
- \li modal
- \li \image imagine/images/dialog-overlay-modal.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li \l DialogButtonBox
- \li background
- \li
- \li \image imagine/images/dialogbuttonbox-background.9.png
- \li
- \row
- \li \l Drawer
- \li background
- \li left
- \li \image imagine/images/drawer-background-left.9.png
- \li
- \row
- \li
- \li background
- \li right
- \li \image imagine/images/drawer-background-right.9.png
- \li
- \row
- \li
- \li background
- \li top
- \li \image imagine/images/drawer-background-top.9.png
- \li
- \row
- \li
- \li background
- \li bottom
- \li \image imagine/images/drawer-background-bottom.9.png
- \li
- \row
- \li
- \li overlay
- \li
- \li \image imagine/images/drawer-overlay.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li
- \li overlay
- \li modal
- \li \image imagine/images/drawer-overlay-modal.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li \l Frame
- \li background
- \li
- \li \image imagine/images/frame-background.9.png
- \li
- \row
- \li \l GroupBox
- \li background
- \li
- \li \image imagine/images/groupbox-background.9.png
- \li
- \row
- \li
- \li title
- \li
- \li \image imagine/images/groupbox-title.9.png
- \li
- \row
- \li \l ItemDelegate
- \li background
- \li
- \li \image imagine/images/itemdelegate-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/itemdelegate-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/itemdelegate-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/itemdelegate-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/itemdelegate-background-hovered.9.png
- \li
- \row
- \li
- \li background
- \li highlighted
- \li \image imagine/images/itemdelegate-background-highlighted.9.png
- \li
- \row
- \li \l Menu
- \li background
- \li
- \li \image imagine/images/menu-background.9.png
- \li
- \row
- \li \l MenuItem
- \li background
- \li
- \li \image imagine/images/menuitem-background.9.png
- \li
- \row
- \li
- \li background
- \li highlighted
- \li \image imagine/images/menuitem-background-highlighted.9.png
- \li
- \row
- \li
- \li arrow
- \li
- \li \image imagine/images/menuitem-arrow.png
- \li
- \row
- \li
- \li arrow
- \li mirrored
- \li \image imagine/images/menuitem-arrow-mirrored.png
- \li
- \row
- \li
- \li arrow
- \li disabled
- \li \image imagine/images/menuitem-arrow-disabled.png
- \li
- \row
- \li
- \li arrow
- \li mirrored, disabled
- \li \image imagine/images/menuitem-arrow-mirrored-disabled.png
- \li
- \row
- \li
- \li indicator
- \li
- \li \image imagine/images/menuitem-indicator.png
- \li
- \row
- \li
- \li indicator
- \li disabled
- \li \image imagine/images/menuitem-indicator-disabled.png
- \li
- \row
- \li
- \li indicator
- \li pressed
- \li \image imagine/images/menuitem-indicator-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked
- \li \image imagine/images/menuitem-indicator-checked.png
- \li
- \row
- \li
- \li indicator
- \li checked, pressed
- \li \image imagine/images/menuitem-indicator-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked, focused
- \li \image imagine/images/menuitem-indicator-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li checked, hovered
- \li \image imagine/images/menuitem-indicator-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li focused
- \li \image imagine/images/menuitem-indicator-focused.png
- \li
- \row
- \li
- \li indicator
- \li hovered
- \li \image imagine/images/menuitem-indicator-hovered.png
- \li
- \row
- \li \l MenuSeparator
- \li separator
- \li
- \li \image imagine/images/menuseparator-separator.9.png
- \li
- \row
- \li \l Page
- \li background
- \li
- \li \image imagine/images/page-background.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li \l PageIndicator
- \li delegate
- \li
- \li \image imagine/images/pageindicator-delegate.png
- \li
- \row
- \li
- \li delegate
- \li disabled
- \li \image imagine/images/pageindicator-delegate-disabled.png
- \li
- \row
- \li
- \li delegate
- \li disabled, current
- \li \image imagine/images/pageindicator-delegate-disabled-current.png
- \li
- \row
- \li
- \li delegate
- \li pressed
- \li \image imagine/images/pageindicator-delegate-pressed.png
- \li
- \row
- \li
- \li delegate
- \li current
- \li \image imagine/images/pageindicator-delegate-current.png
- \li
- \row
- \li \l Pane
- \li background
- \li
- \li \image imagine/images/pane-background.9.png
- \li
- \row
- \li \l Popup
- \li background
- \li
- \li \image imagine/images/popup-background.9.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li
- \li overlay
- \li
- \li \image imagine/images/popup-overlay.png
- \li \l {sup1}{See footnote} \sup 1
- \row
- \li
- \li overlay
- \li modal
- \li \image imagine/images/popup-overlay-modal.png
- \li
- \row
- \li \l ProgressBar
- \li background
- \li
- \li \image imagine/images/progressbar-background.9.png
- \li
- \row
- \li
- \li progress
- \li
- \li \image imagine/images/progressbar-progress.png
- \li
- \row
- \li
- \li mask
- \li
- \li \image imagine/images/progressbar-mask.9.png
- \li
- \row
- \li \l RadioButton
- \li indicator
- \li
- \li \image imagine/images/radiobutton-indicator.png
- \li
- \row
- \li
- \li indicator
- \li disabled
- \li \image imagine/images/radiobutton-indicator-disabled.png
- \li
- \row
- \li
- \li indicator
- \li pressed
- \li \image imagine/images/radiobutton-indicator-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked
- \li \image imagine/images/radiobutton-indicator-checked.png
- \li
- \row
- \li
- \li indicator
- \li checked, focused
- \li \image imagine/images/radiobutton-indicator-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li checked, hovered
- \li \image imagine/images/radiobutton-indicator-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li checked, pressed
- \li \image imagine/images/radiobutton-indicator-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li focused
- \li \image imagine/images/radiobutton-indicator-focused.png
- \li
- \row
- \li
- \li indicator
- \li hovered
- \li \image imagine/images/radiobutton-indicator-hovered.png
- \li
- \row
- \li \l RadioDelegate
- \li background
- \li
- \li \image imagine/images/radiodelegate-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/radiodelegate-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/radiodelegate-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/radiodelegate-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/radiodelegate-background-hovered.9.png
- \li
- \row
- \li
- \li indicator
- \li
- \li \image imagine/images/radiodelegate-indicator.png
- \li
- \row
- \li
- \li indicator
- \li disabled
- \li \image imagine/images/radiodelegate-indicator-disabled.png
- \li
- \row
- \li
- \li indicator
- \li pressed
- \li \image imagine/images/radiodelegate-indicator-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked
- \li \image imagine/images/radiodelegate-indicator-checked.png
- \li
- \row
- \li
- \li indicator
- \li checked, focused
- \li \image imagine/images/radiodelegate-indicator-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li checked, hovered
- \li \image imagine/images/radiodelegate-indicator-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li checked, pressed
- \li \image imagine/images/radiodelegate-indicator-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li focused
- \li \image imagine/images/radiodelegate-indicator-focused.png
- \li
- \row
- \li
- \li indicator
- \li hovered
- \li \image imagine/images/radiodelegate-indicator-hovered.png
- \li
- \row
- \li \l RangeSlider
- \li background
- \li vertical
- \li \image imagine/images/rangeslider-background-vertical.9.png
- \li
- \row
- \li
- \li background
- \li horizontal
- \li \image imagine/images/rangeslider-background-horizontal.9.png
- \li
- \row
- \li
- \li progress
- \li vertical
- \li \image imagine/images/rangeslider-progress-vertical.9.png
- \li
- \row
- \li
- \li progress
- \li vertical, disabled
- \li \image imagine/images/rangeslider-progress-vertical-disabled.9.png
- \li
- \row
- \li
- \li progress
- \li horizontal
- \li \image imagine/images/rangeslider-progress-horizontal.9.png
- \li
- \row
- \li
- \li progress
- \li horizontal, disabled
- \li \image imagine/images/rangeslider-progress-horizontal-disabled.9.png
- \li
- \row
- \li
- \li handle
- \li
- \li \image imagine/images/rangeslider-handle.png
- \li
- \row
- \li
- \li handle
- \li disabled
- \li \image imagine/images/rangeslider-handle-disabled.png
- \li
- \row
- \li
- \li handle
- \li focused
- \li \image imagine/images/rangeslider-handle-focused.png
- \li
- \row
- \li
- \li handle
- \li focused, hovered
- \li \image imagine/images/rangeslider-handle-focused-hovered.png
- \li
- \row
- \li
- \li handle
- \li focused, pressed
- \li \image imagine/images/rangeslider-handle-focused-pressed.png
- \li
- \row
- \li
- \li handle
- \li hovered
- \li \image imagine/images/rangeslider-handle-hovered.png
- \li
- \row
- \li
- \li handle
- \li pressed
- \li \image imagine/images/rangeslider-handle-pressed.png
- \li
- \row
- \li \l RoundButton
- \li background
- \li
- \li \image imagine/images/roundbutton-background.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/roundbutton-background-disabled.png
- \li
- \row
- \li
- \li background
- \li disabled, checked
- \li \image imagine/images/roundbutton-background-disabled-checked.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/roundbutton-background-focused.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/roundbutton-background-pressed.png
- \li
- \row
- \li
- \li background
- \li checked
- \li \image imagine/images/roundbutton-background-checked.png
- \li
- \row
- \li
- \li background
- \li checked, focused
- \li \image imagine/images/roundbutton-background-checked-focused.png
- \li
- \row
- \li
- \li background
- \li checked, hovered
- \li \image imagine/images/roundbutton-background-checked-hovered.png
- \li
- \row
- \li
- \li background
- \li highlighted
- \li \image imagine/images/roundbutton-background-highlighted.png
- \li
- \row
- \li
- \li background
- \li highlighted, pressed
- \li \image imagine/images/roundbutton-background-highlighted-pressed.png
- \li
- \row
- \li
- \li background
- \li highlighted, focused
- \li \image imagine/images/roundbutton-background-highlighted-focused.png
- \li
- \row
- \li
- \li background
- \li highlighted, hovered
- \li \image imagine/images/roundbutton-background-highlighted-hovered.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/roundbutton-background-hovered.png
- \li
- \row
- \li \l ScrollBar
- \li handle
- \li
- \li \image imagine/images/scrollbar-handle.png
- \li
- \row
- \li
- \li handle
- \li disabled
- \li \image imagine/images/scrollbar-handle-disabled.png
- \li
- \row
- \li
- \li handle
- \li interactive
- \li \image imagine/images/scrollbar-handle-interactive.png
- \li
- \row
- \li
- \li handle
- \li interactive, disabled
- \li \image imagine/images/scrollbar-handle-interactive-disabled.png
- \li
- \row
- \li
- \li handle
- \li interactive, pressed
- \li \image imagine/images/scrollbar-handle-interactive-pressed.png
- \li
- \row
- \li
- \li handle
- \li interactive, hovered
- \li \image imagine/images/scrollbar-handle-interactive-hovered.png
- \li
- \row
- \li \l ScrollIndicator
- \li handle
- \li
- \li \image imagine/images/scrollindicator-handle.png
- \li
- \row
- \li \l Slider
- \li background
- \li vertical
- \li \image imagine/images/slider-background-vertical.9.png
- \li
- \row
- \li
- \li background
- \li horizontal
- \li \image imagine/images/slider-background-horizontal.9.png
- \li
- \row
- \li
- \li progress
- \li vertical
- \li \image imagine/images/slider-progress-vertical.9.png
- \li
- \row
- \li
- \li progress
- \li vertical, disabled
- \li \image imagine/images/slider-progress-vertical-disabled.9.png
- \li
- \row
- \li
- \li progress
- \li horizontal
- \li \image imagine/images/slider-progress-horizontal.9.png
- \li
- \row
- \li
- \li progress
- \li horizontal, disabled
- \li \image imagine/images/slider-progress-horizontal-disabled.9.png
- \li
- \row
- \li
- \li handle
- \li
- \li \image imagine/images/slider-handle.png
- \li
- \row
- \li
- \li handle
- \li disabled
- \li \image imagine/images/slider-handle-disabled.png
- \li
- \row
- \li
- \li handle
- \li focused
- \li \image imagine/images/slider-handle-focused.png
- \li
- \row
- \li
- \li handle
- \li focused, hovered
- \li \image imagine/images/slider-handle-focused-hovered.png
- \li
- \row
- \li
- \li handle
- \li focused, pressed
- \li \image imagine/images/slider-handle-focused-pressed.png
- \li
- \row
- \li
- \li handle
- \li hovered
- \li \image imagine/images/slider-handle-hovered.png
- \li
- \row
- \li
- \li handle
- \li pressed
- \li \image imagine/images/slider-handle-pressed.png
- \li
- \row
- \li \l SpinBox
- \li background
- \li
- \li \image imagine/images/spinbox-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/spinbox-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/spinbox-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li editable
- \li \image imagine/images/spinbox-background-editable.9.png
- \li
- \row
- \li
- \li indicator
- \li up
- \li \image imagine/images/spinbox-indicator-up.9.png
- \li
- \row
- \li
- \li indicator
- \li up, disabled
- \li \image imagine/images/spinbox-indicator-up-disabled.9.png
- \li
- \row
- \li
- \li indicator
- \li up, pressed
- \li \image imagine/images/spinbox-indicator-up-pressed.9.png
- \li
- \row
- \li
- \li indicator
- \li up, focused
- \li \image imagine/images/spinbox-indicator-up-focused.9.png
- \li
- \row
- \li
- \li indicator
- \li up, mirrored
- \li \image imagine/images/spinbox-indicator-up-mirrored.9.png
- \li
- \row
- \li
- \li indicator
- \li up, hovered
- \li \image imagine/images/spinbox-indicator-up-hovered.9.png
- \li
- \row
- \li
- \li indicator
- \li up, editable
- \li \image imagine/images/spinbox-indicator-up-editable.9.png
- \li
- \row
- \li
- \li indicator
- \li up, editable, pressed
- \li \image imagine/images/spinbox-indicator-up-editable-pressed.9.png
- \li
- \row
- \li
- \li indicator
- \li up, editable, focused
- \li \image imagine/images/spinbox-indicator-up-editable-focused.9.png
- \li
- \row
- \li
- \li indicator
- \li up, editable, mirrored
- \li \image imagine/images/spinbox-indicator-up-editable-mirrored.9.png
- \li
- \row
- \li
- \li indicator
- \li up, editable, hovered
- \li \image imagine/images/spinbox-indicator-up-editable-hovered.9.png
- \li
- \row
- \li
- \li indicator
- \li down
- \li \image imagine/images/spinbox-indicator-down.9.png
- \li
- \row
- \li
- \li indicator
- \li down, disabled
- \li \image imagine/images/spinbox-indicator-down-disabled.9.png
- \li
- \row
- \li
- \li indicator
- \li down, pressed
- \li \image imagine/images/spinbox-indicator-down-pressed.9.png
- \li
- \row
- \li
- \li indicator
- \li down, focused
- \li \image imagine/images/spinbox-indicator-down-focused.9.png
- \li
- \row
- \li
- \li indicator
- \li down, mirrored
- \li \image imagine/images/spinbox-indicator-down-mirrored.9.png
- \li
- \row
- \li
- \li indicator
- \li down, hovered
- \li \image imagine/images/spinbox-indicator-down-hovered.9.png
- \li
- \row
- \li
- \li indicator
- \li down, editable
- \li \image imagine/images/spinbox-indicator-down-editable.9.png
- \li
- \row
- \li
- \li indicator
- \li down, editable, pressed
- \li \image imagine/images/spinbox-indicator-down-editable-pressed.9.png
- \li
- \row
- \li
- \li indicator
- \li down, editable, focused
- \li \image imagine/images/spinbox-indicator-down-editable-focused.9.png
- \li
- \row
- \li
- \li indicator
- \li down, editable, mirrored
- \li \image imagine/images/spinbox-indicator-down-editable-mirrored.9.png
- \li
- \row
- \li
- \li indicator
- \li down, editable, hovered
- \li \image imagine/images/spinbox-indicator-down-editable-hovered.9.png
- \li
- \row
- \li \l SwipeDelegate
- \li background
- \li
- \li \image imagine/images/swipedelegate-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/swipedelegate-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/swipedelegate-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/swipedelegate-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/swipedelegate-background-hovered.9.png
- \li
- \row
- \li \l Switch
- \li indicator
- \li
- \li \image imagine/images/switch-indicator.png
- \li
- \row
- \li
- \li indicator
- \li disabled
- \li \image imagine/images/switch-indicator-disabled.png
- \li
- \row
- \li
- \li indicator
- \li pressed
- \li \image imagine/images/switch-indicator-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked
- \li \image imagine/images/switch-indicator-checked.png
- \li
- \row
- \li
- \li indicator
- \li checked, focused
- \li \image imagine/images/switch-indicator-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li checked, hovered
- \li \image imagine/images/switch-indicator-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li checked, pressed
- \li \image imagine/images/switch-indicator-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li focused
- \li \image imagine/images/switch-indicator-focused.png
- \li
- \row
- \li
- \li indicator
- \li hovered
- \li \image imagine/images/switch-indicator-hovered.png
- \li
- \row
- \li
- \li handle
- \li
- \li \image imagine/images/switch-handle.png
- \li
- \row
- \li
- \li handle
- \li disabled
- \li \image imagine/images/switch-handle-disabled.png
- \li
- \row
- \li
- \li handle
- \li pressed
- \li \image imagine/images/switch-handle-pressed.png
- \li
- \row
- \li \l SwitchDelegate
- \li background
- \li
- \li \image imagine/images/switchdelegate-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/switchdelegate-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/switchdelegate-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/switchdelegate-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/switchdelegate-background-hovered.9.png
- \li
- \row
- \li
- \li indicator
- \li
- \li \image imagine/images/switchdelegate-indicator.png
- \li
- \row
- \li
- \li indicator
- \li disabled
- \li \image imagine/images/switchdelegate-indicator-disabled.png
- \li
- \row
- \li
- \li indicator
- \li pressed
- \li \image imagine/images/switchdelegate-indicator-pressed.png
- \li
- \row
- \li
- \li indicator
- \li checked
- \li \image imagine/images/switchdelegate-indicator-checked.png
- \li
- \row
- \li
- \li indicator
- \li checked, focused
- \li \image imagine/images/switchdelegate-indicator-checked-focused.png
- \li
- \row
- \li
- \li indicator
- \li checked, hovered
- \li \image imagine/images/switchdelegate-indicator-checked-hovered.png
- \li
- \row
- \li
- \li indicator
- \li checked, pressed
- \li \image imagine/images/switchdelegate-indicator-checked-pressed.png
- \li
- \row
- \li
- \li indicator
- \li focused
- \li \image imagine/images/switchdelegate-indicator-focused.png
- \li
- \row
- \li
- \li indicator
- \li hovered
- \li \image imagine/images/switchdelegate-indicator-hovered.png
- \li
- \row
- \li
- \li handle
- \li
- \li \image imagine/images/switchdelegate-handle.png
- \li
- \row
- \li
- \li handle
- \li disabled
- \li \image imagine/images/switchdelegate-handle-disabled.png
- \li
- \row
- \li \l TabBar
- \li background
- \li
- \li \image imagine/images/tabbar-background.png
- \li
- \row
- \li \l TabButton
- \li background
- \li
- \li \image imagine/images/tabbutton-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/tabbutton-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/tabbutton-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li checked
- \li \image imagine/images/tabbutton-background-checked.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/tabbutton-background-hovered.9.png
- \li
- \row
- \li
- \li background
- \li disabled, checked
- \li \image imagine/images/tabbutton-background-disabled-checked.9.png
- \li
- \row
- \li \l TextArea
- \li background
- \li
- \li \image imagine/images/textarea-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/textarea-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/textarea-background-focused.9.png
- \li
- \row
- \li \l TextField
- \li background
- \li
- \li \image imagine/images/textfield-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled
- \li \image imagine/images/textfield-background-disabled.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/textfield-background-focused.9.png
- \li
- \row
- \li \l ToolBar
- \li background
- \li
- \li \image imagine/images/toolbar-background.png
- \li
- \row
- \li \l ToolButton
- \li background
- \li
- \li \image imagine/images/toolbutton-background.9.png
- \li
- \row
- \li
- \li background
- \li disabled, checked
- \li \image imagine/images/toolbutton-background-disabled-checked.9.png
- \li
- \row
- \li
- \li background
- \li focused
- \li \image imagine/images/toolbutton-background-focused.9.png
- \li
- \row
- \li
- \li background
- \li pressed
- \li \image imagine/images/toolbutton-background-pressed.9.png
- \li
- \row
- \li
- \li background
- \li checked
- \li \image imagine/images/toolbutton-background-checked.9.png
- \li
- \row
- \li
- \li background
- \li checked, focused
- \li \image imagine/images/toolbutton-background-checked-focused.9.png
- \li
- \row
- \li
- \li background
- \li checked, hovered
- \li \image imagine/images/toolbutton-background-checked-hovered.9.png
- \li
- \row
- \li
- \li background
- \li hovered
- \li \image imagine/images/toolbutton-background-hovered.9.png
- \li
- \row
- \li \l ToolSeparator
- \li separator
- \li horizontal
- \li \image imagine/images/toolseparator-separator-horizontal.9.png
- \li
- \row
- \li
- \li separator
- \li vertical
- \li \image imagine/images/toolseparator-separator-vertical.9.png
- \li
- \row
- \li \l ToolTip
- \li background
- \li
- \li \image imagine/images/tooltip-background.9.png
- \li
- \endtable
-
- \target sup1
- \sup 1 A 1x1 image containing one color, stretched to fill the control.
-
- \section2 9-Patch Images
-
- The Imagine style uses \l
- {https://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch}{9-patch
- images} in order to give designers control over how a particular element
- responds to being resized. Here is an example of a 9-patch image that
- represents a \l {Button}'s \l {Control::}{background}, alongside a
- magnified version (to make it easier to see the 9-patch lines):
-
- \image qtquickcontrols2-imagine-9-patch-4x.png
-
- The content of the image is 44 pixels wide by 32 pixels high. Every 9-patch
- image needs a one pixel thick line (collectively referred to as
- "9-patch lines") around every side, so the actual size of the image becomes
- 46 pixels wide by 34 pixels high. Note that the 9-patch lines must be one
- pixel thick regardless of the target DPI of the image. For example,
- the 9-patch lines for button-background.9.png and button-background@2x.9.png
- must both be one pixel thick.
-
- The 9-patch lines must be black, and the remaining areas must be transparent
- or white:
-
- \image qtquickcontrols2-imagine-9-patch-size.png
-
- \section3 Stretchable Areas
-
- The 9-patch lines on the top and left edges determine which parts of the
- image are stretched when it is resized.
-
- Below are examples of the 9-patch image being resized to one and a half
- times its original size in various dimensions:
-
- \image qtquickcontrols2-imagine-9-patch-resized-stretchable.png
-
- Notice how the the rounded corners keep their original size, as they are
- outside the range of the lines.
-
- \section3 Padding Areas
-
- The 9-patch lines on the right and bottom edges determine how much space
- is available for the control's \l {Control::}{contentItem}, which means it
- can also be thought of as controlling the \l {Control::}{padding}. For a
- diagram that illustrates padding, see \l {Control Layout}.
-
- Below are more examples of the 9-patch image being resized, but this time
- demonstrating how the padding 9-patch lines work.
-
- \image qtquickcontrols2-imagine-9-patch-resized-padding.png
-
- The \c contentItem can take up as much space as it needs within the shaded
- areas. If the padding lines are left out, the \c contentItem will take as
- much space as it needs without exceeding the stretchable areas.
-
- \section3 Inset Areas
-
- In some cases it is necessary for a control to have a drop shadow, for
- example. However, if we were to add a drop shadow to the button above, it
- would affect its size, which presents problems for both layouting and
- mouse/touch input boundaries.
-
- Inset areas accounts for this by telling the control that a certain area of
- the 9-patch image should go outside of the control:
-
- \image qtquickcontrols2-imagine-9-patch-inset.png
-
- In the image below, the dashed line represents the button's clickable area,
- as well as the space that it will take up in a layout. The shadow is marked
- by the striped area behind it:
-
- \image qtquickcontrols2-imagine-9-patch-inset-boundaries.png
-
- \section3 Exporting 9-Patch Images
-
- Various vector and bitmap editors can be used to create 9-patch images
- suitable for use with the Imagine style. The following sections briefly
- explain the export process for each editor, and the last section explains
- how to ensure the exported images are 9-patch-conformant.
-
- \section4 Illustrator
-
- See Adobe's
- \l {https://helpx.adobe.com/in/illustrator/using/collect-assets-export-for-screens.html#panel}
- {Asset Export panel} documentation.
-
- \section4 Inkscape
-
- The \l {https://github.com/mitchcurtis/inkscape-9-patch-export}
- {Inkscape 9-Patch Export Extension} can be used to export assets with
- Inkscape.
-
- \section4 Photoshop
-
- See Adobe's
- \l {https://helpx.adobe.com/photoshop/using/generate-assets-layers.html}
- {Generate image assets from layers} documentation.
-
- \section4 Sketch
-
- See Sketch's \l {https://sketchapp.com/docs/exporting/}{Exporting} documentation.
-
- Qt Quick Controls also provides a
- \l {http://code.qt.io/cgit/qt/qtquickcontrols2.git/tree/src/imports/controls/imagine/design}
- {plugin} for Sketch that automatically fixes the thickness of the 9-patch lines
- after the assets are exported. To install this file, double-click on it.
- Once Sketch has confirmed that the 9-patch export plugin has been installed,
- the plugin will automatically process images when they are exported.
-
- \section4 Fixing 9-Patch Lines
-
- When exporting 9-patch images in several DPI variants (\c {@2x}, \c {@3x},
- etc.), the 9-patch lines will typically be scaled up along with the image.
- There are several ways to fix this, but perhaps the simplest approach is
- to use \l {https://www.imagemagick.org/script/mogrify.php}{ImageMagick's mogrify}
- tool. The tool has a \c -shave feature that can be used to crop the image
- to reduce the thickness of the 9-patch lines:
-
- \badcode
- mogrify -shave 1x1 -path path/to/images *@2x.9.png
- mogrify -shave 2x2 -path path/to/images *@3x.9.png
- mogrify -shave 3x3 -path path/to/images *@4x.9.png
- \endcode
-
- Regular DPI images (those without the \c @Nx prefix) are not affected, so it
- is only necessary to run the command on images intended for high DPI displays.
-
- \section2 Animated Images
-
- The \l {https://developers.google.com/speed/webp/}{WebP} and GIF animated
- image formats are supported by the Imagine style.
-
- \section2 Customization
-
- \section3 Path
-
- The Imagine style allows customizing the \l {imagine-path-attached-prop}{path}
- that is used to do the image asset selection. The path can be specified for any
- window or item, and it automatically propagates to children in the same manner as
- \l {Control::font}{fonts}. In the following example, the window and all three radio
- buttons appear with dark image assets (files that are located in "qrc:/themes/dark").
-
- \table
- \row
- \li
- \qml
- import QtQuick 2.12
- import QtQuick.Controls 2.12
- import QtQuick.Controls.Imagine 2.12
-
- ApplicationWindow {
- visible: true
-
- Imagine.path: "qrc:/themes/dark"
-
- Column {
- anchors.centerIn: parent
-
- RadioButton { text: qsTr("Small") }
- RadioButton { text: qsTr("Medium"); checked: true }
- RadioButton { text: qsTr("Large") }
- }
- }
- \endqml
- \li
- \image qtquickcontrols2-imagine-customization-dark.png
- \endtable
-
- In addition to specifying the path in QML, it is also possible to specify
- it via an \l {imagine-customization-environment-variable}{environment variable}
- or in a \l {imagine-customization-configuration-file}{configuration file}.
- Attributes specified in QML take precedence over all other methods.
-
- \section4 Configuration File
- \target imagine-customization-configuration-file
-
- \include qquickimaginestyle.qdocinc conf
-
- See \l {Qt Quick Controls Configuration File} for more details about the
- configuration file.
-
- \section4 Environment Variables
- \target imagine-customization-environment-variable
-
- \include qquickimaginestyle.qdocinc env
-
- See \l {Supported Environment Variables in Qt Quick Controls} for the full
- list of supported environment variables.
-
- \section3 Palette
-
- The Imagine style supports palette customization via the \l {Control::}{palette}
- property and the \l {Palette Configuration}{qtquickcontrols2.conf} file.
- As with other styles, the exact \l {palette QML Basic Type}{palette roles}
- that the Imagine style uses are style-dependent. However, as most of the visual
- appearance of controls (for example: backgrounds) are managed through image assets,
- only the roles that are typically used for text will have an effect.
-
- \section3 Font
-
- Custom fonts can be set via the \l {Control::}{font} property and the
- \l {Font Configuration}{configuration} file.
-
- \section2 Dependency
-
- The Imagine style must be separately imported to gain access to the
- attributes that are specific to the Imagine style. It should be noted
- that regardless of the references to the Imagine style, the same
- application code runs with any other style. Imagine-specific attributes
- only have an effect when the application is run with the Imagine style.
-
- If the Imagine style is imported in a QML file that is always loaded, the
- Imagine style must be deployed with the application in order to be able
- to run the application regardless of which style the application is run with.
- By using \l {Using File Selectors with Qt Quick Controls}{file selectors},
- style-specific tweaks can be applied without creating a hard dependency to
- a style.
-
- \b {See also} \l {Styling Qt Quick Controls}
-
- \section1 Attached Property Documentation
-
- \styleproperty {Imagine.path} {string} {imagine-path-attached-prop}
- \target imagine-path-attached-prop
- This attached property holds the path to the image assets...
-
- \code
- Button {
- Imagine.path: "qrc:/themes/dark"
- }
- \endcode
-
- \endstyleproperty
-
- \section1 Related Information
-
- \list
- \li \l{Styling Qt Quick Controls}
- \li \l{Qt Quick Controls - Imagine Style Example: Automotive}{Automotive Example}
- \li \l{Qt Quick Controls - Imagine Style Example: Music Player}{Music Player Example}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-index.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-index.qdoc
deleted file mode 100644
index 395f3b36..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-index.qdoc
+++ /dev/null
@@ -1,188 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols-index.html
- \keyword Qt Quick Controls 2
- \title Qt Quick Controls
-
- \brief Provides a set of UI controls for Qt Quick.
-
- Qt Quick Controls provides a set of controls that can be used
- to build complete interfaces in Qt Quick. The module was introduced
- in Qt 5.7.
-
- \image qtquickcontrols2-styles.png
-
- Qt Quick Controls comes with a selection customizable styles.
- See \l {Styling Qt Quick Controls} for more details.
-
- \section1 Prerequisites
-
- The \l{Qt Quick Controls QML Types}{QML types} can be imported into your
- application using the following import statement in your \c {.qml} file:
-
- \code \QtMinorVersion
- import QtQuick.Controls 2.\1
- \endcode
-
- The \l{Qt Quick Controls C++ Classes}{C++ classes} can be included into
- your application using the following include statement:
-
- \code
- #include <QtQuickControls2>
- \endcode
-
- To link against the corresponding C++ libraries, add the following to your
- qmake project file:
-
- \code
- QT += quickcontrols2
- \endcode
-
- For more details, see \l {Getting Started with Qt Quick Controls}.
-
- \section2 Building From Source
-
- When building from source, ensure that the \l {Qt Graphical Effects} module
- is also built, as Qt Quick Controls requires it.
-
- The \l {Qt Image Formats} module is recommended, but not
- required. It provides support for the \c {.webp} format used by the
- \l {Animated Images}{Imagine style}.
-
- \section1 Versions
-
- Qt Quick Controls.0 was introduced in Qt 5.7. Subsequent minor Qt releases
- increment the import version of the Qt Quick Controls modules by one,
- until Qt 5.12, where the import versions match Qt's minor version. The
- experimental Qt Labs modules use import version 1.0.
-
- \table
- \header
- \li \c Qt
- \li \l {Qt Quick QML Types}{\c QtQuick}
- \li \l {Qt Quick Controls QML Types}{\c QtQuick.Controls},\br
- \l {Material Style}{\c QtQuick.Controls.Material},\br
- \l {Universal Style}{\c QtQuick.Controls.Universal},\br
- \l {Qt Quick Templates 2 QML Types}{\c QtQuick.Templates}
- \li \l {Qt Labs Calendar QML Types}{\c Qt.labs.calendar},\br
- \l {Qt Labs Platform QML Types}{\c Qt.labs.platform}
- \row
- \li 5.7
- \li 2.7
- \li 2.0
- \li 1.0
- \row
- \li 5.8
- \li 2.8
- \li 2.1
- \li 1.0
- \row
- \li 5.9
- \li 2.9
- \li 2.2
- \li 1.0
- \row
- \li 5.10
- \li 2.10
- \li 2.3
- \li 1.0
- \row
- \li 5.11
- \li 2.11
- \li 2.4
- \li 1.0
- \row
- \li 5.12
- \li 2.12
- \li 2.12
- \li 1.0
- \row
- \li ...
- \li ...
- \li ...
- \li ...
- \endtable
-
- \section1 License and Attributions
-
- Qt Quick Controls is available under commercial licenses from \l{The Qt Company}.
- In addition, it is available under the
- \l{GNU Lesser General Public License, version 3}, or
- the \l{GNU General Public License, version 2}.
- See \l{Qt Licensing} for further details.
-
- Furthermore Qt Quick Controls potentially contains third party
- modules under following permissive licenses:
-
- \generatelist{groupsbymodule attributions-qtquickcontrols}
-
- \section1 Topics
-
- \list
- \li \l{Qt Quick Controls Guidelines}{Guidelines}
- \li \l{Styling Qt Quick Controls}{Styling}
- \li \l{Icons in Qt Quick Controls}{Icons}
- \li \l{Customizing Qt Quick Controls}{Customization}
- \li \l{High-DPI Support in Qt Quick Controls}{High-DPI Support}
- \li \l{Using File Selectors with Qt Quick Controls}{Using File Selectors}
- \li \l{Deploying Qt Quick Controls Applications}{Deployment}
- \li \l{Qt Quick Controls Configuration File}{Configuration File}
- \li \l{Supported Environment Variables in Qt Quick Controls}{Environment Variables}
- \li \l{Differences with Qt Quick Controls 1}
- \endlist
-
- \section1 Reference
-
- \list
- \li \l{Qt Quick Controls QML Types}{QML Types}
- \li \l{Qt Quick Controls C++ Classes}{C++ Classes}
- \endlist
-
- \section1 Examples
-
- \list
- \li \l{Qt Quick Controls - Gallery}{Gallery}
- \li \l{Qt Quick Controls - Chat Tutorial}{Chat Tutorial}
- \li \l{Qt Quick Controls - Text Editor}{Text Editor}
- \li \l{Qt Quick Controls - Wearable Demo}{Wearable Demo}
- \li \l{Qt Quick Controls - Imagine Style Example: Automotive}{Automotive Example}
- \li \l{Qt Quick Controls - Imagine Style Example: Music Player}{Music Player Example}
- \li \l{Qt Quick Controls Examples}{All Examples}
- \endlist
-
- \section1 Related Modules
-
- \list
- \li \l{Qt Quick}
- \li \l{Qt Quick Layouts}
- \li \l{Qt Quick Templates 2}
- \li \l{Qt Labs Calendar}
- \li \l{Qt Labs Platform}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc
deleted file mode 100644
index 9f9e357b..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-indicators.qdoc
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-indicators.html
- \title Indicator Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for indicator controls
-
- Qt Quick Controls offers a selection of indicator-like controls.
-
- \annotatedlist qtquickcontrols2-indicators
-
- Each type of indicator has its own specific target use case. The following
- sections offer guidelines for choosing the appropriate type of indicator,
- depending on the use case.
-
- \section1 BusyIndicator Control
-
- \image qtquickcontrols2-busyindicator.png
-
- BusyIndicator can be used to show that an operation is in progress,
- and that the UI has to wait for the operation to complete.
-
- \section1 PageIndicator Control
-
- \image qtquickcontrols2-pageindicator.png
-
- \l PageIndicator is used to indicate the currently active page in
- a container of multiple pages.
-
- \section1 ProgressBar Control
-
- \image qtquickcontrols2-progressbar.gif
-
- \l ProgressBar indicates the progress of an operation. The value should be
- updated regularly.
-
- \section1 ScrollBar Control
-
- \image qtquickcontrols2-scrollbar.gif
-
- \l ScrollBar is an interactive bar that indicates the current scroll
- position, and can be used to scroll to a specific position in a
- \l Flickable.
-
- \section1 ScrollIndicator Control
-
- \image qtquickcontrols2-scrollindicator.gif
-
- \l ScrollIndicator is a non-interactive indicator that indicates the
- current scroll position, and can be used to scroll to a specific position in a
- \l {Flickable}.
-
- \section1 Related Information
- \list
- \li \l {Qt Quick Controls Guidelines}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-input.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-input.qdoc
deleted file mode 100644
index 6bc037e0..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-input.qdoc
+++ /dev/null
@@ -1,123 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-input.html
- \title Input Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for input controls
-
- Qt Quick Controls offers a variety of input controls for both numeric
- and textual input.
-
- \annotatedlist qtquickcontrols2-input
-
- Each type of input control has its own specific target use case. The
- following sections offer guidelines for choosing the appropriate type
- of input control, depending on the use case.
-
- \section1 ComboBox Control
-
- \image qtquickcontrols2-combobox.gif
-
- \l ComboBox is used to select a value from a static multiple-line drop-down list.
- It is not possible to add new values, and only one option can be selected.
-
- Recommendations:
- \list
- \li If the number of values is very large, consider applying a filter.
- \li If the list is very limited, consider using RadioButton. This has the
- advantage that the user can see all options at the same time.
- \li Select a default value, the value that will be chosen most often.
- \endlist
-
- \b {See also} \l {CheckBox Control}, \l {Tumbler Control}.
-
- \section1 Dial Control
-
- \image qtquickcontrols2-dial.png
-
- \l Dial is similar to a traditional dial knob that is found on devices such
- as stereos or industrial equipment.
-
- The dial is rotated by clicking and dragging, with the handle indicating the
- value of the dial.
-
- For applications where fast input is important, the circular
- \l {Dial::inputMode}{input mode} is useful, as clicking on the dial will
- move it directly to that position.
-
- For applications where precise input is important, the horizontal and
- vertical input modes are recommended, as these allow small adjustments to
- be made relative to where the dial is clicked. These modes are also better
- for dials where large jumps in values could be unsafe, such as a dial that
- controls audio volume.
-
- \b {See also} \l {Tumbler Control}.
-
- \section1 TextArea Control
-
- \image qtquickcontrols2-textarea.png
-
- \l TextArea is a multi-line text editor.
-
- \section1 TextField Control
-
- \image qtquickcontrols2-textfield.png
-
- \l TextField is a single line text editor.
-
- \b {See also} \l {Tumbler Control}.
-
- \section1 Slider Control
-
- \image qtquickcontrols2-slider.gif
-
- \l Slider is used to select a value by sliding a handle along a track.
-
- \section1 RangeSlider Control
-
- \image qtquickcontrols2-rangeslider.gif
-
- \l RangeSlider is used to select a range specified by two values,
- by sliding each handle along a track.
-
- \b {See also} \l {Slider Control}.
-
- \section1 Tumbler Control
-
- \image qtquickcontrols2-tumbler.png
-
- \l Tumbler is a spinnable wheel of items that can be selected.
-
- \b {See also} \l {ComboBox Control}.
-
- \section1 Related Information
- \list
- \li \l {Qt Quick Controls Guidelines}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-material.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-material.qdoc
deleted file mode 100644
index a146843a..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-material.qdoc
+++ /dev/null
@@ -1,404 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-material.html
- \title Material Style
-
- The Material Style is based on the Google Material Design Guidelines.
- \l{detailed-desc-material}{More...}
-
- \styleimport {QtQuick.Controls.Material 2.12} {Qt 5.7}
-
- \section1 Attached Properties
-
- \list
- \li \l {material-accent-attached-prop}{\b accent} : color
- \li \l {material-background-attached-prop}{\b background} : color
- \li \l {material-elevation-attached-prop}{\b elevation} : int
- \li \l {material-foreground-attached-prop}{\b foreground} : color
- \li \l {material-primary-attached-prop}{\b primary} : color
- \li \l {material-theme-attached-prop}{\b theme} : enumeration
- \endlist
-
- \section1 Attached Methods
-
- \list
- \li color \l {material-color-attached-method}{\b color}(enumeration predefined, enumeration shade)
- \endlist
-
- \section1 Detailed Description
- \target detailed-desc-material
-
- The Material style is based on the \l {https://www.google.com/design/spec/material-design/introduction.html}
- {Google Material Design Guidelines}. It allows for a unified experience
- across platforms and device sizes.
-
- \table
- \row
- \li \image qtquickcontrols2-material-light.png
- \caption The Material style in light theme
- \li \image qtquickcontrols2-material-dark.png
- \caption The Material style in dark theme
- \endtable
-
- To run an application with the Material style, see
- \l {Using Styles in Qt Quick Controls}.
-
- \note The Material style is not a native Android style. The Material
- style is a 100% cross-platform Qt Quick Controls style implementation that
- follows the Google Material Design Guidelines. The style runs on any
- platform, and looks more or less identical everywhere. Minor differences
- may occur due to differences in available system fonts and font rendering
- engines.
-
- \section2 Customization
-
- The Material style allows customizing five attributes, \l {material-theme-attached-prop}{theme},
- \l {material-primary-attached-prop}{primary}, \l {material-accent-attached-prop}{accent},
- \l {material-foreground-attached-prop}{foreground}, and \l {material-background-attached-prop}{background}.
-
- \image qtquickcontrols2-material-attributes.png
-
- All attributes can be specified for any window or item, and they automatically
- propagate to children in the same manner as \l {Control::font}{fonts}. In the
- following example, the window and all three radio buttons appear in the dark
- theme using a purple accent color:
-
- \table
- \row
- \li
- \qml
- import QtQuick 2.12
- import QtQuick.Controls 2.12
- import QtQuick.Controls.Material 2.12
-
- ApplicationWindow {
- visible: true
-
- Material.theme: Material.Dark
- Material.accent: Material.Purple
-
- Column {
- anchors.centerIn: parent
-
- RadioButton { text: qsTr("Small") }
- RadioButton { text: qsTr("Medium"); checked: true }
- RadioButton { text: qsTr("Large") }
- }
- }
- \endqml
- \li
- \image qtquickcontrols2-material-purple.png
- \endtable
-
- In addition to specifying the attributes in QML, it is also possible to
- specify them via environment variables or in a configuration file. Attributes
- specified in QML take precedence over all other methods.
-
- \section3 Configuration File
-
- \include qquickmaterialstyle.qdocinc conf
-
- See \l {Qt Quick Controls Configuration File} for more details about the
- configuration file.
-
- \section3 Environment Variables
-
- \include qquickmaterialstyle.qdocinc env
-
- See \l {Supported Environment Variables in Qt Quick Controls} for the full
- list of supported environment variables.
-
- \section2 Dependency
-
- The Material style must be separately imported to gain access to the
- attributes that are specific to the Material style. It should be noted
- that regardless of the references to the Material style, the same
- application code runs with any other style. Material-specific attributes
- only have an effect when the application is run with the Material style.
-
- If the Material style is imported in a QML file that is always loaded, the
- Material style must be deployed with the application in order to be able
- to run the application regardless of which style the application is run with.
- By using \l {Using File Selectors with Qt Quick Controls}{file selectors},
- style-specific tweaks can be applied without creating a hard dependency to
- a style.
-
- \section2 Pre-defined Material Colors
-
- Even though primary and accent can be any \l {colorbasictypedocs}{color}, it
- is recommended to use one of the pre-defined colors that have been designed
- to work well with the rest of the Material style palette:
-
- Available pre-defined colors:
- \value Material.Red \stylecolor {#F44336} {}
- \value Material.Pink \stylecolor {#E91E63} {(default accent)}
- \value Material.Purple \stylecolor {#9C27B0} {}
- \value Material.DeepPurple \stylecolor {#673AB7} {}
- \value Material.Indigo \stylecolor {#3F51B5} {(default primary)}
- \value Material.Blue \stylecolor {#2196F3} {}
- \value Material.LightBlue \stylecolor {#03A9F4} {}
- \value Material.Cyan \stylecolor {#00BCD4} {}
- \value Material.Teal \stylecolor {#009688} {}
- \value Material.Green \stylecolor {#4CAF50} {}
- \value Material.LightGreen \stylecolor {#8BC34A} {}
- \value Material.Lime \stylecolor {#CDDC39} {}
- \value Material.Yellow \stylecolor {#FFEB3B} {}
- \value Material.Amber \stylecolor {#FFC107} {}
- \value Material.Orange \stylecolor {#FF9800} {}
- \value Material.DeepOrange \stylecolor {#FF5722} {}
- \value Material.Brown \stylecolor {#795548} {}
- \value Material.Grey \stylecolor {#9E9E9E} {}
- \value Material.BlueGrey \stylecolor {#607D8B} {}
-
- When the dark theme is in use, different \l {Pre-defined Shades}{shades} of
- the pre-defined colors are used by default:
-
- \value Material.Red \stylecolor {#EF9A9A} {}
- \value Material.Pink \stylecolor {#F48FB1} {(default accent)}
- \value Material.Purple \stylecolor {#CE93D8} {}
- \value Material.DeepPurple \stylecolor {#B39DDB} {}
- \value Material.Indigo \stylecolor {#9FA8DA} {(default primary)}
- \value Material.Blue \stylecolor {#90CAF9} {}
- \value Material.LightBlue \stylecolor {#81D4FA} {}
- \value Material.Cyan \stylecolor {#80DEEA} {}
- \value Material.Teal \stylecolor {#80CBC4} {}
- \value Material.Green \stylecolor {#A5D6A7} {}
- \value Material.LightGreen \stylecolor {#C5E1A5} {}
- \value Material.Lime \stylecolor {#E6EE9C} {}
- \value Material.Yellow \stylecolor {#FFF59D} {}
- \value Material.Amber \stylecolor {#FFE082} {}
- \value Material.Orange \stylecolor {#FFCC80} {}
- \value Material.DeepOrange \stylecolor {#FFAB91} {}
- \value Material.Brown \stylecolor {#BCAAA4} {}
- \value Material.Grey \stylecolor {#EEEEEE} {}
- \value Material.BlueGrey \stylecolor {#B0BEC5} {}
-
- \section2 Pre-defined Shades
-
- There are several different
- \l {https://material.google.com/style/color.html#color-color-palette}{shades}
- of each \l {Pre-defined Material Colors}{pre-defined color} that can be passed
- to the \l {material-color-attached-method}{Material.color()} function:
- \value Material.Shade50
- \value Material.Shade100
- \value Material.Shade200
- \value Material.Shade300
- \value Material.Shade400
- \value Material.Shade500
- \value Material.Shade600
- \value Material.Shade700
- \value Material.Shade800
- \value Material.Shade900
- \value Material.ShadeA100
- \value Material.ShadeA200
- \value Material.ShadeA400
- \value Material.ShadeA700
-
- \b {See also} \l {Default Style}, \l {Universal Style}
-
- \section2 Variants
-
- The Material style also supports a dense variant, where controls like
- buttons and delegates are smaller in height and use smaller font sizes.
- It is recommended to use the dense variant on desktop platforms, where
- a mouse and keyboard allow more precise and flexible user interaction.
-
- To use the dense variant, either set the
- \c QT_QUICK_CONTROLS_MATERIAL_VARIANT environment variable to \c Dense,
- or specify \c Variant=Dense in the
- \l {Qt Quick Controls Configuration File}{qtquickcontrols2.conf} file.
- The default value in both cases is \c Normal.
-
- The following images illustrate the differences between some of the
- controls when using the normal and dense variants:
-
- \table
- \row
- \li
- \image qtquickcontrols2-material-variant-normal.png
- \li
- \image qtquickcontrols2-material-variant-dense.png
- \endtable
-
- Note that the heights shown above may vary based on differences in fonts
- across platforms.
-
- \section1 Attached Property Documentation
-
- \styleproperty {Material.accent} {color} {material-accent-attached-prop}
- \target material-accent-attached-prop
- This attached property holds the accent color of the theme. The property
- can be attached to any window or item. The value is propagated to children.
-
- The default value is \c Material.Pink.
-
- In the following example, the accent color of the highlighted button is
- changed to \c Material.Orange:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-material-accent.qml 1
- \li
- \image qtquickcontrols2-material-accent.png
- \endtable
-
- \note Even though the accent can be any \l {colorbasictypedocs}{color}, it is
- recommended to use one of the \l {pre-defined Material colors} that have been
- designed to work well with the rest of the Material style palette.
-
- \endstyleproperty
-
- \styleproperty {Material.background} {color} {material-background-attached-prop}
- \target material-background-attached-prop
- This attached property holds the background color of the theme. The property
- can be attached to any window or item. The value is propagated to children.
-
- The default value is theme-specific (light or dark).
-
- In the following example, the background color of the button is changed to
- \c Material.Teal:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-material-background.qml 1
- \li
- \image qtquickcontrols2-material-background.png
- \endtable
-
- \endstyleproperty
-
- \styleproperty {Material.elevation} {int} {material-elevation-attached-prop}
- \target material-elevation-attached-prop
- This attached property holds the elevation of the control. The higher the
- elevation, the deeper the shadow. The property can be attached to any control,
- but not all controls visualize elevation.
-
- The default value is control-specific.
-
- In the following example, the elevation of the pane is set to \c 6
- in order to achieve the look of an
- \l {https://material.google.com/components/cards.html}{elevated card}:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-material-elevation.qml 1
- \li
- \image qtquickcontrols2-material-elevation.png
- \endtable
-
- \endstyleproperty
-
- \styleproperty {Material.foreground} {color} {material-foreground-attached-prop}
- \target material-foreground-attached-prop
- This attached property holds the foreground color of the theme. The property
- can be attached to any window or item. The value is propagated to children.
-
- The default value is theme-specific (light or dark).
-
- In the following example, the foreground color of the button is set to \c
- Material.Pink:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-material-foreground.qml 1
- \li
- \image qtquickcontrols2-material-foreground.png
- \endtable
-
- \endstyleproperty
-
- \styleproperty {Material.primary} {color} {material-primary-attached-prop}
- \target material-primary-attached-prop
- This attached property holds the primary color of the theme. The property
- can be attached to any window or item. The value is propagated to children.
-
- The primary color is used as the background color of ToolBar by default.
-
- The default value is \c Material.Indigo.
-
- \note Even though the primary can be any \l {colorbasictypedocs}{color}, it is
- recommended to use one of the \l {pre-defined Material colors} that have been
- designed to work well with the rest of the Material style palette.
-
- \endstyleproperty
-
- \styleproperty {Material.theme} {enumeration} {material-theme-attached-prop}
- \target material-theme-attached-prop
- This attached property holds whether the theme is light or dark. The property
- can be attached to any window or item. The value is propagated to children.
-
- Available themes:
- \value Material.Light Light theme (default)
- \value Material.Dark Dark theme
- \value Material.System System theme
-
- Setting the theme to \c System chooses either the light or dark theme based
- on the system theme colors. However, when reading the value of the theme
- property, the value is never \c System, but the actual theme.
-
- In the following example, the theme for both the pane and the button is set
- to \c Material.Dark:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-material-theme.qml 1
- \li
- \image qtquickcontrols2-material-theme.png
- \endtable
-
- \endstyleproperty
-
- \section1 Attached Method Documentation
-
- \stylemethod2 {color} {color} {enumeration} {predefined} {enumeration} {shade} {material-color-attached-method}
- \target material-color-attached-method
- This attached method returns the effective color value of the specified
- \l {pre-defined Material colors}{pre-defined Material color} combined with
- the given \l {pre-defined shades}{shade}. If omitted, the shade argument
- defaults to \c Material.Shade500.
-
- \qml
- Rectangle {
- color: Material.color(Material.Red)
- }
- \endqml
-
- \endstylemethod2
-
- \section1 Related Information
-
- \list
- \li \l{Styling Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-menus.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-menus.qdoc
deleted file mode 100644
index 43db2092..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-menus.qdoc
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-menus.html
- \title Menu Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for menu controls
-
- \annotatedlist qtquickcontrols2-menus
-
- Each type of menu control has its own specific target use case. The
- following sections offer guidelines for choosing the appropriate type
- of menu control, depending on the use case.
-
- \section1 Menu Control
-
- \image qtquickcontrols2-menu.png
-
- \l Menu control can be used for context menus; for example, after
- right-clicking. It can also be used for popup menus; for example, a
- menu that is shown after clicking a button.
-
- \l MenuItem is an item in the Menu control. Each item in a menu:
- \list
- \li displays text to the user
- \li allows checking/unchecking
- \li is highlighted (for example, on keyboard navigation)
- \li performs some action on activation
- \endlist
-
- \section1 MenuBar Control
-
- \image qtquickcontrols2-menubar.png
-
- \l MenuBar control can be used for window menu bars.
-
- \l MenuBarItem is an item in the MenuBar control. Each item in a menu bar:
- \list
- \li displays text to the user
- \li is highlighted (for example, on keyboard navigation)
- \li pops up the respective menu on activation
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-navigation.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-navigation.qdoc
deleted file mode 100644
index 95928d13..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-navigation.qdoc
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-navigation.html
- \title Navigation Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for navigation controls
-
- Qt Quick Controls offers a selection of navigation models.
-
- \annotatedlist qtquickcontrols2-navigation
-
- The following sections offer guidelines for choosing the appropriate type
- of navigation model, depending on the use case.
-
- \section1 StackView Control
-
- \image qtquickcontrols2-stackview-wireframe.png
-
- \l StackView provides a stack-based navigation model which can be used
- with a set of interlinked pages. StackView works according to a last-in
- first-out principle: the page pushed last on the stack is the one visible.
- Popping a page removes the last page and makes the previous one visible.
-
- \section1 SwipeView Control
-
- \image qtquickcontrols2-swipeview-wireframe.png
-
- \l SwipeView provides a navigation model that simplifies horizontal paged
- scrolling. The page indicator on the bottom shows which is the presently
- active page.
-
- \section1 TabBar Control
-
- \image qtquickcontrols2-tabbar-wireframe.png
-
- \l TabBar is a bar with icons or text that allows the user to switch
- between different subtasks, views, or modes.
-
- \section1 TabButton Control
-
- \image qtquickcontrols2-tabbutton.png
-
- \l TabButton is a button with a layout suitable for a TabBar control.
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-palette.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-palette.qdoc
deleted file mode 100644
index e4bac54a..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-palette.qdoc
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlbasictype palette
- \brief a palette of colors.
- \target qtquickcontrols2-palette
-
- The \c palette type refers to a palette of colors for various roles.
-
- Available properties:
- \table
- \header
- \li Property
- \li Description
- \row
- \li \b palette.alternateBase : color
- \li Used as the alternate background color in item views with alternating row colors.
- \row
- \li \b palette.base : color
- \li Used mostly as the background color for text editor controls and items views.
- It is usually white or another light color.
- \row
- \li \b palette.brightText : color
- \li A text color that is very different from \c palette.windowText, and contrasts
- well with e.g. \c palette.dark. Typically used for text that needs to be drawn
- where \c palette.text, \c palette.windowText or \c palette.buttonText would
- give poor contrast, such as on highlighted buttons.
- \row
- \li \b palette.button : color
- \li The general button background color. This background can be different from
- \c palette.window as some styles require a different background color for buttons.
- \row
- \li \b palette.buttonText : color
- \li A foreground color used with the \c palette.button color.
- \row
- \li \b palette.dark : color
- \li Darker than \c palette.button.
- \row
- \li \b palette.highlight : color
- \li A color to indicate a selected item or the current item.
- \row
- \li \b palette.highlightedText : color
- \li A text color that contrasts with \c palette.highlight.
- \row
- \li \b palette.light : color
- \li Lighter than \c palette.button.
- \row
- \li \b palette.link : color
- \li A text color used for hyperlinks.
- \row
- \li \b palette.linkVisited : color
- \li A text color used for already visited hyperlinks.
- \row
- \li \b palette.mid : color
- \li Between \c palette.button and \c palette.dark.
- \row
- \li \b palette.midlight : color
- \li Between \c palette.button and \c palette.light.
- \row
- \li \b palette.shadow : color
- \li A very dark color.
- \row
- \li \b palette.text : color
- \li The foreground color used with \c palette.base. This is usually the same as
- the \c palette.windowText, in which case it must provide good contrast with
- \c palette.window and \c palette.base.
- \row
- \li \b palette.toolTipBase : color
- \li Used as the background color for tooltips.
- \row
- \li \b palette.toolTipText : color
- \li Used as the foreground color for tooltips.
- \row
- \li \b palette.window : color
- \li A general background color.
- \row
- \li \b palette.windowText : color
- \li A general foreground color.
- \endtable
-
- \sa Control::palette, Popup::palette, ApplicationWindow::palette, QPalette::ColorRole
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-popups.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-popups.qdoc
deleted file mode 100644
index c26b4c4b..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-popups.qdoc
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-popups.html
- \title Popup Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for popup controls
-
- \annotatedlist qtquickcontrols2-popups
-
- Each type of popup control has its own specific target use case. The
- following sections offer guidelines for choosing the appropriate type
- of popup control, depending on the use case.
-
- \section1 Drawer Control
-
- \image qtquickcontrols2-drawer-expanded-wireframe.png
-
- \l Drawer provides a swipe-based side panel, similar to those often used
- in touch interfaces to provide a central location for navigation.
-
- The drawer can be positioned at any of the four edges of the screen. It allows
- the user to add navigation without taking up valuable screen space. The user can
- show and hide the drawer at any time with a simple swipe movement.
-
- \section1 Menu Control
-
- \image qtquickcontrols2-menu.png
-
- The \l Menu control displays a vertical list of items that can be selected. It can
- be used for offering a list of actions that can be taken in a given context.
-
- \b {See also} \l {Drawer Control}.
-
- \section1 Popup Control
-
- \image qtquickcontrols2-popup-settings.png
-
- A \l Popup displays content over other application content.
- It prompts the user to make a decision or enter information.
-
- Popups can be modal or non-modal. A modal popup blocks users from interacting
- with the application until they have made a choice and closed the popup.
-
- A popup can be used for:
-
- \list
- \li communicating a message to the user that they must read and acknowledge.
- \li displaying an error message.
- \li prompting the user to make a choice and/or enter a value.
- \endlist
-
- \section1 ToolTip Control
-
- \image qtquickcontrols2-tooltip.png
-
- \l ToolTip shows a short piece of text that informs the user of a control's
- function. It is typically placed above or below the parent control.
-
- Recommendations:
- \list
- \li Use a tooltip if a control has little or no descriptive text, or needs
- a short explanation.
- \li Use a tooltip only if the information on a particular control is not
- available elsewhere in the screen.
- \li Keep the tooltip text short so that it does not cover other content
- while being displayed.
- \endlist
-
- \section1 Related Information
- \list
- \li \l {Qt Quick Controls Guidelines}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-qmltypes.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-qmltypes.qdoc
deleted file mode 100644
index c8c44264..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-qmltypes.qdoc
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlmodule QtQuick.Controls 2.5
- \keyword Qt Quick Controls QML Types
- \title Qt Quick Controls QML Types
- \keyword Qt Quick Controls 2 QML Types
- \ingroup qmlmodules
- \brief Provides QML types for user interfaces (Qt Quick Controls).
-
- \l{Qt Quick Controls} provides QML types for creating user interfaces.
- These QML types work in conjunction with \l{Qt Quick} and
- \l{Qt Quick Layouts}.
-
- Qt Quick Controls QML types can be imported into your application
- using the following import statement in your .qml file:
-
- \badcode \QtMinorVersion
- import QtQuick.Controls 2.\1
- \endcode
-
- \section1 QML Types
- \generatelist {qmltypesbymodule QtQuick.Controls}
- \noautolist
-
- For more information on the Qt Quick Controls module, see the
- \l {Qt Quick Controls} module documentation.
-
- \section1 Related Information
- \list
- \li \l {Qt Quick Controls Guidelines}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-separators.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-separators.qdoc
deleted file mode 100644
index 481a744e..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-separators.qdoc
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-separators.html
- \title Separator Controls
- \ingroup qtquickcontrols2-guidelines
- \brief Guidelines for separator controls
-
- Qt Quick Controls offers a selection of separators.
-
- \annotatedlist qtquickcontrols2-separators
-
- Each type of separator has its own specific use case. The following
- sections offer guidelines for choosing the appropriate type of separator,
- depending on the use case.
-
- \section1 MenuSeparator Control
-
- \image qtquickcontrols2-menuseparator.png
-
- \l MenuSeparator should be used to separate items (typically MenuItem
- controls) in a Menu. Grouping related menu items together makes it easier
- for the user to interact with the menu. For example, a typical desktop
- user interface might have \c Undo and \c Redo items in one group, and
- \c Cut, \c Copy and \c Paste in another.
-
- \section1 ToolSeparator Control
-
- \image qtquickcontrols2-toolseparator.png
-
- \l ToolSeparator should be used to separate items (typically ToolButton
- controls) in a ToolBar. It can be used in horizontal or vertical toolbars.
-
- \section1 Related Information
- \list
- \li \l {Qt Quick Controls Guidelines}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-styles.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-styles.qdoc
deleted file mode 100644
index 27731e42..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-styles.qdoc
+++ /dev/null
@@ -1,146 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-styles.html
- \title Styling Qt Quick Controls
-
- \section1 Available Styles
-
- Qt Quick Controls comes with a selection of styles.
-
- \section2 Default Style
-
- \image qtquickcontrols2-default-thumbnail.png
- The \l {Default Style} is a simple and light-weight all-round style that offers
- the maximum performance for Qt Quick Controls.
-
- \section2 Fusion Style
-
- \image qtquickcontrols2-fusion-thumbnail.png
- The \l {Fusion Style} is a platform-agnostic style that offers a desktop-oriented
- look'n'feel for Qt Quick Controls.
-
- \section2 Imagine Style
-
- \image qtquickcontrols2-imagine-thumbnail.png
- The \l {Imagine Style} is based on image assets. The style comes with a default
- set of images which can easily be changed by providing a directory
- with images using a predefined naming convention.
-
- \section2 Material Style
-
- \image qtquickcontrols2-material-thumbnail.png
- The \l {Material Style} offers an appealing design based on the
- \l {https://www.google.com/design/spec/material-design/introduction.html}
- {Google Material Design Guidelines}, but requires more system resources than
- the Default style.
-
- \section2 Universal Style
-
- \image qtquickcontrols2-universal-thumbnail.png
- The \l {Universal Style} offers an appealing design based on the
- \l {https://dev.windows.com/design}{Microsoft Universal Design Guidelines},
- but requires more system resources than the Default style.
-
- \section1 Using Styles in Qt Quick Controls
-
- In order to run an application with a specific style, either configure the
- style using \l QQuickStyle in C++, pass a command line argument, or set an
- environment variable. Alternatively, the preferred style and style-specific
- attributes can be specified in a configuration file.
-
- The priority of these approaches follows the order they are listed below,
- from highest to lowest. That is, using QQuickStyle to set the style will
- always take priority over using the command line argument, for example.
-
- \section2 Using QQuickStyle in C++
-
- \l QQuickStyle provides C++ API for configuring a specific style. The following
- example runs a Qt Quick Controls application with the Material style:
-
- \code
- QQuickStyle::setStyle("Material");
- \endcode
-
- See the detailed description of \l QQuickStyle for more details.
-
- \section2 Command line argument
-
- Passing a \c -style command line argument is the convenient way to test different
- styles. It takes precedence over the other methods listed below. The following
- example runs a Qt Quick Controls application with the Material style:
-
- \code
- ./app -style material
- \endcode
-
- \section2 Environment variable
-
- Setting the \c QT_QUICK_CONTROLS_STYLE environment variable can be used to set
- a system-wide style preference. It takes precedence over the configuration file
- mentioned below. The following example runs a Qt Quick Controls application with
- the Universal style:
-
- \code
- QT_QUICK_CONTROLS_STYLE=universal ./app
- \endcode
-
- See \l {Supported Environment Variables in Qt Quick Controls} for the full list
- of supported environment variables.
-
- \section2 Configuration file
-
- Qt Quick Controls 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
- of the methods described earlier) and certain style-specific attributes. The following
- example specifies that the preferred style is the Material style.
-
- \code
- [Controls]
- Style=Material
- \endcode
-
- See \l {Qt Quick Controls Configuration File} for more details about the
- configuration file.
-
- \section1 Related Information
- \list
- \li \l {Default Style}
- \li \l {Fusion Style}
- \li \l {Imagine Style}
- \li \l {Material Style}
- \li \l {Universal Style}
- \li \l {Customizing Qt Quick Controls}
- \li \l {Using File Selectors with Qt Quick Controls}
- \li \l {Deploying Qt Quick Controls Applications}
- \li \l {Qt Quick Controls Configuration File}
- \li \l {Supported Environment Variables in Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/controls/doc/src/qtquickcontrols2-universal.qdoc b/src/imports/controls/doc/src/qtquickcontrols2-universal.qdoc
deleted file mode 100644
index 1e67dd75..00000000
--- a/src/imports/controls/doc/src/qtquickcontrols2-universal.qdoc
+++ /dev/null
@@ -1,288 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquickcontrols2-universal.html
- \title Universal Style
-
- The Universal Style is based on the Microsoft Universal Design Guidelines.
- \l {detailed-desc-universal}{More...}
-
- \styleimport {QtQuick.Controls.Universal 2.12} {Qt 5.7}
-
- \section1 Attached Properties
-
- \list
- \li \l {universal-accent-attached-prop}{\b accent} : color
- \li \l {universal-background-attached-prop}{\b background} : color
- \li \l {universal-foreground-attached-prop}{\b foreground} : color
- \li \l {universal-theme-attached-prop}{\b theme} : enumeration
- \endlist
-
- \section1 Attached Methods
-
- \list
- \li color \l {color-attached-method}{\b color}(enumeration predefined)
- \endlist
-
- \section1 Detailed Description
- \target detailed-desc-universal
-
- The Universal style is a device-agnostic style based on the
- \l {https://dev.windows.com/design}{Microsoft Universal Design Guidelines}.
- The Universal style has been designed to look good on all devices, from
- phones and tablets to PCs.
-
- \table
- \row
- \li \image qtquickcontrols2-universal-light.png
- \caption The Universal style in light theme
- \li \image qtquickcontrols2-universal-dark.png
- \caption The Universal style in dark theme
- \endtable
-
- To run an application with the Universal style, see
- \l {Using Styles in Qt Quick Controls}.
-
- \note The Universal style is not a native Windows 10 style. The Universal
- style is a 100% cross-platform Qt Quick Controls style implementation that
- follows the Microsoft Universal Design Guidelines. The style runs on any
- platform, and looks more or less identical everywhere. Minor differences
- may occur due to differences in available system fonts and font rendering
- engines.
-
- \section2 Customization
-
- The Universal style allows customizing four attributes, \l {universal-theme-attached-prop}{theme},
- \l {universal-accent-attached-prop}{accent}, \l {universal-foreground-attached-prop}{foreground}, and
- \l {universal-background-attached-prop}{background}.
-
- \image qtquickcontrols2-universal-attributes.png
-
- Both attributes can be specified for any window or item, and they automatically
- propagate to children in the same manner as \l {Control::font}{fonts}. In the
- following example, the window and all three radio buttons appear in the dark
- theme using a violet accent color:
-
- \table
- \row
- \li
- \qml
- import QtQuick 2.12
- import QtQuick.Controls 2.12
- import QtQuick.Controls.Universal 2.12
-
- ApplicationWindow {
- visible: true
-
- Universal.theme: Universal.Dark
- Universal.accent: Universal.Violet
-
- Column {
- anchors.centerIn: parent
-
- RadioButton { text: qsTr("Small") }
- RadioButton { text: qsTr("Medium"); checked: true }
- RadioButton { text: qsTr("Large") }
- }
- }
- \endqml
- \li
- \image qtquickcontrols2-universal-violet.png
- \endtable
-
- In addition to specifying the attributes in QML, it is also possible to
- specify them via environment variables or in a configuration file. Attributes
- specified in QML take precedence over all other methods.
-
- \section3 Configuration File
-
- \include qquickuniversalstyle.qdocinc conf
-
- See \l {Qt Quick Controls Configuration File} for more details about the
- configuration file.
-
- \section3 Environment Variables
-
- \include qquickuniversalstyle.qdocinc env
-
- See \l {Supported Environment Variables in Qt Quick Controls} for the full
- list of supported environment variables.
-
- \section2 Dependency
-
- The Universal style must be separately imported to gain access to the
- attributes that are specific to the Universal style. It should be noted
- that regardless of the references to the Universal style, the same
- application code runs with any other style. Universal-specific attributes
- only have an effect when the application is run with the Universal style.
-
- If the Universal style is imported in a QML file that is always loaded, the
- Universal style must be deployed with the application in order to be able
- to run the application regardless of which style the application is run with.
- By using \l {Using File Selectors with Qt Quick Controls}{file selectors},
- style-specific tweaks can be applied without creating a hard dependency to
- a style.
-
- \section2 Pre-defined Universal Colors
-
- Available pre-defined colors:
- \value Universal.Lime \stylecolor {#A4C400} {}
- \value Universal.Green \stylecolor {#60A917} {}
- \value Universal.Emerald \stylecolor {#008A00} {}
- \value Universal.Teal \stylecolor {#00ABA9} {}
- \value Universal.Cyan \stylecolor {#1BA1E2} {}
- \value Universal.Cobalt \stylecolor {#3E65FF} {(default accent)}
- \value Universal.Indigo \stylecolor {#6A00FF} {}
- \value Universal.Violet \stylecolor {#AA00FF} {}
- \value Universal.Pink \stylecolor {#F472D0} {}
- \value Universal.Magenta \stylecolor {#D80073} {}
- \value Universal.Crimson \stylecolor {#A20025} {}
- \value Universal.Red \stylecolor {#E51400} {}
- \value Universal.Orange \stylecolor {#FA6800} {}
- \value Universal.Amber \stylecolor {#F0A30A} {}
- \value Universal.Yellow \stylecolor {#E3C800} {}
- \value Universal.Brown \stylecolor {#825A2C} {}
- \value Universal.Olive \stylecolor {#6D8764} {}
- \value Universal.Steel \stylecolor {#647687} {}
- \value Universal.Mauve \stylecolor {#76608A} {}
- \value Universal.Taupe \stylecolor {#87794E} {}
-
- \b {See also} \l {Default Style}, \l {Material Style}
-
- \section1 Attached Property Documentation
-
- \styleproperty {Universal.accent} {color} {universal-accent-attached-prop}
- \target universal-accent-attached-prop
- This attached property holds the accent color of the theme. The property
- can be attached to any window or item. The value is propagated to children.
-
- The default value is \c Universal.Cobalt.
-
- In the following example, the accent color of the highlighted button is
- changed to \c Universal.Orange:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-universal-accent.qml 1
- \li
- \image qtquickcontrols2-universal-accent.png
- \endtable
-
- \note Even though the accent can be any \l {colorbasictypedocs}{color}, it is
- recommended to use one of the \l {pre-defined Universal colors} that have been
- designed to work well with the rest of the Universal style palette.
-
- \endstyleproperty
-
- \styleproperty {Universal.background} {color} {universal-background-attached-prop}
- \target universal-background-attached-prop
- This attached property holds the background color of the theme. The property
- can be attached to any window or item. The value is propagated to children.
-
- The default value is theme-specific (light or dark).
-
- In the following example, the background color of the pane is changed to
- \c Universal.Steel:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-universal-background.qml 1
- \li
- \image qtquickcontrols2-universal-background.png
- \endtable
-
- \endstyleproperty
-
- \styleproperty {Universal.foreground} {color} {universal-foreground-attached-prop}
- \target universal-foreground-attached-prop
- This attached property holds the foreground color of the theme. The property
- can be attached to any window or item. The value is propagated to children.
-
- The default value is theme-specific (light or dark).
-
- In the following example, the foreground color of the button is set to \c
- Universal.Pink:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-universal-foreground.qml 1
- \li
- \image qtquickcontrols2-universal-foreground.png
- \endtable
-
- \styleproperty {Universal.theme} {enumeration} {universal-theme-attached-prop}
- \target universal-theme-attached-prop
- This attached property holds whether the theme is light or dark. The property
- can be attached to any window or item. The value is propagated to children.
-
- Available themes:
- \value Universal.Light Light theme (default)
- \value Universal.Dark Dark theme
- \value Universal.System System theme
-
- Setting the theme to \c System chooses either the light or dark theme based
- on the system theme colors. However, when reading the value of the theme
- property, the value is never \c System, but the actual theme.
-
- In the following example, the theme for both the pane and the button is set
- to \c Universal.Dark:
-
- \table
- \row
- \li
- \snippet qtquickcontrols2-universal-theme.qml 1
- \li
- \image qtquickcontrols2-universal-theme.png
- \endtable
-
- \endstyleproperty
-
- \section1 Attached Method Documentation
-
- \stylemethod {color} {color} {enumeration} {predefined} {color-attached-method}
- \target color-attached-method
- This attached method returns the effective color value of the specified
- \l {pre-defined Universal colors}{pre-defined Universal color}.
-
- \qml
- Rectangle {
- color: Universal.color(Universal.Red)
- }
- \endqml
-
- \endstylemethod
-
- \section1 Related Information
-
- \list
- \li \l{Styling Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/controls/fusion/ApplicationWindow.qml b/src/imports/controls/fusion/ApplicationWindow.qml
deleted file mode 100644
index 9079403e..00000000
--- a/src/imports/controls/fusion/ApplicationWindow.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ApplicationWindow {
- id: window
-
- color: palette.window
-
- overlay.modal: Rectangle {
- color: Fusion.topShadow
- }
-
- overlay.modeless: Rectangle {
- color: Fusion.topShadow
- }
-}
diff --git a/src/imports/controls/fusion/BusyIndicator.qml b/src/imports/controls/fusion/BusyIndicator.qml
deleted file mode 100644
index 554c3368..00000000
--- a/src/imports/controls/fusion/BusyIndicator.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.BusyIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
-
- contentItem: BusyIndicatorImpl {
- implicitWidth: 28
- implicitHeight: 28
- color: control.palette.text
-
- running: control.running
- opacity: control.running ? 1 : 0
- Behavior on opacity { OpacityAnimator { duration: 250 } }
-
- RotationAnimator on rotation {
- running: control.running || contentItem.visible
- from: 0
- to: 360
- duration: 1000
- loops: Animation.Infinite
- }
- }
-}
diff --git a/src/imports/controls/fusion/Button.qml b/src/imports/controls/fusion/Button.qml
deleted file mode 100644
index 7822634d..00000000
--- a/src/imports/controls/fusion/Button.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Button {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 4
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.buttonText
- }
-
- background: ButtonPanel {
- implicitWidth: 80
- implicitHeight: 24
-
- control: control
- visible: !control.flat || control.down || control.checked || control.highlighted || control.visualFocus || control.hovered
- }
-}
diff --git a/src/imports/controls/fusion/ButtonPanel.qml b/src/imports/controls/fusion/ButtonPanel.qml
deleted file mode 100644
index 125aa2f3..00000000
--- a/src/imports/controls/fusion/ButtonPanel.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-Rectangle {
- id: panel
-
- property Item control
- property bool highlighted: control.highlighted
-
- visible: !control.flat || control.down || control.checked
-
- color: Fusion.buttonColor(control.palette, panel.highlighted, control.down || control.checked, control.hovered)
- gradient: control.down || control.checked ? null : buttonGradient
-
- Gradient {
- id: buttonGradient
- GradientStop {
- position: 0
- color: Fusion.gradientStart(Fusion.buttonColor(panel.control.palette, panel.highlighted, panel.control.down, panel.control.hovered))
- }
- GradientStop {
- position: 1
- color: Fusion.gradientStop(Fusion.buttonColor(panel.control.palette, panel.highlighted, panel.control.down, panel.control.hovered))
- }
- }
-
- radius: 2
- border.color: Fusion.buttonOutline(control.palette, panel.highlighted || control.visualFocus, control.enabled)
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- border.color: Fusion.innerContrastLine
- color: "transparent"
- radius: 2
- }
-}
diff --git a/src/imports/controls/fusion/CheckBox.qml b/src/imports/controls/fusion/CheckBox.qml
deleted file mode 100644
index edb4c77f..00000000
--- a/src/imports/controls/fusion/CheckBox.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.CheckBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- indicator: CheckIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.windowText
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-}
diff --git a/src/imports/controls/fusion/CheckDelegate.qml b/src/imports/controls/fusion/CheckDelegate.qml
deleted file mode 100644
index 1b97b1fd..00000000
--- a/src/imports/controls/fusion/CheckDelegate.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.CheckDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
- }
-
- indicator: CheckIndicator {
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- control: control
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 20
- color: control.down ? Fusion.buttonColor(control.palette, false, true, true)
- : control.highlighted ? Fusion.highlight(control.palette) : control.palette.base
- }
-}
diff --git a/src/imports/controls/fusion/CheckIndicator.qml b/src/imports/controls/fusion/CheckIndicator.qml
deleted file mode 100644
index 7dcfee30..00000000
--- a/src/imports/controls/fusion/CheckIndicator.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-Rectangle {
- id: indicator
-
- property Item control
- readonly property color pressedColor: Fusion.mergedColors(control.palette.base, control.palette.windowText, 85)
- readonly property color checkMarkColor: Qt.darker(control.palette.text, 1.2)
-
- implicitWidth: 14
- implicitHeight: 14
-
- color: control.down ? indicator.pressedColor : control.palette.base
- border.color: control.visualFocus ? Fusion.highlightedOutline(control.palette)
- : Qt.lighter(Fusion.outline(control.palette), 1.1)
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: 1
- color: Fusion.topShadow
- visible: indicator.control.enabled && !indicator.control.down
- }
-
- ColorImage {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- color: Color.transparent(indicator.checkMarkColor, 210 / 255)
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/checkmark.png"
- visible: indicator.control.checkState === Qt.Checked || (indicator.control.checked && indicator.control.checkState === undefined)
- }
-
- Rectangle {
- x: 3; y: 3
- width: parent.width - 6
- height: parent.width - 6
-
- visible: indicator.control.checkState === Qt.PartiallyChecked
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Color.transparent(indicator.checkMarkColor, 80 / 255)
- }
- GradientStop {
- position: 1
- color: Color.transparent(indicator.checkMarkColor, 140 / 255)
- }
- }
- border.color: Color.transparent(indicator.checkMarkColor, 180 / 255)
- }
-}
diff --git a/src/imports/controls/fusion/ComboBox.qml b/src/imports/controls/fusion/ComboBox.qml
deleted file mode 100644
index e9b836ef..00000000
--- a/src/imports/controls/fusion/ComboBox.qml
+++ /dev/null
@@ -1,175 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.14
-import QtQuick.Window 2.14
-import QtQuick.Templates 2.14 as T
-import QtQuick.Controls 2.14
-import QtQuick.Controls.impl 2.14
-import QtQuick.Controls.Fusion 2.14
-import QtQuick.Controls.Fusion.impl 2.14
-
-T.ComboBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
- rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
-
- delegate: MenuItem {
- width: parent.width
- text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
- font.weight: control.currentIndex === index ? Font.DemiBold : Font.Normal
- highlighted: control.highlightedIndex === index
- hoverEnabled: control.hoverEnabled
- }
-
- indicator: ColorImage {
- x: control.mirrored ? control.padding : control.width - width - control.padding
- y: control.topPadding + (control.availableHeight - height) / 2
- color: control.editable ? control.palette.text : control.palette.buttonText
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/arrow.png"
- width: 20
- fillMode: Image.Pad
- }
-
- contentItem: T.TextField {
- topPadding: 4
- leftPadding: 4 - control.padding
- rightPadding: 4 - control.padding
- bottomPadding: 4
-
- text: control.editable ? control.editText : control.displayText
-
- enabled: control.editable
- autoScroll: control.editable
- readOnly: control.down
- inputMethodHints: control.inputMethodHints
- validator: control.validator
-
- font: control.font
- color: control.editable ? control.palette.text : control.palette.buttonText
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- verticalAlignment: Text.AlignVCenter
-
- background: PaddedRectangle {
- clip: true
- radius: 2
- padding: 1
- leftPadding: control.mirrored ? -2 : padding
- rightPadding: !control.mirrored ? -2 : padding
- color: control.palette.base
- visible: control.editable && !control.flat
-
- Rectangle {
- x: parent.width - width
- y: 1
- width: 1
- height: parent.height - 2
- color: Fusion.buttonOutline(control.palette, control.activeFocus, control.enabled)
- }
-
- Rectangle {
- x: 1
- y: 1
- width: parent.width - 3
- height: 1
- color: Fusion.topShadow
- }
- }
-
- Rectangle {
- x: 1 - control.leftPadding
- y: 1
- width: control.width - 2
- height: control.height - 2
- color: "transparent"
- border.color: Color.transparent(Fusion.highlightedOutline(control.palette), 40 / 255)
- visible: control.activeFocus
- radius: 1.7
- }
- }
-
- background: ButtonPanel {
- implicitWidth: 120
- implicitHeight: 24
-
- control: control
- visible: !control.flat || control.down
- // ### TODO: fix control.contentItem.activeFocus
- highlighted: control.visualFocus || control.contentItem.activeFocus
- }
-
- popup: T.Popup {
- width: control.width
- height: Math.min(contentItem.implicitHeight + 2, control.Window.height - topMargin - bottomMargin)
- topMargin: 6
- bottomMargin: 6
- palette: control.palette
- padding: 1
-
- contentItem: ListView {
- clip: true
- implicitHeight: contentHeight
- model: control.delegateModel
- currentIndex: control.highlightedIndex
- highlightRangeMode: ListView.ApplyRange
- highlightMoveDuration: 0
-
- T.ScrollBar.vertical: ScrollBar { }
- }
-
- background: Rectangle {
- color: control.popup.palette.window
- border.color: Fusion.outline(control.palette)
-
- Rectangle {
- z: -1
- x: 1; y: 1
- width: parent.width
- height: parent.height
- color: control.palette.shadow
- opacity: 0.2
- }
- }
- }
-}
diff --git a/src/imports/controls/fusion/DelayButton.qml b/src/imports/controls/fusion/DelayButton.qml
deleted file mode 100644
index 622de111..00000000
--- a/src/imports/controls/fusion/DelayButton.qml
+++ /dev/null
@@ -1,116 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.DelayButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
-
- transition: Transition {
- NumberAnimation {
- duration: control.delay * (control.pressed ? 1.0 - control.progress : 0.3 * control.progress)
- }
- }
-
- contentItem: ItemGroup {
- ClippedText {
- clip: control.progress > 0
- clipX: -control.leftPadding + (control.mirrored ? 0 : control.progress * control.width)
- clipWidth: control.width
- visible: control.mirrored ? control.progress > 0 : control.progress < 1
-
- text: control.text
- font: control.font
- color: control.mirrored ? control.palette.brightText : control.palette.buttonText
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- ClippedText {
- clip: control.progress > 0
- clipX: -control.leftPadding
- clipWidth: (control.mirrored ? 1.0 - control.progress : control.progress) * control.width
- visible: control.mirrored ? control.progress < 1 : control.progress > 0
-
- text: control.text
- font: control.font
- color: control.mirrored ? control.palette.buttonText : control.palette.brightText
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
- }
-
- background: ButtonPanel {
- implicitWidth: 80
- implicitHeight: 24
-
- control: control
- highlighted: false
- scale: control.mirrored ? -1 : 1
-
- Rectangle {
- width: control.progress * parent.width
- height: parent.height
-
- radius: 2
- border.color: Qt.darker(Fusion.highlight(control.palette), 1.4)
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Qt.lighter(Fusion.highlight(control.palette), 1.2)
- }
- GradientStop {
- position: 1
- color: Fusion.highlight(control.palette)
- }
- }
- }
- }
-}
diff --git a/src/imports/controls/fusion/Dial.qml b/src/imports/controls/fusion/Dial.qml
deleted file mode 100644
index a1337242..00000000
--- a/src/imports/controls/fusion/Dial.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Dial {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 100 // ### remove 100 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 100 // ### remove 100 in Qt 6
-
- background: DialImpl {
- implicitWidth: 100
- implicitHeight: 100
- palette: control.palette
- highlight: control.visualFocus
- }
-
- handle: KnobImpl {
- x: control.background.x + control.background.width / 2 - control.handle.width / 2
- y: control.background.y + control.background.height / 2 - control.handle.height / 2
- width: control.width / 7
- height: control.height / 7
- palette: control.palette
- transform: [
- Translate {
- y: -Math.min(control.background.width, control.background.height) * 0.42 + control.handle.height
- },
- Rotation {
- angle: control.angle
- origin.x: control.handle.width / 2
- origin.y: control.handle.height / 2
- }
- ]
- }
-}
diff --git a/src/imports/controls/fusion/Dialog.qml b/src/imports/controls/fusion/Dialog.qml
deleted file mode 100644
index 79e179d9..00000000
--- a/src/imports/controls/fusion/Dialog.qml
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Dialog {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- padding: 6
-
- background: Rectangle {
- color: control.palette.window
- border.color: control.palette.mid
- radius: 2
-
- Rectangle {
- z: -1
- x: 1; y: 1
- width: parent.width
- height: parent.height
- color: control.palette.shadow
- opacity: 0.2
- radius: 2
- }
- }
-
- header: Label {
- text: control.title
- visible: control.title
- elide: Label.ElideRight
- font.bold: true
- padding: 6
- background: Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 1
- color: control.palette.window
- radius: 2
- }
- }
-
- footer: DialogButtonBox {
- visible: count > 0
- }
-
- T.Overlay.modal: Rectangle {
- color: Fusion.topShadow
- }
-
- T.Overlay.modeless: Rectangle {
- color: Fusion.topShadow
- }
-}
diff --git a/src/imports/controls/fusion/DialogButtonBox.qml b/src/imports/controls/fusion/DialogButtonBox.qml
deleted file mode 100644
index a0b0f243..00000000
--- a/src/imports/controls/fusion/DialogButtonBox.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.DialogButtonBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: 6
- padding: 6
- alignment: Qt.AlignRight
-
- delegate: Button { }
-
- contentItem: ListView {
- model: control.contentModel
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
- }
-
- background: Rectangle {
- implicitHeight: 32
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- color: control.palette.window
- radius: 2
- }
-}
diff --git a/src/imports/controls/fusion/Drawer.qml b/src/imports/controls/fusion/Drawer.qml
deleted file mode 100644
index 5a23dde1..00000000
--- a/src/imports/controls/fusion/Drawer.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Drawer {
- id: control
-
- parent: T.Overlay.overlay
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: control.edge === Qt.BottomEdge
- leftPadding: control.edge === Qt.RightEdge
- rightPadding: control.edge === Qt.LeftEdge
- bottomPadding: control.edge === Qt.TopEdge
-
- enter: Transition { SmoothedAnimation { velocity: 5 } }
- exit: Transition { SmoothedAnimation { velocity: 5 } }
-
- background: Rectangle {
- color: control.palette.window
- readonly property bool horizontal: control.edge === Qt.LeftEdge || control.edge === Qt.RightEdge
- Rectangle {
- width: parent.horizontal ? 1 : parent.width
- height: parent.horizontal ? parent.height : 1
- color: control.palette.mid
- x: control.edge === Qt.LeftEdge ? parent.width - 1 : 0
- y: control.edge === Qt.TopEdge ? parent.height - 1 : 0
- }
- Rectangle {
- width: parent.horizontal ? 1 : parent.width
- height: parent.horizontal ? parent.height : 1
- color: control.palette.shadow
- opacity: 0.2
- x: control.edge === Qt.LeftEdge ? parent.width : 0
- y: control.edge === Qt.TopEdge ? parent.height : 0
- }
- }
-
- T.Overlay.modal: Rectangle {
- color: Fusion.topShadow
- }
-
- T.Overlay.modeless: Rectangle {
- color: Fusion.topShadow
- }
-}
diff --git a/src/imports/controls/fusion/Frame.qml b/src/imports/controls/fusion/Frame.qml
deleted file mode 100644
index c2df6351..00000000
--- a/src/imports/controls/fusion/Frame.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Frame {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 9
-
- background: Rectangle {
- color: "transparent"
- border.color: Qt.lighter(Fusion.outline(control.palette), 1.08)
- }
-}
diff --git a/src/imports/controls/fusion/GroupBox.qml b/src/imports/controls/fusion/GroupBox.qml
deleted file mode 100644
index 3df3e1e6..00000000
--- a/src/imports/controls/fusion/GroupBox.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.GroupBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitLabelWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: 6
- padding: 9
- topPadding: padding + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
-
- label: Text {
- x: control.leftPadding
- width: control.availableWidth
-
- text: control.title
- font: control.font
- color: control.palette.windowText
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- background: Rectangle {
- y: control.topPadding - control.bottomPadding
- width: parent.width
- height: parent.height - control.topPadding + control.bottomPadding
-
- radius: 2
- color: Color.transparent("black", 3 / 255)
- border.color: Qt.lighter(Fusion.outline(control.palette), 1.08)
- }
-}
diff --git a/src/imports/controls/fusion/ItemDelegate.qml b/src/imports/controls/fusion/ItemDelegate.qml
deleted file mode 100644
index 4c15ae68..00000000
--- a/src/imports/controls/fusion/ItemDelegate.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ItemDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 20
- color: control.down ? Fusion.buttonColor(control.palette, false, true, true)
- : control.highlighted ? Fusion.highlight(control.palette) : control.palette.base
- }
-}
diff --git a/src/imports/controls/fusion/Label.qml b/src/imports/controls/fusion/Label.qml
deleted file mode 100644
index 9821f71c..00000000
--- a/src/imports/controls/fusion/Label.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Label {
- id: control
-
- color: control.palette.windowText
- linkColor: control.palette.link
-}
diff --git a/src/imports/controls/fusion/Menu.qml b/src/imports/controls/fusion/Menu.qml
deleted file mode 100644
index e06b70fd..00000000
--- a/src/imports/controls/fusion/Menu.qml
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-import QtQuick.Window 2.12
-
-T.Menu {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- margins: 0
- padding: 1
- overlap: 2
-
- delegate: MenuItem { }
-
- contentItem: ListView {
- implicitHeight: contentHeight
- model: control.contentModel
- interactive: Window.window ? contentHeight > Window.window.height : false
- clip: true
- currentIndex: control.currentIndex
-
- ScrollIndicator.vertical: ScrollIndicator {}
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 20
-
- color: control.palette.base
- border.color: Fusion.outline(control.palette)
-
- Rectangle {
- z: -1
- x: 1; y: 1
- width: parent.width
- height: parent.height
- color: control.palette.shadow
- opacity: 0.2
- }
- }
-
- T.Overlay.modal: Rectangle {
- color: Fusion.topShadow
- }
-
- T.Overlay.modeless: Rectangle {
- color: Fusion.topShadow
- }
-}
diff --git a/src/imports/controls/fusion/MenuBar.qml b/src/imports/controls/fusion/MenuBar.qml
deleted file mode 100644
index 4ba71fee..00000000
--- a/src/imports/controls/fusion/MenuBar.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.MenuBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- delegate: MenuBarItem { }
-
- contentItem: Row {
- spacing: control.spacing
- Repeater {
- model: control.contentModel
- }
- }
-
- background: Rectangle {
- implicitHeight: 20
-
- color: control.palette.window
-
- Rectangle {
- y: parent.height - height
- width: parent.width
- height: 1
- color: Fusion.mergedColors(Qt.darker(control.palette.window, 1.2),
- Qt.lighter(Fusion.outline(control.palette), 1.4), 60)
- }
- }
-}
diff --git a/src/imports/controls/fusion/MenuBarItem.qml b/src/imports/controls/fusion/MenuBarItem.qml
deleted file mode 100644
index 9fa685dc..00000000
--- a/src/imports/controls/fusion/MenuBarItem.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.MenuBarItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.down || control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
- }
-
- background: Rectangle {
- implicitWidth: 20
- implicitHeight: 20
-
- color: Fusion.highlight(control.palette)
- visible: control.down || control.highlighted
- }
-}
diff --git a/src/imports/controls/fusion/MenuItem.qml b/src/imports/controls/fusion/MenuItem.qml
deleted file mode 100644
index a428fbc8..00000000
--- a/src/imports/controls/fusion/MenuItem.qml
+++ /dev/null
@@ -1,103 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.MenuItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- contentItem: IconLabel {
- readonly property real arrowPadding: control.subMenu && control.arrow ? control.arrow.width + control.spacing : 0
- readonly property real indicatorPadding: control.checkable && control.indicator ? control.indicator.width + control.spacing : 0
- leftPadding: !control.mirrored ? indicatorPadding : arrowPadding
- rightPadding: control.mirrored ? indicatorPadding : arrowPadding
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.down || control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
- }
-
- arrow: ColorImage {
- x: control.mirrored ? control.padding : control.width - width - control.padding
- y: control.topPadding + (control.availableHeight - height) / 2
- width: 20
-
- visible: control.subMenu
- rotation: control.mirrored ? 90 : -90
- color: control.down || control.hovered || control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/arrow.png"
- fillMode: Image.Pad
- }
-
- indicator: CheckIndicator {
- x: control.mirrored ? control.width - width - control.rightPadding : control.leftPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- control: control
- visible: control.checkable
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 20
-
- color: Fusion.highlight(control.palette)
- visible: control.down || control.highlighted
- }
-}
diff --git a/src/imports/controls/fusion/MenuSeparator.qml b/src/imports/controls/fusion/MenuSeparator.qml
deleted file mode 100644
index 522ada15..00000000
--- a/src/imports/controls/fusion/MenuSeparator.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.MenuSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 5
- verticalPadding: 1
-
- contentItem: Rectangle {
- implicitWidth: 188
- implicitHeight: 1
- color: Qt.lighter(Fusion.darkShade, 1.06)
- }
-}
diff --git a/src/imports/controls/fusion/Page.qml b/src/imports/controls/fusion/Page.qml
deleted file mode 100644
index ce4b1d54..00000000
--- a/src/imports/controls/fusion/Page.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Page {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- background: Rectangle {
- color: control.palette.window
- }
-}
diff --git a/src/imports/controls/fusion/PageIndicator.qml b/src/imports/controls/fusion/PageIndicator.qml
deleted file mode 100644
index 5679b14f..00000000
--- a/src/imports/controls/fusion/PageIndicator.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.PageIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 4
- spacing: 4
-
- delegate: Rectangle {
- implicitWidth: 6
- implicitHeight: 6
-
- radius: width / 2
- color: control.palette.shadow
-
- opacity: index === currentIndex ? 0.95 : pressed ? 0.75 : 0.45
- Behavior on opacity { OpacityAnimator { duration: 100 } }
- }
-
- contentItem: Row {
- spacing: control.spacing
-
- Repeater {
- model: control.count
- delegate: control.delegate
- }
- }
-}
diff --git a/src/imports/controls/fusion/Pane.qml b/src/imports/controls/fusion/Pane.qml
deleted file mode 100644
index 28be3b47..00000000
--- a/src/imports/controls/fusion/Pane.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Pane {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 9
-
- background: Rectangle {
- color: control.palette.window
- }
-}
diff --git a/src/imports/controls/fusion/Popup.qml b/src/imports/controls/fusion/Popup.qml
deleted file mode 100644
index 25a8c5ae..00000000
--- a/src/imports/controls/fusion/Popup.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Popup {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 6
-
- background: Rectangle {
- color: control.palette.window
- border.color: control.palette.mid
- radius: 2
- }
-
- T.Overlay.modal: Rectangle {
- color: Fusion.topShadow
- }
-
- T.Overlay.modeless: Rectangle {
- color: Fusion.topShadow
- }
-}
diff --git a/src/imports/controls/fusion/ProgressBar.qml b/src/imports/controls/fusion/ProgressBar.qml
deleted file mode 100644
index 5deade58..00000000
--- a/src/imports/controls/fusion/ProgressBar.qml
+++ /dev/null
@@ -1,117 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ProgressBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- contentItem: Item {
- implicitWidth: 120
- implicitHeight: 24
- scale: control.mirrored ? -1 : 1
-
- Rectangle {
- height: parent.height
- width: (control.indeterminate ? 1.0 : control.position) * parent.width
-
- radius: 2
- border.color: Qt.darker(Fusion.highlight(control.palette), 1.4)
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Qt.lighter(Fusion.highlight(control.palette), 1.2)
- }
- GradientStop {
- position: 1
- color: Fusion.highlight(control.palette)
- }
- }
- }
-
- Item {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- visible: control.indeterminate
- clip: true
-
- ColorImage {
- width: Math.ceil(parent.width / implicitWidth + 1) * implicitWidth
- height: parent.height
-
- mirror: control.mirrored
- fillMode: Image.TileHorizontally
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/progressmask.png"
- color: Color.transparent(Qt.lighter(Fusion.highlight(control.palette), 1.2), 160 / 255)
-
- visible: control.indeterminate
- NumberAnimation on x {
- running: control.indeterminate && control.visible
- from: -31 // progressmask.png width
- to: 0
- loops: Animation.Infinite
- duration: 750
- }
- }
- }
- }
-
- background: Rectangle {
- implicitWidth: 120
- implicitHeight: 24
-
- radius: 2
- color: control.palette.base
- border.color: Fusion.outline(control.palette)
-
- Rectangle {
- x: 1; y: 1; height: 1
- width: parent.width - 2
- color: Fusion.topShadow
- }
- }
-}
diff --git a/src/imports/controls/fusion/RadioButton.qml b/src/imports/controls/fusion/RadioButton.qml
deleted file mode 100644
index a940aff3..00000000
--- a/src/imports/controls/fusion/RadioButton.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.RadioButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- indicator: RadioIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.windowText
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-}
diff --git a/src/imports/controls/fusion/RadioDelegate.qml b/src/imports/controls/fusion/RadioDelegate.qml
deleted file mode 100644
index e8555a17..00000000
--- a/src/imports/controls/fusion/RadioDelegate.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.RadioDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
- }
-
- indicator: RadioIndicator {
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- control: control
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 20
- color: control.down ? Fusion.buttonColor(control.palette, false, true, true)
- : control.highlighted ? Fusion.highlight(control.palette) : control.palette.base
- }
-}
diff --git a/src/imports/controls/fusion/RadioIndicator.qml b/src/imports/controls/fusion/RadioIndicator.qml
deleted file mode 100644
index c73cd49f..00000000
--- a/src/imports/controls/fusion/RadioIndicator.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-Rectangle {
- id: indicator
-
- property Item control
- readonly property color pressedColor: Fusion.mergedColors(control.palette.base, control.palette.windowText, 85)
- readonly property color checkMarkColor: Qt.darker(control.palette.text, 1.2)
-
- implicitWidth: 14
- implicitHeight: 14
-
- radius: width / 2
- color: control.down ? indicator.pressedColor : control.palette.base
- border.color: control.visualFocus ? Fusion.highlightedOutline(control.palette)
- : Qt.darker(control.palette.window, 1.5)
-
- Rectangle {
- y: 1
- width: parent.width
- height: parent.height - 1
- radius: width / 2
- color: "transparent"
- border.color: Fusion.topShadow
- visible: indicator.control.enabled && !indicator.control.down
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: parent.width / 2.32
- height: parent.height / 2.32
- radius: width / 2
- color: Color.transparent(indicator.checkMarkColor, 180 / 255)
- border.color: Color.transparent(indicator.checkMarkColor, 200 / 255)
- visible: indicator.control.checked
- }
-}
diff --git a/src/imports/controls/fusion/RangeSlider.qml b/src/imports/controls/fusion/RangeSlider.qml
deleted file mode 100644
index 7edbed57..00000000
--- a/src/imports/controls/fusion/RangeSlider.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.RangeSlider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- Math.max(first.implicitHandleWidth,
- second.implicitHandleWidth) + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- Math.max(first.implicitHandleHeight,
- second.implicitHandleHeight) + topPadding + bottomPadding)
-
- first.handle: SliderHandle {
- x: control.leftPadding + Math.round(control.horizontal ? control.first.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + Math.round(control.horizontal ? (control.availableHeight - height) / 2 : control.first.visualPosition * (control.availableHeight - height))
-
- palette: control.palette
- pressed: control.first.pressed
- hovered: control.first.hovered
- vertical: control.vertical
- visualFocus: activeFocus
- }
-
- second.handle: SliderHandle {
- x: control.leftPadding + Math.round(control.horizontal ? control.second.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + Math.round(control.horizontal ? (control.availableHeight - height) / 2 : control.second.visualPosition * (control.availableHeight - height))
-
- palette: control.palette
- pressed: control.second.pressed
- hovered: control.second.hovered
- vertical: control.vertical
- visualFocus: activeFocus
- }
-
- background: SliderGroove {
- control: control
- offset: control.first.position
- progress: control.second.position
- visualProgress: control.second.visualPosition
- }
-}
diff --git a/src/imports/controls/fusion/RoundButton.qml b/src/imports/controls/fusion/RoundButton.qml
deleted file mode 100644
index 59bf4c16..00000000
--- a/src/imports/controls/fusion/RoundButton.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.RoundButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.buttonText
- }
-
- background: Rectangle {
- implicitWidth: 32
- implicitHeight: 32
- visible: !control.flat || control.down || control.checked
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: control.down || control.checked ? Fusion.buttonColor(control.palette, control.highlighted, control.down || control.checked, control.hovered)
- : Fusion.gradientStart(Fusion.buttonColor(control.palette, control.highlighted, control.down, control.hovered))
- }
- GradientStop {
- position: 1
- color: control.down || control.checked ? Fusion.buttonColor(control.palette, control.highlighted, control.down || control.checked, control.hovered)
- : Fusion.gradientStop(Fusion.buttonColor(control.palette, control.highlighted, control.down, control.hovered))
- }
- }
-
- radius: control.radius
- border.color: Fusion.buttonOutline(control.palette, control.highlighted || control.visualFocus, control.enabled)
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- border.color: Fusion.innerContrastLine
- color: "transparent"
- radius: control.radius
- }
- }
-}
diff --git a/src/imports/controls/fusion/ScrollBar.qml b/src/imports/controls/fusion/ScrollBar.qml
deleted file mode 100644
index 93b58f0e..00000000
--- a/src/imports/controls/fusion/ScrollBar.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ScrollBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 2
- visible: control.policy !== T.ScrollBar.AlwaysOff
- minimumSize: orientation == Qt.Horizontal ? height / width : width / height
-
- contentItem: Rectangle {
- implicitWidth: control.interactive ? 6 : 2
- implicitHeight: control.interactive ? 6 : 2
-
- radius: width / 2
- color: control.pressed ? control.palette.dark : control.palette.mid
- opacity: 0.0
-
- states: State {
- name: "active"
- when: control.policy === T.ScrollBar.AlwaysOn || (control.active && control.size < 1.0)
- PropertyChanges { target: control.contentItem; opacity: 0.75 }
- }
-
- transitions: Transition {
- from: "active"
- SequentialAnimation {
- PauseAnimation { duration: 450 }
- NumberAnimation { target: control.contentItem; duration: 200; property: "opacity"; to: 0.0 }
- }
- }
- }
-}
diff --git a/src/imports/controls/fusion/ScrollIndicator.qml b/src/imports/controls/fusion/ScrollIndicator.qml
deleted file mode 100644
index efe0b2fa..00000000
--- a/src/imports/controls/fusion/ScrollIndicator.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ScrollIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 2
-
- contentItem: Rectangle {
- implicitWidth: 2
- implicitHeight: 2
-
- color: control.palette.mid
- visible: control.size < 1.0
- opacity: 0.0
-
- states: State {
- name: "active"
- when: control.active
- PropertyChanges { target: control.contentItem; opacity: 0.75 }
- }
-
- transitions: [
- Transition {
- from: "active"
- SequentialAnimation {
- PauseAnimation { duration: 450 }
- NumberAnimation { target: control.contentItem; duration: 200; property: "opacity"; to: 0.0 }
- }
- }
- ]
- }
-}
diff --git a/src/imports/controls/fusion/Slider.qml b/src/imports/controls/fusion/Slider.qml
deleted file mode 100644
index d212a233..00000000
--- a/src/imports/controls/fusion/Slider.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Slider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitHandleHeight + topPadding + bottomPadding)
-
- handle: SliderHandle {
- x: control.leftPadding + Math.round(control.horizontal ? control.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + Math.round(control.horizontal ? (control.availableHeight - height) / 2 : control.visualPosition * (control.availableHeight - height))
-
- palette: control.palette
- pressed: control.pressed
- hovered: control.hovered
- vertical: control.vertical
- visualFocus: control.visualFocus
- }
-
- background: SliderGroove {
- control: control
- progress: control.position
- visualProgress: control.visualPosition
- }
-}
diff --git a/src/imports/controls/fusion/SliderGroove.qml b/src/imports/controls/fusion/SliderGroove.qml
deleted file mode 100644
index 381a02b5..00000000
--- a/src/imports/controls/fusion/SliderGroove.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-Rectangle {
- id: groove
-
- property Item control
- property real offset
- property real progress
- property real visualProgress
-
- x: control.horizontal ? 0 : (control.availableWidth - width) / 2
- y: control.horizontal ? (control.availableHeight - height) / 2 : 0
-
- implicitWidth: control.horizontal ? 160 : 5
- implicitHeight: control.horizontal ? 5 : 160
- width: control.horizontal ? control.availableWidth : implicitWidth
- height: control.horizontal ? implicitHeight : control.availableHeight
-
- radius: 2
- border.color: Fusion.outline(control.palette)
- scale: control.horizontal && control.mirrored ? -1 : 1
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Qt.darker(Fusion.grooveColor(groove.control.palette), 1.1)
- }
- GradientStop {
- position: 1
- color: Qt.lighter(Fusion.grooveColor(groove.control.palette), 1.1)
- }
- }
-
- Rectangle {
- x: groove.control.horizontal ? groove.offset * parent.width : 0
- y: groove.control.horizontal ? 0 : groove.visualProgress * parent.height
- width: groove.control.horizontal ? groove.progress * parent.width - groove.offset * parent.width : 5
- height: groove.control.horizontal ? 5 : groove.progress * parent.height - groove.offset * parent.height
-
- radius: 2
- border.color: Qt.darker(Fusion.highlightedOutline(groove.control.palette), 1.1)
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Fusion.highlight(groove.control.palette)
- }
- GradientStop {
- position: 1
- color: Qt.lighter(Fusion.highlight(groove.control.palette), 1.2)
- }
- }
- }
-}
diff --git a/src/imports/controls/fusion/SliderHandle.qml b/src/imports/controls/fusion/SliderHandle.qml
deleted file mode 100644
index c53af57e..00000000
--- a/src/imports/controls/fusion/SliderHandle.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-Rectangle {
- id: handle
-
- property var palette
- property bool pressed
- property bool hovered
- property bool vertical
- property bool visualFocus
-
- implicitWidth: 13
- implicitHeight: 13
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Fusion.gradientStart(Fusion.buttonColor(handle.palette, handle.visualFocus, handle.pressed, handle.hovered))
- }
- GradientStop {
- position: 1
- color: Fusion.gradientStop(Fusion.buttonColor(handle.palette, handle.visualFocus, handle.pressed, handle.hovered))
- }
- }
- rotation: handle.vertical ? -90 : 0
- border.width: 1
- border.color: "transparent"
- radius: 2
-
- Rectangle {
- width: parent.width
- height: parent.height
- border.color: handle.visualFocus ? Fusion.highlightedOutline(handle.palette) : Fusion.outline(handle.palette)
- color: "transparent"
- radius: 2
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- border.color: Fusion.innerContrastLine
- color: "transparent"
- radius: 2
- }
- }
-}
diff --git a/src/imports/controls/fusion/SpinBox.qml b/src/imports/controls/fusion/SpinBox.qml
deleted file mode 100644
index 41754f63..00000000
--- a/src/imports/controls/fusion/SpinBox.qml
+++ /dev/null
@@ -1,182 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.SpinBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentItem.implicitWidth + 2 * padding +
- Math.max(up.implicitIndicatorWidth,
- down.implicitIndicatorWidth))
- implicitHeight: Math.max(implicitContentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight,
- up.implicitIndicatorHeight +
- down.implicitIndicatorHeight)
-
- padding: 4
- leftPadding: padding + (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0))
- rightPadding: padding + (control.mirrored ? (down.indicator ? down.indicator.width : 0) : (up.indicator ? up.indicator.width : 0))
-
- validator: IntValidator {
- locale: control.locale.name
- bottom: Math.min(control.from, control.to)
- top: Math.max(control.from, control.to)
- }
-
- contentItem: TextInput {
- z: 2
- text: control.displayText
-
- font: control.font
- color: control.palette.text
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
-
- readOnly: !control.editable
- validator: control.validator
- inputMethodHints: control.inputMethodHints
- }
-
- up.indicator: PaddedRectangle {
- x: control.mirrored ? 1 : parent.width - width - 1
- y: 1
- height: parent.height / 2 - 1
- implicitWidth: 16
- implicitHeight: 10
-
- radius: 1.7
- clip: true
- topPadding: -2
- leftPadding: -2
- color: control.up.pressed ? Fusion.buttonColor(control.palette, false, true, true) : "transparent"
-
- ColorImage {
- scale: -1
- width: parent.width
- height: parent.height
- opacity: enabled ? 1.0 : 0.5
- color: control.palette.buttonText
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/arrow.png"
- fillMode: Image.Pad
- }
- }
-
- down.indicator: PaddedRectangle {
- x: control.mirrored ? 1 : parent.width - width - 1
- y: parent.height - height - 1
- height: parent.height / 2 - 1
- implicitWidth: 16
- implicitHeight: 10
-
- radius: 1.7
- clip: true
- topPadding: -2
- leftPadding: -2
- color: control.down.pressed ? Fusion.buttonColor(control.palette, false, true, true) : "transparent"
-
- ColorImage {
- width: parent.width
- height: parent.height
- opacity: enabled ? 1.0 : 0.5
- color: control.palette.buttonText
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Fusion/images/arrow.png"
- fillMode: Image.Pad
- }
- }
-
- background: Rectangle {
- implicitWidth: 120
- implicitHeight: 24
-
- radius: 2
- color: control.palette.base
- border.color: control.activeFocus ? Fusion.highlightedOutline(control.palette) : Fusion.outline(control.palette)
-
- Rectangle {
- x: 2
- y: 1
- width: parent.width - 4
- height: 1
- color: Fusion.topShadow
- }
-
- Rectangle {
- x: control.mirrored ? 1 : parent.width - width - 1
- y: 1
- width: Math.max(control.up.indicator ? control.up.indicator.width : 0,
- control.down.indicator ? control.down.indicator.width : 0) + 1
- height: parent.height - 2
-
- radius: 2
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Fusion.gradientStart(Fusion.buttonColor(control.palette, control.visualFocus, false, control.up.hovered || control.down.hovered))
- }
- GradientStop {
- position: 1
- color: Fusion.gradientStop(Fusion.buttonColor(control.palette, control.visualFocus, false, control.up.hovered || control.down.hovered))
- }
- }
-
- Rectangle {
- x: control.mirrored ? parent.width - 1 : 0
- height: parent.height
- width: 1
- color: Fusion.outline(control.palette)
- }
- }
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- color: "transparent"
- border.color: Color.transparent(Fusion.highlightedOutline(control.palette), 40 / 255)
- visible: control.activeFocus
- radius: 1.7
- }
- }
-}
diff --git a/src/imports/controls/fusion/SplitView.qml b/src/imports/controls/fusion/SplitView.qml
deleted file mode 100644
index 6a04b4da..00000000
--- a/src/imports/controls/fusion/SplitView.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Templates 2.13 as T
-import QtQuick.Controls 2.13
-import QtQuick.Controls.impl 2.13
-import QtQuick.Controls.Fusion 2.13
-
-T.SplitView {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- handle: Rectangle {
- implicitWidth: control.orientation === Qt.Horizontal ? 2 : control.width
- implicitHeight: control.orientation === Qt.Horizontal ? control.height : 2
- color: T.SplitHandle.pressed ? palette.dark
- : (T.SplitHandle.hovered ? control.palette.midlight : control.palette.mid)
- }
-}
diff --git a/src/imports/controls/fusion/SwipeDelegate.qml b/src/imports/controls/fusion/SwipeDelegate.qml
deleted file mode 100644
index 48c531ea..00000000
--- a/src/imports/controls/fusion/SwipeDelegate.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.SwipeDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- swipe.transition: Transition { SmoothedAnimation { velocity: 3; easing.type: Easing.InOutCubic } }
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 20
- color: control.down ? Fusion.buttonColor(control.palette, false, true, true)
- : control.highlighted ? Fusion.highlight(control.palette) : control.palette.base
- }
-}
diff --git a/src/imports/controls/fusion/Switch.qml b/src/imports/controls/fusion/Switch.qml
deleted file mode 100644
index bf18003a..00000000
--- a/src/imports/controls/fusion/Switch.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Switch {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- indicator: SwitchIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.text
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-}
diff --git a/src/imports/controls/fusion/SwitchDelegate.qml b/src/imports/controls/fusion/SwitchDelegate.qml
deleted file mode 100644
index 67c41924..00000000
--- a/src/imports/controls/fusion/SwitchDelegate.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.SwitchDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- indicator: SwitchIndicator {
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.highlighted ? Fusion.highlightedText(control.palette) : control.palette.text
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 20
- color: control.down ? Fusion.buttonColor(control.palette, false, true, true)
- : control.highlighted ? Fusion.highlight(control.palette) : control.palette.base
- }
-}
diff --git a/src/imports/controls/fusion/SwitchIndicator.qml b/src/imports/controls/fusion/SwitchIndicator.qml
deleted file mode 100644
index ae7c89a0..00000000
--- a/src/imports/controls/fusion/SwitchIndicator.qml
+++ /dev/null
@@ -1,137 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-Rectangle {
- id: indicator
-
- property Item control
- readonly property color pressedColor: Fusion.mergedColors(control.palette.base, control.palette.windowText, 85)
- readonly property color checkMarkColor: Qt.darker(control.palette.text, 1.2)
-
- implicitWidth: 40
- implicitHeight: 16
-
- radius: 2
- border.color: Fusion.outline(control.palette)
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Qt.darker(Fusion.grooveColor(indicator.control.palette), 1.1)
- }
- GradientStop {
- position: 1
- color: Qt.lighter(Fusion.grooveColor(indicator.control.palette), 1.1)
- }
- }
-
- Rectangle {
- x: indicator.control.mirrored ? handle.x : 0
- width: indicator.control.mirrored ? parent.width - handle.x : handle.x + handle.width
- height: parent.height
-
- opacity: indicator.control.checked ? 1 : 0
- Behavior on opacity {
- enabled: !indicator.control.down
- NumberAnimation { duration: 80 }
- }
-
- radius: 2
- border.color: Qt.darker(Fusion.highlightedOutline(indicator.control.palette), 1.1)
- border.width: indicator.control.enabled ? 1 : 0
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Fusion.highlight(indicator.control.palette)
- }
- GradientStop {
- position: 1
- color: Qt.lighter(Fusion.highlight(indicator.control.palette), 1.2)
- }
- }
- }
-
- Rectangle {
- id: handle
- x: Math.max(0, Math.min(parent.width - width, indicator.control.visualPosition * parent.width - (width / 2)))
- y: (parent.height - height) / 2
- width: 20
- height: 16
- radius: 2
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Fusion.gradientStart(Fusion.buttonColor(indicator.control.palette, indicator.control.visualFocus, indicator.control.pressed, indicator.control.hovered))
- }
- GradientStop {
- position: 1
- color: Fusion.gradientStop(Fusion.buttonColor(indicator.control.palette, indicator.control.visualFocus, indicator.control.pressed, indicator.control.hovered))
- }
- }
- border.width: 1
- border.color: "transparent"
-
- Rectangle {
- width: parent.width
- height: parent.height
- border.color: indicator.control.visualFocus ? Fusion.highlightedOutline(indicator.control.palette) : Fusion.outline(indicator.control.palette)
- color: "transparent"
- radius: 2
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- border.color: Fusion.innerContrastLine
- color: "transparent"
- radius: 2
- }
- }
-
- Behavior on x {
- enabled: !indicator.control.down
- SmoothedAnimation { velocity: 200 }
- }
- }
-}
diff --git a/src/imports/controls/fusion/TabBar.qml b/src/imports/controls/fusion/TabBar.qml
deleted file mode 100644
index 233a2acd..00000000
--- a/src/imports/controls/fusion/TabBar.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.TabBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: -1
-
- contentItem: ListView {
- model: control.contentModel
- currentIndex: control.currentIndex
-
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- flickableDirection: Flickable.AutoFlickIfNeeded
- snapMode: ListView.SnapToItem
-
- highlightMoveDuration: 0
- highlightRangeMode: ListView.ApplyRange
- preferredHighlightBegin: 40
- preferredHighlightEnd: width - 40
- }
-
- background: Item {
- implicitHeight: 21
-
- Rectangle {
- width: parent.width
- height: 1
- y: control.position === T.TabBar.Header ? parent.height - 1 : 0
- color: Fusion.outline(control.palette)
- }
- }
-}
diff --git a/src/imports/controls/fusion/TabButton.qml b/src/imports/controls/fusion/TabButton.qml
deleted file mode 100644
index 136503b6..00000000
--- a/src/imports/controls/fusion/TabButton.qml
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.TabButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 2
- horizontalPadding: 4
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- z: checked
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.buttonText
- }
-
- background: Rectangle {
- y: control.checked || control.TabBar.position !== T.TabBar.Header ? 0 : 2
- implicitHeight: 21
- height: control.height - (control.checked ? 0 : 2)
-
- border.color: Qt.lighter(Fusion.outline(control.palette), 1.1)
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: control.checked ? Qt.lighter(Fusion.tabFrameColor(control.palette), 1.04)
- : Qt.darker(Fusion.tabFrameColor(control.palette), 1.08)
- }
- GradientStop {
- position: control.checked ? 0 : 0.85
- color: control.checked ? Qt.lighter(Fusion.tabFrameColor(control.palette), 1.04)
- : Qt.darker(Fusion.tabFrameColor(control.palette), 1.08)
- }
- GradientStop {
- position: 1
- color: control.checked ? Fusion.tabFrameColor(control.palette)
- : Qt.darker(Fusion.tabFrameColor(control.palette), 1.16)
- }
- }
- }
-}
diff --git a/src/imports/controls/fusion/TextArea.qml b/src/imports/controls/fusion/TextArea.qml
deleted file mode 100644
index c7107ac4..00000000
--- a/src/imports/controls/fusion/TextArea.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.TextArea {
- id: control
-
- implicitWidth: Math.max(contentWidth + leftPadding + rightPadding,
- implicitBackgroundWidth + leftInset + rightInset,
- placeholder.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(contentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight + topInset + bottomInset,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- padding: 6
- leftPadding: padding + 4
-
- color: control.palette.text
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- placeholderTextColor: Color.transparent(control.color, 0.5)
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
-
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- verticalAlignment: control.verticalAlignment
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- elide: Text.ElideRight
- renderType: control.renderType
- }
-}
diff --git a/src/imports/controls/fusion/TextField.qml b/src/imports/controls/fusion/TextField.qml
deleted file mode 100644
index d5b5788d..00000000
--- a/src/imports/controls/fusion/TextField.qml
+++ /dev/null
@@ -1,103 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.TextField {
- id: control
-
- implicitWidth: implicitBackgroundWidth + leftInset + rightInset
- || Math.max(contentWidth, placeholder.implicitWidth) + leftPadding + rightPadding
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- padding: 4
-
- color: control.palette.text
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- placeholderTextColor: Color.transparent(control.color, 0.5)
- verticalAlignment: TextInput.AlignVCenter
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
-
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- verticalAlignment: control.verticalAlignment
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- elide: Text.ElideRight
- renderType: control.renderType
- }
-
- background: Rectangle {
- implicitWidth: 120
- implicitHeight: 24
-
- radius: 2
- color: control.palette.base
- border.color: control.activeFocus ? Fusion.highlightedOutline(control.palette) : Fusion.outline(control.palette)
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- color: "transparent"
- border.color: Color.transparent(Fusion.highlightedOutline(control.palette), 40 / 255)
- visible: control.activeFocus
- radius: 1.7
- }
-
- Rectangle {
- x: 2
- y: 1
- width: parent.width - 4
- height: 1
- color: Fusion.topShadow
- }
- }
-}
diff --git a/src/imports/controls/fusion/ToolBar.qml b/src/imports/controls/fusion/ToolBar.qml
deleted file mode 100644
index fa069c0b..00000000
--- a/src/imports/controls/fusion/ToolBar.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ToolBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- horizontalPadding: 6
- topPadding: control.position === T.ToolBar.Footer ? 1 : 0
- bottomPadding: control.position === T.ToolBar.Header ? 1 : 0
-
- background: Rectangle {
- implicitHeight: 26
-
- gradient: Gradient {
- GradientStop {
- position: 0
- color: Qt.lighter(control.palette.window, 1.04)
- }
- GradientStop {
- position: 1
- color: control.palette.window
- }
- }
-
- Rectangle {
- width: parent.width
- height: 1
- color: control.position === T.ToolBar.Header ? Fusion.lightShade : Fusion.darkShade
- }
-
- Rectangle {
- y: parent.height - height
- width: parent.width
- height: 1
- color: control.position === T.ToolBar.Header ? Fusion.darkShade : Fusion.lightShade
- }
- }
-}
diff --git a/src/imports/controls/fusion/ToolButton.qml b/src/imports/controls/fusion/ToolButton.qml
deleted file mode 100644
index 4c00b402..00000000
--- a/src/imports/controls/fusion/ToolButton.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ToolButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 16
- icon.height: 16
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.buttonText
- }
-
- background: ButtonPanel {
- implicitWidth: 20
- implicitHeight: 20
-
- control: control
- visible: control.down || control.checked || control.highlighted || control.visualFocus || control.hovered
- }
-}
diff --git a/src/imports/controls/fusion/ToolSeparator.qml b/src/imports/controls/fusion/ToolSeparator.qml
deleted file mode 100644
index 5d366652..00000000
--- a/src/imports/controls/fusion/ToolSeparator.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ToolSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: vertical ? 6 : 2
- verticalPadding: vertical ? 2 : 6
-
- contentItem: Rectangle {
- implicitWidth: vertical ? 2 : 8
- implicitHeight: vertical ? 8 : 2
- color: Qt.darker(control.palette.window, 1.1)
-
- Rectangle {
- x: 1
- width: 1
- height: parent.height
- color: Qt.lighter(control.palette.window, 1.1)
- }
- }
-}
diff --git a/src/imports/controls/fusion/ToolTip.qml b/src/imports/controls/fusion/ToolTip.qml
deleted file mode 100644
index 73f561e4..00000000
--- a/src/imports/controls/fusion/ToolTip.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.ToolTip {
- id: control
-
- x: parent ? (parent.width - implicitWidth) / 2 : 0
- y: -implicitHeight - 3
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- margins: 6
- padding: 6
-
- closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent | T.Popup.CloseOnReleaseOutsideParent
-
- contentItem: Text {
- text: control.text
- font: control.font
- color: control.palette.toolTipText
- // TODO: wrapMode: Label.Wrap
- }
-
- background: Rectangle {
- color: control.palette.toolTipBase
- border.color: control.palette.toolTipText
-
- Rectangle {
- z: -1
- x: 1; y: 1
- width: parent.width
- height: parent.height
- color: control.palette.shadow
- opacity: 0.5
- }
- }
-}
diff --git a/src/imports/controls/fusion/Tumbler.qml b/src/imports/controls/fusion/Tumbler.qml
deleted file mode 100644
index 0129f06c..00000000
--- a/src/imports/controls/fusion/Tumbler.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Fusion.impl 2.12
-
-T.Tumbler {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 60 // ### remove 60 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 200 // ### remove 200 in Qt 6
-
- delegate: Text {
- text: modelData
- color: control.palette.windowText
- font: control.font
- opacity: (1.0 - Math.abs(Tumbler.displacement) / (control.visibleItemCount / 2)) * (control.enabled ? 1 : 0.6)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-
- contentItem: TumblerView {
- implicitWidth: 60
- implicitHeight: 200
- model: control.model
- delegate: control.delegate
- path: Path {
- startX: control.contentItem.width / 2
- startY: -control.contentItem.delegateHeight / 2
- PathLine {
- x: control.contentItem.width / 2
- y: (control.visibleItemCount + 1) * control.contentItem.delegateHeight - control.contentItem.delegateHeight / 2
- }
- }
-
- property real delegateHeight: control.availableHeight / control.visibleItemCount
- }
-}
diff --git a/src/imports/controls/fusion/dependencies.json b/src/imports/controls/fusion/dependencies.json
deleted file mode 100644
index 21ded052..00000000
--- a/src/imports/controls/fusion/dependencies.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "name": "QtQuick.Controls",
- "type": "module",
- "version": "2.0"
- }
-]
diff --git a/src/imports/controls/fusion/fusion.pri b/src/imports/controls/fusion/fusion.pri
deleted file mode 100644
index 72978db5..00000000
--- a/src/imports/controls/fusion/fusion.pri
+++ /dev/null
@@ -1,67 +0,0 @@
-HEADERS += \
- $$PWD/qquickfusionbusyindicator_p.h \
- $$PWD/qquickfusiondial_p.h \
- $$PWD/qquickfusionknob_p.h \
- $$PWD/qquickfusionstyle_p.h \
- $$PWD/qquickfusiontheme_p.h
-
-SOURCES += \
- $$PWD/qquickfusionbusyindicator.cpp \
- $$PWD/qquickfusiondial.cpp \
- $$PWD/qquickfusionknob.cpp \
- $$PWD/qquickfusionstyle.cpp \
- $$PWD/qquickfusiontheme.cpp
-
-QML_FILES += \
- $$PWD/ApplicationWindow.qml \
- $$PWD/BusyIndicator.qml \
- $$PWD/Button.qml \
- $$PWD/ButtonPanel.qml \
- $$PWD/CheckBox.qml \
- $$PWD/CheckDelegate.qml \
- $$PWD/CheckIndicator.qml \
- $$PWD/ComboBox.qml \
- $$PWD/DelayButton.qml \
- $$PWD/Dial.qml \
- $$PWD/Dialog.qml \
- $$PWD/DialogButtonBox.qml \
- $$PWD/Drawer.qml \
- $$PWD/Frame.qml \
- $$PWD/GroupBox.qml \
- $$PWD/ItemDelegate.qml \
- $$PWD/Label.qml \
- $$PWD/Menu.qml \
- $$PWD/MenuBar.qml \
- $$PWD/MenuBarItem.qml \
- $$PWD/MenuItem.qml \
- $$PWD/MenuSeparator.qml \
- $$PWD/Page.qml \
- $$PWD/PageIndicator.qml \
- $$PWD/Pane.qml \
- $$PWD/Popup.qml \
- $$PWD/ProgressBar.qml \
- $$PWD/RadioButton.qml \
- $$PWD/RadioDelegate.qml \
- $$PWD/RadioIndicator.qml \
- $$PWD/RangeSlider.qml \
- $$PWD/RoundButton.qml \
- $$PWD/ScrollBar.qml \
- $$PWD/ScrollIndicator.qml \
- $$PWD/Slider.qml \
- $$PWD/SliderGroove.qml \
- $$PWD/SliderHandle.qml \
- $$PWD/SpinBox.qml \
- $$PWD/SplitView.qml \
- $$PWD/SwipeDelegate.qml \
- $$PWD/SwitchDelegate.qml \
- $$PWD/SwitchIndicator.qml \
- $$PWD/Switch.qml \
- $$PWD/TabBar.qml \
- $$PWD/TabButton.qml \
- $$PWD/TextArea.qml \
- $$PWD/TextField.qml \
- $$PWD/ToolBar.qml \
- $$PWD/ToolButton.qml \
- $$PWD/ToolSeparator.qml \
- $$PWD/ToolTip.qml \
- $$PWD/Tumbler.qml
diff --git a/src/imports/controls/fusion/fusion.pro b/src/imports/controls/fusion/fusion.pro
deleted file mode 100644
index 663636da..00000000
--- a/src/imports/controls/fusion/fusion.pro
+++ /dev/null
@@ -1,27 +0,0 @@
-TARGET = qtquickcontrols2fusionstyleplugin
-TARGETPATH = QtQuick/Controls.2/Fusion
-
-IMPORT_NAME = QtQuick.Controls.Fusion
-IMPORT_VERSION = 2.$$QT_MINOR_VERSION
-
-QT += qml quick
-QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-include(fusion.pri)
-
-OTHER_FILES += \
- qmldir \
- $$QML_FILES
-
-SOURCES += \
- $$PWD/qtquickcontrols2fusionstyleplugin.cpp
-
-RESOURCES += \
- $$PWD/qtquickcontrols2fusionstyle.qrc
-
-CONFIG += no_cxx_module install_qml_files builtin_resources qtquickcompiler
-load(qml_plugin)
-
-requires(qtConfig(quickcontrols2-fusion))
diff --git a/src/imports/controls/fusion/images/arrow.png b/src/imports/controls/fusion/images/arrow.png
deleted file mode 100644
index ad8cdc95..00000000
--- a/src/imports/controls/fusion/images/arrow.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/arrow.svg b/src/imports/controls/fusion/images/arrow.svg
deleted file mode 100644
index 44383924..00000000
--- a/src/imports/controls/fusion/images/arrow.svg
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="10"
- height="6"
- viewBox="0 0 10 6"
- id="svg2"
- version="1.1"
- inkscape:version="0.91 r13725"
- inkscape:export-filename="/Users/jpnurmi/Downloads/arrow@4x.png"
- inkscape:export-xdpi="360"
- inkscape:export-ydpi="360"
- sodipodi:docname="arrow.svg">
- <defs
- id="defs4" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="31.678384"
- inkscape:cx="7.9810383"
- inkscape:cy="3.0344775"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="true"
- units="px"
- inkscape:snap-to-guides="true"
- inkscape:snap-page="true"
- inkscape:window-width="1440"
- inkscape:window-height="851"
- inkscape:window-x="0"
- inkscape:window-y="1"
- inkscape:window-maximized="1">
- <inkscape:grid
- type="xygrid"
- id="grid3336" />
- </sodipodi:namedview>
- <metadata
- id="metadata7">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(0,-1046.3622)">
- <path
- transform="matrix(1.2371791,0,0,0.85714284,1.0769252,150.19463)"
- style="fill:#000000;fill-opacity:0.7254902"
- inkscape:transform-center-y="1.4999605"
- d="m 3.1709837,1051.3622 -3.2331616,-4.6667 6.4663233,0 z"
- id="path3365"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cccc" />
- </g>
-</svg>
diff --git a/src/imports/controls/fusion/images/arrow@2x.png b/src/imports/controls/fusion/images/arrow@2x.png
deleted file mode 100644
index 4f94c58f..00000000
--- a/src/imports/controls/fusion/images/arrow@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/arrow@3x.png b/src/imports/controls/fusion/images/arrow@3x.png
deleted file mode 100644
index 68928ea9..00000000
--- a/src/imports/controls/fusion/images/arrow@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/arrow@4x.png b/src/imports/controls/fusion/images/arrow@4x.png
deleted file mode 100644
index edde50f3..00000000
--- a/src/imports/controls/fusion/images/arrow@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/checkmark.png b/src/imports/controls/fusion/images/checkmark.png
deleted file mode 100644
index 9cb04883..00000000
--- a/src/imports/controls/fusion/images/checkmark.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/checkmark.svg b/src/imports/controls/fusion/images/checkmark.svg
deleted file mode 100644
index f1afdc4f..00000000
--- a/src/imports/controls/fusion/images/checkmark.svg
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="14"
- height="14"
- viewBox="0 0 14 14"
- id="svg3386"
- version="1.1"
- inkscape:version="0.91 r13725"
- inkscape:export-filename="/Users/jpnurmi/Downloads/checkmark@4x.png"
- inkscape:export-xdpi="360"
- inkscape:export-ydpi="360"
- sodipodi:docname="checkmark.svg">
- <defs
- id="defs3388" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="32"
- inkscape:cx="1.9865044"
- inkscape:cy="6.0706667"
- inkscape:document-units="px"
- inkscape:current-layer="layer1"
- showgrid="false"
- units="px"
- inkscape:snap-page="true"
- inkscape:snap-grids="true"
- inkscape:snap-to-guides="true"
- inkscape:window-width="1440"
- inkscape:window-height="851"
- inkscape:window-x="0"
- inkscape:window-y="1"
- inkscape:window-maximized="1" />
- <metadata
- id="metadata3391">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(0,-1038.3622)">
- <path
- style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.79999995;stroke-linecap:butt;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 5,1045.3622 2,4 2.5,-8"
- id="path4198"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="ccc"
- inkscape:export-xdpi="90"
- inkscape:export-ydpi="90" />
- </g>
-</svg>
diff --git a/src/imports/controls/fusion/images/checkmark@2x.png b/src/imports/controls/fusion/images/checkmark@2x.png
deleted file mode 100644
index ae9a7749..00000000
--- a/src/imports/controls/fusion/images/checkmark@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/checkmark@3x.png b/src/imports/controls/fusion/images/checkmark@3x.png
deleted file mode 100644
index 4a67e88a..00000000
--- a/src/imports/controls/fusion/images/checkmark@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/checkmark@4x.png b/src/imports/controls/fusion/images/checkmark@4x.png
deleted file mode 100644
index 0890d2ba..00000000
--- a/src/imports/controls/fusion/images/checkmark@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/progressmask.png b/src/imports/controls/fusion/images/progressmask.png
deleted file mode 100644
index 683f9e2f..00000000
--- a/src/imports/controls/fusion/images/progressmask.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/progressmask.svg b/src/imports/controls/fusion/images/progressmask.svg
deleted file mode 100644
index a0dfc426..00000000
--- a/src/imports/controls/fusion/images/progressmask.svg
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="31"
- height="22"
- viewBox="0 0 8.202083 5.8208335"
- version="1.1"
- id="svg8"
- inkscape:export-filename="/home/jpnurmi/Projects/qt-dev/qtquickcontrols2/src/imports/controls/fusion/images/progressmask@4x.png"
- inkscape:export-xdpi="384"
- inkscape:export-ydpi="384"
- inkscape:version="0.92.1 r"
- sodipodi:docname="progressmask.svg">
- <defs
- id="defs2" />
- <sodipodi:namedview
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1.0"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="15.839192"
- inkscape:cx="61.144853"
- inkscape:cy="14.574824"
- inkscape:document-units="mm"
- inkscape:current-layer="layer1"
- showgrid="false"
- units="px"
- inkscape:pagecheckerboard="true"
- inkscape:window-width="3840"
- inkscape:window-height="2031"
- inkscape:window-x="0"
- inkscape:window-y="55"
- inkscape:window-maximized="1" />
- <metadata
- id="metadata5">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <g
- inkscape:label="Layer 1"
- inkscape:groupmode="layer"
- id="layer1"
- transform="translate(0,-291.17915)">
- <path
- style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:4.5;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 0,296.99998 4.7625,-5.82083"
- id="path4485"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cc" />
- <path
- style="fill:none;fill-rule:evenodd;stroke:#ffffff;stroke-width:4.5;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
- d="m 8.2020833,296.99998 4.7624997,-5.82083"
- id="path4485-3"
- inkscape:connector-curvature="0"
- sodipodi:nodetypes="cc" />
- </g>
-</svg>
diff --git a/src/imports/controls/fusion/images/progressmask@2x.png b/src/imports/controls/fusion/images/progressmask@2x.png
deleted file mode 100644
index e101f5de..00000000
--- a/src/imports/controls/fusion/images/progressmask@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/progressmask@3x.png b/src/imports/controls/fusion/images/progressmask@3x.png
deleted file mode 100644
index 784f01c0..00000000
--- a/src/imports/controls/fusion/images/progressmask@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/images/progressmask@4x.png b/src/imports/controls/fusion/images/progressmask@4x.png
deleted file mode 100644
index 8af0b2c2..00000000
--- a/src/imports/controls/fusion/images/progressmask@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/fusion/plugins.qmltypes b/src/imports/controls/fusion/plugins.qmltypes
deleted file mode 100644
index a70b4901..00000000
--- a/src/imports/controls/fusion/plugins.qmltypes
+++ /dev/null
@@ -1,214 +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 -dependencies dependencies.json QtQuick.Controls.Fusion 2.13'
-
-Module {
- dependencies: ["QtQuick.Controls 2.0"]
- Component {
- name: "QQuickFusionBusyIndicator"
- defaultProperty: "data"
- prototype: "QQuickPaintedItem"
- exports: ["QtQuick.Controls.Fusion.impl/BusyIndicatorImpl 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "color"; type: "QColor" }
- Property { name: "running"; type: "bool" }
- }
- Component {
- name: "QQuickFusionDial"
- defaultProperty: "data"
- prototype: "QQuickPaintedItem"
- exports: ["QtQuick.Controls.Fusion.impl/DialImpl 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "highlight"; type: "bool" }
- Property { name: "palette"; type: "QPalette" }
- }
- Component {
- name: "QQuickFusionKnob"
- defaultProperty: "data"
- prototype: "QQuickPaintedItem"
- exports: ["QtQuick.Controls.Fusion.impl/KnobImpl 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "palette"; type: "QPalette" }
- }
- Component {
- name: "QQuickFusionStyle"
- prototype: "QObject"
- exports: ["QtQuick.Controls.Fusion.impl/Fusion 2.3"]
- isCreatable: false
- isSingleton: true
- exportMetaObjectRevisions: [0]
- Property { name: "lightShade"; type: "QColor"; isReadonly: true }
- Property { name: "darkShade"; type: "QColor"; isReadonly: true }
- Property { name: "topShadow"; type: "QColor"; isReadonly: true }
- Property { name: "innerContrastLine"; type: "QColor"; isReadonly: true }
- Method {
- name: "highlight"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- }
- Method {
- name: "highlightedText"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- }
- Method {
- name: "outline"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- }
- Method {
- name: "highlightedOutline"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- }
- Method {
- name: "tabFrameColor"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- }
- Method {
- name: "buttonColor"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- Parameter { name: "highlighted"; type: "bool" }
- Parameter { name: "down"; type: "bool" }
- Parameter { name: "hovered"; type: "bool" }
- }
- Method {
- name: "buttonColor"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- Parameter { name: "highlighted"; type: "bool" }
- Parameter { name: "down"; type: "bool" }
- }
- Method {
- name: "buttonColor"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- Parameter { name: "highlighted"; type: "bool" }
- }
- Method {
- name: "buttonColor"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- }
- Method {
- name: "buttonOutline"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- Parameter { name: "highlighted"; type: "bool" }
- Parameter { name: "enabled"; type: "bool" }
- }
- Method {
- name: "buttonOutline"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- Parameter { name: "highlighted"; type: "bool" }
- }
- Method {
- name: "buttonOutline"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- }
- Method {
- name: "gradientStart"
- type: "QColor"
- Parameter { name: "baseColor"; type: "QColor" }
- }
- Method {
- name: "gradientStop"
- type: "QColor"
- Parameter { name: "baseColor"; type: "QColor" }
- }
- Method {
- name: "mergedColors"
- type: "QColor"
- Parameter { name: "colorA"; type: "QColor" }
- Parameter { name: "colorB"; type: "QColor" }
- Parameter { name: "factor"; type: "int" }
- }
- Method {
- name: "mergedColors"
- type: "QColor"
- Parameter { name: "colorA"; type: "QColor" }
- Parameter { name: "colorB"; type: "QColor" }
- }
- Method {
- name: "grooveColor"
- type: "QColor"
- Parameter { name: "palette"; type: "QPalette" }
- }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Fusion.impl/ButtonPanel 2.3"
- exports: ["QtQuick.Controls.Fusion.impl/ButtonPanel 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- Property { name: "highlighted"; type: "bool" }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Fusion.impl/CheckIndicator 2.3"
- exports: ["QtQuick.Controls.Fusion.impl/CheckIndicator 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- Property { name: "pressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "checkMarkColor"; type: "QColor"; isReadonly: true }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Fusion.impl/RadioIndicator 2.3"
- exports: ["QtQuick.Controls.Fusion.impl/RadioIndicator 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- Property { name: "pressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "checkMarkColor"; type: "QColor"; isReadonly: true }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Fusion.impl/SliderGroove 2.3"
- exports: ["QtQuick.Controls.Fusion.impl/SliderGroove 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- Property { name: "offset"; type: "double" }
- Property { name: "progress"; type: "double" }
- Property { name: "visualProgress"; type: "double" }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Fusion.impl/SliderHandle 2.3"
- exports: ["QtQuick.Controls.Fusion.impl/SliderHandle 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "data"
- Property { name: "palette"; type: "QVariant" }
- Property { name: "pressed"; type: "bool" }
- Property { name: "hovered"; type: "bool" }
- Property { name: "vertical"; type: "bool" }
- Property { name: "visualFocus"; type: "bool" }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Fusion.impl/SwitchIndicator 2.3"
- exports: ["QtQuick.Controls.Fusion.impl/SwitchIndicator 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- Property { name: "pressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "checkMarkColor"; type: "QColor"; isReadonly: true }
- }
-}
diff --git a/src/imports/controls/fusion/qmldir b/src/imports/controls/fusion/qmldir
deleted file mode 100644
index b584adc8..00000000
--- a/src/imports/controls/fusion/qmldir
+++ /dev/null
@@ -1,4 +0,0 @@
-module QtQuick.Controls.Fusion
-plugin qtquickcontrols2fusionstyleplugin
-classname QtQuickControls2FusionStylePlugin
-depends QtQuick.Controls 2.5
diff --git a/src/imports/controls/fusion/qquickfusionbusyindicator.cpp b/src/imports/controls/fusion/qquickfusionbusyindicator.cpp
deleted file mode 100644
index a9b75d27..00000000
--- a/src/imports/controls/fusion/qquickfusionbusyindicator.cpp
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickfusionbusyindicator_p.h"
-
-#include <QtGui/qpainter.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickFusionBusyIndicator::QQuickFusionBusyIndicator(QQuickItem *parent)
- : QQuickPaintedItem(parent)
-{
-}
-
-QColor QQuickFusionBusyIndicator::color() const
-{
- return m_color;
-}
-
-void QQuickFusionBusyIndicator::setColor(const QColor &color)
-{
- if (color == m_color)
- return;
-
- m_color = color;
- update();
-}
-
-bool QQuickFusionBusyIndicator::isRunning() const
-{
- return isVisible();
-}
-
-void QQuickFusionBusyIndicator::setRunning(bool running)
-{
- if (running) {
- setVisible(true);
- update();
- }
-}
-
-void QQuickFusionBusyIndicator::paint(QPainter *painter)
-{
- const qreal w = width();
- const qreal h = height();
- if (w <= 0 || h <= 0 || !isRunning())
- return;
-
- const qreal sz = qMin(w, h);
- const qreal dx = (w - sz) / 2;
- const qreal dy = (h - sz) / 2;
- const int hpw = qRound(qMax(qreal(1), sz / 14)) & -1;
- const int pw = 2 * hpw;
- const QRectF bounds(dx + hpw, dy + hpw, sz - pw - 1, sz - pw - 1);
-
- QConicalGradient gradient;
- gradient.setCenter(QPointF(dx + sz / 2, dy + sz / 2));
- gradient.setColorAt(0, m_color);
- gradient.setColorAt(0.1, m_color);
- gradient.setColorAt(1, Qt::transparent);
-
- painter->translate(0.5, 0.5);
- painter->setRenderHint(QPainter::Antialiasing, true);
- painter->setPen(QPen(gradient, pw, Qt::SolidLine));
- painter->drawArc(bounds, 0, 360 * 16);
- painter->setPen(QPen(m_color, pw, Qt::SolidLine, Qt::RoundCap));
- painter->drawArc(bounds, 0, 20 * 16);
-}
-
-void QQuickFusionBusyIndicator::itemChange(ItemChange change, const ItemChangeData &data)
-{
- QQuickPaintedItem::itemChange(change, data);
-
- if (change == ItemOpacityHasChanged && qFuzzyIsNull(data.realValue))
- setVisible(false);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/fusion/qquickfusionbusyindicator_p.h b/src/imports/controls/fusion/qquickfusionbusyindicator_p.h
deleted file mode 100644
index 77487ec8..00000000
--- a/src/imports/controls/fusion/qquickfusionbusyindicator_p.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKFUSIONBUSYINDICATOR_P_H
-#define QQUICKFUSIONBUSYINDICATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuick/qquickpainteditem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFusionBusyIndicator : public QQuickPaintedItem
-{
- Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
- Q_PROPERTY(bool running READ isRunning WRITE setRunning)
-
-public:
- explicit QQuickFusionBusyIndicator(QQuickItem *parent = nullptr);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- bool isRunning() const;
- void setRunning(bool running);
-
- void paint(QPainter *painter) override;
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
-
-private:
- QColor m_color;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKFUSIONBUSYINDICATOR_P_H
diff --git a/src/imports/controls/fusion/qquickfusiondial.cpp b/src/imports/controls/fusion/qquickfusiondial.cpp
deleted file mode 100644
index 182f5c0f..00000000
--- a/src/imports/controls/fusion/qquickfusiondial.cpp
+++ /dev/null
@@ -1,151 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickfusiondial_p.h"
-
-#include <QtGui/qpainter.h>
-#include <QtGui/private/qmath_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickFusionDial::QQuickFusionDial(QQuickItem *parent)
- : QQuickPaintedItem(parent)
-{
-}
-
-bool QQuickFusionDial::highlight() const
-{
- return m_highlight;
-}
-
-void QQuickFusionDial::setHighlight(bool highlight)
-{
- if (m_highlight == highlight)
- return;
-
- m_highlight = highlight;
- update();
-}
-
-QPalette QQuickFusionDial::palette() const
-{
- return m_palette;
-}
-
-void QQuickFusionDial::setPalette(const QPalette &palette)
-{
- if (palette == m_palette)
- return;
-
- m_palette = palette;
- update();
-}
-
-// based on QStyleHelper::drawDial()
-void QQuickFusionDial::paint(QPainter *painter)
-{
- const int width = QQuickItem::width();
- const int height = QQuickItem::height();
- if (width <= 0 || height <= 0 || !isVisible())
- return;
-
- QColor buttonColor = m_palette.button().color();
- const bool enabled = isEnabled();
- qreal r = qMin(width, height) / 2;
- r -= r/50;
- const qreal penSize = r/20.0;
-
- painter->setRenderHint(QPainter::Antialiasing);
-
- const qreal d_ = r / 6;
- const qreal dx = d_ + (width - 2 * r) / 2 + 1;
- const qreal dy = d_ + (height - 2 * r) / 2 + 1;
-
- QRectF br = QRectF(dx + 0.5, dy + 0.5,
- int(r * 2 - 2 * d_ - 2),
- int(r * 2 - 2 * d_ - 2));
- buttonColor.setHsv(buttonColor .hue(),
- qMin(140, buttonColor .saturation()),
- qMax(180, buttonColor.value()));
-
- if (enabled) {
- // Drop shadow
- qreal shadowSize = qMax(1.0, penSize/2.0);
- QRectF shadowRect= br.adjusted(-2*shadowSize, -2*shadowSize,
- 2*shadowSize, 2*shadowSize);
- QRadialGradient shadowGradient(shadowRect.center().x(),
- shadowRect.center().y(), shadowRect.width()/2.0,
- shadowRect.center().x(), shadowRect.center().y());
- shadowGradient.setColorAt(qreal(0.91), QColor(0, 0, 0, 40));
- shadowGradient.setColorAt(qreal(1.0), Qt::transparent);
- painter->setBrush(shadowGradient);
- painter->setPen(Qt::NoPen);
- painter->translate(shadowSize, shadowSize);
- painter->drawEllipse(shadowRect);
- painter->translate(-shadowSize, -shadowSize);
-
- // Main gradient
- QRadialGradient gradient(br.center().x() - br.width()/3, dy,
- br.width()*1.3, br.center().x(),
- br.center().y() - br.height()/2);
- gradient.setColorAt(0, buttonColor.lighter(110));
- gradient.setColorAt(qreal(0.5), buttonColor);
- gradient.setColorAt(qreal(0.501), buttonColor.darker(102));
- gradient.setColorAt(1, buttonColor.darker(115));
- painter->setBrush(gradient);
- } else {
- painter->setBrush(Qt::NoBrush);
- }
-
- painter->setPen(QPen(buttonColor.darker(280)));
- painter->drawEllipse(br);
- painter->setBrush(Qt::NoBrush);
- painter->setPen(buttonColor.lighter(110));
- painter->drawEllipse(br.adjusted(1, 1, -1, -1));
-
- if (m_highlight) {
- QColor highlight = m_palette.highlight().color();
- highlight.setHsv(highlight.hue(),
- qMin(160, highlight.saturation()),
- qMax(230, highlight.value()));
- highlight.setAlpha(127);
- painter->setPen(QPen(highlight, 2.0));
- painter->setBrush(Qt::NoBrush);
- painter->drawEllipse(br.adjusted(-1, -1, 1, 1));
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/fusion/qquickfusiondial_p.h b/src/imports/controls/fusion/qquickfusiondial_p.h
deleted file mode 100644
index 740545d8..00000000
--- a/src/imports/controls/fusion/qquickfusiondial_p.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKFUSIONDIAL_P_H
-#define QQUICKFUSIONDIAL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpalette.h>
-#include <QtQuick/qquickpainteditem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFusionDial : public QQuickPaintedItem
-{
- Q_OBJECT
- Q_PROPERTY(bool highlight READ highlight WRITE setHighlight FINAL)
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette FINAL)
-
-public:
- explicit QQuickFusionDial(QQuickItem *parent = nullptr);
-
- bool highlight() const;
- void setHighlight(bool highlight);
-
- QPalette palette() const;
- void setPalette(const QPalette &palette);
-
- void paint(QPainter *painter) override;
-
-private:
- bool m_highlight = false;
- QPalette m_palette;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKFUSIONDIAL_P_H
diff --git a/src/imports/controls/fusion/qquickfusionknob.cpp b/src/imports/controls/fusion/qquickfusionknob.cpp
deleted file mode 100644
index 9f1824a6..00000000
--- a/src/imports/controls/fusion/qquickfusionknob.cpp
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickfusionknob_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtGui/qpainter.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickFusionKnob::QQuickFusionKnob(QQuickItem *parent)
- : QQuickPaintedItem(parent)
-{
-}
-
-QPalette QQuickFusionKnob::palette() const
-{
- return m_palette;
-}
-
-void QQuickFusionKnob::setPalette(const QPalette &palette)
-{
- if (palette == m_palette)
- return;
-
- m_palette = palette;
- update();
-}
-
-// extracted from QStyleHelper::drawDial()
-void QQuickFusionKnob::paint(QPainter *painter)
-{
- const qreal w = width();
- const qreal h = height();
- if (w <= 0 || h <= 0)
- return;
-
- QColor color = m_palette.color(QPalette::Button);
- color.setHsv(color.hue(),
- qMin(140, color .saturation()),
- qMax(180, color.value()));
- color = color.lighter(104);
- color.setAlphaF(qreal(0.8));
-
- const qreal sz = qMin(w, h);
- QRectF rect(0, 0, sz, sz);
- rect.moveCenter(QPointF(w / 2.0, h / 2.0));
- const QPointF center = rect.center();
-
- QRadialGradient gradient(center.x() + rect.width() / 2,
- center.y() + rect.width(),
- rect.width() * 2,
- center.x(), center.y());
- gradient.setColorAt(1, color.darker(140));
- gradient.setColorAt(qreal(0.4), color.darker(120));
- gradient.setColorAt(0, color.darker(110));
-
- painter->setRenderHint(QPainter::Antialiasing);
- painter->setBrush(gradient);
- painter->setPen(QColor(255, 255, 255, 150));
- painter->drawEllipse(rect);
- painter->setPen(QColor(0, 0, 0, 80));
- painter->drawEllipse(rect.adjusted(1, 1, -1, -1));
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/fusion/qquickfusionknob_p.h b/src/imports/controls/fusion/qquickfusionknob_p.h
deleted file mode 100644
index 062aaf21..00000000
--- a/src/imports/controls/fusion/qquickfusionknob_p.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKFUSIONKNOB_P_H
-#define QQUICKFUSIONKNOB_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpalette.h>
-#include <QtQuick/qquickpainteditem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFusionKnob : public QQuickPaintedItem
-{
- Q_OBJECT
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette FINAL)
-
-public:
- explicit QQuickFusionKnob(QQuickItem *parent = nullptr);
-
- QPalette palette() const;
- void setPalette(const QPalette &palette);
-
- void paint(QPainter *painter) override;
-
-private:
- QPalette m_palette;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKFUSIONKNOB_P_H
diff --git a/src/imports/controls/fusion/qquickfusionstyle.cpp b/src/imports/controls/fusion/qquickfusionstyle.cpp
deleted file mode 100644
index 364f8a75..00000000
--- a/src/imports/controls/fusion/qquickfusionstyle.cpp
+++ /dev/null
@@ -1,149 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickfusionstyle_p.h"
-
-#include <QtGui/qcolor.h>
-#include <QtGui/qpalette.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/private/qguiapplication_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickFusionStyle::QQuickFusionStyle(QObject *parent)
- : QObject(parent)
-{
-}
-
-QColor QQuickFusionStyle::lightShade()
-{
- return QColor(255, 255, 255, 90);
-}
-
-QColor QQuickFusionStyle::darkShade()
-{
- return QColor(0, 0, 0, 60);
-}
-
-QColor QQuickFusionStyle::topShadow()
-{
- return QColor(0, 0, 0, 18);
-}
-
-QColor QQuickFusionStyle::innerContrastLine()
-{
- return QColor(255, 255, 255, 30);
-}
-
-QColor QQuickFusionStyle::highlight(const QPalette &palette)
-{
- return palette.color(QPalette::Highlight);
-}
-
-QColor QQuickFusionStyle::highlightedText(const QPalette &palette)
-{
- return palette.color(QPalette::HighlightedText);
-}
-
-QColor QQuickFusionStyle::outline(const QPalette &palette)
-{
- return palette.window().color().darker(140);
-}
-
-QColor QQuickFusionStyle::highlightedOutline(const QPalette &palette)
-{
- QColor highlightedOutline = highlight(palette).darker(125);
- if (highlightedOutline.value() > 160)
- highlightedOutline.setHsl(highlightedOutline.hue(), highlightedOutline.saturation(), 160);
- return highlightedOutline;
-}
-
-QColor QQuickFusionStyle::tabFrameColor(const QPalette &palette)
-{
- return buttonColor(palette).lighter(104);
-}
-
-QColor QQuickFusionStyle::buttonColor(const QPalette &palette, bool highlighted, bool down, bool hovered)
-{
- QColor buttonColor = palette.button().color();
- int val = qGray(buttonColor.rgb());
- buttonColor = buttonColor.lighter(100 + qMax(1, (180 - val)/6));
- buttonColor.setHsv(buttonColor.hue(), buttonColor.saturation() * 0.75, buttonColor.value());
- if (highlighted)
- buttonColor = mergedColors(buttonColor, highlightedOutline(palette).lighter(130), 90);
- if (!hovered)
- buttonColor = buttonColor.darker(104);
- if (down)
- buttonColor = buttonColor.darker(110);
- return buttonColor;
-}
-
-QColor QQuickFusionStyle::buttonOutline(const QPalette &palette, bool highlighted, bool enabled)
-{
- QColor darkOutline = enabled && highlighted ? highlightedOutline(palette) : outline(palette);
- return !enabled ? darkOutline.lighter(115) : darkOutline;
-}
-
-QColor QQuickFusionStyle::gradientStart(const QColor &baseColor)
-{
- return baseColor.lighter(124);
-}
-
-QColor QQuickFusionStyle::gradientStop(const QColor &baseColor)
-{
- return baseColor.lighter(102);
-}
-
-QColor QQuickFusionStyle::mergedColors(const QColor &colorA, const QColor &colorB, int factor)
-{
- const int maxFactor = 100;
- QColor tmp = colorA;
- tmp.setRed((tmp.red() * factor) / maxFactor + (colorB.red() * (maxFactor - factor)) / maxFactor);
- tmp.setGreen((tmp.green() * factor) / maxFactor + (colorB.green() * (maxFactor - factor)) / maxFactor);
- tmp.setBlue((tmp.blue() * factor) / maxFactor + (colorB.blue() * (maxFactor - factor)) / maxFactor);
- return tmp;
-}
-
-QColor QQuickFusionStyle::grooveColor(const QPalette &palette)
-{
- QColor color = buttonColor(palette);
- color.setHsv(color.hue(),
- qMin(255, color.saturation()),
- qMin<int>(255, color.value() * 0.9));
- return color;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/fusion/qquickfusionstyle_p.h b/src/imports/controls/fusion/qquickfusionstyle_p.h
deleted file mode 100644
index e0a99cc6..00000000
--- a/src/imports/controls/fusion/qquickfusionstyle_p.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKFUSIONSTYLE_P_H
-#define QQUICKFUSIONSTYLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtGui/qcolor.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFusionStyle : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QColor lightShade READ lightShade CONSTANT)
- Q_PROPERTY(QColor darkShade READ darkShade CONSTANT)
- Q_PROPERTY(QColor topShadow READ topShadow CONSTANT)
- Q_PROPERTY(QColor innerContrastLine READ innerContrastLine CONSTANT)
-
-public:
- explicit QQuickFusionStyle(QObject *parent = nullptr);
-
- static QColor lightShade();
- static QColor darkShade();
- static QColor topShadow();
- static QColor innerContrastLine();
-
- Q_INVOKABLE static QColor highlight(const QPalette &palette);
- Q_INVOKABLE static QColor highlightedText(const QPalette &palette);
- Q_INVOKABLE static QColor outline(const QPalette &palette);
- Q_INVOKABLE static QColor highlightedOutline(const QPalette &palette);
- Q_INVOKABLE static QColor tabFrameColor(const QPalette &palette);
- Q_INVOKABLE static QColor buttonColor(const QPalette &palette, bool highlighted = false, bool down = false, bool hovered = false);
- Q_INVOKABLE static QColor buttonOutline(const QPalette &palette, bool highlighted = false, bool enabled = true);
- Q_INVOKABLE static QColor gradientStart(const QColor &baseColor);
- Q_INVOKABLE static QColor gradientStop(const QColor &baseColor);
- Q_INVOKABLE static QColor mergedColors(const QColor &colorA, const QColor &colorB, int factor = 50);
- Q_INVOKABLE static QColor grooveColor(const QPalette &palette);
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKFUSIONSTYLE_P_H
diff --git a/src/imports/controls/fusion/qquickfusiontheme.cpp b/src/imports/controls/fusion/qquickfusiontheme.cpp
deleted file mode 100644
index 903758bb..00000000
--- a/src/imports/controls/fusion/qquickfusiontheme.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickfusiontheme_p.h"
-
-#include <QtQuickTemplates2/private/qquicktheme_p.h>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-
-QT_BEGIN_NAMESPACE
-
-void QQuickFusionTheme::initialize(QQuickTheme *theme)
-{
- const bool isDarkSystemTheme = QQuickStylePrivate::isDarkSystemTheme();
- QPalette systemPalette;
- systemPalette.setColor(QPalette::Active, QPalette::ButtonText,
- isDarkSystemTheme ? QColor::fromRgb(0xe7e7e7) : QColor::fromRgb(0x252525));
- systemPalette.setColor(QPalette::Disabled, QPalette::ButtonText,
- isDarkSystemTheme ? QColor::fromRgb(0x777777) : QColor::fromRgb(0xb6b6b6));
- theme->setPalette(QQuickTheme::System, systemPalette);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/fusion/qquickfusiontheme_p.h b/src/imports/controls/fusion/qquickfusiontheme_p.h
deleted file mode 100644
index 814c1919..00000000
--- a/src/imports/controls/fusion/qquickfusiontheme_p.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKFUSIONTHEME_P_H
-#define QQUICKFUSIONTHEME_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qglobal.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTheme;
-
-class QQuickFusionTheme
-{
-public:
- static void initialize(QQuickTheme *theme);
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKFUSIONTHEME_P_H
diff --git a/src/imports/controls/fusion/qtquickcontrols2fusionstyle.qrc b/src/imports/controls/fusion/qtquickcontrols2fusionstyle.qrc
deleted file mode 100644
index 74c8e671..00000000
--- a/src/imports/controls/fusion/qtquickcontrols2fusionstyle.qrc
+++ /dev/null
@@ -1,16 +0,0 @@
-<!DOCTYPE RCC><RCC version="1.0">
-<qresource prefix="qt-project.org/imports/QtQuick/Controls.2/Fusion">
- <file>images/arrow.png</file>
- <file>images/arrow@2x.png</file>
- <file>images/arrow@3x.png</file>
- <file>images/arrow@4x.png</file>
- <file>images/checkmark.png</file>
- <file>images/checkmark@2x.png</file>
- <file>images/checkmark@3x.png</file>
- <file>images/checkmark@4x.png</file>
- <file>images/progressmask.png</file>
- <file>images/progressmask@2x.png</file>
- <file>images/progressmask@3x.png</file>
- <file>images/progressmask@4x.png</file>
-</qresource>
-</RCC>
diff --git a/src/imports/controls/fusion/qtquickcontrols2fusionstyleplugin.cpp b/src/imports/controls/fusion/qtquickcontrols2fusionstyleplugin.cpp
deleted file mode 100644
index 985945cf..00000000
--- a/src/imports/controls/fusion/qtquickcontrols2fusionstyleplugin.cpp
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 <QtQuickControls2/private/qquickstyleplugin_p.h>
-#include <QtQml/qqml.h>
-
-#include "qquickfusionbusyindicator_p.h"
-#include "qquickfusiondial_p.h"
-#include "qquickfusionknob_p.h"
-#include "qquickfusionstyle_p.h"
-#include "qquickfusiontheme_p.h"
-
-QT_BEGIN_NAMESPACE
-
-static QObject *styleSingleton(QQmlEngine *engine, QJSEngine *scriptEngine)
-{
- Q_UNUSED(engine);
- Q_UNUSED(scriptEngine);
- return new QQuickFusionStyle;
-}
-
-class QtQuickControls2FusionStylePlugin: public QQuickStylePlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtQuickControls2FusionStylePlugin(QObject *parent = nullptr);
-
- void registerTypes(const char *uri) override;
-
- QString name() const override;
- void initializeTheme(QQuickTheme *theme) override;
-};
-
-QtQuickControls2FusionStylePlugin::QtQuickControls2FusionStylePlugin(QObject *parent) : QQuickStylePlugin(parent)
-{
-}
-
-void QtQuickControls2FusionStylePlugin::registerTypes(const char *uri)
-{
- qmlRegisterModule(uri, 2, 3); // Qt 5.10->2.3
- qmlRegisterModule(uri, 2, 15); // Qt 5.12->2.12, 5.13->2.13...
-
- QByteArray import = QByteArray(uri) + ".impl";
- qmlRegisterModule(import, 2, 15); // Qt 5.12->2.12, 5.13->2.13...
-
- qmlRegisterSingletonType<QQuickFusionStyle>(import, 2, 3, "Fusion", styleSingleton);
-
- qmlRegisterType<QQuickFusionBusyIndicator>(import, 2, 3, "BusyIndicatorImpl");
- qmlRegisterType<QQuickFusionDial>(import, 2, 3, "DialImpl");
- qmlRegisterType<QQuickFusionKnob>(import, 2, 3, "KnobImpl");
-
- qmlRegisterType(resolvedUrl(QStringLiteral("ButtonPanel.qml")), import, 2, 3, "ButtonPanel");
- qmlRegisterType(resolvedUrl(QStringLiteral("CheckIndicator.qml")), import, 2, 3, "CheckIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("RadioIndicator.qml")), import, 2, 3, "RadioIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("SliderGroove.qml")), import, 2, 3, "SliderGroove");
- qmlRegisterType(resolvedUrl(QStringLiteral("SliderHandle.qml")), import, 2, 3, "SliderHandle");
- qmlRegisterType(resolvedUrl(QStringLiteral("SwitchIndicator.qml")), import, 2, 3, "SwitchIndicator");
-}
-
-QString QtQuickControls2FusionStylePlugin::name() const
-{
- return QStringLiteral("Fusion");
-}
-
-void QtQuickControls2FusionStylePlugin::initializeTheme(QQuickTheme *theme)
-{
- QQuickFusionTheme::initialize(theme);
-}
-
-QT_END_NAMESPACE
-
-#include "qtquickcontrols2fusionstyleplugin.moc"
diff --git a/src/imports/controls/images/arrow-indicator.png b/src/imports/controls/images/arrow-indicator.png
deleted file mode 100644
index 50f230dc..00000000
--- a/src/imports/controls/images/arrow-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/arrow-indicator@2x.png b/src/imports/controls/images/arrow-indicator@2x.png
deleted file mode 100644
index 457cdde0..00000000
--- a/src/imports/controls/images/arrow-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/arrow-indicator@3x.png b/src/imports/controls/images/arrow-indicator@3x.png
deleted file mode 100644
index 8d624154..00000000
--- a/src/imports/controls/images/arrow-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/arrow-indicator@4x.png b/src/imports/controls/images/arrow-indicator@4x.png
deleted file mode 100644
index 7d2c49e2..00000000
--- a/src/imports/controls/images/arrow-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/check.png b/src/imports/controls/images/check.png
deleted file mode 100644
index 479a8442..00000000
--- a/src/imports/controls/images/check.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/check@2x.png b/src/imports/controls/images/check@2x.png
deleted file mode 100644
index bc5aaabe..00000000
--- a/src/imports/controls/images/check@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/check@3x.png b/src/imports/controls/images/check@3x.png
deleted file mode 100644
index 0f515e0b..00000000
--- a/src/imports/controls/images/check@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/check@4x.png b/src/imports/controls/images/check@4x.png
deleted file mode 100644
index 8ad1fe21..00000000
--- a/src/imports/controls/images/check@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/dial-indicator.png b/src/imports/controls/images/dial-indicator.png
deleted file mode 100644
index 8cb0824f..00000000
--- a/src/imports/controls/images/dial-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/dial-indicator@2x.png b/src/imports/controls/images/dial-indicator@2x.png
deleted file mode 100644
index cd4f8d81..00000000
--- a/src/imports/controls/images/dial-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/dial-indicator@3x.png b/src/imports/controls/images/dial-indicator@3x.png
deleted file mode 100644
index f443605c..00000000
--- a/src/imports/controls/images/dial-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/dial-indicator@4x.png b/src/imports/controls/images/dial-indicator@4x.png
deleted file mode 100644
index dec99715..00000000
--- a/src/imports/controls/images/dial-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/double-arrow.png b/src/imports/controls/images/double-arrow.png
deleted file mode 100644
index af403904..00000000
--- a/src/imports/controls/images/double-arrow.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/double-arrow@2x.png b/src/imports/controls/images/double-arrow@2x.png
deleted file mode 100644
index b63f5c57..00000000
--- a/src/imports/controls/images/double-arrow@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/double-arrow@3x.png b/src/imports/controls/images/double-arrow@3x.png
deleted file mode 100644
index c742e309..00000000
--- a/src/imports/controls/images/double-arrow@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/double-arrow@4x.png b/src/imports/controls/images/double-arrow@4x.png
deleted file mode 100644
index 488a331d..00000000
--- a/src/imports/controls/images/double-arrow@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/drop-indicator.png b/src/imports/controls/images/drop-indicator.png
deleted file mode 100644
index 80c1d958..00000000
--- a/src/imports/controls/images/drop-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/drop-indicator@2x.png b/src/imports/controls/images/drop-indicator@2x.png
deleted file mode 100644
index 6e0f228c..00000000
--- a/src/imports/controls/images/drop-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/drop-indicator@3x.png b/src/imports/controls/images/drop-indicator@3x.png
deleted file mode 100644
index 199752fb..00000000
--- a/src/imports/controls/images/drop-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/images/drop-indicator@4x.png b/src/imports/controls/images/drop-indicator@4x.png
deleted file mode 100644
index b82b6db3..00000000
--- a/src/imports/controls/images/drop-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/ApplicationWindow.qml b/src/imports/controls/imagine/ApplicationWindow.qml
deleted file mode 100644
index 7bfcc3f9..00000000
--- a/src/imports/controls/imagine/ApplicationWindow.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ApplicationWindow {
- id: window
-
- // ### remove?
- overlay.modal: NinePatchImage {
- source: Imagine.url + "applicationwindow-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": true}
- ]
- }
- }
-
- // ### remove?
- overlay.modeless: NinePatchImage {
- source: Imagine.url + "applicationwindow-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": false}
- ]
- }
- }
-
- background: NinePatchImage {
- width: window.width
- height: window.height
-
- source: Imagine.url + "applicationwindow-background"
- NinePatchImageSelector on source {
- states: [
- {"active": window.active}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/BusyIndicator.qml b/src/imports/controls/imagine/BusyIndicator.qml
deleted file mode 100644
index 652365b1..00000000
--- a/src/imports/controls/imagine/BusyIndicator.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.BusyIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- contentItem: AnimatedImage {
- opacity: control.running ? 1 : 0
- playing: control.running || opacity > 0
- visible: control.running || opacity > 0
- Behavior on opacity { OpacityAnimator { duration: 250 } }
-
- source: Imagine.url + "busyindicator-animation"
- AnimatedImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"running": control.running},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "busyindicator-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"running": control.running},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Button.qml b/src/imports/controls/imagine/Button.qml
deleted file mode 100644
index e7171eb1..00000000
--- a/src/imports/controls/imagine/Button.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Button {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- spacing: 6 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.enabled && control.flat && control.highlighted ? control.palette.highlight
- : control.enabled && (control.down || control.checked || control.highlighted) && !control.flat
- ? control.palette.brightText : control.flat ? control.palette.windowText : control.palette.buttonText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled && control.flat && control.highlighted ? control.palette.highlight
- : control.enabled && (control.down || control.checked || control.highlighted) && !control.flat
- ? control.palette.brightText : control.flat ? control.palette.windowText : control.palette.buttonText
- }
-
- background: NinePatchImage {
- source: Imagine.url + "button-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"checkable": control.checkable},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"flat": control.flat},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/CheckBox.qml b/src/imports/controls/imagine/CheckBox.qml
deleted file mode 100644
index b91ceb40..00000000
--- a/src/imports/controls/imagine/CheckBox.qml
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.CheckBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 6 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- indicator: Image {
- x: text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
-
- source: Imagine.url + "checkbox-indicator"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checkState === Qt.Checked},
- {"partially-checked": control.checkState === Qt.PartiallyChecked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.windowText
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- background: NinePatchImage {
- source: Imagine.url + "checkbox-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checkState === Qt.Checked},
- {"partially-checked": control.checkState === Qt.PartiallyChecked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/CheckDelegate.qml b/src/imports/controls/imagine/CheckDelegate.qml
deleted file mode 100644
index 19975152..00000000
--- a/src/imports/controls/imagine/CheckDelegate.qml
+++ /dev/null
@@ -1,118 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.CheckDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- indicator: Image {
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- source: Imagine.url + "checkdelegate-indicator"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checkState === Qt.Checked},
- {"partially-checked": control.checkState === Qt.PartiallyChecked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- background: NinePatchImage {
- source: Imagine.url + "checkdelegate-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checkState === Qt.Checked},
- {"partially-checked": control.checkState === Qt.PartiallyChecked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/ComboBox.qml b/src/imports/controls/imagine/ComboBox.qml
deleted file mode 100644
index 2d582e98..00000000
--- a/src/imports/controls/imagine/ComboBox.qml
+++ /dev/null
@@ -1,173 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.14
-import QtQuick.Window 2.14
-import QtQuick.Templates 2.14 as T
-import QtQuick.Controls 2.14
-import QtQuick.Controls.Imagine 2.14
-import QtQuick.Controls.Imagine.impl 2.14
-
-T.ComboBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentItem.implicitWidth + background ? (background.leftPadding + background.rightPadding) : 0)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- Math.max(implicitContentHeight,
- implicitIndicatorHeight) + background ? (background.topPadding + background.bottomPadding) : 0)
-
- leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
- rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- delegate: ItemDelegate {
- width: parent.width
- text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
- font.weight: control.currentIndex === index ? Font.DemiBold : Font.Normal
- highlighted: control.highlightedIndex === index
- hoverEnabled: control.hoverEnabled
- }
-
- indicator: Image {
- x: control.mirrored ? control.padding : control.width - width - control.padding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- source: Imagine.url + "combobox-indicator"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.pressed},
- {"editable": control.editable},
- {"open": control.down},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered},
- {"flat": control.flat}
- ]
- }
- }
-
- contentItem: T.TextField {
- topPadding: control.background ? control.background.topPadding : 0
- leftPadding: control.background ? control.background.leftPadding : 0
- rightPadding: control.background ? control.background.rightPadding : 0
- bottomPadding: control.background ? control.background.bottomPadding : 0
-
- text: control.editable ? control.editText : control.displayText
-
- enabled: control.editable
- autoScroll: control.editable
- readOnly: control.down
- inputMethodHints: control.inputMethodHints
- validator: control.validator
-
- font: control.font
- color: control.flat ? control.palette.windowText : control.editable ? control.palette.text : control.palette.buttonText
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- verticalAlignment: Text.AlignVCenter
- }
-
- background: NinePatchImage {
- source: Imagine.url + "combobox-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.pressed},
- {"editable": control.editable},
- {"open": control.down},
- {"focused": control.visualFocus || (control.editable && control.activeFocus)},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered},
- {"flat": control.flat}
- ]
- }
- }
-
- popup: T.Popup {
- width: control.width
- height: Math.min(contentItem.implicitHeight + topPadding + bottomPadding, control.Window.height - topMargin - bottomMargin)
-
- topMargin: background.topInset
- bottomMargin: background.bottomInset
-
- topPadding: background.topPadding
- leftPadding: background.leftPadding
- rightPadding: background.rightPadding
- bottomPadding: background.bottomPadding
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- palette.text: control.palette.text
- palette.highlight: control.palette.highlight
- palette.highlightedText: control.palette.highlightedText
- palette.windowText: control.palette.windowText
- palette.buttonText: control.palette.buttonText
-
- contentItem: ListView {
- clip: true
- implicitHeight: contentHeight
- model: control.delegateModel
- currentIndex: control.highlightedIndex
- highlightMoveDuration: 0
-
- T.ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "combobox-popup"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.pressed},
- {"editable": control.editable},
- {"focused": control.visualFocus || (control.editable && control.activeFocus)},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered},
- {"flat": control.flat}
- ]
- }
- }
- }
-}
diff --git a/src/imports/controls/imagine/DelayButton.qml b/src/imports/controls/imagine/DelayButton.qml
deleted file mode 100644
index f60b5eae..00000000
--- a/src/imports/controls/imagine/DelayButton.qml
+++ /dev/null
@@ -1,138 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-import QtGraphicalEffects 1.12
-
-T.DelayButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- transition: Transition {
- NumberAnimation {
- duration: control.delay * (control.pressed ? 1.0 - control.progress : 0.3 * control.progress)
- }
- }
-
- contentItem: Text {
- text: control.text
- font: control.font
- color: control.palette.buttonText
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- background: NinePatchImage {
- source: Imagine.url + "delaybutton-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
-
- readonly property NinePatchImage progress: NinePatchImage {
- parent: control.background
- width: control.progress * parent.width
- height: parent.height
- visible: false
-
- source: Imagine.url + "delaybutton-progress"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- readonly property NinePatchImage mask: NinePatchImage {
- width: control.background.width
- height: control.background.height
- visible: false
-
- source: Imagine.url + "delaybutton-mask"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- readonly property OpacityMask effect: OpacityMask {
- parent: control.background
- width: source.width
- height: source.height
- source: control.background.progress
-
- maskSource: ShaderEffectSource {
- sourceItem: control.background.mask
- sourceRect: Qt.rect(0, 0, control.background.effect.width, control.background.effect.height)
- }
- }
- }
-}
diff --git a/src/imports/controls/imagine/Dial.qml b/src/imports/controls/imagine/Dial.qml
deleted file mode 100644
index f10634e6..00000000
--- a/src/imports/controls/imagine/Dial.qml
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Dial {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- (handle ? handle.implicitWidth : 0) + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- (handle ? handle.implicitHeight : 0) + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- handle: Image {
- x: background.x + background.width / 2 - handle.width / 2
- y: background.y + background.height / 2 - handle.height / 2
-
- source: Imagine.url + "dial-handle"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.pressed},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
-
- transform: [
- Translate {
- y: -background.height * 0.4 + handle.height / 2
- },
- Rotation {
- angle: control.angle
- origin.x: handle.width / 2
- origin.y: handle.height / 2
- }
- ]
- }
-
- background: NinePatchImage {
- x: control.width / 2 - width / 2
- y: control.height / 2 - height / 2
- width: Math.max(64, Math.min(control.width, control.height))
- height: width
-
- source: Imagine.url + "dial-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.pressed},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Dialog.qml b/src/imports/controls/imagine/Dialog.qml
deleted file mode 100644
index 730b7f57..00000000
--- a/src/imports/controls/imagine/Dialog.qml
+++ /dev/null
@@ -1,117 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Dialog {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- background: NinePatchImage {
- source: Imagine.url + "dialog-background"
- NinePatchImageSelector on source {
- states: [
- {"modal": control.modal},
- {"dim": control.dim}
- ]
- }
- }
-
- header: Label {
- text: control.title
- visible: control.title
- elide: Label.ElideRight
- font.bold: true
- padding: 12
-
- background: NinePatchImage {
- width: parent.width
- height: parent.height
-
- source: Imagine.url + "dialog-title"
- NinePatchImageSelector on source {
- states: [
- {"modal": control.modal},
- {"dim": control.dim}
- ]
- }
- }
- }
-
- footer: DialogButtonBox {
- visible: count > 0
- }
-
- T.Overlay.modal: NinePatchImage {
- source: Imagine.url + "dialog-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": true}
- ]
- }
- }
-
- T.Overlay.modeless: NinePatchImage {
- source: Imagine.url + "dialog-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": false}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/DialogButtonBox.qml b/src/imports/controls/imagine/DialogButtonBox.qml
deleted file mode 100644
index c24b29fc..00000000
--- a/src/imports/controls/imagine/DialogButtonBox.qml
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.DialogButtonBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- (control.count === 1 ? contentWidth * 2 : contentWidth) + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- spacing: 6
-
- delegate: Button {
- width: control.count === 1 ? control.availableWidth / 2 : undefined
- flat: true
- }
-
- contentItem: ListView {
- model: control.contentModel
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
- }
-
- background: NinePatchImage {
- source: Imagine.url + "dialogbuttonbox-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Drawer.qml b/src/imports/controls/imagine/Drawer.qml
deleted file mode 100644
index 2c93ba75..00000000
--- a/src/imports/controls/imagine/Drawer.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Drawer {
- id: control
-
- parent: T.ApplicationWindow.overlay
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- enter: Transition { SmoothedAnimation { velocity: 5 } }
- exit: Transition { SmoothedAnimation { velocity: 5 } }
-
- background: NinePatchImage {
- source: Imagine.url + "drawer-background"
- NinePatchImageSelector on source {
- states: [
- {"modal": control.modal},
- {"dim": control.dim},
- {"top": control.edge === Qt.TopEdge},
- {"left": control.edge === Qt.LeftEdge},
- {"right": control.edge === Qt.RightEdge},
- {"bottom": control.edge === Qt.BottomEdge}
- ]
- }
- }
-
- T.Overlay.modal: NinePatchImage {
- source: Imagine.url + "drawer-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": true}
- ]
- }
- }
-
- T.Overlay.modeless: NinePatchImage {
- source: Imagine.url + "drawer-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": false}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Frame.qml b/src/imports/controls/imagine/Frame.qml
deleted file mode 100644
index 2bef3c88..00000000
--- a/src/imports/controls/imagine/Frame.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Frame {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- background: NinePatchImage {
- source: Imagine.url + "frame-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/GroupBox.qml b/src/imports/controls/imagine/GroupBox.qml
deleted file mode 100644
index 7abdb6f0..00000000
--- a/src/imports/controls/imagine/GroupBox.qml
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.GroupBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitLabelWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: (background ? background.topPadding : 0) + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
- padding: 12
-
- label: Label {
- width: control.width
-
- topPadding: background.topPadding
- leftPadding: background.leftPadding
- rightPadding: background.rightPadding
- bottomPadding: background.bottomPadding
-
- text: control.title
- font: control.font
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
-
- color: control.palette.windowText
-
- background: NinePatchImage {
- width: parent.width
- height: parent.height
-
- source: Imagine.url + "groupbox-title"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
- }
-
- background: NinePatchImage {
- x: -leftInset
- y: control.topPadding - control.bottomPadding - topInset
- width: control.width + leftInset + rightInset
- height: control.height + topInset + bottomInset - control.topPadding + control.padding
-
- source: Imagine.url + "groupbox-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/ItemDelegate.qml b/src/imports/controls/imagine/ItemDelegate.qml
deleted file mode 100644
index 0b3edeaf..00000000
--- a/src/imports/controls/imagine/ItemDelegate.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ItemDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- background: NinePatchImage {
- source: Imagine.url + "itemdelegate-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Label.qml b/src/imports/controls/imagine/Label.qml
deleted file mode 100644
index 82c0ef47..00000000
--- a/src/imports/controls/imagine/Label.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Label {
- id: control
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- color: control.palette.windowText
- linkColor: control.palette.link
-
- background: NinePatchImage {
- source: Imagine.url + "label-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Menu.qml b/src/imports/controls/imagine/Menu.qml
deleted file mode 100644
index 20a34467..00000000
--- a/src/imports/controls/imagine/Menu.qml
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-import QtQuick.Window 2.12
-
-T.Menu {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topMargin: background ? background.topInset : 0
- leftMargin: background ? background.leftInset : 0
- rightMargin: background ? background.rightInset : 0
- bottomMargin: background ? background.bottomInset : 0
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- delegate: MenuItem { }
-
- contentItem: ListView {
- implicitHeight: contentHeight
- model: control.contentModel
- interactive: Window.window ? contentHeight > Window.window.height : false
- clip: true
- currentIndex: control.currentIndex
-
- T.ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "menu-background"
- NinePatchImageSelector on source {
- states: [
- {"modal": control.modal},
- {"dim": control.dim}
- ]
- }
- }
-
- T.Overlay.modal: NinePatchImage {
- source: Imagine.url + "menu-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": true}
- ]
- }
- }
-
- T.Overlay.modeless: NinePatchImage {
- source: Imagine.url + "menu-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": false}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/MenuItem.qml b/src/imports/controls/imagine/MenuItem.qml
deleted file mode 100644
index f85fc657..00000000
--- a/src/imports/controls/imagine/MenuItem.qml
+++ /dev/null
@@ -1,138 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.MenuItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 6 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.windowText
-
- contentItem: IconLabel {
- readonly property real arrowPadding: control.subMenu && control.arrow ? control.arrow.width + control.spacing : 0
- readonly property real indicatorPadding: control.checkable && control.indicator ? control.indicator.width + control.spacing : 0
- leftPadding: !control.mirrored ? indicatorPadding : arrowPadding
- rightPadding: control.mirrored ? indicatorPadding : arrowPadding
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.windowText
- }
-
- arrow: Image {
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- visible: control.subMenu
- source: Imagine.url + "menuitem-arrow"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- indicator: Image {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
-
- visible: control.checkable
- source: Imagine.url + "menuitem-indicator"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "menuitem-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/MenuSeparator.qml b/src/imports/controls/imagine/MenuSeparator.qml
deleted file mode 100644
index 9ed39087..00000000
--- a/src/imports/controls/imagine/MenuSeparator.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.MenuSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- contentItem: NinePatchImage {
- source: Imagine.url + "menuseparator-separator"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "menuseparator-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Page.qml b/src/imports/controls/imagine/Page.qml
deleted file mode 100644
index 07ec0a75..00000000
--- a/src/imports/controls/imagine/Page.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Page {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- background: NinePatchImage {
- source: Imagine.url + "page-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/PageIndicator.qml b/src/imports/controls/imagine/PageIndicator.qml
deleted file mode 100644
index 8da89f5a..00000000
--- a/src/imports/controls/imagine/PageIndicator.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.PageIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- delegate: Image {
- source: Imagine.url + "pageindicator-delegate"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": pressed},
- {"current": index === control.currentIndex},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered} // ### TODO: context property
- ]
- }
- }
-
- contentItem: Row {
- spacing: control.spacing
-
- Repeater {
- model: control.count
- delegate: control.delegate
- }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "pageindicator-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Pane.qml b/src/imports/controls/imagine/Pane.qml
deleted file mode 100644
index 970b22b9..00000000
--- a/src/imports/controls/imagine/Pane.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Pane {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- background: NinePatchImage {
- source: Imagine.url + "pane-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Popup.qml b/src/imports/controls/imagine/Popup.qml
deleted file mode 100644
index 8f69bef4..00000000
--- a/src/imports/controls/imagine/Popup.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Popup {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : undefined
- leftPadding: background ? background.leftPadding : undefined
- rightPadding: background ? background.rightPadding : undefined
- bottomPadding: background ? background.bottomPadding : undefined
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- background: NinePatchImage {
- source: Imagine.url + "popup-background"
- NinePatchImageSelector on source {
- states: [
- {"modal": control.modal},
- {"dim": control.dim}
- ]
- }
- }
-
- T.Overlay.modal: NinePatchImage {
- source: Imagine.url + "popup-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": true}
- ]
- }
- }
-
- T.Overlay.modeless: NinePatchImage {
- source: Imagine.url + "popup-overlay"
- NinePatchImageSelector on source {
- states: [
- {"modal": false}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/ProgressBar.qml b/src/imports/controls/imagine/ProgressBar.qml
deleted file mode 100644
index 2f78004e..00000000
--- a/src/imports/controls/imagine/ProgressBar.qml
+++ /dev/null
@@ -1,142 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-import QtGraphicalEffects 1.12
-
-T.ProgressBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- contentItem: Item {
- implicitWidth: control.indeterminate ? animation.implicitWidth || progress.implicitWidth : progress.implicitWidth
- implicitHeight: control.indeterminate ? animation.implicitHeight || progress.implicitHeight : progress.implicitHeight
- scale: control.mirrored ? -1 : 1
-
- readonly property bool hasMask: mask.status !== Image.Null
-
- readonly property NinePatchImage progress: NinePatchImage {
- parent: control.contentItem
- width: control.position * parent.width
- height: parent.height
- visible: !control.indeterminate && !control.contentItem.hasMask
-
- source: Imagine.url + "progressbar-progress"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"indeterminate": control.indeterminate},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- readonly property AnimatedImage animation: AnimatedImage {
- parent: control.contentItem
- width: parent.width
- height: parent.height
- playing: control.indeterminate
- visible: control.indeterminate && !control.contentItem.hasMask
-
- source: Imagine.url + "progressbar-animation"
- AnimatedImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- readonly property NinePatchImage mask: NinePatchImage {
- width: control.availableWidth
- height: control.availableHeight
- visible: false
-
- source: Imagine.url + "progressbar-mask"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"indeterminate": control.indeterminate},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- readonly property OpacityMask effect: OpacityMask {
- parent: control.contentItem
- width: source.width
- height: source.height
- source: control.indeterminate ? control.contentItem.animation : control.contentItem.progress
-
- maskSource: ShaderEffectSource {
- sourceItem: control.contentItem.mask
- sourceRect: Qt.rect(0, 0, control.contentItem.effect.width, control.contentItem.effect.height)
- }
- }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "progressbar-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"indeterminate": control.indeterminate},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/RadioButton.qml b/src/imports/controls/imagine/RadioButton.qml
deleted file mode 100644
index a50bc127..00000000
--- a/src/imports/controls/imagine/RadioButton.qml
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.RadioButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 6 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- indicator: Image {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
-
- source: Imagine.url + "radiobutton-indicator"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.windowText
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- background: NinePatchImage {
- source: Imagine.url + "radiobutton-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/RadioDelegate.qml b/src/imports/controls/imagine/RadioDelegate.qml
deleted file mode 100644
index 5a8356f8..00000000
--- a/src/imports/controls/imagine/RadioDelegate.qml
+++ /dev/null
@@ -1,116 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.RadioDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- indicator: Image {
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- source: Imagine.url + "radiodelegate-indicator"
- ImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- background: NinePatchImage {
- source: Imagine.url + "radiodelegate-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/RangeSlider.qml b/src/imports/controls/imagine/RangeSlider.qml
deleted file mode 100644
index 47d90cf3..00000000
--- a/src/imports/controls/imagine/RangeSlider.qml
+++ /dev/null
@@ -1,134 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.RangeSlider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- first.implicitHandleWidth + leftPadding + rightPadding,
- second.implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- first.implicitHandleHeight + topPadding + bottomPadding,
- second.implicitHandleHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- first.handle: Image {
- x: control.leftPadding + (control.horizontal ? control.first.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.first.visualPosition * (control.availableHeight - height))
-
- source: Imagine.url + "rangeslider-handle"
- ImageSelector on source {
- states: [
- {"first": true},
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"pressed": control.first.pressed},
- {"focused": control.first.handle.activeFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.first.hovered}
- ]
- }
- }
-
- second.handle: Image {
- x: control.leftPadding + (control.horizontal ? control.second.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.second.visualPosition * (control.availableHeight - height))
-
- source: Imagine.url + "rangeslider-handle"
- ImageSelector on source {
- states: [
- {"second": true},
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"pressed": control.second.pressed},
- {"focused": control.second.handle.activeFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.second.hovered}
- ]
- }
- }
-
- background: NinePatchImage {
- scale: control.horizontal && control.mirrored ? -1 : 1
-
- source: Imagine.url + "rangeslider-background"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
-
- NinePatchImage {
- x: control.horizontal ? control.first.handle.width / 2 + control.first.position * (parent.width - control.first.handle.width) : (parent.width - width) / 2
- y: control.horizontal ? (parent.height - height) / 2 : control.first.handle.height / 2 + control.second.visualPosition * (parent.height - control.first.handle.height)
- width: control.horizontal ? control.second.position * (parent.width - control.first.handle.width) - control.first.position * (parent.width - control.first.handle.width) : parent.width
- height: control.vertical ? control.second.position * (parent.height - control.first.handle.height) - control.first.position * (parent.height - control.first.handle.height): parent.height
-
- source: Imagine.url + "rangeslider-progress"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
- }
-}
diff --git a/src/imports/controls/imagine/RoundButton.qml b/src/imports/controls/imagine/RoundButton.qml
deleted file mode 100644
index fe4cbb36..00000000
--- a/src/imports/controls/imagine/RoundButton.qml
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.RoundButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.enabled && control.flat && control.highlighted ? control.palette.highlight
- : control.enabled && (control.down || control.checked || control.highlighted) && !control.flat
- ? control.palette.brightText : control.flat ? control.palette.windowText : control.palette.buttonText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled && control.flat && control.highlighted ? control.palette.highlight
- : control.enabled && (control.down || control.checked || control.highlighted) && !control.flat
- ? control.palette.brightText : control.flat ? control.palette.windowText : control.palette.buttonText
- }
-
- background: NinePatchImage {
- // ### TODO: radius?
- source: Imagine.url + "roundbutton-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"checkable": control.checkable},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"flat": control.flat},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/ScrollBar.qml b/src/imports/controls/imagine/ScrollBar.qml
deleted file mode 100644
index 68772e12..00000000
--- a/src/imports/controls/imagine/ScrollBar.qml
+++ /dev/null
@@ -1,119 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ScrollBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- visible: control.policy !== T.ScrollBar.AlwaysOff
- minimumSize: orientation == Qt.Horizontal ? height / width : width / height
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- contentItem: NinePatchImage {
- width: control.availableWidth
- height: control.availableHeight
-
- source: Imagine.url + "scrollbar-handle"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"interactive": control.interactive},
- {"pressed": control.pressed},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- opacity: 0.0
- }
-
- background: NinePatchImage {
- source: Imagine.url + "scrollbar-background"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"interactive": control.interactive},
- {"pressed": control.pressed},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- opacity: 0.0
- }
-
- states: [
- State {
- name: "active"
- when: control.policy === T.ScrollBar.AlwaysOn || (control.active && control.size < 1.0)
- }
- ]
-
- transitions: [
- Transition {
- to: "active"
- NumberAnimation { targets: [control.contentItem, control.background]; property: "opacity"; to: 1.0 }
- },
- Transition {
- from: "active"
- SequentialAnimation {
- PropertyAction{ targets: [control.contentItem, control.background]; property: "opacity"; value: 1.0 }
- PauseAnimation { duration: 3000 }
- NumberAnimation { targets: [control.contentItem, control.background]; property: "opacity"; to: 0.0 }
- }
- }
- ]
-}
diff --git a/src/imports/controls/imagine/ScrollIndicator.qml b/src/imports/controls/imagine/ScrollIndicator.qml
deleted file mode 100644
index 896cd876..00000000
--- a/src/imports/controls/imagine/ScrollIndicator.qml
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ScrollIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- contentItem: NinePatchImage {
- width: control.availableWidth
- height: control.availableHeight
-
- source: Imagine.url + "scrollindicator-handle"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- opacity: 0.0
- }
-
- background: NinePatchImage {
- source: Imagine.url + "scrollindicator-background"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- opacity: 0.0
- }
-
- states: [
- State {
- name: "active"
- when: (control.active && control.size < 1.0)
- }
- ]
-
- transitions: [
- Transition {
- to: "active"
- NumberAnimation { targets: [contentItem, control.background]; property: "opacity"; to: 1.0 }
- },
- Transition {
- from: "active"
- SequentialAnimation {
- PauseAnimation { duration: 5000 }
- NumberAnimation { targets: [contentItem, control.background]; property: "opacity"; to: 0.0 }
- }
- }
- ]
-}
diff --git a/src/imports/controls/imagine/ScrollView.qml b/src/imports/controls/imagine/ScrollView.qml
deleted file mode 100644
index 9d469ba5..00000000
--- a/src/imports/controls/imagine/ScrollView.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ScrollView {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- T.ScrollBar.vertical: ScrollBar {
- parent: control
- x: control.mirrored ? 0 : control.width - width
- y: control.topPadding
- height: control.availableHeight
- active: control.T.ScrollBar.horizontal.active
- }
-
- T.ScrollBar.horizontal: ScrollBar {
- parent: control
- x: control.leftPadding
- y: control.height - height
- width: control.availableWidth
- active: control.T.ScrollBar.vertical.active
- }
-
- background: NinePatchImage {
- source: Imagine.path + "scrollview-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Slider.qml b/src/imports/controls/imagine/Slider.qml
deleted file mode 100644
index fe9c3388..00000000
--- a/src/imports/controls/imagine/Slider.qml
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Slider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitHandleHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- handle: Image {
- x: Math.round(control.leftPadding + (control.horizontal ? control.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2))
- y: Math.round(control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.visualPosition * (control.availableHeight - height)))
-
- source: Imagine.url + "slider-handle"
- ImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"pressed": control.pressed},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-
- background: NinePatchImage {
- scale: control.horizontal && control.mirrored ? -1 : 1
-
- source: Imagine.url + "slider-background"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
-
- NinePatchImage {
- x: control.horizontal ? 0 : (parent.width - width) / 2
- y: control.horizontal
- ? (parent.height - height) / 2
- : control.handle.height / 2 + control.visualPosition * (parent.height - control.handle.height)
- width: control.horizontal
- ? control.handle.width / 2 + control.position * (parent.width - control.handle.width)
- : parent.width
- height: control.vertical
- ? control.handle.height / 2 + control.position * (parent.height - control.handle.height)
- : parent.height
-
- source: Imagine.url + "slider-progress"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
- }
-}
diff --git a/src/imports/controls/imagine/SpinBox.qml b/src/imports/controls/imagine/SpinBox.qml
deleted file mode 100644
index 61135806..00000000
--- a/src/imports/controls/imagine/SpinBox.qml
+++ /dev/null
@@ -1,152 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.SpinBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentItem.implicitWidth + 2 * padding +
- up.implicitIndicatorWidth +
- down.implicitIndicatorWidth)
- implicitHeight: Math.max(implicitContentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight,
- up.implicitIndicatorHeight,
- down.implicitIndicatorHeight)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: (background ? background.leftPadding : 0) + (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0))
- rightPadding: (background ? background.rightPadding : 0) + (control.mirrored ? (down.indicator ? down.indicator.width : 0) : (up.indicator ? up.indicator.width : 0))
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- validator: IntValidator {
- locale: control.locale.name
- bottom: Math.min(control.from, control.to)
- top: Math.max(control.from, control.to)
- }
-
- contentItem: TextInput {
- z: 2
- text: control.displayText
- opacity: control.enabled ? 1 : 0.3
-
- font: control.font
- color: control.palette.text
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
-
- readOnly: !control.editable
- validator: control.validator
- inputMethodHints: control.inputMethodHints
-
- NinePatchImage {
- z: -1
- width: control.width
- height: control.height
- visible: control.editable
-
- source: Imagine.url + "spinbox-editor"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"focused": control.activeFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
- }
-
- up.indicator: NinePatchImage {
- x: control.mirrored ? 0 : parent.width - width
- height: parent.height
-
- source: Imagine.url + "spinbox-indicator"
- NinePatchImageSelector on source {
- states: [
- {"up": true},
- {"disabled": !control.up.indicator.enabled},
- {"editable": control.editable},
- {"pressed": control.up.pressed},
- {"focused": control.activeFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.up.hovered}
- ]
- }
- }
-
- down.indicator: NinePatchImage {
- x: control.mirrored ? parent.width - width : 0
- height: parent.height
-
- source: Imagine.url + "spinbox-indicator"
- NinePatchImageSelector on source {
- states: [
- {"down": true},
- {"disabled": !control.down.indicator.enabled},
- {"editable": control.editable},
- {"pressed": control.down.pressed},
- {"focused": control.activeFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.down.hovered}
- ]
- }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "spinbox-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"editable": control.editable},
- {"focused": control.activeFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/SplitView.qml b/src/imports/controls/imagine/SplitView.qml
deleted file mode 100644
index a4a858f4..00000000
--- a/src/imports/controls/imagine/SplitView.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Templates 2.13 as T
-import QtQuick.Controls.Imagine 2.13
-import QtQuick.Controls.Imagine.impl 2.13
-
-T.SplitView {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- handle: NinePatchImage {
- source: Imagine.url + "splitview-handle"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.orientation === Qt.Vertical},
- {"horizontal":control.orientation === Qt.Horizontal},
- {"disabled": !control.enabled},
- {"pressed": T.SplitHandle.pressed},
- {"mirrored": control.mirrored},
- {"hovered": T.SplitHandle.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/StackView.qml b/src/imports/controls/imagine/StackView.qml
deleted file mode 100644
index 407b1d15..00000000
--- a/src/imports/controls/imagine/StackView.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.StackView {
- id: control
-
- implicitWidth: implicitBackgroundWidth
- implicitHeight: implicitBackgroundHeight
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- popEnter: Transition {
- XAnimator { from: (control.mirrored ? -1 : 1) * -control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
-
- popExit: Transition {
- XAnimator { from: 0; to: (control.mirrored ? -1 : 1) * control.width; duration: 400; easing.type: Easing.OutCubic }
- }
-
- pushEnter: Transition {
- XAnimator { from: (control.mirrored ? -1 : 1) * control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
-
- pushExit: Transition {
- XAnimator { from: 0; to: (control.mirrored ? -1 : 1) * -control.width; duration: 400; easing.type: Easing.OutCubic }
- }
-
- replaceEnter: Transition {
- XAnimator { from: (control.mirrored ? -1 : 1) * control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
-
- replaceExit: Transition {
- XAnimator { from: 0; to: (control.mirrored ? -1 : 1) * -control.width; duration: 400; easing.type: Easing.OutCubic }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "stackview-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/SwipeDelegate.qml b/src/imports/controls/imagine/SwipeDelegate.qml
deleted file mode 100644
index 3850253f..00000000
--- a/src/imports/controls/imagine/SwipeDelegate.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.SwipeDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- swipe.transition: Transition { SmoothedAnimation { velocity: 3; easing.type: Easing.InOutCubic } }
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- background: NinePatchImage {
- source: Imagine.url + "swipedelegate-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/SwipeView.qml b/src/imports/controls/imagine/SwipeView.qml
deleted file mode 100644
index 4998edb7..00000000
--- a/src/imports/controls/imagine/SwipeView.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.SwipeView {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- contentItem: ListView {
- model: control.contentModel
- interactive: control.interactive
- currentIndex: control.currentIndex
-
- spacing: control.spacing
- orientation: control.orientation
- snapMode: ListView.SnapOneItem
- boundsBehavior: Flickable.StopAtBounds
-
- highlightRangeMode: ListView.StrictlyEnforceRange
- preferredHighlightBegin: 0
- preferredHighlightEnd: 0
- highlightMoveDuration: 250
- }
-
- background: NinePatchImage {
- source: Imagine.url + "swipeview-background"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"interactive": control.interactive},
- {"focused": control.contentItem.activeFocus},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Switch.qml b/src/imports/controls/imagine/Switch.qml
deleted file mode 100644
index 50b407ac..00000000
--- a/src/imports/controls/imagine/Switch.qml
+++ /dev/null
@@ -1,134 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Switch {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 6 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- indicator: NinePatchImage {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- width: Math.max(implicitWidth, handle.leftPadding && handle.rightPadding ? handle.implicitWidth : 2 * handle.implicitWidth)
- height: Math.max(implicitHeight, handle.implicitHeight)
-
- source: Imagine.url + "switch-indicator"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
-
- property NinePatchImage handle: NinePatchImage {
- readonly property real minPos: parent.leftPadding - leftPadding
- readonly property real maxPos: parent.width - width + rightPadding - parent.rightPadding
- readonly property real dragPos: control.visualPosition * parent.width - (width / 2)
-
- parent: control.indicator
-
- x: Math.max(minPos, Math.min(maxPos, control.visualPosition * parent.width - (width / 2)))
- y: (parent.height - height) / 2
-
- source: Imagine.url + "switch-handle"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
-
- Behavior on x {
- enabled: !control.down
- SmoothedAnimation { velocity: 200 }
- }
- }
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.palette.windowText
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- background: NinePatchImage {
- source: Imagine.url + "switch-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/SwitchDelegate.qml b/src/imports/controls/imagine/SwitchDelegate.qml
deleted file mode 100644
index 73e5aac0..00000000
--- a/src/imports/controls/imagine/SwitchDelegate.qml
+++ /dev/null
@@ -1,147 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.SwitchDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.text
-
- indicator: NinePatchImage {
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- width: Math.max(implicitWidth, handle.leftPadding && handle.rightPadding ? handle.implicitWidth : 2 * handle.implicitWidth)
- height: Math.max(implicitHeight, handle.implicitHeight)
-
- source: Imagine.url + "switchdelegate-indicator"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
-
- property NinePatchImage handle: NinePatchImage {
- readonly property real minPos: parent.leftPadding - leftPadding
- readonly property real maxPos: parent.width - width + rightPadding - parent.rightPadding
- readonly property real dragPos: control.visualPosition * parent.width - (width / 2)
-
- parent: control.indicator
-
- x: Math.max(minPos, Math.min(maxPos, control.visualPosition * parent.width - (width / 2)))
- y: (parent.height - height) / 2
-
- source: Imagine.url + "switchdelegate-handle"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
-
- Behavior on x {
- enabled: !control.down
- SmoothedAnimation { velocity: 200 }
- }
- }
- }
-
- contentItem: IconLabel {
- leftPadding: control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: !control.mirrored ? control.indicator.width + control.spacing : 0
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.text
- }
-
- background: NinePatchImage {
- source: Imagine.url + "switchdelegate-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/TabBar.qml b/src/imports/controls/imagine/TabBar.qml
deleted file mode 100644
index 69516e03..00000000
--- a/src/imports/controls/imagine/TabBar.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.TabBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- contentItem: ListView {
- model: control.contentModel
- currentIndex: control.currentIndex
-
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- flickableDirection: Flickable.AutoFlickIfNeeded
- snapMode: ListView.SnapToItem
-
- highlightMoveDuration: 0
- highlightRangeMode: ListView.ApplyRange
- preferredHighlightBegin: 48
- preferredHighlightEnd: width - 48
- }
-
- background: NinePatchImage {
- source: Imagine.url + "tabbar-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"header": control.position === T.TabBar.Header },
- {"footer": control.position === T.TabBar.Footer },
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/TabButton.qml b/src/imports/controls/imagine/TabButton.qml
deleted file mode 100644
index 1cdcfc4b..00000000
--- a/src/imports/controls/imagine/TabButton.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.TabButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- spacing: 6 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.buttonText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.buttonText
- }
-
- background: NinePatchImage {
- source: Imagine.url + "tabbutton-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/TextArea.qml b/src/imports/controls/imagine/TextArea.qml
deleted file mode 100644
index c7505b52..00000000
--- a/src/imports/controls/imagine/TextArea.qml
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.TextArea {
- id: control
-
- implicitWidth: Math.max(contentWidth + leftPadding + rightPadding,
- implicitBackgroundWidth + leftInset + rightInset,
- placeholder.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(contentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight + topInset + bottomInset,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- color: control.palette.text
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- verticalAlignment: Qt.AlignVCenter
- placeholderTextColor: Color.transparent(control.color, 0.5)
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
-
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- verticalAlignment: control.verticalAlignment
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- elide: Text.ElideRight
- renderType: control.renderType
- }
-
- background: NinePatchImage {
- source: Imagine.url + "textarea-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"focused": control.activeFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/TextField.qml b/src/imports/controls/imagine/TextField.qml
deleted file mode 100644
index 3ff0ad44..00000000
--- a/src/imports/controls/imagine/TextField.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.TextField {
- id: control
-
- implicitWidth: implicitBackgroundWidth + leftInset + rightInset
- || Math.max(contentWidth, placeholder.implicitWidth) + leftPadding + rightPadding
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- color: control.palette.text
- selectionColor: control.palette.highlight
- selectedTextColor: control.palette.highlightedText
- placeholderTextColor: Color.transparent(control.color, 0.5)
- verticalAlignment: Qt.AlignVCenter
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
-
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- verticalAlignment: control.verticalAlignment
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- elide: Text.ElideRight
- renderType: control.renderType
- }
-
- background: NinePatchImage {
- source: Imagine.url + "textfield-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"focused": control.activeFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/ToolBar.qml b/src/imports/controls/imagine/ToolBar.qml
deleted file mode 100644
index 99bcd3ba..00000000
--- a/src/imports/controls/imagine/ToolBar.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ToolBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- background: NinePatchImage {
- source: Imagine.url + "toolbar-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"header": control.position === T.ToolBar.Header },
- {"footer": control.position === T.ToolBar.Footer },
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/ToolButton.qml b/src/imports/controls/imagine/ToolButton.qml
deleted file mode 100644
index cc22f88d..00000000
--- a/src/imports/controls/imagine/ToolButton.qml
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ToolButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- spacing: 6 // ###
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- icon.width: 24
- icon.height: 24
- icon.color: control.palette.buttonText
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.palette.buttonText
- }
-
- background: NinePatchImage {
- source: Imagine.url + "toolbutton-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"pressed": control.down},
- {"checked": control.checked},
- {"checkable": control.checkable},
- {"focused": control.visualFocus},
- {"highlighted": control.highlighted},
- {"flat": control.flat},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/ToolSeparator.qml b/src/imports/controls/imagine/ToolSeparator.qml
deleted file mode 100644
index c0887e4d..00000000
--- a/src/imports/controls/imagine/ToolSeparator.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ToolSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- contentItem: NinePatchImage {
- source: Imagine.url + "toolseparator-separator"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-
- background: NinePatchImage {
- source: Imagine.url + "toolseparator-background"
- NinePatchImageSelector on source {
- states: [
- {"vertical": control.vertical},
- {"horizontal": control.horizontal},
- {"disabled": !control.enabled},
- {"mirrored": control.mirrored}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/ToolTip.qml b/src/imports/controls/imagine/ToolTip.qml
deleted file mode 100644
index 250452d8..00000000
--- a/src/imports/controls/imagine/ToolTip.qml
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.ToolTip {
- id: control
-
- x: parent ? (parent.width - implicitWidth) / 2 : 0 - (background ? background.leftInset : 0)
- y: -implicitHeight - (background ? background.topInset : 0)
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topMargin: background ? background.topInset : 0
- leftMargin: background ? background.leftInset : 0
- rightMargin: background ? background.rightInset : 0
- bottomMargin: background ? background.bottomInset : 0
-
- topPadding: background ? background.topPadding : 0
- leftPadding: background ? background.leftPadding : 0
- rightPadding: background ? background.rightPadding : 0
- bottomPadding: background ? background.bottomPadding : 0
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent | T.Popup.CloseOnReleaseOutsideParent
-
- contentItem: Text {
- text: control.text
- font: control.font
- // TODO: wrapMode: Label.Wrap
- color: control.palette.toolTipText
- }
-
- background: NinePatchImage {
- source: Imagine.url + "tooltip-background"
- NinePatchImageSelector on source {
- states: [
- // ###
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/Tumbler.qml b/src/imports/controls/imagine/Tumbler.qml
deleted file mode 100644
index 12025cc5..00000000
--- a/src/imports/controls/imagine/Tumbler.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-T.Tumbler {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 60 // ### remove 60 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 200 // ### remove 200 in Qt 6
-
- topInset: background ? -background.topInset || 0 : 0
- leftInset: background ? -background.leftInset || 0 : 0
- rightInset: background ? -background.rightInset || 0 : 0
- bottomInset: background ? -background.bottomInset || 0 : 0
-
- delegate: Text {
- text: modelData
- font: control.font
- color: control.palette.text
- opacity: (1.0 - Math.abs(Tumbler.displacement) / (control.visibleItemCount / 2)) * (control.enabled ? 1 : 0.6)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-
- contentItem: TumblerView {
- implicitWidth: 60
- implicitHeight: 200
- model: control.model
- delegate: control.delegate
- path: Path {
- startX: control.contentItem.width / 2
- startY: -control.contentItem.delegateHeight / 2
- PathLine {
- x: control.contentItem.width / 2
- y: (control.visibleItemCount + 1) * control.contentItem.delegateHeight - control.contentItem.delegateHeight / 2
- }
- }
-
- property real delegateHeight: control.availableHeight / control.visibleItemCount
- }
-
- background: NinePatchImage {
- source: Imagine.url + "tumbler-background"
- NinePatchImageSelector on source {
- states: [
- {"disabled": !control.enabled},
- {"focused": control.visualFocus},
- {"mirrored": control.mirrored},
- {"hovered": control.hovered}
- ]
- }
- }
-}
diff --git a/src/imports/controls/imagine/dependencies.json b/src/imports/controls/imagine/dependencies.json
deleted file mode 100644
index 21ded052..00000000
--- a/src/imports/controls/imagine/dependencies.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "name": "QtQuick.Controls",
- "type": "module",
- "version": "2.0"
- }
-]
diff --git a/src/imports/controls/imagine/design/9-patch-export.sketchplugin/Contents/Sketch/9-patch-export.js b/src/imports/controls/imagine/design/9-patch-export.sketchplugin/Contents/Sketch/9-patch-export.js
deleted file mode 100644
index a7f9a459..00000000
--- a/src/imports/controls/imagine/design/9-patch-export.sketchplugin/Contents/Sketch/9-patch-export.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// 9-patch export
-//
-// This plugin crops upscaled 9-patch PNG assets when exported from Sketch,
-// to ensure that 9-patch borders remain 1px wide when upscaled.
-//
-function onExportSlices(context) {
- var exports = context.actionContext.exports;
- for (var i = 0; i < exports.count(); ++i) {
- var name = exports[i].request.name();
- var scale = exports[i].request.scale();
- if (scale > 1 && name.endsWith(".9"))
- cropAsset(exports[i].path, scale - 1);
- }
-}
-
-function cropAsset(path, inset) {
- var url = NSURL.fileURLWithPath(path);
- var img = CIImage.imageWithContentsOfURL(url);
- var rect = NSInsetRect(img.extent(), inset, inset);
- var cropped = img.imageByCroppingToRect(rect);
- var rep = NSBitmapImageRep.alloc().initWithCIImage(cropped);
- var data = rep.PNGRepresentationWithInterlaced(false);
- data.writeToFile(path);
-}
diff --git a/src/imports/controls/imagine/design/9-patch-export.sketchplugin/Contents/Sketch/manifest.json b/src/imports/controls/imagine/design/9-patch-export.sketchplugin/Contents/Sketch/manifest.json
deleted file mode 100644
index 40807aa3..00000000
--- a/src/imports/controls/imagine/design/9-patch-export.sketchplugin/Contents/Sketch/manifest.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name" : "9-patch export",
- "description" : "Crops upscaled 9-patch PNG assets when exported from Sketch.",
- "version" : "0.1",
- "identifier" : "org.qt-project.sketch.9-patch-export",
- "author" : "The Qt Project",
- "commands" : [
- {
- "name" : "9-patch export",
- "identifier" : "9-patch-export",
- "script" : "9-patch-export.js",
- "handlers" : {
- "actions" : {
- "ExportSlices": "onExportSlices",
- },
- },
- },
- ],
-}
diff --git a/src/imports/controls/imagine/design/imagine.sketch b/src/imports/controls/imagine/design/imagine.sketch
deleted file mode 100644
index f3535b37..00000000
--- a/src/imports/controls/imagine/design/imagine.sketch
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-background.png b/src/imports/controls/imagine/images/applicationwindow-background.png
deleted file mode 100644
index 01eb7c73..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-background.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-background@2x.png b/src/imports/controls/imagine/images/applicationwindow-background@2x.png
deleted file mode 100644
index 72be785c..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-background@3x.png b/src/imports/controls/imagine/images/applicationwindow-background@3x.png
deleted file mode 100644
index a488f592..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-background@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-background@4x.png b/src/imports/controls/imagine/images/applicationwindow-background@4x.png
deleted file mode 100644
index 9343da95..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-background@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-overlay-modal.png b/src/imports/controls/imagine/images/applicationwindow-overlay-modal.png
deleted file mode 100644
index 296e914a..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-overlay-modal.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-overlay-modal@2x.png b/src/imports/controls/imagine/images/applicationwindow-overlay-modal@2x.png
deleted file mode 100644
index 10c89300..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-overlay-modal@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-overlay-modal@3x.png b/src/imports/controls/imagine/images/applicationwindow-overlay-modal@3x.png
deleted file mode 100644
index f65996e9..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-overlay-modal@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-overlay-modal@4x.png b/src/imports/controls/imagine/images/applicationwindow-overlay-modal@4x.png
deleted file mode 100644
index a586f381..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-overlay-modal@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-overlay.png b/src/imports/controls/imagine/images/applicationwindow-overlay.png
deleted file mode 100644
index e7175b46..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-overlay.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-overlay@2x.png b/src/imports/controls/imagine/images/applicationwindow-overlay@2x.png
deleted file mode 100644
index db6566e0..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-overlay@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-overlay@3x.png b/src/imports/controls/imagine/images/applicationwindow-overlay@3x.png
deleted file mode 100644
index 140e4692..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-overlay@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/applicationwindow-overlay@4x.png b/src/imports/controls/imagine/images/applicationwindow-overlay@4x.png
deleted file mode 100644
index 5115c28a..00000000
--- a/src/imports/controls/imagine/images/applicationwindow-overlay@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/busyindicator-animation.webp b/src/imports/controls/imagine/images/busyindicator-animation.webp
deleted file mode 100644
index ebf04c4a..00000000
--- a/src/imports/controls/imagine/images/busyindicator-animation.webp
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/busyindicator-animation@2x.webp b/src/imports/controls/imagine/images/busyindicator-animation@2x.webp
deleted file mode 100644
index 43805a0b..00000000
--- a/src/imports/controls/imagine/images/busyindicator-animation@2x.webp
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/busyindicator-animation@3x.webp b/src/imports/controls/imagine/images/busyindicator-animation@3x.webp
deleted file mode 100644
index b700b81f..00000000
--- a/src/imports/controls/imagine/images/busyindicator-animation@3x.webp
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/busyindicator-animation@4x.webp b/src/imports/controls/imagine/images/busyindicator-animation@4x.webp
deleted file mode 100644
index bfaa8df9..00000000
--- a/src/imports/controls/imagine/images/busyindicator-animation@4x.webp
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-disabled.9.png b/src/imports/controls/imagine/images/button-background-checked-disabled.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-disabled@2x.9.png b/src/imports/controls/imagine/images/button-background-checked-disabled@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-disabled@3x.9.png b/src/imports/controls/imagine/images/button-background-checked-disabled@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-disabled@4x.9.png b/src/imports/controls/imagine/images/button-background-checked-disabled@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-focused.9.png b/src/imports/controls/imagine/images/button-background-checked-focused.9.png
deleted file mode 100644
index 829d68a9..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-focused@2x.9.png b/src/imports/controls/imagine/images/button-background-checked-focused@2x.9.png
deleted file mode 100644
index bf375d43..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-focused@3x.9.png b/src/imports/controls/imagine/images/button-background-checked-focused@3x.9.png
deleted file mode 100644
index 8759c337..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-focused@4x.9.png b/src/imports/controls/imagine/images/button-background-checked-focused@4x.9.png
deleted file mode 100644
index 7b8f3616..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-hovered.9.png b/src/imports/controls/imagine/images/button-background-checked-hovered.9.png
deleted file mode 100644
index 829d68a9..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-hovered@2x.9.png b/src/imports/controls/imagine/images/button-background-checked-hovered@2x.9.png
deleted file mode 100644
index bf375d43..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-hovered@3x.9.png b/src/imports/controls/imagine/images/button-background-checked-hovered@3x.9.png
deleted file mode 100644
index 8759c337..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked-hovered@4x.9.png b/src/imports/controls/imagine/images/button-background-checked-hovered@4x.9.png
deleted file mode 100644
index 7b8f3616..00000000
--- a/src/imports/controls/imagine/images/button-background-checked-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked.9.png b/src/imports/controls/imagine/images/button-background-checked.9.png
deleted file mode 100644
index 3ca06e6c..00000000
--- a/src/imports/controls/imagine/images/button-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked@2x.9.png b/src/imports/controls/imagine/images/button-background-checked@2x.9.png
deleted file mode 100644
index 0afc3dea..00000000
--- a/src/imports/controls/imagine/images/button-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked@3x.9.png b/src/imports/controls/imagine/images/button-background-checked@3x.9.png
deleted file mode 100644
index 348687ad..00000000
--- a/src/imports/controls/imagine/images/button-background-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-checked@4x.9.png b/src/imports/controls/imagine/images/button-background-checked@4x.9.png
deleted file mode 100644
index 4dff0ba8..00000000
--- a/src/imports/controls/imagine/images/button-background-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-disabled.9.png b/src/imports/controls/imagine/images/button-background-disabled.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-disabled@2x.9.png b/src/imports/controls/imagine/images/button-background-disabled@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-disabled@3x.9.png b/src/imports/controls/imagine/images/button-background-disabled@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-disabled@4x.9.png b/src/imports/controls/imagine/images/button-background-disabled@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-checked-pressed.9.png b/src/imports/controls/imagine/images/button-background-flat-checked-pressed.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-checked-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-checked-pressed@2x.9.png b/src/imports/controls/imagine/images/button-background-flat-checked-pressed@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-checked-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-checked-pressed@3x.9.png b/src/imports/controls/imagine/images/button-background-flat-checked-pressed@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-checked-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-checked-pressed@4x.9.png b/src/imports/controls/imagine/images/button-background-flat-checked-pressed@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-checked-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-checked.9.png b/src/imports/controls/imagine/images/button-background-flat-checked.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-checked@2x.9.png b/src/imports/controls/imagine/images/button-background-flat-checked@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-checked@3x.9.png b/src/imports/controls/imagine/images/button-background-flat-checked@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-checked@4x.9.png b/src/imports/controls/imagine/images/button-background-flat-checked@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-disabled.9.png b/src/imports/controls/imagine/images/button-background-flat-disabled.9.png
deleted file mode 100644
index a76e7b86..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-disabled@2x.9.png b/src/imports/controls/imagine/images/button-background-flat-disabled@2x.9.png
deleted file mode 100644
index 58445d50..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-disabled@3x.9.png b/src/imports/controls/imagine/images/button-background-flat-disabled@3x.9.png
deleted file mode 100644
index 0a18be32..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-disabled@4x.9.png b/src/imports/controls/imagine/images/button-background-flat-disabled@4x.9.png
deleted file mode 100644
index f60c994d..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted-checked.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted-checked.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@2x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@3x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@4x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@2x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@3x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@4x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted.9.png
deleted file mode 100644
index a76e7b86..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted@2x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted@2x.9.png
deleted file mode 100644
index 58445d50..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted@3x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted@3x.9.png
deleted file mode 100644
index 0a18be32..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-highlighted@4x.9.png b/src/imports/controls/imagine/images/button-background-flat-highlighted@4x.9.png
deleted file mode 100644
index f60c994d..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-highlighted@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-hovered.9.png b/src/imports/controls/imagine/images/button-background-flat-hovered.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-hovered@2x.9.png b/src/imports/controls/imagine/images/button-background-flat-hovered@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-hovered@3x.9.png b/src/imports/controls/imagine/images/button-background-flat-hovered@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-hovered@4x.9.png b/src/imports/controls/imagine/images/button-background-flat-hovered@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-pressed.9.png b/src/imports/controls/imagine/images/button-background-flat-pressed.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-pressed@2x.9.png b/src/imports/controls/imagine/images/button-background-flat-pressed@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-pressed@3x.9.png b/src/imports/controls/imagine/images/button-background-flat-pressed@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat-pressed@4x.9.png b/src/imports/controls/imagine/images/button-background-flat-pressed@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-flat-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat.9.png b/src/imports/controls/imagine/images/button-background-flat.9.png
deleted file mode 100644
index a76e7b86..00000000
--- a/src/imports/controls/imagine/images/button-background-flat.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat@2x.9.png b/src/imports/controls/imagine/images/button-background-flat@2x.9.png
deleted file mode 100644
index 58445d50..00000000
--- a/src/imports/controls/imagine/images/button-background-flat@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat@3x.9.png b/src/imports/controls/imagine/images/button-background-flat@3x.9.png
deleted file mode 100644
index 0a18be32..00000000
--- a/src/imports/controls/imagine/images/button-background-flat@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-flat@4x.9.png b/src/imports/controls/imagine/images/button-background-flat@4x.9.png
deleted file mode 100644
index f60c994d..00000000
--- a/src/imports/controls/imagine/images/button-background-flat@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-focused.9.png b/src/imports/controls/imagine/images/button-background-focused.9.png
deleted file mode 100644
index 04573ce4..00000000
--- a/src/imports/controls/imagine/images/button-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-focused@2x.9.png b/src/imports/controls/imagine/images/button-background-focused@2x.9.png
deleted file mode 100644
index ad25d378..00000000
--- a/src/imports/controls/imagine/images/button-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-focused@3x.9.png b/src/imports/controls/imagine/images/button-background-focused@3x.9.png
deleted file mode 100644
index 2f599e72..00000000
--- a/src/imports/controls/imagine/images/button-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-focused@4x.9.png b/src/imports/controls/imagine/images/button-background-focused@4x.9.png
deleted file mode 100644
index 6ac51521..00000000
--- a/src/imports/controls/imagine/images/button-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-checked.9.png b/src/imports/controls/imagine/images/button-background-highlighted-checked.9.png
deleted file mode 100644
index d8803419..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-checked@2x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-checked@2x.9.png
deleted file mode 100644
index 09cae1c0..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-checked@3x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-checked@3x.9.png
deleted file mode 100644
index b37485bb..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-checked@4x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-checked@4x.9.png
deleted file mode 100644
index d4991f75..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-disabled.9.png b/src/imports/controls/imagine/images/button-background-highlighted-disabled.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-disabled@2x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-disabled@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-disabled@3x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-disabled@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-disabled@4x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-disabled@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-focused.9.png b/src/imports/controls/imagine/images/button-background-highlighted-focused.9.png
deleted file mode 100644
index 594e7446..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-focused@2x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-focused@2x.9.png
deleted file mode 100644
index ddd405a2..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-focused@3x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-focused@3x.9.png
deleted file mode 100644
index 085c233e..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-focused@4x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-focused@4x.9.png
deleted file mode 100644
index b9e4aa27..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-hovered.9.png b/src/imports/controls/imagine/images/button-background-highlighted-hovered.9.png
deleted file mode 100644
index 594e7446..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-hovered@2x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-hovered@2x.9.png
deleted file mode 100644
index ddd405a2..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-hovered@3x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-hovered@3x.9.png
deleted file mode 100644
index 085c233e..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-hovered@4x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-hovered@4x.9.png
deleted file mode 100644
index b9e4aa27..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-pressed.9.png b/src/imports/controls/imagine/images/button-background-highlighted-pressed.9.png
deleted file mode 100644
index d8803419..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-pressed@2x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-pressed@2x.9.png
deleted file mode 100644
index 09cae1c0..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-pressed@3x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-pressed@3x.9.png
deleted file mode 100644
index b37485bb..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted-pressed@4x.9.png b/src/imports/controls/imagine/images/button-background-highlighted-pressed@4x.9.png
deleted file mode 100644
index d4991f75..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted.9.png b/src/imports/controls/imagine/images/button-background-highlighted.9.png
deleted file mode 100644
index f214ba22..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted@2x.9.png b/src/imports/controls/imagine/images/button-background-highlighted@2x.9.png
deleted file mode 100644
index f363d8df..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted@3x.9.png b/src/imports/controls/imagine/images/button-background-highlighted@3x.9.png
deleted file mode 100644
index 65ed9ca9..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-highlighted@4x.9.png b/src/imports/controls/imagine/images/button-background-highlighted@4x.9.png
deleted file mode 100644
index 25be69ca..00000000
--- a/src/imports/controls/imagine/images/button-background-highlighted@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-hovered.9.png b/src/imports/controls/imagine/images/button-background-hovered.9.png
deleted file mode 100644
index 04573ce4..00000000
--- a/src/imports/controls/imagine/images/button-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-hovered@2x.9.png b/src/imports/controls/imagine/images/button-background-hovered@2x.9.png
deleted file mode 100644
index ad25d378..00000000
--- a/src/imports/controls/imagine/images/button-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-hovered@3x.9.png b/src/imports/controls/imagine/images/button-background-hovered@3x.9.png
deleted file mode 100644
index 2f599e72..00000000
--- a/src/imports/controls/imagine/images/button-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-hovered@4x.9.png b/src/imports/controls/imagine/images/button-background-hovered@4x.9.png
deleted file mode 100644
index 6ac51521..00000000
--- a/src/imports/controls/imagine/images/button-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-pressed.9.png b/src/imports/controls/imagine/images/button-background-pressed.9.png
deleted file mode 100644
index 3ca06e6c..00000000
--- a/src/imports/controls/imagine/images/button-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-pressed@2x.9.png b/src/imports/controls/imagine/images/button-background-pressed@2x.9.png
deleted file mode 100644
index 0afc3dea..00000000
--- a/src/imports/controls/imagine/images/button-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-pressed@3x.9.png b/src/imports/controls/imagine/images/button-background-pressed@3x.9.png
deleted file mode 100644
index 348687ad..00000000
--- a/src/imports/controls/imagine/images/button-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background-pressed@4x.9.png b/src/imports/controls/imagine/images/button-background-pressed@4x.9.png
deleted file mode 100644
index 4dff0ba8..00000000
--- a/src/imports/controls/imagine/images/button-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background.9.png b/src/imports/controls/imagine/images/button-background.9.png
deleted file mode 100644
index 053da917..00000000
--- a/src/imports/controls/imagine/images/button-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background@2x.9.png b/src/imports/controls/imagine/images/button-background@2x.9.png
deleted file mode 100644
index 471940f1..00000000
--- a/src/imports/controls/imagine/images/button-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background@3x.9.png b/src/imports/controls/imagine/images/button-background@3x.9.png
deleted file mode 100644
index 06155e8a..00000000
--- a/src/imports/controls/imagine/images/button-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/button-background@4x.9.png b/src/imports/controls/imagine/images/button-background@4x.9.png
deleted file mode 100644
index 7d776e51..00000000
--- a/src/imports/controls/imagine/images/button-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-focused.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-focused.png
deleted file mode 100644
index f22ebf09..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@2x.png
deleted file mode 100644
index fd3080a1..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@3x.png
deleted file mode 100644
index 6393373f..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@4x.png
deleted file mode 100644
index 32dedb7f..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered.png
deleted file mode 100644
index f22ebf09..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@2x.png
deleted file mode 100644
index fd3080a1..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@3x.png
deleted file mode 100644
index 6393373f..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@4x.png
deleted file mode 100644
index 32dedb7f..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed.png
deleted file mode 100644
index 846416aa..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@2x.png
deleted file mode 100644
index bc85bf94..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@3x.png
deleted file mode 100644
index 17ef9e58..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@4x.png
deleted file mode 100644
index 7e9dd750..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked.png b/src/imports/controls/imagine/images/checkbox-indicator-checked.png
deleted file mode 100644
index f06cc5f6..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked@2x.png
deleted file mode 100644
index 3db78a17..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked@3x.png
deleted file mode 100644
index eadb5968..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-checked@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-checked@4x.png
deleted file mode 100644
index 9bdfac8a..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-disabled.png b/src/imports/controls/imagine/images/checkbox-indicator-disabled.png
deleted file mode 100644
index a8305968..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-disabled@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-disabled@2x.png
deleted file mode 100644
index e8046c5e..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-disabled@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-disabled@3x.png
deleted file mode 100644
index d44111bb..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-disabled@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-disabled@4x.png
deleted file mode 100644
index 24fa0c0d..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-focused.png b/src/imports/controls/imagine/images/checkbox-indicator-focused.png
deleted file mode 100644
index 1c598c1f..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-focused@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-focused@2x.png
deleted file mode 100644
index 31ff320e..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-focused@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-focused@3x.png
deleted file mode 100644
index 15a1b487..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-focused@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-focused@4x.png
deleted file mode 100644
index db11c0c1..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-hovered.png b/src/imports/controls/imagine/images/checkbox-indicator-hovered.png
deleted file mode 100644
index 1c598c1f..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-hovered@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-hovered@2x.png
deleted file mode 100644
index 31ff320e..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-hovered@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-hovered@3x.png
deleted file mode 100644
index 15a1b487..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-hovered@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-hovered@4x.png
deleted file mode 100644
index db11c0c1..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused.png
deleted file mode 100644
index 23c8197a..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@2x.png
deleted file mode 100644
index 046a0e6c..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@3x.png
deleted file mode 100644
index 890b4c66..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@4x.png
deleted file mode 100644
index 1dcc73c9..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered.png
deleted file mode 100644
index 23c8197a..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@2x.png
deleted file mode 100644
index 046a0e6c..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@3x.png
deleted file mode 100644
index 890b4c66..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@4x.png
deleted file mode 100644
index 1dcc73c9..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed.png
deleted file mode 100644
index bdd3b6f7..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@2x.png
deleted file mode 100644
index 8e5e3478..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@3x.png
deleted file mode 100644
index aa60fac0..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@4x.png
deleted file mode 100644
index 98c43e17..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked.png
deleted file mode 100644
index 9d09b33b..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@2x.png
deleted file mode 100644
index bf4ee4b8..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@3x.png
deleted file mode 100644
index 6726df07..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@4x.png
deleted file mode 100644
index 400daa58..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-partially-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-pressed.png b/src/imports/controls/imagine/images/checkbox-indicator-pressed.png
deleted file mode 100644
index e4f02db1..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-pressed@2x.png b/src/imports/controls/imagine/images/checkbox-indicator-pressed@2x.png
deleted file mode 100644
index e2342547..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-pressed@3x.png b/src/imports/controls/imagine/images/checkbox-indicator-pressed@3x.png
deleted file mode 100644
index 8ae24d75..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator-pressed@4x.png b/src/imports/controls/imagine/images/checkbox-indicator-pressed@4x.png
deleted file mode 100644
index 04a32370..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator.png b/src/imports/controls/imagine/images/checkbox-indicator.png
deleted file mode 100644
index d7b4c6d1..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator@2x.png b/src/imports/controls/imagine/images/checkbox-indicator@2x.png
deleted file mode 100644
index 0ae3fa8f..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator@3x.png b/src/imports/controls/imagine/images/checkbox-indicator@3x.png
deleted file mode 100644
index f8de503c..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkbox-indicator@4x.png b/src/imports/controls/imagine/images/checkbox-indicator@4x.png
deleted file mode 100644
index 4f16042d..00000000
--- a/src/imports/controls/imagine/images/checkbox-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-disabled.9.png b/src/imports/controls/imagine/images/checkdelegate-background-disabled.9.png
deleted file mode 100644
index 4b56fe35..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-disabled@2x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-disabled@2x.9.png
deleted file mode 100644
index 34edef58..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-disabled@3x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-disabled@3x.9.png
deleted file mode 100644
index dd2cc6ba..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-disabled@4x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-disabled@4x.9.png
deleted file mode 100644
index b7890a3c..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-focused.9.png b/src/imports/controls/imagine/images/checkdelegate-background-focused.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-focused@2x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-focused@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-focused@3x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-focused@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-focused@4x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-focused@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-highlighted.9.png b/src/imports/controls/imagine/images/checkdelegate-background-highlighted.9.png
deleted file mode 100644
index 32847cfa..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-highlighted.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-highlighted@2x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-highlighted@2x.9.png
deleted file mode 100644
index 126fcb29..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-highlighted@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-highlighted@3x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-highlighted@3x.9.png
deleted file mode 100644
index 22b7c9f2..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-highlighted@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-highlighted@4x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-highlighted@4x.9.png
deleted file mode 100644
index 4e67f310..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-highlighted@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-hovered.9.png b/src/imports/controls/imagine/images/checkdelegate-background-hovered.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-hovered@2x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-hovered@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-hovered@3x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-hovered@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-hovered@4x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-hovered@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-pressed.9.png b/src/imports/controls/imagine/images/checkdelegate-background-pressed.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-pressed@2x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-pressed@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-pressed@3x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-pressed@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background-pressed@4x.9.png b/src/imports/controls/imagine/images/checkdelegate-background-pressed@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background.9.png b/src/imports/controls/imagine/images/checkdelegate-background.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background@2x.9.png b/src/imports/controls/imagine/images/checkdelegate-background@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background@3x.9.png b/src/imports/controls/imagine/images/checkdelegate-background@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-background@4x.9.png b/src/imports/controls/imagine/images/checkdelegate-background@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused.png
deleted file mode 100644
index f22ebf09..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@2x.png
deleted file mode 100644
index fd3080a1..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@3x.png
deleted file mode 100644
index 6393373f..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@4x.png
deleted file mode 100644
index 32dedb7f..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered.png
deleted file mode 100644
index f22ebf09..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@2x.png
deleted file mode 100644
index fd3080a1..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@3x.png
deleted file mode 100644
index 6393373f..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@4x.png
deleted file mode 100644
index 32dedb7f..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed.png
deleted file mode 100644
index 846416aa..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@2x.png
deleted file mode 100644
index bc85bf94..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@3x.png
deleted file mode 100644
index 17ef9e58..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@4x.png
deleted file mode 100644
index 7e9dd750..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked.png
deleted file mode 100644
index f06cc5f6..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked@2x.png
deleted file mode 100644
index 3db78a17..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked@3x.png
deleted file mode 100644
index eadb5968..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-checked@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-checked@4x.png
deleted file mode 100644
index 9bdfac8a..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-disabled.png b/src/imports/controls/imagine/images/checkdelegate-indicator-disabled.png
deleted file mode 100644
index a8305968..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@2x.png
deleted file mode 100644
index e8046c5e..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@3x.png
deleted file mode 100644
index d44111bb..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@4x.png
deleted file mode 100644
index 24fa0c0d..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-focused.png b/src/imports/controls/imagine/images/checkdelegate-indicator-focused.png
deleted file mode 100644
index 1c598c1f..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-focused@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-focused@2x.png
deleted file mode 100644
index 31ff320e..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-focused@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-focused@3x.png
deleted file mode 100644
index 15a1b487..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-focused@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-focused@4x.png
deleted file mode 100644
index db11c0c1..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-hovered.png b/src/imports/controls/imagine/images/checkdelegate-indicator-hovered.png
deleted file mode 100644
index 1c598c1f..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@2x.png
deleted file mode 100644
index 31ff320e..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@3x.png
deleted file mode 100644
index 15a1b487..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@4x.png
deleted file mode 100644
index db11c0c1..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused.png
deleted file mode 100644
index 23c8197a..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@2x.png
deleted file mode 100644
index 046a0e6c..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@3x.png
deleted file mode 100644
index 890b4c66..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@4x.png
deleted file mode 100644
index 1dcc73c9..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered.png
deleted file mode 100644
index 23c8197a..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@2x.png
deleted file mode 100644
index 046a0e6c..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@3x.png
deleted file mode 100644
index 890b4c66..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@4x.png
deleted file mode 100644
index 1dcc73c9..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed.png
deleted file mode 100644
index bdd3b6f7..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@2x.png
deleted file mode 100644
index 8e5e3478..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@3x.png
deleted file mode 100644
index aa60fac0..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@4x.png
deleted file mode 100644
index 98c43e17..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked.png
deleted file mode 100644
index 9d09b33b..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@2x.png
deleted file mode 100644
index bf4ee4b8..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@3x.png
deleted file mode 100644
index 6726df07..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@4x.png
deleted file mode 100644
index 400daa58..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-partially-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-pressed.png b/src/imports/controls/imagine/images/checkdelegate-indicator-pressed.png
deleted file mode 100644
index e4f02db1..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@2x.png
deleted file mode 100644
index e2342547..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@3x.png
deleted file mode 100644
index 8ae24d75..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@4x.png
deleted file mode 100644
index 04a32370..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator.png b/src/imports/controls/imagine/images/checkdelegate-indicator.png
deleted file mode 100644
index d7b4c6d1..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator@2x.png b/src/imports/controls/imagine/images/checkdelegate-indicator@2x.png
deleted file mode 100644
index 0ae3fa8f..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator@3x.png b/src/imports/controls/imagine/images/checkdelegate-indicator@3x.png
deleted file mode 100644
index f8de503c..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/checkdelegate-indicator@4x.png b/src/imports/controls/imagine/images/checkdelegate-indicator@4x.png
deleted file mode 100644
index 4f16042d..00000000
--- a/src/imports/controls/imagine/images/checkdelegate-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-disabled.9.png b/src/imports/controls/imagine/images/combobox-background-disabled.9.png
deleted file mode 100644
index 695ccd71..00000000
--- a/src/imports/controls/imagine/images/combobox-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-disabled@2x.9.png b/src/imports/controls/imagine/images/combobox-background-disabled@2x.9.png
deleted file mode 100644
index 10e8d681..00000000
--- a/src/imports/controls/imagine/images/combobox-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-disabled@3x.9.png b/src/imports/controls/imagine/images/combobox-background-disabled@3x.9.png
deleted file mode 100644
index 6297b4cf..00000000
--- a/src/imports/controls/imagine/images/combobox-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-disabled@4x.9.png b/src/imports/controls/imagine/images/combobox-background-disabled@4x.9.png
deleted file mode 100644
index 715c6cb4..00000000
--- a/src/imports/controls/imagine/images/combobox-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable-disabled.9.png b/src/imports/controls/imagine/images/combobox-background-editable-disabled.9.png
deleted file mode 100644
index 49335bde..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable-disabled@2x.9.png b/src/imports/controls/imagine/images/combobox-background-editable-disabled@2x.9.png
deleted file mode 100644
index 792ae742..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable-disabled@3x.9.png b/src/imports/controls/imagine/images/combobox-background-editable-disabled@3x.9.png
deleted file mode 100644
index b391c100..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable-disabled@4x.9.png b/src/imports/controls/imagine/images/combobox-background-editable-disabled@4x.9.png
deleted file mode 100644
index 51641c3e..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable-focused.9.png b/src/imports/controls/imagine/images/combobox-background-editable-focused.9.png
deleted file mode 100644
index 6710bf1e..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable-focused@2x.9.png b/src/imports/controls/imagine/images/combobox-background-editable-focused@2x.9.png
deleted file mode 100644
index d61bac87..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable-focused@3x.9.png b/src/imports/controls/imagine/images/combobox-background-editable-focused@3x.9.png
deleted file mode 100644
index 380a6e37..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable-focused@4x.9.png b/src/imports/controls/imagine/images/combobox-background-editable-focused@4x.9.png
deleted file mode 100644
index 7d2e2cbb..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable.9.png b/src/imports/controls/imagine/images/combobox-background-editable.9.png
deleted file mode 100644
index f624616e..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable@2x.9.png b/src/imports/controls/imagine/images/combobox-background-editable@2x.9.png
deleted file mode 100644
index fbfa7fea..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable@3x.9.png b/src/imports/controls/imagine/images/combobox-background-editable@3x.9.png
deleted file mode 100644
index d67dda03..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-editable@4x.9.png b/src/imports/controls/imagine/images/combobox-background-editable@4x.9.png
deleted file mode 100644
index 5a24717a..00000000
--- a/src/imports/controls/imagine/images/combobox-background-editable@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-focused.9.png b/src/imports/controls/imagine/images/combobox-background-focused.9.png
deleted file mode 100644
index a44ad0a7..00000000
--- a/src/imports/controls/imagine/images/combobox-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-focused@2x.9.png b/src/imports/controls/imagine/images/combobox-background-focused@2x.9.png
deleted file mode 100644
index 80c8c612..00000000
--- a/src/imports/controls/imagine/images/combobox-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-focused@3x.9.png b/src/imports/controls/imagine/images/combobox-background-focused@3x.9.png
deleted file mode 100644
index dca2a6fe..00000000
--- a/src/imports/controls/imagine/images/combobox-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-focused@4x.9.png b/src/imports/controls/imagine/images/combobox-background-focused@4x.9.png
deleted file mode 100644
index f578a3bb..00000000
--- a/src/imports/controls/imagine/images/combobox-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-hovered.9.png b/src/imports/controls/imagine/images/combobox-background-hovered.9.png
deleted file mode 100644
index a44ad0a7..00000000
--- a/src/imports/controls/imagine/images/combobox-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-hovered@2x.9.png b/src/imports/controls/imagine/images/combobox-background-hovered@2x.9.png
deleted file mode 100644
index 80c8c612..00000000
--- a/src/imports/controls/imagine/images/combobox-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-hovered@3x.9.png b/src/imports/controls/imagine/images/combobox-background-hovered@3x.9.png
deleted file mode 100644
index dca2a6fe..00000000
--- a/src/imports/controls/imagine/images/combobox-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-hovered@4x.9.png b/src/imports/controls/imagine/images/combobox-background-hovered@4x.9.png
deleted file mode 100644
index f578a3bb..00000000
--- a/src/imports/controls/imagine/images/combobox-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-open.9.png b/src/imports/controls/imagine/images/combobox-background-open.9.png
deleted file mode 100644
index 00dad7f0..00000000
--- a/src/imports/controls/imagine/images/combobox-background-open.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-open@2x.9.png b/src/imports/controls/imagine/images/combobox-background-open@2x.9.png
deleted file mode 100644
index e7bff6c4..00000000
--- a/src/imports/controls/imagine/images/combobox-background-open@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-open@3x.9.png b/src/imports/controls/imagine/images/combobox-background-open@3x.9.png
deleted file mode 100644
index 96f4d58b..00000000
--- a/src/imports/controls/imagine/images/combobox-background-open@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-open@4x.9.png b/src/imports/controls/imagine/images/combobox-background-open@4x.9.png
deleted file mode 100644
index 7c65290a..00000000
--- a/src/imports/controls/imagine/images/combobox-background-open@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-pressed.9.png b/src/imports/controls/imagine/images/combobox-background-pressed.9.png
deleted file mode 100644
index 00dad7f0..00000000
--- a/src/imports/controls/imagine/images/combobox-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-pressed@2x.9.png b/src/imports/controls/imagine/images/combobox-background-pressed@2x.9.png
deleted file mode 100644
index e7bff6c4..00000000
--- a/src/imports/controls/imagine/images/combobox-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-pressed@3x.9.png b/src/imports/controls/imagine/images/combobox-background-pressed@3x.9.png
deleted file mode 100644
index 96f4d58b..00000000
--- a/src/imports/controls/imagine/images/combobox-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background-pressed@4x.9.png b/src/imports/controls/imagine/images/combobox-background-pressed@4x.9.png
deleted file mode 100644
index 7c65290a..00000000
--- a/src/imports/controls/imagine/images/combobox-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background.9.png b/src/imports/controls/imagine/images/combobox-background.9.png
deleted file mode 100644
index ff9be7f7..00000000
--- a/src/imports/controls/imagine/images/combobox-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background@2x.9.png b/src/imports/controls/imagine/images/combobox-background@2x.9.png
deleted file mode 100644
index bda0a45e..00000000
--- a/src/imports/controls/imagine/images/combobox-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background@3x.9.png b/src/imports/controls/imagine/images/combobox-background@3x.9.png
deleted file mode 100644
index c34beccf..00000000
--- a/src/imports/controls/imagine/images/combobox-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-background@4x.9.png b/src/imports/controls/imagine/images/combobox-background@4x.9.png
deleted file mode 100644
index 22d34bd5..00000000
--- a/src/imports/controls/imagine/images/combobox-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-disabled.png b/src/imports/controls/imagine/images/combobox-indicator-disabled.png
deleted file mode 100644
index cf4e0879..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-disabled@2x.png b/src/imports/controls/imagine/images/combobox-indicator-disabled@2x.png
deleted file mode 100644
index 74306ec7..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-disabled@3x.png b/src/imports/controls/imagine/images/combobox-indicator-disabled@3x.png
deleted file mode 100644
index d69fea5c..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-disabled@4x.png b/src/imports/controls/imagine/images/combobox-indicator-disabled@4x.png
deleted file mode 100644
index 9e63c449..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-disabled.png b/src/imports/controls/imagine/images/combobox-indicator-editable-disabled.png
deleted file mode 100644
index 89f4efa2..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@2x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@2x.png
deleted file mode 100644
index e50ed17b..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@3x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@3x.png
deleted file mode 100644
index c82a5b2a..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@4x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@4x.png
deleted file mode 100644
index 6415ef59..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled.png b/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled.png
deleted file mode 100644
index f4e9b366..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@2x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@2x.png
deleted file mode 100644
index cdbc9773..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@3x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@3x.png
deleted file mode 100644
index fbb520b0..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@4x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@4x.png
deleted file mode 100644
index da6d1c24..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored.png b/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored.png
deleted file mode 100644
index 13a7a520..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@2x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@2x.png
deleted file mode 100644
index c8f74b13..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@3x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@3x.png
deleted file mode 100644
index a330edf3..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@4x.png b/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@4x.png
deleted file mode 100644
index 2acedf54..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable-mirrored@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable.png b/src/imports/controls/imagine/images/combobox-indicator-editable.png
deleted file mode 100644
index a3899a11..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable@2x.png b/src/imports/controls/imagine/images/combobox-indicator-editable@2x.png
deleted file mode 100644
index 2cec8359..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable@3x.png b/src/imports/controls/imagine/images/combobox-indicator-editable@3x.png
deleted file mode 100644
index 23911865..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator-editable@4x.png b/src/imports/controls/imagine/images/combobox-indicator-editable@4x.png
deleted file mode 100644
index 8095e11b..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator-editable@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator.png b/src/imports/controls/imagine/images/combobox-indicator.png
deleted file mode 100644
index 4859714d..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator@2x.png b/src/imports/controls/imagine/images/combobox-indicator@2x.png
deleted file mode 100644
index d492a9d4..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator@3x.png b/src/imports/controls/imagine/images/combobox-indicator@3x.png
deleted file mode 100644
index bf2e4f78..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-indicator@4x.png b/src/imports/controls/imagine/images/combobox-indicator@4x.png
deleted file mode 100644
index 5c107a07..00000000
--- a/src/imports/controls/imagine/images/combobox-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-popup.9.png b/src/imports/controls/imagine/images/combobox-popup.9.png
deleted file mode 100644
index 646419d1..00000000
--- a/src/imports/controls/imagine/images/combobox-popup.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-popup@2x.9.png b/src/imports/controls/imagine/images/combobox-popup@2x.9.png
deleted file mode 100644
index 9bce26ac..00000000
--- a/src/imports/controls/imagine/images/combobox-popup@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-popup@3x.9.png b/src/imports/controls/imagine/images/combobox-popup@3x.9.png
deleted file mode 100644
index 1857d8e0..00000000
--- a/src/imports/controls/imagine/images/combobox-popup@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/combobox-popup@4x.9.png b/src/imports/controls/imagine/images/combobox-popup@4x.9.png
deleted file mode 100644
index b2132f49..00000000
--- a/src/imports/controls/imagine/images/combobox-popup@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked-focused.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked-focused.9.png
deleted file mode 100644
index 829d68a9..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked-focused@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked-focused@2x.9.png
deleted file mode 100644
index bf375d43..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked-focused@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked-focused@3x.9.png
deleted file mode 100644
index 8759c337..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked-focused@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked-focused@4x.9.png
deleted file mode 100644
index 7b8f3616..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked-hovered.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked-hovered.9.png
deleted file mode 100644
index 829d68a9..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@2x.9.png
deleted file mode 100644
index bf375d43..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@3x.9.png
deleted file mode 100644
index 8759c337..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@4x.9.png
deleted file mode 100644
index 7b8f3616..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked.9.png
deleted file mode 100644
index 3ca06e6c..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked@2x.9.png
deleted file mode 100644
index 0afc3dea..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked@3x.9.png
deleted file mode 100644
index 348687ad..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-checked@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background-checked@4x.9.png
deleted file mode 100644
index 4dff0ba8..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-disabled-checked.9.png b/src/imports/controls/imagine/images/delaybutton-background-disabled-checked.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-disabled-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-disabled-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-disabled.9.png b/src/imports/controls/imagine/images/delaybutton-background-disabled.9.png
deleted file mode 100644
index c06fd7cc..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-disabled@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background-disabled@2x.9.png
deleted file mode 100644
index b86a13cc..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-disabled@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background-disabled@3x.9.png
deleted file mode 100644
index 7fa4dd83..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-disabled@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background-disabled@4x.9.png
deleted file mode 100644
index 676bb0dd..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-focused.9.png b/src/imports/controls/imagine/images/delaybutton-background-focused.9.png
deleted file mode 100644
index 5f304316..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-focused@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background-focused@2x.9.png
deleted file mode 100644
index eaf07709..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-focused@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background-focused@3x.9.png
deleted file mode 100644
index 405fe421..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-focused@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background-focused@4x.9.png
deleted file mode 100644
index f5582735..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-hovered.9.png b/src/imports/controls/imagine/images/delaybutton-background-hovered.9.png
deleted file mode 100644
index 04573ce4..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-hovered@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background-hovered@2x.9.png
deleted file mode 100644
index ad25d378..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-hovered@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background-hovered@3x.9.png
deleted file mode 100644
index 2f599e72..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-hovered@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background-hovered@4x.9.png
deleted file mode 100644
index 6ac51521..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-pressed.9.png b/src/imports/controls/imagine/images/delaybutton-background-pressed.9.png
deleted file mode 100644
index 3ca06e6c..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-pressed@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background-pressed@2x.9.png
deleted file mode 100644
index 0afc3dea..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-pressed@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background-pressed@3x.9.png
deleted file mode 100644
index 348687ad..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background-pressed@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background-pressed@4x.9.png
deleted file mode 100644
index 4dff0ba8..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background.9.png b/src/imports/controls/imagine/images/delaybutton-background.9.png
deleted file mode 100644
index 053da917..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background@2x.9.png b/src/imports/controls/imagine/images/delaybutton-background@2x.9.png
deleted file mode 100644
index 471940f1..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background@3x.9.png b/src/imports/controls/imagine/images/delaybutton-background@3x.9.png
deleted file mode 100644
index 06155e8a..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-background@4x.9.png b/src/imports/controls/imagine/images/delaybutton-background@4x.9.png
deleted file mode 100644
index 7d776e51..00000000
--- a/src/imports/controls/imagine/images/delaybutton-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-mask.9.png b/src/imports/controls/imagine/images/delaybutton-mask.9.png
deleted file mode 100644
index 06864c1b..00000000
--- a/src/imports/controls/imagine/images/delaybutton-mask.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-mask@2x.9.png b/src/imports/controls/imagine/images/delaybutton-mask@2x.9.png
deleted file mode 100644
index 808d25d3..00000000
--- a/src/imports/controls/imagine/images/delaybutton-mask@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-mask@3x.9.png b/src/imports/controls/imagine/images/delaybutton-mask@3x.9.png
deleted file mode 100644
index 4efdcd05..00000000
--- a/src/imports/controls/imagine/images/delaybutton-mask@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-mask@4x.9.png b/src/imports/controls/imagine/images/delaybutton-mask@4x.9.png
deleted file mode 100644
index ec246a02..00000000
--- a/src/imports/controls/imagine/images/delaybutton-mask@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-progress-disabled.9.png b/src/imports/controls/imagine/images/delaybutton-progress-disabled.9.png
deleted file mode 100644
index bdf56055..00000000
--- a/src/imports/controls/imagine/images/delaybutton-progress-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-progress-disabled@2x.9.png b/src/imports/controls/imagine/images/delaybutton-progress-disabled@2x.9.png
deleted file mode 100644
index a58c93a1..00000000
--- a/src/imports/controls/imagine/images/delaybutton-progress-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-progress-disabled@3x.9.png b/src/imports/controls/imagine/images/delaybutton-progress-disabled@3x.9.png
deleted file mode 100644
index 259f68ea..00000000
--- a/src/imports/controls/imagine/images/delaybutton-progress-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-progress-disabled@4x.9.png b/src/imports/controls/imagine/images/delaybutton-progress-disabled@4x.9.png
deleted file mode 100644
index a075d444..00000000
--- a/src/imports/controls/imagine/images/delaybutton-progress-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-progress.9.png b/src/imports/controls/imagine/images/delaybutton-progress.9.png
deleted file mode 100644
index 0848cbcd..00000000
--- a/src/imports/controls/imagine/images/delaybutton-progress.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-progress@2x.9.png b/src/imports/controls/imagine/images/delaybutton-progress@2x.9.png
deleted file mode 100644
index 1a376399..00000000
--- a/src/imports/controls/imagine/images/delaybutton-progress@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-progress@3x.9.png b/src/imports/controls/imagine/images/delaybutton-progress@3x.9.png
deleted file mode 100644
index 704ab464..00000000
--- a/src/imports/controls/imagine/images/delaybutton-progress@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/delaybutton-progress@4x.9.png b/src/imports/controls/imagine/images/delaybutton-progress@4x.9.png
deleted file mode 100644
index ec568ce0..00000000
--- a/src/imports/controls/imagine/images/delaybutton-progress@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background-disabled.png b/src/imports/controls/imagine/images/dial-background-disabled.png
deleted file mode 100644
index eaea9591..00000000
--- a/src/imports/controls/imagine/images/dial-background-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background-disabled@2x.png b/src/imports/controls/imagine/images/dial-background-disabled@2x.png
deleted file mode 100644
index de2d3fbe..00000000
--- a/src/imports/controls/imagine/images/dial-background-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background-disabled@3x.png b/src/imports/controls/imagine/images/dial-background-disabled@3x.png
deleted file mode 100644
index 15d53353..00000000
--- a/src/imports/controls/imagine/images/dial-background-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background-disabled@4x.png b/src/imports/controls/imagine/images/dial-background-disabled@4x.png
deleted file mode 100644
index d6708c83..00000000
--- a/src/imports/controls/imagine/images/dial-background-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background-focused.png b/src/imports/controls/imagine/images/dial-background-focused.png
deleted file mode 100644
index c7c4f8ad..00000000
--- a/src/imports/controls/imagine/images/dial-background-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background-focused@2x.png b/src/imports/controls/imagine/images/dial-background-focused@2x.png
deleted file mode 100644
index 01febba4..00000000
--- a/src/imports/controls/imagine/images/dial-background-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background-focused@3x.png b/src/imports/controls/imagine/images/dial-background-focused@3x.png
deleted file mode 100644
index 2f4533ca..00000000
--- a/src/imports/controls/imagine/images/dial-background-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background-focused@4x.png b/src/imports/controls/imagine/images/dial-background-focused@4x.png
deleted file mode 100644
index 806a784d..00000000
--- a/src/imports/controls/imagine/images/dial-background-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background.png b/src/imports/controls/imagine/images/dial-background.png
deleted file mode 100644
index 7836be2d..00000000
--- a/src/imports/controls/imagine/images/dial-background.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background@2x.png b/src/imports/controls/imagine/images/dial-background@2x.png
deleted file mode 100644
index b80fb882..00000000
--- a/src/imports/controls/imagine/images/dial-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background@3x.png b/src/imports/controls/imagine/images/dial-background@3x.png
deleted file mode 100644
index 76dd0ba5..00000000
--- a/src/imports/controls/imagine/images/dial-background@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-background@4x.png b/src/imports/controls/imagine/images/dial-background@4x.png
deleted file mode 100644
index 774d91f9..00000000
--- a/src/imports/controls/imagine/images/dial-background@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-disabled.png b/src/imports/controls/imagine/images/dial-handle-disabled.png
deleted file mode 100644
index e7ecf615..00000000
--- a/src/imports/controls/imagine/images/dial-handle-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-disabled@2x.png b/src/imports/controls/imagine/images/dial-handle-disabled@2x.png
deleted file mode 100644
index 5bf4a433..00000000
--- a/src/imports/controls/imagine/images/dial-handle-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-disabled@3x.png b/src/imports/controls/imagine/images/dial-handle-disabled@3x.png
deleted file mode 100644
index 8fc3d43c..00000000
--- a/src/imports/controls/imagine/images/dial-handle-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-disabled@4x.png b/src/imports/controls/imagine/images/dial-handle-disabled@4x.png
deleted file mode 100644
index 6356c101..00000000
--- a/src/imports/controls/imagine/images/dial-handle-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused-hovered.png b/src/imports/controls/imagine/images/dial-handle-focused-hovered.png
deleted file mode 100644
index a64faa7b..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused-hovered@2x.png b/src/imports/controls/imagine/images/dial-handle-focused-hovered@2x.png
deleted file mode 100644
index 3fb2b8d4..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused-hovered@3x.png b/src/imports/controls/imagine/images/dial-handle-focused-hovered@3x.png
deleted file mode 100644
index 05d5b798..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused-hovered@4x.png b/src/imports/controls/imagine/images/dial-handle-focused-hovered@4x.png
deleted file mode 100644
index eecba9d6..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused-pressed.png b/src/imports/controls/imagine/images/dial-handle-focused-pressed.png
deleted file mode 100644
index e310a90d..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused-pressed@2x.png b/src/imports/controls/imagine/images/dial-handle-focused-pressed@2x.png
deleted file mode 100644
index 770572a8..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused-pressed@3x.png b/src/imports/controls/imagine/images/dial-handle-focused-pressed@3x.png
deleted file mode 100644
index b58f1909..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused-pressed@4x.png b/src/imports/controls/imagine/images/dial-handle-focused-pressed@4x.png
deleted file mode 100644
index 2c71a0ac..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused.png b/src/imports/controls/imagine/images/dial-handle-focused.png
deleted file mode 100644
index 21969bc5..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused@2x.png b/src/imports/controls/imagine/images/dial-handle-focused@2x.png
deleted file mode 100644
index 753b6ce7..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused@3x.png b/src/imports/controls/imagine/images/dial-handle-focused@3x.png
deleted file mode 100644
index 00232d38..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-focused@4x.png b/src/imports/controls/imagine/images/dial-handle-focused@4x.png
deleted file mode 100644
index 834850d6..00000000
--- a/src/imports/controls/imagine/images/dial-handle-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-hovered.png b/src/imports/controls/imagine/images/dial-handle-hovered.png
deleted file mode 100644
index ad76fda7..00000000
--- a/src/imports/controls/imagine/images/dial-handle-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-hovered@2x.png b/src/imports/controls/imagine/images/dial-handle-hovered@2x.png
deleted file mode 100644
index 215097a3..00000000
--- a/src/imports/controls/imagine/images/dial-handle-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-hovered@3x.png b/src/imports/controls/imagine/images/dial-handle-hovered@3x.png
deleted file mode 100644
index 6653f555..00000000
--- a/src/imports/controls/imagine/images/dial-handle-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-hovered@4x.png b/src/imports/controls/imagine/images/dial-handle-hovered@4x.png
deleted file mode 100644
index 213e27b3..00000000
--- a/src/imports/controls/imagine/images/dial-handle-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-pressed.png b/src/imports/controls/imagine/images/dial-handle-pressed.png
deleted file mode 100644
index 9f8619c0..00000000
--- a/src/imports/controls/imagine/images/dial-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-pressed@2x.png b/src/imports/controls/imagine/images/dial-handle-pressed@2x.png
deleted file mode 100644
index 78a9b9fe..00000000
--- a/src/imports/controls/imagine/images/dial-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-pressed@3x.png b/src/imports/controls/imagine/images/dial-handle-pressed@3x.png
deleted file mode 100644
index 0d6d1e7e..00000000
--- a/src/imports/controls/imagine/images/dial-handle-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle-pressed@4x.png b/src/imports/controls/imagine/images/dial-handle-pressed@4x.png
deleted file mode 100644
index 1673343a..00000000
--- a/src/imports/controls/imagine/images/dial-handle-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle.png b/src/imports/controls/imagine/images/dial-handle.png
deleted file mode 100644
index b4ad6b9a..00000000
--- a/src/imports/controls/imagine/images/dial-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle@2x.png b/src/imports/controls/imagine/images/dial-handle@2x.png
deleted file mode 100644
index 0e6147d9..00000000
--- a/src/imports/controls/imagine/images/dial-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle@3x.png b/src/imports/controls/imagine/images/dial-handle@3x.png
deleted file mode 100644
index 24ff1519..00000000
--- a/src/imports/controls/imagine/images/dial-handle@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dial-handle@4x.png b/src/imports/controls/imagine/images/dial-handle@4x.png
deleted file mode 100644
index c6b82488..00000000
--- a/src/imports/controls/imagine/images/dial-handle@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-background.9.png b/src/imports/controls/imagine/images/dialog-background.9.png
deleted file mode 100644
index 495d2f0d..00000000
--- a/src/imports/controls/imagine/images/dialog-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-background@2x.9.png b/src/imports/controls/imagine/images/dialog-background@2x.9.png
deleted file mode 100644
index ba0df866..00000000
--- a/src/imports/controls/imagine/images/dialog-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-background@3x.9.png b/src/imports/controls/imagine/images/dialog-background@3x.9.png
deleted file mode 100644
index e71856a5..00000000
--- a/src/imports/controls/imagine/images/dialog-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-background@4x.9.png b/src/imports/controls/imagine/images/dialog-background@4x.9.png
deleted file mode 100644
index d756cda5..00000000
--- a/src/imports/controls/imagine/images/dialog-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-overlay-modal.png b/src/imports/controls/imagine/images/dialog-overlay-modal.png
deleted file mode 100644
index 296e914a..00000000
--- a/src/imports/controls/imagine/images/dialog-overlay-modal.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-overlay-modal@2x.png b/src/imports/controls/imagine/images/dialog-overlay-modal@2x.png
deleted file mode 100644
index 10c89300..00000000
--- a/src/imports/controls/imagine/images/dialog-overlay-modal@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-overlay-modal@3x.png b/src/imports/controls/imagine/images/dialog-overlay-modal@3x.png
deleted file mode 100644
index f65996e9..00000000
--- a/src/imports/controls/imagine/images/dialog-overlay-modal@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-overlay-modal@4x.png b/src/imports/controls/imagine/images/dialog-overlay-modal@4x.png
deleted file mode 100644
index a586f381..00000000
--- a/src/imports/controls/imagine/images/dialog-overlay-modal@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-overlay.png b/src/imports/controls/imagine/images/dialog-overlay.png
deleted file mode 100644
index e7175b46..00000000
--- a/src/imports/controls/imagine/images/dialog-overlay.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-overlay@2x.png b/src/imports/controls/imagine/images/dialog-overlay@2x.png
deleted file mode 100644
index db6566e0..00000000
--- a/src/imports/controls/imagine/images/dialog-overlay@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-overlay@3x.png b/src/imports/controls/imagine/images/dialog-overlay@3x.png
deleted file mode 100644
index 140e4692..00000000
--- a/src/imports/controls/imagine/images/dialog-overlay@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialog-overlay@4x.png b/src/imports/controls/imagine/images/dialog-overlay@4x.png
deleted file mode 100644
index 5115c28a..00000000
--- a/src/imports/controls/imagine/images/dialog-overlay@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialogbuttonbox-background.9.png b/src/imports/controls/imagine/images/dialogbuttonbox-background.9.png
deleted file mode 100644
index 347300bb..00000000
--- a/src/imports/controls/imagine/images/dialogbuttonbox-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialogbuttonbox-background@2x.9.png b/src/imports/controls/imagine/images/dialogbuttonbox-background@2x.9.png
deleted file mode 100644
index 8eddd6f4..00000000
--- a/src/imports/controls/imagine/images/dialogbuttonbox-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialogbuttonbox-background@3x.9.png b/src/imports/controls/imagine/images/dialogbuttonbox-background@3x.9.png
deleted file mode 100644
index d4a407ba..00000000
--- a/src/imports/controls/imagine/images/dialogbuttonbox-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/dialogbuttonbox-background@4x.9.png b/src/imports/controls/imagine/images/dialogbuttonbox-background@4x.9.png
deleted file mode 100644
index 7af78edb..00000000
--- a/src/imports/controls/imagine/images/dialogbuttonbox-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-bottom.9.png b/src/imports/controls/imagine/images/drawer-background-bottom.9.png
deleted file mode 100644
index d33adad1..00000000
--- a/src/imports/controls/imagine/images/drawer-background-bottom.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-bottom@2x.9.png b/src/imports/controls/imagine/images/drawer-background-bottom@2x.9.png
deleted file mode 100644
index c2becf9e..00000000
--- a/src/imports/controls/imagine/images/drawer-background-bottom@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-bottom@3x.9.png b/src/imports/controls/imagine/images/drawer-background-bottom@3x.9.png
deleted file mode 100644
index 52439206..00000000
--- a/src/imports/controls/imagine/images/drawer-background-bottom@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-bottom@4x.9.png b/src/imports/controls/imagine/images/drawer-background-bottom@4x.9.png
deleted file mode 100644
index abf6964e..00000000
--- a/src/imports/controls/imagine/images/drawer-background-bottom@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-left.9.png b/src/imports/controls/imagine/images/drawer-background-left.9.png
deleted file mode 100644
index 95485ea1..00000000
--- a/src/imports/controls/imagine/images/drawer-background-left.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-left@2x.9.png b/src/imports/controls/imagine/images/drawer-background-left@2x.9.png
deleted file mode 100644
index 9060bf37..00000000
--- a/src/imports/controls/imagine/images/drawer-background-left@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-left@3x.9.png b/src/imports/controls/imagine/images/drawer-background-left@3x.9.png
deleted file mode 100644
index 70e39930..00000000
--- a/src/imports/controls/imagine/images/drawer-background-left@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-left@4x.9.png b/src/imports/controls/imagine/images/drawer-background-left@4x.9.png
deleted file mode 100644
index 8f26bbf0..00000000
--- a/src/imports/controls/imagine/images/drawer-background-left@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-right.9.png b/src/imports/controls/imagine/images/drawer-background-right.9.png
deleted file mode 100644
index 9951229e..00000000
--- a/src/imports/controls/imagine/images/drawer-background-right.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-right@2x.9.png b/src/imports/controls/imagine/images/drawer-background-right@2x.9.png
deleted file mode 100644
index 850811c6..00000000
--- a/src/imports/controls/imagine/images/drawer-background-right@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-right@3x.9.png b/src/imports/controls/imagine/images/drawer-background-right@3x.9.png
deleted file mode 100644
index a955e241..00000000
--- a/src/imports/controls/imagine/images/drawer-background-right@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-right@4x.9.png b/src/imports/controls/imagine/images/drawer-background-right@4x.9.png
deleted file mode 100644
index 51011c8c..00000000
--- a/src/imports/controls/imagine/images/drawer-background-right@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-top.9.png b/src/imports/controls/imagine/images/drawer-background-top.9.png
deleted file mode 100644
index 8685246c..00000000
--- a/src/imports/controls/imagine/images/drawer-background-top.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-top@2x.9.png b/src/imports/controls/imagine/images/drawer-background-top@2x.9.png
deleted file mode 100644
index b4ebf860..00000000
--- a/src/imports/controls/imagine/images/drawer-background-top@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-top@3x.9.png b/src/imports/controls/imagine/images/drawer-background-top@3x.9.png
deleted file mode 100644
index 2075c6eb..00000000
--- a/src/imports/controls/imagine/images/drawer-background-top@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-background-top@4x.9.png b/src/imports/controls/imagine/images/drawer-background-top@4x.9.png
deleted file mode 100644
index fad0cc13..00000000
--- a/src/imports/controls/imagine/images/drawer-background-top@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-overlay-modal.png b/src/imports/controls/imagine/images/drawer-overlay-modal.png
deleted file mode 100644
index 296e914a..00000000
--- a/src/imports/controls/imagine/images/drawer-overlay-modal.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-overlay-modal@2x.png b/src/imports/controls/imagine/images/drawer-overlay-modal@2x.png
deleted file mode 100644
index 10c89300..00000000
--- a/src/imports/controls/imagine/images/drawer-overlay-modal@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-overlay-modal@3x.png b/src/imports/controls/imagine/images/drawer-overlay-modal@3x.png
deleted file mode 100644
index f65996e9..00000000
--- a/src/imports/controls/imagine/images/drawer-overlay-modal@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-overlay-modal@4x.png b/src/imports/controls/imagine/images/drawer-overlay-modal@4x.png
deleted file mode 100644
index a586f381..00000000
--- a/src/imports/controls/imagine/images/drawer-overlay-modal@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-overlay.png b/src/imports/controls/imagine/images/drawer-overlay.png
deleted file mode 100644
index e7175b46..00000000
--- a/src/imports/controls/imagine/images/drawer-overlay.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-overlay@2x.png b/src/imports/controls/imagine/images/drawer-overlay@2x.png
deleted file mode 100644
index db6566e0..00000000
--- a/src/imports/controls/imagine/images/drawer-overlay@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-overlay@3x.png b/src/imports/controls/imagine/images/drawer-overlay@3x.png
deleted file mode 100644
index 140e4692..00000000
--- a/src/imports/controls/imagine/images/drawer-overlay@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/drawer-overlay@4x.png b/src/imports/controls/imagine/images/drawer-overlay@4x.png
deleted file mode 100644
index 5115c28a..00000000
--- a/src/imports/controls/imagine/images/drawer-overlay@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/frame-background.9.png b/src/imports/controls/imagine/images/frame-background.9.png
deleted file mode 100644
index 3d3ae702..00000000
--- a/src/imports/controls/imagine/images/frame-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/frame-background@2x.9.png b/src/imports/controls/imagine/images/frame-background@2x.9.png
deleted file mode 100644
index 8df38fe9..00000000
--- a/src/imports/controls/imagine/images/frame-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/frame-background@3x.9.png b/src/imports/controls/imagine/images/frame-background@3x.9.png
deleted file mode 100644
index 41012873..00000000
--- a/src/imports/controls/imagine/images/frame-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/frame-background@4x.9.png b/src/imports/controls/imagine/images/frame-background@4x.9.png
deleted file mode 100644
index 7da718de..00000000
--- a/src/imports/controls/imagine/images/frame-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/groupbox-background.9.png b/src/imports/controls/imagine/images/groupbox-background.9.png
deleted file mode 100644
index 3d3ae702..00000000
--- a/src/imports/controls/imagine/images/groupbox-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/groupbox-background@2x.9.png b/src/imports/controls/imagine/images/groupbox-background@2x.9.png
deleted file mode 100644
index 8df38fe9..00000000
--- a/src/imports/controls/imagine/images/groupbox-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/groupbox-background@3x.9.png b/src/imports/controls/imagine/images/groupbox-background@3x.9.png
deleted file mode 100644
index 41012873..00000000
--- a/src/imports/controls/imagine/images/groupbox-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/groupbox-background@4x.9.png b/src/imports/controls/imagine/images/groupbox-background@4x.9.png
deleted file mode 100644
index 7da718de..00000000
--- a/src/imports/controls/imagine/images/groupbox-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/groupbox-title.9.png b/src/imports/controls/imagine/images/groupbox-title.9.png
deleted file mode 100644
index e7585354..00000000
--- a/src/imports/controls/imagine/images/groupbox-title.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/groupbox-title@2x.9.png b/src/imports/controls/imagine/images/groupbox-title@2x.9.png
deleted file mode 100644
index 3b8e23e3..00000000
--- a/src/imports/controls/imagine/images/groupbox-title@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/groupbox-title@3x.9.png b/src/imports/controls/imagine/images/groupbox-title@3x.9.png
deleted file mode 100644
index 7ed67b27..00000000
--- a/src/imports/controls/imagine/images/groupbox-title@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/groupbox-title@4x.9.png b/src/imports/controls/imagine/images/groupbox-title@4x.9.png
deleted file mode 100644
index 478bf1de..00000000
--- a/src/imports/controls/imagine/images/groupbox-title@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-disabled.9.png b/src/imports/controls/imagine/images/itemdelegate-background-disabled.9.png
deleted file mode 100644
index 4b56fe35..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-disabled@2x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-disabled@2x.9.png
deleted file mode 100644
index 34edef58..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-disabled@3x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-disabled@3x.9.png
deleted file mode 100644
index dd2cc6ba..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-disabled@4x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-disabled@4x.9.png
deleted file mode 100644
index b7890a3c..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-focused.9.png b/src/imports/controls/imagine/images/itemdelegate-background-focused.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-focused@2x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-focused@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-focused@3x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-focused@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-focused@4x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-focused@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-highlighted.9.png b/src/imports/controls/imagine/images/itemdelegate-background-highlighted.9.png
deleted file mode 100644
index 32847cfa..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-highlighted.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-highlighted@2x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-highlighted@2x.9.png
deleted file mode 100644
index 126fcb29..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-highlighted@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-highlighted@3x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-highlighted@3x.9.png
deleted file mode 100644
index 22b7c9f2..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-highlighted@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-highlighted@4x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-highlighted@4x.9.png
deleted file mode 100644
index 4e67f310..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-highlighted@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-hovered.9.png b/src/imports/controls/imagine/images/itemdelegate-background-hovered.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-hovered@2x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-hovered@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-hovered@3x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-hovered@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-hovered@4x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-hovered@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-pressed.9.png b/src/imports/controls/imagine/images/itemdelegate-background-pressed.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-pressed@2x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-pressed@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-pressed@3x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-pressed@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background-pressed@4x.9.png b/src/imports/controls/imagine/images/itemdelegate-background-pressed@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background.9.png b/src/imports/controls/imagine/images/itemdelegate-background.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background@2x.9.png b/src/imports/controls/imagine/images/itemdelegate-background@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background@3x.9.png b/src/imports/controls/imagine/images/itemdelegate-background@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/itemdelegate-background@4x.9.png b/src/imports/controls/imagine/images/itemdelegate-background@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/itemdelegate-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menu-background.9.png b/src/imports/controls/imagine/images/menu-background.9.png
deleted file mode 100644
index 8253612c..00000000
--- a/src/imports/controls/imagine/images/menu-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menu-background@2x.9.png b/src/imports/controls/imagine/images/menu-background@2x.9.png
deleted file mode 100644
index 55438bde..00000000
--- a/src/imports/controls/imagine/images/menu-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menu-background@3x.9.png b/src/imports/controls/imagine/images/menu-background@3x.9.png
deleted file mode 100644
index 7be5da41..00000000
--- a/src/imports/controls/imagine/images/menu-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menu-background@4x.9.png b/src/imports/controls/imagine/images/menu-background@4x.9.png
deleted file mode 100644
index 6e8588ff..00000000
--- a/src/imports/controls/imagine/images/menu-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-disabled.png b/src/imports/controls/imagine/images/menuitem-arrow-disabled.png
deleted file mode 100644
index 4d681e2b..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-disabled@2x.png b/src/imports/controls/imagine/images/menuitem-arrow-disabled@2x.png
deleted file mode 100644
index cddc7844..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-disabled@3x.png b/src/imports/controls/imagine/images/menuitem-arrow-disabled@3x.png
deleted file mode 100644
index 4546de35..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-disabled@4x.png b/src/imports/controls/imagine/images/menuitem-arrow-disabled@4x.png
deleted file mode 100644
index cd403df0..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled.png b/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled.png
deleted file mode 100644
index ac94a9a8..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@2x.png b/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@2x.png
deleted file mode 100644
index 5533cdc1..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@3x.png b/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@3x.png
deleted file mode 100644
index a3796957..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@4x.png b/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@4x.png
deleted file mode 100644
index 47a6a0b9..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-mirrored-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-mirrored.png b/src/imports/controls/imagine/images/menuitem-arrow-mirrored.png
deleted file mode 100644
index 95dbe3dd..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-mirrored.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-mirrored@2x.png b/src/imports/controls/imagine/images/menuitem-arrow-mirrored@2x.png
deleted file mode 100644
index 53978404..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-mirrored@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-mirrored@3x.png b/src/imports/controls/imagine/images/menuitem-arrow-mirrored@3x.png
deleted file mode 100644
index f922f3c2..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-mirrored@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow-mirrored@4x.png b/src/imports/controls/imagine/images/menuitem-arrow-mirrored@4x.png
deleted file mode 100644
index c2a7b8ad..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow-mirrored@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow.png b/src/imports/controls/imagine/images/menuitem-arrow.png
deleted file mode 100644
index eac2d6d2..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow@2x.png b/src/imports/controls/imagine/images/menuitem-arrow@2x.png
deleted file mode 100644
index 008ca41a..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow@3x.png b/src/imports/controls/imagine/images/menuitem-arrow@3x.png
deleted file mode 100644
index 83c8a27c..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-arrow@4x.png b/src/imports/controls/imagine/images/menuitem-arrow@4x.png
deleted file mode 100644
index d838880e..00000000
--- a/src/imports/controls/imagine/images/menuitem-arrow@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-background-highlighted.9.png b/src/imports/controls/imagine/images/menuitem-background-highlighted.9.png
deleted file mode 100644
index 4cc1f069..00000000
--- a/src/imports/controls/imagine/images/menuitem-background-highlighted.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-background-highlighted@2x.9.png b/src/imports/controls/imagine/images/menuitem-background-highlighted@2x.9.png
deleted file mode 100644
index b44793d6..00000000
--- a/src/imports/controls/imagine/images/menuitem-background-highlighted@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-background-highlighted@3x.9.png b/src/imports/controls/imagine/images/menuitem-background-highlighted@3x.9.png
deleted file mode 100644
index ae0acfb7..00000000
--- a/src/imports/controls/imagine/images/menuitem-background-highlighted@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-background-highlighted@4x.9.png b/src/imports/controls/imagine/images/menuitem-background-highlighted@4x.9.png
deleted file mode 100644
index dbb09c33..00000000
--- a/src/imports/controls/imagine/images/menuitem-background-highlighted@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-background.9.png b/src/imports/controls/imagine/images/menuitem-background.9.png
deleted file mode 100644
index 1fd1f099..00000000
--- a/src/imports/controls/imagine/images/menuitem-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-background@2x.9.png b/src/imports/controls/imagine/images/menuitem-background@2x.9.png
deleted file mode 100644
index 1b30ac3b..00000000
--- a/src/imports/controls/imagine/images/menuitem-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-background@3x.9.png b/src/imports/controls/imagine/images/menuitem-background@3x.9.png
deleted file mode 100644
index b0012628..00000000
--- a/src/imports/controls/imagine/images/menuitem-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-background@4x.9.png b/src/imports/controls/imagine/images/menuitem-background@4x.9.png
deleted file mode 100644
index 1312abee..00000000
--- a/src/imports/controls/imagine/images/menuitem-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-focused.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-focused.png
deleted file mode 100644
index f22ebf09..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@2x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@2x.png
deleted file mode 100644
index fd3080a1..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@3x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@3x.png
deleted file mode 100644
index 6393373f..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@4x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@4x.png
deleted file mode 100644
index 32dedb7f..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered.png
deleted file mode 100644
index f22ebf09..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@2x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@2x.png
deleted file mode 100644
index fd3080a1..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@3x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@3x.png
deleted file mode 100644
index 6393373f..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@4x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@4x.png
deleted file mode 100644
index 32dedb7f..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed.png
deleted file mode 100644
index 846416aa..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@2x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@2x.png
deleted file mode 100644
index bc85bf94..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@3x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@3x.png
deleted file mode 100644
index 17ef9e58..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@4x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@4x.png
deleted file mode 100644
index 7e9dd750..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked.png b/src/imports/controls/imagine/images/menuitem-indicator-checked.png
deleted file mode 100644
index f06cc5f6..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked@2x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked@2x.png
deleted file mode 100644
index 3db78a17..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked@3x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked@3x.png
deleted file mode 100644
index eadb5968..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-checked@4x.png b/src/imports/controls/imagine/images/menuitem-indicator-checked@4x.png
deleted file mode 100644
index 9bdfac8a..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-disabled.png b/src/imports/controls/imagine/images/menuitem-indicator-disabled.png
deleted file mode 100644
index a8305968..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-disabled@2x.png b/src/imports/controls/imagine/images/menuitem-indicator-disabled@2x.png
deleted file mode 100644
index e8046c5e..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-disabled@3x.png b/src/imports/controls/imagine/images/menuitem-indicator-disabled@3x.png
deleted file mode 100644
index d44111bb..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-disabled@4x.png b/src/imports/controls/imagine/images/menuitem-indicator-disabled@4x.png
deleted file mode 100644
index 24fa0c0d..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-focused.png b/src/imports/controls/imagine/images/menuitem-indicator-focused.png
deleted file mode 100644
index 1c598c1f..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-focused@2x.png b/src/imports/controls/imagine/images/menuitem-indicator-focused@2x.png
deleted file mode 100644
index 31ff320e..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-focused@3x.png b/src/imports/controls/imagine/images/menuitem-indicator-focused@3x.png
deleted file mode 100644
index 15a1b487..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-focused@4x.png b/src/imports/controls/imagine/images/menuitem-indicator-focused@4x.png
deleted file mode 100644
index db11c0c1..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-hovered.png b/src/imports/controls/imagine/images/menuitem-indicator-hovered.png
deleted file mode 100644
index 1c598c1f..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-hovered@2x.png b/src/imports/controls/imagine/images/menuitem-indicator-hovered@2x.png
deleted file mode 100644
index 31ff320e..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-hovered@3x.png b/src/imports/controls/imagine/images/menuitem-indicator-hovered@3x.png
deleted file mode 100644
index 15a1b487..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-hovered@4x.png b/src/imports/controls/imagine/images/menuitem-indicator-hovered@4x.png
deleted file mode 100644
index db11c0c1..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-pressed.png b/src/imports/controls/imagine/images/menuitem-indicator-pressed.png
deleted file mode 100644
index e4f02db1..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-pressed@2x.png b/src/imports/controls/imagine/images/menuitem-indicator-pressed@2x.png
deleted file mode 100644
index e2342547..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-pressed@3x.png b/src/imports/controls/imagine/images/menuitem-indicator-pressed@3x.png
deleted file mode 100644
index 8ae24d75..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator-pressed@4x.png b/src/imports/controls/imagine/images/menuitem-indicator-pressed@4x.png
deleted file mode 100644
index 04a32370..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator.png b/src/imports/controls/imagine/images/menuitem-indicator.png
deleted file mode 100644
index d7b4c6d1..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator@2x.png b/src/imports/controls/imagine/images/menuitem-indicator@2x.png
deleted file mode 100644
index 0ae3fa8f..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator@3x.png b/src/imports/controls/imagine/images/menuitem-indicator@3x.png
deleted file mode 100644
index f8de503c..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuitem-indicator@4x.png b/src/imports/controls/imagine/images/menuitem-indicator@4x.png
deleted file mode 100644
index 4f16042d..00000000
--- a/src/imports/controls/imagine/images/menuitem-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuseparator-separator.9.png b/src/imports/controls/imagine/images/menuseparator-separator.9.png
deleted file mode 100644
index a40feb65..00000000
--- a/src/imports/controls/imagine/images/menuseparator-separator.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuseparator-separator@2x.9.png b/src/imports/controls/imagine/images/menuseparator-separator@2x.9.png
deleted file mode 100644
index afb99248..00000000
--- a/src/imports/controls/imagine/images/menuseparator-separator@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuseparator-separator@3x.9.png b/src/imports/controls/imagine/images/menuseparator-separator@3x.9.png
deleted file mode 100644
index 197400e0..00000000
--- a/src/imports/controls/imagine/images/menuseparator-separator@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/menuseparator-separator@4x.9.png b/src/imports/controls/imagine/images/menuseparator-separator@4x.9.png
deleted file mode 100644
index c4b4ca98..00000000
--- a/src/imports/controls/imagine/images/menuseparator-separator@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/page-background.png b/src/imports/controls/imagine/images/page-background.png
deleted file mode 100644
index 01eb7c73..00000000
--- a/src/imports/controls/imagine/images/page-background.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/page-background@2x.png b/src/imports/controls/imagine/images/page-background@2x.png
deleted file mode 100644
index 72be785c..00000000
--- a/src/imports/controls/imagine/images/page-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/page-background@3x.png b/src/imports/controls/imagine/images/page-background@3x.png
deleted file mode 100644
index a488f592..00000000
--- a/src/imports/controls/imagine/images/page-background@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/page-background@4x.png b/src/imports/controls/imagine/images/page-background@4x.png
deleted file mode 100644
index 9343da95..00000000
--- a/src/imports/controls/imagine/images/page-background@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-current.png b/src/imports/controls/imagine/images/pageindicator-delegate-current.png
deleted file mode 100644
index 002b76e9..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-current.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-current@2x.png b/src/imports/controls/imagine/images/pageindicator-delegate-current@2x.png
deleted file mode 100644
index 47fc8d5a..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-current@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-current@3x.png b/src/imports/controls/imagine/images/pageindicator-delegate-current@3x.png
deleted file mode 100644
index e6bfd1e9..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-current@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-current@4x.png b/src/imports/controls/imagine/images/pageindicator-delegate-current@4x.png
deleted file mode 100644
index f7c7248f..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-current@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current.png b/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current.png
deleted file mode 100644
index 8aae9d8b..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@2x.png b/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@2x.png
deleted file mode 100644
index b5a65c9e..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@3x.png b/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@3x.png
deleted file mode 100644
index 8a3e10e1..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@4x.png b/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@4x.png
deleted file mode 100644
index 58c3d3b8..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-disabled-current@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-disabled.png b/src/imports/controls/imagine/images/pageindicator-delegate-disabled.png
deleted file mode 100644
index 8aae9d8b..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-disabled@2x.png b/src/imports/controls/imagine/images/pageindicator-delegate-disabled@2x.png
deleted file mode 100644
index b5a65c9e..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-disabled@3x.png b/src/imports/controls/imagine/images/pageindicator-delegate-disabled@3x.png
deleted file mode 100644
index 8a3e10e1..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-disabled@4x.png b/src/imports/controls/imagine/images/pageindicator-delegate-disabled@4x.png
deleted file mode 100644
index 58c3d3b8..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-pressed.png b/src/imports/controls/imagine/images/pageindicator-delegate-pressed.png
deleted file mode 100644
index 002b76e9..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-pressed@2x.png b/src/imports/controls/imagine/images/pageindicator-delegate-pressed@2x.png
deleted file mode 100644
index 47fc8d5a..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-pressed@3x.png b/src/imports/controls/imagine/images/pageindicator-delegate-pressed@3x.png
deleted file mode 100644
index e6bfd1e9..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate-pressed@4x.png b/src/imports/controls/imagine/images/pageindicator-delegate-pressed@4x.png
deleted file mode 100644
index f7c7248f..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate.png b/src/imports/controls/imagine/images/pageindicator-delegate.png
deleted file mode 100644
index 9e13a5ac..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate@2x.png b/src/imports/controls/imagine/images/pageindicator-delegate@2x.png
deleted file mode 100644
index 806b7e22..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate@3x.png b/src/imports/controls/imagine/images/pageindicator-delegate@3x.png
deleted file mode 100644
index 05e8f362..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pageindicator-delegate@4x.png b/src/imports/controls/imagine/images/pageindicator-delegate@4x.png
deleted file mode 100644
index 1ac5ccda..00000000
--- a/src/imports/controls/imagine/images/pageindicator-delegate@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pane-background.9.png b/src/imports/controls/imagine/images/pane-background.9.png
deleted file mode 100644
index 5024788e..00000000
--- a/src/imports/controls/imagine/images/pane-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pane-background@2x.9.png b/src/imports/controls/imagine/images/pane-background@2x.9.png
deleted file mode 100644
index 1ed91fee..00000000
--- a/src/imports/controls/imagine/images/pane-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pane-background@3x.9.png b/src/imports/controls/imagine/images/pane-background@3x.9.png
deleted file mode 100644
index c85e09f2..00000000
--- a/src/imports/controls/imagine/images/pane-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/pane-background@4x.9.png b/src/imports/controls/imagine/images/pane-background@4x.9.png
deleted file mode 100644
index e117bed0..00000000
--- a/src/imports/controls/imagine/images/pane-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-background.9.png b/src/imports/controls/imagine/images/popup-background.9.png
deleted file mode 100644
index 495d2f0d..00000000
--- a/src/imports/controls/imagine/images/popup-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-background@2x.9.png b/src/imports/controls/imagine/images/popup-background@2x.9.png
deleted file mode 100644
index ba0df866..00000000
--- a/src/imports/controls/imagine/images/popup-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-background@3x.9.png b/src/imports/controls/imagine/images/popup-background@3x.9.png
deleted file mode 100644
index e71856a5..00000000
--- a/src/imports/controls/imagine/images/popup-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-background@4x.9.png b/src/imports/controls/imagine/images/popup-background@4x.9.png
deleted file mode 100644
index d756cda5..00000000
--- a/src/imports/controls/imagine/images/popup-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-overlay-modal.png b/src/imports/controls/imagine/images/popup-overlay-modal.png
deleted file mode 100644
index 296e914a..00000000
--- a/src/imports/controls/imagine/images/popup-overlay-modal.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-overlay-modal@2x.png b/src/imports/controls/imagine/images/popup-overlay-modal@2x.png
deleted file mode 100644
index 10c89300..00000000
--- a/src/imports/controls/imagine/images/popup-overlay-modal@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-overlay-modal@3x.png b/src/imports/controls/imagine/images/popup-overlay-modal@3x.png
deleted file mode 100644
index f65996e9..00000000
--- a/src/imports/controls/imagine/images/popup-overlay-modal@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-overlay-modal@4x.png b/src/imports/controls/imagine/images/popup-overlay-modal@4x.png
deleted file mode 100644
index a586f381..00000000
--- a/src/imports/controls/imagine/images/popup-overlay-modal@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-overlay.png b/src/imports/controls/imagine/images/popup-overlay.png
deleted file mode 100644
index e7175b46..00000000
--- a/src/imports/controls/imagine/images/popup-overlay.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-overlay@2x.png b/src/imports/controls/imagine/images/popup-overlay@2x.png
deleted file mode 100644
index db6566e0..00000000
--- a/src/imports/controls/imagine/images/popup-overlay@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-overlay@3x.png b/src/imports/controls/imagine/images/popup-overlay@3x.png
deleted file mode 100644
index 140e4692..00000000
--- a/src/imports/controls/imagine/images/popup-overlay@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/popup-overlay@4x.png b/src/imports/controls/imagine/images/popup-overlay@4x.png
deleted file mode 100644
index 5115c28a..00000000
--- a/src/imports/controls/imagine/images/popup-overlay@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-animation.webp b/src/imports/controls/imagine/images/progressbar-animation.webp
deleted file mode 100644
index 51c35c88..00000000
--- a/src/imports/controls/imagine/images/progressbar-animation.webp
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-animation@2x.webp b/src/imports/controls/imagine/images/progressbar-animation@2x.webp
deleted file mode 100644
index ee120630..00000000
--- a/src/imports/controls/imagine/images/progressbar-animation@2x.webp
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-animation@3x.webp b/src/imports/controls/imagine/images/progressbar-animation@3x.webp
deleted file mode 100644
index c2f94a74..00000000
--- a/src/imports/controls/imagine/images/progressbar-animation@3x.webp
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-animation@4x.webp b/src/imports/controls/imagine/images/progressbar-animation@4x.webp
deleted file mode 100644
index d49657e9..00000000
--- a/src/imports/controls/imagine/images/progressbar-animation@4x.webp
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-background.9.png b/src/imports/controls/imagine/images/progressbar-background.9.png
deleted file mode 100644
index 5a8d5ad3..00000000
--- a/src/imports/controls/imagine/images/progressbar-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-background@2x.9.png b/src/imports/controls/imagine/images/progressbar-background@2x.9.png
deleted file mode 100644
index 057f28ff..00000000
--- a/src/imports/controls/imagine/images/progressbar-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-background@3x.9.png b/src/imports/controls/imagine/images/progressbar-background@3x.9.png
deleted file mode 100644
index 283f7f72..00000000
--- a/src/imports/controls/imagine/images/progressbar-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-background@4x.9.png b/src/imports/controls/imagine/images/progressbar-background@4x.9.png
deleted file mode 100644
index 0eb1d884..00000000
--- a/src/imports/controls/imagine/images/progressbar-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-mask.9.png b/src/imports/controls/imagine/images/progressbar-mask.9.png
deleted file mode 100644
index 23ddb24e..00000000
--- a/src/imports/controls/imagine/images/progressbar-mask.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-mask@2x.9.png b/src/imports/controls/imagine/images/progressbar-mask@2x.9.png
deleted file mode 100644
index 30d53bdf..00000000
--- a/src/imports/controls/imagine/images/progressbar-mask@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-mask@3x.9.png b/src/imports/controls/imagine/images/progressbar-mask@3x.9.png
deleted file mode 100644
index 0181c822..00000000
--- a/src/imports/controls/imagine/images/progressbar-mask@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-mask@4x.9.png b/src/imports/controls/imagine/images/progressbar-mask@4x.9.png
deleted file mode 100644
index f3914cdd..00000000
--- a/src/imports/controls/imagine/images/progressbar-mask@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-progress.png b/src/imports/controls/imagine/images/progressbar-progress.png
deleted file mode 100644
index 9283df02..00000000
--- a/src/imports/controls/imagine/images/progressbar-progress.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-progress@2x.png b/src/imports/controls/imagine/images/progressbar-progress@2x.png
deleted file mode 100644
index efd58da5..00000000
--- a/src/imports/controls/imagine/images/progressbar-progress@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-progress@3x.png b/src/imports/controls/imagine/images/progressbar-progress@3x.png
deleted file mode 100644
index 5372fc55..00000000
--- a/src/imports/controls/imagine/images/progressbar-progress@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/progressbar-progress@4x.png b/src/imports/controls/imagine/images/progressbar-progress@4x.png
deleted file mode 100644
index 85925c61..00000000
--- a/src/imports/controls/imagine/images/progressbar-progress@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused.png
deleted file mode 100644
index 8fb9da47..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@2x.png
deleted file mode 100644
index 86f8043e..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@3x.png
deleted file mode 100644
index 4350141e..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@4x.png
deleted file mode 100644
index 3573f597..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered.png
deleted file mode 100644
index 8fb9da47..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@2x.png
deleted file mode 100644
index 86f8043e..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@3x.png
deleted file mode 100644
index 4350141e..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@4x.png
deleted file mode 100644
index 3573f597..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed.png
deleted file mode 100644
index e69d4ca0..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@2x.png
deleted file mode 100644
index 48f2ff88..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@3x.png
deleted file mode 100644
index 3eb80f03..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@4x.png
deleted file mode 100644
index 1f02e059..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked.png
deleted file mode 100644
index dfa8106d..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked@2x.png
deleted file mode 100644
index f8696dca..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked@3x.png
deleted file mode 100644
index 98113a6d..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-checked@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator-checked@4x.png
deleted file mode 100644
index ec9005e1..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-disabled.png b/src/imports/controls/imagine/images/radiobutton-indicator-disabled.png
deleted file mode 100644
index 4a32fe70..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-disabled@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator-disabled@2x.png
deleted file mode 100644
index 4bd16861..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-disabled@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator-disabled@3x.png
deleted file mode 100644
index 510e355e..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-disabled@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator-disabled@4x.png
deleted file mode 100644
index fba264de..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-focused.png b/src/imports/controls/imagine/images/radiobutton-indicator-focused.png
deleted file mode 100644
index 5c0ce213..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-focused@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator-focused@2x.png
deleted file mode 100644
index 5219d908..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-focused@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator-focused@3x.png
deleted file mode 100644
index eecc21bf..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-focused@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator-focused@4x.png
deleted file mode 100644
index 8e6bb9bd..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-hovered.png b/src/imports/controls/imagine/images/radiobutton-indicator-hovered.png
deleted file mode 100644
index 5c0ce213..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-hovered@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator-hovered@2x.png
deleted file mode 100644
index 5219d908..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-hovered@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator-hovered@3x.png
deleted file mode 100644
index eecc21bf..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-hovered@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator-hovered@4x.png
deleted file mode 100644
index 8e6bb9bd..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-pressed.png b/src/imports/controls/imagine/images/radiobutton-indicator-pressed.png
deleted file mode 100644
index d9a1cd01..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-pressed@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator-pressed@2x.png
deleted file mode 100644
index e3cd65cb..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-pressed@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator-pressed@3x.png
deleted file mode 100644
index 7857bff7..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator-pressed@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator-pressed@4x.png
deleted file mode 100644
index 7f3b3548..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator.png b/src/imports/controls/imagine/images/radiobutton-indicator.png
deleted file mode 100644
index 7f7a88ad..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator@2x.png b/src/imports/controls/imagine/images/radiobutton-indicator@2x.png
deleted file mode 100644
index 250117b4..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator@3x.png b/src/imports/controls/imagine/images/radiobutton-indicator@3x.png
deleted file mode 100644
index 5011f4da..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiobutton-indicator@4x.png b/src/imports/controls/imagine/images/radiobutton-indicator@4x.png
deleted file mode 100644
index 538f11a1..00000000
--- a/src/imports/controls/imagine/images/radiobutton-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-disabled.9.png b/src/imports/controls/imagine/images/radiodelegate-background-disabled.9.png
deleted file mode 100644
index 4b56fe35..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-disabled@2x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-disabled@2x.9.png
deleted file mode 100644
index 34edef58..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-disabled@3x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-disabled@3x.9.png
deleted file mode 100644
index dd2cc6ba..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-disabled@4x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-disabled@4x.9.png
deleted file mode 100644
index b7890a3c..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-focused.9.png b/src/imports/controls/imagine/images/radiodelegate-background-focused.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-focused@2x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-focused@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-focused@3x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-focused@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-focused@4x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-focused@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-highlighted.9.png b/src/imports/controls/imagine/images/radiodelegate-background-highlighted.9.png
deleted file mode 100644
index 32847cfa..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-highlighted.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-highlighted@2x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-highlighted@2x.9.png
deleted file mode 100644
index 126fcb29..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-highlighted@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-highlighted@3x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-highlighted@3x.9.png
deleted file mode 100644
index 22b7c9f2..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-highlighted@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-highlighted@4x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-highlighted@4x.9.png
deleted file mode 100644
index 4e67f310..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-highlighted@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-hovered.9.png b/src/imports/controls/imagine/images/radiodelegate-background-hovered.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-hovered@2x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-hovered@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-hovered@3x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-hovered@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-hovered@4x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-hovered@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-pressed.9.png b/src/imports/controls/imagine/images/radiodelegate-background-pressed.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-pressed@2x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-pressed@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-pressed@3x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-pressed@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background-pressed@4x.9.png b/src/imports/controls/imagine/images/radiodelegate-background-pressed@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background.9.png b/src/imports/controls/imagine/images/radiodelegate-background.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background@2x.9.png b/src/imports/controls/imagine/images/radiodelegate-background@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background@3x.9.png b/src/imports/controls/imagine/images/radiodelegate-background@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-background@4x.9.png b/src/imports/controls/imagine/images/radiodelegate-background@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused.png
deleted file mode 100644
index 8fb9da47..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@2x.png
deleted file mode 100644
index 86f8043e..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@3x.png
deleted file mode 100644
index 4350141e..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@4x.png
deleted file mode 100644
index 3573f597..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered.png
deleted file mode 100644
index 8fb9da47..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@2x.png
deleted file mode 100644
index 86f8043e..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@3x.png
deleted file mode 100644
index 4350141e..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@4x.png
deleted file mode 100644
index 3573f597..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed.png
deleted file mode 100644
index e69d4ca0..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@2x.png
deleted file mode 100644
index 48f2ff88..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@3x.png
deleted file mode 100644
index 3eb80f03..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@4x.png
deleted file mode 100644
index 1f02e059..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked.png
deleted file mode 100644
index dfa8106d..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked@2x.png
deleted file mode 100644
index f8696dca..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked@3x.png
deleted file mode 100644
index 98113a6d..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-checked@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-checked@4x.png
deleted file mode 100644
index ec9005e1..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-disabled.png b/src/imports/controls/imagine/images/radiodelegate-indicator-disabled.png
deleted file mode 100644
index 4a32fe70..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@2x.png
deleted file mode 100644
index 4bd16861..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@3x.png
deleted file mode 100644
index 510e355e..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@4x.png
deleted file mode 100644
index fba264de..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-focused.png b/src/imports/controls/imagine/images/radiodelegate-indicator-focused.png
deleted file mode 100644
index 5c0ce213..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-focused@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-focused@2x.png
deleted file mode 100644
index 5219d908..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-focused@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-focused@3x.png
deleted file mode 100644
index eecc21bf..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-focused@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-focused@4x.png
deleted file mode 100644
index 8e6bb9bd..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-hovered.png b/src/imports/controls/imagine/images/radiodelegate-indicator-hovered.png
deleted file mode 100644
index 5c0ce213..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@2x.png
deleted file mode 100644
index 5219d908..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@3x.png
deleted file mode 100644
index eecc21bf..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@4x.png
deleted file mode 100644
index 8e6bb9bd..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-pressed.png b/src/imports/controls/imagine/images/radiodelegate-indicator-pressed.png
deleted file mode 100644
index d9a1cd01..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@2x.png
deleted file mode 100644
index e3cd65cb..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@3x.png
deleted file mode 100644
index 7857bff7..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@4x.png
deleted file mode 100644
index 7f3b3548..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator.png b/src/imports/controls/imagine/images/radiodelegate-indicator.png
deleted file mode 100644
index 7f7a88ad..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator@2x.png b/src/imports/controls/imagine/images/radiodelegate-indicator@2x.png
deleted file mode 100644
index 250117b4..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator@3x.png b/src/imports/controls/imagine/images/radiodelegate-indicator@3x.png
deleted file mode 100644
index 5011f4da..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/radiodelegate-indicator@4x.png b/src/imports/controls/imagine/images/radiodelegate-indicator@4x.png
deleted file mode 100644
index 538f11a1..00000000
--- a/src/imports/controls/imagine/images/radiodelegate-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-background-horizontal.9.png b/src/imports/controls/imagine/images/rangeslider-background-horizontal.9.png
deleted file mode 100644
index 1493d559..00000000
--- a/src/imports/controls/imagine/images/rangeslider-background-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-background-horizontal@2x.9.png b/src/imports/controls/imagine/images/rangeslider-background-horizontal@2x.9.png
deleted file mode 100644
index 64c87e20..00000000
--- a/src/imports/controls/imagine/images/rangeslider-background-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-background-horizontal@3x.9.png b/src/imports/controls/imagine/images/rangeslider-background-horizontal@3x.9.png
deleted file mode 100644
index 7ed7de73..00000000
--- a/src/imports/controls/imagine/images/rangeslider-background-horizontal@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-background-horizontal@4x.9.png b/src/imports/controls/imagine/images/rangeslider-background-horizontal@4x.9.png
deleted file mode 100644
index 7c45cc7d..00000000
--- a/src/imports/controls/imagine/images/rangeslider-background-horizontal@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-background-vertical.9.png b/src/imports/controls/imagine/images/rangeslider-background-vertical.9.png
deleted file mode 100644
index 5866879c..00000000
--- a/src/imports/controls/imagine/images/rangeslider-background-vertical.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-background-vertical@2x.9.png b/src/imports/controls/imagine/images/rangeslider-background-vertical@2x.9.png
deleted file mode 100644
index f3928ec5..00000000
--- a/src/imports/controls/imagine/images/rangeslider-background-vertical@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-background-vertical@3x.9.png b/src/imports/controls/imagine/images/rangeslider-background-vertical@3x.9.png
deleted file mode 100644
index f49dcb95..00000000
--- a/src/imports/controls/imagine/images/rangeslider-background-vertical@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-background-vertical@4x.9.png b/src/imports/controls/imagine/images/rangeslider-background-vertical@4x.9.png
deleted file mode 100644
index e7203f99..00000000
--- a/src/imports/controls/imagine/images/rangeslider-background-vertical@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-disabled.png b/src/imports/controls/imagine/images/rangeslider-handle-disabled.png
deleted file mode 100644
index 88ea4699..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-disabled@2x.png b/src/imports/controls/imagine/images/rangeslider-handle-disabled@2x.png
deleted file mode 100644
index 3cad66e2..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-disabled@3x.png b/src/imports/controls/imagine/images/rangeslider-handle-disabled@3x.png
deleted file mode 100644
index 18b7482c..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-disabled@4x.png b/src/imports/controls/imagine/images/rangeslider-handle-disabled@4x.png
deleted file mode 100644
index 1d03b803..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered.png b/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered.png
deleted file mode 100644
index 5787bc8d..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@2x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@2x.png
deleted file mode 100644
index 0663628f..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@3x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@3x.png
deleted file mode 100644
index cb6149d3..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@4x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@4x.png
deleted file mode 100644
index 21484332..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed.png b/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed.png
deleted file mode 100644
index 5787bc8d..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@2x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@2x.png
deleted file mode 100644
index 0663628f..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@3x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@3x.png
deleted file mode 100644
index cb6149d3..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@4x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@4x.png
deleted file mode 100644
index 21484332..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused.png b/src/imports/controls/imagine/images/rangeslider-handle-focused.png
deleted file mode 100644
index 0a0ab739..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused@2x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused@2x.png
deleted file mode 100644
index 8ced0916..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused@3x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused@3x.png
deleted file mode 100644
index a7bdc453..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-focused@4x.png b/src/imports/controls/imagine/images/rangeslider-handle-focused@4x.png
deleted file mode 100644
index 5827d534..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-hovered.png b/src/imports/controls/imagine/images/rangeslider-handle-hovered.png
deleted file mode 100644
index 88ea4699..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-hovered@2x.png b/src/imports/controls/imagine/images/rangeslider-handle-hovered@2x.png
deleted file mode 100644
index 3cad66e2..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-hovered@3x.png b/src/imports/controls/imagine/images/rangeslider-handle-hovered@3x.png
deleted file mode 100644
index 18b7482c..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-hovered@4x.png b/src/imports/controls/imagine/images/rangeslider-handle-hovered@4x.png
deleted file mode 100644
index 1d03b803..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-pressed.png b/src/imports/controls/imagine/images/rangeslider-handle-pressed.png
deleted file mode 100644
index 88ea4699..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-pressed@2x.png b/src/imports/controls/imagine/images/rangeslider-handle-pressed@2x.png
deleted file mode 100644
index 3cad66e2..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-pressed@3x.png b/src/imports/controls/imagine/images/rangeslider-handle-pressed@3x.png
deleted file mode 100644
index 18b7482c..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle-pressed@4x.png b/src/imports/controls/imagine/images/rangeslider-handle-pressed@4x.png
deleted file mode 100644
index 1d03b803..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle.png b/src/imports/controls/imagine/images/rangeslider-handle.png
deleted file mode 100644
index 370f5141..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle@2x.png b/src/imports/controls/imagine/images/rangeslider-handle@2x.png
deleted file mode 100644
index d98f56d3..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle@3x.png b/src/imports/controls/imagine/images/rangeslider-handle@3x.png
deleted file mode 100644
index a6e12b61..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-handle@4x.png b/src/imports/controls/imagine/images/rangeslider-handle@4x.png
deleted file mode 100644
index 194e3496..00000000
--- a/src/imports/controls/imagine/images/rangeslider-handle@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled.9.png b/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled.9.png
deleted file mode 100644
index d3a87e37..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@2x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@2x.9.png
deleted file mode 100644
index b87350eb..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@3x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@3x.9.png
deleted file mode 100644
index a5b7b80c..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@4x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@4x.9.png
deleted file mode 100644
index 47975047..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-horizontal-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-horizontal.9.png b/src/imports/controls/imagine/images/rangeslider-progress-horizontal.9.png
deleted file mode 100644
index 49adc3ec..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-horizontal@2x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-horizontal@2x.9.png
deleted file mode 100644
index b71adeb3..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-horizontal@3x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-horizontal@3x.9.png
deleted file mode 100644
index c78c22b3..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-horizontal@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-horizontal@4x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-horizontal@4x.9.png
deleted file mode 100644
index 69142b4e..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-horizontal@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled.9.png b/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled.9.png
deleted file mode 100644
index 6ae0b6b6..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@2x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@2x.9.png
deleted file mode 100644
index dacd2692..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@3x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@3x.9.png
deleted file mode 100644
index 23f5461e..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@4x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@4x.9.png
deleted file mode 100644
index 9ec4cefe..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-vertical-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-vertical.9.png b/src/imports/controls/imagine/images/rangeslider-progress-vertical.9.png
deleted file mode 100644
index c2616422..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-vertical.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-vertical@2x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-vertical@2x.9.png
deleted file mode 100644
index 0339d4cd..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-vertical@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-vertical@3x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-vertical@3x.9.png
deleted file mode 100644
index d1d22e60..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-vertical@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/rangeslider-progress-vertical@4x.9.png b/src/imports/controls/imagine/images/rangeslider-progress-vertical@4x.9.png
deleted file mode 100644
index f9b96a3b..00000000
--- a/src/imports/controls/imagine/images/rangeslider-progress-vertical@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked-focused.png b/src/imports/controls/imagine/images/roundbutton-background-checked-focused.png
deleted file mode 100644
index 543b2d7a..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked-focused@2x.png b/src/imports/controls/imagine/images/roundbutton-background-checked-focused@2x.png
deleted file mode 100644
index 75dceff8..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked-focused@3x.png b/src/imports/controls/imagine/images/roundbutton-background-checked-focused@3x.png
deleted file mode 100644
index c504faaf..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked-focused@4x.png b/src/imports/controls/imagine/images/roundbutton-background-checked-focused@4x.png
deleted file mode 100644
index 65c5ecab..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked-hovered.png b/src/imports/controls/imagine/images/roundbutton-background-checked-hovered.png
deleted file mode 100644
index 543b2d7a..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@2x.png b/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@2x.png
deleted file mode 100644
index 75dceff8..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@3x.png b/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@3x.png
deleted file mode 100644
index c504faaf..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@4x.png b/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@4x.png
deleted file mode 100644
index 65c5ecab..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked.png b/src/imports/controls/imagine/images/roundbutton-background-checked.png
deleted file mode 100644
index e7c15402..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked@2x.png b/src/imports/controls/imagine/images/roundbutton-background-checked@2x.png
deleted file mode 100644
index 6412ae27..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked@3x.png b/src/imports/controls/imagine/images/roundbutton-background-checked@3x.png
deleted file mode 100644
index 7c1523cb..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-checked@4x.png b/src/imports/controls/imagine/images/roundbutton-background-checked@4x.png
deleted file mode 100644
index 887c7579..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-disabled-checked.png b/src/imports/controls/imagine/images/roundbutton-background-disabled-checked.png
deleted file mode 100644
index 4bd16861..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-disabled-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@2x.png b/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@2x.png
deleted file mode 100644
index fba264de..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@3x.png b/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@3x.png
deleted file mode 100644
index 112ee781..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@4x.png b/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@4x.png
deleted file mode 100644
index 8ce10a01..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-disabled-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-disabled.png b/src/imports/controls/imagine/images/roundbutton-background-disabled.png
deleted file mode 100644
index 4bd16861..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-disabled@2x.png b/src/imports/controls/imagine/images/roundbutton-background-disabled@2x.png
deleted file mode 100644
index fba264de..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-disabled@3x.png b/src/imports/controls/imagine/images/roundbutton-background-disabled@3x.png
deleted file mode 100644
index 112ee781..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-disabled@4x.png b/src/imports/controls/imagine/images/roundbutton-background-disabled@4x.png
deleted file mode 100644
index 8ce10a01..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-focused.png b/src/imports/controls/imagine/images/roundbutton-background-focused.png
deleted file mode 100644
index abdada0d..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-focused@2x.png b/src/imports/controls/imagine/images/roundbutton-background-focused@2x.png
deleted file mode 100644
index f90efda1..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-focused@3x.png b/src/imports/controls/imagine/images/roundbutton-background-focused@3x.png
deleted file mode 100644
index b1977d97..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-focused@4x.png b/src/imports/controls/imagine/images/roundbutton-background-focused@4x.png
deleted file mode 100644
index 2efb3dcc..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused.png
deleted file mode 100644
index 64b69500..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@2x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@2x.png
deleted file mode 100644
index 60b211d5..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@3x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@3x.png
deleted file mode 100644
index 4d6e21eb..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@4x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@4x.png
deleted file mode 100644
index 03033c20..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered.png
deleted file mode 100644
index 64b69500..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@2x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@2x.png
deleted file mode 100644
index 60b211d5..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@3x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@3x.png
deleted file mode 100644
index 4d6e21eb..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@4x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@4x.png
deleted file mode 100644
index 03033c20..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed.png
deleted file mode 100644
index 7a2a06f1..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@2x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@2x.png
deleted file mode 100644
index f2eb51e3..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@3x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@3x.png
deleted file mode 100644
index df6eaf4e..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@4x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@4x.png
deleted file mode 100644
index 4465f9da..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted.png
deleted file mode 100644
index f0be8431..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted@2x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted@2x.png
deleted file mode 100644
index dc0ba620..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted@3x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted@3x.png
deleted file mode 100644
index e178c293..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-highlighted@4x.png b/src/imports/controls/imagine/images/roundbutton-background-highlighted@4x.png
deleted file mode 100644
index 85f1fa52..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-highlighted@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-hovered.png b/src/imports/controls/imagine/images/roundbutton-background-hovered.png
deleted file mode 100644
index abdada0d..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-hovered@2x.png b/src/imports/controls/imagine/images/roundbutton-background-hovered@2x.png
deleted file mode 100644
index f90efda1..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-hovered@3x.png b/src/imports/controls/imagine/images/roundbutton-background-hovered@3x.png
deleted file mode 100644
index b1977d97..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-hovered@4x.png b/src/imports/controls/imagine/images/roundbutton-background-hovered@4x.png
deleted file mode 100644
index 2efb3dcc..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-pressed.png b/src/imports/controls/imagine/images/roundbutton-background-pressed.png
deleted file mode 100644
index e7c15402..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-pressed@2x.png b/src/imports/controls/imagine/images/roundbutton-background-pressed@2x.png
deleted file mode 100644
index 6412ae27..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-pressed@3x.png b/src/imports/controls/imagine/images/roundbutton-background-pressed@3x.png
deleted file mode 100644
index 7c1523cb..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background-pressed@4x.png b/src/imports/controls/imagine/images/roundbutton-background-pressed@4x.png
deleted file mode 100644
index 887c7579..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background.png b/src/imports/controls/imagine/images/roundbutton-background.png
deleted file mode 100644
index e3cd65cb..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background@2x.png b/src/imports/controls/imagine/images/roundbutton-background@2x.png
deleted file mode 100644
index 7f3b3548..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background@3x.png b/src/imports/controls/imagine/images/roundbutton-background@3x.png
deleted file mode 100644
index 7988f337..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/roundbutton-background@4x.png b/src/imports/controls/imagine/images/roundbutton-background@4x.png
deleted file mode 100644
index 74dbebae..00000000
--- a/src/imports/controls/imagine/images/roundbutton-background@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-disabled.png b/src/imports/controls/imagine/images/scrollbar-handle-disabled.png
deleted file mode 100644
index d79dcf2a..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-disabled@2x.png b/src/imports/controls/imagine/images/scrollbar-handle-disabled@2x.png
deleted file mode 100644
index 0f751bb2..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-disabled@3x.png b/src/imports/controls/imagine/images/scrollbar-handle-disabled@3x.png
deleted file mode 100644
index 651c4c14..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-disabled@4x.png b/src/imports/controls/imagine/images/scrollbar-handle-disabled@4x.png
deleted file mode 100644
index 46bb4324..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled.png
deleted file mode 100644
index 0ec3de1a..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@2x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@2x.png
deleted file mode 100644
index 6ffaffee..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@3x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@3x.png
deleted file mode 100644
index 8445a158..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@4x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@4x.png
deleted file mode 100644
index 458ce4bf..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered.png
deleted file mode 100644
index c8db3901..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@2x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@2x.png
deleted file mode 100644
index 719d31a0..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@3x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@3x.png
deleted file mode 100644
index 33884426..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@4x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@4x.png
deleted file mode 100644
index 045a6b76..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed.png
deleted file mode 100644
index 771c9e01..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@2x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@2x.png
deleted file mode 100644
index 80397488..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@3x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@3x.png
deleted file mode 100644
index 6b3fbca1..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@4x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@4x.png
deleted file mode 100644
index b505c95d..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive.png
deleted file mode 100644
index a9a67ca6..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive@2x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive@2x.png
deleted file mode 100644
index 60a174bb..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive@3x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive@3x.png
deleted file mode 100644
index af70f46c..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle-interactive@4x.png b/src/imports/controls/imagine/images/scrollbar-handle-interactive@4x.png
deleted file mode 100644
index 1b91108c..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle-interactive@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle.png b/src/imports/controls/imagine/images/scrollbar-handle.png
deleted file mode 100644
index c1d0a009..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle@2x.png b/src/imports/controls/imagine/images/scrollbar-handle@2x.png
deleted file mode 100644
index 72246c67..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle@3x.png b/src/imports/controls/imagine/images/scrollbar-handle@3x.png
deleted file mode 100644
index c7caa2df..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollbar-handle@4x.png b/src/imports/controls/imagine/images/scrollbar-handle@4x.png
deleted file mode 100644
index ad61f644..00000000
--- a/src/imports/controls/imagine/images/scrollbar-handle@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollindicator-handle.png b/src/imports/controls/imagine/images/scrollindicator-handle.png
deleted file mode 100644
index c1d0a009..00000000
--- a/src/imports/controls/imagine/images/scrollindicator-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollindicator-handle@2x.png b/src/imports/controls/imagine/images/scrollindicator-handle@2x.png
deleted file mode 100644
index 72246c67..00000000
--- a/src/imports/controls/imagine/images/scrollindicator-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollindicator-handle@3x.png b/src/imports/controls/imagine/images/scrollindicator-handle@3x.png
deleted file mode 100644
index c7caa2df..00000000
--- a/src/imports/controls/imagine/images/scrollindicator-handle@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/scrollindicator-handle@4x.png b/src/imports/controls/imagine/images/scrollindicator-handle@4x.png
deleted file mode 100644
index ad61f644..00000000
--- a/src/imports/controls/imagine/images/scrollindicator-handle@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-background-horizontal.9.png b/src/imports/controls/imagine/images/slider-background-horizontal.9.png
deleted file mode 100644
index 1493d559..00000000
--- a/src/imports/controls/imagine/images/slider-background-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-background-horizontal@2x.9.png b/src/imports/controls/imagine/images/slider-background-horizontal@2x.9.png
deleted file mode 100644
index 64c87e20..00000000
--- a/src/imports/controls/imagine/images/slider-background-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-background-horizontal@3x.9.png b/src/imports/controls/imagine/images/slider-background-horizontal@3x.9.png
deleted file mode 100644
index 7ed7de73..00000000
--- a/src/imports/controls/imagine/images/slider-background-horizontal@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-background-horizontal@4x.9.png b/src/imports/controls/imagine/images/slider-background-horizontal@4x.9.png
deleted file mode 100644
index 7c45cc7d..00000000
--- a/src/imports/controls/imagine/images/slider-background-horizontal@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-background-vertical.9.png b/src/imports/controls/imagine/images/slider-background-vertical.9.png
deleted file mode 100644
index 5866879c..00000000
--- a/src/imports/controls/imagine/images/slider-background-vertical.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-background-vertical@2x.9.png b/src/imports/controls/imagine/images/slider-background-vertical@2x.9.png
deleted file mode 100644
index f3928ec5..00000000
--- a/src/imports/controls/imagine/images/slider-background-vertical@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-background-vertical@3x.9.png b/src/imports/controls/imagine/images/slider-background-vertical@3x.9.png
deleted file mode 100644
index f49dcb95..00000000
--- a/src/imports/controls/imagine/images/slider-background-vertical@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-background-vertical@4x.9.png b/src/imports/controls/imagine/images/slider-background-vertical@4x.9.png
deleted file mode 100644
index e7203f99..00000000
--- a/src/imports/controls/imagine/images/slider-background-vertical@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-disabled.png b/src/imports/controls/imagine/images/slider-handle-disabled.png
deleted file mode 100644
index 88ea4699..00000000
--- a/src/imports/controls/imagine/images/slider-handle-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-disabled@2x.png b/src/imports/controls/imagine/images/slider-handle-disabled@2x.png
deleted file mode 100644
index 3cad66e2..00000000
--- a/src/imports/controls/imagine/images/slider-handle-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-disabled@3x.png b/src/imports/controls/imagine/images/slider-handle-disabled@3x.png
deleted file mode 100644
index 18b7482c..00000000
--- a/src/imports/controls/imagine/images/slider-handle-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-disabled@4x.png b/src/imports/controls/imagine/images/slider-handle-disabled@4x.png
deleted file mode 100644
index 1d03b803..00000000
--- a/src/imports/controls/imagine/images/slider-handle-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused-hovered.png b/src/imports/controls/imagine/images/slider-handle-focused-hovered.png
deleted file mode 100644
index 5787bc8d..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused-hovered@2x.png b/src/imports/controls/imagine/images/slider-handle-focused-hovered@2x.png
deleted file mode 100644
index 0663628f..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused-hovered@3x.png b/src/imports/controls/imagine/images/slider-handle-focused-hovered@3x.png
deleted file mode 100644
index cb6149d3..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused-hovered@4x.png b/src/imports/controls/imagine/images/slider-handle-focused-hovered@4x.png
deleted file mode 100644
index 21484332..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused-pressed.png b/src/imports/controls/imagine/images/slider-handle-focused-pressed.png
deleted file mode 100644
index 5787bc8d..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused-pressed@2x.png b/src/imports/controls/imagine/images/slider-handle-focused-pressed@2x.png
deleted file mode 100644
index 0663628f..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused-pressed@3x.png b/src/imports/controls/imagine/images/slider-handle-focused-pressed@3x.png
deleted file mode 100644
index cb6149d3..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused-pressed@4x.png b/src/imports/controls/imagine/images/slider-handle-focused-pressed@4x.png
deleted file mode 100644
index 21484332..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused.png b/src/imports/controls/imagine/images/slider-handle-focused.png
deleted file mode 100644
index 0a0ab739..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused@2x.png b/src/imports/controls/imagine/images/slider-handle-focused@2x.png
deleted file mode 100644
index 8ced0916..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused@3x.png b/src/imports/controls/imagine/images/slider-handle-focused@3x.png
deleted file mode 100644
index a7bdc453..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-focused@4x.png b/src/imports/controls/imagine/images/slider-handle-focused@4x.png
deleted file mode 100644
index 5827d534..00000000
--- a/src/imports/controls/imagine/images/slider-handle-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-hovered.png b/src/imports/controls/imagine/images/slider-handle-hovered.png
deleted file mode 100644
index 88ea4699..00000000
--- a/src/imports/controls/imagine/images/slider-handle-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-hovered@2x.png b/src/imports/controls/imagine/images/slider-handle-hovered@2x.png
deleted file mode 100644
index 3cad66e2..00000000
--- a/src/imports/controls/imagine/images/slider-handle-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-hovered@3x.png b/src/imports/controls/imagine/images/slider-handle-hovered@3x.png
deleted file mode 100644
index 18b7482c..00000000
--- a/src/imports/controls/imagine/images/slider-handle-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-hovered@4x.png b/src/imports/controls/imagine/images/slider-handle-hovered@4x.png
deleted file mode 100644
index 1d03b803..00000000
--- a/src/imports/controls/imagine/images/slider-handle-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-pressed.png b/src/imports/controls/imagine/images/slider-handle-pressed.png
deleted file mode 100644
index 88ea4699..00000000
--- a/src/imports/controls/imagine/images/slider-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-pressed@2x.png b/src/imports/controls/imagine/images/slider-handle-pressed@2x.png
deleted file mode 100644
index 3cad66e2..00000000
--- a/src/imports/controls/imagine/images/slider-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-pressed@3x.png b/src/imports/controls/imagine/images/slider-handle-pressed@3x.png
deleted file mode 100644
index 18b7482c..00000000
--- a/src/imports/controls/imagine/images/slider-handle-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle-pressed@4x.png b/src/imports/controls/imagine/images/slider-handle-pressed@4x.png
deleted file mode 100644
index 1d03b803..00000000
--- a/src/imports/controls/imagine/images/slider-handle-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle.png b/src/imports/controls/imagine/images/slider-handle.png
deleted file mode 100644
index 370f5141..00000000
--- a/src/imports/controls/imagine/images/slider-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle@2x.png b/src/imports/controls/imagine/images/slider-handle@2x.png
deleted file mode 100644
index d98f56d3..00000000
--- a/src/imports/controls/imagine/images/slider-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle@3x.png b/src/imports/controls/imagine/images/slider-handle@3x.png
deleted file mode 100644
index a6e12b61..00000000
--- a/src/imports/controls/imagine/images/slider-handle@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-handle@4x.png b/src/imports/controls/imagine/images/slider-handle@4x.png
deleted file mode 100644
index 194e3496..00000000
--- a/src/imports/controls/imagine/images/slider-handle@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-horizontal-disabled.9.png b/src/imports/controls/imagine/images/slider-progress-horizontal-disabled.9.png
deleted file mode 100644
index d3a87e37..00000000
--- a/src/imports/controls/imagine/images/slider-progress-horizontal-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@2x.9.png b/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@2x.9.png
deleted file mode 100644
index b87350eb..00000000
--- a/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@3x.9.png b/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@3x.9.png
deleted file mode 100644
index a5b7b80c..00000000
--- a/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@4x.9.png b/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@4x.9.png
deleted file mode 100644
index 47975047..00000000
--- a/src/imports/controls/imagine/images/slider-progress-horizontal-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-horizontal.9.png b/src/imports/controls/imagine/images/slider-progress-horizontal.9.png
deleted file mode 100644
index 49adc3ec..00000000
--- a/src/imports/controls/imagine/images/slider-progress-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-horizontal@2x.9.png b/src/imports/controls/imagine/images/slider-progress-horizontal@2x.9.png
deleted file mode 100644
index b71adeb3..00000000
--- a/src/imports/controls/imagine/images/slider-progress-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-horizontal@3x.9.png b/src/imports/controls/imagine/images/slider-progress-horizontal@3x.9.png
deleted file mode 100644
index c78c22b3..00000000
--- a/src/imports/controls/imagine/images/slider-progress-horizontal@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-horizontal@4x.9.png b/src/imports/controls/imagine/images/slider-progress-horizontal@4x.9.png
deleted file mode 100644
index 69142b4e..00000000
--- a/src/imports/controls/imagine/images/slider-progress-horizontal@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-vertical-disabled.9.png b/src/imports/controls/imagine/images/slider-progress-vertical-disabled.9.png
deleted file mode 100644
index 6ae0b6b6..00000000
--- a/src/imports/controls/imagine/images/slider-progress-vertical-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-vertical-disabled@2x.9.png b/src/imports/controls/imagine/images/slider-progress-vertical-disabled@2x.9.png
deleted file mode 100644
index dacd2692..00000000
--- a/src/imports/controls/imagine/images/slider-progress-vertical-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-vertical-disabled@3x.9.png b/src/imports/controls/imagine/images/slider-progress-vertical-disabled@3x.9.png
deleted file mode 100644
index 23f5461e..00000000
--- a/src/imports/controls/imagine/images/slider-progress-vertical-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-vertical-disabled@4x.9.png b/src/imports/controls/imagine/images/slider-progress-vertical-disabled@4x.9.png
deleted file mode 100644
index 9ec4cefe..00000000
--- a/src/imports/controls/imagine/images/slider-progress-vertical-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-vertical.9.png b/src/imports/controls/imagine/images/slider-progress-vertical.9.png
deleted file mode 100644
index c2616422..00000000
--- a/src/imports/controls/imagine/images/slider-progress-vertical.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-vertical@2x.9.png b/src/imports/controls/imagine/images/slider-progress-vertical@2x.9.png
deleted file mode 100644
index 0339d4cd..00000000
--- a/src/imports/controls/imagine/images/slider-progress-vertical@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-vertical@3x.9.png b/src/imports/controls/imagine/images/slider-progress-vertical@3x.9.png
deleted file mode 100644
index d1d22e60..00000000
--- a/src/imports/controls/imagine/images/slider-progress-vertical@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/slider-progress-vertical@4x.9.png b/src/imports/controls/imagine/images/slider-progress-vertical@4x.9.png
deleted file mode 100644
index f9b96a3b..00000000
--- a/src/imports/controls/imagine/images/slider-progress-vertical@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-disabled.9.png b/src/imports/controls/imagine/images/spinbox-background-disabled.9.png
deleted file mode 100644
index 16df3677..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-disabled@2x.9.png b/src/imports/controls/imagine/images/spinbox-background-disabled@2x.9.png
deleted file mode 100644
index be72ec16..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-disabled@3x.9.png b/src/imports/controls/imagine/images/spinbox-background-disabled@3x.9.png
deleted file mode 100644
index ca2d3322..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-disabled@4x.9.png b/src/imports/controls/imagine/images/spinbox-background-disabled@4x.9.png
deleted file mode 100644
index 62040f69..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-editable.9.png b/src/imports/controls/imagine/images/spinbox-background-editable.9.png
deleted file mode 100644
index 0bd1f239..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-editable.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-editable@2x.9.png b/src/imports/controls/imagine/images/spinbox-background-editable@2x.9.png
deleted file mode 100644
index c523826a..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-editable@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-editable@3x.9.png b/src/imports/controls/imagine/images/spinbox-background-editable@3x.9.png
deleted file mode 100644
index f47a77f8..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-editable@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-editable@4x.9.png b/src/imports/controls/imagine/images/spinbox-background-editable@4x.9.png
deleted file mode 100644
index 37939aab..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-editable@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-focused.9.png b/src/imports/controls/imagine/images/spinbox-background-focused.9.png
deleted file mode 100644
index 5b1d97ca..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-background-focused@2x.9.png
deleted file mode 100644
index 3424bf2d..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-background-focused@3x.9.png
deleted file mode 100644
index a53a76d7..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-background-focused@4x.9.png
deleted file mode 100644
index 9ea30032..00000000
--- a/src/imports/controls/imagine/images/spinbox-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background.9.png b/src/imports/controls/imagine/images/spinbox-background.9.png
deleted file mode 100644
index 16560593..00000000
--- a/src/imports/controls/imagine/images/spinbox-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background@2x.9.png b/src/imports/controls/imagine/images/spinbox-background@2x.9.png
deleted file mode 100644
index 4b7dcd74..00000000
--- a/src/imports/controls/imagine/images/spinbox-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background@3x.9.png b/src/imports/controls/imagine/images/spinbox-background@3x.9.png
deleted file mode 100644
index af86d12c..00000000
--- a/src/imports/controls/imagine/images/spinbox-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-background@4x.9.png b/src/imports/controls/imagine/images/spinbox-background@4x.9.png
deleted file mode 100644
index bbcd8745..00000000
--- a/src/imports/controls/imagine/images/spinbox-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-disabled.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-disabled.9.png
deleted file mode 100644
index 9ec6bf4a..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@2x.9.png
deleted file mode 100644
index 94219759..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@3x.9.png
deleted file mode 100644
index 38b73979..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@4x.9.png
deleted file mode 100644
index 2a5ab52d..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused.9.png
deleted file mode 100644
index 9ac0c8f7..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@2x.9.png
deleted file mode 100644
index aa71e927..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@3x.9.png
deleted file mode 100644
index c773e31e..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@4x.9.png
deleted file mode 100644
index 5e8e1a5c..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered.9.png
deleted file mode 100644
index 9ac0c8f7..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@2x.9.png
deleted file mode 100644
index aa71e927..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@3x.9.png
deleted file mode 100644
index c773e31e..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@4x.9.png
deleted file mode 100644
index 5e8e1a5c..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused.9.png
deleted file mode 100644
index c77a6a04..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@2x.9.png
deleted file mode 100644
index 8e652dcc..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@3x.9.png
deleted file mode 100644
index 368f9b21..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@4x.9.png
deleted file mode 100644
index 02be2e5e..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered.9.png
deleted file mode 100644
index c77a6a04..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@2x.9.png
deleted file mode 100644
index 8e652dcc..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@3x.9.png
deleted file mode 100644
index 368f9b21..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@4x.9.png
deleted file mode 100644
index 02be2e5e..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed.9.png
deleted file mode 100644
index 1d81aef2..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@2x.9.png
deleted file mode 100644
index 8638c47e..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@3x.9.png
deleted file mode 100644
index 19e44058..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@4x.9.png
deleted file mode 100644
index bf92d5a1..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored.9.png
deleted file mode 100644
index 5cb05b25..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@2x.9.png
deleted file mode 100644
index d09d180a..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@3x.9.png
deleted file mode 100644
index e33ff83d..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@4x.9.png
deleted file mode 100644
index c0062bfa..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-mirrored@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed.9.png
deleted file mode 100644
index 3b91414f..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@2x.9.png
deleted file mode 100644
index 6cf943f8..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@3x.9.png
deleted file mode 100644
index 3866a67d..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@4x.9.png
deleted file mode 100644
index 076a0b35..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable.9.png
deleted file mode 100644
index 60feb583..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable@2x.9.png
deleted file mode 100644
index 612f3996..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable@3x.9.png
deleted file mode 100644
index f4b23374..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-editable@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-editable@4x.9.png
deleted file mode 100644
index e69314c0..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-editable@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-focused.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-focused.9.png
deleted file mode 100644
index cb406d57..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-focused@2x.9.png
deleted file mode 100644
index 8004e824..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-focused@3x.9.png
deleted file mode 100644
index 8003117d..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-focused@4x.9.png
deleted file mode 100644
index 2ccf36ac..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-hovered.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-hovered.9.png
deleted file mode 100644
index cb406d57..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@2x.9.png
deleted file mode 100644
index 8004e824..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@3x.9.png
deleted file mode 100644
index 8003117d..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@4x.9.png
deleted file mode 100644
index 2ccf36ac..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled.9.png
deleted file mode 100644
index ef6341e1..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@2x.9.png
deleted file mode 100644
index b89d2da7..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@3x.9.png
deleted file mode 100644
index cc2b2935..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@4x.9.png
deleted file mode 100644
index 86ef1436..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused.9.png
deleted file mode 100644
index d4814abe..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@2x.9.png
deleted file mode 100644
index 501a2204..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@3x.9.png
deleted file mode 100644
index 06854614..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@4x.9.png
deleted file mode 100644
index 37610e71..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered.9.png
deleted file mode 100644
index d4814abe..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@2x.9.png
deleted file mode 100644
index 501a2204..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@3x.9.png
deleted file mode 100644
index 06854614..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@4x.9.png
deleted file mode 100644
index 37610e71..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed.9.png
deleted file mode 100644
index 35fddf9a..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@2x.9.png
deleted file mode 100644
index 63050cf1..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@3x.9.png
deleted file mode 100644
index 7428a6dd..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@4x.9.png
deleted file mode 100644
index d2849eeb..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored.9.png
deleted file mode 100644
index 603dbd38..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@2x.9.png
deleted file mode 100644
index fcd5a7e2..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@3x.9.png
deleted file mode 100644
index fdd6f575..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@4x.9.png
deleted file mode 100644
index 02364a67..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-mirrored@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-pressed.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-pressed.9.png
deleted file mode 100644
index 18abfb0b..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@2x.9.png
deleted file mode 100644
index ac60f187..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@3x.9.png
deleted file mode 100644
index 507b4c6c..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@4x.9.png
deleted file mode 100644
index 58934f8a..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down.9.png
deleted file mode 100644
index 171ff635..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down@2x.9.png
deleted file mode 100644
index e5fc7ffa..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down@3x.9.png
deleted file mode 100644
index bc1c50db..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-down@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-down@4x.9.png
deleted file mode 100644
index 656c5a58..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-down@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-disabled.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-disabled.9.png
deleted file mode 100644
index 233ed958..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@2x.9.png
deleted file mode 100644
index 1f212179..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@3x.9.png
deleted file mode 100644
index cdebd5b3..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@4x.9.png
deleted file mode 100644
index e05430e6..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused.9.png
deleted file mode 100644
index 71d9ab11..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@2x.9.png
deleted file mode 100644
index d12e77fa..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@3x.9.png
deleted file mode 100644
index 22523122..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@4x.9.png
deleted file mode 100644
index f1082d21..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered.9.png
deleted file mode 100644
index 71d9ab11..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@2x.9.png
deleted file mode 100644
index d12e77fa..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@3x.9.png
deleted file mode 100644
index 22523122..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@4x.9.png
deleted file mode 100644
index f1082d21..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused.9.png
deleted file mode 100644
index 97c49ddc..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@2x.9.png
deleted file mode 100644
index 50ee8be8..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@3x.9.png
deleted file mode 100644
index 0ac31744..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@4x.9.png
deleted file mode 100644
index b4e8cf5a..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered.9.png
deleted file mode 100644
index 97c49ddc..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@2x.9.png
deleted file mode 100644
index 50ee8be8..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@3x.9.png
deleted file mode 100644
index 0ac31744..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@4x.9.png
deleted file mode 100644
index b4e8cf5a..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed.9.png
deleted file mode 100644
index 10033ff3..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@2x.9.png
deleted file mode 100644
index 6ff2b151..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@3x.9.png
deleted file mode 100644
index 430a3456..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@4x.9.png
deleted file mode 100644
index bc1606e7..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored.9.png
deleted file mode 100644
index 107bb699..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@2x.9.png
deleted file mode 100644
index e9e26e34..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@3x.9.png
deleted file mode 100644
index c060ee79..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@4x.9.png
deleted file mode 100644
index 2f5012f9..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-mirrored@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed.9.png
deleted file mode 100644
index 3a864191..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@2x.9.png
deleted file mode 100644
index 8b2c8d98..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@3x.9.png
deleted file mode 100644
index 2d843abb..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@4x.9.png
deleted file mode 100644
index f93e4ef2..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable.9.png
deleted file mode 100644
index f27911f9..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable@2x.9.png
deleted file mode 100644
index 1873dd3b..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable@3x.9.png
deleted file mode 100644
index 003f3937..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-editable@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-editable@4x.9.png
deleted file mode 100644
index 5fcfffa6..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-editable@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-focused.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-focused.9.png
deleted file mode 100644
index 93b9c34c..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-focused@2x.9.png
deleted file mode 100644
index 425c1725..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-focused@3x.9.png
deleted file mode 100644
index c6c728c3..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-focused@4x.9.png
deleted file mode 100644
index e0772bf3..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-hovered.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-hovered.9.png
deleted file mode 100644
index 93b9c34c..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@2x.9.png
deleted file mode 100644
index 425c1725..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@3x.9.png
deleted file mode 100644
index c6c728c3..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@4x.9.png
deleted file mode 100644
index e0772bf3..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled.9.png
deleted file mode 100644
index 059c46ed..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@2x.9.png
deleted file mode 100644
index 670280ea..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@3x.9.png
deleted file mode 100644
index b5e30546..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@4x.9.png
deleted file mode 100644
index f34c65e8..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused.9.png
deleted file mode 100644
index 8722a522..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@2x.9.png
deleted file mode 100644
index 3e0dfafa..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@3x.9.png
deleted file mode 100644
index 2337ccdc..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@4x.9.png
deleted file mode 100644
index 9dca0ec1..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered.9.png
deleted file mode 100644
index 8722a522..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@2x.9.png
deleted file mode 100644
index 3e0dfafa..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@3x.9.png
deleted file mode 100644
index 2337ccdc..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@4x.9.png
deleted file mode 100644
index 9dca0ec1..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed.9.png
deleted file mode 100644
index 3e9030d1..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@2x.9.png
deleted file mode 100644
index 5edc3dbe..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@3x.9.png
deleted file mode 100644
index 5f497719..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@4x.9.png
deleted file mode 100644
index c376fb75..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored.9.png
deleted file mode 100644
index 32a0613c..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@2x.9.png
deleted file mode 100644
index 8fdb30f8..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@3x.9.png
deleted file mode 100644
index 6e9e0172..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@4x.9.png
deleted file mode 100644
index 7e556e2c..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-mirrored@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-pressed.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-pressed.9.png
deleted file mode 100644
index 8f8ef7c4..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@2x.9.png
deleted file mode 100644
index 8760aef9..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@3x.9.png
deleted file mode 100644
index 03beb7b9..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@4x.9.png
deleted file mode 100644
index 876fd4af..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up.9.png
deleted file mode 100644
index 049d5806..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up@2x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up@2x.9.png
deleted file mode 100644
index 75ce9cc1..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up@3x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up@3x.9.png
deleted file mode 100644
index 42b5cdb5..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/spinbox-indicator-up@4x.9.png b/src/imports/controls/imagine/images/spinbox-indicator-up@4x.9.png
deleted file mode 100644
index b59d4e77..00000000
--- a/src/imports/controls/imagine/images/spinbox-indicator-up@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-disabled.png b/src/imports/controls/imagine/images/splitview-handle-disabled.png
deleted file mode 100644
index 0071c196..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-disabled@2x.png b/src/imports/controls/imagine/images/splitview-handle-disabled@2x.png
deleted file mode 100644
index 67cee407..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-disabled@3x.png b/src/imports/controls/imagine/images/splitview-handle-disabled@3x.png
deleted file mode 100644
index 84752ba9..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-disabled@4x.png b/src/imports/controls/imagine/images/splitview-handle-disabled@4x.png
deleted file mode 100644
index e4be8597..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-hovered.png b/src/imports/controls/imagine/images/splitview-handle-hovered.png
deleted file mode 100644
index 1386d213..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-hovered@2x.png b/src/imports/controls/imagine/images/splitview-handle-hovered@2x.png
deleted file mode 100644
index 4708a47b..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-hovered@3x.png b/src/imports/controls/imagine/images/splitview-handle-hovered@3x.png
deleted file mode 100644
index 2ccc1ff5..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-hovered@4x.png b/src/imports/controls/imagine/images/splitview-handle-hovered@4x.png
deleted file mode 100644
index 6929da70..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-pressed.png b/src/imports/controls/imagine/images/splitview-handle-pressed.png
deleted file mode 100644
index 7face6b4..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-pressed@2x.png b/src/imports/controls/imagine/images/splitview-handle-pressed@2x.png
deleted file mode 100644
index ad940d0f..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-pressed@3x.png b/src/imports/controls/imagine/images/splitview-handle-pressed@3x.png
deleted file mode 100644
index d4e19dc2..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle-pressed@4x.png b/src/imports/controls/imagine/images/splitview-handle-pressed@4x.png
deleted file mode 100644
index 8ccbbebc..00000000
--- a/src/imports/controls/imagine/images/splitview-handle-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle.png b/src/imports/controls/imagine/images/splitview-handle.png
deleted file mode 100644
index c1dffa67..00000000
--- a/src/imports/controls/imagine/images/splitview-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle@2x.png b/src/imports/controls/imagine/images/splitview-handle@2x.png
deleted file mode 100644
index 180e266a..00000000
--- a/src/imports/controls/imagine/images/splitview-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle@3x.png b/src/imports/controls/imagine/images/splitview-handle@3x.png
deleted file mode 100644
index 35ea51db..00000000
--- a/src/imports/controls/imagine/images/splitview-handle@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/splitview-handle@4x.png b/src/imports/controls/imagine/images/splitview-handle@4x.png
deleted file mode 100644
index 3a1e7e9f..00000000
--- a/src/imports/controls/imagine/images/splitview-handle@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-disabled.9.png b/src/imports/controls/imagine/images/swipedelegate-background-disabled.9.png
deleted file mode 100644
index 4b56fe35..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-disabled@2x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-disabled@2x.9.png
deleted file mode 100644
index 34edef58..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-disabled@3x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-disabled@3x.9.png
deleted file mode 100644
index dd2cc6ba..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-disabled@4x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-disabled@4x.9.png
deleted file mode 100644
index b7890a3c..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-focused.9.png b/src/imports/controls/imagine/images/swipedelegate-background-focused.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-focused@2x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-focused@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-focused@3x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-focused@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-focused@4x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-focused@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-highlighted.9.png b/src/imports/controls/imagine/images/swipedelegate-background-highlighted.9.png
deleted file mode 100644
index 32847cfa..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-highlighted.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-highlighted@2x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-highlighted@2x.9.png
deleted file mode 100644
index 126fcb29..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-highlighted@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-highlighted@3x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-highlighted@3x.9.png
deleted file mode 100644
index 22b7c9f2..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-highlighted@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-highlighted@4x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-highlighted@4x.9.png
deleted file mode 100644
index 4e67f310..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-highlighted@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-hovered.9.png b/src/imports/controls/imagine/images/swipedelegate-background-hovered.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-hovered@2x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-hovered@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-hovered@3x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-hovered@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-hovered@4x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-hovered@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-pressed.9.png b/src/imports/controls/imagine/images/swipedelegate-background-pressed.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-pressed@2x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-pressed@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-pressed@3x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-pressed@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background-pressed@4x.9.png b/src/imports/controls/imagine/images/swipedelegate-background-pressed@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background.9.png b/src/imports/controls/imagine/images/swipedelegate-background.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background@2x.9.png b/src/imports/controls/imagine/images/swipedelegate-background@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background@3x.9.png b/src/imports/controls/imagine/images/swipedelegate-background@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/swipedelegate-background@4x.9.png b/src/imports/controls/imagine/images/swipedelegate-background@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/swipedelegate-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle-disabled.png b/src/imports/controls/imagine/images/switch-handle-disabled.png
deleted file mode 100644
index 4108457f..00000000
--- a/src/imports/controls/imagine/images/switch-handle-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle-disabled@2x.png b/src/imports/controls/imagine/images/switch-handle-disabled@2x.png
deleted file mode 100644
index c73b8b45..00000000
--- a/src/imports/controls/imagine/images/switch-handle-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle-disabled@3x.png b/src/imports/controls/imagine/images/switch-handle-disabled@3x.png
deleted file mode 100644
index 3a927393..00000000
--- a/src/imports/controls/imagine/images/switch-handle-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle-disabled@4x.png b/src/imports/controls/imagine/images/switch-handle-disabled@4x.png
deleted file mode 100644
index 2893b7a6..00000000
--- a/src/imports/controls/imagine/images/switch-handle-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle-pressed.png b/src/imports/controls/imagine/images/switch-handle-pressed.png
deleted file mode 100644
index 4108457f..00000000
--- a/src/imports/controls/imagine/images/switch-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle-pressed@2x.png b/src/imports/controls/imagine/images/switch-handle-pressed@2x.png
deleted file mode 100644
index c73b8b45..00000000
--- a/src/imports/controls/imagine/images/switch-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle-pressed@3x.png b/src/imports/controls/imagine/images/switch-handle-pressed@3x.png
deleted file mode 100644
index 3a927393..00000000
--- a/src/imports/controls/imagine/images/switch-handle-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle-pressed@4x.png b/src/imports/controls/imagine/images/switch-handle-pressed@4x.png
deleted file mode 100644
index 2893b7a6..00000000
--- a/src/imports/controls/imagine/images/switch-handle-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle.png b/src/imports/controls/imagine/images/switch-handle.png
deleted file mode 100644
index 814cfe4f..00000000
--- a/src/imports/controls/imagine/images/switch-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle@2x.png b/src/imports/controls/imagine/images/switch-handle@2x.png
deleted file mode 100644
index df3e41c5..00000000
--- a/src/imports/controls/imagine/images/switch-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle@3x.png b/src/imports/controls/imagine/images/switch-handle@3x.png
deleted file mode 100644
index 601c0d53..00000000
--- a/src/imports/controls/imagine/images/switch-handle@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-handle@4x.png b/src/imports/controls/imagine/images/switch-handle@4x.png
deleted file mode 100644
index b03a1d31..00000000
--- a/src/imports/controls/imagine/images/switch-handle@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-focused.png b/src/imports/controls/imagine/images/switch-indicator-checked-focused.png
deleted file mode 100644
index 06f09514..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-focused@2x.png b/src/imports/controls/imagine/images/switch-indicator-checked-focused@2x.png
deleted file mode 100644
index 90044add..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-focused@3x.png b/src/imports/controls/imagine/images/switch-indicator-checked-focused@3x.png
deleted file mode 100644
index c987c7b5..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-focused@4x.png b/src/imports/controls/imagine/images/switch-indicator-checked-focused@4x.png
deleted file mode 100644
index c2351de8..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-hovered.png b/src/imports/controls/imagine/images/switch-indicator-checked-hovered.png
deleted file mode 100644
index 06f09514..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-hovered@2x.png b/src/imports/controls/imagine/images/switch-indicator-checked-hovered@2x.png
deleted file mode 100644
index 90044add..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-hovered@3x.png b/src/imports/controls/imagine/images/switch-indicator-checked-hovered@3x.png
deleted file mode 100644
index c987c7b5..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-hovered@4x.png b/src/imports/controls/imagine/images/switch-indicator-checked-hovered@4x.png
deleted file mode 100644
index c2351de8..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-pressed.png b/src/imports/controls/imagine/images/switch-indicator-checked-pressed.png
deleted file mode 100644
index fcf8a5f3..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-pressed@2x.png b/src/imports/controls/imagine/images/switch-indicator-checked-pressed@2x.png
deleted file mode 100644
index b8747547..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-pressed@3x.png b/src/imports/controls/imagine/images/switch-indicator-checked-pressed@3x.png
deleted file mode 100644
index 1a254945..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked-pressed@4x.png b/src/imports/controls/imagine/images/switch-indicator-checked-pressed@4x.png
deleted file mode 100644
index 7af5cc05..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked.png b/src/imports/controls/imagine/images/switch-indicator-checked.png
deleted file mode 100644
index 00af5fd7..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked@2x.png b/src/imports/controls/imagine/images/switch-indicator-checked@2x.png
deleted file mode 100644
index b9ae1ce2..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked@3x.png b/src/imports/controls/imagine/images/switch-indicator-checked@3x.png
deleted file mode 100644
index fbcd46df..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-checked@4x.png b/src/imports/controls/imagine/images/switch-indicator-checked@4x.png
deleted file mode 100644
index 04807b20..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-disabled.png b/src/imports/controls/imagine/images/switch-indicator-disabled.png
deleted file mode 100644
index 47800da2..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-disabled@2x.png b/src/imports/controls/imagine/images/switch-indicator-disabled@2x.png
deleted file mode 100644
index bc3cfbf4..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-disabled@3x.png b/src/imports/controls/imagine/images/switch-indicator-disabled@3x.png
deleted file mode 100644
index b29d5756..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-disabled@4x.png b/src/imports/controls/imagine/images/switch-indicator-disabled@4x.png
deleted file mode 100644
index 22562fdf..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-focused.png b/src/imports/controls/imagine/images/switch-indicator-focused.png
deleted file mode 100644
index 570f6872..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-focused@2x.png b/src/imports/controls/imagine/images/switch-indicator-focused@2x.png
deleted file mode 100644
index 389c7f51..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-focused@3x.png b/src/imports/controls/imagine/images/switch-indicator-focused@3x.png
deleted file mode 100644
index c2e2a155..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-focused@4x.png b/src/imports/controls/imagine/images/switch-indicator-focused@4x.png
deleted file mode 100644
index 3637139f..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-hovered.png b/src/imports/controls/imagine/images/switch-indicator-hovered.png
deleted file mode 100644
index 570f6872..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-hovered@2x.png b/src/imports/controls/imagine/images/switch-indicator-hovered@2x.png
deleted file mode 100644
index 389c7f51..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-hovered@3x.png b/src/imports/controls/imagine/images/switch-indicator-hovered@3x.png
deleted file mode 100644
index c2e2a155..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-hovered@4x.png b/src/imports/controls/imagine/images/switch-indicator-hovered@4x.png
deleted file mode 100644
index 3637139f..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-pressed.png b/src/imports/controls/imagine/images/switch-indicator-pressed.png
deleted file mode 100644
index 6129c382..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-pressed@2x.png b/src/imports/controls/imagine/images/switch-indicator-pressed@2x.png
deleted file mode 100644
index 144eb013..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-pressed@3x.png b/src/imports/controls/imagine/images/switch-indicator-pressed@3x.png
deleted file mode 100644
index f59d9051..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator-pressed@4x.png b/src/imports/controls/imagine/images/switch-indicator-pressed@4x.png
deleted file mode 100644
index 48d24f7c..00000000
--- a/src/imports/controls/imagine/images/switch-indicator-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator.png b/src/imports/controls/imagine/images/switch-indicator.png
deleted file mode 100644
index e0ec85e2..00000000
--- a/src/imports/controls/imagine/images/switch-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator@2x.png b/src/imports/controls/imagine/images/switch-indicator@2x.png
deleted file mode 100644
index d0026507..00000000
--- a/src/imports/controls/imagine/images/switch-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator@3x.png b/src/imports/controls/imagine/images/switch-indicator@3x.png
deleted file mode 100644
index 1a59e3b0..00000000
--- a/src/imports/controls/imagine/images/switch-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switch-indicator@4x.png b/src/imports/controls/imagine/images/switch-indicator@4x.png
deleted file mode 100644
index 1db31ec3..00000000
--- a/src/imports/controls/imagine/images/switch-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-disabled.9.png b/src/imports/controls/imagine/images/switchdelegate-background-disabled.9.png
deleted file mode 100644
index 4b56fe35..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-disabled@2x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-disabled@2x.9.png
deleted file mode 100644
index 34edef58..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-disabled@3x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-disabled@3x.9.png
deleted file mode 100644
index dd2cc6ba..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-disabled@4x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-disabled@4x.9.png
deleted file mode 100644
index b7890a3c..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-focused.9.png b/src/imports/controls/imagine/images/switchdelegate-background-focused.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-focused@2x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-focused@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-focused@3x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-focused@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-focused@4x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-focused@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-hovered.9.png b/src/imports/controls/imagine/images/switchdelegate-background-hovered.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-hovered@2x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-hovered@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-hovered@3x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-hovered@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-hovered@4x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-hovered@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-pressed.9.png b/src/imports/controls/imagine/images/switchdelegate-background-pressed.9.png
deleted file mode 100644
index b31343dd..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-pressed@2x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-pressed@2x.9.png
deleted file mode 100644
index c56c62da..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-pressed@3x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-pressed@3x.9.png
deleted file mode 100644
index bfbc82f9..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background-pressed@4x.9.png b/src/imports/controls/imagine/images/switchdelegate-background-pressed@4x.9.png
deleted file mode 100644
index e31ab63b..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background.9.png b/src/imports/controls/imagine/images/switchdelegate-background.9.png
deleted file mode 100644
index a53f63cd..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background@2x.9.png b/src/imports/controls/imagine/images/switchdelegate-background@2x.9.png
deleted file mode 100644
index 07510b10..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background@3x.9.png b/src/imports/controls/imagine/images/switchdelegate-background@3x.9.png
deleted file mode 100644
index db2a210a..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-background@4x.9.png b/src/imports/controls/imagine/images/switchdelegate-background@4x.9.png
deleted file mode 100644
index 6427d7ab..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle-disabled.png b/src/imports/controls/imagine/images/switchdelegate-handle-disabled.png
deleted file mode 100644
index 4108457f..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle-disabled@2x.png b/src/imports/controls/imagine/images/switchdelegate-handle-disabled@2x.png
deleted file mode 100644
index c73b8b45..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle-disabled@3x.png b/src/imports/controls/imagine/images/switchdelegate-handle-disabled@3x.png
deleted file mode 100644
index 3a927393..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle-disabled@4x.png b/src/imports/controls/imagine/images/switchdelegate-handle-disabled@4x.png
deleted file mode 100644
index 2893b7a6..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle-pressed.png b/src/imports/controls/imagine/images/switchdelegate-handle-pressed.png
deleted file mode 100644
index 4108457f..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle-pressed@2x.png b/src/imports/controls/imagine/images/switchdelegate-handle-pressed@2x.png
deleted file mode 100644
index c73b8b45..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle-pressed@3x.png b/src/imports/controls/imagine/images/switchdelegate-handle-pressed@3x.png
deleted file mode 100644
index 3a927393..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle-pressed@4x.png b/src/imports/controls/imagine/images/switchdelegate-handle-pressed@4x.png
deleted file mode 100644
index 2893b7a6..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle.png b/src/imports/controls/imagine/images/switchdelegate-handle.png
deleted file mode 100644
index 814cfe4f..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle@2x.png b/src/imports/controls/imagine/images/switchdelegate-handle@2x.png
deleted file mode 100644
index df3e41c5..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle@3x.png b/src/imports/controls/imagine/images/switchdelegate-handle@3x.png
deleted file mode 100644
index 601c0d53..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-handle@4x.png b/src/imports/controls/imagine/images/switchdelegate-handle@4x.png
deleted file mode 100644
index b03a1d31..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-handle@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused.png
deleted file mode 100644
index 06f09514..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@2x.png
deleted file mode 100644
index 90044add..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@3x.png
deleted file mode 100644
index c987c7b5..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@4x.png
deleted file mode 100644
index c2351de8..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered.png
deleted file mode 100644
index 06f09514..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@2x.png
deleted file mode 100644
index 90044add..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@3x.png
deleted file mode 100644
index c987c7b5..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@4x.png
deleted file mode 100644
index c2351de8..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed.png
deleted file mode 100644
index fcf8a5f3..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@2x.png
deleted file mode 100644
index b8747547..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@3x.png
deleted file mode 100644
index 1a254945..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@4x.png
deleted file mode 100644
index 7af5cc05..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked.png
deleted file mode 100644
index 00af5fd7..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked@2x.png
deleted file mode 100644
index b9ae1ce2..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked@3x.png
deleted file mode 100644
index fbcd46df..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-checked@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-checked@4x.png
deleted file mode 100644
index 04807b20..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-checked@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-disabled.png b/src/imports/controls/imagine/images/switchdelegate-indicator-disabled.png
deleted file mode 100644
index 47800da2..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-disabled.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@2x.png
deleted file mode 100644
index bc3cfbf4..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@3x.png
deleted file mode 100644
index b29d5756..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@4x.png
deleted file mode 100644
index 22562fdf..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-disabled@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-focused.png b/src/imports/controls/imagine/images/switchdelegate-indicator-focused.png
deleted file mode 100644
index 570f6872..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-focused.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-focused@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-focused@2x.png
deleted file mode 100644
index 389c7f51..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-focused@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-focused@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-focused@3x.png
deleted file mode 100644
index c2e2a155..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-focused@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-focused@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-focused@4x.png
deleted file mode 100644
index 3637139f..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-focused@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-hovered.png b/src/imports/controls/imagine/images/switchdelegate-indicator-hovered.png
deleted file mode 100644
index 570f6872..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-hovered.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@2x.png
deleted file mode 100644
index 389c7f51..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@3x.png
deleted file mode 100644
index c2e2a155..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@4x.png
deleted file mode 100644
index 3637139f..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-hovered@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-pressed.png b/src/imports/controls/imagine/images/switchdelegate-indicator-pressed.png
deleted file mode 100644
index 6129c382..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-pressed.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@2x.png
deleted file mode 100644
index 144eb013..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@3x.png
deleted file mode 100644
index f59d9051..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@4x.png
deleted file mode 100644
index 48d24f7c..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator-pressed@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator.png b/src/imports/controls/imagine/images/switchdelegate-indicator.png
deleted file mode 100644
index e0ec85e2..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator@2x.png b/src/imports/controls/imagine/images/switchdelegate-indicator@2x.png
deleted file mode 100644
index d0026507..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator@3x.png b/src/imports/controls/imagine/images/switchdelegate-indicator@3x.png
deleted file mode 100644
index 1a59e3b0..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/switchdelegate-indicator@4x.png b/src/imports/controls/imagine/images/switchdelegate-indicator@4x.png
deleted file mode 100644
index 1db31ec3..00000000
--- a/src/imports/controls/imagine/images/switchdelegate-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbar-background.png b/src/imports/controls/imagine/images/tabbar-background.png
deleted file mode 100644
index 1d806c2d..00000000
--- a/src/imports/controls/imagine/images/tabbar-background.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbar-background@2x.png b/src/imports/controls/imagine/images/tabbar-background@2x.png
deleted file mode 100644
index 943f11ba..00000000
--- a/src/imports/controls/imagine/images/tabbar-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbar-background@3x.png b/src/imports/controls/imagine/images/tabbar-background@3x.png
deleted file mode 100644
index 4f0568a7..00000000
--- a/src/imports/controls/imagine/images/tabbar-background@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbar-background@4x.png b/src/imports/controls/imagine/images/tabbar-background@4x.png
deleted file mode 100644
index 33a7918c..00000000
--- a/src/imports/controls/imagine/images/tabbar-background@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-checked.9.png b/src/imports/controls/imagine/images/tabbutton-background-checked.9.png
deleted file mode 100644
index 7f2f6aa6..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-checked@2x.9.png b/src/imports/controls/imagine/images/tabbutton-background-checked@2x.9.png
deleted file mode 100644
index 86dab9ac..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-checked@3x.9.png b/src/imports/controls/imagine/images/tabbutton-background-checked@3x.9.png
deleted file mode 100644
index f426f6a3..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-checked@4x.9.png b/src/imports/controls/imagine/images/tabbutton-background-checked@4x.9.png
deleted file mode 100644
index fa4859e5..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-disabled-checked.9.png b/src/imports/controls/imagine/images/tabbutton-background-disabled-checked.9.png
deleted file mode 100644
index 0397108c..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-disabled-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@2x.9.png b/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@2x.9.png
deleted file mode 100644
index e80b3c78..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@3x.9.png b/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@3x.9.png
deleted file mode 100644
index 97653e39..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@4x.9.png b/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@4x.9.png
deleted file mode 100644
index f32db8c9..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-disabled-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-disabled.9.png b/src/imports/controls/imagine/images/tabbutton-background-disabled.9.png
deleted file mode 100644
index 0397108c..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-disabled@2x.9.png b/src/imports/controls/imagine/images/tabbutton-background-disabled@2x.9.png
deleted file mode 100644
index e80b3c78..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-disabled@3x.9.png b/src/imports/controls/imagine/images/tabbutton-background-disabled@3x.9.png
deleted file mode 100644
index 97653e39..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-disabled@4x.9.png b/src/imports/controls/imagine/images/tabbutton-background-disabled@4x.9.png
deleted file mode 100644
index f32db8c9..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-hovered.9.png b/src/imports/controls/imagine/images/tabbutton-background-hovered.9.png
deleted file mode 100644
index 0838287b..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-hovered@2x.9.png b/src/imports/controls/imagine/images/tabbutton-background-hovered@2x.9.png
deleted file mode 100644
index 71fde8ce..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-hovered@3x.9.png b/src/imports/controls/imagine/images/tabbutton-background-hovered@3x.9.png
deleted file mode 100644
index a289bbd2..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-hovered@4x.9.png b/src/imports/controls/imagine/images/tabbutton-background-hovered@4x.9.png
deleted file mode 100644
index 20e16933..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-pressed.9.png b/src/imports/controls/imagine/images/tabbutton-background-pressed.9.png
deleted file mode 100644
index 92e078bb..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-pressed@2x.9.png b/src/imports/controls/imagine/images/tabbutton-background-pressed@2x.9.png
deleted file mode 100644
index 20f7e55e..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-pressed@3x.9.png b/src/imports/controls/imagine/images/tabbutton-background-pressed@3x.9.png
deleted file mode 100644
index 74e8ce65..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background-pressed@4x.9.png b/src/imports/controls/imagine/images/tabbutton-background-pressed@4x.9.png
deleted file mode 100644
index 20e52e48..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background.9.png b/src/imports/controls/imagine/images/tabbutton-background.9.png
deleted file mode 100644
index 60bddd70..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background@2x.9.png b/src/imports/controls/imagine/images/tabbutton-background@2x.9.png
deleted file mode 100644
index 5e92aa79..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background@3x.9.png b/src/imports/controls/imagine/images/tabbutton-background@3x.9.png
deleted file mode 100644
index b60a9a57..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tabbutton-background@4x.9.png b/src/imports/controls/imagine/images/tabbutton-background@4x.9.png
deleted file mode 100644
index 5fa46bbd..00000000
--- a/src/imports/controls/imagine/images/tabbutton-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background-disabled.9.png b/src/imports/controls/imagine/images/textarea-background-disabled.9.png
deleted file mode 100644
index 23291866..00000000
--- a/src/imports/controls/imagine/images/textarea-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background-disabled@2x.9.png b/src/imports/controls/imagine/images/textarea-background-disabled@2x.9.png
deleted file mode 100644
index 62b0697a..00000000
--- a/src/imports/controls/imagine/images/textarea-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background-disabled@3x.9.png b/src/imports/controls/imagine/images/textarea-background-disabled@3x.9.png
deleted file mode 100644
index 188f0adf..00000000
--- a/src/imports/controls/imagine/images/textarea-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background-disabled@4x.9.png b/src/imports/controls/imagine/images/textarea-background-disabled@4x.9.png
deleted file mode 100644
index 3040bc55..00000000
--- a/src/imports/controls/imagine/images/textarea-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background-focused.9.png b/src/imports/controls/imagine/images/textarea-background-focused.9.png
deleted file mode 100644
index 5098d8b3..00000000
--- a/src/imports/controls/imagine/images/textarea-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background-focused@2x.9.png b/src/imports/controls/imagine/images/textarea-background-focused@2x.9.png
deleted file mode 100644
index 41e3d319..00000000
--- a/src/imports/controls/imagine/images/textarea-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background-focused@3x.9.png b/src/imports/controls/imagine/images/textarea-background-focused@3x.9.png
deleted file mode 100644
index 86052b8d..00000000
--- a/src/imports/controls/imagine/images/textarea-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background-focused@4x.9.png b/src/imports/controls/imagine/images/textarea-background-focused@4x.9.png
deleted file mode 100644
index 8891d4b0..00000000
--- a/src/imports/controls/imagine/images/textarea-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background.9.png b/src/imports/controls/imagine/images/textarea-background.9.png
deleted file mode 100644
index c7c34666..00000000
--- a/src/imports/controls/imagine/images/textarea-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background@2x.9.png b/src/imports/controls/imagine/images/textarea-background@2x.9.png
deleted file mode 100644
index 7196c109..00000000
--- a/src/imports/controls/imagine/images/textarea-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background@3x.9.png b/src/imports/controls/imagine/images/textarea-background@3x.9.png
deleted file mode 100644
index 8e23e0aa..00000000
--- a/src/imports/controls/imagine/images/textarea-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textarea-background@4x.9.png b/src/imports/controls/imagine/images/textarea-background@4x.9.png
deleted file mode 100644
index b0bbb7ce..00000000
--- a/src/imports/controls/imagine/images/textarea-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background-disabled.9.png b/src/imports/controls/imagine/images/textfield-background-disabled.9.png
deleted file mode 100644
index b734333e..00000000
--- a/src/imports/controls/imagine/images/textfield-background-disabled.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background-disabled@2x.9.png b/src/imports/controls/imagine/images/textfield-background-disabled@2x.9.png
deleted file mode 100644
index a24df3b9..00000000
--- a/src/imports/controls/imagine/images/textfield-background-disabled@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background-disabled@3x.9.png b/src/imports/controls/imagine/images/textfield-background-disabled@3x.9.png
deleted file mode 100644
index 094b8ab9..00000000
--- a/src/imports/controls/imagine/images/textfield-background-disabled@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background-disabled@4x.9.png b/src/imports/controls/imagine/images/textfield-background-disabled@4x.9.png
deleted file mode 100644
index 3610c116..00000000
--- a/src/imports/controls/imagine/images/textfield-background-disabled@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background-focused.9.png b/src/imports/controls/imagine/images/textfield-background-focused.9.png
deleted file mode 100644
index b89c7a84..00000000
--- a/src/imports/controls/imagine/images/textfield-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background-focused@2x.9.png b/src/imports/controls/imagine/images/textfield-background-focused@2x.9.png
deleted file mode 100644
index 411ef62c..00000000
--- a/src/imports/controls/imagine/images/textfield-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background-focused@3x.9.png b/src/imports/controls/imagine/images/textfield-background-focused@3x.9.png
deleted file mode 100644
index 52dc65c2..00000000
--- a/src/imports/controls/imagine/images/textfield-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background-focused@4x.9.png b/src/imports/controls/imagine/images/textfield-background-focused@4x.9.png
deleted file mode 100644
index be9f5420..00000000
--- a/src/imports/controls/imagine/images/textfield-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background.9.png b/src/imports/controls/imagine/images/textfield-background.9.png
deleted file mode 100644
index c307aa00..00000000
--- a/src/imports/controls/imagine/images/textfield-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background@2x.9.png b/src/imports/controls/imagine/images/textfield-background@2x.9.png
deleted file mode 100644
index f7df296f..00000000
--- a/src/imports/controls/imagine/images/textfield-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background@3x.9.png b/src/imports/controls/imagine/images/textfield-background@3x.9.png
deleted file mode 100644
index 81d73086..00000000
--- a/src/imports/controls/imagine/images/textfield-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/textfield-background@4x.9.png b/src/imports/controls/imagine/images/textfield-background@4x.9.png
deleted file mode 100644
index d8a96fdd..00000000
--- a/src/imports/controls/imagine/images/textfield-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbar-background.png b/src/imports/controls/imagine/images/toolbar-background.png
deleted file mode 100644
index dcd0cb75..00000000
--- a/src/imports/controls/imagine/images/toolbar-background.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbar-background@2x.png b/src/imports/controls/imagine/images/toolbar-background@2x.png
deleted file mode 100644
index 5a8518c7..00000000
--- a/src/imports/controls/imagine/images/toolbar-background@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbar-background@3x.png b/src/imports/controls/imagine/images/toolbar-background@3x.png
deleted file mode 100644
index 0285b12c..00000000
--- a/src/imports/controls/imagine/images/toolbar-background@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbar-background@4x.png b/src/imports/controls/imagine/images/toolbar-background@4x.png
deleted file mode 100644
index e8d784ce..00000000
--- a/src/imports/controls/imagine/images/toolbar-background@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked-focused.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked-focused.9.png
deleted file mode 100644
index 8ce5b791..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked-focused@2x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked-focused@2x.9.png
deleted file mode 100644
index d99d1577..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked-focused@3x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked-focused@3x.9.png
deleted file mode 100644
index c47247fe..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked-focused@4x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked-focused@4x.9.png
deleted file mode 100644
index e1e519da..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked-hovered.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked-hovered.9.png
deleted file mode 100644
index 8ce5b791..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@2x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@2x.9.png
deleted file mode 100644
index d99d1577..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@3x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@3x.9.png
deleted file mode 100644
index c47247fe..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@4x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@4x.9.png
deleted file mode 100644
index e1e519da..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked.9.png
deleted file mode 100644
index 8ce5b791..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked@2x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked@2x.9.png
deleted file mode 100644
index d99d1577..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked@3x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked@3x.9.png
deleted file mode 100644
index c47247fe..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-checked@4x.9.png b/src/imports/controls/imagine/images/toolbutton-background-checked@4x.9.png
deleted file mode 100644
index e1e519da..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-disabled-checked.9.png b/src/imports/controls/imagine/images/toolbutton-background-disabled-checked.9.png
deleted file mode 100644
index 8ce5b791..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-disabled-checked.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@2x.9.png b/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@2x.9.png
deleted file mode 100644
index d99d1577..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@3x.9.png b/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@3x.9.png
deleted file mode 100644
index c47247fe..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@4x.9.png b/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@4x.9.png
deleted file mode 100644
index e1e519da..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-disabled-checked@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-focused.9.png b/src/imports/controls/imagine/images/toolbutton-background-focused.9.png
deleted file mode 100644
index 8ce5b791..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-focused.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-focused@2x.9.png b/src/imports/controls/imagine/images/toolbutton-background-focused@2x.9.png
deleted file mode 100644
index d99d1577..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-focused@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-focused@3x.9.png b/src/imports/controls/imagine/images/toolbutton-background-focused@3x.9.png
deleted file mode 100644
index c47247fe..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-focused@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-focused@4x.9.png b/src/imports/controls/imagine/images/toolbutton-background-focused@4x.9.png
deleted file mode 100644
index e1e519da..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-focused@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-hovered.9.png b/src/imports/controls/imagine/images/toolbutton-background-hovered.9.png
deleted file mode 100644
index 8ce5b791..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-hovered.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-hovered@2x.9.png b/src/imports/controls/imagine/images/toolbutton-background-hovered@2x.9.png
deleted file mode 100644
index d99d1577..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-hovered@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-hovered@3x.9.png b/src/imports/controls/imagine/images/toolbutton-background-hovered@3x.9.png
deleted file mode 100644
index c47247fe..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-hovered@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-hovered@4x.9.png b/src/imports/controls/imagine/images/toolbutton-background-hovered@4x.9.png
deleted file mode 100644
index e1e519da..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-hovered@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-pressed.9.png b/src/imports/controls/imagine/images/toolbutton-background-pressed.9.png
deleted file mode 100644
index 8ce5b791..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-pressed.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-pressed@2x.9.png b/src/imports/controls/imagine/images/toolbutton-background-pressed@2x.9.png
deleted file mode 100644
index d99d1577..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-pressed@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-pressed@3x.9.png b/src/imports/controls/imagine/images/toolbutton-background-pressed@3x.9.png
deleted file mode 100644
index c47247fe..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-pressed@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background-pressed@4x.9.png b/src/imports/controls/imagine/images/toolbutton-background-pressed@4x.9.png
deleted file mode 100644
index e1e519da..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background-pressed@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background.9.png b/src/imports/controls/imagine/images/toolbutton-background.9.png
deleted file mode 100644
index 2359b090..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background@2x.9.png b/src/imports/controls/imagine/images/toolbutton-background@2x.9.png
deleted file mode 100644
index 6c36bf22..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background@3x.9.png b/src/imports/controls/imagine/images/toolbutton-background@3x.9.png
deleted file mode 100644
index f3cb6144..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolbutton-background@4x.9.png b/src/imports/controls/imagine/images/toolbutton-background@4x.9.png
deleted file mode 100644
index 1bf51a87..00000000
--- a/src/imports/controls/imagine/images/toolbutton-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolseparator-separator-horizontal.9.png b/src/imports/controls/imagine/images/toolseparator-separator-horizontal.9.png
deleted file mode 100644
index 45a22b6d..00000000
--- a/src/imports/controls/imagine/images/toolseparator-separator-horizontal.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolseparator-separator-horizontal@2x.9.png b/src/imports/controls/imagine/images/toolseparator-separator-horizontal@2x.9.png
deleted file mode 100644
index a2dc5227..00000000
--- a/src/imports/controls/imagine/images/toolseparator-separator-horizontal@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolseparator-separator-horizontal@3x.9.png b/src/imports/controls/imagine/images/toolseparator-separator-horizontal@3x.9.png
deleted file mode 100644
index 471da912..00000000
--- a/src/imports/controls/imagine/images/toolseparator-separator-horizontal@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolseparator-separator-horizontal@4x.9.png b/src/imports/controls/imagine/images/toolseparator-separator-horizontal@4x.9.png
deleted file mode 100644
index 23a8b1d3..00000000
--- a/src/imports/controls/imagine/images/toolseparator-separator-horizontal@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolseparator-separator-vertical.9.png b/src/imports/controls/imagine/images/toolseparator-separator-vertical.9.png
deleted file mode 100644
index 31f24342..00000000
--- a/src/imports/controls/imagine/images/toolseparator-separator-vertical.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolseparator-separator-vertical@2x.9.png b/src/imports/controls/imagine/images/toolseparator-separator-vertical@2x.9.png
deleted file mode 100644
index c1722962..00000000
--- a/src/imports/controls/imagine/images/toolseparator-separator-vertical@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolseparator-separator-vertical@3x.9.png b/src/imports/controls/imagine/images/toolseparator-separator-vertical@3x.9.png
deleted file mode 100644
index c7de6ead..00000000
--- a/src/imports/controls/imagine/images/toolseparator-separator-vertical@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/toolseparator-separator-vertical@4x.9.png b/src/imports/controls/imagine/images/toolseparator-separator-vertical@4x.9.png
deleted file mode 100644
index e17b5dbd..00000000
--- a/src/imports/controls/imagine/images/toolseparator-separator-vertical@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tooltip-background.9.png b/src/imports/controls/imagine/images/tooltip-background.9.png
deleted file mode 100644
index b7f04322..00000000
--- a/src/imports/controls/imagine/images/tooltip-background.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tooltip-background@2x.9.png b/src/imports/controls/imagine/images/tooltip-background@2x.9.png
deleted file mode 100644
index 9825f59b..00000000
--- a/src/imports/controls/imagine/images/tooltip-background@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tooltip-background@3x.9.png b/src/imports/controls/imagine/images/tooltip-background@3x.9.png
deleted file mode 100644
index 59dad6cc..00000000
--- a/src/imports/controls/imagine/images/tooltip-background@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/images/tooltip-background@4x.9.png b/src/imports/controls/imagine/images/tooltip-background@4x.9.png
deleted file mode 100644
index e14599cf..00000000
--- a/src/imports/controls/imagine/images/tooltip-background@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/imagine/imagine.pri b/src/imports/controls/imagine/imagine.pri
deleted file mode 100644
index 081a509e..00000000
--- a/src/imports/controls/imagine/imagine.pri
+++ /dev/null
@@ -1,59 +0,0 @@
-QML_FILES += \
- $$PWD/ApplicationWindow.qml \
- $$PWD/BusyIndicator.qml \
- $$PWD/Button.qml \
- $$PWD/CheckBox.qml \
- $$PWD/CheckDelegate.qml \
- $$PWD/ComboBox.qml \
- $$PWD/DelayButton.qml \
- $$PWD/Dial.qml \
- $$PWD/Dialog.qml \
- $$PWD/DialogButtonBox.qml \
- $$PWD/Drawer.qml \
- $$PWD/Frame.qml \
- $$PWD/GroupBox.qml \
- $$PWD/ItemDelegate.qml \
- $$PWD/Label.qml \
- $$PWD/Menu.qml \
- $$PWD/MenuItem.qml \
- $$PWD/MenuSeparator.qml \
- $$PWD/PageIndicator.qml \
- $$PWD/Page.qml \
- $$PWD/Pane.qml \
- $$PWD/Popup.qml \
- $$PWD/ProgressBar.qml \
- $$PWD/RadioButton.qml \
- $$PWD/RadioDelegate.qml \
- $$PWD/RangeSlider.qml \
- $$PWD/RoundButton.qml \
- $$PWD/ScrollBar.qml \
- $$PWD/ScrollIndicator.qml \
- $$PWD/Slider.qml \
- $$PWD/SpinBox.qml \
- $$PWD/SplitView.qml \
- $$PWD/StackView.qml \
- $$PWD/SwipeDelegate.qml \
- $$PWD/SwipeView.qml \
- $$PWD/Switch.qml \
- $$PWD/SwitchDelegate.qml \
- $$PWD/TextField.qml \
- $$PWD/TextArea.qml \
- $$PWD/TabBar.qml \
- $$PWD/TabButton.qml \
- $$PWD/ToolBar.qml \
- $$PWD/ToolButton.qml \
- $$PWD/ToolSeparator.qml \
- $$PWD/ToolTip.qml \
- $$PWD/Tumbler.qml
-
-HEADERS += \
- $$PWD/qquickimageselector_p.h \
- $$PWD/qquickimaginestyle_p.h \
- $$PWD/qquickimaginetheme_p.h \
- $$PWD/qquickninepatchimage_p.h
-
-SOURCES += \
- $$PWD/qquickimageselector.cpp \
- $$PWD/qquickimaginestyle.cpp \
- $$PWD/qquickimaginetheme.cpp \
- $$PWD/qquickninepatchimage.cpp
diff --git a/src/imports/controls/imagine/imagine.pro b/src/imports/controls/imagine/imagine.pro
deleted file mode 100644
index f16bd081..00000000
--- a/src/imports/controls/imagine/imagine.pro
+++ /dev/null
@@ -1,30 +0,0 @@
-TARGET = qtquickcontrols2imaginestyleplugin
-TARGETPATH = QtQuick/Controls.2/Imagine
-
-IMPORT_NAME = QtQuick.Controls.Imagine
-IMPORT_VERSION = 2.$$QT_MINOR_VERSION
-
-QT += qml quick
-QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-include(imagine.pri)
-
-OTHER_FILES += \
- qmldir \
- $$QML_FILES
-
-SOURCES += \
- $$PWD/qtquickcontrols2imaginestyleplugin.cpp
-
-qtquickcontrols2imaginestyle.prefix = qt-project.org/imports/QtQuick/Controls.2/Imagine
-qtquickcontrols2imaginestyle.files += \
- $$files($$PWD/images/*.png) \
- $$files($$PWD/images/*.webp)
-RESOURCES += qtquickcontrols2imaginestyle
-
-CONFIG += no_cxx_module install_qml_files builtin_resources qtquickcompiler
-load(qml_plugin)
-
-requires(qtConfig(quickcontrols2-imagine))
diff --git a/src/imports/controls/imagine/plugins.qmltypes b/src/imports/controls/imagine/plugins.qmltypes
deleted file mode 100644
index 014714f3..00000000
--- a/src/imports/controls/imagine/plugins.qmltypes
+++ /dev/null
@@ -1,60 +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 -dependencies dependencies.json QtQuick.Controls.Imagine 2.13'
-
-Module {
- dependencies: ["QtQuick.Controls 2.0"]
- Component {
- name: "QQuickAnimatedImageSelector"
- prototype: "QQuickImageSelector"
- exports: ["QtQuick.Controls.Imagine.impl/AnimatedImageSelector 2.3"]
- exportMetaObjectRevisions: [0]
- }
- Component { name: "QQuickAttachedObject"; prototype: "QObject" }
- Component {
- name: "QQuickImageSelector"
- prototype: "QObject"
- exports: ["QtQuick.Controls.Imagine.impl/ImageSelector 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "source"; type: "QUrl"; isReadonly: true }
- Property { name: "name"; type: "string" }
- Property { name: "path"; type: "string" }
- Property { name: "states"; type: "QVariantList" }
- Property { name: "separator"; type: "string" }
- Property { name: "cache"; type: "bool" }
- }
- Component {
- name: "QQuickImagineStyle"
- prototype: "QQuickAttachedObject"
- exports: ["QtQuick.Controls.Imagine/Imagine 2.3"]
- isCreatable: false
- exportMetaObjectRevisions: [0]
- Property { name: "path"; type: "string" }
- Property { name: "url"; type: "QUrl"; isReadonly: true }
- }
- Component {
- name: "QQuickNinePatchImage"
- defaultProperty: "data"
- prototype: "QQuickImage"
- exports: ["QtQuick.Controls.Imagine.impl/NinePatchImage 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "topPadding"; type: "double"; isReadonly: true }
- Property { name: "leftPadding"; type: "double"; isReadonly: true }
- Property { name: "rightPadding"; type: "double"; isReadonly: true }
- Property { name: "bottomPadding"; type: "double"; isReadonly: true }
- Property { name: "topInset"; type: "double"; isReadonly: true }
- Property { name: "leftInset"; type: "double"; isReadonly: true }
- Property { name: "rightInset"; type: "double"; isReadonly: true }
- Property { name: "bottomInset"; type: "double"; isReadonly: true }
- }
- Component {
- name: "QQuickNinePatchImageSelector"
- prototype: "QQuickImageSelector"
- exports: ["QtQuick.Controls.Imagine.impl/NinePatchImageSelector 2.3"]
- exportMetaObjectRevisions: [0]
- }
-}
diff --git a/src/imports/controls/imagine/qmldir b/src/imports/controls/imagine/qmldir
deleted file mode 100644
index 7b4b3ea0..00000000
--- a/src/imports/controls/imagine/qmldir
+++ /dev/null
@@ -1,5 +0,0 @@
-module QtQuick.Controls.Imagine
-plugin qtquickcontrols2imaginestyleplugin
-classname QtQuickControls2ImagineStylePlugin
-depends QtQuick.Controls 2.5
-depends QtGraphicalEffects 1.0
diff --git a/src/imports/controls/imagine/qquickimageselector.cpp b/src/imports/controls/imagine/qquickimageselector.cpp
deleted file mode 100644
index 67d3a24b..00000000
--- a/src/imports/controls/imagine/qquickimageselector.cpp
+++ /dev/null
@@ -1,338 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickimageselector_p.h"
-
-#include <QtCore/qdir.h>
-#include <QtCore/qfileinfo.h>
-#include <QtCore/qcache.h>
-#include <QtCore/qloggingcategory.h>
-#include <QtCore/qfileselector.h>
-#include <QtQml/qqmlfile.h>
-#include <QtQml/private/qqmlproperty_p.h>
-#include <algorithm>
-
-QT_BEGIN_NAMESPACE
-
-static const int DEFAULT_CACHE = 500;
-
-static inline int cacheSize()
-{
- static bool ok = false;
- static const int size = qEnvironmentVariableIntValue("QT_QUICK_CONTROLS_IMAGINE_CACHE", &ok);
- return ok ? size : DEFAULT_CACHE;
-}
-
-Q_DECLARE_LOGGING_CATEGORY(lcQtQuickControlsImagine)
-
-// input: [focused, pressed]
-// => [[focused, pressed], [pressed, focused], [focused], [pressed]]
-static QList<QStringList> permutations(const QStringList &input, int count = -1)
-{
- if (count == -1)
- count = input.count();
-
- QList<QStringList> output;
- for (int i = 0; i < input.count(); ++i) {
- QStringList sub = input.mid(i, count);
-
- if (count > 1) {
- if (i + count > input.count())
- sub += input.mid(0, count - i + 1);
-
- std::sort(sub.begin(), sub.end());
- do {
- if (!sub.isEmpty())
- output += sub;
- } while (std::next_permutation(sub.begin(), sub.end()));
- } else {
- output += sub;
- }
-
- if (count == input.count())
- break;
- }
-
- if (count > 1)
- output += permutations(input, --count);
-
- return output;
-}
-
-static QString findFile(const QDir &dir, const QString &baseName, const QStringList &extensions)
-{
- for (const QString &ext : extensions) {
- QString filePath = dir.filePath(baseName + QLatin1Char('.') + ext);
- if (QFile::exists(filePath))
- return QFileSelector().select(filePath);
- }
- // return an empty string to indicate that the lookup has been done
- // even if no matching asset was found
- return QLatin1String("");
-}
-
-QQuickImageSelector::QQuickImageSelector(QObject *parent)
- : QObject(parent),
- m_cache(cacheSize() > 0)
-{
-}
-
-QUrl QQuickImageSelector::source() const
-{
- return m_source;
-}
-
-void QQuickImageSelector::setSource(const QUrl &source)
-{
- if (m_property.isValid())
- QQmlPropertyPrivate::write(m_property, source, QQmlPropertyData::BypassInterceptor | QQmlPropertyData::DontRemoveBinding);
- if (m_source == source)
- return;
-
- m_source = source;
- emit sourceChanged();
-}
-
-QString QQuickImageSelector::name() const
-{
- return m_name;
-}
-
-void QQuickImageSelector::setName(const QString &name)
-{
- if (m_name == name)
- return;
-
- m_name = name;
- if (m_complete)
- updateSource();
-}
-
-QString QQuickImageSelector::path() const
-{
- return m_path;
-}
-
-void QQuickImageSelector::setPath(const QString &path)
-{
- if (m_path == path)
- return;
-
- m_path = path;
- if (m_complete)
- updateSource();
-}
-
-QVariantList QQuickImageSelector::states() const
-{
- return m_allStates;
-}
-
-void QQuickImageSelector::setStates(const QVariantList &states)
-{
- if (m_allStates == states)
- return;
-
- m_allStates = states;
- if (updateActiveStates() && m_complete)
- updateSource();
-}
-
-QString QQuickImageSelector::separator() const
-{
- return m_separator;
-}
-
-void QQuickImageSelector::setSeparator(const QString &separator)
-{
- if (m_separator == separator)
- return;
-
- m_separator = separator;
- if (m_complete)
- updateSource();
-}
-
-bool QQuickImageSelector::cache() const
-{
- return m_cache;
-}
-
-void QQuickImageSelector::setCache(bool cache)
-{
- m_cache = cache;
-}
-
-void QQuickImageSelector::write(const QVariant &value)
-{
- setUrl(value.toUrl());
-}
-
-void QQuickImageSelector::setTarget(const QQmlProperty &property)
-{
- m_property = property;
-}
-
-void QQuickImageSelector::classBegin()
-{
-}
-
-void QQuickImageSelector::componentComplete()
-{
- setUrl(m_property.read().toUrl());
- m_complete = true;
- updateSource();
-}
-
-QStringList QQuickImageSelector::fileExtensions() const
-{
- static const QStringList extensions = QStringList() << QStringLiteral("png");
- return extensions;
-}
-
-QString QQuickImageSelector::cacheKey() const
-{
- if (!m_cache)
- return QString();
-
- return m_path + m_name + m_activeStates.join(m_separator);
-}
-
-void QQuickImageSelector::updateSource()
-{
- static QCache<QString, QString> cache(cacheSize());
-
- const QString key = cacheKey();
-
- QString bestFilePath;
-
- if (m_cache) {
- QString *cachedPath = cache.object(key);
- if (cachedPath)
- bestFilePath = *cachedPath;
- }
-
- // note: a cached file path may be empty
- if (bestFilePath.isNull()) {
- QDir dir(m_path);
- int bestScore = -1;
-
- const QStringList extensions = fileExtensions();
-
- const QList<QStringList> statePerms = permutations(m_activeStates);
- for (const QStringList &perm : statePerms) {
- const QString filePath = findFile(dir, m_name + m_separator + perm.join(m_separator), extensions);
- if (!filePath.isEmpty()) {
- int score = calculateScore(perm);
- if (score > bestScore) {
- bestScore = score;
- bestFilePath = filePath;
- }
- }
- }
-
- if (bestFilePath.isEmpty())
- bestFilePath = findFile(dir, m_name, extensions);
-
- if (m_cache)
- cache.insert(key, new QString(bestFilePath));
- }
-
- qCDebug(lcQtQuickControlsImagine) << m_name << m_activeStates << "->" << bestFilePath;
-
- if (bestFilePath.startsWith(QLatin1Char(':')))
- setSource(QUrl(QLatin1String("qrc") + bestFilePath));
- else
- setSource(QUrl::fromLocalFile(bestFilePath));
-}
-
-void QQuickImageSelector::setUrl(const QUrl &url)
-{
- QFileInfo fileInfo(QQmlFile::urlToLocalFileOrQrc(url));
- setName(fileInfo.fileName());
- setPath(fileInfo.path());
-}
-
-bool QQuickImageSelector::updateActiveStates()
-{
- QStringList active;
- for (const QVariant &v : qAsConst(m_allStates)) {
- const QVariantMap state = v.toMap();
- if (state.isEmpty())
- continue;
- auto it = state.begin();
- if (it.value().toBool())
- active += it.key();
- }
-
- if (m_activeStates == active)
- return false;
-
- m_activeStates = active;
- return true;
-}
-
-int QQuickImageSelector::calculateScore(const QStringList &states) const
-{
- int score = 0;
- for (int i = 0; i < states.count(); ++i)
- score += (m_activeStates.count() - m_activeStates.indexOf(states.at(i))) << 1;
- return score;
-}
-
-QQuickNinePatchImageSelector::QQuickNinePatchImageSelector(QObject *parent)
- : QQuickImageSelector(parent)
-{
-}
-
-QStringList QQuickNinePatchImageSelector::fileExtensions() const
-{
- static const QStringList extensions = QStringList() << QStringLiteral("9.png") << QStringLiteral("png");
- return extensions;
-}
-
-QQuickAnimatedImageSelector::QQuickAnimatedImageSelector(QObject *parent)
- : QQuickImageSelector(parent)
-{
-}
-
-QStringList QQuickAnimatedImageSelector::fileExtensions() const
-{
- static const QStringList extensions = QStringList() << QStringLiteral("webp") << QStringLiteral("gif");
- return extensions;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/imagine/qquickimageselector_p.h b/src/imports/controls/imagine/qquickimageselector_p.h
deleted file mode 100644
index d050707d..00000000
--- a/src/imports/controls/imagine/qquickimageselector_p.h
+++ /dev/null
@@ -1,151 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKIMAGESELECTOR_P_H
-#define QQUICKIMAGESELECTOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qurl.h>
-#include <QtCore/qobject.h>
-#include <QtCore/qvariant.h>
-#include <QtQml/qqmlproperty.h>
-#include <QtQml/qqmlparserstatus.h>
-#include <QtQml/private/qqmlpropertyvalueinterceptor_p.h>
-#include <QtQml/qqmlproperty.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickImageSelector : public QObject, public QQmlParserStatus, public QQmlPropertyValueInterceptor
-{
- Q_OBJECT
- Q_PROPERTY(QUrl source READ source NOTIFY sourceChanged FINAL)
- Q_PROPERTY(QString name READ name WRITE setName FINAL)
- Q_PROPERTY(QString path READ path WRITE setPath FINAL)
- Q_PROPERTY(QVariantList states READ states WRITE setStates FINAL)
- Q_PROPERTY(QString separator READ separator WRITE setSeparator FINAL)
- Q_PROPERTY(bool cache READ cache WRITE setCache FINAL)
- Q_INTERFACES(QQmlParserStatus QQmlPropertyValueInterceptor)
-
-public:
- explicit QQuickImageSelector(QObject *parent = nullptr);
-
- QUrl source() const;
- void setSource(const QUrl &source);
-
- QString name() const;
- void setName(const QString &name);
-
- QString path() const;
- void setPath(const QString &path);
-
- QVariantList states() const;
- void setStates(const QVariantList &states);
-
- QString separator() const;
- void setSeparator(const QString &separator);
-
- bool cache() const;
- void setCache(bool cache);
-
- void write(const QVariant &value) override;
- void setTarget(const QQmlProperty &property) override;
-
-Q_SIGNALS:
- void sourceChanged();
-
-protected:
- void classBegin() override;
- void componentComplete() override;
-
- virtual QStringList fileExtensions() const;
-
- QString cacheKey() const;
- void updateSource();
- void setUrl(const QUrl &url);
- bool updateActiveStates();
- int calculateScore(const QStringList &states) const;
-
-private:
- bool m_cache = false;
- bool m_complete = false;
- QUrl m_source;
- QString m_path;
- QString m_name;
- QString m_separator = QLatin1String("-");
- QVariantList m_allStates;
- QStringList m_activeStates;
- QQmlProperty m_property;
-};
-
-class QQuickNinePatchImageSelector : public QQuickImageSelector
-{
- Q_OBJECT
-
-public:
- explicit QQuickNinePatchImageSelector(QObject *parent = nullptr);
-
-protected:
- QStringList fileExtensions() const override;
-};
-
-class QQuickAnimatedImageSelector : public QQuickImageSelector
-{
- Q_OBJECT
-
-public:
- explicit QQuickAnimatedImageSelector(QObject *parent = nullptr);
-
-protected:
- QStringList fileExtensions() const override;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickImageSelector)
-QML_DECLARE_TYPE(QQuickAnimatedImageSelector)
-
-#endif // QQUICKIMAGESELECTOR_P_H
diff --git a/src/imports/controls/imagine/qquickimaginestyle.cpp b/src/imports/controls/imagine/qquickimaginestyle.cpp
deleted file mode 100644
index 9e1431de..00000000
--- a/src/imports/controls/imagine/qquickimaginestyle.cpp
+++ /dev/null
@@ -1,168 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickimaginestyle_p.h"
-
-#include <QtCore/qsettings.h>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-
-QT_BEGIN_NAMESPACE
-
-Q_GLOBAL_STATIC_WITH_ARGS(QString, GlobalPath, (QLatin1String("qrc:/qt-project.org/imports/QtQuick/Controls.2/Imagine/images/")))
-
-static const QString ensureSlash(const QString &path)
-{
- const QChar slash = QLatin1Char('/');
- return path.endsWith(slash) ? path : path + slash;
-}
-
-QQuickImagineStyle::QQuickImagineStyle(QObject *parent)
- : QQuickAttachedObject(parent),
- m_path(*GlobalPath())
-{
- init();
-}
-
-QQuickImagineStyle *QQuickImagineStyle::qmlAttachedProperties(QObject *object)
-{
- return new QQuickImagineStyle(object);
-}
-
-QString QQuickImagineStyle::path() const
-{
- return m_path;
-}
-
-void QQuickImagineStyle::setPath(const QString &path)
-{
- m_explicitPath = true;
- if (m_path == path)
- return;
-
- m_path = path;
- propagatePath();
-
- emit pathChanged();
-}
-
-void QQuickImagineStyle::inheritPath(const QString &path)
-{
- if (m_explicitPath || m_path == path)
- return;
-
- m_path = path;
- propagatePath();
- emit pathChanged();
-}
-
-void QQuickImagineStyle::propagatePath()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickImagineStyle *imagine = qobject_cast<QQuickImagineStyle *>(child);
- if (imagine)
- imagine->inheritPath(m_path);
- }
-}
-
-void QQuickImagineStyle::resetPath()
-{
- if (!m_explicitPath)
- return;
-
- m_explicitPath = false;
- QQuickImagineStyle *imagine = qobject_cast<QQuickImagineStyle *>(attachedParent());
- inheritPath(imagine ? imagine->path() : *GlobalPath());
-}
-
-QUrl QQuickImagineStyle::url() const
-{
- // Using ApplicationWindow as an example, its NinePatchImage url
- // was previously assigned like this:
- //
- // soruce: Imagine.path + "applicationwindow-background"
- //
- // If Imagine.path is set to ":/images" by the user, then the final URL would be:
- //
- // QUrl("file:///home/user/qt/qtbase/qml/QtQuick/Controls.2/Imagine/:/images/applicationwindow-background")
- //
- // To ensure that the correct URL is constructed, we do it ourselves here,
- // and then the control QML files use the "url" property instead.
- const QString path = ensureSlash(m_path);
- if (path.startsWith(QLatin1String("qrc")))
- return QUrl(path);
-
- if (path.startsWith(QLatin1String(":/")))
- return QUrl(QLatin1String("qrc") + path);
-
- return QUrl::fromLocalFile(path);
-}
-
-void QQuickImagineStyle::attachedParentChange(QQuickAttachedObject *newParent, QQuickAttachedObject *oldParent)
-{
- Q_UNUSED(oldParent);
- QQuickImagineStyle *imagine = qobject_cast<QQuickImagineStyle *>(newParent);
- if (imagine)
- inheritPath(imagine->path());
-}
-
-static QByteArray resolveSetting(const QByteArray &env, const QSharedPointer<QSettings> &settings, const QString &name)
-{
- QByteArray value = qgetenv(env);
-#if QT_CONFIG(settings)
- if (value.isNull() && !settings.isNull())
- value = settings->value(name).toByteArray();
-#endif
- return value;
-}
-
-void QQuickImagineStyle::init()
-{
- static bool globalsInitialized = false;
- if (!globalsInitialized) {
- QSharedPointer<QSettings> settings = QQuickStylePrivate::settings(QStringLiteral("Imagine"));
-
- QString path = QString::fromUtf8(resolveSetting("QT_QUICK_CONTROLS_IMAGINE_PATH", settings, QStringLiteral("Path")));
- if (!path.isEmpty())
- *GlobalPath() = m_path = ensureSlash(path);
-
- globalsInitialized = true;
- }
-
- QQuickAttachedObject::init(); // TODO: lazy init?
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/imagine/qquickimaginestyle_p.h b/src/imports/controls/imagine/qquickimaginestyle_p.h
deleted file mode 100644
index 20a4baf0..00000000
--- a/src/imports/controls/imagine/qquickimaginestyle_p.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKIMAGINESTYLE_P_H
-#define QQUICKIMAGINESTYLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickControls2/private/qquickattachedobject_p.h>
-#include <QtCore/qvariant.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickImagineStyle : public QQuickAttachedObject
-{
- Q_OBJECT
- Q_PROPERTY(QString path READ path WRITE setPath RESET resetPath NOTIFY pathChanged FINAL)
- Q_PROPERTY(QUrl url READ url NOTIFY pathChanged FINAL)
-
-public:
- explicit QQuickImagineStyle(QObject *parent = nullptr);
-
- static QQuickImagineStyle *qmlAttachedProperties(QObject *object);
-
- QString path() const;
- void setPath(const QString &path);
- void inheritPath(const QString &path);
- void propagatePath();
- void resetPath();
-
- QUrl url() const;
-
-Q_SIGNALS:
- void pathChanged();
-
-protected:
- void attachedParentChange(QQuickAttachedObject *newParent, QQuickAttachedObject *oldParent) override;
-
-private:
- void init();
-
- bool m_explicitPath = false;
- QString m_path;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPEINFO(QQuickImagineStyle, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKIMAGINESTYLE_P_H
diff --git a/src/imports/controls/imagine/qquickimaginetheme.cpp b/src/imports/controls/imagine/qquickimaginetheme.cpp
deleted file mode 100644
index a9722fa5..00000000
--- a/src/imports/controls/imagine/qquickimaginetheme.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickimaginetheme_p.h"
-
-#include <QtQuickTemplates2/private/qquicktheme_p.h>
-
-QT_BEGIN_NAMESPACE
-
-void QQuickImagineTheme::initialize(QQuickTheme *theme)
-{
- QFont systemFont;
- systemFont.setFamily(QLatin1String("Open Sans"));
- theme->setFont(QQuickTheme::System, systemFont);
-
- const QColor accentColor = QColor::fromRgb(0x4fc1e9);
- const QColor windowTextColor = QColor::fromRgb(0x434a54);
- const QColor disabledWindowTextColor = QColor::fromRgb(0xccd1d9);
-
- QPalette systemPalette;
- systemPalette.setColor(QPalette::ButtonText, Qt::white);
- systemPalette.setColor(QPalette::BrightText, Qt::white);
- systemPalette.setColor(QPalette::Highlight, accentColor);
- systemPalette.setColor(QPalette::HighlightedText, Qt::white);
- systemPalette.setColor(QPalette::Text, windowTextColor);
- systemPalette.setColor(QPalette::ToolTipText, Qt::white);
- systemPalette.setColor(QPalette::WindowText, windowTextColor);
- systemPalette.setColor(QPalette::Disabled, QPalette::Text, disabledWindowTextColor);
- systemPalette.setColor(QPalette::Disabled, QPalette::WindowText, disabledWindowTextColor);
- theme->setPalette(QQuickTheme::System, systemPalette);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/imagine/qquickimaginetheme_p.h b/src/imports/controls/imagine/qquickimaginetheme_p.h
deleted file mode 100644
index d3d43074..00000000
--- a/src/imports/controls/imagine/qquickimaginetheme_p.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKIMAGINETHEME_P_H
-#define QQUICKIMAGINETHEME_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qglobal.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTheme;
-
-class QQuickImagineTheme
-{
-public:
- static void initialize(QQuickTheme *theme);
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKIMAGINETHEME_P_H
diff --git a/src/imports/controls/imagine/qquickninepatchimage.cpp b/src/imports/controls/imagine/qquickninepatchimage.cpp
deleted file mode 100644
index c840c6f8..00000000
--- a/src/imports/controls/imagine/qquickninepatchimage.cpp
+++ /dev/null
@@ -1,440 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickninepatchimage_p.h"
-
-#include <QtCore/qfileinfo.h>
-#include <QtQuick/qsggeometry.h>
-#include <QtQuick/qsgtexturematerial.h>
-#include <QtQuick/private/qsgnode_p.h>
-#include <QtQuick/private/qquickimage_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-struct QQuickNinePatchData
-{
- QVector<qreal> coordsForSize(qreal count) const;
-
- inline bool isNull() const { return data.isEmpty(); }
- inline int count() const { return data.size(); }
- inline qreal at(int index) const { return data.at(index); }
- inline qreal size() const { return data.last(); }
-
- void fill(const QVector<qreal> &coords, qreal count);
- void clear();
-
-private:
- bool inverted = false;
- QVector<qreal> data;
-};
-
-QVector<qreal> QQuickNinePatchData::coordsForSize(qreal size) const
-{
- // n = number of stretchable sections
- // We have to compensate when adding 0 and/or
- // the source image width to the divs vector.
- const int l = data.size();
- const int n = (inverted ? l - 1 : l) / 2;
- const qreal stretch = (size - data.last()) / n;
-
- QVector<qreal> coords;
- coords.reserve(l);
- coords.append(0);
-
- bool stretched = !inverted;
- for (int i = 1; i < l; ++i) {
- qreal advance = data[i] - data[i - 1];
- if (stretched)
- advance += stretch;
- coords.append(coords.last() + advance);
-
- stretched = !stretched;
- }
-
- return coords;
-}
-
-void QQuickNinePatchData::fill(const QVector<qreal> &coords, qreal size)
-{
- data.clear();
- inverted = coords.isEmpty() || coords.first() != 0;
-
- // Reserve an extra item in case we need to add the image width/height
- if (inverted) {
- data.reserve(coords.size() + 2);
- data.append(0);
- } else {
- data.reserve(coords.size() + 1);
- }
-
- data += coords;
- data.append(size);
-}
-
-void QQuickNinePatchData::clear()
-{
- data.clear();
-}
-
-class QQuickNinePatchNode : public QSGGeometryNode
-{
-public:
- QQuickNinePatchNode();
- ~QQuickNinePatchNode();
-
- void initialize(QSGTexture *texture, const QSizeF &targetSize, const QSize &sourceSize,
- const QQuickNinePatchData &xDivs, const QQuickNinePatchData &yDivs, qreal dpr);
-
-private:
- QSGGeometry m_geometry;
- QSGTextureMaterial m_material;
-};
-
-QQuickNinePatchNode::QQuickNinePatchNode()
- : m_geometry(QSGGeometry::defaultAttributes_TexturedPoint2D(), 4)
-{
- m_geometry.setDrawingMode(QSGGeometry::DrawTriangles);
- setGeometry(&m_geometry);
- setMaterial(&m_material);
-}
-
-QQuickNinePatchNode::~QQuickNinePatchNode()
-{
- delete m_material.texture();
-}
-
-void QQuickNinePatchNode::initialize(QSGTexture *texture, const QSizeF &targetSize, const QSize &sourceSize,
- const QQuickNinePatchData &xDivs, const QQuickNinePatchData &yDivs, qreal dpr)
-{
- delete m_material.texture();
- m_material.setTexture(texture);
-
- const int xlen = xDivs.count();
- const int ylen = yDivs.count();
-
- if (xlen > 0 && ylen > 0) {
- const int quads = (xlen - 1) * (ylen - 1);
- static const int verticesPerQuad = 6;
- m_geometry.allocate(xlen * ylen, verticesPerQuad * quads);
-
- QSGGeometry::TexturedPoint2D *vertices = m_geometry.vertexDataAsTexturedPoint2D();
- QVector<qreal> xCoords = xDivs.coordsForSize(targetSize.width());
- QVector<qreal> yCoords = yDivs.coordsForSize(targetSize.height());
-
- for (int y = 0; y < ylen; ++y) {
- for (int x = 0; x < xlen; ++x, ++vertices)
- vertices->set(xCoords[x] / dpr, yCoords[y] / dpr,
- xDivs.at(x) / sourceSize.width(),
- yDivs.at(y) / sourceSize.height());
- }
-
- quint16 *indices = m_geometry.indexDataAsUShort();
- int n = quads;
- for (int q = 0; n--; ++q) {
- if ((q + 1) % xlen == 0) // next row
- ++q;
- // Bottom-left half quad triangle
- indices[0] = q;
- indices[1] = q + xlen;
- indices[2] = q + xlen + 1;
-
- // Top-right half quad triangle
- indices[3] = q;
- indices[4] = q + xlen + 1;
- indices[5] = q + 1;
-
- indices += verticesPerQuad;
- }
- }
-
- markDirty(QSGNode::DirtyGeometry | QSGNode::DirtyMaterial);
-}
-
-class QQuickNinePatchImagePrivate : public QQuickImagePrivate
-{
- Q_DECLARE_PUBLIC(QQuickNinePatchImage)
-
-public:
- void updatePatches();
- void updatePaddings(const QSizeF &size, const QVector<qreal> &horizontal, const QVector<qreal> &vertical);
- void updateInsets(const QVector<qreal> &horizontal, const QVector<qreal> &vertical);
-
- bool resetNode = false;
- qreal topPadding = 0;
- qreal leftPadding = 0;
- qreal rightPadding = 0;
- qreal bottomPadding = 0;
- qreal topInset = 0;
- qreal leftInset = 0;
- qreal rightInset = 0;
- qreal bottomInset = 0;
-
- QImage ninePatch;
- QQuickNinePatchData xDivs;
- QQuickNinePatchData yDivs;
-};
-
-static QVector<qreal> readCoords(const QRgb *data, int from, int count, int offset, QRgb color)
-{
- int p1 = -1;
- QVector<qreal> coords;
- for (int i = 0; i < count; ++i) {
- int p2 = from + i * offset;
- if (data[p2] == color) {
- // colored pixel
- if (p1 == -1)
- p1 = i;
- } else {
- // empty pixel
- if (p1 != -1) {
- coords << p1 << i;
- p1 = -1;
- }
- }
- }
- return coords;
-}
-
-void QQuickNinePatchImagePrivate::updatePatches()
-{
- if (ninePatch.isNull())
- return;
-
- int w = ninePatch.width();
- int h = ninePatch.height();
- const QRgb *data = reinterpret_cast<const QRgb *>(ninePatch.constBits());
-
- const QRgb black = qRgb(0,0,0);
- const QRgb red = qRgb(255,0,0);
-
- xDivs.fill(readCoords(data, 1, w - 1, 1, black), w - 2); // top left -> top right
- yDivs.fill(readCoords(data, w, h - 1, w, black), h - 2); // top left -> bottom left
-
- QVector<qreal> hInsets = readCoords(data, (h - 1) * w + 1, w - 1, 1, red); // bottom left -> bottom right
- QVector<qreal> vInsets = readCoords(data, 2 * w - 1, h - 1, w, red); // top right -> bottom right
- updateInsets(hInsets, vInsets);
-
- const QSizeF sz(w - leftInset - rightInset, h - topInset - bottomInset);
- QVector<qreal> hPaddings = readCoords(data, (h - 1) * w + leftInset + 1, sz.width() - 2, 1, black); // bottom left -> bottom right
- QVector<qreal> vPaddings = readCoords(data, (2 + topInset) * w - 1, sz.height() - 2, w, black); // top right -> bottom right
- updatePaddings(sz, hPaddings, vPaddings);
-}
-
-void QQuickNinePatchImagePrivate::updatePaddings(const QSizeF &size, const QVector<qreal> &horizontal, const QVector<qreal> &vertical)
-{
- Q_Q(QQuickNinePatchImage);
- qreal oldTopPadding = topPadding;
- qreal oldLeftPadding = leftPadding;
- qreal oldRightPadding = rightPadding;
- qreal oldBottomPadding = bottomPadding;
-
- if (horizontal.count() >= 2) {
- leftPadding = horizontal.first();
- rightPadding = size.width() - horizontal.last() - 2;
- } else {
- leftPadding = 0;
- rightPadding = 0;
- }
-
- if (vertical.count() >= 2) {
- topPadding = vertical.first();
- bottomPadding = size.height() - vertical.last() - 2;
- } else {
- topPadding = 0;
- bottomPadding = 0;
- }
-
- if (!qFuzzyCompare(oldTopPadding, topPadding))
- emit q->topPaddingChanged();
- if (!qFuzzyCompare(oldBottomPadding, bottomPadding))
- emit q->bottomPaddingChanged();
- if (!qFuzzyCompare(oldLeftPadding, leftPadding))
- emit q->leftPaddingChanged();
- if (!qFuzzyCompare(oldRightPadding, rightPadding))
- emit q->rightPaddingChanged();
-}
-
-void QQuickNinePatchImagePrivate::updateInsets(const QVector<qreal> &horizontal, const QVector<qreal> &vertical)
-{
- Q_Q(QQuickNinePatchImage);
- qreal oldTopInset = topInset;
- qreal oldLeftInset = leftInset;
- qreal oldRightInset = rightInset;
- qreal oldBottomInset = bottomInset;
-
- if (horizontal.count() >= 2 && horizontal.first() == 0)
- leftInset = horizontal.at(1);
- else
- leftInset = 0;
-
- if (horizontal.count() == 2 && horizontal.first() > 0)
- rightInset = horizontal.last() - horizontal.first();
- else if (horizontal.count() == 4)
- rightInset = horizontal.last() - horizontal.at(2);
- else
- rightInset = 0;
-
- if (vertical.count() >= 2 && vertical.first() == 0)
- topInset = vertical.at(1);
- else
- topInset = 0;
-
- if (vertical.count() == 2 && vertical.first() > 0)
- bottomInset = vertical.last() - vertical.first();
- else if (vertical.count() == 4)
- bottomInset = vertical.last() - vertical.at(2);
- else
- bottomInset = 0;
-
- if (!qFuzzyCompare(oldTopInset, topInset))
- emit q->topInsetChanged();
- if (!qFuzzyCompare(oldBottomInset, bottomInset))
- emit q->bottomInsetChanged();
- if (!qFuzzyCompare(oldLeftInset, leftInset))
- emit q->leftInsetChanged();
- if (!qFuzzyCompare(oldRightInset, rightInset))
- emit q->rightInsetChanged();
-}
-
-QQuickNinePatchImage::QQuickNinePatchImage(QQuickItem *parent)
- : QQuickImage(*(new QQuickNinePatchImagePrivate), parent)
-{
-}
-
-qreal QQuickNinePatchImage::topPadding() const
-{
- Q_D(const QQuickNinePatchImage);
- return d->topPadding / d->devicePixelRatio;
-}
-
-qreal QQuickNinePatchImage::leftPadding() const
-{
- Q_D(const QQuickNinePatchImage);
- return d->leftPadding / d->devicePixelRatio;
-}
-
-qreal QQuickNinePatchImage::rightPadding() const
-{
- Q_D(const QQuickNinePatchImage);
- return d->rightPadding / d->devicePixelRatio;
-}
-
-qreal QQuickNinePatchImage::bottomPadding() const
-{
- Q_D(const QQuickNinePatchImage);
- return d->bottomPadding / d->devicePixelRatio;
-}
-
-qreal QQuickNinePatchImage::topInset() const
-{
- Q_D(const QQuickNinePatchImage);
- return d->topInset / d->devicePixelRatio;
-}
-
-qreal QQuickNinePatchImage::leftInset() const
-{
- Q_D(const QQuickNinePatchImage);
- return d->leftInset / d->devicePixelRatio;
-}
-
-qreal QQuickNinePatchImage::rightInset() const
-{
- Q_D(const QQuickNinePatchImage);
- return d->rightInset / d->devicePixelRatio;
-}
-
-qreal QQuickNinePatchImage::bottomInset() const
-{
- Q_D(const QQuickNinePatchImage);
- return d->bottomInset / d->devicePixelRatio;
-}
-
-void QQuickNinePatchImage::pixmapChange()
-{
- Q_D(QQuickNinePatchImage);
- if (QFileInfo(d->url.fileName()).completeSuffix().toLower() == QLatin1String("9.png")) {
- d->resetNode = d->ninePatch.isNull();
- d->ninePatch = d->pix.image();
- if (d->ninePatch.depth() != 32)
- d->ninePatch = d->ninePatch.convertToFormat(QImage::Format_ARGB32);
-
- int w = d->ninePatch.width();
- int h = d->ninePatch.height();
- d->pix.setImage(QImage(d->ninePatch.constBits() + 4 * (w + 1), w - 2, h - 2, d->ninePatch.bytesPerLine(), d->ninePatch.format()));
-
- d->updatePatches();
- } else {
- d->resetNode = !d->ninePatch.isNull();
- d->ninePatch = QImage();
- }
- QQuickImage::pixmapChange();
-}
-
-QSGNode *QQuickNinePatchImage::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data)
-{
- Q_D(QQuickNinePatchImage);
- Q_UNUSED(data);
-
- if (d->resetNode) {
- delete oldNode;
- oldNode = nullptr;
- d->resetNode = false;
- }
-
- QSizeF sz = size();
- QImage image = d->pix.image();
- if (!sz.isValid() || image.isNull()) {
- delete oldNode;
- return nullptr;
- }
-
- if (d->ninePatch.isNull())
- return QQuickImage::updatePaintNode(oldNode, data);
-
- QQuickNinePatchNode *patchNode = static_cast<QQuickNinePatchNode *>(oldNode);
- if (!patchNode)
- patchNode = new QQuickNinePatchNode;
-
-#ifdef QSG_RUNTIME_DESCRIPTION
- qsgnode_set_description(patchNode, QString::fromLatin1("QQuickNinePatchImage: '%1'").arg(d->url.toString()));
-#endif
-
- QSGTexture *texture = window()->createTextureFromImage(image);
- patchNode->initialize(texture, sz * d->devicePixelRatio, image.size(), d->xDivs, d->yDivs, d->devicePixelRatio);
- return patchNode;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/imagine/qquickninepatchimage_p.h b/src/imports/controls/imagine/qquickninepatchimage_p.h
deleted file mode 100644
index 2c29490a..00000000
--- a/src/imports/controls/imagine/qquickninepatchimage_p.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKNINEPATCHIMAGE_P_H
-#define QQUICKNINEPATCHIMAGE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquickimage_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickNinePatchImagePrivate;
-
-class QQuickNinePatchImage : public QQuickImage
-{
- Q_OBJECT
- Q_PROPERTY(qreal topPadding READ topPadding NOTIFY topPaddingChanged FINAL)
- Q_PROPERTY(qreal leftPadding READ leftPadding NOTIFY leftPaddingChanged FINAL)
- Q_PROPERTY(qreal rightPadding READ rightPadding NOTIFY rightPaddingChanged FINAL)
- Q_PROPERTY(qreal bottomPadding READ bottomPadding NOTIFY bottomPaddingChanged FINAL)
- Q_PROPERTY(qreal topInset READ topInset NOTIFY topInsetChanged FINAL)
- Q_PROPERTY(qreal leftInset READ leftInset NOTIFY leftInsetChanged FINAL)
- Q_PROPERTY(qreal rightInset READ rightInset NOTIFY rightInsetChanged FINAL)
- Q_PROPERTY(qreal bottomInset READ bottomInset NOTIFY bottomInsetChanged FINAL)
-
-public:
- explicit QQuickNinePatchImage(QQuickItem *parent = nullptr);
-
- qreal topPadding() const;
- qreal leftPadding() const;
- qreal rightPadding() const;
- qreal bottomPadding() const;
-
- qreal topInset() const;
- qreal leftInset() const;
- qreal rightInset() const;
- qreal bottomInset() const;
-
-Q_SIGNALS:
- void topPaddingChanged();
- void leftPaddingChanged();
- void rightPaddingChanged();
- void bottomPaddingChanged();
-
- void topInsetChanged();
- void leftInsetChanged();
- void rightInsetChanged();
- void bottomInsetChanged();
-
-protected:
- void pixmapChange() override;
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) override;
-
-private:
- Q_DISABLE_COPY(QQuickNinePatchImage)
- Q_DECLARE_PRIVATE(QQuickNinePatchImage)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickNinePatchImage)
-
-#endif // QQUICKNINEPATCHIMAGE_P_H
diff --git a/src/imports/controls/imagine/qtquickcontrols2imaginestyleplugin.cpp b/src/imports/controls/imagine/qtquickcontrols2imaginestyleplugin.cpp
deleted file mode 100644
index 41fd0e85..00000000
--- a/src/imports/controls/imagine/qtquickcontrols2imaginestyleplugin.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 <QtQuickControls2/private/qquickstyleplugin_p.h>
-#include <QtCore/qloggingcategory.h>
-#include <QtQml/qqml.h>
-
-#include "qquickimageselector_p.h"
-#include "qquickimaginestyle_p.h"
-#include "qquickimaginetheme_p.h"
-#include "qquickninepatchimage_p.h"
-
-QT_BEGIN_NAMESPACE
-
-Q_LOGGING_CATEGORY(lcQtQuickControlsImagine, "qt.quick.controls.imagine")
-
-class QtQuickControls2ImagineStylePlugin: public QQuickStylePlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtQuickControls2ImagineStylePlugin(QObject *parent = nullptr);
-
- void registerTypes(const char *uri) override;
-
- QString name() const override;
- void initializeTheme(QQuickTheme *theme) override;
-};
-
-QtQuickControls2ImagineStylePlugin::QtQuickControls2ImagineStylePlugin(QObject *parent) : QQuickStylePlugin(parent)
-{
-}
-
-void QtQuickControls2ImagineStylePlugin::registerTypes(const char *uri)
-{
- qmlRegisterModule(uri, 2, 15); // Qt 5.12->2.12, 5.13->2.13...
- qmlRegisterUncreatableType<QQuickImagineStyle>(uri, 2, 3, "Imagine", tr("Imagine is an attached property"));
-
- QByteArray import = QByteArray(uri) + ".impl";
- qmlRegisterModule(import, 2, 15); // Qt 5.12->2.12, 5.13->2.13...
-
- qmlRegisterType<QQuickAnimatedImageSelector>(import, 2, 3, "AnimatedImageSelector");
- qmlRegisterType<QQuickImageSelector>(import, 2, 3, "ImageSelector");
- qmlRegisterType<QQuickNinePatchImage>(import, 2, 3, "NinePatchImage");
- qmlRegisterType<QQuickNinePatchImageSelector>(import, 2, 3, "NinePatchImageSelector");
-}
-
-QString QtQuickControls2ImagineStylePlugin::name() const
-{
- return QStringLiteral("Imagine");
-}
-
-void QtQuickControls2ImagineStylePlugin::initializeTheme(QQuickTheme *theme)
-{
- QQuickImagineTheme::initialize(theme);
-}
-
-QT_END_NAMESPACE
-
-#include "qtquickcontrols2imaginestyleplugin.moc"
diff --git a/src/imports/controls/material/ApplicationWindow.qml b/src/imports/controls/material/ApplicationWindow.qml
deleted file mode 100644
index 6a10ed7f..00000000
--- a/src/imports/controls/material/ApplicationWindow.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.ApplicationWindow {
- id: window
-
- color: Material.backgroundColor
-
- overlay.modal: Rectangle {
- color: window.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-
- overlay.modeless: Rectangle {
- color: window.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-}
diff --git a/src/imports/controls/material/BoxShadow.qml b/src/imports/controls/material/BoxShadow.qml
deleted file mode 100644
index 5a746c0f..00000000
--- a/src/imports/controls/material/BoxShadow.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-/*
- A implementation of CSS's box-shadow, used by ElevationEffect for a Material Design
- elevation shadow effect.
- */
-RectangularGlow {
- // The 4 properties from CSS box-shadow, plus the inherited color property
- property int offsetX
- property int offsetY
- property int blurRadius
- property int spreadRadius
-
- // The source item the shadow is being applied to, used for correctly
- // calculating the corner radious
- property Item source
-
- property bool fullWidth
- property bool fullHeight
-
- x: (parent.width - width)/2 + offsetX
- y: (parent.height - height)/2 + offsetY
-
- implicitWidth: source ? source.width : parent.width
- implicitHeight: source ? source.height : parent.height
-
- width: implicitWidth + 2 * spreadRadius + (fullWidth ? 2 * cornerRadius : 0)
- height: implicitHeight + 2 * spreadRadius + (fullHeight ? 2 * cornerRadius : 0)
- glowRadius: blurRadius/2
- spread: 0.05
- cornerRadius: blurRadius + (source && source.radius || 0)
-}
diff --git a/src/imports/controls/material/BusyIndicator.qml b/src/imports/controls/material/BusyIndicator.qml
deleted file mode 100644
index 8173248c..00000000
--- a/src/imports/controls/material/BusyIndicator.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.BusyIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
-
- contentItem: BusyIndicatorImpl {
- implicitWidth: control.Material.touchTarget
- implicitHeight: control.Material.touchTarget
- color: control.Material.accentColor
-
- running: control.running
- opacity: control.running ? 1 : 0
- Behavior on opacity { OpacityAnimator { duration: 250 } }
- }
-}
diff --git a/src/imports/controls/material/Button.qml b/src/imports/controls/material/Button.qml
deleted file mode 100644
index 04c6664c..00000000
--- a/src/imports/controls/material/Button.qml
+++ /dev/null
@@ -1,118 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.Button {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topInset: 6
- bottomInset: 6
- padding: 12
- horizontalPadding: padding - 4
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: !enabled ? Material.hintTextColor :
- flat && highlighted ? Material.accentColor :
- highlighted ? Material.primaryHighlightedTextColor : Material.foreground
-
- Material.elevation: flat ? control.down || control.hovered ? 2 : 0
- : control.down ? 8 : 2
- Material.background: flat ? "transparent" : undefined
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: !control.enabled ? control.Material.hintTextColor :
- control.flat && control.highlighted ? control.Material.accentColor :
- control.highlighted ? control.Material.primaryHighlightedTextColor : control.Material.foreground
- }
-
- background: Rectangle {
- implicitWidth: 64
- implicitHeight: control.Material.buttonHeight
-
- radius: 2
- color: !control.enabled ? control.Material.buttonDisabledColor :
- control.highlighted ? control.Material.highlightedButtonColor : control.Material.buttonColor
-
- PaddedRectangle {
- y: parent.height - 4
- width: parent.width
- height: 4
- radius: 2
- topPadding: -2
- clip: true
- visible: control.checkable && (!control.highlighted || control.flat)
- color: control.checked && control.enabled ? control.Material.accentColor : control.Material.secondaryTextColor
- }
-
- // The layer is disabled when the button color is transparent so you can do
- // Material.background: "transparent" and get a proper flat button without needing
- // to set Material.elevation as well
- layer.enabled: control.enabled && control.Material.buttonColor.a > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
-
- Ripple {
- clipRadius: 2
- width: parent.width
- height: parent.height
- pressed: control.pressed
- anchor: control
- active: control.down || control.visualFocus || control.hovered
- color: control.flat && control.highlighted ? control.Material.highlightedRippleColor : control.Material.rippleColor
- }
- }
-}
diff --git a/src/imports/controls/material/CheckBox.qml b/src/imports/controls/material/CheckBox.qml
deleted file mode 100644
index 159e2f12..00000000
--- a/src/imports/controls/material/CheckBox.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.CheckBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 8
- padding: 8
- verticalPadding: padding + 7
-
- indicator: CheckIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
-
- Ripple {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 28; height: 28
-
- z: -1
- anchor: control
- pressed: control.pressed
- active: control.down || control.visualFocus || control.hovered
- color: control.checked ? control.Material.highlightedRippleColor : control.Material.rippleColor
- }
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-}
diff --git a/src/imports/controls/material/CheckDelegate.qml b/src/imports/controls/material/CheckDelegate.qml
deleted file mode 100644
index c7d7575e..00000000
--- a/src/imports/controls/material/CheckDelegate.qml
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.CheckDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 16
- verticalPadding: 8
- spacing: 16
-
- icon.width: 24
- icon.height: 24
- icon.color: enabled ? Material.foreground : Material.hintTextColor
-
- indicator: CheckIndicator {
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: IconLabel {
- leftPadding: !control.mirrored ? 0 : control.indicator.width + control.spacing
- rightPadding: control.mirrored ? 0 : control.indicator.width + control.spacing
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- }
-
- background: Rectangle {
- implicitHeight: control.Material.delegateHeight
-
- color: control.highlighted ? control.Material.listHighlightColor : "transparent"
-
- Ripple {
- width: parent.width
- height: parent.height
-
- clip: visible
- pressed: control.pressed
- anchor: control
- active: control.down || control.visualFocus || control.hovered
- color: control.Material.rippleColor
- }
- }
-}
diff --git a/src/imports/controls/material/CheckIndicator.qml b/src/imports/controls/material/CheckIndicator.qml
deleted file mode 100644
index 7caf8553..00000000
--- a/src/imports/controls/material/CheckIndicator.qml
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-Rectangle {
- id: indicatorItem
- implicitWidth: 18
- implicitHeight: 18
- color: "transparent"
- border.color: !control.enabled ? control.Material.hintTextColor
- : checkState !== Qt.Unchecked ? control.Material.accentColor : control.Material.secondaryTextColor
- border.width: checkState !== Qt.Unchecked ? width / 2 : 2
- radius: 2
-
- property Item control
- property int checkState: control.checkState
-
- Behavior on border.width {
- NumberAnimation {
- duration: 100
- easing.type: Easing.OutCubic
- }
- }
-
- Behavior on border.color {
- ColorAnimation {
- duration: 100
- easing.type: Easing.OutCubic
- }
- }
-
- // TODO: This needs to be transparent
- Image {
- id: checkImage
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 14
- height: 14
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Material/images/check.png"
- fillMode: Image.PreserveAspectFit
-
- scale: indicatorItem.checkState === Qt.Checked ? 1 : 0
- Behavior on scale { NumberAnimation { duration: 100 } }
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 12
- height: 3
-
- scale: indicatorItem.checkState === Qt.PartiallyChecked ? 1 : 0
- Behavior on scale { NumberAnimation { duration: 100 } }
- }
-
- states: [
- State {
- name: "checked"
- when: indicatorItem.checkState === Qt.Checked
- },
- State {
- name: "partiallychecked"
- when: indicatorItem.checkState === Qt.PartiallyChecked
- }
- ]
-
- transitions: Transition {
- SequentialAnimation {
- NumberAnimation {
- target: indicatorItem
- property: "scale"
- // Go down 2 pixels in size.
- to: 1 - 2 / indicatorItem.width
- duration: 120
- }
- NumberAnimation {
- target: indicatorItem
- property: "scale"
- to: 1
- duration: 120
- }
- }
- }
-}
diff --git a/src/imports/controls/material/ComboBox.qml b/src/imports/controls/material/ComboBox.qml
deleted file mode 100644
index 7d635902..00000000
--- a/src/imports/controls/material/ComboBox.qml
+++ /dev/null
@@ -1,179 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.14
-import QtQuick.Window 2.14
-import QtQuick.Controls 2.14
-import QtQuick.Controls.impl 2.14
-import QtQuick.Templates 2.14 as T
-import QtQuick.Controls.Material 2.14
-import QtQuick.Controls.Material.impl 2.14
-
-T.ComboBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- topInset: 6
- bottomInset: 6
-
- leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
- rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
-
- Material.elevation: flat ? control.pressed || control.hovered ? 2 : 0
- : control.pressed ? 8 : 2
- Material.background: flat ? "transparent" : undefined
- Material.foreground: flat ? undefined : Material.primaryTextColor
-
- delegate: MenuItem {
- width: parent.width
- text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
- Material.foreground: control.currentIndex === index ? parent.Material.accent : parent.Material.foreground
- highlighted: control.highlightedIndex === index
- hoverEnabled: control.hoverEnabled
- }
-
- indicator: ColorImage {
- x: control.mirrored ? control.padding : control.width - width - control.padding
- y: control.topPadding + (control.availableHeight - height) / 2
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Material/images/drop-indicator.png"
- }
-
- contentItem: T.TextField {
- padding: 6
- leftPadding: control.editable ? 2 : control.mirrored ? 0 : 12
- rightPadding: control.editable ? 2 : control.mirrored ? 12 : 0
-
- text: control.editable ? control.editText : control.displayText
-
- enabled: control.editable
- autoScroll: control.editable
- readOnly: control.down
- inputMethodHints: control.inputMethodHints
- validator: control.validator
-
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- selectionColor: control.Material.accentColor
- selectedTextColor: control.Material.primaryHighlightedTextColor
- verticalAlignment: Text.AlignVCenter
-
- cursorDelegate: CursorDelegate { }
- }
-
- background: Rectangle {
- implicitWidth: 120
- implicitHeight: control.Material.buttonHeight
-
- radius: control.flat ? 0 : 2
- color: !control.editable ? control.Material.dialogColor : "transparent"
-
- layer.enabled: control.enabled && !control.editable && control.Material.background.a > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
-
- Rectangle {
- visible: control.editable
- y: parent.y + control.baselineOffset
- width: parent.width
- height: control.activeFocus ? 2 : 1
- color: control.editable && control.activeFocus ? control.Material.accentColor : control.Material.hintTextColor
- }
-
- Ripple {
- clip: control.flat
- clipRadius: control.flat ? 0 : 2
- x: control.editable && control.indicator ? control.indicator.x : 0
- width: control.editable && control.indicator ? control.indicator.width : parent.width
- height: parent.height
- pressed: control.pressed
- anchor: control.editable && control.indicator ? control.indicator : control
- active: control.pressed || control.visualFocus || control.hovered
- color: control.Material.rippleColor
- }
- }
-
- popup: T.Popup {
- y: control.editable ? control.height - 5 : 0
- width: control.width
- height: Math.min(contentItem.implicitHeight, control.Window.height - topMargin - bottomMargin)
- transformOrigin: Item.Top
- topMargin: 12
- bottomMargin: 12
-
- Material.theme: control.Material.theme
- Material.accent: control.Material.accent
- Material.primary: control.Material.primary
-
- enter: Transition {
- // grow_fade_in
- NumberAnimation { property: "scale"; from: 0.9; to: 1.0; easing.type: Easing.OutQuint; duration: 220 }
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; easing.type: Easing.OutCubic; duration: 150 }
- }
-
- exit: Transition {
- // shrink_fade_out
- NumberAnimation { property: "scale"; from: 1.0; to: 0.9; easing.type: Easing.OutQuint; duration: 220 }
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; easing.type: Easing.OutCubic; duration: 150 }
- }
-
- contentItem: ListView {
- clip: true
- implicitHeight: contentHeight
- model: control.delegateModel
- currentIndex: control.highlightedIndex
- highlightMoveDuration: 0
-
- T.ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- background: Rectangle {
- radius: 2
- color: parent.Material.dialogColor
-
- layer.enabled: control.enabled
- layer.effect: ElevationEffect {
- elevation: 8
- }
- }
- }
-}
diff --git a/src/imports/controls/material/CursorDelegate.qml b/src/imports/controls/material/CursorDelegate.qml
deleted file mode 100644
index fe2d25c6..00000000
--- a/src/imports/controls/material/CursorDelegate.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Material 2.12
-
-Rectangle {
- id: cursor
-
- color: parent.Material.accentColor
- width: 2
- visible: parent.activeFocus && !parent.readOnly && parent.selectionStart === parent.selectionEnd
-
- Connections {
- target: cursor.parent
- function onCursorPositionChanged() {
- // keep a moving cursor visible
- cursor.opacity = 1
- timer.restart()
- }
- }
-
- Timer {
- id: timer
- running: cursor.parent.activeFocus && !cursor.parent.readOnly && interval != 0
- repeat: true
- interval: Qt.styleHints.cursorFlashTime / 2
- onTriggered: cursor.opacity = !cursor.opacity ? 1 : 0
- // force the cursor visible when gaining focus
- onRunningChanged: cursor.opacity = 1
- }
-}
diff --git a/src/imports/controls/material/DelayButton.qml b/src/imports/controls/material/DelayButton.qml
deleted file mode 100644
index 6b5ef3ad..00000000
--- a/src/imports/controls/material/DelayButton.qml
+++ /dev/null
@@ -1,117 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.DelayButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topInset: 6
- bottomInset: 6
- padding: 12
- horizontalPadding: padding - 4
-
- Material.elevation: control.down ? 8 : 2
-
- transition: Transition {
- NumberAnimation {
- duration: control.delay * (control.pressed ? 1.0 - control.progress : 0.3 * control.progress)
- }
- }
-
- contentItem: Text {
- text: control.text
- font: control.font
- color: !control.enabled ? control.Material.hintTextColor : control.Material.foreground
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- elide: Text.ElideRight
- }
-
- // TODO: Add a proper ripple/ink effect for mouse/touch input and focus state
- background: Rectangle {
- implicitWidth: 64
- implicitHeight: control.Material.buttonHeight
-
- radius: 2
- color: !control.enabled ? control.Material.buttonDisabledColor : control.Material.buttonColor
-
- PaddedRectangle {
- y: parent.height - 4
- width: parent.width
- height: 4
- radius: 2
- topPadding: -2
- clip: true
- color: control.checked && control.enabled ? control.Material.accentColor : control.Material.secondaryTextColor
-
- PaddedRectangle {
- width: parent.width * control.progress
- height: 4
- radius: 2
- topPadding: -2
- rightPadding: Math.max(-2, width - parent.width)
- clip: true
- color: control.Material.accentColor
- }
- }
-
- layer.enabled: control.enabled && control.Material.buttonColor.a > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
-
- Ripple {
- clipRadius: 2
- width: parent.width
- height: parent.height
- pressed: control.pressed
- anchor: control
- active: control.down || control.visualFocus || control.hovered
- color: control.Material.rippleColor
- }
- }
-}
diff --git a/src/imports/controls/material/Dial.qml b/src/imports/controls/material/Dial.qml
deleted file mode 100644
index 1f80a7fe..00000000
--- a/src/imports/controls/material/Dial.qml
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.Dial {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 100 // ### remove 100 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 100 // ### remove 100 in Qt 6
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 100
-
- x: control.width / 2 - width / 2
- y: control.height / 2 - height / 2
- width: Math.max(64, Math.min(control.width, control.height))
- height: width
- color: "transparent"
- radius: width / 2
-
- border.color: control.enabled ? control.Material.accentColor : control.Material.hintTextColor
- }
-
- handle: SliderHandle {
- x: control.background.x + control.background.width / 2 - control.handle.width / 2
- y: control.background.y + control.background.height / 2 - control.handle.height / 2
- transform: [
- Translate {
- y: -control.background.height * 0.4 + control.handle.height / 2
- },
- Rotation {
- angle: control.angle
- origin.x: control.handle.width / 2
- origin.y: control.handle.height / 2
- }
- ]
- implicitWidth: 10
- implicitHeight: 10
-
- value: control.value
- handleHasFocus: control.visualFocus
- handlePressed: control.pressed
- handleHovered: control.hovered
- }
-}
diff --git a/src/imports/controls/material/Dialog.qml b/src/imports/controls/material/Dialog.qml
deleted file mode 100644
index 364c0e57..00000000
--- a/src/imports/controls/material/Dialog.qml
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.Dialog {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- padding: 24
- topPadding: 20
-
- Material.elevation: 24
-
- enter: Transition {
- // grow_fade_in
- NumberAnimation { property: "scale"; from: 0.9; to: 1.0; easing.type: Easing.OutQuint; duration: 220 }
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; easing.type: Easing.OutCubic; duration: 150 }
- }
-
- exit: Transition {
- // shrink_fade_out
- NumberAnimation { property: "scale"; from: 1.0; to: 0.9; easing.type: Easing.OutQuint; duration: 220 }
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; easing.type: Easing.OutCubic; duration: 150 }
- }
-
- background: Rectangle {
- radius: 2
- color: control.Material.dialogColor
-
- layer.enabled: control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
- }
-
- header: Label {
- text: control.title
- visible: control.title
- elide: Label.ElideRight
- padding: 24
- bottomPadding: 0
- // TODO: QPlatformTheme::TitleBarFont
- font.bold: true
- font.pixelSize: 16
- background: PaddedRectangle {
- radius: 2
- color: control.Material.dialogColor
- bottomPadding: -2
- clip: true
- }
- }
-
- footer: DialogButtonBox {
- visible: count > 0
- }
-
- T.Overlay.modal: Rectangle {
- color: control.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-
- T.Overlay.modeless: Rectangle {
- color: control.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-}
diff --git a/src/imports/controls/material/DialogButtonBox.qml b/src/imports/controls/material/DialogButtonBox.qml
deleted file mode 100644
index c53b8210..00000000
--- a/src/imports/controls/material/DialogButtonBox.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.DialogButtonBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: 8
- padding: 8
- verticalPadding: 2
- alignment: Qt.AlignRight
- buttonLayout: T.DialogButtonBox.AndroidLayout
-
- Material.foreground: Material.accent
-
- delegate: Button { flat: true }
-
- contentItem: ListView {
- model: control.contentModel
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
- }
-
- background: PaddedRectangle {
- implicitHeight: control.Material.dialogButtonBoxHeight
- radius: 2
- color: control.Material.dialogColor
- // Rounded corners should be only at the top or at the bottom
- topPadding: control.position === T.DialogButtonBox.Footer ? -2 : 0
- bottomPadding: control.position === T.DialogButtonBox.Header ? -2 : 0
- clip: true
- }
-}
diff --git a/src/imports/controls/material/Drawer.qml b/src/imports/controls/material/Drawer.qml
deleted file mode 100644
index 3d64cdef..00000000
--- a/src/imports/controls/material/Drawer.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.Drawer {
- id: control
-
- parent: T.Overlay.overlay
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: !dim && edge === Qt.BottomEdge && Material.elevation === 0
- leftPadding: !dim && edge === Qt.RightEdge && Material.elevation === 0
- rightPadding: !dim && edge === Qt.LeftEdge && Material.elevation === 0
- bottomPadding: !dim && edge === Qt.TopEdge && Material.elevation === 0
-
- enter: Transition { SmoothedAnimation { velocity: 5 } }
- exit: Transition { SmoothedAnimation { velocity: 5 } }
-
- Material.elevation: !interactive && !dim ? 0 : 16
-
- background: Rectangle {
- color: control.Material.dialogColor
-
- Rectangle {
- readonly property bool horizontal: control.edge === Qt.LeftEdge || control.edge === Qt.RightEdge
- width: horizontal ? 1 : parent.width
- height: horizontal ? parent.height : 1
- color: control.Material.dividerColor
- x: control.edge === Qt.LeftEdge ? parent.width - 1 : 0
- y: control.edge === Qt.TopEdge ? parent.height - 1 : 0
- visible: !control.dim && control.Material.elevation === 0
- }
-
- layer.enabled: control.position > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- fullHeight: true
- }
- }
-
- T.Overlay.modal: Rectangle {
- color: control.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-
- T.Overlay.modeless: Rectangle {
- color: control.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-}
diff --git a/src/imports/controls/material/ElevationEffect.qml b/src/imports/controls/material/ElevationEffect.qml
deleted file mode 100644
index 73a2a238..00000000
--- a/src/imports/controls/material/ElevationEffect.qml
+++ /dev/null
@@ -1,279 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-/*
- An effect for standard Material Design elevation shadows. Useful for using as \c layer.effect.
- */
-Item {
- id: effect
-
- /*
- The source the effect is applied to.
- */
- property var source
-
- /*
- The elevation of the \l source Item.
- */
- property int elevation: 0
-
- /*
- Set to \c true if the \l source Item is the same width as its parent and the shadow
- should be full width instead of rounding around the corner of the Item.
-
- \sa fullHeight
- */
- property bool fullWidth: false
-
- /*
- Set to \c true if the \l source Item is the same height as its parent and the shadow
- should be full height instead of rounding around the corner of the Item.
-
- \sa fullWidth
- */
- property bool fullHeight: false
-
- /*
- \internal
-
- The actual source Item the effect is applied to.
- */
- readonly property Item sourceItem: source.sourceItem
-
- /*
- * The following shadow values are taken from Angular Material
- *
- * The MIT License (MIT)
- *
- * Copyright (c) 2014-2016 Google, Inc. http://angularjs.org
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
- /*
- \internal
-
- The shadows to use for each possible elevation. There are three shadows that when combined
- make up the elevation.
- */
- readonly property var _shadows: [
- [{offset: 0, blur: 0, spread: 0},
- {offset: 0, blur: 0, spread: 0},
- {offset: 0, blur: 0, spread: 0}],
-
- [{offset: 1, blur: 3, spread: 0},
- {offset: 1, blur: 1, spread: 0},
- {offset: 2, blur: 1, spread: -1}],
-
- [{offset: 1, blur: 5, spread: 0},
- {offset: 2, blur: 2, spread: 0},
- {offset: 3, blur: 1, spread: -2}],
-
- [{offset: 1, blur: 8, spread: 0},
- {offset: 3, blur: 4, spread: 0},
- {offset: 3, blur: 3, spread: -2}],
-
- [{offset: 2, blur: 4, spread: -1},
- {offset: 4, blur: 5, spread: 0},
- {offset: 1, blur: 10, spread: 0}],
-
- [{offset: 3, blur: 5, spread: -1},
- {offset: 5, blur: 8, spread: 0},
- {offset: 1, blur: 14, spread: 0}],
-
- [{offset: 3, blur: 5, spread: -1},
- {offset: 6, blur: 10, spread: 0},
- {offset: 1, blur: 18, spread: 0}],
-
- [{offset: 4, blur: 5, spread: -2},
- {offset: 7, blur: 10, spread: 1},
- {offset: 2, blur: 16, spread: 1}],
-
- [{offset: 5, blur: 5, spread: -3},
- {offset: 8, blur: 10, spread: 1},
- {offset: 3, blur: 14, spread: 2}],
-
- [{offset: 5, blur: 6, spread: -3},
- {offset: 9, blur: 12, spread: 1},
- {offset: 3, blur: 16, spread: 2}],
-
- [{offset: 6, blur: 6, spread: -3},
- {offset: 10, blur: 14, spread: 1},
- {offset: 4, blur: 18, spread: 3}],
-
- [{offset: 6, blur: 7, spread: -4},
- {offset: 11, blur: 15, spread: 1},
- {offset: 4, blur: 20, spread: 3}],
-
- [{offset: 7, blur: 8, spread: -4},
- {offset: 12, blur: 17, spread: 2},
- {offset: 5, blur: 22, spread: 4}],
-
- [{offset: 7, blur: 8, spread: -4},
- {offset: 13, blur: 19, spread: 2},
- {offset: 5, blur: 24, spread: 4}],
-
- [{offset: 7, blur: 9, spread: -4},
- {offset: 14, blur: 21, spread: 2},
- {offset: 5, blur: 26, spread: 4}],
-
- [{offset: 8, blur: 9, spread: -5},
- {offset: 15, blur: 22, spread: 2},
- {offset: 6, blur: 28, spread: 5}],
-
- [{offset: 8, blur: 10, spread: -5},
- {offset: 16, blur: 24, spread: 2},
- {offset: 6, blur: 30, spread: 5}],
-
- [{offset: 8, blur: 11, spread: -5},
- {offset: 17, blur: 26, spread: 2},
- {offset: 6, blur: 32, spread: 5}],
-
- [{offset: 9, blur: 11, spread: -5},
- {offset: 18, blur: 28, spread: 2},
- {offset: 7, blur: 34, spread: 6}],
-
- [{offset: 9, blur: 12, spread: -6},
- {offset: 19, blur: 29, spread: 2},
- {offset: 7, blur: 36, spread: 6}],
-
- [{offset: 10, blur: 13, spread: -6},
- {offset: 20, blur: 31, spread: 3},
- {offset: 8, blur: 38, spread: 7}],
-
- [{offset: 10, blur: 13, spread: -6},
- {offset: 21, blur: 33, spread: 3},
- {offset: 8, blur: 40, spread: 7}],
-
- [{offset: 10, blur: 14, spread: -6},
- {offset: 22, blur: 35, spread: 3},
- {offset: 8, blur: 42, spread: 7}],
-
- [{offset: 11, blur: 14, spread: -7},
- {offset: 23, blur: 36, spread: 3},
- {offset: 9, blur: 44, spread: 8}],
-
- [{offset: 11, blur: 15, spread: -7},
- {offset: 24, blur: 38, spread: 3},
- {offset: 9, blur: 46, spread: 8}]
- ]
-
- /*
- \internal
-
- The current shadow based on the elevation.
- */
- readonly property var _shadow: _shadows[Math.max(0, Math.min(elevation, _shadows.length - 1))]
-
- // Nest the shadows and source view in two items rendered as a layer
- // so the shadow is not clipped by the bounds of the source view
- Item {
- property int margin: -100
-
- x: margin
- y: margin
- width: parent.width - 2 * margin
- height: parent.height - 2 * margin
-
- // By rendering as a layer, the shadow will never show through the source item,
- // even when the source item's opacity is less than 1
- layer.enabled: true
-
- // The box shadows automatically pick up the size of the source Item and not
- // the size of the parent, so we don't need to worry about the extra padding
- // in the parent Item
- BoxShadow {
- offsetY: effect._shadow[0].offset
- blurRadius: effect._shadow[0].blur
- spreadRadius: effect._shadow[0].spread
- color: Qt.rgba(0,0,0, 0.2)
-
- fullWidth: effect.fullWidth
- fullHeight: effect.fullHeight
- source: effect.sourceItem
- }
-
- BoxShadow {
- offsetY: effect._shadow[1].offset
- blurRadius: effect._shadow[1].blur
- spreadRadius: effect._shadow[1].spread
- color: Qt.rgba(0,0,0, 0.14)
-
- fullWidth: effect.fullWidth
- fullHeight: effect.fullHeight
- source: effect.sourceItem
- }
-
- BoxShadow {
- offsetY: effect._shadow[2].offset
- blurRadius: effect._shadow[2].blur
- spreadRadius: effect._shadow[2].spread
- color: Qt.rgba(0,0,0, 0.12)
-
- fullWidth: effect.fullWidth
- fullHeight: effect.fullHeight
- source: effect.sourceItem
- }
-
- ShaderEffect {
- property alias source: effect.source
-
- x: (parent.width - width)/2
- y: (parent.height - height)/2
- width: effect.sourceItem.width
- height: effect.sourceItem.height
- }
- }
-}
diff --git a/src/imports/controls/material/Frame.qml b/src/imports/controls/material/Frame.qml
deleted file mode 100644
index 0001825e..00000000
--- a/src/imports/controls/material/Frame.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.Frame {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
- verticalPadding: Material.frameVerticalPadding
-
- background: Rectangle {
- radius: 2
- color: control.Material.elevation > 0 ? control.Material.backgroundColor : "transparent"
- border.color: control.Material.frameColor
-
- layer.enabled: control.enabled && control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
- }
-}
diff --git a/src/imports/controls/material/GroupBox.qml b/src/imports/controls/material/GroupBox.qml
deleted file mode 100644
index e18a5949..00000000
--- a/src/imports/controls/material/GroupBox.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.GroupBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitLabelWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: 6
- padding: 12
- topPadding: Material.frameVerticalPadding + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
- bottomPadding: Material.frameVerticalPadding
-
- label: Text {
- x: control.leftPadding
- width: control.availableWidth
-
- text: control.title
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-
- background: Rectangle {
- y: control.topPadding - control.bottomPadding
- width: parent.width
- height: parent.height - control.topPadding + control.bottomPadding
-
- radius: 2
- color: control.Material.elevation > 0 ? control.Material.backgroundColor : "transparent"
- border.color: control.Material.frameColor
-
- layer.enabled: control.enabled && control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
- }
-}
diff --git a/src/imports/controls/material/ItemDelegate.qml b/src/imports/controls/material/ItemDelegate.qml
deleted file mode 100644
index 2078ce6c..00000000
--- a/src/imports/controls/material/ItemDelegate.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.ItemDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 16
- verticalPadding: 8
- spacing: 16
-
- icon.width: 24
- icon.height: 24
- icon.color: enabled ? Material.foreground : Material.hintTextColor
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- }
-
- background: Rectangle {
- implicitHeight: control.Material.delegateHeight
-
- color: control.highlighted ? control.Material.listHighlightColor : "transparent"
-
- Ripple {
- width: parent.width
- height: parent.height
-
- clip: visible
- pressed: control.pressed
- anchor: control
- active: control.down || control.visualFocus || control.hovered
- color: control.Material.rippleColor
- }
- }
-}
diff --git a/src/imports/controls/material/LICENSE_ANGULARJS.txt b/src/imports/controls/material/LICENSE_ANGULARJS.txt
deleted file mode 100644
index c1f2a826..00000000
--- a/src/imports/controls/material/LICENSE_ANGULARJS.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2014-2016 Google, Inc. http://angularjs.org
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/src/imports/controls/material/Label.qml b/src/imports/controls/material/Label.qml
deleted file mode 100644
index ad923a24..00000000
--- a/src/imports/controls/material/Label.qml
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.Label {
- id: control
-
- color: enabled ? Material.foreground : Material.hintTextColor
- linkColor: Material.accentColor
-}
diff --git a/src/imports/controls/material/Menu.qml b/src/imports/controls/material/Menu.qml
deleted file mode 100644
index d28713a7..00000000
--- a/src/imports/controls/material/Menu.qml
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-import QtQuick.Window 2.12
-
-T.Menu {
- id: control
-
- Material.elevation: 8
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- margins: 0
- verticalPadding: 8
-
- transformOrigin: !cascade ? Item.Top : (mirrored ? Item.TopRight : Item.TopLeft)
-
- delegate: MenuItem { }
-
- enter: Transition {
- // grow_fade_in
- NumberAnimation { property: "scale"; from: 0.9; to: 1.0; easing.type: Easing.OutQuint; duration: 220 }
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; easing.type: Easing.OutCubic; duration: 150 }
- }
-
- exit: Transition {
- // shrink_fade_out
- NumberAnimation { property: "scale"; from: 1.0; to: 0.9; easing.type: Easing.OutQuint; duration: 220 }
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; easing.type: Easing.OutCubic; duration: 150 }
- }
-
- contentItem: ListView {
- implicitHeight: contentHeight
-
- model: control.contentModel
- interactive: Window.window ? contentHeight > Window.window.height : false
- clip: true
- currentIndex: control.currentIndex
-
- ScrollIndicator.vertical: ScrollIndicator {}
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: control.Material.menuItemHeight
-
- radius: 3
- color: control.Material.dialogColor
-
- layer.enabled: control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
- }
-
- T.Overlay.modal: Rectangle {
- color: control.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-
- T.Overlay.modeless: Rectangle {
- color: control.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-}
diff --git a/src/imports/controls/material/MenuBar.qml b/src/imports/controls/material/MenuBar.qml
deleted file mode 100644
index 66252d6e..00000000
--- a/src/imports/controls/material/MenuBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.MenuBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- delegate: MenuBarItem { }
-
- contentItem: Row {
- spacing: control.spacing
- Repeater {
- model: control.contentModel
- }
- }
-
- background: Rectangle {
- implicitHeight: 40
- color: control.Material.dialogColor
- }
-}
diff --git a/src/imports/controls/material/MenuBarItem.qml b/src/imports/controls/material/MenuBarItem.qml
deleted file mode 100644
index 588d6fbb..00000000
--- a/src/imports/controls/material/MenuBarItem.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.MenuBarItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 16
- verticalPadding: 12
- spacing: 16
-
- icon.width: 24
- icon.height: 24
- icon.color: enabled ? Material.foreground : Material.hintTextColor
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- }
-
- background: Rectangle {
- implicitWidth: 40
- implicitHeight: 40
- color: control.highlighted ? control.Material.listHighlightColor : "transparent"
-
- Ripple {
- width: parent.width
- height: parent.height
-
- clip: visible
- pressed: control.pressed
- anchor: control
- active: control.down || control.highlighted
- color: control.Material.rippleColor
- }
- }
-}
diff --git a/src/imports/controls/material/MenuItem.qml b/src/imports/controls/material/MenuItem.qml
deleted file mode 100644
index a5d2f8a1..00000000
--- a/src/imports/controls/material/MenuItem.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.MenuItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 16
- verticalPadding: Material.menuItemVerticalPadding
- spacing: 16
-
- icon.width: 24
- icon.height: 24
- icon.color: enabled ? Material.foreground : Material.hintTextColor
-
- indicator: CheckIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- visible: control.checkable
- control: control
- checkState: control.checked ? Qt.Checked : Qt.Unchecked
- }
-
- arrow: ColorImage {
- x: control.mirrored ? control.padding : control.width - width - control.padding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- visible: control.subMenu
- mirror: control.mirrored
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Material/images/arrow-indicator.png"
- }
-
- contentItem: IconLabel {
- readonly property real arrowPadding: control.subMenu && control.arrow ? control.arrow.width + control.spacing : 0
- readonly property real indicatorPadding: control.checkable && control.indicator ? control.indicator.width + control.spacing : 0
- leftPadding: !control.mirrored ? indicatorPadding : arrowPadding
- rightPadding: control.mirrored ? indicatorPadding : arrowPadding
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: control.Material.menuItemHeight
- color: control.highlighted ? control.Material.listHighlightColor : "transparent"
-
- Ripple {
- width: parent.width
- height: parent.height
-
- clip: visible
- pressed: control.pressed
- anchor: control
- active: control.down || control.highlighted
- color: control.Material.rippleColor
- }
- }
-}
diff --git a/src/imports/controls/material/MenuSeparator.qml b/src/imports/controls/material/MenuSeparator.qml
deleted file mode 100644
index 6d80c049..00000000
--- a/src/imports/controls/material/MenuSeparator.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.MenuSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- verticalPadding: 8
-
- contentItem: Rectangle {
- implicitWidth: 200
- implicitHeight: 1
- color: control.Material.dividerColor
- }
-}
diff --git a/src/imports/controls/material/Page.qml b/src/imports/controls/material/Page.qml
deleted file mode 100644
index 4da0ecc6..00000000
--- a/src/imports/controls/material/Page.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.Page {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- background: Rectangle {
- color: control.Material.backgroundColor
- }
-}
diff --git a/src/imports/controls/material/PageIndicator.qml b/src/imports/controls/material/PageIndicator.qml
deleted file mode 100644
index 5e6ca245..00000000
--- a/src/imports/controls/material/PageIndicator.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.PageIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- delegate: Rectangle {
- implicitWidth: 8
- implicitHeight: 8
-
- radius: width / 2
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
-
- opacity: index === currentIndex ? 0.95 : pressed ? 0.7 : 0.45
- Behavior on opacity { OpacityAnimator { duration: 100 } }
- }
-
- contentItem: Row {
- spacing: control.spacing
-
- Repeater {
- model: control.count
- delegate: control.delegate
- }
- }
-}
diff --git a/src/imports/controls/material/Pane.qml b/src/imports/controls/material/Pane.qml
deleted file mode 100644
index 988e225a..00000000
--- a/src/imports/controls/material/Pane.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.Pane {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
-
- background: Rectangle {
- color: control.Material.backgroundColor
- radius: control.Material.elevation > 0 ? 2 : 0
-
- layer.enabled: control.enabled && control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
- }
-}
diff --git a/src/imports/controls/material/Popup.qml b/src/imports/controls/material/Popup.qml
deleted file mode 100644
index 1b576385..00000000
--- a/src/imports/controls/material/Popup.qml
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.Popup {
- id: control
-
- Material.elevation: 24
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
-
- enter: Transition {
- // grow_fade_in
- NumberAnimation { property: "scale"; from: 0.9; to: 1.0; easing.type: Easing.OutQuint; duration: 220 }
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; easing.type: Easing.OutCubic; duration: 150 }
- }
-
- exit: Transition {
- // shrink_fade_out
- NumberAnimation { property: "scale"; from: 1.0; to: 0.9; easing.type: Easing.OutQuint; duration: 220 }
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; easing.type: Easing.OutCubic; duration: 150 }
- }
-
- background: Rectangle {
- radius: 2
- color: control.Material.dialogColor
-
- layer.enabled: control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
- }
-
- T.Overlay.modal: Rectangle {
- color: control.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-
- T.Overlay.modeless: Rectangle {
- color: control.Material.backgroundDimColor
- Behavior on opacity { NumberAnimation { duration: 150 } }
- }
-}
diff --git a/src/imports/controls/material/ProgressBar.qml b/src/imports/controls/material/ProgressBar.qml
deleted file mode 100644
index 2848f037..00000000
--- a/src/imports/controls/material/ProgressBar.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.ProgressBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- contentItem: ProgressBarImpl {
- implicitHeight: 4
-
- scale: control.mirrored ? -1 : 1
- color: control.Material.accentColor
- progress: control.position
- indeterminate: control.visible && control.indeterminate
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 4
- y: (control.height - height) / 2
- height: 4
-
- color: Qt.rgba(control.Material.accentColor.r, control.Material.accentColor.g, control.Material.accentColor.b, 0.25)
- }
-}
diff --git a/src/imports/controls/material/RadioButton.qml b/src/imports/controls/material/RadioButton.qml
deleted file mode 100644
index dadcc84f..00000000
--- a/src/imports/controls/material/RadioButton.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.RadioButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 8
- padding: 8
- verticalPadding: padding + 6
-
- indicator: RadioIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
-
- Ripple {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 28; height: 28
-
- z: -1
- anchor: control
- pressed: control.pressed
- active: control.down || control.visualFocus || control.hovered
- color: control.checked ? control.Material.highlightedRippleColor : control.Material.rippleColor
- }
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-}
diff --git a/src/imports/controls/material/RadioDelegate.qml b/src/imports/controls/material/RadioDelegate.qml
deleted file mode 100644
index c977d332..00000000
--- a/src/imports/controls/material/RadioDelegate.qml
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.RadioDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 16
- verticalPadding: 8
- spacing: 16
-
- icon.width: 24
- icon.height: 24
- icon.color: enabled ? Material.foreground : Material.hintTextColor
-
- indicator: RadioIndicator {
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: IconLabel {
- leftPadding: !control.mirrored ? 0 : control.indicator.width + control.spacing
- rightPadding: control.mirrored ? 0 : control.indicator.width + control.spacing
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- }
-
- background: Rectangle {
- implicitHeight: control.Material.delegateHeight
-
- color: control.highlighted ? control.Material.listHighlightColor : "transparent"
-
- Ripple {
- width: parent.width
- height: parent.height
-
- clip: visible
- pressed: control.pressed
- anchor: control
- active: control.down || control.visualFocus || control.hovered
- color: control.Material.rippleColor
- }
- }
-}
diff --git a/src/imports/controls/material/RadioIndicator.qml b/src/imports/controls/material/RadioIndicator.qml
deleted file mode 100644
index e2c55184..00000000
--- a/src/imports/controls/material/RadioIndicator.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-Rectangle {
- id: indicator
- implicitWidth: 20
- implicitHeight: 20
- radius: width / 2
- border.width: 2
- border.color: !control.enabled ? control.Material.hintTextColor
- : control.checked || control.down ? control.Material.accentColor : control.Material.secondaryTextColor
- color: "transparent"
-
- property Item control
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 10
- height: 10
- radius: width / 2
- color: parent.border.color
- visible: indicator.control.checked || indicator.control.down
- }
-}
diff --git a/src/imports/controls/material/RangeSlider.qml b/src/imports/controls/material/RangeSlider.qml
deleted file mode 100644
index d735573a..00000000
--- a/src/imports/controls/material/RangeSlider.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.RangeSlider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- first.implicitHandleWidth + leftPadding + rightPadding,
- second.implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- first.implicitHandleHeight + topPadding + bottomPadding,
- second.implicitHandleHeight + topPadding + bottomPadding)
-
- padding: 6
-
- first.handle: SliderHandle {
- x: control.leftPadding + (control.horizontal ? control.first.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.first.visualPosition * (control.availableHeight - height))
- value: first.value
- handleHasFocus: activeFocus
- handlePressed: first.pressed
- handleHovered: first.hovered
- }
-
- second.handle: SliderHandle {
- x: control.leftPadding + (control.horizontal ? control.second.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.second.visualPosition * (control.availableHeight - height))
- value: second.value
- handleHasFocus: activeFocus
- handlePressed: second.pressed
- handleHovered: second.hovered
- }
-
- background: Rectangle {
- x: control.leftPadding + (control.horizontal ? 0 : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : 0)
- implicitWidth: control.horizontal ? 200 : 48
- implicitHeight: control.horizontal ? 48 : 200
- width: control.horizontal ? control.availableWidth : 1
- height: control.horizontal ? 1 : control.availableHeight
- color: control.Material.foreground
- scale:control.horizontal && control.mirrored ? -1 : 1
-
- Rectangle {
- x: control.horizontal ? control.first.position * parent.width : -1
- y: control.horizontal ? -1 : control.second.visualPosition * parent.height + 3
- width: control.horizontal ? control.second.position * parent.width - control.first.position * parent.width - 3 : 3
- height: control.horizontal ? 3 : control.second.position * parent.height - control.first.position * parent.height - 3
-
- color: control.Material.accentColor
- }
- }
-}
diff --git a/src/imports/controls/material/RectangularGlow.qml b/src/imports/controls/material/RectangularGlow.qml
deleted file mode 100644
index c01e536d..00000000
--- a/src/imports/controls/material/RectangularGlow.qml
+++ /dev/null
@@ -1,240 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-/*
- A cross-graphics API implementation of QtGraphicalEffects' RectangularGlow.
- */
-Item {
- id: rootItem
-
- /*
- This property defines how many pixels outside the item area are reached
- by the glow.
-
- The value ranges from 0.0 (no glow) to inf (infinite glow). By default,
- the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different glowRadius values
- \li
- \li
- \row
- \li \image RectangularGlow_glowRadius1.png
- \li \image RectangularGlow_glowRadius2.png
- \li \image RectangularGlow_glowRadius3.png
- \row
- \li \b { glowRadius: 10 }
- \li \b { glowRadius: 20 }
- \li \b { glowRadius: 40 }
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
-
- */
- property real glowRadius: 0.0
-
- /*
- This property defines how large part of the glow color is strenghtened
- near the source edges.
-
- The value ranges from 0.0 (no strenght increase) to 1.0 (maximum
- strenght increase). By default, the property is set to \c 0.0.
-
- \table
- \header
- \li Output examples with different spread values
- \li
- \li
- \row
- \li \image RectangularGlow_spread1.png
- \li \image RectangularGlow_spread2.png
- \li \image RectangularGlow_spread3.png
- \row
- \li \b { spread: 0.0 }
- \li \b { spread: 0.5 }
- \li \b { spread: 1.0 }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
- */
- property real spread: 0.0
-
- /*
- This property defines the RGBA color value which is used for the glow.
-
- By default, the property is set to \c "white".
-
- \table
- \header
- \li Output examples with different color values
- \li
- \li
- \row
- \li \image RectangularGlow_color1.png
- \li \image RectangularGlow_color2.png
- \li \image RectangularGlow_color3.png
- \row
- \li \b { color: #ffffff }
- \li \b { color: #55ff55 }
- \li \b { color: #5555ff }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \li \l cornerRadius: 25
- \endtable
- */
- property color color: "white"
-
- /*
- This property defines the corner radius that is used to draw a glow with
- rounded corners.
-
- The value ranges from 0.0 to half of the effective width or height of
- the glow, whichever is smaller. This can be calculated with: \c{
- min(width, height) / 2.0 + glowRadius}
-
- By default, the property is bound to glowRadius property. The glow
- behaves as if the rectangle was blurred when adjusting the glowRadius
- property.
-
- \table
- \header
- \li Output examples with different cornerRadius values
- \li
- \li
- \row
- \li \image RectangularGlow_cornerRadius1.png
- \li \image RectangularGlow_cornerRadius2.png
- \li \image RectangularGlow_cornerRadius3.png
- \row
- \li \b { cornerRadius: 0 }
- \li \b { cornerRadius: 25 }
- \li \b { cornerRadius: 50 }
- \row
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \li \l glowRadius: 20
- \row
- \li \l spread: 0
- \li \l spread: 0
- \li \l spread: 0
- \row
- \li \l color: #ffffff
- \li \l color: #ffffff
- \li \l color: #ffffff
- \endtable
- */
- property real cornerRadius: glowRadius
-
- /*
- This property allows the effect output pixels to be cached in order to
- improve the rendering performance.
-
- Every time the source or effect properties are changed, the pixels in
- the cache must be updated. Memory consumption is increased, because an
- extra buffer of memory is required for storing the effect output.
-
- It is recommended to disable the cache when the source or the effect
- properties are animated.
-
- By default, the property is set to \c false.
- */
- property bool cached: false
-
- ShaderEffectSource {
- id: cacheItem
- anchors.fill: shaderItem
- visible: rootItem.cached
- smooth: true
- sourceItem: shaderItem
- live: true
- hideSource: visible
- }
-
- ShaderEffect {
- id: shaderItem
-
- x: (parent.width - width) / 2.0
- y: (parent.height - height) / 2.0
- width: parent.width + rootItem.glowRadius * 2 + cornerRadius * 2
- height: parent.height + rootItem.glowRadius * 2 + cornerRadius * 2
-
- function clampedCornerRadius() {
- var maxCornerRadius = Math.min(rootItem.width, rootItem.height) / 2 + rootItem.glowRadius;
- return Math.max(0, Math.min(rootItem.cornerRadius, maxCornerRadius))
- }
-
- property color color: rootItem.color
- property real inverseSpread: 1.0 - rootItem.spread
- property real relativeSizeX: ((inverseSpread * inverseSpread) * rootItem.glowRadius + cornerRadius * 2.0) / width
- property real relativeSizeY: relativeSizeX * (width / height)
- property real spread: rootItem.spread / 2.0
- property real cornerRadius: clampedCornerRadius()
-
- fragmentShader: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Material/shaders/RectangularGlow.frag"
- }
-}
diff --git a/src/imports/controls/material/RoundButton.qml b/src/imports/controls/material/RoundButton.qml
deleted file mode 100644
index 13d0f9db..00000000
--- a/src/imports/controls/material/RoundButton.qml
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.RoundButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- topInset: 6
- leftInset: 6
- rightInset: 6
- bottomInset: 6
- padding: 12
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: !enabled ? Material.hintTextColor :
- flat && highlighted ? Material.accentColor :
- highlighted ? Material.primaryHighlightedTextColor : Material.foreground
-
- Material.elevation: flat ? control.down || control.hovered ? 2 : 0
- : control.down ? 12 : 6
- Material.background: flat ? "transparent" : undefined
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: !control.enabled ? control.Material.hintTextColor :
- control.flat && control.highlighted ? control.Material.accentColor :
- control.highlighted ? control.Material.primaryHighlightedTextColor : control.Material.foreground
- }
-
- // TODO: Add a proper ripple/ink effect for mouse/touch input and focus state
- background: Rectangle {
- implicitWidth: control.Material.buttonHeight
- implicitHeight: control.Material.buttonHeight
-
- radius: control.radius
- color: !control.enabled ? control.Material.buttonDisabledColor
- : control.checked || control.highlighted ? control.Material.highlightedButtonColor : control.Material.buttonColor
-
- Rectangle {
- width: parent.width
- height: parent.height
- radius: control.radius
- visible: control.hovered || control.visualFocus
- color: control.Material.rippleColor
- }
-
- Rectangle {
- width: parent.width
- height: parent.height
- radius: control.radius
- visible: control.down
- color: control.Material.rippleColor
- }
-
- // The layer is disabled when the button color is transparent so that you can do
- // Material.background: "transparent" and get a proper flat button without needing
- // to set Material.elevation as well
- layer.enabled: control.enabled && control.Material.buttonColor.a > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- }
- }
-}
diff --git a/src/imports/controls/material/ScrollBar.qml b/src/imports/controls/material/ScrollBar.qml
deleted file mode 100644
index fda64346..00000000
--- a/src/imports/controls/material/ScrollBar.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.ScrollBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: control.interactive ? 1 : 2
- visible: control.policy !== T.ScrollBar.AlwaysOff
- minimumSize: orientation == Qt.Horizontal ? height / width : width / height
-
- contentItem: Rectangle {
- implicitWidth: control.interactive ? 13 : 4
- implicitHeight: control.interactive ? 13 : 4
-
- color: control.pressed ? control.Material.scrollBarPressedColor :
- control.interactive && control.hovered ? control.Material.scrollBarHoveredColor : control.Material.scrollBarColor
- opacity: 0.0
- }
-
- background: Rectangle {
- implicitWidth: control.interactive ? 16 : 4
- implicitHeight: control.interactive ? 16 : 4
- color: "#0e000000"
- opacity: 0.0
- visible: control.interactive
- }
-
- states: State {
- name: "active"
- when: control.policy === T.ScrollBar.AlwaysOn || (control.active && control.size < 1.0)
- }
-
- transitions: [
- Transition {
- to: "active"
- NumberAnimation { targets: [control.contentItem, control.background]; property: "opacity"; to: 1.0 }
- },
- Transition {
- from: "active"
- SequentialAnimation {
- PropertyAction{ targets: [control.contentItem, control.background]; property: "opacity"; value: 1.0 }
- PauseAnimation { duration: 2450 }
- NumberAnimation { targets: [control.contentItem, control.background]; property: "opacity"; to: 0.0 }
- }
- }
- ]
-}
diff --git a/src/imports/controls/material/ScrollIndicator.qml b/src/imports/controls/material/ScrollIndicator.qml
deleted file mode 100644
index 19f23ad2..00000000
--- a/src/imports/controls/material/ScrollIndicator.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.ScrollIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 2
-
- contentItem: Rectangle {
- implicitWidth: 4
- implicitHeight: 4
-
- color: control.Material.scrollBarColor
- visible: control.size < 1.0
- opacity: 0.0
-
- states: State {
- name: "active"
- when: control.active
- PropertyChanges { target: control.contentItem; opacity: 0.75 }
- }
-
- transitions: [
- Transition {
- from: "active"
- SequentialAnimation {
- PauseAnimation { duration: 450 }
- NumberAnimation { target: control.contentItem; duration: 200; property: "opacity"; to: 0.0 }
- }
- }
- ]
- }
-}
diff --git a/src/imports/controls/material/Slider.qml b/src/imports/controls/material/Slider.qml
deleted file mode 100644
index cc6a1413..00000000
--- a/src/imports/controls/material/Slider.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.Slider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitHandleHeight + topPadding + bottomPadding)
-
- padding: 6
-
- handle: SliderHandle {
- x: control.leftPadding + (control.horizontal ? control.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.visualPosition * (control.availableHeight - height))
- value: control.value
- handleHasFocus: control.visualFocus
- handlePressed: control.pressed
- handleHovered: control.hovered
- }
-
- background: Rectangle {
- x: control.leftPadding + (control.horizontal ? 0 : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : 0)
- implicitWidth: control.horizontal ? 200 : 48
- implicitHeight: control.horizontal ? 48 : 200
- width: control.horizontal ? control.availableWidth : 1
- height: control.horizontal ? 1 : control.availableHeight
- color: control.Material.foreground
- scale: control.horizontal && control.mirrored ? -1 : 1
-
- Rectangle {
- x: control.horizontal ? 0 : (parent.width - width) / 2
- y: control.horizontal ? (parent.height - height) / 2 : control.visualPosition * parent.height
- width: control.horizontal ? control.position * parent.width : 3
- height: control.horizontal ? 3 : control.position * parent.height
-
- color: control.Material.accentColor
- }
- }
-}
diff --git a/src/imports/controls/material/SliderHandle.qml b/src/imports/controls/material/SliderHandle.qml
deleted file mode 100644
index 2e3120e4..00000000
--- a/src/imports/controls/material/SliderHandle.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-Item {
- id: root
- implicitWidth: initialSize
- implicitHeight: initialSize
-
- property real value: 0
- property bool handleHasFocus: false
- property bool handlePressed: false
- property bool handleHovered: false
- readonly property int initialSize: 13
- readonly property var control: parent
-
- Rectangle {
- id: handleRect
- width: parent.width
- height: parent.height
- radius: width / 2
- color: root.control.Material.accentColor
- scale: root.handlePressed ? 1.5 : 1
-
- Behavior on scale {
- NumberAnimation {
- duration: 250
- }
- }
- }
-
- Ripple {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 22; height: 22
- pressed: root.handlePressed
- active: root.handlePressed || root.handleHasFocus || root.handleHovered
- color: root.control.Material.rippleColor
- }
-}
diff --git a/src/imports/controls/material/SpinBox.qml b/src/imports/controls/material/SpinBox.qml
deleted file mode 100644
index 23c86bc3..00000000
--- a/src/imports/controls/material/SpinBox.qml
+++ /dev/null
@@ -1,156 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.SpinBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentItem.implicitWidth +
- up.implicitIndicatorWidth +
- down.implicitIndicatorWidth)
- implicitHeight: Math.max(implicitContentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight,
- up.implicitIndicatorHeight,
- down.implicitIndicatorHeight)
-
- spacing: 6
- topPadding: 8
- bottomPadding: 16
- leftPadding: (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0))
- rightPadding: (control.mirrored ? (down.indicator ? down.indicator.width : 0) : (up.indicator ? up.indicator.width : 0))
-
- validator: IntValidator {
- locale: control.locale.name
- bottom: Math.min(control.from, control.to)
- top: Math.max(control.from, control.to)
- }
-
- contentItem: TextInput {
- text: control.displayText
-
- font: control.font
- color: enabled ? control.Material.foreground : control.Material.hintTextColor
- selectionColor: control.Material.textSelectionColor
- selectedTextColor: control.Material.foreground
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
-
- cursorDelegate: CursorDelegate { }
-
- readOnly: !control.editable
- validator: control.validator
- inputMethodHints: control.inputMethodHints
- }
-
- up.indicator: Item {
- x: control.mirrored ? 0 : parent.width - width
- implicitWidth: control.Material.touchTarget
- implicitHeight: control.Material.touchTarget
- height: parent.height
- width: height
-
- Ripple {
- clipRadius: 2
- x: control.spacing
- y: control.spacing
- width: parent.width - 2 * control.spacing
- height: parent.height - 2 * control.spacing
- pressed: control.up.pressed
- active: control.up.pressed || control.up.hovered || control.visualFocus
- color: control.Material.rippleColor
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: Math.min(parent.width / 3, parent.height / 3)
- height: 2
- color: enabled ? control.Material.foreground : control.Material.spinBoxDisabledIconColor
- }
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: 2
- height: Math.min(parent.width / 3, parent.height / 3)
- color: enabled ? control.Material.foreground : control.Material.spinBoxDisabledIconColor
- }
- }
-
- down.indicator: Item {
- x: control.mirrored ? parent.width - width : 0
- implicitWidth: control.Material.touchTarget
- implicitHeight: control.Material.touchTarget
- height: parent.height
- width: height
-
- Ripple {
- clipRadius: 2
- x: control.spacing
- y: control.spacing
- width: parent.width - 2 * control.spacing
- height: parent.height - 2 * control.spacing
- pressed: control.down.pressed
- active: control.down.pressed || control.down.hovered || control.visualFocus
- color: control.Material.rippleColor
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: parent.width / 3
- height: 2
- color: enabled ? control.Material.foreground : control.Material.spinBoxDisabledIconColor
- }
- }
-
- background: Item {
- implicitWidth: 192
- implicitHeight: control.Material.touchTarget
-
- Rectangle {
- x: parent.width / 2 - width / 2
- y: parent.y + parent.height - height - control.bottomPadding / 2
- width: control.availableWidth
- height: control.activeFocus ? 2 : 1
- color: control.activeFocus ? control.Material.accentColor : control.Material.hintTextColor
- }
- }
-}
diff --git a/src/imports/controls/material/SplitView.qml b/src/imports/controls/material/SplitView.qml
deleted file mode 100644
index 5544e833..00000000
--- a/src/imports/controls/material/SplitView.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Templates 2.13 as T
-import QtQuick.Controls 2.13
-import QtQuick.Controls.impl 2.13
-import QtQuick.Controls.Material 2.13
-
-T.SplitView {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- handle: Rectangle {
- implicitWidth: control.orientation === Qt.Horizontal ? 6 : control.width
- implicitHeight: control.orientation === Qt.Horizontal ? control.height : 6
- color: T.SplitHandle.pressed ? control.Material.background
- : Qt.lighter(control.Material.background, T.SplitHandle.hovered ? 1.2 : 1.1)
-
- Rectangle {
- color: control.Material.secondaryTextColor
- width: control.orientation === Qt.Horizontal ? thickness : length
- height: control.orientation === Qt.Horizontal ? length : thickness
- radius: thickness
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
-
- property int length: parent.T.SplitHandle.pressed ? 3 : 8
- readonly property int thickness: parent.T.SplitHandle.pressed ? 3 : 1
-
- Behavior on length {
- NumberAnimation {
- duration: 100
- }
- }
- }
- }
-}
diff --git a/src/imports/controls/material/StackView.qml b/src/imports/controls/material/StackView.qml
deleted file mode 100644
index dd5d6ce6..00000000
--- a/src/imports/controls/material/StackView.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.StackView {
- id: control
-
- popEnter: Transition {
- // slide_in_left
- NumberAnimation { property: "x"; from: (control.mirrored ? -0.5 : 0.5) * -control.width; to: 0; duration: 200; easing.type: Easing.OutCubic }
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 200; easing.type: Easing.OutCubic }
- }
-
- popExit: Transition {
- // slide_out_right
- NumberAnimation { property: "x"; from: 0; to: (control.mirrored ? -0.5 : 0.5) * control.width; duration: 200; easing.type: Easing.OutCubic }
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 200; easing.type: Easing.OutCubic }
- }
-
- pushEnter: Transition {
- // slide_in_right
- NumberAnimation { property: "x"; from: (control.mirrored ? -0.5 : 0.5) * control.width; to: 0; duration: 200; easing.type: Easing.OutCubic }
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 200; easing.type: Easing.OutCubic }
- }
-
- pushExit: Transition {
- // slide_out_left
- NumberAnimation { property: "x"; from: 0; to: (control.mirrored ? -0.5 : 0.5) * -control.width; duration: 200; easing.type: Easing.OutCubic }
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 200; easing.type: Easing.OutCubic }
- }
-
- replaceEnter: Transition {
- // slide_in_right
- NumberAnimation { property: "x"; from: (control.mirrored ? -0.5 : 0.5) * control.width; to: 0; duration: 200; easing.type: Easing.OutCubic }
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 200; easing.type: Easing.OutCubic }
- }
-
- replaceExit: Transition {
- // slide_out_left
- NumberAnimation { property: "x"; from: 0; to: (control.mirrored ? -0.5 : 0.5) * -control.width; duration: 200; easing.type: Easing.OutCubic }
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 200; easing.type: Easing.OutCubic }
- }
-}
diff --git a/src/imports/controls/material/SwipeDelegate.qml b/src/imports/controls/material/SwipeDelegate.qml
deleted file mode 100644
index d06799be..00000000
--- a/src/imports/controls/material/SwipeDelegate.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.SwipeDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 16
- verticalPadding: 8
- spacing: 16
-
- icon.width: 24
- icon.height: 24
- icon.color: enabled ? Material.foreground : Material.hintTextColor
-
- swipe.transition: Transition { SmoothedAnimation { velocity: 3; easing.type: Easing.InOutCubic } }
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- }
-
- background: Rectangle {
- implicitHeight: control.Material.delegateHeight
-
- color: control.Material.backgroundColor
-
- Rectangle {
- width: parent.width
- height: parent.height
- visible: control.highlighted
- color: control.Material.listHighlightColor
- }
-
- Ripple {
- width: parent.width
- height: parent.height
-
- clip: visible
- pressed: control.pressed
- anchor: control
- active: control.down || control.visualFocus || control.hovered
- color: control.Material.rippleColor
- enabled: control.swipe.position === 0
- }
- }
-}
diff --git a/src/imports/controls/material/SwipeView.qml b/src/imports/controls/material/SwipeView.qml
deleted file mode 100644
index 12ea36ae..00000000
--- a/src/imports/controls/material/SwipeView.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.SwipeView {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- contentItem: ListView {
- model: control.contentModel
- interactive: control.interactive
- currentIndex: control.currentIndex
-
- spacing: control.spacing
- orientation: control.orientation
- snapMode: ListView.SnapOneItem
- boundsBehavior: Flickable.StopAtBounds
-
- highlightRangeMode: ListView.StrictlyEnforceRange
- preferredHighlightBegin: 0
- preferredHighlightEnd: 0
- highlightMoveDuration: 250
- maximumFlickVelocity: 4 * (control.orientation === Qt.Horizontal ? width : height)
- }
-}
diff --git a/src/imports/controls/material/Switch.qml b/src/imports/controls/material/Switch.qml
deleted file mode 100644
index fd0db925..00000000
--- a/src/imports/controls/material/Switch.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Switch {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 8
- spacing: 8
-
- indicator: SwitchIndicator {
- x: text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
-
- Ripple {
- x: parent.handle.x + parent.handle.width / 2 - width / 2
- y: parent.handle.y + parent.handle.height / 2 - height / 2
- width: 28; height: 28
- pressed: control.pressed
- active: control.down || control.visualFocus || control.hovered
- color: control.checked ? control.Material.highlightedRippleColor : control.Material.rippleColor
- }
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
- }
-}
diff --git a/src/imports/controls/material/SwitchDelegate.qml b/src/imports/controls/material/SwitchDelegate.qml
deleted file mode 100644
index 834a3dfa..00000000
--- a/src/imports/controls/material/SwitchDelegate.qml
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.SwitchDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 16
- verticalPadding: Material.switchDelegateVerticalPadding
- spacing: 16
-
- icon.width: 24
- icon.height: 24
- icon.color: enabled ? Material.foreground : Material.hintTextColor
-
- indicator: SwitchIndicator {
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: IconLabel {
- leftPadding: !control.mirrored ? 0 : control.indicator.width + control.spacing
- rightPadding: control.mirrored ? 0 : control.indicator.width + control.spacing
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: control.enabled ? control.Material.foreground : control.Material.hintTextColor
- }
-
- background: Rectangle {
- implicitHeight: control.Material.delegateHeight
-
- color: control.highlighted ? control.Material.listHighlightColor : "transparent"
-
- Ripple {
- width: parent.width
- height: parent.height
-
- clip: visible
- pressed: control.pressed
- anchor: control
- active: control.down || control.visualFocus || control.hovered
- color: control.Material.rippleColor
- }
- }
-}
diff --git a/src/imports/controls/material/SwitchIndicator.qml b/src/imports/controls/material/SwitchIndicator.qml
deleted file mode 100644
index 3034e771..00000000
--- a/src/imports/controls/material/SwitchIndicator.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-Item {
- id: indicator
- implicitWidth: 38
- implicitHeight: 32
-
- property Item control
- property alias handle: handle
-
- Material.elevation: 1
-
- Rectangle {
- width: parent.width
- height: 14
- radius: height / 2
- y: parent.height / 2 - height / 2
- color: indicator.control.enabled ? (indicator.control.checked ? indicator.control.Material.switchCheckedTrackColor : indicator.control.Material.switchUncheckedTrackColor)
- : indicator.control.Material.switchDisabledTrackColor
- }
-
- Rectangle {
- id: handle
- x: Math.max(0, Math.min(parent.width - width, indicator.control.visualPosition * parent.width - (width / 2)))
- y: (parent.height - height) / 2
- width: 20
- height: 20
- radius: width / 2
- color: indicator.control.enabled ? (indicator.control.checked ? indicator.control.Material.switchCheckedHandleColor : indicator.control.Material.switchUncheckedHandleColor)
- : indicator.control.Material.switchDisabledHandleColor
-
- Behavior on x {
- enabled: !indicator.control.pressed
- SmoothedAnimation {
- duration: 300
- }
- }
- layer.enabled: indicator.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: indicator.Material.elevation
- }
- }
-}
diff --git a/src/imports/controls/material/TabBar.qml b/src/imports/controls/material/TabBar.qml
deleted file mode 100644
index 98c9132a..00000000
--- a/src/imports/controls/material/TabBar.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.TabBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: 1
-
- contentItem: ListView {
- model: control.contentModel
- currentIndex: control.currentIndex
-
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- flickableDirection: Flickable.AutoFlickIfNeeded
- snapMode: ListView.SnapToItem
-
- highlightMoveDuration: 250
- highlightResizeDuration: 0
- highlightFollowsCurrentItem: true
- highlightRangeMode: ListView.ApplyRange
- preferredHighlightBegin: 48
- preferredHighlightEnd: width - 48
-
- highlight: Item {
- z: 2
- Rectangle {
- height: 2
- width: parent.width
- y: control.position === T.TabBar.Footer ? 0 : parent.height - height
- color: control.Material.accentColor
- }
- }
- }
-
- background: Rectangle {
- color: control.Material.backgroundColor
-
- layer.enabled: control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- fullWidth: true
- }
- }
-}
diff --git a/src/imports/controls/material/TabButton.qml b/src/imports/controls/material/TabButton.qml
deleted file mode 100644
index 5245652c..00000000
--- a/src/imports/controls/material/TabButton.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.TabButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 12
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: !enabled ? Material.hintTextColor : down || checked ? Material.accentColor : Material.foreground
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: !control.enabled ? control.Material.hintTextColor : control.down || control.checked ? control.Material.accentColor : control.Material.foreground
- }
-
- background: Ripple {
- implicitHeight: control.Material.touchTarget
-
- clip: true
- pressed: control.pressed
- anchor: control
- active: control.down || control.visualFocus || control.hovered
- color: control.Material.rippleColor
- }
-}
diff --git a/src/imports/controls/material/TextArea.qml b/src/imports/controls/material/TextArea.qml
deleted file mode 100644
index 249b6401..00000000
--- a/src/imports/controls/material/TextArea.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.TextArea {
- id: control
-
- implicitWidth: Math.max(contentWidth + leftPadding + rightPadding,
- implicitBackgroundWidth + leftInset + rightInset,
- placeholder.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(contentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight + topInset + bottomInset,
- placeholder.implicitHeight + 1 + topPadding + bottomPadding)
-
- topPadding: 8
- bottomPadding: 16
-
- color: enabled ? Material.foreground : Material.hintTextColor
- selectionColor: Material.accentColor
- selectedTextColor: Material.primaryHighlightedTextColor
- placeholderTextColor: Material.hintTextColor
- cursorDelegate: CursorDelegate { }
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- verticalAlignment: control.verticalAlignment
- elide: Text.ElideRight
- renderType: control.renderType
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- }
-
- background: Rectangle {
- y: parent.height - height - control.bottomPadding / 2
- implicitWidth: 120
- height: control.activeFocus ? 2 : 1
- color: control.activeFocus ? control.Material.accentColor : control.Material.hintTextColor
- }
-}
diff --git a/src/imports/controls/material/TextField.qml b/src/imports/controls/material/TextField.qml
deleted file mode 100644
index ed42b295..00000000
--- a/src/imports/controls/material/TextField.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.TextField {
- id: control
-
- implicitWidth: implicitBackgroundWidth + leftInset + rightInset
- || Math.max(contentWidth, placeholder.implicitWidth) + leftPadding + rightPadding
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- topPadding: 8
- bottomPadding: 16
-
- color: enabled ? Material.foreground : Material.hintTextColor
- selectionColor: Material.accentColor
- selectedTextColor: Material.primaryHighlightedTextColor
- placeholderTextColor: Material.hintTextColor
- verticalAlignment: TextInput.AlignVCenter
-
- cursorDelegate: CursorDelegate { }
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- verticalAlignment: control.verticalAlignment
- elide: Text.ElideRight
- renderType: control.renderType
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- }
-
- background: Rectangle {
- y: control.height - height - control.bottomPadding + 8
- implicitWidth: 120
- height: control.activeFocus || control.hovered ? 2 : 1
- color: control.activeFocus ? control.Material.accentColor
- : (control.hovered ? control.Material.primaryTextColor : control.Material.hintTextColor)
- }
-}
diff --git a/src/imports/controls/material/ToolBar.qml b/src/imports/controls/material/ToolBar.qml
deleted file mode 100644
index 5b887598..00000000
--- a/src/imports/controls/material/ToolBar.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.ToolBar {
- id: control
-
- Material.elevation: 4
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- Material.foreground: Material.toolTextColor
-
- spacing: 16
-
- background: Rectangle {
- implicitHeight: 48
- color: control.Material.toolBarColor
-
- layer.enabled: control.Material.elevation > 0
- layer.effect: ElevationEffect {
- elevation: control.Material.elevation
- fullWidth: true
- }
- }
-}
diff --git a/src/imports/controls/material/ToolButton.qml b/src/imports/controls/material/ToolButton.qml
deleted file mode 100644
index 69c42441..00000000
--- a/src/imports/controls/material/ToolButton.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Material.impl 2.12
-
-T.ToolButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 6
-
- icon.width: 24
- icon.height: 24
- icon.color: !enabled ? Material.hintTextColor : checked || highlighted ? Material.accent : Material.foreground
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: !control.enabled ? control.Material.hintTextColor :
- control.checked || control.highlighted ? control.Material.accent : control.Material.foreground
- }
-
- background: Ripple {
- implicitWidth: control.Material.touchTarget
- implicitHeight: control.Material.touchTarget
-
- readonly property bool square: control.contentItem.width <= control.contentItem.height
-
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- clip: !square
- width: square ? parent.height / 2 : parent.width
- height: square ? parent.height / 2 : parent.height
- pressed: control.pressed
- anchor: control
- active: control.enabled && (control.down || control.visualFocus || control.hovered)
- color: control.Material.rippleColor
- }
-}
diff --git a/src/imports/controls/material/ToolSeparator.qml b/src/imports/controls/material/ToolSeparator.qml
deleted file mode 100644
index 94367657..00000000
--- a/src/imports/controls/material/ToolSeparator.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.ToolSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- horizontalPadding: vertical ? 12 : 5
- verticalPadding: vertical ? 5 : 12
-
- contentItem: Rectangle {
- implicitWidth: vertical ? 1 : 38
- implicitHeight: vertical ? 38 : 1
- color: control.Material.hintTextColor
- }
-}
diff --git a/src/imports/controls/material/ToolTip.qml b/src/imports/controls/material/ToolTip.qml
deleted file mode 100644
index fb705367..00000000
--- a/src/imports/controls/material/ToolTip.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.ToolTip {
- id: control
-
- x: parent ? (parent.width - implicitWidth) / 2 : 0
- y: -implicitHeight - 24
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- margins: 12
- padding: 8
- horizontalPadding: padding + 8
-
- closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent | T.Popup.CloseOnReleaseOutsideParent
-
- Material.theme: Material.Dark
-
- enter: Transition {
- // toast_enter
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; easing.type: Easing.OutQuad; duration: 500 }
- }
-
- exit: Transition {
- // toast_exit
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; easing.type: Easing.InQuad; duration: 500 }
- }
-
- contentItem: Text {
- text: control.text
- font: control.font
- // TODO: wrapMode: Label.Wrap
- color: control.Material.foreground
- }
-
- background: Rectangle {
- implicitHeight: control.Material.tooltipHeight
- color: control.Material.tooltipColor
- opacity: 0.9
- radius: 2
- }
-}
diff --git a/src/imports/controls/material/Tumbler.qml b/src/imports/controls/material/Tumbler.qml
deleted file mode 100644
index 30d66c58..00000000
--- a/src/imports/controls/material/Tumbler.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Material 2.12
-
-T.Tumbler {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 60 // ### remove 60 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 200 // ### remove 200 in Qt 6
-
- delegate: Text {
- text: modelData
- color: control.Material.foreground
- font: control.font
- opacity: (1.0 - Math.abs(Tumbler.displacement) / (control.visibleItemCount / 2)) * (control.enabled ? 1 : 0.6)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-
- contentItem: TumblerView {
- implicitWidth: 60
- implicitHeight: 200
- model: control.model
- delegate: control.delegate
- path: Path {
- startX: control.contentItem.width / 2
- startY: -control.contentItem.delegateHeight / 2
- PathLine {
- x: control.contentItem.width / 2
- y: (control.visibleItemCount + 1) * control.contentItem.delegateHeight - control.contentItem.delegateHeight / 2
- }
- }
-
- property real delegateHeight: control.availableHeight / control.visibleItemCount
- }
-}
diff --git a/src/imports/controls/material/dependencies.json b/src/imports/controls/material/dependencies.json
deleted file mode 100644
index 21ded052..00000000
--- a/src/imports/controls/material/dependencies.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "name": "QtQuick.Controls",
- "type": "module",
- "version": "2.0"
- }
-]
diff --git a/src/imports/controls/material/images/arrow-indicator.png b/src/imports/controls/material/images/arrow-indicator.png
deleted file mode 100644
index 4a942849..00000000
--- a/src/imports/controls/material/images/arrow-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/arrow-indicator.svg b/src/imports/controls/material/images/arrow-indicator.svg
deleted file mode 100644
index 1e7217c8..00000000
--- a/src/imports/controls/material/images/arrow-indicator.svg
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- width="5"
- height="10"
- viewBox="0 0 5 10"
- version="1.1"
- id="svg2"
- inkscape:version="0.91 r13725"
- sodipodi:docname="arrow-indicator.svg">
- <metadata
- id="metadata10">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:title></dc:title>
- </cc:Work>
- </rdf:RDF>
- </metadata>
- <defs
- id="defs8" />
- <sodipodi:namedview
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="1"
- objecttolerance="10"
- gridtolerance="10"
- guidetolerance="10"
- inkscape:pageopacity="0"
- inkscape:pageshadow="2"
- inkscape:window-width="2560"
- inkscape:window-height="1571"
- id="namedview6"
- showgrid="false"
- inkscape:zoom="27.812867"
- inkscape:cx="13.137558"
- inkscape:cy="12.83583"
- inkscape:window-x="0"
- inkscape:window-y="55"
- inkscape:window-maximized="1"
- inkscape:current-layer="svg2" />
- <path
- d="M 0,10 5,5 0,0 Z"
- id="path4"
- inkscape:connector-curvature="0"
- style="fill:#757575" />
-</svg>
diff --git a/src/imports/controls/material/images/arrow-indicator@2x.png b/src/imports/controls/material/images/arrow-indicator@2x.png
deleted file mode 100644
index b31b56c1..00000000
--- a/src/imports/controls/material/images/arrow-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/arrow-indicator@3x.png b/src/imports/controls/material/images/arrow-indicator@3x.png
deleted file mode 100644
index 637e9674..00000000
--- a/src/imports/controls/material/images/arrow-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/arrow-indicator@4x.png b/src/imports/controls/material/images/arrow-indicator@4x.png
deleted file mode 100644
index 15b9a902..00000000
--- a/src/imports/controls/material/images/arrow-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/check.png b/src/imports/controls/material/images/check.png
deleted file mode 100644
index 4e4e3be8..00000000
--- a/src/imports/controls/material/images/check.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/check@2x.png b/src/imports/controls/material/images/check@2x.png
deleted file mode 100644
index deb0c7e9..00000000
--- a/src/imports/controls/material/images/check@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/check@3x.png b/src/imports/controls/material/images/check@3x.png
deleted file mode 100644
index 72ffd4e6..00000000
--- a/src/imports/controls/material/images/check@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/check@4x.png b/src/imports/controls/material/images/check@4x.png
deleted file mode 100644
index 9dc1ab2c..00000000
--- a/src/imports/controls/material/images/check@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/drop-indicator.png b/src/imports/controls/material/images/drop-indicator.png
deleted file mode 100644
index 0f61fbb7..00000000
--- a/src/imports/controls/material/images/drop-indicator.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/drop-indicator.svg b/src/imports/controls/material/images/drop-indicator.svg
deleted file mode 100644
index 94b5ca15..00000000
--- a/src/imports/controls/material/images/drop-indicator.svg
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
-<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" version="1.1">
- <path d="M7,10l5,5,5-5z" fill="#757575"/>
-</svg>
diff --git a/src/imports/controls/material/images/drop-indicator@2x.png b/src/imports/controls/material/images/drop-indicator@2x.png
deleted file mode 100644
index 8f555eee..00000000
--- a/src/imports/controls/material/images/drop-indicator@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/drop-indicator@3x.png b/src/imports/controls/material/images/drop-indicator@3x.png
deleted file mode 100644
index 7fd2af1f..00000000
--- a/src/imports/controls/material/images/drop-indicator@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/images/drop-indicator@4x.png b/src/imports/controls/material/images/drop-indicator@4x.png
deleted file mode 100644
index 7e81fdd8..00000000
--- a/src/imports/controls/material/images/drop-indicator@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/material.pri b/src/imports/controls/material/material.pri
deleted file mode 100644
index bda1fb21..00000000
--- a/src/imports/controls/material/material.pri
+++ /dev/null
@@ -1,71 +0,0 @@
-HEADERS += \
- $$PWD/qquickmaterialbusyindicator_p.h \
- $$PWD/qquickmaterialprogressbar_p.h \
- $$PWD/qquickmaterialripple_p.h \
- $$PWD/qquickmaterialstyle_p.h \
- $$PWD/qquickmaterialtheme_p.h
-
-SOURCES += \
- $$PWD/qquickmaterialbusyindicator.cpp \
- $$PWD/qquickmaterialprogressbar.cpp \
- $$PWD/qquickmaterialripple.cpp \
- $$PWD/qquickmaterialstyle.cpp \
- $$PWD/qquickmaterialtheme.cpp
-
-QML_FILES += \
- $$PWD/ApplicationWindow.qml \
- $$PWD/BoxShadow.qml \
- $$PWD/BusyIndicator.qml \
- $$PWD/Button.qml \
- $$PWD/CheckBox.qml \
- $$PWD/CheckDelegate.qml \
- $$PWD/CheckIndicator.qml \
- $$PWD/ComboBox.qml \
- $$PWD/CursorDelegate.qml \
- $$PWD/DelayButton.qml \
- $$PWD/Dial.qml \
- $$PWD/Dialog.qml \
- $$PWD/DialogButtonBox.qml \
- $$PWD/Drawer.qml \
- $$PWD/ElevationEffect.qml \
- $$PWD/Frame.qml \
- $$PWD/GroupBox.qml \
- $$PWD/ItemDelegate.qml \
- $$PWD/Label.qml \
- $$PWD/Menu.qml \
- $$PWD/MenuBar.qml \
- $$PWD/MenuBarItem.qml \
- $$PWD/MenuItem.qml \
- $$PWD/MenuSeparator.qml \
- $$PWD/Page.qml \
- $$PWD/PageIndicator.qml \
- $$PWD/Pane.qml \
- $$PWD/Popup.qml \
- $$PWD/ProgressBar.qml \
- $$PWD/RadioButton.qml \
- $$PWD/RadioDelegate.qml \
- $$PWD/RadioIndicator.qml \
- $$PWD/RangeSlider.qml \
- $$PWD/RoundButton.qml \
- $$PWD/RectangularGlow.qml \
- $$PWD/ScrollBar.qml \
- $$PWD/ScrollIndicator.qml \
- $$PWD/Slider.qml \
- $$PWD/SliderHandle.qml \
- $$PWD/SpinBox.qml \
- $$PWD/SplitView.qml \
- $$PWD/StackView.qml \
- $$PWD/SwipeDelegate.qml \
- $$PWD/SwipeView.qml \
- $$PWD/Switch.qml \
- $$PWD/SwitchDelegate.qml \
- $$PWD/SwitchIndicator.qml \
- $$PWD/TabBar.qml \
- $$PWD/TabButton.qml \
- $$PWD/TextArea.qml \
- $$PWD/TextField.qml \
- $$PWD/ToolBar.qml \
- $$PWD/ToolButton.qml \
- $$PWD/ToolSeparator.qml \
- $$PWD/ToolTip.qml \
- $$PWD/Tumbler.qml
diff --git a/src/imports/controls/material/material.pro b/src/imports/controls/material/material.pro
deleted file mode 100644
index cf08b925..00000000
--- a/src/imports/controls/material/material.pro
+++ /dev/null
@@ -1,27 +0,0 @@
-TARGET = qtquickcontrols2materialstyleplugin
-TARGETPATH = QtQuick/Controls.2/Material
-
-IMPORT_NAME = QtQuick.Controls.Material
-IMPORT_VERSION = 2.$$QT_MINOR_VERSION
-
-QT += qml quick
-QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-include(material.pri)
-
-OTHER_FILES += \
- qmldir \
- $$QML_FILES
-
-SOURCES += \
- $$PWD/qtquickcontrols2materialstyleplugin.cpp
-
-RESOURCES += \
- $$PWD/qtquickcontrols2materialstyleplugin.qrc
-
-CONFIG += no_cxx_module install_qml_files builtin_resources qtquickcompiler
-load(qml_plugin)
-
-requires(qtConfig(quickcontrols2-material))
diff --git a/src/imports/controls/material/plugins.qmltypes b/src/imports/controls/material/plugins.qmltypes
deleted file mode 100644
index 3e95fa44..00000000
--- a/src/imports/controls/material/plugins.qmltypes
+++ /dev/null
@@ -1,282 +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 -dependencies dependencies.json QtQuick.Controls.Material 2.13'
-
-Module {
- dependencies: ["QtQuick.Controls 2.0"]
- Component { name: "QQuickAttachedObject"; prototype: "QObject" }
- Component {
- name: "QQuickMaterialBusyIndicator"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.Material.impl/BusyIndicatorImpl 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "color"; type: "QColor" }
- Property { name: "running"; type: "bool" }
- }
- Component {
- name: "QQuickMaterialProgressBar"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.Material.impl/ProgressBarImpl 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "color"; type: "QColor" }
- Property { name: "progress"; type: "double" }
- Property { name: "indeterminate"; type: "bool" }
- }
- Component {
- name: "QQuickMaterialRipple"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.Material.impl/Ripple 2.0"]
- exportMetaObjectRevisions: [0]
- Enum {
- name: "Trigger"
- values: {
- "Press": 0,
- "Release": 1
- }
- }
- Property { name: "color"; type: "QColor" }
- Property { name: "clipRadius"; type: "double" }
- Property { name: "pressed"; type: "bool" }
- Property { name: "active"; type: "bool" }
- Property { name: "anchor"; type: "QQuickItem"; isPointer: true }
- Property { name: "trigger"; type: "Trigger" }
- }
- Component {
- name: "QQuickMaterialStyle"
- prototype: "QQuickAttachedObject"
- exports: ["QtQuick.Controls.Material/Material 2.0"]
- isCreatable: false
- exportMetaObjectRevisions: [0]
- Enum {
- name: "Theme"
- values: {
- "Light": 0,
- "Dark": 1,
- "System": 2
- }
- }
- Enum {
- name: "Variant"
- values: {
- "Normal": 0,
- "Dense": 1
- }
- }
- Enum {
- name: "Color"
- values: {
- "Red": 0,
- "Pink": 1,
- "Purple": 2,
- "DeepPurple": 3,
- "Indigo": 4,
- "Blue": 5,
- "LightBlue": 6,
- "Cyan": 7,
- "Teal": 8,
- "Green": 9,
- "LightGreen": 10,
- "Lime": 11,
- "Yellow": 12,
- "Amber": 13,
- "Orange": 14,
- "DeepOrange": 15,
- "Brown": 16,
- "Grey": 17,
- "BlueGrey": 18
- }
- }
- Enum {
- name: "Shade"
- values: {
- "Shade50": 0,
- "Shade100": 1,
- "Shade200": 2,
- "Shade300": 3,
- "Shade400": 4,
- "Shade500": 5,
- "Shade600": 6,
- "Shade700": 7,
- "Shade800": 8,
- "Shade900": 9,
- "ShadeA100": 10,
- "ShadeA200": 11,
- "ShadeA400": 12,
- "ShadeA700": 13
- }
- }
- Property { name: "theme"; type: "Theme" }
- Property { name: "primary"; type: "QVariant" }
- Property { name: "accent"; type: "QVariant" }
- Property { name: "foreground"; type: "QVariant" }
- Property { name: "background"; type: "QVariant" }
- Property { name: "elevation"; type: "int" }
- Property { name: "primaryColor"; type: "QColor"; isReadonly: true }
- Property { name: "accentColor"; type: "QColor"; isReadonly: true }
- Property { name: "backgroundColor"; type: "QColor"; isReadonly: true }
- Property { name: "primaryTextColor"; type: "QColor"; isReadonly: true }
- Property { name: "primaryHighlightedTextColor"; type: "QColor"; isReadonly: true }
- Property { name: "secondaryTextColor"; type: "QColor"; isReadonly: true }
- Property { name: "hintTextColor"; type: "QColor"; isReadonly: true }
- Property { name: "textSelectionColor"; type: "QColor"; isReadonly: true }
- Property { name: "dropShadowColor"; type: "QColor"; isReadonly: true }
- Property { name: "dividerColor"; type: "QColor"; isReadonly: true }
- Property { name: "iconColor"; type: "QColor"; isReadonly: true }
- Property { name: "iconDisabledColor"; type: "QColor"; isReadonly: true }
- Property { name: "buttonColor"; type: "QColor"; isReadonly: true }
- Property { name: "buttonDisabledColor"; type: "QColor"; isReadonly: true }
- Property { name: "highlightedButtonColor"; type: "QColor"; isReadonly: true }
- Property { name: "frameColor"; type: "QColor"; isReadonly: true }
- Property { name: "rippleColor"; type: "QColor"; isReadonly: true }
- Property { name: "highlightedRippleColor"; type: "QColor"; isReadonly: true }
- Property { name: "switchUncheckedTrackColor"; type: "QColor"; isReadonly: true }
- Property { name: "switchCheckedTrackColor"; type: "QColor"; isReadonly: true }
- Property { name: "switchUncheckedHandleColor"; type: "QColor"; isReadonly: true }
- Property { name: "switchCheckedHandleColor"; type: "QColor"; isReadonly: true }
- Property { name: "switchDisabledTrackColor"; type: "QColor"; isReadonly: true }
- Property { name: "switchDisabledHandleColor"; type: "QColor"; isReadonly: true }
- Property { name: "scrollBarColor"; type: "QColor"; isReadonly: true }
- Property { name: "scrollBarHoveredColor"; type: "QColor"; isReadonly: true }
- Property { name: "scrollBarPressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "dialogColor"; type: "QColor"; isReadonly: true }
- Property { name: "backgroundDimColor"; type: "QColor"; isReadonly: true }
- Property { name: "listHighlightColor"; type: "QColor"; isReadonly: true }
- Property { name: "tooltipColor"; type: "QColor"; isReadonly: true }
- Property { name: "toolBarColor"; type: "QColor"; isReadonly: true }
- Property { name: "toolTextColor"; type: "QColor"; isReadonly: true }
- Property { name: "spinBoxDisabledIconColor"; type: "QColor"; isReadonly: true }
- Property { name: "touchTarget"; type: "int"; isReadonly: true }
- Property { name: "buttonHeight"; type: "int"; isReadonly: true }
- Property { name: "delegateHeight"; type: "int"; isReadonly: true }
- Property { name: "dialogButtonBoxHeight"; type: "int"; isReadonly: true }
- Property { name: "frameVerticalPadding"; type: "int"; isReadonly: true }
- Property { name: "menuItemHeight"; type: "int"; isReadonly: true }
- Property { name: "menuItemVerticalPadding"; type: "int"; isReadonly: true }
- Property { name: "switchDelegateVerticalPadding"; type: "int"; isReadonly: true }
- Property { name: "tooltipHeight"; type: "int"; isReadonly: true }
- Signal { name: "paletteChanged" }
- Method {
- name: "color"
- type: "QColor"
- Parameter { name: "color"; type: "Color" }
- Parameter { name: "shade"; type: "Shade" }
- }
- Method {
- name: "color"
- type: "QColor"
- Parameter { name: "color"; type: "Color" }
- }
- Method {
- name: "shade"
- type: "QColor"
- Parameter { name: "color"; type: "QColor" }
- Parameter { name: "shade"; type: "Shade" }
- }
- }
- Component {
- prototype: "QQuickItem"
- name: "QtQuick.Controls.Material.impl/BoxShadow 2.0"
- exports: ["QtQuick.Controls.Material.impl/BoxShadow 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "offsetX"; type: "int" }
- Property { name: "offsetY"; type: "int" }
- Property { name: "blurRadius"; type: "int" }
- Property { name: "spreadRadius"; type: "int" }
- Property { name: "source"; type: "QQuickItem"; isPointer: true }
- Property { name: "fullWidth"; type: "bool" }
- Property { name: "fullHeight"; type: "bool" }
- Property { name: "glowRadius"; type: "double" }
- Property { name: "spread"; type: "double" }
- Property { name: "color"; type: "QColor" }
- Property { name: "cornerRadius"; type: "double" }
- Property { name: "cached"; type: "bool" }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Material.impl/CheckIndicator 2.0"
- exports: ["QtQuick.Controls.Material.impl/CheckIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- Property { name: "checkState"; type: "int" }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Material.impl/CursorDelegate 2.0"
- exports: ["QtQuick.Controls.Material.impl/CursorDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickItem"
- name: "QtQuick.Controls.Material.impl/ElevationEffect 2.0"
- exports: ["QtQuick.Controls.Material.impl/ElevationEffect 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "source"; type: "QVariant" }
- Property { name: "elevation"; type: "int" }
- Property { name: "fullWidth"; type: "bool" }
- Property { name: "fullHeight"; type: "bool" }
- Property { name: "sourceItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "_shadows"; type: "QVariant"; isReadonly: true }
- Property { name: "_shadow"; type: "QVariant"; isReadonly: true }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Material.impl/RadioIndicator 2.0"
- exports: ["QtQuick.Controls.Material.impl/RadioIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- }
- Component {
- prototype: "QQuickItem"
- name: "QtQuick.Controls.Material.impl/RectangularGlow 2.0"
- exports: ["QtQuick.Controls.Material.impl/RectangularGlow 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "glowRadius"; type: "double" }
- Property { name: "spread"; type: "double" }
- Property { name: "color"; type: "QColor" }
- Property { name: "cornerRadius"; type: "double" }
- Property { name: "cached"; type: "bool" }
- }
- Component {
- prototype: "QQuickItem"
- name: "QtQuick.Controls.Material.impl/SliderHandle 2.0"
- exports: ["QtQuick.Controls.Material.impl/SliderHandle 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "value"; type: "double" }
- Property { name: "handleHasFocus"; type: "bool" }
- Property { name: "handlePressed"; type: "bool" }
- Property { name: "handleHovered"; type: "bool" }
- Property { name: "initialSize"; type: "int"; isReadonly: true }
- Property { name: "control"; type: "QVariant"; isReadonly: true }
- }
- Component {
- prototype: "QQuickItem"
- name: "QtQuick.Controls.Material.impl/SwitchIndicator 2.0"
- exports: ["QtQuick.Controls.Material.impl/SwitchIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- Property { name: "handle"; type: "QQuickRectangle"; isReadonly: true; isPointer: true }
- }
-}
diff --git a/src/imports/controls/material/qmldir b/src/imports/controls/material/qmldir
deleted file mode 100644
index 870a0382..00000000
--- a/src/imports/controls/material/qmldir
+++ /dev/null
@@ -1,4 +0,0 @@
-module QtQuick.Controls.Material
-plugin qtquickcontrols2materialstyleplugin
-classname QtQuickControls2MaterialStylePlugin
-depends QtQuick.Controls 2.5
diff --git a/src/imports/controls/material/qquickmaterialbusyindicator.cpp b/src/imports/controls/material/qquickmaterialbusyindicator.cpp
deleted file mode 100644
index c18a4005..00000000
--- a/src/imports/controls/material/qquickmaterialbusyindicator.cpp
+++ /dev/null
@@ -1,245 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickmaterialbusyindicator_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtCore/qeasingcurve.h>
-#include <QtGui/qpainter.h>
-#include <QtQuick/qsgimagenode.h>
-#include <QtQuick/qquickwindow.h>
-#include <QtQuickControls2/private/qquickanimatednode_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*
- Relevant Android code:
-
- - core/res/res/anim/progress_indeterminate_rotation_material.xml contains
- the rotation animation data.
- - core/res/res/anim/progress_indeterminate_material.xml contains the trim
- animation data.
- - core/res/res/interpolator/trim_start_interpolator.xml and
- core/res/res/interpolator/trim_end_interpolator.xml contain the start
- and end trim path interpolators.
- - addCommand() in core/java/android/util/PathParser.java has a list of the
- different path commands available.
-*/
-
-static const int SpanAnimationDuration = 700;
-static const int RotationAnimationDuration = SpanAnimationDuration * 6;
-static const int TargetRotation = 720;
-static const int OneDegree = 16;
-static const qreal MinSweepSpan = 10 * OneDegree;
-static const qreal MaxSweepSpan = 300 * OneDegree;
-
-class QQuickMaterialBusyIndicatorNode : public QQuickAnimatedNode
-{
-public:
- QQuickMaterialBusyIndicatorNode(QQuickMaterialBusyIndicator *item);
-
- void sync(QQuickItem *item) override;
-
-protected:
- void updateCurrentTime(int time) override;
-
-private:
- int m_lastStartAngle = 0;
- int m_lastEndAngle = 0;
- qreal m_width = 0;
- qreal m_height = 0;
- qreal m_devicePixelRatio = 1;
- QColor m_color;
-};
-
-QQuickMaterialBusyIndicatorNode::QQuickMaterialBusyIndicatorNode(QQuickMaterialBusyIndicator *item)
- : QQuickAnimatedNode(item)
-{
- setLoopCount(Infinite);
- setCurrentTime(item->elapsed());
- setDuration(RotationAnimationDuration);
-
- QSGImageNode *textureNode = item->window()->createImageNode();
- textureNode->setOwnsTexture(true);
- appendChildNode(textureNode);
-
- // A texture seems to be required here, but we don't have one yet, as we haven't drawn anything,
- // so just use a blank image.
- QImage blankImage(item->width(), item->height(), QImage::Format_ARGB32_Premultiplied);
- blankImage.fill(Qt::transparent);
- textureNode->setTexture(item->window()->createTextureFromImage(blankImage));
-}
-
-void QQuickMaterialBusyIndicatorNode::updateCurrentTime(int time)
-{
- const qreal w = m_width;
- const qreal h = m_height;
- const qreal size = qMin(w, h);
- const qreal dx = (w - size) / 2;
- const qreal dy = (h - size) / 2;
-
- QImage image(size * m_devicePixelRatio, size * m_devicePixelRatio, QImage::Format_ARGB32_Premultiplied);
- image.fill(Qt::transparent);
-
- QPainter painter(&image);
- painter.setRenderHint(QPainter::Antialiasing);
-
- QPen pen;
- QSGImageNode *textureNode = static_cast<QSGImageNode *>(firstChild());
- pen.setColor(m_color);
- pen.setWidth(qCeil(size / 12) * m_devicePixelRatio);
- painter.setPen(pen);
-
- const qreal percentageComplete = time / qreal(RotationAnimationDuration);
- const qreal spanPercentageComplete = (time % SpanAnimationDuration) / qreal(SpanAnimationDuration);
- const int iteration = time / SpanAnimationDuration;
- int startAngle = 0;
- int endAngle = 0;
-
- if (iteration % 2 == 0) {
- if (m_lastStartAngle > 360 * OneDegree)
- m_lastStartAngle -= 360 * OneDegree;
-
- // The start angle is only affected by the rotation animation for the "grow" phase.
- startAngle = m_lastStartAngle;
- QEasingCurve angleCurve(QEasingCurve::OutQuad);
- const qreal percentage = angleCurve.valueForProgress(spanPercentageComplete);
- endAngle = m_lastStartAngle + MinSweepSpan + percentage * (MaxSweepSpan - MinSweepSpan);
- m_lastEndAngle = endAngle;
- } else {
- // Both the start angle *and* the span are affected by the "shrink" phase.
- QEasingCurve angleCurve(QEasingCurve::InQuad);
- const qreal percentage = angleCurve.valueForProgress(spanPercentageComplete);
- startAngle = m_lastEndAngle - MaxSweepSpan + percentage * (MaxSweepSpan - MinSweepSpan);
- endAngle = m_lastEndAngle;
- m_lastStartAngle = startAngle;
- }
-
- const int halfPen = pen.width() / 2;
- const QRectF arcBounds = QRectF(halfPen, halfPen,
- m_devicePixelRatio * size - pen.width(),
- m_devicePixelRatio * size - pen.width());
- // The current angle of the rotation animation.
- const qreal rotation = OneDegree * percentageComplete * -TargetRotation;
- startAngle -= rotation;
- endAngle -= rotation;
- const int angleSpan = endAngle - startAngle;
- painter.drawArc(arcBounds, -startAngle, -angleSpan);
- painter.end();
-
- textureNode->setRect(QRectF(dx, dy, size, size));
- textureNode->setTexture(window()->createTextureFromImage(image));
-}
-
-void QQuickMaterialBusyIndicatorNode::sync(QQuickItem *item)
-{
- QQuickMaterialBusyIndicator *indicator = static_cast<QQuickMaterialBusyIndicator *>(item);
- m_color = indicator->color();
- m_width = indicator->width();
- m_height = indicator->height();
- m_devicePixelRatio = indicator->window()->effectiveDevicePixelRatio();
-}
-
-QQuickMaterialBusyIndicator::QQuickMaterialBusyIndicator(QQuickItem *parent) :
- QQuickItem(parent)
-{
- setFlag(ItemHasContents);
-}
-
-QColor QQuickMaterialBusyIndicator::color() const
-{
- return m_color;
-}
-
-void QQuickMaterialBusyIndicator::setColor(QColor color)
-{
- if (m_color == color)
- return;
-
- m_color = color;
- update();
-}
-
-bool QQuickMaterialBusyIndicator::isRunning() const
-{
- return isVisible();
-}
-
-void QQuickMaterialBusyIndicator::setRunning(bool running)
-{
- if (running)
- setVisible(true);
-}
-
-int QQuickMaterialBusyIndicator::elapsed() const
-{
- return m_elapsed;
-}
-
-void QQuickMaterialBusyIndicator::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- QQuickItem::itemChange(change, data);
- switch (change) {
- case ItemOpacityHasChanged:
- if (qFuzzyIsNull(data.realValue))
- setVisible(false);
- break;
- case ItemVisibleHasChanged:
- update();
- break;
- default:
- break;
- }
-}
-
-QSGNode *QQuickMaterialBusyIndicator::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *)
-{
- QQuickMaterialBusyIndicatorNode *node = static_cast<QQuickMaterialBusyIndicatorNode *>(oldNode);
- if (isRunning() && width() > 0 && height() > 0) {
- if (!node) {
- node = new QQuickMaterialBusyIndicatorNode(this);
- node->start();
- }
- node->sync(this);
- } else {
- m_elapsed = node ? node->currentTime() : 0;
- delete node;
- node = nullptr;
- }
- return node;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/material/qquickmaterialbusyindicator_p.h b/src/imports/controls/material/qquickmaterialbusyindicator_p.h
deleted file mode 100644
index d29427c1..00000000
--- a/src/imports/controls/material/qquickmaterialbusyindicator_p.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMATERIALBUSYINDICATOR_P_H
-#define QQUICKMATERIALBUSYINDICATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuick/qquickitem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMaterialBusyIndicator : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
- Q_PROPERTY(bool running READ isRunning WRITE setRunning FINAL)
-
-public:
- explicit QQuickMaterialBusyIndicator(QQuickItem *parent = nullptr);
-
- QColor color() const;
- void setColor(QColor color);
-
- bool isRunning() const;
- void setRunning(bool running);
-
- int elapsed() const;
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
-
-private:
- int m_elapsed = 0;
- QColor m_color = Qt::black;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMaterialBusyIndicator)
-
-#endif // QQUICKMATERIALBUSYINDICATOR_P_H
diff --git a/src/imports/controls/material/qquickmaterialprogressbar.cpp b/src/imports/controls/material/qquickmaterialprogressbar.cpp
deleted file mode 100644
index 4635c57b..00000000
--- a/src/imports/controls/material/qquickmaterialprogressbar.cpp
+++ /dev/null
@@ -1,245 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickmaterialprogressbar_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtCore/qeasingcurve.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qsgadaptationlayer_p.h>
-#include <QtQuick/qsgrectanglenode.h>
-#include <QtQuick/qsgimagenode.h>
-#include <QtQuick/qquickwindow.h>
-#include <QtQuickControls2/private/qquickanimatednode_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static const int PauseDuration = 520;
-static const int SlideDuration = 1240;
-static const int TotalDuration = SlideDuration + PauseDuration;
-
-class QQuickMaterialProgressBarNode : public QQuickAnimatedNode
-{
-public:
- QQuickMaterialProgressBarNode(QQuickMaterialProgressBar *item);
-
- void updateCurrentTime(int time) override;
- void sync(QQuickItem *item) override;
-
-private:
- void moveNode(QSGTransformNode *node, const QRectF &geometry, qreal progress);
-
- bool m_indeterminate = false;
- QEasingCurve m_easing = QEasingCurve::OutCubic;
-};
-
-QQuickMaterialProgressBarNode::QQuickMaterialProgressBarNode(QQuickMaterialProgressBar *item)
- : QQuickAnimatedNode(item)
-{
- setLoopCount(Infinite);
- setDuration(TotalDuration);
-}
-
-void QQuickMaterialProgressBarNode::updateCurrentTime(int time)
-{
- QSGRectangleNode *geometryNode = static_cast<QSGRectangleNode *>(firstChild());
- Q_ASSERT(geometryNode->type() == QSGNode::GeometryNodeType);
- const QRectF geometry = geometryNode->rect();
-
- QSGTransformNode *firstNode = static_cast<QSGTransformNode *>(geometryNode->firstChild());
- if (firstNode) {
- Q_ASSERT(firstNode->type() == QSGNode::TransformNodeType);
-
- const qreal progress = qMin<qreal>(1.0, static_cast<qreal>(time) / SlideDuration);
- moveNode(static_cast<QSGTransformNode *>(firstNode), geometry, progress);
- }
-
- QSGTransformNode *secondNode = static_cast<QSGTransformNode *>(geometryNode->lastChild());
- if (secondNode) {
- Q_ASSERT(secondNode->type() == QSGNode::TransformNodeType);
-
- const qreal progress = qMax<qreal>(0.0, static_cast<qreal>(time - PauseDuration) / SlideDuration);
- moveNode(static_cast<QSGTransformNode *>(secondNode), geometry, progress);
- }
-}
-
-void QQuickMaterialProgressBarNode::sync(QQuickItem *item)
-{
- QQuickMaterialProgressBar *bar = static_cast<QQuickMaterialProgressBar *>(item);
- if (m_indeterminate != bar->isIndeterminate()) {
- m_indeterminate = bar->isIndeterminate();
- if (m_indeterminate)
- start();
- else
- stop();
- }
-
- QQuickItemPrivate *d = QQuickItemPrivate::get(item);
-
- QRectF bounds = item->boundingRect();
- bounds.setHeight(item->implicitHeight());
- bounds.moveTop((item->height() - bounds.height()) / 2.0);
-
- QSGRectangleNode *geometryNode = static_cast<QSGRectangleNode *>(firstChild());
- if (!geometryNode) {
- geometryNode = item->window()->createRectangleNode();
- geometryNode->setColor(Qt::transparent);
- appendChildNode(geometryNode);
- }
- geometryNode->setRect(bounds);
-
- const int count = m_indeterminate ? 2 : 1;
- const qreal w = m_indeterminate ? 0 : bar->progress() * item->width();
- const QRectF rect(0, bounds.y(), w, bounds.height());
-
- QSGNode *transformNode = geometryNode->firstChild();
- for (int i = 0; i < count; ++i) {
- if (!transformNode) {
- transformNode = new QSGTransformNode;
- geometryNode->appendChildNode(transformNode);
-
- QSGInternalRectangleNode *rectNode = d->sceneGraphContext()->createInternalRectangleNode();
- rectNode->setAntialiasing(true);
- transformNode->appendChildNode(rectNode);
- }
- Q_ASSERT(transformNode->type() == QSGNode::TransformNodeType);
- static_cast<QSGTransformNode *>(transformNode)->setMatrix(QMatrix4x4());
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(transformNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
-
- rectNode->setRect(rect);
- rectNode->setColor(bar->color());
- rectNode->update();
-
- transformNode = transformNode->nextSibling();
- }
-
- while (transformNode) {
- QSGNode *nextSibling = transformNode->nextSibling();
- delete transformNode;
- transformNode = nextSibling;
- }
-}
-
-void QQuickMaterialProgressBarNode::moveNode(QSGTransformNode *transformNode, const QRectF &geometry, qreal progress)
-{
- const qreal value = m_easing.valueForProgress(progress);
- const qreal x = value * geometry.width();
-
- QMatrix4x4 matrix;
- matrix.translate(x, 0);
- transformNode->setMatrix(matrix);
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(transformNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
-
- QRectF r = geometry;
- r.setWidth(value * (geometry.width() - x));
- rectNode->setRect(r);
- rectNode->update();
-}
-
-QQuickMaterialProgressBar::QQuickMaterialProgressBar(QQuickItem *parent)
- : QQuickItem(parent)
-{
- setFlag(ItemHasContents);
-}
-
-QColor QQuickMaterialProgressBar::color() const
-{
- return m_color;
-}
-
-void QQuickMaterialProgressBar::setColor(const QColor &color)
-{
- if (color == m_color)
- return;
-
- m_color = color;
- update();
-}
-
-qreal QQuickMaterialProgressBar::progress() const
-{
- return m_progress;
-}
-
-void QQuickMaterialProgressBar::setProgress(qreal progress)
-{
- if (progress == m_progress)
- return;
-
- m_progress = progress;
- update();
-}
-
-bool QQuickMaterialProgressBar::isIndeterminate() const
-{
- return m_indeterminate;
-}
-
-void QQuickMaterialProgressBar::setIndeterminate(bool indeterminate)
-{
- if (indeterminate == m_indeterminate)
- return;
-
- m_indeterminate = indeterminate;
- update();
-}
-
-void QQuickMaterialProgressBar::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- QQuickItem::itemChange(change, data);
- if (change == ItemVisibleHasChanged)
- update();
-}
-
-QSGNode *QQuickMaterialProgressBar::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *)
-{
- QQuickMaterialProgressBarNode *node = static_cast<QQuickMaterialProgressBarNode *>(oldNode);
- if (isVisible() && width() > 0 && height() > 0) {
- if (!node)
- node = new QQuickMaterialProgressBarNode(this);
- node->sync(this);
- } else {
- delete node;
- node = nullptr;
- }
- return node;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/material/qquickmaterialprogressbar_p.h b/src/imports/controls/material/qquickmaterialprogressbar_p.h
deleted file mode 100644
index 680f36a4..00000000
--- a/src/imports/controls/material/qquickmaterialprogressbar_p.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMATERIALPROGRESSBAR_P_H
-#define QQUICKMATERIALPROGRESSBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuick/qquickitem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMaterialProgressBar : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
- Q_PROPERTY(qreal progress READ progress WRITE setProgress FINAL)
- Q_PROPERTY(bool indeterminate READ isIndeterminate WRITE setIndeterminate FINAL)
-
-public:
- explicit QQuickMaterialProgressBar(QQuickItem *parent = nullptr);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- qreal progress() const;
- void setProgress(qreal progress);
-
- bool isIndeterminate() const;
- void setIndeterminate(bool indeterminate);
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
-
-private:
- QColor m_color = Qt::black;
- qreal m_progress = 0.0;
- bool m_indeterminate = false;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMaterialProgressBar)
-
-#endif // QQUICKMATERIALPROGRESSBAR_P_H
diff --git a/src/imports/controls/material/qquickmaterialripple.cpp b/src/imports/controls/material/qquickmaterialripple.cpp
deleted file mode 100644
index e6287ff9..00000000
--- a/src/imports/controls/material/qquickmaterialripple.cpp
+++ /dev/null
@@ -1,442 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickmaterialripple_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qsgadaptationlayer_p.h>
-#include <QtQuickControls2/private/qquickanimatednode_p.h>
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-#include <QtQuickTemplates2/private/qquickabstractbutton_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-namespace {
- enum WavePhase { WaveEnter, WaveExit };
-}
-
-static const int RIPPLE_ENTER_DELAY = 80;
-static const int OPACITY_ENTER_DURATION_FAST = 120;
-static const int WAVE_OPACITY_DECAY_DURATION = 333;
-static const qreal WAVE_TOUCH_DOWN_ACCELERATION = 1024.0;
-
-class QQuickMaterialRippleWaveNode : public QQuickAnimatedNode
-{
-public:
- QQuickMaterialRippleWaveNode(QQuickMaterialRipple *ripple);
-
- void exit();
- void updateCurrentTime(int time) override;
- void sync(QQuickItem *item) override;
-
-private:
- qreal m_from = 0;
- qreal m_to = 0;
- qreal m_value = 0;
- WavePhase m_phase = WaveEnter;
- QPointF m_anchor;
- QRectF m_bounds;
-};
-
-QQuickMaterialRippleWaveNode::QQuickMaterialRippleWaveNode(QQuickMaterialRipple *ripple)
- : QQuickAnimatedNode(ripple)
-{
- start(qRound(1000.0 * qSqrt(ripple->diameter() / 2.0 / WAVE_TOUCH_DOWN_ACCELERATION)));
-
- QSGOpacityNode *opacityNode = new QSGOpacityNode;
- appendChildNode(opacityNode);
-
- QQuickItemPrivate *d = QQuickItemPrivate::get(ripple);
- QSGInternalRectangleNode *rectNode = d->sceneGraphContext()->createInternalRectangleNode();
- rectNode->setAntialiasing(true);
- opacityNode->appendChildNode(rectNode);
-}
-
-void QQuickMaterialRippleWaveNode::exit()
-{
- m_phase = WaveExit;
- m_from = m_value;
- setDuration(WAVE_OPACITY_DECAY_DURATION);
- restart();
- connect(this, &QQuickAnimatedNode::stopped, this, &QObject::deleteLater);
-}
-
-void QQuickMaterialRippleWaveNode::updateCurrentTime(int time)
-{
- qreal p = 1.0;
- if (duration() > 0)
- p = time / static_cast<qreal>(duration());
-
- m_value = m_from + (m_to - m_from) * p;
- p = m_value / m_to;
-
- const qreal dx = (1.0 - p) * (m_anchor.x() - m_bounds.width() / 2);
- const qreal dy = (1.0 - p) * (m_anchor.y() - m_bounds.height() / 2);
-
- QMatrix4x4 m;
- m.translate(qRound((m_bounds.width() - m_value) / 2 + dx),
- qRound((m_bounds.height() - m_value) / 2 + dy));
- setMatrix(m);
-
- QSGOpacityNode *opacityNode = static_cast<QSGOpacityNode *>(firstChild());
- Q_ASSERT(opacityNode->type() == QSGNode::OpacityNodeType);
- qreal opacity = 1.0;
- if (m_phase == WaveExit)
- opacity -= static_cast<qreal>(time) / WAVE_OPACITY_DECAY_DURATION;
- opacityNode->setOpacity(opacity);
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(opacityNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
- rectNode->setRect(QRectF(0, 0, m_value, m_value));
- rectNode->setRadius(m_value / 2);
- rectNode->update();
-}
-
-void QQuickMaterialRippleWaveNode::sync(QQuickItem *item)
-{
- QQuickMaterialRipple *ripple = static_cast<QQuickMaterialRipple *>(item);
- m_to = ripple->diameter();
- m_anchor = ripple->anchorPoint();
- m_bounds = ripple->boundingRect();
-
- QSGOpacityNode *opacityNode = static_cast<QSGOpacityNode *>(firstChild());
- Q_ASSERT(opacityNode->type() == QSGNode::OpacityNodeType);
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(opacityNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
- rectNode->setColor(ripple->color());
-}
-
-class QQuickMaterialRippleBackgroundNode : public QQuickAnimatedNode
-{
- Q_OBJECT
-
-public:
- QQuickMaterialRippleBackgroundNode(QQuickMaterialRipple *ripple);
-
- void updateCurrentTime(int time) override;
- void sync(QQuickItem *item) override;
-
-private:
- bool m_active = false;
-};
-
-QQuickMaterialRippleBackgroundNode::QQuickMaterialRippleBackgroundNode(QQuickMaterialRipple *ripple)
- : QQuickAnimatedNode(ripple)
-{
- setDuration(OPACITY_ENTER_DURATION_FAST);
-
- QSGOpacityNode *opacityNode = new QSGOpacityNode;
- opacityNode->setOpacity(0.0);
- appendChildNode(opacityNode);
-
- QQuickItemPrivate *d = QQuickItemPrivate::get(ripple);
- QSGInternalRectangleNode *rectNode = d->sceneGraphContext()->createInternalRectangleNode();
- rectNode->setAntialiasing(true);
- opacityNode->appendChildNode(rectNode);
-}
-
-void QQuickMaterialRippleBackgroundNode::updateCurrentTime(int time)
-{
- qreal opacity = time / static_cast<qreal>(duration());
- if (!m_active)
- opacity = 1.0 - opacity;
-
- QSGOpacityNode *opacityNode = static_cast<QSGOpacityNode *>(firstChild());
- Q_ASSERT(opacityNode->type() == QSGNode::OpacityNodeType);
- opacityNode->setOpacity(opacity);
-}
-
-void QQuickMaterialRippleBackgroundNode::sync(QQuickItem *item)
-{
- QQuickMaterialRipple *ripple = static_cast<QQuickMaterialRipple *>(item);
- if (m_active != ripple->isActive()) {
- m_active = ripple->isActive();
- setDuration(m_active ? OPACITY_ENTER_DURATION_FAST : WAVE_OPACITY_DECAY_DURATION);
- restart();
- }
-
- QSGOpacityNode *opacityNode = static_cast<QSGOpacityNode *>(firstChild());
- Q_ASSERT(opacityNode->type() == QSGNode::OpacityNodeType);
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(opacityNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
-
- const qreal w = ripple->width();
- const qreal h = ripple->height();
- const qreal sz = qSqrt(w * w + h * h);
-
- QMatrix4x4 matrix;
- if (qFuzzyIsNull(ripple->clipRadius())) {
- matrix.translate(qRound((w - sz) / 2), qRound((h - sz) / 2));
- rectNode->setRect(QRectF(0, 0, sz, sz));
- rectNode->setRadius(sz / 2);
- } else {
- rectNode->setRect(QRectF(0, 0, w, h));
- rectNode->setRadius(ripple->clipRadius());
- }
-
- setMatrix(matrix);
- rectNode->setColor(ripple->color());
- rectNode->update();
-}
-
-QQuickMaterialRipple::QQuickMaterialRipple(QQuickItem *parent)
- : QQuickItem(parent)
-{
- setFlag(ItemHasContents);
-}
-
-bool QQuickMaterialRipple::isActive() const
-{
- return m_active;
-}
-
-void QQuickMaterialRipple::setActive(bool active)
-{
- if (active == m_active)
- return;
-
- m_active = active;
- update();
-}
-
-QColor QQuickMaterialRipple::color() const
-{
- return m_color;
-}
-
-void QQuickMaterialRipple::setColor(const QColor &color)
-{
- if (m_color == color)
- return;
-
- m_color = color;
- update();
-}
-
-qreal QQuickMaterialRipple::clipRadius() const
-{
- return m_clipRadius;
-}
-
-void QQuickMaterialRipple::setClipRadius(qreal radius)
-{
- if (qFuzzyCompare(m_clipRadius, radius))
- return;
-
- m_clipRadius = radius;
- setClip(!qFuzzyIsNull(radius));
- update();
-}
-
-bool QQuickMaterialRipple::isPressed() const
-{
- return m_pressed;
-}
-
-void QQuickMaterialRipple::setPressed(bool pressed)
-{
- if (pressed == m_pressed)
- return;
-
- m_pressed = pressed;
-
- if (!isEnabled()) {
- exitWave();
- return;
- }
-
- if (pressed) {
- if (m_trigger == Press)
- prepareWave();
- else
- exitWave();
- } else {
- if (m_trigger == Release)
- enterWave();
- else
- exitWave();
- }
-}
-
-QQuickMaterialRipple::Trigger QQuickMaterialRipple::trigger() const
-{
- return m_trigger;
-}
-
-void QQuickMaterialRipple::setTrigger(Trigger trigger)
-{
- m_trigger = trigger;
-}
-
-QPointF QQuickMaterialRipple::anchorPoint() const
-{
- const QRectF bounds = boundingRect();
- const QPointF center = bounds.center();
- if (!m_anchor)
- return center;
-
- QPointF anchorPoint = bounds.center();
- if (QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(m_anchor))
- anchorPoint = QQuickAbstractButtonPrivate::get(button)->pressPoint;
- anchorPoint = mapFromItem(m_anchor, anchorPoint);
-
- // calculate whether the anchor point is within the ripple circle bounds,
- // that is, whether waves should start expanding from the anchor point
- const qreal r = qSqrt(bounds.width() * bounds.width() + bounds.height() * bounds.height()) / 2;
- if (QLineF(center, anchorPoint).length() < r)
- return anchorPoint;
-
- // if the anchor point is outside the ripple circle bounds, start expanding
- // from the intersection point of the ripple circle and a line from its center
- // to the the anchor point
- const qreal p = qAtan2(anchorPoint.y() - center.y(), anchorPoint.x() - center.x());
- return QPointF(center.x() + r * qCos(p), center.y() + r * qSin(p));
-}
-
-QQuickItem *QQuickMaterialRipple::anchor() const
-{
- return m_anchor;
-}
-
-void QQuickMaterialRipple::setAnchor(QQuickItem *item)
-{
- m_anchor = item;
-}
-
-qreal QQuickMaterialRipple::diameter() const
-{
- const qreal w = width();
- const qreal h = height();
- return qSqrt(w * w + h * h);
-}
-
-void QQuickMaterialRipple::itemChange(ItemChange change, const ItemChangeData &data)
-{
- QQuickItem::itemChange(change, data);
-}
-
-QSGNode *QQuickMaterialRipple::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *)
-{
- QQuickItemPrivate *d = QQuickItemPrivate::get(this);
- QQuickDefaultClipNode *clipNode = d->clipNode();
- if (clipNode) {
- // TODO: QTBUG-51894
- // clipNode->setRadius(m_clipRadius);
- clipNode->setRect(boundingRect());
- clipNode->update();
- }
-
- QSGNode *container = oldNode;
- if (!container)
- container = new QSGNode;
-
- QQuickMaterialRippleBackgroundNode *backgroundNode = static_cast<QQuickMaterialRippleBackgroundNode *>(container->firstChild());
- if (!backgroundNode) {
- backgroundNode = new QQuickMaterialRippleBackgroundNode(this);
- backgroundNode->setObjectName(objectName());
- container->appendChildNode(backgroundNode);
- }
- backgroundNode->sync(this);
-
- // enter new waves
- int i = m_waves;
- QQuickMaterialRippleWaveNode *enterNode = static_cast<QQuickMaterialRippleWaveNode *>(backgroundNode->nextSibling());
- while (i-- > 0) {
- if (!enterNode) {
- enterNode = new QQuickMaterialRippleWaveNode(this);
- container->appendChildNode(enterNode);
- }
- enterNode->sync(this);
- enterNode = static_cast<QQuickMaterialRippleWaveNode *>(enterNode->nextSibling());
- }
-
- // exit old waves
- int j = container->childCount() - 1 - m_waves;
- while (j-- > 0) {
- QQuickMaterialRippleWaveNode *exitNode = static_cast<QQuickMaterialRippleWaveNode *>(backgroundNode->nextSibling());
- if (exitNode) {
- exitNode->exit();
- exitNode->sync(this);
- }
- }
-
- return container;
-}
-
-void QQuickMaterialRipple::timerEvent(QTimerEvent *event)
-{
- QQuickItem::timerEvent(event);
-
- if (event->timerId() == m_enterDelay)
- enterWave();
-}
-
-void QQuickMaterialRipple::prepareWave()
-{
- if (m_enterDelay <= 0)
- m_enterDelay = startTimer(RIPPLE_ENTER_DELAY);
-}
-
-void QQuickMaterialRipple::enterWave()
-{
- if (m_enterDelay > 0) {
- killTimer(m_enterDelay);
- m_enterDelay = 0;
- }
-
- ++m_waves;
- update();
-}
-
-void QQuickMaterialRipple::exitWave()
-{
- if (m_enterDelay > 0) {
- killTimer(m_enterDelay);
- m_enterDelay = 0;
- }
-
- if (m_waves > 0) {
- --m_waves;
- update();
- }
-}
-
-QT_END_NAMESPACE
-
-#include "qquickmaterialripple.moc"
diff --git a/src/imports/controls/material/qquickmaterialripple_p.h b/src/imports/controls/material/qquickmaterialripple_p.h
deleted file mode 100644
index 8a80113b..00000000
--- a/src/imports/controls/material/qquickmaterialripple_p.h
+++ /dev/null
@@ -1,118 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMATERIALRIPPLE_P_H
-#define QQUICKMATERIALRIPPLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/qquickitem.h>
-#include <QtGui/qcolor.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMaterialRipple : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
- Q_PROPERTY(qreal clipRadius READ clipRadius WRITE setClipRadius FINAL)
- Q_PROPERTY(bool pressed READ isPressed WRITE setPressed FINAL)
- Q_PROPERTY(bool active READ isActive WRITE setActive FINAL)
- Q_PROPERTY(QQuickItem *anchor READ anchor WRITE setAnchor FINAL)
- Q_PROPERTY(Trigger trigger READ trigger WRITE setTrigger FINAL)
-
-public:
- QQuickMaterialRipple(QQuickItem *parent = nullptr);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- qreal clipRadius() const;
- void setClipRadius(qreal radius);
-
- bool isActive() const;
- void setActive(bool active);
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
- enum Trigger { Press, Release };
- Q_ENUM (Trigger)
-
- Trigger trigger() const;
- void setTrigger(Trigger trigger);
-
- QPointF anchorPoint() const;
-
- QQuickItem *anchor() const;
- void setAnchor(QQuickItem *anchor);
-
- qreal diameter() const;
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
- void timerEvent(QTimerEvent *event) override;
-
- void prepareWave();
- void enterWave();
- void exitWave();
-
-private:
- bool m_active = false;
- bool m_pressed = false;
- int m_waves = 0;
- int m_enterDelay = 0;
- Trigger m_trigger = Press;
- qreal m_clipRadius = 0.0;
- QColor m_color;
- QQuickItem *m_anchor = nullptr;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMaterialRipple)
-
-#endif // QQUICKMATERIALRIPPLE_P_H
diff --git a/src/imports/controls/material/qquickmaterialstyle.cpp b/src/imports/controls/material/qquickmaterialstyle.cpp
deleted file mode 100644
index 77a65927..00000000
--- a/src/imports/controls/material/qquickmaterialstyle.cpp
+++ /dev/null
@@ -1,1334 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickmaterialstyle_p.h"
-
-#include <QtCore/qdebug.h>
-#include <QtCore/qsettings.h>
-#include <QtQml/qqmlinfo.h>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static const QRgb colors[][14] = {
- // Red
- {
- 0xFFFFEBEE, // Shade50
- 0xFFFFCDD2, // Shade100
- 0xFFEF9A9A, // Shade200
- 0xFFE57373, // Shade300
- 0xFFEF5350, // Shade400
- 0xFFF44336, // Shade500
- 0xFFE53935, // Shade600
- 0xFFD32F2F, // Shade700
- 0xFFC62828, // Shade800
- 0xFFB71C1C, // Shade900
- 0xFFFF8A80, // ShadeA100
- 0xFFFF5252, // ShadeA200
- 0xFFFF1744, // ShadeA400
- 0xFFD50000 // ShadeA700
- },
- // Pink
- {
- 0xFFFCE4EC, // Shade50
- 0xFFF8BBD0, // Shade100
- 0xFFF48FB1, // Shade200
- 0xFFF06292, // Shade300
- 0xFFEC407A, // Shade400
- 0xFFE91E63, // Shade500
- 0xFFD81B60, // Shade600
- 0xFFC2185B, // Shade700
- 0xFFAD1457, // Shade800
- 0xFF880E4F, // Shade900
- 0xFFFF80AB, // ShadeA100
- 0xFFFF4081, // ShadeA200
- 0xFFF50057, // ShadeA400
- 0xFFC51162 // ShadeA700
- },
- // Purple
- {
- 0xFFF3E5F5, // Shade50
- 0xFFE1BEE7, // Shade100
- 0xFFCE93D8, // Shade200
- 0xFFBA68C8, // Shade300
- 0xFFAB47BC, // Shade400
- 0xFF9C27B0, // Shade500
- 0xFF8E24AA, // Shade600
- 0xFF7B1FA2, // Shade700
- 0xFF6A1B9A, // Shade800
- 0xFF4A148C, // Shade900
- 0xFFEA80FC, // ShadeA100
- 0xFFE040FB, // ShadeA200
- 0xFFD500F9, // ShadeA400
- 0xFFAA00FF // ShadeA700
- },
- // DeepPurple
- {
- 0xFFEDE7F6, // Shade50
- 0xFFD1C4E9, // Shade100
- 0xFFB39DDB, // Shade200
- 0xFF9575CD, // Shade300
- 0xFF7E57C2, // Shade400
- 0xFF673AB7, // Shade500
- 0xFF5E35B1, // Shade600
- 0xFF512DA8, // Shade700
- 0xFF4527A0, // Shade800
- 0xFF311B92, // Shade900
- 0xFFB388FF, // ShadeA100
- 0xFF7C4DFF, // ShadeA200
- 0xFF651FFF, // ShadeA400
- 0xFF6200EA // ShadeA700
- },
- // Indigo
- {
- 0xFFE8EAF6, // Shade50
- 0xFFC5CAE9, // Shade100
- 0xFF9FA8DA, // Shade200
- 0xFF7986CB, // Shade300
- 0xFF5C6BC0, // Shade400
- 0xFF3F51B5, // Shade500
- 0xFF3949AB, // Shade600
- 0xFF303F9F, // Shade700
- 0xFF283593, // Shade800
- 0xFF1A237E, // Shade900
- 0xFF8C9EFF, // ShadeA100
- 0xFF536DFE, // ShadeA200
- 0xFF3D5AFE, // ShadeA400
- 0xFF304FFE // ShadeA700
- },
- // Blue
- {
- 0xFFE3F2FD, // Shade50
- 0xFFBBDEFB, // Shade100
- 0xFF90CAF9, // Shade200
- 0xFF64B5F6, // Shade300
- 0xFF42A5F5, // Shade400
- 0xFF2196F3, // Shade500
- 0xFF1E88E5, // Shade600
- 0xFF1976D2, // Shade700
- 0xFF1565C0, // Shade800
- 0xFF0D47A1, // Shade900
- 0xFF82B1FF, // ShadeA100
- 0xFF448AFF, // ShadeA200
- 0xFF2979FF, // ShadeA400
- 0xFF2962FF // ShadeA700
- },
- // LightBlue
- {
- 0xFFE1F5FE, // Shade50
- 0xFFB3E5FC, // Shade100
- 0xFF81D4FA, // Shade200
- 0xFF4FC3F7, // Shade300
- 0xFF29B6F6, // Shade400
- 0xFF03A9F4, // Shade500
- 0xFF039BE5, // Shade600
- 0xFF0288D1, // Shade700
- 0xFF0277BD, // Shade800
- 0xFF01579B, // Shade900
- 0xFF80D8FF, // ShadeA100
- 0xFF40C4FF, // ShadeA200
- 0xFF00B0FF, // ShadeA400
- 0xFF0091EA // ShadeA700
- },
- // Cyan
- {
- 0xFFE0F7FA, // Shade50
- 0xFFB2EBF2, // Shade100
- 0xFF80DEEA, // Shade200
- 0xFF4DD0E1, // Shade300
- 0xFF26C6DA, // Shade400
- 0xFF00BCD4, // Shade500
- 0xFF00ACC1, // Shade600
- 0xFF0097A7, // Shade700
- 0xFF00838F, // Shade800
- 0xFF006064, // Shade900
- 0xFF84FFFF, // ShadeA100
- 0xFF18FFFF, // ShadeA200
- 0xFF00E5FF, // ShadeA400
- 0xFF00B8D4 // ShadeA700
- },
- // Teal
- {
- 0xFFE0F2F1, // Shade50
- 0xFFB2DFDB, // Shade100
- 0xFF80CBC4, // Shade200
- 0xFF4DB6AC, // Shade300
- 0xFF26A69A, // Shade400
- 0xFF009688, // Shade500
- 0xFF00897B, // Shade600
- 0xFF00796B, // Shade700
- 0xFF00695C, // Shade800
- 0xFF004D40, // Shade900
- 0xFFA7FFEB, // ShadeA100
- 0xFF64FFDA, // ShadeA200
- 0xFF1DE9B6, // ShadeA400
- 0xFF00BFA5 // ShadeA700
- },
- // Green
- {
- 0xFFE8F5E9, // Shade50
- 0xFFC8E6C9, // Shade100
- 0xFFA5D6A7, // Shade200
- 0xFF81C784, // Shade300
- 0xFF66BB6A, // Shade400
- 0xFF4CAF50, // Shade500
- 0xFF43A047, // Shade600
- 0xFF388E3C, // Shade700
- 0xFF2E7D32, // Shade800
- 0xFF1B5E20, // Shade900
- 0xFFB9F6CA, // ShadeA100
- 0xFF69F0AE, // ShadeA200
- 0xFF00E676, // ShadeA400
- 0xFF00C853 // ShadeA700
- },
- // LightGreen
- {
- 0xFFF1F8E9, // Shade50
- 0xFFDCEDC8, // Shade100
- 0xFFC5E1A5, // Shade200
- 0xFFAED581, // Shade300
- 0xFF9CCC65, // Shade400
- 0xFF8BC34A, // Shade500
- 0xFF7CB342, // Shade600
- 0xFF689F38, // Shade700
- 0xFF558B2F, // Shade800
- 0xFF33691E, // Shade900
- 0xFFCCFF90, // ShadeA100
- 0xFFB2FF59, // ShadeA200
- 0xFF76FF03, // ShadeA400
- 0xFF64DD17 // ShadeA700
- },
- // Lime
- {
- 0xFFF9FBE7, // Shade50
- 0xFFF0F4C3, // Shade100
- 0xFFE6EE9C, // Shade200
- 0xFFDCE775, // Shade300
- 0xFFD4E157, // Shade400
- 0xFFCDDC39, // Shade500
- 0xFFC0CA33, // Shade600
- 0xFFAFB42B, // Shade700
- 0xFF9E9D24, // Shade800
- 0xFF827717, // Shade900
- 0xFFF4FF81, // ShadeA100
- 0xFFEEFF41, // ShadeA200
- 0xFFC6FF00, // ShadeA400
- 0xFFAEEA00 // ShadeA700
- },
- // Yellow
- {
- 0xFFFFFDE7, // Shade50
- 0xFFFFF9C4, // Shade100
- 0xFFFFF59D, // Shade200
- 0xFFFFF176, // Shade300
- 0xFFFFEE58, // Shade400
- 0xFFFFEB3B, // Shade500
- 0xFFFDD835, // Shade600
- 0xFFFBC02D, // Shade700
- 0xFFF9A825, // Shade800
- 0xFFF57F17, // Shade900
- 0xFFFFFF8D, // ShadeA100
- 0xFFFFFF00, // ShadeA200
- 0xFFFFEA00, // ShadeA400
- 0xFFFFD600 // ShadeA700
- },
- // Amber
- {
- 0xFFFFF8E1, // Shade50
- 0xFFFFECB3, // Shade100
- 0xFFFFE082, // Shade200
- 0xFFFFD54F, // Shade300
- 0xFFFFCA28, // Shade400
- 0xFFFFC107, // Shade500
- 0xFFFFB300, // Shade600
- 0xFFFFA000, // Shade700
- 0xFFFF8F00, // Shade800
- 0xFFFF6F00, // Shade900
- 0xFFFFE57F, // ShadeA100
- 0xFFFFD740, // ShadeA200
- 0xFFFFC400, // ShadeA400
- 0xFFFFAB00 // ShadeA700
- },
- // Orange
- {
- 0xFFFFF3E0, // Shade50
- 0xFFFFE0B2, // Shade100
- 0xFFFFCC80, // Shade200
- 0xFFFFB74D, // Shade300
- 0xFFFFA726, // Shade400
- 0xFFFF9800, // Shade500
- 0xFFFB8C00, // Shade600
- 0xFFF57C00, // Shade700
- 0xFFEF6C00, // Shade800
- 0xFFE65100, // Shade900
- 0xFFFFD180, // ShadeA100
- 0xFFFFAB40, // ShadeA200
- 0xFFFF9100, // ShadeA400
- 0xFFFF6D00 // ShadeA700
- },
- // DeepOrange
- {
- 0xFFFBE9E7, // Shade50
- 0xFFFFCCBC, // Shade100
- 0xFFFFAB91, // Shade200
- 0xFFFF8A65, // Shade300
- 0xFFFF7043, // Shade400
- 0xFFFF5722, // Shade500
- 0xFFF4511E, // Shade600
- 0xFFE64A19, // Shade700
- 0xFFD84315, // Shade800
- 0xFFBF360C, // Shade900
- 0xFFFF9E80, // ShadeA100
- 0xFFFF6E40, // ShadeA200
- 0xFFFF3D00, // ShadeA400
- 0xFFDD2C00 // ShadeA700
- },
- // Brown
- {
- 0xFFEFEBE9, // Shade50
- 0xFFD7CCC8, // Shade100
- 0xFFBCAAA4, // Shade200
- 0xFFA1887F, // Shade300
- 0xFF8D6E63, // Shade400
- 0xFF795548, // Shade500
- 0xFF6D4C41, // Shade600
- 0xFF5D4037, // Shade700
- 0xFF4E342E, // Shade800
- 0xFF3E2723, // Shade900
- 0xFF000000, // ShadeA100
- 0xFF000000, // ShadeA200
- 0xFF000000, // ShadeA400
- 0xFF000000 // ShadeA700
- },
- // Grey
- {
- 0xFFFAFAFA, // Shade50
- 0xFFF5F5F5, // Shade100
- 0xFFEEEEEE, // Shade200
- 0xFFE0E0E0, // Shade300
- 0xFFBDBDBD, // Shade400
- 0xFF9E9E9E, // Shade500
- 0xFF757575, // Shade600
- 0xFF616161, // Shade700
- 0xFF424242, // Shade800
- 0xFF212121, // Shade900
- 0xFF000000, // ShadeA100
- 0xFF000000, // ShadeA200
- 0xFF000000, // ShadeA400
- 0xFF000000 // ShadeA700
- },
- // BlueGrey
- {
- 0xFFECEFF1, // Shade50
- 0xFFCFD8DC, // Shade100
- 0xFFB0BEC5, // Shade200
- 0xFF90A4AE, // Shade300
- 0xFF78909C, // Shade400
- 0xFF607D8B, // Shade500
- 0xFF546E7A, // Shade600
- 0xFF455A64, // Shade700
- 0xFF37474F, // Shade800
- 0xFF263238, // Shade900
- 0xFF000000, // ShadeA100
- 0xFF000000, // ShadeA200
- 0xFF000000, // ShadeA400
- 0xFF000000 // ShadeA700
- }
-};
-
-// If no value was inherited from a parent or explicitly set, the "global" values are used.
-// The initial, default values of the globals are hard-coded here, but the environment
-// variables and .conf file override them if specified.
-static QQuickMaterialStyle::Theme globalTheme = QQuickMaterialStyle::Light;
-static uint globalPrimary = QQuickMaterialStyle::Indigo;
-static uint globalAccent = QQuickMaterialStyle::Pink;
-static uint globalForeground = 0xDD000000; // primaryTextColorLight
-static uint globalBackground = 0xFFFAFAFA; // backgroundColorLight
-// These represent whether a global foreground/background was set.
-// Each style's m_hasForeground/m_hasBackground are initialized to these values.
-static bool hasGlobalForeground = false;
-static bool hasGlobalBackground = false;
-// These represent whether or not the global color value was specified as one of the
-// values that QColor accepts, as opposed to one of the pre-defined colors like Red.
-static bool globalPrimaryCustom = false;
-static bool globalAccentCustom = false;
-static bool globalForegroundCustom = true;
-static bool globalBackgroundCustom = true;
-// This is global because:
-// 1) The theme needs access to it to determine font sizes.
-// 2) There can only be one variant used for the whole application.
-static QQuickMaterialStyle::Variant globalVariant = QQuickMaterialStyle::Normal;
-
-static const QRgb backgroundColorLight = 0xFFFAFAFA;
-static const QRgb backgroundColorDark = 0xFF303030;
-static const QRgb dialogColorLight = 0xFFFFFFFF;
-static const QRgb dialogColorDark = 0xFF424242;
-static const QRgb primaryTextColorLight = 0xDD000000;
-static const QRgb primaryTextColorDark = 0xFFFFFFFF;
-static const QRgb secondaryTextColorLight = 0x89000000;
-static const QRgb secondaryTextColorDark = 0xB2FFFFFF;
-static const QRgb hintTextColorLight = 0x60000000;
-static const QRgb hintTextColorDark = 0x4CFFFFFF;
-static const QRgb dividerColorLight = 0x1E000000;
-static const QRgb dividerColorDark = 0x1EFFFFFF;
-static const QRgb iconColorLight = 0x89000000;
-static const QRgb iconColorDark = 0xFFFFFFFF;
-static const QRgb iconDisabledColorLight = 0x42000000;
-static const QRgb iconDisabledColorDark = 0x4CFFFFFF;
-static const QRgb raisedButtonColorLight = 0xFFD6D7D7;
-static const QRgb raisedButtonColorDark = 0x3FCCCCCC;
-static const QRgb raisedButtonDisabledColorLight = dividerColorLight;
-static const QRgb raisedButtonDisabledColorDark = dividerColorDark;
-static const QRgb frameColorLight = hintTextColorLight;
-static const QRgb frameColorDark = hintTextColorDark;
-static const QRgb switchUncheckedTrackColorLight = 0x42000000;
-static const QRgb switchUncheckedTrackColorDark = 0x4CFFFFFF;
-static const QRgb switchDisabledTrackColorLight = 0x1E000000;
-static const QRgb switchDisabledTrackColorDark = 0x19FFFFFF;
-static const QRgb rippleColorLight = 0x10000000;
-static const QRgb rippleColorDark = 0x20FFFFFF;
-static const QRgb spinBoxDisabledIconColorLight = 0xFFCCCCCC;
-static const QRgb spinBoxDisabledIconColorDark = 0xFF666666;
-
-static QQuickMaterialStyle::Theme effectiveTheme(QQuickMaterialStyle::Theme theme)
-{
- if (theme == QQuickMaterialStyle::System)
- theme = QQuickStylePrivate::isDarkSystemTheme() ? QQuickMaterialStyle::Dark : QQuickMaterialStyle::Light;
- return theme;
-}
-
-QQuickMaterialStyle::QQuickMaterialStyle(QObject *parent) : QQuickAttachedObject(parent),
- m_customPrimary(globalPrimaryCustom),
- m_customAccent(globalAccentCustom),
- m_customForeground(globalForegroundCustom),
- m_customBackground(globalBackgroundCustom),
- m_hasForeground(hasGlobalForeground),
- m_hasBackground(hasGlobalBackground),
- m_theme(globalTheme),
- m_primary(globalPrimary),
- m_accent(globalAccent),
- m_foreground(globalForeground),
- m_background(globalBackground)
-{
- QQuickAttachedObject::init();
-}
-
-QQuickMaterialStyle *QQuickMaterialStyle::qmlAttachedProperties(QObject *object)
-{
- return new QQuickMaterialStyle(object);
-}
-
-QQuickMaterialStyle::Theme QQuickMaterialStyle::theme() const
-{
- return m_theme;
-}
-
-void QQuickMaterialStyle::setTheme(Theme theme)
-{
- if (theme == System)
- theme = QQuickStylePrivate::isDarkSystemTheme() ? Dark : Light;
-
- m_explicitTheme = true;
- if (m_theme == theme)
- return;
-
- m_theme = theme;
- propagateTheme();
- emit themeChanged();
- emit paletteChanged();
- if (!m_customAccent)
- emit accentChanged();
- if (!m_hasBackground)
- emit backgroundChanged();
- if (!m_hasForeground)
- emit foregroundChanged();
-}
-
-void QQuickMaterialStyle::inheritTheme(Theme theme)
-{
- if (m_explicitTheme || m_theme == theme)
- return;
-
- m_theme = theme;
- propagateTheme();
- emit themeChanged();
- emit paletteChanged();
- if (!m_customAccent)
- emit accentChanged();
- if (!m_hasBackground)
- emit backgroundChanged();
- if (!m_hasForeground)
- emit foregroundChanged();
-}
-
-void QQuickMaterialStyle::propagateTheme()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(child);
- if (material)
- material->inheritTheme(m_theme);
- }
-}
-
-void QQuickMaterialStyle::resetTheme()
-{
- if (!m_explicitTheme)
- return;
-
- m_explicitTheme = false;
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(attachedParent());
- inheritTheme(material ? material->theme() : globalTheme);
-}
-
-QVariant QQuickMaterialStyle::primary() const
-{
- return primaryColor();
-}
-
-void QQuickMaterialStyle::setPrimary(const QVariant &var)
-{
- QRgb primary = 0;
- bool custom = false;
- if (!variantToRgba(var, "primary", &primary, &custom))
- return;
-
- m_explicitPrimary = true;
- if (m_primary == primary)
- return;
-
- m_customPrimary = custom;
- m_primary = primary;
- propagatePrimary();
- emit primaryChanged();
- emit paletteChanged();
-}
-
-void QQuickMaterialStyle::inheritPrimary(uint primary, bool custom)
-{
- if (m_explicitPrimary || m_primary == primary)
- return;
-
- m_customPrimary = custom;
- m_primary = primary;
- propagatePrimary();
- emit primaryChanged();
- emit paletteChanged();
-}
-
-void QQuickMaterialStyle::propagatePrimary()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(child);
- if (material)
- material->inheritPrimary(m_primary, m_customPrimary);
- }
-}
-
-void QQuickMaterialStyle::resetPrimary()
-{
- if (!m_explicitPrimary)
- return;
-
- m_customPrimary = false;
- m_explicitPrimary = false;
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(attachedParent());
- if (material)
- inheritPrimary(material->m_primary, material->m_customPrimary);
- else
- inheritPrimary(globalPrimary, false);
-}
-
-QVariant QQuickMaterialStyle::accent() const
-{
- return accentColor();
-}
-
-void QQuickMaterialStyle::setAccent(const QVariant &var)
-{
- QRgb accent = 0;
- bool custom = false;
- if (!variantToRgba(var, "accent", &accent, &custom))
- return;
-
- m_explicitAccent = true;
- if (m_accent == accent)
- return;
-
- m_customAccent = custom;
- m_accent = accent;
- propagateAccent();
- emit accentChanged();
- emit paletteChanged();
-}
-
-void QQuickMaterialStyle::inheritAccent(uint accent, bool custom)
-{
- if (m_explicitAccent || m_accent == accent)
- return;
-
- m_customAccent = custom;
- m_accent = accent;
- propagateAccent();
- emit accentChanged();
- emit paletteChanged();
-}
-
-void QQuickMaterialStyle::propagateAccent()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(child);
- if (material)
- material->inheritAccent(m_accent, m_customAccent);
- }
-}
-
-void QQuickMaterialStyle::resetAccent()
-{
- if (!m_explicitAccent)
- return;
-
- m_customAccent = false;
- m_explicitAccent = false;
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(attachedParent());
- if (material)
- inheritAccent(material->m_accent, material->m_customAccent);
- else
- inheritAccent(globalAccent, false);
-}
-
-QVariant QQuickMaterialStyle::foreground() const
-{
- if (!m_hasForeground)
- return QColor::fromRgba(m_theme == Light ? primaryTextColorLight : primaryTextColorDark);
- if (m_customForeground)
- return QColor::fromRgba(m_foreground);
- if (m_foreground > BlueGrey)
- return QColor();
- return QColor::fromRgba(colors[m_foreground][Shade500]);
-}
-
-void QQuickMaterialStyle::setForeground(const QVariant &var)
-{
- QRgb foreground = 0;
- bool custom = false;
- if (!variantToRgba(var, "foreground", &foreground, &custom))
- return;
-
- m_hasForeground = true;
- m_explicitForeground = true;
- if (m_foreground == foreground)
- return;
-
- m_customForeground = custom;
- m_foreground = foreground;
- propagateForeground();
- emit foregroundChanged();
-}
-
-void QQuickMaterialStyle::inheritForeground(uint foreground, bool custom, bool has)
-{
- if (m_explicitForeground || m_foreground == foreground)
- return;
-
- m_hasForeground = has;
- m_customForeground = custom;
- m_foreground = foreground;
- propagateForeground();
- emit foregroundChanged();
-}
-
-void QQuickMaterialStyle::propagateForeground()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(child);
- if (material)
- material->inheritForeground(m_foreground, m_customForeground, m_hasForeground);
- }
-}
-
-void QQuickMaterialStyle::resetForeground()
-{
- if (!m_explicitForeground)
- return;
-
- m_hasForeground = false;
- m_customForeground = false;
- m_explicitForeground = false;
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(attachedParent());
- inheritForeground(material ? material->m_foreground : globalForeground, true, material ? material->m_hasForeground : false);
-}
-
-QVariant QQuickMaterialStyle::background() const
-{
- return backgroundColor();
-}
-
-void QQuickMaterialStyle::setBackground(const QVariant &var)
-{
- QRgb background = 0;
- bool custom = false;
- if (!variantToRgba(var, "background", &background, &custom))
- return;
-
- m_hasBackground = true;
- m_explicitBackground = true;
- if (m_background == background)
- return;
-
- m_customBackground = custom;
- m_background = background;
- propagateBackground();
- emit backgroundChanged();
- emit paletteChanged();
-}
-
-void QQuickMaterialStyle::inheritBackground(uint background, bool custom, bool has)
-{
- if (m_explicitBackground || m_background == background)
- return;
-
- m_hasBackground = has;
- m_customBackground = custom;
- m_background = background;
- propagateBackground();
- emit backgroundChanged();
- emit paletteChanged();
-}
-
-void QQuickMaterialStyle::propagateBackground()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(child);
- if (material)
- material->inheritBackground(m_background, m_customBackground, m_hasBackground);
- }
-}
-
-void QQuickMaterialStyle::resetBackground()
-{
- if (!m_explicitBackground)
- return;
-
- m_hasBackground = false;
- m_customBackground = false;
- m_explicitBackground = false;
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(attachedParent());
- inheritBackground(material ? material->m_background : globalBackground, true, material ? material->m_hasBackground : false);
-}
-
-int QQuickMaterialStyle::elevation() const
-{
- return m_elevation;
-}
-
-void QQuickMaterialStyle::setElevation(int elevation)
-{
- if (m_elevation == elevation)
- return;
-
- m_elevation = elevation;
- emit elevationChanged();
-}
-
-void QQuickMaterialStyle::resetElevation()
-{
- setElevation(0);
-}
-
-QColor QQuickMaterialStyle::primaryColor() const
-{
- if (m_customPrimary)
- return QColor::fromRgba(m_primary);
- if (m_primary > BlueGrey)
- return QColor();
- return colors[m_primary][Shade500];
-}
-
-QColor QQuickMaterialStyle::accentColor(Shade shade) const
-{
- if (m_customAccent)
- return shade == themeShade() ? QColor::fromRgba(m_accent)
- : this->shade(QColor::fromRgba(m_accent), shade);
- if (m_accent > BlueGrey)
- return QColor();
- return colors[m_accent][shade];
-}
-
-QColor QQuickMaterialStyle::accentColor() const
-{
- return accentColor(themeShade());
-}
-
-QColor QQuickMaterialStyle::backgroundColor(Shade shade) const
-{
- if (!m_hasBackground)
- return QColor::fromRgba(m_theme == Light ? backgroundColorLight : backgroundColorDark);
- if (m_customBackground)
- return shade == themeShade() ? QColor::fromRgba(m_background)
- : this->shade(QColor::fromRgba(m_background), shade);
- if (m_background > BlueGrey)
- return QColor();
- return colors[m_background][shade];
-}
-
-QColor QQuickMaterialStyle::backgroundColor() const
-{
- return backgroundColor(themeShade());
-}
-
-QColor QQuickMaterialStyle::primaryTextColor() const
-{
- return QColor::fromRgba(m_theme == Light ? primaryTextColorLight : primaryTextColorDark);
-}
-
-QColor QQuickMaterialStyle::primaryHighlightedTextColor() const
-{
- if (m_explicitForeground)
- return primaryTextColor();
- return QColor::fromRgba(primaryTextColorDark);
-}
-
-QColor QQuickMaterialStyle::secondaryTextColor() const
-{
- return QColor::fromRgba(m_theme == Light ? secondaryTextColorLight : secondaryTextColorDark);
-}
-
-QColor QQuickMaterialStyle::hintTextColor() const
-{
- return QColor::fromRgba(m_theme == Light ? hintTextColorLight : hintTextColorDark);
-}
-
-QColor QQuickMaterialStyle::textSelectionColor() const
-{
- QColor color = accentColor();
- color.setAlphaF(0.4);
- return color;
-}
-
-QColor QQuickMaterialStyle::dropShadowColor() const
-{
- return QColor::fromRgba(0x40000000);
-}
-
-QColor QQuickMaterialStyle::dividerColor() const
-{
- return QColor::fromRgba(m_theme == Light ? dividerColorLight : dividerColorDark);
-}
-
-QColor QQuickMaterialStyle::iconColor() const
-{
- return QColor::fromRgba(m_theme == Light ? iconColorLight : iconColorDark);
-}
-
-QColor QQuickMaterialStyle::iconDisabledColor() const
-{
- return QColor::fromRgba(m_theme == Light ? iconDisabledColorLight : iconDisabledColorDark);
-}
-
-QColor QQuickMaterialStyle::buttonColor(bool highlighted) const
-{
- Shade shade = themeShade();
-
- QColor color = Qt::transparent;
-
- if (m_explicitBackground) {
- color = backgroundColor(shade);
- } else if (highlighted) {
- color = accentColor(shade);
- } else if (elevation() > 0) {
- color = QColor::fromRgba(m_theme == Light ? raisedButtonColorLight
- : raisedButtonColorDark);
- }
-
- return color;
-}
-
-QColor QQuickMaterialStyle::buttonColor() const
-{
- return buttonColor(false);
-}
-
-QColor QQuickMaterialStyle::buttonDisabledColor() const
-{
- if (elevation() > 0) {
- return QColor::fromRgba(m_theme == Light ? raisedButtonDisabledColorLight
- : raisedButtonDisabledColorDark);
- } else {
- return Qt::transparent;
- }
-}
-
-QColor QQuickMaterialStyle::highlightedButtonColor() const
-{
- return buttonColor(true);
-}
-
-QColor QQuickMaterialStyle::frameColor() const
-{
- return QColor::fromRgba(m_theme == Light ? frameColorLight : frameColorDark);
-}
-
-QColor QQuickMaterialStyle::rippleColor() const
-{
- return QColor::fromRgba(m_theme == Light ? rippleColorLight : rippleColorDark);
-}
-
-QColor QQuickMaterialStyle::highlightedRippleColor() const
-{
- QColor pressColor = accentColor();
- pressColor.setAlpha(m_theme == Light ? 30 : 50);
- return pressColor;
-}
-
-QColor QQuickMaterialStyle::switchUncheckedTrackColor() const
-{
- return QColor::fromRgba(m_theme == Light ? switchUncheckedTrackColorLight : switchUncheckedTrackColorDark);
-}
-
-QColor QQuickMaterialStyle::switchCheckedTrackColor() const
-{
- QColor trackColor(accentColor());
- trackColor.setAlphaF(0.5);
- return trackColor;
-}
-
-QColor QQuickMaterialStyle::switchUncheckedHandleColor() const
-{
- return m_theme == Light ? color(Grey, Shade50) : color(Grey, Shade400);
-}
-
-QColor QQuickMaterialStyle::switchCheckedHandleColor() const
-{
- return m_theme == Light ? accentColor() : shade(accentColor(), Shade200);
-}
-
-QColor QQuickMaterialStyle::switchDisabledTrackColor() const
-{
- return QColor::fromRgba(m_theme == Light ? switchDisabledTrackColorLight : switchDisabledTrackColorDark);
-}
-
-QColor QQuickMaterialStyle::switchDisabledHandleColor() const
-{
- return m_theme == Light ? color(Grey, Shade400) : color(Grey, Shade800);
-}
-
-QColor QQuickMaterialStyle::scrollBarColor() const
-{
- return QColor::fromRgba(m_theme == Light ? 0x40000000 : 0x40FFFFFF);
-}
-
-QColor QQuickMaterialStyle::scrollBarHoveredColor() const
-{
- return QColor::fromRgba(m_theme == Light ? 0x60000000 : 0x60FFFFFF);
-}
-
-QColor QQuickMaterialStyle::scrollBarPressedColor() const
-{
- return QColor::fromRgba(m_theme == Light ? 0x80000000 : 0x80FFFFFF);
-}
-
-QColor QQuickMaterialStyle::dialogColor() const
-{
- if (m_hasBackground)
- return backgroundColor();
- return QColor::fromRgba(m_theme == Light ? dialogColorLight : dialogColorDark);
-}
-
-QColor QQuickMaterialStyle::backgroundDimColor() const
-{
- return QColor::fromRgba(m_theme == Light ? 0x99303030 : 0x99fafafa);
-}
-
-QColor QQuickMaterialStyle::listHighlightColor() const
-{
- return QColor::fromRgba(m_theme == Light ? 0x1e000000 : 0x1effffff);
-}
-
-QColor QQuickMaterialStyle::tooltipColor() const
-{
- if (m_explicitBackground)
- return backgroundColor();
- return color(Grey, Shade700);
-}
-
-QColor QQuickMaterialStyle::toolBarColor() const
-{
- if (m_explicitBackground)
- return backgroundColor();
- return primaryColor();
-}
-
-QColor QQuickMaterialStyle::toolTextColor() const
-{
- if (m_hasForeground || m_customPrimary)
- return primaryTextColor();
-
- switch (m_primary) {
- case Red:
- case Pink:
- case Purple:
- case DeepPurple:
- case Indigo:
- case Blue:
- case Teal:
- case DeepOrange:
- case Brown:
- case BlueGrey:
- return QColor::fromRgba(primaryTextColorDark);
-
- case LightBlue:
- case Cyan:
- case Green:
- case LightGreen:
- case Lime:
- case Yellow:
- case Amber:
- case Orange:
- case Grey:
- return QColor::fromRgba(primaryTextColorLight);
-
- default:
- break;
- }
-
- return primaryTextColor();
-}
-
-QColor QQuickMaterialStyle::spinBoxDisabledIconColor() const
-{
- return QColor::fromRgba(m_theme == Light ? spinBoxDisabledIconColorLight : spinBoxDisabledIconColorDark);
-}
-
-QColor QQuickMaterialStyle::color(QQuickMaterialStyle::Color color, QQuickMaterialStyle::Shade shade) const
-{
- int count = sizeof(colors) / sizeof(colors[0]);
- if (color < 0 || color >= count)
- return QColor();
-
- count = sizeof(colors[0]) / sizeof(colors[0][0]);
- if (shade < 0 || shade >= count)
- return QColor();
-
- return colors[color][shade];
-}
-
-static QColor lighterShade(const QColor &color, qreal amount)
-{
- QColor hsl = color.toHsl();
- hsl.setHslF(hsl.hueF(), hsl.saturationF(), qBound<qreal>(0.0, hsl.lightnessF() + amount, 1.0), color.alphaF());
- return hsl.convertTo(color.spec());
-}
-
-static QColor darkerShade(const QColor &color, qreal amount)
-{
- QColor hsl = color.toHsl();
- hsl.setHslF(hsl.hueF(), hsl.saturationF(), qBound<qreal>(0.0, hsl.lightnessF() - amount, 1.0), color.alphaF());
- return hsl.convertTo(color.spec());
-}
-
-QQuickMaterialStyle::Shade QQuickMaterialStyle::themeShade() const
-{
- return m_theme == Light ? Shade500 : Shade200;
-}
-
-/*
- * The following lightness values originate from the Material Design Color Generator project.
- *
- * The MIT License (MIT)
- *
- * Copyright (c) 2015 mbitson
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */
-
-// Returns the same color, if shade == themeShade()
-QColor QQuickMaterialStyle::shade(const QColor &color, Shade shade) const
-{
- switch (shade) {
- case Shade50:
- return lighterShade(color, m_theme == Light ? 0.52 : 0.26);
- case Shade100:
- return lighterShade(color, m_theme == Light ? 0.37 : 0.11);
- case Shade200:
- return m_theme == Light ? lighterShade(color, 0.26) : color;
- case Shade300:
- return m_theme == Light ? lighterShade(color, 0.12) : darkerShade(color, 0.14);
- case Shade400:
- return m_theme == Light ? lighterShade(color, 0.06) : darkerShade(color, 0.20);
- case Shade500:
- return m_theme == Light ? color : darkerShade(color, 0.26);
- case Shade600:
- return darkerShade(color, m_theme == Light ? 0.06 : 0.32);
- case Shade700:
- return darkerShade(color, m_theme == Light ? 0.12 : 0.38);
- case Shade800:
- return darkerShade(color, m_theme == Light ? 0.18 : 0.44);
- case Shade900:
- return darkerShade(color, m_theme == Light ? 0.24 : 0.50);
- case ShadeA100:
- return lighterShade(color, m_theme == Light ? 0.54 : 0.28);
- case ShadeA200:
- return lighterShade(color, m_theme == Light ? 0.37 : 0.11);
- case ShadeA400:
- return m_theme == Light ? lighterShade(color, 0.06) : darkerShade(color, 0.20);
- case ShadeA700:
- return darkerShade(color, m_theme == Light ? 0.12 : 0.38);
- default:
- Q_UNREACHABLE();
- return QColor();
- }
-}
-
-int QQuickMaterialStyle::touchTarget() const
-{
- // https://material.io/guidelines/components/buttons.html#buttons-style
- return globalVariant == Dense ? 44 : 48;
-}
-
-int QQuickMaterialStyle::buttonHeight() const
-{
- // https://material.io/guidelines/components/buttons.html#buttons-style
- return globalVariant == Dense ? 32 : 36;
-}
-
-int QQuickMaterialStyle::delegateHeight() const
-{
- // https://material.io/guidelines/components/lists.html#lists-specs
- return globalVariant == Dense ? 40 : 48;
-}
-
-int QQuickMaterialStyle::dialogButtonBoxHeight() const
-{
- return globalVariant == Dense ? 48 : 52;
-}
-
-int QQuickMaterialStyle::frameVerticalPadding() const
-{
- return globalVariant == Dense ? 8 : 12;
-}
-
-int QQuickMaterialStyle::menuItemHeight() const
-{
- // https://material.io/guidelines/components/menus.html#menus-simple-menus
- return globalVariant == Dense ? 32 : 48;
-}
-
-int QQuickMaterialStyle::menuItemVerticalPadding() const
-{
- return globalVariant == Dense ? 8 : 12;
-}
-
-int QQuickMaterialStyle::switchDelegateVerticalPadding() const
-{
- // SwitchDelegate's indicator is much larger than the others due to the shadow,
- // so we must reduce its padding to ensure its implicitHeight is 40 when dense.
- return globalVariant == Dense ? 4 : 8;
-}
-
-int QQuickMaterialStyle::tooltipHeight() const
-{
- // https://material.io/guidelines/components/tooltips.html
- return globalVariant == Dense ? 22 : 32;
-}
-
-QQuickMaterialStyle::Variant QQuickMaterialStyle::variant()
-{
- return globalVariant;
-}
-
-template <typename Enum>
-static Enum toEnumValue(const QByteArray &value, bool *ok)
-{
- QMetaEnum enumeration = QMetaEnum::fromType<Enum>();
- return static_cast<Enum>(enumeration.keyToValue(value, ok));
-}
-
-static QByteArray resolveSetting(const QByteArray &env, const QSharedPointer<QSettings> &settings, const QString &name)
-{
- QByteArray value = qgetenv(env);
-#if QT_CONFIG(settings)
- if (value.isNull() && !settings.isNull())
- value = settings->value(name).toByteArray();
-#endif
- return value;
-}
-
-void QQuickMaterialStyle::initGlobals()
-{
- QSharedPointer<QSettings> settings = QQuickStylePrivate::settings(QStringLiteral("Material"));
-
- bool ok = false;
- QByteArray themeValue = resolveSetting("QT_QUICK_CONTROLS_MATERIAL_THEME", settings, QStringLiteral("Theme"));
- Theme themeEnum = toEnumValue<Theme>(themeValue, &ok);
- if (ok)
- globalTheme = effectiveTheme(themeEnum);
- else if (!themeValue.isEmpty())
- qWarning().nospace().noquote() << "Material: unknown theme value: " << themeValue;
-
- QByteArray variantValue = resolveSetting("QT_QUICK_CONTROLS_MATERIAL_VARIANT", settings, QStringLiteral("Variant"));
- Variant variantEnum = toEnumValue<Variant>(variantValue, &ok);
- if (ok)
- globalVariant = variantEnum;
- else if (!variantValue.isEmpty())
- qWarning().nospace().noquote() << "Material: unknown variant value: " << variantValue;
-
- QByteArray primaryValue = resolveSetting("QT_QUICK_CONTROLS_MATERIAL_PRIMARY", settings, QStringLiteral("Primary"));
- Color primaryEnum = toEnumValue<Color>(primaryValue, &ok);
- if (ok) {
- globalPrimaryCustom = false;
- globalPrimary = primaryEnum;
- } else {
- QColor color(primaryValue.constData());
- if (color.isValid()) {
- globalPrimaryCustom = true;
- globalPrimary = color.rgba();
- } else if (!primaryValue.isEmpty()) {
- qWarning().nospace().noquote() << "Material: unknown primary value: " << primaryValue;
- }
- }
-
- QByteArray accentValue = resolveSetting("QT_QUICK_CONTROLS_MATERIAL_ACCENT", settings, QStringLiteral("Accent"));
- Color accentEnum = toEnumValue<Color>(accentValue, &ok);
- if (ok) {
- globalAccentCustom = false;
- globalAccent = accentEnum;
- } else if (!accentValue.isEmpty()) {
- QColor color(accentValue.constData());
- if (color.isValid()) {
- globalAccentCustom = true;
- globalAccent = color.rgba();
- } else {
- qWarning().nospace().noquote() << "Material: unknown accent value: " << accentValue;
- }
- }
-
- QByteArray foregroundValue = resolveSetting("QT_QUICK_CONTROLS_MATERIAL_FOREGROUND", settings, QStringLiteral("Foreground"));
- Color foregroundEnum = toEnumValue<Color>(foregroundValue, &ok);
- if (ok) {
- globalForegroundCustom = false;
- globalForeground = foregroundEnum;
- hasGlobalForeground = true;
- } else if (!foregroundValue.isEmpty()) {
- QColor color(foregroundValue.constData());
- if (color.isValid()) {
- globalForegroundCustom = true;
- globalForeground = color.rgba();
- hasGlobalForeground = true;
- } else {
- qWarning().nospace().noquote() << "Material: unknown foreground value: " << foregroundValue;
- }
- }
-
- QByteArray backgroundValue = resolveSetting("QT_QUICK_CONTROLS_MATERIAL_BACKGROUND", settings, QStringLiteral("Background"));
- Color backgroundEnum = toEnumValue<Color>(backgroundValue, &ok);
- if (ok) {
- globalBackgroundCustom = false;
- globalBackground = backgroundEnum;
- hasGlobalBackground = true;
- } else if (!backgroundValue.isEmpty()) {
- QColor color(backgroundValue.constData());
- if (color.isValid()) {
- globalBackgroundCustom = true;
- globalBackground = color.rgba();
- hasGlobalBackground = true;
- } else {
- qWarning().nospace().noquote() << "Material: unknown background value: " << backgroundValue;
- }
- }
-}
-
-void QQuickMaterialStyle::attachedParentChange(QQuickAttachedObject *newParent, QQuickAttachedObject *oldParent)
-{
- Q_UNUSED(oldParent);
- QQuickMaterialStyle *material = qobject_cast<QQuickMaterialStyle *>(newParent);
- if (material) {
- inheritPrimary(material->m_primary, material->m_customPrimary);
- inheritAccent(material->m_accent, material->m_customAccent);
- inheritForeground(material->m_foreground, material->m_customForeground, material->m_hasForeground);
- inheritBackground(material->m_background, material->m_customBackground, material->m_hasBackground);
- inheritTheme(material->theme());
- }
-}
-
-bool QQuickMaterialStyle::variantToRgba(const QVariant &var, const char *name, QRgb *rgba, bool *custom) const
-{
- *custom = false;
- if (var.type() == QVariant::Int) {
- int val = var.toInt();
- if (val > BlueGrey) {
- qmlWarning(parent()) << "unknown Material." << name << " value: " << val;
- return false;
- }
- *rgba = val;
- } else {
- int val = QMetaEnum::fromType<Color>().keyToValue(var.toByteArray());
- if (val != -1) {
- *rgba = val;
- } else {
- QColor color(var.toString());
- if (!color.isValid()) {
- qmlWarning(parent()) << "unknown Material." << name << " value: " << var.toString();
- return false;
- }
- *custom = true;
- *rgba = color.rgba();
- }
- }
- return true;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/material/qquickmaterialstyle_p.h b/src/imports/controls/material/qquickmaterialstyle_p.h
deleted file mode 100644
index 4b0f7b31..00000000
--- a/src/imports/controls/material/qquickmaterialstyle_p.h
+++ /dev/null
@@ -1,313 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMATERIALSTYLE_P_H
-#define QQUICKMATERIALSTYLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuickControls2/private/qquickattachedobject_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMaterialStyle : public QQuickAttachedObject
-{
- Q_OBJECT
- Q_PROPERTY(Theme theme READ theme WRITE setTheme RESET resetTheme NOTIFY themeChanged FINAL)
- Q_PROPERTY(QVariant primary READ primary WRITE setPrimary RESET resetPrimary NOTIFY primaryChanged FINAL)
- Q_PROPERTY(QVariant accent READ accent WRITE setAccent RESET resetAccent NOTIFY accentChanged FINAL)
- Q_PROPERTY(QVariant foreground READ foreground WRITE setForeground RESET resetForeground NOTIFY foregroundChanged FINAL)
- Q_PROPERTY(QVariant background READ background WRITE setBackground RESET resetBackground NOTIFY backgroundChanged FINAL)
- Q_PROPERTY(int elevation READ elevation WRITE setElevation RESET resetElevation NOTIFY elevationChanged FINAL)
-
- Q_PROPERTY(QColor primaryColor READ primaryColor NOTIFY primaryChanged FINAL) // TODO: remove?
- Q_PROPERTY(QColor accentColor READ accentColor NOTIFY accentChanged FINAL) // TODO: remove?
- Q_PROPERTY(QColor backgroundColor READ backgroundColor NOTIFY backgroundChanged FINAL)
- Q_PROPERTY(QColor primaryTextColor READ primaryTextColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor primaryHighlightedTextColor READ primaryHighlightedTextColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor secondaryTextColor READ secondaryTextColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor hintTextColor READ hintTextColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor textSelectionColor READ textSelectionColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor dropShadowColor READ dropShadowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor dividerColor READ dividerColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor iconColor READ iconColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor iconDisabledColor READ iconDisabledColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor buttonColor READ buttonColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor buttonDisabledColor READ buttonDisabledColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor highlightedButtonColor READ highlightedButtonColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor frameColor READ frameColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor rippleColor READ rippleColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor highlightedRippleColor READ highlightedRippleColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor switchUncheckedTrackColor READ switchUncheckedTrackColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor switchCheckedTrackColor READ switchCheckedTrackColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor switchUncheckedHandleColor READ switchUncheckedHandleColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor switchCheckedHandleColor READ switchCheckedHandleColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor switchDisabledTrackColor READ switchDisabledTrackColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor switchDisabledHandleColor READ switchDisabledHandleColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor scrollBarColor READ scrollBarColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor scrollBarHoveredColor READ scrollBarHoveredColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor scrollBarPressedColor READ scrollBarPressedColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor dialogColor READ dialogColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor backgroundDimColor READ backgroundDimColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor listHighlightColor READ listHighlightColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor tooltipColor READ tooltipColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor toolBarColor READ toolBarColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor toolTextColor READ toolTextColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor spinBoxDisabledIconColor READ spinBoxDisabledIconColor NOTIFY paletteChanged FINAL)
-
- Q_PROPERTY(int touchTarget READ touchTarget CONSTANT FINAL)
- Q_PROPERTY(int buttonHeight READ buttonHeight CONSTANT FINAL)
- Q_PROPERTY(int delegateHeight READ delegateHeight CONSTANT FINAL)
- Q_PROPERTY(int dialogButtonBoxHeight READ dialogButtonBoxHeight CONSTANT FINAL)
- Q_PROPERTY(int frameVerticalPadding READ frameVerticalPadding CONSTANT FINAL)
- Q_PROPERTY(int menuItemHeight READ menuItemHeight CONSTANT FINAL)
- Q_PROPERTY(int menuItemVerticalPadding READ menuItemVerticalPadding CONSTANT FINAL)
- Q_PROPERTY(int switchDelegateVerticalPadding READ switchDelegateVerticalPadding CONSTANT FINAL)
- Q_PROPERTY(int tooltipHeight READ tooltipHeight CONSTANT FINAL)
-
-public:
- enum Theme {
- Light,
- Dark,
- System
- };
-
- enum Variant {
- Normal,
- Dense
- };
-
- enum Color {
- Red,
- Pink,
- Purple,
- DeepPurple,
- Indigo,
- Blue,
- LightBlue,
- Cyan,
- Teal,
- Green,
- LightGreen,
- Lime,
- Yellow,
- Amber,
- Orange,
- DeepOrange,
- Brown,
- Grey,
- BlueGrey
- };
-
- enum Shade {
- Shade50,
- Shade100,
- Shade200,
- Shade300,
- Shade400,
- Shade500,
- Shade600,
- Shade700,
- Shade800,
- Shade900,
- ShadeA100,
- ShadeA200,
- ShadeA400,
- ShadeA700,
- };
-
- Q_ENUM(Theme)
- Q_ENUM(Variant)
- Q_ENUM(Color)
- Q_ENUM(Shade)
-
- explicit QQuickMaterialStyle(QObject *parent = nullptr);
-
- static QQuickMaterialStyle *qmlAttachedProperties(QObject *object);
-
- Theme theme() const;
- void setTheme(Theme theme);
- void inheritTheme(Theme theme);
- void propagateTheme();
- void resetTheme();
-
- QVariant primary() const;
- void setPrimary(const QVariant &accent);
- void inheritPrimary(uint primary, bool custom);
- void propagatePrimary();
- void resetPrimary();
-
- QVariant accent() const;
- void setAccent(const QVariant &accent);
- void inheritAccent(uint accent, bool custom);
- void propagateAccent();
- void resetAccent();
-
- QVariant foreground() const;
- void setForeground(const QVariant &foreground);
- void inheritForeground(uint foreground, bool custom, bool has);
- void propagateForeground();
- void resetForeground();
-
- QVariant background() const;
- void setBackground(const QVariant &background);
- void inheritBackground(uint background, bool custom, bool has);
- void propagateBackground();
- void resetBackground();
-
- int elevation() const;
- void setElevation(int elevation);
- void resetElevation();
-
- QColor primaryColor() const;
- QColor accentColor() const;
- QColor backgroundColor() const;
- QColor primaryTextColor() const;
- QColor primaryHighlightedTextColor() const;
- QColor secondaryTextColor() const;
- QColor hintTextColor() const;
- QColor textSelectionColor() const;
- QColor dropShadowColor() const;
- QColor dividerColor() const;
- QColor iconColor() const;
- QColor iconDisabledColor() const;
- QColor buttonColor() const;
- QColor buttonDisabledColor() const;
- QColor highlightedButtonColor() const;
- QColor highlightedButtonDisabledColor() const;
- QColor frameColor() const;
- QColor rippleColor() const;
- QColor highlightedRippleColor() const;
- QColor switchUncheckedTrackColor() const;
- QColor switchCheckedTrackColor() const;
- QColor switchUncheckedHandleColor() const;
- QColor switchCheckedHandleColor() const;
- QColor switchDisabledTrackColor() const;
- QColor switchDisabledHandleColor() const;
- QColor scrollBarColor() const;
- QColor scrollBarHoveredColor() const;
- QColor scrollBarPressedColor() const;
- QColor dialogColor() const;
- QColor backgroundDimColor() const;
- QColor listHighlightColor() const;
- QColor tooltipColor() const;
- QColor toolBarColor() const;
- QColor toolTextColor() const;
- QColor spinBoxDisabledIconColor() const;
-
- Q_INVOKABLE QColor color(Color color, Shade shade = Shade500) const;
- Q_INVOKABLE QColor shade(const QColor &color, Shade shade) const;
-
- int touchTarget() const;
- int buttonHeight() const;
- int delegateHeight() const;
- int dialogButtonBoxHeight() const;
- int frameVerticalPadding() const;
- int menuItemHeight() const;
- int menuItemVerticalPadding() const;
- int switchDelegateVerticalPadding() const;
- int tooltipHeight() const;
-
- static void initGlobals();
-
- static Variant variant();
-
-Q_SIGNALS:
- void themeChanged();
- void primaryChanged();
- void accentChanged();
- void foregroundChanged();
- void backgroundChanged();
- void elevationChanged();
-
- void paletteChanged();
-
-protected:
- void attachedParentChange(QQuickAttachedObject *newParent, QQuickAttachedObject *oldParent) override;
-
-private:
- void init();
- bool variantToRgba(const QVariant &var, const char *name, QRgb *rgba, bool *custom) const;
-
- QColor backgroundColor(Shade shade) const;
- QColor accentColor(Shade shade) const;
- QColor buttonColor(bool highlighted) const;
- Shade themeShade() const;
-
- // These reflect whether a color value was explicitly set on the specific
- // item that this attached style object represents.
- bool m_explicitTheme = false;
- bool m_explicitPrimary = false;
- bool m_explicitAccent = false;
- bool m_explicitForeground = false;
- bool m_explicitBackground = false;
- // These reflect whether the color value that was either inherited or
- // explicitly set is in the form that QColor expects, rather than one of
- // our pre-defined color enum values.
- bool m_customPrimary = false;
- bool m_customAccent = false;
- bool m_customForeground = false;
- bool m_customBackground = false;
- // These will be true when this item has an explicit or inherited foreground/background
- // color, or these colors were declared globally via settings (e.g. conf or env vars).
- // Some color properties of the style will return different values depending on whether
- // or not these are set.
- bool m_hasForeground = false;
- bool m_hasBackground = false;
- // The actual values for this item, whether explicit, inherited or globally set.
- Theme m_theme = Light;
- uint m_primary = 0;
- uint m_accent = 0;
- uint m_foreground = 0;
- uint m_background = 0;
- int m_elevation = 0;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPEINFO(QQuickMaterialStyle, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKMATERIALSTYLE_P_H
diff --git a/src/imports/controls/material/qquickmaterialtheme.cpp b/src/imports/controls/material/qquickmaterialtheme.cpp
deleted file mode 100644
index f42c0a03..00000000
--- a/src/imports/controls/material/qquickmaterialtheme.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickmaterialtheme_p.h"
-#include "qquickmaterialstyle_p.h"
-
-#include <QtGui/qpa/qplatformdialoghelper.h>
-#include <QtGui/qfont.h>
-#include <QtGui/qfontinfo.h>
-#include <QtQuickTemplates2/private/qquicktheme_p.h>
-
-QT_BEGIN_NAMESPACE
-
-void QQuickMaterialTheme::initialize(QQuickTheme *theme)
-{
- QFont systemFont;
- QFont buttonFont;
- QFont toolTipFont;
- QFont itemViewFont;
- QFont listViewFont;
- QFont menuItemFont;
- QFont editorFont;
-
- QFont font;
- font.setFamily(QLatin1String("Roboto"));
- QString family = QFontInfo(font).family();
-
- if (family != QLatin1String("Roboto")) {
- font.setFamily(QLatin1String("Noto"));
- family = QFontInfo(font).family();
- }
-
- if (family == QLatin1String("Roboto") || family == QLatin1String("Noto")) {
- systemFont.setFamily(family);
- buttonFont.setFamily(family);
- toolTipFont.setFamily(family);
- itemViewFont.setFamily(family);
- listViewFont.setFamily(family);
- menuItemFont.setFamily(family);
- editorFont.setFamily(family);
- }
-
- const bool dense = QQuickMaterialStyle::variant() == QQuickMaterialStyle::Dense;
- systemFont.setPixelSize(dense ? 13 : 14);
- theme->setFont(QQuickTheme::System, systemFont);
-
- // https://material.io/guidelines/components/buttons.html#buttons-style
- buttonFont.setPixelSize(dense ? 13 : 14);
- buttonFont.setCapitalization(QFont::AllUppercase);
- buttonFont.setWeight(QFont::Medium);
- theme->setFont(QQuickTheme::Button, buttonFont);
- theme->setFont(QQuickTheme::TabBar, buttonFont);
- theme->setFont(QQuickTheme::ToolBar, buttonFont);
-
- // https://material.io/guidelines/components/tooltips.html
- toolTipFont.setPixelSize(dense ? 10 : 14);
- toolTipFont.setWeight(QFont::Medium);
- theme->setFont(QQuickTheme::ToolTip, toolTipFont);
-
- itemViewFont.setPixelSize(dense ? 13 : 14);
- itemViewFont.setWeight(QFont::Medium);
- theme->setFont(QQuickTheme::ItemView, itemViewFont);
-
- // https://material.io/guidelines/components/lists.html#lists-specs
- listViewFont.setPixelSize(dense ? 13 : 16);
- theme->setFont(QQuickTheme::ListView, listViewFont);
-
- menuItemFont.setPixelSize(dense ? 13 : 16);
- theme->setFont(QQuickTheme::Menu, menuItemFont);
- theme->setFont(QQuickTheme::MenuBar, menuItemFont);
- theme->setFont(QQuickTheme::ComboBox, menuItemFont);
-
- editorFont.setPixelSize(dense ? 13 : 16);
- theme->setFont(QQuickTheme::TextArea, editorFont);
- theme->setFont(QQuickTheme::TextField, editorFont);
- theme->setFont(QQuickTheme::SpinBox, editorFont);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/material/qquickmaterialtheme_p.h b/src/imports/controls/material/qquickmaterialtheme_p.h
deleted file mode 100644
index 9a1362b8..00000000
--- a/src/imports/controls/material/qquickmaterialtheme_p.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMATERIALTHEME_P_H
-#define QQUICKMATERIALTHEME_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qglobal.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTheme;
-
-class QQuickMaterialTheme
-{
-public:
- static void initialize(QQuickTheme *theme);
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKMATERIALTHEME_P_H
diff --git a/src/imports/controls/material/qt_attribution.json b/src/imports/controls/material/qt_attribution.json
deleted file mode 100644
index 85fdadf9..00000000
--- a/src/imports/controls/material/qt_attribution.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "Id": "shadow_angular_material",
- "Name": "Shadow values from Angular Material",
- "QDocModule": "qtquickcontrols",
- "QtUsage": "Used in the Material Style of Qt Quick Controls 2.",
- "Files": "ElevationEffect.qml",
- "Description": "Shadow values for the elevation effect.",
- "Homepage": "https://angularjs.org/",
- "License": "MIT License",
- "LicenseId": "MIT",
- "LicenseFile": "LICENSE_ANGULARJS.txt",
- "Copyright": "Copyright (c) 2014-2016 Google, Inc"
-}
diff --git a/src/imports/controls/material/qtquickcontrols2materialstyleplugin.cpp b/src/imports/controls/material/qtquickcontrols2materialstyleplugin.cpp
deleted file mode 100644
index d8cc04dd..00000000
--- a/src/imports/controls/material/qtquickcontrols2materialstyleplugin.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 <QtQuickControls2/private/qquickstyleplugin_p.h>
-
-#include "qquickmaterialstyle_p.h"
-#include "qquickmaterialtheme_p.h"
-#include "qquickmaterialbusyindicator_p.h"
-#include "qquickmaterialprogressbar_p.h"
-#include "qquickmaterialripple_p.h"
-
-#include <QtQuickControls2/private/qquickstyleselector_p.h>
-#include <QtQuickControls2/private/qquickpaddedrectangle_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QtQuickControls2MaterialStylePlugin : public QQuickStylePlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtQuickControls2MaterialStylePlugin(QObject *parent = nullptr);
-
- void registerTypes(const char *uri) override;
-
- QString name() const override;
- void initializeTheme(QQuickTheme *theme) override;
-};
-
-QtQuickControls2MaterialStylePlugin::QtQuickControls2MaterialStylePlugin(QObject *parent) : QQuickStylePlugin(parent)
-{
- QQuickMaterialStyle::initGlobals();
-}
-
-void QtQuickControls2MaterialStylePlugin::registerTypes(const char *uri)
-{
- qmlRegisterModule(uri, 2, 15); // Qt 5.12->2.12, 5.13->2.13...
- qmlRegisterUncreatableType<QQuickMaterialStyle>(uri, 2, 0, "Material", tr("Material is an attached property"));
-
- QByteArray import = QByteArray(uri) + ".impl";
- qmlRegisterModule(import, 2, 15); // Qt 5.12->2.12, 5.13->2.13...
-
- qmlRegisterType<QQuickMaterialBusyIndicator>(import, 2, 0, "BusyIndicatorImpl");
- qmlRegisterType<QQuickMaterialProgressBar>(import, 2, 0, "ProgressBarImpl");
- qmlRegisterType<QQuickMaterialRipple>(import, 2, 0, "Ripple");
- qmlRegisterType(resolvedUrl(QStringLiteral("BoxShadow.qml")), import, 2, 0, "BoxShadow");
- qmlRegisterType(resolvedUrl(QStringLiteral("CheckIndicator.qml")), import, 2, 0, "CheckIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("CursorDelegate.qml")), import, 2, 0, "CursorDelegate");
- qmlRegisterType(resolvedUrl(QStringLiteral("ElevationEffect.qml")), import, 2, 0, "ElevationEffect");
- qmlRegisterType(resolvedUrl(QStringLiteral("RadioIndicator.qml")), import, 2, 0, "RadioIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("RectangularGlow.qml")), import, 2, 0, "RectangularGlow");
- qmlRegisterType(resolvedUrl(QStringLiteral("SliderHandle.qml")), import, 2, 0, "SliderHandle");
- qmlRegisterType(resolvedUrl(QStringLiteral("SwitchIndicator.qml")), import, 2, 0, "SwitchIndicator");
-}
-
-QString QtQuickControls2MaterialStylePlugin::name() const
-{
- return QStringLiteral("Material");
-}
-
-void QtQuickControls2MaterialStylePlugin::initializeTheme(QQuickTheme *theme)
-{
- QQuickMaterialTheme::initialize(theme);
-}
-
-QT_END_NAMESPACE
-
-#include "qtquickcontrols2materialstyleplugin.moc"
diff --git a/src/imports/controls/material/qtquickcontrols2materialstyleplugin.qrc b/src/imports/controls/material/qtquickcontrols2materialstyleplugin.qrc
deleted file mode 100644
index 71f9563b..00000000
--- a/src/imports/controls/material/qtquickcontrols2materialstyleplugin.qrc
+++ /dev/null
@@ -1,20 +0,0 @@
-<RCC>
- <qresource prefix="/qt-project.org/imports/QtQuick/Controls.2/Material">
- <file>images/arrow-indicator.png</file>
- <file>images/arrow-indicator@2x.png</file>
- <file>images/arrow-indicator@3x.png</file>
- <file>images/arrow-indicator@4x.png</file>
- <file>images/check.png</file>
- <file>images/check@2x.png</file>
- <file>images/check@3x.png</file>
- <file>images/check@4x.png</file>
- <file>images/drop-indicator.png</file>
- <file>images/drop-indicator@2x.png</file>
- <file>images/drop-indicator@3x.png</file>
- <file>images/drop-indicator@4x.png</file>
- <file>shaders/RectangularGlow.frag</file>
- <file>shaders/+glslcore/RectangularGlow.frag</file>
- <file>shaders/+hlsl/RectangularGlow.frag</file>
- <file>shaders/+qsb/RectangularGlow.frag</file>
- </qresource>
-</RCC>
diff --git a/src/imports/controls/material/shaders/+glslcore/RectangularGlow.frag b/src/imports/controls/material/shaders/+glslcore/RectangularGlow.frag
deleted file mode 100644
index 432d86b5..00000000
--- a/src/imports/controls/material/shaders/+glslcore/RectangularGlow.frag
+++ /dev/null
@@ -1,25 +0,0 @@
-#version 150
-
-uniform float qt_Opacity;
-uniform float relativeSizeX;
-uniform float relativeSizeY;
-uniform float spread;
-uniform vec4 color;
-
-in vec2 qt_TexCoord0;
-out vec4 fragColor;
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- float alpha =
- smoothstep(0.0, relativeSizeX, 0.5 - abs(0.5 - qt_TexCoord0.x)) *
- smoothstep(0.0, relativeSizeY, 0.5 - abs(0.5 - qt_TexCoord0.y));
-
- float spreadMultiplier = linearstep(spread, 1.0 - spread, alpha);
- fragColor = color * qt_Opacity * spreadMultiplier * spreadMultiplier;
-}
diff --git a/src/imports/controls/material/shaders/+hlsl/RectangularGlow.frag b/src/imports/controls/material/shaders/+hlsl/RectangularGlow.frag
deleted file mode 100644
index 69d9f852..00000000
--- a/src/imports/controls/material/shaders/+hlsl/RectangularGlow.frag
+++ /dev/null
@@ -1,21 +0,0 @@
-cbuffer ConstantBuffer : register(b0)
-{
- float4x4 qt_Matrix;
- float qt_Opacity;
- float relativeSizeX;
- float relativeSizeY;
- float spread;
- float4 color;
-}
-
-float linearstep(float e0, float e1, float x) { return clamp((x - e0) / (e1 - e0), 0.0, 1.0); }
-
-float4 main(float4 position : SV_POSITION, float2 coord : TEXCOORD0) : SV_TARGET
-{
- float alpha =
- smoothstep(0.0, relativeSizeX, 0.5 - abs(0.5 - coord.x)) *
- smoothstep(0.0, relativeSizeY, 0.5 - abs(0.5 - coord.y));
-
- float spreadMultiplier = linearstep(spread, 1.0 - spread, alpha);
- return color * qt_Opacity * spreadMultiplier * spreadMultiplier;
-}
diff --git a/src/imports/controls/material/shaders/+qsb/RectangularGlow.frag b/src/imports/controls/material/shaders/+qsb/RectangularGlow.frag
deleted file mode 100644
index a805b134..00000000
--- a/src/imports/controls/material/shaders/+qsb/RectangularGlow.frag
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/material/shaders/RectangularGlow.frag b/src/imports/controls/material/shaders/RectangularGlow.frag
deleted file mode 100644
index 40bab580..00000000
--- a/src/imports/controls/material/shaders/RectangularGlow.frag
+++ /dev/null
@@ -1,19 +0,0 @@
-uniform highp float qt_Opacity;
-uniform mediump float relativeSizeX;
-uniform mediump float relativeSizeY;
-uniform mediump float spread;
-uniform lowp vec4 color;
-varying highp vec2 qt_TexCoord0;
-
-highp float linearstep(highp float e0, highp float e1, highp float x) {
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main() {
- lowp float alpha =
- smoothstep(0.0, relativeSizeX, 0.5 - abs(0.5 - qt_TexCoord0.x)) *
- smoothstep(0.0, relativeSizeY, 0.5 - abs(0.5 - qt_TexCoord0.y));
-
- highp float spreadMultiplier = linearstep(spread, 1.0 - spread, alpha);
- gl_FragColor = color * qt_Opacity * spreadMultiplier * spreadMultiplier;
-}
diff --git a/src/imports/controls/material/shaders/RectangularGlow_rhi.frag b/src/imports/controls/material/shaders/RectangularGlow_rhi.frag
deleted file mode 100644
index 3e7d2dfe..00000000
--- a/src/imports/controls/material/shaders/RectangularGlow_rhi.frag
+++ /dev/null
@@ -1,28 +0,0 @@
-#version 440
-
-layout(location = 0) in vec2 qt_TexCoord0;
-layout(location = 0) out vec4 fragColor;
-
-layout(std140, binding = 0) uniform buf {
- mat4 qt_Matrix;
- float qt_Opacity;
- float relativeSizeX;
- float relativeSizeY;
- float spread;
- vec4 color;
-} ubuf;
-
-float linearstep(float e0, float e1, float x)
-{
- return clamp((x - e0) / (e1 - e0), 0.0, 1.0);
-}
-
-void main()
-{
- float alpha =
- smoothstep(0.0, ubuf.relativeSizeX, 0.5 - abs(0.5 - qt_TexCoord0.x)) *
- smoothstep(0.0, ubuf.relativeSizeY, 0.5 - abs(0.5 - qt_TexCoord0.y));
-
- float spreadMultiplier = linearstep(ubuf.spread, 1.0 - ubuf.spread, alpha);
- fragColor = ubuf.color * ubuf.qt_Opacity * spreadMultiplier * spreadMultiplier;
-}
diff --git a/src/imports/controls/plugins.qmltypes b/src/imports/controls/plugins.qmltypes
deleted file mode 100644
index 9b4610f0..00000000
--- a/src/imports/controls/plugins.qmltypes
+++ /dev/null
@@ -1,660 +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 -dependencies dependencies.json QtQuick.Controls 2.13'
-
-Module {
- dependencies: [
- "QtQuick 2.11",
- "QtQuick.Templates 2.5",
- "QtQuick.Window 2.2"
- ]
- Component {
- name: "QQuickCheckLabel"
- defaultProperty: "data"
- prototype: "QQuickText"
- exports: ["QtQuick.Controls.impl/CheckLabel 2.3"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickClippedText"
- defaultProperty: "data"
- prototype: "QQuickText"
- exports: ["QtQuick.Controls.impl/ClippedText 2.2"]
- exportMetaObjectRevisions: [0]
- Property { name: "clipX"; type: "double" }
- Property { name: "clipY"; type: "double" }
- Property { name: "clipWidth"; type: "double" }
- Property { name: "clipHeight"; type: "double" }
- }
- Component {
- name: "QQuickColor"
- prototype: "QObject"
- exports: ["QtQuick.Controls.impl/Color 2.3"]
- isCreatable: false
- isSingleton: true
- exportMetaObjectRevisions: [0]
- Method {
- name: "transparent"
- type: "QColor"
- Parameter { name: "color"; type: "QColor" }
- Parameter { name: "opacity"; type: "double" }
- }
- Method {
- name: "blend"
- type: "QColor"
- Parameter { name: "a"; type: "QColor" }
- Parameter { name: "b"; type: "QColor" }
- Parameter { name: "factor"; type: "double" }
- }
- }
- Component {
- name: "QQuickColorImage"
- defaultProperty: "data"
- prototype: "QQuickImage"
- exports: ["QtQuick.Controls.impl/ColorImage 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "color"; type: "QColor" }
- Property { name: "defaultColor"; type: "QColor" }
- }
- Component {
- name: "QQuickDefaultBusyIndicator"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.impl/BusyIndicatorImpl 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "pen"; type: "QColor" }
- Property { name: "fill"; type: "QColor" }
- Property { name: "running"; type: "bool" }
- }
- Component {
- name: "QQuickDefaultDial"
- defaultProperty: "data"
- prototype: "QQuickPaintedItem"
- exports: ["QtQuick.Controls.impl/DialImpl 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "progress"; type: "double" }
- Property { name: "color"; type: "QColor" }
- }
- Component {
- name: "QQuickDefaultProgressBar"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.impl/ProgressBarImpl 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "indeterminate"; type: "bool" }
- Property { name: "progress"; type: "double" }
- Property { name: "color"; type: "QColor" }
- }
- Component {
- name: "QQuickDefaultStyle"
- prototype: "QObject"
- exports: ["QtQuick.Controls.impl/Default 2.1"]
- isCreatable: false
- isSingleton: true
- exportMetaObjectRevisions: [0]
- Property { name: "backgroundColor"; type: "QColor"; isReadonly: true }
- Property { name: "overlayModalColor"; type: "QColor"; isReadonly: true }
- Property { name: "overlayDimColor"; type: "QColor"; isReadonly: true }
- Property { name: "textColor"; type: "QColor"; isReadonly: true }
- Property { name: "textDarkColor"; type: "QColor"; isReadonly: true }
- Property { name: "textLightColor"; type: "QColor"; isReadonly: true }
- Property { name: "textLinkColor"; type: "QColor"; isReadonly: true }
- Property { name: "textSelectionColor"; type: "QColor"; isReadonly: true }
- Property { name: "textDisabledColor"; type: "QColor"; isReadonly: true }
- Property { name: "textDisabledLightColor"; type: "QColor"; isReadonly: true }
- Property { name: "textPlaceholderColor"; type: "QColor"; isReadonly: true }
- Property { name: "focusColor"; type: "QColor"; isReadonly: true }
- Property { name: "focusLightColor"; type: "QColor"; isReadonly: true }
- Property { name: "focusPressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "buttonColor"; type: "QColor"; isReadonly: true }
- Property { name: "buttonPressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "buttonCheckedColor"; type: "QColor"; isReadonly: true }
- Property { name: "buttonCheckedPressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "buttonCheckedFocusColor"; type: "QColor"; isReadonly: true }
- Property { name: "toolButtonColor"; type: "QColor"; isReadonly: true }
- Property { name: "tabButtonColor"; type: "QColor"; isReadonly: true }
- Property { name: "tabButtonPressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "tabButtonCheckedPressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "delegateColor"; type: "QColor"; isReadonly: true }
- Property { name: "delegatePressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "delegateFocusColor"; type: "QColor"; isReadonly: true }
- Property { name: "indicatorPressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "indicatorDisabledColor"; type: "QColor"; isReadonly: true }
- Property { name: "indicatorFrameColor"; type: "QColor"; isReadonly: true }
- Property { name: "indicatorFramePressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "indicatorFrameDisabledColor"; type: "QColor"; isReadonly: true }
- Property { name: "frameDarkColor"; type: "QColor"; isReadonly: true }
- Property { name: "frameLightColor"; type: "QColor"; isReadonly: true }
- Property { name: "scrollBarColor"; type: "QColor"; isReadonly: true }
- Property { name: "scrollBarPressedColor"; type: "QColor"; isReadonly: true }
- Property { name: "progressBarColor"; type: "QColor"; isReadonly: true }
- Property { name: "pageIndicatorColor"; type: "QColor"; isReadonly: true }
- Property { name: "separatorColor"; type: "QColor"; isReadonly: true }
- Property { name: "disabledDarkColor"; type: "QColor"; isReadonly: true }
- Property { name: "disabledLightColor"; type: "QColor"; isReadonly: true }
- }
- Component {
- name: "QQuickIconImage"
- defaultProperty: "data"
- prototype: "QQuickImage"
- exports: ["QtQuick.Controls.impl/IconImage 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "name"; type: "string" }
- Property { name: "color"; type: "QColor" }
- }
- Component {
- name: "QQuickIconLabel"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.impl/IconLabel 2.3"]
- exportMetaObjectRevisions: [0]
- Enum {
- name: "Display"
- values: {
- "IconOnly": 0,
- "TextOnly": 1,
- "TextBesideIcon": 2,
- "TextUnderIcon": 3
- }
- }
- Property { name: "icon"; type: "QQuickIcon" }
- Property { name: "text"; type: "string" }
- Property { name: "font"; type: "QFont" }
- Property { name: "color"; type: "QColor" }
- Property { name: "display"; type: "Display" }
- Property { name: "spacing"; type: "double" }
- Property { name: "mirrored"; type: "bool" }
- Property { name: "alignment"; type: "Qt::Alignment" }
- Property { name: "topPadding"; type: "double" }
- Property { name: "leftPadding"; type: "double" }
- Property { name: "rightPadding"; type: "double" }
- Property { name: "bottomPadding"; type: "double" }
- }
- Component {
- name: "QQuickItemGroup"
- defaultProperty: "data"
- prototype: "QQuickImplicitSizeItem"
- exports: ["QtQuick.Controls.impl/ItemGroup 2.2"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickMnemonicLabel"
- defaultProperty: "data"
- prototype: "QQuickText"
- exports: ["QtQuick.Controls.impl/MnemonicLabel 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "text"; type: "string" }
- Property { name: "mnemonicVisible"; type: "bool" }
- }
- Component {
- name: "QQuickPaddedRectangle"
- defaultProperty: "data"
- prototype: "QQuickRectangle"
- exports: ["QtQuick.Controls.impl/PaddedRectangle 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "padding"; type: "double" }
- Property { name: "topPadding"; type: "double" }
- Property { name: "leftPadding"; type: "double" }
- Property { name: "rightPadding"; type: "double" }
- Property { name: "bottomPadding"; type: "double" }
- }
- Component {
- name: "QQuickPlaceholderText"
- defaultProperty: "data"
- prototype: "QQuickText"
- exports: ["QtQuick.Controls.impl/PlaceholderText 2.2"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickTumblerView"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.impl/TumblerView 2.1"]
- exportMetaObjectRevisions: [0]
- Property { name: "model"; type: "QVariant" }
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- Property { name: "path"; type: "QQuickPath"; isPointer: true }
- }
- Component {
- prototype: "QQuickAbstractButton"
- name: "QtQuick.Controls/AbstractButton 2.0"
- exports: ["QtQuick.Controls/AbstractButton 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickAction"
- name: "QtQuick.Controls/Action 2.3"
- exports: ["QtQuick.Controls/Action 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- }
- Component {
- prototype: "QQuickActionGroup"
- name: "QtQuick.Controls/ActionGroup 2.3"
- exports: ["QtQuick.Controls/ActionGroup 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "actions"
- }
- Component {
- prototype: "QQuickApplicationWindow"
- name: "QtQuick.Controls/ApplicationWindow 2.0"
- exports: ["QtQuick.Controls/ApplicationWindow 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickBusyIndicator"
- name: "QtQuick.Controls/BusyIndicator 2.0"
- exports: ["QtQuick.Controls/BusyIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickButton"
- name: "QtQuick.Controls/Button 2.0"
- exports: ["QtQuick.Controls/Button 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickButtonGroup"
- name: "QtQuick.Controls/ButtonGroup 2.0"
- exports: ["QtQuick.Controls/ButtonGroup 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- }
- Component {
- prototype: "QQuickCheckBox"
- name: "QtQuick.Controls/CheckBox 2.0"
- exports: ["QtQuick.Controls/CheckBox 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickCheckDelegate"
- name: "QtQuick.Controls/CheckDelegate 2.0"
- exports: ["QtQuick.Controls/CheckDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickComboBox"
- name: "QtQuick.Controls/ComboBox 2.0"
- exports: ["QtQuick.Controls/ComboBox 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickContainer"
- name: "QtQuick.Controls/Container 2.0"
- exports: ["QtQuick.Controls/Container 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickControl"
- name: "QtQuick.Controls/Control 2.0"
- exports: ["QtQuick.Controls/Control 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickDelayButton"
- name: "QtQuick.Controls/DelayButton 2.2"
- exports: ["QtQuick.Controls/DelayButton 2.2"]
- exportMetaObjectRevisions: [2]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickDial"
- name: "QtQuick.Controls/Dial 2.0"
- exports: ["QtQuick.Controls/Dial 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickDialog"
- name: "QtQuick.Controls/Dialog 2.1"
- exports: ["QtQuick.Controls/Dialog 2.1"]
- exportMetaObjectRevisions: [1]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickDialogButtonBox"
- name: "QtQuick.Controls/DialogButtonBox 2.1"
- exports: ["QtQuick.Controls/DialogButtonBox 2.1"]
- exportMetaObjectRevisions: [1]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickDrawer"
- name: "QtQuick.Controls/Drawer 2.0"
- exports: ["QtQuick.Controls/Drawer 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickFrame"
- name: "QtQuick.Controls/Frame 2.0"
- exports: ["QtQuick.Controls/Frame 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickGroupBox"
- name: "QtQuick.Controls/GroupBox 2.0"
- exports: ["QtQuick.Controls/GroupBox 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickItemDelegate"
- name: "QtQuick.Controls/ItemDelegate 2.0"
- exports: ["QtQuick.Controls/ItemDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickLabel"
- name: "QtQuick.Controls/Label 2.0"
- exports: ["QtQuick.Controls/Label 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickMenu"
- name: "QtQuick.Controls/Menu 2.0"
- exports: ["QtQuick.Controls/Menu 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickMenuBar"
- name: "QtQuick.Controls/MenuBar 2.3"
- exports: ["QtQuick.Controls/MenuBar 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickMenuBarItem"
- name: "QtQuick.Controls/MenuBarItem 2.3"
- exports: ["QtQuick.Controls/MenuBarItem 2.3"]
- exportMetaObjectRevisions: [3]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickMenuItem"
- name: "QtQuick.Controls/MenuItem 2.0"
- exports: ["QtQuick.Controls/MenuItem 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickMenuSeparator"
- name: "QtQuick.Controls/MenuSeparator 2.1"
- exports: ["QtQuick.Controls/MenuSeparator 2.1"]
- exportMetaObjectRevisions: [1]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickPage"
- name: "QtQuick.Controls/Page 2.0"
- exports: ["QtQuick.Controls/Page 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickPageIndicator"
- name: "QtQuick.Controls/PageIndicator 2.0"
- exports: ["QtQuick.Controls/PageIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickPane"
- name: "QtQuick.Controls/Pane 2.0"
- exports: ["QtQuick.Controls/Pane 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickPopup"
- name: "QtQuick.Controls/Popup 2.0"
- exports: ["QtQuick.Controls/Popup 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickProgressBar"
- name: "QtQuick.Controls/ProgressBar 2.0"
- exports: ["QtQuick.Controls/ProgressBar 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickRadioButton"
- name: "QtQuick.Controls/RadioButton 2.0"
- exports: ["QtQuick.Controls/RadioButton 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickRadioDelegate"
- name: "QtQuick.Controls/RadioDelegate 2.0"
- exports: ["QtQuick.Controls/RadioDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickRangeSlider"
- name: "QtQuick.Controls/RangeSlider 2.0"
- exports: ["QtQuick.Controls/RangeSlider 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickRoundButton"
- name: "QtQuick.Controls/RoundButton 2.1"
- exports: ["QtQuick.Controls/RoundButton 2.1"]
- exportMetaObjectRevisions: [1]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickScrollBar"
- name: "QtQuick.Controls/ScrollBar 2.0"
- exports: ["QtQuick.Controls/ScrollBar 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickScrollIndicator"
- name: "QtQuick.Controls/ScrollIndicator 2.0"
- exports: ["QtQuick.Controls/ScrollIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickScrollView"
- name: "QtQuick.Controls/ScrollView 2.2"
- exports: ["QtQuick.Controls/ScrollView 2.2"]
- exportMetaObjectRevisions: [2]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickSlider"
- name: "QtQuick.Controls/Slider 2.0"
- exports: ["QtQuick.Controls/Slider 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickSpinBox"
- name: "QtQuick.Controls/SpinBox 2.0"
- exports: ["QtQuick.Controls/SpinBox 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickSplitView"
- name: "QtQuick.Controls/SplitView 2.13"
- exports: ["QtQuick.Controls/SplitView 2.13"]
- exportMetaObjectRevisions: [13]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickStackView"
- name: "QtQuick.Controls/StackView 2.0"
- exports: ["QtQuick.Controls/StackView 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickSwipeDelegate"
- name: "QtQuick.Controls/SwipeDelegate 2.0"
- exports: ["QtQuick.Controls/SwipeDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickSwipeView"
- name: "QtQuick.Controls/SwipeView 2.0"
- exports: ["QtQuick.Controls/SwipeView 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickSwitch"
- name: "QtQuick.Controls/Switch 2.0"
- exports: ["QtQuick.Controls/Switch 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickSwitchDelegate"
- name: "QtQuick.Controls/SwitchDelegate 2.0"
- exports: ["QtQuick.Controls/SwitchDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickTabBar"
- name: "QtQuick.Controls/TabBar 2.0"
- exports: ["QtQuick.Controls/TabBar 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickTabButton"
- name: "QtQuick.Controls/TabButton 2.0"
- exports: ["QtQuick.Controls/TabButton 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickTextArea"
- name: "QtQuick.Controls/TextArea 2.0"
- exports: ["QtQuick.Controls/TextArea 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickTextField"
- name: "QtQuick.Controls/TextField 2.0"
- exports: ["QtQuick.Controls/TextField 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickToolBar"
- name: "QtQuick.Controls/ToolBar 2.0"
- exports: ["QtQuick.Controls/ToolBar 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickToolButton"
- name: "QtQuick.Controls/ToolButton 2.0"
- exports: ["QtQuick.Controls/ToolButton 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickToolSeparator"
- name: "QtQuick.Controls/ToolSeparator 2.1"
- exports: ["QtQuick.Controls/ToolSeparator 2.1"]
- exportMetaObjectRevisions: [1]
- isComposite: true
- defaultProperty: "data"
- }
- Component {
- prototype: "QQuickToolTip"
- name: "QtQuick.Controls/ToolTip 2.0"
- exports: ["QtQuick.Controls/ToolTip 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "contentData"
- }
- Component {
- prototype: "QQuickTumbler"
- name: "QtQuick.Controls/Tumbler 2.0"
- exports: ["QtQuick.Controls/Tumbler 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- }
-}
diff --git a/src/imports/controls/qmldir b/src/imports/controls/qmldir
deleted file mode 100644
index c9ccb8f9..00000000
--- a/src/imports/controls/qmldir
+++ /dev/null
@@ -1,5 +0,0 @@
-module QtQuick.Controls
-plugin qtquickcontrols2plugin
-classname QtQuickControls2Plugin
-depends QtQuick.Templates 2.5
-designersupported
diff --git a/src/imports/controls/qquickdefaultbusyindicator.cpp b/src/imports/controls/qquickdefaultbusyindicator.cpp
deleted file mode 100644
index 98a3cae3..00000000
--- a/src/imports/controls/qquickdefaultbusyindicator.cpp
+++ /dev/null
@@ -1,223 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickdefaultbusyindicator_p.h"
-
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qsgadaptationlayer_p.h>
-#include <QtQuickControls2/private/qquickanimatednode_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static const int CircleCount = 10;
-static const int TotalDuration = 100 * CircleCount * 2;
-static const QRgb TransparentColor = 0x00000000;
-
-static QPointF moveCircle(const QPointF &pos, qreal rotation, qreal distance)
-{
- return pos - QTransform().rotate(rotation).map(QPointF(0, distance));
-}
-
-class QQuickDefaultBusyIndicatorNode : public QQuickAnimatedNode
-{
-public:
- QQuickDefaultBusyIndicatorNode(QQuickDefaultBusyIndicator *item);
-
- void updateCurrentTime(int time) override;
- void sync(QQuickItem *item) override;
-
-private:
- QColor m_pen;
- QColor m_fill;
-};
-
-QQuickDefaultBusyIndicatorNode::QQuickDefaultBusyIndicatorNode(QQuickDefaultBusyIndicator *item)
- : QQuickAnimatedNode(item)
-{
- setLoopCount(Infinite);
- setDuration(TotalDuration);
- setCurrentTime(item->elapsed());
-
- for (int i = 0; i < CircleCount; ++i) {
- QSGTransformNode *transformNode = new QSGTransformNode;
- appendChildNode(transformNode);
-
- QQuickItemPrivate *d = QQuickItemPrivate::get(item);
- QSGInternalRectangleNode *rectNode = d->sceneGraphContext()->createInternalRectangleNode();
- rectNode->setAntialiasing(true);
- transformNode->appendChildNode(rectNode);
- }
-}
-
-void QQuickDefaultBusyIndicatorNode::updateCurrentTime(int time)
-{
- const qreal percentageComplete = time / qreal(TotalDuration);
- const qreal firstPhaseProgress = percentageComplete <= 0.5 ? percentageComplete * 2 : 0;
- const qreal secondPhaseProgress = percentageComplete > 0.5 ? (percentageComplete - 0.5) * 2 : 0;
-
- QSGTransformNode *transformNode = static_cast<QSGTransformNode*>(firstChild());
- Q_ASSERT(transformNode->type() == QSGNode::TransformNodeType);
- for (int i = 0; i < CircleCount; ++i) {
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode*>(transformNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
-
- const bool fill = (firstPhaseProgress > qreal(i) / CircleCount) || (secondPhaseProgress > 0 && secondPhaseProgress < qreal(i) / CircleCount);
- rectNode->setColor(fill ? m_fill : QColor::fromRgba(TransparentColor));
- rectNode->setPenColor(m_pen);
- rectNode->setPenWidth(1);
- rectNode->update();
-
- transformNode = static_cast<QSGTransformNode*>(transformNode->nextSibling());
- }
-}
-
-void QQuickDefaultBusyIndicatorNode::sync(QQuickItem *item)
-{
- const qreal w = item->width();
- const qreal h = item->height();
- const qreal sz = qMin(w, h);
- const qreal dx = (w - sz) / 2;
- const qreal dy = (h - sz) / 2;
- const int circleRadius = sz / 12;
-
- m_pen = static_cast<QQuickDefaultBusyIndicator *>(item)->pen();
- m_fill = static_cast<QQuickDefaultBusyIndicator *>(item)->fill();
-
- QSGTransformNode *transformNode = static_cast<QSGTransformNode *>(firstChild());
- for (int i = 0; i < CircleCount; ++i) {
- Q_ASSERT(transformNode->type() == QSGNode::TransformNodeType);
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(transformNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
-
- QPointF pos = QPointF(sz / 2 - circleRadius, sz / 2 - circleRadius);
- pos = moveCircle(pos, 360 / CircleCount * i, sz / 2 - circleRadius);
-
- QMatrix4x4 m;
- m.translate(dx + pos.x(), dy + pos.y());
- transformNode->setMatrix(m);
-
- rectNode->setRect(QRectF(QPointF(), QSizeF(circleRadius * 2, circleRadius * 2)));
- rectNode->setRadius(circleRadius);
-
- transformNode = static_cast<QSGTransformNode *>(transformNode->nextSibling());
- }
-}
-
-QQuickDefaultBusyIndicator::QQuickDefaultBusyIndicator(QQuickItem *parent) :
- QQuickItem(parent)
-{
- setFlag(ItemHasContents);
-}
-
-QColor QQuickDefaultBusyIndicator::pen() const
-{
- return m_pen;
-}
-
-void QQuickDefaultBusyIndicator::setPen(const QColor &pen)
-{
- if (pen == m_pen)
- return;
-
- m_pen = pen;
- update();
-}
-
-QColor QQuickDefaultBusyIndicator::fill() const
-{
- return m_fill;
-}
-
-void QQuickDefaultBusyIndicator::setFill(const QColor &fill)
-{
- if (fill == m_fill)
- return;
-
- m_fill = fill;
- update();
-}
-
-bool QQuickDefaultBusyIndicator::isRunning() const
-{
- return isVisible();
-}
-
-void QQuickDefaultBusyIndicator::setRunning(bool running)
-{
- if (running)
- setVisible(true);
-}
-
-int QQuickDefaultBusyIndicator::elapsed() const
-{
- return m_elapsed;
-}
-
-void QQuickDefaultBusyIndicator::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- QQuickItem::itemChange(change, data);
- switch (change) {
- case ItemOpacityHasChanged:
- if (qFuzzyIsNull(data.realValue))
- setVisible(false);
- break;
- case ItemVisibleHasChanged:
- update();
- break;
- default:
- break;
- }
-}
-
-QSGNode *QQuickDefaultBusyIndicator::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *)
-{
- QQuickDefaultBusyIndicatorNode *node = static_cast<QQuickDefaultBusyIndicatorNode *>(oldNode);
- if (isRunning() && width() > 0 && height() > 0) {
- if (!node) {
- node = new QQuickDefaultBusyIndicatorNode(this);
- node->start();
- }
- node->sync(this);
- } else {
- m_elapsed = node ? node->currentTime() : 0;
- delete node;
- node = nullptr;
- }
- return node;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/qquickdefaultbusyindicator_p.h b/src/imports/controls/qquickdefaultbusyindicator_p.h
deleted file mode 100644
index eedaf09a..00000000
--- a/src/imports/controls/qquickdefaultbusyindicator_p.h
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDEFAULTBUSYINDICATOR_P_H
-#define QQUICKDEFAULTBUSYINDICATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/qquickitem.h>
-#include <QtGui/qcolor.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDefaultBusyIndicator : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QColor pen READ pen WRITE setPen FINAL)
- Q_PROPERTY(QColor fill READ fill WRITE setFill FINAL)
- Q_PROPERTY(bool running READ isRunning WRITE setRunning)
-
-public:
- explicit QQuickDefaultBusyIndicator(QQuickItem *parent = nullptr);
-
- QColor pen() const;
- void setPen(const QColor &pen);
-
- QColor fill() const;
- void setFill(const QColor &fill);
-
- bool isRunning() const;
- void setRunning(bool running);
-
- int elapsed() const;
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
-
-private:
- int m_elapsed = 0;
- QColor m_pen;
- QColor m_fill;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDefaultBusyIndicator)
-
-#endif // QQUICKDEFAULTBUSYINDICATOR_P_H
diff --git a/src/imports/controls/qquickdefaultdial.cpp b/src/imports/controls/qquickdefaultdial.cpp
deleted file mode 100644
index 1653def7..00000000
--- a/src/imports/controls/qquickdefaultdial.cpp
+++ /dev/null
@@ -1,122 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickdefaultdial_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtGui/qpainter.h>
-#include <QtQuick/private/qquickitem_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickDefaultDial::QQuickDefaultDial(QQuickItem *parent) :
- QQuickPaintedItem(parent)
-{
-}
-
-qreal QQuickDefaultDial::progress() const
-{
- return m_progress;
-}
-
-void QQuickDefaultDial::setProgress(qreal progress)
-{
- if (progress == m_progress)
- return;
-
- m_progress = progress;
- update();
-}
-
-QColor QQuickDefaultDial::color() const
-{
- return m_color;
-}
-
-void QQuickDefaultDial::setColor(const QColor &color)
-{
- if (color == m_color)
- return;
-
- m_color = color;
- update();
-}
-
-void QQuickDefaultDial::paint(QPainter *painter)
-{
- if (width() <= 0 || height() <= 0)
- return;
-
- QPen pen(m_color);
- pen.setWidth(8);
- pen.setCapStyle(Qt::FlatCap);
- painter->setPen(pen);
-
- const QRectF bounds = boundingRect();
- const qreal smallest = qMin(bounds.width(), bounds.height());
- QRectF rect = QRectF(pen.widthF() / 2.0 + 1, pen.widthF() / 2.0 + 1, smallest - pen.widthF() - 2, smallest - pen.widthF() - 2);
- rect.moveCenter(bounds.center());
-
- // Make sure the arc is aligned to whole pixels.
- if (rect.x() - int(rect.x()) > 0)
- rect.setX(qCeil(rect.x()));
- if (rect.y() - int(rect.y()) > 0)
- rect.setY(qCeil(rect.y()));
- if (rect.width() - int(rect.width()) > 0)
- rect.setWidth(qFloor(rect.width()));
- if (rect.height() - int(rect.height()) > 0)
- rect.setHeight(qFloor(rect.height()));
-
- painter->setRenderHint(QPainter::Antialiasing);
-
- const qreal startAngle = (140 + 90);
- const qreal spanAngle = (m_progress * 280) * -1;
- QPainterPath path;
- path.arcMoveTo(rect, startAngle);
- path.arcTo(rect, startAngle, spanAngle);
- painter->drawPath(path);
-
- rect.adjust(-pen.widthF() / 2.0, -pen.widthF() / 2.0, pen.widthF() / 2.0, pen.widthF() / 2.0);
- pen.setWidth(1);
- painter->setPen(pen);
-
- path = QPainterPath();
- path.arcMoveTo(rect, 0);
- path.arcTo(rect, 0, 360);
- painter->drawPath(path);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/qquickdefaultdial_p.h b/src/imports/controls/qquickdefaultdial_p.h
deleted file mode 100644
index 73e14321..00000000
--- a/src/imports/controls/qquickdefaultdial_p.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDEFAULTDIAL_P_H
-#define QQUICKDEFAULTDIAL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuick/qquickpainteditem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDefaultDial : public QQuickPaintedItem
-{
- Q_OBJECT
- Q_PROPERTY(qreal progress READ progress WRITE setProgress FINAL)
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
-
-public:
- explicit QQuickDefaultDial(QQuickItem *parent = nullptr);
-
- qreal progress() const;
- void setProgress(qreal progress);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- void paint(QPainter *painter) override;
-
-private:
- qreal m_progress = 0;
- QColor m_color = Qt::black;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKDEFAULTDIAL_P_H
diff --git a/src/imports/controls/qquickdefaultprogressbar.cpp b/src/imports/controls/qquickdefaultprogressbar.cpp
deleted file mode 100644
index e8657255..00000000
--- a/src/imports/controls/qquickdefaultprogressbar.cpp
+++ /dev/null
@@ -1,280 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickdefaultprogressbar_p.h"
-
-#include <QtCore/qeasingcurve.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qsgadaptationlayer_p.h>
-#include <QtQuickControls2/private/qquickanimatednode_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static const int Blocks = 4;
-static const int BlockWidth = 16;
-static const int BlockRestingSpacing = 4;
-static const int BlockMovingSpacing = 48;
-static const int BlockSpan = Blocks * (BlockWidth + BlockRestingSpacing) - BlockRestingSpacing;
-static const int TotalDuration = 4000;
-static const int SecondPhaseStart = TotalDuration * 0.4;
-static const int ThirdPhaseStart = TotalDuration * 0.6;
-
-static inline qreal blockStartX(int blockIndex)
-{
- return ((blockIndex + 1) * -BlockWidth) - (blockIndex * BlockMovingSpacing);
-}
-
-static inline qreal blockRestX(int blockIndex, qreal availableWidth)
-{
- const qreal spanRightEdgePos = availableWidth / 2 + BlockSpan / 2;
- return spanRightEdgePos - (blockIndex + 1) * BlockWidth - (blockIndex * BlockRestingSpacing);
-}
-
-static inline qreal blockEndX(int blockIndex, qreal availableWidth)
-{
- return availableWidth - blockStartX(Blocks - 1 - blockIndex) - BlockWidth;
-}
-
-class QQuickDefaultProgressBarNode : public QQuickAnimatedNode
-{
-public:
- QQuickDefaultProgressBarNode(QQuickDefaultProgressBar *item);
-
- void updateCurrentTime(int time) override;
- void sync(QQuickItem *item) override;
-
-private:
- bool m_indeterminate = false;
- qreal m_pixelsPerSecond = 0;
-};
-
-QQuickDefaultProgressBarNode::QQuickDefaultProgressBarNode(QQuickDefaultProgressBar *item)
- : QQuickAnimatedNode(item),
- m_pixelsPerSecond(item->width())
-{
- setLoopCount(Infinite);
- setDuration(TotalDuration);
-}
-
-void QQuickDefaultProgressBarNode::updateCurrentTime(int time)
-{
- QSGTransformNode *transformNode = static_cast<QSGTransformNode*>(firstChild());
- for (int i = 0; i < Blocks; ++i) {
- Q_ASSERT(transformNode->type() == QSGNode::TransformNodeType);
-
- QMatrix4x4 m;
- const qreal restX = blockRestX(i, m_pixelsPerSecond);
- const qreal timeInSeconds = time / 1000.0;
-
- if (time < SecondPhaseStart) {
- // Move into the resting position for the first phase.
- QEasingCurve easingCurve(QEasingCurve::InQuad);
- const qreal easedCompletion = easingCurve.valueForProgress(time / qreal(SecondPhaseStart));
- const qreal distance = m_pixelsPerSecond * (easedCompletion * (SecondPhaseStart / 1000.0));
- const qreal position = blockStartX(i) + distance;
- const qreal destination = restX;
- m.translate(qMin(position, destination), 0);
- } else if (time < ThirdPhaseStart) {
- // Stay in the same position for the second phase.
- m.translate(restX, 0);
- } else {
- // Move out of view for the third phase.
- const int thirdPhaseSubKickoff = (BlockMovingSpacing / m_pixelsPerSecond) * 1000;
- const int subphase = (time - ThirdPhaseStart) / thirdPhaseSubKickoff;
- // If we're not at this subphase yet, don't try to animate movement,
- // because it will be incorrect.
- if (subphase < i)
- return;
-
- const qreal timeSinceSecondPhase = timeInSeconds - (ThirdPhaseStart / 1000.0);
- // We only want to start keeping track of time once our subphase has started,
- // otherwise we move too much because we account for time that has already elapsed.
- // For example, if we were 60 milliseconds into the third subphase:
- //
- // 0 ..... 1 ..... 2 ...
- // 100 100 60
- //
- // i == 0, timeSinceOurKickoff == 260
- // i == 1, timeSinceOurKickoff == 160
- // i == 2, timeSinceOurKickoff == 60
- const qreal timeSinceOurKickoff = timeSinceSecondPhase - (thirdPhaseSubKickoff / 1000.0 * i);
- const qreal position = restX + (m_pixelsPerSecond * (timeSinceOurKickoff));
- const qreal destination = blockEndX(i, m_pixelsPerSecond);
- m.translate(qMin(position, destination), 0);
- }
-
- transformNode->setMatrix(m);
-
- transformNode = static_cast<QSGTransformNode*>(transformNode->nextSibling());
- }
-}
-
-void QQuickDefaultProgressBarNode::sync(QQuickItem *item)
-{
- QQuickDefaultProgressBar *bar = static_cast<QQuickDefaultProgressBar *>(item);
- if (m_indeterminate != bar->isIndeterminate()) {
- m_indeterminate = bar->isIndeterminate();
- if (m_indeterminate)
- start();
- else
- stop();
- }
- m_pixelsPerSecond = item->width();
-
- QQuickItemPrivate *d = QQuickItemPrivate::get(item);
-
- QMatrix4x4 m;
- m.translate(0, (item->height() - item->implicitHeight()) / 2);
- setMatrix(m);
-
- if (m_indeterminate) {
- if (childCount() != Blocks) {
- // This was previously a regular progress bar; remove the old nodes.
- removeAllChildNodes();
- }
-
- QSGTransformNode *transformNode = static_cast<QSGTransformNode*>(firstChild());
- for (int i = 0; i < Blocks; ++i) {
- if (!transformNode) {
- transformNode = new QSGTransformNode;
- appendChildNode(transformNode);
- }
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode*>(transformNode->firstChild());
- if (!rectNode) {
- rectNode = d->sceneGraphContext()->createInternalRectangleNode();
- rectNode->setColor(bar->color());
- transformNode->appendChildNode(rectNode);
- }
-
- QMatrix4x4 m;
- m.translate(blockStartX(i), 0);
- transformNode->setMatrix(m);
-
- rectNode->setRect(QRectF(QPointF(0, 0), QSizeF(BlockWidth, item->implicitHeight())));
- rectNode->update();
-
- transformNode = static_cast<QSGTransformNode *>(transformNode->nextSibling());
- }
- } else {
- if (childCount() > 1) {
- // This was previously an indeterminate progress bar; remove the old nodes.
- removeAllChildNodes();
- }
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(firstChild());
- if (!rectNode) {
- rectNode = d->sceneGraphContext()->createInternalRectangleNode();
- rectNode->setColor(bar->color());
- appendChildNode(rectNode);
- }
-
- rectNode->setRect(QRectF(QPointF(0, 0), QSizeF(bar->progress() * item->width(), item->implicitHeight())));
- rectNode->update();
- }
-}
-
-QQuickDefaultProgressBar::QQuickDefaultProgressBar(QQuickItem *parent) :
- QQuickItem(parent)
-{
- setFlag(ItemHasContents);
-}
-
-qreal QQuickDefaultProgressBar::progress() const
-{
- return m_progress;
-}
-
-void QQuickDefaultProgressBar::setProgress(qreal progress)
-{
- if (progress == m_progress)
- return;
-
- m_progress = progress;
- update();
-}
-
-bool QQuickDefaultProgressBar::isIndeterminate() const
-{
- return m_indeterminate;
-}
-
-void QQuickDefaultProgressBar::setIndeterminate(bool indeterminate)
-{
- if (indeterminate == m_indeterminate)
- return;
-
- m_indeterminate = indeterminate;
- setClip(m_indeterminate);
- update();
-}
-
-QColor QQuickDefaultProgressBar::color() const
-{
- return m_color;
-}
-
-void QQuickDefaultProgressBar::setColor(const QColor &color)
-{
- if (color == m_color)
- return;
-
- m_color = color;
- update();
-}
-
-void QQuickDefaultProgressBar::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- QQuickItem::itemChange(change, data);
- if (change == ItemVisibleHasChanged)
- update();
-}
-
-QSGNode *QQuickDefaultProgressBar::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *)
-{
- QQuickDefaultProgressBarNode *node = static_cast<QQuickDefaultProgressBarNode *>(oldNode);
- if (isVisible() && width() > 0 && height() > 0) {
- if (!node)
- node = new QQuickDefaultProgressBarNode(this);
- node->sync(this);
- } else {
- delete node;
- node = nullptr;
- }
- return node;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/qquickdefaultprogressbar_p.h b/src/imports/controls/qquickdefaultprogressbar_p.h
deleted file mode 100644
index 241d0b3b..00000000
--- a/src/imports/controls/qquickdefaultprogressbar_p.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDEFAULTPROGRESSBAR_P_H
-#define QQUICKDEFAULTPROGRESSBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/qquickitem.h>
-#include <QtGui/qcolor.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDefaultProgressBar : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(bool indeterminate READ isIndeterminate WRITE setIndeterminate FINAL)
- Q_PROPERTY(qreal progress READ progress WRITE setProgress FINAL)
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
-
-public:
- explicit QQuickDefaultProgressBar(QQuickItem *parent = nullptr);
-
- bool isIndeterminate() const;
- void setIndeterminate(bool indeterminate);
-
- qreal progress() const;
- void setProgress(qreal progress);
-
- QColor color() const;
- void setColor(const QColor &color);
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
-
-private:
- qreal m_progress = 0;
- bool m_indeterminate = false;
- QColor m_color;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDefaultProgressBar)
-
-#endif // QQUICKDEFAULTPROGRESSBAR_P_H
diff --git a/src/imports/controls/qquickdefaultstyle.cpp b/src/imports/controls/qquickdefaultstyle.cpp
deleted file mode 100644
index 15c59798..00000000
--- a/src/imports/controls/qquickdefaultstyle.cpp
+++ /dev/null
@@ -1,246 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickdefaultstyle_p.h"
-
-QT_BEGIN_NAMESPACE
-
-QQuickDefaultStyle::QQuickDefaultStyle(QObject *parent) :
- QObject(parent)
-{
-}
-
-QColor QQuickDefaultStyle::backgroundColor() const
-{
- return QColor::fromRgba(0xFFFFFFFF);
-}
-
-QColor QQuickDefaultStyle::overlayModalColor() const
-{
- return QColor::fromRgba(0x7F28282A);
-}
-
-QColor QQuickDefaultStyle::overlayDimColor() const
-{
- return QColor::fromRgba(0x1F28282A);
-}
-
-QColor QQuickDefaultStyle::textColor() const
-{
- return QColor::fromRgba(0xFF353637);
-}
-
-QColor QQuickDefaultStyle::textDarkColor() const
-{
- return QColor::fromRgba(0xFF26282A);
-}
-
-QColor QQuickDefaultStyle::textLightColor() const
-{
- return QColor::fromRgba(0xFFFFFFFF);
-}
-
-QColor QQuickDefaultStyle::textLinkColor() const
-{
- return QColor::fromRgba(0xFF45A7D7);
-}
-
-QColor QQuickDefaultStyle::textSelectionColor() const
-{
- return QColor::fromRgba(0xFFFDDD5C);
-}
-
-QColor QQuickDefaultStyle::textDisabledColor() const
-{
- return QColor::fromRgba(0xFFBDBEBF);
-}
-
-QColor QQuickDefaultStyle::textDisabledLightColor() const
-{
- return QColor::fromRgba(0xFFC2C2C2);
-}
-
-QColor QQuickDefaultStyle::textPlaceholderColor() const
-{
- return QColor::fromRgba(0xFF777777);
-}
-
-QColor QQuickDefaultStyle::focusColor() const
-{
- return QColor::fromRgba(0xFF0066FF);
-}
-
-QColor QQuickDefaultStyle::focusLightColor() const
-{
- return QColor::fromRgba(0xFFF0F6FF);
-}
-
-QColor QQuickDefaultStyle::focusPressedColor() const
-{
- return QColor::fromRgba(0xFFCCE0FF);
-}
-
-QColor QQuickDefaultStyle::buttonColor() const
-{
- return QColor::fromRgba(0xFFE0E0E0);
-}
-
-QColor QQuickDefaultStyle::buttonPressedColor() const
-{
- return QColor::fromRgba(0xFFD0D0D0);
-}
-
-QColor QQuickDefaultStyle::buttonCheckedColor() const
-{
- return QColor::fromRgba(0xFF353637);
-}
-
-QColor QQuickDefaultStyle::buttonCheckedPressedColor() const
-{
- return QColor::fromRgba(0xFF585A5C);
-}
-
-QColor QQuickDefaultStyle::buttonCheckedFocusColor() const
-{
- return QColor::fromRgba(0xFF599BFF);
-}
-
-QColor QQuickDefaultStyle::toolButtonColor() const
-{
- return QColor::fromRgba(0x33333333);
-}
-
-QColor QQuickDefaultStyle::tabButtonColor() const
-{
- return QColor::fromRgba(0xFF353637);
-}
-
-QColor QQuickDefaultStyle::tabButtonPressedColor() const
-{
- return QColor::fromRgba(0xFF585A5C);
-}
-
-QColor QQuickDefaultStyle::tabButtonCheckedPressedColor() const
-{
- return QColor::fromRgba(0xFFE4E4E4);
-}
-
-QColor QQuickDefaultStyle::delegateColor() const
-{
- return QColor::fromRgba(0xFFEEEEEE);
-}
-
-QColor QQuickDefaultStyle::delegatePressedColor() const
-{
- return QColor::fromRgba(0xFFBDBEBF);
-}
-
-QColor QQuickDefaultStyle::delegateFocusColor() const
-{
- return QColor::fromRgba(0xFFE5EFFF);
-}
-
-QColor QQuickDefaultStyle::indicatorPressedColor() const
-{
- return QColor::fromRgba(0xFFF6F6F6);
-}
-
-QColor QQuickDefaultStyle::indicatorDisabledColor() const
-{
- return QColor::fromRgba(0xFFFDFDFD);
-}
-
-QColor QQuickDefaultStyle::indicatorFrameColor() const
-{
- return QColor::fromRgba(0xFF909090);
-}
-
-QColor QQuickDefaultStyle::indicatorFramePressedColor() const
-{
- return QColor::fromRgba(0xFF808080);
-}
-
-QColor QQuickDefaultStyle::indicatorFrameDisabledColor() const
-{
- return QColor::fromRgba(0xFFD6D6D6);
-}
-
-QColor QQuickDefaultStyle::frameDarkColor() const
-{
- return QColor::fromRgba(0xFF353637);
-}
-
-QColor QQuickDefaultStyle::frameLightColor() const
-{
- return QColor::fromRgba(0xFFBDBEBF);
-}
-
-QColor QQuickDefaultStyle::scrollBarColor() const
-{
- return QColor::fromRgba(0xFFBDBEBF);
-}
-
-QColor QQuickDefaultStyle::scrollBarPressedColor() const
-{
- return QColor::fromRgba(0xFF28282A);
-}
-
-QColor QQuickDefaultStyle::progressBarColor() const
-{
- return QColor::fromRgba(0xFFE4E4E4);
-}
-
-QColor QQuickDefaultStyle::pageIndicatorColor() const
-{
- return QColor::fromRgba(0xFF28282A);
-}
-
-QColor QQuickDefaultStyle::separatorColor() const
-{
- return QColor::fromRgba(0xFFCCCCCC);
-}
-
-QColor QQuickDefaultStyle::disabledDarkColor() const
-{
- return QColor::fromRgba(0xFF353637);
-}
-
-QColor QQuickDefaultStyle::disabledLightColor() const
-{
- return QColor::fromRgba(0xFFBDBEBF);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/qquickdefaultstyle_p.h b/src/imports/controls/qquickdefaultstyle_p.h
deleted file mode 100644
index fcd489a0..00000000
--- a/src/imports/controls/qquickdefaultstyle_p.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDEFAULTSTYLE_P_H
-#define QQUICKDEFAULTSTYLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtGui/qcolor.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDefaultStyle : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QColor backgroundColor READ backgroundColor CONSTANT FINAL)
- Q_PROPERTY(QColor overlayModalColor READ overlayModalColor CONSTANT FINAL)
- Q_PROPERTY(QColor overlayDimColor READ overlayDimColor CONSTANT FINAL)
- Q_PROPERTY(QColor textColor READ textColor CONSTANT FINAL)
- Q_PROPERTY(QColor textDarkColor READ textDarkColor CONSTANT FINAL)
- Q_PROPERTY(QColor textLightColor READ textLightColor CONSTANT FINAL)
- Q_PROPERTY(QColor textLinkColor READ textLinkColor CONSTANT FINAL)
- Q_PROPERTY(QColor textSelectionColor READ textSelectionColor CONSTANT FINAL)
- Q_PROPERTY(QColor textDisabledColor READ textDisabledColor CONSTANT FINAL)
- Q_PROPERTY(QColor textDisabledLightColor READ textDisabledLightColor CONSTANT FINAL)
- Q_PROPERTY(QColor textPlaceholderColor READ textPlaceholderColor CONSTANT FINAL)
- Q_PROPERTY(QColor focusColor READ focusColor CONSTANT FINAL)
- Q_PROPERTY(QColor focusLightColor READ focusLightColor CONSTANT FINAL)
- Q_PROPERTY(QColor focusPressedColor READ focusPressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor buttonColor READ buttonColor CONSTANT FINAL)
- Q_PROPERTY(QColor buttonPressedColor READ buttonPressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor buttonCheckedColor READ buttonCheckedColor CONSTANT FINAL)
- Q_PROPERTY(QColor buttonCheckedPressedColor READ buttonCheckedPressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor buttonCheckedFocusColor READ buttonCheckedFocusColor CONSTANT FINAL)
- Q_PROPERTY(QColor toolButtonColor READ toolButtonColor CONSTANT FINAL)
- Q_PROPERTY(QColor tabButtonColor READ tabButtonColor CONSTANT FINAL)
- Q_PROPERTY(QColor tabButtonPressedColor READ tabButtonPressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor tabButtonCheckedPressedColor READ tabButtonCheckedPressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor delegateColor READ delegateColor CONSTANT FINAL)
- Q_PROPERTY(QColor delegatePressedColor READ delegatePressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor delegateFocusColor READ delegateFocusColor CONSTANT FINAL)
- Q_PROPERTY(QColor indicatorPressedColor READ indicatorPressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor indicatorDisabledColor READ indicatorDisabledColor CONSTANT FINAL)
- Q_PROPERTY(QColor indicatorFrameColor READ indicatorFrameColor CONSTANT FINAL)
- Q_PROPERTY(QColor indicatorFramePressedColor READ indicatorFramePressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor indicatorFrameDisabledColor READ indicatorFrameDisabledColor CONSTANT FINAL)
- Q_PROPERTY(QColor frameDarkColor READ frameDarkColor CONSTANT FINAL)
- Q_PROPERTY(QColor frameLightColor READ frameLightColor CONSTANT FINAL)
- Q_PROPERTY(QColor scrollBarColor READ scrollBarColor CONSTANT FINAL)
- Q_PROPERTY(QColor scrollBarPressedColor READ scrollBarPressedColor CONSTANT FINAL)
- Q_PROPERTY(QColor progressBarColor READ progressBarColor CONSTANT FINAL)
- Q_PROPERTY(QColor pageIndicatorColor READ pageIndicatorColor CONSTANT FINAL)
- Q_PROPERTY(QColor separatorColor READ separatorColor CONSTANT FINAL)
- Q_PROPERTY(QColor disabledDarkColor READ disabledDarkColor CONSTANT FINAL)
- Q_PROPERTY(QColor disabledLightColor READ disabledLightColor CONSTANT FINAL)
-
-public:
- explicit QQuickDefaultStyle(QObject *parent = nullptr);
-
- QColor backgroundColor() const;
- QColor overlayModalColor() const;
- QColor overlayDimColor() const;
- QColor textColor() const;
- QColor textDarkColor() const;
- QColor textLightColor() const;
- QColor textLinkColor() const;
- QColor textSelectionColor() const;
- QColor textDisabledColor() const;
- QColor textDisabledLightColor() const;
- QColor textPlaceholderColor() const;
- QColor focusColor() const;
- QColor focusLightColor() const;
- QColor focusPressedColor() const;
- QColor buttonColor() const;
- QColor buttonPressedColor() const;
- QColor buttonCheckedColor() const;
- QColor buttonCheckedPressedColor() const;
- QColor buttonCheckedFocusColor() const;
- QColor toolButtonColor() const;
- QColor tabButtonColor() const;
- QColor tabButtonPressedColor() const;
- QColor tabButtonCheckedPressedColor() const;
- QColor delegateColor() const;
- QColor delegatePressedColor() const;
- QColor delegateFocusColor() const;
- QColor indicatorPressedColor() const;
- QColor indicatorDisabledColor() const;
- QColor indicatorFrameColor() const;
- QColor indicatorFramePressedColor() const;
- QColor indicatorFrameDisabledColor() const;
- QColor frameDarkColor() const;
- QColor frameLightColor() const;
- QColor scrollBarColor() const;
- QColor scrollBarPressedColor() const;
- QColor progressBarColor() const;
- QColor pageIndicatorColor() const;
- QColor separatorColor() const;
- QColor disabledDarkColor() const;
- QColor disabledLightColor() const;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKDEFAULTSTYLE_P_H
diff --git a/src/imports/controls/qquickdefaulttheme.cpp b/src/imports/controls/qquickdefaulttheme.cpp
deleted file mode 100644
index 26fb2a2f..00000000
--- a/src/imports/controls/qquickdefaulttheme.cpp
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickdefaulttheme_p.h"
-
-#include <QtQuickTemplates2/private/qquicktheme_p.h>
-
-QT_BEGIN_NAMESPACE
-
-void QQuickDefaultTheme::initialize(QQuickTheme *theme)
-{
- QPalette systemPalette;
-
- systemPalette.setColor(QPalette::Base, QColor::fromRgba(0xFFFFFFFF));
- systemPalette.setColor(QPalette::Disabled, QPalette::Base, QColor::fromRgba(0xFFD6D6D6));
-
- systemPalette.setColor(QPalette::Button, QColor::fromRgba(0xFFE0E0E0));
-
- systemPalette.setColor(QPalette::ButtonText, QColor::fromRgba(0xFF26282A));
- systemPalette.setColor(QPalette::Disabled, QPalette::ButtonText, QColor::fromRgba(0x4D26282A));
-
- systemPalette.setColor(QPalette::BrightText, QColor::fromRgba(0xFFFFFFFF));
- systemPalette.setColor(QPalette::Disabled, QPalette::BrightText, QColor::fromRgba(0x4DFFFFFF));
-
- systemPalette.setColor(QPalette::Dark, QColor::fromRgba(0xFF353637));
-
- systemPalette.setColor(QPalette::Highlight, QColor::fromRgba(0xFF0066FF));
- systemPalette.setColor(QPalette::Disabled, QPalette::Highlight, QColor::fromRgba(0xFFF0F6FF));
-
- systemPalette.setColor(QPalette::HighlightedText, QColor::fromRgba(0xFF090909));
-
- systemPalette.setColor(QPalette::Light, QColor::fromRgba(0xFFF6F6F6));
-
- systemPalette.setColor(QPalette::Link, QColor::fromRgba(0xFF45A7D7));
-
- systemPalette.setColor(QPalette::Mid, QColor::fromRgba(0xFFBDBDBD));
-
- systemPalette.setColor(QPalette::Midlight, QColor::fromRgba(0xFFE4E4E4));
-
- systemPalette.setColor(QPalette::Text, QColor::fromRgba(0xFF353637));
- systemPalette.setColor(QPalette::Disabled, QPalette::Text, QColor::fromRgba(0x7F353637));
-
- systemPalette.setColor(QPalette::Shadow, QColor::fromRgba(0xFF28282A));
-
- systemPalette.setColor(QPalette::ToolTipBase, QColor::fromRgba(0xFFFFFFFF));
- systemPalette.setColor(QPalette::ToolTipText, QColor::fromRgba(0xFF000000));
-
- systemPalette.setColor(QPalette::Window, QColor::fromRgba(0xFFFFFFFF));
-
- systemPalette.setColor(QPalette::WindowText, QColor::fromRgba(0xFF26282A));
- systemPalette.setColor(QPalette::Disabled, QPalette::WindowText, QColor::fromRgba(0xFFBDBEBF));
-
- theme->setPalette(QQuickTheme::System, systemPalette);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/qquickdefaulttheme_p.h b/src/imports/controls/qquickdefaulttheme_p.h
deleted file mode 100644
index 3a7311c7..00000000
--- a/src/imports/controls/qquickdefaulttheme_p.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDEFAULTTHEME_P_H
-#define QQUICKDEFAULTTHEME_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qglobal.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTheme;
-
-class QQuickDefaultTheme
-{
-public:
- static void initialize(QQuickTheme *theme);
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKDEFAULTTHEME_P_H
diff --git a/src/imports/controls/qtquickcontrols2plugin.cpp b/src/imports/controls/qtquickcontrols2plugin.cpp
deleted file mode 100644
index 5d59d8ca..00000000
--- a/src/imports/controls/qtquickcontrols2plugin.cpp
+++ /dev/null
@@ -1,320 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 <QtCore/qdir.h>
-#include <QtCore/qfile.h>
-#include <QtCore/qfileinfo.h>
-#include <QtCore/qpluginloader.h>
-#include <QtCore/private/qfileselector_p.h>
-#include <QtQml/qqmlfile.h>
-#include <QtQml/private/qqmldirparser_p.h>
-#include <QtQuickControls2/qquickstyle.h>
-#include <QtQuickControls2/private/qquickchecklabel_p.h>
-#include <QtQuickControls2/private/qquickcolor_p.h>
-#include <QtQuickControls2/private/qquickcolorimage_p.h>
-#include <QtQuickControls2/private/qquickiconimage_p.h>
-#include <QtQuickControls2/private/qquickmnemoniclabel_p.h>
-#include <QtQuickControls2/private/qquickpaddedrectangle_p.h>
-#include <QtQuickControls2/private/qquickplaceholdertext_p.h>
-#include <QtQuickControls2/private/qquickiconlabel_p.h>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-#include <QtQuickControls2/private/qquickstyleplugin_p.h>
-#if QT_CONFIG(quick_listview) && QT_CONFIG(quick_pathview)
-#include <QtQuickControls2/private/qquicktumblerview_p.h>
-#endif
-#include <QtQuickTemplates2/private/qquickoverlay_p.h>
-#include <QtQuickTemplates2/private/qquicksplitview_p.h>
-#include <QtQuickControls2/private/qquickclippedtext_p.h>
-#include <QtQuickControls2/private/qquickitemgroup_p.h>
-#include <QtQuickTemplates2/private/qquicktheme_p_p.h>
-
-#include "qquickdefaultbusyindicator_p.h"
-#include "qquickdefaultdial_p.h"
-#include "qquickdefaultprogressbar_p.h"
-#include "qquickdefaultstyle_p.h"
-#include "qquickdefaulttheme_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QtQuickControls2Plugin: public QQuickStylePlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtQuickControls2Plugin(QObject *parent = nullptr);
- ~QtQuickControls2Plugin();
-
- void registerTypes(const char *uri) override;
-
- QString name() const override;
- void initializeTheme(QQuickTheme *theme) override;
-
-private:
- QList<QQuickStylePlugin *> loadStylePlugins();
- QQuickTheme *createTheme(const QString &name);
-};
-
-QtQuickControls2Plugin::QtQuickControls2Plugin(QObject *parent) : QQuickStylePlugin(parent)
-{
-}
-
-QtQuickControls2Plugin::~QtQuickControls2Plugin()
-{
- QQuickStylePrivate::reset();
-}
-
-static bool isDefaultStyle(const QString &style)
-{
- return style.isEmpty() || style.compare(QStringLiteral("Default"), Qt::CaseInsensitive) == 0;
-}
-
-void QtQuickControls2Plugin::registerTypes(const char *uri)
-{
- QQuickStylePrivate::init(baseUrl());
-
- const QString style = QQuickStyle::name();
- if (!style.isEmpty())
- QFileSelectorPrivate::addStatics(QStringList() << style.toLower());
-
- QQuickTheme *theme = createTheme(style.isEmpty() ? name() : style);
- if (isDefaultStyle(style))
- initializeTheme(theme);
-
- // load the style's plugins to get access to its resources and initialize the theme
- QList<QQuickStylePlugin *> stylePlugins = loadStylePlugins();
- for (QQuickStylePlugin *stylePlugin : stylePlugins)
- stylePlugin->initializeTheme(theme);
- qDeleteAll(stylePlugins);
-
- // The minor version used to be the current Qt 5 minor. For compatibility it is the last
- // Qt 5 release.
- qmlRegisterModule(uri, 2, 15);
-
- // QtQuick.Controls 2.0 (originally introduced in Qt 5.7)
- qmlRegisterType(resolvedUrl(QStringLiteral("AbstractButton.qml")), uri, 2, 0, "AbstractButton");
- qmlRegisterType(resolvedUrl(QStringLiteral("ApplicationWindow.qml")), uri, 2, 0, "ApplicationWindow");
- qmlRegisterType(resolvedUrl(QStringLiteral("BusyIndicator.qml")), uri, 2, 0, "BusyIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("Button.qml")), uri, 2, 0, "Button");
- qmlRegisterType(resolvedUrl(QStringLiteral("ButtonGroup.qml")), uri, 2, 0, "ButtonGroup");
- qmlRegisterType(resolvedUrl(QStringLiteral("CheckBox.qml")), uri, 2, 0, "CheckBox");
- qmlRegisterType(resolvedUrl(QStringLiteral("CheckDelegate.qml")), uri, 2, 0, "CheckDelegate");
- qmlRegisterType(resolvedUrl(QStringLiteral("ComboBox.qml")), uri, 2, 0, "ComboBox");
- qmlRegisterType(resolvedUrl(QStringLiteral("Container.qml")), uri, 2, 0, "Container");
- qmlRegisterType(resolvedUrl(QStringLiteral("Control.qml")), uri, 2, 0, "Control");
- qmlRegisterType(resolvedUrl(QStringLiteral("Dial.qml")), uri, 2, 0, "Dial");
- qmlRegisterType(resolvedUrl(QStringLiteral("Drawer.qml")), uri, 2, 0, "Drawer");
- qmlRegisterType(resolvedUrl(QStringLiteral("Frame.qml")), uri, 2, 0, "Frame");
- qmlRegisterType(resolvedUrl(QStringLiteral("GroupBox.qml")), uri, 2, 0, "GroupBox");
- qmlRegisterType(resolvedUrl(QStringLiteral("ItemDelegate.qml")), uri, 2, 0, "ItemDelegate");
- qmlRegisterType(resolvedUrl(QStringLiteral("Label.qml")), uri, 2, 0, "Label");
- qmlRegisterType(resolvedUrl(QStringLiteral("Menu.qml")), uri, 2, 0, "Menu");
- qmlRegisterType(resolvedUrl(QStringLiteral("MenuItem.qml")), uri, 2, 0, "MenuItem");
- qmlRegisterType(resolvedUrl(QStringLiteral("Page.qml")), uri, 2, 0, "Page");
- qmlRegisterType(resolvedUrl(QStringLiteral("PageIndicator.qml")), uri, 2, 0, "PageIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("Pane.qml")), uri, 2, 0, "Pane");
- qmlRegisterType(resolvedUrl(QStringLiteral("Popup.qml")), uri, 2, 0, "Popup");
- qmlRegisterType(resolvedUrl(QStringLiteral("ProgressBar.qml")), uri, 2, 0, "ProgressBar");
- qmlRegisterType(resolvedUrl(QStringLiteral("RadioButton.qml")), uri, 2, 0, "RadioButton");
- qmlRegisterType(resolvedUrl(QStringLiteral("RadioDelegate.qml")), uri, 2, 0, "RadioDelegate");
- qmlRegisterType(resolvedUrl(QStringLiteral("RangeSlider.qml")), uri, 2, 0, "RangeSlider");
- qmlRegisterType(resolvedUrl(QStringLiteral("ScrollBar.qml")), uri, 2, 0, "ScrollBar");
- qmlRegisterType(resolvedUrl(QStringLiteral("ScrollIndicator.qml")), uri, 2, 0, "ScrollIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("Slider.qml")), uri, 2, 0, "Slider");
- qmlRegisterType(resolvedUrl(QStringLiteral("SpinBox.qml")), uri, 2, 0, "SpinBox");
- qmlRegisterType(resolvedUrl(QStringLiteral("StackView.qml")), uri, 2, 0, "StackView");
- qmlRegisterType(resolvedUrl(QStringLiteral("SwipeDelegate.qml")), uri, 2, 0, "SwipeDelegate");
- qmlRegisterType(resolvedUrl(QStringLiteral("SwipeView.qml")), uri, 2, 0, "SwipeView");
- qmlRegisterType(resolvedUrl(QStringLiteral("Switch.qml")), uri, 2, 0, "Switch");
- qmlRegisterType(resolvedUrl(QStringLiteral("SwitchDelegate.qml")), uri, 2, 0, "SwitchDelegate");
- qmlRegisterType(resolvedUrl(QStringLiteral("TabBar.qml")), uri, 2, 0, "TabBar");
- qmlRegisterType(resolvedUrl(QStringLiteral("TabButton.qml")), uri, 2, 0, "TabButton");
- qmlRegisterType(resolvedUrl(QStringLiteral("TextArea.qml")), uri, 2, 0, "TextArea");
- qmlRegisterType(resolvedUrl(QStringLiteral("TextField.qml")), uri, 2, 0, "TextField");
- qmlRegisterType(resolvedUrl(QStringLiteral("ToolBar.qml")), uri, 2, 0, "ToolBar");
- qmlRegisterType(resolvedUrl(QStringLiteral("ToolButton.qml")), uri, 2, 0, "ToolButton");
- qmlRegisterType(resolvedUrl(QStringLiteral("ToolTip.qml")), uri, 2, 0, "ToolTip");
-#if QT_CONFIG(quick_listview) && QT_CONFIG(quick_pathview)
- qmlRegisterType(resolvedUrl(QStringLiteral("Tumbler.qml")), uri, 2, 0, "Tumbler");
-#endif
-
- // QtQuick.Controls 2.1 (new types in Qt 5.8)
- qmlRegisterType(resolvedUrl(QStringLiteral("Dialog.qml")), uri, 2, 1, "Dialog");
- qmlRegisterType(resolvedUrl(QStringLiteral("DialogButtonBox.qml")), uri, 2, 1, "DialogButtonBox");
- qmlRegisterType(resolvedUrl(QStringLiteral("MenuSeparator.qml")), uri, 2, 1, "MenuSeparator");
- qmlRegisterType(resolvedUrl(QStringLiteral("RoundButton.qml")), uri, 2, 1, "RoundButton");
- qmlRegisterType(resolvedUrl(QStringLiteral("ToolSeparator.qml")), uri, 2, 1, "ToolSeparator");
-
- // QtQuick.Controls 2.2 (new types in Qt 5.9)
- qmlRegisterType(resolvedUrl(QStringLiteral("DelayButton.qml")), uri, 2, 2, "DelayButton");
- qmlRegisterType(resolvedUrl(QStringLiteral("ScrollView.qml")), uri, 2, 2, "ScrollView");
-
- // QtQuick.Controls 2.3 (new types in Qt 5.10)
- qmlRegisterType(resolvedUrl(QStringLiteral("Action.qml")), uri, 2, 3, "Action");
- qmlRegisterType(resolvedUrl(QStringLiteral("ActionGroup.qml")), uri, 2, 3, "ActionGroup");
- qmlRegisterType(resolvedUrl(QStringLiteral("MenuBar.qml")), uri, 2, 3, "MenuBar");
- qmlRegisterType(resolvedUrl(QStringLiteral("MenuBarItem.qml")), uri, 2, 3, "MenuBarItem");
- qmlRegisterUncreatableType<QQuickOverlay>(uri, 2, 3, "Overlay", QStringLiteral("Overlay is only available as an attached property."));
-
- // QtQuick.Controls 2.13 (new types in Qt 5.13)
- qmlRegisterType(resolvedUrl(QStringLiteral("SplitView.qml")), uri, 2, 13, "SplitView");
- qmlRegisterUncreatableType<QQuickSplitHandleAttached>(uri, 2, 13, "SplitHandle",
- QStringLiteral("SplitHandle is only available as an attached property."));
-
- // The minor version used to be the current Qt 5 minor. For compatibility it is the last
- // Qt 5 release.
- const QByteArray import = QByteArray(uri) + ".impl";
- qmlRegisterModule(import, 2, 15);
-
- // QtQuick.Controls.impl 2.0 (Qt 5.7)
- qmlRegisterType<QQuickDefaultBusyIndicator>(import, 2, 0, "BusyIndicatorImpl");
- qmlRegisterType<QQuickDefaultDial>(import, 2, 0, "DialImpl");
- qmlRegisterType<QQuickPaddedRectangle>(import, 2, 0, "PaddedRectangle");
- qmlRegisterType<QQuickDefaultProgressBar>(import, 2, 0, "ProgressBarImpl");
-
- // QtQuick.Controls.impl 2.1 (Qt 5.8)
-#if QT_CONFIG(quick_listview) && QT_CONFIG(quick_pathview)
- qmlRegisterType<QQuickTumblerView>(import, 2, 1, "TumblerView");
-#endif
- qmlRegisterSingletonType<QQuickDefaultStyle>(import, 2, 1, "Default", [](QQmlEngine *engine, QJSEngine *scriptEngine) -> QObject* {
- Q_UNUSED(engine);
- Q_UNUSED(scriptEngine);
- return new QQuickDefaultStyle;
- });
-
- // QtQuick.Controls.impl 2.2 (Qt 5.9)
- qmlRegisterType<QQuickClippedText>(import, 2, 2, "ClippedText");
- qmlRegisterType<QQuickItemGroup>(import, 2, 2, "ItemGroup");
- qmlRegisterType<QQuickPlaceholderText>(import, 2, 2, "PlaceholderText");
-
- // QtQuick.Controls.impl 2.3 (Qt 5.10)
- qmlRegisterType<QQuickColorImage>(import, 2, 3, "ColorImage");
- qmlRegisterType<QQuickIconImage>(import, 2, 3, "IconImage");
- qmlRegisterSingletonType<QQuickColor>(import, 2, 3, "Color", [](QQmlEngine *engine, QJSEngine *scriptEngine) -> QObject* {
- Q_UNUSED(engine);
- Q_UNUSED(scriptEngine);
- return new QQuickColor;
- });
- qmlRegisterType<QQuickIconLabel>(import, 2, 3, "IconLabel");
- qmlRegisterType<QQuickCheckLabel>(import, 2, 3, "CheckLabel");
- qmlRegisterType<QQuickMnemonicLabel>(import, 2, 3, "MnemonicLabel");
- qmlRegisterRevision<QQuickText, 6>(import, 2, 3);
-}
-
-QString QtQuickControls2Plugin::name() const
-{
- return QStringLiteral("Default");
-}
-
-void QtQuickControls2Plugin::initializeTheme(QQuickTheme *theme)
-{
- QQuickDefaultTheme::initialize(theme);
-}
-
-QList<QQuickStylePlugin *> QtQuickControls2Plugin::loadStylePlugins()
-{
- QList<QQuickStylePlugin *> stylePlugins;
-
- QFileInfo fileInfo = QQmlFile::urlToLocalFileOrQrc(resolvedUrl(QStringLiteral("qmldir")));
- if (fileInfo.exists() && fileInfo.path() != QQmlFile::urlToLocalFileOrQrc(baseUrl())) {
- QFile file(fileInfo.filePath());
- if (file.open(QIODevice::ReadOnly | QIODevice::Text)) {
- QQmlDirParser parser;
- parser.parse(QString::fromUtf8(file.readAll()));
- if (!parser.hasError()) {
-#ifdef QT_STATIC
- const auto plugins = QPluginLoader::staticInstances();
- for (QObject *instance : plugins) {
- QQuickStylePlugin *stylePlugin = qobject_cast<QQuickStylePlugin *>(instance);
- if (!stylePlugin || parser.className() != QLatin1String(instance->metaObject()->className()))
- continue;
- stylePlugins += stylePlugin;
- }
-#elif QT_CONFIG(library)
- QPluginLoader loader;
- const auto plugins = parser.plugins();
- for (const QQmlDirParser::Plugin &plugin : plugins) {
- QDir dir = fileInfo.dir();
- if (!plugin.path.isEmpty() && !dir.cd(plugin.path))
- continue;
- QString filePath = dir.filePath(plugin.name);
-#if defined(Q_OS_MACOS) && defined(QT_DEBUG)
- // Avoid mismatching plugins on macOS so that we don't end up loading both debug and
- // release versions of the same Qt libraries (due to the plugin's dependencies).
- filePath += QStringLiteral("_debug");
-#endif // Q_OS_MACOS && QT_DEBUG
-#if defined(Q_OS_WIN) && defined(QT_DEBUG)
- // Debug versions of plugins have a "d" prefix on Windows.
- filePath += QLatin1Char('d');
-#endif // Q_OS_WIN && QT_DEBUG
- loader.setFileName(filePath);
- QQuickStylePlugin *stylePlugin = qobject_cast<QQuickStylePlugin *>(loader.instance());
- if (stylePlugin)
- stylePlugins += stylePlugin;
- }
-#endif
- }
- }
- }
- return stylePlugins;
-}
-
-QQuickTheme *QtQuickControls2Plugin::createTheme(const QString &name)
-{
- QQuickTheme *theme = new QQuickTheme;
-#if QT_CONFIG(settings)
- QQuickThemePrivate *p = QQuickThemePrivate::get(theme);
- QSharedPointer<QSettings> settings = QQuickStylePrivate::settings(name);
- if (settings) {
- p->defaultFont.reset(QQuickStylePrivate::readFont(settings));
- // Set the default font as the System scope, because that's what
- // QQuickControlPrivate::parentFont() uses as its fallback if no
- // parent item has a font explicitly set. QQuickControlPrivate::parentFont()
- // is used as the starting point for font inheritance/resolution.
- // The same goes for palettes below.
- theme->setFont(QQuickTheme::System, *p->defaultFont);
-
- p->defaultPalette.reset(QQuickStylePrivate::readPalette(settings));
- theme->setPalette(QQuickTheme::System, *p->defaultPalette);
- }
-#endif
- QQuickThemePrivate::instance.reset(theme);
- return theme;
-}
-
-QT_END_NAMESPACE
-
-#include "qtquickcontrols2plugin.moc"
diff --git a/src/imports/controls/qtquickcontrols2plugin.qrc b/src/imports/controls/qtquickcontrols2plugin.qrc
deleted file mode 100644
index c2dd9d39..00000000
--- a/src/imports/controls/qtquickcontrols2plugin.qrc
+++ /dev/null
@@ -1,24 +0,0 @@
-<RCC>
- <qresource prefix="/qt-project.org/imports/QtQuick/Controls.2">
- <file>images/arrow-indicator.png</file>
- <file>images/arrow-indicator@2x.png</file>
- <file>images/arrow-indicator@3x.png</file>
- <file>images/arrow-indicator@4x.png</file>
- <file>images/check.png</file>
- <file>images/check@2x.png</file>
- <file>images/check@3x.png</file>
- <file>images/check@4x.png</file>
- <file>images/dial-indicator.png</file>
- <file>images/dial-indicator@2x.png</file>
- <file>images/dial-indicator@3x.png</file>
- <file>images/dial-indicator@4x.png</file>
- <file>images/drop-indicator.png</file>
- <file>images/drop-indicator@2x.png</file>
- <file>images/drop-indicator@3x.png</file>
- <file>images/drop-indicator@4x.png</file>
- <file>images/double-arrow.png</file>
- <file>images/double-arrow@2x.png</file>
- <file>images/double-arrow@3x.png</file>
- <file>images/double-arrow@4x.png</file>
- </qresource>
-</RCC>
diff --git a/src/imports/controls/universal/ApplicationWindow.qml b/src/imports/controls/universal/ApplicationWindow.qml
deleted file mode 100644
index 153b9e8e..00000000
--- a/src/imports/controls/universal/ApplicationWindow.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.ApplicationWindow {
- id: window
-
- color: Universal.background
-
- overlay.modal: Rectangle {
- color: window.Universal.baseLowColor
- }
-
- overlay.modeless: Rectangle {
- color: window.Universal.baseLowColor
- }
-
- FocusRectangle {
- parent: window.activeFocusControl
- width: parent ? parent.width : 0
- height: parent ? parent.height : 0
- visible: parent && !!parent.useSystemFocusVisuals && !!parent.visualFocus
- }
-}
diff --git a/src/imports/controls/universal/BusyIndicator.qml b/src/imports/controls/universal/BusyIndicator.qml
deleted file mode 100644
index 2ad21b46..00000000
--- a/src/imports/controls/universal/BusyIndicator.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.BusyIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- contentItem: BusyIndicatorImpl {
- implicitWidth: 20
- implicitHeight: 20
-
- readonly property real size: Math.min(control.availableWidth, control.availableHeight)
-
- count: size < 60 ? 5 : 6 // "Small" vs. "Large"
- color: control.Universal.accent
- visible: control.running
- }
-}
diff --git a/src/imports/controls/universal/Button.qml b/src/imports/controls/universal/Button.qml
deleted file mode 100644
index 657b2835..00000000
--- a/src/imports/controls/universal/Button.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.Button {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 8
- verticalPadding: padding - 4
- spacing: 8
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(Universal.foreground, enabled ? 1.0 : 0.2)
-
- property bool useSystemFocusVisuals: true
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.Universal.foreground, enabled ? 1.0 : 0.2)
- }
-
- background: Rectangle {
- implicitWidth: 32
- implicitHeight: 32
-
- visible: !control.flat || control.down || control.checked || control.highlighted
- color: control.down ? control.Universal.baseMediumLowColor :
- control.enabled && (control.highlighted || control.checked) ? control.Universal.accent :
- control.Universal.baseLowColor
-
- Rectangle {
- width: parent.width
- height: parent.height
- color: "transparent"
- visible: control.hovered
- border.width: 2 // ButtonBorderThemeThickness
- border.color: control.Universal.baseMediumLowColor
- }
- }
-}
diff --git a/src/imports/controls/universal/CheckBox.qml b/src/imports/controls/universal/CheckBox.qml
deleted file mode 100644
index 9494f4d2..00000000
--- a/src/imports/controls/universal/CheckBox.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.CheckBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 8
-
- property bool useSystemFocusVisuals: true
-
- indicator: CheckIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
-
- opacity: enabled ? 1.0 : 0.2
- color: control.Universal.foreground
- }
-}
diff --git a/src/imports/controls/universal/CheckDelegate.qml b/src/imports/controls/universal/CheckDelegate.qml
deleted file mode 100644
index b544c42e..00000000
--- a/src/imports/controls/universal/CheckDelegate.qml
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.CheckDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12
-
- padding: 12
- topPadding: padding - 1
- bottomPadding: padding + 1
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(Universal.foreground, enabled ? 1.0 : 0.2)
-
- indicator: CheckIndicator {
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: IconLabel {
- leftPadding: !control.mirrored ? 0 : control.indicator.width + control.spacing
- rightPadding: control.mirrored ? 0 : control.indicator.width + control.spacing
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.Universal.foreground, enabled ? 1.0 : 0.2)
- }
-
- background: Rectangle {
- visible: control.down || control.highlighted || control.visualFocus || control.hovered
- color: control.down ? control.Universal.listMediumColor :
- control.hovered ? control.Universal.listLowColor : control.Universal.altMediumLowColor
- Rectangle {
- width: parent.width
- height: parent.height
- visible: control.visualFocus || control.highlighted
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
- }
-
- }
-}
diff --git a/src/imports/controls/universal/CheckIndicator.qml b/src/imports/controls/universal/CheckIndicator.qml
deleted file mode 100644
index 8f41617a..00000000
--- a/src/imports/controls/universal/CheckIndicator.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-Rectangle {
- id: indicator
- implicitWidth: 20
- implicitHeight: 20
-
- color: !control.enabled ? "transparent" :
- control.down && !partiallyChecked ? control.Universal.baseMediumColor :
- control.checkState === Qt.Checked ? control.Universal.accent : "transparent"
- border.color: !control.enabled ? control.Universal.baseLowColor :
- control.down ? control.Universal.baseMediumColor :
- control.checked ? control.Universal.accent : control.Universal.baseMediumHighColor
- border.width: 2 // CheckBoxBorderThemeThickness
-
- property Item control
- readonly property bool partiallyChecked: control.checkState === Qt.PartiallyChecked
-
- ColorImage {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
-
- visible: indicator.control.checkState === Qt.Checked
- color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor : indicator.control.Universal.chromeWhiteColor
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Universal/images/checkmark.png"
- }
-
- Rectangle {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: indicator.partiallyChecked ? parent.width / 2 : parent.width
- height: indicator.partiallyChecked ? parent.height / 2 : parent.height
-
- visible: !indicator.control.pressed && indicator.control.hovered || indicator.partiallyChecked
- color: !indicator.partiallyChecked ? "transparent" :
- !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
- indicator.control.down ? indicator.control.Universal.baseMediumColor :
- indicator.control.hovered ? indicator.control.Universal.baseHighColor : indicator.control.Universal.baseMediumHighColor
- border.width: indicator.partiallyChecked ? 0 : 2 // CheckBoxBorderThemeThickness
- border.color: indicator.control.Universal.baseMediumLowColor
- }
-}
diff --git a/src/imports/controls/universal/ComboBox.qml b/src/imports/controls/universal/ComboBox.qml
deleted file mode 100644
index 9a4e119b..00000000
--- a/src/imports/controls/universal/ComboBox.qml
+++ /dev/null
@@ -1,158 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.14
-import QtQuick.Window 2.14
-import QtQuick.Controls 2.14
-import QtQuick.Controls.impl 2.14
-import QtQuick.Templates 2.14 as T
-import QtQuick.Controls.Universal 2.14
-
-T.ComboBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- leftPadding: padding + (!control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
- rightPadding: padding + (control.mirrored || !indicator || !indicator.visible ? 0 : indicator.width + spacing)
-
- Universal.theme: editable && activeFocus ? Universal.Light : undefined
-
- delegate: ItemDelegate {
- width: parent.width
- text: control.textRole ? (Array.isArray(control.model) ? modelData[control.textRole] : model[control.textRole]) : modelData
- font.weight: control.currentIndex === index ? Font.DemiBold : Font.Normal
- highlighted: control.highlightedIndex === index
- hoverEnabled: control.hoverEnabled
- }
-
- indicator: ColorImage {
- x: control.mirrored ? control.padding : control.width - width - control.padding
- y: control.topPadding + (control.availableHeight - height) / 2
- color: !control.enabled ? control.Universal.baseLowColor : control.Universal.baseMediumHighColor
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Universal/images/downarrow.png"
-
- Rectangle {
- z: -1
- width: parent.width
- height: parent.height
- color: control.activeFocus ? control.Universal.accent :
- control.pressed ? control.Universal.baseMediumLowColor :
- control.hovered ? control.Universal.baseLowColor : "transparent"
- visible: control.editable && !contentItem.hovered && (control.pressed || control.hovered)
- opacity: control.activeFocus && !control.pressed ? 0.4 : 1.0
- }
- }
-
- contentItem: T.TextField {
- leftPadding: control.mirrored ? 1 : 12
- rightPadding: control.mirrored ? 10 : 1
- topPadding: 5 - control.topPadding
- bottomPadding: 7 - control.bottomPadding
-
- text: control.editable ? control.editText : control.displayText
-
- enabled: control.editable
- autoScroll: control.editable
- readOnly: control.down
- inputMethodHints: control.inputMethodHints
- validator: control.validator
-
- font: control.font
- color: !control.enabled ? control.Universal.chromeDisabledLowColor :
- control.editable && control.activeFocus ? control.Universal.chromeBlackHighColor : control.Universal.foreground
- selectionColor: control.Universal.accent
- selectedTextColor: control.Universal.chromeWhiteColor
- verticalAlignment: Text.AlignVCenter
- }
-
- background: Rectangle {
- implicitWidth: 120
- implicitHeight: 32
-
- border.width: control.flat ? 0 : 2 // ComboBoxBorderThemeThickness
- border.color: !control.enabled ? control.Universal.baseLowColor :
- control.editable && control.activeFocus ? control.Universal.accent :
- control.down ? control.Universal.baseMediumLowColor :
- control.hovered ? control.Universal.baseMediumColor : control.Universal.baseMediumLowColor
- color: !control.enabled ? control.Universal.baseLowColor :
- control.down ? control.Universal.listMediumColor :
- control.flat && control.hovered ? control.Universal.listLowColor :
- control.editable && control.activeFocus ? control.Universal.background : control.Universal.altMediumLowColor
- visible: !control.flat || control.pressed || control.hovered || control.visualFocus
-
- Rectangle {
- x: 2
- y: 2
- width: parent.width - 4
- height: parent.height - 4
-
- visible: control.visualFocus && !control.editable
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
- }
- }
-
- popup: T.Popup {
- width: control.width
- height: Math.min(contentItem.implicitHeight, control.Window.height - topMargin - bottomMargin)
- topMargin: 8
- bottomMargin: 8
-
- Universal.theme: control.Universal.theme
- Universal.accent: control.Universal.accent
-
- contentItem: ListView {
- clip: true
- implicitHeight: contentHeight
- model: control.delegateModel
- currentIndex: control.highlightedIndex
- highlightMoveDuration: 0
-
- T.ScrollIndicator.vertical: ScrollIndicator { }
- }
-
- background: Rectangle {
- color: control.Universal.chromeMediumLowColor
- border.color: control.Universal.chromeHighColor
- border.width: 1 // FlyoutBorderThemeThickness
- }
- }
-}
diff --git a/src/imports/controls/universal/DelayButton.qml b/src/imports/controls/universal/DelayButton.qml
deleted file mode 100644
index 2a3a3b3a..00000000
--- a/src/imports/controls/universal/DelayButton.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.DelayButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 8
- verticalPadding: padding - 4
-
- property bool useSystemFocusVisuals: true
-
- transition: Transition {
- NumberAnimation {
- duration: control.delay * (control.pressed ? 1.0 - control.progress : 0.3 * control.progress)
- }
- }
-
- contentItem: Text {
- text: control.text
- font: control.font
- elide: Text.ElideRight
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
-
- opacity: enabled ? 1.0 : 0.2
- color: control.Universal.foreground
- }
-
- background: Rectangle {
- implicitWidth: 32
- implicitHeight: 32
-
- color: control.down ? control.Universal.baseMediumLowColor :
- control.enabled && control.checked ? control.Universal.accent : control.Universal.baseLowColor
-
- Rectangle {
- visible: !control.checked
- width: parent.width * control.progress
- height: parent.height
- color: control.Universal.accent
- }
-
- Rectangle {
- width: parent.width
- height: parent.height
- color: "transparent"
- visible: control.hovered
- border.width: 2 // ButtonBorderThemeThickness
- border.color: control.Universal.baseMediumLowColor
- }
- }
-}
diff --git a/src/imports/controls/universal/Dial.qml b/src/imports/controls/universal/Dial.qml
deleted file mode 100644
index f45d912e..00000000
--- a/src/imports/controls/universal/Dial.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.Dial {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 100 // ### remove 100 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 100 // ### remove 100 in Qt 6
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 100
-
- x: control.width / 2 - width / 2
- y: control.height / 2 - height / 2
- width: Math.max(64, Math.min(control.width, control.height))
- height: width
- radius: width / 2
- color: "transparent"
- border.color: !control.enabled ? control.Universal.baseLowColor : control.Universal.baseMediumColor
- border.width: 2
- }
-
- handle: Rectangle {
- implicitWidth: 14
- implicitHeight: 14
-
- x: control.background.x + control.background.width / 2 - control.handle.width / 2
- y: control.background.y + control.background.height / 2 - control.handle.height / 2
-
- radius: width / 2
- color: !control.enabled ? control.Universal.baseLowColor :
- control.pressed ? control.Universal.baseMediumColor :
- control.hovered ? control.Universal.baseHighColor : control.Universal.baseMediumHighColor
-
- transform: [
- Translate {
- y: -control.background.height * 0.4 + control.handle.height / 2
- },
- Rotation {
- angle: control.angle
- origin.x: control.handle.width / 2
- origin.y: control.handle.height / 2
- }
- ]
- }
-}
diff --git a/src/imports/controls/universal/Dialog.qml b/src/imports/controls/universal/Dialog.qml
deleted file mode 100644
index 6151d090..00000000
--- a/src/imports/controls/universal/Dialog.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.Dialog {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- padding: 24
- verticalPadding: 18
-
- background: Rectangle {
- color: control.Universal.chromeMediumLowColor
- border.color: control.Universal.chromeHighColor
- border.width: 1 // FlyoutBorderThemeThickness
- }
-
- header: Label {
- text: control.title
- visible: control.title
- elide: Label.ElideRight
- topPadding: 18
- leftPadding: 24
- rightPadding: 24
- // TODO: QPlatformTheme::TitleBarFont
- font.pixelSize: 20
- background: Rectangle {
- x: 1; y: 1 // // FlyoutBorderThemeThickness
- color: control.Universal.chromeMediumLowColor
- width: parent.width - 2
- height: parent.height - 1
- }
- }
-
- footer: DialogButtonBox {
- visible: count > 0
- }
-
- T.Overlay.modal: Rectangle {
- color: control.Universal.baseLowColor
- }
-
- T.Overlay.modeless: Rectangle {
- color: control.Universal.baseLowColor
- }
-}
diff --git a/src/imports/controls/universal/DialogButtonBox.qml b/src/imports/controls/universal/DialogButtonBox.qml
deleted file mode 100644
index 0458c39d..00000000
--- a/src/imports/controls/universal/DialogButtonBox.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.DialogButtonBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- (control.count === 1 ? implicitContentWidth * 2 : implicitContentWidth) + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
- contentWidth: contentItem.contentWidth
-
- spacing: 4
- padding: 24
- topPadding: position === T.DialogButtonBox.Footer ? 6 : 24
- bottomPadding: position === T.DialogButtonBox.Header ? 6 : 24
- alignment: count === 1 ? Qt.AlignRight : undefined
-
- delegate: Button {
- width: control.count === 1 ? control.availableWidth / 2 : undefined
- }
-
- contentItem: ListView {
- model: control.contentModel
- spacing: control.spacing
- orientation: ListView.Horizontal
- boundsBehavior: Flickable.StopAtBounds
- snapMode: ListView.SnapToItem
- }
-
- background: Rectangle {
- implicitHeight: 32
- color: control.Universal.chromeMediumLowColor
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
- }
-}
diff --git a/src/imports/controls/universal/Drawer.qml b/src/imports/controls/universal/Drawer.qml
deleted file mode 100644
index 7ec1d7f8..00000000
--- a/src/imports/controls/universal/Drawer.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.Drawer {
- id: control
-
- parent: T.Overlay.overlay
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- topPadding: control.edge === Qt.BottomEdge
- leftPadding: control.edge === Qt.RightEdge
- rightPadding: control.edge === Qt.LeftEdge
- bottomPadding: control.edge === Qt.TopEdge
-
- enter: Transition { SmoothedAnimation { velocity: 5 } }
- exit: Transition { SmoothedAnimation { velocity: 5 } }
-
- background: Rectangle {
- color: control.Universal.chromeMediumLowColor
- Rectangle {
- readonly property bool horizontal: control.edge === Qt.LeftEdge || control.edge === Qt.RightEdge
- width: horizontal ? 1 : parent.width
- height: horizontal ? parent.height : 1
- color: control.Universal.chromeHighColor
- x: control.edge === Qt.LeftEdge ? parent.width - 1 : 0
- y: control.edge === Qt.TopEdge ? parent.height - 1 : 0
- }
- }
-
- T.Overlay.modal: Rectangle {
- color: control.Universal.baseLowColor
- }
-
- T.Overlay.modeless: Rectangle {
- color: control.Universal.baseLowColor
- }
-}
diff --git a/src/imports/controls/universal/Frame.qml b/src/imports/controls/universal/Frame.qml
deleted file mode 100644
index 8bb44849..00000000
--- a/src/imports/controls/universal/Frame.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.Frame {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
-
- background: Rectangle {
- color: "transparent"
- border.color: control.Universal.chromeDisabledLowColor
- }
-}
diff --git a/src/imports/controls/universal/GroupBox.qml b/src/imports/controls/universal/GroupBox.qml
deleted file mode 100644
index dc156dd7..00000000
--- a/src/imports/controls/universal/GroupBox.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.GroupBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitLabelWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- spacing: 12
- padding: 12
- topPadding: padding + (implicitLabelWidth > 0 ? implicitLabelHeight + spacing : 0)
-
- label: Text {
- x: control.leftPadding
- width: control.availableWidth
-
- text: control.title
- font: control.font
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
-
- opacity: enabled ? 1.0 : 0.2
- color: control.Universal.foreground
- }
-
- background: Rectangle {
- y: control.topPadding - control.bottomPadding
- width: parent.width
- height: parent.height - control.topPadding + control.bottomPadding
-
- color: "transparent"
- border.color: control.Universal.chromeDisabledLowColor
- }
-}
diff --git a/src/imports/controls/universal/ItemDelegate.qml b/src/imports/controls/universal/ItemDelegate.qml
deleted file mode 100644
index ed985405..00000000
--- a/src/imports/controls/universal/ItemDelegate.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.ItemDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12
-
- padding: 12
- topPadding: padding - 1
- bottomPadding: padding + 1
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(Universal.foreground, enabled ? 1.0 : 0.2)
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.Universal.foreground, enabled ? 1.0 : 0.2)
- }
-
- background: Rectangle {
- visible: control.down || control.highlighted || control.visualFocus || control.hovered
- color: control.down ? control.Universal.listMediumColor :
- control.hovered ? control.Universal.listLowColor : control.Universal.altMediumLowColor
- Rectangle {
- width: parent.width
- height: parent.height
- visible: control.visualFocus || control.highlighted
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
- }
-
- }
-}
diff --git a/src/imports/controls/universal/Label.qml b/src/imports/controls/universal/Label.qml
deleted file mode 100644
index c66435c3..00000000
--- a/src/imports/controls/universal/Label.qml
+++ /dev/null
@@ -1,47 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.Label {
- id: control
-
- opacity: enabled ? 1.0 : 0.2
- color: control.Universal.foreground
- linkColor: Universal.accent
-}
diff --git a/src/imports/controls/universal/Menu.qml b/src/imports/controls/universal/Menu.qml
deleted file mode 100644
index 619cfa40..00000000
--- a/src/imports/controls/universal/Menu.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Window 2.12
-
-T.Menu {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- margins: 0
- overlap: 1
-
- delegate: MenuItem { }
-
- contentItem: ListView {
- implicitHeight: contentHeight
- model: control.contentModel
- interactive: Window.window ? contentHeight > Window.window.height : false
- clip: true
- currentIndex: control.currentIndex
-
- ScrollIndicator.vertical: ScrollIndicator {}
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
- color: control.Universal.chromeMediumLowColor
- border.color: control.Universal.chromeHighColor
- border.width: 1 // FlyoutBorderThemeThickness
- }
-
- T.Overlay.modal: Rectangle {
- color: control.Universal.baseLowColor
- }
-
- T.Overlay.modeless: Rectangle {
- color: control.Universal.baseLowColor
- }
-}
diff --git a/src/imports/controls/universal/MenuBar.qml b/src/imports/controls/universal/MenuBar.qml
deleted file mode 100644
index 2317f505..00000000
--- a/src/imports/controls/universal/MenuBar.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.MenuBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- delegate: MenuBarItem { }
-
- contentItem: Row {
- spacing: control.spacing
- Repeater {
- model: control.contentModel
- }
- }
-
- background: Rectangle {
- implicitHeight: 40
- color: control.Universal.chromeMediumColor
- }
-}
diff --git a/src/imports/controls/universal/MenuBarItem.qml b/src/imports/controls/universal/MenuBarItem.qml
deleted file mode 100644
index 30f1fc57..00000000
--- a/src/imports/controls/universal/MenuBarItem.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.MenuBarItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 12
- topPadding: padding - 1
- bottomPadding: padding + 1
- spacing: 12
-
- icon.width: 20
- icon.height: 20
- icon.color: !enabled ? Universal.baseLowColor : Universal.baseHighColor
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: !control.enabled ? control.Universal.baseLowColor : control.Universal.baseHighColor
- }
-
- background: Rectangle {
- implicitWidth: 40
- implicitHeight: 40
-
- color: !control.enabled ? control.Universal.baseLowColor :
- control.down ? control.Universal.listMediumColor :
- control.highlighted ? control.Universal.listLowColor : "transparent"
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
-
- visible: control.visualFocus
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
- }
- }
-}
diff --git a/src/imports/controls/universal/MenuItem.qml b/src/imports/controls/universal/MenuItem.qml
deleted file mode 100644
index 23d0ee3c..00000000
--- a/src/imports/controls/universal/MenuItem.qml
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.MenuItem {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 12
- topPadding: padding - 1
- bottomPadding: padding + 1
- spacing: 12
-
- icon.width: 20
- icon.height: 20
- icon.color: !enabled ? Universal.baseLowColor : Universal.baseHighColor
-
- contentItem: IconLabel {
- readonly property real arrowPadding: control.subMenu && control.arrow ? control.arrow.width + control.spacing : 0
- readonly property real indicatorPadding: control.checkable && control.indicator ? control.indicator.width + control.spacing : 0
- leftPadding: !control.mirrored ? indicatorPadding : arrowPadding
- rightPadding: control.mirrored ? indicatorPadding : arrowPadding
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: !control.enabled ? control.Universal.baseLowColor : control.Universal.baseHighColor
- }
-
- arrow: ColorImage {
- x: control.mirrored ? control.leftPadding : control.width - width - control.rightPadding
- y: control.topPadding + (control.availableHeight - height) / 2
-
- visible: control.subMenu
- mirror: control.mirrored
- color: !enabled ? control.Universal.baseLowColor : control.Universal.baseHighColor
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Universal/images/rightarrow.png"
- }
-
- indicator: ColorImage {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
-
- visible: control.checked
- color: !control.enabled ? control.Universal.baseLowColor : control.down ? control.Universal.baseHighColor : control.Universal.baseMediumHighColor
- source: !control.checkable ? "" : "qrc:/qt-project.org/imports/QtQuick/Controls.2/Universal/images/checkmark.png"
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 40
-
- color: !control.enabled ? control.Universal.baseLowColor :
- control.down ? control.Universal.listMediumColor :
- control.highlighted ? control.Universal.listLowColor : control.Universal.altMediumLowColor
-
- Rectangle {
- x: 1; y: 1
- width: parent.width - 2
- height: parent.height - 2
-
- visible: control.visualFocus
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
- }
- }
-}
diff --git a/src/imports/controls/universal/MenuSeparator.qml b/src/imports/controls/universal/MenuSeparator.qml
deleted file mode 100644
index 72f9f6f7..00000000
--- a/src/imports/controls/universal/MenuSeparator.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.MenuSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 12
- topPadding: 9
- bottomPadding: 10
-
- contentItem: Rectangle {
- implicitWidth: 188
- implicitHeight: 1
- color: control.Universal.baseMediumLowColor
- }
-
- background: Rectangle {
- color: control.Universal.altMediumLowColor
- }
-}
diff --git a/src/imports/controls/universal/Page.qml b/src/imports/controls/universal/Page.qml
deleted file mode 100644
index 347d6d9a..00000000
--- a/src/imports/controls/universal/Page.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.Page {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding,
- implicitHeaderWidth,
- implicitFooterWidth)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding
- + (implicitHeaderHeight > 0 ? implicitHeaderHeight + spacing : 0)
- + (implicitFooterHeight > 0 ? implicitFooterHeight + spacing : 0))
-
- background: Rectangle {
- color: control.Universal.background
- }
-}
diff --git a/src/imports/controls/universal/PageIndicator.qml b/src/imports/controls/universal/PageIndicator.qml
deleted file mode 100644
index 3dcc84ab..00000000
--- a/src/imports/controls/universal/PageIndicator.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.PageIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 7
-
- delegate: Rectangle {
- implicitWidth: 5
- implicitHeight: 5
-
- radius: width / 2
- color: index === control.currentIndex ? control.Universal.baseMediumHighColor :
- pressed ? control.Universal.baseMediumLowColor : control.Universal.baseLowColor
- }
-
- contentItem: Row {
- spacing: control.spacing
-
- Repeater {
- model: control.count
- delegate: control.delegate
- }
- }
-}
diff --git a/src/imports/controls/universal/Pane.qml b/src/imports/controls/universal/Pane.qml
deleted file mode 100644
index 63a5ecec..00000000
--- a/src/imports/controls/universal/Pane.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.Pane {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
-
- background: Rectangle {
- color: control.Universal.background
- }
-}
diff --git a/src/imports/controls/universal/Popup.qml b/src/imports/controls/universal/Popup.qml
deleted file mode 100644
index e39134e1..00000000
--- a/src/imports/controls/universal/Popup.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.Popup {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- padding: 12
-
- background: Rectangle {
- color: control.Universal.chromeMediumLowColor
- border.color: control.Universal.chromeHighColor
- border.width: 1 // FlyoutBorderThemeThickness
- }
-
- T.Overlay.modal: Rectangle {
- color: control.Universal.baseLowColor
- }
-
- T.Overlay.modeless: Rectangle {
- color: control.Universal.baseLowColor
- }
-}
diff --git a/src/imports/controls/universal/ProgressBar.qml b/src/imports/controls/universal/ProgressBar.qml
deleted file mode 100644
index ce79bd54..00000000
--- a/src/imports/controls/universal/ProgressBar.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.ProgressBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- contentItem: ProgressBarImpl {
- implicitHeight: 10
-
- scale: control.mirrored ? -1 : 1
- color: control.Universal.accent
- progress: control.position
- indeterminate: control.visible && control.indeterminate
- }
-
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 10
- y: (control.height - height) / 2
- height: 10
-
- visible: !control.indeterminate
- color: control.Universal.baseLowColor
- }
-}
diff --git a/src/imports/controls/universal/README.md b/src/imports/controls/universal/README.md
deleted file mode 100644
index 8d02d18b..00000000
--- a/src/imports/controls/universal/README.md
+++ /dev/null
@@ -1,9 +0,0 @@
-# Universal Style
-
-This style is based on the [Microsoft Universal Design Guidelines](https://dev.windows.com/design).
-
-The colors and metrics used all around the QML and C++ files originate from the Windows 10 SDK. The files are called **generic.xaml** and **themeresources.xml**, and they are located in the following folder:
-
- \(Program Files)\Windows Kits\10\DesignTime\CommonConfiguration\Neutral\UAP\<SDK version>\Generic
-
-See also [XAML theme resources](https://msdn.microsoft.com/en-us/library/windows/apps/mt187274.aspx).
diff --git a/src/imports/controls/universal/RadioButton.qml b/src/imports/controls/universal/RadioButton.qml
deleted file mode 100644
index a50cdf9b..00000000
--- a/src/imports/controls/universal/RadioButton.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.RadioButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 8
-
- property bool useSystemFocusVisuals: true
-
- indicator: RadioIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
-
- opacity: enabled ? 1.0 : 0.2
- color: control.Universal.foreground
- }
-}
diff --git a/src/imports/controls/universal/RadioDelegate.qml b/src/imports/controls/universal/RadioDelegate.qml
deleted file mode 100644
index 9fc910f3..00000000
--- a/src/imports/controls/universal/RadioDelegate.qml
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.RadioDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12
-
- padding: 12
- topPadding: padding - 1
- bottomPadding: padding + 1
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(Universal.foreground, enabled ? 1.0 : 0.2)
-
- indicator: RadioIndicator {
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: IconLabel {
- leftPadding: !control.mirrored ? 0 : control.indicator.width + control.spacing
- rightPadding: control.mirrored ? 0 : control.indicator.width + control.spacing
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.Universal.foreground, enabled ? 1.0 : 0.2)
- }
-
- background: Rectangle {
- visible: control.down || control.highlighted || control.visualFocus || control.hovered
- color: control.down ? control.Universal.listMediumColor :
- control.hovered ? control.Universal.listLowColor : control.Universal.altMediumLowColor
- Rectangle {
- width: parent.width
- height: parent.height
- visible: control.visualFocus || control.highlighted
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
- }
-
- }
-}
diff --git a/src/imports/controls/universal/RadioIndicator.qml b/src/imports/controls/universal/RadioIndicator.qml
deleted file mode 100644
index 1a32decb..00000000
--- a/src/imports/controls/universal/RadioIndicator.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls.Universal 2.12
-
-Rectangle {
- id: indicator
- implicitWidth: 20
- implicitHeight: 20
- radius: width / 2
- color: "transparent"
- border.width: 2 // RadioButtonBorderThemeThickness
- border.color: control.checked ? "transparent" :
- !control.enabled ? control.Universal.baseLowColor :
- control.down ? control.Universal.baseMediumColor :
- control.hovered ? control.Universal.baseHighColor : control.Universal.baseMediumHighColor
-
- property var control
-
- Rectangle {
- id: checkOuterEllipse
- width: parent.width
- height: parent.height
-
- radius: width / 2
- opacity: indicator.control.checked ? 1 : 0
- color: "transparent"
- border.width: 2 // RadioButtonBorderThemeThickness
- border.color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
- indicator.control.down ? indicator.control.Universal.baseMediumColor : indicator.control.Universal.accent
- }
-
- Rectangle {
- id: checkGlyph
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: parent.width / 2
- height: parent.height / 2
-
- radius: width / 2
- opacity: indicator.control.checked ? 1 : 0
- color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
- indicator.control.down ? indicator.control.Universal.baseMediumColor :
- indicator.control.hovered ? indicator.control.Universal.baseHighColor : indicator.control.Universal.baseMediumHighColor
- }
-}
diff --git a/src/imports/controls/universal/RangeSlider.qml b/src/imports/controls/universal/RangeSlider.qml
deleted file mode 100644
index f2e4d71e..00000000
--- a/src/imports/controls/universal/RangeSlider.qml
+++ /dev/null
@@ -1,109 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.RangeSlider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- first.implicitHandleWidth + leftPadding + rightPadding,
- second.implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- first.implicitHandleHeight + topPadding + bottomPadding,
- second.implicitHandleHeight + topPadding + bottomPadding)
-
- padding: 6
-
- first.handle: Rectangle {
- implicitWidth: control.horizontal ? 8 : 24
- implicitHeight: control.horizontal ? 24 : 8
-
- x: control.leftPadding + (control.horizontal ? control.first.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.first.visualPosition * (control.availableHeight - height))
-
- radius: 4
- color: control.first.pressed ? control.Universal.chromeHighColor :
- control.first.hovered ? control.Universal.chromeAltLowColor :
- control.enabled ? control.Universal.accent : control.Universal.chromeDisabledHighColor
- }
-
- second.handle: Rectangle {
- implicitWidth: control.horizontal ? 8 : 24
- implicitHeight: control.horizontal ? 24 : 8
-
- x: control.leftPadding + (control.horizontal ? control.second.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.second.visualPosition * (control.availableHeight - height))
-
- radius: 4
- color: control.second.pressed ? control.Universal.chromeHighColor :
- control.second.hovered ? control.Universal.chromeAltLowColor :
- control.enabled ? control.Universal.accent : control.Universal.chromeDisabledHighColor
- }
-
- background: Item {
- implicitWidth: control.horizontal ? 200 : 18
- implicitHeight: control.horizontal ? 18 : 200
-
- x: control.leftPadding + (control.horizontal ? 0 : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : 0)
- width: control.horizontal ? control.availableWidth : implicitWidth
- height: control.horizontal ? implicitHeight : control.availableHeight
-
- scale: control.horizontal && control.mirrored ? -1 : 1
-
- Rectangle {
- x: control.horizontal ? 0 : (parent.width - width) / 2
- y: control.horizontal ? (parent.height - height) / 2 : 0
- width: control.horizontal ? parent.width : 2 // SliderBackgroundThemeHeight
- height: control.vertical ? parent.height : 2 // SliderBackgroundThemeHeight
-
- color: control.hovered && !control.pressed ? control.Universal.baseMediumColor :
- control.enabled ? control.Universal.baseMediumLowColor : control.Universal.chromeDisabledHighColor
- }
-
- Rectangle {
- x: control.horizontal ? control.first.position * parent.width : (parent.width - width) / 2
- y: control.horizontal ? (parent.height - height) / 2 : control.second.visualPosition * parent.height
- width: control.horizontal ? control.second.position * parent.width - control.first.position * parent.width : 2 // SliderBackgroundThemeHeight
- height: control.vertical ? control.second.position * parent.height - control.first.position * parent.height : 2 // SliderBackgroundThemeHeight
-
- color: control.enabled ? control.Universal.accent : control.Universal.chromeDisabledHighColor
- }
- }
-}
diff --git a/src/imports/controls/universal/RoundButton.qml b/src/imports/controls/universal/RoundButton.qml
deleted file mode 100644
index 2eedf96e..00000000
--- a/src/imports/controls/universal/RoundButton.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.RoundButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 8
- spacing: 8
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(Universal.foreground, enabled ? 1.0 : 0.2)
-
- property bool useSystemFocusVisuals: true
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.Universal.foreground, enabled ? 1.0 : 0.2)
- }
-
- background: Rectangle {
- implicitWidth: 32
- implicitHeight: 32
-
- radius: control.radius
- visible: !control.flat || control.down || control.checked || control.highlighted
- color: control.down ? control.Universal.baseMediumLowColor :
- control.enabled && (control.highlighted || control.checked) ? control.Universal.accent :
- control.Universal.baseLowColor
-
- Rectangle {
- width: parent.width
- height: parent.height
- radius: control.radius
- color: "transparent"
- visible: control.hovered
- border.width: 2 // ButtonBorderThemeThickness
- border.color: control.Universal.baseMediumLowColor
- }
- }
-}
diff --git a/src/imports/controls/universal/ScrollBar.qml b/src/imports/controls/universal/ScrollBar.qml
deleted file mode 100644
index 8b8e325d..00000000
--- a/src/imports/controls/universal/ScrollBar.qml
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.ScrollBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- visible: control.policy !== T.ScrollBar.AlwaysOff
- minimumSize: orientation == Qt.Horizontal ? height / width : width / height
-
- // TODO: arrows
-
- contentItem: Rectangle {
- implicitWidth: control.interactive ? 12 : 6
- implicitHeight: control.interactive ? 12: 6
-
- color: control.pressed ? control.Universal.baseMediumColor :
- control.interactive && control.hovered ? control.Universal.baseMediumLowColor : control.Universal.chromeHighColor
- opacity: 0.0
- }
-
- background: Rectangle {
- implicitWidth: control.interactive ? 12 : 6
- implicitHeight: control.interactive ? 12: 6
-
- color: control.Universal.chromeLowColor
- visible: control.size < 1.0
- opacity: 0.0
- }
-
- states: [
- State {
- name: "active"
- when: control.policy === T.ScrollBar.AlwaysOn || (control.active && control.size < 1.0)
- }
- ]
-
- transitions: [
- Transition {
- to: "active"
- NumberAnimation { targets: [control.contentItem, control.background]; property: "opacity"; to: 1.0 }
- },
- Transition {
- from: "active"
- SequentialAnimation {
- PropertyAction{ targets: [control.contentItem, control.background]; property: "opacity"; value: 1.0 }
- PauseAnimation { duration: 3000 }
- NumberAnimation { targets: [control.contentItem, control.background]; property: "opacity"; to: 0.0 }
- }
- }
- ]
-}
diff --git a/src/imports/controls/universal/ScrollIndicator.qml b/src/imports/controls/universal/ScrollIndicator.qml
deleted file mode 100644
index ab66ee7c..00000000
--- a/src/imports/controls/universal/ScrollIndicator.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.ScrollIndicator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- contentItem: Rectangle {
- implicitWidth: 6
- implicitHeight: 6
-
- color: control.Universal.baseMediumLowColor
- visible: control.size < 1.0
- opacity: 0.0
-
- states: [
- State {
- name: "active"
- when: control.active
- }
- ]
-
- transitions: [
- Transition {
- to: "active"
- NumberAnimation { target: control.contentItem; property: "opacity"; to: 1.0 }
- },
- Transition {
- from: "active"
- SequentialAnimation {
- PauseAnimation { duration: 5000 }
- NumberAnimation { target: control.contentItem; property: "opacity"; to: 0.0 }
- }
- }
- ]
- }
-}
diff --git a/src/imports/controls/universal/Slider.qml b/src/imports/controls/universal/Slider.qml
deleted file mode 100644
index 8f427b1e..00000000
--- a/src/imports/controls/universal/Slider.qml
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.Slider {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitHandleWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitHandleHeight + topPadding + bottomPadding)
-
- padding: 6
-
- property bool useSystemFocusVisuals: true
-
- handle: Rectangle {
- implicitWidth: control.horizontal ? 8 : 24
- implicitHeight: control.horizontal ? 24 : 8
-
- x: control.leftPadding + (control.horizontal ? control.visualPosition * (control.availableWidth - width) : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : control.visualPosition * (control.availableHeight - height))
-
- radius: 4
- color: control.pressed ? control.Universal.chromeHighColor :
- control.hovered ? control.Universal.chromeAltLowColor :
- control.enabled ? control.Universal.accent : control.Universal.chromeDisabledHighColor
- }
-
- background: Item {
- implicitWidth: control.horizontal ? 200 : 18
- implicitHeight: control.horizontal ? 18 : 200
-
- x: control.leftPadding + (control.horizontal ? 0 : (control.availableWidth - width) / 2)
- y: control.topPadding + (control.horizontal ? (control.availableHeight - height) / 2 : 0)
- width: control.horizontal ? control.availableWidth : implicitWidth
- height: control.horizontal ? implicitHeight : control.availableHeight
-
- scale: control.horizontal && control.mirrored ? -1 : 1
-
- Rectangle {
- x: control.horizontal ? 0 : (parent.width - width) / 2
- y: control.horizontal ? (parent.height - height) / 2 : 0
- width: control.horizontal ? parent.width : 2 // SliderTrackThemeHeight
- height: !control.horizontal ? parent.height : 2 // SliderTrackThemeHeight
-
- color: control.hovered && !control.pressed ? control.Universal.baseMediumColor :
- control.enabled ? control.Universal.baseMediumLowColor : control.Universal.chromeDisabledHighColor
- }
-
- Rectangle {
- x: control.horizontal ? 0 : (parent.width - width) / 2
- y: control.horizontal ? (parent.height - height) / 2 : control.visualPosition * parent.height
- width: control.horizontal ? control.position * parent.width : 2 // SliderTrackThemeHeight
- height: !control.horizontal ? control.position * parent.height : 2 // SliderTrackThemeHeight
-
- color: control.enabled ? control.Universal.accent : control.Universal.chromeDisabledHighColor
- }
- }
-}
diff --git a/src/imports/controls/universal/SpinBox.qml b/src/imports/controls/universal/SpinBox.qml
deleted file mode 100644
index dfe927f5..00000000
--- a/src/imports/controls/universal/SpinBox.qml
+++ /dev/null
@@ -1,148 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.SpinBox {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentItem.implicitWidth + 16 +
- up.implicitIndicatorWidth +
- down.implicitIndicatorWidth)
- implicitHeight: Math.max(implicitContentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight,
- up.implicitIndicatorHeight,
- down.implicitIndicatorHeight)
-
- // TextControlThemePadding + 2 (border)
- padding: 12
- topPadding: padding - 7
- leftPadding: padding + (control.mirrored ? (up.indicator ? up.indicator.width : 0) : (down.indicator ? down.indicator.width : 0))
- rightPadding: padding - 4 + (control.mirrored ? (down.indicator ? down.indicator.width : 0) : (up.indicator ? up.indicator.width : 0))
- bottomPadding: padding - 5
-
- Universal.theme: activeFocus ? Universal.Light : undefined
-
- validator: IntValidator {
- locale: control.locale.name
- bottom: Math.min(control.from, control.to)
- top: Math.max(control.from, control.to)
- }
-
- contentItem: TextInput {
- text: control.displayText
-
- font: control.font
- color: !enabled ? control.Universal.chromeDisabledLowColor :
- activeFocus ? control.Universal.chromeBlackHighColor : control.Universal.foreground
- selectionColor: control.Universal.accent
- selectedTextColor: control.Universal.chromeWhiteColor
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: TextInput.AlignVCenter
-
- readOnly: !control.editable
- validator: control.validator
- inputMethodHints: control.inputMethodHints
- }
-
- up.indicator: Item {
- implicitWidth: 28
- height: parent.height + 4
- y: -2
- x: control.mirrored ? 0 : parent.width - width
-
- Rectangle {
- x: 2; y: 4
- width: parent.width - 4
- height: parent.height - 8
- color: control.activeFocus ? control.Universal.accent :
- control.up.pressed ? control.Universal.baseMediumLowColor :
- control.up.hovered ? control.Universal.baseLowColor : "transparent"
- visible: control.up.pressed || control.up.hovered
- opacity: control.activeFocus && !control.up.pressed ? 0.4 : 1.0
- }
-
- ColorImage {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- color: !enabled ? control.Universal.chromeDisabledLowColor :
- control.activeFocus ? control.Universal.chromeBlackHighColor : control.Universal.baseHighColor
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Universal/images/" + (control.mirrored ? "left" : "right") + "arrow.png"
- }
- }
-
- down.indicator: Item {
- implicitWidth: 28
- height: parent.height + 4
- y: -2
- x: control.mirrored ? parent.width - width : 0
-
- Rectangle {
- x: 2; y: 4
- width: parent.width - 4
- height: parent.height - 8
- color: control.activeFocus ? control.Universal.accent :
- control.down.pressed ? control.Universal.baseMediumLowColor :
- control.down.hovered ? control.Universal.baseLowColor : "transparent"
- visible: control.down.pressed || control.down.hovered
- opacity: control.activeFocus && !control.down.pressed ? 0.4 : 1.0
- }
-
- ColorImage {
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- color: !enabled ? control.Universal.chromeDisabledLowColor :
- control.activeFocus ? control.Universal.chromeBlackHighColor : control.Universal.baseHighColor
- source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Universal/images/" + (control.mirrored ? "right" : "left") + "arrow.png"
- }
- }
-
- background: Rectangle {
- implicitWidth: 60 + 28 // TextControlThemeMinWidth - 4 (border)
- implicitHeight: 28 // TextControlThemeMinHeight - 4 (border)
-
- border.width: 2 // TextControlBorderThemeThickness
- border.color: !control.enabled ? control.Universal.baseLowColor :
- control.activeFocus ? control.Universal.accent :
- control.hovered ? control.Universal.baseMediumColor : control.Universal.chromeDisabledLowColor
- color: control.enabled ? control.Universal.background : control.Universal.baseLowColor
- }
-}
diff --git a/src/imports/controls/universal/SplitView.qml b/src/imports/controls/universal/SplitView.qml
deleted file mode 100644
index a4ed22dd..00000000
--- a/src/imports/controls/universal/SplitView.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Templates 2.13 as T
-import QtQuick.Controls 2.13
-import QtQuick.Controls.impl 2.13
-import QtQuick.Controls.Universal 2.13
-
-T.SplitView {
- id: control
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- handle: Rectangle {
- implicitWidth: control.orientation === Qt.Horizontal ? 6 : control.width
- implicitHeight: control.orientation === Qt.Horizontal ? control.height : 6
- color: T.SplitHandle.pressed ? control.Universal.baseMediumColor
- : (T.SplitHandle.hovered ? control.Universal.baseMediumLowColor : control.Universal.chromeHighColor)
- }
-}
diff --git a/src/imports/controls/universal/StackView.qml b/src/imports/controls/universal/StackView.qml
deleted file mode 100644
index 5a3f7751..00000000
--- a/src/imports/controls/universal/StackView.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.StackView {
- id: control
-
- popEnter: Transition {
- ParallelAnimation {
- NumberAnimation { property: "opacity"; from: 0; to: 1; duration: 200; easing.type: Easing.InQuint }
- NumberAnimation { property: "x"; from: (control.mirrored ? -0.3 : 0.3) * -control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
- }
-
- popExit: Transition {
- NumberAnimation { property: "opacity"; from: 1; to: 0; duration: 200; easing.type: Easing.OutQuint }
- }
-
- pushEnter: Transition {
- ParallelAnimation {
- NumberAnimation { property: "opacity"; from: 0; to: 1; duration: 200; easing.type: Easing.InQuint }
- NumberAnimation { property: "x"; from: (control.mirrored ? -0.3 : 0.3) * control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
- }
-
- pushExit: Transition {
- NumberAnimation { property: "opacity"; from: 1; to: 0; duration: 200; easing.type: Easing.OutQuint }
- }
-
- replaceEnter: Transition {
- ParallelAnimation {
- NumberAnimation { property: "opacity"; from: 0; to: 1; duration: 200; easing.type: Easing.InQuint }
- NumberAnimation { property: "x"; from: (control.mirrored ? -0.3 : 0.3) * control.width; to: 0; duration: 400; easing.type: Easing.OutCubic }
- }
- }
-
- replaceExit: Transition {
- NumberAnimation { property: "opacity"; from: 1; to: 0; duration: 200; easing.type: Easing.OutQuint }
- }
-}
diff --git a/src/imports/controls/universal/SwipeDelegate.qml b/src/imports/controls/universal/SwipeDelegate.qml
deleted file mode 100644
index 066049a7..00000000
--- a/src/imports/controls/universal/SwipeDelegate.qml
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.SwipeDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12
-
- padding: 12
- topPadding: padding - 1
- bottomPadding: padding + 1
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(Universal.foreground, enabled ? 1.0 : 0.2)
-
- swipe.transition: Transition { SmoothedAnimation { velocity: 3; easing.type: Easing.InOutCubic } }
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.Universal.foreground, enabled ? 1.0 : 0.2)
- }
-
- background: Rectangle {
- color: control.Universal.background
-
- Rectangle {
- width: parent.width
- height: parent.height
- color: control.down ? control.Universal.listMediumColor :
- control.hovered ? control.Universal.listLowColor : control.Universal.altMediumLowColor
- Rectangle {
- width: parent.width
- height: parent.height
- visible: control.visualFocus || control.highlighted
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
- }
- }
- }
-}
diff --git a/src/imports/controls/universal/Switch.qml b/src/imports/controls/universal/Switch.qml
deleted file mode 100644
index 284b1229..00000000
--- a/src/imports/controls/universal/Switch.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.Switch {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- padding: 5
- spacing: 8
-
- property bool useSystemFocusVisuals: true
-
- indicator: SwitchIndicator {
- x: control.text ? (control.mirrored ? control.width - width - control.rightPadding : control.leftPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: Text {
- leftPadding: control.indicator && !control.mirrored ? control.indicator.width + control.spacing : 0
- rightPadding: control.indicator && control.mirrored ? control.indicator.width + control.spacing : 0
-
- text: control.text
- font: control.font
- elide: Text.ElideRight
- verticalAlignment: Text.AlignVCenter
-
- opacity: enabled ? 1.0 : 0.2
- color: control.Universal.foreground
- }
-}
diff --git a/src/imports/controls/universal/SwitchDelegate.qml b/src/imports/controls/universal/SwitchDelegate.qml
deleted file mode 100644
index 56ba8494..00000000
--- a/src/imports/controls/universal/SwitchDelegate.qml
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls.Universal.impl 2.12
-
-T.SwitchDelegate {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding,
- implicitIndicatorHeight + topPadding + bottomPadding)
-
- spacing: 12
-
- padding: 12
- topPadding: padding - 1
- bottomPadding: padding + 1
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(Universal.foreground, enabled ? 1.0 : 0.2)
-
- indicator: SwitchIndicator {
- x: control.text ? (control.mirrored ? control.leftPadding : control.width - width - control.rightPadding) : control.leftPadding + (control.availableWidth - width) / 2
- y: control.topPadding + (control.availableHeight - height) / 2
- control: control
- }
-
- contentItem: IconLabel {
- leftPadding: !control.mirrored ? 0 : control.indicator.width + control.spacing
- rightPadding: control.mirrored ? 0 : control.indicator.width + control.spacing
-
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
- alignment: control.display === IconLabel.IconOnly || control.display === IconLabel.TextUnderIcon ? Qt.AlignCenter : Qt.AlignLeft
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.Universal.foreground, enabled ? 1.0 : 0.2)
- }
-
- background: Rectangle {
- visible: control.down || control.highlighted || control.visualFocus || control.hovered
- color: control.down ? control.Universal.listMediumColor :
- control.hovered ? control.Universal.listLowColor : control.Universal.altMediumLowColor
- Rectangle {
- width: parent.width
- height: parent.height
- visible: control.visualFocus || control.highlighted
- color: control.Universal.accent
- opacity: control.Universal.theme === Universal.Light ? 0.4 : 0.6
- }
-
- }
-}
diff --git a/src/imports/controls/universal/SwitchIndicator.qml b/src/imports/controls/universal/SwitchIndicator.qml
deleted file mode 100644
index 10f39515..00000000
--- a/src/imports/controls/universal/SwitchIndicator.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-Item {
- id: indicator
- implicitWidth: 44
- implicitHeight: 20
-
- Rectangle {
- width: parent.width
- height: parent.height
-
- radius: 10
- color: !indicator.control.enabled ? "transparent" :
- indicator.control.pressed ? indicator.control.Universal.baseMediumColor :
- indicator.control.checked ? indicator.control.Universal.accent : "transparent"
- border.color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
- indicator.control.checked && !indicator.control.pressed ? indicator.control.Universal.accent :
- indicator.control.hovered && !indicator.control.checked && !indicator.control.pressed ? indicator.control.Universal.baseHighColor : indicator.control.Universal.baseMediumColor
- opacity: indicator.control.hovered && indicator.control.checked && !indicator.control.pressed ? (indicator.control.Universal.theme === Universal.Light ? 0.7 : 0.9) : 1.0
- border.width: 2
- }
-
- property Item control
-
- Rectangle {
- width: 10
- height: 10
- radius: 5
-
- color: !indicator.control.enabled ? indicator.control.Universal.baseLowColor :
- indicator.control.pressed || indicator.control.checked ? indicator.control.Universal.chromeWhiteColor :
- indicator.control.hovered && !indicator.control.checked ? indicator.control.Universal.baseHighColor : indicator.control.Universal.baseMediumHighColor
-
- x: Math.max(5, Math.min(parent.width - width - 5,
- indicator.control.visualPosition * parent.width - (width / 2)))
- y: (parent.height - height) / 2
-
- Behavior on x {
- enabled: !indicator.control.pressed
- SmoothedAnimation { velocity: 200 }
- }
- }
-}
diff --git a/src/imports/controls/universal/TabBar.qml b/src/imports/controls/universal/TabBar.qml
deleted file mode 100644
index ab660c93..00000000
--- a/src/imports/controls/universal/TabBar.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.TabBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- contentItem: PathView {
- model: control.contentModel
- currentIndex: control.currentIndex
-
- interactive: false
- snapMode: PathView.SnapToItem
- movementDirection: PathView.Positive
- highlightMoveDuration: 100
-
- path: Path {
- startX: control.count ? control.availableWidth / control.count / 2 : 0
- startY: control.availableHeight / 2
- PathLine {
- x: control.count ? control.availableWidth + (control.availableWidth / control.count / 2) : 0
- y: control.availableHeight / 2
- }
- }
- }
-
- background: Rectangle {
- implicitWidth: 200
- implicitHeight: 48
- color: control.Universal.background
- }
-}
diff --git a/src/imports/controls/universal/TabButton.qml b/src/imports/controls/universal/TabButton.qml
deleted file mode 100644
index 66e3d725..00000000
--- a/src/imports/controls/universal/TabButton.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.TabButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 12 // PivotItemMargin
- spacing: 8
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(control.hovered ? control.Universal.baseMediumHighColor : control.Universal.foreground,
- control.checked || control.down || control.hovered ? 1.0 : 0.2)
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.hovered ? control.Universal.baseMediumHighColor : control.Universal.foreground,
- control.checked || control.down || control.hovered ? 1.0 : 0.2)
- }
-}
diff --git a/src/imports/controls/universal/TextArea.qml b/src/imports/controls/universal/TextArea.qml
deleted file mode 100644
index 03ad4a89..00000000
--- a/src/imports/controls/universal/TextArea.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.TextArea {
- id: control
-
- implicitWidth: Math.max(contentWidth + leftPadding + rightPadding,
- implicitBackgroundWidth + leftInset + rightInset,
- placeholder.implicitWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(contentHeight + topPadding + bottomPadding,
- implicitBackgroundHeight + topInset + bottomInset,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- // TextControlThemePadding + 2 (border)
- padding: 12
- topPadding: padding - 7
- rightPadding: padding - 4
- bottomPadding: padding - 5
-
- Universal.theme: activeFocus ? Universal.Light : undefined
-
- color: !enabled ? Universal.chromeDisabledLowColor : Universal.foreground
- selectionColor: Universal.accent
- selectedTextColor: Universal.chromeWhiteColor
- placeholderTextColor: !enabled ? Universal.chromeDisabledLowColor :
- activeFocus ? Universal.chromeBlackMediumLowColor :
- Universal.baseMediumColor
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
-
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- verticalAlignment: control.verticalAlignment
- elide: Text.ElideRight
- renderType: control.renderType
- }
-
- background: Rectangle {
- implicitWidth: 60 // TextControlThemeMinWidth - 4 (border)
- implicitHeight: 28 // TextControlThemeMinHeight - 4 (border)
-
- border.width: 2 // TextControlBorderThemeThickness
- border.color: !control.enabled ? control.Universal.baseLowColor :
- control.activeFocus ? control.Universal.accent :
- control.hovered ? control.Universal.baseMediumColor : control.Universal.chromeDisabledLowColor
- color: control.enabled ? control.Universal.background : control.Universal.baseLowColor
- }
-}
diff --git a/src/imports/controls/universal/TextField.qml b/src/imports/controls/universal/TextField.qml
deleted file mode 100644
index ba5bf685..00000000
--- a/src/imports/controls/universal/TextField.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.TextField {
- id: control
-
- implicitWidth: implicitBackgroundWidth + leftInset + rightInset
- || Math.max(contentWidth, placeholder.implicitWidth) + leftPadding + rightPadding
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding,
- placeholder.implicitHeight + topPadding + bottomPadding)
-
- // TextControlThemePadding + 2 (border)
- padding: 12
- topPadding: padding - 7
- rightPadding: padding - 4
- bottomPadding: padding - 5
-
- Universal.theme: activeFocus ? Universal.Light : undefined
-
- color: !enabled ? Universal.chromeDisabledLowColor : Universal.foreground
- selectionColor: Universal.accent
- selectedTextColor: Universal.chromeWhiteColor
- placeholderTextColor: !enabled ? Universal.chromeDisabledLowColor :
- activeFocus ? Universal.chromeBlackMediumLowColor :
- Universal.baseMediumColor
- verticalAlignment: TextInput.AlignVCenter
-
- PlaceholderText {
- id: placeholder
- x: control.leftPadding
- y: control.topPadding
- width: control.width - (control.leftPadding + control.rightPadding)
- height: control.height - (control.topPadding + control.bottomPadding)
-
- text: control.placeholderText
- font: control.font
- color: control.placeholderTextColor
- visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter)
- verticalAlignment: control.verticalAlignment
- elide: Text.ElideRight
- renderType: control.renderType
- }
-
- background: Rectangle {
- implicitWidth: 60 // TextControlThemeMinWidth - 4 (border)
- implicitHeight: 28 // TextControlThemeMinHeight - 4 (border)
-
- border.width: 2 // TextControlBorderThemeThickness
- border.color: !control.enabled ? control.Universal.baseLowColor :
- control.activeFocus ? control.Universal.accent :
- control.hovered ? control.Universal.baseMediumColor : control.Universal.chromeDisabledLowColor
- color: control.enabled ? control.Universal.background : control.Universal.baseLowColor
- }
-}
diff --git a/src/imports/controls/universal/ToolBar.qml b/src/imports/controls/universal/ToolBar.qml
deleted file mode 100644
index 5a385e8e..00000000
--- a/src/imports/controls/universal/ToolBar.qml
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.ToolBar {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- background: Rectangle {
- implicitHeight: 48 // AppBarThemeCompactHeight
- color: control.Universal.chromeMediumColor
- }
-}
diff --git a/src/imports/controls/universal/ToolButton.qml b/src/imports/controls/universal/ToolButton.qml
deleted file mode 100644
index f36dac22..00000000
--- a/src/imports/controls/universal/ToolButton.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Universal 2.12
-
-T.ToolButton {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- padding: 6
- spacing: 8
-
- icon.width: 20
- icon.height: 20
- icon.color: Color.transparent(Universal.foreground, enabled ? 1.0 : 0.2)
-
- property bool useSystemFocusVisuals: true
-
- contentItem: IconLabel {
- spacing: control.spacing
- mirrored: control.mirrored
- display: control.display
-
- icon: control.icon
- text: control.text
- font: control.font
- color: Color.transparent(control.Universal.foreground, enabled ? 1.0 : 0.2)
- }
-
- background: Rectangle {
- implicitWidth: 68
- implicitHeight: 48 // AppBarThemeCompactHeight
-
- color: control.enabled && (control.highlighted || control.checked) ? control.Universal.accent : "transparent"
-
- Rectangle {
- width: parent.width
- height: parent.height
- visible: control.down || control.hovered
- color: control.down ? control.Universal.listMediumColor : control.Universal.listLowColor
- }
- }
-}
diff --git a/src/imports/controls/universal/ToolSeparator.qml b/src/imports/controls/universal/ToolSeparator.qml
deleted file mode 100644
index ee8e6e1c..00000000
--- a/src/imports/controls/universal/ToolSeparator.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.ToolSeparator {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
-
- leftPadding: vertical ? 16 : 12
- rightPadding: vertical ? 15 : 12
- topPadding: vertical ? 12 : 16
- bottomPadding: vertical ? 12 : 15
-
- contentItem: Rectangle {
- implicitWidth: vertical ? 1 : 20
- implicitHeight: vertical ? 20 : 1
- color: control.Universal.baseMediumLowColor
- }
-}
diff --git a/src/imports/controls/universal/ToolTip.qml b/src/imports/controls/universal/ToolTip.qml
deleted file mode 100644
index cf7325b6..00000000
--- a/src/imports/controls/universal/ToolTip.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-
-T.ToolTip {
- id: control
-
- x: parent ? (parent.width - implicitWidth) / 2 : 0
- y: -implicitHeight - 16
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- contentWidth + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- contentHeight + topPadding + bottomPadding)
-
- margins: 8
- padding: 8
- topPadding: padding - 3
- bottomPadding: padding - 1
-
- closePolicy: T.Popup.CloseOnEscape | T.Popup.CloseOnPressOutsideParent | T.Popup.CloseOnReleaseOutsideParent
-
- contentItem: Text {
- text: control.text
- font: control.font
- // TODO: wrapMode: Label.Wrap
- opacity: enabled ? 1.0 : 0.2
- color: control.Universal.foreground
- }
-
- background: Rectangle {
- color: control.Universal.chromeMediumLowColor
- border.color: control.Universal.chromeHighColor
- border.width: 1 // ToolTipBorderThemeThickness
- }
-}
diff --git a/src/imports/controls/universal/Tumbler.qml b/src/imports/controls/universal/Tumbler.qml
deleted file mode 100644
index d0e7b12f..00000000
--- a/src/imports/controls/universal/Tumbler.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls.Universal 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-T.Tumbler {
- id: control
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding) || 60 // ### remove 60 in Qt 6
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding) || 200 // ### remove 200 in Qt 6
-
- delegate: Text {
- text: modelData
- font: control.font
- color: control.Universal.foreground
- opacity: (1.0 - Math.abs(Tumbler.displacement) / (control.visibleItemCount / 2)) * (control.enabled ? 1 : 0.6)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-
- contentItem: TumblerView {
- implicitWidth: 60
- implicitHeight: 200
- model: control.model
- delegate: control.delegate
- path: Path {
- startX: control.contentItem.width / 2
- startY: -control.contentItem.delegateHeight / 2
- PathLine {
- x: control.contentItem.width / 2
- y: (control.visibleItemCount + 1) * control.contentItem.delegateHeight - control.contentItem.delegateHeight / 2
- }
- }
-
- property real delegateHeight: control.availableHeight / control.visibleItemCount
- }
-}
diff --git a/src/imports/controls/universal/dependencies.json b/src/imports/controls/universal/dependencies.json
deleted file mode 100644
index 21ded052..00000000
--- a/src/imports/controls/universal/dependencies.json
+++ /dev/null
@@ -1,7 +0,0 @@
-[
- {
- "name": "QtQuick.Controls",
- "type": "module",
- "version": "2.0"
- }
-]
diff --git a/src/imports/controls/universal/images/checkmark.png b/src/imports/controls/universal/images/checkmark.png
deleted file mode 100644
index 4397f3b4..00000000
--- a/src/imports/controls/universal/images/checkmark.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/checkmark@2x.png b/src/imports/controls/universal/images/checkmark@2x.png
deleted file mode 100644
index 1e3a41fc..00000000
--- a/src/imports/controls/universal/images/checkmark@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/checkmark@3x.png b/src/imports/controls/universal/images/checkmark@3x.png
deleted file mode 100644
index d69ebb2e..00000000
--- a/src/imports/controls/universal/images/checkmark@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/checkmark@4x.png b/src/imports/controls/universal/images/checkmark@4x.png
deleted file mode 100644
index 0837c6a5..00000000
--- a/src/imports/controls/universal/images/checkmark@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/downarrow.png b/src/imports/controls/universal/images/downarrow.png
deleted file mode 100644
index 9ac84a23..00000000
--- a/src/imports/controls/universal/images/downarrow.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/downarrow@2x.png b/src/imports/controls/universal/images/downarrow@2x.png
deleted file mode 100644
index 8dafab94..00000000
--- a/src/imports/controls/universal/images/downarrow@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/downarrow@3x.png b/src/imports/controls/universal/images/downarrow@3x.png
deleted file mode 100644
index 17ab1cf8..00000000
--- a/src/imports/controls/universal/images/downarrow@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/downarrow@4x.png b/src/imports/controls/universal/images/downarrow@4x.png
deleted file mode 100644
index 0e145e2d..00000000
--- a/src/imports/controls/universal/images/downarrow@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/leftarrow.png b/src/imports/controls/universal/images/leftarrow.png
deleted file mode 100644
index 2646aafc..00000000
--- a/src/imports/controls/universal/images/leftarrow.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/leftarrow@2x.png b/src/imports/controls/universal/images/leftarrow@2x.png
deleted file mode 100644
index 500396f7..00000000
--- a/src/imports/controls/universal/images/leftarrow@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/leftarrow@3x.png b/src/imports/controls/universal/images/leftarrow@3x.png
deleted file mode 100644
index 7ae2cafd..00000000
--- a/src/imports/controls/universal/images/leftarrow@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/leftarrow@4x.png b/src/imports/controls/universal/images/leftarrow@4x.png
deleted file mode 100644
index ade9df95..00000000
--- a/src/imports/controls/universal/images/leftarrow@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/rightarrow.png b/src/imports/controls/universal/images/rightarrow.png
deleted file mode 100644
index 2e730d46..00000000
--- a/src/imports/controls/universal/images/rightarrow.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/rightarrow@2x.png b/src/imports/controls/universal/images/rightarrow@2x.png
deleted file mode 100644
index a089d030..00000000
--- a/src/imports/controls/universal/images/rightarrow@2x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/rightarrow@3x.png b/src/imports/controls/universal/images/rightarrow@3x.png
deleted file mode 100644
index 2e8921a9..00000000
--- a/src/imports/controls/universal/images/rightarrow@3x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/images/rightarrow@4x.png b/src/imports/controls/universal/images/rightarrow@4x.png
deleted file mode 100644
index 9ecb8e88..00000000
--- a/src/imports/controls/universal/images/rightarrow@4x.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/controls/universal/plugins.qmltypes b/src/imports/controls/universal/plugins.qmltypes
deleted file mode 100644
index c80ff1d4..00000000
--- a/src/imports/controls/universal/plugins.qmltypes
+++ /dev/null
@@ -1,140 +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 -dependencies dependencies.json QtQuick.Controls.Universal 2.13'
-
-Module {
- dependencies: ["QtQuick.Controls 2.0"]
- Component { name: "QQuickAttachedObject"; prototype: "QObject" }
- Component {
- name: "QQuickUniversalBusyIndicator"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.Universal.impl/BusyIndicatorImpl 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "count"; type: "int" }
- Property { name: "color"; type: "QColor" }
- }
- Component {
- name: "QQuickUniversalFocusRectangle"
- defaultProperty: "data"
- prototype: "QQuickPaintedItem"
- exports: ["QtQuick.Controls.Universal.impl/FocusRectangle 2.0"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickUniversalProgressBar"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Controls.Universal.impl/ProgressBarImpl 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "color"; type: "QColor" }
- Property { name: "progress"; type: "double" }
- Property { name: "indeterminate"; type: "bool" }
- }
- Component {
- name: "QQuickUniversalStyle"
- prototype: "QQuickAttachedObject"
- exports: ["QtQuick.Controls.Universal/Universal 2.0"]
- isCreatable: false
- exportMetaObjectRevisions: [0]
- Enum {
- name: "Theme"
- values: {
- "Light": 0,
- "Dark": 1,
- "System": 2
- }
- }
- Enum {
- name: "Color"
- values: {
- "Lime": 0,
- "Green": 1,
- "Emerald": 2,
- "Teal": 3,
- "Cyan": 4,
- "Cobalt": 5,
- "Indigo": 6,
- "Violet": 7,
- "Pink": 8,
- "Magenta": 9,
- "Crimson": 10,
- "Red": 11,
- "Orange": 12,
- "Amber": 13,
- "Yellow": 14,
- "Brown": 15,
- "Olive": 16,
- "Steel": 17,
- "Mauve": 18,
- "Taupe": 19
- }
- }
- Property { name: "theme"; type: "Theme" }
- Property { name: "accent"; type: "QVariant" }
- Property { name: "foreground"; type: "QVariant" }
- Property { name: "background"; type: "QVariant" }
- Property { name: "altHighColor"; type: "QColor"; isReadonly: true }
- Property { name: "altLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "altMediumColor"; type: "QColor"; isReadonly: true }
- Property { name: "altMediumHighColor"; type: "QColor"; isReadonly: true }
- Property { name: "altMediumLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "baseHighColor"; type: "QColor"; isReadonly: true }
- Property { name: "baseLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "baseMediumColor"; type: "QColor"; isReadonly: true }
- Property { name: "baseMediumHighColor"; type: "QColor"; isReadonly: true }
- Property { name: "baseMediumLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeAltLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeBlackHighColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeBlackLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeBlackMediumLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeBlackMediumColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeDisabledHighColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeDisabledLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeHighColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeMediumColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeMediumLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "chromeWhiteColor"; type: "QColor"; isReadonly: true }
- Property { name: "listLowColor"; type: "QColor"; isReadonly: true }
- Property { name: "listMediumColor"; type: "QColor"; isReadonly: true }
- Signal { name: "paletteChanged" }
- Method {
- name: "color"
- type: "QColor"
- Parameter { name: "color"; type: "Color" }
- }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Universal.impl/CheckIndicator 2.0"
- exports: ["QtQuick.Controls.Universal.impl/CheckIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- Property { name: "partiallyChecked"; type: "bool"; isReadonly: true }
- }
- Component {
- prototype: "QQuickRectangle"
- name: "QtQuick.Controls.Universal.impl/RadioIndicator 2.0"
- exports: ["QtQuick.Controls.Universal.impl/RadioIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QVariant" }
- }
- Component {
- prototype: "QQuickItem"
- name: "QtQuick.Controls.Universal.impl/SwitchIndicator 2.0"
- exports: ["QtQuick.Controls.Universal.impl/SwitchIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- isComposite: true
- defaultProperty: "data"
- Property { name: "control"; type: "QQuickItem"; isPointer: true }
- }
-}
diff --git a/src/imports/controls/universal/qmldir b/src/imports/controls/universal/qmldir
deleted file mode 100644
index 6870a4e1..00000000
--- a/src/imports/controls/universal/qmldir
+++ /dev/null
@@ -1,4 +0,0 @@
-module QtQuick.Controls.Universal
-plugin qtquickcontrols2universalstyleplugin
-classname QtQuickControls2UniversalStylePlugin
-depends QtQuick.Controls 2.5
diff --git a/src/imports/controls/universal/qquickuniversalbusyindicator.cpp b/src/imports/controls/universal/qquickuniversalbusyindicator.cpp
deleted file mode 100644
index 70170296..00000000
--- a/src/imports/controls/universal/qquickuniversalbusyindicator.cpp
+++ /dev/null
@@ -1,251 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickuniversalbusyindicator_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtCore/qeasingcurve.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qsgadaptationlayer_p.h>
-#include <QtQuickControls2/private/qquickanimatednode_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static const int PhaseCount = 6;
-static const int Interval = 167;
-static const int TotalDuration = 4052;
-
-class QQuickUniversalBusyIndicatorNode : public QQuickAnimatedNode
-{
-public:
- QQuickUniversalBusyIndicatorNode(QQuickUniversalBusyIndicator *item);
-
- void updateCurrentTime(int time) override;
- void sync(QQuickItem *item) override;
-
-private:
- struct Phase {
- Phase() = default;
- Phase(int d, qreal f, qreal t, QEasingCurve::Type c) : duration(d), from(f), to(t), curve(c) { }
- int duration = 0;
- qreal from = 0;
- qreal to = 0;
- QEasingCurve curve = QEasingCurve::Linear;
- };
-
- Phase m_phases[PhaseCount];
-};
-
-QQuickUniversalBusyIndicatorNode::QQuickUniversalBusyIndicatorNode(QQuickUniversalBusyIndicator *item)
- : QQuickAnimatedNode(item)
-{
- setLoopCount(Infinite);
- setDuration(TotalDuration);
- setCurrentTime(item->elapsed());
-
- m_phases[0] = Phase(433, -110, 10, QEasingCurve::BezierSpline);
- m_phases[1] = Phase(767, 10, 93, QEasingCurve::Linear );
- m_phases[2] = Phase(417, 93, 205, QEasingCurve::BezierSpline);
- m_phases[3] = Phase(400, 205, 357, QEasingCurve::BezierSpline);
- m_phases[4] = Phase(766, 357, 439, QEasingCurve::Linear );
- m_phases[5] = Phase(434, 439, 585, QEasingCurve::BezierSpline);
-
- m_phases[0].curve.addCubicBezierSegment(QPointF(0.02, 0.33), QPointF(0.38, 0.77), QPointF(1.00, 1.00));
- m_phases[2].curve.addCubicBezierSegment(QPointF(0.57, 0.17), QPointF(0.95, 0.75), QPointF(1.00, 1.00));
- m_phases[3].curve.addCubicBezierSegment(QPointF(0.00, 0.19), QPointF(0.07, 0.72), QPointF(1.00, 1.00));
- m_phases[5].curve.addCubicBezierSegment(QPointF(0.00, 0.00), QPointF(0.95, 0.37), QPointF(1.00, 1.00));
-}
-
-void QQuickUniversalBusyIndicatorNode::updateCurrentTime(int time)
-{
- int nodeIndex = 0;
- int count = childCount();
- QSGTransformNode *transformNode = static_cast<QSGTransformNode *>(firstChild());
- while (transformNode) {
- Q_ASSERT(transformNode->type() == QSGNode::TransformNodeType);
-
- QSGOpacityNode *opacityNode = static_cast<QSGOpacityNode *>(transformNode->firstChild());
- Q_ASSERT(opacityNode->type() == QSGNode::OpacityNodeType);
-
- int begin = nodeIndex * Interval;
- int end = TotalDuration - (PhaseCount - nodeIndex - 1) * Interval;
-
- bool visible = time >= begin && time <= end;
- opacityNode->setOpacity(visible ? 1.0 : 0.0);
-
- if (visible) {
- int phaseIndex, remain = time, elapsed = 0;
- for (phaseIndex = 0; phaseIndex < PhaseCount - 1; ++phaseIndex) {
- if (remain <= m_phases[phaseIndex].duration + begin)
- break;
- remain -= m_phases[phaseIndex].duration;
- elapsed += m_phases[phaseIndex].duration;
- }
-
- const Phase &phase = m_phases[phaseIndex];
-
- qreal from = phase.from - nodeIndex * count;
- qreal to = phase.to - nodeIndex * count;
- qreal pos = time - elapsed - begin;
-
- qreal value = phase.curve.valueForProgress(pos / phase.duration);
- qreal rotation = from + (to - from) * value;
-
- QMatrix4x4 matrix;
- matrix.rotate(rotation, 0, 0, 1);
- transformNode->setMatrix(matrix);
- }
-
- transformNode = static_cast<QSGTransformNode *>(transformNode->nextSibling());
- ++nodeIndex;
- }
-}
-
-void QQuickUniversalBusyIndicatorNode::sync(QQuickItem *item)
-{
- QQuickUniversalBusyIndicator *indicator = static_cast<QQuickUniversalBusyIndicator *>(item);
- QQuickItemPrivate *d = QQuickItemPrivate::get(item);
-
- QMatrix4x4 matrix;
- matrix.translate(item->width() / 2, item->height() / 2);
- setMatrix(matrix);
-
- qreal size = qMin(item->width(), item->height());
- qreal diameter = size / 10.0;
- qreal radius = diameter / 2;
- qreal offset = (size - diameter * 2) / M_PI;
- const QRectF rect(offset, offset, diameter, diameter);
-
- int count = indicator->count();
- QSGNode *transformNode = firstChild();
- for (int i = 0; i < count; ++i) {
- if (!transformNode) {
- transformNode = new QSGTransformNode;
- appendChildNode(transformNode);
-
- QSGOpacityNode *opacityNode = new QSGOpacityNode;
- transformNode->appendChildNode(opacityNode);
-
- QSGInternalRectangleNode *rectNode = d->sceneGraphContext()->createInternalRectangleNode();
- rectNode->setAntialiasing(true);
- opacityNode->appendChildNode(rectNode);
- }
-
- QSGNode *opacityNode = transformNode->firstChild();
- Q_ASSERT(opacityNode->type() == QSGNode::OpacityNodeType);
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(opacityNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
-
- rectNode->setRect(rect);
- rectNode->setColor(indicator->color());
- rectNode->setRadius(radius);
- rectNode->update();
-
- transformNode = transformNode->nextSibling();
- }
-
- while (transformNode) {
- QSGNode *nextSibling = transformNode->nextSibling();
- delete transformNode;
- transformNode = nextSibling;
- }
-}
-
-QQuickUniversalBusyIndicator::QQuickUniversalBusyIndicator(QQuickItem *parent)
- : QQuickItem(parent)
-{
- setFlag(ItemHasContents);
-}
-
-int QQuickUniversalBusyIndicator::count() const
-{
- return m_count;
-}
-
-void QQuickUniversalBusyIndicator::setCount(int count)
-{
- if (m_count == count)
- return;
-
- m_count = count;
- update();
-}
-
-QColor QQuickUniversalBusyIndicator::color() const
-{
- return m_color;
-}
-
-void QQuickUniversalBusyIndicator::setColor(const QColor &color)
-{
- if (m_color == color)
- return;
-
- m_color = color;
- update();
-}
-
-int QQuickUniversalBusyIndicator::elapsed() const
-{
- return m_elapsed;
-}
-
-void QQuickUniversalBusyIndicator::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- QQuickItem::itemChange(change, data);
- if (change == ItemVisibleHasChanged)
- update();
-}
-
-QSGNode *QQuickUniversalBusyIndicator::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *)
-{
- QQuickUniversalBusyIndicatorNode *node = static_cast<QQuickUniversalBusyIndicatorNode *>(oldNode);
- if (isVisible() && width() > 0 && height() > 0) {
- if (!node) {
- node = new QQuickUniversalBusyIndicatorNode(this);
- node->start();
- }
- node->sync(this);
- } else {
- m_elapsed = node ? node->currentTime() : 0;
- delete node;
- node = nullptr;
- }
- return node;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/universal/qquickuniversalbusyindicator_p.h b/src/imports/controls/universal/qquickuniversalbusyindicator_p.h
deleted file mode 100644
index 119091b5..00000000
--- a/src/imports/controls/universal/qquickuniversalbusyindicator_p.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKUNIVERSALBUSYINDICATOR_P_H
-#define QQUICKUNIVERSALBUSYINDICATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuick/qquickitem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickUniversalBusyIndicator : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(int count READ count WRITE setCount FINAL)
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
-
-public:
- explicit QQuickUniversalBusyIndicator(QQuickItem *parent = nullptr);
-
- int count() const;
- void setCount(int count);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- int elapsed() const;
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
-
-private:
- int m_count = 5;
- int m_elapsed = 0;
- QColor m_color = Qt::black;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickUniversalBusyIndicator)
-
-#endif // QQUICKUNIVERSALBUSYINDICATOR_P_H
diff --git a/src/imports/controls/universal/qquickuniversalfocusrectangle.cpp b/src/imports/controls/universal/qquickuniversalfocusrectangle.cpp
deleted file mode 100644
index 88b78e10..00000000
--- a/src/imports/controls/universal/qquickuniversalfocusrectangle.cpp
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickuniversalfocusrectangle_p.h"
-
-#include <QtGui/qpixmap.h>
-#include <QtGui/qpainter.h>
-#include <QtGui/qpixmapcache.h>
-#include <QtQuick/private/qquickitem_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickUniversalFocusRectangle::QQuickUniversalFocusRectangle(QQuickItem *parent)
- : QQuickPaintedItem(parent)
-{
- QQuickItemPrivate::get(this)->setTransparentForPositioner(true);
-}
-
-void QQuickUniversalFocusRectangle::paint(QPainter *painter)
-{
- if (!isVisible() || width() <= 0 || height() <= 0)
- return;
-
- QRect bounds = boundingRect().toAlignedRect();
- const int boundsWidth = bounds.width();
- const int boundsHeight = bounds.width();
- const QString key = QStringLiteral("qquickuniversalfocusrectangle_%1_%2").arg(QString::number(boundsWidth), QString::number(boundsHeight));
-
- QPixmap pixmap(boundsWidth, boundsHeight);
- if (!QPixmapCache::find(key, &pixmap)) {
- bounds.adjust(0, 0, -1, -1);
- pixmap.fill(Qt::transparent);
- QPainter p(&pixmap);
-
- QPen pen;
- pen.setWidth(1);
- pen.setColor(Qt::white);
- p.setPen(pen);
- p.drawRect(bounds);
-
- pen.setColor(Qt::black);
- pen.setDashPattern(QVector<qreal>(2, 1));
- p.setPen(pen);
- p.drawRect(bounds);
-
- QPixmapCache::insert(key, pixmap);
- }
- painter->drawPixmap(0, 0, pixmap);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/universal/qquickuniversalfocusrectangle_p.h b/src/imports/controls/universal/qquickuniversalfocusrectangle_p.h
deleted file mode 100644
index 6bae3b13..00000000
--- a/src/imports/controls/universal/qquickuniversalfocusrectangle_p.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKUNIVERSALFOCUSRECTANGLE_P_H
-#define QQUICKUNIVERSALFOCUSRECTANGLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/qquickpainteditem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickUniversalFocusRectangle : public QQuickPaintedItem
-{
- Q_OBJECT
-
-public:
- QQuickUniversalFocusRectangle(QQuickItem *parent = nullptr);
-
- void paint(QPainter *painter) override;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKUNIVERSALFOCUSRECTANGLE_P_H
diff --git a/src/imports/controls/universal/qquickuniversalprogressbar.cpp b/src/imports/controls/universal/qquickuniversalprogressbar.cpp
deleted file mode 100644
index 7d4642c5..00000000
--- a/src/imports/controls/universal/qquickuniversalprogressbar.cpp
+++ /dev/null
@@ -1,338 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickuniversalprogressbar_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtCore/qeasingcurve.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qsgadaptationlayer_p.h>
-#include <QtQuick/qsgrectanglenode.h>
-#include <QtQuickControls2/private/qquickanimatednode_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static const int PhaseCount = 4;
-static const int EllipseCount = 5;
-static const int Interval = 167;
-static const int TotalDuration = 3917;
-static const int VisibleDuration = 3000;
-static const qreal EllipseDiameter = 4;
-static const qreal EllipseOffset = 4;
-static const qreal ContainerAnimationStartPosition = -34; // absolute
-static const qreal ContainerAnimationEndPosition = 0.435222; // relative
-static const qreal EllipseAnimationWellPosition = 0.333333333333333; // relative
-static const qreal EllipseAnimationEndPosition = 0.666666666666667; // relative
-
-class QQuickUniversalProgressBarNode : public QQuickAnimatedNode
-{
-public:
- QQuickUniversalProgressBarNode(QQuickUniversalProgressBar *item);
-
- void updateCurrentTime(int time) override;
- void sync(QQuickItem *item) override;
-
-private:
- struct Phase {
- Phase() = default;
- Phase(int d, qreal f, qreal t) : duration(d), from(f), to(t) { }
- int duration = 0;
- qreal from = 0;
- qreal to = 0;
- };
-
- bool m_indeterminate = false;
- Phase m_borderPhases[PhaseCount];
- Phase m_ellipsePhases[PhaseCount];
-};
-
-QQuickUniversalProgressBarNode::QQuickUniversalProgressBarNode(QQuickUniversalProgressBar *item)
- : QQuickAnimatedNode(item)
-{
- setLoopCount(Infinite);
- setDuration(TotalDuration);
-
- m_borderPhases[0] = Phase( 500, -50, 0);
- m_borderPhases[1] = Phase(1500, 0, 0);
- m_borderPhases[2] = Phase(1000, 0, 100);
- m_borderPhases[3] = Phase( 917, 100, 100);
-
- m_ellipsePhases[0] = Phase(1000, 0, EllipseAnimationWellPosition);
- m_ellipsePhases[1] = Phase(1000, EllipseAnimationWellPosition, EllipseAnimationWellPosition);
- m_ellipsePhases[2] = Phase(1000, EllipseAnimationWellPosition, EllipseAnimationEndPosition);
- m_ellipsePhases[3] = Phase(1000, EllipseAnimationWellPosition, EllipseAnimationEndPosition);
-}
-
-void QQuickUniversalProgressBarNode::updateCurrentTime(int time)
-{
- QSGRectangleNode *geometryNode = static_cast<QSGRectangleNode *>(firstChild());
- Q_ASSERT(!geometryNode || geometryNode->type() == QSGNode::GeometryNodeType);
- if (!geometryNode)
- return;
-
- QSGTransformNode *gridNode = static_cast<QSGTransformNode *>(geometryNode->firstChild());
- Q_ASSERT(!gridNode || gridNode->type() == QSGNode::TransformNodeType);
- if (!gridNode)
- return;
-
- qreal width = geometryNode->rect().width();
- {
- qreal from = ContainerAnimationStartPosition;
- qreal to = from + ContainerAnimationEndPosition * width;
- qreal progress = static_cast<qreal>(time) / TotalDuration;
- qreal dx = from + (to - from) * progress;
-
- QMatrix4x4 matrix;
- matrix.translate(dx, 0);
- gridNode->setMatrix(matrix);
- }
-
- int nodeIndex = 0;
- QSGTransformNode *borderNode = static_cast<QSGTransformNode *>(gridNode->firstChild());
- while (borderNode) {
- Q_ASSERT(borderNode->type() == QSGNode::TransformNodeType);
-
- QSGTransformNode *ellipseNode = static_cast<QSGTransformNode *>(borderNode->firstChild());
- Q_ASSERT(ellipseNode->type() == QSGNode::TransformNodeType);
-
- QSGOpacityNode *opacityNode = static_cast<QSGOpacityNode *>(ellipseNode->firstChild());
- Q_ASSERT(opacityNode->type() == QSGNode::OpacityNodeType);
-
- int begin = nodeIndex * Interval;
- int end = VisibleDuration + nodeIndex * Interval;
-
- bool visible = time >= begin && time <= end;
- opacityNode->setOpacity(visible ? 1.0 : 0.0);
-
- if (visible) {
- {
- int phaseIndex, remain = time, elapsed = 0;
- for (phaseIndex = 0; phaseIndex < PhaseCount - 1; ++phaseIndex) {
- if (remain <= m_borderPhases[phaseIndex].duration + begin)
- break;
- remain -= m_borderPhases[phaseIndex].duration;
- elapsed += m_borderPhases[phaseIndex].duration;
- }
-
- const Phase &phase = m_borderPhases[phaseIndex];
-
- qreal pos = time - elapsed - begin;
- qreal progress = pos / phase.duration;
- qreal dx = phase.from + (phase.to - phase.from) * progress;
-
- QMatrix4x4 matrix;
- matrix.translate(dx, 0);
- borderNode->setMatrix(matrix);
- }
-
- {
- QEasingCurve curve(QEasingCurve::BezierSpline);
- curve.addCubicBezierSegment(QPointF(0.4, 0.0), QPointF(0.6, 1.0), QPointF(1.0, 1.0));
-
- int phaseIndex, remain = time, elapsed = 0;
- for (phaseIndex = 0; phaseIndex < PhaseCount - 1; ++phaseIndex) {
- if (remain <= m_ellipsePhases[phaseIndex].duration + begin)
- break;
- remain -= m_ellipsePhases[phaseIndex].duration;
- elapsed += m_ellipsePhases[phaseIndex].duration;
- }
-
- const Phase &phase = m_ellipsePhases[phaseIndex];
-
- qreal from = phase.from * width;
- qreal to = phase.to * width;
- qreal pos = time - elapsed - begin;
- qreal progress = curve.valueForProgress(pos / phase.duration);
- qreal dx = from + (to - from) * progress;
-
- QMatrix4x4 matrix;
- matrix.translate(dx, 0);
- ellipseNode->setMatrix(matrix);
- }
- }
-
- borderNode = static_cast<QSGTransformNode *>(borderNode->nextSibling());
- ++nodeIndex;
- }
-}
-
-void QQuickUniversalProgressBarNode::sync(QQuickItem *item)
-{
- QQuickUniversalProgressBar *bar = static_cast<QQuickUniversalProgressBar *>(item);
- if (m_indeterminate != bar->isIndeterminate()) {
- m_indeterminate = bar->isIndeterminate();
- if (m_indeterminate)
- start();
- else
- stop();
- }
-
- QQuickItemPrivate *d = QQuickItemPrivate::get(item);
-
- QRectF bounds = item->boundingRect();
- bounds.setHeight(item->implicitHeight());
- bounds.moveTop((item->height() - bounds.height()) / 2.0);
- if (!m_indeterminate)
- bounds.setWidth(bar->progress() * bounds.width());
-
- QSGRectangleNode *geometryNode = static_cast<QSGRectangleNode *>(firstChild());
- if (!geometryNode) {
- geometryNode = item->window()->createRectangleNode();
- appendChildNode(geometryNode);
- }
- geometryNode->setRect(bounds);
- geometryNode->setColor(m_indeterminate ? Qt::transparent : bar->color());
-
- if (!m_indeterminate) {
- while (QSGNode *node = geometryNode->firstChild())
- delete node;
- return;
- }
-
- QSGTransformNode *gridNode = static_cast<QSGTransformNode *>(geometryNode->firstChild());
- if (!gridNode) {
- gridNode = new QSGTransformNode;
- geometryNode->appendChildNode(gridNode);
- }
- Q_ASSERT(gridNode->type() == QSGNode::TransformNodeType);
-
- QSGNode *borderNode = gridNode->firstChild();
- for (int i = 0; i < EllipseCount; ++i) {
- if (!borderNode) {
- borderNode = new QSGTransformNode;
- gridNode->appendChildNode(borderNode);
-
- QSGTransformNode *ellipseNode = new QSGTransformNode;
- borderNode->appendChildNode(ellipseNode);
-
- QSGOpacityNode *opacityNode = new QSGOpacityNode;
- ellipseNode->appendChildNode(opacityNode);
-
- QSGInternalRectangleNode *rectNode = d->sceneGraphContext()->createInternalRectangleNode();
- rectNode->setAntialiasing(true);
- rectNode->setRadius(EllipseDiameter / 2);
- opacityNode->appendChildNode(rectNode);
- }
- Q_ASSERT(borderNode->type() == QSGNode::TransformNodeType);
-
- QSGNode *ellipseNode = borderNode->firstChild();
- Q_ASSERT(ellipseNode->type() == QSGNode::TransformNodeType);
-
- QSGNode *opacityNode = ellipseNode->firstChild();
- Q_ASSERT(opacityNode->type() == QSGNode::OpacityNodeType);
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(opacityNode->firstChild());
- Q_ASSERT(rectNode->type() == QSGNode::GeometryNodeType);
-
- rectNode->setRect(QRectF((EllipseCount - i - 1) * (EllipseDiameter + EllipseOffset), (item->height() - EllipseDiameter) / 2, EllipseDiameter, EllipseDiameter));
- rectNode->setColor(bar->color());
- rectNode->update();
-
- borderNode = borderNode->nextSibling();
- }
-}
-
-QQuickUniversalProgressBar::QQuickUniversalProgressBar(QQuickItem *parent)
- : QQuickItem(parent)
-{
- setFlag(ItemHasContents);
-}
-
-QColor QQuickUniversalProgressBar::color() const
-{
- return m_color;
-}
-
-void QQuickUniversalProgressBar::setColor(const QColor &color)
-{
- if (m_color == color)
- return;
-
- m_color = color;
- update();
-}
-
-qreal QQuickUniversalProgressBar::progress() const
-{
- return m_progress;
-}
-
-void QQuickUniversalProgressBar::setProgress(qreal progress)
-{
- if (progress == m_progress)
- return;
-
- m_progress = progress;
- update();
-}
-
-bool QQuickUniversalProgressBar::isIndeterminate() const
-{
- return m_indeterminate;
-}
-
-void QQuickUniversalProgressBar::setIndeterminate(bool indeterminate)
-{
- if (indeterminate == m_indeterminate)
- return;
-
- m_indeterminate = indeterminate;
- setClip(m_indeterminate);
- update();
-}
-
-void QQuickUniversalProgressBar::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- QQuickItem::itemChange(change, data);
- if (change == ItemVisibleHasChanged)
- update();
-}
-
-QSGNode *QQuickUniversalProgressBar::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeData *)
-{
- QQuickUniversalProgressBarNode *node = static_cast<QQuickUniversalProgressBarNode *>(oldNode);
- if (isVisible() && width() > 0 && height() > 0) {
- if (!node)
- node = new QQuickUniversalProgressBarNode(this);
- node->sync(this);
- } else {
- delete node;
- node = nullptr;
- }
- return node;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/universal/qquickuniversalprogressbar_p.h b/src/imports/controls/universal/qquickuniversalprogressbar_p.h
deleted file mode 100644
index 449f7965..00000000
--- a/src/imports/controls/universal/qquickuniversalprogressbar_p.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKUNIVERSALPROGRESSBAR_P_H
-#define QQUICKUNIVERSALPROGRESSBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuick/qquickitem.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickUniversalProgressBar : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
- Q_PROPERTY(qreal progress READ progress WRITE setProgress FINAL)
- Q_PROPERTY(bool indeterminate READ isIndeterminate WRITE setIndeterminate FINAL)
-
-public:
- explicit QQuickUniversalProgressBar(QQuickItem *parent = nullptr);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- qreal progress() const;
- void setProgress(qreal progress);
-
- bool isIndeterminate() const;
- void setIndeterminate(bool indeterminate);
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *) override;
-
-private:
- QColor m_color = Qt::black;
- qreal m_progress = 0.0;
- bool m_indeterminate = false;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickUniversalProgressBar)
-
-#endif // QQUICKUNIVERSALPROGRESSBAR_P_H
diff --git a/src/imports/controls/universal/qquickuniversalstyle.cpp b/src/imports/controls/universal/qquickuniversalstyle.cpp
deleted file mode 100644
index d46752f3..00000000
--- a/src/imports/controls/universal/qquickuniversalstyle.cpp
+++ /dev/null
@@ -1,618 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickuniversalstyle_p.h"
-
-#include <QtCore/qdebug.h>
-#include <QtCore/qsettings.h>
-#include <QtQml/qqmlinfo.h>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static QRgb qquickuniversal_light_color(QQuickUniversalStyle::SystemColor role)
-{
- static const QRgb colors[] = {
- 0xFFFFFFFF, // SystemAltHighColor
- 0x33FFFFFF, // SystemAltLowColor
- 0x99FFFFFF, // SystemAltMediumColor
- 0xCCFFFFFF, // SystemAltMediumHighColor
- 0x66FFFFFF, // SystemAltMediumLowColor
- 0xFF000000, // SystemBaseHighColor
- 0x33000000, // SystemBaseLowColor
- 0x99000000, // SystemBaseMediumColor
- 0xCC000000, // SystemBaseMediumHighColor
- 0x66000000, // SystemBaseMediumLowColor
- 0xFF171717, // SystemChromeAltLowColor
- 0xFF000000, // SystemChromeBlackHighColor
- 0x33000000, // SystemChromeBlackLowColor
- 0x66000000, // SystemChromeBlackMediumLowColor
- 0xCC000000, // SystemChromeBlackMediumColor
- 0xFFCCCCCC, // SystemChromeDisabledHighColor
- 0xFF7A7A7A, // SystemChromeDisabledLowColor
- 0xFFCCCCCC, // SystemChromeHighColor
- 0xFFF2F2F2, // SystemChromeLowColor
- 0xFFE6E6E6, // SystemChromeMediumColor
- 0xFFF2F2F2, // SystemChromeMediumLowColor
- 0xFFFFFFFF, // SystemChromeWhiteColor
- 0x19000000, // SystemListLowColor
- 0x33000000 // SystemListMediumColor
- };
- return colors[role];
-}
-
-static QRgb qquickuniversal_dark_color(QQuickUniversalStyle::SystemColor role)
-{
- static const QRgb colors[] = {
- 0xFF000000, // SystemAltHighColor
- 0x33000000, // SystemAltLowColor
- 0x99000000, // SystemAltMediumColor
- 0xCC000000, // SystemAltMediumHighColor
- 0x66000000, // SystemAltMediumLowColor
- 0xFFFFFFFF, // SystemBaseHighColor
- 0x33FFFFFF, // SystemBaseLowColor
- 0x99FFFFFF, // SystemBaseMediumColor
- 0xCCFFFFFF, // SystemBaseMediumHighColor
- 0x66FFFFFF, // SystemBaseMediumLowColor
- 0xFFF2F2F2, // SystemChromeAltLowColor
- 0xFF000000, // SystemChromeBlackHighColor
- 0x33000000, // SystemChromeBlackLowColor
- 0x66000000, // SystemChromeBlackMediumLowColor
- 0xCC000000, // SystemChromeBlackMediumColor
- 0xFF333333, // SystemChromeDisabledHighColor
- 0xFF858585, // SystemChromeDisabledLowColor
- 0xFF767676, // SystemChromeHighColor
- 0xFF171717, // SystemChromeLowColor
- 0xFF1F1F1F, // SystemChromeMediumColor
- 0xFF2B2B2B, // SystemChromeMediumLowColor
- 0xFFFFFFFF, // SystemChromeWhiteColor
- 0x19FFFFFF, // SystemListLowColor
- 0x33FFFFFF // SystemListMediumColor
- };
- return colors[role];
-}
-
-static QRgb qquickuniversal_accent_color(QQuickUniversalStyle::Color accent)
-{
- static const QRgb colors[] = {
- 0xFFA4C400, // Lime
- 0xFF60A917, // Green
- 0xFF008A00, // Emerald
- 0xFF00ABA9, // Teal
- 0xFF1BA1E2, // Cyan
- 0xFF3E65FF, // Cobalt
- 0xFF6A00FF, // Indigo
- 0xFFAA00FF, // Violet
- 0xFFF472D0, // Pink
- 0xFFD80073, // Magenta
- 0xFFA20025, // Crimson
- 0xFFE51400, // Red
- 0xFFFA6800, // Orange
- 0xFFF0A30A, // Amber
- 0xFFE3C800, // Yellow
- 0xFF825A2C, // Brown
- 0xFF6D8764, // Olive
- 0xFF647687, // Steel
- 0xFF76608A, // Mauve
- 0xFF87794E // Taupe
- };
- return colors[accent];
-}
-
-static QQuickUniversalStyle::Theme qquickuniversal_effective_theme(QQuickUniversalStyle::Theme theme)
-{
- if (theme == QQuickUniversalStyle::System)
- theme = QQuickStylePrivate::isDarkSystemTheme() ? QQuickUniversalStyle::Dark : QQuickUniversalStyle::Light;
- return theme;
-}
-
-// If no value was inherited from a parent or explicitly set, the "global" values are used.
-// The initial, default values of the globals are hard-coded here, but the environment
-// variables and .conf file override them if specified.
-static QQuickUniversalStyle::Theme GlobalTheme = QQuickUniversalStyle::Light;
-static QRgb GlobalAccent = qquickuniversal_accent_color(QQuickUniversalStyle::Cobalt);
-static QRgb GlobalForeground = qquickuniversal_light_color(QQuickUniversalStyle::BaseHigh);
-static QRgb GlobalBackground = qquickuniversal_light_color(QQuickUniversalStyle::AltHigh);
-// These represent whether a global foreground/background was set.
-// Each style's m_hasForeground/m_hasBackground are initialized to these values.
-static bool HasGlobalForeground = false;
-static bool HasGlobalBackground = false;
-
-QQuickUniversalStyle::QQuickUniversalStyle(QObject *parent) : QQuickAttachedObject(parent),
- m_hasForeground(HasGlobalForeground), m_hasBackground(HasGlobalBackground), m_theme(GlobalTheme),
- m_accent(GlobalAccent), m_foreground(GlobalForeground), m_background(GlobalBackground)
-{
- init();
-}
-
-QQuickUniversalStyle *QQuickUniversalStyle::qmlAttachedProperties(QObject *object)
-{
- return new QQuickUniversalStyle(object);
-}
-
-QQuickUniversalStyle::Theme QQuickUniversalStyle::theme() const
-{
- return m_theme;
-}
-
-void QQuickUniversalStyle::setTheme(Theme theme)
-{
- theme = qquickuniversal_effective_theme(theme);
- m_explicitTheme = true;
- if (m_theme == theme)
- return;
-
- m_theme = theme;
- propagateTheme();
- emit themeChanged();
- emit paletteChanged();
- emit foregroundChanged();
- emit backgroundChanged();
-}
-
-void QQuickUniversalStyle::inheritTheme(Theme theme)
-{
- if (m_explicitTheme || m_theme == theme)
- return;
-
- m_theme = theme;
- propagateTheme();
- emit themeChanged();
- emit paletteChanged();
- emit foregroundChanged();
- emit backgroundChanged();
-}
-
-void QQuickUniversalStyle::propagateTheme()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(child);
- if (universal)
- universal->inheritTheme(m_theme);
- }
-}
-
-void QQuickUniversalStyle::resetTheme()
-{
- if (!m_explicitTheme)
- return;
-
- m_explicitTheme = false;
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(attachedParent());
- inheritTheme(universal ? universal->theme() : GlobalTheme);
-}
-
-QVariant QQuickUniversalStyle::accent() const
-{
- return QColor::fromRgba(m_accent);
-}
-
-void QQuickUniversalStyle::setAccent(const QVariant &var)
-{
- QRgb accent = 0;
- if (!variantToRgba(var, "accent", &accent))
- return;
-
- m_explicitAccent = true;
- if (m_accent == accent)
- return;
-
- m_accent = accent;
- propagateAccent();
- emit accentChanged();
-}
-
-void QQuickUniversalStyle::inheritAccent(QRgb accent)
-{
- if (m_explicitAccent || m_accent == accent)
- return;
-
- m_accent = accent;
- propagateAccent();
- emit accentChanged();
-}
-
-void QQuickUniversalStyle::propagateAccent()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(child);
- if (universal)
- universal->inheritAccent(m_accent);
- }
-}
-
-void QQuickUniversalStyle::resetAccent()
-{
- if (!m_explicitAccent)
- return;
-
- m_explicitAccent = false;
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(attachedParent());
- inheritAccent(universal ? universal->m_accent : GlobalAccent);
-}
-
-QVariant QQuickUniversalStyle::foreground() const
-{
- if (m_hasForeground)
- return QColor::fromRgba(m_foreground);
- return baseHighColor();
-}
-
-void QQuickUniversalStyle::setForeground(const QVariant &var)
-{
- QRgb foreground = 0;
- if (!variantToRgba(var, "foreground", &foreground))
- return;
-
- m_hasForeground = true;
- m_explicitForeground = true;
- if (m_foreground == foreground)
- return;
-
- m_foreground = foreground;
- propagateForeground();
- emit foregroundChanged();
-}
-
-void QQuickUniversalStyle::inheritForeground(QRgb foreground, bool has)
-{
- if (m_explicitForeground || m_foreground == foreground)
- return;
-
- m_hasForeground = has;
- m_foreground = foreground;
- propagateForeground();
- emit foregroundChanged();
-}
-
-void QQuickUniversalStyle::propagateForeground()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(child);
- if (universal)
- universal->inheritForeground(m_foreground, m_hasForeground);
- }
-}
-
-void QQuickUniversalStyle::resetForeground()
-{
- if (!m_explicitForeground)
- return;
-
- m_hasForeground = false;
- m_explicitForeground = false;
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(attachedParent());
- inheritForeground(universal ? universal->m_foreground : GlobalForeground, universal ? universal->m_hasForeground : false);
-}
-
-QVariant QQuickUniversalStyle::background() const
-{
- if (m_hasBackground)
- return QColor::fromRgba(m_background);
- return altHighColor();
-}
-
-void QQuickUniversalStyle::setBackground(const QVariant &var)
-{
- QRgb background = 0;
- if (!variantToRgba(var, "background", &background))
- return;
-
- m_hasBackground = true;
- m_explicitBackground = true;
- if (m_background == background)
- return;
-
- m_background = background;
- propagateBackground();
- emit backgroundChanged();
-}
-
-void QQuickUniversalStyle::inheritBackground(QRgb background, bool has)
-{
- if (m_explicitBackground || m_background == background)
- return;
-
- m_hasBackground = has;
- m_background = background;
- propagateBackground();
- emit backgroundChanged();
-}
-
-void QQuickUniversalStyle::propagateBackground()
-{
- const auto styles = attachedChildren();
- for (QQuickAttachedObject *child : styles) {
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(child);
- if (universal)
- universal->inheritBackground(m_background, m_hasBackground);
- }
-}
-
-void QQuickUniversalStyle::resetBackground()
-{
- if (!m_explicitBackground)
- return;
-
- m_hasBackground = false;
- m_explicitBackground = false;
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(attachedParent());
- inheritBackground(universal ? universal->m_background : GlobalBackground, universal ? universal->m_hasBackground : false);
-}
-
-QColor QQuickUniversalStyle::color(Color color) const
-{
- return qquickuniversal_accent_color(color);
-}
-
-QColor QQuickUniversalStyle::altHighColor() const
-{
- return systemColor(AltHigh);
-}
-
-QColor QQuickUniversalStyle::altLowColor() const
-{
- return systemColor(AltLow);
-}
-
-QColor QQuickUniversalStyle::altMediumColor() const
-{
- return systemColor(AltMedium);
-}
-
-QColor QQuickUniversalStyle::altMediumHighColor() const
-{
- return systemColor(AltMediumHigh);
-}
-
-QColor QQuickUniversalStyle::altMediumLowColor() const
-{
- return systemColor(AltMediumLow);
-}
-
-QColor QQuickUniversalStyle::baseHighColor() const
-{
- return systemColor(BaseHigh);
-}
-
-QColor QQuickUniversalStyle::baseLowColor() const
-{
- return systemColor(BaseLow);
-}
-
-QColor QQuickUniversalStyle::baseMediumColor() const
-{
- return systemColor(BaseMedium);
-}
-
-QColor QQuickUniversalStyle::baseMediumHighColor() const
-{
- return systemColor(BaseMediumHigh);
-}
-
-QColor QQuickUniversalStyle::baseMediumLowColor() const
-{
- return systemColor(BaseMediumLow);
-}
-
-QColor QQuickUniversalStyle::chromeAltLowColor() const
-{
- return systemColor(ChromeAltLow);
-}
-
-QColor QQuickUniversalStyle::chromeBlackHighColor() const
-{
- return systemColor(ChromeBlackHigh);
-}
-
-QColor QQuickUniversalStyle::chromeBlackLowColor() const
-{
- return systemColor(ChromeBlackLow);
-}
-
-QColor QQuickUniversalStyle::chromeBlackMediumLowColor() const
-{
- return systemColor(ChromeBlackMediumLow);
-}
-
-QColor QQuickUniversalStyle::chromeBlackMediumColor() const
-{
- return systemColor(ChromeBlackMedium);
-}
-
-QColor QQuickUniversalStyle::chromeDisabledHighColor() const
-{
- return systemColor(ChromeDisabledHigh);
-}
-
-QColor QQuickUniversalStyle::chromeDisabledLowColor() const
-{
- return systemColor(ChromeDisabledLow);
-}
-
-QColor QQuickUniversalStyle::chromeHighColor() const
-{
- return systemColor(ChromeHigh);
-}
-
-QColor QQuickUniversalStyle::chromeLowColor() const
-{
- return systemColor(ChromeLow);
-}
-
-QColor QQuickUniversalStyle::chromeMediumColor() const
-{
- return systemColor(ChromeMedium);
-}
-
-QColor QQuickUniversalStyle::chromeMediumLowColor() const
-{
- return systemColor(ChromeMediumLow);
-}
-
-QColor QQuickUniversalStyle::chromeWhiteColor() const
-{
- return systemColor(ChromeWhite);
-}
-
-QColor QQuickUniversalStyle::listLowColor() const
-{
- return systemColor(ListLow);
-}
-
-QColor QQuickUniversalStyle::listMediumColor() const
-{
- return systemColor(ListMedium);
-}
-
-QColor QQuickUniversalStyle::systemColor(SystemColor role) const
-{
- return QColor::fromRgba(m_theme == QQuickUniversalStyle::Dark ? qquickuniversal_dark_color(role) : qquickuniversal_light_color(role));
-}
-
-void QQuickUniversalStyle::attachedParentChange(QQuickAttachedObject *newParent, QQuickAttachedObject *oldParent)
-{
- Q_UNUSED(oldParent);
- QQuickUniversalStyle *universal = qobject_cast<QQuickUniversalStyle *>(newParent);
- if (universal) {
- inheritTheme(universal->theme());
- inheritAccent(universal->m_accent);
- inheritForeground(universal->m_foreground, universal->m_hasForeground);
- inheritBackground(universal->m_background, universal->m_hasBackground);
- }
-}
-
-template <typename Enum>
-static Enum toEnumValue(const QByteArray &value, bool *ok)
-{
- QMetaEnum enumeration = QMetaEnum::fromType<Enum>();
- return static_cast<Enum>(enumeration.keyToValue(value, ok));
-}
-
-static QByteArray resolveSetting(const QByteArray &env, const QSharedPointer<QSettings> &settings, const QString &name)
-{
- QByteArray value = qgetenv(env);
-#if QT_CONFIG(settings)
- if (value.isNull() && !settings.isNull())
- value = settings->value(name).toByteArray();
-#endif
- return value;
-}
-
-void QQuickUniversalStyle::initGlobals()
-{
- QSharedPointer<QSettings> settings = QQuickStylePrivate::settings(QStringLiteral("Universal"));
-
- bool ok = false;
- QByteArray themeValue = resolveSetting("QT_QUICK_CONTROLS_UNIVERSAL_THEME", settings, QStringLiteral("Theme"));
- Theme themeEnum = toEnumValue<Theme>(themeValue, &ok);
- if (ok)
- GlobalTheme = qquickuniversal_effective_theme(themeEnum);
- else if (!themeValue.isEmpty())
- qWarning().nospace().noquote() << "Universal: unknown theme value: " << themeValue;
-
- QByteArray accentValue = resolveSetting("QT_QUICK_CONTROLS_UNIVERSAL_ACCENT", settings, QStringLiteral("Accent"));
- Color accentEnum = toEnumValue<Color>(accentValue, &ok);
- if (ok) {
- GlobalAccent = qquickuniversal_accent_color(accentEnum);
- } else if (!accentValue.isEmpty()) {
- QColor color(accentValue.constData());
- if (color.isValid())
- GlobalAccent = color.rgba();
- else
- qWarning().nospace().noquote() << "Universal: unknown accent value: " << accentValue;
- }
-
- QByteArray foregroundValue = resolveSetting("QT_QUICK_CONTROLS_UNIVERSAL_FOREGROUND", settings, QStringLiteral("Foreground"));
- Color foregroundEnum = toEnumValue<Color>(foregroundValue, &ok);
- if (ok) {
- GlobalForeground = qquickuniversal_accent_color(foregroundEnum);
- HasGlobalForeground = true;
- } else if (!foregroundValue.isEmpty()) {
- QColor color(foregroundValue.constData());
- if (color.isValid()) {
- GlobalForeground = color.rgba();
- HasGlobalForeground = true;
- } else {
- qWarning().nospace().noquote() << "Universal: unknown foreground value: " << foregroundValue;
- }
- }
-
- QByteArray backgroundValue = resolveSetting("QT_QUICK_CONTROLS_UNIVERSAL_BACKGROUND", settings, QStringLiteral("Background"));
- Color backgroundEnum = toEnumValue<Color>(backgroundValue, &ok);
- if (ok) {
- GlobalBackground = qquickuniversal_accent_color(backgroundEnum);
- HasGlobalBackground = true;
- } else if (!backgroundValue.isEmpty()) {
- QColor color(backgroundValue.constData());
- if (color.isValid()) {
- GlobalBackground = color.rgba();
- HasGlobalBackground = true;
- } else {
- qWarning().nospace().noquote() << "Universal: unknown background value: " << backgroundValue;
- }
- }
-}
-
-bool QQuickUniversalStyle::variantToRgba(const QVariant &var, const char *name, QRgb *rgba) const
-{
- if (var.type() == QVariant::Int) {
- int val = var.toInt();
- if (val < Lime || val > Taupe) {
- qmlWarning(parent()) << "unknown Universal." << name << " value: " << val;
- return false;
- }
- *rgba = qquickuniversal_accent_color(static_cast<Color>(val));
- } else {
- int val = QMetaEnum::fromType<Color>().keyToValue(var.toByteArray());
- if (val != -1) {
- *rgba = qquickuniversal_accent_color(static_cast<Color>(val));
- } else {
- QColor color(var.toString());
- if (!color.isValid()) {
- qmlWarning(parent()) << "unknown Universal." << name << " value: " << var.toString();
- return false;
- }
- *rgba = color.rgba();
- }
- }
- return true;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/universal/qquickuniversalstyle_p.h b/src/imports/controls/universal/qquickuniversalstyle_p.h
deleted file mode 100644
index 429621d7..00000000
--- a/src/imports/controls/universal/qquickuniversalstyle_p.h
+++ /dev/null
@@ -1,241 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKUNIVERSALSTYLE_P_H
-#define QQUICKUNIVERSALSTYLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuickControls2/private/qquickattachedobject_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickUniversalStylePrivate;
-
-class QQuickUniversalStyle : public QQuickAttachedObject
-{
- Q_OBJECT
- Q_PROPERTY(Theme theme READ theme WRITE setTheme RESET resetTheme NOTIFY themeChanged FINAL)
- Q_PROPERTY(QVariant accent READ accent WRITE setAccent RESET resetAccent NOTIFY accentChanged FINAL)
- Q_PROPERTY(QVariant foreground READ foreground WRITE setForeground RESET resetForeground NOTIFY foregroundChanged FINAL)
- Q_PROPERTY(QVariant background READ background WRITE setBackground RESET resetBackground NOTIFY backgroundChanged FINAL)
-
- Q_PROPERTY(QColor altHighColor READ altHighColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor altLowColor READ altLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor altMediumColor READ altMediumColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor altMediumHighColor READ altMediumHighColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor altMediumLowColor READ altMediumLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor baseHighColor READ baseHighColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor baseLowColor READ baseLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor baseMediumColor READ baseMediumColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor baseMediumHighColor READ baseMediumHighColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor baseMediumLowColor READ baseMediumLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeAltLowColor READ chromeAltLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeBlackHighColor READ chromeBlackHighColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeBlackLowColor READ chromeBlackLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeBlackMediumLowColor READ chromeBlackMediumLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeBlackMediumColor READ chromeBlackMediumColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeDisabledHighColor READ chromeDisabledHighColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeDisabledLowColor READ chromeDisabledLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeHighColor READ chromeHighColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeLowColor READ chromeLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeMediumColor READ chromeMediumColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeMediumLowColor READ chromeMediumLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor chromeWhiteColor READ chromeWhiteColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor listLowColor READ listLowColor NOTIFY paletteChanged FINAL)
- Q_PROPERTY(QColor listMediumColor READ listMediumColor NOTIFY paletteChanged FINAL)
-
-public:
- explicit QQuickUniversalStyle(QObject *parent = nullptr);
-
- static QQuickUniversalStyle *qmlAttachedProperties(QObject *object);
-
- enum Theme { Light, Dark, System };
- Q_ENUM(Theme)
-
- Theme theme() const;
- void setTheme(Theme theme);
- void inheritTheme(Theme theme);
- void propagateTheme();
- void resetTheme();
-
- enum Color {
- Lime,
- Green,
- Emerald,
- Teal,
- Cyan,
- Cobalt,
- Indigo,
- Violet,
- Pink,
- Magenta,
- Crimson,
- Red,
- Orange,
- Amber,
- Yellow,
- Brown,
- Olive,
- Steel,
- Mauve,
- Taupe
- };
- Q_ENUM(Color)
-
- QVariant accent() const;
- void setAccent(const QVariant &accent);
- void inheritAccent(QRgb accent);
- void propagateAccent();
- void resetAccent();
-
- QVariant foreground() const;
- void setForeground(const QVariant &foreground);
- void inheritForeground(QRgb foreground, bool has);
- void propagateForeground();
- void resetForeground();
-
- QVariant background() const;
- void setBackground(const QVariant &background);
- void inheritBackground(QRgb background, bool has);
- void propagateBackground();
- void resetBackground();
-
- Q_INVOKABLE QColor color(Color color) const;
-
- QColor altHighColor() const;
- QColor altLowColor() const;
- QColor altMediumColor() const;
- QColor altMediumHighColor() const;
- QColor altMediumLowColor() const;
- QColor baseHighColor() const;
- QColor baseLowColor() const;
- QColor baseMediumColor() const;
- QColor baseMediumHighColor() const;
- QColor baseMediumLowColor() const;
- QColor chromeAltLowColor() const;
- QColor chromeBlackHighColor() const;
- QColor chromeBlackLowColor() const;
- QColor chromeBlackMediumLowColor() const;
- QColor chromeBlackMediumColor() const;
- QColor chromeDisabledHighColor() const;
- QColor chromeDisabledLowColor() const;
- QColor chromeHighColor() const;
- QColor chromeLowColor() const;
- QColor chromeMediumColor() const;
- QColor chromeMediumLowColor() const;
- QColor chromeWhiteColor() const;
- QColor listLowColor() const;
- QColor listMediumColor() const;
-
- enum SystemColor {
- AltHigh,
- AltLow,
- AltMedium,
- AltMediumHigh,
- AltMediumLow,
- BaseHigh,
- BaseLow,
- BaseMedium,
- BaseMediumHigh,
- BaseMediumLow,
- ChromeAltLow,
- ChromeBlackHigh,
- ChromeBlackLow,
- ChromeBlackMediumLow,
- ChromeBlackMedium,
- ChromeDisabledHigh,
- ChromeDisabledLow,
- ChromeHigh,
- ChromeLow,
- ChromeMedium,
- ChromeMediumLow,
- ChromeWhite,
- ListLow,
- ListMedium
- };
-
- QColor systemColor(SystemColor role) const;
-
- static void initGlobals();
-
-Q_SIGNALS:
- void themeChanged();
- void accentChanged();
- void foregroundChanged();
- void backgroundChanged();
- void paletteChanged();
-
-protected:
- void attachedParentChange(QQuickAttachedObject *newParent, QQuickAttachedObject *oldParent) override;
-
-private:
- bool variantToRgba(const QVariant &var, const char *name, QRgb *rgba) const;
-
- // These reflect whether a color value was explicitly set on the specific
- // item that this attached style object represents.
- bool m_explicitTheme = false;
- bool m_explicitAccent = false;
- bool m_explicitForeground = false;
- bool m_explicitBackground = false;
- // These will be true when this item has an explicit or inherited foreground/background
- // color, or these colors were declared globally via settings (e.g. conf or env vars).
- // Some color properties of the style will return different values depending on whether
- // or not these are set.
- bool m_hasForeground = false;
- bool m_hasBackground = false;
- // The actual values for this item, whether explicit, inherited or globally set.
- Theme m_theme = Light;
- QRgb m_accent = Qt::blue;
- QRgb m_foreground = Qt::black;
- QRgb m_background = Qt::white;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPEINFO(QQuickUniversalStyle, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKUNIVERSALSTYLE_P_H
diff --git a/src/imports/controls/universal/qquickuniversaltheme.cpp b/src/imports/controls/universal/qquickuniversaltheme.cpp
deleted file mode 100644
index 041dce9e..00000000
--- a/src/imports/controls/universal/qquickuniversaltheme.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickuniversaltheme_p.h"
-
-#include <QtGui/qfontinfo.h>
-#include <QtQuickTemplates2/private/qquicktheme_p.h>
-
-QT_BEGIN_NAMESPACE
-
-void QQuickUniversalTheme::initialize(QQuickTheme *theme)
-{
- QFont systemFont;
- QFont groupBoxTitleFont;
- QFont tabButtonFont;
-
- const QFont font(QLatin1String("Segoe UI"));
- if (QFontInfo(font).family() == QLatin1String("Segoe UI")) {
- const QString family = font.family();
- systemFont.setFamily(family);
- groupBoxTitleFont.setFamily(family);
- tabButtonFont.setFamily(family);
- }
-
- systemFont.setPixelSize(15);
- theme->setFont(QQuickTheme::System, systemFont);
-
- groupBoxTitleFont.setPixelSize(15);
- groupBoxTitleFont.setWeight(QFont::DemiBold);
- theme->setFont(QQuickTheme::GroupBox, groupBoxTitleFont);
-
- tabButtonFont.setPixelSize(24);
- tabButtonFont.setWeight(QFont::Light);
- theme->setFont(QQuickTheme::TabBar, tabButtonFont);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/controls/universal/qquickuniversaltheme_p.h b/src/imports/controls/universal/qquickuniversaltheme_p.h
deleted file mode 100644
index f762d0e3..00000000
--- a/src/imports/controls/universal/qquickuniversaltheme_p.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKUNIVERSALTHEME_P_H
-#define QQUICKUNIVERSALTHEME_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qglobal.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTheme;
-
-class QQuickUniversalTheme
-{
-public:
- static void initialize(QQuickTheme *theme);
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKUNIVERSALTHEME_P_H
diff --git a/src/imports/controls/universal/qtquickcontrols2universalstyleplugin.cpp b/src/imports/controls/universal/qtquickcontrols2universalstyleplugin.cpp
deleted file mode 100644
index 08cd5001..00000000
--- a/src/imports/controls/universal/qtquickcontrols2universalstyleplugin.cpp
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 <QtQuickControls2/private/qquickstyleplugin_p.h>
-
-#include "qquickuniversalbusyindicator_p.h"
-#include "qquickuniversalfocusrectangle_p.h"
-#include "qquickuniversalprogressbar_p.h"
-#include "qquickuniversalstyle_p.h"
-#include "qquickuniversaltheme_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QtQuickControls2UniversalStylePlugin: public QQuickStylePlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtQuickControls2UniversalStylePlugin(QObject *parent = nullptr);
-
- void registerTypes(const char *uri) override;
-
- QString name() const override;
- void initializeTheme(QQuickTheme *theme) override;
-};
-
-QtQuickControls2UniversalStylePlugin::QtQuickControls2UniversalStylePlugin(QObject *parent) : QQuickStylePlugin(parent)
-{
- QQuickUniversalStyle::initGlobals();
-}
-
-void QtQuickControls2UniversalStylePlugin::registerTypes(const char *uri)
-{
- qmlRegisterModule(uri, 2, 15); // Qt 5.12->2.12, 5.13->2.13...
- qmlRegisterUncreatableType<QQuickUniversalStyle>(uri, 2, 0, "Universal", tr("Universal is an attached property"));
-
- QByteArray import = QByteArray(uri) + ".impl";
- qmlRegisterModule(import, 2, 15); // Qt 5.12->2.12, 5.13->2.13...
-
- qmlRegisterType<QQuickUniversalFocusRectangle>(import, 2, 0, "FocusRectangle");
- qmlRegisterType<QQuickUniversalBusyIndicator>(import, 2, 0, "BusyIndicatorImpl");
- qmlRegisterType<QQuickUniversalProgressBar>(import, 2, 0, "ProgressBarImpl");
-
- qmlRegisterType(resolvedUrl(QStringLiteral("CheckIndicator.qml")), import, 2, 0, "CheckIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("RadioIndicator.qml")), import, 2, 0, "RadioIndicator");
- qmlRegisterType(resolvedUrl(QStringLiteral("SwitchIndicator.qml")), import, 2, 0, "SwitchIndicator");
-}
-
-QString QtQuickControls2UniversalStylePlugin::name() const
-{
- return QStringLiteral("Universal");
-}
-
-void QtQuickControls2UniversalStylePlugin::initializeTheme(QQuickTheme *theme)
-{
- QQuickUniversalTheme::initialize(theme);
-}
-
-QT_END_NAMESPACE
-
-#include "qtquickcontrols2universalstyleplugin.moc"
diff --git a/src/imports/controls/universal/qtquickcontrols2universalstyleplugin.qrc b/src/imports/controls/universal/qtquickcontrols2universalstyleplugin.qrc
deleted file mode 100644
index cd9ea61f..00000000
--- a/src/imports/controls/universal/qtquickcontrols2universalstyleplugin.qrc
+++ /dev/null
@@ -1,20 +0,0 @@
-<!DOCTYPE RCC><RCC version="1.0">
-<qresource prefix="qt-project.org/imports/QtQuick/Controls.2/Universal">
- <file>images/checkmark.png</file>
- <file>images/checkmark@2x.png</file>
- <file>images/checkmark@3x.png</file>
- <file>images/checkmark@4x.png</file>
- <file>images/downarrow.png</file>
- <file>images/downarrow@2x.png</file>
- <file>images/downarrow@3x.png</file>
- <file>images/downarrow@4x.png</file>
- <file>images/leftarrow.png</file>
- <file>images/leftarrow@2x.png</file>
- <file>images/leftarrow@3x.png</file>
- <file>images/leftarrow@4x.png</file>
- <file>images/rightarrow.png</file>
- <file>images/rightarrow@2x.png</file>
- <file>images/rightarrow@3x.png</file>
- <file>images/rightarrow@4x.png</file>
-</qresource>
-</RCC>
diff --git a/src/imports/controls/universal/universal.pri b/src/imports/controls/universal/universal.pri
deleted file mode 100644
index 4440acbf..00000000
--- a/src/imports/controls/universal/universal.pri
+++ /dev/null
@@ -1,65 +0,0 @@
-QML_FILES += \
- $$PWD/ApplicationWindow.qml \
- $$PWD/BusyIndicator.qml \
- $$PWD/Button.qml \
- $$PWD/CheckBox.qml \
- $$PWD/CheckDelegate.qml \
- $$PWD/CheckIndicator.qml \
- $$PWD/ComboBox.qml \
- $$PWD/DelayButton.qml \
- $$PWD/Dial.qml \
- $$PWD/Dialog.qml \
- $$PWD/DialogButtonBox.qml \
- $$PWD/Drawer.qml \
- $$PWD/Frame.qml \
- $$PWD/GroupBox.qml \
- $$PWD/ItemDelegate.qml \
- $$PWD/Label.qml \
- $$PWD/Menu.qml \
- $$PWD/MenuBar.qml \
- $$PWD/MenuBarItem.qml \
- $$PWD/MenuItem.qml \
- $$PWD/MenuSeparator.qml \
- $$PWD/Page.qml \
- $$PWD/PageIndicator.qml \
- $$PWD/Pane.qml \
- $$PWD/Popup.qml \
- $$PWD/ProgressBar.qml \
- $$PWD/RadioButton.qml \
- $$PWD/RadioDelegate.qml \
- $$PWD/RadioIndicator.qml \
- $$PWD/RangeSlider.qml \
- $$PWD/RoundButton.qml \
- $$PWD/ScrollBar.qml \
- $$PWD/ScrollIndicator.qml \
- $$PWD/Slider.qml \
- $$PWD/SpinBox.qml \
- $$PWD/SplitView.qml \
- $$PWD/StackView.qml \
- $$PWD/SwipeDelegate.qml \
- $$PWD/SwitchDelegate.qml \
- $$PWD/SwitchIndicator.qml \
- $$PWD/Switch.qml \
- $$PWD/TabBar.qml \
- $$PWD/TabButton.qml \
- $$PWD/TextArea.qml \
- $$PWD/TextField.qml \
- $$PWD/ToolBar.qml \
- $$PWD/ToolButton.qml \
- $$PWD/ToolSeparator.qml \
- $$PWD/ToolTip.qml \
- $$PWD/Tumbler.qml
-
-HEADERS += \
- $$PWD/qquickuniversalbusyindicator_p.h \
- $$PWD/qquickuniversalfocusrectangle_p.h \
- $$PWD/qquickuniversalprogressbar_p.h \
- $$PWD/qquickuniversalstyle_p.h \
- $$PWD/qquickuniversaltheme_p.h
-
-SOURCES += \
- $$PWD/qquickuniversalbusyindicator.cpp \
- $$PWD/qquickuniversalfocusrectangle.cpp \
- $$PWD/qquickuniversalprogressbar.cpp \
- $$PWD/qquickuniversalstyle.cpp \
- $$PWD/qquickuniversaltheme.cpp
diff --git a/src/imports/controls/universal/universal.pro b/src/imports/controls/universal/universal.pro
deleted file mode 100644
index 99bad4da..00000000
--- a/src/imports/controls/universal/universal.pro
+++ /dev/null
@@ -1,27 +0,0 @@
-TARGET = qtquickcontrols2universalstyleplugin
-TARGETPATH = QtQuick/Controls.2/Universal
-
-IMPORT_NAME = QtQuick.Controls.Universal
-IMPORT_VERSION = 2.$$QT_MINOR_VERSION
-
-QT += qml quick
-QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-include(universal.pri)
-
-OTHER_FILES += \
- qmldir \
- $$QML_FILES
-
-SOURCES += \
- $$PWD/qtquickcontrols2universalstyleplugin.cpp
-
-RESOURCES += \
- $$PWD/qtquickcontrols2universalstyleplugin.qrc
-
-CONFIG += no_cxx_module install_qml_files builtin_resources qtquickcompiler
-load(qml_plugin)
-
-requires(qtConfig(quickcontrols2-universal))
diff --git a/src/imports/imports.pro b/src/imports/imports.pro
deleted file mode 100644
index e32bded7..00000000
--- a/src/imports/imports.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- controls \
- calendar \
- platform \
- templates
-
-SUBDIRS += \
- controls/fusion/fusion.pro \
- controls/imagine/imagine.pro \
- controls/material/material.pro \
- controls/universal/universal.pro
diff --git a/src/imports/platform/doc/images/qtlabsplatform-colordialog-gtk.png b/src/imports/platform/doc/images/qtlabsplatform-colordialog-gtk.png
deleted file mode 100644
index e0785a05..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-colordialog-gtk.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-filedialog-gtk.png b/src/imports/platform/doc/images/qtlabsplatform-filedialog-gtk.png
deleted file mode 100644
index 3bc963d0..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-filedialog-gtk.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-folderdialog-gtk.png b/src/imports/platform/doc/images/qtlabsplatform-folderdialog-gtk.png
deleted file mode 100644
index ea4d929d..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-folderdialog-gtk.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-fontdialog-gtk.png b/src/imports/platform/doc/images/qtlabsplatform-fontdialog-gtk.png
deleted file mode 100644
index 9f3dc2e7..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-fontdialog-gtk.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-menu.png b/src/imports/platform/doc/images/qtlabsplatform-menu.png
deleted file mode 100644
index 120d263b..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-menu.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-menubar.png b/src/imports/platform/doc/images/qtlabsplatform-menubar.png
deleted file mode 100644
index 685d03b3..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-menubar.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-messagedialog-android.png b/src/imports/platform/doc/images/qtlabsplatform-messagedialog-android.png
deleted file mode 100644
index a1de1806..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-messagedialog-android.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-messagedialog-informative-android.png b/src/imports/platform/doc/images/qtlabsplatform-messagedialog-informative-android.png
deleted file mode 100644
index 7062ed90..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-messagedialog-informative-android.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon-menu.png b/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon-menu.png
deleted file mode 100644
index 0d0ecfab..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon-menu.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon-message.png b/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon-message.png
deleted file mode 100644
index d929ca97..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon-message.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon.png b/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon.png
deleted file mode 100644
index 58c40d73..00000000
--- a/src/imports/platform/doc/images/qtlabsplatform-systemtrayicon.png
+++ /dev/null
Binary files differ
diff --git a/src/imports/platform/doc/qtlabsplatform.qdocconf b/src/imports/platform/doc/qtlabsplatform.qdocconf
deleted file mode 100644
index ae1a63f1..00000000
--- a/src/imports/platform/doc/qtlabsplatform.qdocconf
+++ /dev/null
@@ -1,41 +0,0 @@
-include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
-include($QT_INSTALL_DOCS/config/exampleurl-qtquickcontrols2.qdocconf)
-
-project = QtLabsPlatform
-description = Qt Labs Platform Reference Documentation
-version = $QT_VERSION
-
-qhp.projects = QtLabsPlatform
-
-qhp.QtLabsPlatform.file = qtlabsplatform.qhp
-qhp.QtLabsPlatform.namespace = org.qt-project.qtlabsplatform.$QT_VERSION_TAG
-qhp.QtLabsPlatform.virtualFolder = qtlabsplatform
-qhp.QtLabsPlatform.indexTitle = Qt Labs Platform
-qhp.QtLabsPlatform.indexRoot =
-
-qhp.QtLabsPlatform.filterAttributes = qtlabsplatform $QT_VERSION qtrefdoc
-qhp.QtLabsPlatform.customFilters.Qt.name = QtLabsPlatform $QT_VERSION
-qhp.QtLabsPlatform.customFilters.Qt.filterAttributes = qtlabsplatform $QT_VERSION
-
-qhp.QtLabsPlatform.subprojects = qmltypes
-qhp.QtLabsPlatform.subprojects.qmltypes.title = QML Types
-qhp.QtLabsPlatform.subprojects.qmltypes.indexTitle = Qt Labs Platform QML Types
-qhp.QtLabsPlatform.subprojects.qmltypes.selectors = qmlclass
-qhp.QtLabsPlatform.subprojects.qmltypes.sortPages = true
-
-depends = qtcore qtgui qtdoc qtqml qtquick qtquickcontrols qtwidgets
-
-# This module has no documented C++ types, clear the module header
-moduleheader =
-
-headerdirs += ../
-sourcedirs += ../
-
-imagedirs += images
-
-navigation.landingpage = "Qt Labs Platform"
-navigation.qmltypespage = "Qt Labs Platform QML Types"
-
-tagfile = qtlabsplatform.tags
-
-macro.labs = "\\note \\e{Types in Qt.labs modules are not guaranteed to remain compatible in future versions.}"
diff --git a/src/imports/platform/doc/src/includes/widgets.qdocinc b/src/imports/platform/doc/src/includes/widgets.qdocinc
deleted file mode 100644
index c89c3ca0..00000000
--- a/src/imports/platform/doc/src/includes/widgets.qdocinc
+++ /dev/null
@@ -1,29 +0,0 @@
-//! [1]
-The Qt Labs Platform module uses Qt Widgets as a fallback on platforms that
-do not have a native implementation available. Therefore, applications that
-use types from the Qt Labs Platform module should link to QtWidgets and use
-\l QApplication instead of \l QGuiApplication.
-
-To link against the QtWidgets library, add the following to your qmake project
-file:
-
-\code
-QT += widgets
-\endcode
-
-Create an instance of \l QApplication in \c main():
-
-\code
-#include <QApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QApplication app(argc, argv);
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
- return app.exec();
-}
-\endcode
-//! [1]
diff --git a/src/imports/platform/doc/src/qtlabsplatform-index.qdoc b/src/imports/platform/doc/src/qtlabsplatform-index.qdoc
deleted file mode 100644
index 7b3f78fb..00000000
--- a/src/imports/platform/doc/src/qtlabsplatform-index.qdoc
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtlabsplatform-index.html
- \title Qt Labs Platform
-
- \brief The experimental Qt Labs Platform module provides QML types for
- native platform extensions.
-
- The experimental Qt Labs Platform module provides QML types for native
- platform extensions. The module was introduced in Qt 5.8.
-
- \section1 QML Types
-
- \generatelist {qmltypesbymodule Qt.labs.platform}
-
- \labs
-
- \section1 Related Information
-
- \list
- \li \l{Qt Quick}
- \li \l{Qt Quick Controls}
- \endlist
-*/
diff --git a/src/imports/platform/doc/src/qtlabsplatform-qmltypes.qdoc b/src/imports/platform/doc/src/qtlabsplatform-qmltypes.qdoc
deleted file mode 100644
index dec67b72..00000000
--- a/src/imports/platform/doc/src/qtlabsplatform-qmltypes.qdoc
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlmodule Qt.labs.platform 1.1
- \title Qt Labs Platform QML Types
- \ingroup qmlmodules
- \brief Provides QML types for native platform extensions.
-
- The experimental \l{Qt Labs Platform} module provides QML types for native
- platform extensions. These QML types work in conjunction with \l{Qt Quick}
- and \l{Qt Quick Controls}.
-
- The QML types can be imported into your application using the
- following import statement in your .qml file:
-
- \badcode
- import Qt.labs.platform 1.1
- \endcode
-
- \section1 QML Types
-
- \generatelist {qmltypesbymodule Qt.labs.platform}
-
- \labs
-
- \section1 Related Information
-
- \list
- \li \l {Qt Quick Controls QML Types}
- \endlist
-
- \noautolist
-*/
diff --git a/src/imports/platform/platform.pri b/src/imports/platform/platform.pri
deleted file mode 100644
index ec6e8616..00000000
--- a/src/imports/platform/platform.pri
+++ /dev/null
@@ -1,39 +0,0 @@
-HEADERS += \
- $$PWD/qquickplatformcolordialog_p.h \
- $$PWD/qquickplatformdialog_p.h \
- $$PWD/qquickplatformfiledialog_p.h \
- $$PWD/qquickplatformfolderdialog_p.h \
- $$PWD/qquickplatformfontdialog_p.h \
- $$PWD/qquickplatformicon_p.h \
- $$PWD/qquickplatformiconloader_p.h \
- $$PWD/qquickplatformmenu_p.h \
- $$PWD/qquickplatformmenubar_p.h \
- $$PWD/qquickplatformmenuitem_p.h \
- $$PWD/qquickplatformmenuitemgroup_p.h \
- $$PWD/qquickplatformmenuseparator_p.h \
- $$PWD/qquickplatformmessagedialog_p.h \
- $$PWD/qquickplatformstandardpaths_p.h
-
-SOURCES += \
- $$PWD/qquickplatformcolordialog.cpp \
- $$PWD/qquickplatformdialog.cpp \
- $$PWD/qquickplatformfiledialog.cpp \
- $$PWD/qquickplatformfolderdialog.cpp \
- $$PWD/qquickplatformfontdialog.cpp \
- $$PWD/qquickplatformicon.cpp \
- $$PWD/qquickplatformiconloader.cpp \
- $$PWD/qquickplatformmenu.cpp \
- $$PWD/qquickplatformmenubar.cpp \
- $$PWD/qquickplatformmenuitem.cpp \
- $$PWD/qquickplatformmenuitemgroup.cpp \
- $$PWD/qquickplatformmenuseparator.cpp \
- $$PWD/qquickplatformmessagedialog.cpp \
- $$PWD/qquickplatformstandardpaths.cpp
-
-
-qtConfig(systemtrayicon) {
- HEADERS += \
- $$PWD/qquickplatformsystemtrayicon_p.h
- SOURCES += \
- $$PWD/qquickplatformsystemtrayicon.cpp
-}
diff --git a/src/imports/platform/platform.pro b/src/imports/platform/platform.pro
deleted file mode 100644
index 043b0172..00000000
--- a/src/imports/platform/platform.pro
+++ /dev/null
@@ -1,22 +0,0 @@
-TARGET = qtlabsplatformplugin
-TARGETPATH = Qt/labs/platform
-IMPORT_VERSION = 1.0
-
-QT += qml quick
-QT_PRIVATE += core-private gui-private qml-private quick-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-QMAKE_DOCS = $$PWD/doc/qtlabsplatform.qdocconf
-
-OTHER_FILES += \
- qmldir
-
-SOURCES += \
- $$PWD/qtlabsplatformplugin.cpp
-
-include(platform.pri)
-qtHaveModule(widgets): include(widgets/widgets.pri)
-
-CONFIG += no_cxx_module
-load(qml_plugin)
diff --git a/src/imports/platform/plugins.qmltypes b/src/imports/platform/plugins.qmltypes
deleted file mode 100644
index 7b165ef3..00000000
--- a/src/imports/platform/plugins.qmltypes
+++ /dev/null
@@ -1,489 +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 Qt.labs.platform 1.0'
-
-Module {
- dependencies: ["QtQuick 2.0"]
- Component {
- name: "QPlatformDialogHelper"
- prototype: "QObject"
- exports: ["Qt.labs.platform/StandardButton 1.0"]
- isCreatable: false
- exportMetaObjectRevisions: [0]
- Enum {
- name: "StandardButtons"
- values: {
- "NoButton": 0,
- "Ok": 1024,
- "Save": 2048,
- "SaveAll": 4096,
- "Open": 8192,
- "Yes": 16384,
- "YesToAll": 32768,
- "No": 65536,
- "NoToAll": 131072,
- "Abort": 262144,
- "Retry": 524288,
- "Ignore": 1048576,
- "Close": 2097152,
- "Cancel": 4194304,
- "Discard": 8388608,
- "Help": 16777216,
- "Apply": 33554432,
- "Reset": 67108864,
- "RestoreDefaults": 134217728,
- "FirstButton": 1024,
- "LastButton": 134217728,
- "LowestBit": 10,
- "HighestBit": 27
- }
- }
- Enum {
- name: "ButtonRole"
- values: {
- "InvalidRole": -1,
- "AcceptRole": 0,
- "RejectRole": 1,
- "DestructiveRole": 2,
- "ActionRole": 3,
- "HelpRole": 4,
- "YesRole": 5,
- "NoRole": 6,
- "ResetRole": 7,
- "ApplyRole": 8,
- "NRoles": 9,
- "RoleMask": 268435455,
- "AlternateRole": 268435456,
- "Stretch": 536870912,
- "Reverse": 1073741824,
- "EOL": -1
- }
- }
- Enum {
- name: "ButtonLayout"
- values: {
- "UnknownLayout": -1,
- "WinLayout": 0,
- "MacLayout": 1,
- "KdeLayout": 2,
- "GnomeLayout": 3,
- "MacModelessLayout": 4,
- "AndroidLayout": 5
- }
- }
- Signal { name: "accept" }
- Signal { name: "reject" }
- }
- Component {
- name: "QQuickPlatformColorDialog"
- defaultProperty: "data"
- prototype: "QQuickPlatformDialog"
- exports: ["Qt.labs.platform/ColorDialog 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "color"; type: "QColor" }
- Property { name: "currentColor"; type: "QColor" }
- Property { name: "options"; type: "QColorDialogOptions::ColorDialogOptions" }
- }
- Component {
- name: "QQuickPlatformDialog"
- defaultProperty: "data"
- prototype: "QObject"
- exports: ["Qt.labs.platform/Dialog 1.0"]
- isCreatable: false
- exportMetaObjectRevisions: [0]
- Enum {
- name: "StandardCode"
- values: {
- "Rejected": 0,
- "Accepted": 1
- }
- }
- Property { name: "data"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "parentWindow"; type: "QWindow"; isPointer: true }
- Property { name: "title"; type: "string" }
- Property { name: "flags"; type: "Qt::WindowFlags" }
- Property { name: "modality"; type: "Qt::WindowModality" }
- Property { name: "visible"; type: "bool" }
- Property { name: "result"; type: "int" }
- Signal { name: "accepted" }
- Signal { name: "rejected" }
- Method { name: "open" }
- Method { name: "close" }
- Method { name: "accept" }
- Method { name: "reject" }
- Method {
- name: "done"
- Parameter { name: "result"; type: "int" }
- }
- }
- Component {
- name: "QQuickPlatformFileDialog"
- defaultProperty: "data"
- prototype: "QQuickPlatformDialog"
- exports: ["Qt.labs.platform/FileDialog 1.0"]
- exportMetaObjectRevisions: [0]
- Enum {
- name: "FileMode"
- values: {
- "OpenFile": 0,
- "OpenFiles": 1,
- "SaveFile": 2
- }
- }
- Property { name: "fileMode"; type: "FileMode" }
- Property { name: "file"; type: "QUrl" }
- Property { name: "files"; type: "QList<QUrl>" }
- Property { name: "currentFile"; type: "QUrl" }
- Property { name: "currentFiles"; type: "QList<QUrl>" }
- Property { name: "folder"; type: "QUrl" }
- Property { name: "options"; type: "QFileDialogOptions::FileDialogOptions" }
- Property { name: "nameFilters"; type: "QStringList" }
- Property {
- name: "selectedNameFilter"
- type: "QQuickPlatformFileNameFilter"
- isReadonly: true
- isPointer: true
- }
- Property { name: "defaultSuffix"; type: "string" }
- Property { name: "acceptLabel"; type: "string" }
- Property { name: "rejectLabel"; type: "string" }
- }
- Component {
- name: "QQuickPlatformFileNameFilter"
- prototype: "QObject"
- Property { name: "index"; type: "int" }
- Property { name: "name"; type: "string"; isReadonly: true }
- Property { name: "extensions"; type: "QStringList"; isReadonly: true }
- Signal {
- name: "indexChanged"
- Parameter { name: "index"; type: "int" }
- }
- Signal {
- name: "nameChanged"
- Parameter { name: "name"; type: "string" }
- }
- Signal {
- name: "extensionsChanged"
- Parameter { name: "extensions"; type: "QStringList" }
- }
- }
- Component {
- name: "QQuickPlatformFolderDialog"
- defaultProperty: "data"
- prototype: "QQuickPlatformDialog"
- exports: ["Qt.labs.platform/FolderDialog 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "folder"; type: "QUrl" }
- Property { name: "currentFolder"; type: "QUrl" }
- Property { name: "options"; type: "QFileDialogOptions::FileDialogOptions" }
- Property { name: "acceptLabel"; type: "string" }
- Property { name: "rejectLabel"; type: "string" }
- }
- Component {
- name: "QQuickPlatformFontDialog"
- defaultProperty: "data"
- prototype: "QQuickPlatformDialog"
- exports: ["Qt.labs.platform/FontDialog 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "font"; type: "QFont" }
- Property { name: "currentFont"; type: "QFont" }
- Property { name: "options"; type: "QFontDialogOptions::FontDialogOptions" }
- }
- Component {
- name: "QQuickPlatformIcon"
- Property { name: "source"; type: "QUrl" }
- Property { name: "name"; type: "string" }
- Property { name: "mask"; type: "bool" }
- }
- Component {
- name: "QQuickPlatformMenu"
- defaultProperty: "data"
- prototype: "QObject"
- exports: ["Qt.labs.platform/Menu 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "data"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "items"; type: "QQuickPlatformMenuItem"; isList: true; isReadonly: true }
- Property { name: "menuBar"; type: "QQuickPlatformMenuBar"; isReadonly: true; isPointer: true }
- Property { name: "parentMenu"; type: "QQuickPlatformMenu"; isReadonly: true; isPointer: true }
- Property {
- name: "systemTrayIcon"
- type: "QQuickPlatformSystemTrayIcon"
- isReadonly: true
- isPointer: true
- }
- Property { name: "menuItem"; type: "QQuickPlatformMenuItem"; isReadonly: true; isPointer: true }
- Property { name: "enabled"; type: "bool" }
- Property { name: "visible"; type: "bool" }
- Property { name: "minimumWidth"; type: "int" }
- Property { name: "type"; type: "QPlatformMenu::MenuType" }
- Property { name: "title"; type: "string" }
- Property { name: "iconSource"; type: "QUrl" }
- Property { name: "iconName"; type: "string" }
- Property { name: "font"; type: "QFont" }
- Property { name: "icon"; revision: 1; type: "QQuickPlatformIcon" }
- Signal { name: "aboutToShow" }
- Signal { name: "aboutToHide" }
- Signal { name: "iconChanged"; revision: 1 }
- Method {
- name: "open"
- Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
- }
- Method { name: "close" }
- Method {
- name: "addItem"
- Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
- }
- Method {
- name: "insertItem"
- Parameter { name: "index"; type: "int" }
- Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
- }
- Method {
- name: "removeItem"
- Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
- }
- Method {
- name: "addMenu"
- Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
- }
- Method {
- name: "insertMenu"
- Parameter { name: "index"; type: "int" }
- Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
- }
- Method {
- name: "removeMenu"
- Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
- }
- Method { name: "clear" }
- }
- Component {
- name: "QQuickPlatformMenuBar"
- defaultProperty: "data"
- prototype: "QObject"
- exports: ["Qt.labs.platform/MenuBar 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "data"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "menus"; type: "QQuickPlatformMenu"; isList: true; isReadonly: true }
- Property { name: "window"; type: "QWindow"; isPointer: true }
- Method {
- name: "addMenu"
- Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
- }
- Method {
- name: "insertMenu"
- Parameter { name: "index"; type: "int" }
- Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
- }
- Method {
- name: "removeMenu"
- Parameter { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
- }
- Method { name: "clear" }
- }
- Component {
- name: "QQuickPlatformMenuItem"
- prototype: "QObject"
- exports: ["Qt.labs.platform/MenuItem 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "menu"; type: "QQuickPlatformMenu"; isReadonly: true; isPointer: true }
- Property { name: "subMenu"; type: "QQuickPlatformMenu"; isReadonly: true; isPointer: true }
- Property { name: "group"; type: "QQuickPlatformMenuItemGroup"; isPointer: true }
- Property { name: "enabled"; type: "bool" }
- Property { name: "visible"; type: "bool" }
- Property { name: "separator"; type: "bool" }
- Property { name: "checkable"; type: "bool" }
- Property { name: "checked"; type: "bool" }
- Property { name: "role"; type: "QPlatformMenuItem::MenuRole" }
- Property { name: "text"; type: "string" }
- Property { name: "iconSource"; type: "QUrl" }
- Property { name: "iconName"; type: "string" }
- Property { name: "shortcut"; type: "QVariant" }
- Property { name: "font"; type: "QFont" }
- Property { name: "icon"; revision: 1; type: "QQuickPlatformIcon" }
- Signal { name: "triggered" }
- Signal { name: "hovered" }
- Signal { name: "iconChanged"; revision: 1 }
- Method { name: "toggle" }
- }
- Component {
- name: "QQuickPlatformMenuItemGroup"
- prototype: "QObject"
- exports: ["Qt.labs.platform/MenuItemGroup 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "enabled"; type: "bool" }
- Property { name: "visible"; type: "bool" }
- Property { name: "exclusive"; type: "bool" }
- Property { name: "checkedItem"; type: "QQuickPlatformMenuItem"; isPointer: true }
- Property { name: "items"; type: "QQuickPlatformMenuItem"; isList: true; isReadonly: true }
- Signal {
- name: "triggered"
- Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
- }
- Signal {
- name: "hovered"
- Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
- }
- Method {
- name: "addItem"
- Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
- }
- Method {
- name: "removeItem"
- Parameter { name: "item"; type: "QQuickPlatformMenuItem"; isPointer: true }
- }
- Method { name: "clear" }
- }
- Component {
- name: "QQuickPlatformMenuSeparator"
- prototype: "QQuickPlatformMenuItem"
- exports: ["Qt.labs.platform/MenuSeparator 1.0"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickPlatformMessageDialog"
- defaultProperty: "data"
- prototype: "QQuickPlatformDialog"
- exports: ["Qt.labs.platform/MessageDialog 1.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "text"; type: "string" }
- Property { name: "informativeText"; type: "string" }
- Property { name: "detailedText"; type: "string" }
- Property { name: "buttons"; type: "QPlatformDialogHelper::StandardButtons" }
- Signal {
- name: "clicked"
- Parameter { name: "button"; type: "QPlatformDialogHelper::StandardButton" }
- }
- Signal { name: "okClicked" }
- Signal { name: "saveClicked" }
- Signal { name: "saveAllClicked" }
- Signal { name: "openClicked" }
- Signal { name: "yesClicked" }
- Signal { name: "yesToAllClicked" }
- Signal { name: "noClicked" }
- Signal { name: "noToAllClicked" }
- Signal { name: "abortClicked" }
- Signal { name: "retryClicked" }
- Signal { name: "ignoreClicked" }
- Signal { name: "closeClicked" }
- Signal { name: "cancelClicked" }
- Signal { name: "discardClicked" }
- Signal { name: "helpClicked" }
- Signal { name: "applyClicked" }
- Signal { name: "resetClicked" }
- Signal { name: "restoreDefaultsClicked" }
- }
- Component {
- name: "QQuickPlatformStandardPaths"
- prototype: "QObject"
- exports: ["Qt.labs.platform/StandardPaths 1.0"]
- isCreatable: false
- isSingleton: true
- exportMetaObjectRevisions: [0]
- Method {
- name: "displayName"
- type: "string"
- Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
- }
- Method {
- name: "findExecutable"
- type: "QUrl"
- Parameter { name: "executableName"; type: "string" }
- Parameter { name: "paths"; type: "QStringList" }
- }
- Method {
- name: "findExecutable"
- type: "QUrl"
- Parameter { name: "executableName"; type: "string" }
- }
- Method {
- name: "locate"
- type: "QUrl"
- Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
- Parameter { name: "fileName"; type: "string" }
- Parameter { name: "options"; type: "QStandardPaths::LocateOptions" }
- }
- Method {
- name: "locate"
- type: "QUrl"
- Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
- Parameter { name: "fileName"; type: "string" }
- }
- Method {
- name: "locateAll"
- type: "QList<QUrl>"
- Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
- Parameter { name: "fileName"; type: "string" }
- Parameter { name: "options"; type: "QStandardPaths::LocateOptions" }
- }
- Method {
- name: "locateAll"
- type: "QList<QUrl>"
- Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
- Parameter { name: "fileName"; type: "string" }
- }
- Method {
- name: "setTestModeEnabled"
- Parameter { name: "testMode"; type: "bool" }
- }
- Method {
- name: "standardLocations"
- type: "QList<QUrl>"
- Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
- }
- Method {
- name: "writableLocation"
- type: "QUrl"
- Parameter { name: "type"; type: "QStandardPaths::StandardLocation" }
- }
- }
- Component {
- name: "QQuickPlatformSystemTrayIcon"
- prototype: "QObject"
- exports: [
- "Qt.labs.platform/SystemTrayIcon 1.0",
- "Qt.labs.platform/SystemTrayIcon 1.1"
- ]
- exportMetaObjectRevisions: [0, 1]
- Property { name: "available"; type: "bool"; isReadonly: true }
- Property { name: "supportsMessages"; type: "bool"; isReadonly: true }
- Property { name: "visible"; type: "bool" }
- Property { name: "iconSource"; type: "QUrl" }
- Property { name: "iconName"; type: "string" }
- Property { name: "tooltip"; type: "string" }
- Property { name: "menu"; type: "QQuickPlatformMenu"; isPointer: true }
- Property { name: "geometry"; revision: 1; type: "QRect"; isReadonly: true }
- Property { name: "icon"; revision: 1; type: "QQuickPlatformIcon" }
- Signal {
- name: "activated"
- Parameter { name: "reason"; type: "QPlatformSystemTrayIcon::ActivationReason" }
- }
- Signal { name: "messageClicked" }
- Signal { name: "geometryChanged"; revision: 1 }
- Signal { name: "iconChanged"; revision: 1 }
- Method { name: "show" }
- Method { name: "hide" }
- Method {
- name: "showMessage"
- Parameter { name: "title"; type: "string" }
- Parameter { name: "message"; type: "string" }
- Parameter { name: "iconType"; type: "QPlatformSystemTrayIcon::MessageIcon" }
- Parameter { name: "msecs"; type: "int" }
- }
- Method {
- name: "showMessage"
- Parameter { name: "title"; type: "string" }
- Parameter { name: "message"; type: "string" }
- Parameter { name: "iconType"; type: "QPlatformSystemTrayIcon::MessageIcon" }
- }
- Method {
- name: "showMessage"
- Parameter { name: "title"; type: "string" }
- Parameter { name: "message"; type: "string" }
- }
- }
-}
diff --git a/src/imports/platform/qmldir b/src/imports/platform/qmldir
deleted file mode 100644
index 9653b7d3..00000000
--- a/src/imports/platform/qmldir
+++ /dev/null
@@ -1,3 +0,0 @@
-module Qt.labs.platform
-plugin qtlabsplatformplugin
-classname QtLabsPlatformPlugin
diff --git a/src/imports/platform/qquickplatformcolordialog.cpp b/src/imports/platform/qquickplatformcolordialog.cpp
deleted file mode 100644
index 0b8cfd97..00000000
--- a/src/imports/platform/qquickplatformcolordialog.cpp
+++ /dev/null
@@ -1,206 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformcolordialog_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ColorDialog
- \inherits Dialog
- \instantiates QQuickPlatformColorDialog
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native color dialog.
-
- The ColorDialog type provides a QML API for native platform color dialogs.
-
- \image qtlabsplatform-colordialog-gtk.png
-
- To show a color dialog, construct an instance of ColorDialog, set the
- desired properties, and call \l {Dialog::}{open()}. The \l currentColor
- property can be used to determine the currently selected color in the
- dialog. The \l color property is updated only after the final selection
- has been made by accepting the dialog.
-
- \code
- MenuItem {
- text: "Color"
- onTriggered: colorDialog.open()
- }
-
- ColorDialog {
- id: colorDialog
- currentColor: document.color
- }
-
- MyDocument {
- id: document
- color: colorDialog.color
- }
- \endcode
-
- \section2 Availability
-
- A native platform color dialog is currently available on the following platforms:
-
- \list
- \li macOS
- \li Linux (when running with the GTK+ platform theme)
- \endlist
-
- \input includes/widgets.qdocinc 1
-
- \labs
-*/
-
-QQuickPlatformColorDialog::QQuickPlatformColorDialog(QObject *parent)
- : QQuickPlatformDialog(QPlatformTheme::ColorDialog, parent),
- m_options(QColorDialogOptions::create())
-{
-}
-
-/*!
- \qmlproperty color Qt.labs.platform::ColorDialog::color
-
- This property holds the final accepted color.
-
- Unlike the \l currentColor property, the \c color property is not updated
- while the user is selecting colors in the dialog, but only after the final
- selection has been made. That is, when the user has clicked \uicontrol OK
- to accept a color. Alternatively, the \l {Dialog::}{accepted()} signal
- can be handled to get the final selection.
-
- \sa currentColor, {Dialog::}{accepted()}
-*/
-QColor QQuickPlatformColorDialog::color() const
-{
- return m_color;
-}
-
-void QQuickPlatformColorDialog::setColor(const QColor &color)
-{
- if (m_color == color)
- return;
-
- m_color = color;
- setCurrentColor(color);
- emit colorChanged();
-}
-
-/*!
- \qmlproperty color Qt.labs.platform::ColorDialog::currentColor
-
- This property holds the currently selected color in the dialog.
-
- Unlike the \l color property, the \c currentColor property is updated
- while the user is selecting colors in the dialog, even before the final
- selection has been made.
-
- \sa color
-*/
-QColor QQuickPlatformColorDialog::currentColor() const
-{
- if (QPlatformColorDialogHelper *colorDialog = qobject_cast<QPlatformColorDialogHelper *>(handle()))
- return colorDialog->currentColor();
- return m_currentColor;
-}
-
-void QQuickPlatformColorDialog::setCurrentColor(const QColor &color)
-{
- if (QPlatformColorDialogHelper *colorDialog = qobject_cast<QPlatformColorDialogHelper *>(handle()))
- colorDialog->setCurrentColor(color);
- m_currentColor = color;
-}
-
-/*!
- \qmlproperty flags Qt.labs.platform::ColorDialog::options
-
- This property holds the various options that affect the look and feel of the dialog.
-
- By default, all options are disabled.
-
- Options should be set before showing the dialog. Setting them while the dialog is
- visible is not guaranteed to have an immediate effect on the dialog (depending on
- the option and on the platform).
-
- Available options:
- \value ColorDialog.ShowAlphaChannel Allow the user to select the alpha component of a color.
- \value ColorDialog.NoButtons Don't display \uicontrol OK and \uicontrol Cancel buttons (useful for "live dialogs").
-*/
-QColorDialogOptions::ColorDialogOptions QQuickPlatformColorDialog::options() const
-{
- return m_options->options();
-}
-
-void QQuickPlatformColorDialog::setOptions(QColorDialogOptions::ColorDialogOptions options)
-{
- if (options == m_options->options())
- return;
-
- m_options->setOptions(options);
- emit optionsChanged();
-}
-
-bool QQuickPlatformColorDialog::useNativeDialog() const
-{
- return QQuickPlatformDialog::useNativeDialog()
- && !m_options->testOption(QColorDialogOptions::DontUseNativeDialog);
-}
-
-void QQuickPlatformColorDialog::onCreate(QPlatformDialogHelper *dialog)
-{
- if (QPlatformColorDialogHelper *colorDialog = qobject_cast<QPlatformColorDialogHelper *>(dialog)) {
- connect(colorDialog, &QPlatformColorDialogHelper::currentColorChanged, this, &QQuickPlatformColorDialog::currentColorChanged);
- colorDialog->setOptions(m_options);
- colorDialog->setCurrentColor(m_currentColor);
- }
-}
-
-void QQuickPlatformColorDialog::onShow(QPlatformDialogHelper *dialog)
-{
- m_options->setWindowTitle(title());
- if (QPlatformColorDialogHelper *colorDialog = qobject_cast<QPlatformColorDialogHelper *>(dialog))
- colorDialog->setOptions(m_options);
-}
-
-void QQuickPlatformColorDialog::accept()
-{
- setColor(currentColor());
- QQuickPlatformDialog::accept();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformcolordialog_p.h b/src/imports/platform/qquickplatformcolordialog_p.h
deleted file mode 100644
index 1df047d9..00000000
--- a/src/imports/platform/qquickplatformcolordialog_p.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMCOLORDIALOG_P_H
-#define QQUICKPLATFORMCOLORDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include "qquickplatformdialog_p.h"
-#include <QtGui/qcolor.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPlatformColorDialog : public QQuickPlatformDialog
-{
- Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged FINAL)
- Q_PROPERTY(QColor currentColor READ currentColor WRITE setCurrentColor NOTIFY currentColorChanged FINAL)
- Q_PROPERTY(QColorDialogOptions::ColorDialogOptions options READ options WRITE setOptions NOTIFY optionsChanged FINAL)
- Q_FLAGS(QColorDialogOptions::ColorDialogOptions)
-
-public:
- explicit QQuickPlatformColorDialog(QObject *parent = nullptr);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- QColor currentColor() const;
- void setCurrentColor(const QColor &color);
-
- QColorDialogOptions::ColorDialogOptions options() const;
- void setOptions(QColorDialogOptions::ColorDialogOptions options);
-
-Q_SIGNALS:
- void colorChanged();
- void currentColorChanged();
- void optionsChanged();
-
-protected:
- bool useNativeDialog() const override;
- void onCreate(QPlatformDialogHelper *dialog) override;
- void onShow(QPlatformDialogHelper *dialog) override;
- void accept() override;
-
-private:
- QColor m_color;
- QColor m_currentColor; // TODO: QColorDialogOptions::initialColor
- QSharedPointer<QColorDialogOptions> m_options;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformColorDialog)
-
-#endif // QQUICKPLATFORMCOLORDIALOG_P_H
diff --git a/src/imports/platform/qquickplatformdialog.cpp b/src/imports/platform/qquickplatformdialog.cpp
deleted file mode 100644
index 41fc1316..00000000
--- a/src/imports/platform/qquickplatformdialog.cpp
+++ /dev/null
@@ -1,409 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformdialog_p.h"
-
-#include <QtCore/qloggingcategory.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/qquickwindow.h>
-
-#include "widgets/qwidgetplatform_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Dialog
- \inherits QtObject
- \instantiates QQuickPlatformDialog
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief The base class of native dialogs.
-
- The Dialog type provides common QML API for native platform dialogs.
-
- To show a native dialog, construct an instance of one of the concrete
- Dialog implementations, set the desired properties, and call \l open().
- Dialog emits \l accepted() or \l rejected() when the user is done with
- the dialog.
-
- \labs
-*/
-
-/*!
- \qmlsignal void Qt.labs.platform::Dialog::accepted()
-
- This signal is emitted when the dialog has been accepted either
- interactively or by calling \l accept().
-
- \note This signal is \e not emitted when closing the dialog with \l close().
-
- \sa rejected()
-*/
-
-/*!
- \qmlsignal void Qt.labs.platform::Dialog::rejected()
-
- This signal is emitted when the dialog has been rejected either
- interactively or by calling \l reject().
-
- \note This signal is \e not emitted when closing the dialog with \l close().
-
- \sa accepted()
-*/
-
-Q_DECLARE_LOGGING_CATEGORY(qtLabsPlatformDialogs)
-
-QQuickPlatformDialog::QQuickPlatformDialog(QPlatformTheme::DialogType type, QObject *parent)
- : QObject(parent),
- m_visible(false),
- m_complete(false),
- m_result(0),
- m_parentWindow(nullptr),
- m_flags(Qt::Dialog),
- m_modality(Qt::WindowModal),
- m_type(type),
- m_handle(nullptr)
-{
-}
-
-QQuickPlatformDialog::~QQuickPlatformDialog()
-{
- destroy();
-}
-
-QPlatformDialogHelper *QQuickPlatformDialog::handle() const
-{
- return m_handle;
-}
-
-/*!
- \default
- \qmlproperty list<Object> Qt.labs.platform::Dialog::data
-
- This default property holds the list of all objects declared as children of
- the dialog.
-*/
-QQmlListProperty<QObject> QQuickPlatformDialog::data()
-{
- return QQmlListProperty<QObject>(this, m_data);
-}
-
-/*!
- \qmlproperty Window Qt.labs.platform::Dialog::parentWindow
-
- This property holds the parent window of the dialog.
-
- Unless explicitly set, the window is automatically resolved by iterating
- the QML parent objects until a \l Window or an \l Item that has a window
- is found.
-*/
-QWindow *QQuickPlatformDialog::parentWindow() const
-{
- return m_parentWindow;
-}
-
-void QQuickPlatformDialog::setParentWindow(QWindow *window)
-{
- if (m_parentWindow == window)
- return;
-
- m_parentWindow = window;
- emit parentWindowChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::Dialog::title
-
- This property holds the title of the dialog.
-*/
-QString QQuickPlatformDialog::title() const
-{
- return m_title;
-}
-
-void QQuickPlatformDialog::setTitle(const QString &title)
-{
- if (m_title == title)
- return;
-
- m_title = title;
- emit titleChanged();
-}
-
-/*!
- \qmlproperty Qt::WindowFlags Qt.labs.platform::Dialog::flags
-
- This property holds the window flags of the dialog. The default value is \c Qt.Dialog.
-*/
-Qt::WindowFlags QQuickPlatformDialog::flags() const
-{
- return m_flags;
-}
-
-void QQuickPlatformDialog::setFlags(Qt::WindowFlags flags)
-{
- if (m_flags == flags)
- return;
-
- m_flags = flags;
- emit flagsChanged();
-}
-
-/*!
- \qmlproperty Qt::WindowModality Qt.labs.platform::Dialog::modality
-
- This property holds the modality of the dialog. The default value is \c Qt.WindowModal.
-
- Available values:
- \value Qt.NonModal The dialog is not modal and does not block input to other windows.
- \value Qt.WindowModal The dialog is modal to a single window hierarchy and blocks input to its parent window, all grandparent windows, and all siblings of its parent and grandparent windows.
- \value Qt.ApplicationModal The dialog is modal to the application and blocks input to all windows.
-*/
-Qt::WindowModality QQuickPlatformDialog::modality() const
-{
- return m_modality;
-}
-
-void QQuickPlatformDialog::setModality(Qt::WindowModality modality)
-{
- if (m_modality == modality)
- return;
-
- m_modality = modality;
- emit modalityChanged();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::Dialog::visible
-
- This property holds the visibility of the dialog. The default value is \c false.
-
- \sa open(), close()
-*/
-bool QQuickPlatformDialog::isVisible() const
-{
- return m_handle && m_visible;
-}
-
-void QQuickPlatformDialog::setVisible(bool visible)
-{
- if (visible)
- open();
- else
- close();
-}
-
-/*!
- \qmlproperty int Qt.labs.platform::Dialog::result
-
- This property holds the result code.
-
- Standard result codes:
- \value Dialog.Accepted
- \value Dialog.Rejected
-
- \note MessageDialog sets the result to the value of the clicked standard
- button instead of using the standard result codes.
-*/
-int QQuickPlatformDialog::result() const
-{
- return m_result;
-}
-
-void QQuickPlatformDialog::setResult(int result)
-{
- if (m_result == result)
- return;
-
- m_result = result;
- emit resultChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Dialog::open()
-
- Opens the dialog.
-
- \sa visible, close()
-*/
-void QQuickPlatformDialog::open()
-{
- if (m_visible || !create())
- return;
-
- onShow(m_handle);
- m_visible = m_handle->show(m_flags, m_modality, m_parentWindow);
- if (m_visible)
- emit visibleChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Dialog::close()
-
- Closes the dialog.
-
- \sa visible, open()
-*/
-void QQuickPlatformDialog::close()
-{
- if (!m_handle || !m_visible)
- return;
-
- onHide(m_handle);
- m_handle->hide();
- m_visible = false;
- emit visibleChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Dialog::accept()
-
- Closes the dialog and emits the \l accepted() signal.
-
- \sa reject()
-*/
-void QQuickPlatformDialog::accept()
-{
- done(Accepted);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Dialog::reject()
-
- Closes the dialog and emits the \l rejected() signal.
-
- \sa accept()
-*/
-void QQuickPlatformDialog::reject()
-{
- done(Rejected);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Dialog::done(int result)
-
- Closes the dialog and sets the \a result.
-
- \sa accept(), reject(), result
-*/
-void QQuickPlatformDialog::done(int result)
-{
- close();
- setResult(result);
-
- if (result == Accepted)
- emit accepted();
- else if (result == Rejected)
- emit rejected();
-}
-
-void QQuickPlatformDialog::classBegin()
-{
-}
-
-void QQuickPlatformDialog::componentComplete()
-{
- m_complete = true;
- if (!m_parentWindow)
- setParentWindow(findParentWindow());
-}
-
-static const char *qmlTypeName(const QObject *object)
-{
- return object->metaObject()->className() + qstrlen("QQuickPlatform");
-}
-
-bool QQuickPlatformDialog::create()
-{
- if (!m_handle) {
- if (useNativeDialog())
- m_handle = QGuiApplicationPrivate::platformTheme()->createPlatformDialogHelper(m_type);
- if (!m_handle)
- m_handle = QWidgetPlatform::createDialog(m_type, this);
- qCDebug(qtLabsPlatformDialogs) << qmlTypeName(this) << "->" << m_handle;
- if (m_handle) {
- onCreate(m_handle);
- connect(m_handle, &QPlatformDialogHelper::accept, this, &QQuickPlatformDialog::accept);
- connect(m_handle, &QPlatformDialogHelper::reject, this, &QQuickPlatformDialog::reject);
- }
- }
- return m_handle;
-}
-
-void QQuickPlatformDialog::destroy()
-{
- delete m_handle;
- m_handle = nullptr;
-}
-
-bool QQuickPlatformDialog::useNativeDialog() const
-{
- return !QCoreApplication::testAttribute(Qt::AA_DontUseNativeDialogs)
- && QGuiApplicationPrivate::platformTheme()->usePlatformNativeDialog(m_type);
-}
-
-void QQuickPlatformDialog::onCreate(QPlatformDialogHelper *dialog)
-{
- Q_UNUSED(dialog);
-}
-
-void QQuickPlatformDialog::onShow(QPlatformDialogHelper *dialog)
-{
- Q_UNUSED(dialog);
-}
-
-void QQuickPlatformDialog::onHide(QPlatformDialogHelper *dialog)
-{
- Q_UNUSED(dialog);
-}
-
-QWindow *QQuickPlatformDialog::findParentWindow() const
-{
- QObject *obj = parent();
- while (obj) {
- QWindow *window = qobject_cast<QWindow *>(obj);
- if (window)
- return window;
- QQuickItem *item = qobject_cast<QQuickItem *>(obj);
- if (item && item->window())
- return item->window();
- obj = obj->parent();
- }
- return nullptr;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformdialog_p.h b/src/imports/platform/qquickplatformdialog_p.h
deleted file mode 100644
index 55a54937..00000000
--- a/src/imports/platform/qquickplatformdialog_p.h
+++ /dev/null
@@ -1,153 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMDIALOG_P_H
-#define QQUICKPLATFORMDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/qpa/qplatformdialoghelper.h>
-#include <QtQml/qqmlparserstatus.h>
-#include <QtQml/qqmllist.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QWindow;
-class QPlatformDialogHelper;
-
-class QQuickPlatformDialog : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_INTERFACES(QQmlParserStatus)
- Q_PROPERTY(QQmlListProperty<QObject> data READ data FINAL)
- Q_PROPERTY(QWindow *parentWindow READ parentWindow WRITE setParentWindow NOTIFY parentWindowChanged FINAL)
- Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
- Q_PROPERTY(Qt::WindowFlags flags READ flags WRITE setFlags NOTIFY flagsChanged FINAL)
- Q_PROPERTY(Qt::WindowModality modality READ modality WRITE setModality NOTIFY modalityChanged FINAL)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL)
- Q_PROPERTY(int result READ result WRITE setResult NOTIFY resultChanged FINAL)
- Q_CLASSINFO("DefaultProperty", "data")
-
-public:
- explicit QQuickPlatformDialog(QPlatformTheme::DialogType type, QObject *parent = nullptr);
- ~QQuickPlatformDialog();
-
- QPlatformDialogHelper *handle() const;
-
- QQmlListProperty<QObject> data();
-
- QWindow *parentWindow() const;
- void setParentWindow(QWindow *window);
-
- QString title() const;
- void setTitle(const QString &title);
-
- Qt::WindowFlags flags() const;
- void setFlags(Qt::WindowFlags flags);
-
- Qt::WindowModality modality() const;
- void setModality(Qt::WindowModality modality);
-
- bool isVisible() const;
- void setVisible(bool visible);
-
- enum StandardCode { Rejected, Accepted };
- Q_ENUM(StandardCode)
-
- int result() const;
- void setResult(int result);
-
-public Q_SLOTS:
- void open();
- void close();
- virtual void accept();
- virtual void reject();
- virtual void done(int result);
-
-Q_SIGNALS:
- void accepted();
- void rejected();
- void parentWindowChanged();
- void titleChanged();
- void flagsChanged();
- void modalityChanged();
- void visibleChanged();
- void resultChanged();
-
-protected:
- void classBegin() override;
- void componentComplete() override;
-
- bool create();
- void destroy();
-
- virtual bool useNativeDialog() const;
- virtual void onCreate(QPlatformDialogHelper *dialog);
- virtual void onShow(QPlatformDialogHelper *dialog);
- virtual void onHide(QPlatformDialogHelper *dialog);
-
- QWindow *findParentWindow() const;
-
-private:
- bool m_visible;
- bool m_complete;
- int m_result;
- QWindow *m_parentWindow;
- QString m_title;
- Qt::WindowFlags m_flags;
- Qt::WindowModality m_modality;
- QPlatformTheme::DialogType m_type;
- QList<QObject *> m_data;
- QPlatformDialogHelper *m_handle;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformDialog)
-
-#endif // QQUICKPLATFORMDIALOG_P_H
diff --git a/src/imports/platform/qquickplatformfiledialog.cpp b/src/imports/platform/qquickplatformfiledialog.cpp
deleted file mode 100644
index 9c1eb684..00000000
--- a/src/imports/platform/qquickplatformfiledialog.cpp
+++ /dev/null
@@ -1,664 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformfiledialog_p.h"
-
-#include <QtCore/qvector.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype FileDialog
- \inherits Dialog
- \instantiates QQuickPlatformFileDialog
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native file dialog.
-
- The FileDialog type provides a QML API for native platform file dialogs.
-
- \image qtlabsplatform-filedialog-gtk.png
-
- To show a file dialog, construct an instance of FileDialog, set the
- desired properties, and call \l {Dialog::}{open()}. The \l currentFile
- or \l currentFiles properties can be used to determine the currently
- selected file(s) in the dialog. The \l file and \l files properties
- are updated only after the final selection has been made by accepting
- the dialog.
-
- \code
- MenuItem {
- text: "Open..."
- onTriggered: fileDialog.open()
- }
-
- FileDialog {
- id: fileDialog
- currentFile: document.source
- folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
- }
-
- MyDocument {
- id: document
- source: fileDialog.file
- }
- \endcode
-
- \section2 Availability
-
- A native platform file dialog is currently available on the following platforms:
-
- \list
- \li iOS
- \li Linux (when running with the GTK+ platform theme)
- \li macOS
- \li Windows
- \li WinRT
- \endlist
-
- \input includes/widgets.qdocinc 1
-
- \labs
-
- \sa FolderDialog, StandardPaths
-*/
-
-QQuickPlatformFileDialog::QQuickPlatformFileDialog(QObject *parent)
- : QQuickPlatformDialog(QPlatformTheme::FileDialog, parent),
- m_fileMode(OpenFile),
- m_options(QFileDialogOptions::create()),
- m_selectedNameFilter(nullptr)
-{
- m_options->setFileMode(QFileDialogOptions::ExistingFile);
- m_options->setAcceptMode(QFileDialogOptions::AcceptOpen);
-}
-
-/*!
- \qmlproperty enumeration Qt.labs.platform::FileDialog::fileMode
-
- This property holds the mode of the dialog.
-
- Available values:
- \value FileDialog.OpenFile The dialog is used to select an existing file (default).
- \value FileDialog.OpenFiles The dialog is used to select multiple existing files.
- \value FileDialog.SaveFile The dialog is used to select any file. The file does not have to exist.
-*/
-QQuickPlatformFileDialog::FileMode QQuickPlatformFileDialog::fileMode() const
-{
- return m_fileMode;
-}
-
-void QQuickPlatformFileDialog::setFileMode(FileMode mode)
-{
- if (mode == m_fileMode)
- return;
-
- switch (mode) {
- case OpenFile:
- m_options->setFileMode(QFileDialogOptions::ExistingFile);
- m_options->setAcceptMode(QFileDialogOptions::AcceptOpen);
- break;
- case OpenFiles:
- m_options->setFileMode(QFileDialogOptions::ExistingFiles);
- m_options->setAcceptMode(QFileDialogOptions::AcceptOpen);
- break;
- case SaveFile:
- m_options->setFileMode(QFileDialogOptions::AnyFile);
- m_options->setAcceptMode(QFileDialogOptions::AcceptSave);
- break;
- default:
- break;
- }
-
- m_fileMode = mode;
- emit fileModeChanged();
-}
-
-/*!
- \qmlproperty url Qt.labs.platform::FileDialog::file
-
- This property holds the final accepted file.
-
- Unlike the \l currentFile property, the \c file property is not updated
- while the user is selecting files in the dialog, but only after the final
- selection has been made. That is, when the user has clicked \uicontrol OK
- to accept a file. Alternatively, the \l {Dialog::}{accepted()} signal
- can be handled to get the final selection.
-
- \sa currentFile, {Dialog::}{accepted()}
-*/
-QUrl QQuickPlatformFileDialog::file() const
-{
- return addDefaultSuffix(m_files.value(0));
-}
-
-void QQuickPlatformFileDialog::setFile(const QUrl &file)
-{
- setFiles(QList<QUrl>() << file);
-}
-
-/*!
- \qmlproperty list<url> Qt.labs.platform::FileDialog::files
-
- This property holds the final accepted files.
-
- Unlike the \l currentFiles property, the \c files property is not updated
- while the user is selecting files in the dialog, but only after the final
- selection has been made. That is, when the user has clicked \uicontrol OK
- to accept files. Alternatively, the \l {Dialog::}{accepted()} signal
- can be handled to get the final selection.
-
- \sa currentFiles, {Dialog::}{accepted()}
-*/
-QList<QUrl> QQuickPlatformFileDialog::files() const
-{
- return addDefaultSuffixes(m_files);
-}
-
-void QQuickPlatformFileDialog::setFiles(const QList<QUrl> &files)
-{
- if (m_files == files)
- return;
-
- bool firstChanged = m_files.value(0) != files.value(0);
- m_files = files;
- if (firstChanged)
- emit fileChanged();
- emit filesChanged();
-}
-
-/*!
- \qmlproperty url Qt.labs.platform::FileDialog::currentFile
-
- This property holds the currently selected file in the dialog.
-
- Unlike the \l file property, the \c currentFile property is updated
- while the user is selecting files in the dialog, even before the final
- selection has been made.
-
- \sa file, currentFiles
-*/
-QUrl QQuickPlatformFileDialog::currentFile() const
-{
- return currentFiles().value(0);
-}
-
-void QQuickPlatformFileDialog::setCurrentFile(const QUrl &file)
-{
- setCurrentFiles(QList<QUrl>() << file);
-}
-
-/*!
- \qmlproperty list<url> Qt.labs.platform::FileDialog::currentFiles
-
- This property holds the currently selected files in the dialog.
-
- Unlike the \l files property, the \c currentFiles property is updated
- while the user is selecting files in the dialog, even before the final
- selection has been made.
-
- \sa files, currentFile
-*/
-QList<QUrl> QQuickPlatformFileDialog::currentFiles() const
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(handle()))
- return fileDialog->selectedFiles();
- return m_options->initiallySelectedFiles();
-}
-
-void QQuickPlatformFileDialog::setCurrentFiles(const QList<QUrl> &files)
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(handle())) {
- for (const QUrl &file : files)
- fileDialog->selectFile(file);
- }
- m_options->setInitiallySelectedFiles(files);
-}
-
-/*!
- \qmlproperty url Qt.labs.platform::FileDialog::folder
-
- This property holds the folder where files are selected.
- For selecting a folder, use FolderDialog instead.
-
- \sa FolderDialog
-*/
-QUrl QQuickPlatformFileDialog::folder() const
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(handle()))
- return fileDialog->directory();
- return m_options->initialDirectory();
-}
-
-void QQuickPlatformFileDialog::setFolder(const QUrl &folder)
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(handle()))
- fileDialog->setDirectory(folder);
- m_options->setInitialDirectory(folder);
-}
-
-/*!
- \qmlproperty flags Qt.labs.platform::FileDialog::options
-
- This property holds the various options that affect the look and feel of the dialog.
-
- By default, all options are disabled.
-
- Options should be set before showing the dialog. Setting them while the dialog is
- visible is not guaranteed to have an immediate effect on the dialog (depending on
- the option and on the platform).
-
- Available options:
- \value FileDialog.DontResolveSymlinks Don't resolve symlinks in the file dialog. By default symlinks are resolved.
- \value FileDialog.DontConfirmOverwrite Don't ask for confirmation if an existing file is selected. By default confirmation is requested.
- \value FileDialog.ReadOnly Indicates that the dialog doesn't allow creating directories.
- \value FileDialog.HideNameFilterDetails Indicates if the file name filter details are hidden or not.
-*/
-QFileDialogOptions::FileDialogOptions QQuickPlatformFileDialog::options() const
-{
- return m_options->options();
-}
-
-void QQuickPlatformFileDialog::setOptions(QFileDialogOptions::FileDialogOptions options)
-{
- if (options == m_options->options())
- return;
-
- m_options->setOptions(options);
- emit optionsChanged();
-}
-
-void QQuickPlatformFileDialog::resetOptions()
-{
- setOptions(0);
-}
-
-/*!
- \qmlproperty list<string> Qt.labs.platform::FileDialog::nameFilters
-
- This property holds the filters that restrict the types of files that
- can be selected.
-
- \code
- FileDialog {
- nameFilters: ["Text files (*.txt)", "HTML files (*.html *.htm)"]
- }
- \endcode
-
- \note \b{*.*} is not a portable filter, because the historical assumption
- that the file extension determines the file type is not consistent on every
- operating system. It is possible to have a file with no dot in its name (for
- example, \c Makefile). In a native Windows file dialog, \b{*.*} will match
- such files, while in other types of file dialogs it may not. So it is better
- to use \b{*} if you mean to select any file.
-
- \sa selectedNameFilter
-*/
-QStringList QQuickPlatformFileDialog::nameFilters() const
-{
- return m_options->nameFilters();
-}
-
-void QQuickPlatformFileDialog::setNameFilters(const QStringList &filters)
-{
- if (filters == m_options->nameFilters())
- return;
-
- m_options->setNameFilters(filters);
- if (m_selectedNameFilter) {
- int index = m_selectedNameFilter->index();
- if (index < 0 || index >= filters.count())
- index = 0;
- m_selectedNameFilter->update(filters.value(index));
- }
- emit nameFiltersChanged();
-}
-
-void QQuickPlatformFileDialog::resetNameFilters()
-{
- setNameFilters(QStringList());
-}
-
-/*!
- \qmlpropertygroup Qt.labs.platform::FileDialog::selectedNameFilter
- \qmlproperty int Qt.labs.platform::FileDialog::selectedNameFilter.index
- \qmlproperty string Qt.labs.platform::FileDialog::selectedNameFilter.name
- \qmlproperty list<string> Qt.labs.platform::FileDialog::selectedNameFilter.extensions
-
- These properties hold the currently selected name filter.
-
- \table
- \header
- \li Name
- \li Description
- \row
- \li \b index : int
- \li This property determines which \l {nameFilters}{name filter} is selected.
- The specified filter is selected when the dialog is opened. The value is
- updated when the user selects another filter.
- \row
- \li [read-only] \b name : string
- \li This property holds the name of the selected filter. In the
- example below, the name of the first filter is \c {"Text files"}
- and the second is \c {"HTML files"}.
- \row
- \li [read-only] \b extensions : list<string>
- \li This property holds the list of extensions of the selected filter.
- In the example below, the list of extensions of the first filter is
- \c {["txt"]} and the second is \c {["html", "htm"]}.
- \endtable
-
- \code
- FileDialog {
- id: fileDialog
- selectedNameFilter.index: 1
- nameFilters: ["Text files (*.txt)", "HTML files (*.html *.htm)"]
- }
-
- MyDocument {
- id: document
- fileType: fileDialog.selectedNameFilter.extensions[0]
- }
- \endcode
-
- \sa nameFilters
-*/
-QQuickPlatformFileNameFilter *QQuickPlatformFileDialog::selectedNameFilter() const
-{
- if (!m_selectedNameFilter) {
- QQuickPlatformFileDialog *that = const_cast<QQuickPlatformFileDialog *>(this);
- m_selectedNameFilter = new QQuickPlatformFileNameFilter(that);
- m_selectedNameFilter->setOptions(m_options);
- }
- return m_selectedNameFilter;
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::FileDialog::defaultSuffix
-
- This property holds a suffix that is added to selected files that have
- no suffix specified. The suffix is typically used to indicate the file
- type (e.g. "txt" indicates a text file).
-
- If the first character is a dot ('.'), it is removed.
-*/
-QString QQuickPlatformFileDialog::defaultSuffix() const
-{
- return m_options->defaultSuffix();
-}
-
-void QQuickPlatformFileDialog::setDefaultSuffix(const QString &suffix)
-{
- if (suffix == m_options->defaultSuffix())
- return;
-
- m_options->setDefaultSuffix(suffix);
- emit defaultSuffixChanged();
-}
-
-void QQuickPlatformFileDialog::resetDefaultSuffix()
-{
- setDefaultSuffix(QString());
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::FileDialog::acceptLabel
-
- This property holds the label text shown on the button that accepts the dialog.
-
- When set to an empty string, the default label of the underlying platform is used.
- The default label is typically \uicontrol Open or \uicontrol Save depending on which
- \l fileMode the dialog is used in.
-
- The default value is an empty string.
-
- \sa rejectLabel
-*/
-QString QQuickPlatformFileDialog::acceptLabel() const
-{
- return m_options->labelText(QFileDialogOptions::Accept);
-}
-
-void QQuickPlatformFileDialog::setAcceptLabel(const QString &label)
-{
- if (label == m_options->labelText(QFileDialogOptions::Accept))
- return;
-
- m_options->setLabelText(QFileDialogOptions::Accept, label);
- emit acceptLabelChanged();
-}
-
-void QQuickPlatformFileDialog::resetAcceptLabel()
-{
- setAcceptLabel(QString());
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::FileDialog::rejectLabel
-
- This property holds the label text shown on the button that rejects the dialog.
-
- When set to an empty string, the default label of the underlying platform is used.
- The default label is typically \uicontrol Cancel.
-
- The default value is an empty string.
-
- \sa acceptLabel
-*/
-QString QQuickPlatformFileDialog::rejectLabel() const
-{
- return m_options->labelText(QFileDialogOptions::Reject);
-}
-
-void QQuickPlatformFileDialog::setRejectLabel(const QString &label)
-{
- if (label == m_options->labelText(QFileDialogOptions::Reject))
- return;
-
- m_options->setLabelText(QFileDialogOptions::Reject, label);
- emit rejectLabelChanged();
-}
-
-void QQuickPlatformFileDialog::resetRejectLabel()
-{
- setRejectLabel(QString());
-}
-
-bool QQuickPlatformFileDialog::useNativeDialog() const
-{
- return QQuickPlatformDialog::useNativeDialog()
- && !m_options->testOption(QFileDialogOptions::DontUseNativeDialog);
-}
-
-void QQuickPlatformFileDialog::onCreate(QPlatformDialogHelper *dialog)
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(dialog)) {
- // TODO: emit currentFileChanged only when the first entry in currentFiles changes
- connect(fileDialog, &QPlatformFileDialogHelper::currentChanged, this, &QQuickPlatformFileDialog::currentFileChanged);
- connect(fileDialog, &QPlatformFileDialogHelper::currentChanged, this, &QQuickPlatformFileDialog::currentFilesChanged);
- connect(fileDialog, &QPlatformFileDialogHelper::directoryEntered, this, &QQuickPlatformFileDialog::folderChanged);
- fileDialog->setOptions(m_options);
- }
-}
-
-void QQuickPlatformFileDialog::onShow(QPlatformDialogHelper *dialog)
-{
- m_options->setWindowTitle(title());
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(dialog)) {
- fileDialog->setOptions(m_options); // setOptions only assigns a member and isn't virtual
- if (m_firstShow && m_options->initialDirectory().isValid())
- fileDialog->setDirectory(m_options->initialDirectory());
- if (m_selectedNameFilter) {
- const int index = m_selectedNameFilter->index();
- const QString filter = m_options->nameFilters().value(index);
- m_options->setInitiallySelectedNameFilter(filter);
- fileDialog->selectNameFilter(filter);
- connect(fileDialog, &QPlatformFileDialogHelper::filterSelected, m_selectedNameFilter, &QQuickPlatformFileNameFilter::update);
- }
- }
- if (m_firstShow)
- m_firstShow = false;
-}
-
-void QQuickPlatformFileDialog::onHide(QPlatformDialogHelper *dialog)
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(dialog)) {
- if (m_selectedNameFilter)
- disconnect(fileDialog, &QPlatformFileDialogHelper::filterSelected, m_selectedNameFilter, &QQuickPlatformFileNameFilter::update);
- }
-}
-
-void QQuickPlatformFileDialog::accept()
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(handle()))
- setFiles(fileDialog->selectedFiles());
- QQuickPlatformDialog::accept();
-}
-
-QUrl QQuickPlatformFileDialog::addDefaultSuffix(const QUrl &file) const
-{
- QUrl url = file;
- const QString path = url.path();
- const QString suffix = m_options->defaultSuffix();
- if (!suffix.isEmpty() && !path.endsWith(QLatin1Char('/')) && path.lastIndexOf(QLatin1Char('.')) == -1)
- url.setPath(path + QLatin1Char('.') + suffix);
- return url;
-}
-
-QList<QUrl> QQuickPlatformFileDialog::addDefaultSuffixes(const QList<QUrl> &files) const
-{
- QList<QUrl> urls;
- urls.reserve(files.size());
- for (const QUrl &file : files)
- urls += addDefaultSuffix(file);
- return urls;
-}
-
-QQuickPlatformFileNameFilter::QQuickPlatformFileNameFilter(QObject *parent)
- : QObject(parent), m_index(-1)
-{
-}
-
-int QQuickPlatformFileNameFilter::index() const
-{
- return m_index;
-}
-
-void QQuickPlatformFileNameFilter::setIndex(int index)
-{
- if (m_index == index)
- return;
-
- m_index = index;
- emit indexChanged(index);
-}
-
-QString QQuickPlatformFileNameFilter::name() const
-{
- return m_name;
-}
-
-QStringList QQuickPlatformFileNameFilter::extensions() const
-{
- return m_extensions;
-}
-
-QSharedPointer<QFileDialogOptions> QQuickPlatformFileNameFilter::options() const
-{
- return m_options;
-}
-
-void QQuickPlatformFileNameFilter::setOptions(const QSharedPointer<QFileDialogOptions> &options)
-{
- m_options = options;
-}
-
-static QString extractName(const QString &filter)
-{
- return filter.left(filter.indexOf(QLatin1Char('(')) - 1);
-}
-
-static QString extractExtension(const QString &filter)
-{
- return filter.mid(filter.indexOf(QLatin1Char('.')) + 1);
-}
-
-static QStringList extractExtensions(const QString &filter)
-{
- QStringList extensions;
- const int from = filter.indexOf(QLatin1Char('('));
- const int to = filter.lastIndexOf(QLatin1Char(')')) - 1;
- if (from >= 0 && from < to) {
- const QStringRef ref = filter.midRef(from + 1, to - from);
- const QVector<QStringRef> exts = ref.split(QLatin1Char(' '), QString::SkipEmptyParts);
- for (const QStringRef &ref : exts)
- extensions += extractExtension(ref.toString());
- }
-
- return extensions;
-}
-
-void QQuickPlatformFileNameFilter::update(const QString &filter)
-{
- const QStringList filters = nameFilters();
-
- const int oldIndex = m_index;
- const QString oldName = m_name;
- const QStringList oldExtensions = m_extensions;
-
- m_index = filters.indexOf(filter);
- m_name = extractName(filter);
- m_extensions = extractExtensions(filter);
-
- if (oldIndex != m_index)
- emit indexChanged(m_index);
- if (oldName != m_name)
- emit nameChanged(m_name);
- if (oldExtensions != m_extensions)
- emit extensionsChanged(m_extensions);
-}
-
-QStringList QQuickPlatformFileNameFilter::nameFilters() const
-{
- return m_options ? m_options->nameFilters() : QStringList();
-}
-
-QString QQuickPlatformFileNameFilter::nameFilter(int index) const
-{
- return m_options ? m_options->nameFilters().value(index) : QString();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformfiledialog_p.h b/src/imports/platform/qquickplatformfiledialog_p.h
deleted file mode 100644
index b867f3c8..00000000
--- a/src/imports/platform/qquickplatformfiledialog_p.h
+++ /dev/null
@@ -1,197 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMFILEDIALOG_P_H
-#define QQUICKPLATFORMFILEDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include "qquickplatformdialog_p.h"
-#include <QtCore/qurl.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPlatformFileNameFilter;
-
-class QQuickPlatformFileDialog : public QQuickPlatformDialog
-{
- Q_OBJECT
- Q_PROPERTY(FileMode fileMode READ fileMode WRITE setFileMode NOTIFY fileModeChanged FINAL)
- Q_PROPERTY(QUrl file READ file WRITE setFile NOTIFY fileChanged FINAL)
- Q_PROPERTY(QList<QUrl> files READ files WRITE setFiles NOTIFY filesChanged FINAL)
- Q_PROPERTY(QUrl currentFile READ currentFile WRITE setCurrentFile NOTIFY currentFileChanged FINAL)
- Q_PROPERTY(QList<QUrl> currentFiles READ currentFiles WRITE setCurrentFiles NOTIFY currentFilesChanged FINAL)
- Q_PROPERTY(QUrl folder READ folder WRITE setFolder NOTIFY folderChanged FINAL)
- Q_PROPERTY(QFileDialogOptions::FileDialogOptions options READ options WRITE setOptions RESET resetOptions NOTIFY optionsChanged FINAL)
- Q_PROPERTY(QStringList nameFilters READ nameFilters WRITE setNameFilters RESET resetNameFilters NOTIFY nameFiltersChanged FINAL)
- Q_PROPERTY(QQuickPlatformFileNameFilter *selectedNameFilter READ selectedNameFilter CONSTANT)
- Q_PROPERTY(QString defaultSuffix READ defaultSuffix WRITE setDefaultSuffix RESET resetDefaultSuffix NOTIFY defaultSuffixChanged FINAL)
- Q_PROPERTY(QString acceptLabel READ acceptLabel WRITE setAcceptLabel RESET resetAcceptLabel NOTIFY acceptLabelChanged FINAL)
- Q_PROPERTY(QString rejectLabel READ rejectLabel WRITE setRejectLabel RESET resetRejectLabel NOTIFY rejectLabelChanged FINAL)
- Q_FLAGS(QFileDialogOptions::FileDialogOptions)
-
-public:
- explicit QQuickPlatformFileDialog(QObject *parent = nullptr);
-
- enum FileMode {
- OpenFile,
- OpenFiles,
- SaveFile
- };
- Q_ENUM(FileMode)
-
- FileMode fileMode() const;
- void setFileMode(FileMode fileMode);
-
- QUrl file() const;
- void setFile(const QUrl &file);
-
- QList<QUrl> files() const;
- void setFiles(const QList<QUrl> &files);
-
- QUrl currentFile() const;
- void setCurrentFile(const QUrl &file);
-
- QList<QUrl> currentFiles() const;
- void setCurrentFiles(const QList<QUrl> &files);
-
- QUrl folder() const;
- void setFolder(const QUrl &folder);
-
- QFileDialogOptions::FileDialogOptions options() const;
- void setOptions(QFileDialogOptions::FileDialogOptions options);
- void resetOptions();
-
- QStringList nameFilters() const;
- void setNameFilters(const QStringList &filters);
- void resetNameFilters();
-
- QQuickPlatformFileNameFilter *selectedNameFilter() const;
-
- QString defaultSuffix() const;
- void setDefaultSuffix(const QString &suffix);
- void resetDefaultSuffix();
-
- QString acceptLabel() const;
- void setAcceptLabel(const QString &label);
- void resetAcceptLabel();
-
- QString rejectLabel() const;
- void setRejectLabel(const QString &label);
- void resetRejectLabel();
-
-Q_SIGNALS:
- void fileModeChanged();
- void fileChanged();
- void filesChanged();
- void currentFileChanged();
- void currentFilesChanged();
- void folderChanged();
- void optionsChanged();
- void nameFiltersChanged();
- void defaultSuffixChanged();
- void acceptLabelChanged();
- void rejectLabelChanged();
-
-protected:
- bool useNativeDialog() const override;
- void onCreate(QPlatformDialogHelper *dialog) override;
- void onShow(QPlatformDialogHelper *dialog) override;
- void onHide(QPlatformDialogHelper *dialog) override;
- void accept() override;
-
-private:
- QUrl addDefaultSuffix(const QUrl &file) const;
- QList<QUrl> addDefaultSuffixes(const QList<QUrl> &files) const;
-
- FileMode m_fileMode;
- QList<QUrl> m_files;
- bool m_firstShow = true;
- QSharedPointer<QFileDialogOptions> m_options;
- mutable QQuickPlatformFileNameFilter *m_selectedNameFilter;
-};
-
-class QQuickPlatformFileNameFilter : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(int index READ index WRITE setIndex NOTIFY indexChanged FINAL)
- Q_PROPERTY(QString name READ name NOTIFY nameChanged FINAL)
- Q_PROPERTY(QStringList extensions READ extensions NOTIFY extensionsChanged FINAL)
-
-public:
- explicit QQuickPlatformFileNameFilter(QObject *parent = nullptr);
-
- int index() const;
- void setIndex(int index);
-
- QString name() const;
- QStringList extensions() const;
-
- QSharedPointer<QFileDialogOptions> options() const;
- void setOptions(const QSharedPointer<QFileDialogOptions> &options);
-
- void update(const QString &filter);
-
-Q_SIGNALS:
- void indexChanged(int index);
- void nameChanged(const QString &name);
- void extensionsChanged(const QStringList &extensions);
-
-private:
- QStringList nameFilters() const;
- QString nameFilter(int index) const;
-
- int m_index;
- QString m_name;
- QStringList m_extensions;
- QSharedPointer<QFileDialogOptions> m_options;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformFileDialog)
-
-#endif // QQUICKPLATFORMFILEDIALOG_P_H
diff --git a/src/imports/platform/qquickplatformfolderdialog.cpp b/src/imports/platform/qquickplatformfolderdialog.cpp
deleted file mode 100644
index 512dce52..00000000
--- a/src/imports/platform/qquickplatformfolderdialog.cpp
+++ /dev/null
@@ -1,281 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformfolderdialog_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype FolderDialog
- \inherits Dialog
- \instantiates QQuickPlatformFolderDialog
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native folder dialog.
-
- The FolderDialog type provides a QML API for native platform folder dialogs.
-
- \image qtlabsplatform-folderdialog-gtk.png
-
- To show a folder dialog, construct an instance of FolderDialog, set the
- desired properties, and call \l {Dialog::}{open()}. The \l currentFolder
- property can be used to determine the currently selected folder in the
- dialog. The \l folder property is updated only after the final selection
- has been made by accepting the dialog.
-
- \code
- MenuItem {
- text: "Open..."
- onTriggered: folderDialog.open()
- }
-
- FolderDialog {
- id: folderDialog
- currentFolder: viewer.folder
- folder: StandardPaths.standardLocations(StandardPaths.PicturesLocation)[0]
- }
-
- MyViewer {
- id: viewer
- folder: folderDialog.folder
- }
- \endcode
-
- \section2 Availability
-
- A native platform folder dialog is currently available on the following platforms:
-
- \list
- \li iOS
- \li Linux (when running with the GTK+ platform theme)
- \li macOS
- \li Windows
- \li WinRT
- \endlist
-
- \input includes/widgets.qdocinc 1
-
- \labs
-
- \sa FileDialog, StandardPaths
-*/
-
-QQuickPlatformFolderDialog::QQuickPlatformFolderDialog(QObject *parent)
- : QQuickPlatformDialog(QPlatformTheme::FileDialog, parent),
- m_options(QFileDialogOptions::create())
-{
- m_options->setFileMode(QFileDialogOptions::Directory);
- m_options->setAcceptMode(QFileDialogOptions::AcceptOpen);
-}
-
-/*!
- \qmlproperty url Qt.labs.platform::FolderDialog::folder
-
- This property holds the final accepted folder.
-
- Unlike the \l currentFolder property, the \c folder property is not updated
- while the user is selecting folders in the dialog, but only after the final
- selection has been made. That is, when the user has clicked \uicontrol OK
- to accept a folder. Alternatively, the \l {Dialog::}{accepted()} signal
- can be handled to get the final selection.
-
- \sa currentFolder, {Dialog::}{accepted()}
-*/
-QUrl QQuickPlatformFolderDialog::folder() const
-{
- return m_folder;
-}
-
-void QQuickPlatformFolderDialog::setFolder(const QUrl &folder)
-{
- if (m_folder == folder)
- return;
-
- m_folder = folder;
- setCurrentFolder(folder);
- emit folderChanged();
-}
-
-/*!
- \qmlproperty url Qt.labs.platform::FolderDialog::currentFolder
-
- This property holds the currently selected folder in the dialog.
-
- Unlike the \l folder property, the \c currentFolder property is updated
- while the user is selecting folders in the dialog, even before the final
- selection has been made.
-
- \sa folder
-*/
-QUrl QQuickPlatformFolderDialog::currentFolder() const
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(handle()))
- return fileDialog->directory();
- return m_options->initialDirectory();
-}
-
-void QQuickPlatformFolderDialog::setCurrentFolder(const QUrl &folder)
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(handle()))
- fileDialog->setDirectory(folder);
- m_options->setInitialDirectory(folder);
-}
-
-/*!
- \qmlproperty flags Qt.labs.platform::FolderDialog::options
-
- This property holds the various options that affect the look and feel of the dialog.
-
- By default, all options are disabled.
-
- Options should be set before showing the dialog. Setting them while the dialog is
- visible is not guaranteed to have an immediate effect on the dialog (depending on
- the option and on the platform).
-
- Available options:
- \value FolderDialog.ShowDirsOnly Only show directories in the folder dialog. By default both folders and directories are shown.
- \value FolderDialog.DontResolveSymlinks Don't resolve symlinks in the folder dialog. By default symlinks are resolved.
- \value FolderDialog.ReadOnly Indicates that the dialog doesn't allow creating directories.
-*/
-QFileDialogOptions::FileDialogOptions QQuickPlatformFolderDialog::options() const
-{
- return m_options->options();
-}
-
-void QQuickPlatformFolderDialog::setOptions(QFileDialogOptions::FileDialogOptions options)
-{
- if (options == m_options->options())
- return;
-
- m_options->setOptions(options);
- emit optionsChanged();
-}
-
-void QQuickPlatformFolderDialog::resetOptions()
-{
- setOptions(0);
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::FolderDialog::acceptLabel
-
- This property holds the label text shown on the button that accepts the dialog.
-
- When set to an empty string, the default label of the underlying platform is used.
- The default label is typically \uicontrol Open.
-
- The default value is an empty string.
-
- \sa rejectLabel
-*/
-QString QQuickPlatformFolderDialog::acceptLabel() const
-{
- return m_options->labelText(QFileDialogOptions::Accept);
-}
-
-void QQuickPlatformFolderDialog::setAcceptLabel(const QString &label)
-{
- if (label == m_options->labelText(QFileDialogOptions::Accept))
- return;
-
- m_options->setLabelText(QFileDialogOptions::Accept, label);
- emit acceptLabelChanged();
-}
-
-void QQuickPlatformFolderDialog::resetAcceptLabel()
-{
- setAcceptLabel(QString());
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::FolderDialog::rejectLabel
-
- This property holds the label text shown on the button that rejects the dialog.
-
- When set to an empty string, the default label of the underlying platform is used.
- The default label is typically \uicontrol Cancel.
-
- The default value is an empty string.
-
- \sa acceptLabel
-*/
-QString QQuickPlatformFolderDialog::rejectLabel() const
-{
- return m_options->labelText(QFileDialogOptions::Reject);
-}
-
-void QQuickPlatformFolderDialog::setRejectLabel(const QString &label)
-{
- if (label == m_options->labelText(QFileDialogOptions::Reject))
- return;
-
- m_options->setLabelText(QFileDialogOptions::Reject, label);
- emit rejectLabelChanged();
-}
-
-void QQuickPlatformFolderDialog::resetRejectLabel()
-{
- setRejectLabel(QString());
-}
-
-bool QQuickPlatformFolderDialog::useNativeDialog() const
-{
- return QQuickPlatformDialog::useNativeDialog()
- && !m_options->testOption(QFileDialogOptions::DontUseNativeDialog);
-}
-
-void QQuickPlatformFolderDialog::onCreate(QPlatformDialogHelper *dialog)
-{
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(dialog)) {
- connect(fileDialog, &QPlatformFileDialogHelper::directoryEntered, this, &QQuickPlatformFolderDialog::currentFolderChanged);
- fileDialog->setOptions(m_options);
- }
-}
-
-void QQuickPlatformFolderDialog::onShow(QPlatformDialogHelper *dialog)
-{
- m_options->setWindowTitle(title());
- if (QPlatformFileDialogHelper *fileDialog = qobject_cast<QPlatformFileDialogHelper *>(dialog))
- fileDialog->setOptions(m_options);
-}
-
-void QQuickPlatformFolderDialog::accept()
-{
- setFolder(currentFolder());
- QQuickPlatformDialog::accept();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformfolderdialog_p.h b/src/imports/platform/qquickplatformfolderdialog_p.h
deleted file mode 100644
index 69878cb9..00000000
--- a/src/imports/platform/qquickplatformfolderdialog_p.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMFOLDERDIALOG_P_H
-#define QQUICKPLATFORMFOLDERDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This folder is not part of the Qt API. It exists purely as an
-// implementation detail. This header folder may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include "qquickplatformdialog_p.h"
-#include <QtCore/qurl.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPlatformFolderDialog : public QQuickPlatformDialog
-{
- Q_OBJECT
- Q_PROPERTY(QUrl folder READ folder WRITE setFolder NOTIFY folderChanged FINAL)
- Q_PROPERTY(QUrl currentFolder READ currentFolder WRITE setCurrentFolder NOTIFY currentFolderChanged FINAL)
- Q_PROPERTY(QFileDialogOptions::FileDialogOptions options READ options WRITE setOptions RESET resetOptions NOTIFY optionsChanged FINAL)
- Q_PROPERTY(QString acceptLabel READ acceptLabel WRITE setAcceptLabel RESET resetAcceptLabel NOTIFY acceptLabelChanged FINAL)
- Q_PROPERTY(QString rejectLabel READ rejectLabel WRITE setRejectLabel RESET resetRejectLabel NOTIFY rejectLabelChanged FINAL)
- Q_FLAGS(QFileDialogOptions::FileDialogOptions)
-
-public:
- explicit QQuickPlatformFolderDialog(QObject *parent = nullptr);
-
- QUrl folder() const;
- void setFolder(const QUrl &folder);
-
- QUrl currentFolder() const;
- void setCurrentFolder(const QUrl &folder);
-
- QFileDialogOptions::FileDialogOptions options() const;
- void setOptions(QFileDialogOptions::FileDialogOptions options);
- void resetOptions();
-
- QString acceptLabel() const;
- void setAcceptLabel(const QString &label);
- void resetAcceptLabel();
-
- QString rejectLabel() const;
- void setRejectLabel(const QString &label);
- void resetRejectLabel();
-
-Q_SIGNALS:
- void folderChanged();
- void currentFolderChanged();
- void optionsChanged();
- void acceptLabelChanged();
- void rejectLabelChanged();
-
-protected:
- bool useNativeDialog() const override;
- void onCreate(QPlatformDialogHelper *dialog) override;
- void onShow(QPlatformDialogHelper *dialog) override;
- void accept() override;
-
-private:
- QUrl m_folder;
- QSharedPointer<QFileDialogOptions> m_options;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformFolderDialog)
-
-#endif // QQUICKPLATFORMFOLDERDIALOG_P_H
diff --git a/src/imports/platform/qquickplatformfontdialog.cpp b/src/imports/platform/qquickplatformfontdialog.cpp
deleted file mode 100644
index ecd6ba4a..00000000
--- a/src/imports/platform/qquickplatformfontdialog.cpp
+++ /dev/null
@@ -1,208 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformfontdialog_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype FontDialog
- \inherits Dialog
- \instantiates QQuickPlatformFontDialog
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native font dialog.
-
- The FontDialog type provides a QML API for native platform font dialogs.
-
- \image qtlabsplatform-fontdialog-gtk.png
-
- To show a font dialog, construct an instance of FontDialog, set the
- desired properties, and call \l {Dialog::}{open()}. The \l currentFont
- property can be used to determine the currently selected font in the
- dialog. The \l font property is updated only after the final selection
- has been made by accepting the dialog.
-
- \code
- MenuItem {
- text: "Font"
- onTriggered: fontDialog.open()
- }
-
- FontDialog {
- id: fontDialog
- currentFont.family: document.font
- }
-
- MyDocument {
- id: document
- font: fontDialog.font
- }
- \endcode
-
- \section2 Availability
-
- A native platform font dialog is currently available on the following platforms:
-
- \list
- \li macOS
- \li Linux (when running with the GTK+ platform theme)
- \endlist
-
- \input includes/widgets.qdocinc 1
-
- \labs
-*/
-
-QQuickPlatformFontDialog::QQuickPlatformFontDialog(QObject *parent)
- : QQuickPlatformDialog(QPlatformTheme::FontDialog, parent),
- m_options(QFontDialogOptions::create())
-{
-}
-
-/*!
- \qmlproperty font Qt.labs.platform::FontDialog::font
-
- This property holds the final accepted font.
-
- Unlike the \l currentFont property, the \c font property is not updated
- while the user is selecting fonts in the dialog, but only after the final
- selection has been made. That is, when the user has clicked \uicontrol OK
- to accept a font. Alternatively, the \l {Dialog::}{accepted()} signal
- can be handled to get the final selection.
-
- \sa currentFont, {Dialog::}{accepted()}
-*/
-QFont QQuickPlatformFontDialog::font() const
-{
- return m_font;
-}
-
-void QQuickPlatformFontDialog::setFont(const QFont &font)
-{
- if (m_font == font)
- return;
-
- m_font = font;
- setCurrentFont(font);
- emit fontChanged();
-}
-
-/*!
- \qmlproperty font Qt.labs.platform::FontDialog::currentFont
-
- This property holds the currently selected font in the dialog.
-
- Unlike the \l font property, the \c currentFont property is updated
- while the user is selecting fonts in the dialog, even before the final
- selection has been made.
-
- \sa font
-*/
-QFont QQuickPlatformFontDialog::currentFont() const
-{
- if (QPlatformFontDialogHelper *fontDialog = qobject_cast<QPlatformFontDialogHelper *>(handle()))
- return fontDialog->currentFont();
- return m_currentFont;
-}
-
-void QQuickPlatformFontDialog::setCurrentFont(const QFont &font)
-{
- if (QPlatformFontDialogHelper *fontDialog = qobject_cast<QPlatformFontDialogHelper *>(handle()))
- fontDialog->setCurrentFont(font);
- m_currentFont = font;
-}
-
-/*!
- \qmlproperty flags Qt.labs.platform::FontDialog::options
-
- This property holds the various options that affect the look and feel of the dialog.
-
- By default, all options are disabled.
-
- Options should be set before showing the dialog. Setting them while the dialog is
- visible is not guaranteed to have an immediate effect on the dialog (depending on
- the option and on the platform).
-
- Available options:
- \value FontDialog.ScalableFonts Show scalable fonts.
- \value FontDialog.NonScalableFonts Show non-scalable fonts.
- \value FontDialog.MonospacedFonts Show monospaced fonts.
- \value FontDialog.ProportionalFonts Show proportional fonts.
- \value FontDialog.NoButtons Don't display \uicontrol OK and \uicontrol Cancel buttons (useful for "live dialogs").
-*/
-QFontDialogOptions::FontDialogOptions QQuickPlatformFontDialog::options() const
-{
- return m_options->options();
-}
-
-void QQuickPlatformFontDialog::setOptions(QFontDialogOptions::FontDialogOptions options)
-{
- if (options == m_options->options())
- return;
-
- m_options->setOptions(options);
- emit optionsChanged();
-}
-
-bool QQuickPlatformFontDialog::useNativeDialog() const
-{
- return QQuickPlatformDialog::useNativeDialog()
- && !m_options->testOption(QFontDialogOptions::DontUseNativeDialog);
-}
-
-void QQuickPlatformFontDialog::onCreate(QPlatformDialogHelper *dialog)
-{
- if (QPlatformFontDialogHelper *fontDialog = qobject_cast<QPlatformFontDialogHelper *>(dialog)) {
- connect(fontDialog, &QPlatformFontDialogHelper::currentFontChanged, this, &QQuickPlatformFontDialog::currentFontChanged);
- fontDialog->setOptions(m_options);
- }
-}
-
-void QQuickPlatformFontDialog::onShow(QPlatformDialogHelper *dialog)
-{
- m_options->setWindowTitle(title());
- if (QPlatformFontDialogHelper *fontDialog = qobject_cast<QPlatformFontDialogHelper *>(dialog))
- fontDialog->setOptions(m_options);
-}
-
-void QQuickPlatformFontDialog::accept()
-{
- setFont(currentFont());
- QQuickPlatformDialog::accept();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformfontdialog_p.h b/src/imports/platform/qquickplatformfontdialog_p.h
deleted file mode 100644
index e7946477..00000000
--- a/src/imports/platform/qquickplatformfontdialog_p.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMFONTDIALOG_P_H
-#define QQUICKPLATFORMFONTDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include "qquickplatformdialog_p.h"
-#include <QtGui/qfont.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPlatformFontDialog : public QQuickPlatformDialog
-{
- Q_OBJECT
- Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged FINAL)
- Q_PROPERTY(QFont currentFont READ currentFont WRITE setCurrentFont NOTIFY currentFontChanged FINAL)
- Q_PROPERTY(QFontDialogOptions::FontDialogOptions options READ options WRITE setOptions NOTIFY optionsChanged FINAL)
- Q_FLAGS(QFontDialogOptions::FontDialogOptions)
-
-public:
- explicit QQuickPlatformFontDialog(QObject *parent = nullptr);
-
- QFont font() const;
- void setFont(const QFont &font);
-
- QFont currentFont() const;
- void setCurrentFont(const QFont &font);
-
- QFontDialogOptions::FontDialogOptions options() const;
- void setOptions(QFontDialogOptions::FontDialogOptions options);
-
-Q_SIGNALS:
- void fontChanged();
- void currentFontChanged();
- void optionsChanged();
-
-protected:
- bool useNativeDialog() const override;
- void onCreate(QPlatformDialogHelper *dialog) override;
- void onShow(QPlatformDialogHelper *dialog) override;
- void accept() override;
-
-private:
- QFont m_font;
- QFont m_currentFont; // TODO: QFontDialogOptions::initialFont
- QSharedPointer<QFontDialogOptions> m_options;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformFontDialog)
-
-#endif // QQUICKPLATFORMFONTDIALOG_P_H
diff --git a/src/imports/platform/qquickplatformicon.cpp b/src/imports/platform/qquickplatformicon.cpp
deleted file mode 100644
index 7096ff8a..00000000
--- a/src/imports/platform/qquickplatformicon.cpp
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformicon_p.h"
-
-QT_BEGIN_NAMESPACE
-
-QUrl QQuickPlatformIcon::source() const
-{
- return m_source;
-}
-
-void QQuickPlatformIcon::setSource(const QUrl& source)
-{
- m_source = source;
-}
-
-QString QQuickPlatformIcon::name() const
-{
- return m_name;
-}
-
-void QQuickPlatformIcon::setName(const QString& name)
-{
- m_name = name;
-}
-
-bool QQuickPlatformIcon::isMask() const
-{
- return m_mask;
-}
-
-void QQuickPlatformIcon::setMask(bool mask)
-{
- m_mask = mask;
-}
-
-bool QQuickPlatformIcon::operator==(const QQuickPlatformIcon &other) const
-{
- return m_source == other.m_source && m_name == other.m_name && m_mask == other.m_mask;
-}
-
-bool QQuickPlatformIcon::operator!=(const QQuickPlatformIcon &other) const
-{
- return !(*this == other);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformicon_p.h b/src/imports/platform/qquickplatformicon_p.h
deleted file mode 100644
index 9add9d6e..00000000
--- a/src/imports/platform/qquickplatformicon_p.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMICON_P_H
-#define QQUICKPLATFORMICON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qurl.h>
-#include <QtCore/qstring.h>
-
-QT_BEGIN_NAMESPACE
-
-class QObject;
-
-class QQuickPlatformIcon
-{
- Q_GADGET
- Q_PROPERTY(QUrl source READ source WRITE setSource)
- Q_PROPERTY(QString name READ name WRITE setName)
- Q_PROPERTY(bool mask READ isMask WRITE setMask)
-
-public:
- QUrl source() const;
- void setSource(const QUrl &source);
-
- QString name() const;
- void setName(const QString &name);
-
- bool isMask() const;
- void setMask(bool mask);
-
- bool operator==(const QQuickPlatformIcon &other) const;
- bool operator!=(const QQuickPlatformIcon &other) const;
-
-private:
- bool m_mask = false;
- QUrl m_source;
- QString m_name;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPLATFORMICON_P_H
diff --git a/src/imports/platform/qquickplatformiconloader.cpp b/src/imports/platform/qquickplatformiconloader.cpp
deleted file mode 100644
index c7b699b2..00000000
--- a/src/imports/platform/qquickplatformiconloader.cpp
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformiconloader_p.h"
-
-#include <QtCore/qobject.h>
-#include <QtCore/qmetaobject.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickPlatformIconLoader::QQuickPlatformIconLoader(int slot, QObject *parent)
- : m_parent(parent),
- m_slot(slot),
- m_enabled(false)
-{
- Q_ASSERT(slot != -1 && parent);
-}
-
-bool QQuickPlatformIconLoader::isEnabled() const
-{
- return m_enabled;
-}
-
-void QQuickPlatformIconLoader::setEnabled(bool enabled)
-{
- m_enabled = enabled;
- if (m_enabled)
- loadIcon();
-}
-
-QIcon QQuickPlatformIconLoader::toQIcon() const
-{
- QIcon fallback = QPixmap::fromImage(image());
- QIcon icon = QIcon::fromTheme(m_icon.name(), fallback);
- icon.setIsMask(m_icon.isMask());
- return icon;
-}
-
-QQuickPlatformIcon QQuickPlatformIconLoader::icon() const
-{
- return m_icon;
-}
-
-void QQuickPlatformIconLoader::setIcon(const QQuickPlatformIcon& icon)
-{
- m_icon = icon;
- if (m_enabled)
- loadIcon();
-}
-
-void QQuickPlatformIconLoader::loadIcon()
-{
- if (m_icon.source().isEmpty()) {
- clear(m_parent);
- } else {
- load(qmlEngine(m_parent), m_icon.source());
- if (m_slot != -1 && isLoading()) {
- connectFinished(m_parent, m_slot);
- m_slot = -1;
- }
- }
-
- if (!isLoading())
- m_parent->metaObject()->method(m_slot).invoke(m_parent);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformiconloader_p.h b/src/imports/platform/qquickplatformiconloader_p.h
deleted file mode 100644
index d284a513..00000000
--- a/src/imports/platform/qquickplatformiconloader_p.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMICONLOADER_P_H
-#define QQUICKPLATFORMICONLOADER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qurl.h>
-#include <QtCore/qstring.h>
-#include <QtGui/qicon.h>
-#include <QtQuick/private/qquickpixmapcache_p.h>
-
-#include "qquickplatformicon_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QObject;
-
-class QQuickPlatformIconLoader : public QQuickPixmap
-{
-public:
- QQuickPlatformIconLoader(int slot, QObject *parent);
-
- bool isEnabled() const;
- void setEnabled(bool enabled);
-
- QIcon toQIcon() const;
-
- QQuickPlatformIcon icon() const;
- void setIcon(const QQuickPlatformIcon &icon);
-
-private:
- void loadIcon();
-
- QObject *m_parent;
- int m_slot;
- bool m_enabled;
- QQuickPlatformIcon m_icon;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPLATFORMICONLOADER_P_H
diff --git a/src/imports/platform/qquickplatformmenu.cpp b/src/imports/platform/qquickplatformmenu.cpp
deleted file mode 100644
index 844fbbd9..00000000
--- a/src/imports/platform/qquickplatformmenu.cpp
+++ /dev/null
@@ -1,940 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformmenu_p.h"
-#include "qquickplatformmenubar_p.h"
-#include "qquickplatformmenuitem_p.h"
-#include "qquickplatformiconloader_p.h"
-
-#include <QtCore/qloggingcategory.h>
-#include <QtGui/qicon.h>
-#include <QtGui/qcursor.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtGui/private/qhighdpiscaling_p.h>
-#include <QtQml/private/qqmlengine_p.h>
-#include <QtQml/private/qv4scopedvalue_p.h>
-#include <QtQml/private/qv4qobjectwrapper_p.h>
-#include <QtQuick/qquickrendercontrol.h>
-#include <QtQuick/qquickwindow.h>
-#include <QtQuick/qquickitem.h>
-
-#include "widgets/qwidgetplatform_p.h"
-
-#if QT_CONFIG(systemtrayicon)
-#include "qquickplatformsystemtrayicon_p.h"
-#endif
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Menu
- \inherits QtObject
- \instantiates QQuickPlatformMenu
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native menu.
-
- The Menu type provides a QML API for native platform menu popups.
-
- \image qtlabsplatform-menu.png
-
- Menu can be used in a \l MenuBar, or as a stand-alone context menu.
- The following example shows how to open a context menu on right mouse
- click:
-
- \code
- MouseArea {
- anchors.fill: parent
- acceptedButtons: Qt.RightButton
- onClicked: zoomMenu.open()
- }
-
- Menu {
- id: zoomMenu
-
- MenuItem {
- text: qsTr("Zoom In")
- shortcut: StandardKey.ZoomIn
- onTriggered: zoomIn()
- }
-
- MenuItem {
- text: qsTr("Zoom Out")
- shortcut: StandardKey.ZoomOut
- onTriggered: zoomOut()
- }
- }
- \endcode
-
- \section2 Submenus
-
- To create submenus, declare a Menu as a child of another Menu:
-
- \qml
- Menu {
- title: qsTr("Edit")
-
- Menu {
- title: qsTr("Advanced")
-
- MenuItem {
- text: qsTr("Auto-indent Selection")
- onTriggered: autoIndentSelection()
- }
-
- MenuItem {
- text: qsTr("Rewrap Paragraph")
- onTriggered: rewrapParagraph()
- }
- }
- }
- \endqml
-
- \section2 Dynamically Generating Menu Items
-
- It is possible to dynamically generate menu items. One of the easiest ways
- to do so is with \l Instantiator. For example, to implement a
- "Recent Files" submenu, where the items are based on a list of files stored
- in settings, the following code could be used:
-
- \qml
- Menu {
- title: qsTr("File")
-
- Menu {
- id: recentFilesSubMenu
- title: qsTr("Recent Files")
- enabled: recentFilesInstantiator.count > 0
-
- Instantiator {
- id: recentFilesInstantiator
- model: settings.recentFiles
- delegate: MenuItem {
- text: settings.displayableFilePath(modelData)
- onTriggered: loadFile(modelData)
- }
-
- onObjectAdded: recentFilesSubMenu.insertItem(index, object)
- onObjectRemoved: recentFilesSubMenu.removeItem(object)
- }
-
- MenuSeparator {}
-
- MenuItem {
- text: qsTr("Clear Recent Files")
- onTriggered: settings.clearRecentFiles()
- }
- }
- }
- \endqml
-
- \section2 Availability
-
- A native platform menu is currently available on the following platforms:
-
- \list
- \li macOS
- \li iOS
- \li Android
- \li Linux (only available as a stand-alone context menu when running with the GTK+ platform theme)
- \endlist
-
- \input includes/widgets.qdocinc 1
-
- \labs
-
- \sa MenuItem, MenuSeparator, MenuBar
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::Menu::aboutToShow()
-
- This signal is emitted when the menu is about to be shown to the user.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::Menu::aboutToHide()
-
- This signal is emitted when the menu is about to be hidden from the user.
-*/
-
-Q_DECLARE_LOGGING_CATEGORY(qtLabsPlatformMenus)
-
-QQuickPlatformMenu::QQuickPlatformMenu(QObject *parent)
- : QObject(parent),
- m_complete(false),
- m_enabled(true),
- m_visible(true),
- m_minimumWidth(-1),
- m_type(QPlatformMenu::DefaultMenu),
- m_menuBar(nullptr),
- m_parentMenu(nullptr),
- m_systemTrayIcon(nullptr),
- m_menuItem(nullptr),
- m_iconLoader(nullptr),
- m_handle(nullptr)
-{
-}
-
-QQuickPlatformMenu::~QQuickPlatformMenu()
-{
- if (m_menuBar)
- m_menuBar->removeMenu(this);
- if (m_parentMenu)
- m_parentMenu->removeMenu(this);
-
- unparentSubmenus();
-
- delete m_iconLoader;
- m_iconLoader = nullptr;
- delete m_handle;
- m_handle = nullptr;
-}
-
-void QQuickPlatformMenu::unparentSubmenus()
-{
- for (QQuickPlatformMenuItem *item : qAsConst(m_items)) {
- if (QQuickPlatformMenu *subMenu = item->subMenu())
- subMenu->setParentMenu(nullptr);
- item->setMenu(nullptr);
- }
-}
-
-QPlatformMenu *QQuickPlatformMenu::handle() const
-{
- return m_handle;
-}
-
-QPlatformMenu * QQuickPlatformMenu::create()
-{
- if (!m_handle) {
- if (m_menuBar && m_menuBar->handle())
- m_handle = m_menuBar->handle()->createMenu();
- else if (m_parentMenu && m_parentMenu->handle())
- m_handle = m_parentMenu->handle()->createSubMenu();
-#if QT_CONFIG(systemtrayicon)
- else if (m_systemTrayIcon && m_systemTrayIcon->handle())
- m_handle = m_systemTrayIcon->handle()->createMenu();
-#endif
-
- // TODO: implement ^
- // - QCocoaMenuBar::createMenu()
- // - QCocoaMenu::createSubMenu()
- // - QCocoaSystemTrayIcon::createMenu()
- if (!m_handle)
- m_handle = QGuiApplicationPrivate::platformTheme()->createPlatformMenu();
-
- if (!m_handle)
- m_handle = QWidgetPlatform::createMenu();
-
- qCDebug(qtLabsPlatformMenus) << "Menu ->" << m_handle;
-
- if (m_handle) {
- connect(m_handle, &QPlatformMenu::aboutToShow, this, &QQuickPlatformMenu::aboutToShow);
- connect(m_handle, &QPlatformMenu::aboutToHide, this, &QQuickPlatformMenu::aboutToHide);
-
- for (QQuickPlatformMenuItem *item : qAsConst(m_items))
- m_handle->insertMenuItem(item->create(), nullptr);
-
- if (m_menuItem) {
- if (QPlatformMenuItem *handle = m_menuItem->create())
- handle->setMenu(m_handle);
- }
- }
- }
- return m_handle;
-}
-
-void QQuickPlatformMenu::destroy()
-{
- if (!m_handle)
- return;
-
- // Ensure that all submenus are unparented before we are destroyed,
- // so that they don't try to access a destroyed menu.
- unparentSubmenus();
-
- delete m_handle;
- m_handle = nullptr;
-}
-
-void QQuickPlatformMenu::sync()
-{
- if (!m_complete || !create())
- return;
-
- m_handle->setText(m_title);
- m_handle->setEnabled(m_enabled);
- m_handle->setVisible(m_visible);
- m_handle->setMinimumWidth(m_minimumWidth);
- m_handle->setMenuType(m_type);
- m_handle->setFont(m_font);
-
- if (m_menuBar && m_menuBar->handle())
- m_menuBar->handle()->syncMenu(m_handle);
-#if QT_CONFIG(systemtrayicon)
- else if (m_systemTrayIcon && m_systemTrayIcon->handle())
- m_systemTrayIcon->handle()->updateMenu(m_handle);
-#endif
-
- for (QQuickPlatformMenuItem *item : qAsConst(m_items))
- item->sync();
-}
-
-/*!
- \default
- \qmlproperty list<Object> Qt.labs.platform::Menu::data
-
- This default property holds the list of all objects declared as children of
- the menu. The data property includes objects that are not \l MenuItem instances,
- such as \l Timer and \l QtObject.
-
- \sa items
-*/
-QQmlListProperty<QObject> QQuickPlatformMenu::data()
-{
- return QQmlListProperty<QObject>(this, nullptr, data_append, data_count, data_at, data_clear);
-}
-
-/*!
- \qmlproperty list<MenuItem> Qt.labs.platform::Menu::items
-
- This property holds the list of items in the menu.
-*/
-QQmlListProperty<QQuickPlatformMenuItem> QQuickPlatformMenu::items()
-{
- return QQmlListProperty<QQuickPlatformMenuItem>(this, nullptr, items_append, items_count, items_at, items_clear);
-}
-
-/*!
- \readonly
- \qmlproperty MenuBar Qt.labs.platform::Menu::menuBar
-
- This property holds the menubar that the menu belongs to, or \c null if the
- menu is not in a menubar.
-*/
-QQuickPlatformMenuBar *QQuickPlatformMenu::menuBar() const
-{
- return m_menuBar;
-}
-
-void QQuickPlatformMenu::setMenuBar(QQuickPlatformMenuBar *menuBar)
-{
- if (m_menuBar == menuBar)
- return;
-
- m_menuBar = menuBar;
- destroy();
- emit menuBarChanged();
-}
-
-/*!
- \readonly
- \qmlproperty Menu Qt.labs.platform::Menu::parentMenu
-
- This property holds the parent menu that the menu belongs to, or \c null if the
- menu is not a sub-menu.
-*/
-QQuickPlatformMenu *QQuickPlatformMenu::parentMenu() const
-{
- return m_parentMenu;
-}
-
-void QQuickPlatformMenu::setParentMenu(QQuickPlatformMenu *menu)
-{
- if (m_parentMenu == menu)
- return;
-
- m_parentMenu = menu;
- destroy();
- emit parentMenuChanged();
-}
-
-/*!
- \readonly
- \qmlproperty SystemTrayIcon Qt.labs.platform::Menu::systemTrayIcon
-
- This property holds the system tray icon that the menu belongs to, or \c null
- if the menu is not in a system tray icon.
-*/
-QQuickPlatformSystemTrayIcon *QQuickPlatformMenu::systemTrayIcon() const
-{
- return m_systemTrayIcon;
-}
-
-void QQuickPlatformMenu::setSystemTrayIcon(QQuickPlatformSystemTrayIcon *icon)
-{
- if (m_systemTrayIcon == icon)
- return;
-
- m_systemTrayIcon = icon;
- destroy();
- emit systemTrayIconChanged();
-}
-
-/*!
- \readonly
- \qmlproperty MenuItem Qt.labs.platform::Menu::menuItem
-
- This property holds the item that presents the menu (in a parent menu).
-*/
-QQuickPlatformMenuItem *QQuickPlatformMenu::menuItem() const
-{
- if (!m_menuItem) {
- QQuickPlatformMenu *that = const_cast<QQuickPlatformMenu *>(this);
- m_menuItem = new QQuickPlatformMenuItem(that);
- m_menuItem->setSubMenu(that);
- m_menuItem->setText(m_title);
- m_menuItem->setIconName(iconName());
- m_menuItem->setIconSource(iconSource());
- m_menuItem->setVisible(m_visible);
- m_menuItem->setEnabled(m_enabled);
- m_menuItem->componentComplete();
- }
- return m_menuItem;
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::Menu::enabled
-
- This property holds whether the menu is enabled. The default value is \c true.
-*/
-bool QQuickPlatformMenu::isEnabled() const
-{
- return m_enabled;
-}
-
-void QQuickPlatformMenu::setEnabled(bool enabled)
-{
- if (m_enabled == enabled)
- return;
-
- if (m_menuItem)
- m_menuItem->setEnabled(enabled);
-
- m_enabled = enabled;
- sync();
- emit enabledChanged();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::Menu::visible
-
- This property holds whether the menu is visible. The default value is \c true.
-*/
-bool QQuickPlatformMenu::isVisible() const
-{
- return m_visible;
-}
-
-void QQuickPlatformMenu::setVisible(bool visible)
-{
- if (m_visible == visible)
- return;
-
- if (m_menuItem)
- m_menuItem->setVisible(visible);
-
- m_visible = visible;
- sync();
- emit visibleChanged();
-}
-
-/*!
- \qmlproperty int Qt.labs.platform::Menu::minimumWidth
-
- This property holds the minimum width of the menu. The default value is \c -1 (no minimum width).
-*/
-int QQuickPlatformMenu::minimumWidth() const
-{
- return m_minimumWidth;
-}
-
-void QQuickPlatformMenu::setMinimumWidth(int width)
-{
- if (m_minimumWidth == width)
- return;
-
- m_minimumWidth = width;
- sync();
- emit minimumWidthChanged();
-}
-
-/*!
- \qmlproperty enumeration Qt.labs.platform::Menu::type
-
- This property holds the type of the menu.
-
- Available values:
- \value Menu.DefaultMenu A normal menu (default).
- \value Menu.EditMenu An edit menu with pre-populated cut, copy and paste items.
-*/
-QPlatformMenu::MenuType QQuickPlatformMenu::type() const
-{
- return m_type;
-}
-
-void QQuickPlatformMenu::setType(QPlatformMenu::MenuType type)
-{
- if (m_type == type)
- return;
-
- m_type = type;
- sync();
- emit typeChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::Menu::title
-
- This property holds the menu's title.
-*/
-QString QQuickPlatformMenu::title() const
-{
- return m_title;
-}
-
-void QQuickPlatformMenu::setTitle(const QString &title)
-{
- if (m_title == title)
- return;
-
- if (m_menuItem)
- m_menuItem->setText(title);
-
- m_title = title;
- sync();
- emit titleChanged();
-}
-
-/*!
- \qmlproperty url Qt.labs.platform::Menu::iconSource
- \deprecated Use icon.source instead
-*/
-QUrl QQuickPlatformMenu::iconSource() const
-{
- return icon().source();
-}
-
-void QQuickPlatformMenu::setIconSource(const QUrl& source)
-{
- QQuickPlatformIcon newIcon = icon();
- if (source == newIcon.source())
- return;
-
- if (m_menuItem)
- m_menuItem->setIconSource(source);
-
- newIcon.setSource(source);
- iconLoader()->setIcon(newIcon);
- emit iconSourceChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::Menu::iconName
- \deprecated Use icon.name instead
-*/
-QString QQuickPlatformMenu::iconName() const
-{
- return icon().name();
-}
-
-void QQuickPlatformMenu::setIconName(const QString& name)
-{
- QQuickPlatformIcon newIcon = icon();
- if (name == newIcon.name())
- return;
-
- if (m_menuItem)
- m_menuItem->setIconName(name);
-
- newIcon.setName(name);
- iconLoader()->setIcon(newIcon);
- emit iconNameChanged();}
-
-/*!
- \qmlproperty font Qt.labs.platform::Menu::font
-
- This property holds the menu's font.
-
- \sa text
-*/
-QFont QQuickPlatformMenu::font() const
-{
- return m_font;
-}
-
-void QQuickPlatformMenu::setFont(const QFont& font)
-{
- if (m_font == font)
- return;
-
- m_font = font;
- sync();
- emit fontChanged();
-}
-
-/*!
- \since Qt.labs.platform 1.1 (Qt 5.12)
- \qmlpropertygroup Qt.labs.platform::MenuItem::icon
- \qmlproperty url Qt.labs.platform::MenuItem::icon.source
- \qmlproperty string Qt.labs.platform::MenuItem::icon.name
- \qmlproperty bool Qt.labs.platform::MenuItem::icon.mask
-
- This property holds the menu item's icon.
-*/
-QQuickPlatformIcon QQuickPlatformMenu::icon() const
-{
- if (!m_iconLoader)
- return QQuickPlatformIcon();
-
- return iconLoader()->icon();
-}
-
-void QQuickPlatformMenu::setIcon(const QQuickPlatformIcon &icon)
-{
- if (iconLoader()->icon() == icon)
- return;
-
- if (m_menuItem)
- m_menuItem->setIcon(icon);
-
- iconLoader()->setIcon(icon);
- emit iconChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::addItem(MenuItem item)
-
- Adds an \a item to the end of the menu.
-*/
-void QQuickPlatformMenu::addItem(QQuickPlatformMenuItem *item)
-{
- insertItem(m_items.count(), item);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::insertItem(int index, MenuItem item)
-
- Inserts an \a item at the specified \a index in the menu.
-*/
-void QQuickPlatformMenu::insertItem(int index, QQuickPlatformMenuItem *item)
-{
- if (!item || m_items.contains(item))
- return;
-
- m_items.insert(index, item);
- m_data.append(item);
- item->setMenu(this);
- if (m_handle && item->create()) {
- QQuickPlatformMenuItem *before = m_items.value(index + 1);
- m_handle->insertMenuItem(item->handle(), before ? before->create() : nullptr);
- }
- sync();
- emit itemsChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::removeItem(MenuItem item)
-
- Removes an \a item from the menu.
-*/
-void QQuickPlatformMenu::removeItem(QQuickPlatformMenuItem *item)
-{
- if (!item || !m_items.removeOne(item))
- return;
-
- m_data.removeOne(item);
- if (m_handle)
- m_handle->removeMenuItem(item->handle());
- item->setMenu(nullptr);
- sync();
- emit itemsChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::addMenu(Menu submenu)
-
- Adds a \a submenu to the end of the menu.
-*/
-void QQuickPlatformMenu::addMenu(QQuickPlatformMenu *menu)
-{
- insertMenu(m_items.count(), menu);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::insertMenu(int index, Menu submenu)
-
- Inserts a \a submenu at the specified \a index in the menu.
-*/
-void QQuickPlatformMenu::insertMenu(int index, QQuickPlatformMenu *menu)
-{
- if (!menu)
- return;
-
- menu->setParentMenu(this);
- insertItem(index, menu->menuItem());
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::removeMenu(Menu submenu)
-
- Removes a \a submenu from the menu.
-*/
-void QQuickPlatformMenu::removeMenu(QQuickPlatformMenu *menu)
-{
- if (!menu)
- return;
-
- menu->setParentMenu(nullptr);
- removeItem(menu->menuItem());
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::clear()
-
- Removes all items from the menu.
-*/
-void QQuickPlatformMenu::clear()
-{
- if (m_items.isEmpty())
- return;
-
- for (QQuickPlatformMenuItem *item : qAsConst(m_items)) {
- m_data.removeOne(item);
- if (m_handle)
- m_handle->removeMenuItem(item->handle());
- item->setMenu(nullptr);
- delete item;
- }
-
- m_items.clear();
- sync();
- emit itemsChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::open(MenuItem item)
-
- Opens the menu at the current mouse position, optionally aligned to a menu \a item.
-*/
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::open(Item target, MenuItem item)
-
- Opens the menu at the specified \a target item, optionally aligned to a menu \a item.
-*/
-void QQuickPlatformMenu::open(QQmlV4Function *args)
-{
- if (!m_handle)
- return;
-
- if (args->length() > 2) {
- args->v4engine()->throwTypeError();
- return;
- }
-
- QV4::ExecutionEngine *v4 = args->v4engine();
- QV4::Scope scope(v4);
-
- QQuickItem *targetItem = nullptr;
- if (args->length() > 0) {
- QV4::ScopedValue value(scope, (*args)[0]);
- QV4::Scoped<QV4::QObjectWrapper> object(scope, value->as<QV4::QObjectWrapper>());
- if (object)
- targetItem = qobject_cast<QQuickItem *>(object->object());
- }
-
- QQuickPlatformMenuItem *menuItem = nullptr;
- if (args->length() > 1) {
- QV4::ScopedValue value(scope, (*args)[1]);
- QV4::Scoped<QV4::QObjectWrapper> object(scope, value->as<QV4::QObjectWrapper>());
- if (object)
- menuItem = qobject_cast<QQuickPlatformMenuItem *>(object->object());
- }
-
- QPoint offset;
- QWindow *window = findWindow(targetItem, &offset);
-
- QRect targetRect;
- if (targetItem) {
- QRectF sceneBounds = targetItem->mapRectToScene(targetItem->boundingRect());
- targetRect = sceneBounds.toAlignedRect().translated(offset);
- } else {
-#if QT_CONFIG(cursor)
- QPoint pos = QCursor::pos();
- if (window)
- pos = window->mapFromGlobal(pos);
- targetRect.moveTo(pos);
-#endif
- }
- m_handle->showPopup(window,
- QHighDpi::toNativePixels(targetRect, window),
- menuItem ? menuItem->handle() : nullptr);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::Menu::close()
-
- Closes the menu.
-*/
-void QQuickPlatformMenu::close()
-{
- if (m_handle)
- m_handle->dismiss();
-}
-
-void QQuickPlatformMenu::classBegin()
-{
-}
-
-void QQuickPlatformMenu::componentComplete()
-{
- m_complete = true;
- if (m_handle && m_iconLoader)
- m_iconLoader->setEnabled(true);
- sync();
-}
-
-QQuickPlatformIconLoader *QQuickPlatformMenu::iconLoader() const
-{
- if (!m_iconLoader) {
- QQuickPlatformMenu *that = const_cast<QQuickPlatformMenu *>(this);
- static int slot = staticMetaObject.indexOfSlot("updateIcon()");
- m_iconLoader = new QQuickPlatformIconLoader(slot, that);
- m_iconLoader->setEnabled(m_complete);
- }
- return m_iconLoader;
-}
-
-static QWindow *effectiveWindow(QWindow *window, QPoint *offset)
-{
- QQuickWindow *quickWindow = qobject_cast<QQuickWindow *>(window);
- if (quickWindow) {
- QWindow *renderWindow = QQuickRenderControl::renderWindowFor(quickWindow, offset);
- if (renderWindow)
- return renderWindow;
- }
- return window;
-}
-
-QWindow *QQuickPlatformMenu::findWindow(QQuickItem *target, QPoint *offset) const
-{
- if (target)
- return effectiveWindow(target->window(), offset);
-
- if (m_menuBar && m_menuBar->window())
- return effectiveWindow(m_menuBar->window(), offset);
-
- QObject *obj = parent();
- while (obj) {
- QWindow *window = qobject_cast<QWindow *>(obj);
- if (window)
- return effectiveWindow(window, offset);
-
- QQuickItem *item = qobject_cast<QQuickItem *>(obj);
- if (item && item->window())
- return effectiveWindow(item->window(), offset);
-
- obj = obj->parent();
- }
- return nullptr;
-}
-
-void QQuickPlatformMenu::data_append(QQmlListProperty<QObject> *property, QObject *object)
-{
- QQuickPlatformMenu *menu = static_cast<QQuickPlatformMenu *>(property->object);
- if (QQuickPlatformMenuItem *item = qobject_cast<QQuickPlatformMenuItem *>(object))
- menu->addItem(item);
- else if (QQuickPlatformMenu *subMenu = qobject_cast<QQuickPlatformMenu *>(object))
- menu->addMenu(subMenu);
- else
- menu->m_data.append(object);
-}
-
-int QQuickPlatformMenu::data_count(QQmlListProperty<QObject> *property)
-{
- QQuickPlatformMenu *menu = static_cast<QQuickPlatformMenu *>(property->object);
- return menu->m_data.count();
-}
-
-QObject *QQuickPlatformMenu::data_at(QQmlListProperty<QObject> *property, int index)
-{
- QQuickPlatformMenu *menu = static_cast<QQuickPlatformMenu *>(property->object);
- return menu->m_data.value(index);
-}
-
-void QQuickPlatformMenu::data_clear(QQmlListProperty<QObject> *property)
-{
- QQuickPlatformMenu *menu = static_cast<QQuickPlatformMenu *>(property->object);
- menu->m_data.clear();
-}
-
-void QQuickPlatformMenu::items_append(QQmlListProperty<QQuickPlatformMenuItem> *property, QQuickPlatformMenuItem *item)
-{
- QQuickPlatformMenu *menu = static_cast<QQuickPlatformMenu *>(property->object);
- menu->addItem(item);
-}
-
-int QQuickPlatformMenu::items_count(QQmlListProperty<QQuickPlatformMenuItem> *property)
-{
- QQuickPlatformMenu *menu = static_cast<QQuickPlatformMenu *>(property->object);
- return menu->m_items.count();
-}
-
-QQuickPlatformMenuItem *QQuickPlatformMenu::items_at(QQmlListProperty<QQuickPlatformMenuItem> *property, int index)
-{
- QQuickPlatformMenu *menu = static_cast<QQuickPlatformMenu *>(property->object);
- return menu->m_items.value(index);
-}
-
-void QQuickPlatformMenu::items_clear(QQmlListProperty<QQuickPlatformMenuItem> *property)
-{
- QQuickPlatformMenu *menu = static_cast<QQuickPlatformMenu *>(property->object);
- menu->clear();
-}
-
-void QQuickPlatformMenu::updateIcon()
-{
- if (!m_handle || !m_iconLoader)
- return;
-
- m_handle->setIcon(m_iconLoader->toQIcon());
- sync();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformmenu_p.h b/src/imports/platform/qquickplatformmenu_p.h
deleted file mode 100644
index eb18f66b..00000000
--- a/src/imports/platform/qquickplatformmenu_p.h
+++ /dev/null
@@ -1,223 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMMENU_P_H
-#define QQUICKPLATFORMMENU_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtCore/qurl.h>
-#include <QtGui/qfont.h>
-#include <QtGui/qpa/qplatformmenu.h>
-#include <QtQml/qqmlparserstatus.h>
-#include <QtQml/qqmllist.h>
-#include <QtQml/qqml.h>
-
-#include "qquickplatformicon_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QIcon;
-class QWindow;
-class QQuickItem;
-class QPlatformMenu;
-class QQmlV4Function;
-class QQuickPlatformMenuBar;
-class QQuickPlatformMenuItem;
-class QQuickPlatformIconLoader;
-class QQuickPlatformSystemTrayIcon;
-
-class QQuickPlatformMenu : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_INTERFACES(QQmlParserStatus)
- Q_PROPERTY(QQmlListProperty<QObject> data READ data FINAL)
- Q_PROPERTY(QQmlListProperty<QQuickPlatformMenuItem> items READ items NOTIFY itemsChanged FINAL)
- Q_PROPERTY(QQuickPlatformMenuBar *menuBar READ menuBar NOTIFY menuBarChanged FINAL)
- Q_PROPERTY(QQuickPlatformMenu *parentMenu READ parentMenu NOTIFY parentMenuChanged FINAL)
- Q_PROPERTY(QQuickPlatformSystemTrayIcon *systemTrayIcon READ systemTrayIcon NOTIFY systemTrayIconChanged FINAL)
- Q_PROPERTY(QQuickPlatformMenuItem *menuItem READ menuItem CONSTANT FINAL)
- Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged FINAL)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL)
- Q_PROPERTY(int minimumWidth READ minimumWidth WRITE setMinimumWidth NOTIFY minimumWidthChanged FINAL)
- Q_PROPERTY(QPlatformMenu::MenuType type READ type WRITE setType NOTIFY typeChanged FINAL)
- Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
- Q_PROPERTY(QUrl iconSource READ iconSource WRITE setIconSource NOTIFY iconSourceChanged FINAL)
- Q_PROPERTY(QString iconName READ iconName WRITE setIconName NOTIFY iconNameChanged FINAL)
- Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged FINAL)
- Q_PROPERTY(QQuickPlatformIcon icon READ icon WRITE setIcon NOTIFY iconChanged FINAL REVISION 1)
- Q_ENUMS(QPlatformMenu::MenuType)
- Q_CLASSINFO("DefaultProperty", "data")
-
-public:
- explicit QQuickPlatformMenu(QObject *parent = nullptr);
- ~QQuickPlatformMenu();
-
- QPlatformMenu *handle() const;
- QPlatformMenu *create();
- void destroy();
- void sync();
-
- QQmlListProperty<QObject> data();
- QQmlListProperty<QQuickPlatformMenuItem> items();
-
- QQuickPlatformMenuBar *menuBar() const;
- void setMenuBar(QQuickPlatformMenuBar *menuBar);
-
- QQuickPlatformMenu *parentMenu() const;
- void setParentMenu(QQuickPlatformMenu *menu);
-
- QQuickPlatformSystemTrayIcon *systemTrayIcon() const;
- void setSystemTrayIcon(QQuickPlatformSystemTrayIcon *icon);
-
- QQuickPlatformMenuItem *menuItem() const;
-
- bool isEnabled() const;
- void setEnabled(bool enabled);
-
- bool isVisible() const;
- void setVisible(bool visible);
-
- int minimumWidth() const;
- void setMinimumWidth(int width);
-
- QPlatformMenu::MenuType type() const;
- void setType(QPlatformMenu::MenuType type);
-
- QString title() const;
- void setTitle(const QString &title);
-
- QUrl iconSource() const;
- void setIconSource(const QUrl &source);
-
- QString iconName() const;
- void setIconName(const QString &name);
-
- QFont font() const;
- void setFont(const QFont &font);
-
- QQuickPlatformIcon icon() const;
- void setIcon(const QQuickPlatformIcon &icon);
-
- Q_INVOKABLE void addItem(QQuickPlatformMenuItem *item);
- Q_INVOKABLE void insertItem(int index, QQuickPlatformMenuItem *item);
- Q_INVOKABLE void removeItem(QQuickPlatformMenuItem *item);
-
- Q_INVOKABLE void addMenu(QQuickPlatformMenu *menu);
- Q_INVOKABLE void insertMenu(int index, QQuickPlatformMenu *menu);
- Q_INVOKABLE void removeMenu(QQuickPlatformMenu *menu);
-
- Q_INVOKABLE void clear();
-
-public Q_SLOTS:
- void open(QQmlV4Function *args);
- void close();
-
-Q_SIGNALS:
- void aboutToShow();
- void aboutToHide();
-
- void itemsChanged();
- void menuBarChanged();
- void parentMenuChanged();
- void systemTrayIconChanged();
- void titleChanged();
- void iconSourceChanged();
- void iconNameChanged();
- void enabledChanged();
- void visibleChanged();
- void minimumWidthChanged();
- void fontChanged();
- void typeChanged();
- Q_REVISION(1) void iconChanged();
-
-protected:
- void classBegin() override;
- void componentComplete() override;
-
- QQuickPlatformIconLoader *iconLoader() const;
-
- QWindow *findWindow(QQuickItem *target, QPoint *offset) const;
-
- static void data_append(QQmlListProperty<QObject> *property, QObject *object);
- static int data_count(QQmlListProperty<QObject> *property);
- static QObject *data_at(QQmlListProperty<QObject> *property, int index);
- static void data_clear(QQmlListProperty<QObject> *property);
-
- static void items_append(QQmlListProperty<QQuickPlatformMenuItem> *property, QQuickPlatformMenuItem *item);
- static int items_count(QQmlListProperty<QQuickPlatformMenuItem> *property);
- static QQuickPlatformMenuItem *items_at(QQmlListProperty<QQuickPlatformMenuItem> *property, int index);
- static void items_clear(QQmlListProperty<QQuickPlatformMenuItem> *property);
-
-private Q_SLOTS:
- void updateIcon();
-
-private:
- void unparentSubmenus();
-
- bool m_complete;
- bool m_enabled;
- bool m_visible;
- int m_minimumWidth;
- QPlatformMenu::MenuType m_type;
- QString m_title;
- QFont m_font;
- QList<QObject *> m_data;
- QList<QQuickPlatformMenuItem *> m_items;
- QQuickPlatformMenuBar *m_menuBar;
- QQuickPlatformMenu *m_parentMenu;
- QQuickPlatformSystemTrayIcon *m_systemTrayIcon;
- mutable QQuickPlatformMenuItem *m_menuItem;
- mutable QQuickPlatformIconLoader *m_iconLoader;
- QPlatformMenu *m_handle;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformMenu)
-Q_DECLARE_METATYPE(QPlatformMenu::MenuType)
-
-#endif // QQUICKPLATFORMMENU_P_H
diff --git a/src/imports/platform/qquickplatformmenubar.cpp b/src/imports/platform/qquickplatformmenubar.cpp
deleted file mode 100644
index 4487b9a7..00000000
--- a/src/imports/platform/qquickplatformmenubar.cpp
+++ /dev/null
@@ -1,330 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformmenubar_p.h"
-#include "qquickplatformmenu_p.h"
-
-#include <QtCore/qloggingcategory.h>
-#include <QtGui/qpa/qplatformmenu.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQuick/qquickwindow.h>
-#include <QtQuick/qquickitem.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MenuBar
- \inherits QtObject
- \instantiates QQuickPlatformMenuBar
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native menubar.
-
- The MenuBar type provides a QML API for native platform menubars.
-
- \image qtlabsplatform-menubar.png
-
- A menubar consists of a list of drop-down menus.
-
- \code
- MenuBar {
- id: menuBar
-
- Menu {
- id: fileMenu
- title: qsTr("File")
- // ...
- }
-
- Menu {
- id: editMenu
- title: qsTr("&Edit")
- // ...
- }
-
- Menu {
- id: viewMenu
- title: qsTr("&View")
- // ...
- }
-
- Menu {
- id: helpMenu
- title: qsTr("&Help")
- // ...
- }
- }
- \endcode
-
- MenuBar is currently available on the following platforms:
-
- \list
- \li macOS
- \li Android
- \li Linux (only available on desktop environments that provide a global D-Bus menu bar)
- \endlist
-
- \labs
-
- \sa Menu
-*/
-
-Q_DECLARE_LOGGING_CATEGORY(qtLabsPlatformMenus)
-
-QQuickPlatformMenuBar::QQuickPlatformMenuBar(QObject *parent)
- : QObject(parent),
- m_complete(false),
- m_window(nullptr),
- m_handle(nullptr)
-{
- m_handle = QGuiApplicationPrivate::platformTheme()->createPlatformMenuBar();
- qCDebug(qtLabsPlatformMenus) << "MenuBar ->" << m_handle;
-}
-
-QQuickPlatformMenuBar::~QQuickPlatformMenuBar()
-{
- for (QQuickPlatformMenu *menu : qAsConst(m_menus))
- menu->setMenuBar(nullptr);
- delete m_handle;
- m_handle = nullptr;
-}
-
-QPlatformMenuBar *QQuickPlatformMenuBar::handle() const
-{
- return m_handle;
-}
-
-/*!
- \default
- \qmlproperty list<Object> Qt.labs.platform::MenuBar::data
-
- This default property holds the list of all objects declared as children of
- the menubar. The data property includes objects that are not \l Menu instances,
- such as \l Timer and \l QtObject.
-
- \sa menus
-*/
-QQmlListProperty<QObject> QQuickPlatformMenuBar::data()
-{
- return QQmlListProperty<QObject>(this, nullptr, data_append, data_count, data_at, data_clear);
-}
-
-/*!
- \qmlproperty list<Menu> Qt.labs.platform::MenuBar::menus
-
- This property holds the list of menus in the menubar.
-*/
-QQmlListProperty<QQuickPlatformMenu> QQuickPlatformMenuBar::menus()
-{
- return QQmlListProperty<QQuickPlatformMenu>(this, nullptr, menus_append, menus_count, menus_at, menus_clear);
-}
-
-/*!
- \qmlproperty Window Qt.labs.platform::MenuBar::window
-
- This property holds the menubar's window.
-
- Unless explicitly set, the window is automatically resolved by iterating
- the QML parent objects until a \l Window or an \l Item that has a window
- is found.
-*/
-QWindow *QQuickPlatformMenuBar::window() const
-{
- return m_window;
-}
-
-void QQuickPlatformMenuBar::setWindow(QWindow *window)
-{
- if (m_window == window)
- return;
-
- if (m_handle)
- m_handle->handleReparent(window);
-
- m_window = window;
- emit windowChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::MenuBar::addMenu(Menu menu)
-
- Adds a \a menu to end of the menubar.
-*/
-void QQuickPlatformMenuBar::addMenu(QQuickPlatformMenu *menu)
-{
- insertMenu(m_menus.count(), menu);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::MenuBar::insertMenu(int index, Menu menu)
-
- Inserts a \a menu at the specified \a index in the menubar.
-*/
-void QQuickPlatformMenuBar::insertMenu(int index, QQuickPlatformMenu *menu)
-{
- if (!menu || m_menus.contains(menu))
- return;
-
- QQuickPlatformMenu *before = m_menus.value(index);
- m_menus.insert(index, menu);
- m_data.append(menu);
- menu->setMenuBar(this);
- if (m_handle)
- m_handle->insertMenu(menu->create(), before ? before->handle() : nullptr);
- emit menusChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::MenuBar::removeMenu(Menu menu)
-
- Removes a \a menu from the menubar.
-*/
-void QQuickPlatformMenuBar::removeMenu(QQuickPlatformMenu *menu)
-{
- if (!menu || !m_menus.removeOne(menu))
- return;
-
- m_data.removeOne(menu);
- if (m_handle)
- m_handle->removeMenu(menu->handle());
- menu->setMenuBar(nullptr);
- emit menusChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::MenuBar::clear()
-
- Removes all menus from the menubar.
-*/
-void QQuickPlatformMenuBar::clear()
-{
- if (m_menus.isEmpty())
- return;
-
- for (QQuickPlatformMenu *menu : qAsConst(m_menus)) {
- m_data.removeOne(menu);
- if (m_handle)
- m_handle->removeMenu(menu->handle());
- menu->setMenuBar(nullptr);
- delete menu;
- }
-
- m_menus.clear();
- emit menusChanged();
-}
-
-void QQuickPlatformMenuBar::classBegin()
-{
-}
-
-void QQuickPlatformMenuBar::componentComplete()
-{
- m_complete = true;
- for (QQuickPlatformMenu *menu : qAsConst(m_menus))
- menu->sync();
- if (!m_window)
- setWindow(findWindow());
-}
-
-QWindow *QQuickPlatformMenuBar::findWindow() const
-{
- QObject *obj = parent();
- while (obj) {
- QWindow *window = qobject_cast<QWindow *>(obj);
- if (window)
- return window;
- QQuickItem *item = qobject_cast<QQuickItem *>(obj);
- if (item && item->window())
- return item->window();
- obj = obj->parent();
- }
- return nullptr;
-}
-
-void QQuickPlatformMenuBar::data_append(QQmlListProperty<QObject> *property, QObject *object)
-{
- QQuickPlatformMenuBar *menuBar = static_cast<QQuickPlatformMenuBar *>(property->object);
- QQuickPlatformMenu *menu = qobject_cast<QQuickPlatformMenu *>(object);
- if (menu)
- menuBar->addMenu(menu);
- else
- menuBar->m_data.append(object);
-}
-
-int QQuickPlatformMenuBar::data_count(QQmlListProperty<QObject> *property)
-{
- QQuickPlatformMenuBar *menuBar = static_cast<QQuickPlatformMenuBar *>(property->object);
- return menuBar->m_data.count();
-}
-
-QObject *QQuickPlatformMenuBar::data_at(QQmlListProperty<QObject> *property, int index)
-{
- QQuickPlatformMenuBar *menuBar = static_cast<QQuickPlatformMenuBar *>(property->object);
- return menuBar->m_data.value(index);
-}
-
-void QQuickPlatformMenuBar::data_clear(QQmlListProperty<QObject> *property)
-{
- QQuickPlatformMenuBar *menuBar = static_cast<QQuickPlatformMenuBar *>(property->object);
- menuBar->m_data.clear();
-}
-
-void QQuickPlatformMenuBar::menus_append(QQmlListProperty<QQuickPlatformMenu> *property, QQuickPlatformMenu *menu)
-{
- QQuickPlatformMenuBar *menuBar = static_cast<QQuickPlatformMenuBar *>(property->object);
- menuBar->addMenu(menu);
-}
-
-int QQuickPlatformMenuBar::menus_count(QQmlListProperty<QQuickPlatformMenu> *property)
-{
- QQuickPlatformMenuBar *menuBar = static_cast<QQuickPlatformMenuBar *>(property->object);
- return menuBar->m_menus.count();
-}
-
-QQuickPlatformMenu *QQuickPlatformMenuBar::menus_at(QQmlListProperty<QQuickPlatformMenu> *property, int index)
-{
- QQuickPlatformMenuBar *menuBar = static_cast<QQuickPlatformMenuBar *>(property->object);
- return menuBar->m_menus.value(index);
-}
-
-void QQuickPlatformMenuBar::menus_clear(QQmlListProperty<QQuickPlatformMenu> *property)
-{
- QQuickPlatformMenuBar *menuBar = static_cast<QQuickPlatformMenuBar *>(property->object);
- menuBar->clear();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformmenubar_p.h b/src/imports/platform/qquickplatformmenubar_p.h
deleted file mode 100644
index d4573976..00000000
--- a/src/imports/platform/qquickplatformmenubar_p.h
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMMENUBAR_P_H
-#define QQUICKPLATFORMMENUBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtQml/qqmlparserstatus.h>
-#include <QtQml/qqmllist.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QWindow;
-class QPlatformMenuBar;
-class QQuickPlatformMenu;
-
-class QQuickPlatformMenuBar : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_INTERFACES(QQmlParserStatus)
- Q_PROPERTY(QQmlListProperty<QObject> data READ data FINAL)
- Q_PROPERTY(QQmlListProperty<QQuickPlatformMenu> menus READ menus NOTIFY menusChanged FINAL)
- Q_PROPERTY(QWindow *window READ window WRITE setWindow NOTIFY windowChanged FINAL)
- Q_CLASSINFO("DefaultProperty", "data")
-
-public:
- explicit QQuickPlatformMenuBar(QObject *parent = nullptr);
- ~QQuickPlatformMenuBar();
-
- QPlatformMenuBar *handle() const;
-
- QQmlListProperty<QObject> data();
- QQmlListProperty<QQuickPlatformMenu> menus();
-
- QWindow *window() const;
- void setWindow(QWindow *window);
-
- Q_INVOKABLE void addMenu(QQuickPlatformMenu *menu);
- Q_INVOKABLE void insertMenu(int index, QQuickPlatformMenu *menu);
- Q_INVOKABLE void removeMenu(QQuickPlatformMenu *menu);
- Q_INVOKABLE void clear();
-
-Q_SIGNALS:
- void menusChanged();
- void windowChanged();
-
-protected:
- void classBegin() override;
- void componentComplete() override;
-
- QWindow *findWindow() const;
-
- static void data_append(QQmlListProperty<QObject> *property, QObject *object);
- static int data_count(QQmlListProperty<QObject> *property);
- static QObject *data_at(QQmlListProperty<QObject> *property, int index);
- static void data_clear(QQmlListProperty<QObject> *property);
-
- static void menus_append(QQmlListProperty<QQuickPlatformMenu> *property, QQuickPlatformMenu *menu);
- static int menus_count(QQmlListProperty<QQuickPlatformMenu> *property);
- static QQuickPlatformMenu *menus_at(QQmlListProperty<QQuickPlatformMenu> *property, int index);
- static void menus_clear(QQmlListProperty<QQuickPlatformMenu> *property);
-
-private:
- bool m_complete;
- QWindow *m_window;
- QList<QObject *> m_data;
- QList<QQuickPlatformMenu *> m_menus;
- QPlatformMenuBar *m_handle;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformMenuBar)
-
-#endif // QQUICKPLATFORMMENUBAR_P_H
diff --git a/src/imports/platform/qquickplatformmenuitem.cpp b/src/imports/platform/qquickplatformmenuitem.cpp
deleted file mode 100644
index d657fd12..00000000
--- a/src/imports/platform/qquickplatformmenuitem.cpp
+++ /dev/null
@@ -1,625 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformmenuitem_p.h"
-#include "qquickplatformmenu_p.h"
-#include "qquickplatformmenuitemgroup_p.h"
-#include "qquickplatformiconloader_p.h"
-
-#include <QtGui/qicon.h>
-#include <QtGui/qkeysequence.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/private/qguiapplication_p.h>
-
-#include "widgets/qwidgetplatform_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MenuItem
- \inherits QtObject
- \instantiates QQuickPlatformMenuItem
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native menu item.
-
- The MenuItem type provides a QML API for native platform menu items.
-
- \image qtlabsplatform-menu.png
-
- A menu item consists of an \l {iconSource}{icon}, \l text, and \l shortcut.
-
- \code
- Menu {
- id: zoomMenu
-
- MenuItem {
- text: qsTr("Zoom In")
- shortcut: StandardKey.ZoomIn
- onTriggered: zoomIn()
- }
-
- MenuItem {
- text: qsTr("Zoom Out")
- shortcut: StandardKey.ZoomOut
- onTriggered: zoomOut()
- }
- }
- \endcode
-
- \labs
-
- \sa Menu, MenuItemGroup
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MenuItem::triggered()
-
- This signal is emitted when the menu item is triggered by the user.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MenuItem::hovered()
-
- This signal is emitted when the menu item is hovered by the user.
-*/
-
-QQuickPlatformMenuItem::QQuickPlatformMenuItem(QObject *parent)
- : QObject(parent),
- m_complete(false),
- m_enabled(true),
- m_visible(true),
- m_separator(false),
- m_checkable(false),
- m_checked(false),
- m_role(QPlatformMenuItem::TextHeuristicRole),
- m_menu(nullptr),
- m_subMenu(nullptr),
- m_group(nullptr),
- m_iconLoader(nullptr),
- m_handle(nullptr)
-{
-}
-
-QQuickPlatformMenuItem::~QQuickPlatformMenuItem()
-{
- if (m_menu)
- m_menu->removeItem(this);
- if (m_group)
- m_group->removeItem(this);
- delete m_iconLoader;
- m_iconLoader = nullptr;
- delete m_handle;
- m_handle = nullptr;
-}
-
-QPlatformMenuItem *QQuickPlatformMenuItem::handle() const
-{
- return m_handle;
-}
-
-QPlatformMenuItem *QQuickPlatformMenuItem::create()
-{
- if (!m_handle && m_menu && m_menu->handle()) {
- m_handle = m_menu->handle()->createMenuItem();
-
- // TODO: implement QCocoaMenu::createMenuItem()
- if (!m_handle)
- m_handle = QGuiApplicationPrivate::platformTheme()->createPlatformMenuItem();
-
- if (!m_handle)
- m_handle = QWidgetPlatform::createMenuItem();
-
- if (m_handle) {
- connect(m_handle, &QPlatformMenuItem::activated, this, &QQuickPlatformMenuItem::activate);
- connect(m_handle, &QPlatformMenuItem::hovered, this, &QQuickPlatformMenuItem::hovered);
- }
- }
- return m_handle;
-}
-
-void QQuickPlatformMenuItem::sync()
-{
- if (!m_complete || !create())
- return;
-
- m_handle->setEnabled(isEnabled());
- m_handle->setVisible(isVisible());
- m_handle->setIsSeparator(m_separator);
- m_handle->setCheckable(m_checkable);
- m_handle->setChecked(m_checked);
- m_handle->setRole(m_role);
- m_handle->setText(m_text);
- m_handle->setFont(m_font);
- m_handle->setHasExclusiveGroup(m_group && m_group->isExclusive());
- if (m_subMenu && m_subMenu->handle())
- m_handle->setMenu(m_subMenu->handle());
-
-#if QT_CONFIG(shortcut)
- QKeySequence sequence;
- if (m_shortcut.type() == QVariant::Int)
- sequence = QKeySequence(static_cast<QKeySequence::StandardKey>(m_shortcut.toInt()));
- else
- sequence = QKeySequence::fromString(m_shortcut.toString());
- m_handle->setShortcut(sequence.toString());
-#endif
-
- if (m_menu && m_menu->handle())
- m_menu->handle()->syncMenuItem(m_handle);
-}
-
-/*!
- \readonly
- \qmlproperty Menu Qt.labs.platform::MenuItem::menu
-
- This property holds the menu that the item belongs to, or \c null if the
- item is not in a menu.
-*/
-QQuickPlatformMenu *QQuickPlatformMenuItem::menu() const
-{
- return m_menu;
-}
-
-void QQuickPlatformMenuItem::setMenu(QQuickPlatformMenu *menu)
-{
- if (m_menu == menu)
- return;
-
- m_menu = menu;
- emit menuChanged();
-}
-
-/*!
- \readonly
- \qmlproperty Menu Qt.labs.platform::MenuItem::subMenu
-
- This property holds the sub-menu that the item contains, or \c null if
- the item is not a sub-menu item.
-*/
-QQuickPlatformMenu *QQuickPlatformMenuItem::subMenu() const
-{
- return m_subMenu;
-}
-
-void QQuickPlatformMenuItem::setSubMenu(QQuickPlatformMenu *menu)
-{
- if (m_subMenu == menu)
- return;
-
- m_subMenu = menu;
- sync();
- emit subMenuChanged();
-}
-
-/*!
- \qmlproperty MenuItemGroup Qt.labs.platform::MenuItem::group
-
- This property holds the group that the item belongs to, or \c null if the
- item is not in a group.
-*/
-QQuickPlatformMenuItemGroup *QQuickPlatformMenuItem::group() const
-{
- return m_group;
-}
-
-void QQuickPlatformMenuItem::setGroup(QQuickPlatformMenuItemGroup *group)
-{
- if (m_group == group)
- return;
-
- bool wasEnabled = isEnabled();
- bool wasVisible = isVisible();
-
- if (group)
- group->addItem(this);
-
- m_group = group;
- sync();
- emit groupChanged();
-
- if (isEnabled() != wasEnabled)
- emit enabledChanged();
- if (isVisible() != wasVisible)
- emit visibleChanged();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::MenuItem::enabled
-
- This property holds whether the item is enabled. The default value is \c true.
-
- Disabled items cannot be triggered by the user. They do not disappear from menus,
- but they are displayed in a way which indicates that they are unavailable. For
- example, they might be displayed using only shades of gray.
-
- When an item is disabled, it is not possible to trigger it through its \l shortcut.
-*/
-bool QQuickPlatformMenuItem::isEnabled() const
-{
- return m_enabled && (!m_group || m_group->isEnabled());
-}
-
-void QQuickPlatformMenuItem::setEnabled(bool enabled)
-{
- if (m_enabled == enabled)
- return;
-
- bool wasEnabled = isEnabled();
- m_enabled = enabled;
- sync();
- if (isEnabled() != wasEnabled)
- emit enabledChanged();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::MenuItem::visible
-
- This property holds whether the item is visible. The default value is \c true.
-*/
-bool QQuickPlatformMenuItem::isVisible() const
-{
- return m_visible && (!m_group || m_group->isVisible());
-}
-
-void QQuickPlatformMenuItem::setVisible(bool visible)
-{
- if (m_visible == visible)
- return;
-
- bool wasVisible = isVisible();
- m_visible = visible;
- sync();
- if (isVisible() != wasVisible)
- emit visibleChanged();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::MenuItem::separator
-
- This property holds whether the item is a separator line. The default value
- is \c false.
-
- \sa MenuSeparator
-*/
-bool QQuickPlatformMenuItem::isSeparator() const
-{
- return m_separator;
-}
-
-void QQuickPlatformMenuItem::setSeparator(bool separator)
-{
- if (m_separator == separator)
- return;
-
- m_separator = separator;
- sync();
- emit separatorChanged();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::MenuItem::checkable
-
- This property holds whether the item is checkable.
-
- A checkable menu item has an on/off state. For example, in a word processor,
- a "Bold" menu item may be either on or off. A menu item that is not checkable
- is a command item that is simply executed, e.g. file save.
-
- The default value is \c false.
-
- \sa checked, MenuItemGroup
-*/
-bool QQuickPlatformMenuItem::isCheckable() const
-{
- return m_checkable;
-}
-
-void QQuickPlatformMenuItem::setCheckable(bool checkable)
-{
- if (m_checkable == checkable)
- return;
-
- m_checkable = checkable;
- sync();
- emit checkableChanged();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::MenuItem::checked
-
- This property holds whether the item is checked (on) or unchecked (off).
- The default value is \c false.
-
- \sa checkable, MenuItemGroup
-*/
-bool QQuickPlatformMenuItem::isChecked() const
-{
- return m_checked;
-}
-
-void QQuickPlatformMenuItem::setChecked(bool checked)
-{
- if (m_checked == checked)
- return;
-
- if (checked && !m_checkable)
- setCheckable(true);
-
- m_checked = checked;
- sync();
- emit checkedChanged();
-}
-
-/*!
- \qmlproperty enumeration Qt.labs.platform::MenuItem::role
-
- This property holds the role of the item. The role determines whether
- the item should be placed into the application menu on macOS.
-
- Available values:
- \value MenuItem.NoRole The item should not be put into the application menu
- \value MenuItem.TextHeuristicRole The item should be put in the application menu based on the action's text (default)
- \value MenuItem.ApplicationSpecificRole The item should be put in the application menu with an application-specific role
- \value MenuItem.AboutQtRole The item handles the "About Qt" menu item.
- \value MenuItem.AboutRole The item should be placed where the "About" menu item is in the application menu. The text of
- the menu item will be set to "About <application name>". The application name is fetched from the
- \c{Info.plist} file in the application's bundle (See \l{Qt for macOS - Deployment}).
- \value MenuItem.PreferencesRole The item should be placed where the "Preferences..." menu item is in the application menu.
- \value MenuItem.QuitRole The item should be placed where the Quit menu item is in the application menu.
-
- Specifying the role only has effect on items that are in the immediate
- menus of a menubar, not in the submenus of those menus. For example, if
- you have a "File" menu in your menubar and the "File" menu has a submenu,
- specifying a role for the items in that submenu has no effect. They will
- never be moved to the application menu.
-*/
-QPlatformMenuItem::MenuRole QQuickPlatformMenuItem::role() const
-{
- return m_role;
-}
-
-void QQuickPlatformMenuItem::setRole(QPlatformMenuItem::MenuRole role)
-{
- if (m_role == role)
- return;
-
- m_role = role;
- sync();
- emit roleChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::MenuItem::text
-
- This property holds the menu item's text.
-*/
-QString QQuickPlatformMenuItem::text() const
-{
- return m_text;
-}
-
-void QQuickPlatformMenuItem::setText(const QString &text)
-{
- if (m_text == text)
- return;
-
- m_text = text;
- sync();
- emit textChanged();
-}
-
-/*!
- \qmlproperty url Qt.labs.platform::MenuItem::iconSource
- \deprecated Use icon.source instead
-*/
-QUrl QQuickPlatformMenuItem::iconSource() const
-{
- return icon().source();
-}
-
-void QQuickPlatformMenuItem::setIconSource(const QUrl& source)
-{
- QQuickPlatformIcon newIcon = icon();
- if (source == newIcon.source())
- return;
-
- newIcon.setSource(source);
- iconLoader()->setIcon(newIcon);
- emit iconSourceChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::MenuItem::iconName
- \deprecated Use icon.name instead
-*/
-QString QQuickPlatformMenuItem::iconName() const
-{
- return icon().name();
-}
-
-void QQuickPlatformMenuItem::setIconName(const QString& name)
-{
- QQuickPlatformIcon newIcon = icon();
- if (name == newIcon.name())
- return;
-
- newIcon.setName(name);
- iconLoader()->setIcon(newIcon);
- emit iconNameChanged();
-}
-
-/*!
- \qmlproperty keysequence Qt.labs.platform::MenuItem::shortcut
-
- This property holds the menu item's shortcut.
-
- The shortcut key sequence can be set to one of the
- \l{QKeySequence::StandardKey}{standard keyboard shortcuts}, or it can be
- specified by a string containing a sequence of up to four key presses
- that are needed to \l{triggered}{trigger} the shortcut.
-
- The default value is an empty key sequence.
-
- \code
- MenuItem {
- shortcut: "Ctrl+E,Ctrl+W"
- onTriggered: edit.wrapMode = TextEdit.Wrap
- }
- \endcode
-*/
-QVariant QQuickPlatformMenuItem::shortcut() const
-{
- return m_shortcut;
-}
-
-void QQuickPlatformMenuItem::setShortcut(const QVariant& shortcut)
-{
- if (m_shortcut == shortcut)
- return;
-
- m_shortcut = shortcut;
- sync();
- emit shortcutChanged();
-}
-
-/*!
- \qmlproperty font Qt.labs.platform::MenuItem::font
-
- This property holds the menu item's font.
-
- \sa text
-*/
-QFont QQuickPlatformMenuItem::font() const
-{
- return m_font;
-}
-
-void QQuickPlatformMenuItem::setFont(const QFont& font)
-{
- if (m_font == font)
- return;
-
- m_font = font;
- sync();
- emit fontChanged();
-}
-
-/*!
- \since Qt.labs.platform 1.1 (Qt 5.12)
- \qmlpropertygroup Qt.labs.platform::MenuItem::icon
- \qmlproperty url Qt.labs.platform::MenuItem::icon.source
- \qmlproperty string Qt.labs.platform::MenuItem::icon.name
- \qmlproperty bool Qt.labs.platform::MenuItem::icon.mask
-
- This property holds the menu item's icon.
-
- \code
- MenuItem {
- icon.mask: true
- icon.name: "edit-undo"
- icon.source: "qrc:/images/undo.png"
- }
- \endcode
-
- \sa QIcon::fromTheme()
-*/
-QQuickPlatformIcon QQuickPlatformMenuItem::icon() const
-{
- if (!m_iconLoader)
- return QQuickPlatformIcon();
-
- return m_iconLoader->icon();
-}
-
-void QQuickPlatformMenuItem::setIcon(const QQuickPlatformIcon &icon)
-{
- if (iconLoader()->icon() == icon)
- return;
-
- iconLoader()->setIcon(icon);
- emit iconChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::MenuItem::toggle()
-
- Toggles the \l checked state to its opposite state.
-*/
-void QQuickPlatformMenuItem::toggle()
-{
- if (m_checkable)
- setChecked(!m_checked);
-}
-
-void QQuickPlatformMenuItem::classBegin()
-{
-}
-
-void QQuickPlatformMenuItem::componentComplete()
-{
- if (m_handle && m_iconLoader)
- m_iconLoader->setEnabled(true);
- m_complete = true;
- sync();
-}
-
-QQuickPlatformIconLoader *QQuickPlatformMenuItem::iconLoader() const
-{
- if (!m_iconLoader) {
- QQuickPlatformMenuItem *that = const_cast<QQuickPlatformMenuItem *>(this);
- static int slot = staticMetaObject.indexOfSlot("updateIcon()");
- m_iconLoader = new QQuickPlatformIconLoader(slot, that);
- m_iconLoader->setEnabled(m_complete);
- }
- return m_iconLoader;
-}
-
-void QQuickPlatformMenuItem::activate()
-{
- toggle();
- emit triggered();
-}
-
-void QQuickPlatformMenuItem::updateIcon()
-{
- if (!m_handle || !m_iconLoader)
- return;
-
- m_handle->setIcon(m_iconLoader->toQIcon());
- sync();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformmenuitem_p.h b/src/imports/platform/qquickplatformmenuitem_p.h
deleted file mode 100644
index f1143e64..00000000
--- a/src/imports/platform/qquickplatformmenuitem_p.h
+++ /dev/null
@@ -1,199 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMMENUITEM_P_H
-#define QQUICKPLATFORMMENUITEM_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtCore/qurl.h>
-#include <QtGui/qfont.h>
-#include <QtGui/qpa/qplatformmenu.h>
-#include <QtQml/qqmlparserstatus.h>
-#include <QtQml/qqml.h>
-
-#include "qquickplatformicon_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QPlatformMenuItem;
-class QQuickPlatformMenu;
-class QQuickPlatformIconLoader;
-class QQuickPlatformMenuItemGroup;
-
-class QQuickPlatformMenuItem : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_INTERFACES(QQmlParserStatus)
- Q_PROPERTY(QQuickPlatformMenu *menu READ menu NOTIFY menuChanged FINAL)
- Q_PROPERTY(QQuickPlatformMenu *subMenu READ subMenu NOTIFY subMenuChanged FINAL)
- Q_PROPERTY(QQuickPlatformMenuItemGroup *group READ group WRITE setGroup NOTIFY groupChanged FINAL)
- Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged FINAL)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL)
- Q_PROPERTY(bool separator READ isSeparator WRITE setSeparator NOTIFY separatorChanged FINAL)
- Q_PROPERTY(bool checkable READ isCheckable WRITE setCheckable NOTIFY checkableChanged FINAL)
- Q_PROPERTY(bool checked READ isChecked WRITE setChecked NOTIFY checkedChanged FINAL)
- Q_PROPERTY(QPlatformMenuItem::MenuRole role READ role WRITE setRole NOTIFY roleChanged FINAL)
- Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
- Q_PROPERTY(QUrl iconSource READ iconSource WRITE setIconSource NOTIFY iconSourceChanged FINAL)
- Q_PROPERTY(QString iconName READ iconName WRITE setIconName NOTIFY iconNameChanged FINAL)
- Q_PROPERTY(QVariant shortcut READ shortcut WRITE setShortcut NOTIFY shortcutChanged FINAL)
- Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged FINAL)
- Q_PROPERTY(QQuickPlatformIcon icon READ icon WRITE setIcon NOTIFY iconChanged FINAL REVISION 1)
- Q_ENUMS(QPlatformMenuItem::MenuRole)
-
-public:
- explicit QQuickPlatformMenuItem(QObject *parent = nullptr);
- ~QQuickPlatformMenuItem();
-
- QPlatformMenuItem *handle() const;
- QPlatformMenuItem *create();
- void sync();
-
- QQuickPlatformMenu *menu() const;
- void setMenu(QQuickPlatformMenu* menu);
-
- QQuickPlatformMenu *subMenu() const;
- void setSubMenu(QQuickPlatformMenu *menu);
-
- QQuickPlatformMenuItemGroup *group() const;
- void setGroup(QQuickPlatformMenuItemGroup *group);
-
- bool isEnabled() const;
- void setEnabled(bool enabled);
-
- bool isVisible() const;
- void setVisible(bool visible);
-
- bool isSeparator() const;
- void setSeparator(bool separator);
-
- bool isCheckable() const;
- void setCheckable(bool checkable);
-
- bool isChecked() const;
- void setChecked(bool checked);
-
- QPlatformMenuItem::MenuRole role() const;
- void setRole(QPlatformMenuItem::MenuRole role);
-
- QString text() const;
- void setText(const QString &text);
-
- QUrl iconSource() const;
- void setIconSource(const QUrl &source);
-
- QString iconName() const;
- void setIconName(const QString &name);
-
- QVariant shortcut() const;
- void setShortcut(const QVariant& shortcut);
-
- QFont font() const;
- void setFont(const QFont &font);
-
- QQuickPlatformIcon icon() const;
- void setIcon(const QQuickPlatformIcon &icon);
-
-public Q_SLOTS:
- void toggle();
-
-Q_SIGNALS:
- void triggered();
- void hovered();
-
- void menuChanged();
- void subMenuChanged();
- void groupChanged();
- void enabledChanged();
- void visibleChanged();
- void separatorChanged();
- void checkableChanged();
- void checkedChanged();
- void roleChanged();
- void textChanged();
- void iconSourceChanged();
- void iconNameChanged();
- void shortcutChanged();
- void fontChanged();
- Q_REVISION(1) void iconChanged();
-
-protected:
- void classBegin() override;
- void componentComplete() override;
-
- QQuickPlatformIconLoader *iconLoader() const;
-
-private Q_SLOTS:
- void activate();
- void updateIcon();
-
-private:
- bool m_complete;
- bool m_enabled;
- bool m_visible;
- bool m_separator;
- bool m_checkable;
- bool m_checked;
- QPlatformMenuItem::MenuRole m_role;
- QString m_text;
- QVariant m_shortcut;
- QFont m_font;
- QQuickPlatformMenu *m_menu;
- QQuickPlatformMenu *m_subMenu;
- QQuickPlatformMenuItemGroup *m_group;
- mutable QQuickPlatformIconLoader *m_iconLoader;
- QPlatformMenuItem *m_handle;
-
- friend class QQuickPlatformMenu;
- friend class QQuickPlatformMenuItemGroup;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformMenuItem)
-
-#endif // QQUICKPLATFORMMENUITEM_P_H
diff --git a/src/imports/platform/qquickplatformmenuitemgroup.cpp b/src/imports/platform/qquickplatformmenuitemgroup.cpp
deleted file mode 100644
index f07d0a1b..00000000
--- a/src/imports/platform/qquickplatformmenuitemgroup.cpp
+++ /dev/null
@@ -1,390 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Templates 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 "qquickplatformmenuitemgroup_p.h"
-#include "qquickplatformmenuitem_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MenuItemGroup
- \inherits QtObject
- \instantiates QQuickPlatformMenuItemGroup
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A group for managing native menu items.
-
- The MenuItemGroup groups native menu items together.
-
- MenuItemGroup is exclusive by default. In an exclusive menu item
- group, only one item can be checked at any time; checking another
- item automatically unchecks the previously checked one. MenuItemGroup
- can be configured as non-exclusive, which is particularly useful for
- showing, hiding, enabling and disabling items together as a group.
-
- The most straight-forward way to use MenuItemGroup is to assign
- a list of items.
-
- \code
- Menu {
- id: verticalMenu
- title: qsTr("Vertical")
-
- MenuItemGroup {
- id: verticalGroup
- items: verticalMenu.items
- }
-
- MenuItem { text: qsTr("Top"); checkable: true }
- MenuItem { text: qsTr("Center"); checked: true }
- MenuItem { text: qsTr("Bottom"); checkable: true }
- }
- \endcode
-
- The same menu may sometimes contain items that should not be included
- in the same exclusive group. Such cases are best handled using the
- \l {MenuItem::group}{group} property.
-
- \code
- Menu {
- id: horizontalMenu
- title: qsTr("Horizontal")
-
- MenuItemGroup {
- id: horizontalGroup
- }
-
- MenuItem {
- checked: true
- text: qsTr("Left")
- group: horizontalGroup
- }
- MenuItem {
- checkable: true
- text: qsTr("Center")
- group: horizontalGroup
- }
- MenuItem {
- text: qsTr("Right")
- checkable: true
- group: horizontalGroup
- }
-
- MenuItem { separator: true }
- MenuItem { text: qsTr("Justify"); checkable: true }
- MenuItem { text: qsTr("Absolute"); checkable: true }
- }
- \endcode
-
- More advanced use cases can be handled using the addItem() and
- removeItem() methods.
-
- \labs
-
- \sa MenuItem
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MenuItemGroup::triggered(MenuItem item)
-
- This signal is emitted when an \a item in the group is triggered by the user.
-
- \sa MenuItem::triggered()
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MenuItemGroup::hovered(MenuItem item)
-
- This signal is emitted when an \a item in the group is hovered by the user.
-
- \sa MenuItem::hovered()
-*/
-
-QQuickPlatformMenuItemGroup::QQuickPlatformMenuItemGroup(QObject *parent)
- : QObject(parent), m_enabled(true), m_visible(true), m_exclusive(true), m_checkedItem(nullptr)
-{
-}
-
-QQuickPlatformMenuItemGroup::~QQuickPlatformMenuItemGroup()
-{
- clear();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::MenuItemGroup::enabled
-
- This property holds whether the group is enabled. The default value is \c true.
-
- The enabled state of the group affects the enabled state of each item in the group,
- except that explicitly disabled items are not enabled even if the group is enabled.
-*/
-bool QQuickPlatformMenuItemGroup::isEnabled() const
-{
- return m_enabled;
-}
-
-void QQuickPlatformMenuItemGroup::setEnabled(bool enabled)
-{
- if (m_enabled == enabled)
- return;
-
- m_enabled = enabled;
- emit enabledChanged();
-
- for (QQuickPlatformMenuItem *item : qAsConst(m_items)) {
- if (item->m_enabled) {
- item->sync();
- emit item->enabledChanged();
- }
- }
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::MenuItemGroup::visible
-
- This property holds whether the group is visible. The default value is \c true.
-
- The visibility of the group affects the visibility of each item in the group,
- except that explicitly hidden items are not visible even if the group is visible.
-*/
-bool QQuickPlatformMenuItemGroup::isVisible() const
-{
- return m_visible;
-}
-
-void QQuickPlatformMenuItemGroup::setVisible(bool visible)
-{
- if (m_visible == visible)
- return;
-
- m_visible = visible;
- emit visibleChanged();
-
- for (QQuickPlatformMenuItem *item : qAsConst(m_items)) {
- if (item->m_visible) {
- item->sync();
- emit item->visibleChanged();
- }
- }
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::MenuItemGroup::exclusive
-
- This property holds whether the group is exclusive. The default value is \c true.
-
- In an exclusive menu item group, only one item can be checked at any time;
- checking another item automatically unchecks the previously checked one.
-*/
-bool QQuickPlatformMenuItemGroup::isExclusive() const
-{
- return m_exclusive;
-}
-
-void QQuickPlatformMenuItemGroup::setExclusive(bool exclusive)
-{
- if (m_exclusive == exclusive)
- return;
-
- m_exclusive = exclusive;
- emit exclusiveChanged();
-
- for (QQuickPlatformMenuItem *item : qAsConst(m_items))
- item->sync();
-}
-
-/*!
- \qmlproperty MenuItem Qt.labs.platform::MenuItemGroup::checkedItem
-
- This property holds the currently checked item in the group, or \c null if no item is checked.
-*/
-QQuickPlatformMenuItem *QQuickPlatformMenuItemGroup::checkedItem() const
-{
- return m_checkedItem;
-}
-
-void QQuickPlatformMenuItemGroup::setCheckedItem(QQuickPlatformMenuItem *item)
-{
- if (m_checkedItem == item)
- return;
-
- if (m_checkedItem)
- m_checkedItem->setChecked(false);
-
- m_checkedItem = item;
- emit checkedItemChanged();
-
- if (item)
- item->setChecked(true);
-}
-
-/*!
- \qmlproperty list<MenuItem> Qt.labs.platform::MenuItemGroup::items
-
- This property holds the list of items in the group.
-*/
-QQmlListProperty<QQuickPlatformMenuItem> QQuickPlatformMenuItemGroup::items()
-{
- return QQmlListProperty<QQuickPlatformMenuItem>(this, nullptr, items_append, items_count, items_at, items_clear);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::MenuItemGroup::addItem(MenuItem item)
-
- Adds an \a item to the group.
-*/
-void QQuickPlatformMenuItemGroup::addItem(QQuickPlatformMenuItem *item)
-{
- if (!item || m_items.contains(item))
- return;
-
- m_items.append(item);
- item->setGroup(this);
-
- connect(item, &QQuickPlatformMenuItem::checkedChanged, this, &QQuickPlatformMenuItemGroup::updateCurrent);
- connect(item, &QQuickPlatformMenuItem::triggered, this, &QQuickPlatformMenuItemGroup::activateItem);
- connect(item, &QQuickPlatformMenuItem::hovered, this, &QQuickPlatformMenuItemGroup::hoverItem);
-
- if (m_exclusive && item->isChecked())
- setCheckedItem(item);
-
- emit itemsChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::MenuItemGroup::removeItem(MenuItem item)
-
- Removes an \a item from the group.
-*/
-void QQuickPlatformMenuItemGroup::removeItem(QQuickPlatformMenuItem *item)
-{
- if (!item || !m_items.contains(item))
- return;
-
- m_items.removeOne(item);
- item->setGroup(nullptr);
-
- disconnect(item, &QQuickPlatformMenuItem::checkedChanged, this, &QQuickPlatformMenuItemGroup::updateCurrent);
- disconnect(item, &QQuickPlatformMenuItem::triggered, this, &QQuickPlatformMenuItemGroup::activateItem);
- disconnect(item, &QQuickPlatformMenuItem::hovered, this, &QQuickPlatformMenuItemGroup::hoverItem);
-
- if (m_checkedItem == item)
- setCheckedItem(nullptr);
-
- emit itemsChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::MenuItemGroup::clear()
-
- Removes all items from the group.
-*/
-void QQuickPlatformMenuItemGroup::clear()
-{
- if (m_items.isEmpty())
- return;
-
- for (QQuickPlatformMenuItem *item : qAsConst(m_items)) {
- item->setGroup(nullptr);
- disconnect(item, &QQuickPlatformMenuItem::checkedChanged, this, &QQuickPlatformMenuItemGroup::updateCurrent);
- disconnect(item, &QQuickPlatformMenuItem::triggered, this, &QQuickPlatformMenuItemGroup::activateItem);
- disconnect(item, &QQuickPlatformMenuItem::hovered, this, &QQuickPlatformMenuItemGroup::hoverItem);
- }
-
- setCheckedItem(nullptr);
-
- m_items.clear();
- emit itemsChanged();
-}
-
-QQuickPlatformMenuItem *QQuickPlatformMenuItemGroup::findCurrent() const
-{
- for (QQuickPlatformMenuItem *item : m_items) {
- if (item->isChecked())
- return item;
- }
- return nullptr;
-}
-
-void QQuickPlatformMenuItemGroup::updateCurrent()
-{
- if (!m_exclusive)
- return;
-
- QQuickPlatformMenuItem *item = qobject_cast<QQuickPlatformMenuItem*>(sender());
- if (item && item->isChecked())
- setCheckedItem(item);
-}
-
-void QQuickPlatformMenuItemGroup::activateItem()
-{
- QQuickPlatformMenuItem *item = qobject_cast<QQuickPlatformMenuItem*>(sender());
- if (item)
- emit triggered(item);
-}
-
-void QQuickPlatformMenuItemGroup::hoverItem()
-{
- QQuickPlatformMenuItem *item = qobject_cast<QQuickPlatformMenuItem*>(sender());
- if (item)
- emit hovered(item);
-}
-
-void QQuickPlatformMenuItemGroup::items_append(QQmlListProperty<QQuickPlatformMenuItem> *prop, QQuickPlatformMenuItem *item)
-{
- QQuickPlatformMenuItemGroup *group = static_cast<QQuickPlatformMenuItemGroup *>(prop->object);
- group->addItem(item);
-}
-
-int QQuickPlatformMenuItemGroup::items_count(QQmlListProperty<QQuickPlatformMenuItem> *prop)
-{
- QQuickPlatformMenuItemGroup *group = static_cast<QQuickPlatformMenuItemGroup *>(prop->object);
- return group->m_items.count();
-}
-
-QQuickPlatformMenuItem *QQuickPlatformMenuItemGroup::items_at(QQmlListProperty<QQuickPlatformMenuItem> *prop, int index)
-{
- QQuickPlatformMenuItemGroup *group = static_cast<QQuickPlatformMenuItemGroup *>(prop->object);
- return group->m_items.value(index);
-}
-
-void QQuickPlatformMenuItemGroup::items_clear(QQmlListProperty<QQuickPlatformMenuItem> *prop)
-{
- QQuickPlatformMenuItemGroup *group = static_cast<QQuickPlatformMenuItemGroup *>(prop->object);
- group->clear();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformmenuitemgroup_p.h b/src/imports/platform/qquickplatformmenuitemgroup_p.h
deleted file mode 100644
index 8b3531d9..00000000
--- a/src/imports/platform/qquickplatformmenuitemgroup_p.h
+++ /dev/null
@@ -1,123 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Templates 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMMENUITEMGROUP_P_H
-#define QQUICKPLATFORMMENUITEMGROUP_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtCore/qvector.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPlatformMenuItem;
-class QQuickPlatformMenuItemGroupPrivate;
-
-class QQuickPlatformMenuItemGroup : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged FINAL)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL)
- Q_PROPERTY(bool exclusive READ isExclusive WRITE setExclusive NOTIFY exclusiveChanged FINAL)
- Q_PROPERTY(QQuickPlatformMenuItem *checkedItem READ checkedItem WRITE setCheckedItem NOTIFY checkedItemChanged FINAL)
- Q_PROPERTY(QQmlListProperty<QQuickPlatformMenuItem> items READ items NOTIFY itemsChanged FINAL)
-
-public:
- explicit QQuickPlatformMenuItemGroup(QObject *parent = nullptr);
- ~QQuickPlatformMenuItemGroup();
-
- bool isEnabled() const;
- void setEnabled(bool enabled);
-
- bool isVisible() const;
- void setVisible(bool visible);
-
- bool isExclusive() const;
- void setExclusive(bool exclusive);
-
- QQuickPlatformMenuItem *checkedItem() const;
- void setCheckedItem(QQuickPlatformMenuItem *item);
-
- QQmlListProperty<QQuickPlatformMenuItem> items();
-
- Q_INVOKABLE void addItem(QQuickPlatformMenuItem *item);
- Q_INVOKABLE void removeItem(QQuickPlatformMenuItem *item);
- Q_INVOKABLE void clear();
-
-Q_SIGNALS:
- void triggered(QQuickPlatformMenuItem *item);
- void hovered(QQuickPlatformMenuItem *item);
-
- void enabledChanged();
- void visibleChanged();
- void exclusiveChanged();
- void checkedItemChanged();
- void itemsChanged();
-
-private:
- QQuickPlatformMenuItem *findCurrent() const;
- void updateCurrent();
- void activateItem();
- void hoverItem();
-
- static void items_append(QQmlListProperty<QQuickPlatformMenuItem> *prop, QQuickPlatformMenuItem *obj);
- static int items_count(QQmlListProperty<QQuickPlatformMenuItem> *prop);
- static QQuickPlatformMenuItem *items_at(QQmlListProperty<QQuickPlatformMenuItem> *prop, int index);
- static void items_clear(QQmlListProperty<QQuickPlatformMenuItem> *prop);
-
- bool m_enabled;
- bool m_visible;
- bool m_exclusive;
- QQuickPlatformMenuItem *m_checkedItem;
- QVector<QQuickPlatformMenuItem*> m_items;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformMenuItemGroup)
-
-#endif // QQUICKPLATFORMMENUITEMGROUP_P_H
diff --git a/src/imports/platform/qquickplatformmenuseparator.cpp b/src/imports/platform/qquickplatformmenuseparator.cpp
deleted file mode 100644
index 34767ff6..00000000
--- a/src/imports/platform/qquickplatformmenuseparator.cpp
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformmenuseparator_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MenuSeparator
- \inherits MenuItem
- \instantiates QQuickPlatformMenuSeparator
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native menu separator.
-
- The MenuSeparator type is provided for convenience. It is a MenuItem
- that has the \l {MenuItem::}{separator} property set to \c true by default.
-
- \image qtlabsplatform-menubar.png
-
- \labs
-
- \sa Menu, MenuItem
-*/
-
-QQuickPlatformMenuSeparator::QQuickPlatformMenuSeparator(QObject *parent)
- : QQuickPlatformMenuItem(parent)
-{
- setSeparator(true);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformmenuseparator_p.h b/src/imports/platform/qquickplatformmenuseparator_p.h
deleted file mode 100644
index 9fe973c5..00000000
--- a/src/imports/platform/qquickplatformmenuseparator_p.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMMENUSEPARATOR_P_H
-#define QQUICKPLATFORMMENUSEPARATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include "qquickplatformmenuitem_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPlatformMenuSeparator : public QQuickPlatformMenuItem
-{
- Q_OBJECT
-
-public:
- explicit QQuickPlatformMenuSeparator(QObject *parent = nullptr);
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformMenuSeparator)
-
-#endif // QQUICKPLATFORMMENUSEPARATOR_P_H
diff --git a/src/imports/platform/qquickplatformmessagedialog.cpp b/src/imports/platform/qquickplatformmessagedialog.cpp
deleted file mode 100644
index ffc4b296..00000000
--- a/src/imports/platform/qquickplatformmessagedialog.cpp
+++ /dev/null
@@ -1,383 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformmessagedialog_p.h"
-
-#include <QtQml/qqmlinfo.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MessageDialog
- \inherits Dialog
- \instantiates QQuickPlatformMessageDialog
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A native message dialog.
-
- The MessageDialog type provides a QML API for native platform message dialogs.
-
- \image qtlabsplatform-messagedialog-android.png
-
- A message dialog is used to inform the user, or ask the user a question.
- A message dialog displays a primary \l text to alert the user to a situation,
- an \l {informativeText}{informative text} to further explain the alert or to
- ask the user a question, and an optional \l {detailedText}{detailed text} to
- provide even more data if the user requests it. A message box can also display
- a configurable set of \l buttons for accepting a user response.
-
- To show a message dialog, construct an instance of MessageDialog, set the
- desired properties, and call \l {Dialog::}{open()}.
-
- \code
- MessageDialog {
- buttons: MessageDialog.Ok
- text: "The document has been modified."
- }
- \endcode
-
- The user must click the \uicontrol OK button to dismiss the message dialog.
- A modal message dialog blocks the rest of the GUI until the message is
- dismissed.
-
- A more elaborate approach than just alerting the user to an event is to
- also ask the user what to do about it. Store the question in the
- \l {informativeText}{informative text} property, and specify the \l buttons
- property to the set of buttons you want as the set of user responses. The
- buttons are specified by combining values using the bitwise OR operator. The
- display order for the buttons is platform dependent.
-
- \code
- MessageDialog {
- text: "The document has been modified."
- informativeText: "Do you want to save your changes?"
- buttons: MessageDialog.Ok | MessageDialog.Cancel
-
- onAccepted: document.save()
- }
- \endcode
-
- \image qtlabsplatform-messagedialog-informative-android.png
-
- The \l clicked() signal passes the information of which button was clicked.
-
- A native platform message dialog is currently available on the following platforms:
-
- \list
- \li iOS
- \li Android
- \li WinRT
- \endlist
-
- \input includes/widgets.qdocinc 1
-
- \labs
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::clicked(button)
-
- This signal is emitted when a dialog \a button is clicked.
-
- \sa buttons
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::okClicked()
-
- This signal is emitted when \uicontrol Ok is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::saveClicked()
-
- This signal is emitted when \uicontrol Save is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::saveAllClicked()
-
- This signal is emitted when \uicontrol {Save All} is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::openClicked()
-
- This signal is emitted when \uicontrol Open is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::yesClicked()
-
- This signal is emitted when \uicontrol Yes is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::yesToAllClicked()
-
- This signal is emitted when \uicontrol {Yes To All} is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::noClicked()
-
- This signal is emitted when \uicontrol No is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::noToAllClicked()
-
- This signal is emitted when \uicontrol {No To All} is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::abortClicked()
-
- This signal is emitted when \uicontrol Abort is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::retryClicked()
-
- This signal is emitted when \uicontrol Retry is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::ignoreClicked()
-
- This signal is emitted when \uicontrol Ignore is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::closeClicked()
-
- This signal is emitted when \uicontrol Close is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::cancelClicked()
-
- This signal is emitted when \uicontrol Cancel is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::discardClicked()
-
- This signal is emitted when \uicontrol Discard is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::helpClicked()
-
- This signal is emitted when \uicontrol Help is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::applyClicked()
-
- This signal is emitted when \uicontrol Apply is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::resetClicked()
-
- This signal is emitted when \uicontrol Reset is clicked.
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::MessageDialog::restoreDefaultsClicked()
-
- This signal is emitted when \uicontrol {Restore Defaults} is clicked.
-*/
-
-QQuickPlatformMessageDialog::QQuickPlatformMessageDialog(QObject *parent)
- : QQuickPlatformDialog(QPlatformTheme::MessageDialog, parent),
- m_options(QMessageDialogOptions::create())
-{
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::MessageDialog::text
-
- This property holds the text to be displayed on the message dialog.
-
- \sa informativeText, detailedText
-*/
-QString QQuickPlatformMessageDialog::text() const
-{
- return m_options->text();
-}
-
-void QQuickPlatformMessageDialog::setText(const QString &text)
-{
- if (m_options->text() == text)
- return;
-
- m_options->setText(text);
- emit textChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::MessageDialog::informativeText
-
- This property holds the informative text that provides a fuller description for the message.
-
- Informative text can be used to expand upon the \l text to give more information to the user.
-
- \sa text, detailedText
-*/
-QString QQuickPlatformMessageDialog::informativeText() const
-{
- return m_options->informativeText();
-}
-
-void QQuickPlatformMessageDialog::setInformativeText(const QString &text)
-{
- if (m_options->informativeText() == text)
- return;
-
- m_options->setInformativeText(text);
- emit informativeTextChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::MessageDialog::detailedText
-
- This property holds the text to be displayed in the details area.
-
- \sa text, informativeText
-*/
-QString QQuickPlatformMessageDialog::detailedText() const
-{
- return m_options->detailedText();
-}
-
-void QQuickPlatformMessageDialog::setDetailedText(const QString &text)
-{
- if (m_options->detailedText() == text)
- return;
-
- m_options->setDetailedText(text);
- emit detailedTextChanged();
-}
-
-/*!
- \qmlproperty flags Qt.labs.platform::MessageDialog::buttons
-
- This property holds a combination of buttons that are used by the message dialog.
- The default value is \c MessageDialog.NoButton.
-
- Possible flags:
- \value MessageDialog.Ok An "OK" button defined with the \c AcceptRole.
- \value MessageDialog.Open An "Open" button defined with the \c AcceptRole.
- \value MessageDialog.Save A "Save" button defined with the \c AcceptRole.
- \value MessageDialog.Cancel A "Cancel" button defined with the \c RejectRole.
- \value MessageDialog.Close A "Close" button defined with the \c RejectRole.
- \value MessageDialog.Discard A "Discard" or "Don't Save" button, depending on the platform, defined with the \c DestructiveRole.
- \value MessageDialog.Apply An "Apply" button defined with the \c ApplyRole.
- \value MessageDialog.Reset A "Reset" button defined with the \c ResetRole.
- \value MessageDialog.RestoreDefaults A "Restore Defaults" button defined with the \c ResetRole.
- \value MessageDialog.Help A "Help" button defined with the \c HelpRole.
- \value MessageDialog.SaveAll A "Save All" button defined with the \c AcceptRole.
- \value MessageDialog.Yes A "Yes" button defined with the \c YesRole.
- \value MessageDialog.YesToAll A "Yes to All" button defined with the \c YesRole.
- \value MessageDialog.No A "No" button defined with the \c NoRole.
- \value MessageDialog.NoToAll A "No to All" button defined with the \c NoRole.
- \value MessageDialog.Abort An "Abort" button defined with the \c RejectRole.
- \value MessageDialog.Retry A "Retry" button defined with the \c AcceptRole.
- \value MessageDialog.Ignore An "Ignore" button defined with the \c AcceptRole.
- \value MessageDialog.NoButton The dialog has no buttons.
-
- \sa clicked()
-*/
-QPlatformDialogHelper::StandardButtons QQuickPlatformMessageDialog::buttons() const
-{
- return m_options->standardButtons();
-}
-
-void QQuickPlatformMessageDialog::setButtons(QPlatformDialogHelper::StandardButtons buttons)
-{
- if (m_options->standardButtons() == buttons)
- return;
-
- m_options->setStandardButtons(buttons);
- emit buttonsChanged();
-}
-
-void QQuickPlatformMessageDialog::onCreate(QPlatformDialogHelper *dialog)
-{
- if (QPlatformMessageDialogHelper *messageDialog = qobject_cast<QPlatformMessageDialogHelper *>(dialog)) {
- connect(messageDialog, &QPlatformMessageDialogHelper::clicked, this, &QQuickPlatformMessageDialog::handleClick);
- messageDialog->setOptions(m_options);
- }
-}
-
-void QQuickPlatformMessageDialog::onShow(QPlatformDialogHelper *dialog)
-{
- m_options->setWindowTitle(title());
- if (QPlatformMessageDialogHelper *messageDialog = qobject_cast<QPlatformMessageDialogHelper *>(dialog))
- messageDialog->setOptions(m_options);
-}
-
-void QQuickPlatformMessageDialog::handleClick(QPlatformDialogHelper::StandardButton button)
-{
- done(button);
- emit clicked(button);
-
- switch (button) {
- case QPlatformDialogHelper::Ok: emit okClicked(); break;
- case QPlatformDialogHelper::Save: emit saveClicked(); break;
- case QPlatformDialogHelper::SaveAll: emit saveAllClicked(); break;
- case QPlatformDialogHelper::Open: emit openClicked(); break;
- case QPlatformDialogHelper::Yes: emit yesClicked(); break;
- case QPlatformDialogHelper::YesToAll: emit yesToAllClicked(); break;
- case QPlatformDialogHelper::No: emit noClicked(); break;
- case QPlatformDialogHelper::NoToAll: emit noToAllClicked(); break;
- case QPlatformDialogHelper::Abort: emit abortClicked(); break;
- case QPlatformDialogHelper::Retry: emit retryClicked(); break;
- case QPlatformDialogHelper::Ignore: emit ignoreClicked(); break;
- case QPlatformDialogHelper::Close: emit closeClicked(); break;
- case QPlatformDialogHelper::Cancel: emit cancelClicked(); break;
- case QPlatformDialogHelper::Discard: emit discardClicked(); break;
- case QPlatformDialogHelper::Help: emit helpClicked(); break;
- case QPlatformDialogHelper::Apply: emit applyClicked(); break;
- case QPlatformDialogHelper::Reset: emit resetClicked(); break;
- case QPlatformDialogHelper::RestoreDefaults: emit restoreDefaultsClicked(); break;
- default: qmlWarning(this) << "unknown button" << int(button); break;
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformmessagedialog_p.h b/src/imports/platform/qquickplatformmessagedialog_p.h
deleted file mode 100644
index 9434a927..00000000
--- a/src/imports/platform/qquickplatformmessagedialog_p.h
+++ /dev/null
@@ -1,121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMMESSAGEDIALOG_P_H
-#define QQUICKPLATFORMMESSAGEDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include "qquickplatformdialog_p.h"
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPlatformMessageDialog : public QQuickPlatformDialog
-{
- Q_OBJECT
- Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
- Q_PROPERTY(QString informativeText READ informativeText WRITE setInformativeText NOTIFY informativeTextChanged FINAL)
- Q_PROPERTY(QString detailedText READ detailedText WRITE setDetailedText NOTIFY detailedTextChanged FINAL)
- Q_PROPERTY(QPlatformDialogHelper::StandardButtons buttons READ buttons WRITE setButtons NOTIFY buttonsChanged FINAL)
- Q_FLAGS(QPlatformDialogHelper::StandardButtons)
-
-public:
- explicit QQuickPlatformMessageDialog(QObject *parent = nullptr);
-
- QString text() const;
- void setText(const QString &text);
-
- QString informativeText() const;
- void setInformativeText(const QString &text);
-
- QString detailedText() const;
- void setDetailedText(const QString &text);
-
- QPlatformDialogHelper::StandardButtons buttons() const;
- void setButtons(QPlatformDialogHelper::StandardButtons buttons);
-
-Q_SIGNALS:
- void textChanged();
- void informativeTextChanged();
- void detailedTextChanged();
- void buttonsChanged();
- void clicked(QPlatformDialogHelper::StandardButton button);
-
- void okClicked();
- void saveClicked();
- void saveAllClicked();
- void openClicked();
- void yesClicked();
- void yesToAllClicked();
- void noClicked();
- void noToAllClicked();
- void abortClicked();
- void retryClicked();
- void ignoreClicked();
- void closeClicked();
- void cancelClicked();
- void discardClicked();
- void helpClicked();
- void applyClicked();
- void resetClicked();
- void restoreDefaultsClicked();
-
-protected:
- void onCreate(QPlatformDialogHelper *dialog) override;
- void onShow(QPlatformDialogHelper *dialog) override;
-
-private Q_SLOTS:
- void handleClick(QPlatformDialogHelper::StandardButton button);
-
-private:
- QSharedPointer<QMessageDialogOptions> m_options;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformMessageDialog)
-
-#endif // QQUICKPLATFORMMESSAGEDIALOG_P_H
diff --git a/src/imports/platform/qquickplatformstandardpaths.cpp b/src/imports/platform/qquickplatformstandardpaths.cpp
deleted file mode 100644
index 4687ba69..00000000
--- a/src/imports/platform/qquickplatformstandardpaths.cpp
+++ /dev/null
@@ -1,159 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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.LGPL3 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-3.0.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 (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "qquickplatformstandardpaths_p.h"
-
-#include <QtQml/qqmlengine.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype StandardPaths
- \inherits QtObject
- \instantiates QQuickPlatformStandardPaths
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief Provides access to the standard system paths.
-
- The StandardPaths singleton type provides methods for querying the standard
- system paths. The standard paths are mostly useful in conjunction with the
- FileDialog and FolderDialog types.
-
- \qml
- FileDialog {
- folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
- }
- \endqml
-
- \labs
-
- \sa FileDialog, FolderDialog, QStandardPaths
-*/
-
-static QList<QUrl> toUrlList(const QStringList &paths)
-{
- QList<QUrl> urls;
- urls.reserve(paths.size());
- for (const QString &path : paths)
- urls += QUrl::fromLocalFile(path);
- return urls;
-}
-
-QQuickPlatformStandardPaths::QQuickPlatformStandardPaths(QObject *parent)
- : QObject(parent)
-{
-}
-
-QObject *QQuickPlatformStandardPaths::create(QQmlEngine *engine, QJSEngine *scriptEngine)
-{
- Q_UNUSED(scriptEngine);
- return new QQuickPlatformStandardPaths(engine);
-}
-
-/*!
- \qmlmethod string Qt.labs.platform::StandardPaths::displayName(StandardLocation type)
-
- \sa QStandardPaths::displayName()
-*/
-QString QQuickPlatformStandardPaths::displayName(QStandardPaths::StandardLocation type)
-{
- return QStandardPaths::displayName(type);
-}
-
-/*!
- \qmlmethod url Qt.labs.platform::StandardPaths::findExecutable(string executableName, list<string> paths)
-
- \sa QStandardPaths::findExecutable()
-*/
-QUrl QQuickPlatformStandardPaths::findExecutable(const QString &executableName, const QStringList &paths)
-{
- return QUrl::fromLocalFile(QStandardPaths::findExecutable(executableName, paths));
-}
-
-/*!
- \qmlmethod url Qt.labs.platform::StandardPaths::locate(StandardLocation type, string fileName, LocateOptions options = LocateFile)
-
- \sa QStandardPaths::locate()
-*/
-QUrl QQuickPlatformStandardPaths::locate(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options)
-{
- return QUrl::fromLocalFile(QStandardPaths::locate(type, fileName, options));
-}
-
-/*!
- \qmlmethod list<url> Qt.labs.platform::StandardPaths::locateAll(StandardLocation type, string fileName, LocateOptions options = LocateFile)
-
- \sa QStandardPaths::locateAll()
-*/
-QList<QUrl> QQuickPlatformStandardPaths::locateAll(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options)
-{
- return toUrlList(QStandardPaths::locateAll(type, fileName, options));
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::StandardPaths::setTestModeEnabled(bool testMode)
-
- \sa QStandardPaths::setTestModeEnabled()
-*/
-void QQuickPlatformStandardPaths::setTestModeEnabled(bool testMode)
-{
- QStandardPaths::setTestModeEnabled(testMode);
-}
-
-/*!
- \qmlmethod list<url> Qt.labs.platform::StandardPaths::standardLocations(StandardLocation type)
-
- \sa QStandardPaths::standardLocations()
-*/
-QList<QUrl> QQuickPlatformStandardPaths::standardLocations(QStandardPaths::StandardLocation type)
-{
- return toUrlList(QStandardPaths::standardLocations(type));
-}
-
-/*!
- \qmlmethod url Qt.labs.platform::StandardPaths::writableLocation(StandardLocation type)
-
- \sa QStandardPaths::writableLocation()
-*/
-QUrl QQuickPlatformStandardPaths::writableLocation(QStandardPaths::StandardLocation type)
-{
- return QUrl::fromLocalFile(QStandardPaths::writableLocation(type));
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformstandardpaths_p.h b/src/imports/platform/qquickplatformstandardpaths_p.h
deleted file mode 100644
index e2f4e11e..00000000
--- a/src/imports/platform/qquickplatformstandardpaths_p.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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.LGPL3 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-3.0.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 (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMSTANDARDPATHS_P_H
-#define QQUICKPLATFORMSTANDARDPATHS_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtCore/qstandardpaths.h>
-#include <QtCore/qurl.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlEngine;
-class QJSEngine;
-
-class QQuickPlatformStandardPaths : public QObject
-{
- Q_OBJECT
- Q_ENUMS(QStandardPaths::StandardLocation QStandardPaths::LocateOptions)
-
-public:
- explicit QQuickPlatformStandardPaths(QObject *parent = nullptr);
-
- static QObject *create(QQmlEngine *engine, QJSEngine *scriptEngine);
-
- Q_INVOKABLE static QString displayName(QStandardPaths::StandardLocation type);
- Q_INVOKABLE static QUrl findExecutable(const QString &executableName, const QStringList &paths = QStringList());
- Q_INVOKABLE static QUrl locate(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
- Q_INVOKABLE static QList<QUrl> locateAll(QStandardPaths::StandardLocation type, const QString &fileName, QStandardPaths::LocateOptions options = QStandardPaths::LocateFile);
- Q_INVOKABLE static void setTestModeEnabled(bool testMode);
- Q_INVOKABLE static QList<QUrl> standardLocations(QStandardPaths::StandardLocation type);
- Q_INVOKABLE static QUrl writableLocation(QStandardPaths::StandardLocation type);
-
-private:
- Q_DISABLE_COPY(QQuickPlatformStandardPaths)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformStandardPaths)
-Q_DECLARE_METATYPE(QStandardPaths::StandardLocation)
-Q_DECLARE_METATYPE(QStandardPaths::LocateOptions)
-
-#endif // QQUICKPLATFORMSTANDARDPATHS_P_H
diff --git a/src/imports/platform/qquickplatformsystemtrayicon.cpp b/src/imports/platform/qquickplatformsystemtrayicon.cpp
deleted file mode 100644
index 202bc3bf..00000000
--- a/src/imports/platform/qquickplatformsystemtrayicon.cpp
+++ /dev/null
@@ -1,484 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qquickplatformsystemtrayicon_p.h"
-#include "qquickplatformmenu_p.h"
-#include "qquickplatformiconloader_p.h"
-
-#include <QtCore/qloggingcategory.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/private/qguiapplication_p.h>
-
-#include "widgets/qwidgetplatform_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype SystemTrayIcon
- \inherits QtObject
- \instantiates QQuickPlatformSystemTrayIcon
- \inqmlmodule Qt.labs.platform
- \since 5.8
- \brief A system tray icon.
-
- The SystemTrayIcon type provides an icon for an application in the system tray.
-
- Many desktop platforms provide a special system tray or notification area,
- where applications can display icons and notification messages.
-
- \image qtlabsplatform-systemtrayicon.png
-
- The following example shows how to create a system tray icon, and how to make
- use of the \l activated() signal:
-
- \code
- SystemTrayIcon {
- visible: true
- icon.source: "qrc:/images/tray-icon.png"
-
- onActivated: {
- window.show()
- window.raise()
- window.requestActivate()
- }
- }
- \endcode
-
- \section2 Tray menu
-
- SystemTrayIcon can have a menu that opens when the icon is activated.
-
- \image qtlabsplatform-systemtrayicon-menu.png
-
- The following example illustrates how to assign a \l Menu to a system tray icon:
-
- \code
- SystemTrayIcon {
- visible: true
- icon.source: "qrc:/images/tray-icon.png"
-
- menu: Menu {
- MenuItem {
- text: qsTr("Quit")
- onTriggered: Qt.quit()
- }
- }
- }
- \endcode
-
- \section2 Notification messages
-
- SystemTrayIcon can display notification messages.
-
- \image qtlabsplatform-systemtrayicon-message.png
-
- The following example presents how to show a notification message using
- \l showMessage(), and how to make use of the \l messageClicked() signal:
-
- \code
- SystemTrayIcon {
- visible: true
- icon.source: "qrc:/images/tray-icon.png"
-
- onMessageClicked: console.log("Message clicked")
- Component.onCompleted: showMessage("Message title", "Something important came up. Click this to know more.")
- }
- \endcode
-
- \section2 Availability
-
- A native system tray icon is currently \l available on the following platforms:
-
- \list
- \li All window managers and independent tray implementations for X11 that implement the
- \l{http://standards.freedesktop.org/systemtray-spec/systemtray-spec-0.2.html}
- {freedesktop.org XEmbed system tray specification}.
- \li All desktop environments that implement the
- \l{http://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/StatusNotifierItem}
- {freedesktop.org D-Bus StatusNotifierItem specification}, including recent versions of KDE and Unity.
- \li All supported versions of macOS. Note that the Growl notification system must be installed
- for showMessage() to display messages on OS X prior to 10.8 (Mountain Lion).
- \endlist
-
- \input includes/widgets.qdocinc 1
-
- \labs
-
- \sa Menu
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::SystemTrayIcon::activated(ActivationReason reason)
-
- This signal is emitted when the system tray icon is activated by the user. The
- \a reason argument specifies how the system tray icon was activated.
-
- Available reasons:
-
- \value SystemTrayIcon.Unknown Unknown reason
- \value SystemTrayIcon.Context The context menu for the system tray icon was requested
- \value SystemTrayIcon.DoubleClick The system tray icon was double clicked
- \value SystemTrayIcon.Trigger The system tray icon was clicked
- \value SystemTrayIcon.MiddleClick The system tray icon was clicked with the middle mouse button
-*/
-
-/*!
- \qmlsignal Qt.labs.platform::SystemTrayIcon::messageClicked()
-
- This signal is emitted when a notification message is clicked by the user.
-
- \sa showMessage()
-*/
-
-Q_DECLARE_LOGGING_CATEGORY(qtLabsPlatformTray)
-
-QQuickPlatformSystemTrayIcon::QQuickPlatformSystemTrayIcon(QObject *parent)
- : QObject(parent),
- m_complete(false),
- m_visible(false),
- m_menu(nullptr),
- m_iconLoader(nullptr),
- m_handle(nullptr)
-{
- m_handle = QGuiApplicationPrivate::platformTheme()->createPlatformSystemTrayIcon();
- if (!m_handle)
- m_handle = QWidgetPlatform::createSystemTrayIcon(this);
- qCDebug(qtLabsPlatformTray) << "SystemTrayIcon ->" << m_handle;
-
- if (m_handle) {
- connect(m_handle, &QPlatformSystemTrayIcon::activated, this, &QQuickPlatformSystemTrayIcon::activated);
- connect(m_handle, &QPlatformSystemTrayIcon::messageClicked, this, &QQuickPlatformSystemTrayIcon::messageClicked);
- }
-}
-
-QQuickPlatformSystemTrayIcon::~QQuickPlatformSystemTrayIcon()
-{
- if (m_menu)
- m_menu->setSystemTrayIcon(nullptr);
- cleanup();
- delete m_iconLoader;
- m_iconLoader = nullptr;
- delete m_handle;
- m_handle = nullptr;
-}
-
-QPlatformSystemTrayIcon *QQuickPlatformSystemTrayIcon::handle() const
-{
- return m_handle;
-}
-
-/*!
- \readonly
- \qmlproperty bool Qt.labs.platform::SystemTrayIcon::available
-
- This property holds whether the system tray is available.
-*/
-bool QQuickPlatformSystemTrayIcon::isAvailable() const
-{
- return m_handle && m_handle->isSystemTrayAvailable();
-}
-
-/*!
- \readonly
- \qmlproperty bool Qt.labs.platform::SystemTrayIcon::supportsMessages
-
- This property holds whether the system tray icon supports notification messages.
-
- \sa showMessage()
-*/
-bool QQuickPlatformSystemTrayIcon::supportsMessages() const
-{
- return m_handle && m_handle->supportsMessages();
-}
-
-/*!
- \qmlproperty bool Qt.labs.platform::SystemTrayIcon::visible
-
- This property holds whether the system tray icon is visible.
-
- The default value is \c false.
-*/
-bool QQuickPlatformSystemTrayIcon::isVisible() const
-{
- return m_visible;
-}
-
-void QQuickPlatformSystemTrayIcon::setVisible(bool visible)
-{
- if (m_visible == visible)
- return;
-
- if (m_handle && m_complete) {
- if (visible)
- init();
- else
- cleanup();
- }
-
- m_visible = visible;
- emit visibleChanged();
-}
-
-/*!
- \qmlproperty url Qt.labs.platform::SystemTrayIcon::iconSource
- \deprecated Use icon.source instead.
- \sa icon
-*/
-QUrl QQuickPlatformSystemTrayIcon::iconSource() const
-{
- return icon().source();
-}
-
-void QQuickPlatformSystemTrayIcon::setIconSource(const QUrl& source)
-{
- QQuickPlatformIcon newIcon = icon();
- if (source == newIcon.source())
- return;
-
- newIcon.setSource(source);
- iconLoader()->setIcon(newIcon);
- emit iconSourceChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::SystemTrayIcon::iconName
- \deprecated Use icon.name instead.
- \sa icon
-*/
-QString QQuickPlatformSystemTrayIcon::iconName() const
-{
- return icon().name();
-}
-
-void QQuickPlatformSystemTrayIcon::setIconName(const QString& name)
-{
- QQuickPlatformIcon newIcon = icon();
- if (name == newIcon.name())
- return;
-
- newIcon.setName(name);
- iconLoader()->setIcon(newIcon);
- emit iconNameChanged();
-}
-
-/*!
- \qmlproperty string Qt.labs.platform::SystemTrayIcon::tooltip
-
- This property holds the tooltip of the system tray icon.
-*/
-QString QQuickPlatformSystemTrayIcon::tooltip() const
-{
- return m_tooltip;
-}
-
-void QQuickPlatformSystemTrayIcon::setTooltip(const QString &tooltip)
-{
- if (m_tooltip == tooltip)
- return;
-
- if (m_handle && m_complete)
- m_handle->updateToolTip(tooltip);
-
- m_tooltip = tooltip;
- emit tooltipChanged();
-}
-
-/*!
- \qmlproperty Menu Qt.labs.platform::SystemTrayIcon::menu
-
- This property holds a menu for the system tray icon.
-*/
-QQuickPlatformMenu *QQuickPlatformSystemTrayIcon::menu() const
-{
- return m_menu;
-}
-
-void QQuickPlatformSystemTrayIcon::setMenu(QQuickPlatformMenu *menu)
-{
- if (m_menu == menu)
- return;
-
- if (m_menu)
- m_menu->setSystemTrayIcon(nullptr);
- if (menu) {
- menu->setSystemTrayIcon(this);
- if (m_handle && m_complete && menu->create())
- m_handle->updateMenu(menu->handle());
- }
-
- m_menu = menu;
- emit menuChanged();
-}
-
-/*!
- \since Qt.labs.platform 1.1 (Qt 5.12)
- \qmlproperty rect Qt.labs.platform::SystemTrayIcon::geometry
-
- This property holds the geometry of the system tray icon.
-*/
-QRect QQuickPlatformSystemTrayIcon::geometry() const
-{
- return m_handle ? m_handle->geometry() : QRect();
-}
-
-/*!
- \since Qt.labs.platform 1.1 (Qt 5.12)
- \qmlpropertygroup Qt.labs.platform::SystemTrayIcon::icon
- \qmlproperty url Qt.labs.platform::SystemTrayIcon::icon.source
- \qmlproperty string Qt.labs.platform::SystemTrayIcon::icon.name
- \qmlproperty bool Qt.labs.platform::SystemTrayIcon::icon.mask
-
- This property holds the system tray icon.
-
- \code
- SystemTrayIcon {
- icon.mask: true
- icon.source: "qrc:/images/tray-icon.png"
- }
- \endcode
-*/
-QQuickPlatformIcon QQuickPlatformSystemTrayIcon::icon() const
-{
- if (!m_iconLoader)
- return QQuickPlatformIcon();
-
- return m_iconLoader->icon();
-}
-
-void QQuickPlatformSystemTrayIcon::setIcon(const QQuickPlatformIcon &icon)
-{
- if (iconLoader()->icon() == icon)
- return;
-
- iconLoader()->setIcon(icon);
- emit iconChanged();
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::SystemTrayIcon::show()
-
- Shows the system tray icon.
-*/
-void QQuickPlatformSystemTrayIcon::show()
-{
- setVisible(true);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::SystemTrayIcon::hide()
-
- Hides the system tray icon.
-*/
-void QQuickPlatformSystemTrayIcon::hide()
-{
- setVisible(false);
-}
-
-/*!
- \qmlmethod void Qt.labs.platform::SystemTrayIcon::showMessage(string title, string message, MessageIcon icon, int msecs)
-
- Shows a system tray message with the given \a title, \a message and \a icon
- for the time specified in \a msecs.
-
- \note System tray messages are dependent on the system configuration and user preferences,
- and may not appear at all. Therefore, it should not be relied upon as the sole means for providing
- critical information.
-
- \sa supportsMessages, messageClicked()
-*/
-void QQuickPlatformSystemTrayIcon::showMessage(const QString &title, const QString &msg, QPlatformSystemTrayIcon::MessageIcon icon, int msecs)
-{
- if (m_handle)
- m_handle->showMessage(title, msg, QIcon(), icon, msecs);
-}
-
-void QQuickPlatformSystemTrayIcon::init()
-{
- if (!m_handle)
- return;
-
- m_handle->init();
- if (m_menu && m_menu->create())
- m_handle->updateMenu(m_menu->handle());
- m_handle->updateToolTip(m_tooltip);
- if (m_iconLoader)
- m_iconLoader->setEnabled(true);
-}
-
-void QQuickPlatformSystemTrayIcon::cleanup()
-{
- if (m_handle)
- m_handle->cleanup();
- if (m_iconLoader)
- m_iconLoader->setEnabled(false);
-}
-
-void QQuickPlatformSystemTrayIcon::classBegin()
-{
-}
-
-void QQuickPlatformSystemTrayIcon::componentComplete()
-{
- m_complete = true;
- if (m_visible)
- init();
-}
-
-QQuickPlatformIconLoader *QQuickPlatformSystemTrayIcon::iconLoader() const
-{
- if (!m_iconLoader) {
- QQuickPlatformSystemTrayIcon *that = const_cast<QQuickPlatformSystemTrayIcon *>(this);
- static int slot = staticMetaObject.indexOfSlot("updateIcon()");
- m_iconLoader = new QQuickPlatformIconLoader(slot, that);
- m_iconLoader->setEnabled(m_complete);
- }
- return m_iconLoader;
-}
-
-void QQuickPlatformSystemTrayIcon::updateIcon()
-{
- if (!m_handle || !m_iconLoader)
- return;
-
- const QRect oldGeometry = m_handle->geometry();
-
- m_handle->updateIcon(m_iconLoader->toQIcon());
-
- if (oldGeometry != m_handle->geometry())
- emit geometryChanged();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/qquickplatformsystemtrayicon_p.h b/src/imports/platform/qquickplatformsystemtrayicon_p.h
deleted file mode 100644
index e43366cb..00000000
--- a/src/imports/platform/qquickplatformsystemtrayicon_p.h
+++ /dev/null
@@ -1,155 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLATFORMSYSTEMTRAYICON_P_H
-#define QQUICKPLATFORMSYSTEMTRAYICON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qurl.h>
-#include <QtCore/qrect.h>
-#include <QtGui/qpa/qplatformsystemtrayicon.h>
-#include <QtQml/qqmlparserstatus.h>
-#include <QtQml/qqml.h>
-
-#include "qquickplatformicon_p.h"
-
-QT_REQUIRE_CONFIG(systemtrayicon);
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPlatformMenu;
-class QQuickPlatformIconLoader;
-
-class QQuickPlatformSystemTrayIcon : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_INTERFACES(QQmlParserStatus)
- Q_PROPERTY(bool available READ isAvailable CONSTANT FINAL)
- Q_PROPERTY(bool supportsMessages READ supportsMessages CONSTANT FINAL)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL)
- Q_PROPERTY(QUrl iconSource READ iconSource WRITE setIconSource NOTIFY iconSourceChanged FINAL)
- Q_PROPERTY(QString iconName READ iconName WRITE setIconName NOTIFY iconNameChanged FINAL)
- Q_PROPERTY(QString tooltip READ tooltip WRITE setTooltip NOTIFY tooltipChanged FINAL)
- Q_PROPERTY(QQuickPlatformMenu *menu READ menu WRITE setMenu NOTIFY menuChanged FINAL)
- Q_PROPERTY(QRect geometry READ geometry NOTIFY geometryChanged FINAL REVISION 1)
- Q_PROPERTY(QQuickPlatformIcon icon READ icon WRITE setIcon NOTIFY iconChanged FINAL REVISION 1)
- Q_ENUMS(QPlatformSystemTrayIcon::ActivationReason QPlatformSystemTrayIcon::MessageIcon)
-
-public:
- explicit QQuickPlatformSystemTrayIcon(QObject *parent = nullptr);
- ~QQuickPlatformSystemTrayIcon();
-
- QPlatformSystemTrayIcon *handle() const;
-
- bool isAvailable() const;
- bool supportsMessages() const;
-
- bool isVisible() const;
- void setVisible(bool visible);
-
- QUrl iconSource() const;
- void setIconSource(const QUrl &source);
-
- QString iconName() const;
- void setIconName(const QString &name);
-
- QString tooltip() const;
- void setTooltip(const QString &tooltip);
-
- QQuickPlatformMenu *menu() const;
- void setMenu(QQuickPlatformMenu *menu);
-
- QRect geometry() const;
-
- QQuickPlatformIcon icon() const;
- void setIcon(const QQuickPlatformIcon &icon);
-
-public Q_SLOTS:
- void show();
- void hide();
-
- void showMessage(const QString &title, const QString &message,
- QPlatformSystemTrayIcon::MessageIcon iconType = QPlatformSystemTrayIcon::Information, int msecs = 10000);
-
-Q_SIGNALS:
- void activated(QPlatformSystemTrayIcon::ActivationReason reason);
- void messageClicked();
- void visibleChanged();
- void iconSourceChanged();
- void iconNameChanged();
- void tooltipChanged();
- void menuChanged();
- Q_REVISION(1) void geometryChanged();
- Q_REVISION(1) void iconChanged();
-
-protected:
- void init();
- void cleanup();
-
- void classBegin() override;
- void componentComplete() override;
-
- QQuickPlatformIconLoader *iconLoader() const;
-
-private Q_SLOTS:
- void updateIcon();
-
-private:
- bool m_complete;
- bool m_visible;
- QString m_tooltip;
- QQuickPlatformMenu *m_menu;
- mutable QQuickPlatformIconLoader *m_iconLoader;
- QPlatformSystemTrayIcon *m_handle;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlatformSystemTrayIcon)
-Q_DECLARE_METATYPE(QPlatformSystemTrayIcon::ActivationReason)
-Q_DECLARE_METATYPE(QPlatformSystemTrayIcon::MessageIcon)
-
-#endif // QQUICKPLATFORMSYSTEMTRAYICON_P_H
diff --git a/src/imports/platform/qtlabsplatformplugin.cpp b/src/imports/platform/qtlabsplatformplugin.cpp
deleted file mode 100644
index 98d5dcc4..00000000
--- a/src/imports/platform/qtlabsplatformplugin.cpp
+++ /dev/null
@@ -1,116 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Templates 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 <QtQml/qqml.h>
-#include <QtCore/qloggingcategory.h>
-
-#include "qquickplatformdialog_p.h"
-#include "qquickplatformcolordialog_p.h"
-#include "qquickplatformfiledialog_p.h"
-#include "qquickplatformfolderdialog_p.h"
-#include "qquickplatformfontdialog_p.h"
-#include "qquickplatformmessagedialog_p.h"
-
-#include "qquickplatformmenu_p.h"
-#include "qquickplatformmenubar_p.h"
-#include "qquickplatformmenuitem_p.h"
-#include "qquickplatformmenuitemgroup_p.h"
-#include "qquickplatformmenuseparator_p.h"
-
-#include "qquickplatformstandardpaths_p.h"
-#if QT_CONFIG(systemtrayicon)
-# include "qquickplatformsystemtrayicon_p.h"
-#endif
-
-#include "qquickplatformicon_p.h"
-
-QT_BEGIN_NAMESPACE
-
-Q_LOGGING_CATEGORY(qtLabsPlatformDialogs, "qt.labs.platform.dialogs")
-Q_LOGGING_CATEGORY(qtLabsPlatformMenus, "qt.labs.platform.menus")
-Q_LOGGING_CATEGORY(qtLabsPlatformTray, "qt.labs.platform.tray")
-
-class QtLabsPlatformPlugin: public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtLabsPlatformPlugin(QObject *parent = nullptr);
- void registerTypes(const char *uri) override;
-};
-
-QtLabsPlatformPlugin::QtLabsPlatformPlugin(QObject *parent) : QQmlExtensionPlugin(parent)
-{
-}
-
-void QtLabsPlatformPlugin::registerTypes(const char *uri)
-{
- qmlRegisterUncreatableType<QQuickPlatformDialog>(uri, 1, 0, "Dialog", QQuickPlatformDialog::tr("Dialog is an abstract base class"));
- qmlRegisterType<QQuickPlatformColorDialog>(uri, 1, 0, "ColorDialog");
- qmlRegisterType<QQuickPlatformFileDialog>(uri, 1, 0, "FileDialog");
- qmlRegisterAnonymousType<QQuickPlatformFileNameFilter>(uri, 1);
- qmlRegisterType<QQuickPlatformFolderDialog>(uri, 1, 0, "FolderDialog");
- qmlRegisterType<QQuickPlatformFontDialog>(uri, 1, 0, "FontDialog");
- qmlRegisterType<QQuickPlatformMessageDialog>(uri, 1, 0, "MessageDialog");
-
- qmlRegisterType<QQuickPlatformMenu>(uri, 1, 0, "Menu");
- qmlRegisterType<QQuickPlatformMenuBar>(uri, 1, 0, "MenuBar");
- qmlRegisterType<QQuickPlatformMenuItem>(uri, 1, 0, "MenuItem");
- qmlRegisterType<QQuickPlatformMenuItemGroup>(uri, 1, 0, "MenuItemGroup");
- qmlRegisterType<QQuickPlatformMenuSeparator>(uri, 1, 0, "MenuSeparator");
- qRegisterMetaType<QPlatformMenu::MenuType>();
-
- qmlRegisterUncreatableType<QPlatformDialogHelper>(uri, 1, 0, "StandardButton", QQuickPlatformDialog::tr("Cannot create an instance of StandardButton"));
- qmlRegisterSingletonType<QQuickPlatformStandardPaths>(uri, 1, 0, "StandardPaths", QQuickPlatformStandardPaths::create);
- qRegisterMetaType<QStandardPaths::StandardLocation>();
- qRegisterMetaType<QStandardPaths::LocateOptions>();
-
-#if QT_CONFIG(systemtrayicon)
- qmlRegisterType<QQuickPlatformSystemTrayIcon>(uri, 1, 0, "SystemTrayIcon");
- qmlRegisterType<QQuickPlatformSystemTrayIcon, 1>(uri, 1, 1, "SystemTrayIcon");
- qRegisterMetaType<QPlatformSystemTrayIcon::ActivationReason>();
- qRegisterMetaType<QPlatformSystemTrayIcon::MessageIcon>();
-#endif
-
- qmlRegisterAnonymousType<QQuickPlatformIcon>(uri, 1);
- qRegisterMetaType<QQuickPlatformIcon>();
-}
-
-QT_END_NAMESPACE
-
-#include "qtlabsplatformplugin.moc"
diff --git a/src/imports/platform/widgets/qwidgetplatform_p.h b/src/imports/platform/widgets/qwidgetplatform_p.h
deleted file mode 100644
index c203406c..00000000
--- a/src/imports/platform/widgets/qwidgetplatform_p.h
+++ /dev/null
@@ -1,170 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORM_P_H
-#define QWIDGETPLATFORM_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qdebug.h>
-#include <QtCore/qcoreapplication.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/qpa/qplatformdialoghelper.h>
-#include <QtGui/qpa/qplatformsystemtrayicon.h>
-#include <QtGui/qpa/qplatformmenu.h>
-
-#ifdef QT_WIDGETS_LIB
-#include <QtWidgets/qtwidgetsglobal.h>
-#if QT_CONFIG(colordialog)
-#include "qwidgetplatformcolordialog_p.h"
-#endif
-#if QT_CONFIG(filedialog)
-#include "qwidgetplatformfiledialog_p.h"
-#endif
-#if QT_CONFIG(fontdialog)
-#include "qwidgetplatformfontdialog_p.h"
-#endif
-#if QT_CONFIG(messagebox)
-#include "qwidgetplatformmessagedialog_p.h"
-#endif
-#if QT_CONFIG(menu)
-#include "qwidgetplatformmenu_p.h"
-#include "qwidgetplatformmenuitem_p.h"
-#endif
-#ifndef QT_NO_SYSTEMTRAYICON
-#include "qwidgetplatformsystemtrayicon_p.h"
-#endif
-#endif
-
-QT_BEGIN_NAMESPACE
-
-#ifndef QT_WIDGETS_LIB
-typedef QPlatformMenu QWidgetPlatformMenu;
-typedef QPlatformMenuItem QWidgetPlatformMenuItem;
-typedef QPlatformColorDialogHelper QWidgetPlatformColorDialog;
-typedef QPlatformFileDialogHelper QWidgetPlatformFileDialog;
-typedef QPlatformFontDialogHelper QWidgetPlatformFontDialog;
-typedef QPlatformMessageDialogHelper QWidgetPlatformMessageDialog;
-typedef QPlatformSystemTrayIcon QWidgetPlatformSystemTrayIcon;
-#endif
-
-namespace QWidgetPlatform
-{
- static inline bool isAvailable(const char *type)
- {
- if (!qApp->inherits("QApplication")) {
- qCritical("\nERROR: No native %s implementation available."
- "\nQt Labs Platform requires Qt Widgets on this setup."
- "\nAdd 'QT += widgets' to .pro and create QApplication in main().\n", type);
- return false;
- }
- return true;
- }
-
- template<typename T>
- static inline T *createWidget(const char *name, QObject *parent)
- {
- static bool available = isAvailable(name);
-#ifdef QT_WIDGETS_LIB
- if (available)
- return new T(parent);
-#else
- Q_UNUSED(parent)
- Q_UNUSED(available)
-#endif
- return nullptr;
- }
-
- static inline QPlatformMenu *createMenu(QObject *parent = nullptr) {
-#if defined(QT_WIDGETS_LIB) && QT_CONFIG(menu)
- return createWidget<QWidgetPlatformMenu>("Menu", parent);
-#else
- Q_UNUSED(parent);
- return nullptr;
-#endif
- }
- static inline QPlatformMenuItem *createMenuItem(QObject *parent = nullptr) {
-#if defined(QT_WIDGETS_LIB) && QT_CONFIG(menu)
- return createWidget<QWidgetPlatformMenuItem>("MenuItem", parent);
-#else
- Q_UNUSED(parent);
- return nullptr;
-#endif
- }
- static inline QPlatformSystemTrayIcon *createSystemTrayIcon(QObject *parent = nullptr) {
-#ifndef QT_NO_SYSTEMTRAYICON
- return createWidget<QWidgetPlatformSystemTrayIcon>("SystemTrayIcon", parent);
-#else
- Q_UNUSED(parent);
- return nullptr;
-#endif
- }
- static inline QPlatformDialogHelper *createDialog(QPlatformTheme::DialogType type, QObject *parent = nullptr)
- {
-#if !defined(QT_WIDGETS_LIB) || !(QT_CONFIG(colordialog) || QT_CONFIG(filedialog) || QT_CONFIG(fontdialog) || QT_CONFIG(messagebox))
- Q_UNUSED(parent);
-#endif
- switch (type) {
-#if defined(QT_WIDGETS_LIB) && QT_CONFIG(colordialog)
- case QPlatformTheme::ColorDialog: return createWidget<QWidgetPlatformColorDialog>("ColorDialog", parent);
-#endif
-#if defined(QT_WIDGETS_LIB) && QT_CONFIG(filedialog)
- case QPlatformTheme::FileDialog: return createWidget<QWidgetPlatformFileDialog>("FileDialog", parent);
-#endif
-#if defined(QT_WIDGETS_LIB) && QT_CONFIG(fontdialog)
- case QPlatformTheme::FontDialog: return createWidget<QWidgetPlatformFontDialog>("FontDialog", parent);
-#endif
-#if defined(QT_WIDGETS_LIB) && QT_CONFIG(messagebox)
- case QPlatformTheme::MessageDialog: return createWidget<QWidgetPlatformMessageDialog>("MessageDialog", parent);
-#endif
- default: break;
- }
- return nullptr;
- }
-}
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORM_P_H
diff --git a/src/imports/platform/widgets/qwidgetplatformcolordialog.cpp b/src/imports/platform/widgets/qwidgetplatformcolordialog.cpp
deleted file mode 100644
index 6c0043ae..00000000
--- a/src/imports/platform/widgets/qwidgetplatformcolordialog.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qwidgetplatformcolordialog_p.h"
-#include "qwidgetplatformdialog_p.h"
-
-#include <QtWidgets/qcolordialog.h>
-
-QT_BEGIN_NAMESPACE
-
-QWidgetPlatformColorDialog::QWidgetPlatformColorDialog(QObject *parent)
- : m_dialog(new QColorDialog)
-{
- setParent(parent);
-
- connect(m_dialog.data(), &QColorDialog::accepted, this, &QPlatformDialogHelper::accept);
- connect(m_dialog.data(), &QColorDialog::rejected, this, &QPlatformDialogHelper::reject);
- connect(m_dialog.data(), &QColorDialog::currentColorChanged, this, &QPlatformColorDialogHelper::currentColorChanged);
-}
-
-QWidgetPlatformColorDialog::~QWidgetPlatformColorDialog()
-{
-}
-
-QColor QWidgetPlatformColorDialog::currentColor() const
-{
- return m_dialog->currentColor();
-}
-
-void QWidgetPlatformColorDialog::setCurrentColor(const QColor &color)
-{
- m_dialog->setCurrentColor(color);
-}
-
-void QWidgetPlatformColorDialog::exec()
-{
- m_dialog->exec();
-}
-
-bool QWidgetPlatformColorDialog::show(Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent)
-{
- QSharedPointer<QColorDialogOptions> options = QPlatformColorDialogHelper::options();
- m_dialog->setWindowTitle(options->windowTitle());
- m_dialog->setOptions(static_cast<QColorDialog::ColorDialogOptions>(int(options->options())) | QColorDialog::DontUseNativeDialog);
-
- return QWidgetPlatformDialog::show(m_dialog.data(), flags, modality, parent);
-}
-
-void QWidgetPlatformColorDialog::hide()
-{
- m_dialog->hide();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/widgets/qwidgetplatformcolordialog_p.h b/src/imports/platform/widgets/qwidgetplatformcolordialog_p.h
deleted file mode 100644
index 09ed5a1e..00000000
--- a/src/imports/platform/widgets/qwidgetplatformcolordialog_p.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORMCOLORDIALOG_P_H
-#define QWIDGETPLATFORMCOLORDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpa/qplatformdialoghelper.h>
-
-QT_BEGIN_NAMESPACE
-
-class QColorDialog;
-
-class QWidgetPlatformColorDialog : public QPlatformColorDialogHelper
-{
- Q_OBJECT
-
-public:
- explicit QWidgetPlatformColorDialog(QObject *parent = nullptr);
- ~QWidgetPlatformColorDialog();
-
- QColor currentColor() const override;
- void setCurrentColor(const QColor &color) override;
-
- void exec() override;
- bool show(Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent) override;
- void hide() override;
-
-private:
- QScopedPointer<QColorDialog> m_dialog;
-};
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORMCOLORDIALOG_P_H
diff --git a/src/imports/platform/widgets/qwidgetplatformdialog.cpp b/src/imports/platform/widgets/qwidgetplatformdialog.cpp
deleted file mode 100644
index 3a206839..00000000
--- a/src/imports/platform/widgets/qwidgetplatformdialog.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qwidgetplatformdialog_p.h"
-
-#include <QtGui/qwindow.h>
-#include <QtWidgets/qdialog.h>
-
-QT_BEGIN_NAMESPACE
-
-bool QWidgetPlatformDialog::show(QDialog *dialog, Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent)
-{
- dialog->setWindowFlags(flags);
- dialog->setWindowModality(modality);
-
- dialog->createWinId();
- QWindow *handle = dialog->windowHandle();
- Q_ASSERT(handle);
- handle->setTransientParent(const_cast<QWindow *>(parent));
-
- dialog->show();
- return true;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/widgets/qwidgetplatformdialog_p.h b/src/imports/platform/widgets/qwidgetplatformdialog_p.h
deleted file mode 100644
index d4f27655..00000000
--- a/src/imports/platform/widgets/qwidgetplatformdialog_p.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORMDIALOG_P_H
-#define QWIDGETPLATFORMDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qnamespace.h>
-
-QT_BEGIN_NAMESPACE
-
-class QDialog;
-class QWindow;
-
-class QWidgetPlatformDialog
-{
-public:
- static bool show(QDialog *dialog, Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent);
-};
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORMDIALOG_P_H
diff --git a/src/imports/platform/widgets/qwidgetplatformfiledialog.cpp b/src/imports/platform/widgets/qwidgetplatformfiledialog.cpp
deleted file mode 100644
index 21ac6527..00000000
--- a/src/imports/platform/widgets/qwidgetplatformfiledialog.cpp
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qwidgetplatformfiledialog_p.h"
-#include "qwidgetplatformdialog_p.h"
-
-#include <QtWidgets/qfiledialog.h>
-
-QT_BEGIN_NAMESPACE
-
-QWidgetPlatformFileDialog::QWidgetPlatformFileDialog(QObject *parent)
- : m_dialog(new QFileDialog)
-{
- setParent(parent);
-
- connect(m_dialog.data(), &QDialog::accepted, this, &QPlatformDialogHelper::accept);
- connect(m_dialog.data(), &QDialog::rejected, this, &QPlatformDialogHelper::reject);
-
- connect(m_dialog.data(), &QFileDialog::fileSelected, [this](const QString &file) {
- emit fileSelected(QUrl::fromLocalFile(file));
- });
- connect(m_dialog.data(), &QFileDialog::filesSelected, [this](const QList<QString> &files) {
- QList<QUrl> urls;
- urls.reserve(files.count());
- for (const QString &file : files)
- urls += QUrl::fromLocalFile(file);
- emit filesSelected(urls);
- });
- connect(m_dialog.data(), &QFileDialog::currentChanged, [this](const QString &path) {
- emit currentChanged(QUrl::fromLocalFile(path));
- });
- connect(m_dialog.data(), &QFileDialog::directoryEntered, this, &QWidgetPlatformFileDialog::directoryEntered);
- connect(m_dialog.data(), &QFileDialog::filterSelected, this, &QWidgetPlatformFileDialog::filterSelected);
-}
-
-QWidgetPlatformFileDialog::~QWidgetPlatformFileDialog()
-{
-}
-
-bool QWidgetPlatformFileDialog::defaultNameFilterDisables() const
-{
- return false; // TODO: ?
-}
-
-void QWidgetPlatformFileDialog::setDirectory(const QUrl &directory)
-{
- m_dialog->setDirectory(directory.toLocalFile());
-}
-
-QUrl QWidgetPlatformFileDialog::directory() const
-{
- return m_dialog->directoryUrl();
-}
-
-void QWidgetPlatformFileDialog::selectFile(const QUrl &filename)
-{
- m_dialog->selectUrl(filename);
-}
-
-QList<QUrl> QWidgetPlatformFileDialog::selectedFiles() const
-{
- return m_dialog->selectedUrls();
-}
-
-void QWidgetPlatformFileDialog::setFilter()
-{
- // TODO: ?
-}
-
-void QWidgetPlatformFileDialog::selectNameFilter(const QString &filter)
-{
- m_dialog->selectNameFilter(filter);
-}
-
-QString QWidgetPlatformFileDialog::selectedNameFilter() const
-{
- return m_dialog->selectedNameFilter();
-}
-
-void QWidgetPlatformFileDialog::exec()
-{
- m_dialog->exec();
-}
-
-bool QWidgetPlatformFileDialog::show(Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent)
-{
- QSharedPointer<QFileDialogOptions> options = QPlatformFileDialogHelper::options();
- m_dialog->setWindowTitle(options->windowTitle());
- m_dialog->setAcceptMode(static_cast<QFileDialog::AcceptMode>(options->acceptMode()));
- m_dialog->setFileMode(static_cast<QFileDialog::FileMode>(options->fileMode()));
- m_dialog->setOptions(static_cast<QFileDialog::Options>(int(options->options())) | QFileDialog::DontUseNativeDialog);
- m_dialog->setNameFilters(options->nameFilters());
- m_dialog->setDefaultSuffix(options->defaultSuffix());
- if (options->isLabelExplicitlySet(QFileDialogOptions::Accept))
- m_dialog->setLabelText(QFileDialog::Accept, options->labelText(QFileDialogOptions::Accept));
- if (options->isLabelExplicitlySet(QFileDialogOptions::Reject))
- m_dialog->setLabelText(QFileDialog::Reject, options->labelText(QFileDialogOptions::Reject));
-
- return QWidgetPlatformDialog::show(m_dialog.data(), flags, modality, parent);
-}
-
-void QWidgetPlatformFileDialog::hide()
-{
- m_dialog->hide();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/widgets/qwidgetplatformfiledialog_p.h b/src/imports/platform/widgets/qwidgetplatformfiledialog_p.h
deleted file mode 100644
index 3dba6038..00000000
--- a/src/imports/platform/widgets/qwidgetplatformfiledialog_p.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORMFILEDIALOG_P_H
-#define QWIDGETPLATFORMFILEDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpa/qplatformdialoghelper.h>
-
-QT_BEGIN_NAMESPACE
-
-class QFileDialog;
-
-class QWidgetPlatformFileDialog : public QPlatformFileDialogHelper
-{
- Q_OBJECT
-
-public:
- explicit QWidgetPlatformFileDialog(QObject *parent = nullptr);
- ~QWidgetPlatformFileDialog();
-
- bool defaultNameFilterDisables() const override;
- void setDirectory(const QUrl &directory) override;
- QUrl directory() const override;
- void selectFile(const QUrl &filename) override;
- QList<QUrl> selectedFiles() const override;
- void setFilter() override;
- void selectNameFilter(const QString &filter) override;
- QString selectedNameFilter() const override;
-
- void exec() override;
- bool show(Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent) override;
- void hide() override;
-
-private:
- QScopedPointer<QFileDialog> m_dialog;
-};
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORMFILEDIALOG_P_H
diff --git a/src/imports/platform/widgets/qwidgetplatformfontdialog.cpp b/src/imports/platform/widgets/qwidgetplatformfontdialog.cpp
deleted file mode 100644
index 315e7c73..00000000
--- a/src/imports/platform/widgets/qwidgetplatformfontdialog.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qwidgetplatformfontdialog_p.h"
-#include "qwidgetplatformdialog_p.h"
-
-#include <QtWidgets/qfontdialog.h>
-
-QT_BEGIN_NAMESPACE
-
-QWidgetPlatformFontDialog::QWidgetPlatformFontDialog(QObject *parent)
- : m_dialog(new QFontDialog)
-{
- setParent(parent);
-
- connect(m_dialog.data(), &QFontDialog::accepted, this, &QPlatformDialogHelper::accept);
- connect(m_dialog.data(), &QFontDialog::rejected, this, &QPlatformDialogHelper::reject);
- connect(m_dialog.data(), &QFontDialog::currentFontChanged, this, &QPlatformFontDialogHelper::currentFontChanged);
-}
-
-QWidgetPlatformFontDialog::~QWidgetPlatformFontDialog()
-{
-}
-
-QFont QWidgetPlatformFontDialog::currentFont() const
-{
- return m_dialog->currentFont();
-}
-
-void QWidgetPlatformFontDialog::setCurrentFont(const QFont &font)
-{
- m_dialog->setCurrentFont(font);
-}
-
-void QWidgetPlatformFontDialog::exec()
-{
- m_dialog->exec();
-}
-
-bool QWidgetPlatformFontDialog::show(Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent)
-{
- QSharedPointer<QFontDialogOptions> options = QPlatformFontDialogHelper::options();
- m_dialog->setWindowTitle(options->windowTitle());
- m_dialog->setOptions(static_cast<QFontDialog::FontDialogOptions>(int(options->options())) | QFontDialog::DontUseNativeDialog);
-
- return QWidgetPlatformDialog::show(m_dialog.data(), flags, modality, parent);
-}
-
-void QWidgetPlatformFontDialog::hide()
-{
- m_dialog->hide();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/widgets/qwidgetplatformfontdialog_p.h b/src/imports/platform/widgets/qwidgetplatformfontdialog_p.h
deleted file mode 100644
index e5d13b31..00000000
--- a/src/imports/platform/widgets/qwidgetplatformfontdialog_p.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORMFONTDIALOG_P_H
-#define QWIDGETPLATFORMFONTDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpa/qplatformdialoghelper.h>
-
-QT_BEGIN_NAMESPACE
-
-class QFontDialog;
-
-class QWidgetPlatformFontDialog : public QPlatformFontDialogHelper
-{
- Q_OBJECT
-
-public:
- explicit QWidgetPlatformFontDialog(QObject *parent = nullptr);
- ~QWidgetPlatformFontDialog();
-
- QFont currentFont() const override;
- void setCurrentFont(const QFont &font) override;
-
- void exec() override;
- bool show(Qt::WindowFlags windowFlags, Qt::WindowModality windowModality, QWindow *parent) override;
- void hide() override;
-
-private:
- QScopedPointer<QFontDialog> m_dialog;
-};
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORMFONTDIALOG_P_H
diff --git a/src/imports/platform/widgets/qwidgetplatformmenu.cpp b/src/imports/platform/widgets/qwidgetplatformmenu.cpp
deleted file mode 100644
index e5fe734f..00000000
--- a/src/imports/platform/widgets/qwidgetplatformmenu.cpp
+++ /dev/null
@@ -1,183 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qwidgetplatformmenu_p.h"
-#include "qwidgetplatformmenuitem_p.h"
-
-#include <QtGui/qwindow.h>
-#include <QtWidgets/qmenu.h>
-#include <QtWidgets/qaction.h>
-
-QT_BEGIN_NAMESPACE
-
-QWidgetPlatformMenu::QWidgetPlatformMenu(QObject *parent)
- : m_menu(new QMenu)
-{
- setParent(parent);
-
- connect(m_menu.data(), &QMenu::aboutToShow, this, &QPlatformMenu::aboutToShow);
- connect(m_menu.data(), &QMenu::aboutToHide, this, &QPlatformMenu::aboutToHide);
-}
-
-QWidgetPlatformMenu::~QWidgetPlatformMenu()
-{
-}
-
-QMenu *QWidgetPlatformMenu::menu() const
-{
- return m_menu.data();
-}
-
-void QWidgetPlatformMenu::insertMenuItem(QPlatformMenuItem *item, QPlatformMenuItem *before)
-{
- QWidgetPlatformMenuItem *widgetItem = qobject_cast<QWidgetPlatformMenuItem *>(item);
- if (!widgetItem)
- return;
-
- QWidgetPlatformMenuItem *widgetBefore = qobject_cast<QWidgetPlatformMenuItem *>(before);
- m_menu->insertAction(widgetBefore ? widgetBefore->action() : nullptr, widgetItem->action());
- int index = m_items.indexOf(widgetBefore);
- if (index < 0)
- index = m_items.count();
- m_items.insert(index, widgetItem);
-}
-
-void QWidgetPlatformMenu::removeMenuItem(QPlatformMenuItem *item)
-{
- QWidgetPlatformMenuItem *widgetItem = qobject_cast<QWidgetPlatformMenuItem *>(item);
- if (!widgetItem)
- return;
-
- m_items.removeOne(widgetItem);
- m_menu->removeAction(widgetItem->action());
-}
-
-void QWidgetPlatformMenu::syncMenuItem(QPlatformMenuItem *item)
-{
- Q_UNUSED(item);
-}
-
-void QWidgetPlatformMenu::syncSeparatorsCollapsible(bool enable)
-{
- m_menu->setSeparatorsCollapsible(enable);
-}
-
-void QWidgetPlatformMenu::setText(const QString &text)
-{
- m_menu->setTitle(text);
-}
-
-void QWidgetPlatformMenu::setIcon(const QIcon &icon)
-{
- m_menu->setIcon(icon);
-}
-
-void QWidgetPlatformMenu::setEnabled(bool enabled)
-{
- m_menu->menuAction()->setEnabled(enabled);
-}
-
-bool QWidgetPlatformMenu::isEnabled() const
-{
- return m_menu->menuAction()->isEnabled();
-}
-
-void QWidgetPlatformMenu::setVisible(bool visible)
-{
- m_menu->menuAction()->setVisible(visible);
-}
-
-void QWidgetPlatformMenu::setMinimumWidth(int width)
-{
- if (width > 0)
- m_menu->setMinimumWidth(width);
-}
-
-void QWidgetPlatformMenu::setFont(const QFont &font)
-{
- m_menu->setFont(font);
-}
-
-void QWidgetPlatformMenu::setMenuType(MenuType type)
-{
- Q_UNUSED(type);
-}
-
-void QWidgetPlatformMenu::showPopup(const QWindow *window, const QRect &targetRect, const QPlatformMenuItem *item)
-{
- m_menu->createWinId();
- QWindow *handle = m_menu->windowHandle();
- Q_ASSERT(handle);
- handle->setTransientParent(const_cast<QWindow *>(window));
-
- QPoint targetPos = targetRect.bottomLeft();
- if (window)
- targetPos = window->mapToGlobal(targetPos);
-
- const QWidgetPlatformMenuItem *widgetItem = qobject_cast<const QWidgetPlatformMenuItem *>(item);
- m_menu->popup(targetPos, widgetItem ? widgetItem->action() : nullptr);
-}
-
-void QWidgetPlatformMenu::dismiss()
-{
- m_menu->close();
-}
-
-QPlatformMenuItem *QWidgetPlatformMenu::menuItemAt(int position) const
-{
- return m_items.value(position);
-}
-
-QPlatformMenuItem *QWidgetPlatformMenu::menuItemForTag(quintptr tag) const
-{
- for (QWidgetPlatformMenuItem *item : m_items) {
- if (item->tag() == tag)
- return item;
- }
- return nullptr;
-}
-
-QPlatformMenuItem *QWidgetPlatformMenu::createMenuItem() const
-{
- return new QWidgetPlatformMenuItem;
-}
-
-QPlatformMenu *QWidgetPlatformMenu::createSubMenu() const
-{
- return new QWidgetPlatformMenu;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/widgets/qwidgetplatformmenu_p.h b/src/imports/platform/widgets/qwidgetplatformmenu_p.h
deleted file mode 100644
index 4d58f528..00000000
--- a/src/imports/platform/widgets/qwidgetplatformmenu_p.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORMMENU_P_H
-#define QWIDGETPLATFORMMENU_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpa/qplatformmenu.h>
-
-QT_BEGIN_NAMESPACE
-
-class QMenu;
-class QWidgetPlatformMenuItem;
-
-class QWidgetPlatformMenu : public QPlatformMenu
-{
- Q_OBJECT
-
-public:
- explicit QWidgetPlatformMenu(QObject *parent = nullptr);
- ~QWidgetPlatformMenu();
-
- QMenu *menu() const;
-
- void insertMenuItem(QPlatformMenuItem *item, QPlatformMenuItem *before) override;
- void removeMenuItem(QPlatformMenuItem *item) override;
- void syncMenuItem(QPlatformMenuItem *item) override;
- void syncSeparatorsCollapsible(bool enable) override;
-
- void setText(const QString &text) override;
- void setIcon(const QIcon &icon) override;
- void setEnabled(bool enabled) override;
- bool isEnabled() const override;
- void setVisible(bool visible) override;
- void setMinimumWidth(int width) override;
- void setFont(const QFont &font) override;
- void setMenuType(MenuType type) override;
-
- void showPopup(const QWindow *window, const QRect &targetRect, const QPlatformMenuItem *item) override;
- void dismiss() override;
-
- QPlatformMenuItem *menuItemAt(int position) const override;
- QPlatformMenuItem *menuItemForTag(quintptr tag) const override;
-
- QPlatformMenuItem *createMenuItem() const override;
- QPlatformMenu *createSubMenu() const override;
-
-private:
- QScopedPointer<QMenu> m_menu;
- QVector<QWidgetPlatformMenuItem *> m_items;
-};
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORMMENU_P_H
diff --git a/src/imports/platform/widgets/qwidgetplatformmenuitem.cpp b/src/imports/platform/widgets/qwidgetplatformmenuitem.cpp
deleted file mode 100644
index 9de899f2..00000000
--- a/src/imports/platform/widgets/qwidgetplatformmenuitem.cpp
+++ /dev/null
@@ -1,125 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qwidgetplatformmenuitem_p.h"
-#include "qwidgetplatformmenu_p.h"
-
-#include <QtWidgets/qmenu.h>
-#include <QtWidgets/qaction.h>
-
-QT_BEGIN_NAMESPACE
-
-QWidgetPlatformMenuItem::QWidgetPlatformMenuItem(QObject *parent)
- : m_action(new QAction)
-{
- setParent(parent);
- connect(m_action.data(), &QAction::hovered, this, &QPlatformMenuItem::hovered);
- connect(m_action.data(), &QAction::triggered, this, &QPlatformMenuItem::activated);
-}
-
-QWidgetPlatformMenuItem::~QWidgetPlatformMenuItem()
-{
-}
-
-QAction *QWidgetPlatformMenuItem::action() const
-{
- return m_action.data();
-}
-
-void QWidgetPlatformMenuItem::setText(const QString &text)
-{
- m_action->setText(text);
-}
-
-void QWidgetPlatformMenuItem::setIcon(const QIcon &icon)
-{
- m_action->setIcon(icon);
-}
-
-void QWidgetPlatformMenuItem::setMenu(QPlatformMenu *menu)
-{
- QWidgetPlatformMenu *widgetMenu = qobject_cast<QWidgetPlatformMenu *>(menu);
- m_action->setMenu(widgetMenu ? widgetMenu->menu() : nullptr);
-}
-
-void QWidgetPlatformMenuItem::setVisible(bool visible)
-{
- m_action->setVisible(visible);
-}
-
-void QWidgetPlatformMenuItem::setIsSeparator(bool separator)
-{
- m_action->setSeparator(separator);
-}
-
-void QWidgetPlatformMenuItem::setFont(const QFont &font)
-{
- m_action->setFont(font);
-}
-
-void QWidgetPlatformMenuItem::setRole(MenuRole role)
-{
- m_action->setMenuRole(static_cast<QAction::MenuRole>(role));
-}
-
-void QWidgetPlatformMenuItem::setCheckable(bool checkable)
-{
- m_action->setCheckable(checkable);
-}
-
-void QWidgetPlatformMenuItem::setChecked(bool checked)
-{
- m_action->setChecked(checked);
-}
-
-#if QT_CONFIG(shortcut)
-void QWidgetPlatformMenuItem::setShortcut(const QKeySequence &shortcut)
-{
- m_action->setShortcut(shortcut);
-}
-#endif
-
-void QWidgetPlatformMenuItem::setEnabled(bool enabled)
-{
- m_action->setEnabled(enabled);
-}
-
-void QWidgetPlatformMenuItem::setIconSize(int size)
-{
- Q_UNUSED(size);
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/widgets/qwidgetplatformmenuitem_p.h b/src/imports/platform/widgets/qwidgetplatformmenuitem_p.h
deleted file mode 100644
index 43b3fc17..00000000
--- a/src/imports/platform/widgets/qwidgetplatformmenuitem_p.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORMMENUITEM_P_H
-#define QWIDGETPLATFORMMENUITEM_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpa/qplatformmenu.h>
-
-QT_BEGIN_NAMESPACE
-
-class QAction;
-
-class QWidgetPlatformMenuItem : public QPlatformMenuItem
-{
- Q_OBJECT
-
-public:
- explicit QWidgetPlatformMenuItem(QObject *parent = nullptr);
- ~QWidgetPlatformMenuItem();
-
- QAction *action() const;
-
- void setText(const QString &text) override;
- void setIcon(const QIcon &icon) override;
- void setMenu(QPlatformMenu *menu) override;
- void setVisible(bool visible) override;
- void setIsSeparator(bool separator) override;
- void setFont(const QFont &font) override;
- void setRole(MenuRole role) override;
- void setCheckable(bool checkable) override;
- void setChecked(bool checked) override;
-#if QT_CONFIG(shortcut)
- void setShortcut(const QKeySequence& shortcut) override;
-#endif
- void setEnabled(bool enabled) override;
- void setIconSize(int size) override;
-
-private:
- QScopedPointer<QAction> m_action;
-};
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORMMENUITEM_P_H
diff --git a/src/imports/platform/widgets/qwidgetplatformmessagedialog.cpp b/src/imports/platform/widgets/qwidgetplatformmessagedialog.cpp
deleted file mode 100644
index 365692dc..00000000
--- a/src/imports/platform/widgets/qwidgetplatformmessagedialog.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qwidgetplatformmessagedialog_p.h"
-#include "qwidgetplatformdialog_p.h"
-
-#include <QtWidgets/qmessagebox.h>
-#include <QtWidgets/qabstractbutton.h>
-
-QT_BEGIN_NAMESPACE
-
-QWidgetPlatformMessageDialog::QWidgetPlatformMessageDialog(QObject *parent)
- : m_dialog(new QMessageBox)
-{
- setParent(parent);
-
- connect(m_dialog.data(), &QMessageBox::accepted, this, &QPlatformDialogHelper::accept);
- connect(m_dialog.data(), &QMessageBox::rejected, this, &QPlatformDialogHelper::reject);
- connect(m_dialog.data(), &QMessageBox::buttonClicked, [this](QAbstractButton *button) {
- QMessageBox::ButtonRole role = m_dialog->buttonRole(button);
- QMessageBox::StandardButton standardButton = m_dialog->standardButton(button);
- emit clicked(static_cast<StandardButton>(standardButton), static_cast<ButtonRole>(role));
- });
-}
-
-QWidgetPlatformMessageDialog::~QWidgetPlatformMessageDialog()
-{
-}
-void QWidgetPlatformMessageDialog::exec()
-{
- m_dialog->exec();
-}
-
-bool QWidgetPlatformMessageDialog::show(Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent)
-{
- QSharedPointer<QMessageDialogOptions> options = QPlatformMessageDialogHelper::options();
- m_dialog->setWindowTitle(options->windowTitle());
- m_dialog->setIcon(static_cast<QMessageBox::Icon>(options->icon()));
- m_dialog->setText(options->text());
- m_dialog->setInformativeText(options->informativeText());
-#if QT_CONFIG(textedit)
- m_dialog->setDetailedText(options->detailedText());
-#endif
- m_dialog->setStandardButtons(static_cast<QMessageBox::StandardButtons>(int(options->standardButtons())));
-
- return QWidgetPlatformDialog::show(m_dialog.data(), flags, modality, parent);
-}
-
-void QWidgetPlatformMessageDialog::hide()
-{
- m_dialog->hide();
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/widgets/qwidgetplatformmessagedialog_p.h b/src/imports/platform/widgets/qwidgetplatformmessagedialog_p.h
deleted file mode 100644
index 6581337a..00000000
--- a/src/imports/platform/widgets/qwidgetplatformmessagedialog_p.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORMMESSAGEDIALOG_P_H
-#define QWIDGETPLATFORMMESSAGEDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpa/qplatformdialoghelper.h>
-
-QT_BEGIN_NAMESPACE
-
-class QMessageBox;
-
-class QWidgetPlatformMessageDialog : public QPlatformMessageDialogHelper
-{
- Q_OBJECT
-
-public:
- explicit QWidgetPlatformMessageDialog(QObject *parent = nullptr);
- ~QWidgetPlatformMessageDialog();
-
- void exec() override;
- bool show(Qt::WindowFlags flags, Qt::WindowModality modality, QWindow *parent) override;
- void hide() override;
-
-private:
- QScopedPointer<QMessageBox> m_dialog;
-};
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORMMESSAGEDIALOG_P_H
diff --git a/src/imports/platform/widgets/qwidgetplatformsystemtrayicon.cpp b/src/imports/platform/widgets/qwidgetplatformsystemtrayicon.cpp
deleted file mode 100644
index e406ff03..00000000
--- a/src/imports/platform/widgets/qwidgetplatformsystemtrayicon.cpp
+++ /dev/null
@@ -1,118 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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 "qwidgetplatformsystemtrayicon_p.h"
-#include "qwidgetplatformmenu_p.h"
-
-#include <QtWidgets/qsystemtrayicon.h>
-
-QT_BEGIN_NAMESPACE
-
-QWidgetPlatformSystemTrayIcon::QWidgetPlatformSystemTrayIcon(QObject *parent)
- : m_systray(new QSystemTrayIcon)
-{
- setParent(parent);
-
- connect(m_systray.data(), &QSystemTrayIcon::messageClicked, this, &QPlatformSystemTrayIcon::messageClicked);
- connect(m_systray.data(), &QSystemTrayIcon::activated, [this](QSystemTrayIcon::ActivationReason reason) {
- emit activated(static_cast<ActivationReason>(reason));
- });
-}
-
-QWidgetPlatformSystemTrayIcon::~QWidgetPlatformSystemTrayIcon()
-{
-}
-
-void QWidgetPlatformSystemTrayIcon::init()
-{
- m_systray->show();
-}
-
-void QWidgetPlatformSystemTrayIcon::cleanup()
-{
- m_systray->hide();
-}
-
-void QWidgetPlatformSystemTrayIcon::updateIcon(const QIcon &icon)
-{
- m_systray->setIcon(icon);
-}
-
-void QWidgetPlatformSystemTrayIcon::updateToolTip(const QString &tooltip)
-{
- m_systray->setToolTip(tooltip);
-}
-
-void QWidgetPlatformSystemTrayIcon::updateMenu(QPlatformMenu *menu)
-{
-#if QT_CONFIG(menu)
- QWidgetPlatformMenu *widgetMenu = qobject_cast<QWidgetPlatformMenu *>(menu);
- if (!widgetMenu)
- return;
-
- m_systray->setContextMenu(widgetMenu->menu());
-#else
- Q_UNUSED(menu);
-#endif
-}
-
-QRect QWidgetPlatformSystemTrayIcon::geometry() const
-{
- return m_systray->geometry();
-}
-
-void QWidgetPlatformSystemTrayIcon::showMessage(const QString &title, const QString &msg, const QIcon &icon, MessageIcon iconType, int msecs)
-{
- Q_UNUSED(icon);
- m_systray->showMessage(title, msg, static_cast<QSystemTrayIcon::MessageIcon>(iconType), msecs);
-}
-
-bool QWidgetPlatformSystemTrayIcon::isSystemTrayAvailable() const
-{
- return QSystemTrayIcon::isSystemTrayAvailable();
-}
-
-bool QWidgetPlatformSystemTrayIcon::supportsMessages() const
-{
- return QSystemTrayIcon::supportsMessages();
-}
-
-QPlatformMenu *QWidgetPlatformSystemTrayIcon::createMenu() const
-{
- return new QWidgetPlatformMenu;
-}
-
-QT_END_NAMESPACE
diff --git a/src/imports/platform/widgets/qwidgetplatformsystemtrayicon_p.h b/src/imports/platform/widgets/qwidgetplatformsystemtrayicon_p.h
deleted file mode 100644
index 11ea5377..00000000
--- a/src/imports/platform/widgets/qwidgetplatformsystemtrayicon_p.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Labs Platform 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$
-**
-****************************************************************************/
-
-#ifndef QWIDGETPLATFORMSYSTEMTRAYICON_P_H
-#define QWIDGETPLATFORMSYSTEMTRAYICON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpa/qplatformsystemtrayicon.h>
-
-QT_REQUIRE_CONFIG(systemtrayicon);
-
-QT_BEGIN_NAMESPACE
-
-class QSystemTrayIcon;
-
-class QWidgetPlatformSystemTrayIcon : public QPlatformSystemTrayIcon
-{
- Q_OBJECT
-
-public:
- explicit QWidgetPlatformSystemTrayIcon(QObject *parent = nullptr);
- ~QWidgetPlatformSystemTrayIcon();
-
- void init() override;
- void cleanup() override;
- void updateIcon(const QIcon &icon) override;
- void updateToolTip(const QString &tooltip) override;
- void updateMenu(QPlatformMenu *menu) override;
- QRect geometry() const override;
- void showMessage(const QString &title, const QString &msg,
- const QIcon &icon, MessageIcon iconType, int msecs) override;
-
- bool isSystemTrayAvailable() const override;
- bool supportsMessages() const override;
-
- QPlatformMenu *createMenu() const override;
-
-private:
- QScopedPointer<QSystemTrayIcon> m_systray;
-};
-
-QT_END_NAMESPACE
-
-#endif // QWIDGETPLATFORMSYSTEMTRAYICON_P_H
diff --git a/src/imports/platform/widgets/widgets.pri b/src/imports/platform/widgets/widgets.pri
deleted file mode 100644
index 54ad7187..00000000
--- a/src/imports/platform/widgets/widgets.pri
+++ /dev/null
@@ -1,56 +0,0 @@
-QT += widgets
-DEPENDPATH += $$PWD
-
-HEADERS += \
- $$PWD/qwidgetplatform_p.h
-
-qtConfig(systemtrayicon) {
- HEADERS += \
- $$PWD/qwidgetplatformsystemtrayicon_p.h
- SOURCES += \
- $$PWD/qwidgetplatformsystemtrayicon.cpp
-}
-
-qtConfig(colordialog) | qtConfig(filedialog) | qtConfig(fontdialog) | qtConfig(messagebox) {
- HEADERS += \
- $$PWD/qwidgetplatformdialog_p.h
- SOURCES += \
- $$PWD/qwidgetplatformdialog.cpp
-}
-
-qtConfig(colordialog) {
- HEADERS += \
- $$PWD/qwidgetplatformcolordialog_p.h
- SOURCES += \
- $$PWD/qwidgetplatformcolordialog.cpp
-}
-
-qtConfig(filedialog) {
- HEADERS += \
- $$PWD/qwidgetplatformfiledialog_p.h
- SOURCES += \
- $$PWD/qwidgetplatformfiledialog.cpp
-}
-
-qtConfig(fontdialog) {
- HEADERS += \
- $$PWD/qwidgetplatformfontdialog_p.h
- SOURCES += \
- $$PWD/qwidgetplatformfontdialog.cpp
-}
-
-qtConfig(menu) {
- HEADERS += \
- $$PWD/qwidgetplatformmenu_p.h \
- $$PWD/qwidgetplatformmenuitem_p.h
- SOURCES += \
- $$PWD/qwidgetplatformmenu.cpp \
- $$PWD/qwidgetplatformmenuitem.cpp
-}
-
-qtConfig(messagebox) {
- HEADERS += \
- $$PWD/qwidgetplatformmessagedialog_p.h
- SOURCES += \
- $$PWD/qwidgetplatformmessagedialog.cpp
-}
diff --git a/src/imports/templates/dependencies.json b/src/imports/templates/dependencies.json
deleted file mode 100644
index a66ab72c..00000000
--- a/src/imports/templates/dependencies.json
+++ /dev/null
@@ -1,12 +0,0 @@
-[
- {
- "name": "QtQuick",
- "type": "module",
- "version": "2.9"
- },
- {
- "name": "QtQuick.Window",
- "type": "module",
- "version": "2.2"
- }
-]
diff --git a/src/imports/templates/doc/src/qtquicktemplates2-index.qdoc b/src/imports/templates/doc/src/qtquicktemplates2-index.qdoc
deleted file mode 100644
index 492785a4..00000000
--- a/src/imports/templates/doc/src/qtquicktemplates2-index.qdoc
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \page qtquicktemplates2-index.html
- \title Qt Quick Templates 2
- \brief A set of templates to create user interface controls in Qt Quick
-
- Qt Quick Templates are the foundations of \l {Qt Quick Controls}. Templates
- are non-visual implementations of controls' logic and behavior. They offer
- an interface to visualize the controls in QML using \l {Qt Quick}.
-
- Even though the templates aim to be as style-agnostic as possible, in some
- cases they have to make certain assumptions about the visual structure of
- a control. For example, a spinbox has buttons that increment and decrement
- the value of the spinbox. In order to implement the behavior of a spinbox,
- the spinbox template needs to know if the user is interacting with the up
- or down button. A visual implementation of the spinbox template merely needs
- to position the up and down buttons and visualize them in normal, pressed,
- and disabled states. Any input event handling and state processing is taken
- care of by the underlying template.
-
- \section1 Related Information
-
- \list
- \li \l{Qt Quick}
- \li \l{Qt Quick Controls}
- \li \l{Qt Quick Templates 2 QML Types}
- \endlist
-*/
diff --git a/src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc b/src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc
deleted file mode 100644
index 1288e937..00000000
--- a/src/imports/templates/doc/src/qtquicktemplates2-qmltypes.qdoc
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \qmlmodule QtQuick.Templates 2.5
- \title Qt Quick Templates 2 QML Types
- \ingroup qmlmodules
- \brief Provides QML types for templates (Qt Quick Templates).
-
- The \l {Qt Quick Templates 2} module provides a set of non-visual templates
- that can be used to build user interface controls in QML using \l {Qt Quick}.
-
- The QML types can be imported using the following import statement in your
- \c .qml file:
-
- \badcode
- import QtQuick.Templates 2.12 as T
- \endcode
-
- For the sake of clarity, there is a one-to-one mapping between the types
- provided by the \c QtQuick.Templates and \c QtQuick.Controls imports. For
- every type available in the \c QtQuick.Controls import, a non-visual template
- type by the same name exists in the \c QtQuick.Templates import.
-
- \note It is recommended to use a namespace for the templates import to avoid
- overlap with the types provided by the \c QtQuick.Controls import.
-
- \section1 QML Types
-
- \generatelist {qmltypesbymodule QtQuick.Controls}
-
- \section1 Related Information
-
- \list
- \li \l {Qt Quick Controls QML Types}
- \endlist
-
- \noautolist
-*/
diff --git a/src/imports/templates/plugins.qmltypes b/src/imports/templates/plugins.qmltypes
deleted file mode 100644
index 48e23edd..00000000
--- a/src/imports/templates/plugins.qmltypes
+++ /dev/null
@@ -1,1876 +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 -dependencies dependencies.json QtQuick.Templates 2.13'
-
-Module {
- dependencies: ["QtQuick 2.9", "QtQuick.Window 2.2"]
- Component {
- name: "QQuickAbstractButton"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/AbstractButton 2.0",
- "QtQuick.Templates/AbstractButton 2.2",
- "QtQuick.Templates/AbstractButton 2.3",
- "QtQuick.Templates/AbstractButton 2.4",
- "QtQuick.Templates/AbstractButton 2.5"
- ]
- exportMetaObjectRevisions: [0, 2, 3, 4, 5]
- Enum {
- name: "Display"
- values: {
- "IconOnly": 0,
- "TextOnly": 1,
- "TextBesideIcon": 2,
- "TextUnderIcon": 3
- }
- }
- Property { name: "text"; type: "string" }
- Property { name: "down"; type: "bool" }
- Property { name: "pressed"; type: "bool"; isReadonly: true }
- Property { name: "checked"; type: "bool" }
- Property { name: "checkable"; type: "bool" }
- Property { name: "autoExclusive"; type: "bool" }
- Property { name: "autoRepeat"; type: "bool" }
- Property { name: "indicator"; type: "QQuickItem"; isPointer: true }
- Property { name: "icon"; revision: 3; type: "QQuickIcon" }
- Property { name: "display"; revision: 3; type: "Display" }
- Property { name: "action"; revision: 3; type: "QQuickAction"; isPointer: true }
- Property { name: "autoRepeatDelay"; revision: 4; type: "int" }
- Property { name: "autoRepeatInterval"; revision: 4; type: "int" }
- Property { name: "pressX"; revision: 4; type: "double"; isReadonly: true }
- Property { name: "pressY"; revision: 4; type: "double"; isReadonly: true }
- Property { name: "implicitIndicatorWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitIndicatorHeight"; revision: 5; type: "double"; isReadonly: true }
- Signal { name: "pressed" }
- Signal { name: "released" }
- Signal { name: "canceled" }
- Signal { name: "clicked" }
- Signal { name: "pressAndHold" }
- Signal { name: "doubleClicked" }
- Signal { name: "toggled"; revision: 2 }
- Signal { name: "iconChanged"; revision: 3 }
- Signal { name: "displayChanged"; revision: 3 }
- Signal { name: "actionChanged"; revision: 3 }
- Signal { name: "autoRepeatDelayChanged"; revision: 4 }
- Signal { name: "autoRepeatIntervalChanged"; revision: 4 }
- Signal { name: "pressXChanged"; revision: 4 }
- Signal { name: "pressYChanged"; revision: 4 }
- Signal { name: "implicitIndicatorWidthChanged"; revision: 5 }
- Signal { name: "implicitIndicatorHeightChanged"; revision: 5 }
- Method { name: "toggle" }
- }
- Component {
- name: "QQuickAction"
- prototype: "QObject"
- exports: ["QtQuick.Templates/Action 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "text"; type: "string" }
- Property { name: "icon"; type: "QQuickIcon" }
- Property { name: "enabled"; type: "bool" }
- Property { name: "checked"; type: "bool" }
- Property { name: "checkable"; type: "bool" }
- Property { name: "shortcut"; type: "QVariant" }
- Signal {
- name: "textChanged"
- Parameter { name: "text"; type: "string" }
- }
- Signal {
- name: "iconChanged"
- Parameter { name: "icon"; type: "QQuickIcon" }
- }
- Signal {
- name: "enabledChanged"
- Parameter { name: "enabled"; type: "bool" }
- }
- Signal {
- name: "checkedChanged"
- Parameter { name: "checked"; type: "bool" }
- }
- Signal {
- name: "checkableChanged"
- Parameter { name: "checkable"; type: "bool" }
- }
- Signal {
- name: "shortcutChanged"
- Parameter { name: "shortcut"; type: "QKeySequence" }
- }
- Signal {
- name: "toggled"
- Parameter { name: "source"; type: "QObject"; isPointer: true }
- }
- Signal { name: "toggled" }
- Signal {
- name: "triggered"
- Parameter { name: "source"; type: "QObject"; isPointer: true }
- }
- Signal { name: "triggered" }
- Method {
- name: "toggle"
- Parameter { name: "source"; type: "QObject"; isPointer: true }
- }
- Method { name: "toggle" }
- Method {
- name: "trigger"
- Parameter { name: "source"; type: "QObject"; isPointer: true }
- }
- Method { name: "trigger" }
- }
- Component {
- name: "QQuickActionGroup"
- defaultProperty: "actions"
- prototype: "QObject"
- exports: ["QtQuick.Templates/ActionGroup 2.3"]
- exportMetaObjectRevisions: [0]
- attachedType: "QQuickActionGroupAttached"
- Property { name: "checkedAction"; type: "QQuickAction"; isPointer: true }
- Property { name: "actions"; type: "QQuickAction"; isList: true; isReadonly: true }
- Property { name: "exclusive"; type: "bool" }
- Property { name: "enabled"; type: "bool" }
- Signal {
- name: "triggered"
- Parameter { name: "action"; type: "QQuickAction"; isPointer: true }
- }
- Method {
- name: "addAction"
- Parameter { name: "action"; type: "QQuickAction"; isPointer: true }
- }
- Method {
- name: "removeAction"
- Parameter { name: "action"; type: "QQuickAction"; isPointer: true }
- }
- }
- Component {
- name: "QQuickActionGroupAttached"
- prototype: "QObject"
- Property { name: "group"; type: "QQuickActionGroup"; isPointer: true }
- }
- Component {
- name: "QQuickApplicationWindow"
- defaultProperty: "contentData"
- prototype: "QQuickWindowQmlImpl"
- exports: [
- "QtQuick.Templates/ApplicationWindow 2.0",
- "QtQuick.Templates/ApplicationWindow 2.3"
- ]
- exportMetaObjectRevisions: [0, 3]
- attachedType: "QQuickApplicationWindowAttached"
- Property { name: "background"; type: "QQuickItem"; isPointer: true }
- Property { name: "contentItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "contentData"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "activeFocusControl"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "header"; type: "QQuickItem"; isPointer: true }
- Property { name: "footer"; type: "QQuickItem"; isPointer: true }
- Property { name: "overlay"; type: "QQuickOverlay"; isReadonly: true; isPointer: true }
- Property { name: "font"; type: "QFont" }
- Property { name: "locale"; type: "QLocale" }
- Property { name: "palette"; revision: 3; type: "QPalette" }
- Property { name: "menuBar"; revision: 3; type: "QQuickItem"; isPointer: true }
- Signal { name: "paletteChanged"; revision: 3 }
- Signal { name: "menuBarChanged"; revision: 3 }
- }
- Component {
- name: "QQuickApplicationWindowAttached"
- prototype: "QObject"
- Property { name: "window"; type: "QQuickApplicationWindow"; isReadonly: true; isPointer: true }
- Property { name: "contentItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "activeFocusControl"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "header"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "footer"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "overlay"; type: "QQuickOverlay"; isReadonly: true; isPointer: true }
- Property { name: "menuBar"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- }
- Component {
- name: "QQuickBusyIndicator"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: ["QtQuick.Templates/BusyIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "running"; type: "bool" }
- }
- Component {
- name: "QQuickButton"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: ["QtQuick.Templates/Button 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "highlighted"; type: "bool" }
- Property { name: "flat"; type: "bool" }
- }
- Component {
- name: "QQuickButtonGroup"
- prototype: "QObject"
- exports: [
- "QtQuick.Templates/ButtonGroup 2.0",
- "QtQuick.Templates/ButtonGroup 2.1",
- "QtQuick.Templates/ButtonGroup 2.3",
- "QtQuick.Templates/ButtonGroup 2.4"
- ]
- exportMetaObjectRevisions: [0, 1, 3, 4]
- attachedType: "QQuickButtonGroupAttached"
- Property { name: "checkedButton"; type: "QQuickAbstractButton"; isPointer: true }
- Property { name: "buttons"; type: "QQuickAbstractButton"; isList: true; isReadonly: true }
- Property { name: "exclusive"; revision: 3; type: "bool" }
- Property { name: "checkState"; revision: 4; type: "Qt::CheckState" }
- Signal {
- name: "clicked"
- revision: 1
- Parameter { name: "button"; type: "QQuickAbstractButton"; isPointer: true }
- }
- Signal { name: "exclusiveChanged"; revision: 3 }
- Signal { name: "checkStateChanged"; revision: 4 }
- Method {
- name: "addButton"
- Parameter { name: "button"; type: "QQuickAbstractButton"; isPointer: true }
- }
- Method {
- name: "removeButton"
- Parameter { name: "button"; type: "QQuickAbstractButton"; isPointer: true }
- }
- }
- Component {
- name: "QQuickButtonGroupAttached"
- prototype: "QObject"
- Property { name: "group"; type: "QQuickButtonGroup"; isPointer: true }
- }
- Component {
- name: "QQuickCheckBox"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: [
- "QtQuick.Templates/CheckBox 2.0",
- "QtQuick.Templates/CheckBox 2.4"
- ]
- exportMetaObjectRevisions: [0, 4]
- Property { name: "tristate"; type: "bool" }
- Property { name: "checkState"; type: "Qt::CheckState" }
- Property { name: "nextCheckState"; revision: 4; type: "QJSValue" }
- Signal { name: "nextCheckStateChanged"; revision: 4 }
- }
- Component {
- name: "QQuickCheckDelegate"
- defaultProperty: "data"
- prototype: "QQuickItemDelegate"
- exports: [
- "QtQuick.Templates/CheckDelegate 2.0",
- "QtQuick.Templates/CheckDelegate 2.4"
- ]
- exportMetaObjectRevisions: [0, 4]
- Property { name: "tristate"; type: "bool" }
- Property { name: "checkState"; type: "Qt::CheckState" }
- Property { name: "nextCheckState"; revision: 4; type: "QJSValue" }
- Signal { name: "nextCheckStateChanged"; revision: 4 }
- }
- Component {
- name: "QQuickComboBox"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/ComboBox 2.0",
- "QtQuick.Templates/ComboBox 2.1",
- "QtQuick.Templates/ComboBox 2.2",
- "QtQuick.Templates/ComboBox 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 2, 5]
- Property { name: "count"; type: "int"; isReadonly: true }
- Property { name: "model"; type: "QVariant" }
- Property { name: "delegateModel"; type: "QQmlInstanceModel"; isReadonly: true; isPointer: true }
- Property { name: "pressed"; type: "bool" }
- Property { name: "highlightedIndex"; type: "int"; isReadonly: true }
- Property { name: "currentIndex"; type: "int" }
- Property { name: "currentText"; type: "string"; isReadonly: true }
- Property { name: "displayText"; type: "string" }
- Property { name: "textRole"; type: "string" }
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- Property { name: "indicator"; type: "QQuickItem"; isPointer: true }
- Property { name: "popup"; type: "QQuickPopup"; isPointer: true }
- Property { name: "flat"; revision: 1; type: "bool" }
- Property { name: "down"; revision: 2; type: "bool" }
- Property { name: "editable"; revision: 2; type: "bool" }
- Property { name: "editText"; revision: 2; type: "string" }
- Property { name: "validator"; revision: 2; type: "QValidator"; isPointer: true }
- Property { name: "inputMethodHints"; revision: 2; type: "Qt::InputMethodHints" }
- Property { name: "inputMethodComposing"; revision: 2; type: "bool"; isReadonly: true }
- Property { name: "acceptableInput"; revision: 2; type: "bool"; isReadonly: true }
- Property { name: "implicitIndicatorWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitIndicatorHeight"; revision: 5; type: "double"; isReadonly: true }
- Signal {
- name: "activated"
- Parameter { name: "index"; type: "int" }
- }
- Signal {
- name: "highlighted"
- Parameter { name: "index"; type: "int" }
- }
- Signal { name: "flatChanged"; revision: 1 }
- Signal { name: "accepted"; revision: 2 }
- Signal { name: "downChanged"; revision: 2 }
- Signal { name: "editableChanged"; revision: 2 }
- Signal { name: "editTextChanged"; revision: 2 }
- Signal { name: "validatorChanged"; revision: 2 }
- Signal { name: "inputMethodHintsChanged"; revision: 2 }
- Signal { name: "inputMethodComposingChanged"; revision: 2 }
- Signal { name: "acceptableInputChanged"; revision: 2 }
- Signal { name: "implicitIndicatorWidthChanged"; revision: 5 }
- Signal { name: "implicitIndicatorHeightChanged"; revision: 5 }
- Method { name: "incrementCurrentIndex" }
- Method { name: "decrementCurrentIndex" }
- Method { name: "selectAll"; revision: 2 }
- Method {
- name: "textAt"
- type: "string"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "find"
- type: "int"
- Parameter { name: "text"; type: "string" }
- Parameter { name: "flags"; type: "Qt::MatchFlags" }
- }
- Method {
- name: "find"
- type: "int"
- Parameter { name: "text"; type: "string" }
- }
- }
- Component {
- name: "QQuickContainer"
- defaultProperty: "contentData"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/Container 2.0",
- "QtQuick.Templates/Container 2.1",
- "QtQuick.Templates/Container 2.3",
- "QtQuick.Templates/Container 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 3, 5]
- Property { name: "count"; type: "int"; isReadonly: true }
- Property { name: "contentModel"; type: "QVariant"; isReadonly: true }
- Property { name: "contentData"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "contentChildren"; type: "QQuickItem"; isList: true; isReadonly: true }
- Property { name: "currentIndex"; type: "int" }
- Property { name: "currentItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "contentWidth"; revision: 5; type: "double" }
- Property { name: "contentHeight"; revision: 5; type: "double" }
- Signal { name: "contentWidthChanged"; revision: 5 }
- Signal { name: "contentHeightChanged"; revision: 5 }
- Method {
- name: "setCurrentIndex"
- Parameter { name: "index"; type: "int" }
- }
- Method { name: "incrementCurrentIndex"; revision: 1 }
- Method { name: "decrementCurrentIndex"; revision: 1 }
- 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: "item"; type: "QVariant" }
- }
- Method {
- name: "takeItem"
- revision: 3
- type: "QQuickItem*"
- Parameter { name: "index"; type: "int" }
- }
- }
- Component { name: "QQuickContentItem"; defaultProperty: "data"; prototype: "QQuickItem" }
- Component {
- name: "QQuickControl"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: [
- "QtQuick.Templates/Control 2.0",
- "QtQuick.Templates/Control 2.3",
- "QtQuick.Templates/Control 2.5"
- ]
- exportMetaObjectRevisions: [0, 3, 5]
- Property { name: "font"; type: "QFont" }
- Property { name: "availableWidth"; type: "double"; isReadonly: true }
- Property { name: "availableHeight"; type: "double"; isReadonly: true }
- Property { name: "padding"; type: "double" }
- Property { name: "topPadding"; type: "double" }
- Property { name: "leftPadding"; type: "double" }
- Property { name: "rightPadding"; type: "double" }
- Property { name: "bottomPadding"; type: "double" }
- Property { name: "spacing"; type: "double" }
- Property { name: "locale"; type: "QLocale" }
- Property { name: "mirrored"; type: "bool"; isReadonly: true }
- Property { name: "focusPolicy"; type: "Qt::FocusPolicy" }
- Property { name: "focusReason"; type: "Qt::FocusReason" }
- Property { name: "visualFocus"; type: "bool"; isReadonly: true }
- Property { name: "hovered"; type: "bool"; isReadonly: true }
- Property { name: "hoverEnabled"; type: "bool" }
- Property { name: "wheelEnabled"; type: "bool" }
- Property { name: "background"; type: "QQuickItem"; isPointer: true }
- Property { name: "contentItem"; type: "QQuickItem"; isPointer: true }
- Property { name: "baselineOffset"; type: "double" }
- Property { name: "palette"; revision: 3; type: "QPalette" }
- Property { name: "horizontalPadding"; revision: 5; type: "double" }
- Property { name: "verticalPadding"; revision: 5; type: "double" }
- Property { name: "implicitContentWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitContentHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "topInset"; revision: 5; type: "double" }
- Property { name: "leftInset"; revision: 5; type: "double" }
- Property { name: "rightInset"; revision: 5; type: "double" }
- Property { name: "bottomInset"; revision: 5; type: "double" }
- Signal { name: "paletteChanged"; revision: 3 }
- Signal { name: "horizontalPaddingChanged"; revision: 5 }
- Signal { name: "verticalPaddingChanged"; revision: 5 }
- Signal { name: "implicitContentWidthChanged"; revision: 5 }
- Signal { name: "implicitContentHeightChanged"; revision: 5 }
- Signal { name: "implicitBackgroundWidthChanged"; revision: 5 }
- Signal { name: "implicitBackgroundHeightChanged"; revision: 5 }
- Signal { name: "topInsetChanged"; revision: 5 }
- Signal { name: "leftInsetChanged"; revision: 5 }
- Signal { name: "rightInsetChanged"; revision: 5 }
- Signal { name: "bottomInsetChanged"; revision: 5 }
- }
- Component {
- name: "QQuickDelayButton"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: ["QtQuick.Templates/DelayButton 2.2"]
- exportMetaObjectRevisions: [0]
- Property { name: "delay"; type: "int" }
- Property { name: "progress"; type: "double" }
- Property { name: "transition"; type: "QQuickTransition"; isPointer: true }
- Signal { name: "activated" }
- }
- Component {
- name: "QQuickDial"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/Dial 2.0",
- "QtQuick.Templates/Dial 2.2",
- "QtQuick.Templates/Dial 2.5"
- ]
- exportMetaObjectRevisions: [0, 2, 5]
- Enum {
- name: "SnapMode"
- values: {
- "NoSnap": 0,
- "SnapAlways": 1,
- "SnapOnRelease": 2
- }
- }
- Enum {
- name: "InputMode"
- values: {
- "Circular": 0,
- "Horizontal": 1,
- "Vertical": 2
- }
- }
- Property { name: "from"; type: "double" }
- Property { name: "to"; type: "double" }
- Property { name: "value"; type: "double" }
- Property { name: "position"; type: "double"; isReadonly: true }
- Property { name: "angle"; type: "double"; isReadonly: true }
- Property { name: "stepSize"; type: "double" }
- Property { name: "snapMode"; type: "SnapMode" }
- Property { name: "wrap"; type: "bool" }
- Property { name: "pressed"; type: "bool"; isReadonly: true }
- Property { name: "handle"; type: "QQuickItem"; isPointer: true }
- Property { name: "live"; revision: 2; type: "bool" }
- Property { name: "inputMode"; revision: 5; type: "InputMode" }
- Signal { name: "moved"; revision: 2 }
- Signal { name: "liveChanged"; revision: 2 }
- Signal { name: "inputModeChanged"; revision: 5 }
- Method { name: "increase" }
- Method { name: "decrease" }
- }
- Component {
- name: "QQuickDialog"
- defaultProperty: "contentData"
- prototype: "QQuickPopup"
- exports: [
- "QtQuick.Templates/Dialog 2.1",
- "QtQuick.Templates/Dialog 2.3",
- "QtQuick.Templates/Dialog 2.5"
- ]
- exportMetaObjectRevisions: [0, 3, 5]
- Enum {
- name: "StandardCode"
- values: {
- "Rejected": 0,
- "Accepted": 1
- }
- }
- Property { name: "title"; type: "string" }
- Property { name: "header"; type: "QQuickItem"; isPointer: true }
- Property { name: "footer"; type: "QQuickItem"; isPointer: true }
- Property { name: "standardButtons"; type: "QPlatformDialogHelper::StandardButtons" }
- Property { name: "result"; revision: 3; type: "int" }
- Property { name: "implicitHeaderWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitHeaderHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitFooterWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitFooterHeight"; revision: 5; type: "double"; isReadonly: true }
- Signal { name: "accepted" }
- Signal { name: "rejected" }
- Signal { name: "applied"; revision: 3 }
- Signal { name: "reset"; revision: 3 }
- Signal { name: "discarded"; revision: 3 }
- Signal { name: "helpRequested"; revision: 3 }
- Signal { name: "resultChanged"; revision: 3 }
- Method { name: "accept" }
- Method { name: "reject" }
- Method {
- name: "done"
- Parameter { name: "result"; type: "int" }
- }
- Method {
- name: "standardButton"
- revision: 3
- type: "QQuickAbstractButton*"
- Parameter { name: "button"; type: "QPlatformDialogHelper::StandardButton" }
- }
- }
- Component {
- name: "QQuickDialogButtonBox"
- defaultProperty: "contentData"
- prototype: "QQuickContainer"
- exports: [
- "QtQuick.Templates/DialogButtonBox 2.1",
- "QtQuick.Templates/DialogButtonBox 2.3",
- "QtQuick.Templates/DialogButtonBox 2.5"
- ]
- exportMetaObjectRevisions: [0, 3, 5]
- attachedType: "QQuickDialogButtonBoxAttached"
- Enum {
- name: "Position"
- values: {
- "Header": 0,
- "Footer": 1
- }
- }
- Property { name: "position"; type: "Position" }
- Property { name: "alignment"; type: "Qt::Alignment" }
- Property { name: "standardButtons"; type: "QPlatformDialogHelper::StandardButtons" }
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- Property { name: "buttonLayout"; revision: 5; type: "QPlatformDialogHelper::ButtonLayout" }
- Signal { name: "accepted" }
- Signal { name: "rejected" }
- Signal { name: "helpRequested" }
- Signal {
- name: "clicked"
- Parameter { name: "button"; type: "QQuickAbstractButton"; isPointer: true }
- }
- Signal { name: "applied"; revision: 3 }
- Signal { name: "reset"; revision: 3 }
- Signal { name: "discarded"; revision: 3 }
- Signal { name: "buttonLayoutChanged"; revision: 5 }
- Method {
- name: "standardButton"
- type: "QQuickAbstractButton*"
- Parameter { name: "button"; type: "QPlatformDialogHelper::StandardButton" }
- }
- }
- Component {
- name: "QQuickDialogButtonBoxAttached"
- prototype: "QObject"
- Property { name: "buttonBox"; type: "QQuickDialogButtonBox"; isReadonly: true; isPointer: true }
- Property { name: "buttonRole"; type: "QPlatformDialogHelper::ButtonRole" }
- }
- Component {
- name: "QQuickDrawer"
- defaultProperty: "contentData"
- prototype: "QQuickPopup"
- exports: [
- "QtQuick.Templates/Drawer 2.0",
- "QtQuick.Templates/Drawer 2.2"
- ]
- exportMetaObjectRevisions: [0, 2]
- Property { name: "edge"; type: "Qt::Edge" }
- Property { name: "position"; type: "double" }
- Property { name: "dragMargin"; type: "double" }
- Property { name: "interactive"; revision: 2; type: "bool" }
- Signal { name: "interactiveChanged"; revision: 2 }
- }
- Component {
- name: "QQuickFrame"
- defaultProperty: "contentData"
- prototype: "QQuickPane"
- exports: ["QtQuick.Templates/Frame 2.0"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickGroupBox"
- defaultProperty: "contentData"
- prototype: "QQuickFrame"
- exports: [
- "QtQuick.Templates/GroupBox 2.0",
- "QtQuick.Templates/GroupBox 2.5"
- ]
- exportMetaObjectRevisions: [0, 5]
- Property { name: "title"; type: "string" }
- Property { name: "label"; type: "QQuickItem"; isPointer: true }
- Property { name: "implicitLabelWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitLabelHeight"; revision: 5; type: "double"; isReadonly: true }
- Signal { name: "implicitLabelWidthChanged"; revision: 5 }
- Signal { name: "implicitLabelHeightChanged"; revision: 5 }
- }
- Component {
- name: "QQuickIcon"
- Property { name: "name"; type: "string" }
- Property { name: "source"; type: "QUrl" }
- Property { name: "width"; type: "int" }
- Property { name: "height"; type: "int" }
- Property { name: "color"; type: "QColor" }
- Property { name: "cache"; type: "bool" }
- }
- Component {
- name: "QQuickItemDelegate"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: ["QtQuick.Templates/ItemDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "highlighted"; type: "bool" }
- }
- Component {
- name: "QQuickLabel"
- defaultProperty: "data"
- prototype: "QQuickText"
- exports: [
- "QtQuick.Templates/Label 2.0",
- "QtQuick.Templates/Label 2.3",
- "QtQuick.Templates/Label 2.5"
- ]
- exportMetaObjectRevisions: [0, 3, 5]
- Property { name: "font"; type: "QFont" }
- Property { name: "background"; type: "QQuickItem"; isPointer: true }
- Property { name: "palette"; revision: 3; type: "QPalette" }
- Property { name: "implicitBackgroundWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "topInset"; revision: 5; type: "double" }
- Property { name: "leftInset"; revision: 5; type: "double" }
- Property { name: "rightInset"; revision: 5; type: "double" }
- Property { name: "bottomInset"; revision: 5; type: "double" }
- Signal { name: "paletteChanged"; revision: 3 }
- Signal { name: "implicitBackgroundWidthChanged"; revision: 5 }
- Signal { name: "implicitBackgroundHeightChanged"; revision: 5 }
- Signal { name: "topInsetChanged"; revision: 5 }
- Signal { name: "leftInsetChanged"; revision: 5 }
- Signal { name: "rightInsetChanged"; revision: 5 }
- Signal { name: "bottomInsetChanged"; revision: 5 }
- }
- Component {
- name: "QQuickMenu"
- defaultProperty: "contentData"
- prototype: "QQuickPopup"
- exports: ["QtQuick.Templates/Menu 2.0", "QtQuick.Templates/Menu 2.3"]
- exportMetaObjectRevisions: [0, 3]
- Property { name: "contentModel"; type: "QVariant"; isReadonly: true }
- Property { name: "contentData"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "title"; type: "string" }
- Property { name: "count"; revision: 3; type: "int"; isReadonly: true }
- Property { name: "cascade"; revision: 3; type: "bool" }
- Property { name: "overlap"; revision: 3; type: "double" }
- Property { name: "delegate"; revision: 3; type: "QQmlComponent"; isPointer: true }
- Property { name: "currentIndex"; revision: 3; type: "int" }
- Signal {
- name: "titleChanged"
- Parameter { name: "title"; type: "string" }
- }
- Signal { name: "countChanged"; revision: 3 }
- Signal {
- name: "cascadeChanged"
- revision: 3
- Parameter { name: "cascade"; type: "bool" }
- }
- Signal { name: "overlapChanged"; revision: 3 }
- Signal { name: "delegateChanged"; revision: 3 }
- Signal { name: "currentIndexChanged"; revision: 3 }
- 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: "item"; type: "QVariant" }
- }
- Method {
- name: "takeItem"
- revision: 3
- type: "QQuickItem*"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "menuAt"
- revision: 3
- type: "QQuickMenu*"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "addMenu"
- revision: 3
- Parameter { name: "menu"; type: "QQuickMenu"; isPointer: true }
- }
- Method {
- name: "insertMenu"
- revision: 3
- Parameter { name: "index"; type: "int" }
- Parameter { name: "menu"; type: "QQuickMenu"; isPointer: true }
- }
- Method {
- name: "removeMenu"
- revision: 3
- Parameter { name: "menu"; type: "QQuickMenu"; isPointer: true }
- }
- Method {
- name: "takeMenu"
- revision: 3
- type: "QQuickMenu*"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "actionAt"
- revision: 3
- type: "QQuickAction*"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "addAction"
- revision: 3
- Parameter { name: "action"; type: "QQuickAction"; isPointer: true }
- }
- Method {
- name: "insertAction"
- revision: 3
- Parameter { name: "index"; type: "int" }
- Parameter { name: "action"; type: "QQuickAction"; isPointer: true }
- }
- Method {
- name: "removeAction"
- revision: 3
- Parameter { name: "action"; type: "QQuickAction"; isPointer: true }
- }
- Method {
- name: "takeAction"
- revision: 3
- type: "QQuickAction*"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "popup"
- revision: 3
- Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
- }
- Method { name: "dismiss"; revision: 3 }
- }
- Component {
- name: "QQuickMenuBar"
- defaultProperty: "contentData"
- prototype: "QQuickContainer"
- exports: ["QtQuick.Templates/MenuBar 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- Property { name: "contentWidth"; type: "double" }
- Property { name: "contentHeight"; type: "double" }
- Property { name: "menus"; type: "QQuickMenu"; isList: true; isReadonly: true }
- Property { name: "contentData"; type: "QObject"; isList: true; isReadonly: true }
- Method {
- name: "menuAt"
- type: "QQuickMenu*"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "addMenu"
- Parameter { name: "menu"; type: "QQuickMenu"; isPointer: true }
- }
- Method {
- name: "insertMenu"
- Parameter { name: "index"; type: "int" }
- Parameter { name: "menu"; type: "QQuickMenu"; isPointer: true }
- }
- Method {
- name: "removeMenu"
- Parameter { name: "menu"; type: "QQuickMenu"; isPointer: true }
- }
- Method {
- name: "takeMenu"
- type: "QQuickMenu*"
- Parameter { name: "index"; type: "int" }
- }
- }
- Component {
- name: "QQuickMenuBarItem"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: ["QtQuick.Templates/MenuBarItem 2.3"]
- exportMetaObjectRevisions: [0]
- Property { name: "menuBar"; type: "QQuickMenuBar"; isReadonly: true; isPointer: true }
- Property { name: "menu"; type: "QQuickMenu"; isPointer: true }
- Property { name: "highlighted"; type: "bool" }
- Signal { name: "triggered" }
- }
- Component {
- name: "QQuickMenuItem"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: [
- "QtQuick.Templates/MenuItem 2.0",
- "QtQuick.Templates/MenuItem 2.3"
- ]
- exportMetaObjectRevisions: [0, 3]
- Property { name: "highlighted"; type: "bool" }
- Property { name: "arrow"; revision: 3; type: "QQuickItem"; isPointer: true }
- Property { name: "menu"; revision: 3; type: "QQuickMenu"; isReadonly: true; isPointer: true }
- Property { name: "subMenu"; revision: 3; type: "QQuickMenu"; isReadonly: true; isPointer: true }
- Signal { name: "triggered" }
- Signal { name: "arrowChanged"; revision: 3 }
- Signal { name: "menuChanged"; revision: 3 }
- Signal { name: "subMenuChanged"; revision: 3 }
- }
- Component {
- name: "QQuickMenuSeparator"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: ["QtQuick.Templates/MenuSeparator 2.1"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickOverlay"
- defaultProperty: "data"
- prototype: "QQuickItem"
- exports: ["QtQuick.Templates/Overlay 2.3"]
- isCreatable: false
- exportMetaObjectRevisions: [0]
- attachedType: "QQuickOverlayAttached"
- Property { name: "modal"; type: "QQmlComponent"; isPointer: true }
- Property { name: "modeless"; type: "QQmlComponent"; isPointer: true }
- Signal { name: "pressed" }
- Signal { name: "released" }
- }
- Component {
- name: "QQuickOverlayAttached"
- prototype: "QObject"
- Property { name: "overlay"; type: "QQuickOverlay"; isReadonly: true; isPointer: true }
- Property { name: "modal"; type: "QQmlComponent"; isPointer: true }
- Property { name: "modeless"; type: "QQmlComponent"; isPointer: true }
- Signal { name: "pressed" }
- Signal { name: "released" }
- }
- Component {
- name: "QQuickPage"
- defaultProperty: "contentData"
- prototype: "QQuickPane"
- exports: [
- "QtQuick.Templates/Page 2.0",
- "QtQuick.Templates/Page 2.1",
- "QtQuick.Templates/Page 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 5]
- Property { name: "title"; type: "string" }
- Property { name: "header"; type: "QQuickItem"; isPointer: true }
- Property { name: "footer"; type: "QQuickItem"; isPointer: true }
- Property { name: "contentWidth"; revision: 1; type: "double" }
- Property { name: "contentHeight"; revision: 1; type: "double" }
- Property { name: "implicitHeaderWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitHeaderHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitFooterWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitFooterHeight"; revision: 5; type: "double"; isReadonly: true }
- }
- Component {
- name: "QQuickPageIndicator"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: ["QtQuick.Templates/PageIndicator 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "count"; type: "int" }
- Property { name: "currentIndex"; type: "int" }
- Property { name: "interactive"; type: "bool" }
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- }
- Component {
- name: "QQuickPane"
- defaultProperty: "contentData"
- prototype: "QQuickControl"
- exports: ["QtQuick.Templates/Pane 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "contentWidth"; type: "double" }
- Property { name: "contentHeight"; type: "double" }
- Property { name: "contentData"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "contentChildren"; type: "QQuickItem"; isList: true; isReadonly: true }
- }
- Component {
- name: "QQuickPopup"
- defaultProperty: "contentData"
- prototype: "QObject"
- exports: [
- "QtQuick.Templates/Popup 2.0",
- "QtQuick.Templates/Popup 2.1",
- "QtQuick.Templates/Popup 2.3",
- "QtQuick.Templates/Popup 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 3, 5]
- Enum {
- name: "ClosePolicy"
- values: {
- "NoAutoClose": 0,
- "CloseOnPressOutside": 1,
- "CloseOnPressOutsideParent": 2,
- "CloseOnReleaseOutside": 4,
- "CloseOnReleaseOutsideParent": 8,
- "CloseOnEscape": 16
- }
- }
- Enum {
- name: "TransformOrigin"
- values: {
- "TopLeft": 0,
- "Top": 1,
- "TopRight": 2,
- "Left": 3,
- "Center": 4,
- "Right": 5,
- "BottomLeft": 6,
- "Bottom": 7,
- "BottomRight": 8
- }
- }
- Property { name: "x"; type: "double" }
- Property { name: "y"; type: "double" }
- Property { name: "z"; type: "double" }
- Property { name: "width"; type: "double" }
- Property { name: "height"; type: "double" }
- Property { name: "implicitWidth"; type: "double" }
- Property { name: "implicitHeight"; type: "double" }
- Property { name: "contentWidth"; type: "double" }
- Property { name: "contentHeight"; type: "double" }
- Property { name: "availableWidth"; type: "double"; isReadonly: true }
- Property { name: "availableHeight"; type: "double"; isReadonly: true }
- Property { name: "margins"; type: "double" }
- Property { name: "topMargin"; type: "double" }
- Property { name: "leftMargin"; type: "double" }
- Property { name: "rightMargin"; type: "double" }
- Property { name: "bottomMargin"; type: "double" }
- Property { name: "padding"; type: "double" }
- Property { name: "topPadding"; type: "double" }
- Property { name: "leftPadding"; type: "double" }
- Property { name: "rightPadding"; type: "double" }
- Property { name: "bottomPadding"; type: "double" }
- Property { name: "locale"; type: "QLocale" }
- Property { name: "font"; type: "QFont" }
- Property { name: "parent"; type: "QQuickItem"; isPointer: true }
- Property { name: "background"; type: "QQuickItem"; isPointer: true }
- Property { name: "contentItem"; type: "QQuickItem"; isPointer: true }
- Property { name: "contentData"; type: "QObject"; isList: true; isReadonly: true }
- Property { name: "contentChildren"; type: "QQuickItem"; isList: true; isReadonly: true }
- Property { name: "clip"; type: "bool" }
- Property { name: "focus"; type: "bool" }
- Property { name: "activeFocus"; type: "bool"; isReadonly: true }
- Property { name: "modal"; type: "bool" }
- Property { name: "dim"; type: "bool" }
- Property { name: "visible"; type: "bool" }
- Property { name: "opacity"; type: "double" }
- Property { name: "scale"; type: "double" }
- Property { name: "closePolicy"; type: "ClosePolicy" }
- Property { name: "transformOrigin"; type: "TransformOrigin" }
- Property { name: "enter"; type: "QQuickTransition"; isPointer: true }
- Property { name: "exit"; type: "QQuickTransition"; isPointer: true }
- Property { name: "spacing"; revision: 1; type: "double" }
- Property { name: "opened"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "mirrored"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "enabled"; revision: 3; type: "bool" }
- Property { name: "palette"; revision: 3; type: "QPalette" }
- Property { name: "horizontalPadding"; type: "double" }
- Property { name: "verticalPadding"; type: "double" }
- Property {
- name: "anchors"
- revision: 5
- type: "QQuickPopupAnchors"
- isReadonly: true
- isPointer: true
- }
- Property { name: "implicitContentWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitContentHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "topInset"; revision: 5; type: "double" }
- Property { name: "leftInset"; revision: 5; type: "double" }
- Property { name: "rightInset"; revision: 5; type: "double" }
- Property { name: "bottomInset"; revision: 5; type: "double" }
- Signal { name: "opened" }
- Signal { name: "closed" }
- Signal { name: "aboutToShow" }
- Signal { name: "aboutToHide" }
- Signal {
- name: "windowChanged"
- Parameter { name: "window"; type: "QQuickWindow"; isPointer: true }
- }
- Signal { name: "spacingChanged"; revision: 1 }
- Signal { name: "openedChanged"; revision: 3 }
- Signal { name: "mirroredChanged"; revision: 3 }
- Signal { name: "enabledChanged"; revision: 3 }
- Signal { name: "paletteChanged"; revision: 3 }
- Signal { name: "horizontalPaddingChanged"; revision: 5 }
- Signal { name: "verticalPaddingChanged"; revision: 5 }
- Signal { name: "implicitContentWidthChanged"; revision: 5 }
- Signal { name: "implicitContentHeightChanged"; revision: 5 }
- Signal { name: "implicitBackgroundWidthChanged"; revision: 5 }
- Signal { name: "implicitBackgroundHeightChanged"; revision: 5 }
- Signal { name: "topInsetChanged"; revision: 5 }
- Signal { name: "leftInsetChanged"; revision: 5 }
- Signal { name: "rightInsetChanged"; revision: 5 }
- Signal { name: "bottomInsetChanged"; revision: 5 }
- Method { name: "open" }
- Method { name: "close" }
- Method {
- name: "forceActiveFocus"
- Parameter { name: "reason"; type: "Qt::FocusReason" }
- }
- Method { name: "forceActiveFocus" }
- }
- Component {
- name: "QQuickPopupAnchors"
- prototype: "QObject"
- Property { name: "centerIn"; type: "QQuickItem"; isPointer: true }
- }
- Component {
- name: "QQuickProgressBar"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: ["QtQuick.Templates/ProgressBar 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "from"; type: "double" }
- Property { name: "to"; type: "double" }
- Property { name: "value"; type: "double" }
- Property { name: "position"; type: "double"; isReadonly: true }
- Property { name: "visualPosition"; type: "double"; isReadonly: true }
- Property { name: "indeterminate"; type: "bool" }
- }
- Component {
- name: "QQuickRadioButton"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: ["QtQuick.Templates/RadioButton 2.0"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickRadioDelegate"
- defaultProperty: "data"
- prototype: "QQuickItemDelegate"
- exports: ["QtQuick.Templates/RadioDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickRangeSlider"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/RangeSlider 2.0",
- "QtQuick.Templates/RangeSlider 2.1",
- "QtQuick.Templates/RangeSlider 2.2",
- "QtQuick.Templates/RangeSlider 2.3",
- "QtQuick.Templates/RangeSlider 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 2, 3, 5]
- Enum {
- name: "SnapMode"
- values: {
- "NoSnap": 0,
- "SnapAlways": 1,
- "SnapOnRelease": 2
- }
- }
- Property { name: "from"; type: "double" }
- Property { name: "to"; type: "double" }
- Property { name: "first"; type: "QQuickRangeSliderNode"; isReadonly: true; isPointer: true }
- Property { name: "second"; type: "QQuickRangeSliderNode"; isReadonly: true; isPointer: true }
- Property { name: "stepSize"; type: "double" }
- Property { name: "snapMode"; type: "SnapMode" }
- Property { name: "orientation"; type: "Qt::Orientation" }
- Property { name: "live"; revision: 2; type: "bool" }
- Property { name: "horizontal"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "vertical"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "touchDragThreshold"; revision: 5; type: "double" }
- Signal { name: "liveChanged"; revision: 2 }
- Signal { name: "touchDragThresholdChanged"; revision: 5 }
- Method {
- name: "setValues"
- Parameter { name: "firstValue"; type: "double" }
- Parameter { name: "secondValue"; type: "double" }
- }
- Method {
- name: "valueAt"
- revision: 5
- type: "double"
- Parameter { name: "position"; type: "double" }
- }
- }
- Component {
- name: "QQuickRangeSliderNode"
- prototype: "QObject"
- Property { name: "value"; type: "double" }
- Property { name: "position"; type: "double"; isReadonly: true }
- Property { name: "visualPosition"; type: "double"; isReadonly: true }
- Property { name: "handle"; type: "QQuickItem"; isPointer: true }
- Property { name: "pressed"; type: "bool" }
- Property { name: "hovered"; revision: 1; type: "bool" }
- Property { name: "implicitHandleWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitHandleHeight"; revision: 5; type: "double"; isReadonly: true }
- Signal { name: "hoveredChanged"; revision: 1 }
- Signal { name: "moved" }
- Method { name: "increase" }
- Method { name: "decrease" }
- }
- Component {
- name: "QQuickRoundButton"
- defaultProperty: "data"
- prototype: "QQuickButton"
- exports: ["QtQuick.Templates/RoundButton 2.1"]
- exportMetaObjectRevisions: [0]
- Property { name: "radius"; type: "double" }
- }
- Component {
- name: "QQuickScrollBar"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/ScrollBar 2.0",
- "QtQuick.Templates/ScrollBar 2.2",
- "QtQuick.Templates/ScrollBar 2.3",
- "QtQuick.Templates/ScrollBar 2.4"
- ]
- exportMetaObjectRevisions: [0, 2, 3, 4]
- attachedType: "QQuickScrollBarAttached"
- Enum {
- name: "SnapMode"
- values: {
- "NoSnap": 0,
- "SnapAlways": 1,
- "SnapOnRelease": 2
- }
- }
- Enum {
- name: "Policy"
- values: {
- "AsNeeded": 0,
- "AlwaysOff": 1,
- "AlwaysOn": 2
- }
- }
- Property { name: "size"; type: "double" }
- Property { name: "position"; type: "double" }
- Property { name: "stepSize"; type: "double" }
- Property { name: "active"; type: "bool" }
- Property { name: "pressed"; type: "bool" }
- Property { name: "orientation"; type: "Qt::Orientation" }
- Property { name: "snapMode"; revision: 2; type: "SnapMode" }
- Property { name: "interactive"; revision: 2; type: "bool" }
- Property { name: "policy"; revision: 2; type: "Policy" }
- Property { name: "horizontal"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "vertical"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "minimumSize"; revision: 4; type: "double" }
- Property { name: "visualSize"; revision: 4; type: "double"; isReadonly: true }
- Property { name: "visualPosition"; revision: 4; type: "double"; isReadonly: true }
- Signal { name: "snapModeChanged"; revision: 2 }
- Signal { name: "interactiveChanged"; revision: 2 }
- Signal { name: "policyChanged"; revision: 2 }
- Signal { name: "minimumSizeChanged"; revision: 4 }
- Signal { name: "visualSizeChanged"; revision: 4 }
- Signal { name: "visualPositionChanged"; revision: 4 }
- Method { name: "increase" }
- Method { name: "decrease" }
- Method {
- name: "setSize"
- Parameter { name: "size"; type: "double" }
- }
- Method {
- name: "setPosition"
- Parameter { name: "position"; type: "double" }
- }
- }
- Component {
- name: "QQuickScrollBarAttached"
- prototype: "QObject"
- Property { name: "horizontal"; type: "QQuickScrollBar"; isPointer: true }
- Property { name: "vertical"; type: "QQuickScrollBar"; isPointer: true }
- }
- Component {
- name: "QQuickScrollIndicator"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/ScrollIndicator 2.0",
- "QtQuick.Templates/ScrollIndicator 2.3",
- "QtQuick.Templates/ScrollIndicator 2.4"
- ]
- exportMetaObjectRevisions: [0, 3, 4]
- attachedType: "QQuickScrollIndicatorAttached"
- Property { name: "size"; type: "double" }
- Property { name: "position"; type: "double" }
- Property { name: "active"; type: "bool" }
- Property { name: "orientation"; type: "Qt::Orientation" }
- Property { name: "horizontal"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "vertical"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "minimumSize"; revision: 4; type: "double" }
- Property { name: "visualSize"; revision: 4; type: "double"; isReadonly: true }
- Property { name: "visualPosition"; revision: 4; type: "double"; isReadonly: true }
- Signal { name: "minimumSizeChanged"; revision: 4 }
- Signal { name: "visualSizeChanged"; revision: 4 }
- Signal { name: "visualPositionChanged"; revision: 4 }
- Method {
- name: "setSize"
- Parameter { name: "size"; type: "double" }
- }
- Method {
- name: "setPosition"
- Parameter { name: "position"; type: "double" }
- }
- }
- Component {
- name: "QQuickScrollIndicatorAttached"
- prototype: "QObject"
- Property { name: "horizontal"; type: "QQuickScrollIndicator"; isPointer: true }
- Property { name: "vertical"; type: "QQuickScrollIndicator"; isPointer: true }
- }
- Component {
- name: "QQuickScrollView"
- defaultProperty: "contentData"
- prototype: "QQuickPane"
- exports: ["QtQuick.Templates/ScrollView 2.2"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickSlider"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/Slider 2.0",
- "QtQuick.Templates/Slider 2.1",
- "QtQuick.Templates/Slider 2.2",
- "QtQuick.Templates/Slider 2.3",
- "QtQuick.Templates/Slider 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 2, 3, 5]
- Enum {
- name: "SnapMode"
- values: {
- "NoSnap": 0,
- "SnapAlways": 1,
- "SnapOnRelease": 2
- }
- }
- Property { name: "from"; type: "double" }
- Property { name: "to"; type: "double" }
- Property { name: "value"; type: "double" }
- Property { name: "position"; type: "double"; isReadonly: true }
- Property { name: "visualPosition"; type: "double"; isReadonly: true }
- Property { name: "stepSize"; type: "double" }
- Property { name: "snapMode"; type: "SnapMode" }
- Property { name: "pressed"; type: "bool" }
- Property { name: "orientation"; type: "Qt::Orientation" }
- Property { name: "handle"; type: "QQuickItem"; isPointer: true }
- Property { name: "live"; revision: 2; type: "bool" }
- Property { name: "horizontal"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "vertical"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "touchDragThreshold"; revision: 5; type: "double" }
- Property { name: "implicitHandleWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitHandleHeight"; revision: 5; type: "double"; isReadonly: true }
- Signal { name: "moved"; revision: 2 }
- Signal { name: "liveChanged"; revision: 2 }
- Signal { name: "touchDragThresholdChanged"; revision: 5 }
- Signal { name: "implicitHandleWidthChanged"; revision: 5 }
- Signal { name: "implicitHandleHeightChanged"; revision: 5 }
- Method { name: "increase" }
- Method { name: "decrease" }
- Method {
- name: "valueAt"
- revision: 1
- type: "double"
- Parameter { name: "position"; type: "double" }
- }
- }
- Component {
- name: "QQuickSpinBox"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/SpinBox 2.0",
- "QtQuick.Templates/SpinBox 2.1",
- "QtQuick.Templates/SpinBox 2.2",
- "QtQuick.Templates/SpinBox 2.3",
- "QtQuick.Templates/SpinBox 2.4",
- "QtQuick.Templates/SpinBox 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 2, 3, 4, 5]
- Property { name: "from"; type: "int" }
- Property { name: "to"; type: "int" }
- Property { name: "value"; type: "int" }
- Property { name: "stepSize"; type: "int" }
- Property { name: "editable"; type: "bool" }
- Property { name: "validator"; type: "QValidator"; isPointer: true }
- Property { name: "textFromValue"; type: "QJSValue" }
- Property { name: "valueFromText"; type: "QJSValue" }
- Property { name: "up"; type: "QQuickSpinButton"; isReadonly: true; isPointer: true }
- Property { name: "down"; type: "QQuickSpinButton"; isReadonly: true; isPointer: true }
- Property { name: "inputMethodHints"; revision: 2; type: "Qt::InputMethodHints" }
- Property { name: "inputMethodComposing"; revision: 2; type: "bool"; isReadonly: true }
- Property { name: "wrap"; revision: 3; type: "bool" }
- Property { name: "displayText"; revision: 4; type: "string"; isReadonly: true }
- Signal { name: "valueModified"; revision: 2 }
- Signal { name: "inputMethodHintsChanged"; revision: 2 }
- Signal { name: "inputMethodComposingChanged"; revision: 2 }
- Signal { name: "wrapChanged"; revision: 3 }
- Signal { name: "displayTextChanged"; revision: 4 }
- Method { name: "increase" }
- Method { name: "decrease" }
- }
- Component {
- name: "QQuickSpinButton"
- prototype: "QObject"
- Property { name: "pressed"; type: "bool" }
- Property { name: "indicator"; type: "QQuickItem"; isPointer: true }
- Property { name: "hovered"; revision: 1; type: "bool" }
- Property { name: "implicitIndicatorWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitIndicatorHeight"; revision: 5; type: "double"; isReadonly: true }
- Signal { name: "hoveredChanged"; revision: 1 }
- Signal { name: "implicitIndicatorWidthChanged"; revision: 5 }
- Signal { name: "implicitIndicatorHeightChanged"; revision: 5 }
- }
- Component {
- name: "QQuickSplitHandleAttached"
- prototype: "QObject"
- exports: ["QtQuick.Templates/SplitHandle 2.13"]
- isCreatable: false
- exportMetaObjectRevisions: [0]
- Property { name: "hovered"; type: "bool"; isReadonly: true }
- Property { name: "pressed"; type: "bool"; isReadonly: true }
- }
- Component {
- name: "QQuickSplitView"
- defaultProperty: "contentData"
- prototype: "QQuickContainer"
- exports: ["QtQuick.Templates/SplitView 2.13"]
- exportMetaObjectRevisions: [0]
- attachedType: "QQuickSplitViewAttached"
- Property { name: "orientation"; type: "Qt::Orientation" }
- Property { name: "resizing"; type: "bool"; isReadonly: true }
- Property { name: "handle"; type: "QQmlComponent"; isPointer: true }
- Method { name: "saveState"; type: "QVariant" }
- Method {
- name: "restoreState"
- type: "bool"
- Parameter { name: "state"; type: "QVariant" }
- }
- }
- Component {
- name: "QQuickSplitViewAttached"
- prototype: "QObject"
- Property { name: "view"; type: "QQuickSplitView"; isReadonly: true; isPointer: true }
- Property { name: "minimumWidth"; type: "double" }
- Property { name: "minimumHeight"; type: "double" }
- Property { name: "preferredWidth"; type: "double" }
- Property { name: "preferredHeight"; type: "double" }
- Property { name: "maximumWidth"; type: "double" }
- Property { name: "maximumHeight"; type: "double" }
- Property { name: "fillHeight"; type: "bool" }
- Property { name: "fillWidth"; type: "bool" }
- }
- Component {
- name: "QQuickStackView"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/StackView 2.0",
- "QtQuick.Templates/StackView 2.1"
- ]
- exportMetaObjectRevisions: [0, 1]
- attachedType: "QQuickStackViewAttached"
- Enum {
- name: "Status"
- values: {
- "Inactive": 0,
- "Deactivating": 1,
- "Activating": 2,
- "Active": 3
- }
- }
- Enum {
- name: "LoadBehavior"
- values: {
- "DontLoad": 0,
- "ForceLoad": 1
- }
- }
- Enum {
- name: "Operation"
- values: {
- "Transition": -1,
- "Immediate": 0,
- "PushTransition": 1,
- "ReplaceTransition": 2,
- "PopTransition": 3
- }
- }
- Property { name: "busy"; type: "bool"; isReadonly: true }
- Property { name: "depth"; type: "int"; isReadonly: true }
- Property { name: "currentItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "initialItem"; type: "QJSValue" }
- Property { name: "popEnter"; type: "QQuickTransition"; isPointer: true }
- Property { name: "popExit"; type: "QQuickTransition"; isPointer: true }
- Property { name: "pushEnter"; type: "QQuickTransition"; isPointer: true }
- Property { name: "pushExit"; type: "QQuickTransition"; isPointer: true }
- Property { name: "replaceEnter"; type: "QQuickTransition"; isPointer: true }
- Property { name: "replaceExit"; type: "QQuickTransition"; isPointer: true }
- Property { name: "empty"; revision: 3; type: "bool"; isReadonly: true }
- Signal { name: "emptyChanged"; revision: 3 }
- Method {
- name: "clear"
- Parameter { name: "operation"; type: "Operation" }
- }
- Method { name: "clear" }
- Method {
- name: "get"
- type: "QQuickItem*"
- Parameter { name: "index"; type: "int" }
- Parameter { name: "behavior"; type: "LoadBehavior" }
- }
- Method {
- name: "get"
- type: "QQuickItem*"
- Parameter { name: "index"; type: "int" }
- }
- Method {
- name: "find"
- type: "QQuickItem*"
- Parameter { name: "callback"; type: "QJSValue" }
- Parameter { name: "behavior"; type: "LoadBehavior" }
- }
- Method {
- name: "find"
- type: "QQuickItem*"
- Parameter { name: "callback"; type: "QJSValue" }
- }
- Method {
- name: "push"
- Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
- }
- Method {
- name: "pop"
- Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
- }
- Method {
- name: "replace"
- Parameter { name: "args"; type: "QQmlV4Function"; isPointer: true }
- }
- }
- Component {
- name: "QQuickStackViewAttached"
- prototype: "QObject"
- Property { name: "index"; type: "int"; isReadonly: true }
- Property { name: "view"; type: "QQuickStackView"; isReadonly: true; isPointer: true }
- Property { name: "status"; type: "QQuickStackView::Status"; isReadonly: true }
- Property { name: "visible"; type: "bool" }
- Signal { name: "activated" }
- Signal { name: "activating" }
- Signal { name: "deactivated" }
- Signal { name: "deactivating" }
- Signal { name: "removed" }
- }
- Component {
- name: "QQuickSwipe"
- prototype: "QObject"
- Property { name: "position"; type: "double" }
- Property { name: "complete"; type: "bool"; isReadonly: true }
- Property { name: "left"; type: "QQmlComponent"; isPointer: true }
- Property { name: "behind"; type: "QQmlComponent"; isPointer: true }
- Property { name: "right"; type: "QQmlComponent"; isPointer: true }
- Property { name: "leftItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "behindItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "rightItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "enabled"; type: "bool" }
- Property { name: "transition"; type: "QQuickTransition"; isPointer: true }
- Signal { name: "completed" }
- Signal { name: "opened" }
- Signal { name: "closed" }
- Method { name: "close"; revision: 1 }
- Method {
- name: "open"
- revision: 2
- Parameter { name: "side"; type: "QQuickSwipeDelegate::Side" }
- }
- }
- Component {
- name: "QQuickSwipeDelegate"
- defaultProperty: "data"
- prototype: "QQuickItemDelegate"
- exports: [
- "QtQuick.Templates/SwipeDelegate 2.0",
- "QtQuick.Templates/SwipeDelegate 2.1",
- "QtQuick.Templates/SwipeDelegate 2.2"
- ]
- exportMetaObjectRevisions: [0, 1, 2]
- attachedType: "QQuickSwipeDelegateAttached"
- Enum {
- name: "Side"
- values: {
- "Left": 1,
- "Right": -1
- }
- }
- Property { name: "swipe"; type: "QQuickSwipe"; isReadonly: true; isPointer: true }
- }
- Component {
- name: "QQuickSwipeDelegateAttached"
- prototype: "QObject"
- Property { name: "pressed"; type: "bool"; isReadonly: true }
- Signal { name: "clicked" }
- }
- Component {
- name: "QQuickSwipeView"
- defaultProperty: "contentData"
- prototype: "QQuickContainer"
- exports: [
- "QtQuick.Templates/SwipeView 2.0",
- "QtQuick.Templates/SwipeView 2.1",
- "QtQuick.Templates/SwipeView 2.2"
- ]
- exportMetaObjectRevisions: [0, 1, 2]
- attachedType: "QQuickSwipeViewAttached"
- Property { name: "interactive"; revision: 1; type: "bool" }
- Property { name: "orientation"; revision: 2; type: "Qt::Orientation" }
- Property { name: "horizontal"; revision: 3; type: "bool"; isReadonly: true }
- Property { name: "vertical"; revision: 3; type: "bool"; isReadonly: true }
- Signal { name: "interactiveChanged"; revision: 1 }
- Signal { name: "orientationChanged"; revision: 2 }
- }
- Component {
- name: "QQuickSwipeViewAttached"
- prototype: "QObject"
- Property { name: "index"; type: "int"; isReadonly: true }
- Property { name: "isCurrentItem"; type: "bool"; isReadonly: true }
- Property { name: "view"; type: "QQuickSwipeView"; isReadonly: true; isPointer: true }
- Property { name: "isNextItem"; revision: 1; type: "bool"; isReadonly: true }
- Property { name: "isPreviousItem"; revision: 1; type: "bool"; isReadonly: true }
- }
- Component {
- name: "QQuickSwitch"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: ["QtQuick.Templates/Switch 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "position"; type: "double" }
- Property { name: "visualPosition"; type: "double"; isReadonly: true }
- }
- Component {
- name: "QQuickSwitchDelegate"
- defaultProperty: "data"
- prototype: "QQuickItemDelegate"
- exports: ["QtQuick.Templates/SwitchDelegate 2.0"]
- exportMetaObjectRevisions: [0]
- Property { name: "position"; type: "double" }
- Property { name: "visualPosition"; type: "double"; isReadonly: true }
- }
- Component {
- name: "QQuickTabBar"
- defaultProperty: "contentData"
- prototype: "QQuickContainer"
- exports: [
- "QtQuick.Templates/TabBar 2.0",
- "QtQuick.Templates/TabBar 2.2"
- ]
- exportMetaObjectRevisions: [0, 2]
- attachedType: "QQuickTabBarAttached"
- Enum {
- name: "Position"
- values: {
- "Header": 0,
- "Footer": 1
- }
- }
- Property { name: "position"; type: "Position" }
- Property { name: "contentWidth"; revision: 2; type: "double" }
- Property { name: "contentHeight"; revision: 2; type: "double" }
- }
- Component {
- name: "QQuickTabBarAttached"
- prototype: "QObject"
- Property { name: "index"; type: "int"; isReadonly: true }
- Property { name: "tabBar"; type: "QQuickTabBar"; isReadonly: true; isPointer: true }
- Property { name: "position"; type: "QQuickTabBar::Position"; isReadonly: true }
- }
- Component {
- name: "QQuickTabButton"
- defaultProperty: "data"
- prototype: "QQuickAbstractButton"
- exports: ["QtQuick.Templates/TabButton 2.0"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickTextArea"
- defaultProperty: "data"
- prototype: "QQuickTextEdit"
- exports: [
- "QtQuick.Templates/TextArea 2.0",
- "QtQuick.Templates/TextArea 2.1",
- "QtQuick.Templates/TextArea 2.3",
- "QtQuick.Templates/TextArea 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 3, 5]
- attachedType: "QQuickTextAreaAttached"
- Property { name: "font"; type: "QFont" }
- Property { name: "implicitWidth"; type: "double" }
- Property { name: "implicitHeight"; type: "double" }
- Property { name: "background"; type: "QQuickItem"; isPointer: true }
- Property { name: "placeholderText"; type: "string" }
- Property { name: "focusReason"; type: "Qt::FocusReason" }
- Property { name: "hovered"; revision: 1; type: "bool"; isReadonly: true }
- Property { name: "hoverEnabled"; revision: 1; type: "bool" }
- Property { name: "palette"; revision: 3; type: "QPalette" }
- Property { name: "placeholderTextColor"; revision: 5; type: "QColor" }
- Property { name: "implicitBackgroundWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "topInset"; revision: 5; type: "double" }
- Property { name: "leftInset"; revision: 5; type: "double" }
- Property { name: "rightInset"; revision: 5; type: "double" }
- Property { name: "bottomInset"; revision: 5; type: "double" }
- Signal { name: "implicitWidthChanged3" }
- Signal { name: "implicitHeightChanged3" }
- Signal {
- name: "pressAndHold"
- Parameter { name: "event"; type: "QQuickMouseEvent"; isPointer: true }
- }
- Signal {
- name: "pressed"
- revision: 1
- Parameter { name: "event"; type: "QQuickMouseEvent"; isPointer: true }
- }
- Signal {
- name: "released"
- revision: 1
- Parameter { name: "event"; type: "QQuickMouseEvent"; isPointer: true }
- }
- Signal { name: "hoveredChanged"; revision: 1 }
- Signal { name: "hoverEnabledChanged"; revision: 1 }
- Signal { name: "paletteChanged"; revision: 3 }
- Signal { name: "placeholderTextColorChanged"; revision: 5 }
- Signal { name: "implicitBackgroundWidthChanged"; revision: 5 }
- Signal { name: "implicitBackgroundHeightChanged"; revision: 5 }
- Signal { name: "topInsetChanged"; revision: 5 }
- Signal { name: "leftInsetChanged"; revision: 5 }
- Signal { name: "rightInsetChanged"; revision: 5 }
- Signal { name: "bottomInsetChanged"; revision: 5 }
- }
- Component {
- name: "QQuickTextAreaAttached"
- prototype: "QObject"
- Property { name: "flickable"; type: "QQuickTextArea"; isPointer: true }
- }
- Component {
- name: "QQuickTextField"
- defaultProperty: "data"
- prototype: "QQuickTextInput"
- exports: [
- "QtQuick.Templates/TextField 2.0",
- "QtQuick.Templates/TextField 2.1",
- "QtQuick.Templates/TextField 2.3",
- "QtQuick.Templates/TextField 2.5"
- ]
- exportMetaObjectRevisions: [0, 1, 3, 5]
- Property { name: "font"; type: "QFont" }
- Property { name: "implicitWidth"; type: "double" }
- Property { name: "implicitHeight"; type: "double" }
- Property { name: "background"; type: "QQuickItem"; isPointer: true }
- Property { name: "placeholderText"; type: "string" }
- Property { name: "focusReason"; type: "Qt::FocusReason" }
- Property { name: "hovered"; revision: 1; type: "bool"; isReadonly: true }
- Property { name: "hoverEnabled"; revision: 1; type: "bool" }
- Property { name: "palette"; revision: 3; type: "QPalette" }
- Property { name: "placeholderTextColor"; revision: 5; type: "QColor" }
- Property { name: "implicitBackgroundWidth"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "implicitBackgroundHeight"; revision: 5; type: "double"; isReadonly: true }
- Property { name: "topInset"; revision: 5; type: "double" }
- Property { name: "leftInset"; revision: 5; type: "double" }
- Property { name: "rightInset"; revision: 5; type: "double" }
- Property { name: "bottomInset"; revision: 5; type: "double" }
- Signal { name: "implicitWidthChanged3" }
- Signal { name: "implicitHeightChanged3" }
- Signal {
- name: "pressAndHold"
- Parameter { name: "event"; type: "QQuickMouseEvent"; isPointer: true }
- }
- Signal {
- name: "pressed"
- revision: 1
- Parameter { name: "event"; type: "QQuickMouseEvent"; isPointer: true }
- }
- Signal {
- name: "released"
- revision: 1
- Parameter { name: "event"; type: "QQuickMouseEvent"; isPointer: true }
- }
- Signal { name: "hoveredChanged"; revision: 1 }
- Signal { name: "hoverEnabledChanged"; revision: 1 }
- Signal { name: "paletteChanged"; revision: 3 }
- Signal { name: "placeholderTextColorChanged"; revision: 5 }
- Signal { name: "implicitBackgroundWidthChanged"; revision: 5 }
- Signal { name: "implicitBackgroundHeightChanged"; revision: 5 }
- Signal { name: "topInsetChanged"; revision: 5 }
- Signal { name: "leftInsetChanged"; revision: 5 }
- Signal { name: "rightInsetChanged"; revision: 5 }
- Signal { name: "bottomInsetChanged"; revision: 5 }
- }
- Component {
- name: "QQuickToolBar"
- defaultProperty: "contentData"
- prototype: "QQuickPane"
- exports: ["QtQuick.Templates/ToolBar 2.0"]
- exportMetaObjectRevisions: [0]
- Enum {
- name: "Position"
- values: {
- "Header": 0,
- "Footer": 1
- }
- }
- Property { name: "position"; type: "Position" }
- }
- Component {
- name: "QQuickToolButton"
- defaultProperty: "data"
- prototype: "QQuickButton"
- exports: ["QtQuick.Templates/ToolButton 2.0"]
- exportMetaObjectRevisions: [0]
- }
- Component {
- name: "QQuickToolSeparator"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: ["QtQuick.Templates/ToolSeparator 2.1"]
- exportMetaObjectRevisions: [0]
- Property { name: "orientation"; type: "Qt::Orientation" }
- Property { name: "horizontal"; type: "bool"; isReadonly: true }
- Property { name: "vertical"; type: "bool"; isReadonly: true }
- }
- Component {
- name: "QQuickToolTip"
- defaultProperty: "contentData"
- prototype: "QQuickPopup"
- exports: [
- "QtQuick.Templates/ToolTip 2.0",
- "QtQuick.Templates/ToolTip 2.5"
- ]
- exportMetaObjectRevisions: [0, 5]
- attachedType: "QQuickToolTipAttached"
- Property { name: "delay"; type: "int" }
- Property { name: "timeout"; type: "int" }
- Property { name: "text"; type: "string" }
- Method {
- name: "show"
- revision: 5
- Parameter { name: "text"; type: "string" }
- Parameter { name: "ms"; type: "int" }
- }
- Method {
- name: "show"
- revision: 5
- Parameter { name: "text"; type: "string" }
- }
- Method { name: "hide"; revision: 5 }
- }
- Component {
- name: "QQuickToolTipAttached"
- prototype: "QObject"
- Property { name: "text"; type: "string" }
- Property { name: "delay"; type: "int" }
- Property { name: "timeout"; type: "int" }
- Property { name: "visible"; type: "bool" }
- Property { name: "toolTip"; type: "QQuickToolTip"; isReadonly: true; isPointer: true }
- Method {
- name: "show"
- Parameter { name: "text"; type: "string" }
- Parameter { name: "ms"; type: "int" }
- }
- Method {
- name: "show"
- Parameter { name: "text"; type: "string" }
- }
- Method { name: "hide" }
- }
- Component {
- name: "QQuickTumbler"
- defaultProperty: "data"
- prototype: "QQuickControl"
- exports: [
- "QtQuick.Templates/Tumbler 2.0",
- "QtQuick.Templates/Tumbler 2.1",
- "QtQuick.Templates/Tumbler 2.2"
- ]
- exportMetaObjectRevisions: [0, 1, 2]
- attachedType: "QQuickTumblerAttached"
- Enum {
- name: "PositionMode"
- values: {
- "Beginning": 0,
- "Center": 1,
- "End": 2,
- "Visible": 3,
- "Contain": 4,
- "SnapPosition": 5
- }
- }
- Property { name: "model"; type: "QVariant" }
- Property { name: "count"; type: "int"; isReadonly: true }
- Property { name: "currentIndex"; type: "int" }
- Property { name: "currentItem"; type: "QQuickItem"; isReadonly: true; isPointer: true }
- Property { name: "delegate"; type: "QQmlComponent"; isPointer: true }
- Property { name: "visibleItemCount"; type: "int" }
- Property { name: "wrap"; revision: 1; type: "bool" }
- Property { name: "moving"; revision: 2; type: "bool"; isReadonly: true }
- Signal { name: "wrapChanged"; revision: 1 }
- Signal { name: "movingChanged"; revision: 2 }
- Method {
- name: "positionViewAtIndex"
- revision: 5
- Parameter { name: "index"; type: "int" }
- Parameter { name: "mode"; type: "PositionMode" }
- }
- }
- Component {
- name: "QQuickTumblerAttached"
- prototype: "QObject"
- Property { name: "tumbler"; type: "QQuickTumbler"; isReadonly: true; isPointer: true }
- Property { name: "displacement"; type: "double"; isReadonly: true }
- }
-}
diff --git a/src/imports/templates/qmldir b/src/imports/templates/qmldir
deleted file mode 100644
index afb94818..00000000
--- a/src/imports/templates/qmldir
+++ /dev/null
@@ -1,4 +0,0 @@
-module QtQuick.Templates
-plugin qtquicktemplates2plugin
-classname QtQuickTemplates2Plugin
-depends QtQuick.Window 2.2
diff --git a/src/imports/templates/qtquicktemplates2plugin.cpp b/src/imports/templates/qtquicktemplates2plugin.cpp
deleted file mode 100644
index 470e86e0..00000000
--- a/src/imports/templates/qtquicktemplates2plugin.cpp
+++ /dev/null
@@ -1,361 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 <QtQml/private/qqmlglobal_p.h>
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-#include <QtQuickTemplates2/private/qquickaction_p.h>
-#include <QtQuickTemplates2/private/qquickactiongroup_p.h>
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickbusyindicator_p.h>
-#include <QtQuickTemplates2/private/qquickbutton_p.h>
-#include <QtQuickTemplates2/private/qquickbuttongroup_p.h>
-#include <QtQuickTemplates2/private/qquickcheckbox_p.h>
-#include <QtQuickTemplates2/private/qquickcheckdelegate_p.h>
-#include <QtQuickTemplates2/private/qquickcombobox_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQuickTemplates2/private/qquickcontainer_p.h>
-#include <QtQuickTemplates2/private/qquickdelaybutton_p.h>
-#include <QtQuickTemplates2/private/qquickdial_p.h>
-#include <QtQuickTemplates2/private/qquickdialog_p.h>
-#include <QtQuickTemplates2/private/qquickdialogbuttonbox_p.h>
-#include <QtQuickTemplates2/private/qquickdrawer_p.h>
-#include <QtQuickTemplates2/private/qquickframe_p.h>
-#include <QtQuickTemplates2/private/qquickgroupbox_p.h>
-#include <QtQuickTemplates2/private/qquickicon_p.h>
-#include <QtQuickTemplates2/private/qquickitemdelegate_p.h>
-#include <QtQuickTemplates2/private/qquicklabel_p.h>
-#include <QtQuickTemplates2/private/qquickmenu_p.h>
-#include <QtQuickTemplates2/private/qquickmenubar_p.h>
-#include <QtQuickTemplates2/private/qquickmenubaritem_p.h>
-#include <QtQuickTemplates2/private/qquickmenuitem_p.h>
-#include <QtQuickTemplates2/private/qquickmenuseparator_p.h>
-#include <QtQuickTemplates2/private/qquickoverlay_p.h>
-#include <QtQuickTemplates2/private/qquickpage_p.h>
-#include <QtQuickTemplates2/private/qquickpageindicator_p.h>
-#include <QtQuickTemplates2/private/qquickpaletteprovider_p.h>
-#include <QtQuickTemplates2/private/qquickpane_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include <QtQuickTemplates2/private/qquickpopupanchors_p.h>
-#include <QtQuickTemplates2/private/qquickprogressbar_p.h>
-#include <QtQuickTemplates2/private/qquickradiobutton_p.h>
-#include <QtQuickTemplates2/private/qquickradiodelegate_p.h>
-#include <QtQuickTemplates2/private/qquickrangeslider_p.h>
-#include <QtQuickTemplates2/private/qquickroundbutton_p.h>
-#include <QtQuickTemplates2/private/qquickscrollbar_p.h>
-#include <QtQuickTemplates2/private/qquickscrollindicator_p.h>
-#include <QtQuickTemplates2/private/qquickscrollview_p.h>
-#include <QtQuickTemplates2/private/qquickshortcutcontext_p_p.h>
-#include <QtQuickTemplates2/private/qquickslider_p.h>
-#include <QtQuickTemplates2/private/qquickspinbox_p.h>
-#include <QtQuickTemplates2/private/qquicksplitview_p.h>
-#include <QtQuickTemplates2/private/qquickstackview_p.h>
-#include <QtQuickTemplates2/private/qquickswipe_p.h>
-#include <QtQuickTemplates2/private/qquickswipedelegate_p.h>
-#include <QtQuickTemplates2/private/qquickswipeview_p.h>
-#include <QtQuickTemplates2/private/qquickswitch_p.h>
-#include <QtQuickTemplates2/private/qquickswitchdelegate_p.h>
-#include <QtQuickTemplates2/private/qquicktabbar_p.h>
-#include <QtQuickTemplates2/private/qquicktabbutton_p.h>
-#include <QtQuickTemplates2/private/qquicktextarea_p.h>
-#include <QtQuickTemplates2/private/qquicktextfield_p.h>
-#include <QtQuickTemplates2/private/qquicktoolbar_p.h>
-#include <QtQuickTemplates2/private/qquicktoolbutton_p.h>
-#include <QtQuickTemplates2/private/qquicktoolseparator_p.h>
-#include <QtQuickTemplates2/private/qquicktooltip_p.h>
-#if QT_CONFIG(quick_listview) && QT_CONFIG(quick_pathview)
-#include <QtQuickTemplates2/private/qquicktumbler_p.h>
-#endif
-
-#if QT_CONFIG(shortcut)
-// qtdeclarative/src/quick/util/qquickshortcut.cpp
-typedef bool (*ShortcutContextMatcher)(QObject *, Qt::ShortcutContext);
-extern ShortcutContextMatcher qt_quick_shortcut_context_matcher();
-extern void qt_quick_set_shortcut_context_matcher(ShortcutContextMatcher matcher);
-#endif
-
-QT_BEGIN_NAMESPACE
-
-static void initProviders()
-{
- QQuickPaletteProvider::init();
-}
-
-static void cleanupProviders()
-{
- QQuickPaletteProvider::cleanup();
-}
-
-class QtQuickTemplates2Plugin: public QQmlExtensionPlugin
-{
- Q_OBJECT
- Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
-
-public:
- QtQuickTemplates2Plugin(QObject *parent = nullptr);
- ~QtQuickTemplates2Plugin();
-
- void registerTypes(const char *uri) override;
-
-private:
- bool registered;
-#if QT_CONFIG(shortcut)
- ShortcutContextMatcher originalContextMatcher;
-#endif
-};
-
-QtQuickTemplates2Plugin::QtQuickTemplates2Plugin(QObject *parent)
- : QQmlExtensionPlugin(parent), registered(false)
-{
-#if QT_CONFIG(shortcut)
- originalContextMatcher = qt_quick_shortcut_context_matcher();
- qt_quick_set_shortcut_context_matcher(QQuickShortcutContext::matcher);
-#endif
-}
-
-QtQuickTemplates2Plugin::~QtQuickTemplates2Plugin()
-{
- if (registered)
- cleanupProviders();
-
-#if QT_CONFIG(shortcut)
- qt_quick_set_shortcut_context_matcher(originalContextMatcher);
-#endif
-}
-
-void QtQuickTemplates2Plugin::registerTypes(const char *uri)
-{
- registered = true;
- initProviders();
-
- // The minor version used to be the current Qt 5 minor. For compatibility it is the last
- // Qt 5 release.
- qmlRegisterModule(uri, 2, 15);
-
- // QtQuick.Templates 2.0 (originally introduced in Qt 5.7)
- qmlRegisterType<QQuickAbstractButton>(uri, 2, 0, "AbstractButton");
- qmlRegisterType<QQuickApplicationWindow>(uri, 2, 0, "ApplicationWindow");
- qmlRegisterAnonymousType<QQuickApplicationWindowAttached>(uri, 2);
- qmlRegisterType<QQuickBusyIndicator>(uri, 2, 0, "BusyIndicator");
- qmlRegisterType<QQuickButton>(uri, 2, 0, "Button");
- qmlRegisterType<QQuickButtonGroup>(uri, 2, 0, "ButtonGroup");
- qmlRegisterAnonymousType<QQuickButtonGroupAttached>(uri, 2);
- qmlRegisterType<QQuickCheckBox>(uri, 2, 0, "CheckBox");
- qmlRegisterType<QQuickCheckDelegate>(uri, 2, 0, "CheckDelegate");
- qmlRegisterType<QQuickComboBox>(uri, 2, 0, "ComboBox");
- qmlRegisterType<QQuickContainer>(uri, 2, 0, "Container");
- qmlRegisterType<QQuickControl>(uri, 2, 0, "Control");
- qmlRegisterType<QQuickDial>(uri, 2, 0, "Dial");
- qmlRegisterType<QQuickDrawer>(uri, 2, 0, "Drawer");
- qmlRegisterType<QQuickFrame>(uri, 2, 0, "Frame");
- qmlRegisterType<QQuickGroupBox>(uri, 2, 0, "GroupBox");
- qmlRegisterType<QQuickItemDelegate>(uri, 2, 0, "ItemDelegate");
- qmlRegisterType<QQuickLabel>(uri, 2, 0, "Label");
- qmlRegisterType<QQuickMenu>(uri, 2, 0, "Menu");
- qmlRegisterType<QQuickMenuItem>(uri, 2, 0, "MenuItem");
- qmlRegisterAnonymousType<QQuickOverlay>(uri, 2);
- qmlRegisterType<QQuickPage>(uri, 2, 0, "Page");
- qmlRegisterType<QQuickPageIndicator>(uri, 2, 0, "PageIndicator");
- qmlRegisterType<QQuickPane>(uri, 2, 0, "Pane");
- qmlRegisterType<QQuickPopup>(uri, 2, 0, "Popup");
- qmlRegisterType<QQuickProgressBar>(uri, 2, 0, "ProgressBar");
- qmlRegisterType<QQuickRadioButton>(uri, 2, 0, "RadioButton");
- qmlRegisterType<QQuickRadioDelegate>(uri, 2, 0, "RadioDelegate");
- qmlRegisterType<QQuickRangeSlider>(uri, 2, 0, "RangeSlider");
- qmlRegisterAnonymousType<QQuickRangeSliderNode>(uri, 2);
- qmlRegisterType<QQuickScrollBar>(uri, 2, 0, "ScrollBar");
- qmlRegisterAnonymousType<QQuickScrollBarAttached>(uri, 2);
- qmlRegisterType<QQuickScrollIndicator>(uri, 2, 0, "ScrollIndicator");
- qmlRegisterAnonymousType<QQuickScrollIndicatorAttached>(uri, 2);
- qmlRegisterType<QQuickSlider>(uri, 2, 0, "Slider");
- qmlRegisterType<QQuickSpinBox>(uri, 2, 0, "SpinBox");
- qmlRegisterAnonymousType<QQuickSpinButton>(uri, 2);
- qmlRegisterType<QQuickStackView>(uri, 2, 0, "StackView");
- qmlRegisterAnonymousType<QQuickStackViewAttached>(uri, 2);
- qmlRegisterAnonymousType<QQuickSwipe>(uri, 2);
- qmlRegisterType<QQuickSwipeDelegate>(uri, 2, 0, "SwipeDelegate");
- qmlRegisterType<QQuickSwipeView>(uri, 2, 0, "SwipeView");
- qmlRegisterAnonymousType<QQuickSwipeViewAttached>(uri, 2);
- qmlRegisterType<QQuickSwitch>(uri, 2, 0, "Switch");
- qmlRegisterType<QQuickSwitchDelegate>(uri, 2, 0, "SwitchDelegate");
- qmlRegisterType<QQuickTabBar>(uri, 2, 0, "TabBar");
- qmlRegisterType<QQuickTabButton>(uri, 2, 0, "TabButton");
- qmlRegisterType<QQuickTextArea>(uri, 2, 0, "TextArea");
- qmlRegisterAnonymousType<QQuickTextAreaAttached>(uri, 2);
- qmlRegisterType<QQuickTextField>(uri, 2, 0, "TextField");
- qmlRegisterType<QQuickToolBar>(uri, 2, 0, "ToolBar");
- qmlRegisterType<QQuickToolButton>(uri, 2, 0, "ToolButton");
- qmlRegisterType<QQuickToolTip>(uri, 2, 0, "ToolTip");
- qmlRegisterAnonymousType<QQuickToolTipAttached>(uri, 2);
-#if QT_CONFIG(quick_listview) && QT_CONFIG(quick_pathview)
- qmlRegisterAnonymousType<QQuickTumblerAttached>(uri, 2);
- qmlRegisterType<QQuickTumbler>(uri, 2, 0, "Tumbler");
-#endif
-
- // NOTE: register the latest revisions of all template/control base classes to
- // make revisioned properties available to their subclasses (synced with Qt 5.7)
- qmlRegisterRevision<QQuickItem, 7>(uri, 2, 0);
- qmlRegisterRevision<QQuickText, 6>(uri, 2, 0);
- qmlRegisterRevision<QQuickTextInput, 7>(uri, 2, 0);
- qmlRegisterRevision<QQuickTextEdit, 7>(uri, 2, 0);
- qmlRegisterRevision<QQuickWindow, 2>(uri, 2, 0);
- qmlRegisterRevision<QWindow, 3>(uri, 2, 0);
-
- // QtQuick.Templates 2.1 (new types and revisions in Qt 5.8)
- qmlRegisterType<QQuickButtonGroup, 1>(uri, 2, 1, "ButtonGroup");
- qmlRegisterType<QQuickComboBox, 1>(uri, 2, 1, "ComboBox");
- qmlRegisterType<QQuickContainer, 1>(uri, 2, 1, "Container");
- qmlRegisterType<QQuickDialog>(uri, 2, 1, "Dialog");
- qmlRegisterType<QQuickDialogButtonBox>(uri, 2, 1, "DialogButtonBox");
- qmlRegisterAnonymousType<QQuickDialogButtonBoxAttached>(uri, 2);
- qmlRegisterType<QQuickMenuSeparator>(uri, 2, 1, "MenuSeparator");
- qmlRegisterType<QQuickPage, 1>(uri, 2, 1, "Page");
- qmlRegisterType<QQuickPopup, 1>(uri, 2, 1, "Popup");
- qmlRegisterType<QQuickRangeSlider, 1>(uri, 2, 1, "RangeSlider");
- qmlRegisterType<QQuickRoundButton>(uri, 2, 1, "RoundButton");
- qmlRegisterType<QQuickSlider, 1>(uri, 2, 1, "Slider");
- qmlRegisterType<QQuickSpinBox, 1>(uri, 2, 1, "SpinBox");
- qmlRegisterType<QQuickStackView, 1>(uri, 2, 1, "StackView");
- qmlRegisterType<QQuickSwipeDelegate, 1>(uri, 2, 1, "SwipeDelegate");
- qmlRegisterType<QQuickSwipeView, 1>(uri, 2, 1, "SwipeView");
- qmlRegisterType<QQuickTextArea, 1>(uri, 2, 1, "TextArea");
- qmlRegisterType<QQuickTextField, 1>(uri, 2, 1, "TextField");
- qmlRegisterType<QQuickToolSeparator>(uri, 2, 1, "ToolSeparator");
-#if QT_CONFIG(quick_listview) && QT_CONFIG(quick_pathview)
- qmlRegisterType<QQuickTumbler, 1>(uri, 2, 1, "Tumbler");
-#endif
-
- // QtQuick.Templates 2.2 (new types and revisions in Qt 5.9)
- qmlRegisterType<QQuickAbstractButton, 2>(uri, 2, 2, "AbstractButton");
- qmlRegisterType<QQuickComboBox, 2>(uri, 2, 2, "ComboBox");
- qmlRegisterType<QQuickDelayButton>(uri, 2, 2, "DelayButton");
- qmlRegisterType<QQuickDial, 2>(uri, 2, 2, "Dial");
- qmlRegisterType<QQuickDrawer, 2>(uri, 2, 2, "Drawer");
- qmlRegisterType<QQuickRangeSlider, 2>(uri, 2, 2, "RangeSlider");
- qmlRegisterType<QQuickScrollBar, 2>(uri, 2, 2, "ScrollBar");
- qmlRegisterType<QQuickScrollView>(uri, 2, 2, "ScrollView");
- qmlRegisterType<QQuickSlider, 2>(uri, 2, 2, "Slider");
- qmlRegisterType<QQuickSpinBox, 2>(uri, 2, 2, "SpinBox");
- qmlRegisterType<QQuickSwipeDelegate, 2>(uri, 2, 2, "SwipeDelegate");
- qmlRegisterType<QQuickSwipeView, 2>(uri, 2, 2, "SwipeView");
- qmlRegisterType<QQuickTabBar, 2>(uri, 2, 2, "TabBar");
-#if QT_CONFIG(quick_listview) && QT_CONFIG(quick_pathview)
- qmlRegisterType<QQuickTumbler, 2>(uri, 2, 2, "Tumbler");
-#endif
-
- // NOTE: register the latest revisions of all template/control base classes to
- // make revisioned properties available to their subclasses (synced with Qt 5.9)
- qmlRegisterRevision<QQuickText, 9>(uri, 2, 2);
- qmlRegisterRevision<QQuickTextInput, 9>(uri, 2, 2);
- qmlRegisterRevision<QQuickWindowQmlImpl, 3>(uri, 2, 2);
-
- // QtQuick.Templates 2.3 (new types and revisions in Qt 5.10)
- qmlRegisterType<QQuickAbstractButton, 3>(uri, 2, 3, "AbstractButton");
- qmlRegisterType<QQuickAction>(uri, 2, 3, "Action");
- qmlRegisterType<QQuickActionGroup>(uri, 2, 3, "ActionGroup");
- qmlRegisterType<QQuickApplicationWindow, 3>(uri, 2, 3, "ApplicationWindow");
- qmlRegisterType<QQuickButtonGroup, 3>(uri, 2, 3, "ButtonGroup");
- qmlRegisterType<QQuickControl, 3>(uri, 2, 3, "Control");
- qmlRegisterType<QQuickContainer, 3>(uri, 2, 3, "Container");
- qmlRegisterType<QQuickDialog, 3>(uri, 2, 3, "Dialog");
- qmlRegisterType<QQuickDialogButtonBox, 3>(uri, 2, 3, "DialogButtonBox");
- qmlRegisterAnonymousType<QQuickIcon>(uri, 2);
- qRegisterMetaType<QQuickIcon>();
- qmlRegisterType<QQuickLabel, 3>(uri, 2, 3, "Label");
- qmlRegisterType<QQuickMenu, 3>(uri, 2, 3, "Menu");
- qmlRegisterType<QQuickMenuBar>(uri, 2, 3, "MenuBar");
- qmlRegisterType<QQuickMenuBarItem>(uri, 2, 3, "MenuBarItem");
- qmlRegisterType<QQuickMenuItem, 3>(uri, 2, 3, "MenuItem");
- qmlRegisterUncreatableType<QQuickOverlay>(uri, 2, 3, "Overlay", QStringLiteral("Overlay is only available as an attached property."));
- qmlRegisterAnonymousType<QQuickOverlayAttached>(uri, 2);
- qmlRegisterType<QQuickPopup, 3>(uri, 2, 3, "Popup");
- qmlRegisterType<QQuickRangeSlider, 3>(uri, 2, 3, "RangeSlider");
- qmlRegisterType<QQuickScrollBar, 3>(uri, 2, 3, "ScrollBar");
- qmlRegisterType<QQuickScrollIndicator, 3>(uri, 2, 3, "ScrollIndicator");
- qmlRegisterType<QQuickSlider, 3>(uri, 2, 3, "Slider");
- qmlRegisterType<QQuickSpinBox, 3>(uri, 2, 3, "SpinBox");
- qmlRegisterType<QQuickTextArea, 3>(uri, 2, 3, "TextArea");
- qmlRegisterType<QQuickTextField, 3>(uri, 2, 3, "TextField");
-
- // NOTE: register the latest revisions of all template/control base classes to
- // make revisioned properties available to their subclasses (synced with Qt 5.10)
- qmlRegisterRevision<QQuickText, 10>(uri, 2, 3);
- qmlRegisterRevision<QQuickTextEdit, 10>(uri, 2, 3);
-
- // QtQuick.Templates 2.4 (new types and revisions in Qt 5.11)
- qmlRegisterType<QQuickAbstractButton, 4>(uri, 2, 4, "AbstractButton");
- qmlRegisterType<QQuickButtonGroup, 4>(uri, 2, 4, "ButtonGroup");
- qmlRegisterType<QQuickCheckBox, 4>(uri, 2, 4, "CheckBox");
- qmlRegisterType<QQuickCheckDelegate, 4>(uri, 2, 4, "CheckDelegate");
- qmlRegisterType<QQuickScrollBar, 4>(uri, 2, 4, "ScrollBar");
- qmlRegisterType<QQuickScrollIndicator, 4>(uri, 2, 4, "ScrollIndicator");
- qmlRegisterType<QQuickSpinBox, 4>(uri, 2, 4, "SpinBox");
-
- // QtQuick.Templates 2.5 (new types and revisions in Qt 5.12)
- qmlRegisterType<QQuickAbstractButton, 5>(uri, 2, 5, "AbstractButton");
- qmlRegisterType<QQuickDialogButtonBox, 5>(uri, 2, 5, "DialogButtonBox");
- qmlRegisterType<QQuickComboBox, 5>(uri, 2, 5, "ComboBox");
- qmlRegisterType<QQuickControl, 5>(uri, 2, 5, "Control");
- qmlRegisterType<QQuickContainer, 5>(uri, 2, 5, "Container");
- qmlRegisterType<QQuickDial, 5>(uri, 2, 5, "Dial");
- qmlRegisterType<QQuickDialog, 5>(uri, 2, 5, "Dialog");
- qmlRegisterType<QQuickGroupBox, 5>(uri, 2, 5, "GroupBox");
- qmlRegisterType<QQuickLabel, 5>(uri, 2, 5, "Label");
- qmlRegisterType<QQuickPage, 5>(uri, 2, 5, "Page");
- qmlRegisterType<QQuickPopup, 5>(uri, 2, 5, "Popup");
- qmlRegisterAnonymousType<QQuickPopupAnchors>(uri, 2);
- qmlRegisterType<QQuickRangeSlider, 5>(uri, 2, 5, "RangeSlider");
- qmlRegisterType<QQuickSlider, 5>(uri, 2, 5, "Slider");
- qmlRegisterType<QQuickSpinBox, 5>(uri, 2, 5, "SpinBox");
- qmlRegisterType<QQuickTextArea, 5>(uri, 2, 5, "TextArea");
- qmlRegisterType<QQuickTextField, 5>(uri, 2, 5, "TextField");
- qmlRegisterType<QQuickToolTip, 5>(uri, 2, 5, "ToolTip");
-
- // QtQuick.Templates 2.13 (new types and revisions in Qt 5.13)
- qmlRegisterType<QQuickSplitView>(uri, 2, 13, "SplitView");
- qmlRegisterAnonymousType<QQuickSplitViewAttached>(uri, 2);
- qmlRegisterUncreatableType<QQuickSplitHandleAttached>(uri, 2, 13, "SplitHandle",
- QStringLiteral("SplitHandle is only available as an attached property."));
- qmlRegisterAnonymousType<QQuickSplitHandleAttached>(uri, 2);
-
- // QtQuick.Templates 2.14 (new types and revisions in Qt 5.14)
- qmlRegisterType<QQuickComboBox, 14>(uri, 2, 14, "ComboBox");
-}
-
-QT_END_NAMESPACE
-
-#include "qtquicktemplates2plugin.moc"
diff --git a/src/imports/templates/templates.pro b/src/imports/templates/templates.pro
deleted file mode 100644
index 3447ef90..00000000
--- a/src/imports/templates/templates.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-TARGET = qtquicktemplates2plugin
-TARGETPATH = QtQuick/Templates.2
-IMPORT_VERSION = 2.$$QT_MINOR_VERSION
-
-QT += qml quick
-QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-OTHER_FILES += \
- qmldir
-
-SOURCES += \
- $$PWD/qtquicktemplates2plugin.cpp
-
-CONFIG += no_cxx_module
-load(qml_plugin)
diff --git a/src/quickcontrols2/configure.json b/src/quickcontrols2/configure.json
deleted file mode 100644
index 22a602d3..00000000
--- a/src/quickcontrols2/configure.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "module": "quickcontrols2",
-
- "commandline": {
- "options": {
- "style-fusion": { "type": "boolean", "name": "quickcontrols2-fusion" },
- "style-imagine": { "type": "boolean", "name": "quickcontrols2-imagine" },
- "style-material": { "type": "boolean", "name": "quickcontrols2-material" },
- "style-universal": { "type": "boolean", "name": "quickcontrols2-universal" }
- }
- },
-
- "features": {
- "quickcontrols2-default": {
- "label": "Default",
- "output": [ "privateFeature" ]
- },
- "quickcontrols2-fusion": {
- "label": "Fusion",
- "purpose": "Provides the platform agnostic desktop-oriented Fusion style.",
- "section": "Quick Controls 2",
- "condition": "features.quickcontrols2-default",
- "output": [ "privateFeature" ]
- },
- "quickcontrols2-imagine": {
- "label": "Imagine",
- "purpose": "Provides a style based on configurable image assets.",
- "section": "Quick Controls 2",
- "condition": "features.quickcontrols2-default",
- "output": [ "privateFeature" ]
- },
- "quickcontrols2-material": {
- "label": "Material",
- "purpose": "Provides a style based on the Material Design guidelines.",
- "section": "Quick Controls 2",
- "condition": "features.quickcontrols2-default",
- "output": [ "privateFeature" ]
- },
- "quickcontrols2-universal": {
- "label": "Universal",
- "purpose": "Provides a style based on the Universal Design guidelines.",
- "section": "Quick Controls 2",
- "condition": "features.quickcontrols2-default",
- "output": [ "privateFeature" ]
- }
- },
-
- "summary": [
- {
- "section": "Qt Quick Controls 2",
- "entries": [
- {
- "message": "Styles",
- "type": "featureList",
- "args": "quickcontrols2-default quickcontrols2-fusion quickcontrols2-imagine quickcontrols2-material quickcontrols2-universal"
- }
- ]
- }
- ]
-}
diff --git a/src/quickcontrols2/qquickanimatednode.cpp b/src/quickcontrols2/qquickanimatednode.cpp
deleted file mode 100644
index b4e665de..00000000
--- a/src/quickcontrols2/qquickanimatednode.cpp
+++ /dev/null
@@ -1,167 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickanimatednode_p.h"
-
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/qquickwindow.h>
-
-// based on qtdeclarative/examples/quick/scenegraph/threadedanimation
-
-QT_BEGIN_NAMESPACE
-
-QQuickAnimatedNode::QQuickAnimatedNode(QQuickItem *target)
- : m_window(target->window())
-{
-}
-
-bool QQuickAnimatedNode::isRunning() const
-{
- return m_running;
-}
-
-int QQuickAnimatedNode::currentTime() const
-{
- int time = m_currentTime;
- if (m_running)
- time += m_timer.elapsed();
- return time;
-}
-
-void QQuickAnimatedNode::setCurrentTime(int time)
-{
- m_currentTime = time;
- m_timer.restart();
-}
-
-int QQuickAnimatedNode::duration() const
-{
- return m_duration;
-}
-
-void QQuickAnimatedNode::setDuration(int duration)
-{
- m_duration = duration;
-}
-
-int QQuickAnimatedNode::loopCount() const
-{
- return m_loopCount;
-}
-
-void QQuickAnimatedNode::setLoopCount(int count)
-{
- m_loopCount = count;
-}
-
-void QQuickAnimatedNode::sync(QQuickItem *target)
-{
- Q_UNUSED(target);
-}
-
-QQuickWindow *QQuickAnimatedNode::window() const
-{
- return m_window;
-}
-
-void QQuickAnimatedNode::start(int duration)
-{
- if (m_running)
- return;
-
- m_running = true;
- m_currentLoop = 0;
- m_timer.restart();
- if (duration > 0)
- m_duration = duration;
-
- connect(m_window, &QQuickWindow::beforeRendering, this, &QQuickAnimatedNode::advance, Qt::DirectConnection);
- connect(m_window, &QQuickWindow::frameSwapped, this, &QQuickAnimatedNode::update, Qt::DirectConnection);
-
- // If we're inside a QQuickWidget, this call is necessary to ensure the widget
- // gets updated for the first time.
- m_window->update();
-
- emit started();
-}
-
-void QQuickAnimatedNode::restart()
-{
- stop();
- start();
-}
-
-void QQuickAnimatedNode::stop()
-{
- if (!m_running)
- return;
-
- m_running = false;
- disconnect(m_window, &QQuickWindow::beforeRendering, this, &QQuickAnimatedNode::advance);
- disconnect(m_window, &QQuickWindow::frameSwapped, this, &QQuickAnimatedNode::update);
- emit stopped();
-}
-
-void QQuickAnimatedNode::updateCurrentTime(int time)
-{
- Q_UNUSED(time);
-}
-
-void QQuickAnimatedNode::advance()
-{
- int time = currentTime();
- if (time > m_duration) {
- time = 0;
- setCurrentTime(0);
-
- if (m_loopCount > 0 && ++m_currentLoop >= m_loopCount) {
- time = m_duration; // complete
- stop();
- }
- }
- updateCurrentTime(time);
-
- // If we're inside a QQuickWidget, this call is necessary to ensure the widget gets updated.
- m_window->update();
-}
-
-void QQuickAnimatedNode::update()
-{
- if (m_running)
- m_window->update();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickanimatednode_p.h b/src/quickcontrols2/qquickanimatednode_p.h
deleted file mode 100644
index d42d9319..00000000
--- a/src/quickcontrols2/qquickanimatednode_p.h
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKANIMATEDNODE_P_H
-#define QQUICKANIMATEDNODE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/qsgnode.h>
-#include <QtCore/qelapsedtimer.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickItem;
-class QQuickWindow;
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickAnimatedNode : public QObject, public QSGTransformNode
-{
- Q_OBJECT
-
-public:
- explicit QQuickAnimatedNode(QQuickItem *target);
-
- bool isRunning() const;
-
- int currentTime() const;
- void setCurrentTime(int time);
-
- int duration() const;
- void setDuration(int duration);
-
- enum LoopCount { Infinite = -1 };
-
- int loopCount() const;
- void setLoopCount(int count);
-
- virtual void sync(QQuickItem *target);
-
- QQuickWindow *window() const;
-
- // must be called from sync() or updatePaintNode()
- void start(int duration = 0);
- void restart();
- void stop();
-
-Q_SIGNALS:
- void started();
- void stopped();
-
-protected:
- virtual void updateCurrentTime(int time);
-
-private Q_SLOTS:
- void advance();
- void update();
-
-private:
- bool m_running = false;
- int m_duration = 0;
- int m_loopCount = 1;
- int m_currentTime = 0;
- int m_currentLoop = 0;
- QElapsedTimer m_timer;
- QQuickWindow *m_window = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKANIMATEDNODE_P_H
diff --git a/src/quickcontrols2/qquickattachedobject.cpp b/src/quickcontrols2/qquickattachedobject.cpp
deleted file mode 100644
index c43f7dc5..00000000
--- a/src/quickcontrols2/qquickattachedobject.cpp
+++ /dev/null
@@ -1,274 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickattachedobject_p.h"
-
-#include <QtCore/qpointer.h>
-#include <QtQuick/qquickwindow.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static QQuickAttachedObject *attachedObject(const QMetaObject *type, QObject *object, bool create = false)
-{
- if (!object)
- return nullptr;
- auto func = qmlAttachedPropertiesFunction(object, type);
- return qobject_cast<QQuickAttachedObject *>(qmlAttachedPropertiesObject(object, func, create));
-}
-
-static QQuickAttachedObject *findAttachedParent(const QMetaObject *type, QObject *object)
-{
- QQuickItem *item = qobject_cast<QQuickItem *>(object);
- if (item) {
- // lookup parent items and popups
- QQuickItem *parent = item->parentItem();
- while (parent) {
- QQuickAttachedObject *attached = attachedObject(type, parent);
- if (attached)
- return attached;
-
- QQuickPopup *popup = qobject_cast<QQuickPopup *>(parent->parent());
- if (popup)
- return attachedObject(type, popup);
-
- parent = parent->parentItem();
- }
-
- // fallback to item's window
- QQuickAttachedObject *attached = attachedObject(type, item->window());
- if (attached)
- return attached;
- } else {
- // lookup popup's window
- QQuickPopup *popup = qobject_cast<QQuickPopup *>(object);
- if (popup)
- return attachedObject(type, popup->popupItem()->window());
- }
-
- // lookup parent window
- QQuickWindow *window = qobject_cast<QQuickWindow *>(object);
- if (window) {
- QQuickWindow *parentWindow = qobject_cast<QQuickWindow *>(window->parent());
- if (parentWindow) {
- QQuickAttachedObject *attached = attachedObject(type, window);
- if (attached)
- return attached;
- }
- }
-
- // fallback to engine (global)
- if (object) {
- QQmlEngine *engine = qmlEngine(object);
- if (engine) {
- QByteArray name = QByteArray("_q_") + type->className();
- QQuickAttachedObject *attached = engine->property(name).value<QQuickAttachedObject *>();
- if (!attached) {
- attached = attachedObject(type, engine, true);
- engine->setProperty(name, QVariant::fromValue(attached));
- }
- return attached;
- }
- }
-
- return nullptr;
-}
-
-static QList<QQuickAttachedObject *> findAttachedChildren(const QMetaObject *type, QObject *object)
-{
- QList<QQuickAttachedObject *> children;
-
- QQuickItem *item = qobject_cast<QQuickItem *>(object);
- if (!item) {
- QQuickWindow *window = qobject_cast<QQuickWindow *>(object);
- if (window) {
- item = window->contentItem();
-
- const auto windowChildren = window->children();
- for (QObject *child : windowChildren) {
- QQuickWindow *childWindow = qobject_cast<QQuickWindow *>(child);
- if (childWindow) {
- QQuickAttachedObject *attached = attachedObject(type, childWindow);
- if (attached)
- children += attached;
- }
- }
- }
- }
-
- if (item) {
- const auto childItems = item->childItems();
- for (QQuickItem *child : childItems) {
- QQuickAttachedObject *attached = attachedObject(type, child);
- if (attached)
- children += attached;
- else
- children += findAttachedChildren(type, child);
- }
- }
-
- return children;
-}
-
-static QQuickItem *findAttachedItem(QObject *parent)
-{
- QQuickItem *item = qobject_cast<QQuickItem *>(parent);
- if (!item) {
- QQuickPopup *popup = qobject_cast<QQuickPopup *>(parent);
- if (popup)
- item = popup->popupItem();
- }
- return item;
-}
-
-class QQuickAttachedObjectPrivate : public QObjectPrivate, public QQuickItemChangeListener
-{
- Q_DECLARE_PUBLIC(QQuickAttachedObject)
-
-public:
- static QQuickAttachedObjectPrivate *get(QQuickAttachedObject *attachedObject)
- {
- return attachedObject->d_func();
- }
-
- void attachTo(QObject *object);
- void detachFrom(QObject *object);
-
- void itemWindowChanged(QQuickWindow *window);
- void itemParentChanged(QQuickItem *item, QQuickItem *parent) override;
-
- QList<QQuickAttachedObject *> attachedChildren;
- QPointer<QQuickAttachedObject> attachedParent;
-};
-
-void QQuickAttachedObjectPrivate::attachTo(QObject *object)
-{
- QQuickItem *item = findAttachedItem(object);
- if (item) {
- connect(item, &QQuickItem::windowChanged, this, &QQuickAttachedObjectPrivate::itemWindowChanged);
- QQuickItemPrivate::get(item)->addItemChangeListener(this, QQuickItemPrivate::Parent);
- }
-}
-
-void QQuickAttachedObjectPrivate::detachFrom(QObject *object)
-{
- QQuickItem *item = findAttachedItem(object);
- if (item) {
- disconnect(item, &QQuickItem::windowChanged, this, &QQuickAttachedObjectPrivate::itemWindowChanged);
- QQuickItemPrivate::get(item)->removeItemChangeListener(this, QQuickItemPrivate::Parent);
- }
-}
-
-void QQuickAttachedObjectPrivate::itemWindowChanged(QQuickWindow *window)
-{
- Q_Q(QQuickAttachedObject);
- QQuickAttachedObject *attachedParent = nullptr;
- QQuickItem *item = qobject_cast<QQuickItem *>(q->sender());
- if (item)
- attachedParent = findAttachedParent(q->metaObject(), item);
- if (!attachedParent)
- attachedParent = attachedObject(q->metaObject(), window);
- q->setAttachedParent(attachedParent);
-}
-
-void QQuickAttachedObjectPrivate::itemParentChanged(QQuickItem *item, QQuickItem *parent)
-{
- Q_Q(QQuickAttachedObject);
- Q_UNUSED(parent);
- q->setAttachedParent(findAttachedParent(q->metaObject(), item));
-}
-
-QQuickAttachedObject::QQuickAttachedObject(QObject *parent)
- : QObject(*(new QQuickAttachedObjectPrivate), parent)
-{
- Q_D(QQuickAttachedObject);
- d->attachTo(parent);
-}
-
-QQuickAttachedObject::~QQuickAttachedObject()
-{
- Q_D(QQuickAttachedObject);
- d->detachFrom(parent());
- setAttachedParent(nullptr);
-}
-
-QList<QQuickAttachedObject *> QQuickAttachedObject::attachedChildren() const
-{
- Q_D(const QQuickAttachedObject);
- return d->attachedChildren;
-}
-
-QQuickAttachedObject *QQuickAttachedObject::attachedParent() const
-{
- Q_D(const QQuickAttachedObject);
- return d->attachedParent;
-}
-
-void QQuickAttachedObject::setAttachedParent(QQuickAttachedObject *parent)
-{
- Q_D(QQuickAttachedObject);
- if (d->attachedParent == parent)
- return;
-
- QQuickAttachedObject *oldParent = d->attachedParent;
- if (d->attachedParent)
- QQuickAttachedObjectPrivate::get(d->attachedParent)->attachedChildren.removeOne(this);
- d->attachedParent = parent;
- if (parent)
- QQuickAttachedObjectPrivate::get(parent)->attachedChildren.append(this);
- attachedParentChange(parent, oldParent);
-}
-
-void QQuickAttachedObject::init()
-{
- QQuickAttachedObject *attachedParent = findAttachedParent(metaObject(), parent());
- if (attachedParent)
- setAttachedParent(attachedParent);
-
- const QList<QQuickAttachedObject *> attachedChildren = findAttachedChildren(metaObject(), parent());
- for (QQuickAttachedObject *child : attachedChildren)
- child->setAttachedParent(this);
-}
-
-void QQuickAttachedObject::attachedParentChange(QQuickAttachedObject *newParent, QQuickAttachedObject *oldParent)
-{
- Q_UNUSED(newParent);
- Q_UNUSED(oldParent);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickattachedobject_p.h b/src/quickcontrols2/qquickattachedobject_p.h
deleted file mode 100644
index 1e90c082..00000000
--- a/src/quickcontrols2/qquickattachedobject_p.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKATTACHEDOBJECT_P_H
-#define QQUICKATTACHEDOBJECT_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQml/qqml.h>
-#include <QtCore/qobject.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAttachedObjectPrivate;
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickAttachedObject : public QObject
-{
- Q_OBJECT
-
-public:
- explicit QQuickAttachedObject(QObject *parent = nullptr);
- ~QQuickAttachedObject();
-
- QList<QQuickAttachedObject *> attachedChildren() const;
-
- QQuickAttachedObject *attachedParent() const;
- void setAttachedParent(QQuickAttachedObject *parent);
-
-protected:
- void init();
-
- virtual void attachedParentChange(QQuickAttachedObject *newParent, QQuickAttachedObject *oldParent);
-
-private:
- Q_DISABLE_COPY(QQuickAttachedObject)
- Q_DECLARE_PRIVATE(QQuickAttachedObject)
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKATTACHEDOBJECT_P_H
diff --git a/src/quickcontrols2/qquickchecklabel.cpp b/src/quickcontrols2/qquickchecklabel.cpp
deleted file mode 100644
index dccbf77f..00000000
--- a/src/quickcontrols2/qquickchecklabel.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickchecklabel_p.h"
-
-QT_BEGIN_NAMESPACE
-
-QQuickCheckLabel::QQuickCheckLabel(QQuickItem *parent) :
- QQuickText(parent)
-{
- setHAlign(AlignLeft);
- setVAlign(AlignVCenter);
- setElideMode(ElideRight);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickchecklabel_p.h b/src/quickcontrols2/qquickchecklabel_p.h
deleted file mode 100644
index 100ef48f..00000000
--- a/src/quickcontrols2/qquickchecklabel_p.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCHECKLABEL_P_H
-#define QQUICKCHECKLABEL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquicktext_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickCheckLabel : public QQuickText
-{
- Q_OBJECT
-
-public:
- explicit QQuickCheckLabel(QQuickItem *parent = nullptr);
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickCheckLabel)
-
-#endif // QQUICKCHECKLABEL_P_H
diff --git a/src/quickcontrols2/qquickclippedtext.cpp b/src/quickcontrols2/qquickclippedtext.cpp
deleted file mode 100644
index 862197f3..00000000
--- a/src/quickcontrols2/qquickclippedtext.cpp
+++ /dev/null
@@ -1,116 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickclippedtext_p.h"
-
-#include <QtQuick/private/qquickitem_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickClippedText::QQuickClippedText(QQuickItem *parent)
- : QQuickText(parent)
-{
-}
-
-qreal QQuickClippedText::clipX() const
-{
- return m_clipX;
-}
-
-void QQuickClippedText::setClipX(qreal x)
-{
- if (qFuzzyCompare(x, m_clipX))
- return;
-
- m_clipX = x;
- markClipDirty();
-}
-
-qreal QQuickClippedText::clipY() const
-{
- return m_clipY;
-}
-
-void QQuickClippedText::setClipY(qreal y)
-{
- if (qFuzzyCompare(y, m_clipY))
- return;
-
- m_clipY = y;
- markClipDirty();
-}
-
-qreal QQuickClippedText::clipWidth() const
-{
- return m_clipWidth ? m_clipWidth : width();
-}
-
-void QQuickClippedText::setClipWidth(qreal width)
-{
- m_hasClipWidth = true;
- if (qFuzzyCompare(width, m_clipWidth))
- return;
-
- m_clipWidth = width;
- markClipDirty();
-}
-
-qreal QQuickClippedText::clipHeight() const
-{
- return m_clipHeight ? m_clipHeight : height();
-}
-
-void QQuickClippedText::setClipHeight(qreal height)
-{
- m_hasClipHeight = true;
- if (qFuzzyCompare(height, m_clipHeight))
- return;
-
- m_clipHeight = height;
- markClipDirty();
-}
-
-QRectF QQuickClippedText::clipRect() const
-{
- return QRectF(clipX(), clipY(), clipWidth(), clipHeight());
-}
-
-void QQuickClippedText::markClipDirty()
-{
- QQuickItemPrivate::get(this)->dirty(QQuickItemPrivate::Size);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickclippedtext_p.h b/src/quickcontrols2/qquickclippedtext_p.h
deleted file mode 100644
index 486ac7c4..00000000
--- a/src/quickcontrols2/qquickclippedtext_p.h
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCLIPPEDTEXT_P_H
-#define QQUICKCLIPPEDTEXT_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquicktext_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickClippedText : public QQuickText
-{
- Q_OBJECT
- Q_PROPERTY(qreal clipX READ clipX WRITE setClipX FINAL)
- Q_PROPERTY(qreal clipY READ clipY WRITE setClipY FINAL)
- Q_PROPERTY(qreal clipWidth READ clipWidth WRITE setClipWidth FINAL)
- Q_PROPERTY(qreal clipHeight READ clipHeight WRITE setClipHeight FINAL)
-
-public:
- explicit QQuickClippedText(QQuickItem *parent = nullptr);
-
- qreal clipX() const;
- void setClipX(qreal x);
-
- qreal clipY() const;
- void setClipY(qreal y);
-
- qreal clipWidth() const;
- void setClipWidth(qreal width);
-
- qreal clipHeight() const;
- void setClipHeight(qreal height);
-
- QRectF clipRect() const override;
-
-private:
- void markClipDirty();
-
- bool m_hasClipWidth = false;
- bool m_hasClipHeight = false;
- qreal m_clipX = 0;
- qreal m_clipY = 0;
- qreal m_clipWidth = 0;
- qreal m_clipHeight = 0;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickClippedText)
-
-#endif // QQUICKCLIPPEDTEXT_P_H
diff --git a/src/quickcontrols2/qquickcolor.cpp b/src/quickcontrols2/qquickcolor.cpp
deleted file mode 100644
index 8ae568fc..00000000
--- a/src/quickcontrols2/qquickcolor.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickcolor_p.h"
-
-QT_BEGIN_NAMESPACE
-
-QQuickColor::QQuickColor(QObject *parent) :
- QObject(parent)
-{
-}
-
-QColor QQuickColor::transparent(const QColor &color, qreal opacity) const
-{
- return QColor(color.red(), color.green(), color.blue(),
- int(qreal(255) * qBound(qreal(0), opacity, qreal(1))));
-}
-
-QColor QQuickColor::blend(const QColor &a, const QColor &b, qreal factor) const
-{
- if (factor <= 0.0)
- return a;
- if (factor >= 1.0)
- return b;
-
- QColor color;
- color.setRedF(a.redF() * (1.0 - factor) + b.redF() * factor);
- color.setGreenF(a.greenF() * (1.0 - factor) + b.greenF() * factor);
- color.setBlueF(a.blueF() * (1.0 - factor) + b.blueF() * factor);
- return color;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickcolor_p.h b/src/quickcontrols2/qquickcolor_p.h
deleted file mode 100644
index 657a9fa4..00000000
--- a/src/quickcontrols2/qquickcolor_p.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCOLOR_P_H
-#define QQUICKCOLOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtGui/qcolor.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickColor : public QObject
-{
- Q_OBJECT
-
-public:
- explicit QQuickColor(QObject *parent = nullptr);
-
- Q_INVOKABLE QColor transparent(const QColor &color, qreal opacity) const;
- Q_INVOKABLE QColor blend(const QColor &a, const QColor &b, qreal factor) const;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKCOLOR_P_H
diff --git a/src/quickcontrols2/qquickcolorimage.cpp b/src/quickcontrols2/qquickcolorimage.cpp
deleted file mode 100644
index 3afcef7e..00000000
--- a/src/quickcontrols2/qquickcolorimage.cpp
+++ /dev/null
@@ -1,103 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickcolorimage_p.h"
-
-#include <QtQuick/private/qquickimagebase_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickColorImage::QQuickColorImage(QQuickItem *parent)
- : QQuickImage(parent)
-{
-}
-
-QColor QQuickColorImage::color() const
-{
- return m_color;
-}
-
-void QQuickColorImage::setColor(const QColor &color)
-{
- if (m_color == color)
- return;
-
- m_color = color;
- if (isComponentComplete())
- load();
- emit colorChanged();
-}
-
-void QQuickColorImage::resetColor()
-{
- setColor(Qt::transparent);
-}
-
-QColor QQuickColorImage::defaultColor() const
-{
- return m_defaultColor;
-}
-
-void QQuickColorImage::setDefaultColor(const QColor &color)
-{
- if (m_defaultColor == color)
- return;
-
- m_defaultColor = color;
- emit defaultColorChanged();
-}
-
-void QQuickColorImage::resetDefaultColor()
-{
- setDefaultColor(Qt::transparent);
-}
-
-void QQuickColorImage::pixmapChange()
-{
- QQuickImage::pixmapChange();
- if (m_color.alpha() > 0 && m_color != m_defaultColor) {
- QQuickImageBasePrivate *d = static_cast<QQuickImageBasePrivate *>(QQuickItemPrivate::get(this));
- QImage image = d->pix.image();
- if (!image.isNull()) {
- QPainter painter(&image);
- painter.setCompositionMode(QPainter::CompositionMode_SourceIn);
- painter.fillRect(image.rect(), m_color);
- d->pix.setImage(image);
- }
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickcolorimage_p.h b/src/quickcontrols2/qquickcolorimage_p.h
deleted file mode 100644
index 8227d068..00000000
--- a/src/quickcontrols2/qquickcolorimage_p.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCOLORIMAGE_P_H
-#define QQUICKCOLORIMAGE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtQuick/private/qquickimage_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickColorImage : public QQuickImage
-{
- Q_OBJECT
- Q_PROPERTY(QColor color READ color WRITE setColor RESET resetColor NOTIFY colorChanged FINAL)
- Q_PROPERTY(QColor defaultColor READ defaultColor WRITE setDefaultColor RESET resetDefaultColor NOTIFY defaultColorChanged FINAL)
-
-public:
- explicit QQuickColorImage(QQuickItem *parent = nullptr);
-
- QColor color() const;
- void setColor(const QColor &color);
- void resetColor();
-
- QColor defaultColor() const;
- void setDefaultColor(const QColor &color);
- void resetDefaultColor();
-
-Q_SIGNALS:
- void colorChanged();
- void defaultColorChanged();
-
-protected:
- void pixmapChange() override;
-
-private:
- QColor m_color = Qt::transparent;
- QColor m_defaultColor = Qt::transparent;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKCOLORIMAGE_P_H
diff --git a/src/quickcontrols2/qquickiconimage.cpp b/src/quickcontrols2/qquickiconimage.cpp
deleted file mode 100644
index d86afd7f..00000000
--- a/src/quickcontrols2/qquickiconimage.cpp
+++ /dev/null
@@ -1,213 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickiconimage_p.h"
-#include "qquickiconimage_p_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtQuick/private/qquickimagebase_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-bool QQuickIconImagePrivate::updateDevicePixelRatio(qreal targetDevicePixelRatio)
-{
- if (isThemeIcon) {
- devicePixelRatio = calculateDevicePixelRatio();
- return true;
- }
-
- return QQuickImagePrivate::updateDevicePixelRatio(targetDevicePixelRatio);
-}
-
-void QQuickIconImagePrivate::updateIcon()
-{
- Q_Q(QQuickIconImage);
- // Both geometryChanged() and QQuickImageBase::sourceSizeChanged()
- // (which we connect to updateIcon() in the constructor) can be called as a result
- // of updateIcon() changing the various sizes, so we must check that we're not recursing.
- if (updatingIcon)
- return;
-
- updatingIcon = true;
-
- QSize size = sourcesize;
- // If no size is specified for theme icons, it will use the smallest available size.
- if (size.width() <= 0)
- size.setWidth(q->width());
- if (size.height() <= 0)
- size.setHeight(q->height());
-
- const qreal dpr = calculateDevicePixelRatio();
- const QIconLoaderEngineEntry *entry = QIconLoaderEngine::entryForSize(icon, size * dpr, qCeil(dpr));
-
- if (entry) {
- QQmlContext *context = qmlContext(q);
- const QUrl entryUrl = QUrl::fromLocalFile(entry->filename);
- url = context ? context->resolvedUrl(entryUrl) : entryUrl;
- isThemeIcon = true;
- } else {
- url = source;
- isThemeIcon = false;
- }
- q->load();
-
- updatingIcon = false;
-}
-
-void QQuickIconImagePrivate::updateFillMode()
-{
- Q_Q(QQuickIconImage);
- // If we start with a sourceSize of 28x28 and then set sourceSize.width to 24, the fillMode
- // will change to PreserveAspectFit (because pixmapSize.width() > width()), which causes the
- // pixmap to be reloaded at its original size of 28x28, which causes the fillMode to change
- // to Pad (because pixmapSize.width() <= width()), and so on.
- if (updatingFillMode)
- return;
-
- updatingFillMode = true;
-
- const QSize pixmapSize = QSize(pix.width(), pix.height()) / calculateDevicePixelRatio();
- if (pixmapSize.width() > q->width() || pixmapSize.height() > q->height())
- q->setFillMode(QQuickImage::PreserveAspectFit);
- else
- q->setFillMode(QQuickImage::Pad);
-
- updatingFillMode = false;
-}
-
-qreal QQuickIconImagePrivate::calculateDevicePixelRatio() const
-{
- Q_Q(const QQuickIconImage);
- return q->window() ? q->window()->effectiveDevicePixelRatio() : qApp->devicePixelRatio();
-}
-
-QQuickIconImage::QQuickIconImage(QQuickItem *parent)
- : QQuickImage(*(new QQuickIconImagePrivate), parent)
-{
- setFillMode(Pad);
-}
-
-QString QQuickIconImage::name() const
-{
- Q_D(const QQuickIconImage);
- return d->icon.iconName;
-}
-
-void QQuickIconImage::setName(const QString &name)
-{
- Q_D(QQuickIconImage);
- if (d->icon.iconName == name)
- return;
-
- d->icon = QIconLoader::instance()->loadIcon(name);
- if (isComponentComplete())
- d->updateIcon();
- emit nameChanged();
-}
-
-QColor QQuickIconImage::color() const
-{
- Q_D(const QQuickIconImage);
- return d->color;
-}
-
-void QQuickIconImage::setColor(const QColor &color)
-{
- Q_D(QQuickIconImage);
- if (d->color == color)
- return;
-
- d->color = color;
- if (isComponentComplete())
- d->updateIcon();
- emit colorChanged();
-}
-
-void QQuickIconImage::setSource(const QUrl &source)
-{
- Q_D(QQuickIconImage);
- if (d->source == source)
- return;
-
- d->source = source;
- if (isComponentComplete())
- d->updateIcon();
- emit sourceChanged(source);
-}
-
-void QQuickIconImage::componentComplete()
-{
- Q_D(QQuickIconImage);
- QQuickImage::componentComplete();
- d->updateIcon();
- QObjectPrivate::connect(this, &QQuickImageBase::sourceSizeChanged, d, &QQuickIconImagePrivate::updateIcon);
-}
-
-void QQuickIconImage::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickIconImage);
- QQuickImage::geometryChanged(newGeometry, oldGeometry);
- if (isComponentComplete() && newGeometry.size() != oldGeometry.size())
- d->updateIcon();
-}
-
-void QQuickIconImage::itemChange(ItemChange change, const ItemChangeData &value)
-{
- Q_D(QQuickIconImage);
- if (change == ItemDevicePixelRatioHasChanged)
- d->updateIcon();
- QQuickImage::itemChange(change, value);
-}
-
-void QQuickIconImage::pixmapChange()
-{
- Q_D(QQuickIconImage);
- QQuickImage::pixmapChange();
- d->updateFillMode();
-
- // Don't apply the color if we're recursing (updateFillMode() can cause us to recurse).
- if (!d->updatingFillMode && d->color.alpha() > 0) {
- QImage image = d->pix.image();
- if (!image.isNull()) {
- QPainter painter(&image);
- painter.setCompositionMode(QPainter::CompositionMode_SourceIn);
- painter.fillRect(image.rect(), d->color);
- d->pix.setImage(image);
- }
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickiconimage_p.h b/src/quickcontrols2/qquickiconimage_p.h
deleted file mode 100644
index b1af767e..00000000
--- a/src/quickcontrols2/qquickiconimage_p.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKICONIMAGE_P_H
-#define QQUICKICONIMAGE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquickimage_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickIconImagePrivate;
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickIconImage : public QQuickImage
-{
- Q_OBJECT
- Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged FINAL)
- Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged FINAL)
-
-public:
- explicit QQuickIconImage(QQuickItem *parent = nullptr);
-
- QString name() const;
- void setName(const QString &name);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- void setSource(const QUrl &url) override;
-
-Q_SIGNALS:
- void nameChanged();
- void colorChanged();
-
-protected:
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void itemChange(ItemChange change, const ItemChangeData &value) override;
- void pixmapChange() override;
-
-private:
- Q_DISABLE_COPY(QQuickIconImage)
- Q_DECLARE_PRIVATE(QQuickIconImage)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickIconImage)
-
-#endif // QQUICKICONIMAGE_P_H
diff --git a/src/quickcontrols2/qquickiconimage_p_p.h b/src/quickcontrols2/qquickiconimage_p_p.h
deleted file mode 100644
index 0c755ff6..00000000
--- a/src/quickcontrols2/qquickiconimage_p_p.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKICONIMAGE_P_P_H
-#define QQUICKICONIMAGE_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquickimage_p_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-#include <QtGui/private/qiconloader_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickIconImagePrivate : public QQuickImagePrivate
-{
- Q_DECLARE_PUBLIC(QQuickIconImage)
-
-public:
- void updateIcon();
- void updateFillMode();
- qreal calculateDevicePixelRatio() const;
- bool updateDevicePixelRatio(qreal targetDevicePixelRatio) override;
-
- QUrl source;
- QColor color = Qt::transparent;
- QThemeIconInfo icon;
- bool updatingIcon = false;
- bool isThemeIcon = false;
- bool updatingFillMode = false;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKICONIMAGE_P_P_H
diff --git a/src/quickcontrols2/qquickiconlabel.cpp b/src/quickcontrols2/qquickiconlabel.cpp
deleted file mode 100644
index b246621b..00000000
--- a/src/quickcontrols2/qquickiconlabel.cpp
+++ /dev/null
@@ -1,642 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickiconlabel_p.h"
-#include "qquickiconlabel_p_p.h"
-#include "qquickiconimage_p.h"
-#include "qquickmnemoniclabel_p.h"
-
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquicktext_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static void beginClass(QQuickItem *item)
-{
- if (QQmlParserStatus *parserStatus = qobject_cast<QQmlParserStatus *>(item))
- parserStatus->classBegin();
-}
-
-static void completeComponent(QQuickItem *item)
-{
- if (QQmlParserStatus *parserStatus = qobject_cast<QQmlParserStatus *>(item))
- parserStatus->componentComplete();
-}
-
-bool QQuickIconLabelPrivate::hasIcon() const
-{
- return display != QQuickIconLabel::TextOnly && !icon.isEmpty();
-}
-
-bool QQuickIconLabelPrivate::hasText() const
-{
- return display != QQuickIconLabel::IconOnly && !text.isEmpty();
-}
-
-bool QQuickIconLabelPrivate::createImage()
-{
- Q_Q(QQuickIconLabel);
- if (image)
- return false;
-
- image = new QQuickIconImage(q);
- watchChanges(image);
- beginClass(image);
- image->setObjectName(QStringLiteral("image"));
- image->setName(icon.name());
- image->setSource(icon.source());
- image->setSourceSize(QSize(icon.width(), icon.height()));
- image->setColor(icon.color());
- image->setCache(icon.cache());
- QQmlEngine::setContextForObject(image, qmlContext(q));
- if (componentComplete)
- completeComponent(image);
- return true;
-}
-
-bool QQuickIconLabelPrivate::destroyImage()
-{
- if (!image)
- return false;
-
- unwatchChanges(image);
- delete image;
- image = nullptr;
- return true;
-}
-
-bool QQuickIconLabelPrivate::updateImage()
-{
- if (!hasIcon())
- return destroyImage();
- return createImage();
-}
-
-void QQuickIconLabelPrivate::syncImage()
-{
- if (!image || icon.isEmpty())
- return;
-
- image->setName(icon.name());
- image->setSource(icon.source());
- image->setSourceSize(QSize(icon.width(), icon.height()));
- image->setColor(icon.color());
- image->setCache(icon.cache());
- const int valign = alignment & Qt::AlignVertical_Mask;
- image->setVerticalAlignment(static_cast<QQuickImage::VAlignment>(valign));
- const int halign = alignment & Qt::AlignHorizontal_Mask;
- image->setHorizontalAlignment(static_cast<QQuickImage::HAlignment>(halign));
-}
-
-void QQuickIconLabelPrivate::updateOrSyncImage()
-{
- if (updateImage()) {
- if (componentComplete) {
- updateImplicitSize();
- layout();
- }
- } else {
- syncImage();
- }
-}
-
-bool QQuickIconLabelPrivate::createLabel()
-{
- Q_Q(QQuickIconLabel);
- if (label)
- return false;
-
- label = new QQuickMnemonicLabel(q);
- watchChanges(label);
- beginClass(label);
- label->setObjectName(QStringLiteral("label"));
- label->setFont(font);
- label->setColor(color);
- label->setElideMode(QQuickText::ElideRight);
- const int valign = alignment & Qt::AlignVertical_Mask;
- label->setVAlign(static_cast<QQuickText::VAlignment>(valign));
- const int halign = alignment & Qt::AlignHorizontal_Mask;
- label->setHAlign(static_cast<QQuickText::HAlignment>(halign));
- label->setText(text);
- if (componentComplete)
- completeComponent(label);
- return true;
-}
-
-bool QQuickIconLabelPrivate::destroyLabel()
-{
- if (!label)
- return false;
-
- unwatchChanges(label);
- delete label;
- label = nullptr;
- return true;
-}
-
-bool QQuickIconLabelPrivate::updateLabel()
-{
- if (!hasText())
- return destroyLabel();
- return createLabel();
-}
-
-void QQuickIconLabelPrivate::syncLabel()
-{
- if (!label)
- return;
-
- label->setText(text);
-}
-
-void QQuickIconLabelPrivate::updateOrSyncLabel()
-{
- if (updateLabel()) {
- if (componentComplete) {
- updateImplicitSize();
- layout();
- }
- } else {
- syncLabel();
- }
-}
-
-void QQuickIconLabelPrivate::updateImplicitSize()
-{
- Q_Q(QQuickIconLabel);
- const bool showIcon = image && hasIcon();
- const bool showText = label && hasText();
- const qreal horizontalPadding = leftPadding + rightPadding;
- const qreal verticalPadding = topPadding + bottomPadding;
- const qreal iconImplicitWidth = showIcon ? image->implicitWidth() : 0;
- const qreal iconImplicitHeight = showIcon ? image->implicitHeight() : 0;
- const qreal textImplicitWidth = showText ? label->implicitWidth() : 0;
- const qreal textImplicitHeight = showText ? label->implicitHeight() : 0;
- const qreal effectiveSpacing = showText && showIcon && image->implicitWidth() > 0 ? spacing : 0;
- const qreal implicitWidth = display == QQuickIconLabel::TextBesideIcon ? iconImplicitWidth + textImplicitWidth + effectiveSpacing
- : qMax(iconImplicitWidth, textImplicitWidth);
- const qreal implicitHeight = display == QQuickIconLabel::TextUnderIcon ? iconImplicitHeight + textImplicitHeight + effectiveSpacing
- : qMax(iconImplicitHeight, textImplicitHeight);
- q->setImplicitSize(implicitWidth + horizontalPadding, implicitHeight + verticalPadding);
-}
-
-// adapted from QStyle::alignedRect()
-static QRectF alignedRect(bool mirrored, Qt::Alignment alignment, const QSizeF &size, const QRectF &rectangle)
-{
- alignment = QGuiApplicationPrivate::visualAlignment(mirrored ? Qt::RightToLeft : Qt::LeftToRight, alignment);
- qreal x = rectangle.x();
- qreal y = rectangle.y();
- const qreal w = size.width();
- const qreal h = size.height();
- if ((alignment & Qt::AlignVCenter) == Qt::AlignVCenter)
- y += rectangle.height() / 2 - h / 2;
- else if ((alignment & Qt::AlignBottom) == Qt::AlignBottom)
- y += rectangle.height() - h;
- if ((alignment & Qt::AlignRight) == Qt::AlignRight)
- x += rectangle.width() - w;
- else if ((alignment & Qt::AlignHCenter) == Qt::AlignHCenter)
- x += rectangle.width() / 2 - w / 2;
- return QRectF(x, y, w, h);
-}
-
-void QQuickIconLabelPrivate::layout()
-{
- Q_Q(QQuickIconLabel);
- if (!componentComplete)
- return;
-
- const qreal availableWidth = width - leftPadding - rightPadding;
- const qreal availableHeight = height - topPadding - bottomPadding;
-
- switch (display) {
- case QQuickIconLabel::IconOnly:
- if (image) {
- const QRectF iconRect = alignedRect(mirrored, alignment,
- QSizeF(qMin(image->implicitWidth(), availableWidth),
- qMin(image->implicitHeight(), availableHeight)),
- QRectF(leftPadding, topPadding, availableWidth, availableHeight));
- image->setSize(iconRect.size());
- image->setPosition(iconRect.topLeft());
- }
- break;
- case QQuickIconLabel::TextOnly:
- if (label) {
- const QRectF textRect = alignedRect(mirrored, alignment,
- QSizeF(qMin(label->implicitWidth(), availableWidth),
- qMin(label->implicitHeight(), availableHeight)),
- QRectF(leftPadding, topPadding, availableWidth, availableHeight));
- label->setSize(textRect.size());
- label->setPosition(textRect.topLeft());
- }
- break;
-
- case QQuickIconLabel::TextUnderIcon: {
- // Work out the sizes first, as the positions depend on them.
- QSizeF iconSize;
- QSizeF textSize;
- if (image) {
- iconSize.setWidth(qMin(image->implicitWidth(), availableWidth));
- iconSize.setHeight(qMin(image->implicitHeight(), availableHeight));
- }
- qreal effectiveSpacing = 0;
- if (label) {
- if (!iconSize.isEmpty())
- effectiveSpacing = spacing;
- textSize.setWidth(qMin(label->implicitWidth(), availableWidth));
- textSize.setHeight(qMin(label->implicitHeight(), availableHeight - iconSize.height() - effectiveSpacing));
- }
-
- QRectF combinedRect = alignedRect(mirrored, alignment,
- QSizeF(qMax(iconSize.width(), textSize.width()),
- iconSize.height() + effectiveSpacing + textSize.height()),
- QRectF(leftPadding, topPadding, availableWidth, availableHeight));
- if (image) {
- QRectF iconRect = alignedRect(mirrored, Qt::AlignHCenter | Qt::AlignTop, iconSize, combinedRect);
- image->setSize(iconRect.size());
- image->setPosition(iconRect.topLeft());
- }
- if (label) {
- QRectF textRect = alignedRect(mirrored, Qt::AlignHCenter | Qt::AlignBottom, textSize, combinedRect);
- label->setSize(textRect.size());
- label->setPosition(textRect.topLeft());
- }
- break;
- }
-
- case QQuickIconLabel::TextBesideIcon:
- default:
- // Work out the sizes first, as the positions depend on them.
- QSizeF iconSize(0, 0);
- QSizeF textSize(0, 0);
- if (image) {
- iconSize.setWidth(qMin(image->implicitWidth(), availableWidth));
- iconSize.setHeight(qMin(image->implicitHeight(), availableHeight));
- }
- qreal effectiveSpacing = 0;
- if (label) {
- if (!iconSize.isEmpty())
- effectiveSpacing = spacing;
- textSize.setWidth(qMin(label->implicitWidth(), availableWidth - iconSize.width() - effectiveSpacing));
- textSize.setHeight(qMin(label->implicitHeight(), availableHeight));
- }
-
- const QRectF combinedRect = alignedRect(mirrored, alignment,
- QSizeF(iconSize.width() + effectiveSpacing + textSize.width(),
- qMax(iconSize.height(), textSize.height())),
- QRectF(leftPadding, topPadding, availableWidth, availableHeight));
- if (image) {
- const QRectF iconRect = alignedRect(mirrored, Qt::AlignLeft | Qt::AlignVCenter, iconSize, combinedRect);
- image->setSize(iconRect.size());
- image->setPosition(iconRect.topLeft());
- }
- if (label) {
- const QRectF textRect = alignedRect(mirrored, Qt::AlignRight | Qt::AlignVCenter, textSize, combinedRect);
- label->setSize(textRect.size());
- label->setPosition(textRect.topLeft());
- }
- break;
- }
-
- q->setBaselineOffset(label ? label->y() + label->baselineOffset() : 0);
-}
-
-static const QQuickItemPrivate::ChangeTypes itemChangeTypes =
- QQuickItemPrivate::ImplicitWidth
- | QQuickItemPrivate::ImplicitHeight
- | QQuickItemPrivate::Destroyed;
-
-void QQuickIconLabelPrivate::watchChanges(QQuickItem *item)
-{
- QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);
- itemPrivate->addItemChangeListener(this, itemChangeTypes);
-}
-
-void QQuickIconLabelPrivate::unwatchChanges(QQuickItem* item)
-{
- QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);
- itemPrivate->removeItemChangeListener(this, itemChangeTypes);
-}
-
-void QQuickIconLabelPrivate::itemImplicitWidthChanged(QQuickItem *)
-{
- updateImplicitSize();
- layout();
-}
-
-void QQuickIconLabelPrivate::itemImplicitHeightChanged(QQuickItem *)
-{
- updateImplicitSize();
- layout();
-}
-
-void QQuickIconLabelPrivate::itemDestroyed(QQuickItem *item)
-{
- unwatchChanges(item);
- if (item == image)
- image = nullptr;
- else if (item == label)
- label = nullptr;
-}
-
-QQuickIconLabel::QQuickIconLabel(QQuickItem *parent)
- : QQuickItem(*(new QQuickIconLabelPrivate), parent)
-{
-}
-
-QQuickIconLabel::~QQuickIconLabel()
-{
- Q_D(QQuickIconLabel);
- if (d->image)
- d->unwatchChanges(d->image);
- if (d->label)
- d->unwatchChanges(d->label);
-}
-
-QQuickIcon QQuickIconLabel::icon() const
-{
- Q_D(const QQuickIconLabel);
- return d->icon;
-}
-
-void QQuickIconLabel::setIcon(const QQuickIcon &icon)
-{
- Q_D(QQuickIconLabel);
- if (d->icon == icon)
- return;
-
- d->icon = icon;
- d->updateOrSyncImage();
-}
-
-QString QQuickIconLabel::text() const
-{
- Q_D(const QQuickIconLabel);
- return d->text;
-}
-
-void QQuickIconLabel::setText(const QString text)
-{
- Q_D(QQuickIconLabel);
- if (d->text == text)
- return;
-
- d->text = text;
- d->updateOrSyncLabel();
-}
-
-QFont QQuickIconLabel::font() const
-{
- Q_D(const QQuickIconLabel);
- return d->font;
-}
-
-void QQuickIconLabel::setFont(const QFont &font)
-{
- Q_D(QQuickIconLabel);
- if (d->font == font)
- return;
-
- d->font = font;
- if (d->label)
- d->label->setFont(font);
-}
-
-QColor QQuickIconLabel::color() const
-{
- Q_D(const QQuickIconLabel);
- return d->color;
-}
-
-void QQuickIconLabel::setColor(const QColor &color)
-{
- Q_D(QQuickIconLabel);
- if (d->color == color)
- return;
-
- d->color = color;
- if (d->label)
- d->label->setColor(color);
-}
-
-QQuickIconLabel::Display QQuickIconLabel::display() const
-{
- Q_D(const QQuickIconLabel);
- return d->display;
-}
-
-void QQuickIconLabel::setDisplay(Display display)
-{
- Q_D(QQuickIconLabel);
- if (d->display == display)
- return;
-
- d->display = display;
- d->updateImage();
- d->updateLabel();
- d->updateImplicitSize();
- d->layout();
-}
-
-qreal QQuickIconLabel::spacing() const
-{
- Q_D(const QQuickIconLabel);
- return d->spacing;
-}
-
-void QQuickIconLabel::setSpacing(qreal spacing)
-{
- Q_D(QQuickIconLabel);
- if (qFuzzyCompare(d->spacing, spacing))
- return;
-
- d->spacing = spacing;
- if (d->image && d->label) {
- d->updateImplicitSize();
- d->layout();
- }
-}
-
-bool QQuickIconLabel::isMirrored() const
-{
- Q_D(const QQuickIconLabel);
- return d->mirrored;
-}
-
-void QQuickIconLabel::setMirrored(bool mirrored)
-{
- Q_D(QQuickIconLabel);
- if (d->mirrored == mirrored)
- return;
-
- d->mirrored = mirrored;
- d->layout();
-}
-
-Qt::Alignment QQuickIconLabel::alignment() const
-{
- Q_D(const QQuickIconLabel);
- return d->alignment;
-}
-
-void QQuickIconLabel::setAlignment(Qt::Alignment alignment)
-{
- Q_D(QQuickIconLabel);
- const int valign = alignment & Qt::AlignVertical_Mask;
- const int halign = alignment & Qt::AlignHorizontal_Mask;
- const uint align = (valign ? valign : Qt::AlignVCenter) | (halign ? halign : Qt::AlignHCenter);
- if (d->alignment == align)
- return;
-
- d->alignment = static_cast<Qt::Alignment>(align);
- if (d->label) {
- d->label->setVAlign(static_cast<QQuickText::VAlignment>(valign));
- d->label->setHAlign(static_cast<QQuickText::HAlignment>(halign));
- }
- if (d->image) {
- d->image->setVerticalAlignment(static_cast<QQuickImage::VAlignment>(valign));
- d->image->setHorizontalAlignment(static_cast<QQuickImage::HAlignment>(halign));
- }
- d->layout();
-}
-
-qreal QQuickIconLabel::topPadding() const
-{
- Q_D(const QQuickIconLabel);
- return d->topPadding;
-}
-
-void QQuickIconLabel::setTopPadding(qreal padding)
-{
- Q_D(QQuickIconLabel);
- if (qFuzzyCompare(d->topPadding, padding))
- return;
-
- d->topPadding = padding;
- d->updateImplicitSize();
- d->layout();
-}
-
-void QQuickIconLabel::resetTopPadding()
-{
- setTopPadding(0);
-}
-
-qreal QQuickIconLabel::leftPadding() const
-{
- Q_D(const QQuickIconLabel);
- return d->leftPadding;
-}
-
-void QQuickIconLabel::setLeftPadding(qreal padding)
-{
- Q_D(QQuickIconLabel);
- if (qFuzzyCompare(d->leftPadding, padding))
- return;
-
- d->leftPadding = padding;
- d->updateImplicitSize();
- d->layout();
-}
-
-void QQuickIconLabel::resetLeftPadding()
-{
- setLeftPadding(0);
-}
-
-qreal QQuickIconLabel::rightPadding() const
-{
- Q_D(const QQuickIconLabel);
- return d->rightPadding;
-}
-
-void QQuickIconLabel::setRightPadding(qreal padding)
-{
- Q_D(QQuickIconLabel);
- if (qFuzzyCompare(d->rightPadding, padding))
- return;
-
- d->rightPadding = padding;
- d->updateImplicitSize();
- d->layout();
-}
-
-void QQuickIconLabel::resetRightPadding()
-{
- setRightPadding(0);
-}
-
-qreal QQuickIconLabel::bottomPadding() const
-{
- Q_D(const QQuickIconLabel);
- return d->bottomPadding;
-}
-
-void QQuickIconLabel::setBottomPadding(qreal padding)
-{
- Q_D(QQuickIconLabel);
- if (qFuzzyCompare(d->bottomPadding, padding))
- return;
-
- d->bottomPadding = padding;
- d->updateImplicitSize();
- d->layout();
-}
-
-void QQuickIconLabel::resetBottomPadding()
-{
- setBottomPadding(0);
-}
-
-void QQuickIconLabel::componentComplete()
-{
- Q_D(QQuickIconLabel);
- if (d->image)
- completeComponent(d->image);
- if (d->label)
- completeComponent(d->label);
- QQuickItem::componentComplete();
- d->layout();
-}
-
-void QQuickIconLabel::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickIconLabel);
- QQuickItem::geometryChanged(newGeometry, oldGeometry);
- d->layout();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickiconlabel_p.h b/src/quickcontrols2/qquickiconlabel_p.h
deleted file mode 100644
index df79dbf2..00000000
--- a/src/quickcontrols2/qquickiconlabel_p.h
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKICONLABEL_P_H
-#define QQUICKICONLABEL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/qquickitem.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-#include <QtQuickTemplates2/private/qquickicon_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickIconLabelPrivate;
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickIconLabel : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QQuickIcon icon READ icon WRITE setIcon FINAL)
- Q_PROPERTY(QString text READ text WRITE setText FINAL)
- Q_PROPERTY(QFont font READ font WRITE setFont FINAL)
- Q_PROPERTY(QColor color READ color WRITE setColor FINAL)
- Q_PROPERTY(Display display READ display WRITE setDisplay FINAL)
- Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing FINAL)
- Q_PROPERTY(bool mirrored READ isMirrored WRITE setMirrored FINAL)
- Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment FINAL)
- Q_PROPERTY(qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding FINAL)
- Q_PROPERTY(qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding FINAL)
- Q_PROPERTY(qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding FINAL)
- Q_PROPERTY(qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding FINAL)
-
-public:
- enum Display {
- IconOnly,
- TextOnly,
- TextBesideIcon,
- TextUnderIcon
- };
- Q_ENUM(Display)
-
- explicit QQuickIconLabel(QQuickItem *parent = nullptr);
- ~QQuickIconLabel();
-
- QQuickIcon icon() const;
- void setIcon(const QQuickIcon &icon);
-
- QString text() const;
- void setText(const QString text);
-
- QFont font() const;
- void setFont(const QFont &font);
-
- QColor color() const;
- void setColor(const QColor &color);
-
- Display display() const;
- void setDisplay(Display display);
-
- qreal spacing() const;
- void setSpacing(qreal spacing);
-
- bool isMirrored() const;
- void setMirrored(bool mirrored);
-
- Qt::Alignment alignment() const;
- void setAlignment(Qt::Alignment alignment);
-
- qreal topPadding() const;
- void setTopPadding(qreal padding);
- void resetTopPadding();
-
- qreal leftPadding() const;
- void setLeftPadding(qreal padding);
- void resetLeftPadding();
-
- qreal rightPadding() const;
- void setRightPadding(qreal padding);
- void resetRightPadding();
-
- qreal bottomPadding() const;
- void setBottomPadding(qreal padding);
- void resetBottomPadding();
-
-protected:
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
-private:
- Q_DISABLE_COPY(QQuickIconLabel)
- Q_DECLARE_PRIVATE(QQuickIconLabel)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickIconLabel)
-
-#endif // QQUICKICONLABEL_P_H
diff --git a/src/quickcontrols2/qquickiconlabel_p_p.h b/src/quickcontrols2/qquickiconlabel_p_p.h
deleted file mode 100644
index 6a2a0f58..00000000
--- a/src/quickcontrols2/qquickiconlabel_p_p.h
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKICONLABEL_P_P_H
-#define QQUICKICONLABEL_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-#include <QtQuickControls2/private/qquickiconlabel_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickIconImage;
-class QQuickMnemonicLabel;
-
-class QQuickIconLabelPrivate : public QQuickItemPrivate, public QQuickItemChangeListener
-{
- Q_DECLARE_PUBLIC(QQuickIconLabel)
-
-public:
- bool hasIcon() const;
- bool hasText() const;
-
- bool createImage();
- bool destroyImage();
- bool updateImage();
- void syncImage();
- void updateOrSyncImage();
-
- bool createLabel();
- bool destroyLabel();
- bool updateLabel();
- void syncLabel();
- void updateOrSyncLabel();
-
- void updateImplicitSize();
- void layout();
-
- void watchChanges(QQuickItem *item);
- void unwatchChanges(QQuickItem *item);
- void setPositioningDirty();
-
- bool isLeftToRight() const;
-
- void itemImplicitWidthChanged(QQuickItem *) override;
- void itemImplicitHeightChanged(QQuickItem *) override;
- void itemDestroyed(QQuickItem *item) override;
-
- bool mirrored = false;
- QQuickIconLabel::Display display = QQuickIconLabel::TextBesideIcon;
- Qt::Alignment alignment = Qt::AlignCenter;
- qreal spacing = 0;
- qreal topPadding = 0;
- qreal leftPadding = 0;
- qreal rightPadding = 0;
- qreal bottomPadding = 0;
- QFont font;
- QColor color;
- QString text;
- QQuickIcon icon;
- QQuickIconImage *image = nullptr;
- QQuickMnemonicLabel *label = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKICONLABEL_P_P_H
diff --git a/src/quickcontrols2/qquickitemgroup.cpp b/src/quickcontrols2/qquickitemgroup.cpp
deleted file mode 100644
index 1396a871..00000000
--- a/src/quickcontrols2/qquickitemgroup.cpp
+++ /dev/null
@@ -1,122 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickitemgroup_p.h"
-
-#include <QtQuick/private/qquickimplicitsizeitem_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickItemGroup::QQuickItemGroup(QQuickItem *parent)
- : QQuickImplicitSizeItem(*(new QQuickImplicitSizeItemPrivate), parent)
-{
-}
-
-QQuickItemGroup::~QQuickItemGroup()
-{
- const auto children = childItems();
- for (QQuickItem *child : children)
- unwatch(child);
-}
-
-void QQuickItemGroup::watch(QQuickItem *item)
-{
- QQuickItemPrivate::get(item)->addItemChangeListener(this, QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight);
-}
-
-void QQuickItemGroup::unwatch(QQuickItem *item)
-{
- QQuickItemPrivate::get(item)->removeItemChangeListener(this, QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight);
-}
-
-QSizeF QQuickItemGroup::calculateImplicitSize() const
-{
- qreal width = 0;
- qreal height = 0;
- const auto children = childItems();
- for (QQuickItem *child : children) {
- width = qMax(width, child->implicitWidth());
- height = qMax(height, child->implicitHeight());
- }
- return QSizeF(width, height);
-}
-
-void QQuickItemGroup::updateImplicitSize()
-{
- QSizeF size = calculateImplicitSize();
- setImplicitSize(size.width(), size.height());
-}
-
-void QQuickItemGroup::itemChange(ItemChange change, const ItemChangeData &data)
-{
- QQuickImplicitSizeItem::itemChange(change, data);
- switch (change) {
- case ItemChildAddedChange:
- watch(data.item);
- data.item->setSize(QSizeF(width(), height()));
- updateImplicitSize();
- break;
- case ItemChildRemovedChange:
- unwatch(data.item);
- updateImplicitSize();
- break;
- default:
- break;
- }
-}
-
-void QQuickItemGroup::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- QQuickImplicitSizeItem::geometryChanged(newGeometry, oldGeometry);
-
- if (newGeometry.size() != oldGeometry.size()) {
- const auto children = childItems();
- for (QQuickItem *child : children)
- child->setSize(newGeometry.size());
- }
-}
-
-void QQuickItemGroup::itemImplicitWidthChanged(QQuickItem *)
-{
- setImplicitWidth(calculateImplicitSize().width());
-}
-
-void QQuickItemGroup::itemImplicitHeightChanged(QQuickItem *)
-{
- setImplicitHeight(calculateImplicitSize().height());
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickitemgroup_p.h b/src/quickcontrols2/qquickitemgroup_p.h
deleted file mode 100644
index af062d57..00000000
--- a/src/quickcontrols2/qquickitemgroup_p.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKITEMGROUP_P_H
-#define QQUICKITEMGROUP_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquickimplicitsizeitem_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickItemGroup : public QQuickImplicitSizeItem, protected QQuickItemChangeListener
-{
- Q_OBJECT
-
-public:
- explicit QQuickItemGroup(QQuickItem *parent = nullptr);
- ~QQuickItemGroup();
-
-protected:
- void watch(QQuickItem *item);
- void unwatch(QQuickItem *item);
-
- QSizeF calculateImplicitSize() const;
- void updateImplicitSize();
-
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickItemGroup)
-
-#endif // QQUICKITEMGROUP_P_H
diff --git a/src/quickcontrols2/qquickmnemoniclabel.cpp b/src/quickcontrols2/qquickmnemoniclabel.cpp
deleted file mode 100644
index 193365b5..00000000
--- a/src/quickcontrols2/qquickmnemoniclabel.cpp
+++ /dev/null
@@ -1,132 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickmnemoniclabel_p.h"
-
-#include <QtQuick/private/qquicktext_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickMnemonicLabel::QQuickMnemonicLabel(QQuickItem *parent)
- : QQuickText(parent)
-{
-}
-
-QString QQuickMnemonicLabel::text() const
-{
- return m_fullText;
-}
-
-void QQuickMnemonicLabel::setText(const QString &text)
-{
- if (m_fullText == text)
- return;
-
- m_fullText = text;
- updateMnemonic();
-}
-
-bool QQuickMnemonicLabel::isMnemonicVisible() const
-{
- return m_mnemonicVisible;
-}
-
-void QQuickMnemonicLabel::setMnemonicVisible(bool visible)
-{
- if (m_mnemonicVisible == visible)
- return;
-
- m_mnemonicVisible = visible;
- updateMnemonic();
-
- if (isComponentComplete())
- forceLayout();
-}
-
-static QTextLayout::FormatRange underlineRange(int start, int length = 1)
-{
- QTextLayout::FormatRange range;
- range.start = start;
- range.length = length;
- range.format.setFontUnderline(true);
- return range;
-}
-
-// based on QPlatformTheme::removeMnemonics()
-void QQuickMnemonicLabel::updateMnemonic()
-{
- QString text(m_fullText.size(), QChar::Null);
- int idx = 0;
- int pos = 0;
- int len = m_fullText.length();
- QVector<QTextLayout::FormatRange> formats;
- while (len) {
- if (m_fullText.at(pos) == QLatin1Char('&') && (len == 1 || m_fullText.at(pos + 1) != QLatin1Char('&'))) {
- if (m_mnemonicVisible && (pos == 0 || m_fullText.at(pos - 1) != QLatin1Char('&')))
- formats += underlineRange(pos);
- ++pos;
- --len;
- if (len == 0)
- break;
- } else if (m_fullText.at(pos) == QLatin1Char('(') && len >= 4 &&
- m_fullText.at(pos + 1) == QLatin1Char('&') &&
- m_fullText.at(pos + 2) != QLatin1Char('&') &&
- m_fullText.at(pos + 3) == QLatin1Char(')')) {
- // a mnemonic with format "\s*(&X)"
- if (m_mnemonicVisible) {
- formats += underlineRange(pos + 1);
- } else {
- int n = 0;
- while (idx > n && text.at(idx - n - 1).isSpace())
- ++n;
- idx -= n;
- pos += 4;
- len -= 4;
- continue;
- }
- }
- text[idx] = m_fullText.at(pos);
- ++pos;
- ++idx;
- --len;
- }
- text.truncate(idx);
-
- QQuickTextPrivate::get(this)->layout.setFormats(formats);
- QQuickText::setText(text);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickmnemoniclabel_p.h b/src/quickcontrols2/qquickmnemoniclabel_p.h
deleted file mode 100644
index da5a83db..00000000
--- a/src/quickcontrols2/qquickmnemoniclabel_p.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMNEMONICLABEL_P_H
-#define QQUICKMNEMONICLABEL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquicktext_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickMnemonicLabel : public QQuickText
-{
- Q_OBJECT
- Q_PROPERTY(QString text READ text WRITE setText FINAL)
- Q_PROPERTY(bool mnemonicVisible READ isMnemonicVisible WRITE setMnemonicVisible FINAL)
-
-public:
- explicit QQuickMnemonicLabel(QQuickItem *parent = nullptr);
-
- QString text() const;
- void setText(const QString &text);
-
- bool isMnemonicVisible() const;
- void setMnemonicVisible(bool visible);
-
-private:
- void updateMnemonic();
-
- bool m_mnemonicVisible = true;
- QString m_fullText;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMnemonicLabel)
-
-#endif // QQUICKMNEMONICLABEL_P_H
diff --git a/src/quickcontrols2/qquickpaddedrectangle.cpp b/src/quickcontrols2/qquickpaddedrectangle.cpp
deleted file mode 100644
index fd9e9d90..00000000
--- a/src/quickcontrols2/qquickpaddedrectangle.cpp
+++ /dev/null
@@ -1,211 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickpaddedrectangle_p.h"
-
-#include <QtQuick/private/qsgadaptationlayer_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickPaddedRectangle::QQuickPaddedRectangle(QQuickItem *parent) :
- QQuickRectangle(parent)
-{
-}
-
-qreal QQuickPaddedRectangle::padding() const
-{
- return m_padding;
-}
-
-void QQuickPaddedRectangle::setPadding(qreal padding)
-{
- if (!qFuzzyCompare(m_padding, padding)) {
- m_padding = padding;
- update();
- emit paddingChanged();
- if (m_hasTopPadding)
- emit topPaddingChanged();
- if (!m_hasLeftPadding)
- emit leftPaddingChanged();
- if (!m_hasRightPadding)
- emit rightPaddingChanged();
- if (!m_hasBottomPadding)
- emit bottomPaddingChanged();
- }
-}
-
-void QQuickPaddedRectangle::resetPadding()
-{
- setPadding(0);
-}
-
-qreal QQuickPaddedRectangle::topPadding() const
-{
- return m_hasTopPadding ? m_topPadding : m_padding;
-}
-
-void QQuickPaddedRectangle::setTopPadding(qreal padding)
-{
- setTopPadding(padding, true);
-}
-
-void QQuickPaddedRectangle::resetTopPadding()
-{
- setTopPadding(0, false);
-}
-
-qreal QQuickPaddedRectangle::leftPadding() const
-{
- return m_hasLeftPadding ? m_leftPadding : m_padding;
-}
-
-void QQuickPaddedRectangle::setLeftPadding(qreal padding)
-{
- setLeftPadding(padding, true);
-}
-
-void QQuickPaddedRectangle::resetLeftPadding()
-{
- setLeftPadding(0, false);
-}
-
-qreal QQuickPaddedRectangle::rightPadding() const
-{
- return m_hasRightPadding ? m_rightPadding : m_padding;
-}
-
-void QQuickPaddedRectangle::setRightPadding(qreal padding)
-{
- setRightPadding(padding, true);
-}
-
-void QQuickPaddedRectangle::resetRightPadding()
-{
- setRightPadding(0, false);
-}
-
-qreal QQuickPaddedRectangle::bottomPadding() const
-{
- return m_hasBottomPadding ? m_bottomPadding : m_padding;
-}
-
-void QQuickPaddedRectangle::setBottomPadding(qreal padding)
-{
- setBottomPadding(padding, true);
-}
-
-void QQuickPaddedRectangle::resetBottomPadding()
-{
- setBottomPadding(0, false);
-}
-
-void QQuickPaddedRectangle::setTopPadding(qreal padding, bool has)
-{
- qreal oldPadding = topPadding();
- m_hasTopPadding = has;
- m_topPadding = padding;
- if (!qFuzzyCompare(oldPadding, padding)) {
- update();
- emit topPaddingChanged();
- }
-}
-
-void QQuickPaddedRectangle::setLeftPadding(qreal padding, bool has)
-{
- qreal oldPadding = leftPadding();
- m_hasLeftPadding = has;
- m_leftPadding = padding;
- if (!qFuzzyCompare(oldPadding, padding)) {
- update();
- emit leftPaddingChanged();
- }
-}
-
-void QQuickPaddedRectangle::setRightPadding(qreal padding, bool has)
-{
- qreal oldPadding = rightPadding();
- m_hasRightPadding = has;
- m_rightPadding = padding;
- if (!qFuzzyCompare(oldPadding, padding)) {
- update();
- emit rightPaddingChanged();
- }
-}
-
-void QQuickPaddedRectangle::setBottomPadding(qreal padding, bool has)
-{
- qreal oldPadding = bottomPadding();
- m_hasBottomPadding = has;
- m_bottomPadding = padding;
- if (!qFuzzyCompare(oldPadding, padding)) {
- update();
- emit bottomPaddingChanged();
- }
-}
-
-QSGNode *QQuickPaddedRectangle::updatePaintNode(QSGNode *node, UpdatePaintNodeData *data)
-{
- QSGTransformNode *transformNode = static_cast<QSGTransformNode *>(node);
- if (!transformNode)
- transformNode = new QSGTransformNode;
-
- QSGInternalRectangleNode *rectNode = static_cast<QSGInternalRectangleNode *>(QQuickRectangle::updatePaintNode(transformNode->firstChild(), data));
-
- if (rectNode) {
- if (!transformNode->firstChild())
- transformNode->appendChildNode(rectNode);
-
- qreal top = topPadding();
- qreal left = leftPadding();
- qreal right = rightPadding();
- qreal bottom = bottomPadding();
-
- if (!qFuzzyIsNull(top) || !qFuzzyIsNull(left) || !qFuzzyIsNull(right) || !qFuzzyIsNull(bottom)) {
- QMatrix4x4 m;
- m.translate(left, top);
- transformNode->setMatrix(m);
-
- qreal w = qMax<qreal>(0.0, width() -left-right);
- qreal h = qMax<qreal>(0.0, height() -top-bottom);
-
- rectNode->setRect(QRectF(0, 0, w, h));
- rectNode->update();
- }
- }
- return transformNode;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickpaddedrectangle_p.h b/src/quickcontrols2/qquickpaddedrectangle_p.h
deleted file mode 100644
index c2e0ddef..00000000
--- a/src/quickcontrols2/qquickpaddedrectangle_p.h
+++ /dev/null
@@ -1,119 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPADDEDRECTANGLE_P_H
-#define QQUICKPADDEDRECTANGLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquickrectangle_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickPaddedRectangle : public QQuickRectangle
-{
- Q_OBJECT
- Q_PROPERTY(qreal padding READ padding WRITE setPadding RESET resetPadding NOTIFY paddingChanged FINAL)
- Q_PROPERTY(qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding NOTIFY topPaddingChanged FINAL)
- Q_PROPERTY(qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding NOTIFY leftPaddingChanged FINAL)
- Q_PROPERTY(qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding NOTIFY rightPaddingChanged FINAL)
- Q_PROPERTY(qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding NOTIFY bottomPaddingChanged FINAL)
-
-public:
- QQuickPaddedRectangle(QQuickItem *parent = nullptr);
-
- qreal padding() const;
- void setPadding(qreal padding);
- void resetPadding();
-
- qreal topPadding() const;
- void setTopPadding(qreal padding);
- void resetTopPadding();
-
- qreal leftPadding() const;
- void setLeftPadding(qreal padding);
- void resetLeftPadding();
-
- qreal rightPadding() const;
- void setRightPadding(qreal padding);
- void resetRightPadding();
-
- qreal bottomPadding() const;
- void setBottomPadding(qreal padding);
- void resetBottomPadding();
-
-Q_SIGNALS:
- void paddingChanged();
- void topPaddingChanged();
- void leftPaddingChanged();
- void rightPaddingChanged();
- void bottomPaddingChanged();
-
-protected:
- QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;
-
-private:
- void setTopPadding(qreal padding, bool has);
- void setLeftPadding(qreal padding, bool has);
- void setRightPadding(qreal padding, bool has);
- void setBottomPadding(qreal padding, bool has);
-
- qreal m_padding = 0;
- qreal m_topPadding = 0;
- qreal m_leftPadding = 0;
- qreal m_rightPadding = 0;
- qreal m_bottomPadding = 0;
- bool m_hasTopPadding = false;
- bool m_hasLeftPadding = false;
- bool m_hasRightPadding = false;
- bool m_hasBottomPadding = false;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPaddedRectangle)
-
-#endif // QQUICKPADDEDRECTANGLE_P_H
diff --git a/src/quickcontrols2/qquickplaceholdertext.cpp b/src/quickcontrols2/qquickplaceholdertext.cpp
deleted file mode 100644
index 2fe6be07..00000000
--- a/src/quickcontrols2/qquickplaceholdertext.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickplaceholdertext_p.h"
-
-#include <QtQuick/private/qquicktext_p_p.h>
-#include <QtQuick/private/qquicktextinput_p_p.h>
-#include <QtQuick/private/qquicktextedit_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QQuickPlaceholderText::QQuickPlaceholderText(QQuickItem *parent) : QQuickText(parent)
-{
-}
-
-void QQuickPlaceholderText::componentComplete()
-{
- QQuickText::componentComplete();
- connect(parentItem(), SIGNAL(effectiveHorizontalAlignmentChanged()), this, SLOT(updateAlignment()));
- updateAlignment();
-}
-
-void QQuickPlaceholderText::updateAlignment()
-{
- if (QQuickTextInput *input = qobject_cast<QQuickTextInput *>(parentItem())) {
- if (QQuickTextInputPrivate::get(input)->hAlignImplicit)
- resetHAlign();
- else
- setHAlign(static_cast<HAlignment>(input->hAlign()));
- } else if (QQuickTextEdit *edit = qobject_cast<QQuickTextEdit *>(parentItem())) {
- if (QQuickTextEditPrivate::get(edit)->hAlignImplicit)
- resetHAlign();
- else
- setHAlign(static_cast<HAlignment>(edit->hAlign()));
- } else {
- resetHAlign();
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickplaceholdertext_p.h b/src/quickcontrols2/qquickplaceholdertext_p.h
deleted file mode 100644
index 1e49286c..00000000
--- a/src/quickcontrols2/qquickplaceholdertext_p.h
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPLACEHOLDERTEXT_P_H
-#define QQUICKPLACEHOLDERTEXT_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquicktext_p.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickPlaceholderText : public QQuickText
-{
- Q_OBJECT
-
-public:
- explicit QQuickPlaceholderText(QQuickItem *parent = nullptr);
-
-protected:
- void componentComplete() override;
-
-private Q_SLOTS:
- void updateAlignment();
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPlaceholderText)
-
-#endif // QQUICKPLACEHOLDERTEXT_P_H
diff --git a/src/quickcontrols2/qquickstyle.cpp b/src/quickcontrols2/qquickstyle.cpp
deleted file mode 100644
index e2b6678b..00000000
--- a/src/quickcontrols2/qquickstyle.cpp
+++ /dev/null
@@ -1,662 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickstyle.h"
-#include "qquickstyle_p.h"
-
-#include <QtCore/qdir.h>
-#include <QtCore/qfile.h>
-#include <QtCore/qdebug.h>
-#include <QtCore/qsettings.h>
-#include <QtCore/qfileselector.h>
-#include <QtCore/qlibraryinfo.h>
-#include <QtCore/qmetaobject.h>
-#include <QtGui/qcolor.h>
-#include <QtGui/qfont.h>
-#include <QtGui/qpalette.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQml/private/qqmlmetatype_p.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlfile.h>
-
-#include <functional>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \class QQuickStyle
- \brief The QQuickStyle class allows configuring the application style.
- \inmodule QtQuickControls2
- \since 5.7
-
- QQuickStyle provides API for querying and configuring the application
- \l {Styling Qt Quick Controls}{styles} of Qt Quick Controls.
-
- \code
- #include <QGuiApplication>
- #include <QQmlApplicationEngine>
- #include <QQuickStyle>
-
- int main(int argc, char *argv[])
- {
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
-
- QQuickStyle::setStyle("Material");
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/main.qml"));
-
- return app.exec();
- }
- \endcode
-
- \note The style must be configured \b before loading QML that imports
- Qt Quick Controls. It is not possible to change the style after the QML
- types have been registered.
-
- The style can also be specified as a path to a custom style, such as
- \c ":/mystyle". See \l {Creating a Custom Style} for more details about
- building custom styles. Custom styles do not need to implement all controls.
- By default, the styling system uses the \l {Default style} as a fallback
- for controls that a custom style does not provide. It is possible to
- specify a different fallback style to customize or extend one of the
- built-in styles.
-
- \code
- QQuickStyle::setStyle(":/mystyle");
- QQuickStyle::setFallbackStyle("Material");
- \endcode
-
- \sa {Styling Qt Quick Controls}
-*/
-
-static QStringList envPathList(const QByteArray &var)
-{
- QStringList paths;
- if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty(var))) {
- const QByteArray value = qgetenv(var);
- paths += QString::fromLocal8Bit(value).split(QDir::listSeparator(), QString::SkipEmptyParts);
- }
- return paths;
-}
-
-static QStringList defaultImportPathList()
-{
- QStringList importPaths;
- importPaths.reserve(3);
-#ifndef QT_STATIC
- importPaths += QLibraryInfo::location(QLibraryInfo::Qml2ImportsPath);
-#endif
- importPaths += envPathList("QML2_IMPORT_PATH");
- importPaths += QStringLiteral(":/qt-project.org/imports");
- importPaths += QCoreApplication::applicationDirPath();
- return importPaths;
-}
-
-struct QQuickStyleSpec
-{
- QQuickStyleSpec() : custom(false), resolved(false) { }
-
- QString name()
- {
- if (!resolved)
- resolve();
- return style.mid(style.lastIndexOf(QLatin1Char('/')) + 1);
- }
-
- QString path()
- {
- if (!resolved)
- resolve();
- QString s = style;
- if (QQmlFile::isLocalFile(s))
- s = QQmlFile::urlToLocalFileOrQrc(s);
- return s.left(s.lastIndexOf(QLatin1Char('/')) + 1);
- }
-
- void setStyle(const QString &s)
- {
- style = s;
- resolved = false;
- resolve();
- }
-
- void setFallbackStyle(const QString &fallback, const QByteArray &method)
- {
- fallbackStyle = fallback;
- fallbackMethod = method;
- }
-
- static QString findStyle(const QString &path, const QString &name)
- {
- QDir dir(path);
- if (!dir.exists())
- return QString();
-
- if (name.isEmpty())
- return dir.absolutePath() + QLatin1Char('/');
-
- const QStringList entries = dir.entryList(QStringList(), QDir::Dirs | QDir::NoDotAndDotDot);
- for (const QString &entry : entries) {
- if (entry.compare(name, Qt::CaseInsensitive) == 0)
- return dir.absoluteFilePath(entry);
- }
-
- return QString();
- }
-
- void resolve(const QUrl &baseUrl = QUrl())
- {
- if (style.isEmpty())
- style = QGuiApplicationPrivate::styleOverride;
- if (style.isEmpty())
- style = QString::fromLocal8Bit(qgetenv("QT_QUICK_CONTROLS_STYLE"));
- if (fallbackStyle.isEmpty())
- setFallbackStyle(QString::fromLocal8Bit(qgetenv("QT_QUICK_CONTROLS_FALLBACK_STYLE")), "QT_QUICK_CONTROLS_FALLBACK_STYLE");
-#if QT_CONFIG(settings)
- if (style.isEmpty() || fallbackStyle.isEmpty()) {
- QSharedPointer<QSettings> settings = QQuickStylePrivate::settings(QStringLiteral("Controls"));
- if (settings) {
- if (style.isEmpty())
- style = settings->value(QStringLiteral("Style")).toString();
- if (fallbackStyle.isEmpty())
- setFallbackStyle(settings->value(QStringLiteral("FallbackStyle")).toString(), ":/qtquickcontrols2.conf");
- }
- }
-#endif
-
- // resolve a path relative to the config
- QString configPath = QFileInfo(resolveConfigFilePath()).path();
- QString stylePath = findStyle(configPath, style);
- if (!stylePath.isEmpty()) {
- style = stylePath;
- resolved = true;
- }
-
- custom = style.contains(QLatin1Char('/'));
-
- if (baseUrl.isValid()) {
- QString path = QQmlFile::urlToLocalFileOrQrc(baseUrl);
- QString stylePath = findStyle(path, style);
- if (!stylePath.isEmpty()) {
- style = stylePath;
- resolved = true;
- }
- }
-
- if (QGuiApplication::instance()) {
- if (!custom) {
- const QStringList stylePaths = QQuickStylePrivate::stylePaths();
- for (const QString &path : stylePaths) {
- QString stylePath = findStyle(path, style);
- if (!stylePath.isEmpty()) {
- custom = !stylePath.startsWith(QQmlFile::urlToLocalFileOrQrc(baseUrl));
- style = stylePath;
- resolved = true;
- break;
- }
- }
- }
- resolved = true;
- }
- }
-
- void reset()
- {
- custom = false;
- resolved = false;
- style.clear();
- fallbackStyle.clear();
- fallbackMethod.clear();
- configFilePath.clear();
- }
-
- QString resolveConfigFilePath()
- {
- if (configFilePath.isEmpty()) {
- configFilePath = QFile::decodeName(qgetenv("QT_QUICK_CONTROLS_CONF"));
- if (configFilePath.isEmpty() || !QFile::exists(configFilePath)) {
- if (!configFilePath.isEmpty())
- qWarning("QT_QUICK_CONTROLS_CONF=%s: No such file", qPrintable(configFilePath));
-
- configFilePath = QStringLiteral(":/qtquickcontrols2.conf");
- }
- }
- return configFilePath;
- }
-
- bool custom;
- bool resolved;
- QString style;
- QString fallbackStyle;
- QByteArray fallbackMethod;
- QString configFilePath;
- QStringList customStylePaths;
-};
-
-Q_GLOBAL_STATIC(QQuickStyleSpec, styleSpec)
-
-static QStringList parseStylePathsWithColon(const QString &var)
-{
- QStringList paths;
- const QChar colon = QLatin1Char(':');
- int currentIndex = 0;
-
- do {
- int nextColonIndex = -1;
- QString path;
-
- if (var.at(currentIndex) == colon) {
- // This is either a list separator, or a qrc path.
- if (var.at(currentIndex + 1) == colon) {
- // It's a double colon (list separator followed by qrc path);
- // find the end of the path.
- nextColonIndex = var.indexOf(colon, currentIndex + 2);
- path = var.mid(currentIndex + 1,
- nextColonIndex == -1 ? -1 : nextColonIndex - currentIndex - 1);
- } else {
- // It's a single colon.
- nextColonIndex = var.indexOf(colon, currentIndex + 1);
- if (currentIndex == 0) {
- // If we're at the start of the string, then it's a qrc path.
- path = var.mid(currentIndex,
- nextColonIndex == -1 ? -1 : nextColonIndex - currentIndex);
- } else {
- // Otherwise, it's a separator.
- path = var.mid(currentIndex + 1,
- nextColonIndex == -1 ? -1 : nextColonIndex - currentIndex - 1);
- }
- }
- } else {
- // It's a file path.
- nextColonIndex = var.indexOf(colon, currentIndex);
- path = var.mid(currentIndex,
- nextColonIndex == -1 ? -1 : nextColonIndex - currentIndex);
- }
-
- paths += path;
- currentIndex = nextColonIndex;
-
- // Keep going until we can't find any more colons,
- // or we're at the last character.
- } while (currentIndex != -1 && currentIndex < var.size() - 1);
-
- return paths;
-}
-
-QStringList QQuickStylePrivate::stylePaths(bool resolve)
-{
- // user-requested style path
- QStringList paths;
- if (resolve) {
- QString path = styleSpec()->path();
- if (path.endsWith(QLatin1Char('/')))
- path.chop(1);
- if (!path.isEmpty())
- paths += path;
- }
-
- if (Q_UNLIKELY(!qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE_PATH"))) {
- const QString value = QString::fromLocal8Bit(qgetenv("QT_QUICK_CONTROLS_STYLE_PATH"));
- const QChar listSeparator = QDir::listSeparator();
- if (listSeparator == QLatin1Char(':')) {
- // Split manually to avoid breaking paths on systems where : is the list separator,
- // since it's also used for qrc paths.
- paths += parseStylePathsWithColon(value);
- } else {
- // Fast/simpler path for systems where something other than : is used as
- // the list separator (such as ';').
- const QStringList customPaths = value.split(listSeparator, QString::SkipEmptyParts);
- paths += customPaths;
- }
- }
-
- // system/custom style paths
- paths += styleSpec()->customStylePaths;
- paths += envPathList("QT_QUICK_CONTROLS_STYLE_PATH");
-
- // built-in import paths
- const QString targetPath = QStringLiteral("QtQuick/Controls.2");
- const QStringList importPaths = defaultImportPathList();
- for (const QString &importPath : importPaths) {
- QDir dir(importPath);
- if (dir.cd(targetPath))
- paths += dir.absolutePath();
- }
-
- paths.removeDuplicates();
- return paths;
-}
-
-QString QQuickStylePrivate::fallbackStyle()
-{
- return styleSpec()->fallbackStyle;
-}
-
-bool QQuickStylePrivate::isCustomStyle()
-{
- return styleSpec()->custom;
-}
-
-void QQuickStylePrivate::init(const QUrl &baseUrl)
-{
- QQuickStyleSpec *spec = styleSpec();
- spec->resolve(baseUrl);
-
- if (!spec->fallbackStyle.isEmpty()) {
- QString fallbackStyle = spec->findStyle(QQmlFile::urlToLocalFileOrQrc(baseUrl), spec->fallbackStyle);
- if (fallbackStyle.isEmpty()) {
- if (spec->fallbackStyle.compare(QStringLiteral("Default")) != 0) {
- qWarning() << "ERROR: unable to locate fallback style" << spec->fallbackStyle;
- qInfo().nospace().noquote() << spec->fallbackMethod << ": the fallback style must be the name of one of the built-in Qt Quick Controls 2 styles.";
- }
- spec->fallbackStyle.clear();
- }
- }
-}
-
-void QQuickStylePrivate::reset()
-{
- if (styleSpec())
- styleSpec()->reset();
-}
-
-QString QQuickStylePrivate::configFilePath()
-{
- return styleSpec()->resolveConfigFilePath();
-}
-
-QSharedPointer<QSettings> QQuickStylePrivate::settings(const QString &group)
-{
-#ifndef QT_NO_SETTINGS
- const QString filePath = QQuickStylePrivate::configFilePath();
- if (QFile::exists(filePath)) {
- QFileSelector selector;
- QSettings *settings = new QSettings(selector.select(filePath), QSettings::IniFormat);
- if (!group.isEmpty())
- settings->beginGroup(group);
- return QSharedPointer<QSettings>(settings);
- }
-#endif // QT_NO_SETTINGS
- return QSharedPointer<QSettings>();
-}
-
-#if QT_CONFIG(settings)
-static void readValue(const QSharedPointer<QSettings> &settings, const QString &name, std::function<void(const QVariant &)> setValue)
-{
- const QVariant var = settings->value(name);
- if (var.isValid())
- setValue(var);
-}
-
-template <typename Enum>
-static Enum toEnumValue(const QVariant &var)
-{
- // ### TODO: expose QFont enums to the meta object system using Q_ENUM
- //QMetaEnum enumeration = QMetaEnum::fromType<Enum>();
- //bool ok = false;
- //int value = enumeration.keyToValue(var.toByteArray(), &ok);
- //if (!ok)
- // value = var.toInt();
- //return static_cast<Enum>(value);
-
- return static_cast<Enum>(var.toInt());
-}
-
-const QFont *QQuickStylePrivate::readFont(const QSharedPointer<QSettings> &settings)
-{
- const QVariant var = settings->value(QStringLiteral("Font"));
- if (var.isValid())
- return new QFont(var.value<QFont>());
-
- QFont f;
- settings->beginGroup(QStringLiteral("Font"));
- readValue(settings, QStringLiteral("Family"), [&f](const QVariant &var) { f.setFamily(var.toString()); });
- readValue(settings, QStringLiteral("PointSize"), [&f](const QVariant &var) { f.setPointSizeF(var.toReal()); });
- readValue(settings, QStringLiteral("PixelSize"), [&f](const QVariant &var) { f.setPixelSize(var.toInt()); });
- readValue(settings, QStringLiteral("StyleHint"), [&f](const QVariant &var) { f.setStyleHint(toEnumValue<QFont::StyleHint>(var.toInt())); });
- readValue(settings, QStringLiteral("Weight"), [&f](const QVariant &var) { f.setWeight(toEnumValue<QFont::Weight>(var)); });
- readValue(settings, QStringLiteral("Style"), [&f](const QVariant &var) { f.setStyle(toEnumValue<QFont::Style>(var.toInt())); });
- settings->endGroup();
- return new QFont(f);
-}
-
-static void readColorGroup(const QSharedPointer<QSettings> &settings, QPalette::ColorGroup group, QPalette *palette)
-{
- const QStringList keys = settings->childKeys();
- if (keys.isEmpty())
- return;
-
- static const int index = QPalette::staticMetaObject.indexOfEnumerator("ColorRole");
- Q_ASSERT(index != -1);
- QMetaEnum metaEnum = QPalette::staticMetaObject.enumerator(index);
-
- for (const QString &key : keys) {
- bool ok = false;
- int role = metaEnum.keyToValue(key.toUtf8(), &ok);
- if (ok)
- palette->setColor(group, static_cast<QPalette::ColorRole>(role), settings->value(key).value<QColor>());
- }
-}
-
-const QPalette *QQuickStylePrivate::readPalette(const QSharedPointer<QSettings> &settings)
-{
- QPalette p;
- settings->beginGroup(QStringLiteral("Palette"));
- readColorGroup(settings, QPalette::All, &p);
-
- settings->beginGroup(QStringLiteral("Normal"));
- readColorGroup(settings, QPalette::Normal, &p);
- settings->endGroup();
-
- settings->beginGroup(QStringLiteral("Disabled"));
- readColorGroup(settings, QPalette::Disabled, &p);
- settings->endGroup();
- return new QPalette(p);
-}
-#endif // QT_CONFIG(settings)
-
-static bool qt_is_dark_system_theme()
-{
- if (const QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme()) {
- if (const QPalette *systemPalette = theme->palette(QPlatformTheme::SystemPalette)) {
- const QColor textColor = systemPalette->color(QPalette::WindowText);
- return textColor.red() > 128 && textColor.blue() > 128 && textColor.green() > 128;
- }
- }
- return false;
-}
-
-bool QQuickStylePrivate::isDarkSystemTheme()
-{
- static bool dark = qt_is_dark_system_theme();
- return dark;
-}
-
-/*!
- Returns the name of the application style.
-
- \note The application style can be specified by passing a \c -style command
- line argument. Therefore \c name() may not return a fully resolved
- value if called before constructing a QGuiApplication.
-*/
-QString QQuickStyle::name()
-{
- return styleSpec()->name();
-}
-
-/*!
- Returns the path of an overridden application style, or an empty
- string if the style is one of the built-in Qt Quick Controls 2 styles.
-
- \note The application style can be specified by passing a \c -style command
- line argument. Therefore \c path() may not return a fully resolved
- value if called before constructing a QGuiApplication.
-*/
-QString QQuickStyle::path()
-{
- return styleSpec()->path();
-}
-
-/*!
- Sets the application style to \a style.
-
- \note The style must be configured \b before loading QML that imports Qt Quick Controls.
- It is not possible to change the style after the QML types have been registered.
-
- \sa setFallbackStyle(), {Using Styles in Qt Quick Controls}
-*/
-void QQuickStyle::setStyle(const QString &style)
-{
- if (QQmlMetaType::isModule(QStringLiteral("QtQuick.Controls"), 2, 0)) {
- qWarning() << "ERROR: QQuickStyle::setStyle() must be called before loading QML that imports Qt Quick Controls 2.";
- return;
- }
-
- styleSpec()->setStyle(style);
-}
-
-/*!
- \since 5.8
- Sets the application fallback style to \a style.
-
- \note The fallback style must be the name of one of the built-in Qt Quick Controls styles, e.g. "Material".
-
- \note The style must be configured \b before loading QML that imports Qt Quick Controls.
- It is not possible to change the style after the QML types have been registered.
-
- The fallback style can be also specified by setting the \c QT_QUICK_CONTROLS_FALLBACK_STYLE
- \l {Supported Environment Variables in Qt Quick Controls}{environment variable}.
-
- \sa setStyle(), {Using Styles in Qt Quick Controls}
-*/
-void QQuickStyle::setFallbackStyle(const QString &style)
-{
- if (QQmlMetaType::isModule(QStringLiteral("QtQuick.Controls"), 2, 0)) {
- qWarning() << "ERROR: QQuickStyle::setFallbackStyle() must be called before loading QML that imports Qt Quick Controls 2.";
- return;
- }
-
- styleSpec()->setFallbackStyle(style, "QQuickStyle::setFallbackStyle()");
-}
-
-/*!
- \since 5.9
- Returns the names of the available styles.
-
- \note The method must be called \b after creating an instance of QGuiApplication.
-
- \sa stylePathList(), addStylePath()
-*/
-QStringList QQuickStyle::availableStyles()
-{
- QStringList styles;
- if (!QGuiApplication::instance()) {
- qWarning() << "ERROR: QQuickStyle::availableStyles() must be called after creating an instance of QGuiApplication.";
- return styles;
- }
-
- const QStringList stylePaths = QQuickStylePrivate::stylePaths();
- for (const QString &path : stylePaths) {
- const QList<QFileInfo> entries = QDir(path).entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot);
- for (const QFileInfo &entry : entries) {
- const QString name = entry.fileName();
- if (!name.endsWith(QLatin1String(".dSYM")) && name != QLatin1String("designer"))
- styles += name;
- }
- }
- styles.prepend(QStringLiteral("Default"));
- styles.removeDuplicates();
- return styles;
-}
-
-/*!
- \since 5.12
-
- Returns the list of directories where Qt Quick Controls 2 searches for available styles.
-
- By default, the list contains paths specified in the \c QT_QUICK_CONTROLS_STYLE_PATH
- environment variable, and any existing \c QtQuick/Controls.2 sub-directories in
- \l QQmlEngine::importPathList().
-
- \sa addStylePath(), availableStyles()
-*/
-QStringList QQuickStyle::stylePathList()
-{
- return QQuickStylePrivate::stylePaths();
-}
-
-/*!
- \since 5.12
-
- Adds \a path as a directory where Qt Quick Controls 2 searches for available styles.
-
- The \a path may be any local filesystem directory or \l {The Qt Resource System}{Qt Resource} directory.
- For example, the following paths are all valid:
-
- \list
- \li \c {/path/to/styles/}
- \li \c {file:///path/to/styles/}
- \li \c {:/path/to/styles/}
- \li \c {qrc:/path/to/styles/})
- \endlist
-
- The \a path will be converted into \l {QDir::canonicalPath}{canonical form} before it is added to
- the style path list.
-
- The newly added \a path will be first in the stylePathList().
-
- \sa stylePathList(), availableStyles()
-*/
-void QQuickStyle::addStylePath(const QString &path)
-{
- if (path.isEmpty())
- return;
-
- const QUrl url = QUrl(path);
- if (url.isRelative() || url.scheme() == QLatin1String("file")
- || (url.scheme().length() == 1 && QFile::exists(path)) ) { // windows path
- styleSpec()->customStylePaths.prepend(QDir(path).canonicalPath());
- } else if (url.scheme() == QLatin1String("qrc")) {
- styleSpec()->customStylePaths.prepend(QLatin1Char(':') + url.path());
- } else {
- styleSpec()->customStylePaths.prepend(path);
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickstyle.h b/src/quickcontrols2/qquickstyle.h
deleted file mode 100644
index ce55b76b..00000000
--- a/src/quickcontrols2/qquickstyle.h
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTYLE_H
-#define QQUICKSTYLE_H
-
-#include <QtCore/qurl.h>
-#include <QtCore/qstring.h>
-#include <QtQuickControls2/qtquickcontrols2global.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKCONTROLS2_EXPORT QQuickStyle
-{
-public:
- static QString name();
- static QString path();
- static void setStyle(const QString &style);
- static void setFallbackStyle(const QString &style);
- static QStringList availableStyles();
- static QStringList stylePathList();
- static void addStylePath(const QString &path);
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSTYLE_H
diff --git a/src/quickcontrols2/qquickstyle_p.h b/src/quickcontrols2/qquickstyle_p.h
deleted file mode 100644
index 205a4a11..00000000
--- a/src/quickcontrols2/qquickstyle_p.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTYLE_P_H
-#define QQUICKSTYLE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qurl.h>
-#include <QtCore/qsharedpointer.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QSettings;
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickStylePrivate
-{
-public:
- static QStringList stylePaths(bool resolve = false);
- static QString fallbackStyle();
- static bool isCustomStyle();
- static void init(const QUrl &baseUrl);
- static void reset();
- static QString configFilePath();
- static QSharedPointer<QSettings> settings(const QString &group = QString());
- static const QFont *readFont(const QSharedPointer<QSettings> &settings);
- static const QPalette *readPalette(const QSharedPointer<QSettings> &settings);
- static bool isDarkSystemTheme();
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSTYLE_P_H
diff --git a/src/quickcontrols2/qquickstyleplugin.cpp b/src/quickcontrols2/qquickstyleplugin.cpp
deleted file mode 100644
index 553a6cad..00000000
--- a/src/quickcontrols2/qquickstyleplugin.cpp
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquickstyleplugin_p.h"
-#include "qquickstyle.h"
-#include "qquickstyle_p.h"
-#include "qquickstyleselector_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QQuickStylePluginPrivate
-{
-public:
- mutable QScopedPointer<QQuickStyleSelector> selector;
-};
-
-QQuickStylePlugin::QQuickStylePlugin(QObject *parent)
- : QQmlExtensionPlugin(parent), d_ptr(new QQuickStylePluginPrivate)
-{
-}
-
-QQuickStylePlugin::~QQuickStylePlugin()
-{
-}
-
-QString QQuickStylePlugin::name() const
-{
- return QString();
-}
-
-void QQuickStylePlugin::initializeTheme(QQuickTheme *theme)
-{
- Q_UNUSED(theme);
-}
-
-QUrl QQuickStylePlugin::resolvedUrl(const QString &fileName) const
-{
- Q_D(const QQuickStylePlugin);
- if (!d->selector) {
- d->selector.reset(new QQuickStyleSelector);
- const QString style = QQuickStyle::name();
- if (!style.isEmpty())
- d->selector->addSelector(style);
-
- const QString fallback = QQuickStylePrivate::fallbackStyle();
- if (!fallback.isEmpty() && fallback != style)
- d->selector->addSelector(fallback);
-
- const QString theme = name();
- if (!theme.isEmpty() && theme != style)
- d->selector->addSelector(theme);
-
- d->selector->setPaths(QQuickStylePrivate::stylePaths(true));
- }
- return d->selector->select(fileName);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickstyleplugin_p.h b/src/quickcontrols2/qquickstyleplugin_p.h
deleted file mode 100644
index 6b89926c..00000000
--- a/src/quickcontrols2/qquickstyleplugin_p.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTYLEPLUGIN_P_H
-#define QQUICKSTYLEPLUGIN_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQml/qqmlextensionplugin.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTheme;
-class QQuickStylePluginPrivate;
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickStylePlugin : public QQmlExtensionPlugin
-{
- Q_OBJECT
-
-public:
- explicit QQuickStylePlugin(QObject *parent = nullptr);
- ~QQuickStylePlugin();
-
- virtual QString name() const;
- virtual void initializeTheme(QQuickTheme *theme);
-
- QUrl resolvedUrl(const QString &fileName) const;
-
-private:
- Q_DISABLE_COPY(QQuickStylePlugin)
- Q_DECLARE_PRIVATE(QQuickStylePlugin)
- QScopedPointer<QQuickStylePluginPrivate> d_ptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSTYLEPLUGIN_P_H
diff --git a/src/quickcontrols2/qquickstyleselector.cpp b/src/quickcontrols2/qquickstyleselector.cpp
deleted file mode 100644
index d11a95bd..00000000
--- a/src/quickcontrols2/qquickstyleselector.cpp
+++ /dev/null
@@ -1,157 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Copyright (C) 2013 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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.LGPL3 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-3.0.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 (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "qquickstyleselector_p.h"
-#include "qquickstyleselector_p_p.h"
-
-#include <QtCore/qfileinfo.h>
-#include <QtCore/qlocale.h>
-#include <QtCore/qloggingcategory.h>
-#include <QtCore/private/qfileselector_p.h>
-
-QT_BEGIN_NAMESPACE
-
-Q_LOGGING_CATEGORY(lcQtQuickControlsStyle, "qt.quick.controls.style")
-
-static QString ensureSlash(const QString &path)
-{
- if (path.isEmpty() || path.endsWith(QLatin1Char('/')))
- return path;
- return path + QLatin1Char('/');
-}
-
-static QStringList prefixedPlatformSelectors(const QChar &prefix)
-{
- QStringList selectors = QFileSelectorPrivate::platformSelectors();
- for (int i = 0; i < selectors.count(); ++i)
- selectors[i].prepend(prefix);
- return selectors;
-}
-
-static QStringList allSelectors()
-{
- static const QStringList platformSelectors = prefixedPlatformSelectors(QLatin1Char('+'));
- QStringList selectors = platformSelectors;
- const QString locale = QLocale().name();
- if (!locale.isEmpty())
- selectors += QLatin1Char('+') + locale;
- return selectors;
-}
-
-QUrl QQuickStyleSelectorPrivate::select(const QString &filePath) const
-{
- QFileInfo fi(filePath);
- // If file doesn't exist, don't select
- if (!fi.exists())
- return QUrl();
-
- const QString selected = QFileSelectorPrivate::selectionHelper(ensureSlash(fi.canonicalPath()),
- fi.fileName(), allSelectors(), QChar());
-
- if (selected.startsWith(QLatin1Char(':')))
- return QUrl(QLatin1String("qrc") + selected);
-
- return QUrl::fromLocalFile(selected.isEmpty() ? filePath : selected);
-}
-
-QQuickStyleSelector::QQuickStyleSelector() : d_ptr(new QQuickStyleSelectorPrivate)
-{
-}
-
-QQuickStyleSelector::~QQuickStyleSelector()
-{
-}
-
-QStringList QQuickStyleSelector::selectors() const
-{
- Q_D(const QQuickStyleSelector);
- return d->selectors;
-}
-
-void QQuickStyleSelector::addSelector(const QString &selector)
-{
- Q_D(QQuickStyleSelector);
- if (d->selectors.contains(selector))
- return;
-
- d->selectors += selector;
-}
-
-QStringList QQuickStyleSelector::paths() const
-{
- Q_D(const QQuickStyleSelector);
- return d->paths;
-}
-
-void QQuickStyleSelector::setPaths(const QStringList &paths)
-{
- Q_D(QQuickStyleSelector);
- d->paths = paths;
-}
-
-QUrl QQuickStyleSelector::select(const QString &fileName) const
-{
- Q_D(const QQuickStyleSelector);
- // The lookup order is
- // 1) requested style (e.g. "MyStyle", included in d->selectors)
- // 2) fallback style (e.g. "Material", included in d->selectors)
- // 3) default style (empty selector, not in d->selectors)
- qCDebug(lcQtQuickControlsStyle) << "selecting" << fileName << "from" << d->paths << "with selectors" << d->selectors;
-
- int to = d->selectors.count() - 1;
- if (d->selectors.isEmpty() || !d->selectors.first().isEmpty())
- ++to; // lookup #3 unless #1 is also empty (redundant)
-
- // NOTE: last iteration intentionally out of bounds => empty selector
- for (int i = 0; i <= to; ++i) {
- const QString selector = d->selectors.value(i);
- for (const QString &path : d->paths) {
- const QUrl selectedUrl = d->select(ensureSlash(path) + selector + QLatin1Char('/') + fileName);
- if (selectedUrl.isValid()) {
- qCDebug(lcQtQuickControlsStyle) << "==>" << selectedUrl << "from" << path << "with selector" << selector;
- return selectedUrl;
- }
- }
- }
-
- return fileName;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquickstyleselector_p.h b/src/quickcontrols2/qquickstyleselector_p.h
deleted file mode 100644
index c4c0f540..00000000
--- a/src/quickcontrols2/qquickstyleselector_p.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Copyright (C) 2013 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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.LGPL3 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-3.0.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 (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTYLESELECTOR_P_H
-#define QQUICKSTYLESELECTOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qurl.h>
-#include <QtCore/qstring.h>
-#include <QtCore/qscopedpointer.h>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickStyleSelectorPrivate;
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickStyleSelector
-{
-public:
- QQuickStyleSelector();
- ~QQuickStyleSelector();
-
- QStringList selectors() const;
- void addSelector(const QString &selector);
-
- QStringList paths() const;
- void setPaths(const QStringList &paths);
-
- QUrl select(const QString &fileName) const;
-
-private:
- Q_DISABLE_COPY(QQuickStyleSelector)
- Q_DECLARE_PRIVATE(QQuickStyleSelector)
- QScopedPointer<QQuickStyleSelectorPrivate> d_ptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSTYLESELECTOR_P_H
diff --git a/src/quickcontrols2/qquickstyleselector_p_p.h b/src/quickcontrols2/qquickstyleselector_p_p.h
deleted file mode 100644
index e69e7db2..00000000
--- a/src/quickcontrols2/qquickstyleselector_p_p.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/***************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Copyright (C) 2013 BlackBerry Limited. All rights reserved.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://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.LGPL3 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-3.0.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 (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTYLESELECTOR_P_P_H
-#define QQUICKSTYLESELECTOR_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickControls2/private/qquickstyleselector_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickStyleSelectorPrivate
-{
-public:
- QUrl select(const QString &filePath) const;
-
- QStringList paths;
- QStringList selectors;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSTYLESELECTOR_P_P_H
diff --git a/src/quickcontrols2/qquicktumblerview.cpp b/src/quickcontrols2/qquicktumblerview.cpp
deleted file mode 100644
index 5f5c065d..00000000
--- a/src/quickcontrols2/qquicktumblerview.cpp
+++ /dev/null
@@ -1,317 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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 "qquicktumblerview_p.h"
-
-#include <QtCore/qloggingcategory.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquicklistview_p.h>
-#include <QtQuick/private/qquickpathview_p.h>
-
-#include <QtQuickTemplates2/private/qquicktumbler_p.h>
-#include <QtQuickTemplates2/private/qquicktumbler_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-Q_LOGGING_CATEGORY(lcTumblerView, "qt.quick.controls.tumblerview")
-
-QQuickTumblerView::QQuickTumblerView(QQuickItem *parent) :
- QQuickItem(parent)
-{
- // We don't call createView() here because we don't know what the wrap flag is set to
- // yet, and we don't want to create a view that might never get used.
-}
-
-QVariant QQuickTumblerView::model() const
-{
- return m_model;
-}
-
-void QQuickTumblerView::setModel(const QVariant &model)
-{
- qCDebug(lcTumblerView) << "setting model to:" << model << "on"
- << (m_pathView ? static_cast<QObject*>(m_pathView) : static_cast<QObject*>(m_listView));
- if (model == m_model)
- return;
-
- m_model = model;
-
- if (m_pathView) {
- m_pathView->setModel(m_model);
- } else if (m_listView) {
- // QQuickItemView::setModel() resets the current index,
- // but if we're still creating the Tumbler, it should be maintained.
- const int oldCurrentIndex = m_listView->currentIndex();
- m_listView->setModel(m_model);
- if (!isComponentComplete())
- m_listView->setCurrentIndex(oldCurrentIndex);
- }
-
- emit modelChanged();
-}
-
-QQmlComponent *QQuickTumblerView::delegate() const
-{
- return m_delegate;
-}
-
-void QQuickTumblerView::setDelegate(QQmlComponent *delegate)
-{
- qCDebug(lcTumblerView) << "setting delegate to:" << delegate << "on"
- << (m_pathView ? static_cast<QObject*>(m_pathView) : static_cast<QObject*>(m_listView));
- if (delegate == m_delegate)
- return;
-
- m_delegate = delegate;
-
- if (m_pathView)
- m_pathView->setDelegate(m_delegate);
- else if (m_listView)
- m_listView->setDelegate(m_delegate);
-
- emit delegateChanged();
-}
-
-QQuickPath *QQuickTumblerView::path() const
-{
- return m_path;
-}
-
-void QQuickTumblerView::setPath(QQuickPath *path)
-{
- if (path == m_path)
- return;
-
- m_path = path;
- emit pathChanged();
-}
-
-void QQuickTumblerView::createView()
-{
- Q_ASSERT(m_tumbler);
-
- // We create a view regardless of whether or not we know
- // the count yet, because we rely on the view to tell us the count.
- if (m_tumbler->wrap()) {
- if (m_listView) {
- // It's necessary to call deleteLater() rather than delete,
- // as this code is most likely being run in rensponse to a signal
- // emission somewhere in the list view's internals, so we need to
- // wait until that has finished.
- m_listView->deleteLater();
- QQml_setParent_noEvent(m_listView, nullptr);
- // The auto tests pass with unparenting the list view alone, but
- // just to be sure, we unset some other things as well.
- m_listView->setParentItem(nullptr);
- m_listView->setVisible(false);
- m_listView->setModel(QVariant());
- m_listView = nullptr;
- }
-
- if (!m_pathView) {
- qCDebug(lcTumblerView) << "creating PathView";
-
- m_pathView = new QQuickPathView;
- QQmlEngine::setContextForObject(m_pathView, qmlContext(this));
- QQml_setParent_noEvent(m_pathView, this);
- m_pathView->setParentItem(this);
- m_pathView->setPath(m_path);
- m_pathView->setDelegate(m_delegate);
- m_pathView->setPreferredHighlightBegin(0.5);
- m_pathView->setPreferredHighlightEnd(0.5);
- m_pathView->setHighlightMoveDuration(1000);
- m_pathView->setClip(true);
-
- // Give the view a size.
- updateView();
- // Set the model.
- updateModel();
-
- qCDebug(lcTumblerView) << "finished creating PathView";
- }
- } else {
- if (m_pathView) {
- m_pathView->deleteLater();
- QQml_setParent_noEvent(m_pathView, nullptr);
- m_pathView->setParentItem(nullptr);
- m_pathView->setVisible(false);
- m_pathView->setModel(QVariant());
- m_pathView = nullptr;
- }
-
- if (!m_listView) {
- qCDebug(lcTumblerView) << "creating ListView";
-
- m_listView = new QQuickListView;
- QQmlEngine::setContextForObject(m_listView, qmlContext(this));
- QQml_setParent_noEvent(m_listView, this);
- m_listView->setParentItem(this);
- m_listView->setSnapMode(QQuickListView::SnapToItem);
- m_listView->setHighlightRangeMode(QQuickListView::StrictlyEnforceRange);
- m_listView->setClip(true);
-
- // Give the view a size.
- updateView();
- // Set the model.
- updateModel();
-
- // Set these after the model is set so that the currentItem animation
- // happens instantly on startup/after switching models. If we set them too early,
- // the view animates any potential currentIndex change over one second,
- // which we don't want when the contentItem has just been created.
- m_listView->setDelegate(m_delegate);
- m_listView->setHighlightMoveDuration(1000);
-
- qCDebug(lcTumblerView) << "finished creating ListView";
- }
- }
-}
-
-// Called whenever the size or visibleItemCount changes.
-void QQuickTumblerView::updateView()
-{
- QQuickItem *theView = view();
- if (!theView)
- return;
-
- theView->setSize(QSizeF(width(), height()));
-
- // Can be called in geometryChanged when it might not have a parent item yet.
- if (!m_tumbler)
- return;
-
- // Set view-specific properties that have a dependency on the size, etc.
- if (m_pathView) {
- m_pathView->setPathItemCount(m_tumbler->visibleItemCount() + 1);
- m_pathView->setDragMargin(width() / 2);
- } else {
- m_listView->setPreferredHighlightBegin(height() / 2 - (height() / m_tumbler->visibleItemCount() / 2));
- m_listView->setPreferredHighlightEnd(height() / 2 + (height() / m_tumbler->visibleItemCount() / 2));
- }
-}
-
-void QQuickTumblerView::updateModel()
-{
- if (m_pathView && !m_pathView->model().isValid() && m_model.isValid()) {
- // QQuickPathView::setPathItemCount() resets the offset animation,
- // so we just skip the animation while constructing the view.
- const int oldHighlightMoveDuration = m_pathView->highlightMoveDuration();
- m_pathView->setHighlightMoveDuration(0);
-
- // Setting model can change the count, which can affect the wrap, which can cause
- // the current view to be deleted before setModel() is finished, which causes a crash.
- // Since QQuickTumbler can't know about QQuickTumblerView, we use its private API to
- // inform it that it should delay setting wrap.
- QQuickTumblerPrivate *tumblerPrivate = QQuickTumblerPrivate::get(m_tumbler);
- tumblerPrivate->beginSetModel();
- m_pathView->setModel(m_model);
- tumblerPrivate->endSetModel();
-
- // The count-depends-on-wrap behavior could cause wrap to change after
- // the call above, so we must check that we're still using a PathView.
- if (m_pathView)
- m_pathView->setHighlightMoveDuration(oldHighlightMoveDuration);
- } else if (m_listView && !m_listView->model().isValid() && m_model.isValid()) {
- const int currentIndex = m_tumbler->currentIndex();
- QQuickTumblerPrivate *tumblerPrivate = QQuickTumblerPrivate::get(m_tumbler);
-
- // setModel() causes QQuickTumblerPrivate::_q_onViewCountChanged() to
- // be called, which calls QQuickTumbler::setCurrentIndex(),
- // which results in QQuickItemViewPrivate::createHighlightItem() being
- // called. When the highlight item is created,
- // QQuickTumblerPrivate::itemChildAdded() is notified and
- // QQuickTumblerPrivate::_q_updateItemHeights() is called, which causes
- // a geometry change in the item and createHighlight() is called again.
- // However, since the highlight item hadn't been assigned yet in the
- // previous call frame, the "if (highlight) { delete highlight; }"
- // check doesn't succeed, so the item is never deleted.
- //
- // To avoid this, we tell QQuickTumblerPrivate to ignore signals while
- // setting the model, and manually call _q_onViewCountChanged() to
- // ensure the correct sequence of calls happens (_q_onViewCountChanged()
- // has to be within the ignoreSignals scope, because it also generates
- // recursion otherwise).
- tumblerPrivate->ignoreSignals = true;
- m_listView->setModel(m_model);
- m_listView->setCurrentIndex(currentIndex);
-
- tumblerPrivate->_q_onViewCountChanged();
- tumblerPrivate->ignoreSignals = false;
- }
-}
-
-void QQuickTumblerView::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- QQuickItem::geometryChanged(newGeometry, oldGeometry);
- updateView();
-}
-
-void QQuickTumblerView::componentComplete()
-{
- QQuickItem::componentComplete();
- updateView();
-}
-
-void QQuickTumblerView::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- QQuickItem::itemChange(change, data);
-
- if (change == QQuickItem::ItemParentHasChanged && data.item) {
- if (m_tumbler)
- m_tumbler->disconnect(this);
-
- m_tumbler = qobject_cast<QQuickTumbler*>(parentItem());
-
- if (m_tumbler) {
- // We assume that the parentChanged() signal of the tumbler will be emitted before its wrap property is set...
- connect(m_tumbler, &QQuickTumbler::wrapChanged, this, &QQuickTumblerView::createView);
- connect(m_tumbler, &QQuickTumbler::visibleItemCountChanged, this, &QQuickTumblerView::updateView);
- }
- }
-}
-
-QQuickItem *QQuickTumblerView::view()
-{
- if (!m_tumbler)
- return nullptr;
-
- if (m_tumbler->wrap())
- return m_pathView;
-
- return m_listView;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quickcontrols2/qquicktumblerview_p.h b/src/quickcontrols2/qquicktumblerview_p.h
deleted file mode 100644
index 138af1b4..00000000
--- a/src/quickcontrols2/qquicktumblerview_p.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTUMBLERVIEW_P_H
-#define QQUICKTUMBLERVIEW_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QQuickItem>
-#include <QtQuickControls2/private/qtquickcontrols2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickListView;
-class QQuickPath;
-class QQuickPathView;
-
-class QQuickTumbler;
-
-class Q_QUICKCONTROLS2_PRIVATE_EXPORT QQuickTumblerView : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QVariant model READ model WRITE setModel NOTIFY modelChanged)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged)
- Q_PROPERTY(QQuickPath *path READ path WRITE setPath NOTIFY pathChanged)
-
-public:
- QQuickTumblerView(QQuickItem *parent = nullptr);
-
- QVariant model() const;
- void setModel(const QVariant &model);
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
- QQuickPath *path() const;
- void setPath(QQuickPath *path);
-
-Q_SIGNALS:
- void modelChanged();
- void delegateChanged();
- void pathChanged();
-
-protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void componentComplete() override;
- void itemChange(ItemChange change, const ItemChangeData &data) override;
-
-private:
- QQuickItem *view();
- void createView();
- void updateView();
- void updateModel();
-
- void wrapChange();
-
- QQuickTumbler *m_tumbler = nullptr;
- QVariant m_model;
- QQmlComponent *m_delegate = nullptr;
- QQuickPathView *m_pathView = nullptr;
- QQuickListView *m_listView = nullptr;
- QQuickPath *m_path = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // TUMBLERVIEW_H
diff --git a/src/quickcontrols2/qtquickcontrols2global.h b/src/quickcontrols2/qtquickcontrols2global.h
deleted file mode 100644
index 813cdbbb..00000000
--- a/src/quickcontrols2/qtquickcontrols2global.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QTQUICKCONTROLS2GLOBAL_H
-#define QTQUICKCONTROLS2GLOBAL_H
-
-#include <QtCore/qglobal.h>
-
-QT_BEGIN_NAMESPACE
-
-#ifndef QT_STATIC
-# if defined(QT_BUILD_QUICKCONTROLS2_LIB)
-# define Q_QUICKCONTROLS2_EXPORT Q_DECL_EXPORT
-# else
-# define Q_QUICKCONTROLS2_EXPORT Q_DECL_IMPORT
-# endif
-#else
-# define Q_QUICKCONTROLS2_EXPORT
-#endif
-
-QT_END_NAMESPACE
-
-#endif // QTQUICKCONTROLS2GLOBAL_H
diff --git a/src/quickcontrols2/qtquickcontrols2global_p.h b/src/quickcontrols2/qtquickcontrols2global_p.h
deleted file mode 100644
index 7a54849e..00000000
--- a/src/quickcontrols2/qtquickcontrols2global_p.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Controls 2 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$
-**
-****************************************************************************/
-
-#ifndef QTQUICKCONTROLS2GLOBAL_P_H
-#define QTQUICKCONTROLS2GLOBAL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickControls2/qtquickcontrols2global.h>
-#include <QtQuickControls2/private/qtquickcontrols2-config_p.h>
-
-#define Q_QUICKCONTROLS2_PRIVATE_EXPORT Q_QUICKCONTROLS2_EXPORT
-
-#endif // QTQUICKCONTROLS2GLOBAL_P_H
diff --git a/src/quickcontrols2/quickcontrols2.pri b/src/quickcontrols2/quickcontrols2.pri
deleted file mode 100644
index 781658ef..00000000
--- a/src/quickcontrols2/quickcontrols2.pri
+++ /dev/null
@@ -1,44 +0,0 @@
-HEADERS += \
- $$PWD/qquickanimatednode_p.h \
- $$PWD/qquickattachedobject_p.h \
- $$PWD/qquickchecklabel_p.h \
- $$PWD/qquickclippedtext_p.h \
- $$PWD/qquickcolor_p.h \
- $$PWD/qquickcolorimage_p.h \
- $$PWD/qquickiconimage_p.h \
- $$PWD/qquickiconimage_p_p.h \
- $$PWD/qquickiconlabel_p.h \
- $$PWD/qquickiconlabel_p_p.h \
- $$PWD/qquickitemgroup_p.h \
- $$PWD/qquickmnemoniclabel_p.h \
- $$PWD/qquickpaddedrectangle_p.h \
- $$PWD/qquickplaceholdertext_p.h \
- $$PWD/qquickstyle.h \
- $$PWD/qquickstyle_p.h \
- $$PWD/qquickstyleplugin_p.h \
- $$PWD/qquickstyleselector_p.h \
- $$PWD/qquickstyleselector_p_p.h
-
-SOURCES += \
- $$PWD/qquickanimatednode.cpp \
- $$PWD/qquickattachedobject.cpp \
- $$PWD/qquickchecklabel.cpp \
- $$PWD/qquickclippedtext.cpp \
- $$PWD/qquickcolor.cpp \
- $$PWD/qquickcolorimage.cpp \
- $$PWD/qquickiconimage.cpp \
- $$PWD/qquickiconlabel.cpp \
- $$PWD/qquickitemgroup.cpp \
- $$PWD/qquickmnemoniclabel.cpp \
- $$PWD/qquickpaddedrectangle.cpp \
- $$PWD/qquickplaceholdertext.cpp \
- $$PWD/qquickstyle.cpp \
- $$PWD/qquickstyleplugin.cpp \
- $$PWD/qquickstyleselector.cpp
-
-qtConfig(quick-listview):qtConfig(quick-pathview) {
- HEADERS += \
- $$PWD/qquicktumblerview_p.h
- SOURCES += \
- $$PWD/qquicktumblerview.cpp
-}
diff --git a/src/quickcontrols2/quickcontrols2.pro b/src/quickcontrols2/quickcontrols2.pro
deleted file mode 100644
index 8aec9953..00000000
--- a/src/quickcontrols2/quickcontrols2.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-TARGET = QtQuickControls2
-MODULE = quickcontrols2
-
-QT += quick
-QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-HEADERS += \
- $$PWD/qtquickcontrols2global.h \
- $$PWD/qtquickcontrols2global_p.h
-
-include(quickcontrols2.pri)
-load(qt_module)
diff --git a/src/quicktemplates2/configure.json b/src/quicktemplates2/configure.json
deleted file mode 100644
index 030e668b..00000000
--- a/src/quicktemplates2/configure.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "module": "quicktemplates2",
-
- "features": {
- "quicktemplates2-hover": {
- "label": "Hover support",
- "purpose": "Provides support for hover effects.",
- "section": "Quick Templates 2",
- "output": [ "privateFeature" ]
- },
- "quicktemplates2-multitouch": {
- "label": "Multi-touch support",
- "purpose": "Provides support for multi-touch.",
- "section": "Quick Templates 2",
- "output": [ "privateFeature" ]
- }
- },
-
- "summary": [
- {
- "section": "Qt Quick Templates 2",
- "entries": [
- "quicktemplates2-hover",
- "quicktemplates2-multitouch"
- ]
- }
- ]
-}
diff --git a/src/quicktemplates2/qquickabstractbutton.cpp b/src/quicktemplates2/qquickabstractbutton.cpp
deleted file mode 100644
index 2099f2db..00000000
--- a/src/quicktemplates2/qquickabstractbutton.cpp
+++ /dev/null
@@ -1,1172 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickabstractbutton_p.h"
-#include "qquickabstractbutton_p_p.h"
-#include "qquickbuttongroup_p.h"
-#include "qquickaction_p.h"
-#include "qquickaction_p_p.h"
-#include "qquickshortcutcontext_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtGui/qstylehints.h>
-#include <QtGui/qguiapplication.h>
-#include <QtGui/private/qshortcutmap_p.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQuick/private/qquickevents_p_p.h>
-#include <QtQml/qqmllist.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype AbstractButton
- \inherits Control
- \instantiates QQuickAbstractButton
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-buttons
- \brief Abstract base type providing functionality common to buttons.
-
- AbstractButton provides the interface for controls with button-like
- behavior; for example, push buttons and checkable controls like
- radio buttons and check boxes. As an abstract control, it has no delegate
- implementations, leaving them to the types that derive from it.
-
- \sa ButtonGroup, {Button Controls}
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::AbstractButton::pressed()
-
- This signal is emitted when the button is interactively pressed by the user via touch, mouse, or keyboard.
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::AbstractButton::released()
-
- This signal is emitted when the button is interactively released by the user via touch, mouse, or keyboard.
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::AbstractButton::canceled()
-
- This signal is emitted when the button loses mouse grab
- while being pressed, or when it would emit the \l released
- signal but the mouse cursor is not inside the button.
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::AbstractButton::clicked()
-
- This signal is emitted when the button is interactively clicked by the user via touch, mouse, or keyboard.
-*/
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlsignal QtQuick.Controls::AbstractButton::toggled()
-
- This signal is emitted when a checkable button is interactively toggled by the user via touch, mouse, or keyboard.
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::AbstractButton::pressAndHold()
-
- This signal is emitted when the button is interactively pressed and held down by the user via touch or mouse.
- It is not emitted when \l autoRepeat is enabled.
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::AbstractButton::doubleClicked()
-
- This signal is emitted when the button is interactively double clicked by the user via touch or mouse.
-*/
-
-void QQuickAbstractButtonPrivate::setPressPoint(const QPointF &point)
-{
- pressPoint = point;
- setMovePoint(point);
-}
-
-void QQuickAbstractButtonPrivate::setMovePoint(const QPointF &point)
-{
- Q_Q(QQuickAbstractButton);
- bool xChange = !qFuzzyCompare(point.x(), movePoint.x());
- bool yChange = !qFuzzyCompare(point.y(), movePoint.y());
- movePoint = point;
- if (xChange)
- emit q->pressXChanged();
- if (yChange)
- emit q->pressYChanged();
-}
-
-void QQuickAbstractButtonPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickAbstractButton);
- QQuickControlPrivate::handlePress(point);
- setPressPoint(point);
- q->setPressed(true);
-
- emit q->pressed();
-
- if (autoRepeat)
- startRepeatDelay();
- else if (touchId != -1 || Qt::LeftButton == (pressButtons & Qt::LeftButton))
- startPressAndHold();
- else
- stopPressAndHold();
-}
-
-void QQuickAbstractButtonPrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickAbstractButton);
- QQuickControlPrivate::handleMove(point);
- setMovePoint(point);
- q->setPressed(keepPressed || q->contains(point));
-
- if (!pressed && autoRepeat)
- stopPressRepeat();
- else if (holdTimer > 0 && (!pressed || QLineF(pressPoint, point).length() > QGuiApplication::styleHints()->startDragDistance()))
- stopPressAndHold();
-}
-
-void QQuickAbstractButtonPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickAbstractButton);
- QQuickControlPrivate::handleRelease(point);
- bool wasPressed = pressed;
- setPressPoint(point);
- q->setPressed(false);
- pressButtons = Qt::NoButton;
-
- if (!wasHeld && (keepPressed || q->contains(point)))
- q->nextCheckState();
-
- if (wasPressed) {
- emit q->released();
- if (!wasHeld)
- trigger();
- } else {
- emit q->canceled();
- }
-
- if (autoRepeat)
- stopPressRepeat();
- else
- stopPressAndHold();
-}
-
-void QQuickAbstractButtonPrivate::handleUngrab()
-{
- Q_Q(QQuickAbstractButton);
- QQuickControlPrivate::handleUngrab();
- pressButtons = Qt::NoButton;
- if (!pressed)
- return;
-
- q->setPressed(false);
- stopPressRepeat();
- stopPressAndHold();
- emit q->canceled();
-}
-
-bool QQuickAbstractButtonPrivate::acceptKeyClick(Qt::Key key) const
-{
- return key == Qt::Key_Space;
-}
-
-bool QQuickAbstractButtonPrivate::isPressAndHoldConnected()
-{
- Q_Q(QQuickAbstractButton);
- const auto signal = &QQuickAbstractButton::pressAndHold;
- const QMetaMethod method = QMetaMethod::fromSignal(signal);
- return q->isSignalConnected(method);
-}
-
-void QQuickAbstractButtonPrivate::startPressAndHold()
-{
- Q_Q(QQuickAbstractButton);
- wasHeld = false;
- stopPressAndHold();
- if (isPressAndHoldConnected())
- holdTimer = q->startTimer(QGuiApplication::styleHints()->mousePressAndHoldInterval());
-}
-
-void QQuickAbstractButtonPrivate::stopPressAndHold()
-{
- Q_Q(QQuickAbstractButton);
- if (holdTimer > 0) {
- q->killTimer(holdTimer);
- holdTimer = 0;
- }
-}
-
-void QQuickAbstractButtonPrivate::startRepeatDelay()
-{
- Q_Q(QQuickAbstractButton);
- stopPressRepeat();
- delayTimer = q->startTimer(repeatDelay);
-}
-
-void QQuickAbstractButtonPrivate::startPressRepeat()
-{
- Q_Q(QQuickAbstractButton);
- stopPressRepeat();
- repeatTimer = q->startTimer(repeatInterval);
-}
-
-void QQuickAbstractButtonPrivate::stopPressRepeat()
-{
- Q_Q(QQuickAbstractButton);
- if (delayTimer > 0) {
- q->killTimer(delayTimer);
- delayTimer = 0;
- }
- if (repeatTimer > 0) {
- q->killTimer(repeatTimer);
- repeatTimer = 0;
- }
-}
-
-#if QT_CONFIG(shortcut)
-void QQuickAbstractButtonPrivate::grabShortcut()
-{
- Q_Q(QQuickAbstractButton);
- if (shortcut.isEmpty())
- return;
-
- shortcutId = QGuiApplicationPrivate::instance()->shortcutMap.addShortcut(q, shortcut, Qt::WindowShortcut, QQuickShortcutContext::matcher);
-
- if (!q->isEnabled())
- QGuiApplicationPrivate::instance()->shortcutMap.setShortcutEnabled(false, shortcutId, q);
-}
-
-void QQuickAbstractButtonPrivate::ungrabShortcut()
-{
- Q_Q(QQuickAbstractButton);
- if (!shortcutId)
- return;
-
- QGuiApplicationPrivate::instance()->shortcutMap.removeShortcut(shortcutId, q);
- shortcutId = 0;
-}
-#endif
-
-void QQuickAbstractButtonPrivate::actionTextChange()
-{
- Q_Q(QQuickAbstractButton);
- if (explicitText)
- return;
-
- q->buttonChange(QQuickAbstractButton::ButtonTextChange);
-}
-
-void QQuickAbstractButtonPrivate::setText(const QString &newText, bool isExplicit)
-{
- Q_Q(QQuickAbstractButton);
- const QString oldText = q->text();
- explicitText = isExplicit;
- text = newText;
- if (oldText == q->text())
- return;
-
- q->buttonChange(QQuickAbstractButton::ButtonTextChange);
-}
-
-void QQuickAbstractButtonPrivate::updateEffectiveIcon()
-{
- Q_Q(QQuickAbstractButton);
- // We store effectiveIcon because we need to be able to tell if the icon has actually changed.
- // If we only stored our icon and the action's icon, and resolved in the getter, we'd have
- // no way of knowing what the old value was here. As an added benefit, we only resolve when
- // something has changed, as opposed to doing it unconditionally in the icon() getter.
- const QQuickIcon newEffectiveIcon = action ? icon.resolve(action->icon()) : icon;
- if (newEffectiveIcon == effectiveIcon)
- return;
-
- effectiveIcon = newEffectiveIcon;
- emit q->iconChanged();
-}
-
-void QQuickAbstractButtonPrivate::click()
-{
- Q_Q(QQuickAbstractButton);
- if (effectiveEnable)
- emit q->clicked();
-}
-
-void QQuickAbstractButtonPrivate::trigger()
-{
- Q_Q(QQuickAbstractButton);
- const bool wasEnabled = effectiveEnable;
- if (action && action->isEnabled())
- QQuickActionPrivate::get(action)->trigger(q, false);
- if (wasEnabled && (!action || !action->isEnabled()))
- emit q->clicked();
-}
-
-void QQuickAbstractButtonPrivate::toggle(bool value)
-{
- Q_Q(QQuickAbstractButton);
- const bool wasChecked = checked;
- q->setChecked(value);
- if (wasChecked != checked)
- emit q->toggled();
-}
-
-static inline QString indicatorName() { return QStringLiteral("indicator"); }
-
-void QQuickAbstractButtonPrivate::cancelIndicator()
-{
- Q_Q(QQuickAbstractButton);
- quickCancelDeferred(q, indicatorName());
-}
-
-void QQuickAbstractButtonPrivate::executeIndicator(bool complete)
-{
- Q_Q(QQuickAbstractButton);
- if (indicator.wasExecuted())
- return;
-
- if (!indicator || complete)
- quickBeginDeferred(q, indicatorName(), indicator);
- if (complete)
- quickCompleteDeferred(q, indicatorName(), indicator);
-}
-
-void QQuickAbstractButtonPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickAbstractButton);
- QQuickControlPrivate::itemImplicitWidthChanged(item);
- if (item == indicator)
- emit q->implicitIndicatorWidthChanged();
-}
-
-void QQuickAbstractButtonPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickAbstractButton);
- QQuickControlPrivate::itemImplicitHeightChanged(item);
- if (item == indicator)
- emit q->implicitIndicatorHeightChanged();
-}
-
-QQuickAbstractButton *QQuickAbstractButtonPrivate::findCheckedButton() const
-{
- Q_Q(const QQuickAbstractButton);
- if (group)
- return qobject_cast<QQuickAbstractButton *>(group->checkedButton());
-
- const QList<QQuickAbstractButton *> buttons = findExclusiveButtons();
- // TODO: A singular QRadioButton can be unchecked, which seems logical,
- // because there's nothing to be exclusive with. However, a RadioButton
- // from QtQuick.Controls 1.x can never be unchecked, which is the behavior
- // that QQuickRadioButton adopted. Uncommenting the following count check
- // gives the QRadioButton behavior. Notice that tst_radiobutton.qml needs
- // to be updated.
- if (!autoExclusive /*|| buttons.count() == 1*/)
- return nullptr;
-
- for (QQuickAbstractButton *button : buttons) {
- if (button->isChecked() && button != q)
- return button;
- }
- return checked ? const_cast<QQuickAbstractButton *>(q) : nullptr;
-}
-
-QList<QQuickAbstractButton *> QQuickAbstractButtonPrivate::findExclusiveButtons() const
-{
- QList<QQuickAbstractButton *> buttons;
- if (group) {
- QQmlListProperty<QQuickAbstractButton> groupButtons = group->buttons();
- int count = groupButtons.count(&groupButtons);
- for (int i = 0; i < count; ++i) {
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(groupButtons.at(&groupButtons, i));
- if (button)
- buttons += button;
- }
- } else if (parentItem) {
- const auto childItems = parentItem->childItems();
- for (QQuickItem *child : childItems) {
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(child);
- if (button && button->autoExclusive() && !QQuickAbstractButtonPrivate::get(button)->group)
- buttons += button;
- }
- }
- return buttons;
-}
-
-QQuickAbstractButton::QQuickAbstractButton(QQuickItem *parent)
- : QQuickControl(*(new QQuickAbstractButtonPrivate), parent)
-{
- setActiveFocusOnTab(true);
- setFocusPolicy(Qt::StrongFocus);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-}
-
-QQuickAbstractButton::QQuickAbstractButton(QQuickAbstractButtonPrivate &dd, QQuickItem *parent)
- : QQuickControl(dd, parent)
-{
- setActiveFocusOnTab(true);
- setFocusPolicy(Qt::StrongFocus);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-}
-
-QQuickAbstractButton::~QQuickAbstractButton()
-{
- Q_D(QQuickAbstractButton);
- d->removeImplicitSizeListener(d->indicator);
- if (d->group)
- d->group->removeButton(this);
-#if QT_CONFIG(shortcut)
- d->ungrabShortcut();
-#endif
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::AbstractButton::text
-
- This property holds a textual description of the button.
-
- \note The text is used for accessibility purposes, so it makes sense to
- set a textual description even if the content item is an image.
-
- \sa icon, display, {Control::contentItem}{contentItem}
-*/
-QString QQuickAbstractButton::text() const
-{
- Q_D(const QQuickAbstractButton);
- return d->explicitText || !d->action ? d->text : d->action->text();
-}
-
-void QQuickAbstractButton::setText(const QString &text)
-{
- Q_D(QQuickAbstractButton);
- d->setText(text, true);
-}
-
-void QQuickAbstractButton::resetText()
-{
- Q_D(QQuickAbstractButton);
- d->setText(QString(), false);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::AbstractButton::down
-
- This property holds whether the button is visually down.
-
- Unless explicitly set, this property follows the value of \l pressed. To
- return to the default value, set this property to \c undefined.
-
- \sa pressed
-*/
-bool QQuickAbstractButton::isDown() const
-{
- Q_D(const QQuickAbstractButton);
- return d->down;
-}
-
-void QQuickAbstractButton::setDown(bool down)
-{
- Q_D(QQuickAbstractButton);
- d->explicitDown = true;
-
- if (d->down == down)
- return;
-
- d->down = down;
- emit downChanged();
-}
-
-void QQuickAbstractButton::resetDown()
-{
- Q_D(QQuickAbstractButton);
- if (!d->explicitDown)
- return;
-
- setDown(d->pressed);
- d->explicitDown = false;
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::AbstractButton::pressed
- \readonly
-
- This property holds whether the button is physically pressed. A button can
- be pressed by either touch or key events.
-
- \sa down
-*/
-bool QQuickAbstractButton::isPressed() const
-{
- Q_D(const QQuickAbstractButton);
- return d->pressed;
-}
-
-void QQuickAbstractButton::setPressed(bool isPressed)
-{
- Q_D(QQuickAbstractButton);
- if (d->pressed == isPressed)
- return;
-
- d->pressed = isPressed;
- setAccessibleProperty("pressed", isPressed);
- emit pressedChanged();
- buttonChange(ButtonPressedChanged);
-
- if (!d->explicitDown) {
- setDown(d->pressed);
- d->explicitDown = false;
- }
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::AbstractButton::checked
-
- This property holds whether the button is checked.
-
- \sa checkable
-*/
-bool QQuickAbstractButton::isChecked() const
-{
- Q_D(const QQuickAbstractButton);
- return d->checked;
-}
-
-void QQuickAbstractButton::setChecked(bool checked)
-{
- Q_D(QQuickAbstractButton);
- if (d->checked == checked)
- return;
-
- if (checked && !d->checkable)
- setCheckable(true);
-
- d->checked = checked;
- if (d->action)
- d->action->setChecked(checked);
- setAccessibleProperty("checked", checked);
- buttonChange(ButtonCheckedChange);
- emit checkedChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::AbstractButton::checkable
-
- This property holds whether the button is checkable.
-
- A checkable button toggles between checked (on) and unchecked (off) when
- the user clicks on it or presses the space bar while the button has active
- focus.
-
- Setting \l checked to \c true forces this property to \c true.
-
- The default value is \c false.
-
- \sa checked
-*/
-bool QQuickAbstractButton::isCheckable() const
-{
- Q_D(const QQuickAbstractButton);
- return d->checkable;
-}
-
-void QQuickAbstractButton::setCheckable(bool checkable)
-{
- Q_D(QQuickAbstractButton);
- if (d->checkable == checkable)
- return;
-
- d->checkable = checkable;
- if (d->action)
- d->action->setCheckable(checkable);
- setAccessibleProperty("checkable", checkable);
- buttonChange(ButtonCheckableChange);
- emit checkableChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::AbstractButton::autoExclusive
-
- This property holds whether auto-exclusivity is enabled.
-
- If auto-exclusivity is enabled, checkable buttons that belong to the same
- parent item behave as if they were part of the same ButtonGroup. Only
- one button can be checked at any time; checking another button automatically
- unchecks the previously checked one.
-
- \note The property has no effect on buttons that belong to a ButtonGroup.
-
- RadioButton and TabButton are auto-exclusive by default.
-*/
-bool QQuickAbstractButton::autoExclusive() const
-{
- Q_D(const QQuickAbstractButton);
- return d->autoExclusive;
-}
-
-void QQuickAbstractButton::setAutoExclusive(bool exclusive)
-{
- Q_D(QQuickAbstractButton);
- if (d->autoExclusive == exclusive)
- return;
-
- d->autoExclusive = exclusive;
- emit autoExclusiveChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::AbstractButton::autoRepeat
-
- This property holds whether the button repeats \l pressed(), \l released()
- and \l clicked() signals while the button is pressed and held down.
-
- If this property is set to \c true, the \l pressAndHold() signal will not
- be emitted.
-
- The default value is \c false.
-
- The initial delay and the repetition interval are defined in milliseconds
- by \l autoRepeatDelay and \l autoRepeatInterval.
-*/
-bool QQuickAbstractButton::autoRepeat() const
-{
- Q_D(const QQuickAbstractButton);
- return d->autoRepeat;
-}
-
-void QQuickAbstractButton::setAutoRepeat(bool repeat)
-{
- Q_D(QQuickAbstractButton);
- if (d->autoRepeat == repeat)
- return;
-
- d->stopPressRepeat();
- d->autoRepeat = repeat;
- emit autoRepeatChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::AbstractButton::indicator
-
- This property holds the indicator item.
-*/
-QQuickItem *QQuickAbstractButton::indicator() const
-{
- QQuickAbstractButtonPrivate *d = const_cast<QQuickAbstractButtonPrivate *>(d_func());
- if (!d->indicator)
- d->executeIndicator();
- return d->indicator;
-}
-
-void QQuickAbstractButton::setIndicator(QQuickItem *indicator)
-{
- Q_D(QQuickAbstractButton);
- if (d->indicator == indicator)
- return;
-
- if (!d->indicator.isExecuting())
- d->cancelIndicator();
-
- const qreal oldImplicitIndicatorWidth = implicitIndicatorWidth();
- const qreal oldImplicitIndicatorHeight = implicitIndicatorHeight();
-
- d->removeImplicitSizeListener(d->indicator);
- delete d->indicator;
- d->indicator = indicator;
-
- if (indicator) {
- if (!indicator->parentItem())
- indicator->setParentItem(this);
- indicator->setAcceptedMouseButtons(Qt::LeftButton);
- d->addImplicitSizeListener(indicator);
- }
-
- if (!qFuzzyCompare(oldImplicitIndicatorWidth, implicitIndicatorWidth()))
- emit implicitIndicatorWidthChanged();
- if (!qFuzzyCompare(oldImplicitIndicatorHeight, implicitIndicatorHeight()))
- emit implicitIndicatorHeightChanged();
- if (!d->indicator.isExecuting())
- emit indicatorChanged();
-}
-
-/*!
- \qmlpropertygroup QtQuick.Controls::AbstractButton::icon
- \qmlproperty string QtQuick.Controls::AbstractButton::icon.name
- \qmlproperty url QtQuick.Controls::AbstractButton::icon.source
- \qmlproperty int QtQuick.Controls::AbstractButton::icon.width
- \qmlproperty int QtQuick.Controls::AbstractButton::icon.height
- \qmlproperty color QtQuick.Controls::AbstractButton::icon.color
-
- This property group was added in QtQuick.Controls 2.3.
-
- \include qquickicon.qdocinc grouped-properties
-
- \sa text, display, {Icons in Qt Quick Controls}
-*/
-
-QQuickIcon QQuickAbstractButton::icon() const
-{
- Q_D(const QQuickAbstractButton);
- return d->effectiveIcon;
-}
-
-void QQuickAbstractButton::setIcon(const QQuickIcon &icon)
-{
- Q_D(QQuickAbstractButton);
- d->icon = icon;
- d->updateEffectiveIcon();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty enumeration QtQuick.Controls::AbstractButton::display
-
- This property determines how the \l icon and \l text are displayed within
- the button.
-
- \table
- \header \li Display \li Result
- \row \li \c AbstractButton.IconOnly \li \image qtquickcontrols2-button-icononly.png
- \row \li \c AbstractButton.TextOnly \li \image qtquickcontrols2-button-textonly.png
- \row \li \c AbstractButton.TextBesideIcon \li \image qtquickcontrols2-button-textbesideicon.png
- \row \li \c AbstractButton.TextUnderIcon \li \image qtquickcontrols2-button-textundericon.png
- \endtable
-
- \sa {Control::}{spacing}, {Control::}{padding}
-*/
-QQuickAbstractButton::Display QQuickAbstractButton::display() const
-{
- Q_D(const QQuickAbstractButton);
- return d->display;
-}
-
-void QQuickAbstractButton::setDisplay(Display display)
-{
- Q_D(QQuickAbstractButton);
- if (display == d->display)
- return;
-
- d->display = display;
- emit displayChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty Action QtQuick.Controls::AbstractButton::action
-
- This property holds the button action.
-
- \sa Action
-*/
-QQuickAction *QQuickAbstractButton::action() const
-{
- Q_D(const QQuickAbstractButton);
- return d->action;
-}
-
-void QQuickAbstractButton::setAction(QQuickAction *action)
-{
- Q_D(QQuickAbstractButton);
- if (d->action == action)
- return;
-
- const QString oldText = text();
-
- if (QQuickAction *oldAction = d->action.data()) {
- QQuickActionPrivate::get(oldAction)->unregisterItem(this);
- QObjectPrivate::disconnect(oldAction, &QQuickAction::triggered, d, &QQuickAbstractButtonPrivate::click);
- QObjectPrivate::disconnect(oldAction, &QQuickAction::textChanged, d, &QQuickAbstractButtonPrivate::actionTextChange);
-
- QObjectPrivate::disconnect(oldAction, &QQuickAction::iconChanged, d, &QQuickAbstractButtonPrivate::updateEffectiveIcon);
- disconnect(oldAction, &QQuickAction::checkedChanged, this, &QQuickAbstractButton::setChecked);
- disconnect(oldAction, &QQuickAction::checkableChanged, this, &QQuickAbstractButton::setCheckable);
- disconnect(oldAction, &QQuickAction::enabledChanged, this, &QQuickItem::setEnabled);
- }
-
- if (action) {
- QQuickActionPrivate::get(action)->registerItem(this);
- QObjectPrivate::connect(action, &QQuickAction::triggered, d, &QQuickAbstractButtonPrivate::click);
- QObjectPrivate::connect(action, &QQuickAction::textChanged, d, &QQuickAbstractButtonPrivate::actionTextChange);
-
- QObjectPrivate::connect(action, &QQuickAction::iconChanged, d, &QQuickAbstractButtonPrivate::updateEffectiveIcon);
- connect(action, &QQuickAction::checkedChanged, this, &QQuickAbstractButton::setChecked);
- connect(action, &QQuickAction::checkableChanged, this, &QQuickAbstractButton::setCheckable);
- connect(action, &QQuickAction::enabledChanged, this, &QQuickItem::setEnabled);
-
- setChecked(action->isChecked());
- setCheckable(action->isCheckable());
- setEnabled(action->isEnabled());
- }
-
- d->action = action;
-
- if (oldText != text())
- buttonChange(ButtonTextChange);
-
- d->updateEffectiveIcon();
-
- emit actionChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty int QtQuick.Controls::AbstractButton::autoRepeatDelay
-
- This property holds the initial delay of auto-repetition in milliseconds.
- The default value is \c 300 ms.
-
- \sa autoRepeat, autoRepeatInterval
-*/
-int QQuickAbstractButton::autoRepeatDelay() const
-{
- Q_D(const QQuickAbstractButton);
- return d->repeatDelay;
-}
-
-void QQuickAbstractButton::setAutoRepeatDelay(int delay)
-{
- Q_D(QQuickAbstractButton);
- if (d->repeatDelay == delay)
- return;
-
- d->repeatDelay = delay;
- emit autoRepeatDelayChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty int QtQuick.Controls::AbstractButton::autoRepeatInterval
-
- This property holds the interval of auto-repetition in milliseconds.
- The default value is \c 100 ms.
-
- \sa autoRepeat, autoRepeatDelay
-*/
-int QQuickAbstractButton::autoRepeatInterval() const
-{
- Q_D(const QQuickAbstractButton);
- return d->repeatInterval;
-}
-
-void QQuickAbstractButton::setAutoRepeatInterval(int interval)
-{
- Q_D(QQuickAbstractButton);
- if (d->repeatInterval == interval)
- return;
-
- d->repeatInterval = interval;
- emit autoRepeatIntervalChanged();
-}
-
-#if QT_CONFIG(shortcut)
-QKeySequence QQuickAbstractButton::shortcut() const
-{
- Q_D(const QQuickAbstractButton);
- return d->shortcut;
-}
-
-void QQuickAbstractButton::setShortcut(const QKeySequence &shortcut)
-{
- Q_D(QQuickAbstractButton);
- if (d->shortcut == shortcut)
- return;
-
- d->ungrabShortcut();
- d->shortcut = shortcut;
- if (isVisible())
- d->grabShortcut();
-}
-#endif
-
-/*!
- \readonly
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty real QtQuick.Controls::AbstractButton::pressX
-
- This property holds the x-coordinate of the last press.
-
- \note The value is updated on touch moves, but left intact after touch release.
-
- \sa pressY
-*/
-qreal QQuickAbstractButton::pressX() const
-{
- Q_D(const QQuickAbstractButton);
- return d->movePoint.x();
-}
-
-/*!
- \readonly
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty real QtQuick.Controls::AbstractButton::pressY
-
- This property holds the y-coordinate of the last press.
-
- \note The value is updated on touch moves, but left intact after touch release.
-
- \sa pressX
-*/
-qreal QQuickAbstractButton::pressY() const
-{
- Q_D(const QQuickAbstractButton);
- return d->movePoint.y();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::AbstractButton::implicitIndicatorWidth
- \readonly
-
- This property holds the implicit indicator width.
-
- The value is equal to \c {indicator ? indicator.implicitWidth : 0}.
-
- This is typically used, together with \l {Control::}{implicitContentWidth} and
- \l {Control::}{implicitBackgroundWidth}, to calculate the \l {Item::}{implicitWidth}.
-
- \sa implicitIndicatorHeight
-*/
-qreal QQuickAbstractButton::implicitIndicatorWidth() const
-{
- Q_D(const QQuickAbstractButton);
- if (!d->indicator)
- return 0;
- return d->indicator->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::AbstractButton::implicitIndicatorHeight
- \readonly
-
- This property holds the implicit indicator height.
-
- The value is equal to \c {indicator ? indicator.implicitHeight : 0}.
-
- This is typically used, together with \l {Control::}{implicitContentHeight} and
- \l {Control::}{implicitBackgroundHeight}, to calculate the \l {Item::}{implicitHeight}.
-
- \sa implicitIndicatorWidth
-*/
-qreal QQuickAbstractButton::implicitIndicatorHeight() const
-{
- Q_D(const QQuickAbstractButton);
- if (!d->indicator)
- return 0;
- return d->indicator->implicitHeight();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::AbstractButton::toggle()
-
- Toggles the checked state of the button.
-*/
-void QQuickAbstractButton::toggle()
-{
- Q_D(QQuickAbstractButton);
- setChecked(!d->checked);
-}
-
-void QQuickAbstractButton::componentComplete()
-{
- Q_D(QQuickAbstractButton);
- d->executeIndicator(true);
- QQuickControl::componentComplete();
-}
-
-bool QQuickAbstractButton::event(QEvent *event)
-{
- Q_D(QQuickAbstractButton);
-#if QT_CONFIG(shortcut)
- if (event->type() == QEvent::Shortcut) {
- QShortcutEvent *se = static_cast<QShortcutEvent *>(event);
- if (se->shortcutId() == d->shortcutId) {
- d->trigger();
- return true;
- }
- }
-#endif
- return QQuickControl::event(event);
-}
-
-void QQuickAbstractButton::focusOutEvent(QFocusEvent *event)
-{
- Q_D(QQuickAbstractButton);
- QQuickControl::focusOutEvent(event);
- if (d->touchId == -1) // don't ungrab on multi-touch if another control gets focused
- d->handleUngrab();
-}
-
-void QQuickAbstractButton::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickAbstractButton);
- QQuickControl::keyPressEvent(event);
- if (d->acceptKeyClick(static_cast<Qt::Key>(event->key()))) {
- d->setPressPoint(QPoint(qRound(width() / 2), qRound(height() / 2)));
- setPressed(true);
-
- if (d->autoRepeat)
- d->startRepeatDelay();
-
- emit pressed();
- event->accept();
- }
-}
-
-void QQuickAbstractButton::keyReleaseEvent(QKeyEvent *event)
-{
- Q_D(QQuickAbstractButton);
- QQuickControl::keyReleaseEvent(event);
- if (d->acceptKeyClick(static_cast<Qt::Key>(event->key()))) {
- setPressed(false);
-
- nextCheckState();
- emit released();
- d->trigger();
-
- if (d->autoRepeat)
- d->stopPressRepeat();
- event->accept();
- }
-}
-
-void QQuickAbstractButton::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickAbstractButton);
- d->pressButtons = event->buttons();
- QQuickControl::mousePressEvent(event);
-}
-
-void QQuickAbstractButton::mouseDoubleClickEvent(QMouseEvent *event)
-{
- QQuickControl::mouseDoubleClickEvent(event);
- emit doubleClicked();
-}
-
-void QQuickAbstractButton::timerEvent(QTimerEvent *event)
-{
- Q_D(QQuickAbstractButton);
- QQuickControl::timerEvent(event);
- if (event->timerId() == d->holdTimer) {
- d->stopPressAndHold();
- d->wasHeld = true;
- emit pressAndHold();
- } else if (event->timerId() == d->delayTimer) {
- d->startPressRepeat();
- } else if (event->timerId() == d->repeatTimer) {
- emit released();
- d->trigger();
- emit pressed();
- }
-}
-
-void QQuickAbstractButton::itemChange(ItemChange change, const ItemChangeData &value)
-{
- Q_D(QQuickAbstractButton);
- QQuickControl::itemChange(change, value);
-#if QT_CONFIG(shortcut)
- if (change == ItemVisibleHasChanged) {
- if (value.boolValue)
- d->grabShortcut();
- else
- d->ungrabShortcut();
- }
-#endif
-}
-
-void QQuickAbstractButton::buttonChange(ButtonChange change)
-{
- Q_D(QQuickAbstractButton);
- switch (change) {
- case ButtonCheckedChange:
- if (d->checked) {
- QQuickAbstractButton *button = d->findCheckedButton();
- if (button && button != this)
- button->setChecked(false);
- }
- break;
- case ButtonTextChange: {
- const QString txt = text();
- setAccessibleName(txt);
-#if QT_CONFIG(shortcut)
- setShortcut(QKeySequence::mnemonic(txt));
-#endif
- emit textChanged();
- break;
- }
- default:
- break;
- }
-}
-
-void QQuickAbstractButton::nextCheckState()
-{
- Q_D(QQuickAbstractButton);
- if (d->checkable && (!d->checked || d->findCheckedButton() != this))
- d->toggle(!d->checked);
-}
-
-#if QT_CONFIG(accessibility)
-void QQuickAbstractButton::accessibilityActiveChanged(bool active)
-{
- QQuickControl::accessibilityActiveChanged(active);
-
- Q_D(QQuickAbstractButton);
- if (active) {
- setAccessibleName(text());
- setAccessibleProperty("pressed", d->pressed);
- setAccessibleProperty("checked", d->checked);
- setAccessibleProperty("checkable", d->checkable);
- }
-}
-
-QAccessible::Role QQuickAbstractButton::accessibleRole() const
-{
- Q_D(const QQuickAbstractButton);
- if (d->checkable) {
- return QAccessible::CheckBox;
- }
- return QAccessible::Button;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickabstractbutton_p.h b/src/quicktemplates2/qquickabstractbutton_p.h
deleted file mode 100644
index 0fa48980..00000000
--- a/src/quicktemplates2/qquickabstractbutton_p.h
+++ /dev/null
@@ -1,223 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKABSTRACTBUTTON_P_H
-#define QQUICKABSTRACTBUTTON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQuickTemplates2/private/qquickicon_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAction;
-class QQuickAbstractButtonPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickAbstractButton : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(QString text READ text WRITE setText RESET resetText NOTIFY textChanged FINAL)
- Q_PROPERTY(bool down READ isDown WRITE setDown NOTIFY downChanged RESET resetDown FINAL)
- Q_PROPERTY(bool pressed READ isPressed NOTIFY pressedChanged FINAL)
- Q_PROPERTY(bool checked READ isChecked WRITE setChecked NOTIFY checkedChanged FINAL)
- Q_PROPERTY(bool checkable READ isCheckable WRITE setCheckable NOTIFY checkableChanged FINAL)
- Q_PROPERTY(bool autoExclusive READ autoExclusive WRITE setAutoExclusive NOTIFY autoExclusiveChanged FINAL)
- Q_PROPERTY(bool autoRepeat READ autoRepeat WRITE setAutoRepeat NOTIFY autoRepeatChanged FINAL)
- Q_PROPERTY(QQuickItem *indicator READ indicator WRITE setIndicator NOTIFY indicatorChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(QQuickIcon icon READ icon WRITE setIcon NOTIFY iconChanged FINAL REVISION 3)
- Q_PROPERTY(Display display READ display WRITE setDisplay NOTIFY displayChanged FINAL REVISION 3)
- Q_PROPERTY(QQuickAction *action READ action WRITE setAction NOTIFY actionChanged FINAL REVISION 3)
- // 2.4 (Qt 5.11)
- Q_PROPERTY(int autoRepeatDelay READ autoRepeatDelay WRITE setAutoRepeatDelay NOTIFY autoRepeatDelayChanged FINAL REVISION 4)
- Q_PROPERTY(int autoRepeatInterval READ autoRepeatInterval WRITE setAutoRepeatInterval NOTIFY autoRepeatIntervalChanged FINAL REVISION 4)
- Q_PROPERTY(qreal pressX READ pressX NOTIFY pressXChanged FINAL REVISION 4)
- Q_PROPERTY(qreal pressY READ pressY NOTIFY pressYChanged FINAL REVISION 4)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal implicitIndicatorWidth READ implicitIndicatorWidth NOTIFY implicitIndicatorWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitIndicatorHeight READ implicitIndicatorHeight NOTIFY implicitIndicatorHeightChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background,contentItem,indicator")
-
-public:
- explicit QQuickAbstractButton(QQuickItem *parent = nullptr);
- ~QQuickAbstractButton();
-
- QString text() const;
- void setText(const QString &text);
- void resetText();
-
- bool isDown() const;
- void setDown(bool down);
- void resetDown();
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
- bool isChecked() const;
- void setChecked(bool checked);
-
- bool isCheckable() const;
- void setCheckable(bool checkable);
-
- bool autoExclusive() const;
- void setAutoExclusive(bool exclusive);
-
- bool autoRepeat() const;
- void setAutoRepeat(bool repeat);
-
- QQuickItem *indicator() const;
- void setIndicator(QQuickItem *indicator);
-
- // 2.3 (Qt 5.10)
- QQuickIcon icon() const;
- void setIcon(const QQuickIcon &icon);
-
- enum Display {
- IconOnly,
- TextOnly,
- TextBesideIcon,
- TextUnderIcon
- };
- Q_ENUM(Display)
-
- Display display() const;
- void setDisplay(Display display);
-
- QQuickAction *action() const;
- void setAction(QQuickAction *action);
-
-#if QT_CONFIG(shortcut)
- QKeySequence shortcut() const;
- void setShortcut(const QKeySequence &shortcut);
-#endif
-
- // 2.4 (Qt 5.11)
- int autoRepeatDelay() const;
- void setAutoRepeatDelay(int delay);
-
- int autoRepeatInterval() const;
- void setAutoRepeatInterval(int interval);
-
- qreal pressX() const;
- qreal pressY() const;
-
- // 2.5 (Qt 5.12)
- qreal implicitIndicatorWidth() const;
- qreal implicitIndicatorHeight() const;
-
-public Q_SLOTS:
- void toggle();
-
-Q_SIGNALS:
- void pressed();
- void released();
- void canceled();
- void clicked();
- void pressAndHold();
- void doubleClicked();
- void textChanged();
- void downChanged();
- void pressedChanged();
- void checkedChanged();
- void checkableChanged();
- void autoExclusiveChanged();
- void autoRepeatChanged();
- void indicatorChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void toggled();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void iconChanged();
- Q_REVISION(3) void displayChanged();
- Q_REVISION(3) void actionChanged();
- // 2.4 (Qt 5.11)
- Q_REVISION(4) void autoRepeatDelayChanged();
- Q_REVISION(4) void autoRepeatIntervalChanged();
- Q_REVISION(4) void pressXChanged();
- Q_REVISION(4) void pressYChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void implicitIndicatorWidthChanged();
- Q_REVISION(5) void implicitIndicatorHeightChanged();
-
-protected:
- QQuickAbstractButton(QQuickAbstractButtonPrivate &dd, QQuickItem *parent);
-
- void componentComplete() override;
-
- bool event(QEvent *event) override;
- void focusOutEvent(QFocusEvent *event) override;
- void keyPressEvent(QKeyEvent *event) override;
- void keyReleaseEvent(QKeyEvent *event) override;
- void mousePressEvent(QMouseEvent *event) override;
- void mouseDoubleClickEvent(QMouseEvent *event) override;
- void timerEvent(QTimerEvent *event) override;
-
- void itemChange(ItemChange change, const ItemChangeData &value) override;
-
- enum ButtonChange {
- ButtonCheckedChange,
- ButtonCheckableChange,
- ButtonPressedChanged,
- ButtonTextChange
- };
- virtual void buttonChange(ButtonChange change);
-
- virtual void nextCheckState();
-
-#if QT_CONFIG(accessibility)
- void accessibilityActiveChanged(bool active) override;
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickAbstractButton)
- Q_DECLARE_PRIVATE(QQuickAbstractButton)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickAbstractButton)
-
-#endif // QQUICKABSTRACTBUTTON_P_H
diff --git a/src/quicktemplates2/qquickabstractbutton_p_p.h b/src/quicktemplates2/qquickabstractbutton_p_p.h
deleted file mode 100644
index 7394f115..00000000
--- a/src/quicktemplates2/qquickabstractbutton_p_p.h
+++ /dev/null
@@ -1,148 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKABSTRACTBUTTON_P_P_H
-#define QQUICKABSTRACTBUTTON_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtGui/qkeysequence.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAction;
-class QQuickButtonGroup;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickAbstractButtonPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickAbstractButton)
-
-public:
- static QQuickAbstractButtonPrivate *get(QQuickAbstractButton *button)
- {
- return button->d_func();
- }
-
- void setPressPoint(const QPointF &point);
- void setMovePoint(const QPointF &point);
-
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- virtual bool acceptKeyClick(Qt::Key key) const;
-
- bool isPressAndHoldConnected();
- void startPressAndHold();
- void stopPressAndHold();
-
- void startRepeatDelay();
- void startPressRepeat();
- void stopPressRepeat();
-
-#if QT_CONFIG(shortcut)
- void grabShortcut();
- void ungrabShortcut();
-#endif
-
- QQuickAbstractButton *findCheckedButton() const;
- QList<QQuickAbstractButton *> findExclusiveButtons() const;
-
- void actionTextChange();
- void setText(const QString &text, bool isExplicit);
-
- void updateEffectiveIcon();
-
- void click();
- void trigger();
- void toggle(bool value);
-
- void cancelIndicator();
- void executeIndicator(bool complete = false);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- // copied from qabstractbutton.cpp
- static const int AUTO_REPEAT_DELAY = 300;
- static const int AUTO_REPEAT_INTERVAL = 100;
-
- bool explicitText = false;
- bool down = false;
- bool explicitDown = false;
- bool pressed = false;
- bool keepPressed = false;
- bool checked = false;
- bool checkable = false;
- bool autoExclusive = false;
- bool autoRepeat = false;
- bool wasHeld = false;
- int holdTimer = 0;
- int delayTimer = 0;
- int repeatTimer = 0;
- int repeatDelay = AUTO_REPEAT_DELAY;
- int repeatInterval = AUTO_REPEAT_INTERVAL;
-#if QT_CONFIG(shortcut)
- int shortcutId = 0;
- QKeySequence shortcut;
-#endif
- QString text;
- QQuickIcon icon;
- QQuickIcon effectiveIcon;
- QPointF pressPoint;
- QPointF movePoint;
- Qt::MouseButtons pressButtons = Qt::NoButton;
- QQuickAbstractButton::Display display = QQuickAbstractButton::TextBesideIcon;
- QQuickDeferredPointer<QQuickItem> indicator;
- QQuickButtonGroup *group = nullptr;
- QPointer<QQuickAction> action;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKABSTRACTBUTTON_P_P_H
diff --git a/src/quicktemplates2/qquickaction.cpp b/src/quicktemplates2/qquickaction.cpp
deleted file mode 100644
index 9120db37..00000000
--- a/src/quicktemplates2/qquickaction.cpp
+++ /dev/null
@@ -1,577 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickaction_p.h"
-#include "qquickaction_p_p.h"
-#include "qquickactiongroup_p.h"
-#include "qquickshortcutcontext_p_p.h"
-
-#include <QtGui/qevent.h>
-#include <QtGui/private/qshortcutmap_p.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQuick/private/qquickitem_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Action
- \inherits QtObject
- \instantiates QQuickAction
- \inqmlmodule QtQuick.Controls
- \since 5.10
- \ingroup utilities
- \brief Abstract user interface action.
-
- Action represents an abstract user interface action that can have shortcuts
- and can be assigned to menu items and toolbar buttons.
-
- Actions may contain \l text, an \l icon, and a \l shortcut. Actions are normally
- \l triggered by the user via menu items, toolbar buttons, or keyboard shortcuts.
- A \l checkable Action toggles its \l checked state when triggered.
-
- \snippet qtquickcontrols2-action.qml action
-
- Action is commonly used to implement application commands that can be invoked
- via menu items, toolbar buttons, and keyboard shortcuts. Since the user expects
- the commands to be performed in the same way, regardless of the user interface
- used, it is useful to represent the commands as shareable actions.
-
- Action can be also used to separate the logic and the visual presentation. For
- example, when declaring buttons and menu items in \c .ui.qml files, actions can
- be declared elsewhere and assigned from the outside.
-
- \snippet qtquickcontrols2-action.qml toolbutton
-
- When an action is paired with buttons and menu items, the \c enabled, \c checkable,
- and \c checked states are synced automatically. For example, in a word processor,
- if the user clicks a "Bold" toolbar button, the "Bold" menu item will automatically
- be checked. Buttons and menu items get their \c text and \c icon from the action by
- default. An action-specific \c text or \c icon can be overridden for a specific
- control by specifying \c text or \c icon directly on the control.
-
- \snippet qtquickcontrols2-action.qml menuitem
-
- Since Action presents a user interface action, it is intended to be assigned to
- a \l MenuItem, \l ToolButton, or any other control that inherits \l AbstractButton.
- For keyboard shortcuts, the simpler \l Shortcut type is more appropriate.
-
- \sa MenuItem, ToolButton, Shortcut
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::Action::toggled(QtObject source)
-
- This signal is emitted when the action is toggled. The \a source argument
- identifies the object that toggled the action.
-
- For example, if the action is assigned to a menu item and a toolbar button, the
- action is toggled when the control is toggled, the shortcut is activated, or
- when \l toggle() is called directly.
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::Action::triggered(QtObject source)
-
- This signal is emitted when the action is triggered. The \a source argument
- identifies the object that triggered the action.
-
- For example, if the action is assigned to a menu item and a toolbar button, the
- action is triggered when the control is clicked, the shortcut is activated, or
- when \l trigger() is called directly.
-*/
-
-#if QT_CONFIG(shortcut)
-static QKeySequence variantToKeySequence(const QVariant &var)
-{
- if (var.type() == QVariant::Int)
- return QKeySequence(static_cast<QKeySequence::StandardKey>(var.toInt()));
- return QKeySequence::fromString(var.toString());
-}
-
-QQuickActionPrivate::ShortcutEntry::ShortcutEntry(QObject *target)
- : m_target(target)
-{
-}
-
-QQuickActionPrivate::ShortcutEntry::~ShortcutEntry()
-{
- ungrab();
-}
-
-QObject *QQuickActionPrivate::ShortcutEntry::target() const
-{
- return m_target;
-}
-
-int QQuickActionPrivate::ShortcutEntry::shortcutId() const
-{
- return m_shortcutId;
-}
-
-void QQuickActionPrivate::ShortcutEntry::grab(const QKeySequence &shortcut, bool enabled)
-{
- if (shortcut.isEmpty())
- return;
-
- Qt::ShortcutContext context = Qt::WindowShortcut; // TODO
- m_shortcutId = QGuiApplicationPrivate::instance()->shortcutMap.addShortcut(m_target, shortcut, context, QQuickShortcutContext::matcher);
-
- if (!enabled)
- QGuiApplicationPrivate::instance()->shortcutMap.setShortcutEnabled(false, m_shortcutId, m_target);
-}
-
-void QQuickActionPrivate::ShortcutEntry::ungrab()
-{
- if (!m_shortcutId)
- return;
-
- QGuiApplicationPrivate::instance()->shortcutMap.removeShortcut(m_shortcutId, m_target);
- m_shortcutId = 0;
-}
-
-void QQuickActionPrivate::ShortcutEntry::setEnabled(bool enabled)
-{
- if (!m_shortcutId)
- return;
-
- QGuiApplicationPrivate::instance()->shortcutMap.setShortcutEnabled(enabled, m_shortcutId, m_target);
-}
-
-QVariant QQuickActionPrivate::shortcut() const
-{
- return vshortcut;
-}
-
-void QQuickActionPrivate::setShortcut(const QVariant &var)
-{
- Q_Q(QQuickAction);
- if (vshortcut == var)
- return;
-
- defaultShortcutEntry->ungrab();
- for (QQuickActionPrivate::ShortcutEntry *entry : qAsConst(shortcutEntries))
- entry->ungrab();
-
- vshortcut = var;
- keySequence = variantToKeySequence(var);
-
- defaultShortcutEntry->grab(keySequence, enabled);
- for (QQuickActionPrivate::ShortcutEntry *entry : qAsConst(shortcutEntries))
- entry->grab(keySequence, enabled);
-
- emit q->shortcutChanged(keySequence);
-}
-#endif // QT_CONFIG(shortcut)
-
-void QQuickActionPrivate::setEnabled(bool enable)
-{
- Q_Q(QQuickAction);
- if (enabled == enable)
- return;
-
- enabled = enable;
-
-#if QT_CONFIG(shortcut)
- defaultShortcutEntry->setEnabled(enable);
- for (QQuickActionPrivate::ShortcutEntry *entry : qAsConst(shortcutEntries))
- entry->setEnabled(enable);
-#endif
-
- emit q->enabledChanged(enable);
-}
-
-bool QQuickActionPrivate::watchItem(QQuickItem *item)
-{
- Q_Q(QQuickAction);
- if (!item)
- return false;
-
- item->installEventFilter(q);
- QQuickItemPrivate::get(item)->addItemChangeListener(this, QQuickItemPrivate::Visibility | QQuickItemPrivate::Destroyed);
- return true;
-}
-
-bool QQuickActionPrivate::unwatchItem(QQuickItem *item)
-{
- Q_Q(QQuickAction);
- if (!item)
- return false;
-
- item->removeEventFilter(q);
- QQuickItemPrivate::get(item)->removeItemChangeListener(this, QQuickItemPrivate::Visibility | QQuickItemPrivate::Destroyed);
- return true;
-}
-
-void QQuickActionPrivate::registerItem(QQuickItem *item)
-{
- if (!watchItem(item))
- return;
-
-#if QT_CONFIG(shortcut)
- QQuickActionPrivate::ShortcutEntry *entry = new QQuickActionPrivate::ShortcutEntry(item);
- if (item->isVisible())
- entry->grab(keySequence, enabled);
- shortcutEntries += entry;
-
- updateDefaultShortcutEntry();
-#endif
-}
-
-void QQuickActionPrivate::unregisterItem(QQuickItem *item)
-{
-#if QT_CONFIG(shortcut)
- QQuickActionPrivate::ShortcutEntry *entry = findShortcutEntry(item);
- if (!entry || !unwatchItem(item))
- return;
-
- shortcutEntries.removeOne(entry);
- delete entry;
-
- updateDefaultShortcutEntry();
-#endif
-}
-
-void QQuickActionPrivate::itemVisibilityChanged(QQuickItem *item)
-{
-#if QT_CONFIG(shortcut)
- QQuickActionPrivate::ShortcutEntry *entry = findShortcutEntry(item);
- if (!entry)
- return;
-
- if (item->isVisible())
- entry->grab(keySequence, enabled);
- else
- entry->ungrab();
-
- updateDefaultShortcutEntry();
-#endif
-}
-
-void QQuickActionPrivate::itemDestroyed(QQuickItem *item)
-{
- unregisterItem(item);
-}
-
-#if QT_CONFIG(shortcut)
-bool QQuickActionPrivate::handleShortcutEvent(QObject *object, QShortcutEvent *event)
-{
- Q_Q(QQuickAction);
- if (event->key() != keySequence)
- return false;
-
- QQuickActionPrivate::ShortcutEntry *entry = findShortcutEntry(object);
- if (!entry || event->shortcutId() != entry->shortcutId())
- return false;
-
- q->trigger(entry->target());
- return true;
-}
-
-QQuickActionPrivate::ShortcutEntry *QQuickActionPrivate::findShortcutEntry(QObject *target) const
-{
- Q_Q(const QQuickAction);
- if (target == q)
- return defaultShortcutEntry;
- for (QQuickActionPrivate::ShortcutEntry *entry : shortcutEntries) {
- if (entry->target() == target)
- return entry;
- }
- return nullptr;
-}
-
-void QQuickActionPrivate::updateDefaultShortcutEntry()
-{
- bool hasActiveShortcutEntries = false;
- for (QQuickActionPrivate::ShortcutEntry *entry : qAsConst(shortcutEntries)) {
- if (entry->shortcutId()) {
- hasActiveShortcutEntries = true;
- break;
- }
- }
-
- if (hasActiveShortcutEntries)
- defaultShortcutEntry->ungrab();
- else if (!defaultShortcutEntry->shortcutId())
- defaultShortcutEntry->grab(keySequence, enabled);
-}
-#endif // QT_CONFIG(shortcut)
-
-QQuickAction::QQuickAction(QObject *parent)
- : QObject(*(new QQuickActionPrivate), parent)
-{
- Q_D(QQuickAction);
-#if QT_CONFIG(shortcut)
- d->defaultShortcutEntry = new QQuickActionPrivate::ShortcutEntry(this);
-#endif
-}
-
-QQuickAction::~QQuickAction()
-{
- Q_D(QQuickAction);
- if (d->group)
- d->group->removeAction(this);
-
-#if QT_CONFIG(shortcut)
- for (QQuickActionPrivate::ShortcutEntry *entry : qAsConst(d->shortcutEntries))
- d->unwatchItem(qobject_cast<QQuickItem *>(entry->target()));
-
- qDeleteAll(d->shortcutEntries);
- delete d->defaultShortcutEntry;
-#endif
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::Action::text
-
- This property holds a textual description of the action.
-*/
-QString QQuickAction::text() const
-{
- Q_D(const QQuickAction);
- return d->text;
-}
-
-void QQuickAction::setText(const QString &text)
-{
- Q_D(QQuickAction);
- if (d->text == text)
- return;
-
- d->text = text;
- emit textChanged(text);
-}
-
-/*!
- \qmlpropertygroup QtQuick.Controls::Action::icon
- \qmlproperty string QtQuick.Controls::Action::icon.name
- \qmlproperty url QtQuick.Controls::Action::icon.source
- \qmlproperty int QtQuick.Controls::Action::icon.width
- \qmlproperty int QtQuick.Controls::Action::icon.height
- \qmlproperty color QtQuick.Controls::Action::icon.color
-
- \include qquickicon.qdocinc grouped-properties
-*/
-QQuickIcon QQuickAction::icon() const
-{
- Q_D(const QQuickAction);
- return d->icon;
-}
-
-void QQuickAction::setIcon(const QQuickIcon &icon)
-{
- Q_D(QQuickAction);
- if (d->icon == icon)
- return;
-
- d->icon = icon;
- emit iconChanged(icon);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Action::enabled
-
- This property holds whether the action is enabled. The default value is \c true.
-*/
-bool QQuickAction::isEnabled() const
-{
- Q_D(const QQuickAction);
- return d->enabled && (!d->group || d->group->isEnabled());
-}
-
-void QQuickAction::setEnabled(bool enabled)
-{
- Q_D(QQuickAction);
- d->explicitEnabled = true;
- d->setEnabled(enabled);
-}
-
-void QQuickAction::resetEnabled()
-{
- Q_D(QQuickAction);
- if (!d->explicitEnabled)
- return;
-
- d->explicitEnabled = false;
- d->setEnabled(true);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Action::checked
-
- This property holds whether the action is checked.
-
- \sa checkable
-*/
-bool QQuickAction::isChecked() const
-{
- Q_D(const QQuickAction);
- return d->checked;
-}
-
-void QQuickAction::setChecked(bool checked)
-{
- Q_D(QQuickAction);
- if (d->checked == checked)
- return;
-
- d->checked = checked;
- emit checkedChanged(checked);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Action::checkable
-
- This property holds whether the action is checkable. The default value is \c false.
-
- A checkable action toggles between checked (on) and unchecked (off) when triggered.
-
- \sa checked
-*/
-bool QQuickAction::isCheckable() const
-{
- Q_D(const QQuickAction);
- return d->checkable;
-}
-
-void QQuickAction::setCheckable(bool checkable)
-{
- Q_D(QQuickAction);
- if (d->checkable == checkable)
- return;
-
- d->checkable = checkable;
- emit checkableChanged(checkable);
-}
-
-#if QT_CONFIG(shortcut)
-/*!
- \qmlproperty keysequence QtQuick.Controls::Action::shortcut
-
- This property holds the action's shortcut. The key sequence can be set
- to one of the \l{QKeySequence::StandardKey}{standard keyboard shortcuts},
- or it can be described with a string containing a sequence of up to four
- key presses that are needed to trigger the shortcut.
-
- \code
- Action {
- shortcut: "Ctrl+E,Ctrl+W"
- onTriggered: edit.wrapMode = TextEdit.Wrap
- }
- \endcode
-*/
-QKeySequence QQuickAction::shortcut() const
-{
- Q_D(const QQuickAction);
- return d->keySequence;
-}
-
-void QQuickAction::setShortcut(const QKeySequence &shortcut)
-{
- Q_D(QQuickAction);
- d->setShortcut(shortcut.toString());
-}
-#endif // QT_CONFIG(shortcut)
-
-/*!
- \qmlmethod void QtQuick.Controls::Action::toggle(QtObject source = null)
-
- Toggles the action and emits \l toggled() if enabled, with an optional \a source object defined.
-*/
-void QQuickAction::toggle(QObject *source)
-{
- Q_D(QQuickAction);
- if (!d->enabled)
- return;
-
- if (d->checkable)
- setChecked(!d->checked);
-
- emit toggled(source);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Action::trigger(QtObject source = null)
-
- Triggers the action and emits \l triggered() if enabled, with an optional \a source object defined.
-*/
-void QQuickAction::trigger(QObject *source)
-{
- Q_D(QQuickAction);
- d->trigger(source, true);
-}
-
-void QQuickActionPrivate::trigger(QObject* source, bool doToggle)
-{
- Q_Q(QQuickAction);
- if (!enabled)
- return;
-
- QPointer<QObject> guard = q;
- // the checked action of an exclusive group cannot be unchecked
- if (checkable && (!checked || !group || !group->isExclusive() || group->checkedAction() != q)) {
- if (doToggle)
- q->toggle(source);
- else
- emit q->toggled(source);
- }
-
- if (!guard.isNull())
- emit q->triggered(source);
-}
-
-bool QQuickAction::event(QEvent *event)
-{
- Q_D(QQuickAction);
-#if QT_CONFIG(shortcut)
- if (event->type() == QEvent::Shortcut)
- return d->handleShortcutEvent(this, static_cast<QShortcutEvent *>(event));
-#endif
- return QObject::event(event);
-}
-
-bool QQuickAction::eventFilter(QObject *object, QEvent *event)
-{
- Q_D(QQuickAction);
-#if QT_CONFIG(shortcut)
- if (event->type() == QEvent::Shortcut)
- return d->handleShortcutEvent(object, static_cast<QShortcutEvent *>(event));
-#endif
- return false;
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquickaction_p.cpp"
diff --git a/src/quicktemplates2/qquickaction_p.h b/src/quicktemplates2/qquickaction_p.h
deleted file mode 100644
index cbe0d8fe..00000000
--- a/src/quicktemplates2/qquickaction_p.h
+++ /dev/null
@@ -1,128 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKACTION_P_H
-#define QQUICKACTION_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtQuickTemplates2/private/qquickicon_p.h>
-#include <QtCore/qobject.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickIcon;
-class QQuickActionPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickAction : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
- Q_PROPERTY(QQuickIcon icon READ icon WRITE setIcon NOTIFY iconChanged FINAL)
- Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged RESET resetEnabled FINAL)
- Q_PROPERTY(bool checked READ isChecked WRITE setChecked NOTIFY checkedChanged FINAL)
- Q_PROPERTY(bool checkable READ isCheckable WRITE setCheckable NOTIFY checkableChanged FINAL)
-#if QT_CONFIG(shortcut)
- Q_PRIVATE_PROPERTY(QQuickAction::d_func(), QVariant shortcut READ shortcut WRITE setShortcut NOTIFY shortcutChanged FINAL)
-#endif
-
-public:
- explicit QQuickAction(QObject *parent = nullptr);
- ~QQuickAction();
-
- QString text() const;
- void setText(const QString &text);
-
- QQuickIcon icon() const;
- void setIcon(const QQuickIcon &icon);
-
- bool isEnabled() const;
- void setEnabled(bool enabled);
- void resetEnabled();
-
- bool isChecked() const;
- void setChecked(bool checked);
-
- bool isCheckable() const;
- void setCheckable(bool checkable);
-
-#if QT_CONFIG(shortcut)
- QKeySequence shortcut() const;
- void setShortcut(const QKeySequence &shortcut);
-#endif
-
-public Q_SLOTS:
- void toggle(QObject *source = nullptr);
- void trigger(QObject *source = nullptr);
-
-Q_SIGNALS:
- void textChanged(const QString &text);
- void iconChanged(const QQuickIcon &icon);
- void enabledChanged(bool enabled);
- void checkedChanged(bool checked);
- void checkableChanged(bool checkable);
-#if QT_CONFIG(shortcut)
- void shortcutChanged(const QKeySequence &shortcut);
-#endif
-
- void toggled(QObject *source = nullptr);
- void triggered(QObject *source = nullptr);
-
-protected:
- bool event(QEvent *event) override;
- bool eventFilter(QObject *object, QEvent *event) override;
-
-private:
- Q_DISABLE_COPY(QQuickAction)
- Q_DECLARE_PRIVATE(QQuickAction)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickAction)
-
-#endif // QQUICKACTION_P_H
diff --git a/src/quicktemplates2/qquickaction_p_p.h b/src/quicktemplates2/qquickaction_p_p.h
deleted file mode 100644
index 7c70bab1..00000000
--- a/src/quicktemplates2/qquickaction_p_p.h
+++ /dev/null
@@ -1,133 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKACTION_P_P_H
-#define QQUICKACTION_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/private/qobject_p.h>
-#include <QtCore/qvariant.h>
-#include <QtCore/qstring.h>
-#include <QtGui/qkeysequence.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QShortcutEvent;
-class QQuickActionGroup;
-
-class QQuickActionPrivate : public QObjectPrivate, public QQuickItemChangeListener
-{
- Q_DECLARE_PUBLIC(QQuickAction)
-
-public:
- static QQuickActionPrivate *get(QQuickAction *action)
- {
- return action->d_func();
- }
-
-#if QT_CONFIG(shortcut)
- QVariant shortcut() const;
- void setShortcut(const QVariant &shortcut);
-#endif
-
- void setEnabled(bool enable);
-
- bool watchItem(QQuickItem *item);
- bool unwatchItem(QQuickItem *item);
-
- void registerItem(QQuickItem *item);
- void unregisterItem(QQuickItem *item);
-
- void itemVisibilityChanged(QQuickItem *item) override;
- void itemDestroyed(QQuickItem *item) override;
-
- bool handleShortcutEvent(QObject *object, QShortcutEvent *event);
-
- void trigger(QObject*, bool doToggle);
-
-#if QT_CONFIG(shortcut)
- class ShortcutEntry
- {
- public:
- explicit ShortcutEntry(QObject *target);
- ~ShortcutEntry();
-
- QObject *target() const;
- int shortcutId() const;
-
- void grab(const QKeySequence &vshortcut, bool enabled);
- void ungrab();
-
- void setEnabled(bool enabled);
-
- private:
- int m_shortcutId = 0;
- QObject *m_target = nullptr;
- };
-
- ShortcutEntry *findShortcutEntry(QObject *target) const;
- void updateDefaultShortcutEntry();
-#endif // QT_CONFIG(shortcut)
-
- bool explicitEnabled = false;
- bool enabled = true;
- bool checked = false;
- bool checkable = false;
- QString text;
- QQuickIcon icon;
- QKeySequence keySequence;
-#if QT_CONFIG(shortcut)
- QVariant vshortcut;
- ShortcutEntry *defaultShortcutEntry = nullptr;
- QVector<ShortcutEntry *> shortcutEntries;
-#endif
- QQuickActionGroup *group = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKACTION_P_P_H
diff --git a/src/quicktemplates2/qquickactiongroup.cpp b/src/quicktemplates2/qquickactiongroup.cpp
deleted file mode 100644
index f831660b..00000000
--- a/src/quicktemplates2/qquickactiongroup.cpp
+++ /dev/null
@@ -1,471 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickactiongroup_p.h"
-
-#include <QtCore/private/qobject_p.h>
-#include <QtCore/qmetaobject.h>
-#include <QtCore/qvariant.h>
-#include <QtQml/qqmlinfo.h>
-
-#include "qquickaction_p.h"
-#include "qquickaction_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ActionGroup
- \inherits QtObject
- \instantiates QQuickActionGroup
- \inqmlmodule QtQuick.Controls
- \since 5.10
- \ingroup utilities
- \brief Groups actions together.
-
- ActionGroup is a non-visual group of actions. A mutually \l exclusive
- action group is used with actions where only one of the options can be
- selected at a time.
-
- The most straight-forward way to use ActionGroup is to declare actions
- as children of the group.
-
- \code
- ActionGroup {
- id: alignmentGroup
-
- Action {
- checked: true
- checkable: true
- text: qsTr("Left")
- }
-
- Action {
- checkable: true
- text: qsTr("Center")
- }
-
- Action {
- checkable: true
- text: qsTr("Right")
- }
- }
- \endcode
-
- Alternatively, the \l group attached property allows declaring the actions
- elsewhere and assigning them to a specific group.
-
- \code
- ActionGroup { id: alignmentGroup }
-
- Action {
- checked: true
- checkable: true
- text: qsTr("Left")
- ActionGroup.group: alignmentGroup
- }
-
- Action {
- checkable: true
- text: qsTr("Center")
- ActionGroup.group: alignmentGroup
- }
-
- Action {
- checkable: true
- text: qsTr("Right")
- ActionGroup.group: alignmentGroup
- }
- \endcode
-
- More advanced use cases can be handled using the \c addAction() and
- \c removeAction() methods.
-
- \sa Action, ButtonGroup
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::ActionGroup::triggered(Action action)
-
- This signal is emitted when an \a action in the group has been triggered.
-
- This signal is convenient for implementing a common signal handler for
- all actions in the same group.
-
- \code
- ActionGroup {
- onTriggered: console.log("triggered:", action.text)
-
- Action { text: "First" }
- Action { text: "Second" }
- Action { text: "Third" }
- }
- \endcode
-
- \sa Action::triggered()
-*/
-
-class QQuickActionGroupPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickActionGroup)
-
-public:
- void clear();
- void actionTriggered();
- void _q_updateCurrent();
-
- static bool changeEnabled(QQuickAction *action, bool enabled);
-
- static void actions_append(QQmlListProperty<QQuickAction> *prop, QQuickAction *obj);
- static int actions_count(QQmlListProperty<QQuickAction> *prop);
- static QQuickAction *actions_at(QQmlListProperty<QQuickAction> *prop, int index);
- static void actions_clear(QQmlListProperty<QQuickAction> *prop);
-
- bool enabled = true;
- bool exclusive = true;
- QPointer<QQuickAction> checkedAction;
- QVector<QQuickAction*> actions;
-};
-
-void QQuickActionGroupPrivate::clear()
-{
- for (QQuickAction *action : qAsConst(actions)) {
- QQuickActionPrivate::get(action)->group = nullptr;
- QObjectPrivate::disconnect(action, &QQuickAction::triggered, this, &QQuickActionGroupPrivate::actionTriggered);
- QObjectPrivate::disconnect(action, &QQuickAction::checkedChanged, this, &QQuickActionGroupPrivate::_q_updateCurrent);
- }
- actions.clear();
-}
-
-void QQuickActionGroupPrivate::actionTriggered()
-{
- Q_Q(QQuickActionGroup);
- QQuickAction *action = qobject_cast<QQuickAction*>(q->sender());
- if (action)
- emit q->triggered(action);
-}
-
-void QQuickActionGroupPrivate::_q_updateCurrent()
-{
- Q_Q(QQuickActionGroup);
- if (!exclusive)
- return;
- QQuickAction *action = qobject_cast<QQuickAction*>(q->sender());
- if (action && action->isChecked())
- q->setCheckedAction(action);
- else if (!actions.contains(checkedAction))
- q->setCheckedAction(nullptr);
-}
-
-bool QQuickActionGroupPrivate::changeEnabled(QQuickAction *action, bool enabled)
-{
- return action->isEnabled() != enabled && (!enabled || !QQuickActionPrivate::get(action)->explicitEnabled);
-}
-
-void QQuickActionGroupPrivate::actions_append(QQmlListProperty<QQuickAction> *prop, QQuickAction *obj)
-{
- QQuickActionGroup *q = static_cast<QQuickActionGroup *>(prop->object);
- q->addAction(obj);
-}
-
-int QQuickActionGroupPrivate::actions_count(QQmlListProperty<QQuickAction> *prop)
-{
- QQuickActionGroupPrivate *p = static_cast<QQuickActionGroupPrivate *>(prop->data);
- return p->actions.count();
-}
-
-QQuickAction *QQuickActionGroupPrivate::actions_at(QQmlListProperty<QQuickAction> *prop, int index)
-{
- QQuickActionGroupPrivate *p = static_cast<QQuickActionGroupPrivate *>(prop->data);
- return p->actions.value(index);
-}
-
-void QQuickActionGroupPrivate::actions_clear(QQmlListProperty<QQuickAction> *prop)
-{
- QQuickActionGroupPrivate *p = static_cast<QQuickActionGroupPrivate *>(prop->data);
- if (!p->actions.isEmpty()) {
- p->clear();
- QQuickActionGroup *q = static_cast<QQuickActionGroup *>(prop->object);
- // QTBUG-52358: don't clear the checked action immediately
- QMetaObject::invokeMethod(q, "_q_updateCurrent", Qt::QueuedConnection);
- emit q->actionsChanged();
- }
-}
-
-QQuickActionGroup::QQuickActionGroup(QObject *parent)
- : QObject(*(new QQuickActionGroupPrivate), parent)
-{
-}
-
-QQuickActionGroup::~QQuickActionGroup()
-{
- Q_D(QQuickActionGroup);
- d->clear();
-}
-
-QQuickActionGroupAttached *QQuickActionGroup::qmlAttachedProperties(QObject *object)
-{
- return new QQuickActionGroupAttached(object);
-}
-
-/*!
- \qmlproperty Action QtQuick.Controls::ActionGroup::checkedAction
-
- This property holds the currently selected action in an exclusive group,
- or \c null if there is none or the group is non-exclusive.
-
- By default, it is the first checked action added to an exclusive action group.
-
- \sa exclusive
-*/
-QQuickAction *QQuickActionGroup::checkedAction() const
-{
- Q_D(const QQuickActionGroup);
- return d->checkedAction;
-}
-
-void QQuickActionGroup::setCheckedAction(QQuickAction *checkedAction)
-{
- Q_D(QQuickActionGroup);
- if (d->checkedAction == checkedAction)
- return;
-
- if (d->checkedAction)
- d->checkedAction->setChecked(false);
- d->checkedAction = checkedAction;
- if (checkedAction)
- checkedAction->setChecked(true);
- emit checkedActionChanged();
-}
-
-/*!
- \qmlproperty list<Action> QtQuick.Controls::ActionGroup::actions
- \default
-
- This property holds the list of actions in the group.
-
- \sa group
-*/
-QQmlListProperty<QQuickAction> QQuickActionGroup::actions()
-{
- Q_D(QQuickActionGroup);
- return QQmlListProperty<QQuickAction>(this, d,
- QQuickActionGroupPrivate::actions_append,
- QQuickActionGroupPrivate::actions_count,
- QQuickActionGroupPrivate::actions_at,
- QQuickActionGroupPrivate::actions_clear);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::ActionGroup::exclusive
-
- This property holds whether the action group is exclusive. The default value is \c true.
-
- If this property is \c true, then only one action in the group can be checked at any given time.
- The user can trigger any action to check it, and that action will replace the existing one as
- the checked action in the group.
-
- In an exclusive group, the user cannot uncheck the currently checked action by triggering it;
- instead, another action in the group must be triggered to set the new checked action for that
- group.
-
- In a non-exclusive group, checking and unchecking actions does not affect the other actions in
- the group. Furthermore, the value of the \l checkedAction property is \c null.
-*/
-bool QQuickActionGroup::isExclusive() const
-{
- Q_D(const QQuickActionGroup);
- return d->exclusive;
-}
-
-void QQuickActionGroup::setExclusive(bool exclusive)
-{
- Q_D(QQuickActionGroup);
- if (d->exclusive == exclusive)
- return;
-
- d->exclusive = exclusive;
- emit exclusiveChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::ActionGroup::enabled
-
- This property holds whether the action group is enabled. The default value is \c true.
-
- If this property is \c false, then all actions in the group are disabled. If this property
- is \c true, all actions in the group are enabled, unless explicitly disabled.
-*/
-bool QQuickActionGroup::isEnabled() const
-{
- Q_D(const QQuickActionGroup);
- return d->enabled;
-}
-
-void QQuickActionGroup::setEnabled(bool enabled)
-{
- Q_D(QQuickActionGroup);
- if (d->enabled == enabled)
- return;
-
- for (QQuickAction *action : qAsConst(d->actions)) {
- if (d->changeEnabled(action, enabled))
- emit action->enabledChanged(enabled);
- }
-
- d->enabled = enabled;
- emit enabledChanged();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::ActionGroup::addAction(Action action)
-
- Adds an \a action to the action group.
-
- \note Manually adding objects to a action group is typically unnecessary.
- The \l actions property and the \l group attached property provide a
- convenient and declarative syntax.
-
- \sa actions, group
-*/
-void QQuickActionGroup::addAction(QQuickAction *action)
-{
- Q_D(QQuickActionGroup);
- if (!action || d->actions.contains(action))
- return;
-
- const bool enabledChange = d->changeEnabled(action, d->enabled);
-
- QQuickActionPrivate::get(action)->group = this;
- QObjectPrivate::connect(action, &QQuickAction::triggered, d, &QQuickActionGroupPrivate::actionTriggered);
- QObjectPrivate::connect(action, &QQuickAction::checkedChanged, d, &QQuickActionGroupPrivate::_q_updateCurrent);
-
- if (d->exclusive && action->isChecked())
- setCheckedAction(action);
- if (enabledChange)
- emit action->enabledChanged(action->isEnabled());
-
- d->actions.append(action);
- emit actionsChanged();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::ActionGroup::removeAction(Action action)
-
- Removes an \a action from the action group.
-
- \note Manually removing objects from a action group is typically unnecessary.
- The \l actions property and the \l group attached property provide a
- convenient and declarative syntax.
-
- \sa actions, group
-*/
-void QQuickActionGroup::removeAction(QQuickAction *action)
-{
- Q_D(QQuickActionGroup);
- if (!action || !d->actions.contains(action))
- return;
-
- const bool enabledChange = d->changeEnabled(action, d->enabled);
-
- QQuickActionPrivate::get(action)->group = nullptr;
- QObjectPrivate::disconnect(action, &QQuickAction::triggered, d, &QQuickActionGroupPrivate::actionTriggered);
- QObjectPrivate::disconnect(action, &QQuickAction::checkedChanged, d, &QQuickActionGroupPrivate::_q_updateCurrent);
-
- if (d->checkedAction == action)
- setCheckedAction(nullptr);
- if (enabledChange)
- emit action->enabledChanged(action->isEnabled());
-
- d->actions.removeOne(action);
- emit actionsChanged();
-}
-
-class QQuickActionGroupAttachedPrivate : public QObjectPrivate
-{
-public:
- QQuickActionGroup *group = nullptr;
-};
-
-QQuickActionGroupAttached::QQuickActionGroupAttached(QObject *parent)
- : QObject(*(new QQuickActionGroupAttachedPrivate), parent)
-{
-}
-
-/*!
- \qmlattachedproperty ActionGroup QtQuick.Controls::ActionGroup::group
-
- This property attaches an action to an action group.
-
- \code
- ActionGroup { id: group }
-
- Action {
- checked: true
- text: qsTr("Option A")
- ActionGroup.group: group
- }
-
- Action {
- text: qsTr("Option B")
- ActionGroup.group: group
- }
- \endcode
-
- \sa actions
-*/
-QQuickActionGroup *QQuickActionGroupAttached::group() const
-{
- Q_D(const QQuickActionGroupAttached);
- return d->group;
-}
-
-void QQuickActionGroupAttached::setGroup(QQuickActionGroup *group)
-{
- Q_D(QQuickActionGroupAttached);
- if (d->group == group)
- return;
-
- if (d->group)
- d->group->removeAction(qobject_cast<QQuickAction*>(parent()));
- d->group = group;
- if (group)
- group->addAction(qobject_cast<QQuickAction*>(parent()));
- emit groupChanged();
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquickactiongroup_p.cpp"
diff --git a/src/quicktemplates2/qquickactiongroup_p.h b/src/quicktemplates2/qquickactiongroup_p.h
deleted file mode 100644
index aa04d32e..00000000
--- a/src/quicktemplates2/qquickactiongroup_p.h
+++ /dev/null
@@ -1,130 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKACTIONGROUP_P_H
-#define QQUICKACTIONGROUP_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtQml/qqml.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAction;
-class QQuickActionGroupPrivate;
-class QQuickActionGroupAttached;
-class QQuickActionGroupAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickActionGroup : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickAction *checkedAction READ checkedAction WRITE setCheckedAction NOTIFY checkedActionChanged FINAL)
- Q_PROPERTY(QQmlListProperty<QQuickAction> actions READ actions NOTIFY actionsChanged FINAL)
- Q_PROPERTY(bool exclusive READ isExclusive WRITE setExclusive NOTIFY exclusiveChanged FINAL)
- Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged FINAL)
- Q_CLASSINFO("DefaultProperty", "actions")
-
-public:
- explicit QQuickActionGroup(QObject *parent = nullptr);
- ~QQuickActionGroup();
-
- static QQuickActionGroupAttached *qmlAttachedProperties(QObject *object);
-
- QQuickAction *checkedAction() const;
- void setCheckedAction(QQuickAction *checkedAction);
-
- QQmlListProperty<QQuickAction> actions();
-
- bool isExclusive() const;
- void setExclusive(bool exclusive);
-
- bool isEnabled() const;
- void setEnabled(bool enabled);
-
-public Q_SLOTS:
- void addAction(QQuickAction *action);
- void removeAction(QQuickAction *action);
-
-Q_SIGNALS:
- void checkedActionChanged();
- void actionsChanged();
- void exclusiveChanged();
- void enabledChanged();
- void triggered(QQuickAction *action);
-
-private:
- Q_DISABLE_COPY(QQuickActionGroup)
- Q_DECLARE_PRIVATE(QQuickActionGroup)
-
- Q_PRIVATE_SLOT(d_func(), void _q_updateCurrent())
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickActionGroupAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickActionGroup *group READ group WRITE setGroup NOTIFY groupChanged FINAL)
-
-public:
- explicit QQuickActionGroupAttached(QObject *parent = nullptr);
-
- QQuickActionGroup *group() const;
- void setGroup(QQuickActionGroup *group);
-
-Q_SIGNALS:
- void groupChanged();
-
-private:
- Q_DISABLE_COPY(QQuickActionGroupAttached)
- Q_DECLARE_PRIVATE(QQuickActionGroupAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickActionGroup)
-QML_DECLARE_TYPEINFO(QQuickActionGroup, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKACTIONGROUP_P_H
diff --git a/src/quicktemplates2/qquickapplicationwindow.cpp b/src/quicktemplates2/qquickapplicationwindow.cpp
deleted file mode 100644
index 0d05bee7..00000000
--- a/src/quicktemplates2/qquickapplicationwindow.cpp
+++ /dev/null
@@ -1,1078 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickapplicationwindow_p.h"
-#include "qquickcontentitem_p.h"
-#include "qquickoverlay_p.h"
-#include "qquickpopup_p_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquicktextarea_p.h"
-#include "qquicktextfield_p.h"
-#include "qquicktoolbar_p.h"
-#include "qquicktabbar_p.h"
-#include "qquickdialogbuttonbox_p.h"
-#include "qquickdeferredexecute_p_p.h"
-#include "qquickdeferredpointer_p_p.h"
-
-#include <QtCore/private/qobject_p.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ApplicationWindow
- \inherits Window
- \instantiates QQuickApplicationWindow
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-containers
- \ingroup qtquickcontrols2-focusscopes
- \brief Styled top-level window with support for a header and footer.
-
- ApplicationWindow is a \l Window which makes it convenient to add
- a \l {menuBar}{menu bar}, \l header and \l footer item to the window.
-
- You can declare ApplicationWindow as the root item of your application,
- and run it by using \l QQmlApplicationEngine. In this way you can control
- the window's properties, appearance and layout from QML.
-
- \image qtquickcontrols2-applicationwindow-wireframe.png
-
- \qml
- import QtQuick.Controls 2.12
-
- ApplicationWindow {
- visible: true
-
- menuBar: MenuBar {
- // ...
- }
-
- header: ToolBar {
- // ...
- }
-
- footer: TabBar {
- // ...
- }
-
- StackView {
- anchors.fill: parent
- }
- }
- \endqml
-
- \note By default, an ApplicationWindow is not visible.
-
- \section2 Attached ApplicationWindow Properties
-
- Due to how \l {Scope and Naming Resolution} works in QML, it is possible
- to reference the \c id of the application root element anywhere in its
- child QML objects. Even though this approach is fine for many applications
- and use cases, for a generic QML component it may not be acceptable as it
- creates a dependency to the surrounding environment.
-
- ApplicationWindow provides a set of attached properties that can be used
- to access the window and its building blocks from places where no direct
- access to the window is available, without creating a dependency to a
- certain window \c id. A QML component that uses the ApplicationWindow
- attached properties works in any window regardless of its \c id.
-
- \sa {Customizing ApplicationWindow}, Overlay, Page, {Container Controls},
- {Focus Management in Qt Quick Controls}
-*/
-
-static const QQuickItemPrivate::ChangeTypes ItemChanges = QQuickItemPrivate::Visibility
- | QQuickItemPrivate::Geometry | QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight;
-
-class QQuickApplicationWindowPrivate : public QQuickItemChangeListener
-{
- Q_DECLARE_PUBLIC(QQuickApplicationWindow)
-
-public:
- static QQuickApplicationWindowPrivate *get(QQuickApplicationWindow *window)
- {
- return window->d_func();
- }
-
- QQmlListProperty<QObject> contentData();
-
- void relayout();
-
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
- void itemVisibilityChanged(QQuickItem *item) override;
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- void updateFont(const QFont &f);
- inline void setFont_helper(const QFont &f) {
- if (font.resolve() == f.resolve() && font == f)
- return;
- updateFont(f);
- }
- void resolveFont();
-
- void updatePalette(const QPalette &p);
- inline void setPalette_helper(const QPalette &p) {
- if (palette.resolve() == p.resolve() && palette == p)
- return;
- updatePalette(p);
- }
- void resolvePalette();
-
- void _q_updateActiveFocus();
- void setActiveFocusControl(QQuickItem *item);
-
- static void contentData_append(QQmlListProperty<QObject> *prop, QObject *obj);
-
- void cancelBackground();
- void executeBackground(bool complete = false);
-
- bool complete = true;
- QQuickDeferredPointer<QQuickItem> background;
- QQuickItem *contentItem = nullptr;
- QQuickItem *menuBar = nullptr;
- QQuickItem *header = nullptr;
- QQuickItem *footer = nullptr;
- QQuickOverlay *overlay = nullptr;
- QFont font;
- QLocale locale;
- QPalette palette;
- QQuickItem *activeFocusControl = nullptr;
- QQuickApplicationWindow *q_ptr = nullptr;
-};
-
-static void layoutItem(QQuickItem *item, qreal y, qreal width)
-{
- if (!item)
- return;
-
- item->setY(y);
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- if (!p->widthValid) {
- item->setWidth(width);
- p->widthValid = false;
- }
-}
-
-void QQuickApplicationWindowPrivate::relayout()
-{
- Q_Q(QQuickApplicationWindow);
- if (!complete)
- return;
-
- QQuickItem *content = q->contentItem();
- qreal hh = header && header->isVisible() ? header->height() : 0;
- qreal fh = footer && footer->isVisible() ? footer->height() : 0;
- qreal mbh = menuBar && menuBar->isVisible() ? menuBar->height() : 0;
-
- content->setY(mbh + hh);
- content->setWidth(q->width());
- content->setHeight(q->height() - mbh - hh - fh);
-
- layoutItem(menuBar, -mbh - hh, q->width());
- layoutItem(header, -hh, q->width());
- layoutItem(footer, content->height(), q->width());
-
- if (background) {
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (!p->widthValid && qFuzzyIsNull(background->x())) {
- background->setWidth(q->width());
- p->widthValid = false;
- }
- if (!p->heightValid && qFuzzyIsNull(background->y())) {
- background->setHeight(q->height());
- p->heightValid = false;
- }
- }
-}
-
-void QQuickApplicationWindowPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff)
-{
- Q_UNUSED(item)
- Q_UNUSED(change)
- Q_UNUSED(diff)
- relayout();
-}
-
-void QQuickApplicationWindowPrivate::itemVisibilityChanged(QQuickItem *item)
-{
- Q_UNUSED(item);
- relayout();
-}
-
-void QQuickApplicationWindowPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_UNUSED(item);
- relayout();
-}
-
-void QQuickApplicationWindowPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_UNUSED(item);
- relayout();
-}
-
-void QQuickApplicationWindowPrivate::updateFont(const QFont &f)
-{
- Q_Q(QQuickApplicationWindow);
- const bool changed = font != f;
- font = f;
-
- QQuickControlPrivate::updateFontRecur(q->QQuickWindow::contentItem(), f);
-
- const QList<QQuickPopup *> popups = q->findChildren<QQuickPopup *>();
- for (QQuickPopup *popup : popups)
- QQuickControlPrivate::get(static_cast<QQuickControl *>(popup->popupItem()))->inheritFont(f);
-
- if (changed)
- emit q->fontChanged();
-}
-
-void QQuickApplicationWindowPrivate::resolveFont()
-{
- QFont resolvedFont = font.resolve(QQuickTheme::font(QQuickTheme::System));
- setFont_helper(resolvedFont);
-}
-
-void QQuickApplicationWindowPrivate::updatePalette(const QPalette &p)
-{
- Q_Q(QQuickApplicationWindow);
- const bool changed = palette != p;
- palette = p;
-
- QQuickControlPrivate::updatePaletteRecur(q->QQuickWindow::contentItem(), p);
-
- const QList<QQuickPopup *> popups = q->findChildren<QQuickPopup *>();
- for (QQuickPopup *popup : popups)
- QQuickControlPrivate::get(static_cast<QQuickControl *>(popup->popupItem()))->inheritPalette(p);
-
- if (changed)
- emit q->paletteChanged();
-}
-
-void QQuickApplicationWindowPrivate::resolvePalette()
-{
- QPalette resolvedPalette = palette.resolve(QQuickTheme::palette(QQuickTheme::System));
- setPalette_helper(resolvedPalette);
-}
-
-static QQuickItem *findActiveFocusControl(QQuickWindow *window)
-{
- QQuickItem *item = window->activeFocusItem();
- while (item) {
- if (qobject_cast<QQuickControl *>(item) || qobject_cast<QQuickTextField *>(item) || qobject_cast<QQuickTextArea *>(item))
- return item;
- item = item->parentItem();
- }
- return item;
-}
-
-void QQuickApplicationWindowPrivate::_q_updateActiveFocus()
-{
- Q_Q(QQuickApplicationWindow);
- setActiveFocusControl(findActiveFocusControl(q));
-}
-
-void QQuickApplicationWindowPrivate::setActiveFocusControl(QQuickItem *control)
-{
- Q_Q(QQuickApplicationWindow);
- if (activeFocusControl != control) {
- activeFocusControl = control;
- emit q->activeFocusControlChanged();
- }
-}
-
-void QQuickApplicationWindowPrivate::contentData_append(QQmlListProperty<QObject> *prop, QObject *obj)
-{
- QQuickItemPrivate::data_append(prop, obj);
-
- // associate "top-level" popups with the window as soon as they are added to the default property
- if (QQuickPopup *popup = qobject_cast<QQuickPopup *>(obj))
- QQuickPopupPrivate::get(popup)->setWindow(static_cast<QQuickApplicationWindow *>(prop->data));
-}
-
-static inline QString backgroundName() { return QStringLiteral("background"); }
-
-void QQuickApplicationWindowPrivate::cancelBackground()
-{
- Q_Q(QQuickApplicationWindow);
- quickCancelDeferred(q, backgroundName());
-}
-
-void QQuickApplicationWindowPrivate::executeBackground(bool complete)
-{
- Q_Q(QQuickApplicationWindow);
- if (background.wasExecuted())
- return;
-
- if (!background || complete)
- quickBeginDeferred(q, backgroundName(), background);
- if (complete)
- quickCompleteDeferred(q, backgroundName(), background);
-}
-
-QQuickApplicationWindow::QQuickApplicationWindow(QWindow *parent)
- : QQuickWindowQmlImpl(parent), d_ptr(new QQuickApplicationWindowPrivate)
-{
- d_ptr->q_ptr = this;
- connect(this, SIGNAL(activeFocusItemChanged()), this, SLOT(_q_updateActiveFocus()));
-}
-
-QQuickApplicationWindow::~QQuickApplicationWindow()
-{
- Q_D(QQuickApplicationWindow);
- d->setActiveFocusControl(nullptr);
- disconnect(this, SIGNAL(activeFocusItemChanged()), this, SLOT(_q_updateActiveFocus()));
- if (d->menuBar)
- QQuickItemPrivate::get(d->menuBar)->removeItemChangeListener(d, ItemChanges);
- if (d->header)
- QQuickItemPrivate::get(d->header)->removeItemChangeListener(d, ItemChanges);
- if (d->footer)
- QQuickItemPrivate::get(d->footer)->removeItemChangeListener(d, ItemChanges);
- d_ptr.reset(); // QTBUG-52731
-}
-
-QQuickApplicationWindowAttached *QQuickApplicationWindow::qmlAttachedProperties(QObject *object)
-{
- return new QQuickApplicationWindowAttached(object);
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::ApplicationWindow::background
-
- This property holds the background item.
-
- The background item is stacked under the \l {contentItem}{content item},
- but above the \l {Window::color}{background color} of the window.
-
- The background item is useful for images and gradients, for example,
- but the \l {Window::}{color} property is preferable for solid colors,
- as it doesn't need to create an item.
-
- \note If the background item has no explicit size specified, it automatically
- follows the control's size. In most cases, there is no need to specify
- width or height for a background item.
-
- \sa {Customizing ApplicationWindow}, contentItem, header, footer
-*/
-QQuickItem *QQuickApplicationWindow::background() const
-{
- QQuickApplicationWindowPrivate *d = const_cast<QQuickApplicationWindowPrivate *>(d_func());
- if (!d->background)
- d->executeBackground();
- return d->background;
-}
-
-void QQuickApplicationWindow::setBackground(QQuickItem *background)
-{
- Q_D(QQuickApplicationWindow);
- if (d->background == background)
- return;
-
- if (!d->background.isExecuting())
- d->cancelBackground();
-
- delete d->background;
- d->background = background;
- if (background) {
- background->setParentItem(QQuickWindow::contentItem());
- if (qFuzzyIsNull(background->z()))
- background->setZ(-1);
- if (isComponentComplete())
- d->relayout();
- }
- if (!d->background.isExecuting())
- emit backgroundChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::ApplicationWindow::header
-
- This property holds the window header item. The header item is positioned at the
- top of the window, below the menu bar, and resized to the width of the window.
- The default value is \c null.
-
- \code
- ApplicationWindow {
- header: TabBar {
- // ...
- }
- }
- \endcode
-
- \note Assigning a ToolBar, TabBar, or DialogButtonBox as a window header
- automatically sets the respective \l ToolBar::position, \l TabBar::position,
- or \l DialogButtonBox::position property to \c Header.
-
- \sa menuBar, footer, Page::header
-*/
-QQuickItem *QQuickApplicationWindow::header() const
-{
- Q_D(const QQuickApplicationWindow);
- return d->header;
-}
-
-void QQuickApplicationWindow::setHeader(QQuickItem *header)
-{
- Q_D(QQuickApplicationWindow);
- if (d->header == header)
- return;
-
- if (d->header) {
- QQuickItemPrivate::get(d->header)->removeItemChangeListener(d, ItemChanges);
- d->header->setParentItem(nullptr);
- }
- d->header = header;
- if (header) {
- header->setParentItem(contentItem());
- QQuickItemPrivate *p = QQuickItemPrivate::get(header);
- p->addItemChangeListener(d, ItemChanges);
- if (qFuzzyIsNull(header->z()))
- header->setZ(1);
- if (QQuickToolBar *toolBar = qobject_cast<QQuickToolBar *>(header))
- toolBar->setPosition(QQuickToolBar::Header);
- else if (QQuickTabBar *tabBar = qobject_cast<QQuickTabBar *>(header))
- tabBar->setPosition(QQuickTabBar::Header);
- else if (QQuickDialogButtonBox *buttonBox = qobject_cast<QQuickDialogButtonBox *>(header))
- buttonBox->setPosition(QQuickDialogButtonBox::Header);
- }
- if (isComponentComplete())
- d->relayout();
- emit headerChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::ApplicationWindow::footer
-
- This property holds the window footer item. The footer item is positioned to
- the bottom, and resized to the width of the window. The default value is \c null.
-
- \code
- ApplicationWindow {
- footer: ToolBar {
- // ...
- }
- }
- \endcode
-
- \note Assigning a ToolBar, TabBar, or DialogButtonBox as a window footer
- automatically sets the respective \l ToolBar::position, \l TabBar::position,
- or \l DialogButtonBox::position property to \c Footer.
-
- \sa menuBar, header, Page::footer
-*/
-QQuickItem *QQuickApplicationWindow::footer() const
-{
- Q_D(const QQuickApplicationWindow);
- return d->footer;
-}
-
-void QQuickApplicationWindow::setFooter(QQuickItem *footer)
-{
- Q_D(QQuickApplicationWindow);
- if (d->footer == footer)
- return;
-
- if (d->footer) {
- QQuickItemPrivate::get(d->footer)->removeItemChangeListener(d, ItemChanges);
- d->footer->setParentItem(nullptr);
- }
- d->footer = footer;
- if (footer) {
- footer->setParentItem(contentItem());
- QQuickItemPrivate *p = QQuickItemPrivate::get(footer);
- p->addItemChangeListener(d, ItemChanges);
- if (qFuzzyIsNull(footer->z()))
- footer->setZ(1);
- if (QQuickToolBar *toolBar = qobject_cast<QQuickToolBar *>(footer))
- toolBar->setPosition(QQuickToolBar::Footer);
- else if (QQuickTabBar *tabBar = qobject_cast<QQuickTabBar *>(footer))
- tabBar->setPosition(QQuickTabBar::Footer);
- else if (QQuickDialogButtonBox *buttonBox = qobject_cast<QQuickDialogButtonBox *>(footer))
- buttonBox->setPosition(QQuickDialogButtonBox::Footer);
- }
- if (isComponentComplete())
- d->relayout();
- emit footerChanged();
-}
-
-/*!
- \qmlproperty list<Object> QtQuick.Controls::ApplicationWindow::contentData
- \default
-
- This default property holds the list of all objects declared as children of
- the window.
-
- The data property allows you to freely mix visual children, resources and
- other windows in an ApplicationWindow.
-
- If you assign an Item to the contentData list, it becomes a child of the
- window's contentItem, so that it appears inside the window. The item's
- parent will be the window's \l contentItem.
-
- It should not generally be necessary to refer to the contentData property,
- as it is the default property for ApplicationWindow and thus all child
- items are automatically assigned to this property.
-
- \sa contentItem
-*/
-QQmlListProperty<QObject> QQuickApplicationWindowPrivate::contentData()
-{
- Q_Q(QQuickApplicationWindow);
- return QQmlListProperty<QObject>(q->contentItem(), q,
- QQuickApplicationWindowPrivate::contentData_append,
- QQuickItemPrivate::data_count,
- QQuickItemPrivate::data_at,
- QQuickItemPrivate::data_clear);
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::ApplicationWindow::contentItem
- \readonly
-
- This property holds the window content item.
-
- The content item is stacked above the \l background item, and under the
- \l menuBar, \l header, and \l footer items.
-
- \sa background, menuBar, header, footer
-*/
-QQuickItem *QQuickApplicationWindow::contentItem() const
-{
- QQuickApplicationWindowPrivate *d = const_cast<QQuickApplicationWindowPrivate *>(d_func());
- if (!d->contentItem) {
- d->contentItem = new QQuickContentItem(this, QQuickWindow::contentItem());
- d->contentItem->setFlag(QQuickItem::ItemIsFocusScope);
- d->contentItem->setFocus(true);
- d->relayout();
- }
- return d->contentItem;
-}
-
-/*!
- \qmlproperty Control QtQuick.Controls::ApplicationWindow::activeFocusControl
- \readonly
-
- This property holds the control that currently has active focus, or \c null if there is
- no control with active focus.
-
- The difference between \l Window::activeFocusItem and ApplicationWindow::activeFocusControl
- is that the former may point to a building block of a control, whereas the latter points
- to the enclosing control. For example, when SpinBox has focus, activeFocusItem points to
- the editor and activeFocusControl to the SpinBox itself.
-
- \sa Window::activeFocusItem
-*/
-QQuickItem *QQuickApplicationWindow::activeFocusControl() const
-{
- Q_D(const QQuickApplicationWindow);
- return d->activeFocusControl;
-}
-
-/*!
- \deprecated
- \qmlpropertygroup QtQuick.Controls::ApplicationWindow::overlay
- \qmlproperty Item QtQuick.Controls::ApplicationWindow::overlay
- \qmlproperty Component QtQuick.Controls::ApplicationWindow::overlay.modal
- \qmlproperty Component QtQuick.Controls::ApplicationWindow::overlay.modeless
-
- Use the \l Overlay attached properties and signals instead.
-
- This property holds the window overlay item. Popups are automatically
- reparented to the overlay.
-
- \table
- \header
- \li Property
- \li Description
- \row
- \li overlay.modal
- \li This property holds a component to use as a visual item that implements
- background dimming for modal popups. It is created for and stacked below
- visible modal popups.
- \row
- \li overlay.modeless
- \li This property holds a component to use as a visual item that implements
- background dimming for modeless popups. It is created for and stacked below
- visible dimming popups.
- \row
- \li overlay.pressed()
- \li This signal is emitted when the overlay is pressed by the user while
- a popup is visible.
- \row
- \li overlay.released()
- \li This signal is emitted when the overlay is released by the user while
- a modal popup is visible.
- \endtable
-
- \sa Popup::modal, Popup::dim
-*/
-QQuickOverlay *QQuickApplicationWindow::overlay() const
-{
- QQuickApplicationWindowPrivate *d = const_cast<QQuickApplicationWindowPrivate *>(d_func());
- if (!d) // being deleted
- return nullptr;
-
- if (!d->overlay) {
- d->overlay = new QQuickOverlay(QQuickWindow::contentItem());
- d->overlay->stackAfter(QQuickApplicationWindow::contentItem());
- }
- return d->overlay;
-}
-
-/*!
- \qmlproperty font QtQuick.Controls::ApplicationWindow::font
-
- This property holds the font currently set for the window.
-
- The default font depends on the system environment. QGuiApplication maintains a system/theme
- font which serves as a default for all application windows. You can also set the default font
- for windows by passing a custom font to QGuiApplication::setFont(), before loading any QML.
- Finally, the font is matched against Qt's font database to find the best match.
-
- ApplicationWindow propagates explicit font properties to child controls. If you change a specific
- property on the window's font, that property propagates to all child controls in the window,
- overriding any system defaults for that property.
-
- \sa Control::font
-*/
-QFont QQuickApplicationWindow::font() const
-{
- Q_D(const QQuickApplicationWindow);
- return d->font;
-}
-
-void QQuickApplicationWindow::setFont(const QFont &font)
-{
- Q_D(QQuickApplicationWindow);
- if (d->font.resolve() == font.resolve() && d->font == font)
- return;
-
- QFont resolvedFont = font.resolve(QQuickTheme::font(QQuickTheme::System));
- d->setFont_helper(resolvedFont);
-}
-
-void QQuickApplicationWindow::resetFont()
-{
- setFont(QFont());
-}
-
-/*!
- \qmlproperty Locale QtQuick.Controls::ApplicationWindow::locale
-
- This property holds the locale of the window.
-
- The default locale depends on the system environment. You can set the
- default locale by calling QLocale::setDefault(), before loading any QML.
-
- ApplicationWindow propagates the locale to child controls. If you change
- the window's locale, that locale propagates to all child controls in the
- window, overriding the system default locale.
-
- \sa Control::locale, {LayoutMirroring}{LayoutMirroring}
-*/
-QLocale QQuickApplicationWindow::locale() const
-{
- Q_D(const QQuickApplicationWindow);
- return d->locale;
-}
-
-void QQuickApplicationWindow::setLocale(const QLocale &locale)
-{
- Q_D(QQuickApplicationWindow);
- if (d->locale == locale)
- return;
-
- d->locale = locale;
- QQuickControlPrivate::updateLocaleRecur(QQuickWindow::contentItem(), locale);
-
- // TODO: internal QQuickPopupManager that provides reliable access to all QQuickPopup instances
- const QList<QQuickPopup *> popups = QQuickWindow::contentItem()->findChildren<QQuickPopup *>();
- for (QQuickPopup *popup : popups)
- QQuickControlPrivate::get(static_cast<QQuickControl *>(popup->popupItem()))->updateLocale(locale, false); // explicit=false
-
- emit localeChanged();
-}
-
-void QQuickApplicationWindow::resetLocale()
-{
- setLocale(QLocale());
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty palette QtQuick.Controls::ApplicationWindow::palette
-
- This property holds the palette currently set for the window.
-
- The default palette depends on the system environment. QGuiApplication maintains a system/theme
- palette which serves as a default for all application windows. You can also set the default palette
- for windows by passing a custom palette to QGuiApplication::setPalette(), before loading any QML.
-
- ApplicationWindow propagates explicit palette properties to child controls. If you change a specific
- property on the window's palette, that property propagates to all child controls in the window,
- overriding any system defaults for that property.
-
- \sa Control::palette, Popup::palette, {qtquickcontrols2-palette}{palette QML Basic Type}
-*/
-QPalette QQuickApplicationWindow::palette() const
-{
- Q_D(const QQuickApplicationWindow);
- return d->palette;
-}
-
-void QQuickApplicationWindow::setPalette(const QPalette &palette)
-{
- Q_D(QQuickApplicationWindow);
- if (d->palette.resolve() == palette.resolve() && d->palette == palette)
- return;
-
- QPalette resolvedPalette = palette.resolve(QQuickTheme::palette(QQuickTheme::System));
- d->setPalette_helper(resolvedPalette);
-}
-
-void QQuickApplicationWindow::resetPalette()
-{
- setPalette(QPalette());
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty Item QtQuick.Controls::ApplicationWindow::menuBar
-
- This property holds the window menu bar. The menu bar is positioned at the
- top of the window, above the header, and resized to the width of the window.
- The default value is \c null.
-
- \code
- ApplicationWindow {
- menuBar: MenuBar {
- // ...
- }
- }
- \endcode
-
- \sa header, footer, MenuBar
-*/
-QQuickItem *QQuickApplicationWindow::menuBar() const
-{
- Q_D(const QQuickApplicationWindow);
- return d->menuBar;
-}
-
-void QQuickApplicationWindow::setMenuBar(QQuickItem *menuBar)
-{
- Q_D(QQuickApplicationWindow);
- if (d->menuBar == menuBar)
- return;
-
- if (d->menuBar) {
- QQuickItemPrivate::get(d->menuBar)->removeItemChangeListener(d, ItemChanges);
- d->menuBar->setParentItem(nullptr);
- }
- d->menuBar = menuBar;
- if (menuBar) {
- menuBar->setParentItem(contentItem());
- QQuickItemPrivate *p = QQuickItemPrivate::get(menuBar);
- p->addItemChangeListener(d, ItemChanges);
- if (qFuzzyIsNull(menuBar->z()))
- menuBar->setZ(2);
- }
- if (isComponentComplete())
- d->relayout();
- emit menuBarChanged();
-}
-
-bool QQuickApplicationWindow::isComponentComplete() const
-{
- Q_D(const QQuickApplicationWindow);
- return d->complete;
-}
-
-void QQuickApplicationWindow::classBegin()
-{
- Q_D(QQuickApplicationWindow);
- d->complete = false;
- QQuickWindowQmlImpl::classBegin();
- d->resolveFont();
- d->resolvePalette();
-}
-
-void QQuickApplicationWindow::componentComplete()
-{
- Q_D(QQuickApplicationWindow);
- d->complete = true;
- d->executeBackground(true);
- QQuickWindowQmlImpl::componentComplete();
- d->relayout();
-}
-
-void QQuickApplicationWindow::resizeEvent(QResizeEvent *event)
-{
- Q_D(QQuickApplicationWindow);
- QQuickWindowQmlImpl::resizeEvent(event);
- d->relayout();
-}
-
-class QQuickApplicationWindowAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickApplicationWindowAttached)
-
-public:
- void windowChange(QQuickWindow *wnd);
- void activeFocusChange();
-
- QQuickWindow *window = nullptr;
- QQuickItem *activeFocusControl = nullptr;
-};
-
-void QQuickApplicationWindowAttachedPrivate::windowChange(QQuickWindow *wnd)
-{
- Q_Q(QQuickApplicationWindowAttached);
- if (window == wnd)
- return;
-
- QQuickApplicationWindow *oldWindow = qobject_cast<QQuickApplicationWindow *>(window);
- if (oldWindow && !QQuickApplicationWindowPrivate::get(oldWindow))
- oldWindow = nullptr; // being deleted (QTBUG-52731)
-
- if (oldWindow) {
- disconnect(oldWindow, &QQuickApplicationWindow::activeFocusControlChanged,
- this, &QQuickApplicationWindowAttachedPrivate::activeFocusChange);
- QObject::disconnect(oldWindow, &QQuickApplicationWindow::menuBarChanged,
- q, &QQuickApplicationWindowAttached::menuBarChanged);
- QObject::disconnect(oldWindow, &QQuickApplicationWindow::headerChanged,
- q, &QQuickApplicationWindowAttached::headerChanged);
- QObject::disconnect(oldWindow, &QQuickApplicationWindow::footerChanged,
- q, &QQuickApplicationWindowAttached::footerChanged);
- } else if (window) {
- disconnect(window, &QQuickWindow::activeFocusItemChanged,
- this, &QQuickApplicationWindowAttachedPrivate::activeFocusChange);
- }
-
- QQuickApplicationWindow *newWindow = qobject_cast<QQuickApplicationWindow *>(wnd);
- if (newWindow) {
- connect(newWindow, &QQuickApplicationWindow::activeFocusControlChanged,
- this, &QQuickApplicationWindowAttachedPrivate::activeFocusChange);
- QObject::connect(newWindow, &QQuickApplicationWindow::menuBarChanged,
- q, &QQuickApplicationWindowAttached::menuBarChanged);
- QObject::connect(newWindow, &QQuickApplicationWindow::headerChanged,
- q, &QQuickApplicationWindowAttached::headerChanged);
- QObject::connect(newWindow, &QQuickApplicationWindow::footerChanged,
- q, &QQuickApplicationWindowAttached::footerChanged);
- } else if (wnd) {
- connect(wnd, &QQuickWindow::activeFocusItemChanged,
- this, &QQuickApplicationWindowAttachedPrivate::activeFocusChange);
- }
-
- window = wnd;
- emit q->windowChanged();
- emit q->contentItemChanged();
- emit q->overlayChanged();
-
- activeFocusChange();
- if ((oldWindow && oldWindow->menuBar()) || (newWindow && newWindow->menuBar()))
- emit q->menuBarChanged();
- if ((oldWindow && oldWindow->header()) || (newWindow && newWindow->header()))
- emit q->headerChanged();
- if ((oldWindow && oldWindow->footer()) || (newWindow && newWindow->footer()))
- emit q->footerChanged();
-}
-
-void QQuickApplicationWindowAttachedPrivate::activeFocusChange()
-{
- Q_Q(QQuickApplicationWindowAttached);
- QQuickItem *control = nullptr;
- if (QQuickApplicationWindow *appWindow = qobject_cast<QQuickApplicationWindow *>(window))
- control = appWindow->activeFocusControl();
- else if (window)
- control = findActiveFocusControl(window);
- if (activeFocusControl == control)
- return;
-
- activeFocusControl = control;
- emit q->activeFocusControlChanged();
-}
-
-QQuickApplicationWindowAttached::QQuickApplicationWindowAttached(QObject *parent)
- : QObject(*(new QQuickApplicationWindowAttachedPrivate), parent)
-{
- Q_D(QQuickApplicationWindowAttached);
- if (QQuickItem *item = qobject_cast<QQuickItem *>(parent)) {
- d->windowChange(item->window());
- QObjectPrivate::connect(item, &QQuickItem::windowChanged, d, &QQuickApplicationWindowAttachedPrivate::windowChange);
- if (!d->window) {
- QQuickItem *p = item;
- while (p) {
- if (QQuickPopup *popup = qobject_cast<QQuickPopup *>(p->parent())) {
- d->windowChange(popup->window());
- QObjectPrivate::connect(popup, &QQuickPopup::windowChanged, d, &QQuickApplicationWindowAttachedPrivate::windowChange);
- }
- p = p->parentItem();
- }
- }
- } else if (QQuickPopup *popup = qobject_cast<QQuickPopup *>(parent)) {
- d->windowChange(popup->window());
- QObjectPrivate::connect(popup, &QQuickPopup::windowChanged, d, &QQuickApplicationWindowAttachedPrivate::windowChange);
- }
-}
-
-/*!
- \qmlattachedproperty ApplicationWindow QtQuick.Controls::ApplicationWindow::window
- \readonly
-
- This attached property holds the application window. The property can be attached
- to any item. The value is \c null if the item is not in an ApplicationWindow.
-
- \sa {Attached ApplicationWindow Properties}
-*/
-QQuickApplicationWindow *QQuickApplicationWindowAttached::window() const
-{
- Q_D(const QQuickApplicationWindowAttached);
- return qobject_cast<QQuickApplicationWindow *>(d->window);
-}
-
-/*!
- \qmlattachedproperty Item QtQuick.Controls::ApplicationWindow::contentItem
- \readonly
-
- This attached property holds the window content item. The property can be attached
- to any item. The value is \c null if the item is not in an ApplicationWindow.
-
- \sa {Attached ApplicationWindow Properties}
-*/
-QQuickItem *QQuickApplicationWindowAttached::contentItem() const
-{
- Q_D(const QQuickApplicationWindowAttached);
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(d->window))
- return window->contentItem();
- return nullptr;
-}
-
-/*!
- \qmlattachedproperty Control QtQuick.Controls::ApplicationWindow::activeFocusControl
- \readonly
-
- This attached property holds the control that currently has active focus, or \c null
- if there is no control with active focus. The property can be attached to any item.
- The value is \c null if the item is not in a window, or the window has no active focus.
-
- \sa Window::activeFocusItem, {Attached ApplicationWindow Properties}
-*/
-QQuickItem *QQuickApplicationWindowAttached::activeFocusControl() const
-{
- Q_D(const QQuickApplicationWindowAttached);
- return d->activeFocusControl;
-}
-
-/*!
- \qmlattachedproperty Item QtQuick.Controls::ApplicationWindow::header
- \readonly
-
- This attached property holds the window header item. The property can be attached
- to any item. The value is \c null if the item is not in an ApplicationWindow, or
- the window has no header item.
-
- \sa {Attached ApplicationWindow Properties}
-*/
-QQuickItem *QQuickApplicationWindowAttached::header() const
-{
- Q_D(const QQuickApplicationWindowAttached);
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(d->window))
- return window->header();
- return nullptr;
-}
-
-/*!
- \qmlattachedproperty Item QtQuick.Controls::ApplicationWindow::footer
- \readonly
-
- This attached property holds the window footer item. The property can be attached
- to any item. The value is \c null if the item is not in an ApplicationWindow, or
- the window has no footer item.
-
- \sa {Attached ApplicationWindow Properties}
-*/
-QQuickItem *QQuickApplicationWindowAttached::footer() const
-{
- Q_D(const QQuickApplicationWindowAttached);
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(d->window))
- return window->footer();
- return nullptr;
-}
-
-/*!
- \deprecated
- \qmlattachedproperty Item QtQuick.Controls::ApplicationWindow::overlay
- \readonly
-
- Use the \l Overlay::overlay attached property instead.
-
- This attached property holds the window overlay item. The property can be attached
- to any item. The value is \c null if the item is not in an ApplicationWindow.
-
- \sa {Attached ApplicationWindow Properties}
-*/
-QQuickOverlay *QQuickApplicationWindowAttached::overlay() const
-{
- Q_D(const QQuickApplicationWindowAttached);
- return QQuickOverlay::overlay(d->window);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlattachedproperty Item QtQuick.Controls::ApplicationWindow::menuBar
- \readonly
-
- This attached property holds the window menu bar. The property can be attached
- to any item. The value is \c null if the item is not in an ApplicationWindow, or
- the window has no menu bar.
-
- \sa {Attached ApplicationWindow Properties}
-*/
-QQuickItem *QQuickApplicationWindowAttached::menuBar() const
-{
- Q_D(const QQuickApplicationWindowAttached);
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(d->window))
- return window->menuBar();
- return nullptr;
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquickapplicationwindow_p.cpp"
diff --git a/src/quicktemplates2/qquickapplicationwindow_p.h b/src/quicktemplates2/qquickapplicationwindow_p.h
deleted file mode 100644
index c004ee3a..00000000
--- a/src/quicktemplates2/qquickapplicationwindow_p.h
+++ /dev/null
@@ -1,184 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKAPPLICATIONWINDOW_P_H
-#define QQUICKAPPLICATIONWINDOW_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquickwindowmodule_p.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtGui/qfont.h>
-#include <QtGui/qpalette.h>
-#include <QtCore/qlocale.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickOverlay;
-class QQuickApplicationWindowPrivate;
-class QQuickApplicationWindowAttached;
-class QQuickApplicationWindowAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickApplicationWindow : public QQuickWindowQmlImpl
-{
- Q_OBJECT
- Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
- Q_PROPERTY(QQuickItem *contentItem READ contentItem CONSTANT FINAL)
- Q_PRIVATE_PROPERTY(QQuickApplicationWindow::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
- Q_PROPERTY(QQuickItem *activeFocusControl READ activeFocusControl NOTIFY activeFocusControlChanged FINAL)
- Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
- Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
- Q_PROPERTY(QQuickOverlay *overlay READ overlay CONSTANT FINAL)
- Q_PROPERTY(QFont font READ font WRITE setFont RESET resetFont NOTIFY fontChanged FINAL)
- Q_PROPERTY(QLocale locale READ locale WRITE setLocale RESET resetLocale NOTIFY localeChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged FINAL REVISION 3)
- Q_PROPERTY(QQuickItem *menuBar READ menuBar WRITE setMenuBar NOTIFY menuBarChanged FINAL REVISION 3)
- Q_CLASSINFO("DeferredPropertyNames", "background")
- Q_CLASSINFO("DefaultProperty", "contentData")
-
-public:
- explicit QQuickApplicationWindow(QWindow *parent = nullptr);
- ~QQuickApplicationWindow();
-
- static QQuickApplicationWindowAttached *qmlAttachedProperties(QObject *object);
-
- QQuickItem *background() const;
- void setBackground(QQuickItem *background);
-
- QQuickItem *contentItem() const;
-
- QQuickItem *activeFocusControl() const;
-
- QQuickItem *header() const;
- void setHeader(QQuickItem *header);
-
- QQuickItem *footer() const;
- void setFooter(QQuickItem *footer);
-
- QQuickOverlay *overlay() const;
-
- QFont font() const;
- void setFont(const QFont &font);
- void resetFont();
-
- QLocale locale() const;
- void setLocale(const QLocale &locale);
- void resetLocale();
-
- // 2.3 (Qt 5.10)
- QPalette palette() const;
- void setPalette(const QPalette &palette);
- void resetPalette();
-
- QQuickItem *menuBar() const;
- void setMenuBar(QQuickItem *menuBar);
-
-Q_SIGNALS:
- void backgroundChanged();
- void activeFocusControlChanged();
- void headerChanged();
- void footerChanged();
- void fontChanged();
- void localeChanged();
- Q_REVISION(3) void paletteChanged();
- Q_REVISION(3) void menuBarChanged();
-
-protected:
- bool isComponentComplete() const;
- void classBegin() override;
- void componentComplete() override;
- void resizeEvent(QResizeEvent *event) override;
-
-private:
- Q_DISABLE_COPY(QQuickApplicationWindow)
- Q_DECLARE_PRIVATE(QQuickApplicationWindow)
- Q_PRIVATE_SLOT(d_func(), void _q_updateActiveFocus())
- QScopedPointer<QQuickApplicationWindowPrivate> d_ptr;
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickApplicationWindowAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickApplicationWindow *window READ window NOTIFY windowChanged FINAL)
- Q_PROPERTY(QQuickItem *contentItem READ contentItem NOTIFY contentItemChanged FINAL)
- Q_PROPERTY(QQuickItem *activeFocusControl READ activeFocusControl NOTIFY activeFocusControlChanged FINAL)
- Q_PROPERTY(QQuickItem *header READ header NOTIFY headerChanged FINAL)
- Q_PROPERTY(QQuickItem *footer READ footer NOTIFY footerChanged FINAL)
- Q_PROPERTY(QQuickOverlay *overlay READ overlay NOTIFY overlayChanged FINAL)
- Q_PROPERTY(QQuickItem *menuBar READ menuBar NOTIFY menuBarChanged FINAL) // REVISION 3
-
-public:
- explicit QQuickApplicationWindowAttached(QObject *parent = nullptr);
-
- QQuickApplicationWindow *window() const;
- QQuickItem *contentItem() const;
- QQuickItem *activeFocusControl() const;
- QQuickItem *header() const;
- QQuickItem *footer() const;
- QQuickOverlay *overlay() const;
- QQuickItem *menuBar() const;
-
-Q_SIGNALS:
- void windowChanged();
- void contentItemChanged();
- void activeFocusControlChanged();
- void headerChanged();
- void footerChanged();
- void overlayChanged();
- // 2.3 (Qt 5.10)
- /*Q_REVISION(3)*/ void menuBarChanged();
-
-private:
- Q_DISABLE_COPY(QQuickApplicationWindowAttached)
- Q_DECLARE_PRIVATE(QQuickApplicationWindowAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickApplicationWindow)
-QML_DECLARE_TYPEINFO(QQuickApplicationWindow, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKAPPLICATIONWINDOW_P_H
diff --git a/src/quicktemplates2/qquickbusyindicator.cpp b/src/quicktemplates2/qquickbusyindicator.cpp
deleted file mode 100644
index eea8eadb..00000000
--- a/src/quicktemplates2/qquickbusyindicator.cpp
+++ /dev/null
@@ -1,130 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickbusyindicator_p.h"
-#include "qquickcontrol_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype BusyIndicator
- \inherits Control
- \instantiates QQuickBusyIndicator
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-indicators
- \brief Indicates background activity, for example, while content is being loaded.
-
- \image qtquickcontrols2-busyindicator.gif
-
- The busy indicator should be used to indicate activity while content is
- being loaded or the UI is blocked waiting for a resource to become available.
-
- The following snippet shows how to use the BusyIndicator:
-
- \qml
- BusyIndicator {
- running: image.status === Image.Loading
- }
- \endqml
-
- BusyIndicator is similar to an indeterminate \l ProgressBar. Both can be
- used to indicate background activity. The main difference is visual, and
- that ProgressBar can also present a concrete amount of progress (when it
- can be determined). Due to the visual difference, busy indicators and
- indeterminate progress bars fit different places in user interfaces.
- Typical places for a busy indicator:
- \list
- \li in the corner of a \l ToolBar
- \li as an overlay on top of a \l Page
- \li on the side of an \l ItemDelegate
- \endlist
-
- \sa {Customizing BusyIndicator}, {Indicator Controls}, ProgressBar
-*/
-
-class QQuickBusyIndicatorPrivate : public QQuickControlPrivate
-{
-public:
- bool running = true;
-};
-
-QQuickBusyIndicator::QQuickBusyIndicator(QQuickItem *parent)
- : QQuickControl(*(new QQuickBusyIndicatorPrivate), parent)
-{
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::BusyIndicator::running
-
- This property holds whether the busy indicator is currently indicating
- activity.
-
- \note The indicator is only visible when this property is set to \c true.
-
- The default value is \c true.
-*/
-bool QQuickBusyIndicator::isRunning() const
-{
- Q_D(const QQuickBusyIndicator);
- return d->running;
-}
-
-void QQuickBusyIndicator::setRunning(bool running)
-{
- Q_D(QQuickBusyIndicator);
- if (d->running == running)
- return;
-
- d->running = running;
- emit runningChanged();
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickBusyIndicator::touchEvent(QTouchEvent *event)
-{
- event->ignore(); // QTBUG-61785
-}
-#endif
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickBusyIndicator::accessibleRole() const
-{
- return QAccessible::Indicator;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickbusyindicator_p.h b/src/quicktemplates2/qquickbusyindicator_p.h
deleted file mode 100644
index f140764b..00000000
--- a/src/quicktemplates2/qquickbusyindicator_p.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKBUSYINDICATOR_P_H
-#define QQUICKBUSYINDICATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickBusyIndicatorPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickBusyIndicator : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(bool running READ isRunning WRITE setRunning NOTIFY runningChanged FINAL)
-
-public:
- explicit QQuickBusyIndicator(QQuickItem *parent = nullptr);
-
- bool isRunning() const;
- void setRunning(bool running);
-
-Q_SIGNALS:
- void runningChanged();
-
-protected:
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickBusyIndicator)
- Q_DECLARE_PRIVATE(QQuickBusyIndicator)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickBusyIndicator)
-
-#endif // QQUICKBUSYINDICATOR_P_H
diff --git a/src/quicktemplates2/qquickbutton.cpp b/src/quicktemplates2/qquickbutton.cpp
deleted file mode 100644
index b4188a95..00000000
--- a/src/quicktemplates2/qquickbutton.cpp
+++ /dev/null
@@ -1,162 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickbutton_p.h"
-#include "qquickbutton_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Button
- \inherits AbstractButton
- \instantiates QQuickButton
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-buttons
- \brief Push-button that can be clicked to perform a command or answer a question.
-
- \image qtquickcontrols2-button.gif
-
- Button presents a push-button control that can be pushed or clicked by
- the user. Buttons are normally used to perform an action, or to answer
- a question. Typical buttons are \e OK, \e Apply, \e Cancel, \e Close,
- \e Yes, \e No, and \e Help.
-
- Button inherits its API from AbstractButton. For instance, you can set
- \l {AbstractButton::text}{text}, display an \l {Icons in Qt Quick Controls}{icon},
- and react to \l {AbstractButton::clicked}{clicks} using the AbstractButton API.
-
- A button emits the signal \l {AbstractButton::}{clicked()} when it is activated by the user.
- Connect to this signal to perform the button's action. Buttons also
- provide the signals \l {AbstractButton::}{canceled()}, \l {AbstractButton::}{doubleClicked()}, \l {AbstractButton::}{pressed()},
- \l {AbstractButton::}{released()} and \l {AbstractButton::}{pressAndHold()} for long presses.
-
- See the snippet below on how to connect to the button's signals.
-
- \code
- RowLayout {
- Button {
- text: "Ok"
- onClicked: model.submit()
- }
- Button {
- text: "Cancel"
- onClicked: model.revert()
- }
- }
- \endcode
-
- \sa {Customizing Button}, {Button Controls}
-*/
-
-QQuickButton::QQuickButton(QQuickItem *parent)
- : QQuickAbstractButton(*(new QQuickButtonPrivate), parent)
-{
-}
-
-QQuickButton::QQuickButton(QQuickButtonPrivate &dd, QQuickItem *parent)
- : QQuickAbstractButton(dd, parent)
-{
-}
-
-QFont QQuickButton::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::Button);
-}
-
-QPalette QQuickButton::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::Button);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Button::highlighted
-
- This property holds whether the button is highlighted.
-
- \image qtquickcontrols2-button-highlighted.gif
-
- A button can be highlighted in order to draw the user's attention towards
- it. It has no effect on keyboard interaction.
-
- The default value is \c false.
-*/
-bool QQuickButton::isHighlighted() const
-{
- Q_D(const QQuickButton);
- return d->highlighted;
-}
-
-void QQuickButton::setHighlighted(bool highlighted)
-{
- Q_D(QQuickButton);
- if (highlighted == d->highlighted)
- return;
-
- d->highlighted = highlighted;
- emit highlightedChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Button::flat
-
- This property holds whether the button is flat.
-
- \image qtquickcontrols2-button-flat.gif
-
- A flat button typically does not draw a background unless it is pressed or checked.
-
- The default value is \c false.
-*/
-bool QQuickButton::isFlat() const
-{
- Q_D(const QQuickButton);
- return d->flat;
-}
-
-void QQuickButton::setFlat(bool flat)
-{
- Q_D(QQuickButton);
- if (flat == d->flat)
- return;
-
- d->flat = flat;
- emit flatChanged();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickbutton_p.h b/src/quicktemplates2/qquickbutton_p.h
deleted file mode 100644
index a77db16e..00000000
--- a/src/quicktemplates2/qquickbutton_p.h
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKBUTTON_P_H
-#define QQUICKBUTTON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickButtonPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickButton : public QQuickAbstractButton
-{
- Q_OBJECT
- Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL)
- Q_PROPERTY(bool flat READ isFlat WRITE setFlat NOTIFY flatChanged FINAL)
-
-public:
- explicit QQuickButton(QQuickItem *parent = nullptr);
-
- bool isHighlighted() const;
- void setHighlighted(bool highlighted);
-
- bool isFlat() const;
- void setFlat(bool flat);
-
-Q_SIGNALS:
- void highlightedChanged();
- void flatChanged();
-
-protected:
- QQuickButton(QQuickButtonPrivate &dd, QQuickItem *parent);
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-private:
- Q_DISABLE_COPY(QQuickButton)
- Q_DECLARE_PRIVATE(QQuickButton)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickButton)
-
-#endif // QQUICKBUTTON_P_H
diff --git a/src/quicktemplates2/qquickbutton_p_p.h b/src/quicktemplates2/qquickbutton_p_p.h
deleted file mode 100644
index 1d02e2ea..00000000
--- a/src/quicktemplates2/qquickbutton_p_p.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKBUTTON_P_P_H
-#define QQUICKBUTTON_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickButtonPrivate : public QQuickAbstractButtonPrivate
-{
- Q_DECLARE_PUBLIC(QQuickButton)
-
-public:
- bool flat = false;
- bool highlighted = false;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKBUTTON_P_P_H
diff --git a/src/quicktemplates2/qquickbuttongroup.cpp b/src/quicktemplates2/qquickbuttongroup.cpp
deleted file mode 100644
index cddfb199..00000000
--- a/src/quicktemplates2/qquickbuttongroup.cpp
+++ /dev/null
@@ -1,547 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickbuttongroup_p.h"
-
-#include <QtCore/private/qobject_p.h>
-#include <QtCore/qmetaobject.h>
-#include <QtCore/qvariant.h>
-#include <QtQml/qqmlinfo.h>
-
-#include "qquickabstractbutton_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ButtonGroup
- \inherits QtObject
- \instantiates QQuickButtonGroup
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup utilities
- \brief Mutually-exclusive group of checkable buttons.
-
- ButtonGroup is a non-visual, mutually exclusive group of buttons.
- It is used with controls such as RadioButton, where only one of the options
- can be selected at a time.
-
- The most straight-forward way to use ButtonGroup is to assign
- a list of buttons. For example, the list of children of a
- \l{Item Positioners}{positioner} or a \l{Qt Quick Layouts}{layout}
- that manages a group of mutually exclusive buttons.
-
- \code
- ButtonGroup {
- buttons: column.children
- }
-
- Column {
- id: column
-
- RadioButton {
- checked: true
- text: qsTr("DAB")
- }
-
- RadioButton {
- text: qsTr("FM")
- }
-
- RadioButton {
- text: qsTr("AM")
- }
- }
- \endcode
-
- Mutually exclusive buttons do not always share the same parent item,
- or the parent layout may sometimes contain items that should not be
- included in the button group. Such cases are best handled using
- the \l group attached property.
-
- \code
- ButtonGroup { id: radioGroup }
-
- Column {
- Label {
- text: qsTr("Radio:")
- }
-
- RadioButton {
- checked: true
- text: qsTr("DAB")
- ButtonGroup.group: radioGroup
- }
-
- RadioButton {
- text: qsTr("FM")
- ButtonGroup.group: radioGroup
- }
-
- RadioButton {
- text: qsTr("AM")
- ButtonGroup.group: radioGroup
- }
- }
- \endcode
-
- More advanced use cases can be handled using the \c addButton() and
- \c removeButton() methods.
-
- \sa RadioButton, {Button Controls}
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::ButtonGroup::clicked(AbstractButton button)
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This signal is emitted when a \a button in the group has been clicked.
-
- This signal is convenient for implementing a common signal handler for
- all buttons in the same group.
-
- \code
- ButtonGroup {
- buttons: column.children
- onClicked: console.log("clicked:", button.text)
- }
-
- Column {
- id: column
- Button { text: "First" }
- Button { text: "Second" }
- Button { text: "Third" }
- }
- \endcode
-
- \sa AbstractButton::clicked()
-*/
-
-class QQuickButtonGroupPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickButtonGroup)
-
-public:
- void clear();
- void buttonClicked();
- void _q_updateCurrent();
- void updateCheckState();
- void setCheckState(Qt::CheckState state);
-
- static void buttons_append(QQmlListProperty<QQuickAbstractButton> *prop, QQuickAbstractButton *obj);
- static int buttons_count(QQmlListProperty<QQuickAbstractButton> *prop);
- static QQuickAbstractButton *buttons_at(QQmlListProperty<QQuickAbstractButton> *prop, int index);
- static void buttons_clear(QQmlListProperty<QQuickAbstractButton> *prop);
-
- bool complete = true;
- bool exclusive = true;
- bool settingCheckState = false;
- Qt::CheckState checkState = Qt::Unchecked;
- QPointer<QQuickAbstractButton> checkedButton;
- QVector<QQuickAbstractButton*> buttons;
-};
-
-void QQuickButtonGroupPrivate::clear()
-{
- for (QQuickAbstractButton *button : qAsConst(buttons)) {
- QQuickAbstractButtonPrivate::get(button)->group = nullptr;
- QObjectPrivate::disconnect(button, &QQuickAbstractButton::clicked, this, &QQuickButtonGroupPrivate::buttonClicked);
- QObjectPrivate::disconnect(button, &QQuickAbstractButton::checkedChanged, this, &QQuickButtonGroupPrivate::_q_updateCurrent);
- }
- buttons.clear();
-}
-
-void QQuickButtonGroupPrivate::buttonClicked()
-{
- Q_Q(QQuickButtonGroup);
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton*>(q->sender());
- if (button)
- emit q->clicked(button);
-}
-
-void QQuickButtonGroupPrivate::_q_updateCurrent()
-{
- Q_Q(QQuickButtonGroup);
- if (exclusive) {
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton*>(q->sender());
- if (button && button->isChecked())
- q->setCheckedButton(button);
- else if (!buttons.contains(checkedButton))
- q->setCheckedButton(nullptr);
- }
- updateCheckState();
-}
-
-void QQuickButtonGroupPrivate::updateCheckState()
-{
- if (!complete || settingCheckState)
- return;
-
- bool anyChecked = false;
- bool allChecked = !buttons.isEmpty();
- for (QQuickAbstractButton *button : qAsConst(buttons)) {
- const bool isChecked = button->isChecked();
- anyChecked |= isChecked;
- allChecked &= isChecked;
- }
- setCheckState(Qt::CheckState(anyChecked + allChecked));
-}
-
-void QQuickButtonGroupPrivate::setCheckState(Qt::CheckState state)
-{
- Q_Q(QQuickButtonGroup);
- if (checkState == state)
- return;
-
- checkState = state;
- emit q->checkStateChanged();
-}
-
-void QQuickButtonGroupPrivate::buttons_append(QQmlListProperty<QQuickAbstractButton> *prop, QQuickAbstractButton *obj)
-{
- QQuickButtonGroup *q = static_cast<QQuickButtonGroup *>(prop->object);
- q->addButton(obj);
-}
-
-int QQuickButtonGroupPrivate::buttons_count(QQmlListProperty<QQuickAbstractButton> *prop)
-{
- QQuickButtonGroupPrivate *p = static_cast<QQuickButtonGroupPrivate *>(prop->data);
- return p->buttons.count();
-}
-
-QQuickAbstractButton *QQuickButtonGroupPrivate::buttons_at(QQmlListProperty<QQuickAbstractButton> *prop, int index)
-{
- QQuickButtonGroupPrivate *p = static_cast<QQuickButtonGroupPrivate *>(prop->data);
- return p->buttons.value(index);
-}
-
-void QQuickButtonGroupPrivate::buttons_clear(QQmlListProperty<QQuickAbstractButton> *prop)
-{
- QQuickButtonGroupPrivate *p = static_cast<QQuickButtonGroupPrivate *>(prop->data);
- if (!p->buttons.isEmpty()) {
- p->clear();
- QQuickButtonGroup *q = static_cast<QQuickButtonGroup *>(prop->object);
- // QTBUG-52358: don't clear the checked button immediately
- QMetaObject::invokeMethod(q, "_q_updateCurrent", Qt::QueuedConnection);
- emit q->buttonsChanged();
- }
-}
-
-QQuickButtonGroup::QQuickButtonGroup(QObject *parent)
- : QObject(*(new QQuickButtonGroupPrivate), parent)
-{
-}
-
-QQuickButtonGroup::~QQuickButtonGroup()
-{
- Q_D(QQuickButtonGroup);
- d->clear();
-}
-
-QQuickButtonGroupAttached *QQuickButtonGroup::qmlAttachedProperties(QObject *object)
-{
- return new QQuickButtonGroupAttached(object);
-}
-
-/*!
- \qmlproperty AbstractButton QtQuick.Controls::ButtonGroup::checkedButton
-
- This property holds the currently selected button in an exclusive group,
- or \c null if there is none or the group is non-exclusive.
-
- By default, it is the first checked button added to an exclusive button group.
-
- \sa exclusive
-*/
-QQuickAbstractButton *QQuickButtonGroup::checkedButton() const
-{
- Q_D(const QQuickButtonGroup);
- return d->checkedButton;
-}
-
-void QQuickButtonGroup::setCheckedButton(QQuickAbstractButton *checkedButton)
-{
- Q_D(QQuickButtonGroup);
- if (d->checkedButton == checkedButton)
- return;
-
- if (d->checkedButton)
- d->checkedButton->setChecked(false);
- d->checkedButton = checkedButton;
- if (checkedButton)
- checkedButton->setChecked(true);
- emit checkedButtonChanged();
-}
-
-/*!
- \qmlproperty list<AbstractButton> QtQuick.Controls::ButtonGroup::buttons
- \default
-
- This property holds the list of buttons.
-
- \code
- ButtonGroup {
- buttons: column.children
- }
-
- Column {
- id: column
-
- RadioButton {
- checked: true
- text: qsTr("Option A")
- }
-
- RadioButton {
- text: qsTr("Option B")
- }
- }
- \endcode
-
- \sa group
-*/
-QQmlListProperty<QQuickAbstractButton> QQuickButtonGroup::buttons()
-{
- Q_D(QQuickButtonGroup);
- return QQmlListProperty<QQuickAbstractButton>(this, d,
- QQuickButtonGroupPrivate::buttons_append,
- QQuickButtonGroupPrivate::buttons_count,
- QQuickButtonGroupPrivate::buttons_at,
- QQuickButtonGroupPrivate::buttons_clear);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::ButtonGroup::exclusive
-
- This property holds whether the button group is exclusive. The default value is \c true.
-
- If this property is \c true, then only one button in the group can be checked at any given time.
- The user can click on any button to check it, and that button will replace the existing one as
- the checked button in the group.
-
- In an exclusive group, the user cannot uncheck the currently checked button by clicking on it;
- instead, another button in the group must be clicked to set the new checked button for that group.
-
- In a non-exclusive group, checking and unchecking buttons does not affect the other buttons in
- the group. Furthermore, the value of the \l checkedButton property is \c null.
-*/
-bool QQuickButtonGroup::isExclusive() const
-{
- Q_D(const QQuickButtonGroup);
- return d->exclusive;
-}
-
-void QQuickButtonGroup::setExclusive(bool exclusive)
-{
- Q_D(QQuickButtonGroup);
- if (d->exclusive == exclusive)
- return;
-
- d->exclusive = exclusive;
- emit exclusiveChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty enumeration QtQuick.Controls::ButtonGroup::checkState
-
- This property holds the combined check state of the button group.
-
- Available states:
- \value Qt.Unchecked None of the buttons are checked.
- \value Qt.PartiallyChecked Some of the buttons are checked.
- \value Qt.Checked All of the buttons are checked.
-
- Setting the check state of a non-exclusive button group to \c Qt.Unchecked
- or \c Qt.Checked unchecks or checks all buttons in the group, respectively.
- \c Qt.PartiallyChecked is ignored.
-
- Setting the check state of an exclusive button group to \c Qt.Unchecked
- unchecks the \l checkedButton. \c Qt.Checked and \c Qt.PartiallyChecked
- are ignored.
-*/
-Qt::CheckState QQuickButtonGroup::checkState() const
-{
- Q_D(const QQuickButtonGroup);
- return d->checkState;
-}
-
-void QQuickButtonGroup::setCheckState(Qt::CheckState state)
-{
- Q_D(QQuickButtonGroup);
- if (d->checkState == state || state == Qt::PartiallyChecked)
- return;
-
- d->settingCheckState = true;
- if (d->exclusive) {
- if (d->checkedButton && state == Qt::Unchecked)
- setCheckedButton(nullptr);
- } else {
- for (QQuickAbstractButton *button : qAsConst(d->buttons))
- button->setChecked(state == Qt::Checked);
- }
- d->settingCheckState = false;
- d->setCheckState(state);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::ButtonGroup::addButton(AbstractButton button)
-
- Adds a \a button to the button group.
-
- \note Manually adding objects to a button group is typically unnecessary.
- The \l buttons property and the \l group attached property provide a
- convenient and declarative syntax.
-
- \sa buttons, group
-*/
-void QQuickButtonGroup::addButton(QQuickAbstractButton *button)
-{
- Q_D(QQuickButtonGroup);
- if (!button || d->buttons.contains(button))
- return;
-
- QQuickAbstractButtonPrivate::get(button)->group = this;
- QObjectPrivate::connect(button, &QQuickAbstractButton::clicked, d, &QQuickButtonGroupPrivate::buttonClicked);
- QObjectPrivate::connect(button, &QQuickAbstractButton::checkedChanged, d, &QQuickButtonGroupPrivate::_q_updateCurrent);
-
- if (d->exclusive && button->isChecked())
- setCheckedButton(button);
-
- d->buttons.append(button);
- d->updateCheckState();
- emit buttonsChanged();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::ButtonGroup::removeButton(AbstractButton button)
-
- Removes a \a button from the button group.
-
- \note Manually removing objects from a button group is typically unnecessary.
- The \l buttons property and the \l group attached property provide a
- convenient and declarative syntax.
-
- \sa buttons, group
-*/
-void QQuickButtonGroup::removeButton(QQuickAbstractButton *button)
-{
- Q_D(QQuickButtonGroup);
- if (!button || !d->buttons.contains(button))
- return;
-
- QQuickAbstractButtonPrivate::get(button)->group = nullptr;
- QObjectPrivate::disconnect(button, &QQuickAbstractButton::clicked, d, &QQuickButtonGroupPrivate::buttonClicked);
- QObjectPrivate::disconnect(button, &QQuickAbstractButton::checkedChanged, d, &QQuickButtonGroupPrivate::_q_updateCurrent);
-
- if (d->checkedButton == button)
- setCheckedButton(nullptr);
-
- d->buttons.removeOne(button);
- d->updateCheckState();
- emit buttonsChanged();
-}
-
-void QQuickButtonGroup::classBegin()
-{
- Q_D(QQuickButtonGroup);
- d->complete = false;
-}
-
-void QQuickButtonGroup::componentComplete()
-{
- Q_D(QQuickButtonGroup);
- d->complete = true;
- if (!d->buttons.isEmpty())
- d->updateCheckState();
-}
-
-class QQuickButtonGroupAttachedPrivate : public QObjectPrivate
-{
-public:
- QQuickButtonGroup *group = nullptr;
-};
-
-QQuickButtonGroupAttached::QQuickButtonGroupAttached(QObject *parent)
- : QObject(*(new QQuickButtonGroupAttachedPrivate), parent)
-{
-}
-
-/*!
- \qmlattachedproperty ButtonGroup QtQuick.Controls::ButtonGroup::group
-
- This property attaches a button to a button group.
-
- \code
- ButtonGroup { id: group }
-
- RadioButton {
- checked: true
- text: qsTr("Option A")
- ButtonGroup.group: group
- }
-
- RadioButton {
- text: qsTr("Option B")
- ButtonGroup.group: group
- }
- \endcode
-
- \sa buttons
-*/
-QQuickButtonGroup *QQuickButtonGroupAttached::group() const
-{
- Q_D(const QQuickButtonGroupAttached);
- return d->group;
-}
-
-void QQuickButtonGroupAttached::setGroup(QQuickButtonGroup *group)
-{
- Q_D(QQuickButtonGroupAttached);
- if (d->group == group)
- return;
-
- if (d->group)
- d->group->removeButton(qobject_cast<QQuickAbstractButton*>(parent()));
- d->group = group;
- if (group)
- group->addButton(qobject_cast<QQuickAbstractButton*>(parent()));
- emit groupChanged();
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquickbuttongroup_p.cpp"
diff --git a/src/quicktemplates2/qquickbuttongroup_p.h b/src/quicktemplates2/qquickbuttongroup_p.h
deleted file mode 100644
index 84ddd225..00000000
--- a/src/quicktemplates2/qquickbuttongroup_p.h
+++ /dev/null
@@ -1,141 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKBUTTONGROUP_P_H
-#define QQUICKBUTTONGROUP_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtQml/qqml.h>
-#include <QtQml/qqmlparserstatus.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAbstractButton;
-class QQuickButtonGroupPrivate;
-class QQuickButtonGroupAttached;
-class QQuickButtonGroupAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickButtonGroup : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_PROPERTY(QQuickAbstractButton *checkedButton READ checkedButton WRITE setCheckedButton NOTIFY checkedButtonChanged FINAL)
- Q_PROPERTY(QQmlListProperty<QQuickAbstractButton> buttons READ buttons NOTIFY buttonsChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool exclusive READ isExclusive WRITE setExclusive NOTIFY exclusiveChanged FINAL REVISION 3)
- // 2.4 (Qt 5.11)
- Q_PROPERTY(Qt::CheckState checkState READ checkState WRITE setCheckState NOTIFY checkStateChanged FINAL REVISION 4)
- Q_INTERFACES(QQmlParserStatus)
-
-public:
- explicit QQuickButtonGroup(QObject *parent = nullptr);
- ~QQuickButtonGroup();
-
- static QQuickButtonGroupAttached *qmlAttachedProperties(QObject *object);
-
- QQuickAbstractButton *checkedButton() const;
- void setCheckedButton(QQuickAbstractButton *checkedButton);
-
- QQmlListProperty<QQuickAbstractButton> buttons();
-
- bool isExclusive() const;
- void setExclusive(bool exclusive);
-
- // 2.4 (Qt 5.11)
- Qt::CheckState checkState() const;
- void setCheckState(Qt::CheckState state);
-
-public Q_SLOTS:
- void addButton(QQuickAbstractButton *button);
- void removeButton(QQuickAbstractButton *button);
-
-Q_SIGNALS:
- void checkedButtonChanged();
- void buttonsChanged();
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void clicked(QQuickAbstractButton *button);
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void exclusiveChanged();
- // 2.4 (Qt 5.11)
- Q_REVISION(4) void checkStateChanged();
-
-protected:
- void classBegin() override;
- void componentComplete() override;
-
-private:
- Q_DISABLE_COPY(QQuickButtonGroup)
- Q_DECLARE_PRIVATE(QQuickButtonGroup)
-
- Q_PRIVATE_SLOT(d_func(), void _q_updateCurrent())
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickButtonGroupAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickButtonGroup *group READ group WRITE setGroup NOTIFY groupChanged FINAL)
-
-public:
- explicit QQuickButtonGroupAttached(QObject *parent = nullptr);
-
- QQuickButtonGroup *group() const;
- void setGroup(QQuickButtonGroup *group);
-
-Q_SIGNALS:
- void groupChanged();
-
-private:
- Q_DISABLE_COPY(QQuickButtonGroupAttached)
- Q_DECLARE_PRIVATE(QQuickButtonGroupAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickButtonGroup)
-QML_DECLARE_TYPEINFO(QQuickButtonGroup, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKBUTTONGROUP_P_H
diff --git a/src/quicktemplates2/qquickcheckbox.cpp b/src/quicktemplates2/qquickcheckbox.cpp
deleted file mode 100644
index 0227e95d..00000000
--- a/src/quicktemplates2/qquickcheckbox.cpp
+++ /dev/null
@@ -1,248 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickcheckbox_p.h"
-#include "qquickabstractbutton_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQml/qjsvalue.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype CheckBox
- \inherits AbstractButton
- \instantiates QQuickCheckBox
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-buttons
- \brief Check button that can be toggled on or off.
-
- \image qtquickcontrols2-checkbox.gif
-
- CheckBox presents an option button that can be toggled on (checked) or
- off (unchecked). Check boxes are typically used to select one or more
- options from a set of options. For larger sets of options, such as those
- in a list, consider using \l CheckDelegate instead.
-
- CheckBox inherits its API from \l AbstractButton. For instance, the
- state of the checkbox can be set with the \l {AbstractButton::}{checked} property.
-
- In addition to the checked and unchecked states, there is a third state:
- partially checked. The partially checked state can be enabled using the
- \l tristate property. This state indicates that the regular checked/unchecked
- state can not be determined; generally because of other states that affect
- the checkbox. This state is useful when several child nodes are selected
- in a treeview, for example.
-
- \code
- ColumnLayout {
- CheckBox {
- checked: true
- text: qsTr("First")
- }
- CheckBox {
- text: qsTr("Second")
- }
- CheckBox {
- checked: true
- text: qsTr("Third")
- }
- }
- \endcode
-
- Hierarchical checkbox groups can be managed with a non-exclusive
- \l ButtonGroup.
-
- \image qtquickcontrols2-checkbox-group.png
-
- The following example illustrates how the combined check state of
- children can be bound to the check state of the parent checkbox:
-
- \snippet qtquickcontrols2-checkbox-group.qml 1
-
- \sa {Customizing CheckBox}, ButtonGroup, {Button Controls}
-*/
-
-class QQuickCheckBoxPrivate : public QQuickAbstractButtonPrivate
-{
- Q_DECLARE_PUBLIC(QQuickCheckBox)
-
-public:
- void setNextCheckState(const QJSValue &callback);
-
- bool tristate = false;
- Qt::CheckState checkState = Qt::Unchecked;
- QJSValue nextCheckState;
-};
-
-void QQuickCheckBoxPrivate::setNextCheckState(const QJSValue &callback)
-{
- Q_Q(QQuickCheckBox);
- nextCheckState = callback;
- emit q->nextCheckStateChanged();
-}
-
-QQuickCheckBox::QQuickCheckBox(QQuickItem *parent)
- : QQuickAbstractButton(*(new QQuickCheckBoxPrivate), parent)
-{
- setCheckable(true);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::CheckBox::tristate
-
- This property holds whether the checkbox is a tri-state checkbox.
-
- In the animation below, the first checkbox is tri-state:
-
- \image qtquickcontrols2-checkbox-tristate.gif
-
- The default is \c false, i.e., the checkbox has only two states.
-*/
-bool QQuickCheckBox::isTristate() const
-{
- Q_D(const QQuickCheckBox);
- return d->tristate;
-}
-
-void QQuickCheckBox::setTristate(bool tristate)
-{
- Q_D(QQuickCheckBox);
- if (d->tristate == tristate)
- return;
-
- d->tristate = tristate;
- emit tristateChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::CheckBox::checkState
-
- This property holds the check state of the checkbox.
-
- Available states:
- \value Qt.Unchecked The checkbox is unchecked.
- \value Qt.PartiallyChecked The checkbox is partially checked. This state is only used when \l tristate is enabled.
- \value Qt.Checked The checkbox is checked.
-
- \sa tristate, {AbstractButton::checked}{checked}
-*/
-Qt::CheckState QQuickCheckBox::checkState() const
-{
- Q_D(const QQuickCheckBox);
- return d->checkState;
-}
-
-void QQuickCheckBox::setCheckState(Qt::CheckState state)
-{
- Q_D(QQuickCheckBox);
- if (d->checkState == state)
- return;
-
- bool wasChecked = isChecked();
- d->checked = state == Qt::Checked;
- d->checkState = state;
- emit checkStateChanged();
- if (d->checked != wasChecked)
- emit checkedChanged();
-}
-
-QFont QQuickCheckBox::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::CheckBox);
-}
-
-QPalette QQuickCheckBox::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::CheckBox);
-}
-
-void QQuickCheckBox::buttonChange(ButtonChange change)
-{
- if (change == ButtonCheckedChange)
- setCheckState(isChecked() ? Qt::Checked : Qt::Unchecked);
- else
- QQuickAbstractButton::buttonChange(change);
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty function QtQuick.Controls::CheckBox::nextCheckState
-
- This property holds a callback function that is called to determine
- the next check state whenever the checkbox is interactively toggled
- by the user via touch, mouse, or keyboard.
-
- By default, a normal checkbox cycles between \c Qt.Unchecked and
- \c Qt.Checked states, and a tri-state checkbox cycles between
- \c Qt.Unchecked, \c Qt.PartiallyChecked, and \c Qt.Checked states.
-
- The \c nextCheckState callback function can override the default behavior.
- The following example implements a tri-state checkbox that can present
- a partially checked state depending on external conditions, but never
- cycles to the partially checked state when interactively toggled by
- the user.
-
- \code
- CheckBox {
- tristate: true
- checkState: allChildrenChecked ? Qt.Checked :
- anyChildChecked ? Qt.PartiallyChecked : Qt.Unchecked
-
- nextCheckState: function() {
- if (checkState === Qt.Checked)
- return Qt.Unchecked
- else
- return Qt.Checked
- }
- }
- \endcode
-*/
-void QQuickCheckBox::nextCheckState()
-{
- Q_D(QQuickCheckBox);
- if (d->nextCheckState.isCallable())
- setCheckState(static_cast<Qt::CheckState>(d->nextCheckState.call().toInt()));
- else if (d->tristate)
- setCheckState(static_cast<Qt::CheckState>((d->checkState + 1) % 3));
- else
- QQuickAbstractButton::nextCheckState();
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquickcheckbox_p.cpp"
diff --git a/src/quicktemplates2/qquickcheckbox_p.h b/src/quicktemplates2/qquickcheckbox_p.h
deleted file mode 100644
index f0293c11..00000000
--- a/src/quicktemplates2/qquickcheckbox_p.h
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCHECKBOX_P_H
-#define QQUICKCHECKBOX_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickCheckBoxPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickCheckBox : public QQuickAbstractButton
-{
- Q_OBJECT
- Q_PROPERTY(bool tristate READ isTristate WRITE setTristate NOTIFY tristateChanged FINAL)
- Q_PROPERTY(Qt::CheckState checkState READ checkState WRITE setCheckState NOTIFY checkStateChanged FINAL)
- // 2.4 (Qt 5.11)
- Q_PRIVATE_PROPERTY(QQuickCheckBox::d_func(), QJSValue nextCheckState MEMBER nextCheckState WRITE setNextCheckState NOTIFY nextCheckStateChanged FINAL REVISION 4)
-
-public:
- explicit QQuickCheckBox(QQuickItem *parent = nullptr);
-
- bool isTristate() const;
- void setTristate(bool tristate);
-
- Qt::CheckState checkState() const;
- void setCheckState(Qt::CheckState state);
-
-Q_SIGNALS:
- void tristateChanged();
- void checkStateChanged();
- // 2.4 (Qt 5.11)
- Q_REVISION(4) void nextCheckStateChanged();
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
- void buttonChange(ButtonChange change) override;
- void nextCheckState() override;
-
-private:
- Q_DISABLE_COPY(QQuickCheckBox)
- Q_DECLARE_PRIVATE(QQuickCheckBox)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickCheckBox)
-
-#endif // QQUICKCHECKBOX_P_H
diff --git a/src/quicktemplates2/qquickcheckdelegate.cpp b/src/quicktemplates2/qquickcheckdelegate.cpp
deleted file mode 100644
index 17f1f0b2..00000000
--- a/src/quicktemplates2/qquickcheckdelegate.cpp
+++ /dev/null
@@ -1,242 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickcheckdelegate_p.h"
-#include "qquickitemdelegate_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQml/qjsvalue.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype CheckDelegate
- \inherits ItemDelegate
- \instantiates QQuickCheckDelegate
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-delegates
- \brief Item delegate with a check indicator that can be toggled on or off.
-
- \image qtquickcontrols2-checkdelegate.gif
-
- CheckDelegate presents an item delegate that can be toggled on (checked) or
- off (unchecked). Check delegates are typically used to select one or more
- options from a set of options in a list. For smaller sets of options, or
- for options that need to be uniquely identifiable, consider using
- \l CheckBox instead.
-
- CheckDelegate inherits its API from \l ItemDelegate, which is inherited
- from AbstractButton. For instance, you can set \l {AbstractButton::text}{text},
- and react to \l {AbstractButton::clicked}{clicks} using the AbstractButton
- API. The state of the check delegate can be set with the
- \l {AbstractButton::}{checked} property.
-
- In addition to the checked and unchecked states, there is a third state:
- partially checked. The partially checked state can be enabled using the
- \l tristate property. This state indicates that the regular checked/unchecked
- state can not be determined; generally because of other states that affect
- the check delegate. This state is useful when several child nodes are selected
- in a treeview, for example.
-
- \code
- ListView {
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: CheckDelegate {
- text: modelData
- }
- }
- \endcode
-
- \sa {Customizing CheckDelegate}, {Delegate Controls}, CheckBox
-*/
-
-class QQuickCheckDelegatePrivate : public QQuickItemDelegatePrivate
-{
- Q_DECLARE_PUBLIC(QQuickCheckDelegate)
-
-public:
- void setNextCheckState(const QJSValue &callback);
-
- bool tristate = false;
- Qt::CheckState checkState = Qt::Unchecked;
- QJSValue nextCheckState;
-};
-
-void QQuickCheckDelegatePrivate::setNextCheckState(const QJSValue &callback)
-{
- Q_Q(QQuickCheckDelegate);
- nextCheckState = callback;
- emit q->nextCheckStateChanged();
-}
-
-QQuickCheckDelegate::QQuickCheckDelegate(QQuickItem *parent)
- : QQuickItemDelegate(*(new QQuickCheckDelegatePrivate), parent)
-{
- setCheckable(true);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::CheckDelegate::tristate
-
- This property determines whether the check delegate has three states.
-
- In the animation below, the first checkdelegate is tri-state:
-
- \image qtquickcontrols2-checkdelegate-tristate.gif
-
- The default is \c false, i.e., the delegate has only two states.
-*/
-bool QQuickCheckDelegate::isTristate() const
-{
- Q_D(const QQuickCheckDelegate);
- return d->tristate;
-}
-
-void QQuickCheckDelegate::setTristate(bool tristate)
-{
- Q_D(QQuickCheckDelegate);
- if (d->tristate == tristate)
- return;
-
- d->tristate = tristate;
- emit tristateChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::CheckDelegate::checkState
-
- This property determines the check state of the check delegate.
-
- Available states:
- \value Qt.Unchecked The delegate is unchecked.
- \value Qt.PartiallyChecked The delegate is partially checked. This state is only used when \l tristate is enabled.
- \value Qt.Checked The delegate is checked.
-
- \sa tristate, {AbstractButton::checked}{checked}
-*/
-Qt::CheckState QQuickCheckDelegate::checkState() const
-{
- Q_D(const QQuickCheckDelegate);
- return d->checkState;
-}
-
-void QQuickCheckDelegate::setCheckState(Qt::CheckState state)
-{
- Q_D(QQuickCheckDelegate);
- if (d->checkState == state)
- return;
-
- bool wasChecked = isChecked();
- d->checked = state == Qt::Checked;
- d->checkState = state;
- emit checkStateChanged();
- if (d->checked != wasChecked)
- emit checkedChanged();
-}
-
-QFont QQuickCheckDelegate::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ListView);
-}
-
-QPalette QQuickCheckDelegate::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ListView);
-}
-
-void QQuickCheckDelegate::buttonChange(ButtonChange change)
-{
- if (change == ButtonCheckedChange)
- setCheckState(isChecked() ? Qt::Checked : Qt::Unchecked);
- else
- QQuickAbstractButton::buttonChange(change);
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty function QtQuick.Controls::CheckDelegate::nextCheckState
-
- This property holds a callback function that is called to determine
- the next check state whenever the check delegate is interactively toggled
- by the user via touch, mouse, or keyboard.
-
- By default, a normal check delegate cycles between \c Qt.Unchecked and
- \c Qt.Checked states, and a tri-state check delegate cycles between
- \c Qt.Unchecked, \c Qt.PartiallyChecked, and \c Qt.Checked states.
-
- The \c nextCheckState callback function can override the default behavior.
- The following example implements a tri-state check delegate that can present
- a partially checked state depending on external conditions, but never
- cycles to the partially checked state when interactively toggled by
- the user.
-
- \code
- CheckDelegate {
- tristate: true
- checkState: allChildrenChecked ? Qt.Checked :
- anyChildChecked ? Qt.PartiallyChecked : Qt.Unchecked
-
- nextCheckState: function() {
- if (checkState === Qt.Checked)
- return Qt.Unchecked
- else
- return Qt.Checked
- }
- }
- \endcode
-*/
-void QQuickCheckDelegate::nextCheckState()
-{
- Q_D(QQuickCheckDelegate);
- if (d->nextCheckState.isCallable())
- setCheckState(static_cast<Qt::CheckState>(d->nextCheckState.call().toInt()));
- else if (d->tristate)
- setCheckState(static_cast<Qt::CheckState>((d->checkState + 1) % 3));
- else
- QQuickItemDelegate::nextCheckState();
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickCheckDelegate::accessibleRole() const
-{
- return QAccessible::CheckBox;
-}
-#endif
-
-QT_END_NAMESPACE
-
-#include "moc_qquickcheckdelegate_p.cpp"
diff --git a/src/quicktemplates2/qquickcheckdelegate_p.h b/src/quicktemplates2/qquickcheckdelegate_p.h
deleted file mode 100644
index 2d5a5cb2..00000000
--- a/src/quicktemplates2/qquickcheckdelegate_p.h
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCHECKDELEGATE_P_H
-#define QQUICKCHECKDELEGATE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickitemdelegate_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickCheckDelegatePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickCheckDelegate : public QQuickItemDelegate
-{
- Q_OBJECT
- Q_PROPERTY(bool tristate READ isTristate WRITE setTristate NOTIFY tristateChanged FINAL)
- Q_PROPERTY(Qt::CheckState checkState READ checkState WRITE setCheckState NOTIFY checkStateChanged FINAL)
- // 2.4 (Qt 5.11)
- Q_PRIVATE_PROPERTY(QQuickCheckDelegate::d_func(), QJSValue nextCheckState MEMBER nextCheckState WRITE setNextCheckState NOTIFY nextCheckStateChanged FINAL REVISION 4)
-
-public:
- explicit QQuickCheckDelegate(QQuickItem *parent = nullptr);
-
- bool isTristate() const;
- void setTristate(bool tristate);
-
- Qt::CheckState checkState() const;
- void setCheckState(Qt::CheckState state);
-
-Q_SIGNALS:
- void tristateChanged();
- void checkStateChanged();
- // 2.4 (Qt 5.11)
- Q_REVISION(4) void nextCheckStateChanged();
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
- void buttonChange(ButtonChange change) override;
- void nextCheckState() override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickCheckDelegate)
- Q_DECLARE_PRIVATE(QQuickCheckDelegate)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickCheckDelegate)
-
-#endif // QQUICKCHECKDELEGATE_P_H
diff --git a/src/quicktemplates2/qquickcombobox.cpp b/src/quicktemplates2/qquickcombobox.cpp
deleted file mode 100644
index 21eecfe1..00000000
--- a/src/quicktemplates2/qquickcombobox.cpp
+++ /dev/null
@@ -1,1979 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickcombobox_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickabstractbutton_p.h"
-#include "qquickabstractbutton_p_p.h"
-#include "qquickpopup_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtCore/qregularexpression.h>
-#include <QtCore/qabstractitemmodel.h>
-#include <QtCore/qglobal.h>
-#include <QtGui/qinputmethod.h>
-#include <QtGui/qguiapplication.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQml/qjsvalue.h>
-#include <QtQml/qqmlcontext.h>
-#include <QtQml/private/qlazilyallocated_p.h>
-#include <private/qqmldelegatemodel_p.h>
-#include <QtQuick/private/qquickevents_p_p.h>
-#include <QtQuick/private/qquicktextinput_p.h>
-#include <QtQuick/private/qquickitemview_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ComboBox
- \inherits Control
- \instantiates QQuickComboBox
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-input
- \ingroup qtquickcontrols2-focusscopes
- \brief Combined button and popup list for selecting options.
-
- \image qtquickcontrols2-combobox.gif
-
- ComboBox is a combined button and popup list. It provides a means of
- presenting a list of options to the user in a way that takes up the
- minimum amount of screen space.
-
- ComboBox is populated with a data model. The data model is commonly
- a JavaScript array, a \l ListModel or an integer, but other types
- of \l {qml-data-models}{data models} are also supported.
-
- \code
- ComboBox {
- model: ["First", "Second", "Third"]
- }
- \endcode
-
- \section1 Editable ComboBox
-
- ComboBox can be made \l editable. An editable combo box auto-completes
- its text based on what is available in the model.
-
- The following example demonstrates appending content to an editable
- combo box by reacting to the \l accepted signal.
-
- \snippet qtquickcontrols2-combobox-accepted.qml combobox
-
- \section1 ComboBox Model Roles
-
- ComboBox is able to visualize standard \l {qml-data-models}{data models}
- that provide the \c modelData role:
- \list
- \li models that have only one role
- \li models that do not have named roles (JavaScript array, integer)
- \endlist
-
- When using models that have multiple named roles, ComboBox must be configured
- to use a specific \l {textRole}{text role} for its \l {displayText}{display text}
- and \l delegate instances. If you want to use a role of the model item
- that corresponds to the text role, set \l valueRole. The \l currentValue
- property and \l indexOfValue() method can then be used to get information
- about those values.
-
- For example:
-
- \snippet qtquickcontrols2-combobox-valuerole.qml file
-
- \note If ComboBox is assigned a data model that has multiple named roles, but
- \l textRole is not defined, ComboBox is unable to visualize it and throws a
- \c {ReferenceError: modelData is not defined}.
-
- \sa {Customizing ComboBox}, {Input Controls}, {Focus Management in Qt Quick Controls}
-*/
-
-/*!
- \qmlsignal void QtQuick.Controls::ComboBox::activated(int index)
-
- This signal is emitted when the item at \a index is activated by the user.
-
- An item is activated when it is selected while the popup is open,
- causing the popup to close (and \l currentIndex to change),
- or while the popup is closed and the combo box is navigated via
- keyboard, causing the \l currentIndex to change.
- The \l currentIndex property is set to \a index.
-
- \sa currentIndex
-*/
-
-/*!
- \qmlsignal void QtQuick.Controls::ComboBox::highlighted(int index)
-
- This signal is emitted when the item at \a index in the popup list is highlighted by the user.
-
- The highlighted signal is only emitted when the popup is open and an item
- is highlighted, but not necessarily \l activated.
-
- \sa highlightedIndex
-*/
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlsignal void QtQuick.Controls::ComboBox::accepted()
-
- This signal is emitted when the \uicontrol Return or \uicontrol Enter key is pressed
- on an \l editable combo box.
-
- You can handle this signal in order to add the newly entered
- item to the model, for example:
-
- \snippet qtquickcontrols2-combobox-accepted.qml combobox
-
- Before the signal is emitted, a check is done to see if the string
- exists in the model. If it does, \l currentIndex will be set to its index,
- and \l currentText to the string itself.
-
- After the signal has been emitted, and if the first check failed (that is,
- the item did not exist), another check will be done to see if the item was
- added by the signal handler. If it was, the \l currentIndex and
- \l currentText are updated accordingly. Otherwise, they will be set to
- \c -1 and \c "", respectively.
-
- \note If there is a \l validator set on the combo box, the signal will only be
- emitted if the input is in an acceptable state.
-*/
-
-namespace {
- enum Activation { NoActivate, Activate };
- enum Highlighting { NoHighlight, Highlight };
-}
-
-class QQuickComboBoxDelegateModel : public QQmlDelegateModel
-{
-public:
- explicit QQuickComboBoxDelegateModel(QQuickComboBox *combo);
- QVariant variantValue(int index, const QString &role) override;
-
-private:
- QQuickComboBox *combo = nullptr;
-};
-
-QQuickComboBoxDelegateModel::QQuickComboBoxDelegateModel(QQuickComboBox *combo)
- : QQmlDelegateModel(qmlContext(combo), combo),
- combo(combo)
-{
-}
-
-QVariant QQuickComboBoxDelegateModel::variantValue(int index, const QString &role)
-{
- const QVariant model = combo->model();
- if (model.userType() == QMetaType::QVariantList) {
- QVariant object = model.toList().value(index);
- if (object.userType() == QMetaType::QVariantMap) {
- const QVariantMap data = object.toMap();
- if (data.count() == 1 && role == QLatin1String("modelData"))
- return data.first();
- return data.value(role);
- } else if (object.userType() == QMetaType::QObjectStar) {
- const QObject *data = object.value<QObject *>();
- if (data && role != QLatin1String("modelData"))
- return data->property(role.toUtf8());
- }
- }
- return QQmlDelegateModel::variantValue(index, role);
-}
-
-class QQuickComboBoxPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickComboBox)
-
-public:
- bool isPopupVisible() const;
- void showPopup();
- void hidePopup(bool accept);
- void togglePopup(bool accept);
- void popupVisibleChanged();
-
- void itemClicked();
- void itemHovered();
-
- void createdItem(int index, QObject *object);
- void modelUpdated();
- void countChanged();
-
- void updateEditText();
- void updateCurrentText();
- void updateCurrentValue();
- void updateCurrentText(bool hasDelegateModelObject);
- void updateCurrentValue(bool hasDelegateModelObject);
- void updateCurrentTextAndValue();
-
- bool isValidIndex(int index) const;
- QString fastTextAt(int index) const;
- QVariant fastValueAt(int index) const;
-
- void acceptInput();
- QString tryComplete(const QString &inputText);
-
- void incrementCurrentIndex();
- void decrementCurrentIndex();
- void setCurrentIndex(int index, Activation activate);
- void updateHighlightedIndex();
- void setHighlightedIndex(int index, Highlighting highlight);
-
- void keySearch(const QString &text);
- int match(int start, const QString &text, Qt::MatchFlags flags) const;
-
- void createDelegateModel();
-
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- void cancelIndicator();
- void executeIndicator(bool complete = false);
-
- void cancelPopup();
- void executePopup(bool complete = false);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- bool flat = false;
- bool down = false;
- bool hasDown = false;
- bool pressed = false;
- bool ownModel = false;
- bool keyNavigating = false;
- bool hasDisplayText = false;
- bool hasCurrentIndex = false;
- int highlightedIndex = -1;
- int currentIndex = -1;
- QVariant model;
- QString textRole;
- QString currentText;
- QString displayText;
- QString valueRole;
- QVariant currentValue;
- QQuickItem *pressedItem = nullptr;
- QQmlInstanceModel *delegateModel = nullptr;
- QQmlComponent *delegate = nullptr;
- QQuickDeferredPointer<QQuickItem> indicator;
- QQuickDeferredPointer<QQuickPopup> popup;
-
- struct ExtraData {
- bool editable = false;
- bool accepting = false;
- bool allowComplete = false;
- Qt::InputMethodHints inputMethodHints = Qt::ImhNone;
- QString editText;
- QValidator *validator = nullptr;
- };
- QLazilyAllocated<ExtraData> extra;
-};
-
-bool QQuickComboBoxPrivate::isPopupVisible() const
-{
- return popup && popup->isVisible();
-}
-
-void QQuickComboBoxPrivate::showPopup()
-{
- if (!popup)
- executePopup(true);
-
- if (popup && !popup->isVisible())
- popup->open();
-}
-
-void QQuickComboBoxPrivate::hidePopup(bool accept)
-{
- Q_Q(QQuickComboBox);
- if (accept) {
- q->setCurrentIndex(highlightedIndex);
- emit q->activated(currentIndex);
- }
- if (popup && popup->isVisible())
- popup->close();
-}
-
-void QQuickComboBoxPrivate::togglePopup(bool accept)
-{
- if (!popup || !popup->isVisible())
- showPopup();
- else
- hidePopup(accept);
-}
-
-void QQuickComboBoxPrivate::popupVisibleChanged()
-{
- Q_Q(QQuickComboBox);
- if (isPopupVisible())
- QGuiApplication::inputMethod()->reset();
-
- QQuickItemView *itemView = popup->findChild<QQuickItemView *>();
- if (itemView)
- itemView->setHighlightRangeMode(QQuickItemView::NoHighlightRange);
-
- updateHighlightedIndex();
-
- if (itemView)
- itemView->positionViewAtIndex(highlightedIndex, QQuickItemView::Beginning);
-
- if (!hasDown) {
- q->setDown(pressed || isPopupVisible());
- hasDown = false;
- }
-}
-
-void QQuickComboBoxPrivate::itemClicked()
-{
- Q_Q(QQuickComboBox);
- int index = delegateModel->indexOf(q->sender(), nullptr);
- if (index != -1) {
- setHighlightedIndex(index, Highlight);
- hidePopup(true);
- }
-}
-
-void QQuickComboBoxPrivate::itemHovered()
-{
- Q_Q(QQuickComboBox);
- if (keyNavigating)
- return;
-
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(q->sender());
- if (!button || !button->isHovered() || QQuickAbstractButtonPrivate::get(button)->touchId != -1)
- return;
-
- int index = delegateModel->indexOf(button, nullptr);
- if (index != -1) {
- setHighlightedIndex(index, Highlight);
-
- if (QQuickItemView *itemView = popup->findChild<QQuickItemView *>())
- itemView->positionViewAtIndex(index, QQuickItemView::Contain);
- }
-}
-
-void QQuickComboBoxPrivate::createdItem(int index, QObject *object)
-{
- Q_Q(QQuickComboBox);
- QQuickItem *item = qobject_cast<QQuickItem *>(object);
- if (item && !item->parentItem()) {
- if (popup)
- item->setParentItem(popup->contentItem());
- else
- item->setParentItem(q);
- QQuickItemPrivate::get(item)->setCulled(true);
- }
-
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(object);
- if (button) {
- button->setFocusPolicy(Qt::NoFocus);
- connect(button, &QQuickAbstractButton::clicked, this, &QQuickComboBoxPrivate::itemClicked);
- connect(button, &QQuickAbstractButton::hoveredChanged, this, &QQuickComboBoxPrivate::itemHovered);
- }
-
- if (index == currentIndex && !q->isEditable())
- updateCurrentText();
-}
-
-void QQuickComboBoxPrivate::modelUpdated()
-{
- if (!extra.isAllocated() || !extra->accepting)
- updateCurrentText();
-}
-
-void QQuickComboBoxPrivate::countChanged()
-{
- Q_Q(QQuickComboBox);
- if (q->count() == 0)
- q->setCurrentIndex(-1);
- emit q->countChanged();
-}
-
-void QQuickComboBoxPrivate::updateEditText()
-{
- Q_Q(QQuickComboBox);
- QQuickTextInput *input = qobject_cast<QQuickTextInput *>(contentItem);
- if (!input)
- return;
-
- const QString text = input->text();
-
- if (extra.isAllocated() && extra->allowComplete && !text.isEmpty()) {
- const QString completed = tryComplete(text);
- if (completed.length() > text.length()) {
- input->setText(completed);
- input->select(completed.length(), text.length());
- return;
- }
- }
- q->setEditText(text);
-}
-
-// We have these two rather than just using default arguments
-// because QObjectPrivate::connect() doesn't accept lambdas.
-void QQuickComboBoxPrivate::updateCurrentText()
-{
- updateCurrentText(false);
-}
-
-void QQuickComboBoxPrivate::updateCurrentValue()
-{
- updateCurrentValue(false);
-}
-
-void QQuickComboBoxPrivate::updateCurrentText(bool hasDelegateModelObject)
-{
- Q_Q(QQuickComboBox);
- QString text;
- // If a delegate model object was passed in, it means the calling code
- // has decided to reuse it for several function calls to speed things up.
- // So, use the faster (private) version in that case.
- // For other cases, we use the version that creates the delegate model object
- // itself in order to have neater, more convenient calling code.
- if (isValidIndex(currentIndex)) {
- if (hasDelegateModelObject)
- text = fastTextAt(currentIndex);
- else
- text = q->textAt(currentIndex);
- }
-
- if (currentText != text) {
- currentText = text;
- if (!hasDisplayText)
- q->setAccessibleName(text);
- emit q->currentTextChanged();
- }
- if (!hasDisplayText && displayText != text) {
- displayText = text;
- emit q->displayTextChanged();
- }
- if (!extra.isAllocated() || !extra->accepting)
- q->setEditText(currentText);
-}
-
-void QQuickComboBoxPrivate::updateCurrentValue(bool hasDelegateModelObject)
-{
- Q_Q(QQuickComboBox);
- QVariant value;
- // If a delegate model object was passed in, it means the calling code
- // has decided to reuse it for several function calls to speed things up.
- // So, use the faster (private) version in that case.
- if (isValidIndex(currentIndex)) {
- if (hasDelegateModelObject)
- value = fastValueAt(currentIndex);
- else
- value = q->valueAt(currentIndex);
- }
- if (currentValue == value)
- return;
-
- currentValue = value;
- emit q->currentValueChanged();
-}
-
-void QQuickComboBoxPrivate::updateCurrentTextAndValue()
-{
- QObject *object = nullptr;
- // For performance reasons, we reuse the same delegate model object: QTBUG-76029.
- if (isValidIndex(currentIndex))
- object = delegateModel->object(currentIndex);
- const bool hasDelegateModelObject = object != nullptr;
- updateCurrentText(hasDelegateModelObject);
- updateCurrentValue(hasDelegateModelObject);
- if (object)
- delegateModel->release(object);
-}
-
-bool QQuickComboBoxPrivate::isValidIndex(int index) const
-{
- return delegateModel && index >= 0 && index < delegateModel->count();
-}
-
-// For performance reasons (QTBUG-76029), both this and valueAt assume that
-// the index is valid and delegateModel->object(index) has been called.
-QString QQuickComboBoxPrivate::fastTextAt(int index) const
-{
- const QString effectiveTextRole = textRole.isEmpty() ? QStringLiteral("modelData") : textRole;
- return delegateModel->stringValue(index, effectiveTextRole);
-}
-
-QVariant QQuickComboBoxPrivate::fastValueAt(int index) const
-{
- const QString effectiveValueRole = valueRole.isEmpty() ? QStringLiteral("modelData") : valueRole;
- return delegateModel->variantValue(index, effectiveValueRole);
-}
-
-void QQuickComboBoxPrivate::acceptInput()
-{
- Q_Q(QQuickComboBox);
- int idx = q->find(extra.value().editText, Qt::MatchFixedString);
- if (idx > -1)
- q->setCurrentIndex(idx);
-
- extra.value().accepting = true;
- emit q->accepted();
-
- if (idx == -1)
- q->setCurrentIndex(q->find(extra.value().editText, Qt::MatchFixedString));
- extra.value().accepting = false;
-}
-
-QString QQuickComboBoxPrivate::tryComplete(const QString &input)
-{
- Q_Q(QQuickComboBox);
- QString match;
-
- const int itemCount = q->count();
- for (int idx = 0; idx < itemCount; ++idx) {
- const QString text = q->textAt(idx);
- if (!text.startsWith(input, Qt::CaseInsensitive))
- continue;
-
- // either the first or the shortest match
- if (match.isEmpty() || text.length() < match.length())
- match = text;
- }
-
- if (match.isEmpty())
- return input;
-
- return input + match.mid(input.length());
-}
-
-void QQuickComboBoxPrivate::setCurrentIndex(int index, Activation activate)
-{
- Q_Q(QQuickComboBox);
- if (currentIndex == index)
- return;
-
- currentIndex = index;
- emit q->currentIndexChanged();
-
- if (componentComplete)
- updateCurrentTextAndValue();
-
- if (activate)
- emit q->activated(index);
-}
-
-void QQuickComboBoxPrivate::incrementCurrentIndex()
-{
- Q_Q(QQuickComboBox);
- if (extra.isAllocated())
- extra->allowComplete = false;
- if (isPopupVisible()) {
- if (highlightedIndex < q->count() - 1)
- setHighlightedIndex(highlightedIndex + 1, Highlight);
- } else {
- if (currentIndex < q->count() - 1)
- setCurrentIndex(currentIndex + 1, Activate);
- }
- if (extra.isAllocated())
- extra->allowComplete = true;
-}
-
-void QQuickComboBoxPrivate::decrementCurrentIndex()
-{
- if (extra.isAllocated())
- extra->allowComplete = false;
- if (isPopupVisible()) {
- if (highlightedIndex > 0)
- setHighlightedIndex(highlightedIndex - 1, Highlight);
- } else {
- if (currentIndex > 0)
- setCurrentIndex(currentIndex - 1, Activate);
- }
- if (extra.isAllocated())
- extra->allowComplete = true;
-}
-
-void QQuickComboBoxPrivate::updateHighlightedIndex()
-{
- setHighlightedIndex(popup->isVisible() ? currentIndex : -1, NoHighlight);
-}
-
-void QQuickComboBoxPrivate::setHighlightedIndex(int index, Highlighting highlight)
-{
- Q_Q(QQuickComboBox);
- if (highlightedIndex == index)
- return;
-
- highlightedIndex = index;
- emit q->highlightedIndexChanged();
-
- if (highlight)
- emit q->highlighted(index);
-}
-
-void QQuickComboBoxPrivate::keySearch(const QString &text)
-{
- const int startIndex = isPopupVisible() ? highlightedIndex : currentIndex;
- const int index = match(startIndex + 1, text, Qt::MatchStartsWith | Qt::MatchWrap);
- if (index != -1) {
- if (isPopupVisible())
- setHighlightedIndex(index, Highlight);
- else
- setCurrentIndex(index, Activate);
- }
-}
-
-int QQuickComboBoxPrivate::match(int start, const QString &text, Qt::MatchFlags flags) const
-{
- Q_Q(const QQuickComboBox);
- uint matchType = flags & 0x0F;
- bool wrap = flags & Qt::MatchWrap;
- Qt::CaseSensitivity cs = flags & Qt::MatchCaseSensitive ? Qt::CaseSensitive : Qt::CaseInsensitive;
- QRegularExpression::PatternOptions options = flags & Qt::MatchCaseSensitive ? QRegularExpression::NoPatternOption
- : QRegularExpression::CaseInsensitiveOption;
- int from = start;
- int to = q->count();
-
- // iterates twice if wrapping
- for (int i = 0; (wrap && i < 2) || (!wrap && i < 1); ++i) {
- for (int idx = from; idx < to; ++idx) {
- QString t = q->textAt(idx);
- switch (matchType) {
- case Qt::MatchExactly:
- if (t == text)
- return idx;
- break;
- case Qt::MatchRegExp: {
- QRegularExpression rx(QRegularExpression::anchoredPattern(text), options);
- if (rx.match(t).hasMatch())
- return idx;
- break;
- }
- case Qt::MatchWildcard: {
- QRegularExpression rx(QRegularExpression::wildcardToRegularExpression(text),
- options);
- if (rx.match(t).hasMatch())
- return idx;
- break;
- }
- case Qt::MatchStartsWith:
- if (t.startsWith(text, cs))
- return idx;
- break;
- case Qt::MatchEndsWith:
- if (t.endsWith(text, cs))
- return idx;
- break;
- case Qt::MatchFixedString:
- if (t.compare(text, cs) == 0)
- return idx;
- break;
- case Qt::MatchContains:
- default:
- if (t.contains(text, cs))
- return idx;
- break;
- }
- }
- // prepare for the next iteration
- from = 0;
- to = start;
- }
- return -1;
-}
-
-void QQuickComboBoxPrivate::createDelegateModel()
-{
- Q_Q(QQuickComboBox);
- bool ownedOldModel = ownModel;
- QQmlInstanceModel* oldModel = delegateModel;
- if (oldModel) {
- disconnect(delegateModel, &QQmlInstanceModel::countChanged, this, &QQuickComboBoxPrivate::countChanged);
- disconnect(delegateModel, &QQmlInstanceModel::modelUpdated, this, &QQuickComboBoxPrivate::modelUpdated);
- disconnect(delegateModel, &QQmlInstanceModel::createdItem, this, &QQuickComboBoxPrivate::createdItem);
- }
-
- ownModel = false;
- delegateModel = model.value<QQmlInstanceModel *>();
-
- if (!delegateModel && model.isValid()) {
- QQmlDelegateModel *dataModel = new QQuickComboBoxDelegateModel(q);
- dataModel->setModel(model);
- dataModel->setDelegate(delegate);
- if (q->isComponentComplete())
- dataModel->componentComplete();
-
- ownModel = true;
- delegateModel = dataModel;
- }
-
- if (delegateModel) {
- connect(delegateModel, &QQmlInstanceModel::countChanged, this, &QQuickComboBoxPrivate::countChanged);
- connect(delegateModel, &QQmlInstanceModel::modelUpdated, this, &QQuickComboBoxPrivate::modelUpdated);
- connect(delegateModel, &QQmlInstanceModel::createdItem, this, &QQuickComboBoxPrivate::createdItem);
- }
-
- emit q->delegateModelChanged();
-
- if (ownedOldModel)
- delete oldModel;
-}
-
-void QQuickComboBoxPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickComboBox);
- QQuickControlPrivate::handlePress(point);
- q->setPressed(true);
-}
-
-void QQuickComboBoxPrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickComboBox);
- QQuickControlPrivate::handleMove(point);
- q->setPressed(q->contains(point));
-}
-
-void QQuickComboBoxPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickComboBox);
- QQuickControlPrivate::handleRelease(point);
- if (pressed) {
- q->setPressed(false);
- togglePopup(false);
- }
-}
-
-void QQuickComboBoxPrivate::handleUngrab()
-{
- Q_Q(QQuickComboBox);
- QQuickControlPrivate::handleUngrab();
- q->setPressed(false);
-}
-
-static inline QString indicatorName() { return QStringLiteral("indicator"); }
-
-void QQuickComboBoxPrivate::cancelIndicator()
-{
- Q_Q(QQuickComboBox);
- quickCancelDeferred(q, indicatorName());
-}
-
-void QQuickComboBoxPrivate::executeIndicator(bool complete)
-{
- Q_Q(QQuickComboBox);
- if (indicator.wasExecuted())
- return;
-
- if (!indicator || complete)
- quickBeginDeferred(q, indicatorName(), indicator);
- if (complete)
- quickCompleteDeferred(q, indicatorName(), indicator);
-}
-
-static inline QString popupName() { return QStringLiteral("popup"); }
-
-void QQuickComboBoxPrivate::cancelPopup()
-{
- Q_Q(QQuickComboBox);
- quickCancelDeferred(q, popupName());
-}
-
-void QQuickComboBoxPrivate::executePopup(bool complete)
-{
- Q_Q(QQuickComboBox);
- if (popup.wasExecuted())
- return;
-
- if (!popup || complete)
- quickBeginDeferred(q, popupName(), popup);
- if (complete)
- quickCompleteDeferred(q, popupName(), popup);
-}
-
-void QQuickComboBoxPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickComboBox);
- QQuickControlPrivate::itemImplicitWidthChanged(item);
- if (item == indicator)
- emit q->implicitIndicatorWidthChanged();
-}
-
-void QQuickComboBoxPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickComboBox);
- QQuickControlPrivate::itemImplicitHeightChanged(item);
- if (item == indicator)
- emit q->implicitIndicatorHeightChanged();
-}
-
-QQuickComboBox::QQuickComboBox(QQuickItem *parent)
- : QQuickControl(*(new QQuickComboBoxPrivate), parent)
-{
- setFocusPolicy(Qt::StrongFocus);
- setFlag(QQuickItem::ItemIsFocusScope);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
- setInputMethodHints(Qt::ImhNoPredictiveText);
-}
-
-QQuickComboBox::~QQuickComboBox()
-{
- Q_D(QQuickComboBox);
- d->removeImplicitSizeListener(d->indicator);
- if (d->popup) {
- // Disconnect visibleChanged() to avoid a spurious highlightedIndexChanged() signal
- // emission during the destruction of the (visible) popup. (QTBUG-57650)
- QObjectPrivate::disconnect(d->popup.data(), &QQuickPopup::visibleChanged, d, &QQuickComboBoxPrivate::popupVisibleChanged);
- delete d->popup;
- d->popup = nullptr;
- }
-}
-
-/*!
- \readonly
- \qmlproperty int QtQuick.Controls::ComboBox::count
-
- This property holds the number of items in the combo box.
-*/
-int QQuickComboBox::count() const
-{
- Q_D(const QQuickComboBox);
- return d->delegateModel ? d->delegateModel->count() : 0;
-}
-
-/*!
- \qmlproperty model QtQuick.Controls::ComboBox::model
-
- This property holds the model providing data for the combo box.
-
- \code
- ComboBox {
- textRole: "key"
- model: ListModel {
- ListElement { key: "First"; value: 123 }
- ListElement { key: "Second"; value: 456 }
- ListElement { key: "Third"; value: 789 }
- }
- }
- \endcode
-
- \sa textRole, {qml-data-models}{Data Models}
-*/
-QVariant QQuickComboBox::model() const
-{
- Q_D(const QQuickComboBox);
- return d->model;
-}
-
-void QQuickComboBox::setModel(const QVariant& m)
-{
- Q_D(QQuickComboBox);
- QVariant model = m;
- if (model.userType() == qMetaTypeId<QJSValue>())
- model = model.value<QJSValue>().toVariant();
-
- if (d->model == model)
- return;
-
- if (QAbstractItemModel* aim = qvariant_cast<QAbstractItemModel *>(d->model)) {
- QObjectPrivate::disconnect(aim, &QAbstractItemModel::dataChanged,
- d, QOverload<>::of(&QQuickComboBoxPrivate::updateCurrentText));
- }
- if (QAbstractItemModel* aim = qvariant_cast<QAbstractItemModel *>(model)) {
- QObjectPrivate::connect(aim, &QAbstractItemModel::dataChanged,
- d, QOverload<>::of(&QQuickComboBoxPrivate::updateCurrentText));
- }
-
- d->model = model;
- d->createDelegateModel();
- emit countChanged();
- if (isComponentComplete()) {
- setCurrentIndex(count() > 0 ? 0 : -1);
- d->updateCurrentText();
- }
- emit modelChanged();
-}
-
-/*!
- \internal
- \qmlproperty model QtQuick.Controls::ComboBox::delegateModel
-
- This property holds the model providing delegate instances for the combo box.
-*/
-QQmlInstanceModel *QQuickComboBox::delegateModel() const
-{
- Q_D(const QQuickComboBox);
- return d->delegateModel;
-}
-
-
-/*!
- \qmlproperty bool QtQuick.Controls::ComboBox::pressed
-
- This property holds whether the combo box button is physically pressed.
- A button can be pressed by either touch or key events.
-
- \sa down
-*/
-bool QQuickComboBox::isPressed() const
-{
- Q_D(const QQuickComboBox);
- return d->pressed;
-}
-
-void QQuickComboBox::setPressed(bool pressed)
-{
- Q_D(QQuickComboBox);
- if (d->pressed == pressed)
- return;
-
- d->pressed = pressed;
- emit pressedChanged();
-
- if (!d->hasDown) {
- setDown(d->pressed || d->isPopupVisible());
- d->hasDown = false;
- }
-}
-
-/*!
- \readonly
- \qmlproperty int QtQuick.Controls::ComboBox::highlightedIndex
-
- This property holds the index of the highlighted item in the combo box popup list.
-
- When a highlighted item is activated, the popup is closed, \l currentIndex
- is set to \c highlightedIndex, and the value of this property is reset to
- \c -1, as there is no longer a highlighted item.
-
- \sa highlighted(), currentIndex
-*/
-int QQuickComboBox::highlightedIndex() const
-{
- Q_D(const QQuickComboBox);
- return d->highlightedIndex;
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::ComboBox::currentIndex
-
- This property holds the index of the current item in the combo box.
-
- The default value is \c -1 when \l count is \c 0, and \c 0 otherwise.
-
- \sa activated(), currentText, highlightedIndex
-*/
-int QQuickComboBox::currentIndex() const
-{
- Q_D(const QQuickComboBox);
- return d->currentIndex;
-}
-
-void QQuickComboBox::setCurrentIndex(int index)
-{
- Q_D(QQuickComboBox);
- d->hasCurrentIndex = true;
- d->setCurrentIndex(index, NoActivate);
-}
-
-/*!
- \readonly
- \qmlproperty string QtQuick.Controls::ComboBox::currentText
-
- This property holds the text of the current item in the combo box.
-
- \sa currentIndex, displayText, textRole, editText
-*/
-QString QQuickComboBox::currentText() const
-{
- Q_D(const QQuickComboBox);
- return d->currentText;
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::ComboBox::displayText
-
- This property holds the text that is displayed on the combo box button.
-
- By default, the display text presents the current selection. That is,
- it follows the text of the current item. However, the default display
- text can be overridden with a custom value.
-
- \code
- ComboBox {
- currentIndex: 1
- displayText: "Size: " + currentText
- model: ["S", "M", "L"]
- }
- \endcode
-
- \sa currentText, textRole
-*/
-QString QQuickComboBox::displayText() const
-{
- Q_D(const QQuickComboBox);
- return d->displayText;
-}
-
-void QQuickComboBox::setDisplayText(const QString &text)
-{
- Q_D(QQuickComboBox);
- d->hasDisplayText = true;
- if (d->displayText == text)
- return;
-
- d->displayText = text;
- setAccessibleName(text);
- emit displayTextChanged();
-}
-
-void QQuickComboBox::resetDisplayText()
-{
- Q_D(QQuickComboBox);
- if (!d->hasDisplayText)
- return;
-
- d->hasDisplayText = false;
- d->updateCurrentText();
-}
-
-
-/*!
- \qmlproperty string QtQuick.Controls::ComboBox::textRole
-
- This property holds the model role used for populating the combo box.
-
- When the model has multiple roles, \c textRole can be set to determine
- which role should be displayed.
-
- \sa model, currentText, displayText, {ComboBox Model Roles}
-*/
-QString QQuickComboBox::textRole() const
-{
- Q_D(const QQuickComboBox);
- return d->textRole;
-}
-
-void QQuickComboBox::setTextRole(const QString &role)
-{
- Q_D(QQuickComboBox);
- if (d->textRole == role)
- return;
-
- d->textRole = role;
- if (isComponentComplete())
- d->updateCurrentText();
- emit textRoleChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.14 (Qt 5.14)
- \qmlproperty string QtQuick.Controls::ComboBox::valueRole
-
- This property holds the model role used for storing the value associated
- with each item in the model.
-
- For an example of how to use this property, see \l {ComboBox Model Roles}.
-
- \sa model, currentValue
-*/
-QString QQuickComboBox::valueRole() const
-{
- Q_D(const QQuickComboBox);
- return d->valueRole;
-}
-
-void QQuickComboBox::setValueRole(const QString &role)
-{
- Q_D(QQuickComboBox);
- if (d->valueRole == role)
- return;
-
- d->valueRole = role;
- if (isComponentComplete())
- d->updateCurrentValue();
- emit valueRoleChanged();
-}
-
-/*!
- \qmlproperty Component QtQuick.Controls::ComboBox::delegate
-
- This property holds a delegate that presents an item in the combo box popup.
-
- It is recommended to use \l ItemDelegate (or any other \l AbstractButton
- derivatives) as the delegate. This ensures that the interaction works as
- expected, and the popup will automatically close when appropriate. When
- other types are used as the delegate, the popup must be closed manually.
- For example, if \l MouseArea is used:
-
- \code
- delegate: Rectangle {
- // ...
- MouseArea {
- // ...
- onClicked: comboBox.popup.close()
- }
- }
- \endcode
-
- \sa ItemDelegate, {Customizing ComboBox}
-*/
-QQmlComponent *QQuickComboBox::delegate() const
-{
- Q_D(const QQuickComboBox);
- return d->delegate;
-}
-
-void QQuickComboBox::setDelegate(QQmlComponent* delegate)
-{
- Q_D(QQuickComboBox);
- if (d->delegate == delegate)
- return;
-
- delete d->delegate;
- d->delegate = delegate;
- QQmlDelegateModel *delegateModel = qobject_cast<QQmlDelegateModel*>(d->delegateModel);
- if (delegateModel)
- delegateModel->setDelegate(d->delegate);
- emit delegateChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::ComboBox::indicator
-
- This property holds the drop indicator item.
-
- \sa {Customizing ComboBox}
-*/
-QQuickItem *QQuickComboBox::indicator() const
-{
- QQuickComboBoxPrivate *d = const_cast<QQuickComboBoxPrivate *>(d_func());
- if (!d->indicator)
- d->executeIndicator();
- return d->indicator;
-}
-
-void QQuickComboBox::setIndicator(QQuickItem *indicator)
-{
- Q_D(QQuickComboBox);
- if (d->indicator == indicator)
- return;
-
- if (!d->indicator.isExecuting())
- d->cancelIndicator();
-
- const qreal oldImplicitIndicatorWidth = implicitIndicatorWidth();
- const qreal oldImplicitIndicatorHeight = implicitIndicatorHeight();
-
- d->removeImplicitSizeListener(d->indicator);
- delete d->indicator;
- d->indicator = indicator;
- if (indicator) {
- if (!indicator->parentItem())
- indicator->setParentItem(this);
- d->addImplicitSizeListener(indicator);
- }
-
- if (!qFuzzyCompare(oldImplicitIndicatorWidth, implicitIndicatorWidth()))
- emit implicitIndicatorWidthChanged();
- if (!qFuzzyCompare(oldImplicitIndicatorHeight, implicitIndicatorHeight()))
- emit implicitIndicatorHeightChanged();
- if (!d->indicator.isExecuting())
- emit indicatorChanged();
-}
-
-/*!
- \qmlproperty Popup QtQuick.Controls::ComboBox::popup
-
- This property holds the popup.
-
- The popup can be opened or closed manually, if necessary:
-
- \code
- onSpecialEvent: comboBox.popup.close()
- \endcode
-
- \sa {Customizing ComboBox}
-*/
-QQuickPopup *QQuickComboBox::popup() const
-{
- QQuickComboBoxPrivate *d = const_cast<QQuickComboBoxPrivate *>(d_func());
- if (!d->popup)
- d->executePopup(isComponentComplete());
- return d->popup;
-}
-
-void QQuickComboBox::setPopup(QQuickPopup *popup)
-{
- Q_D(QQuickComboBox);
- if (d->popup == popup)
- return;
-
- if (!d->popup.isExecuting())
- d->cancelPopup();
-
- if (d->popup) {
- QObjectPrivate::disconnect(d->popup.data(), &QQuickPopup::visibleChanged, d, &QQuickComboBoxPrivate::popupVisibleChanged);
- delete d->popup;
- }
- if (popup) {
- QQuickPopupPrivate::get(popup)->allowVerticalFlip = true;
- popup->setClosePolicy(QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutsideParent);
- QObjectPrivate::connect(popup, &QQuickPopup::visibleChanged, d, &QQuickComboBoxPrivate::popupVisibleChanged);
-
- if (QQuickItemView *itemView = popup->findChild<QQuickItemView *>())
- itemView->setHighlightRangeMode(QQuickItemView::NoHighlightRange);
- }
- d->popup = popup;
- if (!d->popup.isExecuting())
- emit popupChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlproperty bool QtQuick.Controls::ComboBox::flat
-
- This property holds whether the combo box button is flat.
-
- A flat combo box button does not draw a background unless it is interacted
- with. In comparison to normal combo boxes, flat combo boxes provide looks
- that make them stand out less from the rest of the UI. For instance, when
- placing a combo box into a tool bar, it may be desirable to make the combo
- box flat so it matches better with the flat looks of tool buttons.
-
- The default value is \c false.
-*/
-bool QQuickComboBox::isFlat() const
-{
- Q_D(const QQuickComboBox);
- return d->flat;
-}
-
-void QQuickComboBox::setFlat(bool flat)
-{
- Q_D(QQuickComboBox);
- if (d->flat == flat)
- return;
-
- d->flat = flat;
- emit flatChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::ComboBox::down
-
- This property holds whether the combo box button is visually down.
-
- Unless explicitly set, this property is \c true when either \c pressed
- or \c popup.visible is \c true. To return to the default value, set this
- property to \c undefined.
-
- \sa pressed, popup
-*/
-bool QQuickComboBox::isDown() const
-{
- Q_D(const QQuickComboBox);
- return d->down;
-}
-
-void QQuickComboBox::setDown(bool down)
-{
- Q_D(QQuickComboBox);
- d->hasDown = true;
-
- if (d->down == down)
- return;
-
- d->down = down;
- emit downChanged();
-}
-
-void QQuickComboBox::resetDown()
-{
- Q_D(QQuickComboBox);
- if (!d->hasDown)
- return;
-
- setDown(d->pressed || d->isPopupVisible());
- d->hasDown = false;
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::ComboBox::editable
-
- This property holds whether the combo box is editable.
-
- The default value is \c false.
-
- \sa validator
-*/
-bool QQuickComboBox::isEditable() const
-{
- Q_D(const QQuickComboBox);
- return d->extra.isAllocated() && d->extra->editable;
-}
-
-void QQuickComboBox::setEditable(bool editable)
-{
- Q_D(QQuickComboBox);
- if (editable == isEditable())
- return;
-
- if (d->contentItem) {
- if (editable) {
- d->contentItem->installEventFilter(this);
- if (QQuickTextInput *input = qobject_cast<QQuickTextInput *>(d->contentItem)) {
- QObjectPrivate::connect(input, &QQuickTextInput::textChanged, d, &QQuickComboBoxPrivate::updateEditText);
- QObjectPrivate::connect(input, &QQuickTextInput::accepted, d, &QQuickComboBoxPrivate::acceptInput);
- }
-#if QT_CONFIG(cursor)
- d->contentItem->setCursor(Qt::IBeamCursor);
-#endif
- } else {
- d->contentItem->removeEventFilter(this);
- if (QQuickTextInput *input = qobject_cast<QQuickTextInput *>(d->contentItem)) {
- QObjectPrivate::disconnect(input, &QQuickTextInput::textChanged, d, &QQuickComboBoxPrivate::updateEditText);
- QObjectPrivate::disconnect(input, &QQuickTextInput::accepted, d, &QQuickComboBoxPrivate::acceptInput);
- }
-#if QT_CONFIG(cursor)
- d->contentItem->unsetCursor();
-#endif
- }
- }
-
- d->extra.value().editable = editable;
- setAccessibleProperty("editable", editable);
- emit editableChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty string QtQuick.Controls::ComboBox::editText
-
- This property holds the text in the text field of an editable combo box.
-
- \sa editable, currentText, displayText
-*/
-QString QQuickComboBox::editText() const
-{
- Q_D(const QQuickComboBox);
- return d->extra.isAllocated() ? d->extra->editText : QString();
-}
-
-void QQuickComboBox::setEditText(const QString &text)
-{
- Q_D(QQuickComboBox);
- if (text == editText())
- return;
-
- d->extra.value().editText = text;
- emit editTextChanged();
-}
-
-void QQuickComboBox::resetEditText()
-{
- setEditText(QString());
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty Validator QtQuick.Controls::ComboBox::validator
-
- This property holds an input text validator for an editable combo box.
-
- When a validator is set, the text field will only accept input which
- leaves the text property in an intermediate state. The \l accepted signal
- will only be emitted if the text is in an acceptable state when the
- \uicontrol Return or \uicontrol Enter key is pressed.
-
- The currently supported validators are \l[QtQuick]{IntValidator},
- \l[QtQuick]{DoubleValidator}, and \l[QtQuick]{RegExpValidator}. An
- example of using validators is shown below, which allows input of
- integers between \c 0 and \c 10 into the text field:
-
- \code
- ComboBox {
- model: 10
- editable: true
- validator: IntValidator {
- top: 9
- bottom: 0
- }
- }
- \endcode
-
- \sa acceptableInput, accepted, editable
-*/
-QValidator *QQuickComboBox::validator() const
-{
- Q_D(const QQuickComboBox);
- return d->extra.isAllocated() ? d->extra->validator : nullptr;
-}
-
-void QQuickComboBox::setValidator(QValidator *validator)
-{
- Q_D(QQuickComboBox);
- if (validator == QQuickComboBox::validator())
- return;
-
- d->extra.value().validator = validator;
-#if QT_CONFIG(validator)
- if (validator)
- validator->setLocale(d->locale);
-#endif
- emit validatorChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty flags QtQuick.Controls::ComboBox::inputMethodHints
-
- Provides hints to the input method about the expected content of the combo box and how it
- should operate.
-
- The default value is \c Qt.ImhNoPredictiveText.
-
- \include inputmethodhints.qdocinc
-*/
-Qt::InputMethodHints QQuickComboBox::inputMethodHints() const
-{
- Q_D(const QQuickComboBox);
- return d->extra.isAllocated() ? d->extra->inputMethodHints : Qt::ImhNoPredictiveText;
-}
-
-void QQuickComboBox::setInputMethodHints(Qt::InputMethodHints hints)
-{
- Q_D(QQuickComboBox);
- if (hints == inputMethodHints())
- return;
-
- d->extra.value().inputMethodHints = hints;
- emit inputMethodHintsChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::ComboBox::inputMethodComposing
- \readonly
-
- This property holds whether an editable combo box has partial text input from an input method.
-
- While it is composing, an input method may rely on mouse or key events from the combo box to
- edit or commit the partial text. This property can be used to determine when to disable event
- handlers that may interfere with the correct operation of an input method.
-*/
-bool QQuickComboBox::isInputMethodComposing() const
-{
- Q_D(const QQuickComboBox);
- return d->contentItem && d->contentItem->property("inputMethodComposing").toBool();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::ComboBox::acceptableInput
- \readonly
-
- This property holds whether the combo box contains acceptable text in the editable text field.
-
- If a validator has been set, the value is \c true only if the current text is acceptable
- to the validator as a final string (not as an intermediate string).
-
- \sa validator, accepted
-*/
-bool QQuickComboBox::hasAcceptableInput() const
-{
- Q_D(const QQuickComboBox);
- return d->contentItem && d->contentItem->property("acceptableInput").toBool();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::ComboBox::implicitIndicatorWidth
- \readonly
-
- This property holds the implicit indicator width.
-
- The value is equal to \c {indicator ? indicator.implicitWidth : 0}.
-
- This is typically used, together with \l {Control::}{implicitContentWidth} and
- \l {Control::}{implicitBackgroundWidth}, to calculate the \l {Item::}{implicitWidth}.
-
- \sa implicitIndicatorHeight
-*/
-qreal QQuickComboBox::implicitIndicatorWidth() const
-{
- Q_D(const QQuickComboBox);
- if (!d->indicator)
- return 0;
- return d->indicator->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::ComboBox::implicitIndicatorHeight
- \readonly
-
- This property holds the implicit indicator height.
-
- The value is equal to \c {indicator ? indicator.implicitHeight : 0}.
-
- This is typically used, together with \l {Control::}{implicitContentHeight} and
- \l {Control::}{implicitBackgroundHeight}, to calculate the \l {Item::}{implicitHeight}.
-
- \sa implicitIndicatorWidth
-*/
-qreal QQuickComboBox::implicitIndicatorHeight() const
-{
- Q_D(const QQuickComboBox);
- if (!d->indicator)
- return 0;
- return d->indicator->implicitHeight();
-}
-
-/*!
- \readonly
- \since QtQuick.Controls 2.14 (Qt 5.14)
- \qmlproperty string QtQuick.Controls::ComboBox::currentValue
-
- This property holds the value of the current item in the combo box.
-
- For an example of how to use this property, see \l {ComboBox Model Roles}.
-
- \sa currentIndex, currentText, valueRole
-*/
-QVariant QQuickComboBox::currentValue() const
-{
- Q_D(const QQuickComboBox);
- return d->currentValue;
-}
-
-QVariant QQuickComboBox::valueAt(int index) const
-{
- Q_D(const QQuickComboBox);
- if (!d->isValidIndex(index))
- return QVariant();
-
- QObject *object = d->delegateModel->object(index);
- QVariant value;
- if (object) {
- value = d->fastValueAt(index);
- d->delegateModel->release(object);
- }
- return value;
-}
-
-/*!
- \since QtQuick.Controls 2.14 (Qt 5.14)
- \qmlmethod int QtQuick.Controls::ComboBox::indexOfValue(object value)
-
- Returns the index of the specified \a value, or \c -1 if no match is found.
-
- For an example of how to use this method, see \l {ComboBox Model Roles}.
-
- \sa find(), currentValue, currentIndex, valueRole
-*/
-int QQuickComboBox::indexOfValue(const QVariant &value) const
-{
- for (int i = 0; i < count(); ++i) {
- const QVariant ourValue = valueAt(i);
- if (value == ourValue)
- return i;
- }
- return -1;
-}
-
-/*!
- \qmlmethod string QtQuick.Controls::ComboBox::textAt(int index)
-
- Returns the text for the specified \a index, or an empty string
- if the index is out of bounds.
-
- \sa textRole
-*/
-QString QQuickComboBox::textAt(int index) const
-{
- Q_D(const QQuickComboBox);
- if (!d->isValidIndex(index))
- return QString();
-
- QObject *object = d->delegateModel->object(index);
- QString text;
- if (object) {
- text = d->fastTextAt(index);
- d->delegateModel->release(object);
- }
- return text;
-}
-
-/*!
- \qmlmethod int QtQuick.Controls::ComboBox::find(string text, flags = Qt.MatchExactly)
-
- Returns the index of the specified \a text, or \c -1 if no match is found.
-
- The way the search is performed is defined by the specified match \a flags. By default,
- combo box performs case sensitive exact matching (\c Qt.MatchExactly). All other match
- types are case-insensitive unless the \c Qt.MatchCaseSensitive flag is also specified.
-
- \value Qt.MatchExactly The search term matches exactly (default).
- \value Qt.MatchRegExp The search term matches as a regular expression.
- \value Qt.MatchWildcard The search term matches using wildcards.
- \value Qt.MatchFixedString The search term matches as a fixed string.
- \value Qt.MatchStartsWith The search term matches the start of the item.
- \value Qt.MatchEndsWidth The search term matches the end of the item.
- \value Qt.MatchContains The search term is contained in the item.
- \value Qt.MatchCaseSensitive The search is case sensitive.
-
- \sa textRole
-*/
-int QQuickComboBox::find(const QString &text, Qt::MatchFlags flags) const
-{
- Q_D(const QQuickComboBox);
- return d->match(0, text, flags);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::ComboBox::incrementCurrentIndex()
-
- Increments the current index of the combo box, or the highlighted
- index if the popup list is visible.
-
- \sa currentIndex, highlightedIndex
-*/
-void QQuickComboBox::incrementCurrentIndex()
-{
- Q_D(QQuickComboBox);
- d->incrementCurrentIndex();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::ComboBox::decrementCurrentIndex()
-
- Decrements the current index of the combo box, or the highlighted
- index if the popup list is visible.
-
- \sa currentIndex, highlightedIndex
-*/
-void QQuickComboBox::decrementCurrentIndex()
-{
- Q_D(QQuickComboBox);
- d->decrementCurrentIndex();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlmethod void QtQuick.Controls::ComboBox::selectAll()
-
- Selects all the text in the editable text field of the combo box.
-
- \sa editText
-*/
-void QQuickComboBox::selectAll()
-{
- Q_D(QQuickComboBox);
- QQuickTextInput *input = qobject_cast<QQuickTextInput *>(d->contentItem);
- if (!input)
- return;
- input->selectAll();
-}
-
-bool QQuickComboBox::eventFilter(QObject *object, QEvent *event)
-{
- Q_D(QQuickComboBox);
- switch (event->type()) {
- case QEvent::MouseButtonRelease:
- if (d->isPopupVisible())
- d->hidePopup(false);
- break;
- case QEvent::KeyPress: {
- QKeyEvent *ke = static_cast<QKeyEvent *>(event);
- if (d->filterKeyEvent(ke, false))
- return true;
- event->accept();
- if (d->extra.isAllocated())
- d->extra->allowComplete = ke->key() != Qt::Key_Backspace && ke->key() != Qt::Key_Delete;
- break;
- }
- case QEvent::FocusOut:
- if (qGuiApp->focusObject() != this && (!d->popup || !d->popup->hasActiveFocus())) {
- // Only close the popup if focus was transferred somewhere else
- // than to the popup or the popup button (which normally means that
- // the user clicked on the popup button to open it, not close it).
- d->hidePopup(false);
- setPressed(false);
- }
- break;
-#if QT_CONFIG(im)
- case QEvent::InputMethod:
- if (d->extra.isAllocated())
- d->extra->allowComplete = !static_cast<QInputMethodEvent*>(event)->commitString().isEmpty();
- break;
-#endif
- default:
- break;
- }
- return QQuickControl::eventFilter(object, event);
-}
-
-void QQuickComboBox::focusInEvent(QFocusEvent *event)
-{
- Q_D(QQuickComboBox);
- QQuickControl::focusInEvent(event);
- if (d->contentItem && isEditable())
- d->contentItem->forceActiveFocus(event->reason());
-}
-
-void QQuickComboBox::focusOutEvent(QFocusEvent *event)
-{
- Q_D(QQuickComboBox);
- QQuickControl::focusOutEvent(event);
-
- if (qGuiApp->focusObject() != d->contentItem && (!d->popup || !d->popup->hasActiveFocus())) {
- // Only close the popup if focus was transferred
- // somewhere else than to the popup or the inner line edit (which is
- // normally done from QQuickComboBox::focusInEvent).
- d->hidePopup(false);
- setPressed(false);
- }
-}
-
-#if QT_CONFIG(im)
-void QQuickComboBox::inputMethodEvent(QInputMethodEvent *event)
-{
- Q_D(QQuickComboBox);
- QQuickControl::inputMethodEvent(event);
- if (!isEditable() && !event->commitString().isEmpty())
- d->keySearch(event->commitString());
- else
- event->ignore();
-}
-#endif
-
-void QQuickComboBox::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickComboBox);
- QQuickControl::keyPressEvent(event);
-
- switch (event->key()) {
- case Qt::Key_Escape:
- case Qt::Key_Back:
- if (d->isPopupVisible())
- event->accept();
- break;
- case Qt::Key_Space:
- if (!event->isAutoRepeat())
- setPressed(true);
- event->accept();
- break;
- case Qt::Key_Enter:
- case Qt::Key_Return:
- if (d->isPopupVisible())
- setPressed(true);
- event->accept();
- break;
- case Qt::Key_Up:
- d->keyNavigating = true;
- d->decrementCurrentIndex();
- event->accept();
- break;
- case Qt::Key_Down:
- d->keyNavigating = true;
- d->incrementCurrentIndex();
- event->accept();
- break;
- case Qt::Key_Home:
- d->keyNavigating = true;
- if (d->isPopupVisible())
- d->setHighlightedIndex(0, Highlight);
- else
- d->setCurrentIndex(0, Activate);
- event->accept();
- break;
- case Qt::Key_End:
- d->keyNavigating = true;
- if (d->isPopupVisible())
- d->setHighlightedIndex(count() - 1, Highlight);
- else
- d->setCurrentIndex(count() - 1, Activate);
- event->accept();
- break;
- default:
- if (!isEditable() && !event->text().isEmpty())
- d->keySearch(event->text());
- else
- event->ignore();
- break;
- }
-}
-
-void QQuickComboBox::keyReleaseEvent(QKeyEvent *event)
-{
- Q_D(QQuickComboBox);
- QQuickControl::keyReleaseEvent(event);
- d->keyNavigating = false;
- if (event->isAutoRepeat())
- return;
-
- switch (event->key()) {
- case Qt::Key_Space:
- if (!isEditable())
- d->togglePopup(true);
- setPressed(false);
- event->accept();
- break;
- case Qt::Key_Enter:
- case Qt::Key_Return:
- if (!isEditable() || d->isPopupVisible())
- d->hidePopup(d->isPopupVisible());
- setPressed(false);
- event->accept();
- break;
- case Qt::Key_Escape:
- case Qt::Key_Back:
- if (d->isPopupVisible()) {
- d->hidePopup(false);
- setPressed(false);
- event->accept();
- }
- break;
- default:
- break;
- }
-}
-
-#if QT_CONFIG(wheelevent)
-void QQuickComboBox::wheelEvent(QWheelEvent *event)
-{
- Q_D(QQuickComboBox);
- QQuickControl::wheelEvent(event);
- if (d->wheelEnabled && !d->isPopupVisible()) {
- if (event->angleDelta().y() > 0)
- d->decrementCurrentIndex();
- else
- d->incrementCurrentIndex();
- }
-}
-#endif
-
-void QQuickComboBox::componentComplete()
-{
- Q_D(QQuickComboBox);
- d->executeIndicator(true);
- QQuickControl::componentComplete();
- if (d->popup)
- d->executePopup(true);
-
- if (d->delegateModel && d->ownModel)
- static_cast<QQmlDelegateModel *>(d->delegateModel)->componentComplete();
-
- if (count() > 0) {
- if (!d->hasCurrentIndex && d->currentIndex == -1)
- setCurrentIndex(0);
- else
- d->updateCurrentTextAndValue();
- }
-}
-
-void QQuickComboBox::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &value)
-{
- Q_D(QQuickComboBox);
- QQuickControl::itemChange(change, value);
- if (change == ItemVisibleHasChanged && !value.boolValue) {
- d->hidePopup(false);
- setPressed(false);
- }
-}
-
-void QQuickComboBox::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickComboBox);
- if (oldItem) {
- oldItem->removeEventFilter(this);
- if (QQuickTextInput *oldInput = qobject_cast<QQuickTextInput *>(oldItem)) {
- QObjectPrivate::disconnect(oldInput, &QQuickTextInput::accepted, d, &QQuickComboBoxPrivate::acceptInput);
- QObjectPrivate::disconnect(oldInput, &QQuickTextInput::textChanged, d, &QQuickComboBoxPrivate::updateEditText);
- disconnect(oldInput, &QQuickTextInput::inputMethodComposingChanged, this, &QQuickComboBox::inputMethodComposingChanged);
- disconnect(oldInput, &QQuickTextInput::acceptableInputChanged, this, &QQuickComboBox::acceptableInputChanged);
- }
- }
- if (newItem && isEditable()) {
- newItem->installEventFilter(this);
- if (QQuickTextInput *newInput = qobject_cast<QQuickTextInput *>(newItem)) {
- QObjectPrivate::connect(newInput, &QQuickTextInput::accepted, d, &QQuickComboBoxPrivate::acceptInput);
- QObjectPrivate::connect(newInput, &QQuickTextInput::textChanged, d, &QQuickComboBoxPrivate::updateEditText);
- connect(newInput, &QQuickTextInput::inputMethodComposingChanged, this, &QQuickComboBox::inputMethodComposingChanged);
- connect(newInput, &QQuickTextInput::acceptableInputChanged, this, &QQuickComboBox::acceptableInputChanged);
- }
-#if QT_CONFIG(cursor)
- newItem->setCursor(Qt::IBeamCursor);
-#endif
- }
-}
-
-void QQuickComboBox::localeChange(const QLocale &newLocale, const QLocale &oldLocale)
-{
- QQuickControl::localeChange(newLocale, oldLocale);
-#if QT_CONFIG(validator)
- if (QValidator *v = validator())
- v->setLocale(newLocale);
-#endif
-}
-
-QFont QQuickComboBox::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ComboBox);
-}
-
-QPalette QQuickComboBox::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ComboBox);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickComboBox::accessibleRole() const
-{
- return QAccessible::ComboBox;
-}
-
-void QQuickComboBox::accessibilityActiveChanged(bool active)
-{
- Q_D(QQuickComboBox);
- QQuickControl::accessibilityActiveChanged(active);
-
- if (active) {
- setAccessibleName(d->hasDisplayText ? d->displayText : d->currentText);
- setAccessibleProperty("editable", isEditable());
- }
-}
-#endif //
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickcombobox_p.h b/src/quicktemplates2/qquickcombobox_p.h
deleted file mode 100644
index c9063d6a..00000000
--- a/src/quicktemplates2/qquickcombobox_p.h
+++ /dev/null
@@ -1,242 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCOMBOBOX_P_H
-#define QQUICKCOMBOBOX_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QValidator;
-class QQuickPopup;
-class QQmlInstanceModel;
-class QQuickComboBoxPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickComboBox : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(int count READ count NOTIFY countChanged FINAL)
- Q_PROPERTY(QVariant model READ model WRITE setModel NOTIFY modelChanged FINAL)
- Q_PROPERTY(QQmlInstanceModel *delegateModel READ delegateModel NOTIFY delegateModelChanged FINAL)
- Q_PROPERTY(bool pressed READ isPressed WRITE setPressed NOTIFY pressedChanged FINAL) // ### Qt 6: should not be writable
- Q_PROPERTY(int highlightedIndex READ highlightedIndex NOTIFY highlightedIndexChanged FINAL)
- Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL)
- Q_PROPERTY(QString currentText READ currentText NOTIFY currentTextChanged FINAL)
- Q_PROPERTY(QString displayText READ displayText WRITE setDisplayText RESET resetDisplayText NOTIFY displayTextChanged FINAL)
- Q_PROPERTY(QString textRole READ textRole WRITE setTextRole NOTIFY textRoleChanged FINAL)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
- Q_PROPERTY(QQuickItem *indicator READ indicator WRITE setIndicator NOTIFY indicatorChanged FINAL)
- Q_PROPERTY(QQuickPopup *popup READ popup WRITE setPopup NOTIFY popupChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(bool flat READ isFlat WRITE setFlat NOTIFY flatChanged FINAL REVISION 1)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(bool down READ isDown WRITE setDown RESET resetDown NOTIFY downChanged FINAL REVISION 2)
- Q_PROPERTY(bool editable READ isEditable WRITE setEditable NOTIFY editableChanged FINAL REVISION 2)
- Q_PROPERTY(QString editText READ editText WRITE setEditText RESET resetEditText NOTIFY editTextChanged FINAL REVISION 2)
- Q_PROPERTY(QValidator *validator READ validator WRITE setValidator NOTIFY validatorChanged FINAL REVISION 2)
- Q_PROPERTY(Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints NOTIFY inputMethodHintsChanged FINAL REVISION 2)
- Q_PROPERTY(bool inputMethodComposing READ isInputMethodComposing NOTIFY inputMethodComposingChanged FINAL REVISION 2)
- Q_PROPERTY(bool acceptableInput READ hasAcceptableInput NOTIFY acceptableInputChanged FINAL REVISION 2)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal implicitIndicatorWidth READ implicitIndicatorWidth NOTIFY implicitIndicatorWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitIndicatorHeight READ implicitIndicatorHeight NOTIFY implicitIndicatorHeightChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background,contentItem,indicator,popup")
- // 2.14 (Qt 5.14)
- Q_PROPERTY(QVariant currentValue READ currentValue NOTIFY currentValueChanged FINAL REVISION 14)
- Q_PROPERTY(QString valueRole READ valueRole WRITE setValueRole NOTIFY valueRoleChanged FINAL REVISION 14)
-
-public:
- explicit QQuickComboBox(QQuickItem *parent = nullptr);
- ~QQuickComboBox();
-
- int count() const;
-
- QVariant model() const;
- void setModel(const QVariant &model);
- QQmlInstanceModel *delegateModel() const;
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
- int highlightedIndex() const;
-
- int currentIndex() const;
- void setCurrentIndex(int index);
-
- QString currentText() const;
-
- QString displayText() const;
- void setDisplayText(const QString &text);
- void resetDisplayText();
-
- QString textRole() const;
- void setTextRole(const QString &role);
-
- QString valueRole() const;
- void setValueRole(const QString &role);
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
- QQuickItem *indicator() const;
- void setIndicator(QQuickItem *indicator);
-
- QQuickPopup *popup() const;
- void setPopup(QQuickPopup *popup);
-
- Q_INVOKABLE QString textAt(int index) const;
- Q_INVOKABLE int find(const QString &text, Qt::MatchFlags flags = Qt::MatchExactly) const;
-
- // 2.1 (Qt 5.8)
- bool isFlat() const;
- void setFlat(bool flat);
-
- // 2.2 (Qt 5.9)
- bool isDown() const;
- void setDown(bool down);
- void resetDown();
-
- bool isEditable() const;
- void setEditable(bool editable);
-
- QString editText() const;
- void setEditText(const QString &text);
- void resetEditText();
-
- QValidator *validator() const;
- void setValidator(QValidator *validator);
-
- Qt::InputMethodHints inputMethodHints() const;
- void setInputMethodHints(Qt::InputMethodHints hints);
-
- bool isInputMethodComposing() const;
- bool hasAcceptableInput() const;
-
- // 2.5 (Qt 5.12)
- qreal implicitIndicatorWidth() const;
- qreal implicitIndicatorHeight() const;
-
- // 2.14 (Qt 5.14)
- QVariant currentValue() const;
- Q_REVISION(14) Q_INVOKABLE QVariant valueAt(int index) const;
- Q_REVISION(14) Q_INVOKABLE int indexOfValue(const QVariant &value) const;
-
-public Q_SLOTS:
- void incrementCurrentIndex();
- void decrementCurrentIndex();
- Q_REVISION(2) void selectAll();
-
-Q_SIGNALS:
- void activated(int index);
- void highlighted(int index);
- void countChanged();
- void modelChanged();
- void delegateModelChanged();
- void pressedChanged();
- void highlightedIndexChanged();
- void currentIndexChanged();
- void currentTextChanged();
- void displayTextChanged();
- void textRoleChanged();
- void delegateChanged();
- void indicatorChanged();
- void popupChanged();
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void flatChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void accepted();
- Q_REVISION(2) void downChanged();
- Q_REVISION(2) void editableChanged();
- Q_REVISION(2) void editTextChanged();
- Q_REVISION(2) void validatorChanged();
- Q_REVISION(2) void inputMethodHintsChanged();
- Q_REVISION(2) void inputMethodComposingChanged();
- Q_REVISION(2) void acceptableInputChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void implicitIndicatorWidthChanged();
- Q_REVISION(5) void implicitIndicatorHeightChanged();
- // 2.14 (Qt 5.14)
- Q_REVISION(14) void valueRoleChanged();
- Q_REVISION(14) void currentValueChanged();
-
-protected:
- bool eventFilter(QObject *object, QEvent *event) override;
- void focusInEvent(QFocusEvent *event) override;
- void focusOutEvent(QFocusEvent *event) override;
-#if QT_CONFIG(im)
- void inputMethodEvent(QInputMethodEvent *event) override;
-#endif
- void keyPressEvent(QKeyEvent *event) override;
- void keyReleaseEvent(QKeyEvent *event) override;
-#if QT_CONFIG(wheelevent)
- void wheelEvent(QWheelEvent *event) override;
-#endif
-
- void componentComplete() override;
- void itemChange(ItemChange change, const ItemChangeData &value) override;
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
- void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
- void accessibilityActiveChanged(bool active) override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickComboBox)
- Q_DECLARE_PRIVATE(QQuickComboBox)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickComboBox)
-
-#endif // QQUICKCOMBOBOX_P_H
diff --git a/src/quicktemplates2/qquickcontainer.cpp b/src/quicktemplates2/qquickcontainer.cpp
deleted file mode 100644
index 609c2079..00000000
--- a/src/quicktemplates2/qquickcontainer.cpp
+++ /dev/null
@@ -1,929 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickcontainer_p.h"
-#include "qquickcontainer_p_p.h"
-
-#include <QtQuick/private/qquickflickable_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Container
- \inherits Control
- \instantiates QQuickContainer
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-containers
- \brief Abstract base type providing functionality common to containers.
-
- Container is the base type of container-like user interface controls that
- allow dynamic insertion and removal of items.
-
- \section2 Using Containers
-
- Typically, items are statically declared as children of Container, but it
- is also possible to \l {addItem}{add}, \l {insertItem}{insert},
- \l {moveItem}{move} and \l {removeItem}{remove} items dynamically. The
- items in a container can be accessed using \l itemAt() or
- \l contentChildren.
-
- Most containers have the concept of a "current" item. The current item is
- specified via the \l currentIndex property, and can be accessed using the
- read-only \l currentItem property.
-
- The following example illustrates dynamic insertion of items to a \l TabBar,
- which is one of the concrete implementations of Container.
-
- \code
- Row {
- TabBar {
- id: tabBar
-
- currentIndex: 0
- width: parent.width - addButton.width
-
- TabButton { text: "TabButton" }
- }
-
- Component {
- id: tabButton
- TabButton { text: "TabButton" }
- }
-
- Button {
- id: addButton
- text: "+"
- flat: true
- onClicked: {
- tabBar.addItem(tabButton.createObject(tabBar))
- console.log("added:", tabBar.itemAt(tabBar.count - 1))
- }
- }
- }
- \endcode
-
- \section2 Managing the Current Index
-
- When using multiple containers, such as \l TabBar and \l SwipeView, together,
- their \l currentIndex properties can be bound to each other to keep them in
- sync. When the user interacts with either container, its current index changes
- automatically propagate to the other container.
-
- Notice, however, that assigning a \c currentIndex value in JavaScript removes
- the respective binding. In order to retain the bindings, use the following
- methods to alter the current index:
-
- \list
- \li \l incrementCurrentIndex()
- \li \l decrementCurrentIndex()
- \li \l setCurrentIndex(int index)
- \endlist
-
- \code
- TabBar {
- id: tabBar
- currentIndex: swipeView.currentIndex
- }
-
- SwipeView {
- id: swipeView
- currentIndex: tabBar.currentIndex
- }
-
- Button {
- text: qsTr("Home")
- onClicked: swipeView.setCurrentIndex(0)
- enabled: swipeView.currentIndex != 0
- }
-
- Button {
- text: qsTr("Previous")
- onClicked: swipeView.decrementCurrentIndex()
- enabled: swipeView.currentIndex > 0
- }
-
- Button {
- text: qsTr("Next")
- onClicked: swipeView.incrementCurrentIndex()
- enabled: swipeView.currentIndex < swipeView.count - 1
- }
- \endcode
-
-
- \section2 Implementing Containers
-
- Container does not provide any default visualization. It is used to implement
- such containers as \l SwipeView and \l TabBar. When implementing a custom
- container, the most important part of the API is \l contentModel, which provides
- the contained items in a way that it can be used as a delegate model for item
- views and repeaters.
-
- \code
- Container {
- id: container
-
- contentItem: ListView {
- model: container.contentModel
- snapMode: ListView.SnapOneItem
- orientation: ListView.Horizontal
- }
-
- Text {
- text: "Page 1"
- width: container.width
- height: container.height
- }
-
- Text {
- text: "Page 2"
- width: container.width
- height: container.height
- }
- }
- \endcode
-
- Notice how the sizes of the page items are set by hand. This is because the
- example uses a plain Container, which does not make any assumptions on the
- visual layout. It is typically not necessary to specify sizes for items in
- concrete Container implementations, such as \l SwipeView and \l TabBar.
-
- \sa {Container Controls}
-*/
-
-static QQuickItem *effectiveContentItem(QQuickItem *item)
-{
- QQuickFlickable *flickable = qobject_cast<QQuickFlickable *>(item);
- if (flickable)
- return flickable->contentItem();
- return item;
-}
-
-void QQuickContainerPrivate::init()
-{
- Q_Q(QQuickContainer);
- contentModel = new QQmlObjectModel(q);
- QObject::connect(contentModel, &QQmlObjectModel::countChanged, q, &QQuickContainer::countChanged);
- QObject::connect(contentModel, &QQmlObjectModel::childrenChanged, q, &QQuickContainer::contentChildrenChanged);
- connect(q, &QQuickControl::implicitContentWidthChanged, this, &QQuickContainerPrivate::updateContentWidth);
- connect(q, &QQuickControl::implicitContentHeightChanged, this, &QQuickContainerPrivate::updateContentHeight);
-}
-
-void QQuickContainerPrivate::cleanup()
-{
- Q_Q(QQuickContainer);
- // ensure correct destruction order (QTBUG-46798)
- const int count = contentModel->count();
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = itemAt(i);
- if (item)
- QQuickItemPrivate::get(item)->removeItemChangeListener(this, changeTypes);
- }
-
- if (contentItem) {
- QQuickItem *focusItem = QQuickItemPrivate::get(contentItem)->subFocusItem;
- if (focusItem && window)
- QQuickWindowPrivate::get(window)->clearFocusInScope(contentItem, focusItem, Qt::OtherFocusReason);
-
- q->contentItemChange(nullptr, contentItem);
- delete contentItem;
- }
-
- QObject::disconnect(contentModel, &QQmlObjectModel::countChanged, q, &QQuickContainer::countChanged);
- QObject::disconnect(contentModel, &QQmlObjectModel::childrenChanged, q, &QQuickContainer::contentChildrenChanged);
- delete contentModel;
-}
-
-QQuickItem *QQuickContainerPrivate::itemAt(int index) const
-{
- return qobject_cast<QQuickItem *>(contentModel->get(index));
-}
-
-void QQuickContainerPrivate::insertItem(int index, QQuickItem *item)
-{
- Q_Q(QQuickContainer);
- if (!q->isContent(item))
- return;
- contentData.append(item);
-
- updatingCurrent = true;
-
- item->setParentItem(effectiveContentItem(getContentItem()));
- QQuickItemPrivate::get(item)->addItemChangeListener(this, changeTypes);
- contentModel->insert(index, item);
-
- q->itemAdded(index, item);
-
- int count = contentModel->count();
- for (int i = index + 1; i < count; ++i)
- q->itemMoved(i, itemAt(i));
-
- if (count == 1 && currentIndex == -1)
- q->setCurrentIndex(index);
-
- updatingCurrent = false;
-}
-
-void QQuickContainerPrivate::moveItem(int from, int to, QQuickItem *item)
-{
- Q_Q(QQuickContainer);
- int oldCurrent = currentIndex;
- contentModel->move(from, to);
-
- updatingCurrent = true;
-
- q->itemMoved(to, item);
-
- if (from < to) {
- for (int i = from; i < to; ++i)
- q->itemMoved(i, itemAt(i));
- } else {
- for (int i = from; i > to; --i)
- q->itemMoved(i, itemAt(i));
- }
-
- if (from == oldCurrent)
- q->setCurrentIndex(to);
- else if (from < oldCurrent && to >= oldCurrent)
- q->setCurrentIndex(oldCurrent - 1);
- else if (from > oldCurrent && to <= oldCurrent)
- q->setCurrentIndex(oldCurrent + 1);
-
- updatingCurrent = false;
-}
-
-void QQuickContainerPrivate::removeItem(int index, QQuickItem *item)
-{
- Q_Q(QQuickContainer);
- if (!q->isContent(item))
- return;
- contentData.removeOne(item);
-
- updatingCurrent = true;
-
- int count = contentModel->count();
- bool currentChanged = false;
- if (index == currentIndex && (index != 0 || count == 1)) {
- q->setCurrentIndex(currentIndex - 1);
- } else if (index < currentIndex) {
- --currentIndex;
- currentChanged = true;
- }
-
- QQuickItemPrivate::get(item)->removeItemChangeListener(this, changeTypes);
- item->setParentItem(nullptr);
- contentModel->remove(index);
- --count;
-
- q->itemRemoved(index, item);
-
- for (int i = index; i < count; ++i)
- q->itemMoved(i, itemAt(i));
-
- if (currentChanged)
- emit q->currentIndexChanged();
-
- updatingCurrent = false;
-}
-
-void QQuickContainerPrivate::reorderItems()
-{
- Q_Q(QQuickContainer);
- if (!contentItem)
- return;
-
- QList<QQuickItem *> siblings = effectiveContentItem(contentItem)->childItems();
-
- int to = 0;
- for (int i = 0; i < siblings.count(); ++i) {
- QQuickItem* sibling = siblings.at(i);
- if (QQuickItemPrivate::get(sibling)->isTransparentForPositioner())
- continue;
- int index = contentModel->indexOf(sibling, nullptr);
- q->moveItem(index, to++);
- }
-}
-
-void QQuickContainerPrivate::_q_currentIndexChanged()
-{
- Q_Q(QQuickContainer);
- if (!updatingCurrent)
- q->setCurrentIndex(contentItem ? contentItem->property("currentIndex").toInt() : -1);
-}
-
-void QQuickContainerPrivate::itemChildAdded(QQuickItem *, QQuickItem *child)
-{
- // add dynamically reparented items (eg. by a Repeater)
- if (!QQuickItemPrivate::get(child)->isTransparentForPositioner() && !contentData.contains(child))
- insertItem(contentModel->count(), child);
-}
-
-void QQuickContainerPrivate::itemParentChanged(QQuickItem *item, QQuickItem *parent)
-{
- // remove dynamically unparented items (eg. by a Repeater)
- if (!parent)
- removeItem(contentModel->indexOf(item, nullptr), item);
-}
-
-void QQuickContainerPrivate::itemSiblingOrderChanged(QQuickItem *)
-{
- if (!componentComplete)
- return;
-
- // reorder the restacked items (eg. by a Repeater)
- reorderItems();
-}
-
-void QQuickContainerPrivate::itemDestroyed(QQuickItem *item)
-{
- int index = contentModel->indexOf(item, nullptr);
- if (index != -1)
- removeItem(index, item);
- else
- QQuickControlPrivate::itemDestroyed(item);
-}
-
-void QQuickContainerPrivate::contentData_append(QQmlListProperty<QObject> *prop, QObject *obj)
-{
- QQuickContainer *q = static_cast<QQuickContainer *>(prop->object);
- QQuickContainerPrivate *p = QQuickContainerPrivate::get(q);
- QQuickItem *item = qobject_cast<QQuickItem *>(obj);
- if (item) {
- if (QQuickItemPrivate::get(item)->isTransparentForPositioner())
- item->setParentItem(effectiveContentItem(p->contentItem));
- else if (p->contentModel->indexOf(item, nullptr) == -1)
- q->addItem(item);
- } else {
- p->contentData.append(obj);
- }
-}
-
-int QQuickContainerPrivate::contentData_count(QQmlListProperty<QObject> *prop)
-{
- QQuickContainer *q = static_cast<QQuickContainer *>(prop->object);
- return QQuickContainerPrivate::get(q)->contentData.count();
-}
-
-QObject *QQuickContainerPrivate::contentData_at(QQmlListProperty<QObject> *prop, int index)
-{
- QQuickContainer *q = static_cast<QQuickContainer *>(prop->object);
- return QQuickContainerPrivate::get(q)->contentData.value(index);
-}
-
-void QQuickContainerPrivate::contentData_clear(QQmlListProperty<QObject> *prop)
-{
- QQuickContainer *q = static_cast<QQuickContainer *>(prop->object);
- return QQuickContainerPrivate::get(q)->contentData.clear();
-}
-
-void QQuickContainerPrivate::contentChildren_append(QQmlListProperty<QQuickItem> *prop, QQuickItem *item)
-{
- QQuickContainer *q = static_cast<QQuickContainer *>(prop->object);
- q->addItem(item);
-}
-
-int QQuickContainerPrivate::contentChildren_count(QQmlListProperty<QQuickItem> *prop)
-{
- QQuickContainer *q = static_cast<QQuickContainer *>(prop->object);
- return QQuickContainerPrivate::get(q)->contentModel->count();
-}
-
-QQuickItem *QQuickContainerPrivate::contentChildren_at(QQmlListProperty<QQuickItem> *prop, int index)
-{
- QQuickContainer *q = static_cast<QQuickContainer *>(prop->object);
- return q->itemAt(index);
-}
-
-void QQuickContainerPrivate::contentChildren_clear(QQmlListProperty<QQuickItem> *prop)
-{
- QQuickContainer *q = static_cast<QQuickContainer *>(prop->object);
- return QQuickContainerPrivate::get(q)->contentModel->clear();
-}
-
-void QQuickContainerPrivate::updateContentWidth()
-{
- Q_Q(QQuickContainer);
- if (hasContentWidth || qFuzzyCompare(contentWidth, implicitContentWidth))
- return;
-
- contentWidth = implicitContentWidth;
- emit q->contentWidthChanged();
-}
-
-void QQuickContainerPrivate::updateContentHeight()
-{
- Q_Q(QQuickContainer);
- if (hasContentHeight || qFuzzyCompare(contentHeight, implicitContentHeight))
- return;
-
- contentHeight = implicitContentHeight;
- emit q->contentHeightChanged();
-}
-
-QQuickContainer::QQuickContainer(QQuickItem *parent)
- : QQuickControl(*(new QQuickContainerPrivate), parent)
-{
- Q_D(QQuickContainer);
- d->init();
-}
-
-QQuickContainer::QQuickContainer(QQuickContainerPrivate &dd, QQuickItem *parent)
- : QQuickControl(dd, parent)
-{
- Q_D(QQuickContainer);
- d->init();
-}
-
-QQuickContainer::~QQuickContainer()
-{
- Q_D(QQuickContainer);
- d->cleanup();
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::Container::count
- \readonly
-
- This property holds the number of items.
-*/
-int QQuickContainer::count() const
-{
- Q_D(const QQuickContainer);
- return d->contentModel->count();
-}
-
-/*!
- \qmlmethod Item QtQuick.Controls::Container::itemAt(int index)
-
- Returns the item at \a index, or \c null if it does not exist.
-*/
-QQuickItem *QQuickContainer::itemAt(int index) const
-{
- Q_D(const QQuickContainer);
- return d->itemAt(index);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Container::addItem(Item item)
-
- Adds an \a item.
-*/
-void QQuickContainer::addItem(QQuickItem *item)
-{
- Q_D(QQuickContainer);
- insertItem(d->contentModel->count(), item);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Container::insertItem(int index, Item item)
-
- Inserts an \a item at \a index.
-*/
-void QQuickContainer::insertItem(int index, QQuickItem *item)
-{
- Q_D(QQuickContainer);
- if (!item)
- return;
- const int count = d->contentModel->count();
- if (index < 0 || index > count)
- index = count;
-
- int oldIndex = d->contentModel->indexOf(item, nullptr);
- if (oldIndex != -1) {
- if (oldIndex < index)
- --index;
- if (oldIndex != index)
- d->moveItem(oldIndex, index, item);
- } else {
- d->insertItem(index, item);
- }
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Container::moveItem(int from, int to)
-
- Moves an item \a from one index \a to another.
-*/
-void QQuickContainer::moveItem(int from, int to)
-{
- Q_D(QQuickContainer);
- const int count = d->contentModel->count();
- if (from < 0 || from > count - 1)
- return;
- if (to < 0 || to > count - 1)
- to = count - 1;
-
- if (from != to)
- d->moveItem(from, to, d->itemAt(from));
-}
-
-/*!
- \deprecated
- \qmlmethod void QtQuick.Controls::Container::removeItem(int index)
-
- Use Container::removeItem(Item) or Container::takeItem(int) instead.
-*/
-void QQuickContainer::removeItem(const QVariant &var)
-{
- if (var.userType() == QMetaType::Nullptr)
- return;
-
- if (QQuickItem *item = var.value<QQuickItem *>())
- removeItem(item);
- else
- takeItem(var.toInt());
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Container::removeItem(Item item)
-
- Removes and destroys the specified \a item.
-*/
-void QQuickContainer::removeItem(QQuickItem *item)
-{
- Q_D(QQuickContainer);
- if (!item)
- return;
-
- const int index = d->contentModel->indexOf(item, nullptr);
- if (index == -1)
- return;
-
- d->removeItem(index, item);
- item->deleteLater();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod Item QtQuick.Controls::Container::takeItem(int index)
-
- Removes and returns the item at \a index.
-
- \note The ownership of the item is transferred to the caller.
-*/
-QQuickItem *QQuickContainer::takeItem(int index)
-{
- Q_D(QQuickContainer);
- const int count = d->contentModel->count();
- if (index < 0 || index >= count)
- return nullptr;
-
- QQuickItem *item = itemAt(index);
- if (item)
- d->removeItem(index, item);
- return item;
-}
-
-/*!
- \qmlproperty model QtQuick.Controls::Container::contentModel
- \readonly
-
- This property holds the content model of items.
-
- The content model is provided for visualization purposes. It can be assigned
- as a model to a content item that presents the contents of the container.
-
- \code
- Container {
- id: container
- contentItem: ListView {
- model: container.contentModel
- }
- }
- \endcode
-
- \sa contentData, contentChildren
-*/
-QVariant QQuickContainer::contentModel() const
-{
- Q_D(const QQuickContainer);
- return QVariant::fromValue(d->contentModel);
-}
-
-/*!
- \qmlproperty list<Object> QtQuick.Controls::Container::contentData
- \default
-
- This property holds the list of content data.
-
- The list contains all objects that have been declared in QML as children
- of the container, and also items that have been dynamically added or
- inserted using the \l addItem() and \l insertItem() methods, respectively.
-
- \note Unlike \c contentChildren, \c contentData does include non-visual QML
- objects. It is not re-ordered when items are inserted or moved.
-
- \sa Item::data, contentChildren
-*/
-QQmlListProperty<QObject> QQuickContainer::contentData()
-{
- Q_D(QQuickContainer);
- if (!d->contentItem)
- d->executeContentItem();
- return QQmlListProperty<QObject>(this, nullptr,
- QQuickContainerPrivate::contentData_append,
- QQuickContainerPrivate::contentData_count,
- QQuickContainerPrivate::contentData_at,
- QQuickContainerPrivate::contentData_clear);
-}
-
-/*!
- \qmlproperty list<Item> QtQuick.Controls::Container::contentChildren
-
- This property holds the list of content children.
-
- The list contains all items that have been declared in QML as children
- of the container, and also items that have been dynamically added or
- inserted using the \l addItem() and \l insertItem() methods, respectively.
-
- \note Unlike \c contentData, \c contentChildren does not include non-visual
- QML objects. It is re-ordered when items are inserted or moved.
-
- \sa Item::children, contentData
-*/
-QQmlListProperty<QQuickItem> QQuickContainer::contentChildren()
-{
- return QQmlListProperty<QQuickItem>(this, nullptr,
- QQuickContainerPrivate::contentChildren_append,
- QQuickContainerPrivate::contentChildren_count,
- QQuickContainerPrivate::contentChildren_at,
- QQuickContainerPrivate::contentChildren_clear);
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::Container::currentIndex
-
- This property holds the index of the current item.
-
- \sa currentItem, {Managing the Current Index}
-*/
-int QQuickContainer::currentIndex() const
-{
- Q_D(const QQuickContainer);
- return d->currentIndex;
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Container::setCurrentIndex(int index)
-
- Sets the current index of the container.
-
- This method can be called to set a specific current index without breaking
- existing \c currentIndex bindings.
-
- \sa currentIndex, {Managing the Current Index}
-*/
-void QQuickContainer::setCurrentIndex(int index)
-{
- Q_D(QQuickContainer);
- if (d->currentIndex == index)
- return;
-
- d->currentIndex = index;
- emit currentIndexChanged();
- emit currentItemChanged();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Container::incrementCurrentIndex()
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- Increments the current index of the container.
-
- This method can be called to alter the current index without breaking
- existing \c currentIndex bindings.
-
- \sa currentIndex, {Managing the Current Index}
-*/
-void QQuickContainer::incrementCurrentIndex()
-{
- Q_D(QQuickContainer);
- if (d->currentIndex < count() - 1)
- setCurrentIndex(d->currentIndex + 1);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Container::decrementCurrentIndex()
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- Decrements the current index of the container.
-
- This method can be called to alter the current index without breaking
- existing \c currentIndex bindings.
-
- \sa currentIndex, {Managing the Current Index}
-*/
-void QQuickContainer::decrementCurrentIndex()
-{
- Q_D(QQuickContainer);
- if (d->currentIndex > 0)
- setCurrentIndex(d->currentIndex - 1);
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Container::currentItem
- \readonly
-
- This property holds the current item.
-
- \sa currentIndex
-*/
-QQuickItem *QQuickContainer::currentItem() const
-{
- Q_D(const QQuickContainer);
- return itemAt(d->currentIndex);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Container::contentWidth
-
- This property holds the content width. It is used for calculating the total
- implicit width of the container.
-
- Unless explicitly overridden, the content width is automatically calculated
- based on the implicit width of the items in the container.
-
- \sa contentHeight
-*/
-qreal QQuickContainer::contentWidth() const
-{
- Q_D(const QQuickContainer);
- return d->contentWidth;
-}
-
-void QQuickContainer::setContentWidth(qreal width)
-{
- Q_D(QQuickContainer);
- d->hasContentWidth = true;
- if (qFuzzyCompare(d->contentWidth, width))
- return;
-
- d->contentWidth = width;
- d->resizeContent();
- emit contentWidthChanged();
-}
-
-void QQuickContainer::resetContentWidth()
-{
- Q_D(QQuickContainer);
- if (!d->hasContentWidth)
- return;
-
- d->hasContentWidth = false;
- d->updateContentWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Container::contentHeight
-
- This property holds the content height. It is used for calculating the total
- implicit height of the container.
-
- Unless explicitly overridden, the content height is automatically calculated
- based on the implicit height of the items in the container.
-
- \sa contentWidth
-*/
-qreal QQuickContainer::contentHeight() const
-{
- Q_D(const QQuickContainer);
- return d->contentHeight;
-}
-
-void QQuickContainer::setContentHeight(qreal height)
-{
- Q_D(QQuickContainer);
- d->hasContentHeight = true;
- if (qFuzzyCompare(d->contentHeight, height))
- return;
-
- d->contentHeight = height;
- d->resizeContent();
- emit contentHeightChanged();
-}
-
-void QQuickContainer::resetContentHeight()
-{
- Q_D(QQuickContainer);
- if (!d->hasContentHeight)
- return;
-
- d->hasContentHeight = false;
- d->updateContentHeight();
-}
-
-void QQuickContainer::componentComplete()
-{
- Q_D(QQuickContainer);
- QQuickControl::componentComplete();
- d->reorderItems();
-}
-
-void QQuickContainer::itemChange(ItemChange change, const ItemChangeData &data)
-{
- Q_D(QQuickContainer);
- QQuickControl::itemChange(change, data);
- if (change == QQuickItem::ItemChildAddedChange && isComponentComplete() && data.item != d->background && data.item != d->contentItem) {
- if (!QQuickItemPrivate::get(data.item)->isTransparentForPositioner() && d->contentModel->indexOf(data.item, nullptr) == -1)
- addItem(data.item);
- }
-}
-
-void QQuickContainer::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickContainer);
- QQuickControl::contentItemChange(newItem, oldItem);
-
- static const int slotIndex = metaObject()->indexOfSlot("_q_currentIndexChanged()");
-
- if (oldItem) {
- QQuickItemPrivate::get(oldItem)->removeItemChangeListener(d, QQuickItemPrivate::Children | QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight);
- QQuickItem *oldContentItem = effectiveContentItem(oldItem);
- if (oldContentItem != oldItem)
- QQuickItemPrivate::get(oldContentItem)->removeItemChangeListener(d, QQuickItemPrivate::Children);
-
- int signalIndex = oldItem->metaObject()->indexOfSignal("currentIndexChanged()");
- if (signalIndex != -1)
- QMetaObject::disconnect(oldItem, signalIndex, this, slotIndex);
- }
-
- if (newItem) {
- QQuickItemPrivate::get(newItem)->addItemChangeListener(d, QQuickItemPrivate::Children | QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight);
- QQuickItem *newContentItem = effectiveContentItem(newItem);
- if (newContentItem != newItem)
- QQuickItemPrivate::get(newContentItem)->addItemChangeListener(d, QQuickItemPrivate::Children);
-
- int signalIndex = newItem->metaObject()->indexOfSignal("currentIndexChanged()");
- if (signalIndex != -1)
- QMetaObject::connect(newItem, signalIndex, this, slotIndex);
- }
-}
-
-bool QQuickContainer::isContent(QQuickItem *item) const
-{
- // If the item has a QML context associated to it (it was created in QML),
- // we add it to the content model. Otherwise, it's probably the default
- // highlight item that is always created by the item views, which we need
- // to exclude.
- //
- // TODO: Find a better way to identify/exclude the highlight item...
- return qmlContext(item);
-}
-
-void QQuickContainer::itemAdded(int index, QQuickItem *item)
-{
- Q_UNUSED(index);
- Q_UNUSED(item);
-}
-
-void QQuickContainer::itemMoved(int index, QQuickItem *item)
-{
- Q_UNUSED(index);
- Q_UNUSED(item);
-}
-
-void QQuickContainer::itemRemoved(int index, QQuickItem *item)
-{
- Q_UNUSED(index);
- Q_UNUSED(item);
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquickcontainer_p.cpp"
diff --git a/src/quicktemplates2/qquickcontainer_p.h b/src/quicktemplates2/qquickcontainer_p.h
deleted file mode 100644
index 310aacd1..00000000
--- a/src/quicktemplates2/qquickcontainer_p.h
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCONTAINER_P_H
-#define QQUICKCONTAINER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQml/qqmllist.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickContainerPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickContainer : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(int count READ count NOTIFY countChanged FINAL)
- Q_PROPERTY(QVariant contentModel READ contentModel CONSTANT FINAL)
- Q_PROPERTY(QQmlListProperty<QObject> contentData READ contentData FINAL)
- Q_PROPERTY(QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
- Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL)
- Q_PROPERTY(QQuickItem *currentItem READ currentItem NOTIFY currentItemChanged FINAL)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL REVISION 5)
- Q_CLASSINFO("DefaultProperty", "contentData")
-
-public:
- explicit QQuickContainer(QQuickItem *parent = nullptr);
- ~QQuickContainer();
-
- int count() const;
- Q_INVOKABLE QQuickItem *itemAt(int index) const;
- Q_INVOKABLE void addItem(QQuickItem *item);
- Q_INVOKABLE void insertItem(int index, QQuickItem *item);
- Q_INVOKABLE void moveItem(int from, int to);
- Q_INVOKABLE void removeItem(const QVariant &item); // ### Qt 6: remove
- void removeItem(QQuickItem *item); // ### Qt 6: Q_INVOKABLE
- // 2.3 (Qt 5.10)
- Q_REVISION(3) Q_INVOKABLE QQuickItem *takeItem(int index);
-
- QVariant contentModel() const;
- QQmlListProperty<QObject> contentData();
- QQmlListProperty<QQuickItem> contentChildren();
-
- int currentIndex() const;
- QQuickItem *currentItem() const;
-
- // 2.5 (Qt 5.12)
- qreal contentWidth() const;
- void setContentWidth(qreal width);
- void resetContentWidth();
-
- qreal contentHeight() const;
- void setContentHeight(qreal height);
- void resetContentHeight();
-
-public Q_SLOTS:
- void setCurrentIndex(int index);
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void incrementCurrentIndex();
- Q_REVISION(1) void decrementCurrentIndex();
-
-Q_SIGNALS:
- void countChanged();
- void contentChildrenChanged();
- void currentIndexChanged();
- void currentItemChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void contentWidthChanged();
- Q_REVISION(5) void contentHeightChanged();
-
-protected:
- QQuickContainer(QQuickContainerPrivate &dd, QQuickItem *parent);
-
- void componentComplete() override;
-
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
-
- virtual bool isContent(QQuickItem *item) const;
- virtual void itemAdded(int index, QQuickItem *item);
- virtual void itemMoved(int index, QQuickItem *item);
- virtual void itemRemoved(int index, QQuickItem *item);
-
-private:
- Q_DISABLE_COPY(QQuickContainer)
- Q_DECLARE_PRIVATE(QQuickContainer)
- Q_PRIVATE_SLOT(d_func(), void _q_currentIndexChanged())
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickContainer)
-
-#endif // QQUICKCONTAINER_P_H
diff --git a/src/quicktemplates2/qquickcontainer_p_p.h b/src/quicktemplates2/qquickcontainer_p_p.h
deleted file mode 100644
index 1a251b50..00000000
--- a/src/quicktemplates2/qquickcontainer_p_p.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCONTAINER_P_P_H
-#define QQUICKCONTAINER_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontainer_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <private/qqmlobjectmodel_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickContainerPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickContainer)
-
-public:
- static QQuickContainerPrivate *get(QQuickContainer *container)
- {
- return container->d_func();
- }
-
- void init();
- void cleanup();
-
- QQuickItem *itemAt(int index) const;
- void insertItem(int index, QQuickItem *item);
- void moveItem(int from, int to, QQuickItem *item);
- void removeItem(int index, QQuickItem *item);
- void reorderItems();
-
- void _q_currentIndexChanged();
-
- void itemChildAdded(QQuickItem *item, QQuickItem *child) override;
- void itemSiblingOrderChanged(QQuickItem *item) override;
- void itemParentChanged(QQuickItem *item, QQuickItem *parent) override;
- void itemDestroyed(QQuickItem *item) override;
-
- static void contentData_append(QQmlListProperty<QObject> *prop, QObject *obj);
- static int contentData_count(QQmlListProperty<QObject> *prop);
- static QObject *contentData_at(QQmlListProperty<QObject> *prop, int index);
- static void contentData_clear(QQmlListProperty<QObject> *prop);
-
- static void contentChildren_append(QQmlListProperty<QQuickItem> *prop, QQuickItem *obj);
- static int contentChildren_count(QQmlListProperty<QQuickItem> *prop);
- static QQuickItem *contentChildren_at(QQmlListProperty<QQuickItem> *prop, int index);
- static void contentChildren_clear(QQmlListProperty<QQuickItem> *prop);
-
- void updateContentWidth();
- void updateContentHeight();
-
- bool hasContentWidth = false;
- bool hasContentHeight = false;
- qreal contentWidth = 0;
- qreal contentHeight = 0;
- QObjectList contentData;
- QQmlObjectModel *contentModel = nullptr;
- int currentIndex = -1;
- bool updatingCurrent = false;
- QQuickItemPrivate::ChangeTypes changeTypes = Destroyed | Parent | SiblingOrder;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKCONTAINER_P_P_H
diff --git a/src/quicktemplates2/qquickcontentitem.cpp b/src/quicktemplates2/qquickcontentitem.cpp
deleted file mode 100644
index 95665f70..00000000
--- a/src/quicktemplates2/qquickcontentitem.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickcontentitem_p.h"
-
-#include <QtQml/private/qqmlmetatype_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \internal
-
- Helper class that aids debugging by producing more useful debugging output.
-*/
-
-QQuickContentItem::QQuickContentItem(QQuickItem *parent)
- : QQuickItem(parent)
-{
- setObjectName(QQmlMetaType::prettyTypeName(parent));
-}
-
-QQuickContentItem::QQuickContentItem(const QObject *scope, QQuickItem *parent)
- : QQuickItem(parent)
-{
- setObjectName(QQmlMetaType::prettyTypeName(scope));
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickcontentitem_p.h b/src/quicktemplates2/qquickcontentitem_p.h
deleted file mode 100644
index df0f0b24..00000000
--- a/src/quicktemplates2/qquickcontentitem_p.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCONTENTITEM_P_H
-#define QQUICKCONTENTITEM_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/qquickitem.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickContentItem : public QQuickItem
-{
- Q_OBJECT
-
-public:
- explicit QQuickContentItem(QQuickItem *parent = nullptr);
- explicit QQuickContentItem(const QObject *scope, QQuickItem *parent);
-
-private:
- Q_DISABLE_COPY(QQuickContentItem)
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKCONTENTITEM_P_H
diff --git a/src/quicktemplates2/qquickcontrol.cpp b/src/quicktemplates2/qquickcontrol.cpp
deleted file mode 100644
index e156fb57..00000000
--- a/src/quicktemplates2/qquickcontrol.cpp
+++ /dev/null
@@ -1,2308 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickcontrol_p.h"
-#include "qquickcontrol_p_p.h"
-
-#include <QtGui/qstylehints.h>
-#include <QtGui/qguiapplication.h>
-#include "qquicklabel_p.h"
-#include "qquicklabel_p_p.h"
-#include "qquicktextarea_p.h"
-#include "qquicktextarea_p_p.h"
-#include "qquicktextfield_p.h"
-#include "qquicktextfield_p_p.h"
-#include "qquickpopup_p.h"
-#include "qquickpopupitem_p_p.h"
-#include "qquickapplicationwindow_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#if QT_CONFIG(accessibility)
-#include <QtQuick/private/qquickaccessibleattached_p.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Control
- \inherits Item
- \instantiates QQuickControl
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \brief Abstract base type providing functionality common to all controls.
-
- Control is the base type of user interface controls. It receives input
- events from the window system, and paints a representation of itself on
- the screen.
-
- \section1 Control Layout
-
- The following diagram illustrates the layout of a typical control:
-
- \image qtquickcontrols2-control.png
-
- The \l {Item::}{implicitWidth} and \l {Item::}{implicitHeight} of a control
- are typically based on the implicit sizes of the background and the content
- item plus any insets and paddings. These properties determine how large
- the control will be when no explicit \l {Item::}{width} or
- \l {Item::}{height} is specified.
-
- The geometry of the \l {Control::}{contentItem} is determined by the padding.
- The following example reserves 10px padding between the boundaries of the
- control and its content:
-
- \code
- Control {
- padding: 10
-
- contentItem: Text {
- text: "Content"
- }
- }
- \endcode
-
- The \l {Control::}{background} item fills the entire width and height of the
- control, unless insets or an explicit size have been given for it. Background
- insets are useful for extending the touchable/interactive area of a control
- without affecting its visual size. This is often used on touch devices to
- ensure that a control is not too small to be interacted with by the user.
- Insets affect the size of the control, and hence will affect how much space
- they take up in a layout, for example.
-
- Negative insets can be used to make the background larger than the control.
- The following example uses negative insets to place a shadow outside the
- control's boundaries:
-
- \code
- Control {
- topInset: -2
- leftInset: -2
- rightInset: -6
- bottomInset: -6
-
- background: BorderImage {
- source: ":/images/shadowed-background.png"
- }
- }
- \endcode
-
- \section1 Event Handling
-
- All controls, except non-interactive indicators, do not let clicks and
- touches through to items below them. For example, the \c console.log()
- call in the example below will never be executed when clicking on the
- Pane, because the \l MouseArea is below it in the scene:
-
- \code
- MouseArea {
- anchors.fill: parent
- onClicked: console.log("MouseArea was clicked")
-
- Pane {
- anchors.fill: parent
- }
- }
- \endcode
-
- \sa ApplicationWindow, Container
-*/
-
-const QQuickItemPrivate::ChangeTypes QQuickControlPrivate::ImplicitSizeChanges = QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight | QQuickItemPrivate::Destroyed;
-
-static bool isKeyFocusReason(Qt::FocusReason reason)
-{
- return reason == Qt::TabFocusReason || reason == Qt::BacktabFocusReason || reason == Qt::ShortcutFocusReason;
-}
-
-QQuickControlPrivate::QQuickControlPrivate()
-{
-#if QT_CONFIG(accessibility)
- QAccessible::installActivationObserver(this);
-#endif
-}
-
-QQuickControlPrivate::~QQuickControlPrivate()
-{
-#if QT_CONFIG(accessibility)
- QAccessible::removeActivationObserver(this);
-#endif
-}
-
-void QQuickControlPrivate::init()
-{
- Q_Q(QQuickControl);
- QObject::connect(q, &QQuickItem::baselineOffsetChanged, q, &QQuickControl::baselineOffsetChanged);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-bool QQuickControlPrivate::acceptTouch(const QTouchEvent::TouchPoint &point)
-{
- if (point.id() == touchId)
- return true;
-
- if (touchId == -1 && point.state() == Qt::TouchPointPressed) {
- touchId = point.id();
- return true;
- }
-
- return false;
-}
-#endif
-
-static void setActiveFocus(QQuickControl *control, Qt::FocusReason reason)
-{
- QQuickControlPrivate *d = QQuickControlPrivate::get(control);
- if (d->subFocusItem && d->window && d->flags & QQuickItem::ItemIsFocusScope)
- QQuickWindowPrivate::get(d->window)->clearFocusInScope(control, d->subFocusItem, reason);
- control->forceActiveFocus(reason);
-}
-
-void QQuickControlPrivate::handlePress(const QPointF &)
-{
- Q_Q(QQuickControl);
- if ((focusPolicy & Qt::ClickFocus) == Qt::ClickFocus && !QGuiApplication::styleHints()->setFocusOnTouchRelease())
- setActiveFocus(q, Qt::MouseFocusReason);
-}
-
-void QQuickControlPrivate::handleMove(const QPointF &point)
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_Q(QQuickControl);
- q->setHovered(hoverEnabled && q->contains(point));
-#else
- Q_UNUSED(point);
-#endif
-}
-
-void QQuickControlPrivate::handleRelease(const QPointF &)
-{
- Q_Q(QQuickControl);
- if ((focusPolicy & Qt::ClickFocus) == Qt::ClickFocus && QGuiApplication::styleHints()->setFocusOnTouchRelease())
- setActiveFocus(q, Qt::MouseFocusReason);
- touchId = -1;
-}
-
-void QQuickControlPrivate::handleUngrab()
-{
- touchId = -1;
-}
-
-void QQuickControlPrivate::mirrorChange()
-{
- Q_Q(QQuickControl);
- if (locale.textDirection() == Qt::LeftToRight)
- q->mirrorChange();
-}
-
-void QQuickControlPrivate::setTopPadding(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldPadding = getPadding();
- extra.value().topPadding = value;
- extra.value().hasTopPadding = !reset;
- if ((!reset && !qFuzzyCompare(oldPadding.top(), value)) || (reset && !qFuzzyCompare(oldPadding.top(), getVerticalPadding()))) {
- emit q->topPaddingChanged();
- emit q->availableHeightChanged();
- q->paddingChange(getPadding(), oldPadding);
- }
-}
-
-void QQuickControlPrivate::setLeftPadding(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldPadding = getPadding();
- extra.value().leftPadding = value;
- extra.value().hasLeftPadding = !reset;
- if ((!reset && !qFuzzyCompare(oldPadding.left(), value)) || (reset && !qFuzzyCompare(oldPadding.left(), getHorizontalPadding()))) {
- emit q->leftPaddingChanged();
- emit q->availableWidthChanged();
- q->paddingChange(getPadding(), oldPadding);
- }
-}
-
-void QQuickControlPrivate::setRightPadding(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldPadding = getPadding();
- extra.value().rightPadding = value;
- extra.value().hasRightPadding = !reset;
- if ((!reset && !qFuzzyCompare(oldPadding.right(), value)) || (reset && !qFuzzyCompare(oldPadding.right(), getHorizontalPadding()))) {
- emit q->rightPaddingChanged();
- emit q->availableWidthChanged();
- q->paddingChange(getPadding(), oldPadding);
- }
-}
-
-void QQuickControlPrivate::setBottomPadding(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldPadding = getPadding();
- extra.value().bottomPadding = value;
- extra.value().hasBottomPadding = !reset;
- if ((!reset && !qFuzzyCompare(oldPadding.bottom(), value)) || (reset && !qFuzzyCompare(oldPadding.bottom(), getVerticalPadding()))) {
- emit q->bottomPaddingChanged();
- emit q->availableHeightChanged();
- q->paddingChange(getPadding(), oldPadding);
- }
-}
-
-void QQuickControlPrivate::setHorizontalPadding(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldPadding = getPadding();
- const qreal oldHorizontalPadding = getHorizontalPadding();
- horizontalPadding = value;
- hasHorizontalPadding = !reset;
- if ((!reset && !qFuzzyCompare(oldHorizontalPadding, value)) || (reset && !qFuzzyCompare(oldHorizontalPadding, padding))) {
- const QMarginsF newPadding = getPadding();
- if (!qFuzzyCompare(newPadding.left(), oldPadding.left()))
- emit q->leftPaddingChanged();
- if (!qFuzzyCompare(newPadding.right(), oldPadding.right()))
- emit q->rightPaddingChanged();
- emit q->horizontalPaddingChanged();
- emit q->availableWidthChanged();
- q->paddingChange(newPadding, oldPadding);
- }
-}
-
-void QQuickControlPrivate::setVerticalPadding(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldPadding = getPadding();
- const qreal oldVerticalPadding = getVerticalPadding();
- verticalPadding = value;
- hasVerticalPadding = !reset;
- if ((!reset && !qFuzzyCompare(oldVerticalPadding, value)) || (reset && !qFuzzyCompare(oldVerticalPadding, padding))) {
- const QMarginsF newPadding = getPadding();
- if (!qFuzzyCompare(newPadding.top(), oldPadding.top()))
- emit q->topPaddingChanged();
- if (!qFuzzyCompare(newPadding.bottom(), oldPadding.bottom()))
- emit q->bottomPaddingChanged();
- emit q->verticalPaddingChanged();
- emit q->availableHeightChanged();
- q->paddingChange(newPadding, oldPadding);
- }
-}
-
-void QQuickControlPrivate::setTopInset(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldInset = getInset();
- extra.value().topInset = value;
- extra.value().hasTopInset = !reset;
- if (!qFuzzyCompare(oldInset.top(), value)) {
- emit q->topInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickControlPrivate::setLeftInset(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldInset = getInset();
- extra.value().leftInset = value;
- extra.value().hasLeftInset = !reset;
- if (!qFuzzyCompare(oldInset.left(), value)) {
- emit q->leftInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickControlPrivate::setRightInset(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldInset = getInset();
- extra.value().rightInset = value;
- extra.value().hasRightInset = !reset;
- if (!qFuzzyCompare(oldInset.right(), value)) {
- emit q->rightInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickControlPrivate::setBottomInset(qreal value, bool reset)
-{
- Q_Q(QQuickControl);
- const QMarginsF oldInset = getInset();
- extra.value().bottomInset = value;
- extra.value().hasBottomInset = !reset;
- if (!qFuzzyCompare(oldInset.bottom(), value)) {
- emit q->bottomInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickControlPrivate::resizeBackground()
-{
- if (!background)
- return;
-
- resizingBackground = true;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (((!p->widthValid || !extra.isAllocated() || !extra->hasBackgroundWidth) && qFuzzyIsNull(background->x()))
- || (extra.isAllocated() && (extra->hasLeftInset || extra->hasRightInset))) {
- background->setX(getLeftInset());
- background->setWidth(width - getLeftInset() - getRightInset());
- }
- if (((!p->heightValid || !extra.isAllocated() || !extra->hasBackgroundHeight) && qFuzzyIsNull(background->y()))
- || (extra.isAllocated() && (extra->hasTopInset || extra->hasBottomInset))) {
- background->setY(getTopInset());
- background->setHeight(height - getTopInset() - getBottomInset());
- }
-
- resizingBackground = false;
-}
-
-void QQuickControlPrivate::resizeContent()
-{
- Q_Q(QQuickControl);
- if (contentItem) {
- contentItem->setPosition(QPointF(q->leftPadding(), q->topPadding()));
- contentItem->setSize(QSizeF(q->availableWidth(), q->availableHeight()));
- }
-}
-
-QQuickItem *QQuickControlPrivate::getContentItem()
-{
- if (!contentItem)
- executeContentItem();
- return contentItem;
-}
-
-void QQuickControlPrivate::setContentItem_helper(QQuickItem *item, bool notify)
-{
- Q_Q(QQuickControl);
- if (contentItem == item)
- return;
-
- if (!contentItem.isExecuting())
- cancelContentItem();
-
- QQuickItem *oldContentItem = contentItem;
- if (oldContentItem) {
- disconnect(oldContentItem, &QQuickItem::baselineOffsetChanged, this, &QQuickControlPrivate::updateBaselineOffset);
- removeImplicitSizeListener(oldContentItem);
- }
-
- contentItem = item;
- q->contentItemChange(item, oldContentItem);
- delete oldContentItem;
-
- if (item) {
- connect(contentItem.data(), &QQuickItem::baselineOffsetChanged, this, &QQuickControlPrivate::updateBaselineOffset);
- if (!item->parentItem())
- item->setParentItem(q);
- if (componentComplete)
- resizeContent();
- addImplicitSizeListener(contentItem);
- }
-
- updateImplicitContentSize();
- updateBaselineOffset();
-
- if (notify && !contentItem.isExecuting())
- emit q->contentItemChanged();
-}
-
-qreal QQuickControlPrivate::getContentWidth() const
-{
- return contentItem ? contentItem->implicitWidth() : 0;
-}
-
-qreal QQuickControlPrivate::getContentHeight() const
-{
- return contentItem ? contentItem->implicitHeight() : 0;
-}
-
-void QQuickControlPrivate::updateImplicitContentWidth()
-{
- Q_Q(QQuickControl);
- const qreal oldWidth = implicitContentWidth;
- implicitContentWidth = getContentWidth();
- if (!qFuzzyCompare(implicitContentWidth, oldWidth))
- emit q->implicitContentWidthChanged();
-}
-
-void QQuickControlPrivate::updateImplicitContentHeight()
-{
- Q_Q(QQuickControl);
- const qreal oldHeight = implicitContentHeight;
- implicitContentHeight = getContentHeight();
- if (!qFuzzyCompare(implicitContentHeight, oldHeight))
- emit q->implicitContentHeightChanged();
-}
-
-void QQuickControlPrivate::updateImplicitContentSize()
-{
- Q_Q(QQuickControl);
- const qreal oldWidth = implicitContentWidth;
- const qreal oldHeight = implicitContentHeight;
- implicitContentWidth = getContentWidth();
- implicitContentHeight = getContentHeight();
- if (!qFuzzyCompare(implicitContentWidth, oldWidth))
- emit q->implicitContentWidthChanged();
- if (!qFuzzyCompare(implicitContentHeight, oldHeight))
- emit q->implicitContentHeightChanged();
-}
-
-#if QT_CONFIG(accessibility)
-void QQuickControlPrivate::accessibilityActiveChanged(bool active)
-{
- Q_Q(QQuickControl);
- return q->accessibilityActiveChanged(active);
-}
-
-QAccessible::Role QQuickControlPrivate::accessibleRole() const
-{
- Q_Q(const QQuickControl);
- return q->accessibleRole();
-}
-
-QQuickAccessibleAttached *QQuickControlPrivate::accessibleAttached(const QObject *object)
-{
- if (!QAccessible::isActive())
- return nullptr;
- return QQuickAccessibleAttached::attachedProperties(object);
-}
-#endif
-
-/*!
- \internal
-
- Returns the font that the control w inherits from its ancestors and
- QGuiApplication::font.
-*/
-QFont QQuickControlPrivate::parentFont(const QQuickItem *item)
-{
- QQuickItem *p = item->parentItem();
- while (p) {
- if (QQuickControl *control = qobject_cast<QQuickControl *>(p))
- return control->font();
- else if (QQuickLabel *label = qobject_cast<QQuickLabel *>(p))
- return label->font();
- else if (QQuickTextField *textField = qobject_cast<QQuickTextField *>(p))
- return textField->font();
- else if (QQuickTextArea *textArea = qobject_cast<QQuickTextArea *>(p))
- return textArea->font();
-
- p = p->parentItem();
- }
-
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(item->window()))
- return window->font();
-
- return QQuickTheme::font(QQuickTheme::System);
-}
-
-/*!
- \internal
-
- Determine which font is implicitly imposed on this control by its ancestors
- and QGuiApplication::font, resolve this against its own font (attributes from
- the implicit font are copied over). Then propagate this font to this
- control's children.
-*/
-void QQuickControlPrivate::resolveFont()
-{
- Q_Q(QQuickControl);
- inheritFont(parentFont(q));
-}
-
-void QQuickControlPrivate::inheritFont(const QFont &font)
-{
- Q_Q(QQuickControl);
- QFont parentFont = extra.isAllocated() ? extra->requestedFont.resolve(font) : font;
- parentFont.resolve(extra.isAllocated() ? extra->requestedFont.resolve() | font.resolve() : font.resolve());
-
- const QFont defaultFont = q->defaultFont();
- const QFont resolvedFont = parentFont.resolve(defaultFont);
-
- setFont_helper(resolvedFont);
-}
-
-/*!
- \internal
-
- Assign \a font to this control, and propagate it to all children.
-*/
-void QQuickControlPrivate::updateFont(const QFont &font)
-{
- Q_Q(QQuickControl);
- QFont oldFont = resolvedFont;
- resolvedFont = font;
-
- if (oldFont != font)
- q->fontChange(font, oldFont);
-
- QQuickControlPrivate::updateFontRecur(q, font);
-
- if (oldFont != font)
- emit q->fontChanged();
-}
-
-void QQuickControlPrivate::updateFontRecur(QQuickItem *item, const QFont &font)
-{
- const auto childItems = item->childItems();
- for (QQuickItem *child : childItems) {
- if (QQuickControl *control = qobject_cast<QQuickControl *>(child))
- QQuickControlPrivate::get(control)->inheritFont(font);
- else if (QQuickLabel *label = qobject_cast<QQuickLabel *>(child))
- QQuickLabelPrivate::get(label)->inheritFont(font);
- else if (QQuickTextArea *textArea = qobject_cast<QQuickTextArea *>(child))
- QQuickTextAreaPrivate::get(textArea)->inheritFont(font);
- else if (QQuickTextField *textField = qobject_cast<QQuickTextField *>(child))
- QQuickTextFieldPrivate::get(textField)->inheritFont(font);
- else
- QQuickControlPrivate::updateFontRecur(child, font);
- }
-}
-
-/*!
- \internal
-
- Returns the palette that the item inherits from its ancestors and
- QGuiApplication::palette.
-*/
-QPalette QQuickControlPrivate::parentPalette(const QQuickItem *item)
-{
- QQuickItem *p = item->parentItem();
- while (p) {
- if (QQuickControl *control = qobject_cast<QQuickControl *>(p))
- return control->palette();
- else if (QQuickLabel *label = qobject_cast<QQuickLabel *>(p))
- return label->palette();
- else if (QQuickTextField *textField = qobject_cast<QQuickTextField *>(p))
- return textField->palette();
- else if (QQuickTextArea *textArea = qobject_cast<QQuickTextArea *>(p))
- return textArea->palette();
-
- p = p->parentItem();
- }
-
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(item->window()))
- return window->palette();
-
- return QQuickTheme::palette(QQuickTheme::System);
-}
-
-/*!
- \internal
-
- Determine which palette is implicitly imposed on this control by its ancestors
- and QGuiApplication::palette, resolve this against its own palette (attributes from
- the implicit palette are copied over). Then propagate this palette to this
- control's children.
-*/
-void QQuickControlPrivate::resolvePalette()
-{
- Q_Q(QQuickControl);
- inheritPalette(parentPalette(q));
-}
-
-void QQuickControlPrivate::inheritPalette(const QPalette &palette)
-{
- Q_Q(QQuickControl);
- QPalette parentPalette = extra.isAllocated() ? extra->requestedPalette.resolve(palette) : palette;
- parentPalette.resolve(extra.isAllocated() ? extra->requestedPalette.resolve() | palette.resolve() : palette.resolve());
-
- const QPalette defaultPalette = q->defaultPalette();
- const QPalette resolvedPalette = parentPalette.resolve(defaultPalette);
-
- setPalette_helper(resolvedPalette);
-}
-
-/*!
- \internal
-
- Assign \a palette to this control, and propagate it to all children.
-*/
-void QQuickControlPrivate::updatePalette(const QPalette &palette)
-{
- Q_Q(QQuickControl);
- QPalette oldPalette = resolvedPalette;
- resolvedPalette = palette;
-
- if (oldPalette != palette)
- q->paletteChange(palette, oldPalette);
-
- QQuickControlPrivate::updatePaletteRecur(q, palette);
-
- if (oldPalette != palette)
- emit q->paletteChanged();
-}
-
-void QQuickControlPrivate::updatePaletteRecur(QQuickItem *item, const QPalette &palette)
-{
- const auto childItems = item->childItems();
- for (QQuickItem *child : childItems) {
- if (QQuickControl *control = qobject_cast<QQuickControl *>(child))
- QQuickControlPrivate::get(control)->inheritPalette(palette);
- else if (QQuickLabel *label = qobject_cast<QQuickLabel *>(child))
- QQuickLabelPrivate::get(label)->inheritPalette(palette);
- else if (QQuickTextArea *textArea = qobject_cast<QQuickTextArea *>(child))
- QQuickTextAreaPrivate::get(textArea)->inheritPalette(palette);
- else if (QQuickTextField *textField = qobject_cast<QQuickTextField *>(child))
- QQuickTextFieldPrivate::get(textField)->inheritPalette(palette);
- else
- QQuickControlPrivate::updatePaletteRecur(child, palette);
- }
-}
-
-QLocale QQuickControlPrivate::calcLocale(const QQuickItem *item)
-{
- const QQuickItem *p = item;
- while (p) {
- if (const QQuickControl *control = qobject_cast<const QQuickControl *>(p))
- return control->locale();
-
- QVariant v = p->property("locale");
- if (v.isValid() && v.userType() == QMetaType::QLocale)
- return v.toLocale();
-
- p = p->parentItem();
- }
-
- if (item) {
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(item->window()))
- return window->locale();
- }
-
- return QLocale();
-}
-
-void QQuickControlPrivate::updateLocale(const QLocale &l, bool e)
-{
- Q_Q(QQuickControl);
- if (!e && hasLocale)
- return;
-
- QLocale old = q->locale();
- hasLocale = e;
- if (old != l) {
- bool wasMirrored = q->isMirrored();
- locale = l;
- q->localeChange(l, old);
- QQuickControlPrivate::updateLocaleRecur(q, l);
- emit q->localeChanged();
- if (wasMirrored != q->isMirrored())
- q->mirrorChange();
- }
-}
-
-void QQuickControlPrivate::updateLocaleRecur(QQuickItem *item, const QLocale &l)
-{
- const auto childItems = item->childItems();
- for (QQuickItem *child : childItems) {
- if (QQuickControl *control = qobject_cast<QQuickControl *>(child))
- QQuickControlPrivate::get(control)->updateLocale(l, false);
- else
- updateLocaleRecur(child, l);
- }
-}
-
-#if QT_CONFIG(quicktemplates2_hover)
-void QQuickControlPrivate::updateHoverEnabled(bool enabled, bool xplicit)
-{
- Q_Q(QQuickControl);
- if (!xplicit && explicitHoverEnabled)
- return;
-
- bool wasEnabled = q->isHoverEnabled();
- explicitHoverEnabled = xplicit;
- if (wasEnabled != enabled) {
- q->setAcceptHoverEvents(enabled);
- QQuickControlPrivate::updateHoverEnabledRecur(q, enabled);
- emit q->hoverEnabledChanged();
- }
-}
-
-void QQuickControlPrivate::updateHoverEnabledRecur(QQuickItem *item, bool enabled)
-{
- const auto childItems = item->childItems();
- for (QQuickItem *child : childItems) {
- if (QQuickControl *control = qobject_cast<QQuickControl *>(child))
- QQuickControlPrivate::get(control)->updateHoverEnabled(enabled, false);
- else
- updateHoverEnabledRecur(child, enabled);
- }
-}
-
-bool QQuickControlPrivate::calcHoverEnabled(const QQuickItem *item)
-{
- const QQuickItem *p = item;
- while (p) {
- // QQuickPopupItem accepts hover events to avoid leaking them through.
- // Don't inherit that to the children of the popup, but fallback to the
- // environment variable or style hint.
- if (qobject_cast<const QQuickPopupItem *>(p))
- break;
-
- if (const QQuickControl *control = qobject_cast<const QQuickControl *>(p))
- return control->isHoverEnabled();
-
- QVariant v = p->property("hoverEnabled");
- if (v.isValid() && v.userType() == QMetaType::Bool)
- return v.toBool();
-
- p = p->parentItem();
- }
-
- bool ok = false;
- int env = qEnvironmentVariableIntValue("QT_QUICK_CONTROLS_HOVER_ENABLED", &ok);
- if (ok)
- return env != 0;
-
- // TODO: QQuickApplicationWindow::isHoverEnabled()
-
- return QGuiApplication::styleHints()->useHoverEffects();
-}
-#endif
-
-static inline QString contentItemName() { return QStringLiteral("contentItem"); }
-
-void QQuickControlPrivate::cancelContentItem()
-{
- Q_Q(QQuickControl);
- quickCancelDeferred(q, contentItemName());
-}
-
-void QQuickControlPrivate::executeContentItem(bool complete)
-{
- Q_Q(QQuickControl);
- if (contentItem.wasExecuted())
- return;
-
- if (!contentItem || complete)
- quickBeginDeferred(q, contentItemName(), contentItem);
- if (complete)
- quickCompleteDeferred(q, contentItemName(), contentItem);
-}
-
-static inline QString backgroundName() { return QStringLiteral("background"); }
-
-void QQuickControlPrivate::cancelBackground()
-{
- Q_Q(QQuickControl);
- quickCancelDeferred(q, backgroundName());
-}
-
-void QQuickControlPrivate::executeBackground(bool complete)
-{
- Q_Q(QQuickControl);
- if (background.wasExecuted())
- return;
-
- if (!background || complete)
- quickBeginDeferred(q, backgroundName(), background);
- if (complete)
- quickCompleteDeferred(q, backgroundName(), background);
-}
-
-void QQuickControlPrivate::updateBaselineOffset()
-{
- Q_Q(QQuickControl);
- if (extra.isAllocated() && extra.value().hasBaselineOffset)
- return;
-
- if (!contentItem)
- q->QQuickItem::setBaselineOffset(0);
- else
- q->QQuickItem::setBaselineOffset(getTopPadding() + contentItem->baselineOffset());
-}
-
-void QQuickControlPrivate::addImplicitSizeListener(QQuickItem *item, ChangeTypes changes)
-{
- addImplicitSizeListener(item, this, changes);
-}
-
-void QQuickControlPrivate::removeImplicitSizeListener(QQuickItem *item, ChangeTypes changes)
-{
- removeImplicitSizeListener(item, this, changes);
-}
-
-void QQuickControlPrivate::addImplicitSizeListener(QQuickItem *item, QQuickItemChangeListener *listener, ChangeTypes changes)
-{
- if (!item || !listener)
- return;
- QQuickItemPrivate::get(item)->addItemChangeListener(listener, changes);
-}
-
-void QQuickControlPrivate::removeImplicitSizeListener(QQuickItem *item, QQuickItemChangeListener *listener, ChangeTypes changes)
-{
- if (!item || !listener)
- return;
- QQuickItemPrivate::get(item)->removeItemChangeListener(listener, changes);
-}
-
-void QQuickControlPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickControl);
- if (item == background)
- emit q->implicitBackgroundWidthChanged();
- else if (item == contentItem)
- updateImplicitContentWidth();
-}
-
-void QQuickControlPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickControl);
- if (item == background)
- emit q->implicitBackgroundHeightChanged();
- else if (item == contentItem)
- updateImplicitContentHeight();
-}
-
-void QQuickControlPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff)
-{
- Q_UNUSED(diff);
- if (resizingBackground || item != background || !change.sizeChange())
- return;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- // Only set hasBackgroundWidth/Height if it was a width/height change,
- // otherwise we're prevented from setting a width/height in the future.
- if (change.widthChange())
- extra.value().hasBackgroundWidth = p->widthValid;
- if (change.heightChange())
- extra.value().hasBackgroundHeight = p->heightValid;
- resizeBackground();
-}
-
-void QQuickControlPrivate::itemDestroyed(QQuickItem *item)
-{
- Q_Q(QQuickControl);
- if (item == background) {
- background = nullptr;
- emit q->implicitBackgroundWidthChanged();
- emit q->implicitBackgroundHeightChanged();
- } else if (item == contentItem) {
- contentItem = nullptr;
- updateImplicitContentSize();
- }
-}
-
-QQuickControl::QQuickControl(QQuickItem *parent)
- : QQuickItem(*(new QQuickControlPrivate), parent)
-{
- Q_D(QQuickControl);
- d->init();
-}
-
-QQuickControl::QQuickControl(QQuickControlPrivate &dd, QQuickItem *parent)
- : QQuickItem(dd, parent)
-{
- Q_D(QQuickControl);
- d->init();
-}
-
-QQuickControl::~QQuickControl()
-{
- Q_D(QQuickControl);
- d->removeImplicitSizeListener(d->background, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- d->removeImplicitSizeListener(d->contentItem);
-}
-
-void QQuickControl::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &value)
-{
- Q_D(QQuickControl);
- QQuickItem::itemChange(change, value);
- switch (change) {
- case ItemEnabledHasChanged:
- emit paletteChanged();
- enabledChange();
- break;
- case ItemVisibleHasChanged:
-#if QT_CONFIG(quicktemplates2_hover)
- if (!value.boolValue)
- setHovered(false);
-#endif
- break;
- case ItemSceneChange:
- case ItemParentHasChanged:
- if ((change == ItemParentHasChanged && value.item) || (change == ItemSceneChange && value.window)) {
- d->resolveFont();
- d->resolvePalette();
- if (!d->hasLocale)
- d->updateLocale(QQuickControlPrivate::calcLocale(d->parentItem), false); // explicit=false
-#if QT_CONFIG(quicktemplates2_hover)
- if (!d->explicitHoverEnabled)
- d->updateHoverEnabled(QQuickControlPrivate::calcHoverEnabled(d->parentItem), false); // explicit=false
-#endif
- }
- break;
- case ItemActiveFocusHasChanged:
- if (isKeyFocusReason(d->focusReason))
- emit visualFocusChanged();
- break;
- default:
- break;
- }
-}
-
-/*!
- \qmlproperty font QtQuick.Controls::Control::font
-
- This property holds the font currently set for the control.
-
- This property describes the control's requested font. The font is used by the control's
- style when rendering standard components, and is available as a means to ensure that custom
- controls can maintain consistency with the native platform's native look and feel. It's common
- that different platforms, or different styles, define different fonts for an application.
-
- The default font depends on the system environment. ApplicationWindow maintains a system/theme
- font which serves as a default for all controls. There may also be special font defaults for
- certain types of controls. You can also set the default font for controls by either:
-
- \list
- \li passing a custom font to QGuiApplication::setFont(), before loading the QML; or
- \li specifying the fonts in the \l {Qt Quick Controls 2 Configuration File}{qtquickcontrols2.conf file}.
- \endlist
-
- Finally, the font is matched against Qt's font database to find the best match.
-
- Control propagates explicit font properties from parent to children. If you change a specific
- property on a control's font, that property propagates to all of the control's children,
- overriding any system defaults for that property.
-
- \code
- Page {
- font.family: "Courier"
-
- Column {
- Label {
- text: qsTr("This will use Courier...")
- }
-
- Switch {
- text: qsTr("... and so will this")
- }
- }
- }
- \endcode
-
- For the full list of available font properties, see the
- \l [QtQuick]{font}{font QML Basic Type} documentation.
-*/
-QFont QQuickControl::font() const
-{
- Q_D(const QQuickControl);
- return d->resolvedFont;
-}
-
-void QQuickControl::setFont(const QFont &font)
-{
- Q_D(QQuickControl);
- if (d->extra.value().requestedFont.resolve() == font.resolve() && d->extra.value().requestedFont == font)
- return;
-
- d->extra.value().requestedFont = font;
- d->resolveFont();
-}
-
-void QQuickControl::resetFont()
-{
- setFont(QFont());
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Control::availableWidth
- \readonly
-
- This property holds the width available to the \l contentItem after
- deducting horizontal padding from the \l {Item::}{width} of the control.
-
- \sa {Control Layout}, padding, leftPadding, rightPadding
-*/
-qreal QQuickControl::availableWidth() const
-{
- return qMax<qreal>(0.0, width() - leftPadding() - rightPadding());
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Control::availableHeight
- \readonly
-
- This property holds the height available to the \l contentItem after
- deducting vertical padding from the \l {Item::}{height} of the control.
-
- \sa {Control Layout}, padding, topPadding, bottomPadding
-*/
-qreal QQuickControl::availableHeight() const
-{
- return qMax<qreal>(0.0, height() - topPadding() - bottomPadding());
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Control::padding
-
- This property holds the default padding.
-
- Padding adds a space between each edge of the content item and the
- background item, effectively controlling the size of the content item. To
- specify a padding value for a specific edge of the control, set its
- relevant property:
-
- \list
- \li \l {Control::}{leftPadding}
- \li \l {Control::}{rightPadding}
- \li \l {Control::}{topPadding}
- \li \l {Control::}{bottomPadding}
- \endlist
-
- \note Different styles may specify the default padding for certain controls
- in different ways, and these ways may change over time as the design
- guidelines that the style is based on evolve. To ensure that these changes
- don't affect the padding values you have specified, it is best to use the
- most specific properties available. For example, rather than setting
- the \l padding property:
-
- \code
- padding: 0
- \endcode
-
- set each specific property instead:
-
- \code
- leftPadding: 0
- rightPadding: 0
- topPadding: 0
- bottomPadding: 0
- \endcode
-
- \sa {Control Layout}, availableWidth, availableHeight, topPadding, leftPadding, rightPadding, bottomPadding
-*/
-qreal QQuickControl::padding() const
-{
- Q_D(const QQuickControl);
- return d->padding;
-}
-
-void QQuickControl::setPadding(qreal padding)
-{
- Q_D(QQuickControl);
- if (qFuzzyCompare(d->padding, padding))
- return;
-
- const QMarginsF oldPadding = d->getPadding();
- const qreal oldVerticalPadding = d->getVerticalPadding();
- const qreal oldHorizontalPadding = d->getHorizontalPadding();
-
- d->padding = padding;
- emit paddingChanged();
-
- const QMarginsF newPadding = d->getPadding();
- const qreal newVerticalPadding = d->getVerticalPadding();
- const qreal newHorizontalPadding = d->getHorizontalPadding();
-
- if (!qFuzzyCompare(newPadding.top(), oldPadding.top()))
- emit topPaddingChanged();
- if (!qFuzzyCompare(newPadding.left(), oldPadding.left()))
- emit leftPaddingChanged();
- if (!qFuzzyCompare(newPadding.right(), oldPadding.right()))
- emit rightPaddingChanged();
- if (!qFuzzyCompare(newPadding.bottom(), oldPadding.bottom()))
- emit bottomPaddingChanged();
- if (!qFuzzyCompare(newVerticalPadding, oldVerticalPadding))
- emit verticalPaddingChanged();
- if (!qFuzzyCompare(newHorizontalPadding, oldHorizontalPadding))
- emit horizontalPaddingChanged();
- if (!qFuzzyCompare(newPadding.top(), oldPadding.top()) || !qFuzzyCompare(newPadding.bottom(), oldPadding.bottom()))
- emit availableHeightChanged();
- if (!qFuzzyCompare(newPadding.left(), oldPadding.left()) || !qFuzzyCompare(newPadding.right(), oldPadding.right()))
- emit availableWidthChanged();
-
- paddingChange(newPadding, oldPadding);
-}
-
-void QQuickControl::resetPadding()
-{
- setPadding(0);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Control::topPadding
-
- This property holds the top padding. Unless explicitly set, the value
- is equal to \c verticalPadding.
-
- \sa {Control Layout}, padding, bottomPadding, verticalPadding, availableHeight
-*/
-qreal QQuickControl::topPadding() const
-{
- Q_D(const QQuickControl);
- return d->getTopPadding();
-}
-
-void QQuickControl::setTopPadding(qreal padding)
-{
- Q_D(QQuickControl);
- d->setTopPadding(padding);
-}
-
-void QQuickControl::resetTopPadding()
-{
- Q_D(QQuickControl);
- d->setTopPadding(0, true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Control::leftPadding
-
- This property holds the left padding. Unless explicitly set, the value
- is equal to \c horizontalPadding.
-
- \sa {Control Layout}, padding, rightPadding, horizontalPadding, availableWidth
-*/
-qreal QQuickControl::leftPadding() const
-{
- Q_D(const QQuickControl);
- return d->getLeftPadding();
-}
-
-void QQuickControl::setLeftPadding(qreal padding)
-{
- Q_D(QQuickControl);
- d->setLeftPadding(padding);
-}
-
-void QQuickControl::resetLeftPadding()
-{
- Q_D(QQuickControl);
- d->setLeftPadding(0, true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Control::rightPadding
-
- This property holds the right padding. Unless explicitly set, the value
- is equal to \c horizontalPadding.
-
- \sa {Control Layout}, padding, leftPadding, horizontalPadding, availableWidth
-*/
-qreal QQuickControl::rightPadding() const
-{
- Q_D(const QQuickControl);
- return d->getRightPadding();
-}
-
-void QQuickControl::setRightPadding(qreal padding)
-{
- Q_D(QQuickControl);
- d->setRightPadding(padding);
-}
-
-void QQuickControl::resetRightPadding()
-{
- Q_D(QQuickControl);
- d->setRightPadding(0, true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Control::bottomPadding
-
- This property holds the bottom padding. Unless explicitly set, the value
- is equal to \c verticalPadding.
-
- \sa {Control Layout}, padding, topPadding, verticalPadding, availableHeight
-*/
-qreal QQuickControl::bottomPadding() const
-{
- Q_D(const QQuickControl);
- return d->getBottomPadding();
-}
-
-void QQuickControl::setBottomPadding(qreal padding)
-{
- Q_D(QQuickControl);
- d->setBottomPadding(padding);
-}
-
-void QQuickControl::resetBottomPadding()
-{
- Q_D(QQuickControl);
- d->setBottomPadding(0, true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Control::spacing
-
- This property holds the spacing.
-
- Spacing is useful for controls that have multiple or repetitive building
- blocks. For example, some styles use spacing to determine the distance
- between the text and indicator of \l CheckBox. Spacing is not enforced by
- Control, so each style may interpret it differently, and some may ignore it
- altogether.
-*/
-qreal QQuickControl::spacing() const
-{
- Q_D(const QQuickControl);
- return d->spacing;
-}
-
-void QQuickControl::setSpacing(qreal spacing)
-{
- Q_D(QQuickControl);
- if (qFuzzyCompare(d->spacing, spacing))
- return;
-
- qreal oldSpacing = d->spacing;
- d->spacing = spacing;
- emit spacingChanged();
- spacingChange(spacing, oldSpacing);
-}
-
-void QQuickControl::resetSpacing()
-{
- setSpacing(0);
-}
-
-/*!
- \qmlproperty Locale QtQuick.Controls::Control::locale
-
- This property holds the locale of the control.
-
- It contains locale specific properties for formatting data and numbers.
- Unless a special locale has been set, this is either the parent's locale
- or the default locale.
-
- Control propagates the locale from parent to children. If you change the
- control's locale, that locale propagates to all of the control's children,
- overriding the system default locale.
-
- \sa mirrored, {LayoutMirroring}{LayoutMirroring}
-*/
-QLocale QQuickControl::locale() const
-{
- Q_D(const QQuickControl);
- return d->locale;
-}
-
-void QQuickControl::setLocale(const QLocale &locale)
-{
- Q_D(QQuickControl);
- if (d->hasLocale && d->locale == locale)
- return;
-
- d->updateLocale(locale, true); // explicit=true
-}
-
-void QQuickControl::resetLocale()
-{
- Q_D(QQuickControl);
- if (!d->hasLocale)
- return;
-
- d->hasLocale = false;
- d->updateLocale(QQuickControlPrivate::calcLocale(d->parentItem), false); // explicit=false
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Control::mirrored
- \readonly
-
- This property holds whether the control is mirrored.
-
- This property is provided for convenience. A control is considered mirrored
- when its visual layout direction is right-to-left; that is, when using a
- right-to-left locale or when \l {LayoutMirroring::enabled}{LayoutMirroring.enabled}
- is \c true.
-
- \sa locale, {LayoutMirroring}{LayoutMirroring}, {Right-to-left User Interfaces}
-*/
-bool QQuickControl::isMirrored() const
-{
- Q_D(const QQuickControl);
- return d->isMirrored() || d->locale.textDirection() == Qt::RightToLeft;
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Control::focusPolicy
-
- This property determines the way the control accepts focus.
-
- \value Qt.TabFocus The control accepts focus by tabbing.
- \value Qt.ClickFocus The control accepts focus by clicking.
- \value Qt.StrongFocus The control accepts focus by both tabbing and clicking.
- \value Qt.WheelFocus The control accepts focus by tabbing, clicking, and using the mouse wheel.
- \value Qt.NoFocus The control does not accept focus.
-*/
-Qt::FocusPolicy QQuickControl::focusPolicy() const
-{
- Q_D(const QQuickControl);
- uint policy = d->focusPolicy;
- if (activeFocusOnTab())
- policy |= Qt::TabFocus;
- return static_cast<Qt::FocusPolicy>(policy);
-}
-
-void QQuickControl::setFocusPolicy(Qt::FocusPolicy policy)
-{
- Q_D(QQuickControl);
- if (d->focusPolicy == policy)
- return;
-
- d->focusPolicy = policy;
- setActiveFocusOnTab(policy & Qt::TabFocus);
- emit focusPolicyChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Control::focusReason
- \readonly
-
- \include qquickcontrol-focusreason.qdocinc
-
- \sa visualFocus
-*/
-Qt::FocusReason QQuickControl::focusReason() const
-{
- Q_D(const QQuickControl);
- return d->focusReason;
-}
-
-void QQuickControl::setFocusReason(Qt::FocusReason reason)
-{
- Q_D(QQuickControl);
- if (d->focusReason == reason)
- return;
-
- Qt::FocusReason oldReason = d->focusReason;
- d->focusReason = reason;
- emit focusReasonChanged();
- if (isKeyFocusReason(oldReason) != isKeyFocusReason(reason))
- emit visualFocusChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Control::visualFocus
- \readonly
-
- This property holds whether the control has visual focus. This property
- is \c true when the control has active focus and the focus reason is either
- \c Qt.TabFocusReason, \c Qt.BacktabFocusReason, or \c Qt.ShortcutFocusReason.
-
- In general, for visualizing key focus, this property is preferred over
- \l Item::activeFocus. This ensures that key focus is only visualized when
- interacting with keys - not when interacting via touch or mouse.
-
- \sa focusReason, Item::activeFocus
-*/
-bool QQuickControl::hasVisualFocus() const
-{
- Q_D(const QQuickControl);
- return d->activeFocus && isKeyFocusReason(d->focusReason);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Control::hovered
- \readonly
-
- This property holds whether the control is hovered.
-
- \sa hoverEnabled
-*/
-bool QQuickControl::isHovered() const
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(const QQuickControl);
- return d->hovered;
-#else
- return false;
-#endif
-}
-
-void QQuickControl::setHovered(bool hovered)
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickControl);
- if (hovered == d->hovered)
- return;
-
- d->hovered = hovered;
- emit hoveredChanged();
- hoverChange();
-#else
- Q_UNUSED(hovered);
-#endif
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Control::hoverEnabled
-
- This property determines whether the control accepts hover events. The default value
- is \c Qt.styleHints.useHoverEffects.
-
- Setting this property propagates the value to all child controls that do not have
- \c hoverEnabled explicitly set.
-
- You can also enable or disable hover effects for all Qt Quick Controls applications
- by setting the \c QT_QUICK_CONTROLS_HOVER_ENABLED \l {Supported Environment Variables
- in Qt Quick Controls}{environment variable}.
-
- \sa hovered
-*/
-bool QQuickControl::isHoverEnabled() const
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(const QQuickControl);
- return d->hoverEnabled;
-#else
- return false;
-#endif
-}
-
-void QQuickControl::setHoverEnabled(bool enabled)
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickControl);
- if (d->explicitHoverEnabled && enabled == d->hoverEnabled)
- return;
-
- d->updateHoverEnabled(enabled, true); // explicit=true
-#else
- Q_UNUSED(enabled)
-#endif
-}
-
-void QQuickControl::resetHoverEnabled()
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickControl);
- if (!d->explicitHoverEnabled)
- return;
-
- d->explicitHoverEnabled = false;
- d->updateHoverEnabled(QQuickControlPrivate::calcHoverEnabled(d->parentItem), false); // explicit=false
-#endif
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Control::wheelEnabled
-
- This property determines whether the control handles wheel events. The default value is \c false.
-
- \note Care must be taken when enabling wheel events for controls within scrollable items such
- as \l Flickable, as the control will consume the events and hence interrupt scrolling of the
- Flickable.
-*/
-bool QQuickControl::isWheelEnabled() const
-{
- Q_D(const QQuickControl);
- return d->wheelEnabled;
-}
-
-void QQuickControl::setWheelEnabled(bool enabled)
-{
- Q_D(QQuickControl);
- if (d->wheelEnabled == enabled)
- return;
-
- d->wheelEnabled = enabled;
- emit wheelEnabledChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Control::background
-
- This property holds the background item.
-
- \code
- Button {
- id: control
- text: qsTr("Button")
- background: Rectangle {
- implicitWidth: 100
- implicitHeight: 40
- opacity: enabled ? 1 : 0.3
- color: control.down ? "#d0d0d0" : "#e0e0e0"
- }
- }
- \endcode
-
- \input qquickcontrol-background.qdocinc notes
-
- \sa {Control Layout}
-*/
-QQuickItem *QQuickControl::background() const
-{
- QQuickControlPrivate *d = const_cast<QQuickControlPrivate *>(d_func());
- if (!d->background)
- d->executeBackground();
- return d->background;
-}
-
-void QQuickControl::setBackground(QQuickItem *background)
-{
- Q_D(QQuickControl);
- if (d->background == background)
- return;
-
- if (!d->background.isExecuting())
- d->cancelBackground();
-
- const qreal oldImplicitBackgroundWidth = implicitBackgroundWidth();
- const qreal oldImplicitBackgroundHeight = implicitBackgroundHeight();
-
- if (d->extra.isAllocated()) {
- d->extra.value().hasBackgroundWidth = false;
- d->extra.value().hasBackgroundHeight = false;
- }
-
- d->removeImplicitSizeListener(d->background, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- delete d->background;
- d->background = background;
-
- if (background) {
- background->setParentItem(this);
- if (qFuzzyIsNull(background->z()))
- background->setZ(-1);
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (p->widthValid || p->heightValid) {
- d->extra.value().hasBackgroundWidth = p->widthValid;
- d->extra.value().hasBackgroundHeight = p->heightValid;
- }
- if (isComponentComplete())
- d->resizeBackground();
- d->addImplicitSizeListener(background, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- }
-
- if (!qFuzzyCompare(oldImplicitBackgroundWidth, implicitBackgroundWidth()))
- emit implicitBackgroundWidthChanged();
- if (!qFuzzyCompare(oldImplicitBackgroundHeight, implicitBackgroundHeight()))
- emit implicitBackgroundHeightChanged();
- if (!d->background.isExecuting())
- emit backgroundChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Control::contentItem
-
- This property holds the visual content item.
-
- \code
- Button {
- id: control
- text: qsTr("Button")
- contentItem: Label {
- text: control.text
- font: control.font
- verticalAlignment: Text.AlignVCenter
- }
- }
- \endcode
-
- \note The content item is automatically positioned and resized to fit
- within the \l padding of the control. Bindings to the \l x, \l y, \l width,
- and \l height properties of the contentItem are not respected.
-
- \note Most controls use the implicit size of the content item to calculate
- the implicit size of the control itself. If you replace the content item
- with a custom one, you should also consider providing a sensible implicit
- size for it (unless it is an item like \l Text which has its own implicit
- size).
-
- \sa {Control Layout}, padding
-*/
-QQuickItem *QQuickControl::contentItem() const
-{
- QQuickControlPrivate *d = const_cast<QQuickControlPrivate *>(d_func());
- if (!d->contentItem)
- d->setContentItem_helper(d->getContentItem(), false);
- return d->contentItem;
-}
-
-void QQuickControl::setContentItem(QQuickItem *item)
-{
- Q_D(QQuickControl);
- d->setContentItem_helper(item, true);
-}
-
-qreal QQuickControl::baselineOffset() const
-{
- Q_D(const QQuickControl);
- return d->baselineOffset;
-}
-
-void QQuickControl::setBaselineOffset(qreal offset)
-{
- Q_D(QQuickControl);
- d->extra.value().hasBaselineOffset = true;
- QQuickItem::setBaselineOffset(offset);
-}
-
-void QQuickControl::resetBaselineOffset()
-{
- Q_D(QQuickControl);
- if (!d->extra.isAllocated() || !d->extra.value().hasBaselineOffset)
- return;
-
- if (d->extra.isAllocated())
- d->extra.value().hasBaselineOffset = false;
- d->updateBaselineOffset();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty palette QtQuick.Controls::Control::palette
-
- This property holds the palette currently set for the control.
-
- This property describes the control's requested palette. The palette is used by the control's
- style when rendering standard components, and is available as a means to ensure that custom
- controls can maintain consistency with the native platform's native look and feel. It's common
- that different platforms, or different styles, define different palettes for an application.
-
- The default palette depends on the system environment. ApplicationWindow maintains a system/theme
- palette which serves as a default for all controls. There may also be special palette defaults for
- certain types of controls. You can also set the default palette for controls by either:
-
- \list
- \li passing a custom palette to QGuiApplication::setPalette(), before loading any QML; or
- \li specifying the colors in the \l {Qt Quick Controls 2 Configuration File}{qtquickcontrols2.conf file}.
- \endlist
-
- Control propagates explicit palette properties from parent to children. If you change a specific
- property on a control's palette, that property propagates to all of the control's children,
- overriding any system defaults for that property.
-
- \code
- Page {
- palette.text: "red"
-
- Column {
- Label {
- text: qsTr("This will use red color...")
- }
-
- Switch {
- text: qsTr("... and so will this")
- }
- }
- }
- \endcode
-
- For the full list of available palette colors, see the
- \l {qtquickcontrols2-palette}{palette QML Basic Type} documentation.
-
- \sa ApplicationWindow::palette, Popup::palette
-*/
-QPalette QQuickControl::palette() const
-{
- Q_D(const QQuickControl);
- QPalette palette = d->resolvedPalette;
- if (!isEnabled())
- palette.setCurrentColorGroup(QPalette::Disabled);
- return palette;
-}
-
-void QQuickControl::setPalette(const QPalette &palette)
-{
- Q_D(QQuickControl);
- if (d->extra.value().requestedPalette.resolve() == palette.resolve() && d->extra.value().requestedPalette == palette)
- return;
-
- d->extra.value().requestedPalette = palette;
- d->resolvePalette();
-}
-
-void QQuickControl::resetPalette()
-{
- setPalette(QPalette());
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::horizontalPadding
-
- This property holds the horizontal padding. Unless explicitly set, the value
- is equal to \c padding.
-
- \sa {Control Layout}, padding, leftPadding, rightPadding, verticalPadding
-*/
-qreal QQuickControl::horizontalPadding() const
-{
- Q_D(const QQuickControl);
- return d->getHorizontalPadding();
-}
-
-void QQuickControl::setHorizontalPadding(qreal padding)
-{
- Q_D(QQuickControl);
- d->setHorizontalPadding(padding);
-}
-
-void QQuickControl::resetHorizontalPadding()
-{
- Q_D(QQuickControl);
- d->setHorizontalPadding(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::verticalPadding
-
- This property holds the vertical padding. Unless explicitly set, the value
- is equal to \c padding.
-
- \sa {Control Layout}, padding, topPadding, bottomPadding, horizontalPadding
-*/
-qreal QQuickControl::verticalPadding() const
-{
- Q_D(const QQuickControl);
- return d->getVerticalPadding();
-}
-
-void QQuickControl::setVerticalPadding(qreal padding)
-{
- Q_D(QQuickControl);
- d->setVerticalPadding(padding);
-}
-
-void QQuickControl::resetVerticalPadding()
-{
- Q_D(QQuickControl);
- d->setVerticalPadding(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::implicitContentWidth
- \readonly
-
- This property holds the implicit content width.
-
- For basic controls, the value is equal to \c {contentItem ? contentItem.implicitWidth : 0}.
- For types that inherit Container or Pane, the value is calculated based on the content children.
-
- This is typically used, together with \l implicitBackgroundWidth, to calculate
- the \l {Item::}{implicitWidth}:
-
- \code
- Control {
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- }
- \endcode
-
- \sa implicitContentHeight, implicitBackgroundWidth
-*/
-qreal QQuickControl::implicitContentWidth() const
-{
- Q_D(const QQuickControl);
- return d->implicitContentWidth;
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::implicitContentHeight
- \readonly
-
- This property holds the implicit content height.
-
- For basic controls, the value is equal to \c {contentItem ? contentItem.implicitHeight : 0}.
- For types that inherit Container or Pane, the value is calculated based on the content children.
-
- This is typically used, together with \l implicitBackgroundHeight, to calculate
- the \l {Item::}{implicitHeight}:
-
- \code
- Control {
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
- }
- \endcode
-
- \sa implicitContentWidth, implicitBackgroundHeight
-*/
-qreal QQuickControl::implicitContentHeight() const
-{
- Q_D(const QQuickControl);
- return d->implicitContentHeight;
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::implicitBackgroundWidth
- \readonly
-
- This property holds the implicit background width.
-
- The value is equal to \c {background ? background.implicitWidth : 0}.
-
- This is typically used, together with \l implicitContentWidth, to calculate
- the \l {Item::}{implicitWidth}:
-
- \code
- Control {
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- implicitContentWidth + leftPadding + rightPadding)
- }
- \endcode
-
- \sa implicitBackgroundHeight, implicitContentWidth
-*/
-qreal QQuickControl::implicitBackgroundWidth() const
-{
- Q_D(const QQuickControl);
- if (!d->background)
- return 0;
- return d->background->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::implicitBackgroundHeight
- \readonly
-
- This property holds the implicit background height.
-
- The value is equal to \c {background ? background.implicitHeight : 0}.
-
- This is typically used, together with \l implicitContentHeight, to calculate
- the \l {Item::}{implicitHeight}:
-
- \code
- Control {
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
- }
- \endcode
-
- \sa implicitBackgroundWidth, implicitContentHeight
-*/
-qreal QQuickControl::implicitBackgroundHeight() const
-{
- Q_D(const QQuickControl);
- if (!d->background)
- return 0;
- return d->background->implicitHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::topInset
-
- This property holds the top inset for the background.
-
- \sa {Control Layout}, bottomInset
-*/
-qreal QQuickControl::topInset() const
-{
- Q_D(const QQuickControl);
- return d->getTopInset();
-}
-
-void QQuickControl::setTopInset(qreal inset)
-{
- Q_D(QQuickControl);
- d->setTopInset(inset);
-}
-
-void QQuickControl::resetTopInset()
-{
- Q_D(QQuickControl);
- d->setTopInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::leftInset
-
- This property holds the left inset for the background.
-
- \sa {Control Layout}, rightInset
-*/
-qreal QQuickControl::leftInset() const
-{
- Q_D(const QQuickControl);
- return d->getLeftInset();
-}
-
-void QQuickControl::setLeftInset(qreal inset)
-{
- Q_D(QQuickControl);
- d->setLeftInset(inset);
-}
-
-void QQuickControl::resetLeftInset()
-{
- Q_D(QQuickControl);
- d->setLeftInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::rightInset
-
- This property holds the right inset for the background.
-
- \sa {Control Layout}, leftInset
-*/
-qreal QQuickControl::rightInset() const
-{
- Q_D(const QQuickControl);
- return d->getRightInset();
-}
-
-void QQuickControl::setRightInset(qreal inset)
-{
- Q_D(QQuickControl);
- d->setRightInset(inset);
-}
-
-void QQuickControl::resetRightInset()
-{
- Q_D(QQuickControl);
- d->setRightInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Control::bottomInset
-
- This property holds the bottom inset for the background.
-
- \sa {Control Layout}, topInset
-*/
-qreal QQuickControl::bottomInset() const
-{
- Q_D(const QQuickControl);
- return d->getBottomInset();
-}
-
-void QQuickControl::setBottomInset(qreal inset)
-{
- Q_D(QQuickControl);
- d->setBottomInset(inset);
-}
-
-void QQuickControl::resetBottomInset()
-{
- Q_D(QQuickControl);
- d->setBottomInset(0, true);
-}
-
-void QQuickControl::classBegin()
-{
- Q_D(QQuickControl);
- QQuickItem::classBegin();
- d->resolveFont();
- d->resolvePalette();
-}
-
-void QQuickControl::componentComplete()
-{
- Q_D(QQuickControl);
- d->executeBackground(true);
- d->executeContentItem(true);
- QQuickItem::componentComplete();
- d->resizeBackground();
- d->resizeContent();
- d->updateBaselineOffset();
- if (!d->hasLocale)
- d->locale = QQuickControlPrivate::calcLocale(d->parentItem);
-#if QT_CONFIG(quicktemplates2_hover)
- if (!d->explicitHoverEnabled)
- setAcceptHoverEvents(QQuickControlPrivate::calcHoverEnabled(d->parentItem));
-#endif
-#if QT_CONFIG(accessibility)
- if (QAccessible::isActive())
- accessibilityActiveChanged(true);
-#endif
-}
-
-QFont QQuickControl::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::System);
-}
-
-QPalette QQuickControl::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::System);
-}
-
-void QQuickControl::focusInEvent(QFocusEvent *event)
-{
- QQuickItem::focusInEvent(event);
- setFocusReason(event->reason());
-}
-
-void QQuickControl::focusOutEvent(QFocusEvent *event)
-{
- QQuickItem::focusOutEvent(event);
- setFocusReason(event->reason());
-}
-
-#if QT_CONFIG(quicktemplates2_hover)
-void QQuickControl::hoverEnterEvent(QHoverEvent *event)
-{
- Q_D(QQuickControl);
- setHovered(d->hoverEnabled);
- event->setAccepted(d->hoverEnabled);
-}
-
-void QQuickControl::hoverMoveEvent(QHoverEvent *event)
-{
- Q_D(QQuickControl);
- setHovered(d->hoverEnabled && contains(event->pos()));
- event->setAccepted(d->hoverEnabled);
-}
-
-void QQuickControl::hoverLeaveEvent(QHoverEvent *event)
-{
- Q_D(QQuickControl);
- setHovered(false);
- event->setAccepted(d->hoverEnabled);
-}
-#endif
-
-void QQuickControl::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickControl);
- d->handlePress(event->localPos());
- event->accept();
-}
-
-void QQuickControl::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickControl);
- d->handleMove(event->localPos());
- event->accept();
-}
-
-void QQuickControl::mouseReleaseEvent(QMouseEvent *event)
-{
- Q_D(QQuickControl);
- d->handleRelease(event->localPos());
- event->accept();
-}
-
-void QQuickControl::mouseUngrabEvent()
-{
- Q_D(QQuickControl);
- d->handleUngrab();
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickControl::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickControl);
- switch (event->type()) {
- case QEvent::TouchBegin:
- case QEvent::TouchUpdate:
- case QEvent::TouchEnd:
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- if (!d->acceptTouch(point))
- continue;
-
- switch (point.state()) {
- case Qt::TouchPointPressed:
- d->handlePress(point.pos());
- break;
- case Qt::TouchPointMoved:
- d->handleMove(point.pos());
- break;
- case Qt::TouchPointReleased:
- d->handleRelease(point.pos());
- break;
- default:
- break;
- }
- }
- break;
-
- case QEvent::TouchCancel:
- d->handleUngrab();
- break;
-
- default:
- QQuickItem::touchEvent(event);
- break;
- }
-}
-
-void QQuickControl::touchUngrabEvent()
-{
- Q_D(QQuickControl);
- d->handleUngrab();
-}
-#endif
-
-#if QT_CONFIG(wheelevent)
-void QQuickControl::wheelEvent(QWheelEvent *event)
-{
- Q_D(QQuickControl);
- if ((d->focusPolicy & Qt::WheelFocus) == Qt::WheelFocus)
- setActiveFocus(this, Qt::MouseFocusReason);
-
- event->setAccepted(d->wheelEnabled);
-}
-#endif
-
-void QQuickControl::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickControl);
- QQuickItem::geometryChanged(newGeometry, oldGeometry);
- d->resizeBackground();
- d->resizeContent();
- if (!qFuzzyCompare(newGeometry.width(), oldGeometry.width()))
- emit availableWidthChanged();
- if (!qFuzzyCompare(newGeometry.height(), oldGeometry.height()))
- emit availableHeightChanged();
-}
-
-void QQuickControl::enabledChange()
-{
-}
-
-void QQuickControl::fontChange(const QFont &newFont, const QFont &oldFont)
-{
- Q_UNUSED(newFont);
- Q_UNUSED(oldFont);
-}
-
-#if QT_CONFIG(quicktemplates2_hover)
-void QQuickControl::hoverChange()
-{
-}
-#endif
-
-void QQuickControl::mirrorChange()
-{
- emit mirroredChanged();
-}
-
-void QQuickControl::spacingChange(qreal newSpacing, qreal oldSpacing)
-{
- Q_UNUSED(newSpacing);
- Q_UNUSED(oldSpacing);
-}
-
-void QQuickControl::paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
-{
- Q_D(QQuickControl);
- Q_UNUSED(newPadding);
- Q_UNUSED(oldPadding);
- d->resizeContent();
- d->updateBaselineOffset();
-}
-
-void QQuickControl::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_UNUSED(newItem);
- Q_UNUSED(oldItem);
-}
-
-void QQuickControl::localeChange(const QLocale &newLocale, const QLocale &oldLocale)
-{
- Q_UNUSED(newLocale);
- Q_UNUSED(oldLocale);
-}
-
-void QQuickControl::paletteChange(const QPalette &newPalette, const QPalette &oldPalette)
-{
- Q_UNUSED(newPalette);
- Q_UNUSED(oldPalette);
-}
-
-void QQuickControl::insetChange(const QMarginsF &newInset, const QMarginsF &oldInset)
-{
- Q_D(QQuickControl);
- Q_UNUSED(newInset);
- Q_UNUSED(oldInset);
- d->resizeBackground();
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickControl::accessibleRole() const
-{
- return QAccessible::NoRole;
-}
-
-void QQuickControl::accessibilityActiveChanged(bool active)
-{
- if (!active)
- return;
-
- QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(this, true));
- Q_ASSERT(accessibleAttached);
- accessibleAttached->setRole(accessibleRole());
-}
-#endif
-
-QString QQuickControl::accessibleName() const
-{
-#if QT_CONFIG(accessibility)
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(this))
- return accessibleAttached->name();
-#endif
- return QString();
-}
-
-void QQuickControl::setAccessibleName(const QString &name)
-{
-#if QT_CONFIG(accessibility)
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(this))
- accessibleAttached->setName(name);
-#else
- Q_UNUSED(name)
-#endif
-}
-
-QVariant QQuickControl::accessibleProperty(const char *propertyName)
-{
-#if QT_CONFIG(accessibility)
- if (QAccessible::isActive())
- return QQuickAccessibleAttached::property(this, propertyName);
-#endif
- Q_UNUSED(propertyName)
- return QVariant();
-}
-
-bool QQuickControl::setAccessibleProperty(const char *propertyName, const QVariant &value)
-{
-#if QT_CONFIG(accessibility)
- if (QAccessible::isActive())
- return QQuickAccessibleAttached::setProperty(this, propertyName, value);
-#endif
- Q_UNUSED(propertyName)
- Q_UNUSED(value)
- return false;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickcontrol_p.h b/src/quicktemplates2/qquickcontrol_p.h
deleted file mode 100644
index 3fe20f3b..00000000
--- a/src/quicktemplates2/qquickcontrol_p.h
+++ /dev/null
@@ -1,304 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCONTROL_P_H
-#define QQUICKCONTROL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qlocale.h>
-#include <QtGui/qpalette.h>
-#include <QtQuick/qquickitem.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickControlPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickControl : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QFont font READ font WRITE setFont RESET resetFont NOTIFY fontChanged FINAL)
- Q_PROPERTY(qreal availableWidth READ availableWidth NOTIFY availableWidthChanged FINAL)
- Q_PROPERTY(qreal availableHeight READ availableHeight NOTIFY availableHeightChanged FINAL)
- Q_PROPERTY(qreal padding READ padding WRITE setPadding RESET resetPadding NOTIFY paddingChanged FINAL)
- Q_PROPERTY(qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding NOTIFY topPaddingChanged FINAL)
- Q_PROPERTY(qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding NOTIFY leftPaddingChanged FINAL)
- Q_PROPERTY(qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding NOTIFY rightPaddingChanged FINAL)
- Q_PROPERTY(qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding NOTIFY bottomPaddingChanged FINAL)
- Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing RESET resetSpacing NOTIFY spacingChanged FINAL)
- Q_PROPERTY(QLocale locale READ locale WRITE setLocale RESET resetLocale NOTIFY localeChanged FINAL)
- Q_PROPERTY(bool mirrored READ isMirrored NOTIFY mirroredChanged FINAL)
- Q_PROPERTY(Qt::FocusPolicy focusPolicy READ focusPolicy WRITE setFocusPolicy NOTIFY focusPolicyChanged FINAL)
- Q_PROPERTY(Qt::FocusReason focusReason READ focusReason WRITE setFocusReason NOTIFY focusReasonChanged FINAL)
- Q_PROPERTY(bool visualFocus READ hasVisualFocus NOTIFY visualFocusChanged FINAL)
- Q_PROPERTY(bool hovered READ isHovered NOTIFY hoveredChanged FINAL)
- Q_PROPERTY(bool hoverEnabled READ isHoverEnabled WRITE setHoverEnabled RESET resetHoverEnabled NOTIFY hoverEnabledChanged FINAL)
- Q_PROPERTY(bool wheelEnabled READ isWheelEnabled WRITE setWheelEnabled NOTIFY wheelEnabledChanged FINAL)
- Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
- Q_PROPERTY(QQuickItem *contentItem READ contentItem WRITE setContentItem NOTIFY contentItemChanged FINAL)
- Q_PROPERTY(qreal baselineOffset READ baselineOffset WRITE setBaselineOffset RESET resetBaselineOffset NOTIFY baselineOffsetChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged FINAL REVISION 3)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal horizontalPadding READ horizontalPadding WRITE setHorizontalPadding RESET resetHorizontalPadding NOTIFY horizontalPaddingChanged FINAL REVISION 5)
- Q_PROPERTY(qreal verticalPadding READ verticalPadding WRITE setVerticalPadding RESET resetVerticalPadding NOTIFY verticalPaddingChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitContentWidth READ implicitContentWidth NOTIFY implicitContentWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitContentHeight READ implicitContentHeight NOTIFY implicitContentHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundWidth READ implicitBackgroundWidth NOTIFY implicitBackgroundWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundHeight READ implicitBackgroundHeight NOTIFY implicitBackgroundHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal topInset READ topInset WRITE setTopInset RESET resetTopInset NOTIFY topInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal leftInset READ leftInset WRITE setLeftInset RESET resetLeftInset NOTIFY leftInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal rightInset READ rightInset WRITE setRightInset RESET resetRightInset NOTIFY rightInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal bottomInset READ bottomInset WRITE setBottomInset RESET resetBottomInset NOTIFY bottomInsetChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background,contentItem")
-
-public:
- explicit QQuickControl(QQuickItem *parent = nullptr);
- ~QQuickControl();
-
- QFont font() const;
- void setFont(const QFont &font);
- void resetFont();
-
- qreal availableWidth() const;
- qreal availableHeight() const;
-
- qreal padding() const;
- void setPadding(qreal padding);
- void resetPadding();
-
- qreal topPadding() const;
- void setTopPadding(qreal padding);
- void resetTopPadding();
-
- qreal leftPadding() const;
- void setLeftPadding(qreal padding);
- void resetLeftPadding();
-
- qreal rightPadding() const;
- void setRightPadding(qreal padding);
- void resetRightPadding();
-
- qreal bottomPadding() const;
- void setBottomPadding(qreal padding);
- void resetBottomPadding();
-
- qreal spacing() const;
- void setSpacing(qreal spacing);
- void resetSpacing();
-
- QLocale locale() const;
- void setLocale(const QLocale &locale);
- void resetLocale();
-
- bool isMirrored() const;
-
- Qt::FocusPolicy focusPolicy() const;
- void setFocusPolicy(Qt::FocusPolicy policy);
-
- Qt::FocusReason focusReason() const;
- void setFocusReason(Qt::FocusReason reason);
-
- bool hasVisualFocus() const;
-
- bool isHovered() const;
- void setHovered(bool hovered);
-
- bool isHoverEnabled() const;
- void setHoverEnabled(bool enabled);
- void resetHoverEnabled();
-
- bool isWheelEnabled() const;
- void setWheelEnabled(bool enabled);
-
- QQuickItem *background() const;
- void setBackground(QQuickItem *background);
-
- QQuickItem *contentItem() const;
- void setContentItem(QQuickItem *item);
-
- qreal baselineOffset() const;
- void setBaselineOffset(qreal offset);
- void resetBaselineOffset();
-
- // 2.3 (Qt 5.10)
- QPalette palette() const;
- void setPalette(const QPalette &palette);
- void resetPalette();
-
- // 2.5 (Qt 5.12)
- qreal horizontalPadding() const;
- void setHorizontalPadding(qreal padding);
- void resetHorizontalPadding();
-
- qreal verticalPadding() const;
- void setVerticalPadding(qreal padding);
- void resetVerticalPadding();
-
- qreal implicitContentWidth() const;
- qreal implicitContentHeight() const;
-
- qreal implicitBackgroundWidth() const;
- qreal implicitBackgroundHeight() const;
-
- qreal topInset() const;
- void setTopInset(qreal inset);
- void resetTopInset();
-
- qreal leftInset() const;
- void setLeftInset(qreal inset);
- void resetLeftInset();
-
- qreal rightInset() const;
- void setRightInset(qreal inset);
- void resetRightInset();
-
- qreal bottomInset() const;
- void setBottomInset(qreal inset);
- void resetBottomInset();
-
-Q_SIGNALS:
- void fontChanged();
- void availableWidthChanged();
- void availableHeightChanged();
- void paddingChanged();
- void topPaddingChanged();
- void leftPaddingChanged();
- void rightPaddingChanged();
- void bottomPaddingChanged();
- void spacingChanged();
- void localeChanged();
- void mirroredChanged();
- void focusPolicyChanged();
- void focusReasonChanged();
- void visualFocusChanged();
- void hoveredChanged();
- void hoverEnabledChanged();
- void wheelEnabledChanged();
- void backgroundChanged();
- void contentItemChanged();
- void baselineOffsetChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void paletteChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void horizontalPaddingChanged();
- Q_REVISION(5) void verticalPaddingChanged();
- Q_REVISION(5) void implicitContentWidthChanged();
- Q_REVISION(5) void implicitContentHeightChanged();
- Q_REVISION(5) void implicitBackgroundWidthChanged();
- Q_REVISION(5) void implicitBackgroundHeightChanged();
- Q_REVISION(5) void topInsetChanged();
- Q_REVISION(5) void leftInsetChanged();
- Q_REVISION(5) void rightInsetChanged();
- Q_REVISION(5) void bottomInsetChanged();
-
-protected:
- virtual QFont defaultFont() const;
- virtual QPalette defaultPalette() const;
-
- QQuickControl(QQuickControlPrivate &dd, QQuickItem *parent);
-
- void classBegin() override;
- void componentComplete() override;
-
- void itemChange(ItemChange change, const ItemChangeData &value) override;
-
- void focusInEvent(QFocusEvent *event) override;
- void focusOutEvent(QFocusEvent *event) override;
-#if QT_CONFIG(quicktemplates2_hover)
- void hoverEnterEvent(QHoverEvent *event) override;
- void hoverMoveEvent(QHoverEvent *event) override;
- void hoverLeaveEvent(QHoverEvent *event) override;
-#endif
- void mousePressEvent(QMouseEvent *event) override;
- void mouseMoveEvent(QMouseEvent *event) override;
- void mouseReleaseEvent(QMouseEvent *event) override;
- void mouseUngrabEvent() override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
- void touchUngrabEvent() override;
-#endif
-#if QT_CONFIG(wheelevent)
- void wheelEvent(QWheelEvent *event) override;
-#endif
-
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
- virtual void fontChange(const QFont &newFont, const QFont &oldFont);
-#if QT_CONFIG(quicktemplates2_hover)
- virtual void hoverChange();
-#endif
- virtual void mirrorChange();
- virtual void spacingChange(qreal newSpacing, qreal oldSpacing);
- virtual void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding);
- virtual void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem);
- virtual void localeChange(const QLocale &newLocale, const QLocale &oldLocale);
- virtual void paletteChange(const QPalette &newPalette, const QPalette &oldPalette);
- virtual void insetChange(const QMarginsF &newInset, const QMarginsF &oldInset);
- virtual void enabledChange();
-
-#if QT_CONFIG(accessibility)
- virtual QAccessible::Role accessibleRole() const;
- virtual void accessibilityActiveChanged(bool active);
-#endif
-
- // helper functions which avoid to check QT_CONFIG(accessibility)
- QString accessibleName() const;
- void setAccessibleName(const QString &name);
-
- QVariant accessibleProperty(const char *propertyName);
- bool setAccessibleProperty(const char *propertyName, const QVariant &value);
-
-private:
- Q_DISABLE_COPY(QQuickControl)
- Q_DECLARE_PRIVATE(QQuickControl)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickControl)
-
-#endif // QQUICKCONTROL_P_H
diff --git a/src/quicktemplates2/qquickcontrol_p_p.h b/src/quicktemplates2/qquickcontrol_p_p.h
deleted file mode 100644
index a657307b..00000000
--- a/src/quicktemplates2/qquickcontrol_p_p.h
+++ /dev/null
@@ -1,245 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKCONTROL_P_P_H
-#define QQUICKCONTROL_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
-#include <QtQuickTemplates2/private/qquicktheme_p.h>
-
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQml/private/qlazilyallocated_p.h>
-
-#if QT_CONFIG(accessibility)
-#include <QtGui/qaccessible.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAccessibleAttached;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickControlPrivate : public QQuickItemPrivate, public QQuickItemChangeListener
-#if QT_CONFIG(accessibility)
- , public QAccessible::ActivationObserver
-#endif
-{
- Q_DECLARE_PUBLIC(QQuickControl)
-
-public:
- QQuickControlPrivate();
- ~QQuickControlPrivate();
-
- static QQuickControlPrivate *get(QQuickControl *control)
- {
- return control->d_func();
- }
-
- void init();
-
-#if QT_CONFIG(quicktemplates2_multitouch)
- virtual bool acceptTouch(const QTouchEvent::TouchPoint &point);
-#endif
- virtual void handlePress(const QPointF &point);
- virtual void handleMove(const QPointF &point);
- virtual void handleRelease(const QPointF &point);
- virtual void handleUngrab();
-
- void mirrorChange() override;
-
- inline QMarginsF getPadding() const { return QMarginsF(getLeftPadding(), getTopPadding(), getRightPadding(), getBottomPadding()); }
- inline qreal getTopPadding() const { return extra.isAllocated() && extra->hasTopPadding ? extra->topPadding : getVerticalPadding(); }
- inline qreal getLeftPadding() const { return extra.isAllocated() && extra->hasLeftPadding ? extra->leftPadding : getHorizontalPadding(); }
- inline qreal getRightPadding() const { return extra.isAllocated() && extra->hasRightPadding ? extra->rightPadding : getHorizontalPadding(); }
- inline qreal getBottomPadding() const { return extra.isAllocated() && extra->hasBottomPadding ? extra->bottomPadding : getVerticalPadding(); }
- inline qreal getHorizontalPadding() const { return hasHorizontalPadding ? horizontalPadding : padding; }
- inline qreal getVerticalPadding() const { return hasVerticalPadding ? verticalPadding : padding; }
-
- void setTopPadding(qreal value, bool reset = false);
- void setLeftPadding(qreal value, bool reset = false);
- void setRightPadding(qreal value, bool reset = false);
- void setBottomPadding(qreal value, bool reset = false);
- void setHorizontalPadding(qreal value, bool reset = false);
- void setVerticalPadding(qreal value, bool reset = false);
-
- inline QMarginsF getInset() const { return QMarginsF(getLeftInset(), getTopInset(), getRightInset(), getBottomInset()); }
- inline qreal getTopInset() const { return extra.isAllocated() ? extra->topInset : 0; }
- inline qreal getLeftInset() const { return extra.isAllocated() ? extra->leftInset : 0; }
- inline qreal getRightInset() const { return extra.isAllocated() ? extra->rightInset : 0; }
- inline qreal getBottomInset() const { return extra.isAllocated() ? extra->bottomInset : 0; }
-
- void setTopInset(qreal value, bool reset = false);
- void setLeftInset(qreal value, bool reset = false);
- void setRightInset(qreal value, bool reset = false);
- void setBottomInset(qreal value, bool reset = false);
-
- void resizeBackground();
- virtual void resizeContent();
-
- virtual QQuickItem *getContentItem();
- void setContentItem_helper(QQuickItem *item, bool notify = true);
-
-#if QT_CONFIG(accessibility)
- void accessibilityActiveChanged(bool active) override;
- QAccessible::Role accessibleRole() const override;
- static QQuickAccessibleAttached *accessibleAttached(const QObject *object);
-#endif
-
- virtual void resolveFont();
- void inheritFont(const QFont &font);
- void updateFont(const QFont &font);
- static void updateFontRecur(QQuickItem *item, const QFont &font);
- inline void setFont_helper(const QFont &font) {
- if (resolvedFont.resolve() == font.resolve() && resolvedFont == font)
- return;
- updateFont(font);
- }
- static QFont parentFont(const QQuickItem *item);
-
- virtual void resolvePalette();
- void inheritPalette(const QPalette &palette);
- void updatePalette(const QPalette &palette);
- static void updatePaletteRecur(QQuickItem *item, const QPalette &palette);
- inline void setPalette_helper(const QPalette &palette) {
- if (resolvedPalette.resolve() == palette.resolve() && resolvedPalette == palette)
- return;
- updatePalette(palette);
- }
- static QPalette parentPalette(const QQuickItem *item);
-
- void updateLocale(const QLocale &l, bool e);
- static void updateLocaleRecur(QQuickItem *item, const QLocale &l);
- static QLocale calcLocale(const QQuickItem *item);
-
-#if QT_CONFIG(quicktemplates2_hover)
- void updateHoverEnabled(bool enabled, bool xplicit);
- static void updateHoverEnabledRecur(QQuickItem *item, bool enabled);
- static bool calcHoverEnabled(const QQuickItem *item);
-#endif
-
- virtual void cancelContentItem();
- virtual void executeContentItem(bool complete = false);
-
- virtual void cancelBackground();
- virtual void executeBackground(bool complete = false);
-
- void updateBaselineOffset();
-
- static const ChangeTypes ImplicitSizeChanges;
-
- void addImplicitSizeListener(QQuickItem *item, ChangeTypes changes = ImplicitSizeChanges);
- void removeImplicitSizeListener(QQuickItem *item, ChangeTypes changes = ImplicitSizeChanges);
-
- static void addImplicitSizeListener(QQuickItem *item, QQuickItemChangeListener *listener, ChangeTypes changes = ImplicitSizeChanges);
- static void removeImplicitSizeListener(QQuickItem *item, QQuickItemChangeListener *listener, ChangeTypes changes = ImplicitSizeChanges);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
- void itemDestroyed(QQuickItem *item) override;
-
- virtual qreal getContentWidth() const;
- virtual qreal getContentHeight() const;
-
- void updateImplicitContentWidth();
- void updateImplicitContentHeight();
- void updateImplicitContentSize();
-
- struct ExtraData {
- bool hasTopPadding = false;
- bool hasLeftPadding = false;
- bool hasRightPadding = false;
- bool hasBottomPadding = false;
- bool hasBaselineOffset = false;
- bool hasTopInset = false;
- bool hasLeftInset = false;
- bool hasRightInset = false;
- bool hasBottomInset = false;
- bool hasBackgroundWidth = false;
- bool hasBackgroundHeight = false;
- qreal topPadding = 0;
- qreal leftPadding = 0;
- qreal rightPadding = 0;
- qreal bottomPadding = 0;
- qreal topInset = 0;
- qreal leftInset = 0;
- qreal rightInset = 0;
- qreal bottomInset = 0;
- QFont requestedFont;
- QPalette requestedPalette;
- };
- QLazilyAllocated<ExtraData> extra;
-
- bool hasHorizontalPadding = false;
- bool hasVerticalPadding = false;
- bool hasLocale = false;
- bool wheelEnabled = false;
-#if QT_CONFIG(quicktemplates2_hover)
- bool hovered = false;
- bool explicitHoverEnabled = false;
-#endif
- bool resizingBackground = false;
- int touchId = -1;
- qreal padding = 0;
- qreal horizontalPadding = 0;
- qreal verticalPadding = 0;
- qreal implicitContentWidth = 0;
- qreal implicitContentHeight = 0;
- qreal spacing = 0;
- QLocale locale;
- QFont resolvedFont;
- QPalette resolvedPalette;
- Qt::FocusPolicy focusPolicy = Qt::NoFocus;
- Qt::FocusReason focusReason = Qt::OtherFocusReason;
- QQuickDeferredPointer<QQuickItem> background;
- QQuickDeferredPointer<QQuickItem> contentItem;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKCONTROL_P_P_H
diff --git a/src/quicktemplates2/qquickdeferredexecute.cpp b/src/quicktemplates2/qquickdeferredexecute.cpp
deleted file mode 100644
index 800dcedb..00000000
--- a/src/quicktemplates2/qquickdeferredexecute.cpp
+++ /dev/null
@@ -1,149 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickdeferredexecute_p_p.h"
-
-#include <QtCore/qhash.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/private/qqmldata_p.h>
-#include <QtQml/private/qqmlcomponent_p.h>
-#include <QtQml/private/qqmlobjectcreator_p.h>
-
-QT_BEGIN_NAMESPACE
-
-namespace QtQuickPrivate {
-
-typedef QHash<uint, QQmlComponentPrivate::DeferredState *> DeferredStates;
-
-static inline uint qHash(QObject *object, const QString &propertyName)
-{
- return ::qHash(object) + ::qHash(propertyName);
-}
-
-Q_GLOBAL_STATIC(DeferredStates, deferredStates)
-
-static void cancelDeferred(QQmlData *ddata, int propertyIndex)
-{
- auto dit = ddata->deferredData.rbegin();
- while (dit != ddata->deferredData.rend()) {
- (*dit)->bindings.remove(propertyIndex);
- ++dit;
- }
-}
-
-static bool beginDeferred(QQmlEnginePrivate *enginePriv, const QQmlProperty &property, QQmlComponentPrivate::DeferredState *deferredState)
-{
- QObject *object = property.object();
- QQmlData *ddata = QQmlData::get(object);
- Q_ASSERT(!ddata->deferredData.isEmpty());
-
- int propertyIndex = property.index();
- int wasInProgress = enginePriv->inProgressCreations;
-
- for (auto dit = ddata->deferredData.rbegin(); dit != ddata->deferredData.rend(); ++dit) {
- QQmlData::DeferredData *deferData = *dit;
-
- auto bindings = deferData->bindings;
- auto range = bindings.equal_range(propertyIndex);
- if (range.first == bindings.end())
- continue;
-
- QQmlComponentPrivate::ConstructionState *state = new QQmlComponentPrivate::ConstructionState;
- state->completePending = true;
-
- QQmlContextData *creationContext = nullptr;
- state->creator.reset(new QQmlObjectCreator(deferData->context->parent, deferData->compilationUnit, creationContext));
-
- enginePriv->inProgressCreations++;
-
- typedef QMultiHash<int, const QV4::CompiledData::Binding *> QV4PropertyBindingHash;
- auto it = std::reverse_iterator<QV4PropertyBindingHash::iterator>(range.second);
- auto last = std::reverse_iterator<QV4PropertyBindingHash::iterator>(range.first);
- while (it != last) {
- if (!state->creator->populateDeferredBinding(property, deferData, *it))
- state->errors << state->creator->errors;
- ++it;
- }
-
- deferredState->constructionStates += state;
-
- // Cleanup any remaining deferred bindings for this property, also in inner contexts,
- // to avoid executing them later and overriding the property that was just populated.
- cancelDeferred(ddata, propertyIndex);
- break;
- }
-
- return enginePriv->inProgressCreations > wasInProgress;
-}
-
-void beginDeferred(QObject *object, const QString &property)
-{
- QQmlData *data = QQmlData::get(object);
- if (data && !data->deferredData.isEmpty() && !data->wasDeleted(object)) {
- QQmlEnginePrivate *ep = QQmlEnginePrivate::get(data->context->engine);
-
- QQmlComponentPrivate::DeferredState *state = new QQmlComponentPrivate::DeferredState;
- if (beginDeferred(ep, QQmlProperty(object, property), state))
- deferredStates()->insert(qHash(object, property), state);
- else
- delete state;
-
- // Release deferred data for those compilation units that no longer have deferred bindings
- data->releaseDeferredData();
- }
-}
-
-void cancelDeferred(QObject *object, const QString &property)
-{
- QQmlData *data = QQmlData::get(object);
- if (data)
- cancelDeferred(data, QQmlProperty(object, property).index());
-}
-
-void completeDeferred(QObject *object, const QString &property)
-{
- QQmlData *data = QQmlData::get(object);
- QQmlComponentPrivate::DeferredState *state = deferredStates()->take(qHash(object, property));
- if (data && state && !data->wasDeleted(object)) {
- QQmlEnginePrivate *ep = QQmlEnginePrivate::get(data->context->engine);
- QQmlComponentPrivate::completeDeferred(ep, state);
- }
- delete state;
-}
-
-} // QtQuickPrivate
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickdeferredexecute_p_p.h b/src/quicktemplates2/qquickdeferredexecute_p_p.h
deleted file mode 100644
index 29d95ee9..00000000
--- a/src/quicktemplates2/qquickdeferredexecute_p_p.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDEFERREDEXECUTE_P_P_H
-#define QQUICKDEFERREDEXECUTE_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qglobal.h>
-#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
-
-#include <QtQml/private/qqmlvme_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QString;
-class QObject;
-
-namespace QtQuickPrivate {
- void beginDeferred(QObject *object, const QString &property);
- void cancelDeferred(QObject *object, const QString &property);
- void completeDeferred(QObject *object, const QString &property);
-}
-
-template<typename T>
-void quickBeginDeferred(QObject *object, const QString &property, QQuickDeferredPointer<T> &delegate)
-{
- if (!QQmlVME::componentCompleteEnabled())
- return;
-
- delegate.setExecuting(true);
- QtQuickPrivate::beginDeferred(object, property);
- delegate.setExecuting(false);
-}
-
-inline void quickCancelDeferred(QObject *object, const QString &property)
-{
- QtQuickPrivate::cancelDeferred(object, property);
-}
-
-template<typename T>
-void quickCompleteDeferred(QObject *object, const QString &property, QQuickDeferredPointer<T> &delegate)
-{
- Q_ASSERT(!delegate.wasExecuted());
- QtQuickPrivate::completeDeferred(object, property);
- delegate.setExecuted();
-}
-
-QT_END_NAMESPACE
-
-#endif // QQUICKDEFERREDEXECUTE_P_P_H
diff --git a/src/quicktemplates2/qquickdeferredpointer_p_p.h b/src/quicktemplates2/qquickdeferredpointer_p_p.h
deleted file mode 100644
index f70b5dc6..00000000
--- a/src/quicktemplates2/qquickdeferredpointer_p_p.h
+++ /dev/null
@@ -1,188 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDEFERREDPOINTER_P_P_H
-#define QQUICKDEFERREDPOINTER_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qglobal.h>
-
-QT_BEGIN_NAMESPACE
-
-template<typename T>
-class QQuickDeferredPointer
-{
-public:
- inline QQuickDeferredPointer();
- inline QQuickDeferredPointer(T *);
- inline QQuickDeferredPointer(const QQuickDeferredPointer<T> &o);
-
- inline bool isNull() const;
-
- inline bool wasExecuted() const;
- inline void setExecuted();
-
- inline bool isExecuting() const;
- inline void setExecuting(bool);
-
- inline operator T*() const;
- inline operator bool() const;
-
- inline T *data() const;
- inline T *operator*() const;
- inline T *operator->() const;
-
- inline QQuickDeferredPointer<T> &operator=(T *);
- inline QQuickDeferredPointer<T> &operator=(const QQuickDeferredPointer &o);
-
-private:
- quintptr ptr_value = 0;
-
- static const quintptr WasExecutedBit = 0x1;
- static const quintptr IsExecutingBit = 0x2;
- static const quintptr FlagsMask = WasExecutedBit | IsExecutingBit;
-};
-
-template<typename T>
-QQuickDeferredPointer<T>::QQuickDeferredPointer()
-{
-}
-
-template<typename T>
-QQuickDeferredPointer<T>::QQuickDeferredPointer(T *v)
-: ptr_value(quintptr(v))
-{
- Q_ASSERT((ptr_value & FlagsMask) == 0);
-}
-
-template<typename T>
-QQuickDeferredPointer<T>::QQuickDeferredPointer(const QQuickDeferredPointer<T> &o)
-: ptr_value(o.ptr_value)
-{
-}
-
-template<typename T>
-bool QQuickDeferredPointer<T>::isNull() const
-{
- return 0 == (ptr_value & (~FlagsMask));
-}
-
-template<typename T>
-bool QQuickDeferredPointer<T>::wasExecuted() const
-{
- return ptr_value & WasExecutedBit;
-}
-
-template<typename T>
-void QQuickDeferredPointer<T>::setExecuted()
-{
- ptr_value |= WasExecutedBit;
-}
-
-template<typename T>
-bool QQuickDeferredPointer<T>::isExecuting() const
-{
- return ptr_value & IsExecutingBit;
-}
-
-template<typename T>
-void QQuickDeferredPointer<T>::setExecuting(bool b)
-{
- if (b)
- ptr_value |= IsExecutingBit;
- else
- ptr_value &= ~IsExecutingBit;
-}
-
-template<typename T>
-QQuickDeferredPointer<T>::operator T*() const
-{
- return data();
-}
-
-template<typename T>
-QQuickDeferredPointer<T>::operator bool() const
-{
- return !isNull();
-}
-
-template<typename T>
-T *QQuickDeferredPointer<T>::data() const
-{
- return (T *)(ptr_value & ~FlagsMask);
-}
-
-template<typename T>
-T *QQuickDeferredPointer<T>::operator*() const
-{
- return (T *)(ptr_value & ~FlagsMask);
-}
-
-template<typename T>
-T *QQuickDeferredPointer<T>::operator->() const
-{
- return (T *)(ptr_value & ~FlagsMask);
-}
-
-template<typename T>
-QQuickDeferredPointer<T> &QQuickDeferredPointer<T>::operator=(T *o)
-{
- Q_ASSERT((quintptr(o) & FlagsMask) == 0);
-
- ptr_value = quintptr(o) | (ptr_value & FlagsMask);
- return *this;
-}
-
-template<typename T>
-QQuickDeferredPointer<T> &QQuickDeferredPointer<T>::operator=(const QQuickDeferredPointer &o)
-{
- ptr_value = o.ptr_value;
- return *this;
-}
-
-QT_END_NAMESPACE
-
-#endif // QQUICKDEFERREDPOINTER_P_P_H
diff --git a/src/quicktemplates2/qquickdelaybutton.cpp b/src/quicktemplates2/qquickdelaybutton.cpp
deleted file mode 100644
index ba5953a0..00000000
--- a/src/quicktemplates2/qquickdelaybutton.cpp
+++ /dev/null
@@ -1,267 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickdelaybutton_p.h"
-#include "qquickabstractbutton_p_p.h"
-
-#include <QtQuick/private/qquickanimation_p.h>
-#include <QtQuick/private/qquicktransition_p.h>
-#include <QtQuick/private/qquicktransitionmanager_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype DelayButton
- \inherits AbstractButton
- \instantiates QQuickDelayButton
- \inqmlmodule QtQuick.Controls
- \since 5.9
- \ingroup qtquickcontrols2-buttons
- \brief Check button that triggers when held down long enough.
-
- \image qtquickcontrols2-delaybutton.gif
-
- DelayButton is a checkable button that incorporates a delay before the
- button becomes \l {AbstractButton::}{checked} and the \l activated()
- signal is emitted. This delay prevents accidental presses.
-
- The current progress is expressed as a decimal value between \c 0.0
- and \c 1.0. The time it takes for \l activated() to be emitted is
- measured in milliseconds, and can be set with the \l delay property.
-
- The progress is indicated by a progress indicator on the button.
-
- \sa {Customizing DelayButton}, {Button Controls}
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::DelayButton::activated()
-
- This signal is emitted when \l progress reaches \c 1.0.
-*/
-
-class QQuickDelayTransitionManager;
-
-class QQuickDelayButtonPrivate : public QQuickAbstractButtonPrivate
-{
- Q_DECLARE_PUBLIC(QQuickDelayButton)
-
-public:
- void beginTransition(qreal to);
- void finishTransition();
- void cancelTransition();
-
- int delay = 300;
- qreal progress = 0.0;
- QQuickTransition *transition = nullptr;
- QScopedPointer<QQuickDelayTransitionManager> transitionManager;
-};
-
-class QQuickDelayTransitionManager : public QQuickTransitionManager
-{
-public:
- QQuickDelayTransitionManager(QQuickDelayButton *button) : m_button(button) { }
-
- void transition(QQuickTransition *transition, qreal progress);
-
-protected:
- void finished() override;
-
-private:
- QQuickDelayButton *m_button = nullptr;
-};
-
-void QQuickDelayTransitionManager::transition(QQuickTransition *transition, qreal progress)
-{
- qmlExecuteDeferred(transition);
-
- QQmlProperty defaultTarget(m_button, QLatin1String("progress"));
- QQmlListProperty<QQuickAbstractAnimation> animations = transition->animations();
- const int count = animations.count(&animations);
- for (int i = 0; i < count; ++i) {
- QQuickAbstractAnimation *anim = animations.at(&animations, i);
- anim->setDefaultTarget(defaultTarget);
- }
-
- QList<QQuickStateAction> actions;
- actions << QQuickStateAction(m_button, QLatin1String("progress"), progress);
- QQuickTransitionManager::transition(actions, transition, m_button);
-}
-
-void QQuickDelayTransitionManager::finished()
-{
- if (qFuzzyCompare(m_button->progress(), qreal(1.0)))
- emit m_button->activated();
-}
-
-void QQuickDelayButtonPrivate::beginTransition(qreal to)
-{
- Q_Q(QQuickDelayButton);
- if (!transition) {
- q->setProgress(to);
- finishTransition();
- return;
- }
-
- if (!transitionManager)
- transitionManager.reset(new QQuickDelayTransitionManager(q));
-
- transitionManager->transition(transition, to);
-}
-
-void QQuickDelayButtonPrivate::finishTransition()
-{
- Q_Q(QQuickDelayButton);
- if (qFuzzyCompare(progress, qreal(1.0)))
- emit q->activated();
-}
-
-void QQuickDelayButtonPrivate::cancelTransition()
-{
- if (transitionManager)
- transitionManager->cancel();
-}
-
-QQuickDelayButton::QQuickDelayButton(QQuickItem *parent)
- : QQuickAbstractButton(*(new QQuickDelayButtonPrivate), parent)
-{
- setCheckable(true);
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::DelayButton::delay
-
- This property holds the time it takes (in milliseconds) for \l progress
- to reach \c 1.0 and emit \l activated().
-
- The default value is \c 3000 ms.
-*/
-int QQuickDelayButton::delay() const
-{
- Q_D(const QQuickDelayButton);
- return d->delay;
-}
-
-void QQuickDelayButton::setDelay(int delay)
-{
- Q_D(QQuickDelayButton);
- if (d->delay == delay)
- return;
-
- d->delay = delay;
- emit delayChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::DelayButton::progress
- \readonly
-
- This property holds the current progress as displayed by the progress
- indicator, in the range \c 0.0 - \c 1.0.
-*/
-qreal QQuickDelayButton::progress() const
-{
- Q_D(const QQuickDelayButton);
- return d->progress;
-}
-
-void QQuickDelayButton::setProgress(qreal progress)
-{
- Q_D(QQuickDelayButton);
- if (qFuzzyCompare(d->progress, progress))
- return;
-
- d->progress = progress;
- emit progressChanged();
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::DelayButton::transition
-
- This property holds the transition that is applied on the \l progress
- property when the button is pressed or released.
-*/
-QQuickTransition *QQuickDelayButton::transition() const
-{
- Q_D(const QQuickDelayButton);
- return d->transition;
-}
-
-void QQuickDelayButton::setTransition(QQuickTransition *transition)
-{
- Q_D(QQuickDelayButton);
- if (d->transition == transition)
- return;
-
- d->transition = transition;
- emit transitionChanged();
-}
-
-void QQuickDelayButton::buttonChange(ButtonChange change)
-{
- Q_D(QQuickDelayButton);
- switch (change) {
- case ButtonCheckedChange:
- d->cancelTransition();
- setProgress(d->checked ? 1.0 : 0.0);
- break;
- case ButtonPressedChanged:
- if (!d->checked)
- d->beginTransition(d->pressed ? 1.0 : 0.0);
- break;
- default:
- QQuickAbstractButton::buttonChange(change);
- break;
- }
-}
-
-void QQuickDelayButton::nextCheckState()
-{
- Q_D(QQuickDelayButton);
- setChecked(!d->checked && qFuzzyCompare(d->progress, qreal(1.0)));
-}
-
-QFont QQuickDelayButton::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::Button);
-}
-
-QPalette QQuickDelayButton::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::Button);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickdelaybutton_p.h b/src/quicktemplates2/qquickdelaybutton_p.h
deleted file mode 100644
index 0927eb4a..00000000
--- a/src/quicktemplates2/qquickdelaybutton_p.h
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDELAYBUTTON_P_H
-#define QQUICKDELAYBUTTON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTransition;
-class QQuickDelayButtonPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickDelayButton : public QQuickAbstractButton
-{
- Q_OBJECT
- Q_PROPERTY(int delay READ delay WRITE setDelay NOTIFY delayChanged FINAL)
- Q_PROPERTY(qreal progress READ progress WRITE setProgress NOTIFY progressChanged FINAL)
- Q_PROPERTY(QQuickTransition *transition READ transition WRITE setTransition NOTIFY transitionChanged FINAL)
-
-public:
- explicit QQuickDelayButton(QQuickItem *parent = nullptr);
-
- int delay() const;
- void setDelay(int delay);
-
- qreal progress() const;
- void setProgress(qreal progress);
-
- QQuickTransition *transition() const;
- void setTransition(QQuickTransition *transition);
-
-Q_SIGNALS:
- void activated();
- void delayChanged();
- void progressChanged();
- void transitionChanged();
-
-protected:
- void buttonChange(ButtonChange change) override;
- void nextCheckState() override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-private:
- Q_DISABLE_COPY(QQuickDelayButton)
- Q_DECLARE_PRIVATE(QQuickDelayButton)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDelayButton)
-
-#endif // QQUICKDELAYBUTTON_P_H
diff --git a/src/quicktemplates2/qquickdial.cpp b/src/quicktemplates2/qquickdial.cpp
deleted file mode 100644
index 431b25a8..00000000
--- a/src/quicktemplates2/qquickdial.cpp
+++ /dev/null
@@ -1,828 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickdial_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtQuick/private/qquickflickable_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Dial
- \inherits Control
- \instantiates QQuickDial
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-input
- \brief Circular dial that is rotated to set a value.
-
- The Dial is similar to a traditional dial knob that is found on devices
- such as stereos or industrial equipment. It allows the user to specify a
- value within a range.
-
- \image qtquickcontrols2-dial-no-wrap.gif
-
- The value of the dial is set with the \l value property. The range is
- set with the \l from and \l to properties. To enable or disable wrapping,
- use the \l wrap property.
-
- The dial can be manipulated with a keyboard. It supports the following
- actions:
-
- \table
- \header \li \b {Action} \li \b {Key}
- \row \li Decrease \l value by \l stepSize \li \c Qt.Key_Left
- \row \li Decrease \l value by \l stepSize \li \c Qt.Key_Down
- \row \li Set \l value to \l from \li \c Qt.Key_Home
- \row \li Increase \l value by \l stepSize \li \c Qt.Key_Right
- \row \li Increase \l value by \l stepSize \li \c Qt.Key_Up
- \row \li Set \l value to \l to \li \c Qt.Key_End
- \endtable
-
- \include qquickdial.qdocinc inputMode
-
- \sa {Customizing Dial}, {Input Controls}
-*/
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlsignal QtQuick.Controls::Dial::moved()
-
- This signal is emitted when the dial has been interactively moved
- by the user by either touch, mouse, or keys.
-*/
-
-static const qreal startAngleRadians = (M_PI * 2.0) * (4.0 / 6.0);
-static const qreal startAngle = -140;
-static const qreal endAngleRadians = (M_PI * 2.0) * (5.0 / 6.0);
-static const qreal endAngle = 140;
-
-class QQuickDialPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickDial)
-
-public:
- qreal valueAt(qreal position) const;
- qreal snapPosition(qreal position) const;
- qreal positionAt(const QPointF &point) const;
- qreal circularPositionAt(const QPointF &point) const;
- qreal linearPositionAt(const QPointF &point) const;
- void setPosition(qreal position);
- void updatePosition();
- bool isLargeChange(const QPointF &eventPos, qreal proposedPosition) const;
- bool isHorizontalOrVertical() const;
-
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- void cancelHandle();
- void executeHandle(bool complete = false);
-
- qreal from = 0;
- qreal to = 1;
- qreal value = 0;
- qreal position = 0;
- qreal angle = startAngle;
- qreal stepSize = 0;
- bool pressed = false;
- QPointF pressPoint;
- qreal positionBeforePress = 0;
- QQuickDial::SnapMode snapMode = QQuickDial::NoSnap;
- QQuickDial::InputMode inputMode = QQuickDial::Circular;
- bool wrap = false;
- bool live = true;
- QQuickDeferredPointer<QQuickItem> handle;
-};
-
-qreal QQuickDialPrivate::valueAt(qreal position) const
-{
- return from + (to - from) * position;
-}
-
-qreal QQuickDialPrivate::snapPosition(qreal position) const
-{
- const qreal range = to - from;
- if (qFuzzyIsNull(range))
- return position;
-
- const qreal effectiveStep = stepSize / range;
- if (qFuzzyIsNull(effectiveStep))
- return position;
-
- return qRound(position / effectiveStep) * effectiveStep;
-}
-
-qreal QQuickDialPrivate::positionAt(const QPointF &point) const
-{
- return inputMode == QQuickDial::Circular ? circularPositionAt(point) : linearPositionAt(point);
-}
-
-qreal QQuickDialPrivate::circularPositionAt(const QPointF &point) const
-{
- qreal yy = height / 2.0 - point.y();
- qreal xx = point.x() - width / 2.0;
- qreal angle = (xx || yy) ? std::atan2(yy, xx) : 0;
-
- if (angle < M_PI / -2)
- angle = angle + M_PI * 2;
-
- qreal normalizedAngle = (startAngleRadians - angle) / endAngleRadians;
- return normalizedAngle;
-}
-
-qreal QQuickDialPrivate::linearPositionAt(const QPointF &point) const
-{
- // This value determines the range (either horizontal or vertical)
- // within which the dial can be dragged.
- // The larger this value is, the further the drag distance
- // must be to go from a position of e.g. 0.0 to 1.0.
- qreal dragArea = 0;
-
- // The linear input mode uses a "relative" input system,
- // where the distance from the press point is used to calculate
- // the change in position. Moving the mouse above the press
- // point increases the position (when inputMode is Vertical),
- // and vice versa. This prevents the dial from jumping when clicked.
- qreal dragDistance = 0;
-
- if (inputMode == QQuickDial::Horizontal) {
- dragArea = width * 2;
- dragDistance = pressPoint.x() - point.x();
- } else {
- dragArea = height * 2;
- dragDistance = point.y() - pressPoint.y();
- }
- const qreal normalisedDifference = dragDistance / dragArea;
- return qBound(qreal(0), positionBeforePress - normalisedDifference, qreal(1));
-}
-
-void QQuickDialPrivate::setPosition(qreal pos)
-{
- Q_Q(QQuickDial);
- pos = qBound<qreal>(qreal(0), pos, qreal(1));
- if (qFuzzyCompare(position, pos))
- return;
-
- position = pos;
-
- angle = startAngle + position * qAbs(endAngle - startAngle);
-
- emit q->positionChanged();
- emit q->angleChanged();
-}
-
-void QQuickDialPrivate::updatePosition()
-{
- qreal pos = 0;
- if (!qFuzzyCompare(from, to))
- pos = (value - from) / (to - from);
- setPosition(pos);
-}
-
-bool QQuickDialPrivate::isLargeChange(const QPointF &eventPos, qreal proposedPosition) const
-{
- return qAbs(proposedPosition - position) >= qreal(0.5) && eventPos.y() >= height / 2;
-}
-
-bool QQuickDialPrivate::isHorizontalOrVertical() const
-{
- return inputMode == QQuickDial::Horizontal || inputMode == QQuickDial::Vertical;
-}
-
-void QQuickDialPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickDial);
- QQuickControlPrivate::handlePress(point);
- pressPoint = point;
- positionBeforePress = position;
- q->setPressed(true);
-}
-
-void QQuickDialPrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickDial);
- QQuickControlPrivate::handleMove(point);
- const qreal oldPos = position;
- qreal pos = positionAt(point);
- if (snapMode == QQuickDial::SnapAlways)
- pos = snapPosition(pos);
-
- if (wrap || (!wrap && (isHorizontalOrVertical() || !isLargeChange(point, pos)))) {
- if (live)
- q->setValue(valueAt(pos));
- else
- setPosition(pos);
- if (!qFuzzyCompare(pos, oldPos))
- emit q->moved();
- }
-}
-
-void QQuickDialPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickDial);
- QQuickControlPrivate::handleRelease(point);
- if (q->keepMouseGrab() || q->keepTouchGrab()) {
- const qreal oldPos = position;
- qreal pos = positionAt(point);
- if (snapMode != QQuickDial::NoSnap)
- pos = snapPosition(pos);
-
- if (wrap || (!wrap && (isHorizontalOrVertical() || !isLargeChange(point, pos))))
- q->setValue(valueAt(pos));
- if (!qFuzzyCompare(pos, oldPos))
- emit q->moved();
-
- q->setKeepMouseGrab(false);
- q->setKeepTouchGrab(false);
- }
-
- q->setPressed(false);
- pressPoint = QPointF();
- positionBeforePress = 0;
-}
-
-void QQuickDialPrivate::handleUngrab()
-{
- Q_Q(QQuickDial);
- QQuickControlPrivate::handleUngrab();
- pressPoint = QPointF();
- positionBeforePress = 0;
- q->setPressed(false);
-}
-
-static inline QString handleName() { return QStringLiteral("handle"); }
-
-void QQuickDialPrivate::cancelHandle()
-{
- Q_Q(QQuickDial);
- quickCancelDeferred(q, handleName());
-}
-
-void QQuickDialPrivate::executeHandle(bool complete)
-{
- Q_Q(QQuickDial);
- if (handle.wasExecuted())
- return;
-
- if (!handle || complete)
- quickBeginDeferred(q, handleName(), handle);
- if (complete)
- quickCompleteDeferred(q, handleName(), handle);
-}
-
-QQuickDial::QQuickDial(QQuickItem *parent)
- : QQuickControl(*(new QQuickDialPrivate), parent)
-{
- setActiveFocusOnTab(true);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Dial::from
-
- This property holds the starting value for the range. The default value is \c 0.0.
-
- \sa to, value
-*/
-qreal QQuickDial::from() const
-{
- Q_D(const QQuickDial);
- return d->from;
-}
-
-void QQuickDial::setFrom(qreal from)
-{
- Q_D(QQuickDial);
- if (qFuzzyCompare(d->from, from))
- return;
-
- d->from = from;
- emit fromChanged();
- if (isComponentComplete()) {
- setValue(d->value);
- d->updatePosition();
- }
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Dial::to
-
- This property holds the end value for the range. The default value is
- \c 1.0.
-
- \sa from, value
-*/
-qreal QQuickDial::to() const
-{
- Q_D(const QQuickDial);
- return d->to;
-}
-
-void QQuickDial::setTo(qreal to)
-{
- Q_D(QQuickDial);
- if (qFuzzyCompare(d->to, to))
- return;
-
- d->to = to;
- emit toChanged();
- if (isComponentComplete()) {
- setValue(d->value);
- d->updatePosition();
- }
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Dial::value
-
- This property holds the value in the range \c from - \c to. The default
- value is \c 0.0.
-
- \sa position, live
-*/
-qreal QQuickDial::value() const
-{
- Q_D(const QQuickDial);
- return d->value;
-}
-
-void QQuickDial::setValue(qreal value)
-{
- Q_D(QQuickDial);
- if (isComponentComplete())
- value = d->from > d->to ? qBound(d->to, value, d->from) : qBound(d->from, value, d->to);
-
- if (qFuzzyCompare(d->value, value))
- return;
-
- d->value = value;
- d->updatePosition();
- emit valueChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Dial::position
- \readonly
-
- This property holds the logical position of the handle.
-
- The position is expressed as a fraction of the control's angle range (the
- range within which the handle can be moved) in the range \c {0.0 - 1.0}.
-
- \sa value, angle
-*/
-qreal QQuickDial::position() const
-{
- Q_D(const QQuickDial);
- return d->position;
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Dial::angle
- \readonly
-
- This property holds the angle of the handle.
-
- The range is from \c -140 degrees to \c 140 degrees.
-
- \sa position
-*/
-qreal QQuickDial::angle() const
-{
- Q_D(const QQuickDial);
- return d->angle;
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Dial::stepSize
-
- This property holds the step size.
-
- The step size determines the amount by which the dial's value
- is increased and decreased when interacted with via the keyboard.
- For example, a step size of \c 0.2, will result in the dial's
- value increasing and decreasing in increments of \c 0.2.
-
- The step size is only respected for touch and mouse interaction
- when \l snapMode is set to a value other than \c Dial.NoSnap.
-
- The default value is \c 0.0, which results in an effective step
- size of \c 0.1 for keyboard interaction.
-
- \sa snapMode, increase(), decrease()
-*/
-qreal QQuickDial::stepSize() const
-{
- Q_D(const QQuickDial);
- return d->stepSize;
-}
-
-void QQuickDial::setStepSize(qreal step)
-{
- Q_D(QQuickDial);
- if (qFuzzyCompare(d->stepSize, step))
- return;
-
- d->stepSize = step;
- emit stepSizeChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Dial::snapMode
-
- This property holds the snap mode.
-
- The snap mode works with the \l stepSize to allow the handle to snap to
- certain points along the dial.
-
- Possible values:
- \value Dial.NoSnap The dial does not snap (default).
- \value Dial.SnapAlways The dial snaps while the handle is dragged.
- \value Dial.SnapOnRelease The dial does not snap while being dragged, but only after the handle is released.
-
- \sa stepSize
-*/
-QQuickDial::SnapMode QQuickDial::snapMode() const
-{
- Q_D(const QQuickDial);
- return d->snapMode;
-}
-
-void QQuickDial::setSnapMode(SnapMode mode)
-{
- Q_D(QQuickDial);
- if (d->snapMode == mode)
- return;
-
- d->snapMode = mode;
- emit snapModeChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty enumeration QtQuick.Controls::Dial::inputMode
-
- This property holds the input mode.
-
- \include qquickdial.qdocinc inputMode
-
- The default value is \c Dial.Circular.
-*/
-QQuickDial::InputMode QQuickDial::inputMode() const
-{
- Q_D(const QQuickDial);
- return d->inputMode;
-}
-
-void QQuickDial::setInputMode(QQuickDial::InputMode mode)
-{
- Q_D(QQuickDial);
- if (d->inputMode == mode)
- return;
-
- d->inputMode = mode;
- emit inputModeChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Dial::wrap
-
- This property holds whether the dial wraps when dragged.
-
- For example, when this property is set to \c true, dragging the dial past
- the \l to position will result in the handle being positioned at the
- \l from position, and vice versa:
-
- \image qtquickcontrols2-dial-wrap.gif
-
- When this property is \c false, it's not possible to drag the dial across
- the from and to values.
-
- \image qtquickcontrols2-dial-no-wrap.gif
-
- The default value is \c false.
-*/
-bool QQuickDial::wrap() const
-{
- Q_D(const QQuickDial);
- return d->wrap;
-}
-
-void QQuickDial::setWrap(bool wrap)
-{
- Q_D(QQuickDial);
- if (d->wrap == wrap)
- return;
-
- d->wrap = wrap;
- emit wrapChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Dial::pressed
-
- This property holds whether the dial is pressed.
-
- The dial will be pressed when either the mouse is pressed over it, or a key
- such as \c Qt.Key_Left is held down. If you'd prefer not to have the dial
- be pressed upon key presses (due to styling reasons, for example), you can
- use the \l {Keys}{Keys attached property}:
-
- \code
- Dial {
- Keys.onLeftPressed: {}
- }
- \endcode
-
- This will result in pressed only being \c true upon mouse presses.
-*/
-bool QQuickDial::isPressed() const
-{
- Q_D(const QQuickDial);
- return d->pressed;
-}
-
-void QQuickDial::setPressed(bool pressed)
-{
- Q_D(QQuickDial);
- if (d->pressed == pressed)
- return;
-
- d->pressed = pressed;
- setAccessibleProperty("pressed", pressed);
- emit pressedChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Dial::handle
-
- This property holds the handle of the dial.
-
- The handle acts as a visual indicator of the position of the dial.
-
- \sa {Customizing Dial}
-*/
-QQuickItem *QQuickDial::handle() const
-{
- QQuickDialPrivate *d = const_cast<QQuickDialPrivate *>(d_func());
- if (!d->handle)
- d->executeHandle();
- return d->handle;
-}
-
-void QQuickDial::setHandle(QQuickItem *handle)
-{
- Q_D(QQuickDial);
- if (handle == d->handle)
- return;
-
- if (!d->handle.isExecuting())
- d->cancelHandle();
-
- delete d->handle;
- d->handle = handle;
- if (d->handle && !d->handle->parentItem())
- d->handle->setParentItem(this);
- if (!d->handle.isExecuting())
- emit handleChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::Dial::live
-
- This property holds whether the dial provides live updates for the \l value
- property while the handle is dragged.
-
- The default value is \c true.
-
- \sa value
-*/
-bool QQuickDial::live() const
-{
- Q_D(const QQuickDial);
- return d->live;
-}
-
-void QQuickDial::setLive(bool live)
-{
- Q_D(QQuickDial);
- if (d->live == live)
- return;
-
- d->live = live;
- emit liveChanged();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Dial::increase()
-
- Increases the value by \l stepSize, or \c 0.1 if stepSize is not defined.
-
- \sa stepSize
-*/
-void QQuickDial::increase()
-{
- Q_D(QQuickDial);
- qreal step = qFuzzyIsNull(d->stepSize) ? 0.1 : d->stepSize;
- setValue(d->value + step);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Dial::decrease()
-
- Decreases the value by \l stepSize, or \c 0.1 if stepSize is not defined.
-
- \sa stepSize
-*/
-void QQuickDial::decrease()
-{
- Q_D(QQuickDial);
- qreal step = qFuzzyIsNull(d->stepSize) ? 0.1 : d->stepSize;
- setValue(d->value - step);
-}
-
-void QQuickDial::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickDial);
- const qreal oldValue = d->value;
- switch (event->key()) {
- case Qt::Key_Left:
- case Qt::Key_Down:
- setPressed(true);
- if (isMirrored())
- increase();
- else
- decrease();
- break;
-
- case Qt::Key_Right:
- case Qt::Key_Up:
- setPressed(true);
- if (isMirrored())
- decrease();
- else
- increase();
- break;
-
- case Qt::Key_Home:
- setPressed(true);
- setValue(isMirrored() ? d->to : d->from);
- break;
-
- case Qt::Key_End:
- setPressed(true);
- setValue(isMirrored() ? d->from : d->to);
- break;
-
- default:
- event->ignore();
- QQuickControl::keyPressEvent(event);
- break;
- }
- if (!qFuzzyCompare(d->value, oldValue))
- emit moved();
-}
-
-void QQuickDial::keyReleaseEvent(QKeyEvent *event)
-{
- QQuickControl::keyReleaseEvent(event);
- setPressed(false);
-}
-
-void QQuickDial::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickDial);
- QQuickControl::mousePressEvent(event);
- d->handleMove(event->localPos());
- setKeepMouseGrab(true);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickDial::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickDial);
- switch (event->type()) {
- case QEvent::TouchUpdate:
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- if (!d->acceptTouch(point))
- continue;
-
- switch (point.state()) {
- case Qt::TouchPointMoved:
- if (!keepTouchGrab()) {
- bool overXDragThreshold = QQuickWindowPrivate::dragOverThreshold(point.pos().x() - d->pressPoint.x(), Qt::XAxis, &point);
- setKeepTouchGrab(overXDragThreshold);
-
- if (!overXDragThreshold) {
- bool overYDragThreshold = QQuickWindowPrivate::dragOverThreshold(point.pos().y() - d->pressPoint.y(), Qt::YAxis, &point);
- setKeepTouchGrab(overYDragThreshold);
- }
- }
- if (keepTouchGrab())
- d->handleMove(point.pos());
- break;
-
- default:
- QQuickControl::touchEvent(event);
- break;
- }
- }
- break;
-
- default:
- QQuickControl::touchEvent(event);
- break;
- }
-}
-#endif
-
-#if QT_CONFIG(wheelevent)
-void QQuickDial::wheelEvent(QWheelEvent *event)
-{
- Q_D(QQuickDial);
- QQuickControl::wheelEvent(event);
- if (d->wheelEnabled) {
- const qreal oldValue = d->value;
- const QPointF angle = event->angleDelta();
- const qreal delta = (qFuzzyIsNull(angle.y()) ? angle.x() : (event->inverted() ? -angle.y() : angle.y())) / QWheelEvent::DefaultDeltasPerStep;
- const qreal step = qFuzzyIsNull(d->stepSize) ? 0.1 : d->stepSize;
- setValue(oldValue + step * delta);
- event->setAccepted(!qFuzzyCompare(d->value, oldValue));
- }
-}
-#endif
-
-void QQuickDial::mirrorChange()
-{
- QQuickControl::mirrorChange();
- emit angleChanged();
-}
-
-void QQuickDial::componentComplete()
-{
- Q_D(QQuickDial);
- d->executeHandle(true);
- QQuickControl::componentComplete();
- setValue(d->value);
- d->updatePosition();
-}
-
-#if QT_CONFIG(accessibility)
-void QQuickDial::accessibilityActiveChanged(bool active)
-{
- QQuickControl::accessibilityActiveChanged(active);
-
- Q_D(QQuickDial);
- if (active)
- setAccessibleProperty("pressed", d->pressed);
-}
-
-QAccessible::Role QQuickDial::accessibleRole() const
-{
- return QAccessible::Dial;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickdial_p.h b/src/quicktemplates2/qquickdial_p.h
deleted file mode 100644
index cc641c78..00000000
--- a/src/quicktemplates2/qquickdial_p.h
+++ /dev/null
@@ -1,181 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDIAL_P_H
-#define QQUICKDIAL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qvariant.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDialAttached;
-class QQuickDialPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickDial : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged FINAL)
- Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged FINAL)
- Q_PROPERTY(qreal value READ value WRITE setValue NOTIFY valueChanged FINAL)
- Q_PROPERTY(qreal position READ position NOTIFY positionChanged FINAL)
- Q_PROPERTY(qreal angle READ angle NOTIFY angleChanged FINAL)
- Q_PROPERTY(qreal stepSize READ stepSize WRITE setStepSize NOTIFY stepSizeChanged FINAL)
- Q_PROPERTY(SnapMode snapMode READ snapMode WRITE setSnapMode NOTIFY snapModeChanged FINAL)
- Q_PROPERTY(bool wrap READ wrap WRITE setWrap NOTIFY wrapChanged FINAL)
- Q_PROPERTY(bool pressed READ isPressed NOTIFY pressedChanged FINAL)
- Q_PROPERTY(QQuickItem *handle READ handle WRITE setHandle NOTIFY handleChanged FINAL)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(bool live READ live WRITE setLive NOTIFY liveChanged FINAL REVISION 2)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(InputMode inputMode READ inputMode WRITE setInputMode NOTIFY inputModeChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background,handle")
-
-public:
- explicit QQuickDial(QQuickItem *parent = nullptr);
-
- qreal from() const;
- void setFrom(qreal from);
-
- qreal to() const;
- void setTo(qreal to);
-
- qreal value() const;
- void setValue(qreal value);
-
- qreal position() const;
-
- qreal angle() const;
-
- qreal stepSize() const;
- void setStepSize(qreal step);
-
- enum SnapMode {
- NoSnap,
- SnapAlways,
- SnapOnRelease
- };
- Q_ENUM(SnapMode)
-
- SnapMode snapMode() const;
- void setSnapMode(SnapMode mode);
-
- enum InputMode {
- Circular,
- Horizontal,
- Vertical,
- };
- Q_ENUM(InputMode)
-
- bool wrap() const;
- void setWrap(bool wrap);
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
- QQuickItem *handle() const;
- void setHandle(QQuickItem *handle);
-
- // 2.2 (Qt 5.9)
- bool live() const;
- void setLive(bool live);
-
- // 2.5 (Qt 5.12)
- InputMode inputMode() const;
- void setInputMode(InputMode mode);
-
-public Q_SLOTS:
- void increase();
- void decrease();
-
-Q_SIGNALS:
- void fromChanged();
- void toChanged();
- void valueChanged();
- void positionChanged();
- void angleChanged();
- void stepSizeChanged();
- void snapModeChanged();
- void wrapChanged();
- void pressedChanged();
- void handleChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void moved();
- Q_REVISION(2) void liveChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void inputModeChanged();
-
-protected:
- void keyPressEvent(QKeyEvent *event) override;
- void keyReleaseEvent(QKeyEvent *event) override;
- void mousePressEvent(QMouseEvent *event) override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-#if QT_CONFIG(wheelevent)
- void wheelEvent(QWheelEvent *event) override;
-#endif
-
- void mirrorChange() override;
- void componentComplete() override;
-
-#if QT_CONFIG(accessibility)
- void accessibilityActiveChanged(bool active) override;
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickDial)
- Q_DECLARE_PRIVATE(QQuickDial)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDial)
-
-#endif // QQUICKDIAL_P_H
diff --git a/src/quicktemplates2/qquickdialog.cpp b/src/quicktemplates2/qquickdialog.cpp
deleted file mode 100644
index 7d3152e2..00000000
--- a/src/quicktemplates2/qquickdialog.cpp
+++ /dev/null
@@ -1,543 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickdialog_p.h"
-#include "qquickdialog_p_p.h"
-#include "qquickdialogbuttonbox_p.h"
-#include "qquickabstractbutton_p.h"
-#include "qquickpopupitem_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Dialog
- \inherits Popup
- \instantiates QQuickDialog
- \inqmlmodule QtQuick.Controls
- \ingroup qtquickcontrols2-dialogs
- \ingroup qtquickcontrols2-popups
- \brief Popup dialog with standard buttons and a title, used for short-term interaction with the user.
- \since 5.8
-
- A dialog is a popup mostly used for short-term tasks and brief communications
- with the user. Similarly to \l ApplicationWindow and \l Page, Dialog is organized
- into three sections: \l header, \l {Popup::}{contentItem}, and \l footer.
-
- \image qtquickcontrols2-page-wireframe.png
-
- \section1 Dialog Title and Buttons
-
- Dialog's \l title is displayed by a style-specific title bar that is assigned
- as a dialog \l header by default.
-
- Dialog's standard buttons are managed by a \l DialogButtonBox that is assigned
- as a dialog \l footer by default. The dialog's \l standardButtons property is
- forwarded to the respective property of the button box. Furthermore, the
- \l {DialogButtonBox::}{accepted()} and \l {DialogButtonBox::}{rejected()}
- signals of the button box are connected to the respective signals in Dialog.
-
- \snippet qtquickcontrols2-dialog.qml 1
-
- \section1 Modal Dialogs
-
- A \l {Popup::}{modal} dialog blocks input to other content beneath
- the dialog. When a modal dialog is opened, the user must finish
- interacting with the dialog and close it before they can access any
- other content in the same window.
-
- \snippet qtquickcontrols2-dialog-modal.qml 1
-
- \section1 Modeless Dialogs
-
- A modeless dialog is a dialog that operates independently of other
- content around the dialog. When a modeless dialog is opened, the user
- is allowed to interact with both the dialog and the other content in
- the same window.
-
- \snippet qtquickcontrols2-dialog-modeless.qml 1
-
- \sa DialogButtonBox, {Popup Controls}
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::Dialog::accepted()
-
- This signal is emitted when the dialog has been accepted either
- interactively or by calling \l accept().
-
- \note This signal is \e not emitted when closing the dialog with
- \l {Popup::}{close()} or setting \l {Popup::}{visible} to \c false.
-
- \sa rejected()
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::Dialog::rejected()
-
- This signal is emitted when the dialog has been rejected either
- interactively or by calling \l reject().
-
- \note This signal is \e not emitted when closing the dialog with
- \l {Popup::}{close()} or setting \l {Popup::}{visible} to \c false.
-
- \sa accepted()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlsignal QtQuick.Controls::Dialog::applied()
-
- This signal is emitted when the \c Dialog.Apply standard button is clicked.
-
- \sa discarded(), reset()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlsignal QtQuick.Controls::Dialog::reset()
-
- This signal is emitted when the \c Dialog.Reset standard button is clicked.
-
- \sa discarded(), applied()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlsignal QtQuick.Controls::Dialog::discarded()
-
- This signal is emitted when the \c Dialog.Discard standard button is clicked.
-
- \sa reset(), applied()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlsignal QtQuick.Controls::Dialog::helpRequested()
-
- This signal is emitted when the \c Dialog.Help standard button is clicked.
-
- \sa accepted(), rejected()
-*/
-
-QPlatformDialogHelper::ButtonRole QQuickDialogPrivate::buttonRole(QQuickAbstractButton *button)
-{
- const QQuickDialogButtonBoxAttached *attached = qobject_cast<QQuickDialogButtonBoxAttached *>(qmlAttachedPropertiesObject<QQuickDialogButtonBox>(button, false));
- return attached ? attached->buttonRole() : QPlatformDialogHelper::InvalidRole;
-}
-
-void QQuickDialogPrivate::handleClick(QQuickAbstractButton *button)
-{
- Q_Q(QQuickDialog);
- switch (buttonRole(button)) {
- case QPlatformDialogHelper::ApplyRole:
- emit q->applied();
- break;
- case QPlatformDialogHelper::ResetRole:
- emit q->reset();
- break;
- case QPlatformDialogHelper::DestructiveRole:
- emit q->discarded();
- break;
- case QPlatformDialogHelper::HelpRole:
- emit q->helpRequested();
- break;
- default:
- break;
- }
-}
-
-QQuickDialog::QQuickDialog(QObject *parent)
- : QQuickPopup(*(new QQuickDialogPrivate), parent)
-{
- Q_D(QQuickDialog);
- connect(d->popupItem, &QQuickPopupItem::titleChanged, this, &QQuickDialog::titleChanged);
- connect(d->popupItem, &QQuickPopupItem::headerChanged, this, &QQuickDialog::headerChanged);
- connect(d->popupItem, &QQuickPopupItem::footerChanged, this, &QQuickDialog::footerChanged);
- connect(d->popupItem, &QQuickPopupItem::implicitHeaderWidthChanged, this, &QQuickDialog::implicitHeaderWidthChanged);
- connect(d->popupItem, &QQuickPopupItem::implicitHeaderHeightChanged, this, &QQuickDialog::implicitHeaderHeightChanged);
- connect(d->popupItem, &QQuickPopupItem::implicitFooterWidthChanged, this, &QQuickDialog::implicitFooterWidthChanged);
- connect(d->popupItem, &QQuickPopupItem::implicitFooterHeightChanged, this, &QQuickDialog::implicitFooterHeightChanged);
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::Dialog::title
-
- This property holds the dialog title.
-
- The title is displayed in the dialog header.
-
- \code
- Dialog {
- title: qsTr("About")
-
- Label {
- text: "Lorem ipsum..."
- }
- }
- \endcode
-*/
-QString QQuickDialog::title() const
-{
- Q_D(const QQuickDialog);
- return d->popupItem->title();
-}
-
-void QQuickDialog::setTitle(const QString &title)
-{
- Q_D(QQuickDialog);
- d->popupItem->setTitle(title);
- setAccessibleName(title);
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Dialog::header
-
- This property holds the dialog header item. The header item is positioned to
- the top, and resized to the width of the dialog. The default value is \c null.
-
- \note Assigning a \l DialogButtonBox as a dialog header automatically connects
- its \l {DialogButtonBox::}{accepted()} and \l {DialogButtonBox::}{rejected()}
- signals to the respective signals in Dialog.
-
- \note Assigning a \l DialogButtonBox, \l ToolBar, or \l TabBar as a dialog
- header automatically sets the respective \l DialogButtonBox::position,
- \l ToolBar::position, or \l TabBar::position property to \c Header.
-
- \sa footer
-*/
-QQuickItem *QQuickDialog::header() const
-{
- Q_D(const QQuickDialog);
- return d->popupItem->header();
-}
-
-void QQuickDialog::setHeader(QQuickItem *header)
-{
- Q_D(QQuickDialog);
- QQuickItem *oldHeader = d->popupItem->header();
- if (oldHeader == header)
- return;
-
- if (QQuickDialogButtonBox *buttonBox = qobject_cast<QQuickDialogButtonBox *>(oldHeader)) {
- disconnect(buttonBox, &QQuickDialogButtonBox::accepted, this, &QQuickDialog::accept);
- disconnect(buttonBox, &QQuickDialogButtonBox::rejected, this, &QQuickDialog::reject);
- QObjectPrivate::disconnect(buttonBox, &QQuickDialogButtonBox::clicked, d, &QQuickDialogPrivate::handleClick);
- if (d->buttonBox == buttonBox)
- d->buttonBox = nullptr;
- }
-
- if (QQuickDialogButtonBox *buttonBox = qobject_cast<QQuickDialogButtonBox *>(header)) {
- connect(buttonBox, &QQuickDialogButtonBox::accepted, this, &QQuickDialog::accept);
- connect(buttonBox, &QQuickDialogButtonBox::rejected, this, &QQuickDialog::reject);
- QObjectPrivate::connect(buttonBox, &QQuickDialogButtonBox::clicked, d, &QQuickDialogPrivate::handleClick);
- d->buttonBox = buttonBox;
- buttonBox->setStandardButtons(d->standardButtons);
- }
-
- d->popupItem->setHeader(header);
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Dialog::footer
-
- This property holds the dialog footer item. The footer item is positioned to
- the bottom, and resized to the width of the dialog. The default value is \c null.
-
- \note Assigning a \l DialogButtonBox as a dialog footer automatically connects
- its \l {DialogButtonBox::}{accepted()} and \l {DialogButtonBox::}{rejected()}
- signals to the respective signals in Dialog.
-
- \note Assigning a \l DialogButtonBox, \l ToolBar, or \l TabBar as a dialog
- footer automatically sets the respective \l DialogButtonBox::position,
- \l ToolBar::position, or \l TabBar::position property to \c Footer.
-
- \sa header
-*/
-QQuickItem *QQuickDialog::footer() const
-{
- Q_D(const QQuickDialog);
- return d->popupItem->footer();
-}
-
-void QQuickDialog::setFooter(QQuickItem *footer)
-{
- Q_D(QQuickDialog);
- QQuickItem *oldFooter = d->popupItem->footer();
- if (oldFooter == footer)
- return;
-
- if (QQuickDialogButtonBox *buttonBox = qobject_cast<QQuickDialogButtonBox *>(oldFooter)) {
- disconnect(buttonBox, &QQuickDialogButtonBox::accepted, this, &QQuickDialog::accept);
- disconnect(buttonBox, &QQuickDialogButtonBox::rejected, this, &QQuickDialog::reject);
- QObjectPrivate::disconnect(buttonBox, &QQuickDialogButtonBox::clicked, d, &QQuickDialogPrivate::handleClick);
- if (d->buttonBox == buttonBox)
- d->buttonBox = nullptr;
- }
- if (QQuickDialogButtonBox *buttonBox = qobject_cast<QQuickDialogButtonBox *>(footer)) {
- connect(buttonBox, &QQuickDialogButtonBox::accepted, this, &QQuickDialog::accept);
- connect(buttonBox, &QQuickDialogButtonBox::rejected, this, &QQuickDialog::reject);
- QObjectPrivate::connect(buttonBox, &QQuickDialogButtonBox::clicked, d, &QQuickDialogPrivate::handleClick);
- d->buttonBox = buttonBox;
- buttonBox->setStandardButtons(d->standardButtons);
- }
-
- d->popupItem->setFooter(footer);
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Dialog::standardButtons
-
- This property holds a combination of standard buttons that are used by the dialog.
-
- \snippet qtquickcontrols2-dialog.qml 1
-
- The buttons will be positioned in the appropriate order for the user's platform.
-
- Possible flags:
- \value Dialog.Ok An "OK" button defined with the \c AcceptRole.
- \value Dialog.Open An "Open" button defined with the \c AcceptRole.
- \value Dialog.Save A "Save" button defined with the \c AcceptRole.
- \value Dialog.Cancel A "Cancel" button defined with the \c RejectRole.
- \value Dialog.Close A "Close" button defined with the \c RejectRole.
- \value Dialog.Discard A "Discard" or "Don't Save" button, depending on the platform, defined with the \c DestructiveRole.
- \value Dialog.Apply An "Apply" button defined with the \c ApplyRole.
- \value Dialog.Reset A "Reset" button defined with the \c ResetRole.
- \value Dialog.RestoreDefaults A "Restore Defaults" button defined with the \c ResetRole.
- \value Dialog.Help A "Help" button defined with the \c HelpRole.
- \value Dialog.SaveAll A "Save All" button defined with the \c AcceptRole.
- \value Dialog.Yes A "Yes" button defined with the \c YesRole.
- \value Dialog.YesToAll A "Yes to All" button defined with the \c YesRole.
- \value Dialog.No A "No" button defined with the \c NoRole.
- \value Dialog.NoToAll A "No to All" button defined with the \c NoRole.
- \value Dialog.Abort An "Abort" button defined with the \c RejectRole.
- \value Dialog.Retry A "Retry" button defined with the \c AcceptRole.
- \value Dialog.Ignore An "Ignore" button defined with the \c AcceptRole.
- \value Dialog.NoButton An invalid button.
-
- \sa DialogButtonBox
-*/
-QPlatformDialogHelper::StandardButtons QQuickDialog::standardButtons() const
-{
- Q_D(const QQuickDialog);
- return d->standardButtons;
-}
-
-void QQuickDialog::setStandardButtons(QPlatformDialogHelper::StandardButtons buttons)
-{
- Q_D(QQuickDialog);
- if (d->standardButtons == buttons)
- return;
-
- d->standardButtons = buttons;
- if (d->buttonBox)
- d->buttonBox->setStandardButtons(buttons);
- emit standardButtonsChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod AbstractButton QtQuick.Controls::Dialog::standardButton(StandardButton button)
-
- Returns the specified standard \a button, or \c null if it does not exist.
-
- \sa standardButtons
-*/
-QQuickAbstractButton *QQuickDialog::standardButton(QPlatformDialogHelper::StandardButton button) const
-{
- Q_D(const QQuickDialog);
- if (!d->buttonBox)
- return nullptr;
- return d->buttonBox->standardButton(button);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty int QtQuick.Controls::Dialog::result
-
- This property holds the result code.
-
- Standard result codes:
- \value Dialog.Accepted The dialog was accepted.
- \value Dialog.Rejected The dialog was rejected.
-
- \sa accept(), reject(), done()
-*/
-int QQuickDialog::result() const
-{
- Q_D(const QQuickDialog);
- return d->result;
-}
-
-void QQuickDialog::setResult(int result)
-{
- Q_D(QQuickDialog);
- if (d->result == result)
- return;
-
- d->result = result;
- emit resultChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Dialog::implicitHeaderWidth
- \readonly
-
- This property holds the implicit header width.
-
- The value is equal to \c {header && header.visible ? header.implicitWidth : 0}.
-
- \sa implicitHeaderHeight, implicitFooterWidth
-*/
-qreal QQuickDialog::implicitHeaderWidth() const
-{
- Q_D(const QQuickDialog);
- return d->popupItem->implicitHeaderWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Dialog::implicitHeaderHeight
- \readonly
-
- This property holds the implicit header height.
-
- The value is equal to \c {header && header.visible ? header.implicitHeight : 0}.
-
- \sa implicitHeaderWidth, implicitFooterHeight
-*/
-qreal QQuickDialog::implicitHeaderHeight() const
-{
- Q_D(const QQuickDialog);
- return d->popupItem->implicitHeaderHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Dialog::implicitFooterWidth
- \readonly
-
- This property holds the implicit footer width.
-
- The value is equal to \c {footer && footer.visible ? footer.implicitWidth : 0}.
-
- \sa implicitFooterHeight, implicitHeaderWidth
-*/
-qreal QQuickDialog::implicitFooterWidth() const
-{
- Q_D(const QQuickDialog);
- return d->popupItem->implicitFooterWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Dialog::implicitFooterHeight
- \readonly
-
- This property holds the implicit footer height.
-
- The value is equal to \c {footer && footer.visible ? footer.implicitHeight : 0}.
-
- \sa implicitFooterWidth, implicitHeaderHeight
-*/
-qreal QQuickDialog::implicitFooterHeight() const
-{
- Q_D(const QQuickDialog);
- return d->popupItem->implicitFooterHeight();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Dialog::accept()
-
- Closes the dialog and emits the \l accepted() signal.
-
- \sa reject(), done()
-*/
-void QQuickDialog::accept()
-{
- done(Accepted);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Dialog::reject()
-
- Closes the dialog and emits the \l rejected() signal.
-
- \sa accept(), done()
-*/
-void QQuickDialog::reject()
-{
- done(Rejected);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Dialog::done(int result)
-
- Closes the dialog, sets the \a result, and emits \l accepted() or
- \l rejected() depending on whether the result is \c Dialog.Accepted
- or \c Dialog.Rejected, respectively.
-
- \sa accept(), reject(), result
-*/
-void QQuickDialog::done(int result)
-{
- close();
- setResult(result);
-
- if (result == Accepted)
- emit accepted();
- else if (result == Rejected)
- emit rejected();
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickDialog::accessibleRole() const
-{
- return QAccessible::Dialog;
-}
-
-void QQuickDialog::accessibilityActiveChanged(bool active)
-{
- Q_D(QQuickDialog);
- QQuickPopup::accessibilityActiveChanged(active);
-
- if (active)
- setAccessibleName(d->popupItem->title());
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickdialog_p.h b/src/quicktemplates2/qquickdialog_p.h
deleted file mode 100644
index 38a1b396..00000000
--- a/src/quicktemplates2/qquickdialog_p.h
+++ /dev/null
@@ -1,144 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDIALOG_P_H
-#define QQUICKDIALOG_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include <QtGui/qpa/qplatformdialoghelper.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDialogPrivate;
-class QQuickAbstractButton;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickDialog : public QQuickPopup
-{
- Q_OBJECT
- Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
- Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
- Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
- Q_PROPERTY(QPlatformDialogHelper::StandardButtons standardButtons READ standardButtons WRITE setStandardButtons NOTIFY standardButtonsChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(int result READ result WRITE setResult NOTIFY resultChanged FINAL REVISION 3)
- Q_FLAGS(QPlatformDialogHelper::StandardButtons)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal implicitHeaderWidth READ implicitHeaderWidth NOTIFY implicitHeaderWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitHeaderHeight READ implicitHeaderHeight NOTIFY implicitHeaderHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitFooterWidth READ implicitFooterWidth NOTIFY implicitFooterWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitFooterHeight READ implicitFooterHeight NOTIFY implicitFooterHeightChanged FINAL REVISION 5)
-
-public:
- explicit QQuickDialog(QObject *parent = nullptr);
-
- QString title() const;
- void setTitle(const QString &title);
-
- QQuickItem *header() const;
- void setHeader(QQuickItem *header);
-
- QQuickItem *footer() const;
- void setFooter(QQuickItem *footer);
-
- QPlatformDialogHelper::StandardButtons standardButtons() const;
- void setStandardButtons(QPlatformDialogHelper::StandardButtons buttons);
- Q_REVISION(3) Q_INVOKABLE QQuickAbstractButton *standardButton(QPlatformDialogHelper::StandardButton button) const;
-
- // 2.3 (Qt 5.10)
- enum StandardCode { Rejected, Accepted };
- Q_ENUM(StandardCode)
-
- int result() const;
- void setResult(int result);
-
- // 2.5 (Qt 5.12)
- qreal implicitHeaderWidth() const;
- qreal implicitHeaderHeight() const;
-
- qreal implicitFooterWidth() const;
- qreal implicitFooterHeight() const;
-
-public Q_SLOTS:
- virtual void accept();
- virtual void reject();
- virtual void done(int result);
-
-Q_SIGNALS:
- void accepted();
- void rejected();
- void titleChanged();
- void headerChanged();
- void footerChanged();
- void standardButtonsChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void applied();
- Q_REVISION(3) void reset();
- Q_REVISION(3) void discarded();
- Q_REVISION(3) void helpRequested();
- Q_REVISION(3) void resultChanged();
- // 2.5 (Qt 5.12)
- void implicitHeaderWidthChanged();
- void implicitHeaderHeightChanged();
- void implicitFooterWidthChanged();
- void implicitFooterHeightChanged();
-
-protected:
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
- void accessibilityActiveChanged(bool active) override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickDialog)
- Q_DECLARE_PRIVATE(QQuickDialog)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDialog)
-
-#endif // QQUICKDIALOG_P_H
diff --git a/src/quicktemplates2/qquickdialog_p_p.h b/src/quicktemplates2/qquickdialog_p_p.h
deleted file mode 100644
index 20dce56c..00000000
--- a/src/quicktemplates2/qquickdialog_p_p.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDIALOG_P_P_H
-#define QQUICKDIALOG_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickdialog_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p_p.h>
-#include <QtGui/qpa/qplatformdialoghelper.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAbstractButton;
-class QQuickDialogButtonBox;
-
-class QQuickDialogPrivate : public QQuickPopupPrivate
-{
- Q_DECLARE_PUBLIC(QQuickDialog)
-
-public:
- static QQuickDialogPrivate *get(QQuickDialog *dialog)
- {
- return dialog->d_func();
- }
-
- static QPlatformDialogHelper::ButtonRole buttonRole(QQuickAbstractButton *button);
-
- void handleClick(QQuickAbstractButton *button);
-
- int result = 0;
- QString title;
- QQuickDialogButtonBox *buttonBox = nullptr;
- QPlatformDialogHelper::StandardButtons standardButtons = QPlatformDialogHelper::NoButton;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKDIALOG_P_P_H
diff --git a/src/quicktemplates2/qquickdialogbuttonbox.cpp b/src/quicktemplates2/qquickdialogbuttonbox.cpp
deleted file mode 100644
index 10d80778..00000000
--- a/src/quicktemplates2/qquickdialogbuttonbox.cpp
+++ /dev/null
@@ -1,860 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickdialogbuttonbox_p.h"
-#include "qquickdialogbuttonbox_p_p.h"
-#include "qquickabstractbutton_p.h"
-#include "qquickbutton_p.h"
-#include "qquickdialog_p_p.h"
-
-#include <QtCore/qpointer.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcontext.h>
-#include <QtQml/qqmlcomponent.h>
-
-#include <algorithm>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype DialogButtonBox
- \inherits Container
- \instantiates QQuickDialogButtonBox
- \inqmlmodule QtQuick.Controls
- \ingroup qtquickcontrols2-dialogs
- \brief A button box used in dialogs.
- \since 5.8
-
- Dialogs and message boxes typically present buttons in an order that
- conforms to the interface guidelines for that platform. Invariably,
- different platforms have their dialog buttons in different orders.
- DialogButtonBox allows a developer to add buttons to it and will
- automatically use the appropriate order for the user's platform.
-
- Most buttons for a dialog follow certain roles. Such roles include:
-
- \list
- \li Accepting or rejecting the dialog.
- \li Asking for help.
- \li Performing actions on the dialog itself (such as resetting fields or
- applying changes).
- \endlist
-
- There can also be alternate ways of dismissing the dialog which may cause
- destructive results.
-
- Most dialogs have buttons that can almost be considered standard (e.g.
- \uicontrol OK and \uicontrol Cancel buttons). It is sometimes convenient
- to create these buttons in a standard way.
-
- There are a couple ways of using DialogButtonBox. One way is to specify
- the standard buttons (e.g. \uicontrol OK, \uicontrol Cancel, \uicontrol Save)
- and let the button box setup the buttons.
-
- \image qtquickcontrols2-dialogbuttonbox.png
-
- \snippet qtquickcontrols2-dialogbuttonbox.qml 1
-
- Alternatively, buttons and their roles can be specified by hand:
-
- \snippet qtquickcontrols2-dialogbuttonbox-attached.qml 1
-
- You can also mix and match normal buttons and standard buttons.
-
- When a button is clicked in the button box, the \l clicked() signal is
- emitted for the actual button that is pressed. In addition, the
- following signals are automatically emitted when a button with the
- respective role(s) is pressed:
-
- \table
- \header
- \li Role
- \li Signal
- \row
- \li \c AcceptRole, \c YesRole
- \li \l accepted()
- \row
- \li \c ApplyRole
- \li \l applied()
- \row
- \li \c DiscardRole
- \li \l discarded()
- \row
- \li \c HelpRole
- \li \l helpRequested()
- \row
- \li \c RejectRole, \c NoRole
- \li \l rejected()
- \row
- \li \c ResetRole
- \li \l reset()
- \endtable
-
- \sa Dialog
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::DialogButtonBox::accepted()
-
- This signal is emitted when a button defined with the \c AcceptRole or
- \c YesRole is clicked.
-
- \sa rejected(), clicked(), helpRequested()
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::DialogButtonBox::rejected()
-
- This signal is emitted when a button defined with the \c RejectRole or
- \c NoRole is clicked.
-
- \sa accepted(), helpRequested(), clicked()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlsignal QtQuick.Controls::DialogButtonBox::applied()
-
- This signal is emitted when a button defined with the \c ApplyRole is
- clicked.
-
- \sa discarded(), reset()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlsignal QtQuick.Controls::DialogButtonBox::reset()
-
- This signal is emitted when a button defined with the \c ResetRole is
- clicked.
-
- \sa discarded(), applied()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlsignal QtQuick.Controls::DialogButtonBox::discarded()
-
- This signal is emitted when a button defined with the \c DiscardRole is
- clicked.
-
- \sa reset(), applied()
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::DialogButtonBox::helpRequested()
-
- This signal is emitted when a button defined with the \c HelpRole is clicked.
-
- \sa accepted(), rejected(), clicked()
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::DialogButtonBox::clicked(AbstractButton button)
-
- This signal is emitted when a \a button inside the button box is clicked.
-
- \sa accepted(), rejected(), helpRequested()
-*/
-
-static QPlatformDialogHelper::ButtonLayout platformButtonLayout()
-{
- return QGuiApplicationPrivate::platformTheme()->themeHint(QPlatformTheme::DialogButtonBoxLayout).value<QPlatformDialogHelper::ButtonLayout>();
-}
-
-void QQuickDialogButtonBoxPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- QQuickContainerPrivate::itemImplicitWidthChanged(item);
- if (item == contentItem)
- resizeContent();
- else
- updateImplicitContentWidth();
-}
-
-void QQuickDialogButtonBoxPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- QQuickContainerPrivate::itemImplicitHeightChanged(item);
- if (item == contentItem)
- resizeContent();
- else
- updateImplicitContentHeight();
-}
-
-// adapted from QStyle::alignedRect()
-static QRectF alignedRect(Qt::LayoutDirection direction, Qt::Alignment alignment, const QSizeF &size, const QRectF &rectangle)
-{
- alignment = QGuiApplicationPrivate::visualAlignment(direction, alignment);
- qreal x = rectangle.x();
- qreal y = rectangle.y();
- qreal w = size.width();
- qreal h = size.height();
- if ((alignment & Qt::AlignVCenter) == Qt::AlignVCenter || (alignment & Qt::AlignVertical_Mask) == 0)
- y += (rectangle.size().height() - h) / 2;
- else if ((alignment & Qt::AlignBottom) == Qt::AlignBottom)
- y += rectangle.size().height() - h;
- if ((alignment & Qt::AlignRight) == Qt::AlignRight)
- x += rectangle.size().width() - w;
- else if ((alignment & Qt::AlignHCenter) == Qt::AlignHCenter)
- x += (rectangle.size().width() - w) / 2;
- return QRectF(x, y, w, h);
-}
-
-void QQuickDialogButtonBoxPrivate::resizeContent()
-{
- Q_Q(QQuickDialogButtonBox);
- if (!contentItem)
- return;
-
- QRectF geometry = q->boundingRect().adjusted(q->leftPadding(), q->topPadding(), -q->rightPadding(), -q->bottomPadding());
- if (alignment != 0)
- geometry = alignedRect(q->isMirrored() ? Qt::RightToLeft : Qt::LeftToRight, alignment, QSizeF(contentWidth, contentHeight), geometry);
-
- contentItem->setPosition(geometry.topLeft());
- contentItem->setSize(geometry.size());
-}
-
-void QQuickDialogButtonBoxPrivate::updateLayout()
-{
- Q_Q(QQuickDialogButtonBox);
- const int count = contentModel->count();
- if (count <= 0)
- return;
-
- const int halign = alignment & Qt::AlignHorizontal_Mask;
- const int valign = alignment & Qt::AlignVertical_Mask;
-
- QVector<QQuickAbstractButton *> buttons;
- const qreal cw = (alignment & Qt::AlignHorizontal_Mask) == 0 ? q->availableWidth() : contentWidth;
- const qreal itemWidth = (cw - qMax(0, count - 1) * spacing) / count;
-
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = q->itemAt(i);
- if (item) {
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- if (!p->widthValid) {
- if (!halign)
- item->setWidth(itemWidth);
- else
- item->resetWidth();
- if (!valign)
- item->setHeight(contentHeight);
- else
- item->resetHeight();
- p->widthValid = false;
- }
- }
- buttons += static_cast<QQuickAbstractButton *>(item);
- }
-
- struct ButtonLayout {
- ButtonLayout(QPlatformDialogHelper::ButtonLayout layout)
- : m_layout(QPlatformDialogHelper::buttonLayout(Qt::Horizontal, layout))
- {
- }
-
- bool operator()(QQuickAbstractButton *first, QQuickAbstractButton *second)
- {
- const QPlatformDialogHelper::ButtonRole firstRole = QQuickDialogPrivate::buttonRole(first);
- const QPlatformDialogHelper::ButtonRole secondRole = QQuickDialogPrivate::buttonRole(second);
-
- if (firstRole != secondRole && firstRole != QPlatformDialogHelper::InvalidRole && secondRole != QPlatformDialogHelper::InvalidRole) {
- const int *l = m_layout;
- while (*l != QPlatformDialogHelper::EOL) {
- // Unset the Reverse flag.
- const int role = (*l & ~QPlatformDialogHelper::Reverse);
- if (role == firstRole)
- return true;
- if (role == secondRole)
- return false;
- ++l;
- }
- }
-
- if (firstRole == secondRole)
- return false;
-
- return firstRole != QPlatformDialogHelper::InvalidRole;
- }
- const int *m_layout;
- };
-
- std::stable_sort(buttons.begin(), buttons.end(), ButtonLayout(static_cast<QPlatformDialogHelper::ButtonLayout>(buttonLayout)));
-
- for (int i = 0; i < buttons.count() - 1; ++i)
- q->insertItem(i, buttons.at(i));
-}
-
-qreal QQuickDialogButtonBoxPrivate::getContentWidth() const
-{
- Q_Q(const QQuickDialogButtonBox);
- const int count = contentModel->count();
- const qreal totalSpacing = qMax(0, count - 1) * spacing;
- qreal totalWidth = totalSpacing;
- qreal maxWidth = 0;
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = q->itemAt(i);
- if (item) {
- totalWidth += item->implicitWidth();
- maxWidth = qMax(maxWidth, item->implicitWidth());
- }
- }
- if ((alignment & Qt::AlignHorizontal_Mask) == 0)
- totalWidth = qMax(totalWidth, count * maxWidth + totalSpacing);
- return totalWidth;
-}
-
-qreal QQuickDialogButtonBoxPrivate::getContentHeight() const
-{
- Q_Q(const QQuickDialogButtonBox);
- const int count = contentModel->count();
- qreal maxHeight = 0;
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = q->itemAt(i);
- if (item)
- maxHeight = qMax(maxHeight, item->implicitHeight());
- }
- return maxHeight;
-}
-
-void QQuickDialogButtonBoxPrivate::handleClick()
-{
- Q_Q(QQuickDialogButtonBox);
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(q->sender());
- if (!button)
- return;
-
- // Can't fetch this *after* emitting clicked, as clicked may destroy the button
- // or change its role. Now changing the role is not possible yet, but arguably
- // both clicked and accepted/rejected/etc. should be emitted "atomically"
- // depending on whatever role the button had at the time of the click.
- const QPlatformDialogHelper::ButtonRole role = QQuickDialogPrivate::buttonRole(button);
- QPointer<QQuickDialogButtonBox> guard(q);
-
- emit q->clicked(button);
-
- if (!guard)
- return;
-
- switch (role) {
- case QPlatformDialogHelper::AcceptRole:
- case QPlatformDialogHelper::YesRole:
- emit q->accepted();
- break;
- case QPlatformDialogHelper::RejectRole:
- case QPlatformDialogHelper::NoRole:
- emit q->rejected();
- break;
- case QPlatformDialogHelper::ApplyRole:
- emit q->applied();
- break;
- case QPlatformDialogHelper::ResetRole:
- emit q->reset();
- break;
- case QPlatformDialogHelper::DestructiveRole:
- emit q->discarded();
- break;
- case QPlatformDialogHelper::HelpRole:
- emit q->helpRequested();
- break;
- default:
- break;
- }
-}
-
-QQuickAbstractButton *QQuickDialogButtonBoxPrivate::createStandardButton(QPlatformDialogHelper::StandardButton standardButton)
-{
- Q_Q(QQuickDialogButtonBox);
- if (!delegate)
- return nullptr;
-
- QQmlContext *creationContext = delegate->creationContext();
- if (!creationContext)
- creationContext = qmlContext(q);
- QQmlContext *context = new QQmlContext(creationContext, q);
- context->setContextObject(q);
-
- QObject *object = delegate->beginCreate(context);
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton*>(object);
- if (button) {
- QQuickDialogButtonBoxAttached *attached = qobject_cast<QQuickDialogButtonBoxAttached *>(qmlAttachedPropertiesObject<QQuickDialogButtonBox>(button, true));
- QQuickDialogButtonBoxAttachedPrivate::get(attached)->standardButton = standardButton;
- attached->setButtonRole(QPlatformDialogHelper::buttonRole(standardButton));
- button->setText(QPlatformTheme::removeMnemonics(QGuiApplicationPrivate::platformTheme()->standardButtonText(standardButton)));
- delegate->completeCreate();
- return button;
- }
-
- delete object;
- return nullptr;
-}
-
-void QQuickDialogButtonBoxPrivate::removeStandardButtons()
-{
- Q_Q(QQuickDialogButtonBox);
- int i = q->count() - 1;
- while (i >= 0) {
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(q->itemAt(i));
- if (button) {
- QQuickDialogButtonBoxAttached *attached = qobject_cast<QQuickDialogButtonBoxAttached *>(
- qmlAttachedPropertiesObject<QQuickDialogButtonBox>(button, false));
- if (attached) {
- QQuickDialogButtonBoxAttachedPrivate *p = QQuickDialogButtonBoxAttachedPrivate::get(attached);
- if (p->standardButton != QPlatformDialogHelper::NoButton) {
- q->removeItem(i);
- button->deleteLater();
- }
- }
- }
- --i;
- }
-}
-
-void QQuickDialogButtonBoxPrivate::updateLanguage()
-{
- Q_Q(QQuickDialogButtonBox);
- int i = q->count() - 1;
- while (i >= 0) {
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(itemAt(i));
- if (button) {
- QQuickDialogButtonBoxAttached *attached = qobject_cast<QQuickDialogButtonBoxAttached *>(
- qmlAttachedPropertiesObject<QQuickDialogButtonBox>(button, true));
- const auto boxAttachedPrivate = QQuickDialogButtonBoxAttachedPrivate::get(attached);
- const QPlatformDialogHelper::StandardButton standardButton = boxAttachedPrivate->standardButton;
- const QString buttonText = QGuiApplicationPrivate::platformTheme()->standardButtonText(standardButton);
- button->setText(QPlatformTheme::removeMnemonics(buttonText));
- }
- --i;
- }
-}
-
-QQuickDialogButtonBox::QQuickDialogButtonBox(QQuickItem *parent)
- : QQuickContainer(*(new QQuickDialogButtonBoxPrivate), parent)
-{
- Q_D(QQuickDialogButtonBox);
- d->changeTypes |= QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight;
- d->buttonLayout = platformButtonLayout();
-}
-
-QQuickDialogButtonBox::~QQuickDialogButtonBox()
-{
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::DialogButtonBox::position
-
- This property holds the position of the button box.
-
- \note If the button box is assigned as a header or footer of ApplicationWindow
- or Page, the appropriate position is set automatically.
-
- Possible values:
- \value DialogButtonBox.Header The button box is at the top, as a window or page header.
- \value DialogButtonBox.Footer The button box is at the bottom, as a window or page header.
-
- The default value is \c Footer.
-
- \sa Dialog::header, Dialog::footer
-*/
-QQuickDialogButtonBox::Position QQuickDialogButtonBox::position() const
-{
- Q_D(const QQuickDialogButtonBox);
- return d->position;
-}
-
-void QQuickDialogButtonBox::setPosition(Position position)
-{
- Q_D(QQuickDialogButtonBox);
- if (d->position == position)
- return;
-
- d->position = position;
- emit positionChanged();
-}
-
-/*!
- \qmlproperty flags QtQuick.Controls::DialogButtonBox::alignment
-
- This property holds the alignment of the buttons.
-
- Possible values:
- \value undefined The buttons are resized to fill the available space.
- \value Qt.AlignLeft The buttons are aligned to the left.
- \value Qt.AlignHCenter The buttons are horizontally centered.
- \value Qt.AlignRight The buttons are aligned to the right.
- \value Qt.AlignTop The buttons are aligned to the top.
- \value Qt.AlignVCenter The buttons are vertically centered.
- \value Qt.AlignBottom The buttons are aligned to the bottom.
-*/
-Qt::Alignment QQuickDialogButtonBox::alignment() const
-{
- Q_D(const QQuickDialogButtonBox);
- return d->alignment;
-}
-
-void QQuickDialogButtonBox::setAlignment(Qt::Alignment alignment)
-{
- Q_D(QQuickDialogButtonBox);
- if (d->alignment == alignment)
- return;
-
- d->alignment = alignment;
- if (isComponentComplete()) {
- d->resizeContent();
- polish();
- }
- emit alignmentChanged();
-}
-
-void QQuickDialogButtonBox::resetAlignment()
-{
- setAlignment(0);
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::DialogButtonBox::standardButtons
-
- This property holds a combination of standard buttons that are used by the button box.
-
- \snippet qtquickcontrols2-dialogbuttonbox.qml 1
-
- The buttons will be positioned in the appropriate order for the user's platform.
-
- Possible flags:
- \value DialogButtonBox.Ok An "OK" button defined with the \c AcceptRole.
- \value DialogButtonBox.Open An "Open" button defined with the \c AcceptRole.
- \value DialogButtonBox.Save A "Save" button defined with the \c AcceptRole.
- \value DialogButtonBox.Cancel A "Cancel" button defined with the \c RejectRole.
- \value DialogButtonBox.Close A "Close" button defined with the \c RejectRole.
- \value DialogButtonBox.Discard A "Discard" or "Don't Save" button, depending on the platform, defined with the \c DestructiveRole.
- \value DialogButtonBox.Apply An "Apply" button defined with the \c ApplyRole.
- \value DialogButtonBox.Reset A "Reset" button defined with the \c ResetRole.
- \value DialogButtonBox.RestoreDefaults A "Restore Defaults" button defined with the \c ResetRole.
- \value DialogButtonBox.Help A "Help" button defined with the \c HelpRole.
- \value DialogButtonBox.SaveAll A "Save All" button defined with the \c AcceptRole.
- \value DialogButtonBox.Yes A "Yes" button defined with the \c YesRole.
- \value DialogButtonBox.YesToAll A "Yes to All" button defined with the \c YesRole.
- \value DialogButtonBox.No A "No" button defined with the \c NoRole.
- \value DialogButtonBox.NoToAll A "No to All" button defined with the \c NoRole.
- \value DialogButtonBox.Abort An "Abort" button defined with the \c RejectRole.
- \value DialogButtonBox.Retry A "Retry" button defined with the \c AcceptRole.
- \value DialogButtonBox.Ignore An "Ignore" button defined with the \c AcceptRole.
- \value DialogButtonBox.NoButton An invalid button.
-
- \sa standardButton()
-*/
-QPlatformDialogHelper::StandardButtons QQuickDialogButtonBox::standardButtons() const
-{
- Q_D(const QQuickDialogButtonBox);
- return d->standardButtons;
-}
-
-void QQuickDialogButtonBox::setStandardButtons(QPlatformDialogHelper::StandardButtons buttons)
-{
- Q_D(QQuickDialogButtonBox);
- if (d->standardButtons == buttons)
- return;
-
- d->removeStandardButtons();
-
- for (int i = QPlatformDialogHelper::FirstButton; i <= QPlatformDialogHelper::LastButton; i<<=1) {
- QPlatformDialogHelper::StandardButton standardButton = static_cast<QPlatformDialogHelper::StandardButton>(i);
- if (standardButton & buttons) {
- QQuickAbstractButton *button = d->createStandardButton(standardButton);
- if (button)
- addItem(button);
- }
- }
-
- if (isComponentComplete())
- polish();
-
- d->standardButtons = buttons;
- emit standardButtonsChanged();
-}
-
-/*!
- \qmlmethod AbstractButton QtQuick.Controls::DialogButtonBox::standardButton(StandardButton button)
-
- Returns the specified standard \a button, or \c null if it does not exist.
-
- \sa standardButtons
-*/
-QQuickAbstractButton *QQuickDialogButtonBox::standardButton(QPlatformDialogHelper::StandardButton button) const
-{
- Q_D(const QQuickDialogButtonBox);
- if (Q_UNLIKELY(!(d->standardButtons & button)))
- return nullptr;
- for (int i = 0, n = count(); i < n; ++i) {
- QQuickAbstractButton *btn = qobject_cast<QQuickAbstractButton *>(d->itemAt(i));
- if (Q_LIKELY(btn)) {
- QQuickDialogButtonBoxAttached *attached = qobject_cast<QQuickDialogButtonBoxAttached *>(qmlAttachedPropertiesObject<QQuickDialogButtonBox>(btn, false));
- if (attached && QQuickDialogButtonBoxAttachedPrivate::get(attached)->standardButton == button)
- return btn;
- }
- }
- return nullptr;
-}
-
-/*!
- \qmlproperty Component QtQuick.Controls::DialogButtonBox::delegate
-
- This property holds a delegate for creating standard buttons.
-
- \sa standardButtons
-*/
-QQmlComponent *QQuickDialogButtonBox::delegate() const
-{
- Q_D(const QQuickDialogButtonBox);
- return d->delegate;
-}
-
-void QQuickDialogButtonBox::setDelegate(QQmlComponent* delegate)
-{
- Q_D(QQuickDialogButtonBox);
- if (d->delegate == delegate)
- return;
-
- delete d->delegate;
- d->delegate = delegate;
- emit delegateChanged();
-}
-
-QQuickDialogButtonBoxAttached *QQuickDialogButtonBox::qmlAttachedProperties(QObject *object)
-{
- return new QQuickDialogButtonBoxAttached(object);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty enumeration QtQuick.Controls::DialogButtonBox::buttonLayout
-
- This property holds the button layout policy to be used when arranging the buttons contained in the button box.
- The default value is platform-specific.
-
- Available values:
- \value DialogButtonBox.WinLayout Use a policy appropriate for applications on Windows.
- \value DialogButtonBox.MacLayout Use a policy appropriate for applications on macOS.
- \value DialogButtonBox.KdeLayout Use a policy appropriate for applications on KDE.
- \value DialogButtonBox.GnomeLayout Use a policy appropriate for applications on GNOME.
- \value DialogButtonBox.AndroidLayout Use a policy appropriate for applications on Android.
-*/
-QPlatformDialogHelper::ButtonLayout QQuickDialogButtonBox::buttonLayout() const
-{
- Q_D(const QQuickDialogButtonBox);
- return d->buttonLayout;
-}
-
-void QQuickDialogButtonBox::setButtonLayout(QPlatformDialogHelper::ButtonLayout layout)
-{
- Q_D(QQuickDialogButtonBox);
- if (d->buttonLayout == layout)
- return;
-
- d->buttonLayout = layout;
- if (isComponentComplete())
- d->updateLayout();
- emit buttonLayoutChanged();
-}
-
-void QQuickDialogButtonBox::resetButtonLayout()
-{
- setButtonLayout(platformButtonLayout());
-}
-
-void QQuickDialogButtonBox::updatePolish()
-{
- Q_D(QQuickDialogButtonBox);
- QQuickContainer::updatePolish();
- d->updateLayout();
-}
-
-class LanguageEventFilter : public QObject
-{
-public:
- LanguageEventFilter(QQuickDialogButtonBoxPrivate *box)
- : QObject(box->q_ptr)
- , boxPrivate(box)
- {
- }
-
-protected:
- bool eventFilter(QObject *, QEvent *event)
- {
- if (event->type() == QEvent::LanguageChange)
- boxPrivate->updateLanguage();
- return false;
- }
-
-private:
- QQuickDialogButtonBoxPrivate *boxPrivate;
-};
-
-void QQuickDialogButtonBox::componentComplete()
-{
- Q_D(QQuickDialogButtonBox);
- QQuickContainer::componentComplete();
- d->updateLayout();
- // TODO: use the solution in QTBUG-78141 instead, when it's implemented.
- qApp->installEventFilter(new LanguageEventFilter(d));
-}
-
-void QQuickDialogButtonBox::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickDialogButtonBox);
- QQuickContainer::geometryChanged(newGeometry, oldGeometry);
- d->updateLayout();
-}
-
-void QQuickDialogButtonBox::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickDialogButtonBox);
- QQuickContainer::contentItemChange(newItem, oldItem);
- if (oldItem)
- QQuickItemPrivate::get(oldItem)->removeItemChangeListener(d, QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight);
- if (newItem)
- QQuickItemPrivate::get(newItem)->addItemChangeListener(d, QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight);
-}
-
-bool QQuickDialogButtonBox::isContent(QQuickItem *item) const
-{
- return qobject_cast<QQuickAbstractButton *>(item);
-}
-
-void QQuickDialogButtonBox::itemAdded(int index, QQuickItem *item)
-{
- Q_D(QQuickDialogButtonBox);
- Q_UNUSED(index);
- if (QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(item))
- QObjectPrivate::connect(button, &QQuickAbstractButton::clicked, d, &QQuickDialogButtonBoxPrivate::handleClick);
- if (QQuickDialogButtonBoxAttached *attached = qobject_cast<QQuickDialogButtonBoxAttached *>(qmlAttachedPropertiesObject<QQuickDialogButtonBox>(item, false)))
- QQuickDialogButtonBoxAttachedPrivate::get(attached)->setButtonBox(this);
- d->updateImplicitContentSize();
- if (isComponentComplete())
- polish();
-}
-
-void QQuickDialogButtonBox::itemRemoved(int index, QQuickItem *item)
-{
- Q_D(QQuickDialogButtonBox);
- Q_UNUSED(index);
- if (QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(item))
- QObjectPrivate::disconnect(button, &QQuickAbstractButton::clicked, d, &QQuickDialogButtonBoxPrivate::handleClick);
- if (QQuickDialogButtonBoxAttached *attached = qobject_cast<QQuickDialogButtonBoxAttached *>(qmlAttachedPropertiesObject<QQuickDialogButtonBox>(item, false)))
- QQuickDialogButtonBoxAttachedPrivate::get(attached)->setButtonBox(nullptr);
- d->updateImplicitContentSize();
- if (isComponentComplete())
- polish();
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickDialogButtonBox::accessibleRole() const
-{
- return QAccessible::PageTabList;
-}
-#endif
-
-void QQuickDialogButtonBoxAttachedPrivate::setButtonBox(QQuickDialogButtonBox *box)
-{
- Q_Q(QQuickDialogButtonBoxAttached);
- if (buttonBox == box)
- return;
-
- buttonBox = box;
- emit q->buttonBoxChanged();
-}
-
-QQuickDialogButtonBoxAttached::QQuickDialogButtonBoxAttached(QObject *parent)
- : QObject(*(new QQuickDialogButtonBoxAttachedPrivate), parent)
-{
- Q_D(QQuickDialogButtonBoxAttached);
- QQuickItem *parentItem = qobject_cast<QQuickItem *>(parent);
- while (parentItem && !d->buttonBox) {
- d->buttonBox = qobject_cast<QQuickDialogButtonBox *>(parentItem);
- parentItem = parentItem->parentItem();
- }
-}
-
-/*!
- \qmlattachedproperty DialogButtonBox QtQuick.Controls::DialogButtonBox::buttonBox
- \readonly
-
- This attached property holds the button box that manages this button, or
- \c null if the button is not in a button box.
-*/
-QQuickDialogButtonBox *QQuickDialogButtonBoxAttached::buttonBox() const
-{
- Q_D(const QQuickDialogButtonBoxAttached);
- return d->buttonBox;
-}
-
-/*!
- \qmlattachedproperty enumeration QtQuick.Controls::DialogButtonBox::buttonRole
-
- This attached property holds the role of each button in a button box.
-
- \snippet qtquickcontrols2-dialogbuttonbox-attached.qml 1
-
- Available values:
- \value DialogButtonBox.InvalidRole The button is invalid.
- \value DialogButtonBox.AcceptRole Clicking the button causes the dialog to be accepted (e.g. \uicontrol OK).
- \value DialogButtonBox.RejectRole Clicking the button causes the dialog to be rejected (e.g. \uicontrol Cancel).
- \value DialogButtonBox.DestructiveRole Clicking the button causes a destructive change (e.g. for discarding changes) and closes the dialog.
- \value DialogButtonBox.ActionRole Clicking the button causes changes to the elements within the dialog.
- \value DialogButtonBox.HelpRole The button can be clicked to request help.
- \value DialogButtonBox.YesRole The button is a "Yes"-like button.
- \value DialogButtonBox.NoRole The button is a "No"-like button.
- \value DialogButtonBox.ResetRole The button resets the dialog's fields to default values.
- \value DialogButtonBox.ApplyRole The button applies current changes.
-*/
-QPlatformDialogHelper::ButtonRole QQuickDialogButtonBoxAttached::buttonRole() const
-{
- Q_D(const QQuickDialogButtonBoxAttached);
- return d->buttonRole;
-}
-
-void QQuickDialogButtonBoxAttached::setButtonRole(QPlatformDialogHelper::ButtonRole role)
-{
- Q_D(QQuickDialogButtonBoxAttached);
- if (d->buttonRole == role)
- return;
-
- d->buttonRole = role;
- emit buttonRoleChanged();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickdialogbuttonbox_p.h b/src/quicktemplates2/qquickdialogbuttonbox_p.h
deleted file mode 100644
index 51ae473f..00000000
--- a/src/quicktemplates2/qquickdialogbuttonbox_p.h
+++ /dev/null
@@ -1,169 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDIALOGBUTTONBOX_P_H
-#define QQUICKDIALOGBUTTONBOX_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontainer_p.h>
-#include <QtGui/qpa/qplatformdialoghelper.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlComponent;
-class QQuickAbstractButton;
-class QQuickDialogButtonBoxPrivate;
-class QQuickDialogButtonBoxAttached;
-class QQuickDialogButtonBoxAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickDialogButtonBox : public QQuickContainer
-{
- Q_OBJECT
- Q_PROPERTY(Position position READ position WRITE setPosition NOTIFY positionChanged FINAL)
- Q_PROPERTY(Qt::Alignment alignment READ alignment WRITE setAlignment RESET resetAlignment NOTIFY alignmentChanged FINAL)
- Q_PROPERTY(QPlatformDialogHelper::StandardButtons standardButtons READ standardButtons WRITE setStandardButtons NOTIFY standardButtonsChanged FINAL)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(QPlatformDialogHelper::ButtonLayout buttonLayout READ buttonLayout WRITE setButtonLayout RESET resetButtonLayout NOTIFY buttonLayoutChanged FINAL REVISION 5)
- Q_FLAGS(QPlatformDialogHelper::StandardButtons)
-
-public:
- explicit QQuickDialogButtonBox(QQuickItem *parent = nullptr);
- ~QQuickDialogButtonBox();
-
- enum Position {
- Header,
- Footer
- };
- Q_ENUM(Position)
-
- Position position() const;
- void setPosition(Position position);
-
- Qt::Alignment alignment() const;
- void setAlignment(Qt::Alignment alignment);
- void resetAlignment();
-
- QPlatformDialogHelper::StandardButtons standardButtons() const;
- void setStandardButtons(QPlatformDialogHelper::StandardButtons buttons);
- Q_INVOKABLE QQuickAbstractButton *standardButton(QPlatformDialogHelper::StandardButton button) const;
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
- static QQuickDialogButtonBoxAttached *qmlAttachedProperties(QObject *object);
-
- // 2.5 (Qt 5.12)
- Q_ENUMS(QPlatformDialogHelper::ButtonLayout)
-
- QPlatformDialogHelper::ButtonLayout buttonLayout() const;
- void setButtonLayout(QPlatformDialogHelper::ButtonLayout layout);
- void resetButtonLayout();
-
-Q_SIGNALS:
- void accepted();
- void rejected();
- void helpRequested();
- void clicked(QQuickAbstractButton *button);
- void positionChanged();
- void alignmentChanged();
- void standardButtonsChanged();
- void delegateChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void applied();
- Q_REVISION(3) void reset();
- Q_REVISION(3) void discarded();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void buttonLayoutChanged();
-
-protected:
- void updatePolish() override;
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
- bool isContent(QQuickItem *item) const override;
- void itemAdded(int index, QQuickItem *item) override;
- void itemRemoved(int index, QQuickItem *item) override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickDialogButtonBox)
- Q_DECLARE_PRIVATE(QQuickDialogButtonBox)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickDialogButtonBoxAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickDialogButtonBox *buttonBox READ buttonBox NOTIFY buttonBoxChanged FINAL)
- Q_PROPERTY(QPlatformDialogHelper::ButtonRole buttonRole READ buttonRole WRITE setButtonRole NOTIFY buttonRoleChanged FINAL)
- Q_ENUMS(QPlatformDialogHelper::ButtonRole)
-
-public:
- explicit QQuickDialogButtonBoxAttached(QObject *parent = nullptr);
-
- QQuickDialogButtonBox *buttonBox() const;
-
- QPlatformDialogHelper::ButtonRole buttonRole() const;
- void setButtonRole(QPlatformDialogHelper::ButtonRole role);
-
-Q_SIGNALS:
- void buttonBoxChanged();
- void buttonRoleChanged();
-
-private:
- Q_DISABLE_COPY(QQuickDialogButtonBoxAttached)
- Q_DECLARE_PRIVATE(QQuickDialogButtonBoxAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDialogButtonBox)
-QML_DECLARE_TYPEINFO(QQuickDialogButtonBox, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKDIALOGBUTTONBOX_P_H
diff --git a/src/quicktemplates2/qquickdialogbuttonbox_p_p.h b/src/quicktemplates2/qquickdialogbuttonbox_p_p.h
deleted file mode 100644
index 6f9c9033..00000000
--- a/src/quicktemplates2/qquickdialogbuttonbox_p_p.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDIALOGBUTTONBOX_P_P_H
-#define QQUICKDIALOGBUTTONBOX_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontainer_p_p.h>
-#include <QtQuickTemplates2/private/qquickdialogbuttonbox_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDialogButtonBoxPrivate : public QQuickContainerPrivate
-{
- Q_DECLARE_PUBLIC(QQuickDialogButtonBox)
-
-public:
- static QQuickDialogButtonBoxPrivate *get(QQuickDialogButtonBox *box)
- {
- return box->d_func();
- }
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- void resizeContent() override;
-
- void updateLayout();
-
- qreal getContentWidth() const override;
- qreal getContentHeight() const override;
-
- void handleClick();
-
- QQuickAbstractButton *createStandardButton(QPlatformDialogHelper::StandardButton button);
- void removeStandardButtons();
-
- void updateLanguage();
-
- Qt::Alignment alignment = 0;
- QQuickDialogButtonBox::Position position = QQuickDialogButtonBox::Footer;
- QPlatformDialogHelper::StandardButtons standardButtons = QPlatformDialogHelper::NoButton;
- QPlatformDialogHelper::ButtonLayout buttonLayout = QPlatformDialogHelper::UnknownLayout;
- QQmlComponent *delegate = nullptr;
-};
-
-class QQuickDialogButtonBoxAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickDialogButtonBoxAttached)
-
-public:
- static QQuickDialogButtonBoxAttachedPrivate *get(QQuickDialogButtonBoxAttached *q)
- {
- return q->d_func();
- }
-
- void setButtonBox(QQuickDialogButtonBox *box);
-
- QQuickDialogButtonBox *buttonBox = nullptr;
- QPlatformDialogHelper::ButtonRole buttonRole = QPlatformDialogHelper::InvalidRole;
- QPlatformDialogHelper::StandardButton standardButton = QPlatformDialogHelper::NoButton;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKDIALOGBUTTONBOX_P_P_H
diff --git a/src/quicktemplates2/qquickdrawer.cpp b/src/quicktemplates2/qquickdrawer.cpp
deleted file mode 100644
index 9cc38791..00000000
--- a/src/quicktemplates2/qquickdrawer.cpp
+++ /dev/null
@@ -1,809 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickdrawer_p.h"
-#include "qquickdrawer_p_p.h"
-#include "qquickpopupitem_p_p.h"
-#include "qquickpopuppositioner_p_p.h"
-
-#include <QtGui/qstylehints.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQml/qqmlinfo.h>
-#include <QtQuick/private/qquickwindow_p.h>
-#include <QtQuick/private/qquickanimation_p.h>
-#include <QtQuick/private/qquicktransition_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Drawer
- \inherits Popup
- \instantiates QQuickDrawer
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-navigation
- \ingroup qtquickcontrols2-popups
- \brief Side panel that can be opened and closed using a swipe gesture.
-
- Drawer provides a swipe-based side panel, similar to those often used in
- touch interfaces to provide a central location for navigation.
-
- \image qtquickcontrols2-drawer.gif
-
- Drawer can be positioned at any of the four edges of the content item.
- The drawer above is positioned against the left edge of the window. The
- drawer is then opened by \e "dragging" it out from the left edge of the
- window.
-
- \code \QtMinorVersion
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- ApplicationWindow {
- id: window
- visible: true
-
- Drawer {
- id: drawer
- width: 0.66 * window.width
- height: window.height
-
- Label {
- text: "Content goes here!"
- anchors.centerIn: parent
- }
- }
- }
- \endcode
-
- Drawer is a special type of popup that resides at one of the window \l {edge}{edges}.
- By default, Drawer re-parents itself to the window \l {ApplicationWindow::}{overlay},
- and therefore operates on window coordinates. It is also possible to manually set the
- \l {Popup::}{parent} to something else to make the drawer operate in a specific
- coordinate space.
-
- Drawer can be configured to cover only part of its window edge. The following example
- illustrates how Drawer can be positioned to appear below a window header:
-
- \code \QtMinorVersion
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- ApplicationWindow {
- id: window
- visible: true
-
- header: ToolBar { }
-
- Drawer {
- y: header.height
- width: window.width * 0.6
- height: window.height - header.height
- }
- }
- \endcode
-
- The \l position property determines how much of the drawer is visible, as
- a value between \c 0.0 and \c 1.0. It is not possible to set the x-coordinate
- (or horizontal margins) of a drawer at the left or right window edge, or the
- y-coordinate (or vertical margins) of a drawer at the top or bottom window edge.
-
- In the image above, the application's contents are \e "pushed" across the
- screen. This is achieved by applying a translation to the contents:
-
- \code \QtMinorVersion
- import QtQuick 2.\1
- import QtQuick.Controls 2.\1
-
- ApplicationWindow {
- id: window
- width: 200
- height: 228
- visible: true
-
- Drawer {
- id: drawer
- width: 0.66 * window.width
- height: window.height
- }
-
- Label {
- id: content
-
- text: "Aa"
- font.pixelSize: 96
- anchors.fill: parent
- verticalAlignment: Label.AlignVCenter
- horizontalAlignment: Label.AlignHCenter
-
- transform: Translate {
- x: drawer.position * content.width * 0.33
- }
- }
- }
- \endcode
-
- If you would like the application's contents to stay where they are when
- the drawer is opened, don't apply a translation.
-
- Drawer can be configured as a non-closable persistent side panel by
- making the Drawer \l {Popup::modal}{non-modal} and \l {interactive}
- {non-interactive}. See the \l {Qt Quick Controls 2 - Side Panel}{Side Panel}
- example for more details.
-
- \note On some platforms, certain edges may be reserved for system
- gestures and therefore cannot be used with Drawer. For example, the
- top and bottom edges may be reserved for system notifications and
- control centers on Android and iOS.
-
- \sa SwipeView, {Customizing Drawer}, {Navigation Controls}, {Popup Controls}
-*/
-
-class QQuickDrawerPositioner : public QQuickPopupPositioner
-{
-public:
- QQuickDrawerPositioner(QQuickDrawer *drawer) : QQuickPopupPositioner(drawer) { }
-
- void reposition() override;
-};
-
-qreal QQuickDrawerPrivate::offsetAt(const QPointF &point) const
-{
- qreal offset = positionAt(point) - position;
-
- // don't jump when dragged open
- if (offset > 0 && position > 0 && !contains(point))
- offset = 0;
-
- return offset;
-}
-
-qreal QQuickDrawerPrivate::positionAt(const QPointF &point) const
-{
- Q_Q(const QQuickDrawer);
- QQuickWindow *window = q->window();
- if (!window)
- return 0;
-
- switch (edge) {
- case Qt::TopEdge:
- return point.y() / q->height();
- case Qt::LeftEdge:
- return point.x() / q->width();
- case Qt::RightEdge:
- return (window->width() - point.x()) / q->width();
- case Qt::BottomEdge:
- return (window->height() - point.y()) / q->height();
- default:
- return 0;
- }
-}
-
-QQuickPopupPositioner *QQuickDrawerPrivate::getPositioner()
-{
- Q_Q(QQuickDrawer);
- if (!positioner)
- positioner = new QQuickDrawerPositioner(q);
- return positioner;
-}
-
-void QQuickDrawerPositioner::reposition()
-{
- if (m_positioning)
- return;
-
- QQuickDrawer *drawer = static_cast<QQuickDrawer*>(popup());
- QQuickWindow *window = drawer->window();
- if (!window)
- return;
-
- const qreal position = drawer->position();
- QQuickItem *popupItem = drawer->popupItem();
- switch (drawer->edge()) {
- case Qt::LeftEdge:
- popupItem->setX((position - 1.0) * popupItem->width());
- break;
- case Qt::RightEdge:
- popupItem->setX(window->width() - position * popupItem->width());
- break;
- case Qt::TopEdge:
- popupItem->setY((position - 1.0) * popupItem->height());
- break;
- case Qt::BottomEdge:
- popupItem->setY(window->height() - position * popupItem->height());
- break;
- }
-
- QQuickPopupPositioner::reposition();
-}
-
-void QQuickDrawerPrivate::showOverlay()
-{
- // managed in setPosition()
-}
-
-void QQuickDrawerPrivate::hideOverlay()
-{
- // managed in setPosition()
-}
-
-void QQuickDrawerPrivate::resizeOverlay()
-{
- if (!dimmer || !window)
- return;
-
- QRectF geometry(0, 0, window->width(), window->height());
-
- if (edge == Qt::LeftEdge || edge == Qt::RightEdge) {
- geometry.setY(popupItem->y());
- geometry.setHeight(popupItem->height());
- } else {
- geometry.setX(popupItem->x());
- geometry.setWidth(popupItem->width());
- }
-
- dimmer->setPosition(geometry.topLeft());
- dimmer->setSize(geometry.size());
-}
-
-static bool isWithinDragMargin(const QQuickDrawer *drawer, const QPointF &pos)
-{
- switch (drawer->edge()) {
- case Qt::LeftEdge:
- return pos.x() <= drawer->dragMargin();
- case Qt::RightEdge:
- return pos.x() >= drawer->window()->width() - drawer->dragMargin();
- case Qt::TopEdge:
- return pos.y() <= drawer->dragMargin();
- case Qt::BottomEdge:
- return pos.y() >= drawer->window()->height() - drawer->dragMargin();
- default:
- Q_UNREACHABLE();
- break;
- }
- return false;
-}
-
-bool QQuickDrawerPrivate::startDrag(QEvent *event)
-{
- Q_Q(QQuickDrawer);
- if (!window || !interactive || dragMargin < 0.0 || qFuzzyIsNull(dragMargin))
- return false;
-
- switch (event->type()) {
- case QEvent::MouseButtonPress:
- if (isWithinDragMargin(q, static_cast<QMouseEvent *>(event)->windowPos())) {
- prepareEnterTransition();
- reposition();
- return handleMouseEvent(window->contentItem(), static_cast<QMouseEvent *>(event));
- }
- break;
-
-#if QT_CONFIG(quicktemplates2_multitouch)
- case QEvent::TouchBegin:
- case QEvent::TouchUpdate:
- for (const QTouchEvent::TouchPoint &point : static_cast<QTouchEvent *>(event)->touchPoints()) {
- if (point.state() == Qt::TouchPointPressed && isWithinDragMargin(q, point.scenePos())) {
- prepareEnterTransition();
- reposition();
- return handleTouchEvent(window->contentItem(), static_cast<QTouchEvent *>(event));
- }
- }
- break;
-#endif
-
- default:
- break;
- }
-
- return false;
-}
-
-static inline bool keepGrab(QQuickItem *item)
-{
- return item->keepMouseGrab() || item->keepTouchGrab();
-}
-
-bool QQuickDrawerPrivate::grabMouse(QQuickItem *item, QMouseEvent *event)
-{
- Q_Q(QQuickDrawer);
- handleMouseEvent(item, event);
-
- if (!window || !interactive || keepGrab(popupItem) || keepGrab(item))
- return false;
-
- const QPointF movePoint = event->windowPos();
-
- // Flickable uses a hard-coded threshold of 15 for flicking, and
- // QStyleHints::startDragDistance for dragging. Drawer uses a bit
- // larger threshold to avoid being too eager to steal touch (QTBUG-50045)
- const int threshold = qMax(20, QGuiApplication::styleHints()->startDragDistance() + 5);
- bool overThreshold = false;
- if (position > 0 || dragMargin > 0) {
- const bool xOverThreshold = QQuickWindowPrivate::dragOverThreshold(movePoint.x() - pressPoint.x(), Qt::XAxis, event, threshold);
- const bool yOverThreshold = QQuickWindowPrivate::dragOverThreshold(movePoint.y() - pressPoint.y(), Qt::YAxis, event, threshold);
- if (edge == Qt::LeftEdge || edge == Qt::RightEdge)
- overThreshold = xOverThreshold && !yOverThreshold;
- else
- overThreshold = yOverThreshold && !xOverThreshold;
- }
-
- // Don't be too eager to steal presses outside the drawer (QTBUG-53929)
- if (overThreshold && qFuzzyCompare(position, qreal(1.0)) && !contains(movePoint)) {
- if (edge == Qt::LeftEdge || edge == Qt::RightEdge)
- overThreshold = qAbs(movePoint.x() - q->width()) < dragMargin;
- else
- overThreshold = qAbs(movePoint.y() - q->height()) < dragMargin;
- }
-
- if (overThreshold) {
- popupItem->grabMouse();
- popupItem->setKeepMouseGrab(true);
- offset = offsetAt(movePoint);
- }
-
- return overThreshold;
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-bool QQuickDrawerPrivate::grabTouch(QQuickItem *item, QTouchEvent *event)
-{
- Q_Q(QQuickDrawer);
- bool handled = handleTouchEvent(item, event);
-
- if (!window || !interactive || keepGrab(popupItem) || keepGrab(item) || !event->touchPointStates().testFlag(Qt::TouchPointMoved))
- return handled;
-
- bool overThreshold = false;
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- if (!acceptTouch(point) || point.state() != Qt::TouchPointMoved)
- continue;
-
- const QPointF movePoint = point.scenePos();
-
- // Flickable uses a hard-coded threshold of 15 for flicking, and
- // QStyleHints::startDragDistance for dragging. Drawer uses a bit
- // larger threshold to avoid being too eager to steal touch (QTBUG-50045)
- const int threshold = qMax(20, QGuiApplication::styleHints()->startDragDistance() + 5);
- if (position > 0 || dragMargin > 0) {
- const bool xOverThreshold = QQuickWindowPrivate::dragOverThreshold(movePoint.x() - pressPoint.x(), Qt::XAxis, &point, threshold);
- const bool yOverThreshold = QQuickWindowPrivate::dragOverThreshold(movePoint.y() - pressPoint.y(), Qt::YAxis, &point, threshold);
- if (edge == Qt::LeftEdge || edge == Qt::RightEdge)
- overThreshold = xOverThreshold && !yOverThreshold;
- else
- overThreshold = yOverThreshold && !xOverThreshold;
- }
-
- // Don't be too eager to steal presses outside the drawer (QTBUG-53929)
- if (overThreshold && qFuzzyCompare(position, qreal(1.0)) && !contains(movePoint)) {
- if (edge == Qt::LeftEdge || edge == Qt::RightEdge)
- overThreshold = qAbs(movePoint.x() - q->width()) < dragMargin;
- else
- overThreshold = qAbs(movePoint.y() - q->height()) < dragMargin;
- }
-
- if (overThreshold) {
- popupItem->grabTouchPoints(QVector<int>() << touchId);
- popupItem->setKeepTouchGrab(true);
- offset = offsetAt(movePoint);
- }
- }
-
- return overThreshold;
-}
-#endif
-
-static const qreal openCloseVelocityThreshold = 300;
-
-bool QQuickDrawerPrivate::blockInput(QQuickItem *item, const QPointF &point) const
-{
- Q_Q(const QQuickDrawer);
-
- // We want all events, if mouse/touch is already grabbed.
- if (popupItem->keepMouseGrab() || popupItem->keepTouchGrab())
- return true;
-
- // Don't block input to drawer's children/content.
- if (popupItem->isAncestorOf(item))
- return false;
-
- // Don't block outside a drawer's background dimming
- if (dimmer && !dimmer->contains(dimmer->mapFromScene(point)))
- return false;
-
- // Accept all events within drag area.
- if (isWithinDragMargin(q, point))
- return true;
-
- // Accept all other events if drawer is modal.
- return modal;
-}
-
-bool QQuickDrawerPrivate::handlePress(QQuickItem *item, const QPointF &point, ulong timestamp)
-{
- offset = 0;
- velocityCalculator.startMeasuring(point, timestamp);
-
- if (!QQuickPopupPrivate::handlePress(item, point, timestamp))
- return false;
-
- return true;
-}
-
-bool QQuickDrawerPrivate::handleMove(QQuickItem *item, const QPointF &point, ulong timestamp)
-{
- Q_Q(QQuickDrawer);
- if (!QQuickPopupPrivate::handleMove(item, point, timestamp))
- return false;
-
- // limit/reset the offset to the edge of the drawer when pushed from the outside
- if (qFuzzyCompare(position, qreal(1.0)) && !contains(point))
- offset = 0;
-
- bool isGrabbed = popupItem->keepMouseGrab() || popupItem->keepTouchGrab();
- if (isGrabbed)
- q->setPosition(positionAt(point) - offset);
-
- return isGrabbed;
-}
-
-bool QQuickDrawerPrivate::handleRelease(QQuickItem *item, const QPointF &point, ulong timestamp)
-{
- if (!popupItem->keepMouseGrab() && !popupItem->keepTouchGrab()) {
- velocityCalculator.reset();
- return QQuickPopupPrivate::handleRelease(item, point, timestamp);
- }
-
- velocityCalculator.stopMeasuring(point, timestamp);
-
- qreal velocity = 0;
- if (edge == Qt::LeftEdge || edge == Qt::RightEdge)
- velocity = velocityCalculator.velocity().x();
- else
- velocity = velocityCalculator.velocity().y();
-
- // the velocity is calculated so that swipes from left to right
- // and top to bottom have positive velocity, and swipes from right
- // to left and bottom to top have negative velocity.
- //
- // - top/left edge: positive velocity opens, negative velocity closes
- // - bottom/right edge: negative velocity opens, positive velocity closes
- //
- // => invert the velocity for bottom and right edges, for the threshold comparison below
- if (edge == Qt::RightEdge || edge == Qt::BottomEdge)
- velocity = -velocity;
-
- if (position > 0.7 || velocity > openCloseVelocityThreshold) {
- transitionManager.transitionEnter();
- } else if (position < 0.3 || velocity < -openCloseVelocityThreshold) {
- transitionManager.transitionExit();
- } else {
- switch (edge) {
- case Qt::LeftEdge:
- if (point.x() - pressPoint.x() > 0)
- transitionManager.transitionEnter();
- else
- transitionManager.transitionExit();
- break;
- case Qt::RightEdge:
- if (point.x() - pressPoint.x() < 0)
- transitionManager.transitionEnter();
- else
- transitionManager.transitionExit();
- break;
- case Qt::TopEdge:
- if (point.y() - pressPoint.y() > 0)
- transitionManager.transitionEnter();
- else
- transitionManager.transitionExit();
- break;
- case Qt::BottomEdge:
- if (point.y() - pressPoint.y() < 0)
- transitionManager.transitionEnter();
- else
- transitionManager.transitionExit();
- break;
- }
- }
-
- bool wasGrabbed = popupItem->keepMouseGrab() || popupItem->keepTouchGrab();
- popupItem->setKeepMouseGrab(false);
- popupItem->setKeepTouchGrab(false);
-
- pressPoint = QPointF();
- touchId = -1;
-
- return wasGrabbed;
-}
-
-void QQuickDrawerPrivate::handleUngrab()
-{
- QQuickPopupPrivate::handleUngrab();
-
- velocityCalculator.reset();
-}
-
-static QList<QQuickStateAction> prepareTransition(QQuickDrawer *drawer, QQuickTransition *transition, qreal to)
-{
- QList<QQuickStateAction> actions;
- if (!transition || !QQuickPopupPrivate::get(drawer)->window || !transition->enabled())
- return actions;
-
- qmlExecuteDeferred(transition);
-
- QQmlProperty defaultTarget(drawer, QLatin1String("position"));
- QQmlListProperty<QQuickAbstractAnimation> animations = transition->animations();
- int count = animations.count(&animations);
- for (int i = 0; i < count; ++i) {
- QQuickAbstractAnimation *anim = animations.at(&animations, i);
- anim->setDefaultTarget(defaultTarget);
- }
-
- actions << QQuickStateAction(drawer, QLatin1String("position"), to);
- return actions;
-}
-
-bool QQuickDrawerPrivate::prepareEnterTransition()
-{
- Q_Q(QQuickDrawer);
- enterActions = prepareTransition(q, enter, 1.0);
- return QQuickPopupPrivate::prepareEnterTransition();
-}
-
-bool QQuickDrawerPrivate::prepareExitTransition()
-{
- Q_Q(QQuickDrawer);
- exitActions = prepareTransition(q, exit, 0.0);
- return QQuickPopupPrivate::prepareExitTransition();
-}
-
-bool QQuickDrawerPrivate::setEdge(Qt::Edge e)
-{
- Q_Q(QQuickDrawer);
- switch (e) {
- case Qt::LeftEdge:
- case Qt::RightEdge:
- allowVerticalMove = true;
- allowVerticalResize = true;
- allowHorizontalMove = false;
- allowHorizontalResize = false;
- break;
- case Qt::TopEdge:
- case Qt::BottomEdge:
- allowVerticalMove = false;
- allowVerticalResize = false;
- allowHorizontalMove = true;
- allowHorizontalResize = true;
- break;
- default:
- qmlWarning(q) << "invalid edge value - valid values are: "
- << "Qt.TopEdge, Qt.LeftEdge, Qt.RightEdge, Qt.BottomEdge";
- return false;
- }
-
- edge = e;
- return true;
-}
-
-QQuickDrawer::QQuickDrawer(QObject *parent)
- : QQuickPopup(*(new QQuickDrawerPrivate), parent)
-{
- Q_D(QQuickDrawer);
- d->dragMargin = QGuiApplication::styleHints()->startDragDistance();
- d->setEdge(Qt::LeftEdge);
-
- setFocus(true);
- setModal(true);
- setFiltersChildMouseEvents(true);
- setClosePolicy(CloseOnEscape | CloseOnReleaseOutside);
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Drawer::edge
-
- This property holds the edge of the window at which the drawer will
- open from. The acceptable values are:
-
- \value Qt.TopEdge The top edge of the window.
- \value Qt.LeftEdge The left edge of the window (default).
- \value Qt.RightEdge The right edge of the window.
- \value Qt.BottomEdge The bottom edge of the window.
-*/
-Qt::Edge QQuickDrawer::edge() const
-{
- Q_D(const QQuickDrawer);
- return d->edge;
-}
-
-void QQuickDrawer::setEdge(Qt::Edge edge)
-{
- Q_D(QQuickDrawer);
- if (d->edge == edge)
- return;
-
- if (!d->setEdge(edge))
- return;
-
- if (isComponentComplete())
- d->reposition();
- emit edgeChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Drawer::position
-
- This property holds the position of the drawer relative to its final
- destination. That is, the position will be \c 0.0 when the drawer
- is fully closed, and \c 1.0 when fully open.
-*/
-qreal QQuickDrawer::position() const
-{
- Q_D(const QQuickDrawer);
- return d->position;
-}
-
-void QQuickDrawer::setPosition(qreal position)
-{
- Q_D(QQuickDrawer);
- position = qBound<qreal>(0.0, position, 1.0);
- if (qFuzzyCompare(d->position, position))
- return;
-
- d->position = position;
- if (isComponentComplete())
- d->reposition();
- if (d->dimmer)
- d->dimmer->setOpacity(position);
- emit positionChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Drawer::dragMargin
-
- This property holds the distance from the screen edge within which
- drag actions will open the drawer. Setting the value to \c 0 or less
- prevents opening the drawer by dragging.
-
- The default value is \c Qt.styleHints.startDragDistance.
-
- \sa interactive
-*/
-qreal QQuickDrawer::dragMargin() const
-{
- Q_D(const QQuickDrawer);
- return d->dragMargin;
-}
-
-void QQuickDrawer::setDragMargin(qreal margin)
-{
- Q_D(QQuickDrawer);
- if (qFuzzyCompare(d->dragMargin, margin))
- return;
-
- d->dragMargin = margin;
- emit dragMarginChanged();
-}
-
-void QQuickDrawer::resetDragMargin()
-{
- setDragMargin(QGuiApplication::styleHints()->startDragDistance());
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::Drawer::interactive
-
- This property holds whether the drawer is interactive. A non-interactive
- drawer does not react to swipes.
-
- The default value is \c true.
-
- \sa dragMargin
-*/
-bool QQuickDrawer::isInteractive() const
-{
- Q_D(const QQuickDrawer);
- return d->interactive;
-}
-
-void QQuickDrawer::setInteractive(bool interactive)
-{
- Q_D(QQuickDrawer);
- if (d->interactive == interactive)
- return;
-
- setFiltersChildMouseEvents(interactive);
- d->interactive = interactive;
- emit interactiveChanged();
-}
-
-bool QQuickDrawer::childMouseEventFilter(QQuickItem *child, QEvent *event)
-{
- Q_D(QQuickDrawer);
- switch (event->type()) {
-#if QT_CONFIG(quicktemplates2_multitouch)
- case QEvent::TouchUpdate:
- return d->grabTouch(child, static_cast<QTouchEvent *>(event));
-#endif
- case QEvent::MouseMove:
- return d->grabMouse(child, static_cast<QMouseEvent *>(event));
- case QEvent::MouseButtonPress:
- case QEvent::MouseButtonRelease:
- return d->handleMouseEvent(child, static_cast<QMouseEvent *>(event));
- default:
- break;
- }
- return false;
-}
-
-void QQuickDrawer::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickDrawer);
- d->grabMouse(d->popupItem, event);
-}
-
-bool QQuickDrawer::overlayEvent(QQuickItem *item, QEvent *event)
-{
- Q_D(QQuickDrawer);
- switch (event->type()) {
-#if QT_CONFIG(quicktemplates2_multitouch)
- case QEvent::TouchUpdate:
- return d->grabTouch(item, static_cast<QTouchEvent *>(event));
-#endif
- case QEvent::MouseMove:
- return d->grabMouse(item, static_cast<QMouseEvent *>(event));
- default:
- break;
- }
- return QQuickPopup::overlayEvent(item, event);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickDrawer::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickDrawer);
- d->grabTouch(d->popupItem, event);
-}
-#endif
-
-void QQuickDrawer::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickDrawer);
- QQuickPopup::geometryChanged(newGeometry, oldGeometry);
- d->resizeOverlay();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickdrawer_p.h b/src/quicktemplates2/qquickdrawer_p.h
deleted file mode 100644
index f0fc1b4c..00000000
--- a/src/quicktemplates2/qquickdrawer_p.h
+++ /dev/null
@@ -1,109 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDRAWER_P_H
-#define QQUICKDRAWER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDrawerPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickDrawer : public QQuickPopup
-{
- Q_OBJECT
- Q_PROPERTY(Qt::Edge edge READ edge WRITE setEdge NOTIFY edgeChanged FINAL)
- Q_PROPERTY(qreal position READ position WRITE setPosition NOTIFY positionChanged FINAL)
- Q_PROPERTY(qreal dragMargin READ dragMargin WRITE setDragMargin RESET resetDragMargin NOTIFY dragMarginChanged FINAL)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged FINAL REVISION 2)
-
-public:
- explicit QQuickDrawer(QObject *parent = nullptr);
-
- Qt::Edge edge() const;
- void setEdge(Qt::Edge edge);
-
- qreal position() const;
- void setPosition(qreal position);
-
- qreal dragMargin() const;
- void setDragMargin(qreal margin);
- void resetDragMargin();
-
- // 2.2 (Qt 5.9)
- bool isInteractive() const;
- void setInteractive(bool interactive);
-
-Q_SIGNALS:
- void edgeChanged();
- void positionChanged();
- void dragMarginChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void interactiveChanged();
-
-protected:
- bool childMouseEventFilter(QQuickItem *child, QEvent *event) override;
- void mouseMoveEvent(QMouseEvent *event) override;
- bool overlayEvent(QQuickItem *item, QEvent *event) override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
-private:
- Q_DISABLE_COPY(QQuickDrawer)
- Q_DECLARE_PRIVATE(QQuickDrawer)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickDrawer)
-
-#endif // QQUICKDRAWER_P_H
diff --git a/src/quicktemplates2/qquickdrawer_p_p.h b/src/quicktemplates2/qquickdrawer_p_p.h
deleted file mode 100644
index 5f1086de..00000000
--- a/src/quicktemplates2/qquickdrawer_p_p.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKDRAWER_P_P_H
-#define QQUICKDRAWER_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickdrawer_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p_p.h>
-#include <QtQuickTemplates2/private/qquickvelocitycalculator_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickDrawerPrivate : public QQuickPopupPrivate
-{
- Q_DECLARE_PUBLIC(QQuickDrawer)
-
-public:
- static QQuickDrawerPrivate *get(QQuickDrawer *drawer)
- {
- return drawer->d_func();
- }
-
- qreal offsetAt(const QPointF &point) const;
- qreal positionAt(const QPointF &point) const;
-
- QQuickPopupPositioner *getPositioner() override;
- void showOverlay() override;
- void hideOverlay() override;
- void resizeOverlay() override;
-
- bool startDrag(QEvent *event);
- bool grabMouse(QQuickItem *item, QMouseEvent *event);
-#if QT_CONFIG(quicktemplates2_multitouch)
- bool grabTouch(QQuickItem *item, QTouchEvent *event);
-#endif
- bool blockInput(QQuickItem *item, const QPointF &point) const override;
-
- bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp) override;
- bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp) override;
- bool handleRelease(QQuickItem* item, const QPointF &point, ulong timestamp) override;
- void handleUngrab() override;
-
- bool prepareEnterTransition() override;
- bool prepareExitTransition() override;
-
- bool setEdge(Qt::Edge edge);
-
- Qt::Edge edge = Qt::LeftEdge;
- qreal offset = 0;
- qreal position = 0;
- qreal dragMargin = 0;
- QQuickVelocityCalculator velocityCalculator;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKDRAWER_P_P_H
diff --git a/src/quicktemplates2/qquickframe.cpp b/src/quicktemplates2/qquickframe.cpp
deleted file mode 100644
index f880d917..00000000
--- a/src/quicktemplates2/qquickframe.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickframe_p.h"
-#include "qquickframe_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Frame
- \inherits Pane
- \instantiates QQuickFrame
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-containers
- \brief Visual frame for a logical group of controls.
-
- Frame is used to layout a logical group of controls together within a
- visual frame. Frame does not provide a layout of its own, but requires
- you to position its contents, for instance by creating a \l RowLayout
- or a \l ColumnLayout.
-
- Items declared as children of a Frame are automatically parented to the
- Frame's \l {Control::}{contentItem}. Items created dynamically need to be
- explicitly parented to the contentItem.
-
- If only a single item is used within a Frame, it will resize to fit the
- implicit size of its contained item. This makes it particularly suitable
- for use together with layouts.
-
- \image qtquickcontrols2-frame.png
-
- \snippet qtquickcontrols2-frame.qml 1
-
- \sa {Customizing Frame}, {Container Controls}
-*/
-
-QQuickFrame::QQuickFrame(QQuickItem *parent)
- : QQuickPane(*(new QQuickFramePrivate), parent)
-{
-}
-
-QQuickFrame::QQuickFrame(QQuickFramePrivate &dd, QQuickItem *parent)
- : QQuickPane(dd, parent)
-{
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickFrame::accessibleRole() const
-{
- return QAccessible::Border;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickframe_p.h b/src/quicktemplates2/qquickframe_p.h
deleted file mode 100644
index 381088ec..00000000
--- a/src/quicktemplates2/qquickframe_p.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKFRAME_P_H
-#define QQUICKFRAME_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpane_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFramePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickFrame : public QQuickPane
-{
- Q_OBJECT
-
-public:
- explicit QQuickFrame(QQuickItem *parent = nullptr);
-
-protected:
- QQuickFrame(QQuickFramePrivate &dd, QQuickItem *parent);
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickFrame)
- Q_DECLARE_PRIVATE(QQuickFrame)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickFrame)
-
-#endif // QQUICKFRAME_P_H
diff --git a/src/quicktemplates2/qquickframe_p_p.h b/src/quicktemplates2/qquickframe_p_p.h
deleted file mode 100644
index ad392dc3..00000000
--- a/src/quicktemplates2/qquickframe_p_p.h
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKFRAME_P_P_H
-#define QQUICKFRAME_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpane_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFrame;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickFramePrivate : public QQuickPanePrivate
-{
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKFRAME_P_P_H
diff --git a/src/quicktemplates2/qquickgroupbox.cpp b/src/quicktemplates2/qquickgroupbox.cpp
deleted file mode 100644
index 7f3c7a2d..00000000
--- a/src/quicktemplates2/qquickgroupbox.cpp
+++ /dev/null
@@ -1,290 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickgroupbox_p.h"
-#include "qquickframe_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype GroupBox
- \inherits Frame
- \instantiates QQuickGroupBox
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-containers
- \brief Visual frame and title for a logical group of controls.
-
- GroupBox is used to layout a logical group of controls together, within
- a \l {title}{titled} visual frame. GroupBox does not provide a layout of its own, but
- requires you to position its contents, for instance by creating a \l RowLayout
- or a \l ColumnLayout.
-
- Items declared as children of a GroupBox are automatically parented to the
- GroupBox's \l {Control::}{contentItem}. Items created dynamically need to be
- explicitly parented to the contentItem.
-
- If only a single item is used within a GroupBox, it will resize to fit the
- implicit size of its contained item. This makes it particularly suitable
- for use together with layouts.
-
- \image qtquickcontrols2-groupbox.png
-
- \snippet qtquickcontrols2-groupbox.qml 1
-
- \section2 Checkable GroupBox
-
- Even though GroupBox has no built-in check box, it is straightforward
- to create a checkable GroupBox by pairing it with a CheckBox.
-
- \image qtquickcontrols2-groupbox-checkable.png
-
- It is a common pattern to enable or disable the groupbox's children when
- its checkbox is toggled on or off, but it is up to the application to decide
- on the behavior of the checkbox.
-
- \snippet qtquickcontrols2-groupbox-checkable.qml 1
-
- \sa CheckBox, {Customizing GroupBox}, {Container Controls}
-*/
-
-class QQuickGroupBoxPrivate : public QQuickFramePrivate
-{
- Q_DECLARE_PUBLIC(QQuickGroupBox)
-
-public:
- void cancelLabel();
- void executeLabel(bool complete = false);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- QString title;
- QQuickDeferredPointer<QQuickItem> label;
-};
-
-static inline QString labelName() { return QStringLiteral("label"); }
-
-void QQuickGroupBoxPrivate::cancelLabel()
-{
- Q_Q(QQuickGroupBox);
- quickCancelDeferred(q, labelName());
-}
-
-void QQuickGroupBoxPrivate::executeLabel(bool complete)
-{
- Q_Q(QQuickGroupBox);
- if (label.wasExecuted())
- return;
-
- if (!label || complete)
- quickBeginDeferred(q, labelName(), label);
- if (complete)
- quickCompleteDeferred(q, labelName(), label);
-}
-
-void QQuickGroupBoxPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickGroupBox);
- QQuickFramePrivate::itemImplicitWidthChanged(item);
- if (item == label)
- emit q->implicitLabelWidthChanged();
-}
-
-void QQuickGroupBoxPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickGroupBox);
- QQuickFramePrivate::itemImplicitHeightChanged(item);
- if (item == label)
- emit q->implicitLabelHeightChanged();
-}
-
-QQuickGroupBox::QQuickGroupBox(QQuickItem *parent)
- : QQuickFrame(*(new QQuickGroupBoxPrivate), parent)
-{
-}
-
-QQuickGroupBox::~QQuickGroupBox()
-{
- Q_D(QQuickGroupBox);
- d->removeImplicitSizeListener(d->label);
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::GroupBox::title
-
- This property holds the title.
-
- The title is typically displayed above the groupbox to
- summarize its contents.
-*/
-QString QQuickGroupBox::title() const
-{
- Q_D(const QQuickGroupBox);
- return d->title;
-}
-
-void QQuickGroupBox::setTitle(const QString &title)
-{
- Q_D(QQuickGroupBox);
- if (d->title == title)
- return;
-
- d->title = title;
- setAccessibleName(title);
- emit titleChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::GroupBox::label
-
- This property holds the label item that visualizes \l title.
-
- \sa {Customizing GroupBox}
-*/
-QQuickItem *QQuickGroupBox::label() const
-{
- QQuickGroupBoxPrivate *d = const_cast<QQuickGroupBoxPrivate *>(d_func());
- if (!d->label)
- d->executeLabel();
- return d->label;
-}
-
-void QQuickGroupBox::setLabel(QQuickItem *label)
-{
- Q_D(QQuickGroupBox);
- if (d->label == label)
- return;
-
- if (!d->label.isExecuting())
- d->cancelLabel();
-
- const qreal oldImplicitLabelWidth = implicitLabelWidth();
- const qreal oldImplicitLabelHeight = implicitLabelHeight();
-
- d->removeImplicitSizeListener(d->label);
- delete d->label;
- d->label = label;
-
- if (label) {
- if (!label->parentItem())
- label->setParentItem(this);
- d->addImplicitSizeListener(label);
- }
-
- if (!qFuzzyCompare(oldImplicitLabelWidth, implicitLabelWidth()))
- emit implicitLabelWidthChanged();
- if (!qFuzzyCompare(oldImplicitLabelHeight, implicitLabelHeight()))
- emit implicitLabelHeightChanged();
- if (!d->label.isExecuting())
- emit labelChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::GroupBox::implicitLabelWidth
- \readonly
-
- This property holds the implicit label width.
-
- The value is equal to \c {label ? label.implicitWidth : 0}.
-
- \sa implicitLabelHeight
-*/
-qreal QQuickGroupBox::implicitLabelWidth() const
-{
- Q_D(const QQuickGroupBox);
- if (!d->label)
- return 0;
- return d->label->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::GroupBox::implicitLabelHeight
- \readonly
-
- This property holds the implicit label height.
-
- The value is equal to \c {label ? label.implicitHeight : 0}.
-
- \sa implicitLabelWidth
-*/
-qreal QQuickGroupBox::implicitLabelHeight() const
-{
- Q_D(const QQuickGroupBox);
- if (!d->label)
- return 0;
- return d->label->implicitHeight();
-}
-
-void QQuickGroupBox::componentComplete()
-{
- Q_D(QQuickGroupBox);
- d->executeLabel(true);
- QQuickFrame::componentComplete();
-}
-
-QFont QQuickGroupBox::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::GroupBox);
-}
-
-QPalette QQuickGroupBox::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::GroupBox);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickGroupBox::accessibleRole() const
-{
- return QAccessible::Grouping;
-}
-
-void QQuickGroupBox::accessibilityActiveChanged(bool active)
-{
- Q_D(QQuickGroupBox);
- QQuickFrame::accessibilityActiveChanged(active);
-
- if (active)
- setAccessibleName(d->title);
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickgroupbox_p.h b/src/quicktemplates2/qquickgroupbox_p.h
deleted file mode 100644
index de36d7d7..00000000
--- a/src/quicktemplates2/qquickgroupbox_p.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKGROUPBOX_P_H
-#define QQUICKGROUPBOX_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickframe_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickGroupBoxPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickGroupBox : public QQuickFrame
-{
- Q_OBJECT
- Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
- Q_PROPERTY(QQuickItem *label READ label WRITE setLabel NOTIFY labelChanged FINAL)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal implicitLabelWidth READ implicitLabelWidth NOTIFY implicitLabelWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitLabelHeight READ implicitLabelHeight NOTIFY implicitLabelHeightChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background,contentItem,label")
-
-public:
- explicit QQuickGroupBox(QQuickItem *parent = nullptr);
- ~QQuickGroupBox();
-
- QString title() const;
- void setTitle(const QString &title);
-
- QQuickItem *label() const;
- void setLabel(QQuickItem *label);
-
- // 2.5 (Qt 5.12)
- qreal implicitLabelWidth() const;
- qreal implicitLabelHeight() const;
-
-Q_SIGNALS:
- void titleChanged();
- void labelChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void implicitLabelWidthChanged();
- Q_REVISION(5) void implicitLabelHeightChanged();
-
-protected:
- void componentComplete() override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
- void accessibilityActiveChanged(bool active) override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickGroupBox)
- Q_DECLARE_PRIVATE(QQuickGroupBox)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickGroupBox)
-
-#endif // QQUICKGROUPBOX_P_H
diff --git a/src/quicktemplates2/qquickicon.cpp b/src/quicktemplates2/qquickicon.cpp
deleted file mode 100644
index bf0a4658..00000000
--- a/src/quicktemplates2/qquickicon.cpp
+++ /dev/null
@@ -1,263 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickicon_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QQuickIconPrivate : public QSharedData
-{
-public:
- QString name;
- QUrl source;
- int width = 0;
- int height = 0;
- QColor color = Qt::transparent;
- bool cache = true;
-
- enum ResolveProperties {
- NameResolved = 0x0001,
- SourceResolved = 0x0002,
- WidthResolved = 0x0004,
- HeightResolved = 0x0008,
- ColorResolved = 0x0010,
- CacheResolved = 0x0020,
- AllPropertiesResolved = 0x1ffff
- };
-
- // This is based on QFont's resolve_mask.
- int resolveMask = 0;
-};
-
-QQuickIcon::QQuickIcon()
- : d(new QQuickIconPrivate)
-{
-}
-
-QQuickIcon::QQuickIcon(const QQuickIcon &other)
- : d(other.d)
-{
-}
-
-QQuickIcon::~QQuickIcon()
-{
-}
-
-QQuickIcon &QQuickIcon::operator=(const QQuickIcon &other)
-{
- d = other.d;
- return *this;
-}
-
-bool QQuickIcon::operator==(const QQuickIcon &other) const
-{
- return d == other.d || (d->name == other.d->name
- && d->source == other.d->source
- && d->width == other.d->width
- && d->height == other.d->height
- && d->color == other.d->color
- && d->cache == other.d->cache);
-}
-
-bool QQuickIcon::operator!=(const QQuickIcon &other) const
-{
- return !(*this == other);
-}
-
-bool QQuickIcon::isEmpty() const
-{
- return d->name.isEmpty() && d->source.isEmpty();
-}
-
-QString QQuickIcon::name() const
-{
- return d->name;
-}
-
-void QQuickIcon::setName(const QString &name)
-{
- if ((d->resolveMask & QQuickIconPrivate::NameResolved) && d->name == name)
- return;
-
- d.detach();
- d->name = name;
- d->resolveMask |= QQuickIconPrivate::NameResolved;
-}
-
-void QQuickIcon::resetName()
-{
- d.detach();
- d->name = QString();
- d->resolveMask &= ~QQuickIconPrivate::NameResolved;
-}
-
-QUrl QQuickIcon::source() const
-{
- return d->source;
-}
-
-void QQuickIcon::setSource(const QUrl &source)
-{
- if ((d->resolveMask & QQuickIconPrivate::SourceResolved) && d->source == source)
- return;
-
- d.detach();
- d->source = source;
- d->resolveMask |= QQuickIconPrivate::SourceResolved;
-}
-
-void QQuickIcon::resetSource()
-{
- d.detach();
- d->source = QString();
- d->resolveMask &= ~QQuickIconPrivate::SourceResolved;
-}
-
-int QQuickIcon::width() const
-{
- return d->width;
-}
-
-void QQuickIcon::setWidth(int width)
-{
- if ((d->resolveMask & QQuickIconPrivate::WidthResolved) && d->width == width)
- return;
-
- d.detach();
- d->width = width;
- d->resolveMask |= QQuickIconPrivate::WidthResolved;
-}
-
-void QQuickIcon::resetWidth()
-{
- d.detach();
- d->width = 0;
- d->resolveMask &= ~QQuickIconPrivate::WidthResolved;
-}
-
-int QQuickIcon::height() const
-{
- return d->height;
-}
-
-void QQuickIcon::setHeight(int height)
-{
- if ((d->resolveMask & QQuickIconPrivate::HeightResolved) && d->height == height)
- return;
-
- d.detach();
- d->height = height;
- d->resolveMask |= QQuickIconPrivate::HeightResolved;
-}
-
-void QQuickIcon::resetHeight()
-{
- d.detach();
- d->height = 0;
- d->resolveMask &= ~QQuickIconPrivate::HeightResolved;
-}
-
-QColor QQuickIcon::color() const
-{
- return d->color;
-}
-
-void QQuickIcon::setColor(const QColor &color)
-{
- if ((d->resolveMask & QQuickIconPrivate::ColorResolved) && d->color == color)
- return;
-
- d.detach();
- d->color = color;
- d->resolveMask |= QQuickIconPrivate::ColorResolved;
-}
-
-void QQuickIcon::resetColor()
-{
- d.detach();
- d->color = Qt::transparent;
- d->resolveMask &= ~QQuickIconPrivate::ColorResolved;
-}
-
-bool QQuickIcon::cache() const
-{
- return d->cache;
-}
-
-void QQuickIcon::setCache(bool cache)
-{
- if ((d->resolveMask & QQuickIconPrivate::CacheResolved) && d->cache == cache)
- return;
-
- d.detach();
- d->cache = cache;
- d->resolveMask |= QQuickIconPrivate::CacheResolved;
-}
-
-void QQuickIcon::resetCache()
-{
- d.detach();
- d->cache = true;
- d->resolveMask &= ~QQuickIconPrivate::CacheResolved;
-}
-
-QQuickIcon QQuickIcon::resolve(const QQuickIcon &other) const
-{
- QQuickIcon resolved = *this;
- resolved.d.detach();
-
- if (!(d->resolveMask & QQuickIconPrivate::NameResolved))
- resolved.d->name = other.d->name;
-
- if (!(d->resolveMask & QQuickIconPrivate::SourceResolved))
- resolved.d->source = other.d->source;
-
- if (!(d->resolveMask & QQuickIconPrivate::WidthResolved))
- resolved.d->width = other.d->width;
-
- if (!(d->resolveMask & QQuickIconPrivate::HeightResolved))
- resolved.d->height = other.d->height;
-
- if (!(d->resolveMask & QQuickIconPrivate::ColorResolved))
- resolved.d->color = other.d->color;
-
- if (!(d->resolveMask & QQuickIconPrivate::CacheResolved))
- resolved.d->cache = other.d->cache;
-
- return resolved;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickicon_p.h b/src/quicktemplates2/qquickicon_p.h
deleted file mode 100644
index 1835585d..00000000
--- a/src/quicktemplates2/qquickicon_p.h
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKICON_P_H
-#define QQUICKICON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qurl.h>
-#include <QtCore/qstring.h>
-#include <QtCore/qobjectdefs.h>
-#include <QtCore/qshareddata.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtGui/qcolor.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickIconPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickIcon
-{
- Q_GADGET
- Q_PROPERTY(QString name READ name WRITE setName RESET resetName FINAL)
- Q_PROPERTY(QUrl source READ source WRITE setSource RESET resetSource FINAL)
- Q_PROPERTY(int width READ width WRITE setWidth RESET resetWidth FINAL)
- Q_PROPERTY(int height READ height WRITE setHeight RESET resetHeight FINAL)
- Q_PROPERTY(QColor color READ color WRITE setColor RESET resetColor FINAL)
- Q_PROPERTY(bool cache READ cache WRITE setCache RESET resetCache FINAL)
-
-public:
- QQuickIcon();
- QQuickIcon(const QQuickIcon &other);
- ~QQuickIcon();
-
- QQuickIcon& operator=(const QQuickIcon &other);
- bool operator==(const QQuickIcon &other) const;
- bool operator!=(const QQuickIcon &other) const;
-
- bool isEmpty() const;
-
- QString name() const;
- void setName(const QString &name);
- void resetName();
-
- QUrl source() const;
- void setSource(const QUrl &source);
- void resetSource();
-
- int width() const;
- void setWidth(int width);
- void resetWidth();
-
- int height() const;
- void setHeight(int height);
- void resetHeight();
-
- QColor color() const;
- void setColor(const QColor &color);
- void resetColor();
-
- bool cache() const;
- void setCache(bool cache);
- void resetCache();
-
- QQuickIcon resolve(const QQuickIcon &other) const;
-
-private:
- QExplicitlySharedDataPointer<QQuickIconPrivate> d;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKICON_P_H
diff --git a/src/quicktemplates2/qquickitemdelegate.cpp b/src/quicktemplates2/qquickitemdelegate.cpp
deleted file mode 100644
index 8156ab65..00000000
--- a/src/quicktemplates2/qquickitemdelegate.cpp
+++ /dev/null
@@ -1,135 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickitemdelegate_p.h"
-#include "qquickitemdelegate_p_p.h"
-#include "qquickcontrol_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ItemDelegate
- \inherits AbstractButton
- \instantiates QQuickItemDelegate
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \brief Basic item delegate that can be used in various views and controls.
-
- \image qtquickcontrols2-itemdelegate.gif
-
- ItemDelegate presents a standard view item. It can be used as a delegate
- in various views and controls, such as \l ListView and \l ComboBox.
-
- ItemDelegate inherits its API from AbstractButton. For instance, you can set
- \l {AbstractButton::text}{text}, display an \l {Icons in Qt Quick Controls}{icon},
- and react to \l {AbstractButton::clicked}{clicks} using the AbstractButton API.
-
- \snippet qtquickcontrols2-itemdelegate.qml 1
-
- \sa {Customizing ItemDelegate}, {Delegate Controls}
-*/
-
-QQuickItemDelegate::QQuickItemDelegate(QQuickItem *parent)
- : QQuickAbstractButton(*(new QQuickItemDelegatePrivate), parent)
-{
- setFocusPolicy(Qt::NoFocus);
-}
-
-QQuickItemDelegate::QQuickItemDelegate(QQuickItemDelegatePrivate &dd, QQuickItem *parent)
- : QQuickAbstractButton(dd, parent)
-{
- setFocusPolicy(Qt::NoFocus);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::ItemDelegate::highlighted
-
- This property holds whether the delegate is highlighted.
-
- A delegate can be highlighted in order to draw the user's attention towards
- it. It has no effect on keyboard interaction. For example, you can
- highlight the current item in a ListView using the following code:
-
- \code
- ListView {
- id: listView
- model: 10
- delegate: ItemDelegate {
- text: modelData
- highlighted: ListView.isCurrentItem
- onClicked: listView.currentIndex = index
- }
- }
- \endcode
-
- The default value is \c false.
-*/
-bool QQuickItemDelegate::isHighlighted() const
-{
- Q_D(const QQuickItemDelegate);
- return d->highlighted;
-}
-
-void QQuickItemDelegate::setHighlighted(bool highlighted)
-{
- Q_D(QQuickItemDelegate);
- if (highlighted == d->highlighted)
- return;
-
- d->highlighted = highlighted;
- emit highlightedChanged();
-}
-
-QFont QQuickItemDelegate::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ItemView);
-}
-
-QPalette QQuickItemDelegate::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ItemView);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickItemDelegate::accessibleRole() const
-{
- return QAccessible::ListItem;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickitemdelegate_p.h b/src/quicktemplates2/qquickitemdelegate_p.h
deleted file mode 100644
index 5d52f764..00000000
--- a/src/quicktemplates2/qquickitemdelegate_p.h
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKITEMDELEGATE_P_H
-#define QQUICKITEMDELEGATE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickItemDelegatePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickItemDelegate : public QQuickAbstractButton
-{
- Q_OBJECT
- Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL)
-
-public:
- explicit QQuickItemDelegate(QQuickItem *parent = nullptr);
-
- bool isHighlighted() const;
- void setHighlighted(bool highlighted);
-
-Q_SIGNALS:
- void highlightedChanged();
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-protected:
- QQuickItemDelegate(QQuickItemDelegatePrivate &dd, QQuickItem *parent);
-
-private:
- Q_DISABLE_COPY(QQuickItemDelegate)
- Q_DECLARE_PRIVATE(QQuickItemDelegate)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickItemDelegate)
-
-#endif // QQUICKITEMDELEGATE_P_H
diff --git a/src/quicktemplates2/qquickitemdelegate_p_p.h b/src/quicktemplates2/qquickitemdelegate_p_p.h
deleted file mode 100644
index 4995f050..00000000
--- a/src/quicktemplates2/qquickitemdelegate_p_p.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKITEMDELEGATE_P_P_H
-#define QQUICKITEMDELEGATE_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickItemDelegatePrivate : public QQuickAbstractButtonPrivate
-{
- Q_DECLARE_PUBLIC(QQuickItemDelegate)
-
-public:
- bool highlighted = false;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKITEMDELEGATE_P_P_H
diff --git a/src/quicktemplates2/qquicklabel.cpp b/src/quicktemplates2/qquicklabel.cpp
deleted file mode 100644
index 124483fb..00000000
--- a/src/quicktemplates2/qquicklabel.cpp
+++ /dev/null
@@ -1,650 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicklabel_p.h"
-#include "qquicklabel_p_p.h"
-#include "qquickcontrol_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquicktext_p.h>
-
-#if QT_CONFIG(accessibility)
-#include <QtQuick/private/qquickaccessibleattached_p.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Label
- \inherits Text
- \instantiates QQuickLabel
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup text
- \brief Styled text label with inherited font.
-
- Label extends \l Text with styling and \l {Control::font}{font}
- inheritance. The default colors and font are style specific. Label
- can also have a visual \l background item.
-
- \image qtquickcontrols2-label.png
-
- \snippet qtquickcontrols2-label.qml 1
-
- You can use the properties of \l Text to change the appearance of the text as desired:
-
- \qml
- Label {
- text: "Hello world"
- font.pixelSize: 22
- font.italic: true
- }
- \endqml
-
- \sa {Customizing Label}
-*/
-
-QQuickLabelPrivate::QQuickLabelPrivate()
-{
-#if QT_CONFIG(accessibility)
- QAccessible::installActivationObserver(this);
-#endif
-}
-
-QQuickLabelPrivate::~QQuickLabelPrivate()
-{
-#if QT_CONFIG(accessibility)
- QAccessible::removeActivationObserver(this);
-#endif
-}
-
-void QQuickLabelPrivate::setTopInset(qreal value, bool reset)
-{
- Q_Q(QQuickLabel);
- const QMarginsF oldInset = getInset();
- extra.value().topInset = value;
- extra.value().hasTopInset = !reset;
- if (!qFuzzyCompare(oldInset.top(), value)) {
- emit q->topInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickLabelPrivate::setLeftInset(qreal value, bool reset)
-{
- Q_Q(QQuickLabel);
- const QMarginsF oldInset = getInset();
- extra.value().leftInset = value;
- extra.value().hasLeftInset = !reset;
- if (!qFuzzyCompare(oldInset.left(), value)) {
- emit q->leftInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickLabelPrivate::setRightInset(qreal value, bool reset)
-{
- Q_Q(QQuickLabel);
- const QMarginsF oldInset = getInset();
- extra.value().rightInset = value;
- extra.value().hasRightInset = !reset;
- if (!qFuzzyCompare(oldInset.right(), value)) {
- emit q->rightInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickLabelPrivate::setBottomInset(qreal value, bool reset)
-{
- Q_Q(QQuickLabel);
- const QMarginsF oldInset = getInset();
- extra.value().bottomInset = value;
- extra.value().hasBottomInset = !reset;
- if (!qFuzzyCompare(oldInset.bottom(), value)) {
- emit q->bottomInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickLabelPrivate::resizeBackground()
-{
- if (!background)
- return;
-
- resizingBackground = true;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (((!p->widthValid || !extra.isAllocated() || !extra->hasBackgroundWidth) && qFuzzyIsNull(background->x()))
- || (extra.isAllocated() && (extra->hasLeftInset || extra->hasRightInset))) {
- background->setX(getLeftInset());
- background->setWidth(width - getLeftInset() - getRightInset());
- }
- if (((!p->heightValid || !extra.isAllocated() || !extra->hasBackgroundHeight) && qFuzzyIsNull(background->y()))
- || (extra.isAllocated() && (extra->hasTopInset || extra->hasBottomInset))) {
- background->setY(getTopInset());
- background->setHeight(height - getTopInset() - getBottomInset());
- }
-
- resizingBackground = false;
-}
-
-/*!
- \internal
-
- Determine which font is implicitly imposed on this control by its ancestors
- and QGuiApplication::font, resolve this against its own font (attributes from
- the implicit font are copied over). Then propagate this font to this
- control's children.
-*/
-void QQuickLabelPrivate::resolveFont()
-{
- Q_Q(QQuickLabel);
- inheritFont(QQuickControlPrivate::parentFont(q));
-}
-
-void QQuickLabelPrivate::inheritFont(const QFont &font)
-{
- QFont parentFont = extra.isAllocated() ? extra->requestedFont.resolve(font) : font;
- parentFont.resolve(extra.isAllocated() ? extra->requestedFont.resolve() | font.resolve() : font.resolve());
-
- const QFont defaultFont = QQuickTheme::font(QQuickTheme::Label);
- const QFont resolvedFont = parentFont.resolve(defaultFont);
-
- setFont_helper(resolvedFont);
-}
-
-/*!
- \internal
-
- Assign \a font to this control, and propagate it to all children.
-*/
-void QQuickLabelPrivate::updateFont(const QFont &font)
-{
- Q_Q(QQuickLabel);
- QFont oldFont = sourceFont;
- q->QQuickText::setFont(font);
-
- QQuickControlPrivate::updateFontRecur(q, font);
-
- if (oldFont != font)
- emit q->fontChanged();
-}
-
-/*!
- \internal
-
- Determine which palette is implicitly imposed on this control by its ancestors
- and QGuiApplication::palette, resolve this against its own palette (attributes from
- the implicit palette are copied over). Then propagate this palette to this
- control's children.
-*/
-void QQuickLabelPrivate::resolvePalette()
-{
- Q_Q(QQuickLabel);
- inheritPalette(QQuickControlPrivate::parentPalette(q));
-}
-
-void QQuickLabelPrivate::inheritPalette(const QPalette &palette)
-{
- QPalette parentPalette = extra.isAllocated() ? extra->requestedPalette.resolve(palette) : palette;
- parentPalette.resolve(extra.isAllocated() ? extra->requestedPalette.resolve() | palette.resolve() : palette.resolve());
-
- const QPalette defaultPalette = QQuickTheme::palette(QQuickTheme::Label);
- const QPalette resolvedPalette = parentPalette.resolve(defaultPalette);
-
- setPalette_helper(resolvedPalette);
-}
-
-void QQuickLabelPrivate::updatePalette(const QPalette &palette)
-{
- Q_Q(QQuickLabel);
- QPalette oldPalette = resolvedPalette;
- resolvedPalette = palette;
-
- QQuickControlPrivate::updatePaletteRecur(q, palette);
-
- if (oldPalette != palette)
- emit q->paletteChanged();
-}
-
-void QQuickLabelPrivate::textChanged(const QString &text)
-{
-#if QT_CONFIG(accessibility)
- Q_Q(QQuickLabel);
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(q))
- accessibleAttached->setName(text);
-#else
- Q_UNUSED(text)
-#endif
-}
-
-#if QT_CONFIG(accessibility)
-void QQuickLabelPrivate::accessibilityActiveChanged(bool active)
-{
- if (!active)
- return;
-
- Q_Q(QQuickLabel);
- QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(q, true));
- Q_ASSERT(accessibleAttached);
- accessibleAttached->setRole(accessibleRole());
- accessibleAttached->setName(text);
-}
-
-QAccessible::Role QQuickLabelPrivate::accessibleRole() const
-{
- return QAccessible::StaticText;
-}
-#endif
-
-static inline QString backgroundName() { return QStringLiteral("background"); }
-
-void QQuickLabelPrivate::cancelBackground()
-{
- Q_Q(QQuickLabel);
- quickCancelDeferred(q, backgroundName());
-}
-
-void QQuickLabelPrivate::executeBackground(bool complete)
-{
- Q_Q(QQuickLabel);
- if (background.wasExecuted())
- return;
-
- if (!background || complete)
- quickBeginDeferred(q, backgroundName(), background);
- if (complete)
- quickCompleteDeferred(q, backgroundName(), background);
-}
-
-void QQuickLabelPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff)
-{
- Q_UNUSED(diff);
- if (resizingBackground || item != background || !change.sizeChange())
- return;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- extra.value().hasBackgroundWidth = p->widthValid;
- extra.value().hasBackgroundHeight = p->heightValid;
- resizeBackground();
-}
-
-void QQuickLabelPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickLabel);
- if (item == background)
- emit q->implicitBackgroundWidthChanged();
-}
-
-void QQuickLabelPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickLabel);
- if (item == background)
- emit q->implicitBackgroundHeightChanged();
-}
-
-void QQuickLabelPrivate::itemDestroyed(QQuickItem *item)
-{
- Q_Q(QQuickLabel);
- if (item == background) {
- background = nullptr;
- emit q->implicitBackgroundWidthChanged();
- emit q->implicitBackgroundHeightChanged();
- }
-}
-
-QQuickLabel::QQuickLabel(QQuickItem *parent)
- : QQuickText(*(new QQuickLabelPrivate), parent)
-{
- Q_D(QQuickLabel);
- QObjectPrivate::connect(this, &QQuickText::textChanged, d, &QQuickLabelPrivate::textChanged);
-}
-
-QQuickLabel::~QQuickLabel()
-{
- Q_D(QQuickLabel);
- QQuickControlPrivate::removeImplicitSizeListener(d->background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
-}
-
-QFont QQuickLabel::font() const
-{
- return QQuickText::font();
-}
-
-void QQuickLabel::setFont(const QFont &font)
-{
- Q_D(QQuickLabel);
- if (d->extra.value().requestedFont.resolve() == font.resolve() && d->extra.value().requestedFont == font)
- return;
-
- d->extra.value().requestedFont = font;
- d->resolveFont();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Label::background
-
- This property holds the background item.
-
- \note If the background item has no explicit size specified, it automatically
- follows the control's size. In most cases, there is no need to specify
- width or height for a background item.
-
- \sa {Customizing Label}
-*/
-QQuickItem *QQuickLabel::background() const
-{
- QQuickLabelPrivate *d = const_cast<QQuickLabelPrivate *>(d_func());
- if (!d->background)
- d->executeBackground();
- return d->background;
-}
-
-void QQuickLabel::setBackground(QQuickItem *background)
-{
- Q_D(QQuickLabel);
- if (d->background == background)
- return;
-
- if (!d->background.isExecuting())
- d->cancelBackground();
-
- const qreal oldImplicitBackgroundWidth = implicitBackgroundWidth();
- const qreal oldImplicitBackgroundHeight = implicitBackgroundHeight();
-
- if (d->extra.isAllocated()) {
- d->extra.value().hasBackgroundWidth = false;
- d->extra.value().hasBackgroundHeight = false;
- }
-
- QQuickControlPrivate::removeImplicitSizeListener(d->background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- delete d->background;
- d->background = background;
-
- if (background) {
- background->setParentItem(this);
- if (qFuzzyIsNull(background->z()))
- background->setZ(-1);
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (p->widthValid || p->heightValid) {
- d->extra.value().hasBackgroundWidth = p->widthValid;
- d->extra.value().hasBackgroundHeight = p->heightValid;
- }
- if (isComponentComplete())
- d->resizeBackground();
- QQuickControlPrivate::addImplicitSizeListener(background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- }
-
- if (!qFuzzyCompare(oldImplicitBackgroundWidth, implicitBackgroundWidth()))
- emit implicitBackgroundWidthChanged();
- if (!qFuzzyCompare(oldImplicitBackgroundHeight, implicitBackgroundHeight()))
- emit implicitBackgroundHeightChanged();
- if (!d->background.isExecuting())
- emit backgroundChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty palette QtQuick.Controls::Label::palette
-
- This property holds the palette currently set for the label.
-
- \sa Control::palette
-*/
-QPalette QQuickLabel::palette() const
-{
- Q_D(const QQuickLabel);
- QPalette palette = d->resolvedPalette;
- if (!isEnabled())
- palette.setCurrentColorGroup(QPalette::Disabled);
- return palette;
-}
-
-void QQuickLabel::setPalette(const QPalette &palette)
-{
- Q_D(QQuickLabel);
- if (d->extra.value().requestedPalette.resolve() == palette.resolve() && d->extra.value().requestedPalette == palette)
- return;
-
- d->extra.value().requestedPalette = palette;
- d->resolvePalette();
-}
-
-void QQuickLabel::resetPalette()
-{
- setPalette(QPalette());
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Label::implicitBackgroundWidth
- \readonly
-
- This property holds the implicit background width.
-
- The value is equal to \c {background ? background.implicitWidth : 0}.
-
- \sa implicitBackgroundHeight
-*/
-qreal QQuickLabel::implicitBackgroundWidth() const
-{
- Q_D(const QQuickLabel);
- if (!d->background)
- return 0;
- return d->background->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Label::implicitBackgroundHeight
- \readonly
-
- This property holds the implicit background height.
-
- The value is equal to \c {background ? background.implicitHeight : 0}.
-
- \sa implicitBackgroundWidth
-*/
-qreal QQuickLabel::implicitBackgroundHeight() const
-{
- Q_D(const QQuickLabel);
- if (!d->background)
- return 0;
- return d->background->implicitHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Label::topInset
-
- This property holds the top inset for the background.
-
- \sa {Control Layout}, bottomInset
-*/
-qreal QQuickLabel::topInset() const
-{
- Q_D(const QQuickLabel);
- return d->getTopInset();
-}
-
-void QQuickLabel::setTopInset(qreal inset)
-{
- Q_D(QQuickLabel);
- d->setTopInset(inset);
-}
-
-void QQuickLabel::resetTopInset()
-{
- Q_D(QQuickLabel);
- d->setTopInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Label::leftInset
-
- This property holds the left inset for the background.
-
- \sa {Control Layout}, rightInset
-*/
-qreal QQuickLabel::leftInset() const
-{
- Q_D(const QQuickLabel);
- return d->getLeftInset();
-}
-
-void QQuickLabel::setLeftInset(qreal inset)
-{
- Q_D(QQuickLabel);
- d->setLeftInset(inset);
-}
-
-void QQuickLabel::resetLeftInset()
-{
- Q_D(QQuickLabel);
- d->setLeftInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Label::rightInset
-
- This property holds the right inset for the background.
-
- \sa {Control Layout}, leftInset
-*/
-qreal QQuickLabel::rightInset() const
-{
- Q_D(const QQuickLabel);
- return d->getRightInset();
-}
-
-void QQuickLabel::setRightInset(qreal inset)
-{
- Q_D(QQuickLabel);
- d->setRightInset(inset);
-}
-
-void QQuickLabel::resetRightInset()
-{
- Q_D(QQuickLabel);
- d->setRightInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Label::bottomInset
-
- This property holds the bottom inset for the background.
-
- \sa {Control Layout}, topInset
-*/
-qreal QQuickLabel::bottomInset() const
-{
- Q_D(const QQuickLabel);
- return d->getBottomInset();
-}
-
-void QQuickLabel::setBottomInset(qreal inset)
-{
- Q_D(QQuickLabel);
- d->setBottomInset(inset);
-}
-
-void QQuickLabel::resetBottomInset()
-{
- Q_D(QQuickLabel);
- d->setBottomInset(0, true);
-}
-
-void QQuickLabel::classBegin()
-{
- Q_D(QQuickLabel);
- QQuickText::classBegin();
- d->resolveFont();
- d->resolvePalette();
-}
-
-void QQuickLabel::componentComplete()
-{
- Q_D(QQuickLabel);
- d->executeBackground(true);
- QQuickText::componentComplete();
- d->resizeBackground();
-#if QT_CONFIG(accessibility)
- if (QAccessible::isActive())
- d->accessibilityActiveChanged(true);
-#endif
-}
-
-void QQuickLabel::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &value)
-{
- Q_D(QQuickLabel);
- QQuickText::itemChange(change, value);
- switch (change) {
- case ItemEnabledHasChanged:
- emit paletteChanged();
- break;
- case ItemSceneChange:
- case ItemParentHasChanged:
- if ((change == ItemParentHasChanged && value.item) || (change == ItemSceneChange && value.window)) {
- d->resolveFont();
- d->resolvePalette();
- }
- break;
- default:
- break;
- }
-}
-
-void QQuickLabel::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickLabel);
- QQuickText::geometryChanged(newGeometry, oldGeometry);
- d->resizeBackground();
-}
-
-void QQuickLabel::insetChange(const QMarginsF &newInset, const QMarginsF &oldInset)
-{
- Q_D(QQuickLabel);
- Q_UNUSED(newInset);
- Q_UNUSED(oldInset);
- d->resizeBackground();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicklabel_p.h b/src/quicktemplates2/qquicklabel_p.h
deleted file mode 100644
index 89c9c77b..00000000
--- a/src/quicktemplates2/qquicklabel_p.h
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKLABEL_P_H
-#define QQUICKLABEL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpalette.h>
-#include <QtQuick/private/qquicktext_p.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickLabelPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickLabel : public QQuickText
-{
- Q_OBJECT
- Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged) // override
- Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged FINAL REVISION 3)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal implicitBackgroundWidth READ implicitBackgroundWidth NOTIFY implicitBackgroundWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundHeight READ implicitBackgroundHeight NOTIFY implicitBackgroundHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal topInset READ topInset WRITE setTopInset RESET resetTopInset NOTIFY topInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal leftInset READ leftInset WRITE setLeftInset RESET resetLeftInset NOTIFY leftInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal rightInset READ rightInset WRITE setRightInset RESET resetRightInset NOTIFY rightInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal bottomInset READ bottomInset WRITE setBottomInset RESET resetBottomInset NOTIFY bottomInsetChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background")
-
-public:
- explicit QQuickLabel(QQuickItem *parent = nullptr);
- ~QQuickLabel();
-
- QFont font() const;
- void setFont(const QFont &font);
-
- QQuickItem *background() const;
- void setBackground(QQuickItem *background);
-
- // 2.3 (Qt 5.10)
- QPalette palette() const;
- void setPalette(const QPalette &palette);
- void resetPalette();
-
- // 2.5 (Qt 5.12)
- qreal implicitBackgroundWidth() const;
- qreal implicitBackgroundHeight() const;
-
- qreal topInset() const;
- void setTopInset(qreal inset);
- void resetTopInset();
-
- qreal leftInset() const;
- void setLeftInset(qreal inset);
- void resetLeftInset();
-
- qreal rightInset() const;
- void setRightInset(qreal inset);
- void resetRightInset();
-
- qreal bottomInset() const;
- void setBottomInset(qreal inset);
- void resetBottomInset();
-
-Q_SIGNALS:
- void fontChanged();
- void backgroundChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void paletteChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void implicitBackgroundWidthChanged();
- Q_REVISION(5) void implicitBackgroundHeightChanged();
- Q_REVISION(5) void topInsetChanged();
- Q_REVISION(5) void leftInsetChanged();
- Q_REVISION(5) void rightInsetChanged();
- Q_REVISION(5) void bottomInsetChanged();
-
-protected:
- void classBegin() override;
- void componentComplete() override;
-
- void itemChange(ItemChange change, const ItemChangeData &value) override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- virtual void insetChange(const QMarginsF &newInset, const QMarginsF &oldInset);
-
-private:
- Q_DISABLE_COPY(QQuickLabel)
- Q_DECLARE_PRIVATE(QQuickLabel)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickLabel)
-
-#endif // QQUICKLABEL_P_H
diff --git a/src/quicktemplates2/qquicklabel_p_p.h b/src/quicktemplates2/qquicklabel_p_p.h
deleted file mode 100644
index e1010698..00000000
--- a/src/quicktemplates2/qquicklabel_p_p.h
+++ /dev/null
@@ -1,147 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKLABEL_P_P_H
-#define QQUICKLABEL_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQml/private/qlazilyallocated_p.h>
-#include <QtQuick/private/qquicktext_p_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
-
-#if QT_CONFIG(accessibility)
-#include <QtGui/qaccessible.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-class QQuickLabelPrivate : public QQuickTextPrivate, public QQuickItemChangeListener
-#if QT_CONFIG(accessibility)
- , public QAccessible::ActivationObserver
-#endif
-{
- Q_DECLARE_PUBLIC(QQuickLabel)
-
-public:
- QQuickLabelPrivate();
- ~QQuickLabelPrivate();
-
- static QQuickLabelPrivate *get(QQuickLabel *item)
- {
- return static_cast<QQuickLabelPrivate *>(QObjectPrivate::get(item));
- }
-
- inline QMarginsF getInset() const { return QMarginsF(getLeftInset(), getTopInset(), getRightInset(), getBottomInset()); }
- inline qreal getTopInset() const { return extra.isAllocated() ? extra->topInset : 0; }
- inline qreal getLeftInset() const { return extra.isAllocated() ? extra->leftInset : 0; }
- inline qreal getRightInset() const { return extra.isAllocated() ? extra->rightInset : 0; }
- inline qreal getBottomInset() const { return extra.isAllocated() ? extra->bottomInset : 0; }
-
- void setTopInset(qreal value, bool reset = false);
- void setLeftInset(qreal value, bool reset = false);
- void setRightInset(qreal value, bool reset = false);
- void setBottomInset(qreal value, bool reset = false);
-
- void resizeBackground();
-
- void resolveFont();
- void inheritFont(const QFont &font);
- void updateFont(const QFont &font);
- inline void setFont_helper(const QFont &font) {
- if (sourceFont.resolve() == font.resolve() && sourceFont == font)
- return;
- updateFont(font);
- }
-
- void resolvePalette();
- void inheritPalette(const QPalette &palette);
- void updatePalette(const QPalette &palette);
- inline void setPalette_helper(const QPalette &palette) {
- if (resolvedPalette.resolve() == palette.resolve() && resolvedPalette == palette)
- return;
- updatePalette(palette);
- }
-
- void textChanged(const QString &text);
-
-#if QT_CONFIG(accessibility)
- void accessibilityActiveChanged(bool active) override;
- QAccessible::Role accessibleRole() const override;
-#endif
-
- void cancelBackground();
- void executeBackground(bool complete = false);
-
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
- void itemDestroyed(QQuickItem *item) override;
-
- struct ExtraData {
- bool hasTopInset = false;
- bool hasLeftInset = false;
- bool hasRightInset = false;
- bool hasBottomInset = false;
- bool hasBackgroundWidth = false;
- bool hasBackgroundHeight = false;
- qreal topInset = 0;
- qreal leftInset = 0;
- qreal rightInset = 0;
- qreal bottomInset = 0;
- QFont requestedFont;
- QPalette requestedPalette;
- };
- QLazilyAllocated<ExtraData> extra;
-
- bool resizingBackground = false;
- QPalette resolvedPalette;
- QQuickDeferredPointer<QQuickItem> background;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKLABEL_P_P_H
diff --git a/src/quicktemplates2/qquickmenu.cpp b/src/quicktemplates2/qquickmenu.cpp
deleted file mode 100644
index 91372777..00000000
--- a/src/quicktemplates2/qquickmenu.cpp
+++ /dev/null
@@ -1,1514 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickmenu_p.h"
-#include "qquickmenu_p_p.h"
-#include "qquickmenuitem_p_p.h"
-#include "qquickmenubaritem_p.h"
-#include "qquickmenubar_p.h"
-#include "qquickpopupitem_p_p.h"
-#include "qquickpopuppositioner_p_p.h"
-#include "qquickaction_p.h"
-
-#include <QtGui/qevent.h>
-#include <QtGui/qcursor.h>
-#include <QtGui/qpa/qplatformintegration.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQml/qqmlcontext.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQml/private/qqmlengine_p.h>
-#include <QtQml/private/qv4scopedvalue_p.h>
-#include <QtQml/private/qv4variantobject_p.h>
-#include <QtQml/private/qv4qobjectwrapper_p.h>
-#include <private/qqmlobjectmodel_p.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQuick/private/qquickitemview_p.h>
-#include <QtQuick/private/qquickevents_p_p.h>
-#include <QtQuick/private/qquickwindow_p.h>
-
-QT_BEGIN_NAMESPACE
-
-// copied from qfusionstyle.cpp
-static const int SUBMENU_DELAY = 225;
-
-/*!
- \qmltype Menu
- \inherits Popup
- \instantiates QQuickMenu
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-menus
- \ingroup qtquickcontrols2-popups
- \brief Menu popup that can be used as a context menu or popup menu.
-
- \image qtquickcontrols2-menu.png
-
- Menu has two main use cases:
- \list
- \li Context menus; for example, a menu that is shown after right clicking
- \li Popup menus; for example, a menu that is shown after clicking a button
- \endlist
-
- When used as a context menu, the recommended way of opening the menu is to call
- \l popup(). Unless a position is explicitly specified, the menu is positioned at
- the mouse cursor on desktop platforms that have a mouse cursor available, and
- otherwise centered over its parent item.
-
- \code
- MouseArea {
- anchors.fill: parent
- acceptedButtons: Qt.LeftButton | Qt.RightButton
- onClicked: {
- if (mouse.button === Qt.RightButton)
- contextMenu.popup()
- }
- onPressAndHold: {
- if (mouse.source === Qt.MouseEventNotSynthesized)
- contextMenu.popup()
- }
-
- Menu {
- id: contextMenu
- MenuItem { text: "Cut" }
- MenuItem { text: "Copy" }
- MenuItem { text: "Paste" }
- }
- }
- \endcode
-
- When used as a popup menu, it is easiest to specify the position by specifying
- the desired \l {Popup::}{x} and \l {Popup::}{y} coordinates using the respective
- properties, and call \l {Popup::}{open()} to open the menu.
-
- \code
- Button {
- id: fileButton
- text: "File"
- onClicked: menu.open()
-
- Menu {
- id: menu
- y: fileButton.height
-
- MenuItem {
- text: "New..."
- }
- MenuItem {
- text: "Open..."
- }
- MenuItem {
- text: "Save"
- }
- }
- }
- \endcode
-
- Since QtQuick.Controls 2.3 (Qt 5.10), it is also possible to create sub-menus
- and declare Action objects inside Menu:
-
- \code
- Menu {
- Action { text: "Cut" }
- Action { text: "Copy" }
- Action { text: "Paste" }
-
- MenuSeparator { }
-
- Menu {
- title: "Find/Replace"
- Action { text: "Find Next" }
- Action { text: "Find Previous" }
- Action { text: "Replace" }
- }
- }
- \endcode
-
- Sub-menus are \l {cascade}{cascading} by default on desktop platforms
- that have a mouse cursor available. Non-cascading menus are shown one
- menu at a time, and centered over the parent menu.
-
- Typically, menu items are statically declared as children of the menu, but
- Menu also provides API to \l {addItem}{add}, \l {insertItem}{insert},
- \l {moveItem}{move} and \l {removeItem}{remove} items dynamically. The
- items in a menu can be accessed using \l itemAt() or
- \l {Popup::}{contentChildren}.
-
- Although \l {MenuItem}{MenuItems} are most commonly used with Menu, it can
- contain any type of item.
-
- \sa {Customizing Menu}, MenuItem, {Menu Controls}, {Popup Controls}
-*/
-
-/*!
- \qmlproperty bool QtQuick.Controls::Menu::focus
-
- This property holds whether the popup wants focus.
-
- When the popup actually receives focus, \l activeFocus will be \c true.
- For more information, see \l {Keyboard Focus in Qt Quick}.
-
- The default value is \c false.
-
- \sa activeFocus
-*/
-
-static const QQuickPopup::ClosePolicy cascadingSubMenuClosePolicy = QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutsideParent;
-
-static bool shouldCascade()
-{
-#if QT_CONFIG(cursor)
- return QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::MultipleWindows);
-#else
- return false;
-#endif
-}
-
-class QQuickMenuPositioner : public QQuickPopupPositioner
-{
-public:
- QQuickMenuPositioner(QQuickMenu *menu) : QQuickPopupPositioner(menu) { }
-
- void reposition() override;
-};
-
-QQuickMenuPrivate::QQuickMenuPrivate()
-{
- Q_Q(QQuickMenu);
- cascade = shouldCascade();
- contentModel = new QQmlObjectModel(q);
-}
-
-QQuickItem *QQuickMenuPrivate::itemAt(int index) const
-{
- return qobject_cast<QQuickItem *>(contentModel->get(index));
-}
-
-void QQuickMenuPrivate::insertItem(int index, QQuickItem *item)
-{
- contentData.append(item);
- item->setParentItem(contentItem);
- if (qobject_cast<QQuickItemView *>(contentItem))
- QQuickItemPrivate::get(item)->setCulled(true); // QTBUG-53262
- if (complete)
- resizeItem(item);
- QQuickItemPrivate::get(item)->addItemChangeListener(this, QQuickItemPrivate::Destroyed | QQuickItemPrivate::Parent);
- QQuickItemPrivate::get(item)->updateOrAddGeometryChangeListener(this, QQuickGeometryChange::Width);
- contentModel->insert(index, item);
-
- QQuickMenuItem *menuItem = qobject_cast<QQuickMenuItem *>(item);
- if (menuItem) {
- Q_Q(QQuickMenu);
- QQuickMenuItemPrivate::get(menuItem)->setMenu(q);
- if (QQuickMenu *subMenu = menuItem->subMenu())
- QQuickMenuPrivate::get(subMenu)->setParentMenu(q);
- QObjectPrivate::connect(menuItem, &QQuickMenuItem::triggered, this, &QQuickMenuPrivate::onItemTriggered);
- QObjectPrivate::connect(menuItem, &QQuickItem::activeFocusChanged, this, &QQuickMenuPrivate::onItemActiveFocusChanged);
- QObjectPrivate::connect(menuItem, &QQuickControl::hoveredChanged, this, &QQuickMenuPrivate::onItemHovered);
- }
-}
-
-void QQuickMenuPrivate::moveItem(int from, int to)
-{
- contentModel->move(from, to);
-}
-
-void QQuickMenuPrivate::removeItem(int index, QQuickItem *item)
-{
- contentData.removeOne(item);
-
- QQuickItemPrivate::get(item)->removeItemChangeListener(this, QQuickItemPrivate::Destroyed | QQuickItemPrivate::Parent);
- QQuickItemPrivate::get(item)->removeItemChangeListener(this, QQuickItemPrivate::Geometry);
- item->setParentItem(nullptr);
- contentModel->remove(index);
-
- QQuickMenuItem *menuItem = qobject_cast<QQuickMenuItem *>(item);
- if (menuItem) {
- QQuickMenuItemPrivate::get(menuItem)->setMenu(nullptr);
- if (QQuickMenu *subMenu = menuItem->subMenu())
- QQuickMenuPrivate::get(subMenu)->setParentMenu(nullptr);
- QObjectPrivate::disconnect(menuItem, &QQuickMenuItem::triggered, this, &QQuickMenuPrivate::onItemTriggered);
- QObjectPrivate::disconnect(menuItem, &QQuickItem::activeFocusChanged, this, &QQuickMenuPrivate::onItemActiveFocusChanged);
- QObjectPrivate::disconnect(menuItem, &QQuickControl::hoveredChanged, this, &QQuickMenuPrivate::onItemHovered);
- }
-}
-
-QQuickItem *QQuickMenuPrivate::beginCreateItem()
-{
- Q_Q(QQuickMenu);
- if (!delegate)
- return nullptr;
-
- QQmlContext *creationContext = delegate->creationContext();
- if (!creationContext)
- creationContext = qmlContext(q);
- QQmlContext *context = new QQmlContext(creationContext, q);
- context->setContextObject(q);
-
- QObject *object = delegate->beginCreate(context);
- QQuickItem *item = qobject_cast<QQuickItem *>(object);
- if (!item)
- delete object;
-
- QQml_setParent_noEvent(item, q);
-
- return item;
-}
-
-void QQuickMenuPrivate::completeCreateItem()
-{
- if (!delegate)
- return;
-
- delegate->completeCreate();
-}
-
-QQuickItem *QQuickMenuPrivate::createItem(QQuickMenu *menu)
-{
- QQuickItem *item = beginCreateItem();
- if (QQuickMenuItem *menuItem = qobject_cast<QQuickMenuItem *>(item))
- QQuickMenuItemPrivate::get(menuItem)->setSubMenu(menu);
- completeCreateItem();
- return item;
-}
-
-QQuickItem *QQuickMenuPrivate::createItem(QQuickAction *action)
-{
- QQuickItem *item = beginCreateItem();
- if (QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(item))
- button->setAction(action);
- completeCreateItem();
- return item;
-}
-
-void QQuickMenuPrivate::resizeItem(QQuickItem *item)
-{
- if (!item || !contentItem)
- return;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- if (!p->widthValid) {
- item->setWidth(contentItem->width());
- p->widthValid = false;
- }
-}
-
-void QQuickMenuPrivate::resizeItems()
-{
- if (!contentModel)
- return;
-
- for (int i = 0; i < contentModel->count(); ++i)
- resizeItem(itemAt(i));
-}
-
-void QQuickMenuPrivate::itemChildAdded(QQuickItem *, QQuickItem *child)
-{
- // add dynamically reparented items (eg. by a Repeater)
- if (!QQuickItemPrivate::get(child)->isTransparentForPositioner() && !contentData.contains(child))
- insertItem(contentModel->count(), child);
-}
-
-void QQuickMenuPrivate::itemParentChanged(QQuickItem *item, QQuickItem *parent)
-{
- // remove dynamically unparented items (eg. by a Repeater)
- if (!parent)
- removeItem(contentModel->indexOf(item, nullptr), item);
-}
-
-void QQuickMenuPrivate::itemSiblingOrderChanged(QQuickItem *)
-{
- // reorder the restacked items (eg. by a Repeater)
- Q_Q(QQuickMenu);
- QList<QQuickItem *> siblings = contentItem->childItems();
-
- int to = 0;
- for (int i = 0; i < siblings.count(); ++i) {
- QQuickItem* sibling = siblings.at(i);
- if (QQuickItemPrivate::get(sibling)->isTransparentForPositioner())
- continue;
- int index = contentModel->indexOf(sibling, nullptr);
- q->moveItem(index, to++);
- }
-}
-
-void QQuickMenuPrivate::itemDestroyed(QQuickItem *item)
-{
- QQuickPopupPrivate::itemDestroyed(item);
- int index = contentModel->indexOf(item, nullptr);
- if (index != -1)
- removeItem(index, item);
-}
-
-void QQuickMenuPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange, const QRectF &)
-{
- if (!complete)
- return;
-
- if (item == contentItem) {
- // The contentItem's geometry changed, so resize any items
- // that don't have explicit widths set so that they fill the width of the menu.
- resizeItems();
- } else {
- // The geometry of an item in the menu changed. If the item
- // doesn't have an explicit width set, make it fill the width of the menu.
- resizeItem(item);
- }
-}
-
-QQuickPopupPositioner *QQuickMenuPrivate::getPositioner()
-{
- Q_Q(QQuickMenu);
- if (!positioner)
- positioner = new QQuickMenuPositioner(q);
- return positioner;
-}
-
-void QQuickMenuPositioner::reposition()
-{
- QQuickMenu *menu = static_cast<QQuickMenu *>(popup());
- QQuickMenuPrivate *p = QQuickMenuPrivate::get(menu);
- if (p->parentMenu) {
- if (p->cascade) {
- if (p->popupItem->isMirrored())
- menu->setPosition(QPointF(-menu->width() - p->parentMenu->leftPadding() + menu->overlap(), -menu->topPadding()));
- else if (p->parentItem)
- menu->setPosition(QPointF(p->parentItem->width() + p->parentMenu->rightPadding() - menu->overlap(), -menu->topPadding()));
- } else {
- menu->setPosition(QPointF(p->parentMenu->x() + (p->parentMenu->width() - menu->width()) / 2,
- p->parentMenu->y() + (p->parentMenu->height() - menu->height()) / 2));
- }
- }
- QQuickPopupPositioner::reposition();
-}
-
-bool QQuickMenuPrivate::prepareEnterTransition()
-{
- Q_Q(QQuickMenu);
- if (parentMenu && !cascade)
- parentMenu->close();
-
- // If a cascading sub-menu doesn't have enough space to open on
- // the right, it flips on the other side of the parent menu.
- allowHorizontalFlip = cascade && parentMenu;
-
- if (!QQuickPopupPrivate::prepareEnterTransition())
- return false;
-
- if (!hasClosePolicy) {
- if (cascade && parentMenu)
- closePolicy = cascadingSubMenuClosePolicy;
- else
- q->resetClosePolicy();
- }
- return true;
-}
-
-bool QQuickMenuPrivate::prepareExitTransition()
-{
- if (!QQuickPopupPrivate::prepareExitTransition())
- return false;
-
- stopHoverTimer();
-
- QQuickMenu *subMenu = currentSubMenu();
- while (subMenu) {
- QPointer<QQuickMenuItem> currentSubMenuItem = QQuickMenuPrivate::get(subMenu)->currentItem;
- subMenu->close();
- subMenu = currentSubMenuItem ? currentSubMenuItem->subMenu() : nullptr;
- }
- return true;
-}
-
-bool QQuickMenuPrivate::blockInput(QQuickItem *item, const QPointF &point) const
-{
- // keep the parent menu open when a cascading sub-menu (this menu) is interacted with
- return (cascade && parentMenu && contains(point)) || QQuickPopupPrivate::blockInput(item, point);
-}
-
-void QQuickMenuPrivate::onItemHovered()
-{
- Q_Q(QQuickMenu);
- QQuickAbstractButton *button = qobject_cast<QQuickAbstractButton *>(q->sender());
- if (!button || !button->isHovered() || QQuickAbstractButtonPrivate::get(button)->touchId != -1)
- return;
-
- QQuickMenuItem *oldCurrentItem = currentItem;
-
- int index = contentModel->indexOf(button, nullptr);
- if (index != -1) {
- setCurrentIndex(index, Qt::OtherFocusReason);
- if (oldCurrentItem != currentItem) {
- if (oldCurrentItem) {
- QQuickMenu *subMenu = oldCurrentItem->subMenu();
- if (subMenu)
- subMenu->close();
- }
- if (currentItem) {
- QQuickMenu *subMenu = currentItem->menu();
- if (subMenu && subMenu->cascade())
- startHoverTimer();
- }
- }
- }
-}
-
-void QQuickMenuPrivate::onItemTriggered()
-{
- Q_Q(QQuickMenu);
- QQuickMenuItem *item = qobject_cast<QQuickMenuItem *>(q->sender());
- if (!item)
- return;
-
- if (QQuickMenu *subMenu = item->subMenu()) {
- auto subMenuPrivate = QQuickMenuPrivate::get(subMenu);
- subMenu->popup(subMenuPrivate->firstEnabledMenuItem());
- } else {
- q->dismiss();
- }
-}
-
-void QQuickMenuPrivate::onItemActiveFocusChanged()
-{
- Q_Q(QQuickMenu);
- QQuickItem *item = qobject_cast<QQuickItem*>(q->sender());
- if (!item->hasActiveFocus())
- return;
-
- int indexOfItem = contentModel->indexOf(item, nullptr);
- QQuickControl *control = qobject_cast<QQuickControl *>(item);
- setCurrentIndex(indexOfItem, control ? control->focusReason() : Qt::OtherFocusReason);
-}
-
-QQuickMenu *QQuickMenuPrivate::currentSubMenu() const
-{
- if (!currentItem)
- return nullptr;
-
- return currentItem->subMenu();
-}
-
-void QQuickMenuPrivate::setParentMenu(QQuickMenu *parent)
-{
- Q_Q(QQuickMenu);
- if (parentMenu == parent)
- return;
-
- if (parentMenu) {
- QObject::disconnect(parentMenu.data(), &QQuickMenu::cascadeChanged, q, &QQuickMenu::setCascade);
- disconnect(parentMenu.data(), &QQuickMenu::parentChanged, this, &QQuickMenuPrivate::resolveParentItem);
- }
- if (parent) {
- QObject::connect(parent, &QQuickMenu::cascadeChanged, q, &QQuickMenu::setCascade);
- connect(parent, &QQuickMenu::parentChanged, this, &QQuickMenuPrivate::resolveParentItem);
- }
-
- parentMenu = parent;
- q->resetCascade();
- resolveParentItem();
-}
-
-static QQuickItem *findParentMenuItem(QQuickMenu *subMenu)
-{
- QQuickMenu *menu = QQuickMenuPrivate::get(subMenu)->parentMenu;
- for (int i = 0; i < QQuickMenuPrivate::get(menu)->contentModel->count(); ++i) {
- QQuickMenuItem *item = qobject_cast<QQuickMenuItem *>(menu->itemAt(i));
- if (item && item->subMenu() == subMenu)
- return item;
- }
- return nullptr;
-}
-
-void QQuickMenuPrivate::resolveParentItem()
-{
- Q_Q(QQuickMenu);
- if (!parentMenu)
- q->resetParentItem();
- else if (!cascade)
- q->setParentItem(parentMenu->parentItem());
- else
- q->setParentItem(findParentMenuItem(q));
-}
-
-void QQuickMenuPrivate::propagateKeyEvent(QKeyEvent *event)
-{
- if (QQuickMenuItem *menuItem = qobject_cast<QQuickMenuItem *>(parentItem)) {
- if (QQuickMenu *menu = menuItem->menu())
- QQuickMenuPrivate::get(menu)->propagateKeyEvent(event);
- } else if (QQuickMenuBarItem *menuBarItem = qobject_cast<QQuickMenuBarItem *>(parentItem)) {
- if (QQuickMenuBar *menuBar = menuBarItem->menuBar()) {
- event->accept();
- QCoreApplication::sendEvent(menuBar, event);
- }
- }
-}
-
-void QQuickMenuPrivate::startHoverTimer()
-{
- Q_Q(QQuickMenu);
- stopHoverTimer();
- hoverTimer = q->startTimer(SUBMENU_DELAY);
-}
-
-void QQuickMenuPrivate::stopHoverTimer()
-{
- Q_Q(QQuickMenu);
- if (!hoverTimer)
- return;
-
- q->killTimer(hoverTimer);
- hoverTimer = 0;
-}
-
-void QQuickMenuPrivate::setCurrentIndex(int index, Qt::FocusReason reason)
-{
- Q_Q(QQuickMenu);
- if (currentIndex == index)
- return;
-
- QQuickMenuItem *newCurrentItem = qobject_cast<QQuickMenuItem *>(itemAt(index));
- if (currentItem != newCurrentItem) {
- stopHoverTimer();
- if (currentItem) {
- currentItem->setHighlighted(false);
- if (!newCurrentItem && window) {
- QQuickItem *focusItem = QQuickItemPrivate::get(contentItem)->subFocusItem;
- if (focusItem)
- QQuickWindowPrivate::get(window)->clearFocusInScope(contentItem, focusItem, Qt::OtherFocusReason);
- }
- }
- if (newCurrentItem) {
- newCurrentItem->setHighlighted(true);
- newCurrentItem->forceActiveFocus(reason);
- }
- currentItem = newCurrentItem;
- }
-
- currentIndex = index;
- emit q->currentIndexChanged();
-}
-
-bool QQuickMenuPrivate::activateNextItem()
-{
- int index = currentIndex;
- int count = contentModel->count();
- while (++index < count) {
- QQuickItem *item = itemAt(index);
- if (!item || !item->activeFocusOnTab() || !item->isEnabled())
- continue;
- setCurrentIndex(index, Qt::TabFocusReason);
- return true;
- }
- return false;
-}
-
-bool QQuickMenuPrivate::activatePreviousItem()
-{
- int index = currentIndex;
- while (--index >= 0) {
- QQuickItem *item = itemAt(index);
- if (!item || !item->activeFocusOnTab() || !item->isEnabled())
- continue;
- setCurrentIndex(index, Qt::BacktabFocusReason);
- return true;
- }
- return false;
-}
-
-QQuickMenuItem *QQuickMenuPrivate::firstEnabledMenuItem() const
-{
- for (int i = 0; i < contentModel->count(); ++i) {
- QQuickItem *item = itemAt(i);
- if (!item || !item->isEnabled())
- continue;
-
- QQuickMenuItem *menuItem = qobject_cast<QQuickMenuItem *>(item);
- if (!menuItem)
- continue;
-
- return menuItem;
- }
- return nullptr;
-}
-
-void QQuickMenuPrivate::contentData_append(QQmlListProperty<QObject> *prop, QObject *obj)
-{
- QQuickMenu *q = qobject_cast<QQuickMenu *>(prop->object);
- QQuickMenuPrivate *p = QQuickMenuPrivate::get(q);
-
- QQuickItem *item = qobject_cast<QQuickItem *>(obj);
- if (!item) {
- if (QQuickAction *action = qobject_cast<QQuickAction *>(obj))
- item = p->createItem(action);
- else if (QQuickMenu *menu = qobject_cast<QQuickMenu *>(obj))
- item = p->createItem(menu);
- }
-
- if (item) {
- if (QQuickItemPrivate::get(item)->isTransparentForPositioner()) {
- QQuickItemPrivate::get(item)->addItemChangeListener(p, QQuickItemPrivate::SiblingOrder);
- item->setParentItem(p->contentItem);
- } else if (p->contentModel->indexOf(item, nullptr) == -1) {
- q->addItem(item);
- }
- } else {
- p->contentData.append(obj);
- }
-}
-
-int QQuickMenuPrivate::contentData_count(QQmlListProperty<QObject> *prop)
-{
- QQuickMenu *q = static_cast<QQuickMenu *>(prop->object);
- return QQuickMenuPrivate::get(q)->contentData.count();
-}
-
-QObject *QQuickMenuPrivate::contentData_at(QQmlListProperty<QObject> *prop, int index)
-{
- QQuickMenu *q = static_cast<QQuickMenu *>(prop->object);
- return QQuickMenuPrivate::get(q)->contentData.value(index);
-}
-
-void QQuickMenuPrivate::contentData_clear(QQmlListProperty<QObject> *prop)
-{
- QQuickMenu *q = static_cast<QQuickMenu *>(prop->object);
- QQuickMenuPrivate::get(q)->contentData.clear();
-}
-
-QQuickMenu::QQuickMenu(QObject *parent)
- : QQuickPopup(*(new QQuickMenuPrivate), parent)
-{
- Q_D(QQuickMenu);
- setFocus(true);
- connect(d->contentModel, &QQmlObjectModel::countChanged, this, &QQuickMenu::countChanged);
-}
-
-/*!
- \qmlmethod Item QtQuick.Controls::Menu::itemAt(int index)
-
- Returns the item at \a index, or \c null if it does not exist.
-*/
-QQuickItem *QQuickMenu::itemAt(int index) const
-{
- Q_D(const QQuickMenu);
- return d->itemAt(index);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Menu::addItem(Item item)
-
- Adds \a item to the end of the list of items.
-*/
-void QQuickMenu::addItem(QQuickItem *item)
-{
- Q_D(QQuickMenu);
- insertItem(d->contentModel->count(), item);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Menu::insertItem(int index, Item item)
-
- Inserts \a item at \a index.
-*/
-void QQuickMenu::insertItem(int index, QQuickItem *item)
-{
- Q_D(QQuickMenu);
- if (!item)
- return;
- const int count = d->contentModel->count();
- if (index < 0 || index > count)
- index = count;
-
- int oldIndex = d->contentModel->indexOf(item, nullptr);
- if (oldIndex != -1) {
- if (oldIndex < index)
- --index;
- if (oldIndex != index)
- d->moveItem(oldIndex, index);
- } else {
- d->insertItem(index, item);
- }
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Menu::moveItem(int from, int to)
-
- Moves an item \a from one index \a to another.
-*/
-void QQuickMenu::moveItem(int from, int to)
-{
- Q_D(QQuickMenu);
- const int count = d->contentModel->count();
- if (from < 0 || from > count - 1)
- return;
- if (to < 0 || to > count - 1)
- to = count - 1;
-
- if (from != to)
- d->moveItem(from, to);
-}
-
-/*!
- \deprecated
- \qmlmethod void QtQuick.Controls::Menu::removeItem(int index)
-
- Use Menu::removeItem(Item) or Menu::takeItem(int) instead.
-*/
-void QQuickMenu::removeItem(const QVariant &var)
-{
- if (var.userType() == QMetaType::Nullptr)
- return;
-
- if (QQuickItem *item = var.value<QQuickItem *>())
- removeItem(item);
- else
- takeItem(var.toInt());
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::removeItem(Item item)
-
- Removes and destroys the specified \a item.
-*/
-void QQuickMenu::removeItem(QQuickItem *item)
-{
- Q_D(QQuickMenu);
- if (!item)
- return;
-
- const int index = d->contentModel->indexOf(item, nullptr);
- if (index == -1)
- return;
-
- d->removeItem(index, item);
- item->deleteLater();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod MenuItem QtQuick.Controls::Menu::takeItem(int index)
-
- Removes and returns the item at \a index.
-
- \note The ownership of the item is transferred to the caller.
-*/
-QQuickItem *QQuickMenu::takeItem(int index)
-{
- Q_D(QQuickMenu);
- const int count = d->contentModel->count();
- if (index < 0 || index >= count)
- return nullptr;
-
- QQuickItem *item = itemAt(index);
- if (item)
- d->removeItem(index, item);
- return item;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod Menu QtQuick.Controls::Menu::menuAt(int index)
-
- Returns the sub-menu at \a index, or \c null if the index is not valid or
- there is no sub-menu at the specified index.
-*/
-QQuickMenu *QQuickMenu::menuAt(int index) const
-{
- Q_D(const QQuickMenu);
- QQuickMenuItem *item = qobject_cast<QQuickMenuItem *>(d->itemAt(index));
- if (!item)
- return nullptr;
-
- return item->subMenu();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::addMenu(Menu menu)
-
- Adds \a menu as a sub-menu to the end of this menu.
-*/
-void QQuickMenu::addMenu(QQuickMenu *menu)
-{
- Q_D(QQuickMenu);
- insertMenu(d->contentModel->count(), menu);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::insertMenu(int index, Menu menu)
-
- Inserts \a menu as a sub-menu at \a index. The index is within all items in the menu.
-*/
-void QQuickMenu::insertMenu(int index, QQuickMenu *menu)
-{
- Q_D(QQuickMenu);
- if (!menu)
- return;
-
- insertItem(index, d->createItem(menu));
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::removeMenu(Menu menu)
-
- Removes and destroys the specified \a menu.
-*/
-void QQuickMenu::removeMenu(QQuickMenu *menu)
-{
- Q_D(QQuickMenu);
- if (!menu)
- return;
-
- const int count = d->contentModel->count();
- for (int i = 0; i < count; ++i) {
- QQuickMenuItem *item = qobject_cast<QQuickMenuItem *>(d->itemAt(i));
- if (!item || item->subMenu() != menu)
- continue;
-
- removeItem(item);
- break;
- }
-
- menu->deleteLater();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod Menu QtQuick.Controls::Menu::takeMenu(int index)
-
- Removes and returns the menu at \a index. The index is within all items in the menu.
-
- \note The ownership of the menu is transferred to the caller.
-*/
-QQuickMenu *QQuickMenu::takeMenu(int index)
-{
- Q_D(QQuickMenu);
- QQuickMenuItem *item = qobject_cast<QQuickMenuItem *>(d->itemAt(index));
- if (!item)
- return nullptr;
-
- QQuickMenu *subMenu = item->subMenu();
- if (!subMenu)
- return nullptr;
-
- d->removeItem(index, item);
- item->deleteLater();
- return subMenu;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod Action QtQuick.Controls::Menu::actionAt(int index)
-
- Returns the action at \a index, or \c null if the index is not valid or
- there is no action at the specified index.
-*/
-QQuickAction *QQuickMenu::actionAt(int index) const
-{
- Q_D(const QQuickMenu);
- QQuickAbstractButton *item = qobject_cast<QQuickAbstractButton *>(d->itemAt(index));
- if (!item)
- return nullptr;
-
- return item->action();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::addAction(Action action)
-
- Adds \a action to the end of this menu.
-*/
-void QQuickMenu::addAction(QQuickAction *action)
-{
- Q_D(QQuickMenu);
- insertAction(d->contentModel->count(), action);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::insertAction(int index, Action action)
-
- Inserts \a action at \a index. The index is within all items in the menu.
-*/
-void QQuickMenu::insertAction(int index, QQuickAction *action)
-{
- Q_D(QQuickMenu);
- if (!action)
- return;
-
- insertItem(index, d->createItem(action));
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::removeAction(Action action)
-
- Removes and destroys the specified \a action.
-*/
-void QQuickMenu::removeAction(QQuickAction *action)
-{
- Q_D(QQuickMenu);
- if (!action)
- return;
-
- const int count = d->contentModel->count();
- for (int i = 0; i < count; ++i) {
- QQuickMenuItem *item = qobject_cast<QQuickMenuItem *>(d->itemAt(i));
- if (!item || item->action() != action)
- continue;
-
- removeItem(item);
- break;
- }
-
- action->deleteLater();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod Action QtQuick.Controls::Menu::takeAction(int index)
-
- Removes and returns the action at \a index. The index is within all items in the menu.
-
- \note The ownership of the action is transferred to the caller.
-*/
-QQuickAction *QQuickMenu::takeAction(int index)
-{
- Q_D(QQuickMenu);
- QQuickMenuItem *item = qobject_cast<QQuickMenuItem *>(d->itemAt(index));
- if (!item)
- return nullptr;
-
- QQuickAction *action = item->action();
- if (!action)
- return nullptr;
-
- d->removeItem(index, item);
- item->deleteLater();
- return action;
-}
-
-/*!
- \qmlproperty model QtQuick.Controls::Menu::contentModel
- \readonly
-
- This property holds the model used to display menu items.
-
- The content model is provided for visualization purposes. It can be assigned
- as a model to a content item that presents the contents of the menu.
-
- \code
- Menu {
- id: menu
- contentItem: ListView {
- model: menu.contentModel
- }
- }
- \endcode
-
- The model allows menu items to be statically declared as children of the
- menu.
-*/
-QVariant QQuickMenu::contentModel() const
-{
- Q_D(const QQuickMenu);
- return QVariant::fromValue(d->contentModel);
-}
-
-/*!
- \qmlproperty list<Object> QtQuick.Controls::Menu::contentData
- \default
-
- This property holds the list of content data.
-
- The list contains all objects that have been declared in QML as children
- of the menu, and also items that have been dynamically added or
- inserted using the \l addItem() and \l insertItem() methods, respectively.
-
- \note Unlike \c contentChildren, \c contentData does include non-visual QML
- objects. It is not re-ordered when items are inserted or moved.
-
- \sa Item::data, {Popup::}{contentChildren}
-*/
-QQmlListProperty<QObject> QQuickMenu::contentData()
-{
- Q_D(QQuickMenu);
- if (!d->contentItem)
- QQuickControlPrivate::get(d->popupItem)->executeContentItem();
- return QQmlListProperty<QObject>(this, nullptr,
- QQuickMenuPrivate::contentData_append,
- QQuickMenuPrivate::contentData_count,
- QQuickMenuPrivate::contentData_at,
- QQuickMenuPrivate::contentData_clear);
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::Menu::title
-
- This property holds the title for the menu.
-
- The title of a menu is often displayed in the text of a menu item when the
- menu is a submenu, and in the text of a tool button when it is in a
- menubar.
-*/
-QString QQuickMenu::title() const
-{
- Q_D(const QQuickMenu);
- return d->title;
-}
-
-void QQuickMenu::setTitle(QString &title)
-{
- Q_D(QQuickMenu);
- if (title == d->title)
- return;
- d->title = title;
- emit titleChanged(title);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::Menu::cascade
-
- This property holds whether the menu cascades its sub-menus.
-
- The default value is platform-specific. Menus are cascading by default on
- desktop platforms that have a mouse cursor available. Non-cascading menus
- are shown one menu at a time, and centered over the parent menu.
-
- \note Changing the value of the property has no effect while the menu is open.
-
- \sa overlap
-*/
-bool QQuickMenu::cascade() const
-{
- Q_D(const QQuickMenu);
- return d->cascade;
-}
-
-void QQuickMenu::setCascade(bool cascade)
-{
- Q_D(QQuickMenu);
- if (d->cascade == cascade)
- return;
- d->cascade = cascade;
- if (d->parentMenu)
- d->resolveParentItem();
- emit cascadeChanged(cascade);
-}
-
-void QQuickMenu::resetCascade()
-{
- Q_D(QQuickMenu);
- if (d->parentMenu)
- setCascade(d->parentMenu->cascade());
- else
- setCascade(shouldCascade());
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty real QtQuick.Controls::Menu::overlap
-
- This property holds the amount of pixels by which the menu horizontally overlaps its parent menu.
-
- The property only has effect when the menu is used as a cascading sub-menu.
-
- The default value is style-specific.
-
- \note Changing the value of the property has no effect while the menu is open.
-
- \sa cascade
-*/
-qreal QQuickMenu::overlap() const
-{
- Q_D(const QQuickMenu);
- return d->overlap;
-}
-
-void QQuickMenu::setOverlap(qreal overlap)
-{
- Q_D(QQuickMenu);
- if (d->overlap == overlap)
- return;
- d->overlap = overlap;
- emit overlapChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty Component QtQuick.Controls::Menu::delegate
-
- This property holds the component that is used to create items
- to present actions.
-
- \code
- Menu {
- Action { text: "Cut" }
- Action { text: "Copy" }
- Action { text: "Paste" }
- }
- \endcode
-
- \sa Action
-*/
-QQmlComponent *QQuickMenu::delegate() const
-{
- Q_D(const QQuickMenu);
- return d->delegate;
-}
-
-void QQuickMenu::setDelegate(QQmlComponent *delegate)
-{
- Q_D(QQuickMenu);
- if (d->delegate == delegate)
- return;
-
- d->delegate = delegate;
- emit delegateChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty int QtQuick.Controls::Menu::currentIndex
-
- This property holds the index of the currently highlighted item.
-
- Menu items can be highlighted by mouse hover or keyboard navigation.
-
- \sa MenuItem::highlighted
-*/
-int QQuickMenu::currentIndex() const
-{
- Q_D(const QQuickMenu);
- return d->currentIndex;
-}
-
-void QQuickMenu::setCurrentIndex(int index)
-{
- Q_D(QQuickMenu);
- d->setCurrentIndex(index, Qt::OtherFocusReason);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty int QtQuick.Controls::Menu::count
- \readonly
-
- This property holds the number of items.
-*/
-int QQuickMenu::count() const
-{
- Q_D(const QQuickMenu);
- return d->contentModel->count();
-}
-
-void QQuickMenu::popup(QQuickItem *menuItem)
-{
- Q_D(QQuickMenu);
- // No position has been explicitly specified, so position the menu at the mouse cursor
- // on desktop platforms that have a mouse cursor available and support multiple windows.
- QQmlNullableValue<QPointF> pos;
-#if QT_CONFIG(cursor)
- if (d->parentItem && QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::MultipleWindows))
- pos = d->parentItem->mapFromGlobal(QCursor::pos());
-#endif
-
- // As a fallback, center the menu over its parent item.
- if (pos.isNull && d->parentItem)
- pos = QPointF((d->parentItem->width() - width()) / 2, (d->parentItem->height() - height()) / 2);
-
- popup(pos.isNull ? QPointF() : pos.value, menuItem);
-}
-
-void QQuickMenu::popup(const QPointF &pos, QQuickItem *menuItem)
-{
- Q_D(QQuickMenu);
- qreal offset = 0;
-#if QT_CONFIG(cursor)
- if (menuItem)
- offset = d->popupItem->mapFromItem(menuItem, QPointF(0, 0)).y();
-#endif
- setPosition(pos - QPointF(0, offset));
-
- if (menuItem)
- d->setCurrentIndex(d->contentModel->indexOf(menuItem, nullptr), Qt::PopupFocusReason);
- open();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::popup(MenuItem item = null)
- \qmlmethod void QtQuick.Controls::Menu::popup(Item parent, MenuItem item = null)
-
- Opens the menu at the mouse cursor on desktop platforms that have a mouse cursor
- available, and otherwise centers the menu over its \a parent item.
-
- The menu can be optionally aligned to a specific menu \a item.
-
- \sa Popup::open()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::popup(point pos, MenuItem item = null)
- \qmlmethod void QtQuick.Controls::Menu::popup(Item parent, point pos, MenuItem item = null)
-
- Opens the menu at the specified position \a pos in the popups coordinate system,
- that is, a coordinate relative to its \a parent item.
-
- The menu can be optionally aligned to a specific menu \a item.
-
- \sa Popup::open()
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::popup(real x, real y, MenuItem item = null)
- \qmlmethod void QtQuick.Controls::Menu::popup(Item parent, real x, real y, MenuItem item = null)
-
- Opens the menu at the specified position \a x, \a y in the popups coordinate system,
- that is, a coordinate relative to its \a parent item.
-
- The menu can be optionally aligned to a specific menu \a item.
-
- \sa dismiss(), Popup::open()
-*/
-void QQuickMenu::popup(QQmlV4Function *args)
-{
- Q_D(QQuickMenu);
- const int len = args->length();
- if (len > 4) {
- args->v4engine()->throwTypeError();
- return;
- }
-
- QV4::ExecutionEngine *v4 = args->v4engine();
- QV4::Scope scope(v4);
-
- QQmlNullableValue<QPointF> pos;
- QQuickItem *menuItem = nullptr;
- QQuickItem *parentItem = nullptr;
-
- if (len > 0) {
- // Item parent
- QV4::ScopedValue firstArg(scope, (*args)[0]);
- if (const QV4::QObjectWrapper *obj = firstArg->as<QV4::QObjectWrapper>()) {
- QQuickItem *item = qobject_cast<QQuickItem *>(obj->object());
- if (item && !d->popupItem->isAncestorOf(item))
- parentItem = item;
- } else if (firstArg->isUndefined()) {
- resetParentItem();
- parentItem = d->parentItem;
- }
-
- // MenuItem item
- QV4::ScopedValue lastArg(scope, (*args)[len - 1]);
- if (const QV4::QObjectWrapper *obj = lastArg->as<QV4::QObjectWrapper>()) {
- QQuickItem *item = qobject_cast<QQuickItem *>(obj->object());
- if (item && d->popupItem->isAncestorOf(item))
- menuItem = item;
- }
- }
-
- if (len >= 3 || (!parentItem && len >= 2)) {
- // real x, real y
- QV4::ScopedValue xArg(scope, (*args)[parentItem ? 1 : 0]);
- QV4::ScopedValue yArg(scope, (*args)[parentItem ? 2 : 1]);
- if (xArg->isNumber() && yArg->isNumber())
- pos = QPointF(xArg->asDouble(), yArg->asDouble());
- }
-
- if (pos.isNull && (len >= 2 || (!parentItem && len >= 1))) {
- // point pos
- QV4::ScopedValue posArg(scope, (*args)[parentItem ? 1 : 0]);
- const QVariant var = v4->toVariant(posArg, -1);
- if (var.userType() == QMetaType::QPointF)
- pos = var.toPointF();
- }
-
- if (parentItem)
- setParentItem(parentItem);
-
- if (pos.isNull)
- popup(menuItem);
- else
- popup(pos, menuItem);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlmethod void QtQuick.Controls::Menu::dismiss()
-
- Closes all menus in the hierarchy that this menu belongs to.
-
- \note Unlike \l {Popup::}{close()} that only closes a menu and its sub-menus,
- \c dismiss() closes the whole hierarchy of menus, including the parent menus.
- In practice, \c close() is suitable e.g. for implementing navigation in a
- hierarchy of menus, and \c dismiss() is the appropriate method for closing
- the whole hierarchy of menus.
-
- \sa popup(), Popup::close()
-*/
-void QQuickMenu::dismiss()
-{
- QQuickMenu *menu = this;
- while (menu) {
- menu->close();
- menu = QQuickMenuPrivate::get(menu)->parentMenu;
- }
-}
-
-void QQuickMenu::componentComplete()
-{
- Q_D(QQuickMenu);
- QQuickPopup::componentComplete();
- d->resizeItems();
-}
-
-void QQuickMenu::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickMenu);
- QQuickPopup::contentItemChange(newItem, oldItem);
-
- if (oldItem) {
- QQuickItemPrivate::get(oldItem)->removeItemChangeListener(d, QQuickItemPrivate::Children);
- QQuickItemPrivate::get(oldItem)->removeItemChangeListener(d, QQuickItemPrivate::Geometry);
- }
- if (newItem) {
- QQuickItemPrivate::get(newItem)->addItemChangeListener(d, QQuickItemPrivate::Children);
- QQuickItemPrivate::get(newItem)->updateOrAddGeometryChangeListener(d, QQuickGeometryChange::Width);
- }
-
- d->contentItem = newItem;
-}
-
-void QQuickMenu::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- Q_D(QQuickMenu);
- QQuickPopup::itemChange(change, data);
-
- if (change == QQuickItem::ItemVisibleHasChanged) {
- if (!data.boolValue && d->cascade) {
- // Ensure that when the menu isn't visible, there's no current item
- // the next time it's opened.
- d->setCurrentIndex(-1, Qt::OtherFocusReason);
- }
- }
-}
-
-void QQuickMenu::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickMenu);
- QQuickPopup::keyPressEvent(event);
-
- // QTBUG-17051
- // Work around the fact that ListView has no way of distinguishing between
- // mouse and keyboard interaction, thanks to the "interactive" bool in Flickable.
- // What we actually want is to have a way to always allow keyboard interaction but
- // only allow flicking with the mouse when there are too many menu items to be
- // shown at once.
- switch (event->key()) {
- case Qt::Key_Up:
- if (!d->activatePreviousItem())
- d->propagateKeyEvent(event);
- break;
-
- case Qt::Key_Down:
- d->activateNextItem();
- break;
-
- case Qt::Key_Left:
- case Qt::Key_Right:
- event->ignore();
- if (d->popupItem->isMirrored() == (event->key() == Qt::Key_Right)) {
- if (d->parentMenu && d->currentItem) {
- if (!d->cascade)
- d->parentMenu->open();
- close();
- event->accept();
- }
- } else {
- if (QQuickMenu *subMenu = d->currentSubMenu()) {
- auto subMenuPrivate = QQuickMenuPrivate::get(subMenu);
- subMenu->popup(subMenuPrivate->firstEnabledMenuItem());
- event->accept();
- }
- }
- if (!event->isAccepted())
- d->propagateKeyEvent(event);
- break;
-
- default:
- break;
- }
-}
-
-void QQuickMenu::timerEvent(QTimerEvent *event)
-{
- Q_D(QQuickMenu);
- if (event->timerId() == d->hoverTimer) {
- if (QQuickMenu *subMenu = d->currentSubMenu())
- subMenu->open();
- d->stopHoverTimer();
- return;
- }
- QQuickPopup::timerEvent(event);
-}
-
-QFont QQuickMenu::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::Menu);
-}
-
-QPalette QQuickMenu::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::Menu);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickMenu::accessibleRole() const
-{
- return QAccessible::PopupMenu;
-}
-#endif
-
-QT_END_NAMESPACE
-
-#include "moc_qquickmenu_p.cpp"
diff --git a/src/quicktemplates2/qquickmenu_p.h b/src/quicktemplates2/qquickmenu_p.h
deleted file mode 100644
index 01b970f8..00000000
--- a/src/quicktemplates2/qquickmenu_p.h
+++ /dev/null
@@ -1,162 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENU_P_H
-#define QQUICKMENU_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQml/qqmllist.h>
-#include <QtQml/qqml.h>
-
-#include "qquickpopup_p.h"
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAction;
-class QQmlComponent;
-class QQuickMenuItem;
-class QQuickMenuPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickMenu : public QQuickPopup
-{
- Q_OBJECT
- Q_PROPERTY(QVariant contentModel READ contentModel CONSTANT FINAL)
- Q_PROPERTY(QQmlListProperty<QObject> contentData READ contentData FINAL)
- Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(int count READ count NOTIFY countChanged FINAL REVISION 3)
- Q_PROPERTY(bool cascade READ cascade WRITE setCascade RESET resetCascade NOTIFY cascadeChanged FINAL REVISION 3)
- Q_PROPERTY(qreal overlap READ overlap WRITE setOverlap NOTIFY overlapChanged FINAL REVISION 3)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL REVISION 3)
- Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL REVISION 3)
- Q_CLASSINFO("DefaultProperty", "contentData")
-
-public:
- explicit QQuickMenu(QObject *parent = nullptr);
-
- Q_INVOKABLE QQuickItem *itemAt(int index) const;
- Q_INVOKABLE void addItem(QQuickItem *item);
- Q_INVOKABLE void insertItem(int index, QQuickItem *item);
- Q_INVOKABLE void moveItem(int from, int to);
- Q_INVOKABLE void removeItem(const QVariant &item); // ### Qt 6: remove
- void removeItem(QQuickItem *item); // ### Qt 6: Q_INVOKABLE
-
- QVariant contentModel() const;
- QQmlListProperty<QObject> contentData();
-
- QString title() const;
- void setTitle(QString &title);
-
- bool cascade() const;
- void setCascade(bool cascade);
- void resetCascade();
-
- qreal overlap() const;
- void setOverlap(qreal overlap);
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
- int currentIndex() const;
- void setCurrentIndex(int index);
-
- // 2.3 (Qt 5.10)
- int count() const;
- Q_REVISION(3) Q_INVOKABLE QQuickItem *takeItem(int index);
-
- Q_REVISION(3) Q_INVOKABLE QQuickMenu *menuAt(int index) const;
- Q_REVISION(3) Q_INVOKABLE void addMenu(QQuickMenu *menu);
- Q_REVISION(3) Q_INVOKABLE void insertMenu(int index, QQuickMenu *menu);
- Q_REVISION(3) Q_INVOKABLE void removeMenu(QQuickMenu *menu);
- Q_REVISION(3) Q_INVOKABLE QQuickMenu *takeMenu(int index);
-
- Q_REVISION(3) Q_INVOKABLE QQuickAction *actionAt(int index) const;
- Q_REVISION(3) Q_INVOKABLE void addAction(QQuickAction *action);
- Q_REVISION(3) Q_INVOKABLE void insertAction(int index, QQuickAction *action);
- Q_REVISION(3) Q_INVOKABLE void removeAction(QQuickAction *action);
- Q_REVISION(3) Q_INVOKABLE QQuickAction *takeAction(int index);
-
- void popup(QQuickItem *menuItem = nullptr);
- void popup(const QPointF &pos, QQuickItem *menuItem = nullptr);
-
- Q_REVISION(3) Q_INVOKABLE void popup(QQmlV4Function *args);
- Q_REVISION(3) Q_INVOKABLE void dismiss();
-
-protected:
- void componentComplete() override;
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
- void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data) override;
- void keyPressEvent(QKeyEvent *event) override;
-
-Q_SIGNALS:
- void titleChanged(const QString &title);
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void countChanged();
- Q_REVISION(3) void cascadeChanged(bool cascade);
- Q_REVISION(3) void overlapChanged();
- Q_REVISION(3) void delegateChanged();
- Q_REVISION(3) void currentIndexChanged();
-
-protected:
- void timerEvent(QTimerEvent *event) override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickMenu)
- Q_DECLARE_PRIVATE(QQuickMenu)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMenu)
-
-#endif // QQUICKMENU_P_H
diff --git a/src/quicktemplates2/qquickmenu_p_p.h b/src/quicktemplates2/qquickmenu_p_p.h
deleted file mode 100644
index ec48c919..00000000
--- a/src/quicktemplates2/qquickmenu_p_p.h
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENU_P_P_H
-#define QQUICKMENU_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qvector.h>
-#include <QtCore/qpointer.h>
-
-#include <QtQuickTemplates2/private/qquickmenu_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickAction;
-class QQmlComponent;
-class QQmlObjectModel;
-class QQuickMenuItem;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickMenuPrivate : public QQuickPopupPrivate
-{
- Q_DECLARE_PUBLIC(QQuickMenu)
-
-public:
- QQuickMenuPrivate();
-
- static QQuickMenuPrivate *get(QQuickMenu *menu)
- {
- return menu->d_func();
- }
-
- QQuickItem *itemAt(int index) const;
- void insertItem(int index, QQuickItem *item);
- void moveItem(int from, int to);
- void removeItem(int index, QQuickItem *item);
-
- QQuickItem *beginCreateItem();
- void completeCreateItem();
-
- QQuickItem *createItem(QQuickMenu *menu);
- QQuickItem *createItem(QQuickAction *action);
-
- void resizeItem(QQuickItem *item);
- void resizeItems();
-
- void itemChildAdded(QQuickItem *item, QQuickItem *child) override;
- void itemSiblingOrderChanged(QQuickItem *item) override;
- void itemParentChanged(QQuickItem *item, QQuickItem *parent) override;
- void itemDestroyed(QQuickItem *item) override;
- void itemGeometryChanged(QQuickItem *, QQuickGeometryChange change, const QRectF &diff) override;
-
- QQuickPopupPositioner *getPositioner() override;
- bool prepareEnterTransition() override;
- bool prepareExitTransition() override;
- bool blockInput(QQuickItem *item, const QPointF &point) const override;
-
- void onItemHovered();
- void onItemTriggered();
- void onItemActiveFocusChanged();
-
- QQuickMenu *currentSubMenu() const;
- void setParentMenu(QQuickMenu *parent);
- void resolveParentItem();
-
- void propagateKeyEvent(QKeyEvent *event);
-
- void startHoverTimer();
- void stopHoverTimer();
-
- void setCurrentIndex(int index, Qt::FocusReason reason);
- bool activateNextItem();
- bool activatePreviousItem();
-
- QQuickMenuItem *firstEnabledMenuItem() const;
-
- static void contentData_append(QQmlListProperty<QObject> *prop, QObject *obj);
- static int contentData_count(QQmlListProperty<QObject> *prop);
- static QObject *contentData_at(QQmlListProperty<QObject> *prop, int index);
- static void contentData_clear(QQmlListProperty<QObject> *prop);
-
- bool cascade = false;
- int hoverTimer = 0;
- int currentIndex = -1;
- qreal overlap = 0;
- QPointer<QQuickMenu> parentMenu;
- QPointer<QQuickMenuItem> currentItem;
- QQuickItem *contentItem = nullptr; // TODO: cleanup
- QVector<QObject *> contentData;
- QQmlObjectModel *contentModel;
- QQmlComponent *delegate = nullptr;
- QString title;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKMENU_P_P_H
diff --git a/src/quicktemplates2/qquickmenubar.cpp b/src/quicktemplates2/qquickmenubar.cpp
deleted file mode 100644
index 1761d999..00000000
--- a/src/quicktemplates2/qquickmenubar.cpp
+++ /dev/null
@@ -1,581 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickmenubar_p.h"
-#include "qquickmenubar_p_p.h"
-#include "qquickmenubaritem_p_p.h"
-#include "qquickmenu_p.h"
-#include "qquickmenu_p_p.h"
-
-#include <QtQml/qqmlcontext.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQml/qqmlengine.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MenuBar
- \inherits Container
- \instantiates QQuickMenuBar
- \inqmlmodule QtQuick.Controls
- \since 5.10
- \ingroup qtquickcontrols2-menus
- \ingroup qtquickcontrols2-focusscopes
- \brief Provides a window menu bar.
-
- \image qtquickcontrols2-menubar.png
-
- MenuBar consists of drop-down menus, and is normally located at the top
- edge of the window.
-
- \quotefromfile qtquickcontrols2-menubar.qml
- \skipuntil begin
- \printto skipfrom
- \skipuntil skipto
- \printto end
-
- Typically, menus are statically declared as children of the menu bar, but
- MenuBar also provides API to \l {addMenu}{add}, \l {insertMenu}{insert},
- \l {removeMenu}{remove}, and \l {takeMenu}{take} menus dynamically. The
- menus in a menu bar can be accessed using \l menuAt().
-
- \sa {Customizing MenuBar}, Menu, MenuBarItem, {Menu Controls},
- {Focus Management in Qt Quick Controls}
-*/
-
-QQuickItem *QQuickMenuBarPrivate::beginCreateItem()
-{
- Q_Q(QQuickMenuBar);
- if (!delegate)
- return nullptr;
-
- QQmlContext *creationContext = delegate->creationContext();
- if (!creationContext)
- creationContext = qmlContext(q);
- QQmlContext *context = new QQmlContext(creationContext, q);
- context->setContextObject(q);
-
- QObject *object = delegate->beginCreate(context);
- QQuickItem *item = qobject_cast<QQuickItem *>(object);
- if (!item) {
- delete object;
- delete context;
- return nullptr;
- }
-
- item->setParentItem(q);
- QQml_setParent_noEvent(item, q);
-
- return item;
-}
-
-void QQuickMenuBarPrivate::completeCreateItem()
-{
- if (!delegate)
- return;
-
- delegate->completeCreate();
-}
-
-QQuickItem *QQuickMenuBarPrivate::createItem(QQuickMenu *menu)
-{
- QQuickItem *item = beginCreateItem();
- if (QQuickMenuBarItem *menuBarItem = qobject_cast<QQuickMenuBarItem *>(item))
- menuBarItem->setMenu(menu);
- completeCreateItem();
- return item;
-}
-
-void QQuickMenuBarPrivate::toggleCurrentMenu(bool visible, bool activate)
-{
- if (!currentItem || visible == popupMode)
- return;
-
- QQuickMenu *menu = currentItem->menu();
-
- triggering = true;
- popupMode = visible;
- if (menu)
- menu->setVisible(visible);
- if (!visible)
- currentItem->forceActiveFocus();
- else if (menu && activate)
- menu->setCurrentIndex(0);
- triggering = false;
-}
-
-void QQuickMenuBarPrivate::activateItem(QQuickMenuBarItem *item)
-{
- if (currentItem == item)
- return;
-
- if (currentItem) {
- currentItem->setHighlighted(false);
- if (popupMode) {
- if (QQuickMenu *menu = currentItem->menu())
- menu->dismiss();
- }
- }
-
- if (item) {
- item->setHighlighted(true);
- if (popupMode) {
- if (QQuickMenu *menu = item->menu())
- menu->open();
- }
- }
-
- currentItem = item;
-}
-
-void QQuickMenuBarPrivate::activateNextItem()
-{
- int index = currentItem ? contentModel->indexOf(currentItem, nullptr) : -1;
- if (index >= contentModel->count() - 1)
- index = -1;
- activateItem(qobject_cast<QQuickMenuBarItem *>(itemAt(++index)));
-}
-
-void QQuickMenuBarPrivate::activatePreviousItem()
-{
- int index = currentItem ? contentModel->indexOf(currentItem, nullptr) : contentModel->count();
- if (index <= 0)
- index = contentModel->count();
- activateItem(qobject_cast<QQuickMenuBarItem *>(itemAt(--index)));
-}
-
-void QQuickMenuBarPrivate::onItemHovered()
-{
- Q_Q(QQuickMenuBar);
- QQuickMenuBarItem *item = qobject_cast<QQuickMenuBarItem *>(q->sender());
- if (!item || item == currentItem || !item->isHovered() || QQuickMenuBarItemPrivate::get(item)->touchId != -1)
- return;
-
- activateItem(item);
-}
-
-void QQuickMenuBarPrivate::onItemTriggered()
-{
- Q_Q(QQuickMenuBar);
- QQuickMenuBarItem *item = qobject_cast<QQuickMenuBarItem *>(q->sender());
- if (!item)
- return;
-
- if (item == currentItem) {
- toggleCurrentMenu(!popupMode, false);
- } else {
- popupMode = true;
- activateItem(item);
- }
-}
-
-void QQuickMenuBarPrivate::onMenuAboutToHide()
-{
- if (triggering || !currentItem || currentItem->isHovered() || !currentItem->isHighlighted())
- return;
-
- popupMode = false;
- activateItem(nullptr);
-}
-
-qreal QQuickMenuBarPrivate::getContentWidth() const
-{
- Q_Q(const QQuickMenuBar);
- const int count = contentModel->count();
- qreal totalWidth = qMax(0, count - 1) * spacing;
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = q->itemAt(i);
- if (item)
- totalWidth += item->implicitWidth();
- }
- return totalWidth;
-}
-
-qreal QQuickMenuBarPrivate::getContentHeight() const
-{
- Q_Q(const QQuickMenuBar);
- const int count = contentModel->count();
- qreal maxHeight = 0;
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = q->itemAt(i);
- if (item)
- maxHeight = qMax(maxHeight, item->implicitHeight());
- }
- return maxHeight;
-}
-
-void QQuickMenuBarPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- QQuickContainerPrivate::itemImplicitWidthChanged(item);
- if (item != contentItem)
- updateImplicitContentWidth();
-}
-
-void QQuickMenuBarPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- QQuickContainerPrivate::itemImplicitHeightChanged(item);
- if (item != contentItem)
- updateImplicitContentHeight();
-}
-
-void QQuickMenuBarPrivate::contentData_append(QQmlListProperty<QObject> *prop, QObject *obj)
-{
- QQuickMenuBar *menuBar = static_cast<QQuickMenuBar *>(prop->object);
- if (QQuickMenu *menu = qobject_cast<QQuickMenu *>(obj))
- obj = QQuickMenuBarPrivate::get(menuBar)->createItem(menu);
- QQuickContainerPrivate::contentData_append(prop, obj);
-}
-
-void QQuickMenuBarPrivate::menus_append(QQmlListProperty<QQuickMenu> *prop, QQuickMenu *obj)
-{
- QQuickMenuBar *menuBar = static_cast<QQuickMenuBar *>(prop->object);
- menuBar->addMenu(obj);
-}
-
-int QQuickMenuBarPrivate::menus_count(QQmlListProperty<QQuickMenu> *prop)
-{
- QQuickMenuBar *menuBar = static_cast<QQuickMenuBar *>(prop->object);
- return menuBar->count();
-}
-
-QQuickMenu *QQuickMenuBarPrivate::menus_at(QQmlListProperty<QQuickMenu> *prop, int index)
-{
- QQuickMenuBar *menuBar = static_cast<QQuickMenuBar *>(prop->object);
- return menuBar->menuAt(index);
-}
-
-void QQuickMenuBarPrivate::menus_clear(QQmlListProperty<QQuickMenu> *prop)
-{
- QQuickMenuBar *menuBar = static_cast<QQuickMenuBar *>(prop->object);
- QQuickMenuBarPrivate::get(menuBar)->contentModel->clear();
-}
-
-QQuickMenuBar::QQuickMenuBar(QQuickItem *parent)
- : QQuickContainer(*(new QQuickMenuBarPrivate), parent)
-{
- Q_D(QQuickMenuBar);
- d->changeTypes |= QQuickItemPrivate::Geometry;
- setFlag(ItemIsFocusScope);
- setFocusPolicy(Qt::ClickFocus);
-}
-
-/*!
- \qmlproperty Component QtQuick.Controls::MenuBar::delegate
-
- This property holds the component that is used to create menu bar
- items to present menus in the menu bar.
-
- \sa MenuBarItem
-*/
-QQmlComponent *QQuickMenuBar::delegate() const
-{
- Q_D(const QQuickMenuBar);
- return d->delegate;
-}
-
-void QQuickMenuBar::setDelegate(QQmlComponent *delegate)
-{
- Q_D(QQuickMenuBar);
- if (d->delegate == delegate)
- return;
-
- d->delegate = delegate;
- emit delegateChanged();
-}
-
-/*!
- \qmlmethod Menu QtQuick.Controls::MenuBar::menuAt(int index)
-
- Returns the menu at \a index, or \c null if it does not exist.
-*/
-QQuickMenu *QQuickMenuBar::menuAt(int index) const
-{
- Q_D(const QQuickMenuBar);
- QQuickMenuBarItem *item = qobject_cast<QQuickMenuBarItem *>(d->itemAt(index));
- if (!item)
- return nullptr;
- return item->menu();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::MenuBar::addMenu(Menu menu)
-
- Adds \a menu to the end of the list of menus.
-*/
-void QQuickMenuBar::addMenu(QQuickMenu *menu)
-{
- Q_D(QQuickMenuBar);
- addItem(d->createItem(menu));
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::MenuBar::insertMenu(int index, Menu menu)
-
- Inserts \a menu at \a index.
-*/
-void QQuickMenuBar::insertMenu(int index, QQuickMenu *menu)
-{
- Q_D(QQuickMenuBar);
- insertItem(index, d->createItem(menu));
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::MenuBar::removeMenu(Menu menu)
-
- Removes and destroys the specified \a menu.
-*/
-void QQuickMenuBar::removeMenu(QQuickMenu *menu)
-{
- Q_D(QQuickMenuBar);
- if (!menu)
- return;
-
- const int count = d->contentModel->count();
- for (int i = 0; i < count; ++i) {
- QQuickMenuBarItem *item = qobject_cast<QQuickMenuBarItem *>(itemAt(i));
- if (!item || item->menu() != menu)
- continue;
-
- removeItem(item);
- break;
- }
-
- menu->deleteLater();
-}
-
-/*!
- \qmlmethod Menu QtQuick.Controls::MenuBar::takeMenu(int index)
-
- Removes and returns the menu at \a index.
-
- \note The ownership of the item is transferred to the caller.
-*/
-QQuickMenu *QQuickMenuBar::takeMenu(int index)
-{
- Q_D(QQuickMenuBar);
- QQuickMenuBarItem *item = qobject_cast<QQuickMenuBarItem *>(itemAt(index));
- if (!item)
- return nullptr;
-
- QQuickMenu *menu = item->menu();
- if (!menu)
- return nullptr;
-
- d->removeItem(index, item);
- item->deleteLater();
- return menu;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty real QtQuick.Controls::MenuBar::contentWidth
-
- This property holds the content width. It is used for calculating the total
- implicit width of the menu bar.
-
- \note This property is available in MenuBar since QtQuick.Controls 2.3 (Qt 5.10),
- but it was promoted to the Container base type in QtQuick.Controls 2.5 (Qt 5.12).
-
- \sa Container::contentWidth
-*/
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty real QtQuick.Controls::MenuBar::contentHeight
-
- This property holds the content height. It is used for calculating the total
- implicit height of the menu bar.
-
- \note This property is available in MenuBar since QtQuick.Controls 2.3 (Qt 5.10),
- but it was promoted to the Container base type in QtQuick.Controls 2.5 (Qt 5.12).
-
- \sa Container::contentHeight
-*/
-
-/*!
- \qmlproperty list<Menu> QtQuick.Controls::MenuBar::menus
-
- This property holds the list of menus.
-
- The list contains all menus that have been declared in QML as children
- of the menu bar, and also menus that have been dynamically added or
- inserted using the \l addMenu() and \l insertMenu() methods, respectively.
-*/
-QQmlListProperty<QQuickMenu> QQuickMenuBarPrivate::menus()
-{
- Q_Q(QQuickMenuBar);
- return QQmlListProperty<QQuickMenu>(q, nullptr,
- QQuickMenuBarPrivate::menus_append,
- QQuickMenuBarPrivate::menus_count,
- QQuickMenuBarPrivate::menus_at,
- QQuickMenuBarPrivate::menus_clear);
-}
-
-QQmlListProperty<QObject> QQuickMenuBarPrivate::contentData()
-{
- Q_Q(QQuickMenuBar);
- return QQmlListProperty<QObject>(q, nullptr,
- QQuickMenuBarPrivate::contentData_append,
- QQuickContainerPrivate::contentData_count,
- QQuickContainerPrivate::contentData_at,
- QQuickContainerPrivate::contentData_clear);
-}
-
-bool QQuickMenuBar::eventFilter(QObject *object, QEvent *event)
-{
- return QObject::eventFilter(object, event);
-}
-
-void QQuickMenuBar::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickMenuBar);
- QQuickContainer::keyReleaseEvent(event);
-
- switch (event->key()) {
- case Qt::Key_Up:
- d->toggleCurrentMenu(false, false);
- break;
-
- case Qt::Key_Down:
- d->toggleCurrentMenu(true, true);
- break;
-
- case Qt::Key_Left:
- case Qt::Key_Right:
- if (isMirrored() == (event->key() == Qt::Key_Left))
- d->activateNextItem();
- else
- d->activatePreviousItem();
- break;
- case Qt::Key_Escape:
- if (d->currentItem) {
- d->activateItem(nullptr);
- setFocus(false);
- }
- break;
- default:
- break;
- }
-}
-
-void QQuickMenuBar::keyReleaseEvent(QKeyEvent *event)
-{
- QQuickContainer::keyReleaseEvent(event);
-
- switch (event->key()) {
- case Qt::Key_Up:
- case Qt::Key_Down:
- case Qt::Key_Left:
- case Qt::Key_Right:
- case Qt::Key_Escape:
- event->accept();
- break;
-
- default:
- event->ignore();
- break;
- }
-}
-
-void QQuickMenuBar::hoverLeaveEvent(QHoverEvent *event)
-{
- Q_D(QQuickMenuBar);
- QQuickContainer::hoverLeaveEvent(event);
- if (!d->popupMode && d->currentItem)
- d->activateItem(nullptr);
-}
-
-bool QQuickMenuBar::isContent(QQuickItem *item) const
-{
- return qobject_cast<QQuickMenuBarItem *>(item);
-}
-
-void QQuickMenuBar::itemAdded(int index, QQuickItem *item)
-{
- Q_D(QQuickMenuBar);
- QQuickContainer::itemAdded(index, item);
- if (QQuickMenuBarItem *menuBarItem = qobject_cast<QQuickMenuBarItem *>(item)) {
- QQuickMenuBarItemPrivate::get(menuBarItem)->setMenuBar(this);
- QObjectPrivate::connect(menuBarItem, &QQuickControl::hoveredChanged, d, &QQuickMenuBarPrivate::onItemHovered);
- QObjectPrivate::connect(menuBarItem, &QQuickMenuBarItem::triggered, d, &QQuickMenuBarPrivate::onItemTriggered);
- if (QQuickMenu *menu = menuBarItem->menu())
- QObjectPrivate::connect(menu, &QQuickPopup::aboutToHide, d, &QQuickMenuBarPrivate::onMenuAboutToHide);
- }
- d->updateImplicitContentSize();
- emit menusChanged();
-}
-
-void QQuickMenuBar::itemMoved(int index, QQuickItem *item)
-{
- QQuickContainer::itemMoved(index, item);
- emit menusChanged();
-}
-
-void QQuickMenuBar::itemRemoved(int index, QQuickItem *item)
-{
- Q_D(QQuickMenuBar);
- QQuickContainer::itemRemoved(index, item);
- if (QQuickMenuBarItem *menuBarItem = qobject_cast<QQuickMenuBarItem *>(item)) {
- QQuickMenuBarItemPrivate::get(menuBarItem)->setMenuBar(nullptr);
- QObjectPrivate::disconnect(menuBarItem, &QQuickControl::hoveredChanged, d, &QQuickMenuBarPrivate::onItemHovered);
- QObjectPrivate::disconnect(menuBarItem, &QQuickMenuBarItem::triggered, d, &QQuickMenuBarPrivate::onItemTriggered);
- if (QQuickMenu *menu = menuBarItem->menu())
- QObjectPrivate::disconnect(menu, &QQuickPopup::aboutToHide, d, &QQuickMenuBarPrivate::onMenuAboutToHide);
- }
- d->updateImplicitContentSize();
- emit menusChanged();
-}
-
-QFont QQuickMenuBar::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::MenuBar);
-}
-
-QPalette QQuickMenuBar::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::MenuBar);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickMenuBar::accessibleRole() const
-{
- return QAccessible::MenuBar;
-}
-#endif
-
-QT_END_NAMESPACE
-
-#include "moc_qquickmenubar_p.cpp"
diff --git a/src/quicktemplates2/qquickmenubar_p.h b/src/quicktemplates2/qquickmenubar_p.h
deleted file mode 100644
index af37d0f2..00000000
--- a/src/quicktemplates2/qquickmenubar_p.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENUBAR_P_H
-#define QQUICKMENUBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontainer_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMenu;
-class QQuickMenuBarPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickMenuBar : public QQuickContainer
-{
- Q_OBJECT
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
- Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL) // re-declare QQuickContainer::contentWidth (REV 5)
- Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL) // re-declare QQuickContainer::contentHeight (REV 5)
- Q_PRIVATE_PROPERTY(QQuickMenuBar::d_func(), QQmlListProperty<QQuickMenu> menus READ menus NOTIFY menusChanged FINAL)
- Q_PRIVATE_PROPERTY(QQuickMenuBar::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
-
-public:
- explicit QQuickMenuBar(QQuickItem *parent = nullptr);
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
- Q_INVOKABLE QQuickMenu *menuAt(int index) const;
- Q_INVOKABLE void addMenu(QQuickMenu *menu);
- Q_INVOKABLE void insertMenu(int index, QQuickMenu *menu);
- Q_INVOKABLE void removeMenu(QQuickMenu *menu);
- Q_INVOKABLE QQuickMenu *takeMenu(int index);
-
-Q_SIGNALS:
- void delegateChanged();
- void menusChanged();
-
-protected:
- bool eventFilter(QObject *object, QEvent *event) override;
- void keyPressEvent(QKeyEvent *event) override;
- void keyReleaseEvent(QKeyEvent *event) override;
- void hoverLeaveEvent(QHoverEvent *event) override;
-
- bool isContent(QQuickItem *item) const override;
- void itemAdded(int index, QQuickItem *item) override;
- void itemMoved(int index, QQuickItem *item) override;
- void itemRemoved(int index, QQuickItem *item) override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickMenuBar)
- Q_DECLARE_PRIVATE(QQuickMenuBar)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMenuBar)
-
-#endif // QQUICKMENUBAR_P_H
diff --git a/src/quicktemplates2/qquickmenubar_p_p.h b/src/quicktemplates2/qquickmenubar_p_p.h
deleted file mode 100644
index 75fbed73..00000000
--- a/src/quicktemplates2/qquickmenubar_p_p.h
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENUBAR_P_P_H
-#define QQUICKMENUBAR_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickmenubar_p.h>
-#include <QtQuickTemplates2/private/qquickcontainer_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlComponent;
-class QQuickMenuBarItem;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickMenuBarPrivate : public QQuickContainerPrivate
-{
- Q_DECLARE_PUBLIC(QQuickMenuBar)
-
-public:
- static QQuickMenuBarPrivate *get(QQuickMenuBar *menuBar)
- {
- return menuBar->d_func();
- }
-
- QQmlListProperty<QQuickMenu> menus();
- QQmlListProperty<QObject> contentData();
-
- QQuickItem *beginCreateItem();
- void completeCreateItem();
-
- QQuickItem *createItem(QQuickMenu *menu);
-
- void toggleCurrentMenu(bool visible, bool activate);
- void activateItem(QQuickMenuBarItem *item);
- void activateNextItem();
- void activatePreviousItem();
-
- void onItemHovered();
- void onItemTriggered();
- void onMenuAboutToHide();
-
- qreal getContentWidth() const override;
- qreal getContentHeight() const override;
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- static void contentData_append(QQmlListProperty<QObject> *prop, QObject *obj);
-
- static void menus_append(QQmlListProperty<QQuickMenu> *prop, QQuickMenu *obj);
- static int menus_count(QQmlListProperty<QQuickMenu> *prop);
- static QQuickMenu *menus_at(QQmlListProperty<QQuickMenu> *prop, int index);
- static void menus_clear(QQmlListProperty<QQuickMenu> *prop);
-
- bool popupMode = false;
- bool triggering = false;
- QQmlComponent *delegate = nullptr;
- QPointer<QQuickMenuBarItem> currentItem;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKMENUBAR_P_P_H
diff --git a/src/quicktemplates2/qquickmenubaritem.cpp b/src/quicktemplates2/qquickmenubaritem.cpp
deleted file mode 100644
index f32baff5..00000000
--- a/src/quicktemplates2/qquickmenubaritem.cpp
+++ /dev/null
@@ -1,185 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickmenubaritem_p.h"
-#include "qquickmenubaritem_p_p.h"
-#include "qquickmenubar_p.h"
-#include "qquickmenu_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MenuBarItem
- \inherits AbstractButton
- \instantiates QQuickMenuBarItem
- \inqmlmodule QtQuick.Controls
- \since 5.10
- \ingroup qtquickcontrols2-menus
- \brief Presents a drop-down menu within a MenuBar.
-
- MenuBarItem presents a Menu within a MenuBar. The respective drop-down menu
- is shown when a MenuBarItem is \l triggered via keyboard, mouse, or touch.
-
- \image qtquickcontrols2-menubar.png
-
- MenuBarItem is used as a default \l {MenuBar::}{delegate} type for MenuBar.
- Notice that it is not necessary to declare MenuBarItem instances by hand when
- using MenuBar. It is sufficient to declare Menu instances as children of the
- MenuBar and the respective items are created automatically.
-
- \sa {Customizing MenuBar}, MenuBar, {Menu Controls}
-*/
-
-/*!
- \qmlsignal void QtQuick.Controls::MenuBarItem::triggered()
-
- This signal is emitted when the menu bar item is triggered by the user.
-*/
-
-void QQuickMenuBarItemPrivate::setMenuBar(QQuickMenuBar *newMenuBar)
-{
- Q_Q(QQuickMenuBarItem);
- if (menuBar == newMenuBar)
- return;
-
- menuBar = newMenuBar;
- emit q->menuBarChanged();
-}
-
-QQuickMenuBarItem::QQuickMenuBarItem(QQuickItem *parent)
- : QQuickAbstractButton(*(new QQuickMenuBarItemPrivate), parent)
-{
- setFocusPolicy(Qt::NoFocus);
- connect(this, &QQuickAbstractButton::clicked, this, &QQuickMenuBarItem::triggered);
-}
-
-/*!
- \qmlproperty Menu QtQuick.Controls::MenuBarItem::menuBar
- \readonly
-
- This property holds the menu bar that contains this item,
- or \c null if the item is not in a menu bar.
-*/
-QQuickMenuBar *QQuickMenuBarItem::menuBar() const
-{
- Q_D(const QQuickMenuBarItem);
- return d->menuBar;
-}
-
-/*!
- \qmlproperty Menu QtQuick.Controls::MenuBarItem::menu
-
- This property holds the menu that this item presents in a
- menu bar, or \c null if this item does not have a menu.
-*/
-QQuickMenu *QQuickMenuBarItem::menu() const
-{
- Q_D(const QQuickMenuBarItem);
- return d->menu;
-}
-
-void QQuickMenuBarItem::setMenu(QQuickMenu *menu)
-{
- Q_D(QQuickMenuBarItem);
- if (d->menu == menu)
- return;
-
- if (d->menu)
- disconnect(d->menu, &QQuickMenu::titleChanged, this, &QQuickAbstractButton::setText);
-
- if (menu) {
- setText(menu->title());
- menu->setY(height());
- menu->setParentItem(this);
- menu->setClosePolicy(QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutsideParent | QQuickPopup::CloseOnReleaseOutsideParent);
- connect(menu, &QQuickMenu::titleChanged, this, &QQuickAbstractButton::setText);
- }
-
- d->menu = menu;
- emit menuChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::MenuBarItem::highlighted
-
- This property holds whether the menu bar item is highlighted by the user.
-
- A menu bar item can be highlighted by mouse hover or keyboard navigation.
-
- The default value is \c false.
-*/
-bool QQuickMenuBarItem::isHighlighted() const
-{
- Q_D(const QQuickMenuBarItem);
- return d->highlighted;
-}
-
-void QQuickMenuBarItem::setHighlighted(bool highlighted)
-{
- Q_D(QQuickMenuBarItem);
- if (highlighted == d->highlighted)
- return;
-
- d->highlighted = highlighted;
- emit highlightedChanged();
-}
-
-void QQuickMenuBarItem::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickMenuBarItem);
- QQuickAbstractButton::geometryChanged(newGeometry, oldGeometry);
- if (d->menu)
- d->menu->setY(newGeometry.height());
-}
-
-QFont QQuickMenuBarItem::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::MenuBar);
-}
-
-QPalette QQuickMenuBarItem::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::MenuBar);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickMenuBarItem::accessibleRole() const
-{
- return QAccessible::MenuBar;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickmenubaritem_p.h b/src/quicktemplates2/qquickmenubaritem_p.h
deleted file mode 100644
index 86cd6a6a..00000000
--- a/src/quicktemplates2/qquickmenubaritem_p.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENUBARITEM_P_H
-#define QQUICKMENUBARITEM_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMenu;
-class QQuickMenuBar;
-class QQuickMenuBarItemPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickMenuBarItem : public QQuickAbstractButton
-{
- Q_OBJECT
- Q_PROPERTY(QQuickMenuBar *menuBar READ menuBar NOTIFY menuBarChanged FINAL)
- Q_PROPERTY(QQuickMenu *menu READ menu WRITE setMenu NOTIFY menuChanged FINAL)
- Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL)
-
-public:
- explicit QQuickMenuBarItem(QQuickItem *parent = nullptr);
-
- QQuickMenuBar *menuBar() const;
-
- QQuickMenu *menu() const;
- void setMenu(QQuickMenu *menu);
-
- bool isHighlighted() const;
- void setHighlighted(bool highlighted);
-
-Q_SIGNALS:
- void triggered();
- void menuBarChanged();
- void menuChanged();
- void highlightedChanged();
-
-protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickMenuBarItem)
- Q_DECLARE_PRIVATE(QQuickMenuBarItem)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMenuBarItem)
-
-#endif // QQUICKMENUBARITEM_P_H
diff --git a/src/quicktemplates2/qquickmenubaritem_p_p.h b/src/quicktemplates2/qquickmenubaritem_p_p.h
deleted file mode 100644
index a36e8949..00000000
--- a/src/quicktemplates2/qquickmenubaritem_p_p.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENUBARITEM_P_P_H
-#define QQUICKMENUBARITEM_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickmenubaritem_p.h>
-#include <QtQuickTemplates2/private/qquickabstractbutton_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMenu;
-class QQuickMenuBar;
-
-class QQuickMenuBarItemPrivate : public QQuickAbstractButtonPrivate
-{
- Q_DECLARE_PUBLIC(QQuickMenuBarItem)
-
-public:
- static QQuickMenuBarItemPrivate *get(QQuickMenuBarItem *item)
- {
- return item->d_func();
- }
-
- void setMenuBar(QQuickMenuBar *menuBar);
-
- bool highlighted = false;
- QQuickMenu *menu = nullptr;
- QQuickMenuBar *menuBar = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKMENUBARITEM_P_P_H
diff --git a/src/quicktemplates2/qquickmenuitem.cpp b/src/quicktemplates2/qquickmenuitem.cpp
deleted file mode 100644
index a7fc63e8..00000000
--- a/src/quicktemplates2/qquickmenuitem.cpp
+++ /dev/null
@@ -1,279 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickmenuitem_p.h"
-#include "qquickmenuitem_p_p.h"
-#include "qquickmenu_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQuick/private/qquickevents_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MenuItem
- \inherits AbstractButton
- \instantiates QQuickMenuItem
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-menus
- \brief Presents an item within a Menu.
-
- MenuItem is a convenience type that implements the AbstractButton API,
- providing a familiar way to respond to menu items being \l triggered, for
- example.
-
- MenuItem inherits its API from AbstractButton. For instance, you can set
- \l {AbstractButton::text}{text} and \l {Icons in Qt Quick Controls}{icon}
- using the AbstractButton API.
-
- \code
- Button {
- id: fileButton
- text: "File"
- onClicked: menu.open()
-
- Menu {
- id: menu
-
- MenuItem {
- text: "New..."
- onTriggered: document.reset()
- }
- MenuItem {
- text: "Open..."
- onTriggered: openDialog.open()
- }
- MenuItem {
- text: "Save"
- onTriggered: saveDialog.open()
- }
- }
- }
- \endcode
-
- \sa {Customizing Menu}, Menu, {Menu Controls}
-*/
-
-void QQuickMenuItemPrivate::setMenu(QQuickMenu *newMenu)
-{
- Q_Q(QQuickMenuItem);
- if (menu == newMenu)
- return;
-
- menu = newMenu;
- emit q->menuChanged();
-}
-
-void QQuickMenuItemPrivate::setSubMenu(QQuickMenu *newSubMenu)
-{
- Q_Q(QQuickMenuItem);
- if (subMenu == newSubMenu)
- return;
-
- if (subMenu) {
- QObject::disconnect(subMenu, &QQuickMenu::titleChanged, q, &QQuickAbstractButton::setText);
- QObjectPrivate::disconnect(subMenu, &QQuickPopup::enabledChanged, this, &QQuickMenuItemPrivate::updateEnabled);
- }
-
- if (newSubMenu) {
- QObject::connect(newSubMenu, &QQuickMenu::titleChanged, q, &QQuickAbstractButton::setText);
- QObjectPrivate::connect(newSubMenu, &QQuickPopup::enabledChanged, this, &QQuickMenuItemPrivate::updateEnabled);
- q->setText(newSubMenu->title());
- }
-
- subMenu = newSubMenu;
- updateEnabled();
- emit q->subMenuChanged();
-}
-
-void QQuickMenuItemPrivate::updateEnabled()
-{
- Q_Q(QQuickMenuItem);
- q->setEnabled(subMenu && subMenu->isEnabled());
-}
-
-static inline QString arrowName() { return QStringLiteral("arrow"); }
-
-void QQuickMenuItemPrivate::cancelArrow()
-{
- Q_Q(QQuickAbstractButton);
- quickCancelDeferred(q, arrowName());
-}
-
-void QQuickMenuItemPrivate::executeArrow(bool complete)
-{
- Q_Q(QQuickMenuItem);
- if (arrow.wasExecuted())
- return;
-
- if (!arrow || complete)
- quickBeginDeferred(q, arrowName(), arrow);
- if (complete)
- quickCompleteDeferred(q, arrowName(), arrow);
-}
-
-bool QQuickMenuItemPrivate::acceptKeyClick(Qt::Key key) const
-{
- return key == Qt::Key_Space || key == Qt::Key_Return || key == Qt::Key_Enter;
-}
-
-/*!
- \qmlsignal void QtQuick.Controls::MenuItem::triggered()
-
- This signal is emitted when the menu item is triggered by the user.
-*/
-
-QQuickMenuItem::QQuickMenuItem(QQuickItem *parent)
- : QQuickAbstractButton(*(new QQuickMenuItemPrivate), parent)
-{
- connect(this, &QQuickAbstractButton::clicked, this, &QQuickMenuItem::triggered);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::MenuItem::highlighted
-
- This property holds whether the menu item is highlighted by the user.
-
- A menu item can be highlighted by mouse hover or keyboard navigation.
-
- The default value is \c false.
-
- \sa Menu::currentIndex
-*/
-bool QQuickMenuItem::isHighlighted() const
-{
- Q_D(const QQuickMenuItem);
- return d->highlighted;
-}
-
-void QQuickMenuItem::setHighlighted(bool highlighted)
-{
- Q_D(QQuickMenuItem);
- if (highlighted == d->highlighted)
- return;
-
- d->highlighted = highlighted;
- emit highlightedChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty Item QtQuick.Controls::MenuItem::arrow
-
- This property holds the sub-menu arrow item.
-
- \sa {Customizing Menu}
-*/
-QQuickItem *QQuickMenuItem::arrow() const
-{
- QQuickMenuItemPrivate *d = const_cast<QQuickMenuItemPrivate *>(d_func());
- if (!d->arrow)
- d->executeArrow();
- return d->arrow;
-}
-
-void QQuickMenuItem::setArrow(QQuickItem *arrow)
-{
- Q_D(QQuickMenuItem);
- if (d->arrow == arrow)
- return;
-
- if (!d->arrow.isExecuting())
- d->cancelArrow();
-
- delete d->arrow;
- d->arrow = arrow;
- if (arrow && !arrow->parentItem())
- arrow->setParentItem(this);
- if (!d->arrow.isExecuting())
- emit arrowChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty Menu QtQuick.Controls::MenuItem::menu
- \readonly
-
- This property holds the menu that contains this menu item,
- or \c null if the item is not in a menu.
-*/
-QQuickMenu *QQuickMenuItem::menu() const
-{
- Q_D(const QQuickMenuItem);
- return d->menu;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty Menu QtQuick.Controls::MenuItem::subMenu
- \readonly
-
- This property holds the sub-menu that this item presents in
- the parent menu, or \c null if this item is not a sub-menu item.
-*/
-QQuickMenu *QQuickMenuItem::subMenu() const
-{
- Q_D(const QQuickMenuItem);
- return d->subMenu;
-}
-
-void QQuickMenuItem::componentComplete()
-{
- Q_D(QQuickMenuItem);
- d->executeArrow(true);
- QQuickAbstractButton::componentComplete();
-}
-
-QFont QQuickMenuItem::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::Menu);
-}
-
-QPalette QQuickMenuItem::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::Menu);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickMenuItem::accessibleRole() const
-{
- return QAccessible::MenuItem;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickmenuitem_p.h b/src/quicktemplates2/qquickmenuitem_p.h
deleted file mode 100644
index 7cffd97b..00000000
--- a/src/quicktemplates2/qquickmenuitem_p.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENUITEM_P_H
-#define QQUICKMENUITEM_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMenu;
-class QQuickMenuItemPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickMenuItem : public QQuickAbstractButton
-{
- Q_OBJECT
- Q_PROPERTY(bool highlighted READ isHighlighted WRITE setHighlighted NOTIFY highlightedChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(QQuickItem *arrow READ arrow WRITE setArrow NOTIFY arrowChanged FINAL REVISION 3)
- Q_PROPERTY(QQuickMenu *menu READ menu NOTIFY menuChanged FINAL REVISION 3)
- Q_PROPERTY(QQuickMenu *subMenu READ subMenu NOTIFY subMenuChanged FINAL REVISION 3)
- Q_CLASSINFO("DeferredPropertyNames", "arrow,background,contentItem,indicator")
-
-public:
- explicit QQuickMenuItem(QQuickItem *parent = nullptr);
-
- bool isHighlighted() const;
- void setHighlighted(bool highlighted);
-
- // 2.3 (Qt 5.10)
- QQuickItem *arrow() const;
- void setArrow(QQuickItem *arrow);
-
- QQuickMenu *menu() const;
- QQuickMenu *subMenu() const;
-
-Q_SIGNALS:
- void triggered();
- void highlightedChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void arrowChanged();
- Q_REVISION(3) void menuChanged();
- Q_REVISION(3) void subMenuChanged();
-
-protected:
- void componentComplete() override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickMenuItem)
- Q_DECLARE_PRIVATE(QQuickMenuItem)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMenuItem)
-
-#endif // QQUICKMENUITEM_P_H
diff --git a/src/quicktemplates2/qquickmenuitem_p_p.h b/src/quicktemplates2/qquickmenuitem_p_p.h
deleted file mode 100644
index 58a0ff20..00000000
--- a/src/quicktemplates2/qquickmenuitem_p_p.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENUITEM_P_P_H
-#define QQUICKMENUITEM_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickmenuitem_p.h>
-#include <QtQuickTemplates2/private/qquickabstractbutton_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickMenu;
-
-class QQuickMenuItemPrivate : public QQuickAbstractButtonPrivate
-{
- Q_DECLARE_PUBLIC(QQuickMenuItem)
-
-public:
- static QQuickMenuItemPrivate *get(QQuickMenuItem *item)
- {
- return item->d_func();
- }
-
- void setMenu(QQuickMenu *menu);
- void setSubMenu(QQuickMenu *subMenu);
-
- void updateEnabled();
-
- void cancelArrow();
- void executeArrow(bool complete = false);
-
- bool acceptKeyClick(Qt::Key key) const override;
-
- bool highlighted = false;
- QQuickDeferredPointer<QQuickItem> arrow;
- QQuickMenu *menu = nullptr;
- QQuickMenu *subMenu = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKMENUITEM_P_P_H
diff --git a/src/quicktemplates2/qquickmenuseparator.cpp b/src/quicktemplates2/qquickmenuseparator.cpp
deleted file mode 100644
index f6b8c4b2..00000000
--- a/src/quicktemplates2/qquickmenuseparator.cpp
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickmenuseparator_p.h"
-#include "qquickcontrol_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype MenuSeparator
- \inherits Control
- \instantiates QQuickMenuSeparator
- \inqmlmodule QtQuick.Controls
- \since 5.8
- \ingroup qtquickcontrols2-separators
- \brief Separates a group of items in a menu from adjacent items.
-
- MenuSeparator is used to visually distinguish between groups of items in a
- menu by separating them with a line.
-
- \image qtquickcontrols2-menuseparator.png
-
- \quotefromfile qtquickcontrols2-menuseparator-custom.qml
- \skipto import QtQuick
- \printuntil import QtQuick.Controls
- \skipto Menu
- \printto contentItem.parent: window
- \skipline contentItem.parent: window
- \printuntil text: qsTr("Exit")
- \printuntil }
- \printuntil }
-
- \sa {Customizing Menu}, Menu, {Separator Controls}
-*/
-
-QQuickMenuSeparator::QQuickMenuSeparator(QQuickItem *parent)
- : QQuickControl(parent)
-{
-}
-
-QFont QQuickMenuSeparator::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::Menu);
-}
-
-QPalette QQuickMenuSeparator::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::Menu);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickMenuSeparator::accessibleRole() const
-{
- return QAccessible::Separator;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickmenuseparator_p.h b/src/quicktemplates2/qquickmenuseparator_p.h
deleted file mode 100644
index 1e687fd0..00000000
--- a/src/quicktemplates2/qquickmenuseparator_p.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKMENUSEPARATOR_P_H
-#define QQUICKMENUSEPARATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickMenuSeparator : public QQuickControl
-{
- Q_OBJECT
-
-public:
- explicit QQuickMenuSeparator(QQuickItem *parent = nullptr);
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickMenuSeparator)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickMenuSeparator)
-
-#endif // QQUICKMENUSEPARATOR_P_H
diff --git a/src/quicktemplates2/qquickoverlay.cpp b/src/quicktemplates2/qquickoverlay.cpp
deleted file mode 100644
index 3f358706..00000000
--- a/src/quicktemplates2/qquickoverlay.cpp
+++ /dev/null
@@ -1,711 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickoverlay_p.h"
-#include "qquickoverlay_p_p.h"
-#include "qquickpopupitem_p_p.h"
-#include "qquickpopup_p_p.h"
-#include "qquickdrawer_p_p.h"
-#include "qquickapplicationwindow_p.h"
-#include <QtQml/qqmlinfo.h>
-#include <QtQml/qqmlproperty.h>
-#include <QtQml/qqmlcomponent.h>
-#include <algorithm>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Overlay
- \inherits Item
- \instantiates QQuickOverlay
- \inqmlmodule QtQuick.Controls
- \since 5.10
- \brief A window overlay for popups.
-
- Overlay provides a layer for popups, ensuring that popups are displayed above
- other content and that the background is dimmed when a \l {Popup::}{modal} or
- \l {Popup::dim}{dimmed} popup is visible.
-
- The overlay is an ordinary Item that covers the entire window. It can be used
- as a visual parent to position a popup in scene coordinates.
-
- \include qquickoverlay-popup-parent.qdocinc
-
- \sa ApplicationWindow
-*/
-
-QVector<QQuickPopup *> QQuickOverlayPrivate::stackingOrderPopups() const
-{
- const QList<QQuickItem *> children = paintOrderChildItems();
-
- QVector<QQuickPopup *> popups;
- popups.reserve(children.count());
-
- for (auto it = children.crbegin(), end = children.crend(); it != end; ++it) {
- QQuickPopup *popup = qobject_cast<QQuickPopup *>((*it)->parent());
- if (popup)
- popups += popup;
- }
-
- return popups;
-}
-
-QVector<QQuickDrawer *> QQuickOverlayPrivate::stackingOrderDrawers() const
-{
- QVector<QQuickDrawer *> sorted(allDrawers);
- std::sort(sorted.begin(), sorted.end(), [](const QQuickDrawer *one, const QQuickDrawer *another) {
- return one->z() > another->z();
- });
- return sorted;
-}
-
-void QQuickOverlayPrivate::itemGeometryChanged(QQuickItem *, QQuickGeometryChange, const QRectF &)
-{
- updateGeometry();
-}
-
-bool QQuickOverlayPrivate::startDrag(QEvent *event, const QPointF &pos)
-{
- Q_Q(QQuickOverlay);
- if (allDrawers.isEmpty())
- return false;
-
- // don't start dragging a drawer if a modal popup overlay is blocking (QTBUG-60602)
- QQuickItem *item = q->childAt(pos.x(), pos.y());
- if (item) {
- const auto popups = stackingOrderPopups();
- for (QQuickPopup *popup : popups) {
- QQuickPopupPrivate *p = QQuickPopupPrivate::get(popup);
- if (p->dimmer == item && popup->isVisible() && popup->isModal())
- return false;
- }
- }
-
- const QVector<QQuickDrawer *> drawers = stackingOrderDrawers();
- for (QQuickDrawer *drawer : drawers) {
- QQuickDrawerPrivate *p = QQuickDrawerPrivate::get(drawer);
- if (p->startDrag(event)) {
- setMouseGrabberPopup(drawer);
- return true;
- }
- }
-
- return false;
-}
-
-bool QQuickOverlayPrivate::handlePress(QQuickItem *source, QEvent *event, QQuickPopup *target)
-{
- if (target) {
- if (target->overlayEvent(source, event)) {
- setMouseGrabberPopup(target);
- return true;
- }
- return false;
- }
-
- switch (event->type()) {
- default: {
- if (mouseGrabberPopup)
- break;
-#if QT_CONFIG(quicktemplates2_multitouch)
- Q_FALLTHROUGH();
- case QEvent::TouchBegin:
- case QEvent::TouchUpdate:
- case QEvent::TouchEnd:
-#endif
- // allow non-modal popups to close themselves,
- // and non-dimming modal popups to block the event
- const auto popups = stackingOrderPopups();
- for (QQuickPopup *popup : popups) {
- if (popup->overlayEvent(source, event)) {
- setMouseGrabberPopup(popup);
- return true;
- }
- }
- break;
- }
- }
-
- event->ignore();
- return false;
-}
-
-bool QQuickOverlayPrivate::handleMove(QQuickItem *source, QEvent *event, QQuickPopup *target)
-{
- if (target)
- return target->overlayEvent(source, event);
- return false;
-}
-
-bool QQuickOverlayPrivate::handleRelease(QQuickItem *source, QEvent *event, QQuickPopup *target)
-{
- if (target) {
- setMouseGrabberPopup(nullptr);
- if (target->overlayEvent(source, event)) {
- setMouseGrabberPopup(nullptr);
- return true;
- }
- } else {
- const auto popups = stackingOrderPopups();
- for (QQuickPopup *popup : popups) {
- if (popup->overlayEvent(source, event))
- return true;
- }
- }
- return false;
-}
-
-bool QQuickOverlayPrivate::handleMouseEvent(QQuickItem *source, QMouseEvent *event, QQuickPopup *target)
-{
- switch (event->type()) {
- case QEvent::MouseButtonPress:
- if (!target && startDrag(event, event->windowPos()))
- return true;
- return handlePress(source, event, target);
- case QEvent::MouseMove:
- return handleMove(source, event, target ? target : mouseGrabberPopup.data());
- case QEvent::MouseButtonRelease:
- return handleRelease(source, event, target ? target : mouseGrabberPopup.data());
- default:
- break;
- }
- return false;
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-bool QQuickOverlayPrivate::handleTouchEvent(QQuickItem *source, QTouchEvent *event, QQuickPopup *target)
-{
- bool handled = false;
- switch (event->type()) {
- case QEvent::TouchBegin:
- case QEvent::TouchUpdate:
- case QEvent::TouchEnd:
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- switch (point.state()) {
- case Qt::TouchPointPressed:
- if (!target && startDrag(event, point.scenePos()))
- handled = true;
- else
- handled |= handlePress(source, event, target);
- break;
- case Qt::TouchPointMoved:
- handled |= handleMove(source, event, target ? target : mouseGrabberPopup.data());
- break;
- case Qt::TouchPointReleased:
- handled |= handleRelease(source, event, target ? target : mouseGrabberPopup.data());
- break;
- default:
- break;
- }
- }
- break;
-
- default:
- break;
- }
-
- return handled;
-}
-#endif
-
-void QQuickOverlayPrivate::addPopup(QQuickPopup *popup)
-{
- Q_Q(QQuickOverlay);
- allPopups += popup;
- if (QQuickDrawer *drawer = qobject_cast<QQuickDrawer *>(popup)) {
- allDrawers += drawer;
- q->setVisible(!allDrawers.isEmpty() || !q->childItems().isEmpty());
- }
-}
-
-void QQuickOverlayPrivate::removePopup(QQuickPopup *popup)
-{
- Q_Q(QQuickOverlay);
- allPopups.removeOne(popup);
- if (allDrawers.removeOne(static_cast<QQuickDrawer *>(popup)))
- q->setVisible(!allDrawers.isEmpty() || !q->childItems().isEmpty());
-}
-
-void QQuickOverlayPrivate::setMouseGrabberPopup(QQuickPopup *popup)
-{
- if (popup && !popup->isVisible())
- popup = nullptr;
- mouseGrabberPopup = popup;
-}
-
-void QQuickOverlayPrivate::updateGeometry()
-{
- Q_Q(QQuickOverlay);
- if (!window)
- return;
-
- QPointF pos;
- QSizeF size = window->size();
- qreal rotation = 0;
-
- switch (window->contentOrientation()) {
- case Qt::PrimaryOrientation:
- case Qt::PortraitOrientation:
- size = window->size();
- break;
- case Qt::LandscapeOrientation:
- rotation = 90;
- pos = QPointF((size.width() - size.height()) / 2, -(size.width() - size.height()) / 2);
- size.transpose();
- break;
- case Qt::InvertedPortraitOrientation:
- rotation = 180;
- break;
- case Qt::InvertedLandscapeOrientation:
- rotation = 270;
- pos = QPointF((size.width() - size.height()) / 2, -(size.width() - size.height()) / 2);
- size.transpose();
- break;
- default:
- break;
- }
-
- q->setSize(size);
- q->setPosition(pos);
- q->setRotation(rotation);
-}
-
-QQuickOverlay::QQuickOverlay(QQuickItem *parent)
- : QQuickItem(*(new QQuickOverlayPrivate), parent)
-{
- Q_D(QQuickOverlay);
- setZ(1000001); // DefaultWindowDecoration+1
- setAcceptedMouseButtons(Qt::AllButtons);
- setFiltersChildMouseEvents(true);
- setVisible(false);
-
- if (parent) {
- d->updateGeometry();
- QQuickItemPrivate::get(parent)->addItemChangeListener(d, QQuickItemPrivate::Geometry);
- if (QQuickWindow *window = parent->window()) {
- window->installEventFilter(this);
- QObjectPrivate::connect(window, &QWindow::contentOrientationChanged, d, &QQuickOverlayPrivate::updateGeometry);
- }
- }
-}
-
-QQuickOverlay::~QQuickOverlay()
-{
- Q_D(QQuickOverlay);
- if (QQuickItem *parent = parentItem())
- QQuickItemPrivate::get(parent)->removeItemChangeListener(d, QQuickItemPrivate::Geometry);
-}
-
-QQmlComponent *QQuickOverlay::modal() const
-{
- Q_D(const QQuickOverlay);
- return d->modal;
-}
-
-void QQuickOverlay::setModal(QQmlComponent *modal)
-{
- Q_D(QQuickOverlay);
- if (d->modal == modal)
- return;
-
- delete d->modal;
- d->modal = modal;
- emit modalChanged();
-}
-
-QQmlComponent *QQuickOverlay::modeless() const
-{
- Q_D(const QQuickOverlay);
- return d->modeless;
-}
-
-void QQuickOverlay::setModeless(QQmlComponent *modeless)
-{
- Q_D(QQuickOverlay);
- if (d->modeless == modeless)
- return;
-
- delete d->modeless;
- d->modeless = modeless;
- emit modelessChanged();
-}
-
-QQuickOverlay *QQuickOverlay::overlay(QQuickWindow *window)
-{
- if (!window)
- return nullptr;
-
- QQuickApplicationWindow *applicationWindow = qobject_cast<QQuickApplicationWindow *>(window);
- if (applicationWindow)
- return applicationWindow->overlay();
-
- const char *name = "_q_QQuickOverlay";
- QQuickOverlay *overlay = window->property(name).value<QQuickOverlay *>();
- if (!overlay) {
- QQuickItem *content = window->contentItem();
- // Do not re-create the overlay if the window is being destroyed
- // and thus, its content item no longer has a window associated.
- if (content && content->window()) {
- overlay = new QQuickOverlay(window->contentItem());
- window->setProperty(name, QVariant::fromValue(overlay));
- }
- }
- return overlay;
-}
-
-QQuickOverlayAttached *QQuickOverlay::qmlAttachedProperties(QObject *object)
-{
- return new QQuickOverlayAttached(object);
-}
-
-void QQuickOverlay::itemChange(ItemChange change, const ItemChangeData &data)
-{
- Q_D(QQuickOverlay);
- QQuickItem::itemChange(change, data);
-
- if (change == ItemChildAddedChange || change == ItemChildRemovedChange)
- setVisible(!d->allDrawers.isEmpty() || !childItems().isEmpty());
-}
-
-void QQuickOverlay::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickOverlay);
- QQuickItem::geometryChanged(newGeometry, oldGeometry);
- for (QQuickPopup *popup : qAsConst(d->allPopups))
- QQuickPopupPrivate::get(popup)->resizeOverlay();
-}
-
-void QQuickOverlay::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickOverlay);
- d->handleMouseEvent(this, event);
-}
-
-void QQuickOverlay::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickOverlay);
- d->handleMouseEvent(this, event);
-}
-
-void QQuickOverlay::mouseReleaseEvent(QMouseEvent *event)
-{
- Q_D(QQuickOverlay);
- d->handleMouseEvent(this, event);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickOverlay::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickOverlay);
- d->handleTouchEvent(this, event);
-}
-#endif
-
-#if QT_CONFIG(wheelevent)
-void QQuickOverlay::wheelEvent(QWheelEvent *event)
-{
- Q_D(QQuickOverlay);
- if (d->mouseGrabberPopup) {
- d->mouseGrabberPopup->overlayEvent(this, event);
- return;
- } else {
- const auto popups = d->stackingOrderPopups();
- for (QQuickPopup *popup : popups) {
- if (popup->overlayEvent(this, event))
- return;
- }
- }
- event->ignore();
-}
-#endif
-
-bool QQuickOverlay::childMouseEventFilter(QQuickItem *item, QEvent *event)
-{
- Q_D(QQuickOverlay);
- const auto popups = d->stackingOrderPopups();
- for (QQuickPopup *popup : popups) {
- QQuickPopupPrivate *p = QQuickPopupPrivate::get(popup);
-
- // Stop filtering overlay events when reaching a popup item or an item
- // that is inside the popup. Let the popup content handle its events.
- if (item == p->popupItem || p->popupItem->isAncestorOf(item))
- break;
-
- // Let the popup try closing itself when pressing or releasing over its
- // background dimming OR over another popup underneath, in case the popup
- // does not have background dimming.
- if (item == p->dimmer || !p->popupItem->isAncestorOf(item)) {
- switch (event->type()) {
-#if QT_CONFIG(quicktemplates2_multitouch)
- case QEvent::TouchBegin:
- case QEvent::TouchUpdate:
- case QEvent::TouchEnd:
- return d->handleTouchEvent(item, static_cast<QTouchEvent *>(event), popup);
-#endif
-
- case QEvent::MouseButtonPress:
- case QEvent::MouseMove:
- case QEvent::MouseButtonRelease:
- return d->handleMouseEvent(item, static_cast<QMouseEvent *>(event), popup);
-
- default:
- break;
- }
- }
- }
- return false;
-}
-
-bool QQuickOverlay::eventFilter(QObject *object, QEvent *event)
-{
- Q_D(QQuickOverlay);
- if (!isVisible() || object != d->window)
- return false;
-
- switch (event->type()) {
-#if QT_CONFIG(quicktemplates2_multitouch)
- case QEvent::TouchBegin:
- case QEvent::TouchUpdate:
- case QEvent::TouchEnd:
- if (static_cast<QTouchEvent *>(event)->touchPointStates() & Qt::TouchPointPressed)
- emit pressed();
- if (static_cast<QTouchEvent *>(event)->touchPointStates() & Qt::TouchPointReleased)
- emit released();
-
- // allow non-modal popups to close on touch release outside
- if (!d->mouseGrabberPopup) {
- for (const QTouchEvent::TouchPoint &point : static_cast<QTouchEvent *>(event)->touchPoints()) {
- if (point.state() == Qt::TouchPointReleased) {
- if (d->handleRelease(d->window->contentItem(), event, nullptr))
- break;
- }
- }
- }
-
- QQuickWindowPrivate::get(d->window)->handleTouchEvent(static_cast<QTouchEvent *>(event));
-
- // If a touch event hasn't been accepted after being delivered, there
- // were no items interested in touch events at any of the touch points.
- // Make sure to accept the touch event in order to receive the consequent
- // touch events, to be able to close non-modal popups on release outside.
- event->accept();
- return true;
-#endif
-
- case QEvent::MouseButtonPress:
-#if QT_CONFIG(quicktemplates2_multitouch)
- // do not emit pressed() twice when mouse events have been synthesized from touch events
- if (static_cast<QMouseEvent *>(event)->source() == Qt::MouseEventNotSynthesized)
-#endif
- emit pressed();
-
- QQuickWindowPrivate::get(d->window)->handleMouseEvent(static_cast<QMouseEvent *>(event));
-
- // If a mouse event hasn't been accepted after being delivered, there
- // was no item interested in mouse events at the mouse point. Make sure
- // to accept the mouse event in order to receive the consequent mouse
- // events, to be able to close non-modal popups on release outside.
- event->accept();
- return true;
-
- case QEvent::MouseButtonRelease:
-#if QT_CONFIG(quicktemplates2_multitouch)
- // do not emit released() twice when mouse events have been synthesized from touch events
- if (static_cast<QMouseEvent *>(event)->source() == Qt::MouseEventNotSynthesized)
-#endif
- emit released();
-
- // allow non-modal popups to close on mouse release outside
- if (!d->mouseGrabberPopup)
- d->handleRelease(d->window->contentItem(), event, nullptr);
- break;
-
- default:
- break;
- }
-
- return false;
-}
-
-class QQuickOverlayAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickOverlayAttached)
-
-public:
- void setWindow(QQuickWindow *newWindow);
-
- QQuickWindow *window = nullptr;
- QQmlComponent *modal = nullptr;
- QQmlComponent *modeless = nullptr;
-};
-
-void QQuickOverlayAttachedPrivate::setWindow(QQuickWindow *newWindow)
-{
- Q_Q(QQuickOverlayAttached);
- if (window == newWindow)
- return;
-
- if (QQuickOverlay *oldOverlay = QQuickOverlay::overlay(window)) {
- QObject::disconnect(oldOverlay, &QQuickOverlay::pressed, q, &QQuickOverlayAttached::pressed);
- QObject::disconnect(oldOverlay, &QQuickOverlay::released, q, &QQuickOverlayAttached::released);
- }
-
- if (QQuickOverlay *newOverlay = QQuickOverlay::overlay(newWindow)) {
- QObject::connect(newOverlay, &QQuickOverlay::pressed, q, &QQuickOverlayAttached::pressed);
- QObject::connect(newOverlay, &QQuickOverlay::released, q, &QQuickOverlayAttached::released);
- }
-
- window = newWindow;
- emit q->overlayChanged();
-}
-
-/*!
- \qmlattachedsignal QtQuick.Controls::Overlay::pressed()
-
- This attached signal is emitted when the overlay is pressed by the user while
- a popup is visible.
-
- The signal can be attached to any item, popup, or window. When attached to an
- item or a popup, the signal is only emitted if the item or popup is in a window.
-*/
-
-/*!
- \qmlattachedsignal QtQuick.Controls::Overlay::released()
-
- This attached signal is emitted when the overlay is released by the user while
- a popup is visible.
-
- The signal can be attached to any item, popup, or window. When attached to an
- item or a popup, the signal is only emitted if the item or popup is in a window.
-*/
-
-QQuickOverlayAttached::QQuickOverlayAttached(QObject *parent)
- : QObject(*(new QQuickOverlayAttachedPrivate), parent)
-{
- Q_D(QQuickOverlayAttached);
- if (QQuickItem *item = qobject_cast<QQuickItem *>(parent)) {
- d->setWindow(item->window());
- QObjectPrivate::connect(item, &QQuickItem::windowChanged, d, &QQuickOverlayAttachedPrivate::setWindow);
- } else if (QQuickPopup *popup = qobject_cast<QQuickPopup *>(parent)) {
- d->setWindow(popup->window());
- QObjectPrivate::connect(popup, &QQuickPopup::windowChanged, d, &QQuickOverlayAttachedPrivate::setWindow);
- } else {
- d->setWindow(qobject_cast<QQuickWindow *>(parent));
- }
-}
-
-/*!
- \qmlattachedproperty Overlay QtQuick.Controls::Overlay::overlay
- \readonly
-
- This attached property holds the window overlay item.
-
- The property can be attached to any item, popup, or window. When attached to an
- item or a popup, the value is \c null if the item or popup is not in a window.
-*/
-QQuickOverlay *QQuickOverlayAttached::overlay() const
-{
- Q_D(const QQuickOverlayAttached);
- return QQuickOverlay::overlay(d->window);
-}
-
-/*!
- \qmlattachedproperty Component QtQuick.Controls::Overlay::modal
-
- This attached property holds a component to use as a visual item that implements
- background dimming for modal popups. It is created for and stacked below visible
- modal popups.
-
- The property can be attached to any popup.
-
- For example, to change the color of the background dimming for a modal
- popup, the following code can be used:
-
- \snippet qtquickcontrols2-overlay-modal.qml 1
-
- \sa Popup::modal
-*/
-QQmlComponent *QQuickOverlayAttached::modal() const
-{
- Q_D(const QQuickOverlayAttached);
- return d->modal;
-}
-
-void QQuickOverlayAttached::setModal(QQmlComponent *modal)
-{
- Q_D(QQuickOverlayAttached);
- if (d->modal == modal)
- return;
-
- delete d->modal;
- d->modal = modal;
- emit modalChanged();
-}
-
-/*!
- \qmlattachedproperty Component QtQuick.Controls::Overlay::modeless
-
- This attached property holds a component to use as a visual item that implements
- background dimming for modeless popups. It is created for and stacked below visible
- dimming popups.
-
- The property can be attached to any popup.
-
- For example, to change the color of the background dimming for a modeless
- popup, the following code can be used:
-
- \snippet qtquickcontrols2-overlay-modeless.qml 1
-
- \sa Popup::dim
-*/
-QQmlComponent *QQuickOverlayAttached::modeless() const
-{
- Q_D(const QQuickOverlayAttached);
- return d->modeless;
-}
-
-void QQuickOverlayAttached::setModeless(QQmlComponent *modeless)
-{
- Q_D(QQuickOverlayAttached);
- if (d->modeless == modeless)
- return;
-
- delete d->modeless;
- d->modeless = modeless;
- emit modelessChanged();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickoverlay_p.h b/src/quicktemplates2/qquickoverlay_p.h
deleted file mode 100644
index 1d238163..00000000
--- a/src/quicktemplates2/qquickoverlay_p.h
+++ /dev/null
@@ -1,143 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKOVERLAY_P_H
-#define QQUICKOVERLAY_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/qquickitem.h>
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlComponent;
-class QQuickOverlayPrivate;
-class QQuickOverlayAttached;
-class QQuickOverlayAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickOverlay : public QQuickItem
-{
- Q_OBJECT
- Q_PROPERTY(QQmlComponent *modal READ modal WRITE setModal NOTIFY modalChanged FINAL)
- Q_PROPERTY(QQmlComponent *modeless READ modeless WRITE setModeless NOTIFY modelessChanged FINAL)
-
-public:
- explicit QQuickOverlay(QQuickItem *parent = nullptr);
- ~QQuickOverlay();
-
- QQmlComponent *modal() const;
- void setModal(QQmlComponent *modal);
-
- QQmlComponent *modeless() const;
- void setModeless(QQmlComponent *modeless);
-
- static QQuickOverlay *overlay(QQuickWindow *window);
-
- static QQuickOverlayAttached *qmlAttachedProperties(QObject *object);
-
-Q_SIGNALS:
- void modalChanged();
- void modelessChanged();
- void pressed();
- void released();
-
-protected:
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
- void mousePressEvent(QMouseEvent *event) override;
- void mouseMoveEvent(QMouseEvent *event) override;
- void mouseReleaseEvent(QMouseEvent *event) override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-#if QT_CONFIG(wheelevent)
- void wheelEvent(QWheelEvent *event) override;
-#endif
- bool childMouseEventFilter(QQuickItem *item, QEvent *event) override;
- bool eventFilter(QObject *object, QEvent *event) override;
-
-private:
- Q_DISABLE_COPY(QQuickOverlay)
- Q_DECLARE_PRIVATE(QQuickOverlay)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickOverlayAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickOverlay *overlay READ overlay NOTIFY overlayChanged FINAL)
- Q_PROPERTY(QQmlComponent *modal READ modal WRITE setModal NOTIFY modalChanged FINAL)
- Q_PROPERTY(QQmlComponent *modeless READ modeless WRITE setModeless NOTIFY modelessChanged FINAL)
-
-public:
- explicit QQuickOverlayAttached(QObject *parent = nullptr);
-
- QQuickOverlay *overlay() const;
-
- QQmlComponent *modal() const;
- void setModal(QQmlComponent *modal);
-
- QQmlComponent *modeless() const;
- void setModeless(QQmlComponent *modeless);
-
-Q_SIGNALS:
- void overlayChanged();
- void modalChanged();
- void modelessChanged();
- void pressed();
- void released();
-
-private:
- Q_DISABLE_COPY(QQuickOverlayAttached)
- Q_DECLARE_PRIVATE(QQuickOverlayAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickOverlay)
-QML_DECLARE_TYPEINFO(QQuickOverlay, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKOVERLAY_P_H
diff --git a/src/quicktemplates2/qquickoverlay_p_p.h b/src/quicktemplates2/qquickoverlay_p_p.h
deleted file mode 100644
index b445f87a..00000000
--- a/src/quicktemplates2/qquickoverlay_p_p.h
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKOVERLAY_P_P_H
-#define QQUICKOVERLAY_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickoverlay_p.h>
-
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPopup;
-class QQuickDrawer;
-
-class QQuickOverlayPrivate : public QQuickItemPrivate, public QQuickItemChangeListener
-{
- Q_DECLARE_PUBLIC(QQuickOverlay)
-
-public:
- static QQuickOverlayPrivate *get(QQuickOverlay *overlay)
- {
- return overlay->d_func();
- }
-
- bool startDrag(QEvent *event, const QPointF &pos);
- bool handlePress(QQuickItem *source, QEvent *event, QQuickPopup *target);
- bool handleMove(QQuickItem *source, QEvent *event, QQuickPopup *target);
- bool handleRelease(QQuickItem *source, QEvent *event, QQuickPopup *target);
-
- bool handleMouseEvent(QQuickItem *source, QMouseEvent *event, QQuickPopup *target = nullptr);
-#if QT_CONFIG(quicktemplates2_multitouch)
- bool handleTouchEvent(QQuickItem *source, QTouchEvent *event, QQuickPopup *target = nullptr);
-#endif
-
- void addPopup(QQuickPopup *popup);
- void removePopup(QQuickPopup *popup);
- void setMouseGrabberPopup(QQuickPopup *popup);
-
- QVector<QQuickPopup *> stackingOrderPopups() const;
- QVector<QQuickDrawer *> stackingOrderDrawers() const;
-
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
-
- void updateGeometry();
-
- QQmlComponent *modal = nullptr;
- QQmlComponent *modeless = nullptr;
- QVector<QQuickPopup *> allPopups;
- QVector<QQuickDrawer *> allDrawers;
- QPointer<QQuickPopup> mouseGrabberPopup;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKOVERLAY_P_P_H
diff --git a/src/quicktemplates2/qquickpage.cpp b/src/quicktemplates2/qquickpage.cpp
deleted file mode 100644
index 78bae921..00000000
--- a/src/quicktemplates2/qquickpage.cpp
+++ /dev/null
@@ -1,480 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpage_p.h"
-#include "qquickpage_p_p.h"
-#include "qquicktabbar_p.h"
-#include "qquicktoolbar_p.h"
-#include "qquickdialogbuttonbox_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Page
- \inherits Pane
- \instantiates QQuickPage
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-containers
- \ingroup qtquickcontrols2-focusscopes
- \brief Styled page control with support for a header and footer.
-
- Page is a container control which makes it convenient to add
- a \l header and \l footer item to a page.
-
- \image qtquickcontrols2-page-wireframe.png
-
- The following example snippet illustrates how to use a page-specific
- toolbar header and an application-wide tabbar footer.
-
- \qml
- import QtQuick.Controls 2.12
-
- ApplicationWindow {
- visible: true
-
- StackView {
- anchors.fill: parent
-
- initialItem: Page {
- header: ToolBar {
- // ...
- }
- }
- }
-
- footer: TabBar {
- // ...
- }
- }
- \endqml
-
- \sa ApplicationWindow, {Container Controls},
- {Focus Management in Qt Quick Controls}
-*/
-
-static const QQuickItemPrivate::ChangeTypes LayoutChanges = QQuickItemPrivate::Geometry | QQuickItemPrivate::Visibility | QQuickItemPrivate::Destroyed
- | QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight;
-
-namespace {
- enum Position {
- Header,
- Footer
- };
-
- Q_STATIC_ASSERT(int(Header) == int(QQuickTabBar::Header));
- Q_STATIC_ASSERT(int(Footer) == int(QQuickTabBar::Footer));
-
- Q_STATIC_ASSERT(int(Header) == int(QQuickToolBar::Header));
- Q_STATIC_ASSERT(int(Footer) == int(QQuickToolBar::Footer));
-
- Q_STATIC_ASSERT(int(Header) == int(QQuickDialogButtonBox::Header));
- Q_STATIC_ASSERT(int(Footer) == int(QQuickDialogButtonBox::Footer));
-
- static void setPos(QQuickItem *item, Position position)
- {
- if (QQuickToolBar *toolBar = qobject_cast<QQuickToolBar *>(item))
- toolBar->setPosition(static_cast<QQuickToolBar::Position>(position));
- else if (QQuickTabBar *tabBar = qobject_cast<QQuickTabBar *>(item))
- tabBar->setPosition(static_cast<QQuickTabBar::Position>(position));
- else if (QQuickDialogButtonBox *buttonBox = qobject_cast<QQuickDialogButtonBox *>(item))
- buttonBox->setPosition(static_cast<QQuickDialogButtonBox::Position>(position));
- }
-}
-
-void QQuickPagePrivate::relayout()
-{
- Q_Q(QQuickPage);
- const qreal hh = header && header->isVisible() ? header->height() : 0;
- const qreal fh = footer && footer->isVisible() ? footer->height() : 0;
- const qreal hsp = hh > 0 ? spacing : 0;
- const qreal fsp = fh > 0 ? spacing : 0;
-
- if (contentItem) {
- contentItem->setY(q->topPadding() + hh + hsp);
- contentItem->setX(q->leftPadding());
- contentItem->setWidth(q->availableWidth());
- contentItem->setHeight(q->availableHeight() - hh - fh - hsp - fsp);
- }
-
- if (header)
- header->setWidth(q->width());
-
- if (footer) {
- footer->setY(q->height() - footer->height());
- footer->setWidth(q->width());
- }
-}
-
-void QQuickPagePrivate::resizeContent()
-{
- relayout();
-}
-
-void QQuickPagePrivate::itemVisibilityChanged(QQuickItem *item)
-{
- Q_Q(QQuickPage);
- QQuickPanePrivate::itemVisibilityChanged(item);
- if (item == header) {
- QBoolBlocker signalGuard(emittingImplicitSizeChangedSignals);
- emit q->implicitHeaderWidthChanged();
- emit q->implicitHeaderHeightChanged();
- relayout();
- } else if (item == footer) {
- QBoolBlocker signalGuard(emittingImplicitSizeChangedSignals);
- emit q->implicitFooterWidthChanged();
- emit q->implicitFooterHeightChanged();
- relayout();
- }
-}
-
-void QQuickPagePrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickPage);
- QQuickPanePrivate::itemImplicitWidthChanged(item);
-
- // Avoid binding loops by skipping signal emission if we're already doing it.
- if (emittingImplicitSizeChangedSignals)
- return;
-
- if (item == header)
- emit q->implicitHeaderWidthChanged();
- else if (item == footer)
- emit q->implicitFooterWidthChanged();
-}
-
-void QQuickPagePrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickPage);
- QQuickPanePrivate::itemImplicitHeightChanged(item);
-
- // Avoid binding loops by skipping signal emission if we're already doing it.
- if (emittingImplicitSizeChangedSignals)
- return;
-
- if (item == header)
- emit q->implicitHeaderHeightChanged();
- else if (item == footer)
- emit q->implicitFooterHeightChanged();
-}
-
-void QQuickPagePrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF & diff)
-{
- QQuickPanePrivate::itemGeometryChanged(item, change, diff);
- if (item == header || item == footer)
- relayout();
-}
-
-void QQuickPagePrivate::itemDestroyed(QQuickItem *item)
-{
- Q_Q(QQuickPage);
- QQuickPanePrivate::itemDestroyed(item);
- if (item == header) {
- header = nullptr;
- relayout();
- emit q->implicitHeaderWidthChanged();
- emit q->implicitHeaderHeightChanged();
- emit q->headerChanged();
- } else if (item == footer) {
- footer = nullptr;
- relayout();
- emit q->implicitFooterWidthChanged();
- emit q->implicitFooterHeightChanged();
- emit q->footerChanged();
- }
-}
-
-QQuickPage::QQuickPage(QQuickItem *parent)
- : QQuickPane(*(new QQuickPagePrivate), parent)
-{
-}
-
-QQuickPage::QQuickPage(QQuickPagePrivate &dd, QQuickItem *parent)
- : QQuickPane(dd, parent)
-{
-}
-
-QQuickPage::~QQuickPage()
-{
- Q_D(QQuickPage);
- if (d->header)
- QQuickItemPrivate::get(d->header)->removeItemChangeListener(d, LayoutChanges);
- if (d->footer)
- QQuickItemPrivate::get(d->footer)->removeItemChangeListener(d, LayoutChanges);
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::Page::title
-
- This property holds the page title.
-
- The title is often displayed at the top of a page to give
- the user context about the page they are viewing.
-
- \code
- ApplicationWindow {
- visible: true
- width: 400
- height: 400
-
- header: Label {
- text: view.currentItem.title
- horizontalAlignment: Text.AlignHCenter
- }
-
- SwipeView {
- id: view
- anchors.fill: parent
-
- Page {
- title: qsTr("Home")
- }
- Page {
- title: qsTr("Discover")
- }
- Page {
- title: qsTr("Activity")
- }
- }
- }
- \endcode
-*/
-
-QString QQuickPage::title() const
-{
- return d_func()->title;
-}
-
-void QQuickPage::setTitle(const QString &title)
-{
- Q_D(QQuickPage);
- if (d->title == title)
- return;
-
- d->title = title;
- setAccessibleName(title);
- emit titleChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Page::header
-
- This property holds the page header item. The header item is positioned to
- the top, and resized to the width of the page. The default value is \c null.
-
- \note Assigning a ToolBar, TabBar, or DialogButtonBox as a page header
- automatically sets the respective \l ToolBar::position, \l TabBar::position,
- or \l DialogButtonBox::position property to \c Header.
-
- \sa footer, ApplicationWindow::header
-*/
-QQuickItem *QQuickPage::header() const
-{
- Q_D(const QQuickPage);
- return d->header;
-}
-
-void QQuickPage::setHeader(QQuickItem *header)
-{
- Q_D(QQuickPage);
- if (d->header == header)
- return;
-
- if (d->header) {
- QQuickItemPrivate::get(d->header)->removeItemChangeListener(d, LayoutChanges);
- d->header->setParentItem(nullptr);
- }
- d->header = header;
- if (header) {
- header->setParentItem(this);
- QQuickItemPrivate::get(header)->addItemChangeListener(d, LayoutChanges);
- if (qFuzzyIsNull(header->z()))
- header->setZ(1);
- setPos(header, Header);
- }
- if (isComponentComplete())
- d->relayout();
- emit headerChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Page::footer
-
- This property holds the page footer item. The footer item is positioned to
- the bottom, and resized to the width of the page. The default value is \c null.
-
- \note Assigning a ToolBar, TabBar, or DialogButtonBox as a page footer
- automatically sets the respective \l ToolBar::position, \l TabBar::position,
- or \l DialogButtonBox::position property to \c Footer.
-
- \sa header, ApplicationWindow::footer
-*/
-QQuickItem *QQuickPage::footer() const
-{
- Q_D(const QQuickPage);
- return d->footer;
-}
-
-void QQuickPage::setFooter(QQuickItem *footer)
-{
- Q_D(QQuickPage);
- if (d->footer == footer)
- return;
-
- if (d->footer) {
- QQuickItemPrivate::get(d->footer)->removeItemChangeListener(d, LayoutChanges);
- d->footer->setParentItem(nullptr);
- }
- d->footer = footer;
- if (footer) {
- footer->setParentItem(this);
- QQuickItemPrivate::get(footer)->addItemChangeListener(d, LayoutChanges);
- if (qFuzzyIsNull(footer->z()))
- footer->setZ(1);
- setPos(footer, Footer);
- }
- if (isComponentComplete())
- d->relayout();
- emit footerChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Page::implicitHeaderWidth
- \readonly
-
- This property holds the implicit header width.
-
- The value is equal to \c {header && header.visible ? header.implicitWidth : 0}.
-
- \sa implicitHeaderHeight, implicitFooterWidth
-*/
-qreal QQuickPage::implicitHeaderWidth() const
-{
- Q_D(const QQuickPage);
- if (!d->header || !d->header->isVisible())
- return 0;
- return d->header->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Page::implicitHeaderHeight
- \readonly
-
- This property holds the implicit header height.
-
- The value is equal to \c {header && header.visible ? header.implicitHeight : 0}.
-
- \sa implicitHeaderWidth, implicitFooterHeight
-*/
-qreal QQuickPage::implicitHeaderHeight() const
-{
- Q_D(const QQuickPage);
- if (!d->header || !d->header->isVisible())
- return 0;
- return d->header->implicitHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Page::implicitFooterWidth
- \readonly
-
- This property holds the implicit footer width.
-
- The value is equal to \c {footer && footer.visible ? footer.implicitWidth : 0}.
-
- \sa implicitFooterHeight, implicitHeaderWidth
-*/
-qreal QQuickPage::implicitFooterWidth() const
-{
- Q_D(const QQuickPage);
- if (!d->footer || !d->footer->isVisible())
- return 0;
- return d->footer->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Page::implicitFooterHeight
- \readonly
-
- This property holds the implicit footer height.
-
- The value is equal to \c {footer && footer.visible ? footer.implicitHeight : 0}.
-
- \sa implicitFooterWidth, implicitHeaderHeight
-*/
-qreal QQuickPage::implicitFooterHeight() const
-{
- Q_D(const QQuickPage);
- if (!d->footer || !d->footer->isVisible())
- return 0;
- return d->footer->implicitHeight();
-}
-
-void QQuickPage::componentComplete()
-{
- Q_D(QQuickPage);
- QQuickPane::componentComplete();
- d->relayout();
-}
-
-void QQuickPage::spacingChange(qreal newSpacing, qreal oldSpacing)
-{
- Q_D(QQuickPage);
- QQuickPane::spacingChange(newSpacing, oldSpacing);
- d->relayout();
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickPage::accessibleRole() const
-{
- return QAccessible::PageTab;
-}
-
-void QQuickPage::accessibilityActiveChanged(bool active)
-{
- Q_D(QQuickPage);
- QQuickPane::accessibilityActiveChanged(active);
-
- if (active)
- setAccessibleName(d->title);
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickpage_p.h b/src/quicktemplates2/qquickpage_p.h
deleted file mode 100644
index b7888ad6..00000000
--- a/src/quicktemplates2/qquickpage_p.h
+++ /dev/null
@@ -1,124 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPAGE_P_H
-#define QQUICKPAGE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpane_p.h>
-#include <QtQml/qqmllist.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPagePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPage : public QQuickPane
-{
- Q_OBJECT
- Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged FINAL)
- Q_PROPERTY(QQuickItem *header READ header WRITE setHeader NOTIFY headerChanged FINAL)
- Q_PROPERTY(QQuickItem *footer READ footer WRITE setFooter NOTIFY footerChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth NOTIFY contentWidthChanged FINAL REVISION 1)
- Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight NOTIFY contentHeightChanged FINAL REVISION 1)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal implicitHeaderWidth READ implicitHeaderWidth NOTIFY implicitHeaderWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitHeaderHeight READ implicitHeaderHeight NOTIFY implicitHeaderHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitFooterWidth READ implicitFooterWidth NOTIFY implicitFooterWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitFooterHeight READ implicitFooterHeight NOTIFY implicitFooterHeightChanged FINAL REVISION 5)
-
-public:
- explicit QQuickPage(QQuickItem *parent = nullptr);
- ~QQuickPage();
-
- QString title() const;
- void setTitle(const QString &title);
-
- QQuickItem *header() const;
- void setHeader(QQuickItem *header);
-
- QQuickItem *footer() const;
- void setFooter(QQuickItem *footer);
-
- // 2.5 (Qt 5.12)
- qreal implicitHeaderWidth() const;
- qreal implicitHeaderHeight() const;
-
- qreal implicitFooterWidth() const;
- qreal implicitFooterHeight() const;
-
-Q_SIGNALS:
- void titleChanged();
- void headerChanged();
- void footerChanged();
- // 2.5 (Qt 5.12)
- void implicitHeaderWidthChanged();
- void implicitHeaderHeightChanged();
- void implicitFooterWidthChanged();
- void implicitFooterHeightChanged();
-
-protected:
- QQuickPage(QQuickPagePrivate &dd, QQuickItem *parent);
-
- void componentComplete() override;
-
- void spacingChange(qreal newSpacing, qreal oldSpacing) override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
- void accessibilityActiveChanged(bool active) override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickPage)
- Q_DECLARE_PRIVATE(QQuickPage)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPage)
-
-#endif // QQUICKPAGE_P_H
diff --git a/src/quicktemplates2/qquickpage_p_p.h b/src/quicktemplates2/qquickpage_p_p.h
deleted file mode 100644
index 6c8b0371..00000000
--- a/src/quicktemplates2/qquickpage_p_p.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPAGE_P_P_H
-#define QQUICKPAGE_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpane_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPane;
-
-class QQuickPagePrivate : public QQuickPanePrivate
-{
- Q_DECLARE_PUBLIC(QQuickPage)
-
-public:
- void relayout();
- void resizeContent() override;
-
- void itemVisibilityChanged(QQuickItem *item) override;
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF & diff) override;
- void itemDestroyed(QQuickItem *item) override;
-
- QString title;
- QQuickItem *header = nullptr;
- QQuickItem *footer = nullptr;
- bool emittingImplicitSizeChangedSignals = false;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPAGE_P_P_H
diff --git a/src/quicktemplates2/qquickpageindicator.cpp b/src/quicktemplates2/qquickpageindicator.cpp
deleted file mode 100644
index d29158a8..00000000
--- a/src/quicktemplates2/qquickpageindicator.cpp
+++ /dev/null
@@ -1,346 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpageindicator_p.h"
-#include "qquickcontrol_p_p.h"
-
-#include <QtCore/qmath.h>
-#include <QtQuick/private/qquickitem_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype PageIndicator
- \inherits Control
- \instantiates QQuickPageIndicator
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-indicators
- \brief Indicates the currently active page.
-
- PageIndicator is used to indicate the currently active page
- in a container of multiple pages. PageIndicator consists of
- delegate items that present pages.
-
- \image qtquickcontrols2-pageindicator.png
-
- \code
- Column {
- StackLayout {
- id: stackLayout
-
- Page {
- // ...
- }
- Page {
- // ...
- }
- Page {
- // ...
- }
- }
-
- PageIndicator {
- currentIndex: stackLayout.currentIndex
- count: stackLayout.count
- }
- }
- \endcode
-
- \sa SwipeView, {Customizing PageIndicator}, {Indicator Controls}
-*/
-
-class QQuickPageIndicatorPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickPageIndicator)
-
-public:
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- QQuickItem *itemAt(const QPointF &pos) const;
- void updatePressed(bool pressed, const QPointF &pos = QPointF());
- void setContextProperty(QQuickItem *item, const QString &name, const QVariant &value);
-
- void itemChildAdded(QQuickItem *, QQuickItem *child) override;
-
- int count = 0;
- int currentIndex = 0;
- bool interactive = false;
- QQmlComponent *delegate = nullptr;
- QQuickItem *pressedItem = nullptr;
-};
-
-void QQuickPageIndicatorPrivate::handlePress(const QPointF &point)
-{
- QQuickControlPrivate::handlePress(point);
- if (interactive)
- updatePressed(true, point);
-}
-
-void QQuickPageIndicatorPrivate::handleMove(const QPointF &point)
-{
- QQuickControlPrivate::handleMove(point);
- if (interactive)
- updatePressed(true, point);
-}
-
-void QQuickPageIndicatorPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickPageIndicator);
- QQuickControlPrivate::handleRelease(point);
- if (interactive) {
- if (pressedItem && contentItem)
- q->setCurrentIndex(contentItem->childItems().indexOf(pressedItem));
- updatePressed(false);
- }
-}
-
-void QQuickPageIndicatorPrivate::handleUngrab()
-{
- QQuickControlPrivate::handleUngrab();
- if (interactive)
- updatePressed(false);
-}
-
-QQuickItem *QQuickPageIndicatorPrivate::itemAt(const QPointF &pos) const
-{
- Q_Q(const QQuickPageIndicator);
- if (!contentItem || !q->contains(pos))
- return nullptr;
-
- QPointF contentPos = q->mapToItem(contentItem, pos);
- QQuickItem *item = contentItem->childAt(contentPos.x(), contentPos.y());
- while (item && item->parentItem() != contentItem)
- item = item->parentItem();
- if (item && !QQuickItemPrivate::get(item)->isTransparentForPositioner())
- return item;
-
- // find the nearest
- qreal distance = qInf();
- QQuickItem *nearest = nullptr;
- const auto childItems = contentItem->childItems();
- for (QQuickItem *child : childItems) {
- if (QQuickItemPrivate::get(child)->isTransparentForPositioner())
- continue;
-
- QPointF center = child->boundingRect().center();
- QPointF pt = contentItem->mapToItem(child, contentPos);
-
- qreal len = QLineF(center, pt).length();
- if (len < distance) {
- distance = len;
- nearest = child;
- }
- }
- return nearest;
-}
-
-void QQuickPageIndicatorPrivate::updatePressed(bool pressed, const QPointF &pos)
-{
- QQuickItem *prevItem = pressedItem;
- pressedItem = pressed ? itemAt(pos) : nullptr;
- if (prevItem != pressedItem) {
- setContextProperty(prevItem, QStringLiteral("pressed"), false);
- setContextProperty(pressedItem, QStringLiteral("pressed"), pressed);
- }
-}
-
-void QQuickPageIndicatorPrivate::setContextProperty(QQuickItem *item, const QString &name, const QVariant &value)
-{
- QQmlContext *context = qmlContext(item);
- if (context && context->isValid()) {
- context = context->parentContext();
- if (context && context->isValid())
- context->setContextProperty(name, value);
- }
-}
-
-void QQuickPageIndicatorPrivate::itemChildAdded(QQuickItem *, QQuickItem *child)
-{
- if (!QQuickItemPrivate::get(child)->isTransparentForPositioner())
- setContextProperty(child, QStringLiteral("pressed"), false);
-}
-
-QQuickPageIndicator::QQuickPageIndicator(QQuickItem *parent)
- : QQuickControl(*(new QQuickPageIndicatorPrivate), parent)
-{
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::PageIndicator::count
-
- This property holds the number of pages.
-*/
-int QQuickPageIndicator::count() const
-{
- Q_D(const QQuickPageIndicator);
- return d->count;
-}
-
-void QQuickPageIndicator::setCount(int count)
-{
- Q_D(QQuickPageIndicator);
- if (d->count == count)
- return;
-
- d->count = count;
- emit countChanged();
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::PageIndicator::currentIndex
-
- This property holds the index of the current page.
-*/
-int QQuickPageIndicator::currentIndex() const
-{
- Q_D(const QQuickPageIndicator);
- return d->currentIndex;
-}
-
-void QQuickPageIndicator::setCurrentIndex(int index)
-{
- Q_D(QQuickPageIndicator);
- if (d->currentIndex == index)
- return;
-
- d->currentIndex = index;
- emit currentIndexChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::PageIndicator::interactive
-
- This property holds whether the control is interactive. An interactive page indicator
- reacts to presses and automatically changes the \l {currentIndex}{current index}
- appropriately.
-
- \snippet qtquickcontrols2-pageindicator-interactive.qml 1
-
- \note Page indicators are typically quite small (in order to avoid
- distracting the user from the actual content of the user interface). They
- can be hard to click, and might not be easily recognized as interactive by
- the user. For these reasons, they are best used to complement primary
- methods of navigation (such as \l SwipeView), not replace them.
-
- The default value is \c false.
-*/
-bool QQuickPageIndicator::isInteractive() const
-{
- Q_D(const QQuickPageIndicator);
- return d->interactive;
-}
-
-void QQuickPageIndicator::setInteractive(bool interactive)
-{
- Q_D(QQuickPageIndicator);
- if (d->interactive == interactive)
- return;
-
- d->interactive = interactive;
- if (interactive) {
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
- } else {
- setAcceptedMouseButtons(Qt::NoButton);
-#if QT_CONFIG(cursor)
- unsetCursor();
-#endif
- }
- emit interactiveChanged();
-}
-
-/*!
- \qmlproperty Component QtQuick.Controls::PageIndicator::delegate
-
- This property holds a delegate that presents a page.
-
- The following properties are available in the context of each delegate:
- \table
- \row \li \b index : int \li The index of the item
- \row \li \b pressed : bool \li Whether the item is pressed
- \endtable
-*/
-QQmlComponent *QQuickPageIndicator::delegate() const
-{
- Q_D(const QQuickPageIndicator);
- return d->delegate;
-}
-
-void QQuickPageIndicator::setDelegate(QQmlComponent *delegate)
-{
- Q_D(QQuickPageIndicator);
- if (d->delegate == delegate)
- return;
-
- d->delegate = delegate;
- emit delegateChanged();
-}
-
-void QQuickPageIndicator::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickPageIndicator);
- QQuickControl::contentItemChange(newItem, oldItem);
- if (oldItem)
- QQuickItemPrivate::get(oldItem)->removeItemChangeListener(d, QQuickItemPrivate::Children);
- if (newItem)
- QQuickItemPrivate::get(newItem)->addItemChangeListener(d, QQuickItemPrivate::Children);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickPageIndicator::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickPageIndicator);
- if (d->interactive)
- QQuickControl::touchEvent(event);
- else
- event->ignore(); // QTBUG-61785
-}
-#endif
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickPageIndicator::accessibleRole() const
-{
- return QAccessible::Indicator;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickpageindicator_p.h b/src/quicktemplates2/qquickpageindicator_p.h
deleted file mode 100644
index 01352016..00000000
--- a/src/quicktemplates2/qquickpageindicator_p.h
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPAGEINDICATOR_P_H
-#define QQUICKPAGEINDICATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlComponent;
-class QQuickPageIndicatorPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPageIndicator : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(int count READ count WRITE setCount NOTIFY countChanged FINAL)
- Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL)
- Q_PROPERTY(bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged FINAL)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
-
-public:
- explicit QQuickPageIndicator(QQuickItem *parent = nullptr);
-
- int count() const;
- void setCount(int count);
-
- int currentIndex() const;
- void setCurrentIndex(int index);
-
- bool isInteractive() const;
- void setInteractive(bool interactive);
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
-Q_SIGNALS:
- void countChanged();
- void currentIndexChanged();
- void interactiveChanged();
- void delegateChanged();
-
-protected:
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
-
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickPageIndicator)
- Q_DECLARE_PRIVATE(QQuickPageIndicator)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPageIndicator)
-
-#endif // QQUICKPAGEINDICATOR_P_H
diff --git a/src/quicktemplates2/qquickpalette.cpp b/src/quicktemplates2/qquickpalette.cpp
deleted file mode 100644
index 018d6fdc..00000000
--- a/src/quicktemplates2/qquickpalette.cpp
+++ /dev/null
@@ -1,326 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpalette_p.h"
-
-QT_BEGIN_NAMESPACE
-
-QColor QQuickPalette::alternateBase() const
-{
- return v.color(QPalette::AlternateBase);
-}
-
-void QQuickPalette::setAlternateBase(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::AlternateBase, color);
-}
-
-void QQuickPalette::resetAlternateBase()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::AlternateBase));
-}
-
-QColor QQuickPalette::base() const
-{
- return v.color(QPalette::Base);
-}
-
-void QQuickPalette::setBase(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Base, color);
-}
-
-void QQuickPalette::resetBase()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Base));
-}
-
-QColor QQuickPalette::brightText() const
-{
- return v.color(QPalette::BrightText);
-}
-
-void QQuickPalette::setBrightText(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::BrightText, color);
-}
-
-void QQuickPalette::resetBrightText()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::BrightText));
-}
-
-QColor QQuickPalette::button() const
-{
- return v.color(QPalette::Button);
-}
-
-void QQuickPalette::setButton(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Button, color);
-}
-
-void QQuickPalette::resetButton()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Button));
-}
-
-QColor QQuickPalette::buttonText() const
-{
- return v.color(QPalette::ButtonText);
-}
-
-void QQuickPalette::setButtonText(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::ButtonText, color);
-}
-
-void QQuickPalette::resetButtonText()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::ButtonText));
-}
-
-QColor QQuickPalette::dark() const
-{
- return v.color(QPalette::Dark);
-}
-
-void QQuickPalette::setDark(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Dark, color);
-}
-
-void QQuickPalette::resetDark()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Dark));
-}
-
-QColor QQuickPalette::highlight() const
-{
- return v.color(QPalette::Highlight);
-}
-
-void QQuickPalette::setHighlight(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Highlight, color);
-}
-
-void QQuickPalette::resetHighlight()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Highlight));
-}
-
-QColor QQuickPalette::highlightedText() const
-{
- return v.color(QPalette::HighlightedText);
-}
-
-void QQuickPalette::setHighlightedText(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::HighlightedText, color);
-}
-
-void QQuickPalette::resetHighlightedText()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::HighlightedText));
-}
-
-QColor QQuickPalette::light() const
-{
- return v.color(QPalette::Light);
-}
-
-void QQuickPalette::setLight(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Light, color);
-}
-
-void QQuickPalette::resetLight()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Light));
-}
-
-QColor QQuickPalette::link() const
-{
- return v.color(QPalette::Link);
-}
-
-void QQuickPalette::setLink(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Link, color);
-}
-
-void QQuickPalette::resetLink()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Link));
-}
-
-QColor QQuickPalette::linkVisited() const
-{
- return v.color(QPalette::LinkVisited);
-}
-
-void QQuickPalette::setLinkVisited(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::LinkVisited, color);
-}
-
-void QQuickPalette::resetLinkVisited()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::LinkVisited));
-}
-
-QColor QQuickPalette::mid() const
-{
- return v.color(QPalette::Mid);
-}
-
-void QQuickPalette::setMid(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Mid, color);
-}
-
-void QQuickPalette::resetMid()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Mid));
-}
-
-QColor QQuickPalette::midlight() const
-{
- return v.color(QPalette::Midlight);
-}
-
-void QQuickPalette::setMidlight(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Midlight, color);
-}
-
-void QQuickPalette::resetMidlight()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Midlight));
-}
-
-QColor QQuickPalette::shadow() const
-{
- return v.color(QPalette::Shadow);
-}
-
-void QQuickPalette::setShadow(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Shadow, color);
-}
-
-void QQuickPalette::resetShadow()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Shadow));
-}
-
-QColor QQuickPalette::text() const
-{
- return v.color(QPalette::Text);
-}
-
-void QQuickPalette::setText(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Text, color);
-}
-
-void QQuickPalette::resetText()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Text));
-}
-
-QColor QQuickPalette::toolTipBase() const
-{
- return v.color(QPalette::ToolTipBase);
-}
-
-void QQuickPalette::setToolTipBase(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::ToolTipBase, color);
-}
-
-void QQuickPalette::resetToolTipBase()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::ToolTipBase));
-}
-
-QColor QQuickPalette::toolTipText() const
-{
- return v.color(QPalette::ToolTipText);
-}
-
-void QQuickPalette::setToolTipText(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::ToolTipText, color);
-}
-
-void QQuickPalette::resetToolTipText()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::ToolTipText));
-}
-
-QColor QQuickPalette::window() const
-{
- return v.color(QPalette::Window);
-}
-
-void QQuickPalette::setWindow(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::Window, color);
-}
-
-void QQuickPalette::resetWindow()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::Window));
-}
-
-QColor QQuickPalette::windowText() const
-{
- return v.color(QPalette::WindowText);
-}
-
-void QQuickPalette::setWindowText(const QColor &color)
-{
- v.setColor(QPalette::All, QPalette::WindowText, color);
-}
-
-void QQuickPalette::resetWindowText()
-{
- v.resolve(v.resolve() & ~(1 << QPalette::WindowText));
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickpalette_p.h b/src/quicktemplates2/qquickpalette_p.h
deleted file mode 100644
index d43e78a6..00000000
--- a/src/quicktemplates2/qquickpalette_p.h
+++ /dev/null
@@ -1,163 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPALETTE_P_H
-#define QQUICKPALETTE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qcolor.h>
-#include <QtGui/qpalette.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPalette
-{
- Q_GADGET
- Q_PROPERTY(QColor alternateBase READ alternateBase WRITE setAlternateBase RESET resetAlternateBase FINAL)
- Q_PROPERTY(QColor base READ base WRITE setBase RESET resetBase FINAL)
- Q_PROPERTY(QColor brightText READ brightText WRITE setBrightText RESET resetBrightText FINAL)
- Q_PROPERTY(QColor button READ button WRITE setButton RESET resetButton FINAL)
- Q_PROPERTY(QColor buttonText READ buttonText WRITE setButtonText RESET resetButtonText FINAL)
- Q_PROPERTY(QColor dark READ dark WRITE setDark RESET resetDark FINAL)
- Q_PROPERTY(QColor highlight READ highlight WRITE setHighlight RESET resetHighlight FINAL)
- Q_PROPERTY(QColor highlightedText READ highlightedText WRITE setHighlightedText RESET resetHighlightedText FINAL)
- Q_PROPERTY(QColor light READ light WRITE setLight RESET resetLight FINAL)
- Q_PROPERTY(QColor link READ link WRITE setLink RESET resetLink FINAL)
- Q_PROPERTY(QColor linkVisited READ linkVisited WRITE setLinkVisited RESET resetLinkVisited FINAL)
- Q_PROPERTY(QColor mid READ mid WRITE setMid RESET resetMid FINAL)
- Q_PROPERTY(QColor midlight READ midlight WRITE setMidlight RESET resetMidlight FINAL)
- Q_PROPERTY(QColor shadow READ shadow WRITE setShadow RESET resetShadow FINAL)
- Q_PROPERTY(QColor text READ text WRITE setText RESET resetText FINAL)
- Q_PROPERTY(QColor toolTipBase READ toolTipBase WRITE setToolTipBase RESET resetToolTipBase FINAL)
- Q_PROPERTY(QColor toolTipText READ toolTipText WRITE setToolTipText RESET resetToolTipText FINAL)
- Q_PROPERTY(QColor window READ window WRITE setWindow RESET resetWindow FINAL)
- Q_PROPERTY(QColor windowText READ windowText WRITE setWindowText RESET resetWindowText FINAL)
-
-public:
- QColor alternateBase() const;
- void setAlternateBase(const QColor &color);
- void resetAlternateBase();
-
- QColor base() const;
- void setBase(const QColor &color);
- void resetBase();
-
- QColor brightText() const;
- void setBrightText(const QColor &color);
- void resetBrightText();
-
- QColor button() const;
- void setButton(const QColor &color);
- void resetButton();
-
- QColor buttonText() const;
- void setButtonText(const QColor &color);
- void resetButtonText();
-
- QColor dark() const;
- void setDark(const QColor &color);
- void resetDark();
-
- QColor highlight() const;
- void setHighlight(const QColor &color);
- void resetHighlight();
-
- QColor highlightedText() const;
- void setHighlightedText(const QColor &color);
- void resetHighlightedText();
-
- QColor light() const;
- void setLight(const QColor &color);
- void resetLight();
-
- QColor link() const;
- void setLink(const QColor &color);
- void resetLink();
-
- QColor linkVisited() const;
- void setLinkVisited(const QColor &color);
- void resetLinkVisited();
-
- QColor mid() const;
- void setMid(const QColor &color);
- void resetMid();
-
- QColor midlight() const;
- void setMidlight(const QColor &color);
- void resetMidlight();
-
- QColor shadow() const;
- void setShadow(const QColor &color);
- void resetShadow();
-
- QColor text() const;
- void setText(const QColor &color);
- void resetText();
-
- QColor toolTipBase() const;
- void setToolTipBase(const QColor &color);
- void resetToolTipBase();
-
- QColor toolTipText() const;
- void setToolTipText(const QColor &color);
- void resetToolTipText();
-
- QColor window() const;
- void setWindow(const QColor &color);
- void resetWindow();
-
- QColor windowText() const;
- void setWindowText(const QColor &color);
- void resetWindowText();
-
-private:
- QPalette v;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPALETTE_P_H
diff --git a/src/quicktemplates2/qquickpaletteprovider.cpp b/src/quicktemplates2/qquickpaletteprovider.cpp
deleted file mode 100644
index d925fcae..00000000
--- a/src/quicktemplates2/qquickpaletteprovider.cpp
+++ /dev/null
@@ -1,175 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpaletteprovider_p.h"
-#include "qquickpalette_p.h"
-
-#include <QtQml/private/qqmlvaluetype_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static QQmlValueTypeProvider *instance()
-{
- static QQuickPaletteProvider provider;
- return &provider;
-}
-
-void QQuickPaletteProvider::init()
-{
- QQml_addValueTypeProvider(instance());
-}
-
-void QQuickPaletteProvider::cleanup()
-{
- QQml_removeValueTypeProvider(instance());
-}
-
-#if defined(QT_NO_DEBUG) && !defined(QT_FORCE_ASSERTS)
- #define ASSERT_VALID_SIZE(size, min) Q_UNUSED(size)
-#else
- #define ASSERT_VALID_SIZE(size, min) Q_ASSERT(size >= min)
-#endif
-
-const QMetaObject *QQuickPaletteProvider::getMetaObjectForMetaType(int type)
-{
- switch (type) {
- case QMetaType::QPalette:
- return &QQuickPalette::staticMetaObject;
- default:
- break;
- }
-
- return nullptr;
-}
-
-bool QQuickPaletteProvider::init(int type, QVariant& dst)
-{
- switch (type) {
- case QMetaType::QPalette:
- dst.setValue<QPalette>(QPalette());
- return true;
- default: break;
- }
-
- return false;
-}
-
-template<typename T>
-bool typedEqual(const void *lhs, const QVariant& rhs)
-{
- return (*(reinterpret_cast<const T *>(lhs)) == rhs.value<T>());
-}
-
-bool QQuickPaletteProvider::equal(int type, const void *lhs, const QVariant &rhs)
-{
- switch (type) {
- case QMetaType::QPalette:
- return typedEqual<QPalette>(lhs, rhs);
- default: break;
- }
-
- return false;
-}
-
-template<typename T>
-bool typedStore(const void *src, void *dst, size_t dstSize)
-{
- ASSERT_VALID_SIZE(dstSize, sizeof(T));
- const T *srcT = reinterpret_cast<const T *>(src);
- T *dstT = reinterpret_cast<T *>(dst);
- new (dstT) T(*srcT);
- return true;
-}
-
-bool QQuickPaletteProvider::store(int type, const void *src, void *dst, size_t dstSize)
-{
- switch (type) {
- case QMetaType::QPalette:
- return typedStore<QPalette>(src, dst, dstSize);
- default: break;
- }
-
- return false;
-}
-
-template<typename T>
-bool typedRead(const QVariant& src, int dstType, void *dst)
-{
- T *dstT = reinterpret_cast<T *>(dst);
- if (src.type() == static_cast<uint>(dstType)) {
- *dstT = src.value<T>();
- } else {
- *dstT = T();
- }
- return true;
-}
-
-bool QQuickPaletteProvider::read(const QVariant &src, void *dst, int dstType)
-{
- switch (dstType) {
- case QMetaType::QPalette:
- return typedRead<QPalette>(src, dstType, dst);
- default: break;
- }
-
- return false;
-}
-
-template<typename T>
-bool typedWrite(const void *src, QVariant& dst)
-{
- const T *srcT = reinterpret_cast<const T *>(src);
- if (dst.value<T>() != *srcT) {
- dst = *srcT;
- return true;
- }
- return false;
-}
-
-bool QQuickPaletteProvider::write(int type, const void *src, QVariant& dst)
-{
- switch (type) {
- case QMetaType::QPalette:
- return typedWrite<QPalette>(src, dst);
- default: break;
- }
-
- return false;
-}
-
-#undef ASSERT_VALID_SIZE
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickpaletteprovider_p.h b/src/quicktemplates2/qquickpaletteprovider_p.h
deleted file mode 100644
index 5b6e3796..00000000
--- a/src/quicktemplates2/qquickpaletteprovider_p.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPALETTEPROVIDER_P_H
-#define QQUICKPALETTEPROVIDER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtQml/private/qqmlglobal_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPaletteProvider : public QQmlValueTypeProvider
-{
-public:
- static void init();
- static void cleanup();
-
- const QMetaObject *getMetaObjectForMetaType(int type) override;
- bool init(int type, QVariant& dst) override;
- bool equal(int type, const void *lhs, const QVariant &rhs) override;
- bool store(int type, const void *src, void *dst, size_t dstSize) override;
- bool read(const QVariant &src, void *dst, int dstType) override;
- bool write(int type, const void *src, QVariant& dst) override;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKTEMPLATES2VALUETYPEPROVIDER_P_H
diff --git a/src/quicktemplates2/qquickpane.cpp b/src/quicktemplates2/qquickpane.cpp
deleted file mode 100644
index 18c8bd51..00000000
--- a/src/quicktemplates2/qquickpane.cpp
+++ /dev/null
@@ -1,426 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpane_p.h"
-#include "qquickpane_p_p.h"
-#include "qquickcontentitem_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Pane
- \inherits Control
- \instantiates QQuickPane
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-containers
- \ingroup qtquickcontrols2-focusscopes
- \brief Provides a background matching with the application style and theme.
-
- Pane provides a background color that matches with the application style
- and theme. Pane does not provide a layout of its own, but requires you to
- position its contents, for instance by creating a \l RowLayout or a
- \l ColumnLayout.
-
- Items declared as children of a Pane are automatically parented to the
- Pane's \l {Control::}{contentItem}. Items created dynamically need to be
- explicitly parented to the contentItem.
-
- \section1 Content Sizing
-
- If only a single item is used within a Pane, it will resize to fit the
- implicit size of its contained item. This makes it particularly suitable
- for use together with layouts.
-
- \image qtquickcontrols2-pane.png
-
- \snippet qtquickcontrols2-pane.qml 1
-
- Sometimes there might be two items within the pane:
-
- \code
- Pane {
- SwipeView {
- // ...
- }
- PageIndicator {
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- }
- }
- \endcode
-
- In this case, Pane cannot calculate a sensible implicit size. Since we're
- anchoring the \l PageIndicator over the \l SwipeView, we can simply set the
- content size to the view's implicit size:
-
- \code
- Pane {
- contentWidth: view.implicitWidth
- contentHeight: view.implicitHeight
-
- SwipeView {
- id: view
- // ...
- }
- PageIndicator {
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- }
- }
- \endcode
-
- If the \l contentItem has no implicit size and only one child, Pane will
- use the implicit size of that child. For example, in the following code,
- the Pane will assume the size of the Rectangle:
-
- \code
- Pane {
- Item {
- Rectangle {
- implicitWidth: 200
- implicitHeight: 200
- color: "salmon"
- }
- }
- }
- \endcode
-
- \sa {Customizing Pane}, {Container Controls},
- {Focus Management in Qt Quick Controls}, {Event Handling}
-*/
-
-void QQuickPanePrivate::init()
-{
- Q_Q(QQuickPane);
- q->setFlag(QQuickItem::ItemIsFocusScope);
- q->setAcceptedMouseButtons(Qt::AllButtons);
-#if QT_CONFIG(cursor)
- q->setCursor(Qt::ArrowCursor);
-#endif
- connect(q, &QQuickControl::implicitContentWidthChanged, this, &QQuickPanePrivate::updateContentWidth);
- connect(q, &QQuickControl::implicitContentHeightChanged, this, &QQuickPanePrivate::updateContentHeight);
-}
-
-QList<QQuickItem *> QQuickPanePrivate::contentChildItems() const
-{
- if (!contentItem)
- return QList<QQuickItem *>();
-
- return contentItem->childItems();
-}
-
-QQuickItem *QQuickPanePrivate::getContentItem()
-{
- Q_Q(QQuickPane);
- if (QQuickItem *item = QQuickControlPrivate::getContentItem())
- return item;
-
- return new QQuickContentItem(q);
-}
-
-void QQuickPanePrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- QQuickControlPrivate::itemImplicitWidthChanged(item);
-
- if (item == firstChild)
- updateImplicitContentWidth();
-}
-
-void QQuickPanePrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- QQuickControlPrivate::itemImplicitHeightChanged(item);
-
- if (item == firstChild)
- updateImplicitContentHeight();
-}
-
-void QQuickPanePrivate::contentChildrenChange()
-{
- Q_Q(QQuickPane);
- QQuickItem *newFirstChild = contentChildItems().value(0);
- if (newFirstChild != firstChild) {
- if (firstChild)
- removeImplicitSizeListener(firstChild);
- if (newFirstChild)
- addImplicitSizeListener(newFirstChild);
- firstChild = newFirstChild;
- }
-
- updateImplicitContentSize();
- emit q->contentChildrenChanged();
-}
-
-qreal QQuickPanePrivate::getContentWidth() const
-{
- if (!contentItem)
- return 0;
-
- const qreal cw = contentItem->implicitWidth();
- if (!qFuzzyIsNull(cw))
- return cw;
-
- const auto contentChildren = contentChildItems();
- if (contentChildren.count() == 1)
- return contentChildren.first()->implicitWidth();
-
- return 0;
-}
-
-qreal QQuickPanePrivate::getContentHeight() const
-{
- if (!contentItem)
- return 0;
-
- const qreal ch = contentItem->implicitHeight();
- if (!qFuzzyIsNull(ch))
- return ch;
-
- const auto contentChildren = contentChildItems();
- if (contentChildren.count() == 1)
- return contentChildren.first()->implicitHeight();
-
- return 0;
-}
-
-void QQuickPanePrivate::updateContentWidth()
-{
- Q_Q(QQuickPane);
- if (hasContentWidth || qFuzzyCompare(contentWidth, implicitContentWidth))
- return;
-
- const qreal oldContentWidth = contentWidth;
- contentWidth = implicitContentWidth;
- q->contentSizeChange(QSizeF(contentWidth, contentHeight), QSizeF(oldContentWidth, contentHeight));
- emit q->contentWidthChanged();
-}
-
-void QQuickPanePrivate::updateContentHeight()
-{
- Q_Q(QQuickPane);
- if (hasContentHeight || qFuzzyCompare(contentHeight, implicitContentHeight))
- return;
-
- const qreal oldContentHeight = contentHeight;
- contentHeight = implicitContentHeight;
- q->contentSizeChange(QSizeF(contentWidth, contentHeight), QSizeF(contentWidth, oldContentHeight));
- emit q->contentHeightChanged();
-}
-
-QQuickPane::QQuickPane(QQuickItem *parent)
- : QQuickControl(*(new QQuickPanePrivate), parent)
-{
- Q_D(QQuickPane);
- d->init();
-}
-
-QQuickPane::~QQuickPane()
-{
- Q_D(QQuickPane);
- d->removeImplicitSizeListener(d->contentItem);
- d->removeImplicitSizeListener(d->firstChild);
-}
-
-QQuickPane::QQuickPane(QQuickPanePrivate &dd, QQuickItem *parent)
- : QQuickControl(dd, parent)
-{
- Q_D(QQuickPane);
- d->init();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Pane::contentWidth
-
- This property holds the content width. It is used for calculating the total
- implicit width of the pane.
-
- For more information, see \l {Content Sizing}.
-
- \sa contentHeight
-*/
-qreal QQuickPane::contentWidth() const
-{
- Q_D(const QQuickPane);
- return d->contentWidth;
-}
-
-void QQuickPane::setContentWidth(qreal width)
-{
- Q_D(QQuickPane);
- d->hasContentWidth = true;
- if (qFuzzyCompare(d->contentWidth, width))
- return;
-
- const qreal oldWidth = d->contentWidth;
- d->contentWidth = width;
- contentSizeChange(QSizeF(width, d->contentHeight), QSizeF(oldWidth, d->contentHeight));
- emit contentWidthChanged();
-}
-
-void QQuickPane::resetContentWidth()
-{
- Q_D(QQuickPane);
- if (!d->hasContentWidth)
- return;
-
- d->hasContentHeight = false;
- d->updateContentWidth();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Pane::contentHeight
-
- This property holds the content height. It is used for calculating the total
- implicit height of the pane.
-
- For more information, see \l {Content Sizing}.
-
- \sa contentWidth
-*/
-qreal QQuickPane::contentHeight() const
-{
- Q_D(const QQuickPane);
- return d->contentHeight;
-}
-
-void QQuickPane::setContentHeight(qreal height)
-{
- Q_D(QQuickPane);
- d->hasContentHeight = true;
- if (qFuzzyCompare(d->contentHeight, height))
- return;
-
- const qreal oldHeight = d->contentHeight;
- d->contentHeight = height;
- contentSizeChange(QSizeF(d->contentWidth, height), QSizeF(d->contentWidth, oldHeight));
- emit contentHeightChanged();
-}
-
-void QQuickPane::resetContentHeight()
-{
- Q_D(QQuickPane);
- if (!d->hasContentHeight)
- return;
-
- d->hasContentHeight = false;
- d->updateContentHeight();
-}
-
-/*!
- \qmlproperty list<Object> QtQuick.Controls::Pane::contentData
- \default
-
- This property holds the list of content data.
-
- The list contains all objects that have been declared in QML as children
- of the pane.
-
- \note Unlike \c contentChildren, \c contentData does include non-visual QML
- objects.
-
- \sa Item::data, contentChildren
-*/
-QQmlListProperty<QObject> QQuickPanePrivate::contentData()
-{
- Q_Q(QQuickPane);
- return QQmlListProperty<QObject>(q->contentItem(), nullptr,
- QQuickItemPrivate::data_append,
- QQuickItemPrivate::data_count,
- QQuickItemPrivate::data_at,
- QQuickItemPrivate::data_clear);
-}
-
-/*!
- \qmlproperty list<Item> QtQuick.Controls::Pane::contentChildren
-
- This property holds the list of content children.
-
- The list contains all items that have been declared in QML as children
- of the pane.
-
- \note Unlike \c contentData, \c contentChildren does not include non-visual
- QML objects.
-
- \sa Item::children, contentData
-*/
-QQmlListProperty<QQuickItem> QQuickPanePrivate::contentChildren()
-{
- Q_Q(QQuickPane);
- return QQmlListProperty<QQuickItem>(q->contentItem(), nullptr,
- QQuickItemPrivate::children_append,
- QQuickItemPrivate::children_count,
- QQuickItemPrivate::children_at,
- QQuickItemPrivate::children_clear);
-}
-
-void QQuickPane::componentComplete()
-{
- Q_D(QQuickPane);
- QQuickControl::componentComplete();
- d->updateImplicitContentSize();
-}
-
-void QQuickPane::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickPane);
- QQuickControl::contentItemChange(newItem, oldItem);
- if (oldItem) {
- d->removeImplicitSizeListener(oldItem);
- QObjectPrivate::disconnect(oldItem, &QQuickItem::childrenChanged, d, &QQuickPanePrivate::contentChildrenChange);
- }
- if (newItem) {
- d->addImplicitSizeListener(newItem);
- QObjectPrivate::connect(newItem, &QQuickItem::childrenChanged, d, &QQuickPanePrivate::contentChildrenChange);
- }
- d->contentChildrenChange();
-}
-
-void QQuickPane::contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize)
-{
- Q_UNUSED(newSize)
- Q_UNUSED(oldSize)
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickPane::accessibleRole() const
-{
- return QAccessible::Pane;
-}
-#endif
-
-QT_END_NAMESPACE
-
-#include "moc_qquickpane_p.cpp"
diff --git a/src/quicktemplates2/qquickpane_p.h b/src/quicktemplates2/qquickpane_p.h
deleted file mode 100644
index 86b2c9f2..00000000
--- a/src/quicktemplates2/qquickpane_p.h
+++ /dev/null
@@ -1,105 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPANE_P_H
-#define QQUICKPANE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQml/qqmllist.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPanePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPane : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL)
- Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL)
- Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
- Q_PRIVATE_PROPERTY(QQuickPane::d_func(), QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
- Q_CLASSINFO("DefaultProperty", "contentData")
-
-public:
- explicit QQuickPane(QQuickItem *parent = nullptr);
- ~QQuickPane();
-
- qreal contentWidth() const;
- void setContentWidth(qreal width);
- void resetContentWidth();
-
- qreal contentHeight() const;
- void setContentHeight(qreal height);
- void resetContentHeight();
-
-Q_SIGNALS:
- void contentWidthChanged();
- void contentHeightChanged();
- void contentChildrenChanged();
-
-protected:
- QQuickPane(QQuickPanePrivate &dd, QQuickItem *parent);
-
- void componentComplete() override;
-
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
- virtual void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize);
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickPane)
- Q_DECLARE_PRIVATE(QQuickPane)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPane)
-
-#endif // QQUICKPANE_P_H
diff --git a/src/quicktemplates2/qquickpane_p_p.h b/src/quicktemplates2/qquickpane_p_p.h
deleted file mode 100644
index bd89aee2..00000000
--- a/src/quicktemplates2/qquickpane_p_p.h
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPANE_P_P_H
-#define QQUICKPANE_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPane;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPanePrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickPane)
-
-public:
- void init();
-
- virtual QQmlListProperty<QObject> contentData();
- virtual QQmlListProperty<QQuickItem> contentChildren();
- virtual QList<QQuickItem *> contentChildItems() const;
-
- QQuickItem *getContentItem() override;
-
- qreal getContentWidth() const override;
- qreal getContentHeight() const override;
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- void contentChildrenChange();
-
- void updateContentWidth();
- void updateContentHeight();
-
- bool hasContentWidth = false;
- bool hasContentHeight = false;
- qreal contentWidth = 0;
- qreal contentHeight = 0;
- QQuickItem *firstChild = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPANE_P_P_H
diff --git a/src/quicktemplates2/qquickpopup.cpp b/src/quicktemplates2/qquickpopup.cpp
deleted file mode 100644
index f0cf1869..00000000
--- a/src/quicktemplates2/qquickpopup.cpp
+++ /dev/null
@@ -1,2706 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpopup_p.h"
-#include "qquickpopup_p_p.h"
-#include "qquickpopupanchors_p.h"
-#include "qquickpopupitem_p_p.h"
-#include "qquickpopuppositioner_p_p.h"
-#include "qquickapplicationwindow_p.h"
-#include "qquickoverlay_p_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickdialog_p.h"
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/private/qquicktransition_p.h>
-#include <QtQuick/private/qquickitem_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Popup
- \inherits QtObject
- \instantiates QQuickPopup
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-popups
- \ingroup qtquickcontrols2-focusscopes
- \brief Base type of popup-like user interface controls.
-
- Popup is the base type of popup-like user interface controls. It can be
- used with \l Window or \l ApplicationWindow.
-
- \qml
- import QtQuick.Window 2.2
- import QtQuick.Controls 2.12
-
- ApplicationWindow {
- id: window
- width: 400
- height: 400
- visible: true
-
- Button {
- text: "Open"
- onClicked: popup.open()
- }
-
- Popup {
- id: popup
- x: 100
- y: 100
- width: 200
- height: 300
- modal: true
- focus: true
- closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
- }
- }
- \endqml
-
- In order to ensure that a popup is displayed above other items in the
- scene, it is recommended to use ApplicationWindow. ApplicationWindow also
- provides background dimming effects.
-
- Popup does not provide a layout of its own, but requires you to position
- its contents, for instance by creating a \l RowLayout or a \l ColumnLayout.
-
- Items declared as children of a Popup are automatically parented to the
- Popups's \l contentItem. Items created dynamically need to be explicitly
- parented to the contentItem.
-
- \section1 Popup Layout
-
- The following diagram illustrates the layout of a popup within a window:
-
- \image qtquickcontrols2-popup.png
-
- The \l implicitWidth and \l implicitHeight of a popup are typically based
- on the implicit sizes of the background and the content item plus any insets
- and paddings. These properties determine how large the popup will be when no
- explicit \l width or \l height is specified.
-
- The geometry of the \l contentItem is determined by the padding. The following
- example reserves 10px padding between the boundaries of the popup and its content:
-
- \code
- Popup {
- padding: 10
-
- contentItem: Text {
- text: "Content"
- }
- }
- \endcode
-
- The \l background item fills the entire width and height of the popup,
- unless insets or an explicit size have been given for it.
-
- Negative insets can be used to make the background larger than the popup.
- The following example uses negative insets to place a shadow outside the
- popup's boundaries:
-
- \code
- Popup {
- topInset: -2
- leftInset: -2
- rightInset: -6
- bottomInset: -6
-
- background: BorderImage {
- source: ":/images/shadowed-background.png"
- }
- }
- \endcode
-
- \section1 Popup Sizing
-
- If only a single item is used within a Popup, it will resize to fit the
- implicit size of its contained item. This makes it particularly suitable
- for use together with layouts.
-
- \code
- Popup {
- ColumnLayout {
- anchors.fill: parent
- CheckBox { text: qsTr("E-mail") }
- CheckBox { text: qsTr("Calendar") }
- CheckBox { text: qsTr("Contacts") }
- }
- }
- \endcode
-
- Sometimes there might be two items within the popup:
-
- \code
- Popup {
- SwipeView {
- // ...
- }
- PageIndicator {
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- }
- }
- \endcode
-
- In this case, Popup cannot calculate a sensible implicit size. Since we're
- anchoring the \l PageIndicator over the \l SwipeView, we can simply set the
- content size to the view's implicit size:
-
- \code
- Popup {
- contentWidth: view.implicitWidth
- contentHeight: view.implicitHeight
-
- SwipeView {
- id: view
- // ...
- }
- PageIndicator {
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.bottom: parent.bottom
- }
- }
- \endcode
-
- \section1 Popup Positioning
-
- Similar to items in Qt Quick, Popup's \l x and \l y coordinates are
- relative to its parent. This means that opening a popup that is a
- child of a \l Button, for example, will cause the popup to be positioned
- relative to the button.
-
- \include qquickoverlay-popup-parent.qdocinc
-
- Another way to center a popup in the window regardless of its parent item
- is to use \l {anchors.centerIn}:
-
- \snippet qtquickcontrols2-popup.qml centerIn
-
- To ensure that the popup is positioned within the bounds of the enclosing
- window, the \l margins property can be set to a non-negative value.
-
- \sa {Popup Controls}, {Customizing Popup}, ApplicationWindow
-*/
-
-/*!
- \qmlsignal void QtQuick.Controls::Popup::opened()
-
- This signal is emitted when the popup is opened.
-
- \sa aboutToShow()
-*/
-
-/*!
- \qmlsignal void QtQuick.Controls::Popup::closed()
-
- This signal is emitted when the popup is closed.
-
- \sa aboutToHide()
-*/
-
-/*!
- \qmlsignal void QtQuick.Controls::Popup::aboutToShow()
-
- This signal is emitted when the popup is about to show.
-
- \sa opened()
-*/
-
-/*!
- \qmlsignal void QtQuick.Controls::Popup::aboutToHide()
-
- This signal is emitted when the popup is about to hide.
-
- \sa closed()
-*/
-
-const QQuickPopup::ClosePolicy QQuickPopupPrivate::DefaultClosePolicy = QQuickPopup::CloseOnEscape | QQuickPopup::CloseOnPressOutside;
-
-QQuickPopupPrivate::QQuickPopupPrivate()
- : transitionManager(this)
-{
-}
-
-void QQuickPopupPrivate::init()
-{
- Q_Q(QQuickPopup);
- popupItem = new QQuickPopupItem(q);
- popupItem->setVisible(false);
- q->setParentItem(qobject_cast<QQuickItem *>(parent));
- QObject::connect(popupItem, &QQuickControl::paddingChanged, q, &QQuickPopup::paddingChanged);
- QObject::connect(popupItem, &QQuickControl::backgroundChanged, q, &QQuickPopup::backgroundChanged);
- QObject::connect(popupItem, &QQuickControl::contentItemChanged, q, &QQuickPopup::contentItemChanged);
- QObject::connect(popupItem, &QQuickControl::implicitContentWidthChanged, q, &QQuickPopup::implicitContentWidthChanged);
- QObject::connect(popupItem, &QQuickControl::implicitContentHeightChanged, q, &QQuickPopup::implicitContentHeightChanged);
- QObject::connect(popupItem, &QQuickControl::implicitBackgroundWidthChanged, q, &QQuickPopup::implicitBackgroundWidthChanged);
- QObject::connect(popupItem, &QQuickControl::implicitBackgroundHeightChanged, q, &QQuickPopup::implicitBackgroundHeightChanged);
-}
-
-void QQuickPopupPrivate::closeOrReject()
-{
- Q_Q(QQuickPopup);
- if (QQuickDialog *dialog = qobject_cast<QQuickDialog*>(q))
- dialog->reject();
- else
- q->close();
-}
-
-bool QQuickPopupPrivate::tryClose(const QPointF &pos, QQuickPopup::ClosePolicy flags)
-{
- if (!interactive)
- return false;
-
- static const QQuickPopup::ClosePolicy outsideFlags = QQuickPopup::CloseOnPressOutside | QQuickPopup::CloseOnReleaseOutside;
- static const QQuickPopup::ClosePolicy outsideParentFlags = QQuickPopup::CloseOnPressOutsideParent | QQuickPopup::CloseOnReleaseOutsideParent;
-
- const bool onOutside = closePolicy & (flags & outsideFlags);
- const bool onOutsideParent = closePolicy & (flags & outsideParentFlags);
- if (onOutside || onOutsideParent) {
- if (!contains(pos)) {
- if (!onOutsideParent || !parentItem || !parentItem->contains(parentItem->mapFromScene(pos))) {
- closeOrReject();
- return true;
- }
- }
- }
- return false;
-}
-
-bool QQuickPopupPrivate::contains(const QPointF &scenePos) const
-{
- return popupItem->contains(popupItem->mapFromScene(scenePos));
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-bool QQuickPopupPrivate::acceptTouch(const QTouchEvent::TouchPoint &point)
-{
- if (point.id() == touchId)
- return true;
-
- if (touchId == -1 && point.state() != Qt::TouchPointReleased) {
- touchId = point.id();
- return true;
- }
-
- return false;
-}
-#endif
-
-bool QQuickPopupPrivate::blockInput(QQuickItem *item, const QPointF &point) const
-{
- // don't block presses and releases
- // a) outside a non-modal popup,
- // b) to popup children/content, or
- // b) outside a modal popups's background dimming
- return modal && !popupItem->isAncestorOf(item) && (!dimmer || dimmer->contains(dimmer->mapFromScene(point)));
-}
-
-bool QQuickPopupPrivate::handlePress(QQuickItem *item, const QPointF &point, ulong timestamp)
-{
- Q_UNUSED(timestamp);
- pressPoint = point;
- tryClose(point, QQuickPopup::CloseOnPressOutside | QQuickPopup::CloseOnPressOutsideParent);
- return blockInput(item, point);
-}
-
-bool QQuickPopupPrivate::handleMove(QQuickItem *item, const QPointF &point, ulong timestamp)
-{
- Q_UNUSED(timestamp);
- return blockInput(item, point);
-}
-
-bool QQuickPopupPrivate::handleRelease(QQuickItem *item, const QPointF &point, ulong timestamp)
-{
- Q_UNUSED(timestamp);
- if (item != popupItem && !contains(pressPoint))
- tryClose(point, QQuickPopup::CloseOnReleaseOutside | QQuickPopup::CloseOnReleaseOutsideParent);
- pressPoint = QPointF();
- touchId = -1;
- return blockInput(item, point);
-}
-
-void QQuickPopupPrivate::handleUngrab()
-{
- Q_Q(QQuickPopup);
- QQuickOverlay *overlay = QQuickOverlay::overlay(window);
- if (overlay) {
- QQuickOverlayPrivate *p = QQuickOverlayPrivate::get(overlay);
- if (p->mouseGrabberPopup == q)
- p->mouseGrabberPopup = nullptr;
- }
- pressPoint = QPointF();
- touchId = -1;
-}
-
-bool QQuickPopupPrivate::handleMouseEvent(QQuickItem *item, QMouseEvent *event)
-{
- switch (event->type()) {
- case QEvent::MouseButtonPress:
- return handlePress(item, event->windowPos(), event->timestamp());
- case QEvent::MouseMove:
- return handleMove(item, event->windowPos(), event->timestamp());
- case QEvent::MouseButtonRelease:
- return handleRelease(item, event->windowPos(), event->timestamp());
- default:
- Q_UNREACHABLE();
- return false;
- }
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-bool QQuickPopupPrivate::handleTouchEvent(QQuickItem *item, QTouchEvent *event)
-{
- switch (event->type()) {
- case QEvent::TouchBegin:
- case QEvent::TouchUpdate:
- case QEvent::TouchEnd:
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- if (!acceptTouch(point))
- return blockInput(item, point.pos());
-
- switch (point.state()) {
- case Qt::TouchPointPressed:
- return handlePress(item, item->mapToScene(point.pos()), event->timestamp());
- case Qt::TouchPointMoved:
- return handleMove(item, item->mapToScene(point.pos()), event->timestamp());
- case Qt::TouchPointReleased:
- return handleRelease(item, item->mapToScene(point.pos()), event->timestamp());
- default:
- break;
- }
- }
- break;
-
- case QEvent::TouchCancel:
- handleUngrab();
- break;
-
- default:
- break;
- }
-
- return false;
-}
-#endif
-
-bool QQuickPopupPrivate::prepareEnterTransition()
-{
- Q_Q(QQuickPopup);
- if (!window) {
- qmlWarning(q) << "cannot find any window to open popup in.";
- return false;
- }
-
- if (transitionState == EnterTransition && transitionManager.isRunning())
- return false;
-
- if (transitionState != EnterTransition) {
- popupItem->setParentItem(QQuickOverlay::overlay(window));
- if (dim)
- createOverlay();
- showOverlay();
- emit q->aboutToShow();
- visible = true;
- transitionState = EnterTransition;
- popupItem->setVisible(true);
- getPositioner()->setParentItem(parentItem);
- emit q->visibleChanged();
- }
- return true;
-}
-
-bool QQuickPopupPrivate::prepareExitTransition()
-{
- Q_Q(QQuickPopup);
- if (transitionState == ExitTransition && transitionManager.isRunning())
- return false;
-
- if (transitionState != ExitTransition) {
- // The setFocus(false) call below removes any active focus before we're
- // able to check it in finalizeExitTransition.
- hadActiveFocusBeforeExitTransition = popupItem->hasActiveFocus();
- if (focus)
- popupItem->setFocus(false);
- transitionState = ExitTransition;
- hideOverlay();
- emit q->aboutToHide();
- emit q->openedChanged();
- }
- return true;
-}
-
-void QQuickPopupPrivate::finalizeEnterTransition()
-{
- Q_Q(QQuickPopup);
- if (focus)
- popupItem->setFocus(true);
- transitionState = NoTransition;
- emit q->openedChanged();
- emit q->opened();
-}
-
-void QQuickPopupPrivate::finalizeExitTransition()
-{
- Q_Q(QQuickPopup);
- getPositioner()->setParentItem(nullptr);
- popupItem->setParentItem(nullptr);
- popupItem->setVisible(false);
- destroyOverlay();
-
- if (hadActiveFocusBeforeExitTransition && window) {
- // restore focus to the next popup in chain, or to the window content if there are no other popups open
- QQuickPopup *popup = nullptr;
- if (QQuickOverlay *overlay = QQuickOverlay::overlay(window))
- popup = QQuickOverlayPrivate::get(overlay)->stackingOrderPopups().value(0);
- if (popup && popup->hasFocus()) {
- popup->forceActiveFocus();
- } else {
- QQuickApplicationWindow *applicationWindow = qobject_cast<QQuickApplicationWindow*>(window);
- if (applicationWindow)
- applicationWindow->contentItem()->setFocus(true);
- else
- window->contentItem()->setFocus(true);
- }
- }
-
- visible = false;
- transitionState = NoTransition;
- hadActiveFocusBeforeExitTransition = false;
- emit q->visibleChanged();
- emit q->closed();
-}
-
-QMarginsF QQuickPopupPrivate::getMargins() const
-{
- Q_Q(const QQuickPopup);
- return QMarginsF(q->leftMargin(), q->topMargin(), q->rightMargin(), q->bottomMargin());
-}
-
-void QQuickPopupPrivate::setTopMargin(qreal value, bool reset)
-{
- Q_Q(QQuickPopup);
- qreal oldMargin = q->topMargin();
- topMargin = value;
- hasTopMargin = !reset;
- if ((!reset && !qFuzzyCompare(oldMargin, value)) || (reset && !qFuzzyCompare(oldMargin, margins))) {
- emit q->topMarginChanged();
- q->marginsChange(QMarginsF(leftMargin, topMargin, rightMargin, bottomMargin),
- QMarginsF(leftMargin, oldMargin, rightMargin, bottomMargin));
- }
-}
-
-void QQuickPopupPrivate::setLeftMargin(qreal value, bool reset)
-{
- Q_Q(QQuickPopup);
- qreal oldMargin = q->leftMargin();
- leftMargin = value;
- hasLeftMargin = !reset;
- if ((!reset && !qFuzzyCompare(oldMargin, value)) || (reset && !qFuzzyCompare(oldMargin, margins))) {
- emit q->leftMarginChanged();
- q->marginsChange(QMarginsF(leftMargin, topMargin, rightMargin, bottomMargin),
- QMarginsF(oldMargin, topMargin, rightMargin, bottomMargin));
- }
-}
-
-void QQuickPopupPrivate::setRightMargin(qreal value, bool reset)
-{
- Q_Q(QQuickPopup);
- qreal oldMargin = q->rightMargin();
- rightMargin = value;
- hasRightMargin = !reset;
- if ((!reset && !qFuzzyCompare(oldMargin, value)) || (reset && !qFuzzyCompare(oldMargin, margins))) {
- emit q->rightMarginChanged();
- q->marginsChange(QMarginsF(leftMargin, topMargin, rightMargin, bottomMargin),
- QMarginsF(leftMargin, topMargin, oldMargin, bottomMargin));
- }
-}
-
-void QQuickPopupPrivate::setBottomMargin(qreal value, bool reset)
-{
- Q_Q(QQuickPopup);
- qreal oldMargin = q->bottomMargin();
- bottomMargin = value;
- hasBottomMargin = !reset;
- if ((!reset && !qFuzzyCompare(oldMargin, value)) || (reset && !qFuzzyCompare(oldMargin, margins))) {
- emit q->bottomMarginChanged();
- q->marginsChange(QMarginsF(leftMargin, topMargin, rightMargin, bottomMargin),
- QMarginsF(leftMargin, topMargin, rightMargin, oldMargin));
- }
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlpropertygroup QtQuick.Controls::Popup::anchors
- \qmlproperty Object QtQuick.Controls::Popup::anchors.centerIn
-
- Anchors provide a way to position an item by specifying its
- relationship with other items.
-
- A common use case is to center a popup within its parent. One way to do
- this is with the \l {Item::}{x} and \l {Item::}{y} properties. Anchors offer
- a more convenient approach:
-
- \qml
- Pane {
- // ...
-
- Popup {
- anchors.centerIn: parent
- }
- }
- \endqml
-
- It is also possible to center the popup in the window by using \l Overlay:
-
- \snippet qtquickcontrols2-popup.qml centerIn
-
- This makes it easy to center a popup in the window from any component.
-
- \note Popups can only be centered within their immediate parent or
- the window overlay; trying to center in other items will produce a warning.
-
- \sa {Popup Positioning}, {Item::anchors}
-*/
-QQuickPopupAnchors *QQuickPopupPrivate::getAnchors()
-{
- Q_Q(QQuickPopup);
- if (!anchors)
- anchors = new QQuickPopupAnchors(q);
- return anchors;
-}
-
-QQuickPopupPositioner *QQuickPopupPrivate::getPositioner()
-{
- Q_Q(QQuickPopup);
- if (!positioner)
- positioner = new QQuickPopupPositioner(q);
- return positioner;
-}
-
-void QQuickPopupPrivate::setWindow(QQuickWindow *newWindow)
-{
- Q_Q(QQuickPopup);
- if (window == newWindow)
- return;
-
- if (window) {
- QQuickOverlay *overlay = QQuickOverlay::overlay(window);
- if (overlay)
- QQuickOverlayPrivate::get(overlay)->removePopup(q);
- }
-
- window = newWindow;
-
- if (newWindow) {
- QQuickOverlay *overlay = QQuickOverlay::overlay(newWindow);
- if (overlay)
- QQuickOverlayPrivate::get(overlay)->addPopup(q);
-
- QQuickControlPrivate *p = QQuickControlPrivate::get(popupItem);
- p->resolveFont();
- p->resolvePalette();
- if (QQuickApplicationWindow *appWindow = qobject_cast<QQuickApplicationWindow *>(newWindow))
- p->updateLocale(appWindow->locale(), false); // explicit=false
- }
-
- emit q->windowChanged(newWindow);
-
- if (complete && visible && window)
- transitionManager.transitionEnter();
-}
-
-void QQuickPopupPrivate::itemDestroyed(QQuickItem *item)
-{
- Q_Q(QQuickPopup);
- if (item == parentItem)
- q->setParentItem(nullptr);
-}
-
-void QQuickPopupPrivate::reposition()
-{
- getPositioner()->reposition();
-}
-
-static QQuickItem *createDimmer(QQmlComponent *component, QQuickPopup *popup, QQuickItem *parent)
-{
- QQuickItem *item = nullptr;
- if (component) {
- QQmlContext *creationContext = component->creationContext();
- if (!creationContext)
- creationContext = qmlContext(popup);
- QQmlContext *context = new QQmlContext(creationContext, popup);
- context->setContextObject(popup);
- item = qobject_cast<QQuickItem*>(component->beginCreate(context));
- }
-
- // when there is no overlay component available (with plain QQuickWindow),
- // use a plain QQuickItem as a fallback to block hover events
- if (!item && popup->isModal())
- item = new QQuickItem;
-
- if (item) {
- item->setOpacity(popup->isVisible() ? 1.0 : 0.0);
- item->setParentItem(parent);
- item->stackBefore(popup->popupItem());
- item->setZ(popup->z());
- if (popup->isModal()) {
- item->setAcceptedMouseButtons(Qt::AllButtons);
-#if QT_CONFIG(cursor)
- item->setCursor(Qt::ArrowCursor);
-#endif
-#if QT_CONFIG(quicktemplates2_hover)
- // TODO: switch to QStyleHints::useHoverEffects in Qt 5.8
- item->setAcceptHoverEvents(true);
- // item->setAcceptHoverEvents(QGuiApplication::styleHints()->useHoverEffects());
- // connect(QGuiApplication::styleHints(), &QStyleHints::useHoverEffectsChanged, item, &QQuickItem::setAcceptHoverEvents);
-#endif
- }
- if (component)
- component->completeCreate();
- }
- return item;
-}
-
-void QQuickPopupPrivate::createOverlay()
-{
- Q_Q(QQuickPopup);
- QQuickOverlay *overlay = QQuickOverlay::overlay(window);
- if (!overlay)
- return;
-
- QQmlComponent *component = nullptr;
- QQuickOverlayAttached *overlayAttached = qobject_cast<QQuickOverlayAttached *>(qmlAttachedPropertiesObject<QQuickOverlay>(q, false));
- if (overlayAttached)
- component = modal ? overlayAttached->modal() : overlayAttached->modeless();
-
- if (!component)
- component = modal ? overlay->modal() : overlay->modeless();
-
- if (!dimmer)
- dimmer = createDimmer(component, q, overlay);
- resizeOverlay();
-}
-
-void QQuickPopupPrivate::destroyOverlay()
-{
- if (dimmer) {
- dimmer->setParentItem(nullptr);
- dimmer->deleteLater();
- dimmer = nullptr;
- }
-}
-
-void QQuickPopupPrivate::toggleOverlay()
-{
- destroyOverlay();
- if (dim)
- createOverlay();
-}
-
-void QQuickPopupPrivate::showOverlay()
-{
- // use QQmlProperty instead of QQuickItem::setOpacity() to trigger QML Behaviors
- if (dim && dimmer)
- QQmlProperty::write(dimmer, QStringLiteral("opacity"), 1.0);
-}
-
-void QQuickPopupPrivate::hideOverlay()
-{
- // use QQmlProperty instead of QQuickItem::setOpacity() to trigger QML Behaviors
- if (dim && dimmer)
- QQmlProperty::write(dimmer, QStringLiteral("opacity"), 0.0);
-}
-
-void QQuickPopupPrivate::resizeOverlay()
-{
- if (!dimmer)
- return;
-
- qreal w = window ? window->width() : 0;
- qreal h = window ? window->height() : 0;
- dimmer->setSize(QSizeF(w, h));
-}
-
-QQuickPopupTransitionManager::QQuickPopupTransitionManager(QQuickPopupPrivate *popup)
- : popup(popup)
-{
-}
-
-void QQuickPopupTransitionManager::transitionEnter()
-{
- if (popup->transitionState == QQuickPopupPrivate::ExitTransition)
- cancel();
-
- if (!popup->prepareEnterTransition())
- return;
-
- if (popup->window)
- transition(popup->enterActions, popup->enter, popup->q_func());
- else
- finished();
-}
-
-void QQuickPopupTransitionManager::transitionExit()
-{
- if (!popup->prepareExitTransition())
- return;
-
- if (popup->window)
- transition(popup->exitActions, popup->exit, popup->q_func());
- else
- finished();
-}
-
-void QQuickPopupTransitionManager::finished()
-{
- if (popup->transitionState == QQuickPopupPrivate::EnterTransition)
- popup->finalizeEnterTransition();
- else if (popup->transitionState == QQuickPopupPrivate::ExitTransition)
- popup->finalizeExitTransition();
-}
-
-QQuickPopup::QQuickPopup(QObject *parent)
- : QObject(*(new QQuickPopupPrivate), parent)
-{
- Q_D(QQuickPopup);
- d->init();
-}
-
-QQuickPopup::QQuickPopup(QQuickPopupPrivate &dd, QObject *parent)
- : QObject(dd, parent)
-{
- Q_D(QQuickPopup);
- d->init();
-}
-
-QQuickPopup::~QQuickPopup()
-{
- Q_D(QQuickPopup);
- setParentItem(nullptr);
- d->popupItem->ungrabShortcut();
- delete d->popupItem;
- d->popupItem = nullptr;
- delete d->positioner;
- d->positioner = nullptr;
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Popup::open()
-
- Opens the popup.
-
- \sa visible
-*/
-void QQuickPopup::open()
-{
- setVisible(true);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Popup::close()
-
- Closes the popup.
-
- \sa visible
-*/
-void QQuickPopup::close()
-{
- setVisible(false);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::x
-
- This property holds the x-coordinate of the popup.
-
- \sa y, z
-*/
-qreal QQuickPopup::x() const
-{
- Q_D(const QQuickPopup);
- return d->effectiveX;
-}
-
-void QQuickPopup::setX(qreal x)
-{
- Q_D(QQuickPopup);
- setPosition(QPointF(x, d->y));
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::y
-
- This property holds the y-coordinate of the popup.
-
- \sa x, z
-*/
-qreal QQuickPopup::y() const
-{
- Q_D(const QQuickPopup);
- return d->effectiveY;
-}
-
-void QQuickPopup::setY(qreal y)
-{
- Q_D(QQuickPopup);
- setPosition(QPointF(d->x, y));
-}
-
-QPointF QQuickPopup::position() const
-{
- Q_D(const QQuickPopup);
- return QPointF(d->effectiveX, d->effectiveY);
-}
-
-void QQuickPopup::setPosition(const QPointF &pos)
-{
- Q_D(QQuickPopup);
- const bool xChange = !qFuzzyCompare(d->x, pos.x());
- const bool yChange = !qFuzzyCompare(d->y, pos.y());
- if (!xChange && !yChange)
- return;
-
- d->x = pos.x();
- d->y = pos.y();
- if (d->popupItem->isVisible()) {
- d->reposition();
- } else {
- if (xChange)
- emit xChanged();
- if (yChange)
- emit yChanged();
- }
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::z
-
- This property holds the z-value of the popup. Z-value determines
- the stacking order of popups.
-
- If two visible popups have the same z-value, the last one that
- was opened will be on top.
-
- The default z-value is \c 0.
-
- \sa x, y
-*/
-qreal QQuickPopup::z() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->z();
-}
-
-void QQuickPopup::setZ(qreal z)
-{
- Q_D(QQuickPopup);
- if (qFuzzyCompare(z, d->popupItem->z()))
- return;
- d->popupItem->setZ(z);
- emit zChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::width
-
- This property holds the width of the popup.
-*/
-qreal QQuickPopup::width() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->width();
-}
-
-void QQuickPopup::setWidth(qreal width)
-{
- Q_D(QQuickPopup);
- d->hasWidth = true;
- d->popupItem->setWidth(width);
-}
-
-void QQuickPopup::resetWidth()
-{
- Q_D(QQuickPopup);
- if (!d->hasWidth)
- return;
-
- d->hasWidth = false;
- d->popupItem->resetWidth();
- if (d->popupItem->isVisible())
- d->reposition();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::height
-
- This property holds the height of the popup.
-*/
-qreal QQuickPopup::height() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->height();
-}
-
-void QQuickPopup::setHeight(qreal height)
-{
- Q_D(QQuickPopup);
- d->hasHeight = true;
- d->popupItem->setHeight(height);
-}
-
-void QQuickPopup::resetHeight()
-{
- Q_D(QQuickPopup);
- if (!d->hasHeight)
- return;
-
- d->hasHeight = false;
- d->popupItem->resetHeight();
- if (d->popupItem->isVisible())
- d->reposition();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::implicitWidth
-
- This property holds the implicit width of the popup.
-*/
-qreal QQuickPopup::implicitWidth() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->implicitWidth();
-}
-
-void QQuickPopup::setImplicitWidth(qreal width)
-{
- Q_D(QQuickPopup);
- d->popupItem->setImplicitWidth(width);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::implicitHeight
-
- This property holds the implicit height of the popup.
-*/
-qreal QQuickPopup::implicitHeight() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->implicitHeight();
-}
-
-void QQuickPopup::setImplicitHeight(qreal height)
-{
- Q_D(QQuickPopup);
- d->popupItem->setImplicitHeight(height);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::contentWidth
-
- This property holds the content width. It is used for calculating the
- total implicit width of the Popup.
-
- For more information, see \l {Popup Sizing}.
-
- \sa contentHeight
-*/
-qreal QQuickPopup::contentWidth() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->contentWidth();
-}
-
-void QQuickPopup::setContentWidth(qreal width)
-{
- Q_D(QQuickPopup);
- d->popupItem->setContentWidth(width);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::contentHeight
-
- This property holds the content height. It is used for calculating the
- total implicit height of the Popup.
-
- For more information, see \l {Popup Sizing}.
-
- \sa contentWidth
-*/
-qreal QQuickPopup::contentHeight() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->contentHeight();
-}
-
-void QQuickPopup::setContentHeight(qreal height)
-{
- Q_D(QQuickPopup);
- d->popupItem->setContentHeight(height);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::availableWidth
- \readonly
-
- This property holds the width available to the \l contentItem after
- deducting horizontal padding from the \l {Item::}{width} of the popup.
-
- \sa padding, leftPadding, rightPadding
-*/
-qreal QQuickPopup::availableWidth() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->availableWidth();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::availableHeight
- \readonly
-
- This property holds the height available to the \l contentItem after
- deducting vertical padding from the \l {Item::}{height} of the popup.
-
- \sa padding, topPadding, bottomPadding
-*/
-qreal QQuickPopup::availableHeight() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->availableHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlproperty real QtQuick.Controls::Popup::spacing
-
- This property holds the spacing.
-
- Spacing is useful for popups that have multiple or repetitive building
- blocks. For example, some styles use spacing to determine the distance
- between the header, content, and footer of \l Dialog. Spacing is not
- enforced by Popup, so each style may interpret it differently, and some
- may ignore it altogether.
-*/
-qreal QQuickPopup::spacing() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->spacing();
-}
-
-void QQuickPopup::setSpacing(qreal spacing)
-{
- Q_D(QQuickPopup);
- d->popupItem->setSpacing(spacing);
-}
-
-void QQuickPopup::resetSpacing()
-{
- setSpacing(0);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::margins
-
- This property holds the distance between the edges of the popup and the
- edges of its window.
-
- A popup with negative margins is not pushed within the bounds
- of the enclosing window. The default value is \c -1.
-
- \sa topMargin, leftMargin, rightMargin, bottomMargin, {Popup Layout}
-*/
-qreal QQuickPopup::margins() const
-{
- Q_D(const QQuickPopup);
- return d->margins;
-}
-
-void QQuickPopup::setMargins(qreal margins)
-{
- Q_D(QQuickPopup);
- if (qFuzzyCompare(d->margins, margins))
- return;
- QMarginsF oldMargins(leftMargin(), topMargin(), rightMargin(), bottomMargin());
- d->margins = margins;
- emit marginsChanged();
- QMarginsF newMargins(leftMargin(), topMargin(), rightMargin(), bottomMargin());
- if (!qFuzzyCompare(newMargins.top(), oldMargins.top()))
- emit topMarginChanged();
- if (!qFuzzyCompare(newMargins.left(), oldMargins.left()))
- emit leftMarginChanged();
- if (!qFuzzyCompare(newMargins.right(), oldMargins.right()))
- emit rightMarginChanged();
- if (!qFuzzyCompare(newMargins.bottom(), oldMargins.bottom()))
- emit bottomMarginChanged();
- marginsChange(newMargins, oldMargins);
-}
-
-void QQuickPopup::resetMargins()
-{
- setMargins(-1);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::topMargin
-
- This property holds the distance between the top edge of the popup and
- the top edge of its window.
-
- A popup with a negative top margin is not pushed within the top edge
- of the enclosing window. The default value is \c -1.
-
- \sa margins, bottomMargin, {Popup Layout}
-*/
-qreal QQuickPopup::topMargin() const
-{
- Q_D(const QQuickPopup);
- if (d->hasTopMargin)
- return d->topMargin;
- return d->margins;
-}
-
-void QQuickPopup::setTopMargin(qreal margin)
-{
- Q_D(QQuickPopup);
- d->setTopMargin(margin);
-}
-
-void QQuickPopup::resetTopMargin()
-{
- Q_D(QQuickPopup);
- d->setTopMargin(-1, true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::leftMargin
-
- This property holds the distance between the left edge of the popup and
- the left edge of its window.
-
- A popup with a negative left margin is not pushed within the left edge
- of the enclosing window. The default value is \c -1.
-
- \sa margins, rightMargin, {Popup Layout}
-*/
-qreal QQuickPopup::leftMargin() const
-{
- Q_D(const QQuickPopup);
- if (d->hasLeftMargin)
- return d->leftMargin;
- return d->margins;
-}
-
-void QQuickPopup::setLeftMargin(qreal margin)
-{
- Q_D(QQuickPopup);
- d->setLeftMargin(margin);
-}
-
-void QQuickPopup::resetLeftMargin()
-{
- Q_D(QQuickPopup);
- d->setLeftMargin(-1, true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::rightMargin
-
- This property holds the distance between the right edge of the popup and
- the right edge of its window.
-
- A popup with a negative right margin is not pushed within the right edge
- of the enclosing window. The default value is \c -1.
-
- \sa margins, leftMargin, {Popup Layout}
-*/
-qreal QQuickPopup::rightMargin() const
-{
- Q_D(const QQuickPopup);
- if (d->hasRightMargin)
- return d->rightMargin;
- return d->margins;
-}
-
-void QQuickPopup::setRightMargin(qreal margin)
-{
- Q_D(QQuickPopup);
- d->setRightMargin(margin);
-}
-
-void QQuickPopup::resetRightMargin()
-{
- Q_D(QQuickPopup);
- d->setRightMargin(-1, true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::bottomMargin
-
- This property holds the distance between the bottom edge of the popup and
- the bottom edge of its window.
-
- A popup with a negative bottom margin is not pushed within the bottom edge
- of the enclosing window. The default value is \c -1.
-
- \sa margins, topMargin, {Popup Layout}
-*/
-qreal QQuickPopup::bottomMargin() const
-{
- Q_D(const QQuickPopup);
- if (d->hasBottomMargin)
- return d->bottomMargin;
- return d->margins;
-}
-
-void QQuickPopup::setBottomMargin(qreal margin)
-{
- Q_D(QQuickPopup);
- d->setBottomMargin(margin);
-}
-
-void QQuickPopup::resetBottomMargin()
-{
- Q_D(QQuickPopup);
- d->setBottomMargin(-1, true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::padding
-
- This property holds the default padding.
-
- \include qquickpopup-padding.qdocinc
-
- \sa availableWidth, availableHeight, topPadding, leftPadding, rightPadding, bottomPadding
-*/
-qreal QQuickPopup::padding() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->padding();
-}
-
-void QQuickPopup::setPadding(qreal padding)
-{
- Q_D(QQuickPopup);
- d->popupItem->setPadding(padding);
-}
-
-void QQuickPopup::resetPadding()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetPadding();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::topPadding
-
- This property holds the top padding. Unless explicitly set, the value
- is equal to \c verticalPadding.
-
- \include qquickpopup-padding.qdocinc
-
- \sa padding, bottomPadding, verticalPadding, availableHeight
-*/
-qreal QQuickPopup::topPadding() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->topPadding();
-}
-
-void QQuickPopup::setTopPadding(qreal padding)
-{
- Q_D(QQuickPopup);
- d->popupItem->setTopPadding(padding);
-}
-
-void QQuickPopup::resetTopPadding()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetTopPadding();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::leftPadding
-
- This property holds the left padding. Unless explicitly set, the value
- is equal to \c horizontalPadding.
-
- \include qquickpopup-padding.qdocinc
-
- \sa padding, rightPadding, horizontalPadding, availableWidth
-*/
-qreal QQuickPopup::leftPadding() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->leftPadding();
-}
-
-void QQuickPopup::setLeftPadding(qreal padding)
-{
- Q_D(QQuickPopup);
- d->popupItem->setLeftPadding(padding);
-}
-
-void QQuickPopup::resetLeftPadding()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetLeftPadding();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::rightPadding
-
- This property holds the right padding. Unless explicitly set, the value
- is equal to \c horizontalPadding.
-
- \include qquickpopup-padding.qdocinc
-
- \sa padding, leftPadding, horizontalPadding, availableWidth
-*/
-qreal QQuickPopup::rightPadding() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->rightPadding();
-}
-
-void QQuickPopup::setRightPadding(qreal padding)
-{
- Q_D(QQuickPopup);
- d->popupItem->setRightPadding(padding);
-}
-
-void QQuickPopup::resetRightPadding()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetRightPadding();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::bottomPadding
-
- This property holds the bottom padding. Unless explicitly set, the value
- is equal to \c verticalPadding.
-
- \include qquickpopup-padding.qdocinc
-
- \sa padding, topPadding, verticalPadding, availableHeight
-*/
-qreal QQuickPopup::bottomPadding() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->bottomPadding();
-}
-
-void QQuickPopup::setBottomPadding(qreal padding)
-{
- Q_D(QQuickPopup);
- d->popupItem->setBottomPadding(padding);
-}
-
-void QQuickPopup::resetBottomPadding()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetBottomPadding();
-}
-
-/*!
- \qmlproperty Locale QtQuick.Controls::Popup::locale
-
- This property holds the locale of the popup.
-
- \sa mirrored, {LayoutMirroring}{LayoutMirroring}
-*/
-QLocale QQuickPopup::locale() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->locale();
-}
-
-void QQuickPopup::setLocale(const QLocale &locale)
-{
- Q_D(QQuickPopup);
- d->popupItem->setLocale(locale);
-}
-
-void QQuickPopup::resetLocale()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetLocale();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::Popup::mirrored
- \readonly
-
- This property holds whether the popup is mirrored.
-
- This property is provided for convenience. A popup is considered mirrored
- when its visual layout direction is right-to-left; that is, when using a
- right-to-left locale.
-
- \sa locale, {Right-to-left User Interfaces}
-*/
-bool QQuickPopup::isMirrored() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->isMirrored();
-}
-
-/*!
- \qmlproperty font QtQuick.Controls::Popup::font
-
- This property holds the font currently set for the popup.
-
- Popup propagates explicit font properties to its children. If you change a specific
- property on a popup's font, that property propagates to all of the popup's children,
- overriding any system defaults for that property.
-
- \code
- Popup {
- font.family: "Courier"
-
- Column {
- Label {
- text: qsTr("This will use Courier...")
- }
-
- Switch {
- text: qsTr("... and so will this")
- }
- }
- }
- \endcode
-
- \sa Control::font, ApplicationWindow::font
-*/
-QFont QQuickPopup::font() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->font();
-}
-
-void QQuickPopup::setFont(const QFont &font)
-{
- Q_D(QQuickPopup);
- d->popupItem->setFont(font);
-}
-
-void QQuickPopup::resetFont()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetFont();
-}
-
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty palette QtQuick.Controls::Popup::palette
-
- This property holds the palette currently set for the popup.
-
- Popup propagates explicit palette properties to its children. If you change a specific
- property on a popup's palette, that property propagates to all of the popup's children,
- overriding any system defaults for that property.
-
- \code
- Popup {
- palette.text: "red"
-
- Column {
- Label {
- text: qsTr("This will use red color...")
- }
-
- Switch {
- text: qsTr("... and so will this")
- }
- }
- }
- \endcode
-
- \sa Control::palette, ApplicationWindow::palette, {qtquickcontrols2-palette}{palette QML Basic Type}
-*/
-QPalette QQuickPopup::palette() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->palette();
-}
-
-void QQuickPopup::setPalette(const QPalette &palette)
-{
- Q_D(QQuickPopup);
- d->popupItem->setPalette(palette);
-}
-
-void QQuickPopup::resetPalette()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetPalette();
-}
-
-QQuickWindow *QQuickPopup::window() const
-{
- Q_D(const QQuickPopup);
- return d->window;
-}
-
-QQuickItem *QQuickPopup::popupItem() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem;
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Popup::parent
-
- This property holds the parent item.
-*/
-QQuickItem *QQuickPopup::parentItem() const
-{
- Q_D(const QQuickPopup);
- return d->parentItem;
-}
-
-void QQuickPopup::setParentItem(QQuickItem *parent)
-{
- Q_D(QQuickPopup);
- if (d->parentItem == parent)
- return;
-
- if (d->parentItem) {
- QObjectPrivate::disconnect(d->parentItem, &QQuickItem::windowChanged, d, &QQuickPopupPrivate::setWindow);
- QQuickItemPrivate::get(d->parentItem)->removeItemChangeListener(d, QQuickItemPrivate::Destroyed);
- }
- d->parentItem = parent;
- QQuickPopupPositioner *positioner = d->getPositioner();
- if (positioner->parentItem())
- positioner->setParentItem(parent);
- if (parent) {
- QObjectPrivate::connect(parent, &QQuickItem::windowChanged, d, &QQuickPopupPrivate::setWindow);
- QQuickItemPrivate::get(d->parentItem)->addItemChangeListener(d, QQuickItemPrivate::Destroyed);
- } else {
- close();
- }
- d->setWindow(parent ? parent->window() : nullptr);
- emit parentChanged();
-}
-
-void QQuickPopup::resetParentItem()
-{
- if (QQuickWindow *window = qobject_cast<QQuickWindow *>(parent()))
- setParentItem(window->contentItem());
- else
- setParentItem(qobject_cast<QQuickItem *>(parent()));
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Popup::background
-
- This property holds the background item.
-
- \note If the background item has no explicit size specified, it automatically
- follows the popup's size. In most cases, there is no need to specify
- width or height for a background item.
-
- \note Most popups use the implicit size of the background item to calculate
- the implicit size of the popup itself. If you replace the background item
- with a custom one, you should also consider providing a sensible implicit
- size for it (unless it is an item like \l Image which has its own implicit
- size).
-
- \sa {Customizing Popup}
-*/
-QQuickItem *QQuickPopup::background() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->background();
-}
-
-void QQuickPopup::setBackground(QQuickItem *background)
-{
- Q_D(QQuickPopup);
- d->popupItem->setBackground(background);
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Popup::contentItem
-
- This property holds the content item of the popup.
-
- The content item is the visual implementation of the popup. When the
- popup is made visible, the content item is automatically reparented to
- the \l {Overlay::overlay}{overlay item}.
-
- \note The content item is automatically resized to fit within the
- \l padding of the popup.
-
- \note Most popups use the implicit size of the content item to calculate
- the implicit size of the popup itself. If you replace the content item
- with a custom one, you should also consider providing a sensible implicit
- size for it (unless it is an item like \l Text which has its own implicit
- size).
-
- \sa {Customizing Popup}
-*/
-QQuickItem *QQuickPopup::contentItem() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->contentItem();
-}
-
-void QQuickPopup::setContentItem(QQuickItem *item)
-{
- Q_D(QQuickPopup);
- d->popupItem->setContentItem(item);
-}
-
-/*!
- \qmlproperty list<Object> QtQuick.Controls::Popup::contentData
- \default
-
- This property holds the list of content data.
-
- The list contains all objects that have been declared in QML as children
- of the popup.
-
- \note Unlike \c contentChildren, \c contentData does include non-visual QML
- objects.
-
- \sa Item::data, contentChildren
-*/
-QQmlListProperty<QObject> QQuickPopupPrivate::contentData()
-{
- QQuickControlPrivate *p = QQuickControlPrivate::get(popupItem);
- if (!p->contentItem)
- p->executeContentItem();
- return QQmlListProperty<QObject>(popupItem->contentItem(), nullptr,
- QQuickItemPrivate::data_append,
- QQuickItemPrivate::data_count,
- QQuickItemPrivate::data_at,
- QQuickItemPrivate::data_clear);
-}
-
-/*!
- \qmlproperty list<Item> QtQuick.Controls::Popup::contentChildren
-
- This property holds the list of content children.
-
- The list contains all items that have been declared in QML as children
- of the popup.
-
- \note Unlike \c contentData, \c contentChildren does not include non-visual
- QML objects.
-
- \sa Item::children, contentData
-*/
-QQmlListProperty<QQuickItem> QQuickPopupPrivate::contentChildren()
-{
- return QQmlListProperty<QQuickItem>(popupItem->contentItem(), nullptr,
- QQuickItemPrivate::children_append,
- QQuickItemPrivate::children_count,
- QQuickItemPrivate::children_at,
- QQuickItemPrivate::children_clear);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Popup::clip
-
- This property holds whether clipping is enabled. The default value is \c false.
-*/
-bool QQuickPopup::clip() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->clip();
-}
-
-void QQuickPopup::setClip(bool clip)
-{
- Q_D(QQuickPopup);
- if (clip == d->popupItem->clip())
- return;
- d->popupItem->setClip(clip);
- emit clipChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Popup::focus
-
- This property holds whether the popup wants focus.
-
- When the popup actually receives focus, \l activeFocus will be \c true.
- For more information, see \l {Keyboard Focus in Qt Quick}.
-
- The default value is \c false.
-
- \sa activeFocus
-*/
-bool QQuickPopup::hasFocus() const
-{
- Q_D(const QQuickPopup);
- return d->focus;
-}
-
-void QQuickPopup::setFocus(bool focus)
-{
- Q_D(QQuickPopup);
- if (d->focus == focus)
- return;
- d->focus = focus;
- emit focusChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Popup::activeFocus
- \readonly
-
- This property holds whether the popup has active focus.
-
- \sa focus, {Keyboard Focus in Qt Quick}
-*/
-bool QQuickPopup::hasActiveFocus() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->hasActiveFocus();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Popup::modal
-
- This property holds whether the popup is modal.
-
- Modal popups often have a distinctive background dimming effect defined
- in \l {Overlay::modal}{Overlay.modal}, and do not allow press
- or release events through to items beneath them. For example, if the user
- accidentally clicks outside of a popup, any item beneath that popup at
- the location of the click will not receive the event.
-
- On desktop platforms, it is common for modal popups to be closed only when
- the escape key is pressed. To achieve this behavior, set
- \l closePolicy to \c Popup.CloseOnEscape. By default, \c closePolicy
- is set to \c {Popup.CloseOnEscape | Popup.CloseOnPressOutside}, which
- means that clicking outside of a modal popup will close it.
-
- The default value is \c false.
-
- \sa dim
-*/
-bool QQuickPopup::isModal() const
-{
- Q_D(const QQuickPopup);
- return d->modal;
-}
-
-void QQuickPopup::setModal(bool modal)
-{
- Q_D(QQuickPopup);
- if (d->modal == modal)
- return;
- d->modal = modal;
- if (d->complete && d->visible)
- d->toggleOverlay();
- emit modalChanged();
-
- if (!d->hasDim) {
- setDim(modal);
- d->hasDim = false;
- }
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Popup::dim
-
- This property holds whether the popup dims the background.
-
- Unless explicitly set, this property follows the value of \l modal. To
- return to the default value, set this property to \c undefined.
-
- \sa modal, {Overlay::modeless}{Overlay.modeless}
-*/
-bool QQuickPopup::dim() const
-{
- Q_D(const QQuickPopup);
- return d->dim;
-}
-
-void QQuickPopup::setDim(bool dim)
-{
- Q_D(QQuickPopup);
- d->hasDim = true;
-
- if (d->dim == dim)
- return;
-
- d->dim = dim;
- if (d->complete && d->visible)
- d->toggleOverlay();
- emit dimChanged();
-}
-
-void QQuickPopup::resetDim()
-{
- Q_D(QQuickPopup);
- if (!d->hasDim)
- return;
-
- setDim(d->modal);
- d->hasDim = false;
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Popup::visible
-
- This property holds whether the popup is visible. The default value is \c false.
-
- \sa open(), close(), opened
-*/
-bool QQuickPopup::isVisible() const
-{
- Q_D(const QQuickPopup);
- return d->visible && d->popupItem->isVisible();
-}
-
-void QQuickPopup::setVisible(bool visible)
-{
- Q_D(QQuickPopup);
- if (d->visible == visible && d->transitionState != QQuickPopupPrivate::ExitTransition)
- return;
-
- if (d->complete) {
- if (visible)
- d->transitionManager.transitionEnter();
- else
- d->transitionManager.transitionExit();
- } else {
- d->visible = visible;
- }
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::Popup::enabled
-
- This property holds whether the popup is enabled. The default value is \c true.
-
- \sa visible, Item::enabled
-*/
-bool QQuickPopup::isEnabled() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->isEnabled();
-}
-
-void QQuickPopup::setEnabled(bool enabled)
-{
- Q_D(QQuickPopup);
- d->popupItem->setEnabled(enabled);
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::Popup::opened
-
- This property holds whether the popup is fully open. The popup is considered opened
- when it's visible and neither the \l enter nor \l exit transitions are running.
-
- \sa open(), close(), visible
-*/
-bool QQuickPopup::isOpened() const
-{
- Q_D(const QQuickPopup);
- return d->transitionState == QQuickPopupPrivate::NoTransition && isVisible();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::opacity
-
- This property holds the opacity of the popup. Opacity is specified as a number between
- \c 0.0 (fully transparent) and \c 1.0 (fully opaque). The default value is \c 1.0.
-
- \sa visible
-*/
-qreal QQuickPopup::opacity() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->opacity();
-}
-
-void QQuickPopup::setOpacity(qreal opacity)
-{
- Q_D(QQuickPopup);
- d->popupItem->setOpacity(opacity);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Popup::scale
-
- This property holds the scale factor of the popup. The default value is \c 1.0.
-
- A scale of less than \c 1.0 causes the popup to be rendered at a smaller size,
- and a scale greater than \c 1.0 renders the popup at a larger size. Negative
- scales are not supported.
-*/
-qreal QQuickPopup::scale() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->scale();
-}
-
-void QQuickPopup::setScale(qreal scale)
-{
- Q_D(QQuickPopup);
- if (qFuzzyCompare(scale, d->popupItem->scale()))
- return;
- d->popupItem->setScale(scale);
- emit scaleChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Popup::closePolicy
-
- This property determines the circumstances under which the popup closes.
- The flags can be combined to allow several ways of closing the popup.
-
- The available values are:
- \value Popup.NoAutoClose The popup will only close when manually instructed to do so.
- \value Popup.CloseOnPressOutside The popup will close when the mouse is pressed outside of it.
- \value Popup.CloseOnPressOutsideParent The popup will close when the mouse is pressed outside of its parent.
- \value Popup.CloseOnReleaseOutside The popup will close when the mouse is released outside of it.
- \value Popup.CloseOnReleaseOutsideParent The popup will close when the mouse is released outside of its parent.
- \value Popup.CloseOnEscape The popup will close when the escape key is pressed while the popup
- has active focus.
-
- The default value is \c {Popup.CloseOnEscape | Popup.CloseOnPressOutside}.
-
- \note There is a known limitation that the \c Popup.CloseOnReleaseOutside
- and \c Popup.CloseOnReleaseOutsideParent policies only work with
- \l modal popups.
-*/
-QQuickPopup::ClosePolicy QQuickPopup::closePolicy() const
-{
- Q_D(const QQuickPopup);
- return d->closePolicy;
-}
-
-void QQuickPopup::setClosePolicy(ClosePolicy policy)
-{
- Q_D(QQuickPopup);
- d->hasClosePolicy = true;
- if (d->closePolicy == policy)
- return;
- d->closePolicy = policy;
- if (isVisible()) {
- if (policy & QQuickPopup::CloseOnEscape)
- d->popupItem->grabShortcut();
- else
- d->popupItem->ungrabShortcut();
- }
- emit closePolicyChanged();
-}
-
-void QQuickPopup::resetClosePolicy()
-{
- Q_D(QQuickPopup);
- setClosePolicy(QQuickPopupPrivate::DefaultClosePolicy);
- d->hasClosePolicy = false;
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Popup::transformOrigin
-
- This property holds the origin point for transformations in enter and exit transitions.
-
- Nine transform origins are available, as shown in the image below.
- The default transform origin is \c Popup.Center.
-
- \image qtquickcontrols2-popup-transformorigin.png
-
- \sa enter, exit, Item::transformOrigin
-*/
-QQuickPopup::TransformOrigin QQuickPopup::transformOrigin() const
-{
- Q_D(const QQuickPopup);
- return static_cast<TransformOrigin>(d->popupItem->transformOrigin());
-}
-
-void QQuickPopup::setTransformOrigin(TransformOrigin origin)
-{
- Q_D(QQuickPopup);
- d->popupItem->setTransformOrigin(static_cast<QQuickItem::TransformOrigin>(origin));
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::Popup::enter
-
- This property holds the transition that is applied to the popup item
- when the popup is opened and enters the screen.
-
- The following example animates the opacity of the popup when it enters
- the screen:
- \code
- Popup {
- enter: Transition {
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0 }
- }
- }
- \endcode
-
- \sa exit
-*/
-QQuickTransition *QQuickPopup::enter() const
-{
- Q_D(const QQuickPopup);
- return d->enter;
-}
-
-void QQuickPopup::setEnter(QQuickTransition *transition)
-{
- Q_D(QQuickPopup);
- if (d->enter == transition)
- return;
- d->enter = transition;
- emit enterChanged();
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::Popup::exit
-
- This property holds the transition that is applied to the popup item
- when the popup is closed and exits the screen.
-
- The following example animates the opacity of the popup when it exits
- the screen:
- \code
- Popup {
- exit: Transition {
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0 }
- }
- }
- \endcode
-
- \sa enter
-*/
-QQuickTransition *QQuickPopup::exit() const
-{
- Q_D(const QQuickPopup);
- return d->exit;
-}
-
-void QQuickPopup::setExit(QQuickTransition *transition)
-{
- Q_D(QQuickPopup);
- if (d->exit == transition)
- return;
- d->exit = transition;
- emit exitChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::horizontalPadding
-
- This property holds the horizontal padding. Unless explicitly set, the value
- is equal to \c padding.
-
- \include qquickpopup-padding.qdocinc
-
- \sa padding, leftPadding, rightPadding, verticalPadding
-*/
-qreal QQuickPopup::horizontalPadding() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->horizontalPadding();
-}
-
-void QQuickPopup::setHorizontalPadding(qreal padding)
-{
- Q_D(QQuickPopup);
- d->popupItem->setHorizontalPadding(padding);
-}
-
-void QQuickPopup::resetHorizontalPadding()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetHorizontalPadding();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::verticalPadding
-
- This property holds the vertical padding. Unless explicitly set, the value
- is equal to \c padding.
-
- \include qquickpopup-padding.qdocinc
-
- \sa padding, topPadding, bottomPadding, horizontalPadding
-*/
-qreal QQuickPopup::verticalPadding() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->verticalPadding();
-}
-
-void QQuickPopup::setVerticalPadding(qreal padding)
-{
- Q_D(QQuickPopup);
- d->popupItem->setVerticalPadding(padding);
-}
-
-void QQuickPopup::resetVerticalPadding()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetVerticalPadding();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::implicitContentWidth
- \readonly
-
- This property holds the implicit content width.
-
- The value is calculated based on the content children.
-
- \sa implicitContentHeight, implicitBackgroundWidth
-*/
-qreal QQuickPopup::implicitContentWidth() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->implicitContentWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::implicitContentHeight
- \readonly
-
- This property holds the implicit content height.
-
- The value is calculated based on the content children.
-
- \sa implicitContentWidth, implicitBackgroundHeight
-*/
-qreal QQuickPopup::implicitContentHeight() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->implicitContentHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::implicitBackgroundWidth
- \readonly
-
- This property holds the implicit background width.
-
- The value is equal to \c {background ? background.implicitWidth : 0}.
-
- \sa implicitBackgroundHeight, implicitContentWidth
-*/
-qreal QQuickPopup::implicitBackgroundWidth() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->implicitBackgroundWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::implicitBackgroundHeight
- \readonly
-
- This property holds the implicit background height.
-
- The value is equal to \c {background ? background.implicitHeight : 0}.
-
- \sa implicitBackgroundWidth, implicitContentHeight
-*/
-qreal QQuickPopup::implicitBackgroundHeight() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->implicitBackgroundHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::topInset
-
- This property holds the top inset for the background.
-
- \sa {Popup Layout}, bottomInset
-*/
-qreal QQuickPopup::topInset() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->topInset();
-}
-
-void QQuickPopup::setTopInset(qreal inset)
-{
- Q_D(QQuickPopup);
- d->popupItem->setTopInset(inset);
-}
-
-void QQuickPopup::resetTopInset()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetTopInset();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::leftInset
-
- This property holds the left inset for the background.
-
- \sa {Popup Layout}, rightInset
-*/
-qreal QQuickPopup::leftInset() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->leftInset();
-}
-
-void QQuickPopup::setLeftInset(qreal inset)
-{
- Q_D(QQuickPopup);
- d->popupItem->setLeftInset(inset);
-}
-
-void QQuickPopup::resetLeftInset()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetLeftInset();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::rightInset
-
- This property holds the right inset for the background.
-
- \sa {Popup Layout}, leftInset
-*/
-qreal QQuickPopup::rightInset() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->rightInset();
-}
-
-void QQuickPopup::setRightInset(qreal inset)
-{
- Q_D(QQuickPopup);
- d->popupItem->setRightInset(inset);
-}
-
-void QQuickPopup::resetRightInset()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetRightInset();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Popup::bottomInset
-
- This property holds the bottom inset for the background.
-
- \sa {Popup Layout}, topInset
-*/
-qreal QQuickPopup::bottomInset() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->bottomInset();
-}
-
-void QQuickPopup::setBottomInset(qreal inset)
-{
- Q_D(QQuickPopup);
- d->popupItem->setBottomInset(inset);
-}
-
-void QQuickPopup::resetBottomInset()
-{
- Q_D(QQuickPopup);
- d->popupItem->resetBottomInset();
-}
-
-bool QQuickPopup::filtersChildMouseEvents() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->filtersChildMouseEvents();
-}
-
-void QQuickPopup::setFiltersChildMouseEvents(bool filter)
-{
- Q_D(QQuickPopup);
- d->popupItem->setFiltersChildMouseEvents(filter);
-}
-
-/*!
- \qmlmethod QtQuick.Controls::Popup::forceActiveFocus(reason = Qt.OtherFocusReason)
-
- Forces active focus on the popup with the given \a reason.
-
- This method sets focus on the popup and ensures that all ancestor
- \l FocusScope objects in the object hierarchy are also given \l focus.
-
- \sa activeFocus, Qt::FocusReason
-*/
-void QQuickPopup::forceActiveFocus(Qt::FocusReason reason)
-{
- Q_D(QQuickPopup);
- d->popupItem->forceActiveFocus(reason);
-}
-
-void QQuickPopup::classBegin()
-{
- Q_D(QQuickPopup);
- d->complete = false;
- QQmlContext *context = qmlContext(this);
- if (context)
- QQmlEngine::setContextForObject(d->popupItem, context);
- d->popupItem->classBegin();
-}
-
-void QQuickPopup::componentComplete()
-{
- Q_D(QQuickPopup);
- if (!parentItem())
- resetParentItem();
-
- if (d->visible && d->window)
- d->transitionManager.transitionEnter();
-
- d->complete = true;
- d->popupItem->componentComplete();
-}
-
-bool QQuickPopup::isComponentComplete() const
-{
- Q_D(const QQuickPopup);
- return d->complete;
-}
-
-bool QQuickPopup::childMouseEventFilter(QQuickItem *child, QEvent *event)
-{
- Q_UNUSED(child);
- Q_UNUSED(event);
- return false;
-}
-
-void QQuickPopup::focusInEvent(QFocusEvent *event)
-{
- event->accept();
-}
-
-void QQuickPopup::focusOutEvent(QFocusEvent *event)
-{
- event->accept();
-}
-
-void QQuickPopup::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickPopup);
- event->accept();
-
- if (hasActiveFocus() && (event->key() == Qt::Key_Tab || event->key() == Qt::Key_Backtab))
- QQuickItemPrivate::focusNextPrev(d->popupItem, event->key() == Qt::Key_Tab);
-}
-
-void QQuickPopup::keyReleaseEvent(QKeyEvent *event)
-{
- event->accept();
-}
-
-void QQuickPopup::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickPopup);
- d->handleMouseEvent(d->popupItem, event);
- event->accept();
-}
-
-void QQuickPopup::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickPopup);
- d->handleMouseEvent(d->popupItem, event);
- event->accept();
-}
-
-void QQuickPopup::mouseReleaseEvent(QMouseEvent *event)
-{
- Q_D(QQuickPopup);
- d->handleMouseEvent(d->popupItem, event);
- event->accept();
-}
-
-void QQuickPopup::mouseDoubleClickEvent(QMouseEvent *event)
-{
- event->accept();
-}
-
-void QQuickPopup::mouseUngrabEvent()
-{
- Q_D(QQuickPopup);
- d->handleUngrab();
-}
-
-bool QQuickPopup::overlayEvent(QQuickItem *item, QEvent *event)
-{
- Q_D(QQuickPopup);
- switch (event->type()) {
- case QEvent::KeyPress:
- case QEvent::KeyRelease:
- case QEvent::MouseMove:
- case QEvent::Wheel:
- if (d->modal)
- event->accept();
- return d->modal;
-
-#if QT_CONFIG(quicktemplates2_multitouch)
- case QEvent::TouchBegin:
- case QEvent::TouchUpdate:
- case QEvent::TouchEnd:
- return d->handleTouchEvent(item, static_cast<QTouchEvent *>(event));
-#endif
-
- case QEvent::MouseButtonPress:
- case QEvent::MouseButtonRelease:
- return d->handleMouseEvent(item, static_cast<QMouseEvent *>(event));
-
- default:
- return false;
- }
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickPopup::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickPopup);
- d->handleTouchEvent(d->popupItem, event);
-}
-
-void QQuickPopup::touchUngrabEvent()
-{
- Q_D(QQuickPopup);
- d->handleUngrab();
-}
-#endif
-
-#if QT_CONFIG(wheelevent)
-void QQuickPopup::wheelEvent(QWheelEvent *event)
-{
- event->accept();
-}
-#endif
-
-void QQuickPopup::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_UNUSED(newItem);
- Q_UNUSED(oldItem);
-}
-
-void QQuickPopup::contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize)
-{
- if (!qFuzzyCompare(newSize.width(), oldSize.width()))
- emit contentWidthChanged();
- if (!qFuzzyCompare(newSize.height(), oldSize.height()))
- emit contentHeightChanged();
-}
-
-void QQuickPopup::fontChange(const QFont &newFont, const QFont &oldFont)
-{
- Q_UNUSED(newFont);
- Q_UNUSED(oldFont);
- emit fontChanged();
-}
-
-void QQuickPopup::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickPopup);
- d->reposition();
- if (!qFuzzyCompare(newGeometry.width(), oldGeometry.width())) {
- emit widthChanged();
- emit availableWidthChanged();
- }
- if (!qFuzzyCompare(newGeometry.height(), oldGeometry.height())) {
- emit heightChanged();
- emit availableHeightChanged();
- }
-}
-
-void QQuickPopup::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- Q_D(QQuickPopup);
-
- switch (change) {
- case QQuickItem::ItemActiveFocusHasChanged:
- emit activeFocusChanged();
- break;
- case QQuickItem::ItemOpacityHasChanged:
- emit opacityChanged();
- break;
- case QQuickItem::ItemVisibleHasChanged:
- if (isComponentComplete() && d->closePolicy & CloseOnEscape) {
- if (data.boolValue)
- d->popupItem->grabShortcut();
- else
- d->popupItem->ungrabShortcut();
- }
- break;
- default:
- break;
- }
-}
-
-void QQuickPopup::localeChange(const QLocale &newLocale, const QLocale &oldLocale)
-{
- Q_UNUSED(newLocale);
- Q_UNUSED(oldLocale);
- emit localeChanged();
-}
-
-void QQuickPopup::marginsChange(const QMarginsF &newMargins, const QMarginsF &oldMargins)
-{
- Q_D(QQuickPopup);
- Q_UNUSED(newMargins);
- Q_UNUSED(oldMargins);
- d->reposition();
-}
-
-void QQuickPopup::paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
-{
- const bool tp = !qFuzzyCompare(newPadding.top(), oldPadding.top());
- const bool lp = !qFuzzyCompare(newPadding.left(), oldPadding.left());
- const bool rp = !qFuzzyCompare(newPadding.right(), oldPadding.right());
- const bool bp = !qFuzzyCompare(newPadding.bottom(), oldPadding.bottom());
-
- if (tp)
- emit topPaddingChanged();
- if (lp)
- emit leftPaddingChanged();
- if (rp)
- emit rightPaddingChanged();
- if (bp)
- emit bottomPaddingChanged();
-
- if (lp || rp) {
- emit horizontalPaddingChanged();
- emit availableWidthChanged();
- }
- if (tp || bp) {
- emit verticalPaddingChanged();
- emit availableHeightChanged();
- }
-}
-
-void QQuickPopup::paletteChange(const QPalette &newPalette, const QPalette &oldPalette)
-{
- Q_UNUSED(newPalette);
- Q_UNUSED(oldPalette);
- emit paletteChanged();
-}
-
-void QQuickPopup::spacingChange(qreal newSpacing, qreal oldSpacing)
-{
- Q_UNUSED(newSpacing);
- Q_UNUSED(oldSpacing);
- emit spacingChanged();
-}
-
-void QQuickPopup::insetChange(const QMarginsF &newInset, const QMarginsF &oldInset)
-{
- if (!qFuzzyCompare(newInset.top(), oldInset.top()))
- emit topInsetChanged();
- if (!qFuzzyCompare(newInset.left(), oldInset.left()))
- emit leftInsetChanged();
- if (!qFuzzyCompare(newInset.right(), oldInset.right()))
- emit rightInsetChanged();
- if (!qFuzzyCompare(newInset.bottom(), oldInset.bottom()))
- emit bottomInsetChanged();
-}
-
-QFont QQuickPopup::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::System);
-}
-
-QPalette QQuickPopup::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::System);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickPopup::accessibleRole() const
-{
- return QAccessible::Dialog;
-}
-
-void QQuickPopup::accessibilityActiveChanged(bool active)
-{
- Q_UNUSED(active);
-}
-#endif
-
-QString QQuickPopup::accessibleName() const
-{
- Q_D(const QQuickPopup);
- return d->popupItem->accessibleName();
-}
-
-void QQuickPopup::setAccessibleName(const QString &name)
-{
- Q_D(QQuickPopup);
- d->popupItem->setAccessibleName(name);
-}
-
-QVariant QQuickPopup::accessibleProperty(const char *propertyName)
-{
- Q_D(const QQuickPopup);
- return d->popupItem->accessibleProperty(propertyName);
-}
-
-bool QQuickPopup::setAccessibleProperty(const char *propertyName, const QVariant &value)
-{
- Q_D(QQuickPopup);
- return d->popupItem->setAccessibleProperty(propertyName, value);
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquickpopup_p.cpp"
diff --git a/src/quicktemplates2/qquickpopup_p.h b/src/quicktemplates2/qquickpopup_p.h
deleted file mode 100644
index 12dbd247..00000000
--- a/src/quicktemplates2/qquickpopup_p.h
+++ /dev/null
@@ -1,481 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPOPUP_P_H
-#define QQUICKPOPUP_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtCore/qmargins.h>
-#include <QtGui/qevent.h>
-#include <QtCore/qlocale.h>
-#include <QtGui/qfont.h>
-#include <QtGui/qpalette.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtQml/qqml.h>
-#include <QtQml/qqmllist.h>
-#include <QtQml/qqmlparserstatus.h>
-#include <QtQuick/qquickitem.h>
-
-#if QT_CONFIG(accessibility)
-#include <QtGui/qaccessible.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-class QQuickWindow;
-class QQuickPopupAnchors;
-class QQuickPopupPrivate;
-class QQuickTransition;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPopup : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_INTERFACES(QQmlParserStatus)
- Q_PROPERTY(qreal x READ x WRITE setX NOTIFY xChanged FINAL)
- Q_PROPERTY(qreal y READ y WRITE setY NOTIFY yChanged FINAL)
- Q_PROPERTY(qreal z READ z WRITE setZ NOTIFY zChanged FINAL)
- Q_PROPERTY(qreal width READ width WRITE setWidth RESET resetWidth NOTIFY widthChanged FINAL)
- Q_PROPERTY(qreal height READ height WRITE setHeight RESET resetHeight NOTIFY heightChanged FINAL)
- Q_PROPERTY(qreal implicitWidth READ implicitWidth WRITE setImplicitWidth NOTIFY implicitWidthChanged FINAL)
- Q_PROPERTY(qreal implicitHeight READ implicitHeight WRITE setImplicitHeight NOTIFY implicitHeightChanged FINAL)
- Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth NOTIFY contentWidthChanged FINAL)
- Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight NOTIFY contentHeightChanged FINAL)
- Q_PROPERTY(qreal availableWidth READ availableWidth NOTIFY availableWidthChanged FINAL)
- Q_PROPERTY(qreal availableHeight READ availableHeight NOTIFY availableHeightChanged FINAL)
- Q_PROPERTY(qreal margins READ margins WRITE setMargins RESET resetMargins NOTIFY marginsChanged FINAL)
- Q_PROPERTY(qreal topMargin READ topMargin WRITE setTopMargin RESET resetTopMargin NOTIFY topMarginChanged FINAL)
- Q_PROPERTY(qreal leftMargin READ leftMargin WRITE setLeftMargin RESET resetLeftMargin NOTIFY leftMarginChanged FINAL)
- Q_PROPERTY(qreal rightMargin READ rightMargin WRITE setRightMargin RESET resetRightMargin NOTIFY rightMarginChanged FINAL)
- Q_PROPERTY(qreal bottomMargin READ bottomMargin WRITE setBottomMargin RESET resetBottomMargin NOTIFY bottomMarginChanged FINAL)
- Q_PROPERTY(qreal padding READ padding WRITE setPadding RESET resetPadding NOTIFY paddingChanged FINAL)
- Q_PROPERTY(qreal topPadding READ topPadding WRITE setTopPadding RESET resetTopPadding NOTIFY topPaddingChanged FINAL)
- Q_PROPERTY(qreal leftPadding READ leftPadding WRITE setLeftPadding RESET resetLeftPadding NOTIFY leftPaddingChanged FINAL)
- Q_PROPERTY(qreal rightPadding READ rightPadding WRITE setRightPadding RESET resetRightPadding NOTIFY rightPaddingChanged FINAL)
- Q_PROPERTY(qreal bottomPadding READ bottomPadding WRITE setBottomPadding RESET resetBottomPadding NOTIFY bottomPaddingChanged FINAL)
- Q_PROPERTY(QLocale locale READ locale WRITE setLocale RESET resetLocale NOTIFY localeChanged FINAL)
- Q_PROPERTY(QFont font READ font WRITE setFont RESET resetFont NOTIFY fontChanged FINAL)
- Q_PROPERTY(QQuickItem *parent READ parentItem WRITE setParentItem RESET resetParentItem NOTIFY parentChanged FINAL)
- Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
- Q_PROPERTY(QQuickItem *contentItem READ contentItem WRITE setContentItem NOTIFY contentItemChanged FINAL)
- Q_PRIVATE_PROPERTY(QQuickPopup::d_func(), QQmlListProperty<QObject> contentData READ contentData FINAL)
- Q_PRIVATE_PROPERTY(QQuickPopup::d_func(), QQmlListProperty<QQuickItem> contentChildren READ contentChildren NOTIFY contentChildrenChanged FINAL)
- Q_PROPERTY(bool clip READ clip WRITE setClip NOTIFY clipChanged FINAL)
- Q_PROPERTY(bool focus READ hasFocus WRITE setFocus NOTIFY focusChanged FINAL)
- Q_PROPERTY(bool activeFocus READ hasActiveFocus NOTIFY activeFocusChanged FINAL)
- Q_PROPERTY(bool modal READ isModal WRITE setModal NOTIFY modalChanged FINAL)
- Q_PROPERTY(bool dim READ dim WRITE setDim RESET resetDim NOTIFY dimChanged FINAL)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL)
- Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity NOTIFY opacityChanged FINAL)
- Q_PROPERTY(qreal scale READ scale WRITE setScale NOTIFY scaleChanged FINAL)
- Q_PROPERTY(ClosePolicy closePolicy READ closePolicy WRITE setClosePolicy RESET resetClosePolicy NOTIFY closePolicyChanged FINAL)
- Q_PROPERTY(TransformOrigin transformOrigin READ transformOrigin WRITE setTransformOrigin FINAL)
- Q_PROPERTY(QQuickTransition *enter READ enter WRITE setEnter NOTIFY enterChanged FINAL)
- Q_PROPERTY(QQuickTransition *exit READ exit WRITE setExit NOTIFY exitChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(qreal spacing READ spacing WRITE setSpacing RESET resetSpacing NOTIFY spacingChanged FINAL REVISION 1)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool opened READ isOpened NOTIFY openedChanged FINAL REVISION 3)
- Q_PROPERTY(bool mirrored READ isMirrored NOTIFY mirroredChanged FINAL REVISION 3)
- Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged FINAL REVISION 3)
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged FINAL REVISION 3)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal horizontalPadding READ horizontalPadding WRITE setHorizontalPadding RESET resetHorizontalPadding NOTIFY horizontalPaddingChanged FINAL)
- Q_PROPERTY(qreal verticalPadding READ verticalPadding WRITE setVerticalPadding RESET resetVerticalPadding NOTIFY verticalPaddingChanged FINAL)
- Q_PRIVATE_PROPERTY(QQuickPopup::d_func(), QQuickPopupAnchors *anchors READ getAnchors DESIGNABLE false CONSTANT FINAL REVISION 5)
- Q_PROPERTY(qreal implicitContentWidth READ implicitContentWidth NOTIFY implicitContentWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitContentHeight READ implicitContentHeight NOTIFY implicitContentHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundWidth READ implicitBackgroundWidth NOTIFY implicitBackgroundWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundHeight READ implicitBackgroundHeight NOTIFY implicitBackgroundHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal topInset READ topInset WRITE setTopInset RESET resetTopInset NOTIFY topInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal leftInset READ leftInset WRITE setLeftInset RESET resetLeftInset NOTIFY leftInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal rightInset READ rightInset WRITE setRightInset RESET resetRightInset NOTIFY rightInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal bottomInset READ bottomInset WRITE setBottomInset RESET resetBottomInset NOTIFY bottomInsetChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background,contentItem")
- Q_CLASSINFO("DefaultProperty", "contentData")
-
-public:
- explicit QQuickPopup(QObject *parent = nullptr);
- ~QQuickPopup();
-
- qreal x() const;
- void setX(qreal x);
-
- qreal y() const;
- void setY(qreal y);
-
- QPointF position() const;
- void setPosition(const QPointF &pos);
-
- qreal z() const;
- void setZ(qreal z);
-
- qreal width() const;
- void setWidth(qreal width);
- void resetWidth();
-
- qreal height() const;
- void setHeight(qreal height);
- void resetHeight();
-
- qreal implicitWidth() const;
- void setImplicitWidth(qreal width);
-
- qreal implicitHeight() const;
- void setImplicitHeight(qreal height);
-
- qreal contentWidth() const;
- void setContentWidth(qreal width);
-
- qreal contentHeight() const;
- void setContentHeight(qreal height);
-
- qreal availableWidth() const;
- qreal availableHeight() const;
-
- qreal margins() const;
- void setMargins(qreal margins);
- void resetMargins();
-
- qreal topMargin() const;
- void setTopMargin(qreal margin);
- void resetTopMargin();
-
- qreal leftMargin() const;
- void setLeftMargin(qreal margin);
- void resetLeftMargin();
-
- qreal rightMargin() const;
- void setRightMargin(qreal margin);
- void resetRightMargin();
-
- qreal bottomMargin() const;
- void setBottomMargin(qreal margin);
- void resetBottomMargin();
-
- qreal padding() const;
- void setPadding(qreal padding);
- void resetPadding();
-
- qreal topPadding() const;
- void setTopPadding(qreal padding);
- void resetTopPadding();
-
- qreal leftPadding() const;
- void setLeftPadding(qreal padding);
- void resetLeftPadding();
-
- qreal rightPadding() const;
- void setRightPadding(qreal padding);
- void resetRightPadding();
-
- qreal bottomPadding() const;
- void setBottomPadding(qreal padding);
- void resetBottomPadding();
-
- QLocale locale() const;
- void setLocale(const QLocale &locale);
- void resetLocale();
-
- QFont font() const;
- void setFont(const QFont &font);
- void resetFont();
-
- QQuickWindow *window() const;
- QQuickItem *popupItem() const;
-
- QQuickItem *parentItem() const;
- void setParentItem(QQuickItem *parent);
- void resetParentItem();
-
- QQuickItem *background() const;
- void setBackground(QQuickItem *background);
-
- QQuickItem *contentItem() const;
- void setContentItem(QQuickItem *item);
-
- bool clip() const;
- void setClip(bool clip);
-
- bool hasFocus() const;
- void setFocus(bool focus);
-
- bool hasActiveFocus() const;
-
- bool isModal() const;
- void setModal(bool modal);
-
- bool dim() const;
- void setDim(bool dim);
- void resetDim();
-
- bool isVisible() const;
- virtual void setVisible(bool visible);
-
- qreal opacity() const;
- void setOpacity(qreal opacity);
-
- qreal scale() const;
- void setScale(qreal scale);
-
- enum ClosePolicyFlag {
- NoAutoClose = 0x00,
- CloseOnPressOutside = 0x01,
- CloseOnPressOutsideParent = 0x02,
- CloseOnReleaseOutside = 0x04,
- CloseOnReleaseOutsideParent = 0x08,
- CloseOnEscape = 0x10
- };
- Q_DECLARE_FLAGS(ClosePolicy, ClosePolicyFlag)
- Q_FLAG(ClosePolicy)
-
- ClosePolicy closePolicy() const;
- void setClosePolicy(ClosePolicy policy);
- void resetClosePolicy();
-
- // keep in sync with Item.TransformOrigin
- enum TransformOrigin {
- TopLeft, Top, TopRight,
- Left, Center, Right,
- BottomLeft, Bottom, BottomRight
- };
- Q_ENUM(TransformOrigin)
-
- TransformOrigin transformOrigin() const;
- void setTransformOrigin(TransformOrigin);
-
- QQuickTransition *enter() const;
- void setEnter(QQuickTransition *transition);
-
- QQuickTransition *exit() const;
- void setExit(QQuickTransition *transition);
-
- bool filtersChildMouseEvents() const;
- void setFiltersChildMouseEvents(bool filter);
-
- Q_INVOKABLE void forceActiveFocus(Qt::FocusReason reason = Qt::OtherFocusReason);
-
- // 2.1 (Qt 5.8)
- qreal spacing() const;
- void setSpacing(qreal spacing);
- void resetSpacing();
-
- // 2.3 (Qt 5.10)
- bool isOpened() const;
- bool isMirrored() const;
-
- bool isEnabled() const;
- void setEnabled(bool enabled);
-
- QPalette palette() const;
- void setPalette(const QPalette &palette);
- void resetPalette();
-
- // 2.5 (Qt 5.12)
- qreal horizontalPadding() const;
- void setHorizontalPadding(qreal padding);
- void resetHorizontalPadding();
-
- qreal verticalPadding() const;
- void setVerticalPadding(qreal padding);
- void resetVerticalPadding();
-
- qreal implicitContentWidth() const;
- qreal implicitContentHeight() const;
-
- qreal implicitBackgroundWidth() const;
- qreal implicitBackgroundHeight() const;
-
- qreal topInset() const;
- void setTopInset(qreal inset);
- void resetTopInset();
-
- qreal leftInset() const;
- void setLeftInset(qreal inset);
- void resetLeftInset();
-
- qreal rightInset() const;
- void setRightInset(qreal inset);
- void resetRightInset();
-
- qreal bottomInset() const;
- void setBottomInset(qreal inset);
- void resetBottomInset();
-
-public Q_SLOTS:
- void open();
- void close();
-
-Q_SIGNALS:
- void opened();
- void closed();
- void aboutToShow();
- void aboutToHide();
- void xChanged();
- void yChanged();
- void zChanged();
- void widthChanged();
- void heightChanged();
- void implicitWidthChanged();
- void implicitHeightChanged();
- void contentWidthChanged();
- void contentHeightChanged();
- void availableWidthChanged();
- void availableHeightChanged();
- void marginsChanged();
- void topMarginChanged();
- void leftMarginChanged();
- void rightMarginChanged();
- void bottomMarginChanged();
- void paddingChanged();
- void topPaddingChanged();
- void leftPaddingChanged();
- void rightPaddingChanged();
- void bottomPaddingChanged();
- void fontChanged();
- void localeChanged();
- void parentChanged();
- void backgroundChanged();
- void contentItemChanged();
- void contentChildrenChanged();
- void clipChanged();
- void focusChanged();
- void activeFocusChanged();
- void modalChanged();
- void dimChanged();
- void visibleChanged();
- void opacityChanged();
- void scaleChanged();
- void closePolicyChanged();
- void enterChanged();
- void exitChanged();
- void windowChanged(QQuickWindow *window);
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void spacingChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void openedChanged();
- Q_REVISION(3) void mirroredChanged();
- Q_REVISION(3) void enabledChanged();
- Q_REVISION(3) void paletteChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void horizontalPaddingChanged();
- Q_REVISION(5) void verticalPaddingChanged();
- Q_REVISION(5) void implicitContentWidthChanged();
- Q_REVISION(5) void implicitContentHeightChanged();
- Q_REVISION(5) void implicitBackgroundWidthChanged();
- Q_REVISION(5) void implicitBackgroundHeightChanged();
- Q_REVISION(5) void topInsetChanged();
- Q_REVISION(5) void leftInsetChanged();
- Q_REVISION(5) void rightInsetChanged();
- Q_REVISION(5) void bottomInsetChanged();
-
-protected:
- QQuickPopup(QQuickPopupPrivate &dd, QObject *parent);
-
- void classBegin() override;
- void componentComplete() override;
- bool isComponentComplete() const;
-
- virtual bool childMouseEventFilter(QQuickItem *child, QEvent *event);
- virtual void focusInEvent(QFocusEvent *event);
- virtual void focusOutEvent(QFocusEvent *event);
- virtual void keyPressEvent(QKeyEvent *event);
- virtual void keyReleaseEvent(QKeyEvent *event);
- virtual void mousePressEvent(QMouseEvent *event);
- virtual void mouseMoveEvent(QMouseEvent *event);
- virtual void mouseReleaseEvent(QMouseEvent *event);
- virtual void mouseDoubleClickEvent(QMouseEvent *event);
- virtual void mouseUngrabEvent();
- virtual bool overlayEvent(QQuickItem *item, QEvent *event);
-#if QT_CONFIG(quicktemplates2_multitouch)
- virtual void touchEvent(QTouchEvent *event);
- virtual void touchUngrabEvent();
-#endif
-#if QT_CONFIG(wheelevent)
- virtual void wheelEvent(QWheelEvent *event);
-#endif
-
- virtual void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem);
- virtual void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize);
- virtual void fontChange(const QFont &newFont, const QFont &oldFont);
- virtual void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);
- virtual void localeChange(const QLocale &newLocale, const QLocale &oldLocale);
- virtual void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data);
- virtual void marginsChange(const QMarginsF &newMargins, const QMarginsF &oldMargins);
- virtual void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding);
- virtual void paletteChange(const QPalette &newPalette, const QPalette &oldPalette);
- virtual void spacingChange(qreal newSpacing, qreal oldSpacing);
- virtual void insetChange(const QMarginsF &newInset, const QMarginsF &oldInset);
-
- virtual QFont defaultFont() const;
- virtual QPalette defaultPalette() const;
-
-#if QT_CONFIG(accessibility)
- virtual QAccessible::Role accessibleRole() const;
- virtual void accessibilityActiveChanged(bool active);
-#endif
-
- QString accessibleName() const;
- void setAccessibleName(const QString &name);
-
- QVariant accessibleProperty(const char *propertyName);
- bool setAccessibleProperty(const char *propertyName, const QVariant &value);
-
-private:
- Q_DISABLE_COPY(QQuickPopup)
- Q_DECLARE_PRIVATE(QQuickPopup)
- friend class QQuickPopupItem;
- friend class QQuickOverlay;
- friend class QQuickOverlayPrivate;
-};
-
-Q_DECLARE_OPERATORS_FOR_FLAGS(QQuickPopup::ClosePolicy)
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPopup)
-
-#endif // QQUICKPOPUP_P_H
diff --git a/src/quicktemplates2/qquickpopup_p_p.h b/src/quicktemplates2/qquickpopup_p_p.h
deleted file mode 100644
index 8a85f914..00000000
--- a/src/quicktemplates2/qquickpopup_p_p.h
+++ /dev/null
@@ -1,205 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPOPUP_P_P_H
-#define QQUICKPOPUP_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-#include <QtCore/private/qobject_p.h>
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQuick/private/qquicktransitionmanager_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTransition;
-class QQuickTransitionManager;
-class QQuickPopup;
-class QQuickPopupAnchors;
-class QQuickPopupItem;
-class QQuickPopupPrivate;
-class QQuickPopupPositioner;
-
-class QQuickPopupTransitionManager : public QQuickTransitionManager
-{
-public:
- QQuickPopupTransitionManager(QQuickPopupPrivate *popup);
-
- void transitionEnter();
- void transitionExit();
-
-protected:
- void finished() override;
-
-private:
- QQuickPopupPrivate *popup = nullptr;
-};
-
-class Q_AUTOTEST_EXPORT QQuickPopupPrivate : public QObjectPrivate, public QQuickItemChangeListener
-{
- Q_DECLARE_PUBLIC(QQuickPopup)
-
-public:
- QQuickPopupPrivate();
-
- static QQuickPopupPrivate *get(QQuickPopup *popup)
- {
- return popup->d_func();
- }
-
- QQmlListProperty<QObject> contentData();
- QQmlListProperty<QQuickItem> contentChildren();
-
- void init();
- void closeOrReject();
- bool tryClose(const QPointF &pos, QQuickPopup::ClosePolicy flags);
-
- bool contains(const QPointF &scenePos) const;
-
-#if QT_CONFIG(quicktemplates2_multitouch)
- virtual bool acceptTouch(const QTouchEvent::TouchPoint &point);
-#endif
- virtual bool blockInput(QQuickItem *item, const QPointF &point) const;
-
- virtual bool handlePress(QQuickItem* item, const QPointF &point, ulong timestamp);
- virtual bool handleMove(QQuickItem* item, const QPointF &point, ulong timestamp);
- virtual bool handleRelease(QQuickItem* item, const QPointF &point, ulong timestamp);
- virtual void handleUngrab();
-
- bool handleMouseEvent(QQuickItem *item, QMouseEvent *event);
-#if QT_CONFIG(quicktemplates2_multitouch)
- bool handleTouchEvent(QQuickItem *item, QTouchEvent *event);
-#endif
-
- void reposition();
-
- void createOverlay();
- void destroyOverlay();
- void toggleOverlay();
- virtual void showOverlay();
- virtual void hideOverlay();
- virtual void resizeOverlay();
-
- virtual bool prepareEnterTransition();
- virtual bool prepareExitTransition();
- virtual void finalizeEnterTransition();
- virtual void finalizeExitTransition();
-
- QMarginsF getMargins() const;
-
- void setTopMargin(qreal value, bool reset = false);
- void setLeftMargin(qreal value, bool reset = false);
- void setRightMargin(qreal value, bool reset = false);
- void setBottomMargin(qreal value, bool reset = false);
-
- QQuickPopupAnchors *getAnchors();
- virtual QQuickPopupPositioner *getPositioner();
-
- void setWindow(QQuickWindow *window);
- void itemDestroyed(QQuickItem *item) override;
-
- enum TransitionState {
- NoTransition, EnterTransition, ExitTransition
- };
-
- static const QQuickPopup::ClosePolicy DefaultClosePolicy;
-
- bool focus = false;
- bool modal = false;
- bool dim = false;
- bool hasDim = false;
- bool visible = false;
- bool complete = true;
- bool positioning = false;
- bool hasWidth = false;
- bool hasHeight = false;
- bool hasTopMargin = false;
- bool hasLeftMargin = false;
- bool hasRightMargin = false;
- bool hasBottomMargin = false;
- bool allowVerticalFlip = false;
- bool allowHorizontalFlip = false;
- bool allowVerticalMove = true;
- bool allowHorizontalMove = true;
- bool allowVerticalResize = true;
- bool allowHorizontalResize = true;
- bool hadActiveFocusBeforeExitTransition = false;
- bool interactive = true;
- bool hasClosePolicy = false;
- int touchId = -1;
- qreal x = 0;
- qreal y = 0;
- qreal effectiveX = 0;
- qreal effectiveY = 0;
- qreal margins = -1;
- qreal topMargin = 0;
- qreal leftMargin = 0;
- qreal rightMargin = 0;
- qreal bottomMargin = 0;
- QPointF pressPoint;
- TransitionState transitionState = NoTransition;
- QQuickPopup::ClosePolicy closePolicy = DefaultClosePolicy;
- QQuickItem *parentItem = nullptr;
- QQuickItem *dimmer = nullptr;
- QPointer<QQuickWindow> window;
- QQuickTransition *enter = nullptr;
- QQuickTransition *exit = nullptr;
- QQuickPopupItem *popupItem = nullptr;
- QQuickPopupPositioner *positioner = nullptr;
- QList<QQuickStateAction> enterActions;
- QList<QQuickStateAction> exitActions;
- QQuickPopupTransitionManager transitionManager;
- QQuickPopupAnchors *anchors = nullptr;
-
- friend class QQuickPopupTransitionManager;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPOPUP_P_P_H
diff --git a/src/quicktemplates2/qquickpopupanchors.cpp b/src/quicktemplates2/qquickpopupanchors.cpp
deleted file mode 100644
index 5acc2934..00000000
--- a/src/quicktemplates2/qquickpopupanchors.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpopupanchors_p.h"
-#include "qquickpopupanchors_p_p.h"
-#include "qquickpopup_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-QQuickPopupAnchors::QQuickPopupAnchors(QQuickPopup *popup)
- : QObject(*(new QQuickPopupAnchorsPrivate), popup)
-{
- Q_D(QQuickPopupAnchors);
- d->popup = popup;
-}
-
-QQuickItem *QQuickPopupAnchors::centerIn() const
-{
- Q_D(const QQuickPopupAnchors);
- return d->centerIn;
-}
-
-void QQuickPopupAnchors::setCenterIn(QQuickItem *item)
-{
- Q_D(QQuickPopupAnchors);
- if (item == d->centerIn)
- return;
-
- d->centerIn = item;
- QQuickPopupPrivate::get(d->popup)->reposition();
- emit centerInChanged();
-}
-
-void QQuickPopupAnchors::resetCenterIn()
-{
- setCenterIn(nullptr);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickpopupanchors_p.h b/src/quicktemplates2/qquickpopupanchors_p.h
deleted file mode 100644
index 531c494e..00000000
--- a/src/quicktemplates2/qquickpopupanchors_p.h
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPOPUPANCHORS_P_H
-#define QQUICKPOPUPANCHORS_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtQml/qqml.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickItem;
-class QQuickPopupAnchorsPrivate;
-class QQuickPopup;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickPopupAnchors : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickItem *centerIn READ centerIn WRITE setCenterIn RESET resetCenterIn NOTIFY centerInChanged)
-
-public:
- explicit QQuickPopupAnchors(QQuickPopup *popup);
-
- QQuickItem *centerIn() const;
- void setCenterIn(QQuickItem *item);
- void resetCenterIn();
-
-Q_SIGNALS:
- void centerInChanged();
-
-private:
- Q_DISABLE_COPY(QQuickPopupAnchors)
- Q_DECLARE_PRIVATE(QQuickPopupAnchors)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickPopupAnchors)
-
-#endif // QQUICKPOPUPANCHORS_P_H
diff --git a/src/quicktemplates2/qquickpopupanchors_p_p.h b/src/quicktemplates2/qquickpopupanchors_p_p.h
deleted file mode 100644
index 989dc6df..00000000
--- a/src/quicktemplates2/qquickpopupanchors_p_p.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPOPUPANCHORS_P_P_H
-#define QQUICKPOPUPANCHORS_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/private/qobject_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickItem;
-class QQuickPopup;
-
-class QQuickPopupAnchorsPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickPopupAnchors)
-
-public:
- static QQuickPopupAnchorsPrivate *get(QQuickPopupAnchors *popupAnchors)
- {
- return popupAnchors->d_func();
- }
-
- QQuickPopup *popup = nullptr;
- QQuickItem *centerIn = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPOPUPANCHORS_P_P_H
diff --git a/src/quicktemplates2/qquickpopupitem.cpp b/src/quicktemplates2/qquickpopupitem.cpp
deleted file mode 100644
index 16d8c4f6..00000000
--- a/src/quicktemplates2/qquickpopupitem.cpp
+++ /dev/null
@@ -1,409 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpopupitem_p_p.h"
-#include "qquickapplicationwindow_p.h"
-#include "qquickshortcutcontext_p_p.h"
-#include "qquickpage_p_p.h"
-#include "qquickcontentitem_p.h"
-#include "qquickpopup_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtGui/private/qshortcutmap_p.h>
-#include <QtGui/private/qguiapplication_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPopupItemPrivate : public QQuickPagePrivate
-{
- Q_DECLARE_PUBLIC(QQuickPopupItem)
-
-public:
- QQuickPopupItemPrivate(QQuickPopup *popup);
-
- void implicitWidthChanged() override;
- void implicitHeightChanged() override;
-
- void resolveFont() override;
- void resolvePalette() override;
-
- QQuickItem *getContentItem() override;
-
- void cancelContentItem() override;
- void executeContentItem(bool complete = false) override;
-
- void cancelBackground() override;
- void executeBackground(bool complete = false) override;
-
- int backId = 0;
- int escapeId = 0;
- QQuickPopup *popup = nullptr;
-};
-
-QQuickPopupItemPrivate::QQuickPopupItemPrivate(QQuickPopup *popup)
- : popup(popup)
-{
- isTabFence = true;
-}
-
-void QQuickPopupItemPrivate::implicitWidthChanged()
-{
- QQuickPagePrivate::implicitWidthChanged();
- emit popup->implicitWidthChanged();
-}
-
-void QQuickPopupItemPrivate::implicitHeightChanged()
-{
- QQuickPagePrivate::implicitHeightChanged();
- emit popup->implicitHeightChanged();
-}
-
-void QQuickPopupItemPrivate::resolveFont()
-{
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(popup->window()))
- inheritFont(window->font());
- else
- inheritFont(QQuickTheme::font(QQuickTheme::System));
-}
-
-void QQuickPopupItemPrivate::resolvePalette()
-{
- if (QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(popup->window()))
- inheritPalette(window->palette());
- else
- inheritPalette(QQuickTheme::palette(QQuickTheme::System));
-}
-
-QQuickItem *QQuickPopupItemPrivate::getContentItem()
-{
- Q_Q(QQuickPopupItem);
- if (QQuickItem *item = QQuickPagePrivate::getContentItem())
- return item;
-
- return new QQuickContentItem(popup, q);
-}
-
-static inline QString contentItemName() { return QStringLiteral("contentItem"); }
-
-void QQuickPopupItemPrivate::cancelContentItem()
-{
- quickCancelDeferred(popup, contentItemName());
-}
-
-void QQuickPopupItemPrivate::executeContentItem(bool complete)
-{
- if (contentItem.wasExecuted())
- return;
-
- if (!contentItem || complete)
- quickBeginDeferred(popup, contentItemName(), contentItem);
- if (complete)
- quickCompleteDeferred(popup, contentItemName(), contentItem);
-}
-
-static inline QString backgroundName() { return QStringLiteral("background"); }
-
-void QQuickPopupItemPrivate::cancelBackground()
-{
- quickCancelDeferred(popup, backgroundName());
-}
-
-void QQuickPopupItemPrivate::executeBackground(bool complete)
-{
- if (background.wasExecuted())
- return;
-
- if (!background || complete)
- quickBeginDeferred(popup, backgroundName(), background);
- if (complete)
- quickCompleteDeferred(popup, backgroundName(), background);
-}
-
-QQuickPopupItem::QQuickPopupItem(QQuickPopup *popup)
- : QQuickPage(*(new QQuickPopupItemPrivate(popup)), nullptr)
-{
- setParent(popup);
- setFlag(ItemIsFocusScope);
- setAcceptedMouseButtons(Qt::AllButtons);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-
-#if QT_CONFIG(quicktemplates2_hover)
- // TODO: switch to QStyleHints::useHoverEffects in Qt 5.8
- setHoverEnabled(true);
- // setAcceptHoverEvents(QGuiApplication::styleHints()->useHoverEffects());
- // connect(QGuiApplication::styleHints(), &QStyleHints::useHoverEffectsChanged, this, &QQuickItem::setAcceptHoverEvents);
-#endif
-}
-
-void QQuickPopupItem::grabShortcut()
-{
-#if QT_CONFIG(shortcut)
- Q_D(QQuickPopupItem);
- QGuiApplicationPrivate *pApp = QGuiApplicationPrivate::instance();
- if (!d->backId)
- d->backId = pApp->shortcutMap.addShortcut(this, Qt::Key_Back, Qt::WindowShortcut, QQuickShortcutContext::matcher);
- if (!d->escapeId)
- d->escapeId = pApp->shortcutMap.addShortcut(this, Qt::Key_Escape, Qt::WindowShortcut, QQuickShortcutContext::matcher);
-#endif
-}
-
-void QQuickPopupItem::ungrabShortcut()
-{
-#if QT_CONFIG(shortcut)
- Q_D(QQuickPopupItem);
- QGuiApplicationPrivate *pApp = QGuiApplicationPrivate::instance();
- if (d->backId) {
- pApp->shortcutMap.removeShortcut(d->backId, this);
- d->backId = 0;
- }
- if (d->escapeId) {
- pApp->shortcutMap.removeShortcut(d->escapeId, this);
- d->escapeId = 0;
- }
-#endif
-}
-
-void QQuickPopupItem::updatePolish()
-{
- Q_D(QQuickPopupItem);
- return QQuickPopupPrivate::get(d->popup)->reposition();
-}
-
-bool QQuickPopupItem::event(QEvent *event)
-{
-#if QT_CONFIG(shortcut)
- Q_D(QQuickPopupItem);
- if (event->type() == QEvent::Shortcut) {
- QShortcutEvent *se = static_cast<QShortcutEvent *>(event);
- if (se->shortcutId() == d->escapeId || se->shortcutId() == d->backId) {
- QQuickPopupPrivate *p = QQuickPopupPrivate::get(d->popup);
- if (p->interactive) {
- p->closeOrReject();
- return true;
- }
- }
- }
-#endif
- return QQuickItem::event(event);
-}
-
-bool QQuickPopupItem::childMouseEventFilter(QQuickItem *child, QEvent *event)
-{
- Q_D(QQuickPopupItem);
- return d->popup->childMouseEventFilter(child, event);
-}
-
-void QQuickPopupItem::focusInEvent(QFocusEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->focusInEvent(event);
-}
-
-void QQuickPopupItem::focusOutEvent(QFocusEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->focusOutEvent(event);
-}
-
-void QQuickPopupItem::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->keyPressEvent(event);
-}
-
-void QQuickPopupItem::keyReleaseEvent(QKeyEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->keyReleaseEvent(event);
-}
-
-void QQuickPopupItem::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->mousePressEvent(event);
-}
-
-void QQuickPopupItem::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->mouseMoveEvent(event);
-}
-
-void QQuickPopupItem::mouseReleaseEvent(QMouseEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->mouseReleaseEvent(event);
-}
-
-void QQuickPopupItem::mouseDoubleClickEvent(QMouseEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->mouseDoubleClickEvent(event);
-}
-
-void QQuickPopupItem::mouseUngrabEvent()
-{
- Q_D(QQuickPopupItem);
- d->popup->mouseUngrabEvent();
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickPopupItem::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->touchEvent(event);
-}
-
-void QQuickPopupItem::touchUngrabEvent()
-{
- Q_D(QQuickPopupItem);
- d->popup->touchUngrabEvent();
-}
-#endif
-
-#if QT_CONFIG(wheelevent)
-void QQuickPopupItem::wheelEvent(QWheelEvent *event)
-{
- Q_D(QQuickPopupItem);
- d->popup->wheelEvent(event);
-}
-#endif
-
-void QQuickPopupItem::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickPopupItem);
- QQuickPage::contentItemChange(newItem, oldItem);
- d->popup->contentItemChange(newItem, oldItem);
-}
-
-void QQuickPopupItem::contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize)
-{
- Q_D(QQuickPopupItem);
- QQuickPage::contentSizeChange(newSize, oldSize);
- d->popup->contentSizeChange(newSize, oldSize);
-}
-
-void QQuickPopupItem::fontChange(const QFont &newFont, const QFont &oldFont)
-{
- Q_D(QQuickPopupItem);
- QQuickPage::fontChange(newFont, oldFont);
- d->popup->fontChange(newFont, oldFont);
-}
-
-void QQuickPopupItem::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickPopupItem);
- QQuickPage::geometryChanged(newGeometry, oldGeometry);
- d->popup->geometryChanged(newGeometry, oldGeometry);
-}
-
-void QQuickPopupItem::localeChange(const QLocale &newLocale, const QLocale &oldLocale)
-{
- Q_D(QQuickPopupItem);
- QQuickPage::localeChange(newLocale, oldLocale);
- d->popup->localeChange(newLocale, oldLocale);
-}
-
-void QQuickPopupItem::mirrorChange()
-{
- Q_D(QQuickPopupItem);
- emit d->popup->mirroredChanged();
-}
-
-void QQuickPopupItem::itemChange(ItemChange change, const ItemChangeData &data)
-{
- Q_D(QQuickPopupItem);
- QQuickPage::itemChange(change, data);
- d->popup->itemChange(change, data);
-}
-
-void QQuickPopupItem::paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding)
-{
- Q_D(QQuickPopupItem);
- QQuickPage::paddingChange(newPadding, oldPadding);
- d->popup->paddingChange(newPadding, oldPadding);
-}
-
-void QQuickPopupItem::paletteChange(const QPalette &newPalette, const QPalette &oldPalette)
-{
- Q_D(QQuickPopupItem);
- QQuickPage::paletteChange(newPalette, oldPalette);
- d->popup->paletteChange(newPalette, oldPalette);
-}
-
-void QQuickPopupItem::enabledChange()
-{
- Q_D(QQuickPopupItem);
- // Just having QQuickPopup connect our QQuickItem::enabledChanged() signal
- // to its enabledChanged() signal is enough for the enabled property to work,
- // but we must also ensure that its paletteChanged() signal is emitted
- // so that bindings to palette are re-evaluated, because QQuickControl::palette()
- // returns a different palette depending on whether or not the control is enabled.
- // To save a connection, we also emit enabledChanged here.
- emit d->popup->enabledChanged();
- emit d->popup->paletteChanged();
-}
-
-QFont QQuickPopupItem::defaultFont() const
-{
- Q_D(const QQuickPopupItem);
- return d->popup->defaultFont();
-}
-
-QPalette QQuickPopupItem::defaultPalette() const
-{
- Q_D(const QQuickPopupItem);
- return d->popup->defaultPalette();
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickPopupItem::accessibleRole() const
-{
- Q_D(const QQuickPopupItem);
- return d->popup->accessibleRole();
-}
-
-void QQuickPopupItem::accessibilityActiveChanged(bool active)
-{
- Q_D(const QQuickPopupItem);
- QQuickPage::accessibilityActiveChanged(active);
- d->popup->accessibilityActiveChanged(active);
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickpopupitem_p_p.h b/src/quicktemplates2/qquickpopupitem_p_p.h
deleted file mode 100644
index a12e43e0..00000000
--- a/src/quicktemplates2/qquickpopupitem_p_p.h
+++ /dev/null
@@ -1,116 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPOPUPITEM_P_P_H
-#define QQUICKPOPUPITEM_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpage_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickPopup;
-class QQuickPopupItemPrivate;
-class QQuickPopupItem : public QQuickPage
-{
- Q_OBJECT
-
-public:
- explicit QQuickPopupItem(QQuickPopup *popup);
-
- void grabShortcut();
- void ungrabShortcut();
-
-protected:
- void updatePolish() override;
-
- bool event(QEvent *event) override;
- bool childMouseEventFilter(QQuickItem *child, QEvent *event) override;
- void focusInEvent(QFocusEvent *event) override;
- void focusOutEvent(QFocusEvent *event) override;
- void keyPressEvent(QKeyEvent *event) override;
- void keyReleaseEvent(QKeyEvent *event) override;
- void mousePressEvent(QMouseEvent *event) override;
- void mouseMoveEvent(QMouseEvent *event) override;
- void mouseReleaseEvent(QMouseEvent *event) override;
- void mouseDoubleClickEvent(QMouseEvent *event) override;
- void mouseUngrabEvent() override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
- void touchUngrabEvent() override;
-#endif
-#if QT_CONFIG(wheelevent)
- void wheelEvent(QWheelEvent *event) override;
-#endif
-
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
- void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize) override;
- void fontChange(const QFont &newFont, const QFont &oldFont) override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
- void mirrorChange() override;
- void itemChange(ItemChange change, const ItemChangeData &data) override;
- void paddingChange(const QMarginsF &newPadding, const QMarginsF &oldPadding) override;
- void paletteChange(const QPalette &newPalette, const QPalette &oldPalette) override;
- void enabledChange() override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
- void accessibilityActiveChanged(bool active) override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickPopupItem)
- Q_DECLARE_PRIVATE(QQuickPopupItem)
- friend class QQuickPopup;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPOPUPITEM_P_P_H
diff --git a/src/quicktemplates2/qquickpopuppositioner.cpp b/src/quicktemplates2/qquickpopuppositioner.cpp
deleted file mode 100644
index ebd8ff29..00000000
--- a/src/quicktemplates2/qquickpopuppositioner.cpp
+++ /dev/null
@@ -1,308 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickoverlay_p.h"
-#include "qquickpopuppositioner_p_p.h"
-#include "qquickpopupanchors_p.h"
-#include "qquickpopupitem_p_p.h"
-#include "qquickpopup_p_p.h"
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQuick/private/qquickitem_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static const QQuickItemPrivate::ChangeTypes AncestorChangeTypes = QQuickItemPrivate::Geometry
- | QQuickItemPrivate::Parent
- | QQuickItemPrivate::Children;
-
-static const QQuickItemPrivate::ChangeTypes ItemChangeTypes = QQuickItemPrivate::Geometry
- | QQuickItemPrivate::Parent;
-
-QQuickPopupPositioner::QQuickPopupPositioner(QQuickPopup *popup)
- : m_popup(popup)
-{
-}
-
-QQuickPopupPositioner::~QQuickPopupPositioner()
-{
- if (m_parentItem) {
- QQuickItemPrivate::get(m_parentItem)->removeItemChangeListener(this, ItemChangeTypes);
- removeAncestorListeners(m_parentItem->parentItem());
- }
-}
-
-QQuickPopup *QQuickPopupPositioner::popup() const
-{
- return m_popup;
-}
-
-QQuickItem *QQuickPopupPositioner::parentItem() const
-{
- return m_parentItem;
-}
-
-void QQuickPopupPositioner::setParentItem(QQuickItem *parent)
-{
- if (m_parentItem == parent)
- return;
-
- if (m_parentItem) {
- QQuickItemPrivate::get(m_parentItem)->removeItemChangeListener(this, ItemChangeTypes);
- removeAncestorListeners(m_parentItem->parentItem());
- }
-
- m_parentItem = parent;
-
- if (!parent)
- return;
-
- QQuickItemPrivate::get(parent)->addItemChangeListener(this, ItemChangeTypes);
- addAncestorListeners(parent->parentItem());
-
- if (m_popup->popupItem()->isVisible())
- QQuickPopupPrivate::get(m_popup)->reposition();
-}
-
-void QQuickPopupPositioner::reposition()
-{
- QQuickItem *popupItem = m_popup->popupItem();
- if (!popupItem->isVisible())
- return;
-
- if (m_positioning) {
- popupItem->polish();
- return;
- }
-
- const qreal w = popupItem->width();
- const qreal h = popupItem->height();
- const qreal iw = popupItem->implicitWidth();
- const qreal ih = popupItem->implicitHeight();
-
- bool widthAdjusted = false;
- bool heightAdjusted = false;
- QQuickPopupPrivate *p = QQuickPopupPrivate::get(m_popup);
-
- const QQuickItem *centerInParent = p->anchors ? p->getAnchors()->centerIn() : nullptr;
- const QQuickOverlay *centerInOverlay = qobject_cast<const QQuickOverlay*>(centerInParent);
- QRectF rect(!centerInParent ? p->allowHorizontalMove ? p->x : popupItem->x() : 0,
- !centerInParent ? p->allowVerticalMove ? p->y : popupItem->y() : 0,
- !p->hasWidth && iw > 0 ? iw : w,
- !p->hasHeight && ih > 0 ? ih : h);
- if (m_parentItem) {
- // m_parentItem is the parent that the popup should open in,
- // and popupItem()->parentItem() is the overlay, so the mapToItem() calls below
- // effectively map the rect to scene coordinates.
- if (centerInParent) {
- if (centerInParent != parentItem() && !centerInOverlay) {
- qmlWarning(m_popup) << "Popup can only be centered within its immediate parent or Overlay.overlay";
- return;
- }
-
- if (centerInOverlay) {
- rect.moveCenter(QPointF(qRound(centerInOverlay->width() / 2.0), qRound(centerInOverlay->height() / 2.0)));
- } else {
- const QPointF parentItemCenter = QPointF(qRound(m_parentItem->width() / 2), qRound(m_parentItem->height() / 2));
- rect.moveCenter(m_parentItem->mapToItem(popupItem->parentItem(), parentItemCenter));
- }
- } else {
- rect.moveTopLeft(m_parentItem->mapToItem(popupItem->parentItem(), rect.topLeft()));
- }
-
- if (p->window) {
- const QMarginsF margins = p->getMargins();
- QRectF bounds(qMax<qreal>(0.0, margins.left()),
- qMax<qreal>(0.0, margins.top()),
- p->window->width() - qMax<qreal>(0.0, margins.left()) - qMax<qreal>(0.0, margins.right()),
- p->window->height() - qMax<qreal>(0.0, margins.top()) - qMax<qreal>(0.0, margins.bottom()));
- if (p->window->contentOrientation() == Qt::LandscapeOrientation || p->window->contentOrientation() == Qt::InvertedLandscapeOrientation)
- bounds = bounds.transposed();
-
- // if the popup doesn't fit horizontally inside the window, try flipping it around (left <-> right)
- if (p->allowHorizontalFlip && (rect.left() < bounds.left() || rect.right() > bounds.right())) {
- const QRectF flipped(m_parentItem->mapToScene(QPointF(m_parentItem->width() - p->x - rect.width(), p->y)), rect.size());
- if (flipped.intersected(bounds).width() > rect.intersected(bounds).width())
- rect.moveLeft(flipped.left());
- }
-
- // if the popup doesn't fit vertically inside the window, try flipping it around (above <-> below)
- if (p->allowVerticalFlip && (rect.top() < bounds.top() || rect.bottom() > bounds.bottom())) {
- const QRectF flipped(m_parentItem->mapToScene(QPointF(p->x, m_parentItem->height() - p->y - rect.height())), rect.size());
- if (flipped.intersected(bounds).height() > rect.intersected(bounds).height())
- rect.moveTop(flipped.top());
- }
-
- // push inside the margins if specified
- if (p->allowVerticalMove) {
- if (margins.top() >= 0 && rect.top() < bounds.top())
- rect.moveTop(margins.top());
- if (margins.bottom() >= 0 && rect.bottom() > bounds.bottom())
- rect.moveBottom(bounds.bottom());
- }
- if (p->allowHorizontalMove) {
- if (margins.left() >= 0 && rect.left() < bounds.left())
- rect.moveLeft(margins.left());
- if (margins.right() >= 0 && rect.right() > bounds.right())
- rect.moveRight(bounds.right());
- }
-
- if (iw > 0 && (rect.left() < bounds.left() || rect.right() > bounds.right())) {
- // neither the flipped or pushed geometry fits inside the window, choose
- // whichever side (left vs. right) fits larger part of the popup
- if (p->allowHorizontalMove && p->allowHorizontalFlip) {
- if (rect.left() < bounds.left() && bounds.left() + rect.width() <= bounds.right())
- rect.moveLeft(bounds.left());
- else if (rect.right() > bounds.right() && bounds.right() - rect.width() >= bounds.left())
- rect.moveRight(bounds.right());
- }
-
- // as a last resort, adjust the width to fit the window
- if (p->allowHorizontalResize) {
- if (rect.left() < bounds.left()) {
- rect.setLeft(bounds.left());
- widthAdjusted = true;
- }
- if (rect.right() > bounds.right()) {
- rect.setRight(bounds.right());
- widthAdjusted = true;
- }
- }
- } else if (iw > 0 && rect.left() >= bounds.left() && rect.right() <= bounds.right()
- && iw != w) {
- // restore original width
- rect.setWidth(iw);
- widthAdjusted = true;
- }
-
- if (ih > 0 && (rect.top() < bounds.top() || rect.bottom() > bounds.bottom())) {
- // neither the flipped or pushed geometry fits inside the window, choose
- // whichever side (above vs. below) fits larger part of the popup
- if (p->allowVerticalMove && p->allowVerticalFlip) {
- if (rect.top() < bounds.top() && bounds.top() + rect.height() <= bounds.bottom())
- rect.moveTop(bounds.top());
- else if (rect.bottom() > bounds.bottom() && bounds.bottom() - rect.height() >= bounds.top())
- rect.moveBottom(bounds.bottom());
- }
-
- // as a last resort, adjust the height to fit the window
- if (p->allowVerticalResize) {
- if (rect.top() < bounds.top()) {
- rect.setTop(bounds.top());
- heightAdjusted = true;
- }
- if (rect.bottom() > bounds.bottom()) {
- rect.setBottom(bounds.bottom());
- heightAdjusted = true;
- }
- }
- } else if (ih > 0 && rect.top() >= bounds.top() && rect.bottom() <= bounds.bottom()
- && ih != h) {
- // restore original height
- rect.setHeight(ih);
- heightAdjusted = true;
- }
- }
- }
-
- m_positioning = true;
-
- popupItem->setPosition(rect.topLeft());
-
- // If the popup was assigned a parent, rect will be in scene coordinates,
- // so we need to map its top left back to item coordinates.
- // However, if centering within the overlay, the coordinates will be relative
- // to the window, so we don't need to do anything.
- const QPointF effectivePos = m_parentItem && !centerInOverlay ? m_parentItem->mapFromScene(rect.topLeft()) : rect.topLeft();
- if (!qFuzzyCompare(p->effectiveX, effectivePos.x())) {
- p->effectiveX = effectivePos.x();
- emit m_popup->xChanged();
- }
- if (!qFuzzyCompare(p->effectiveY, effectivePos.y())) {
- p->effectiveY = effectivePos.y();
- emit m_popup->yChanged();
- }
-
- if (!p->hasWidth && widthAdjusted && rect.width() > 0)
- popupItem->setWidth(rect.width());
- if (!p->hasHeight && heightAdjusted && rect.height() > 0)
- popupItem->setHeight(rect.height());
-
- m_positioning = false;
-}
-
-void QQuickPopupPositioner::itemGeometryChanged(QQuickItem *, QQuickGeometryChange, const QRectF &)
-{
- if (m_parentItem && m_popup->popupItem()->isVisible())
- QQuickPopupPrivate::get(m_popup)->reposition();
-}
-
-void QQuickPopupPositioner::itemParentChanged(QQuickItem *, QQuickItem *parent)
-{
- addAncestorListeners(parent);
-}
-
-void QQuickPopupPositioner::itemChildRemoved(QQuickItem *item, QQuickItem *child)
-{
- if (child == m_parentItem || child->isAncestorOf(m_parentItem))
- removeAncestorListeners(item);
-}
-
-void QQuickPopupPositioner::removeAncestorListeners(QQuickItem *item)
-{
- if (item == m_parentItem)
- return;
-
- QQuickItem *p = item;
- while (p) {
- QQuickItemPrivate::get(p)->removeItemChangeListener(this, AncestorChangeTypes);
- p = p->parentItem();
- }
-}
-
-void QQuickPopupPositioner::addAncestorListeners(QQuickItem *item)
-{
- if (item == m_parentItem)
- return;
-
- QQuickItem *p = item;
- while (p) {
- QQuickItemPrivate::get(p)->updateOrAddItemChangeListener(this, AncestorChangeTypes);
- p = p->parentItem();
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickpopuppositioner_p_p.h b/src/quicktemplates2/qquickpopuppositioner_p_p.h
deleted file mode 100644
index 64f57a3f..00000000
--- a/src/quicktemplates2/qquickpopuppositioner_p_p.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPOPUPPOSITIONER_P_P_H
-#define QQUICKPOPUPPOSITIONER_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickItem;
-class QQuickPopup;
-
-class QQuickPopupPositioner : public QQuickItemChangeListener
-{
-public:
- explicit QQuickPopupPositioner(QQuickPopup *popup);
- ~QQuickPopupPositioner();
-
- QQuickPopup *popup() const;
-
- QQuickItem *parentItem() const;
- void setParentItem(QQuickItem *parent);
-
- virtual void reposition();
-
-protected:
- void itemGeometryChanged(QQuickItem *, QQuickGeometryChange, const QRectF &) override;
- void itemParentChanged(QQuickItem *, QQuickItem *parent) override;
- void itemChildRemoved(QQuickItem *, QQuickItem *child) override;
-
- void removeAncestorListeners(QQuickItem *item);
- void addAncestorListeners(QQuickItem *item);
-
- bool m_positioning = false;
- QQuickItem *m_parentItem = nullptr;
- QQuickPopup *m_popup = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPOPUPPOSITIONER_P_P_H
diff --git a/src/quicktemplates2/qquickpresshandler.cpp b/src/quicktemplates2/qquickpresshandler.cpp
deleted file mode 100644
index b9018573..00000000
--- a/src/quicktemplates2/qquickpresshandler.cpp
+++ /dev/null
@@ -1,144 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickpresshandler_p_p.h"
-
-#include <QtCore/private/qobject_p.h>
-#include <QtGui/qguiapplication.h>
-#include <QtGui/qstylehints.h>
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/private/qquickevents_p_p.h>
-#include <QtQuickTemplates2/private/qquicktextarea_p.h>
-#include <QtQuickTemplates2/private/qquicktextfield_p.h>
-
-QT_BEGIN_NAMESPACE
-
-void QQuickPressHandler::mousePressEvent(QMouseEvent *event)
-{
- longPress = false;
- pressPos = event->localPos();
- if (Qt::LeftButton == (event->buttons() & Qt::LeftButton)) {
- timer.start(QGuiApplication::styleHints()->mousePressAndHoldInterval(), control);
- delayedMousePressEvent = new QMouseEvent(event->type(), event->pos(), event->button(), event->buttons(), event->modifiers());
- } else {
- timer.stop();
- }
-
- if (isSignalConnected(control, "pressed(QQuickMouseEvent*)", pressedSignalIndex)) {
- QQuickMouseEvent mev;
- mev.reset(pressPos.x(), pressPos.y(), event->button(), event->buttons(),
- QGuiApplication::keyboardModifiers(), false/*isClick*/, false/*wasHeld*/);
- mev.setAccepted(true);
- QQuickMouseEvent *mevPtr = &mev;
- void *args[] = { nullptr, &mevPtr };
- QMetaObject::metacall(control, QMetaObject::InvokeMetaMethod, pressedSignalIndex, args);
- event->setAccepted(mev.isAccepted());
- }
-}
-
-void QQuickPressHandler::mouseMoveEvent(QMouseEvent *event)
-{
- if (qAbs(int(event->localPos().x() - pressPos.x())) > QGuiApplication::styleHints()->startDragDistance())
- timer.stop();
-}
-
-void QQuickPressHandler::mouseReleaseEvent(QMouseEvent *event)
-{
- if (!longPress) {
- timer.stop();
-
- if (isSignalConnected(control, "released(QQuickMouseEvent*)", releasedSignalIndex)) {
- QQuickMouseEvent mev;
- mev.reset(pressPos.x(), pressPos.y(), event->button(), event->buttons(),
- QGuiApplication::keyboardModifiers(), false/*isClick*/, false/*wasHeld*/);
- mev.setAccepted(true);
- QQuickMouseEvent *mevPtr = &mev;
- void *args[] = { nullptr, &mevPtr };
- QMetaObject::metacall(control, QMetaObject::InvokeMetaMethod, releasedSignalIndex, args);
- event->setAccepted(mev.isAccepted());
- }
- }
-}
-
-void QQuickPressHandler::timerEvent(QTimerEvent *)
-{
- timer.stop();
- clearDelayedMouseEvent();
-
- longPress = isSignalConnected(control, "pressAndHold(QQuickMouseEvent*)", pressAndHoldSignalIndex);
- if (longPress) {
- QQuickMouseEvent mev;
- mev.reset(pressPos.x(), pressPos.y(), Qt::LeftButton, Qt::LeftButton,
- QGuiApplication::keyboardModifiers(), false/*isClick*/, true/*wasHeld*/);
- mev.setAccepted(true);
- // Use fast signal invocation since we already got its index
- QQuickMouseEvent *mevPtr = &mev;
- void *args[] = { nullptr, &mevPtr };
- QMetaObject::metacall(control, QMetaObject::InvokeMetaMethod, pressAndHoldSignalIndex, args);
- if (!mev.isAccepted())
- longPress = false;
- }
-}
-
-void QQuickPressHandler::clearDelayedMouseEvent()
-{
- if (delayedMousePressEvent) {
- delete delayedMousePressEvent;
- delayedMousePressEvent = 0;
- }
-}
-
-bool QQuickPressHandler::isActive()
-{
- return !(timer.isActive() || longPress);
-}
-
-bool QQuickPressHandler::isSignalConnected(QQuickItem *item, const char *signalName, int &signalIndex)
-{
- if (signalIndex == -1)
- signalIndex = item->metaObject()->indexOfSignal(signalName);
- Q_ASSERT(signalIndex != -1);
- const auto signalMetaMethod = item->metaObject()->method(signalIndex);
- if (QQuickTextArea *textArea = qobject_cast<QQuickTextArea*>(item)) {
- return textArea->isSignalConnected(signalMetaMethod);
- } else if (QQuickTextField *textField = qobject_cast<QQuickTextField*>(item)) {
- return textField->isSignalConnected(signalMetaMethod);
- }
- qFatal("Unhandled control type for signal name: %s", signalName);
- return false;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickpresshandler_p_p.h b/src/quicktemplates2/qquickpresshandler_p_p.h
deleted file mode 100644
index 19312cdd..00000000
--- a/src/quicktemplates2/qquickpresshandler_p_p.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPRESSHANDLER_P_P_H
-#define QQUICKPRESSHANDLER_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qpoint.h>
-#include <QtCore/qbasictimer.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickItem;
-class QMouseEvent;
-class QTimerEvent;
-
-struct QQuickPressHandler
-{
- void mousePressEvent(QMouseEvent *event);
- void mouseMoveEvent(QMouseEvent *event);
- void mouseReleaseEvent(QMouseEvent *event);
- void timerEvent(QTimerEvent *event);
-
- void clearDelayedMouseEvent();
- bool isActive();
-
- static bool isSignalConnected(QQuickItem *item, const char *signalName, int &signalIndex);
-
- QQuickItem *control = nullptr;
- QBasicTimer timer;
- QPointF pressPos;
- bool longPress = false;
- int pressAndHoldSignalIndex = -1;
- int pressedSignalIndex = -1;
- int releasedSignalIndex = -1;
- QMouseEvent *delayedMousePressEvent = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKPRESSHANDLER_P_P_H
diff --git a/src/quicktemplates2/qquickprogressbar.cpp b/src/quicktemplates2/qquickprogressbar.cpp
deleted file mode 100644
index 041d4d88..00000000
--- a/src/quicktemplates2/qquickprogressbar.cpp
+++ /dev/null
@@ -1,271 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickprogressbar_p.h"
-#include "qquickcontrol_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ProgressBar
- \inherits Control
- \instantiates QQuickProgressBar
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-indicators
- \brief Indicates the progress of an operation.
-
- \image qtquickcontrols2-progressbar.gif
-
- ProgressBar indicates the progress of an operation. The value should be updated
- regularly. The range is defined by \l from and \l to, which both can contain any value.
-
- \code
- ProgressBar {
- value: 0.5
- }
- \endcode
-
- ProgressBar also supports a special \l indeterminate mode, which is useful,
- for example, when unable to determine the size of the item being downloaded,
- or if the download progress gets interrupted due to a network disconnection.
-
- \image qtquickcontrols2-progressbar-indeterminate.gif
-
- \code
- ProgressBar {
- indeterminate: true
- }
- \endcode
-
- The indeterminate mode is similar to a \l BusyIndicator. Both can be used
- to indicate background activity. The main difference is visual, and that
- ProgressBar can also present a concrete amount of progress (when it can be
- determined). Due to the visual difference, indeterminate progress bars and
- busy indicators fit different places in user interfaces. Typical places for
- an indeterminate progress bar:
- \list
- \li at the bottom of a \l ToolBar
- \li inline within the content of a \l Page
- \li in an \l ItemDelegate to show the progress of a particular item
- \endlist
-
- \sa {Customizing ProgressBar}, BusyIndicator, {Indicator Controls}
-*/
-
-class QQuickProgressBarPrivate : public QQuickControlPrivate
-{
-public:
- qreal from = 0;
- qreal to = 1;
- qreal value = 0;
- bool indeterminate = false;
-};
-
-QQuickProgressBar::QQuickProgressBar(QQuickItem *parent)
- : QQuickControl(*(new QQuickProgressBarPrivate), parent)
-{
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ProgressBar::from
-
- This property holds the starting value for the progress. The default value is \c 0.0.
-
- \sa to, value
-*/
-qreal QQuickProgressBar::from() const
-{
- Q_D(const QQuickProgressBar);
- return d->from;
-}
-
-void QQuickProgressBar::setFrom(qreal from)
-{
- Q_D(QQuickProgressBar);
- if (qFuzzyCompare(d->from, from))
- return;
-
- d->from = from;
- emit fromChanged();
- emit positionChanged();
- emit visualPositionChanged();
- if (isComponentComplete())
- setValue(d->value);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ProgressBar::to
-
- This property holds the end value for the progress. The default value is \c 1.0.
-
- \sa from, value
-*/
-qreal QQuickProgressBar::to() const
-{
- Q_D(const QQuickProgressBar);
- return d->to;
-}
-
-void QQuickProgressBar::setTo(qreal to)
-{
- Q_D(QQuickProgressBar);
- if (qFuzzyCompare(d->to, to))
- return;
-
- d->to = to;
- emit toChanged();
- emit positionChanged();
- emit visualPositionChanged();
- if (isComponentComplete())
- setValue(d->value);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ProgressBar::value
-
- This property holds the progress value. The default value is \c 0.0.
-
- \sa from, to, position
-*/
-qreal QQuickProgressBar::value() const
-{
- Q_D(const QQuickProgressBar);
- return d->value;
-}
-
-void QQuickProgressBar::setValue(qreal value)
-{
- Q_D(QQuickProgressBar);
- if (isComponentComplete())
- value = d->from > d->to ? qBound(d->to, value, d->from) : qBound(d->from, value, d->to);
-
- if (qFuzzyCompare(d->value, value))
- return;
-
- d->value = value;
- emit valueChanged();
- emit positionChanged();
- emit visualPositionChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ProgressBar::position
- \readonly
-
- This property holds the logical position of the progress.
-
- The position is expressed as a fraction of the value, in the range
- \c {0.0 - 1.0}. For visualizing the progress, the right-to-left
- aware \l visualPosition should be used instead.
-
- \sa value, visualPosition
-*/
-qreal QQuickProgressBar::position() const
-{
- Q_D(const QQuickProgressBar);
- if (qFuzzyCompare(d->from, d->to))
- return 0;
- return (d->value - d->from) / (d->to - d->from);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ProgressBar::visualPosition
- \readonly
-
- This property holds the visual position of the progress.
-
- The position is expressed as a fraction of the value, in the range \c {0.0 - 1.0}.
- When the control is \l {Control::mirrored}{mirrored}, \c visuaPosition is equal
- to \c {1.0 - position}. This makes \c visualPosition suitable for visualizing
- the progress, taking right-to-left support into account.
-
- \sa position, value
-*/
-qreal QQuickProgressBar::visualPosition() const
-{
- if (isMirrored())
- return 1.0 - position();
- return position();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::ProgressBar::indeterminate
-
- This property holds whether the progress bar is in indeterminate mode.
- A progress bar in indeterminate mode displays that an operation is in progress, but it
- doesn't show how much progress has been made.
-
- \image qtquickcontrols2-progressbar-indeterminate.gif
-*/
-bool QQuickProgressBar::isIndeterminate() const
-{
- Q_D(const QQuickProgressBar);
- return d->indeterminate;
-}
-
-void QQuickProgressBar::setIndeterminate(bool indeterminate)
-{
- Q_D(QQuickProgressBar);
- if (d->indeterminate == indeterminate)
- return;
-
- d->indeterminate = indeterminate;
- emit indeterminateChanged();
-}
-
-void QQuickProgressBar::mirrorChange()
-{
- QQuickControl::mirrorChange();
- if (!qFuzzyCompare(position(), qreal(0.5)))
- emit visualPositionChanged();
-}
-
-void QQuickProgressBar::componentComplete()
-{
- Q_D(QQuickProgressBar);
- QQuickControl::componentComplete();
- setValue(d->value);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickProgressBar::accessibleRole() const
-{
- return QAccessible::ProgressBar;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickprogressbar_p.h b/src/quicktemplates2/qquickprogressbar_p.h
deleted file mode 100644
index f2284c65..00000000
--- a/src/quicktemplates2/qquickprogressbar_p.h
+++ /dev/null
@@ -1,110 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKPROGRESSBAR_P_H
-#define QQUICKPROGRESSBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickProgressBarPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickProgressBar : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged FINAL)
- Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged FINAL)
- Q_PROPERTY(qreal value READ value WRITE setValue NOTIFY valueChanged FINAL)
- Q_PROPERTY(qreal position READ position NOTIFY positionChanged FINAL)
- Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL)
- Q_PROPERTY(bool indeterminate READ isIndeterminate WRITE setIndeterminate NOTIFY indeterminateChanged FINAL)
-
-public:
- explicit QQuickProgressBar(QQuickItem *parent = nullptr);
-
- qreal from() const;
- void setFrom(qreal from);
-
- qreal to() const;
- void setTo(qreal to);
-
- qreal value() const;
- void setValue(qreal value);
-
- qreal position() const;
- qreal visualPosition() const;
-
- bool isIndeterminate() const;
- void setIndeterminate(bool indeterminate);
-
-Q_SIGNALS:
- void fromChanged();
- void toChanged();
- void valueChanged();
- void positionChanged();
- void visualPositionChanged();
- void indeterminateChanged();
-
-protected:
- void mirrorChange() override;
- void componentComplete() override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickProgressBar)
- Q_DECLARE_PRIVATE(QQuickProgressBar)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickProgressBar)
-
-#endif // QQUICKPROGRESSBAR_P_H
diff --git a/src/quicktemplates2/qquickradiobutton.cpp b/src/quicktemplates2/qquickradiobutton.cpp
deleted file mode 100644
index bf0c414c..00000000
--- a/src/quicktemplates2/qquickradiobutton.cpp
+++ /dev/null
@@ -1,117 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickradiobutton_p.h"
-#include "qquickcontrol_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype RadioButton
- \inherits AbstractButton
- \instantiates QQuickRadioButton
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-buttons
- \brief Exclusive radio button that can be toggled on or off.
-
- \image qtquickcontrols2-radiobutton.gif
-
- RadioButton presents an option button that can be toggled on (checked) or
- off (unchecked). Radio buttons are typically used to select one option
- from a set of options.
-
- RadioButton inherits its API from \l AbstractButton. For instance,
- you can set \l {AbstractButton::text}{text} and react to
- \l {AbstractButton::clicked}{clicks} using the AbstractButton API.
- The state of the radio button can be set with the
- \l {AbstractButton::}{checked} property.
-
- Radio buttons are \l {AbstractButton::autoExclusive}{auto-exclusive}
- by default. Only one button can be checked at any time amongst radio
- buttons that belong to the same parent item; checking another button
- automatically unchecks the previously checked one. For radio buttons
- that do not share a common parent, ButtonGroup can be used to manage
- exclusivity.
-
- \l RadioDelegate is similar to RadioButton, except that it is typically
- used in views.
-
- \code
- ColumnLayout {
- RadioButton {
- checked: true
- text: qsTr("First")
- }
- RadioButton {
- text: qsTr("Second")
- }
- RadioButton {
- text: qsTr("Third")
- }
- }
- \endcode
-
- \sa ButtonGroup, {Customizing RadioButton}, {Button Controls}, RadioDelegate
-*/
-
-QQuickRadioButton::QQuickRadioButton(QQuickItem *parent)
- : QQuickAbstractButton(parent)
-{
- setCheckable(true);
- setAutoExclusive(true);
-}
-
-QFont QQuickRadioButton::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::RadioButton);
-}
-
-QPalette QQuickRadioButton::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::RadioButton);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickRadioButton::accessibleRole() const
-{
- return QAccessible::RadioButton;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickradiobutton_p.h b/src/quicktemplates2/qquickradiobutton_p.h
deleted file mode 100644
index ea372687..00000000
--- a/src/quicktemplates2/qquickradiobutton_p.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKRADIOBUTTON_P_H
-#define QQUICKRADIOBUTTON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickRadioButton : public QQuickAbstractButton
-{
- Q_OBJECT
-
-public:
- explicit QQuickRadioButton(QQuickItem *parent = nullptr);
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickRadioButton)
-
-#endif // QQUICKRADIOBUTTON_P_H
diff --git a/src/quicktemplates2/qquickradiodelegate.cpp b/src/quicktemplates2/qquickradiodelegate.cpp
deleted file mode 100644
index 12a1ffb7..00000000
--- a/src/quicktemplates2/qquickradiodelegate.cpp
+++ /dev/null
@@ -1,118 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickradiodelegate_p.h"
-#include "qquickabstractbutton_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype RadioDelegate
- \inherits ItemDelegate
- \instantiates QQuickRadioDelegate
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-delegates
- \brief Exclusive item delegate with a radio indicator that can be toggled on or off.
-
- \image qtquickcontrols2-radiodelegate.gif
-
- RadioDelegate presents an item delegate that can be toggled on (checked) or
- off (unchecked). Radio delegates are typically used to select one option
- from a set of options.
-
- RadioDelegate inherits its API from \l ItemDelegate, which is inherited
- from AbstractButton. For instance, you can set \l {AbstractButton::text}{text},
- and react to \l {AbstractButton::clicked}{clicks} using the AbstractButton
- API. The state of the radio delegate can be set with the
- \l {AbstractButton::}{checked} property.
-
- Radio delegates are \l {AbstractButton::autoExclusive}{auto-exclusive}
- by default. Only one delegate can be checked at any time amongst radio
- delegates that belong to the same parent item; checking another delegate
- automatically unchecks the previously checked one. For radio delegates
- that do not share a common parent, ButtonGroup can be used to manage
- exclusivity.
-
- \l RadioButton is similar to RadioDelegate, except that it is typically
- not used in views, but rather when there are only a few options, and often
- with the requirement that each button is uniquely identifiable.
-
- \code
- ButtonGroup {
- id: buttonGroup
- }
-
- ListView {
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: RadioDelegate {
- text: modelData
- checked: index == 0
- ButtonGroup.group: buttonGroup
- }
- }
- \endcode
-
- \sa {Customizing RadioDelegate}, {Delegate Controls}, RadioButton
-*/
-
-QQuickRadioDelegate::QQuickRadioDelegate(QQuickItem *parent)
- : QQuickItemDelegate(parent)
-{
- setCheckable(true);
- setAutoExclusive(true);
-}
-
-QFont QQuickRadioDelegate::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ListView);
-}
-
-QPalette QQuickRadioDelegate::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ListView);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickRadioDelegate::accessibleRole() const
-{
- return QAccessible::RadioButton;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickradiodelegate_p.h b/src/quicktemplates2/qquickradiodelegate_p.h
deleted file mode 100644
index 453856e4..00000000
--- a/src/quicktemplates2/qquickradiodelegate_p.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKRADIODELEGATE_P_H
-#define QQUICKRADIODELEGATE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickitemdelegate_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickRadioDelegatePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickRadioDelegate : public QQuickItemDelegate
-{
- Q_OBJECT
-
-public:
- explicit QQuickRadioDelegate(QQuickItem *parent = nullptr);
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickRadioDelegate)
-
-#endif // QQUICKRADIODELEGATE_P_H
diff --git a/src/quicktemplates2/qquickrangeslider.cpp b/src/quicktemplates2/qquickrangeslider.cpp
deleted file mode 100644
index 378ece50..00000000
--- a/src/quicktemplates2/qquickrangeslider.cpp
+++ /dev/null
@@ -1,1319 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickrangeslider_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtCore/qscopedpointer.h>
-#include <QtQuick/private/qquickwindow_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype RangeSlider
- \inherits Control
- \instantiates QQuickRangeSlider
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-input
- \ingroup qtquickcontrols2-focusscopes
- \brief Used to select a range of values by sliding two handles along a track.
-
- \image qtquickcontrols2-rangeslider.gif
-
- RangeSlider is used to select a range specified by two values, by sliding
- each handle along a track.
-
- In the example below, custom \l from and \l to values are set, and the
- initial positions of the \l first and \l second handles are set:
-
- \code
- RangeSlider {
- from: 1
- to: 100
- first.value: 25
- second.value: 75
- }
- \endcode
-
- In order to perform an action when the value for a particular handle changes,
- use the following syntax:
-
- \code
- first.onMoved: console.log("first.value changed to " + first.value)
- \endcode
-
- The \l {first.position} and \l {second.position} properties are expressed as
- fractions of the control's size, in the range \c {0.0 - 1.0}.
- The \l {first.visualPosition} and \l {second.visualPosition} properties are
- the same, except that they are reversed in a
- \l {Right-to-left User Interfaces}{right-to-left} application.
- The \c visualPosition is useful for positioning the handles when styling
- RangeSlider. In the example above, \l {first.visualPosition} will be \c 0.24
- in a left-to-right application, and \c 0.76 in a right-to-left application.
-
- For a slider that allows the user to select a single value, see \l Slider.
-
- \sa {Customizing RangeSlider}, {Input Controls},
- {Focus Management in Qt Quick Controls}
-*/
-
-class QQuickRangeSliderNodePrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickRangeSliderNode)
-public:
- QQuickRangeSliderNodePrivate(qreal value, QQuickRangeSlider *slider)
- : value(value),
- slider(slider)
- {
- }
-
- bool isFirst() const;
-
- void setPosition(qreal position, bool ignoreOtherPosition = false);
- void updatePosition(bool ignoreOtherPosition = false);
-
- void cancelHandle();
- void executeHandle(bool complete = false);
-
- static QQuickRangeSliderNodePrivate *get(QQuickRangeSliderNode *node);
-
- qreal value = 0;
- bool isPendingValue = false;
- qreal pendingValue = 0;
- qreal position = 0;
- QQuickDeferredPointer<QQuickItem> handle;
- QQuickRangeSlider *slider = nullptr;
- bool pressed = false;
- bool hovered = false;
- int touchId = -1;
-};
-
-bool QQuickRangeSliderNodePrivate::isFirst() const
-{
- return this == get(slider->first());
-}
-
-void QQuickRangeSliderNodePrivate::setPosition(qreal position, bool ignoreOtherPosition)
-{
- Q_Q(QQuickRangeSliderNode);
-
- const qreal min = isFirst() || ignoreOtherPosition ? 0.0 : qMax<qreal>(0.0, slider->first()->position());
- const qreal max = !isFirst() || ignoreOtherPosition ? 1.0 : qMin<qreal>(1.0, slider->second()->position());
- position = qBound(min, position, max);
- if (!qFuzzyCompare(this->position, position)) {
- this->position = position;
- emit q->positionChanged();
- emit q->visualPositionChanged();
- }
-}
-
-void QQuickRangeSliderNodePrivate::updatePosition(bool ignoreOtherPosition)
-{
- qreal pos = 0;
- if (!qFuzzyCompare(slider->from(), slider->to()))
- pos = (value - slider->from()) / (slider->to() - slider->from());
- setPosition(pos, ignoreOtherPosition);
-}
-
-static inline QString handleName() { return QStringLiteral("handle"); }
-
-void QQuickRangeSliderNodePrivate::cancelHandle()
-{
- Q_Q(QQuickRangeSliderNode);
- quickCancelDeferred(q, handleName());
-}
-
-void QQuickRangeSliderNodePrivate::executeHandle(bool complete)
-{
- Q_Q(QQuickRangeSliderNode);
- if (handle.wasExecuted())
- return;
-
- if (!handle || complete)
- quickBeginDeferred(q, handleName(), handle);
- if (complete)
- quickCompleteDeferred(q, handleName(), handle);
-}
-
-QQuickRangeSliderNodePrivate *QQuickRangeSliderNodePrivate::get(QQuickRangeSliderNode *node)
-{
- return node->d_func();
-}
-
-QQuickRangeSliderNode::QQuickRangeSliderNode(qreal value, QQuickRangeSlider *slider)
- : QObject(*(new QQuickRangeSliderNodePrivate(value, slider)), slider)
-{
-}
-
-QQuickRangeSliderNode::~QQuickRangeSliderNode()
-{
-}
-
-qreal QQuickRangeSliderNode::value() const
-{
- Q_D(const QQuickRangeSliderNode);
- return d->value;
-}
-
-void QQuickRangeSliderNode::setValue(qreal value)
-{
- Q_D(QQuickRangeSliderNode);
- if (!d->slider->isComponentComplete()) {
- d->pendingValue = value;
- d->isPendingValue = true;
- return;
- }
-
- // First, restrict the first value to be within to and from.
- const qreal smaller = qMin(d->slider->to(), d->slider->from());
- const qreal larger = qMax(d->slider->to(), d->slider->from());
- value = qBound(smaller, value, larger);
-
- // Then, ensure that it doesn't go past the other value,
- // a check that depends on whether or not the range is inverted.
- const bool invertedRange = d->slider->from() > d->slider->to();
- if (d->isFirst()) {
- if (invertedRange) {
- if (value < d->slider->second()->value())
- value = d->slider->second()->value();
- } else {
- if (value > d->slider->second()->value())
- value = d->slider->second()->value();
- }
- } else {
- if (invertedRange) {
- if (value > d->slider->first()->value())
- value = d->slider->first()->value();
- } else {
- if (value < d->slider->first()->value())
- value = d->slider->first()->value();
- }
- }
-
- if (!qFuzzyCompare(d->value, value)) {
- d->value = value;
- d->updatePosition();
- emit valueChanged();
- }
-}
-
-qreal QQuickRangeSliderNode::position() const
-{
- Q_D(const QQuickRangeSliderNode);
- return d->position;
-}
-
-qreal QQuickRangeSliderNode::visualPosition() const
-{
- Q_D(const QQuickRangeSliderNode);
- if (d->slider->orientation() == Qt::Vertical || d->slider->isMirrored())
- return 1.0 - d->position;
- return d->position;
-}
-
-QQuickItem *QQuickRangeSliderNode::handle() const
-{
- QQuickRangeSliderNodePrivate *d = const_cast<QQuickRangeSliderNodePrivate *>(d_func());
- if (!d->handle)
- d->executeHandle();
- return d->handle;
-}
-
-void QQuickRangeSliderNode::setHandle(QQuickItem *handle)
-{
- Q_D(QQuickRangeSliderNode);
- if (d->handle == handle)
- return;
-
- if (!d->handle.isExecuting())
- d->cancelHandle();
-
- const qreal oldImplicitHandleWidth = implicitHandleWidth();
- const qreal oldImplicitHandleHeight = implicitHandleHeight();
-
- QQuickControlPrivate::get(d->slider)->removeImplicitSizeListener(d->handle);
- delete d->handle;
- d->handle = handle;
-
- if (handle) {
- if (!handle->parentItem())
- handle->setParentItem(d->slider);
-
- QQuickItem *firstHandle = QQuickRangeSliderNodePrivate::get(d->slider->first())->handle;
- QQuickItem *secondHandle = QQuickRangeSliderNodePrivate::get(d->slider->second())->handle;
- if (firstHandle && secondHandle) {
- // The order of property assignments in QML is undefined,
- // but we need the first handle to be before the second due
- // to focus order constraints, so check for that here.
- const QList<QQuickItem *> childItems = d->slider->childItems();
- const int firstIndex = childItems.indexOf(firstHandle);
- const int secondIndex = childItems.indexOf(secondHandle);
- if (firstIndex != -1 && secondIndex != -1 && firstIndex > secondIndex) {
- firstHandle->stackBefore(secondHandle);
- // Ensure we have some way of knowing which handle is above
- // the other when it comes to mouse presses, and also that
- // they are rendered in the correct order.
- secondHandle->setZ(secondHandle->z() + 1);
- }
- }
-
- handle->setActiveFocusOnTab(true);
- QQuickControlPrivate::get(d->slider)->addImplicitSizeListener(handle);
- }
-
- if (!qFuzzyCompare(oldImplicitHandleWidth, implicitHandleWidth()))
- emit implicitHandleWidthChanged();
- if (!qFuzzyCompare(oldImplicitHandleHeight, implicitHandleHeight()))
- emit implicitHandleHeightChanged();
- if (!d->handle.isExecuting())
- emit handleChanged();
-}
-
-bool QQuickRangeSliderNode::isPressed() const
-{
- Q_D(const QQuickRangeSliderNode);
- return d->pressed;
-}
-
-void QQuickRangeSliderNode::setPressed(bool pressed)
-{
- Q_D(QQuickRangeSliderNode);
- if (d->pressed == pressed)
- return;
-
- d->pressed = pressed;
- d->slider->setAccessibleProperty("pressed", pressed || d->slider->second()->isPressed());
- emit pressedChanged();
-}
-
-bool QQuickRangeSliderNode::isHovered() const
-{
- Q_D(const QQuickRangeSliderNode);
- return d->hovered;
-}
-
-void QQuickRangeSliderNode::setHovered(bool hovered)
-{
- Q_D(QQuickRangeSliderNode);
- if (d->hovered == hovered)
- return;
-
- d->hovered = hovered;
- emit hoveredChanged();
-}
-
-qreal QQuickRangeSliderNode::implicitHandleWidth() const
-{
- Q_D(const QQuickRangeSliderNode);
- if (!d->handle)
- return 0;
- return d->handle->implicitWidth();
-}
-
-qreal QQuickRangeSliderNode::implicitHandleHeight() const
-{
- Q_D(const QQuickRangeSliderNode);
- if (!d->handle)
- return 0;
- return d->handle->implicitHeight();
-}
-
-void QQuickRangeSliderNode::increase()
-{
- Q_D(QQuickRangeSliderNode);
- qreal step = qFuzzyIsNull(d->slider->stepSize()) ? 0.1 : d->slider->stepSize();
- setValue(d->value + step);
-}
-
-void QQuickRangeSliderNode::decrease()
-{
- Q_D(QQuickRangeSliderNode);
- qreal step = qFuzzyIsNull(d->slider->stepSize()) ? 0.1 : d->slider->stepSize();
- setValue(d->value - step);
-}
-
-static const qreal defaultFrom = 0.0;
-static const qreal defaultTo = 1.0;
-
-class QQuickRangeSliderPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickRangeSlider)
-
-public:
- QQuickRangeSliderNode *pressedNode(int touchId = -1) const;
-
-#if QT_CONFIG(quicktemplates2_multitouch)
- bool acceptTouch(const QTouchEvent::TouchPoint &point) override;
-#endif
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- void updateHover(const QPointF &pos);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- bool live = true;
- qreal from = defaultFrom;
- qreal to = defaultTo;
- qreal stepSize = 0;
- qreal touchDragThreshold = -1;
- QQuickRangeSliderNode *first = nullptr;
- QQuickRangeSliderNode *second = nullptr;
- QPointF pressPoint;
- Qt::Orientation orientation = Qt::Horizontal;
- QQuickRangeSlider::SnapMode snapMode = QQuickRangeSlider::NoSnap;
-};
-
-static qreal valueAt(const QQuickRangeSlider *slider, qreal position)
-{
- return slider->from() + (slider->to() - slider->from()) * position;
-}
-
-static qreal snapPosition(const QQuickRangeSlider *slider, qreal position)
-{
- const qreal range = slider->to() - slider->from();
- if (qFuzzyIsNull(range))
- return position;
-
- const qreal effectiveStep = slider->stepSize() / range;
- if (qFuzzyIsNull(effectiveStep))
- return position;
-
- return qRound(position / effectiveStep) * effectiveStep;
-}
-
-static qreal positionAt(const QQuickRangeSlider *slider, QQuickItem *handle, const QPointF &point)
-{
- if (slider->orientation() == Qt::Horizontal) {
- const qreal hw = handle ? handle->width() : 0;
- const qreal offset = hw / 2;
- const qreal extent = slider->availableWidth() - hw;
- if (!qFuzzyIsNull(extent)) {
- if (slider->isMirrored())
- return (slider->width() - point.x() - slider->rightPadding() - offset) / extent;
- return (point.x() - slider->leftPadding() - offset) / extent;
- }
- } else {
- const qreal hh = handle ? handle->height() : 0;
- const qreal offset = hh / 2;
- const qreal extent = slider->availableHeight() - hh;
- if (!qFuzzyIsNull(extent))
- return (slider->height() - point.y() - slider->bottomPadding() - offset) / extent;
- }
- return 0;
-}
-
-QQuickRangeSliderNode *QQuickRangeSliderPrivate::pressedNode(int touchId) const
-{
- if (touchId == -1)
- return first->isPressed() ? first : (second->isPressed() ? second : nullptr);
- if (QQuickRangeSliderNodePrivate::get(first)->touchId == touchId)
- return first;
- if (QQuickRangeSliderNodePrivate::get(second)->touchId == touchId)
- return second;
- return nullptr;
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-bool QQuickRangeSliderPrivate::acceptTouch(const QTouchEvent::TouchPoint &point)
-{
- int firstId = QQuickRangeSliderNodePrivate::get(first)->touchId;
- int secondId = QQuickRangeSliderNodePrivate::get(second)->touchId;
-
- if (((firstId == -1 || secondId == -1) && point.state() == Qt::TouchPointPressed) || point.id() == firstId || point.id() == secondId) {
- touchId = point.id();
- return true;
- }
-
- return false;
-}
-#endif
-
-void QQuickRangeSliderPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickRangeSlider);
- QQuickControlPrivate::handlePress(point);
- pressPoint = point;
-
- QQuickItem *firstHandle = first->handle();
- QQuickItem *secondHandle = second->handle();
- const bool firstHit = firstHandle && !first->isPressed() && firstHandle->contains(q->mapToItem(firstHandle, point));
- const bool secondHit = secondHandle && !second->isPressed() && secondHandle->contains(q->mapToItem(secondHandle, point));
- QQuickRangeSliderNode *hitNode = nullptr;
- QQuickRangeSliderNode *otherNode = nullptr;
-
- if (firstHit && secondHit) {
- // choose highest
- hitNode = firstHandle->z() > secondHandle->z() ? first : second;
- otherNode = firstHandle->z() > secondHandle->z() ? second : first;
- } else if (firstHit) {
- hitNode = first;
- otherNode = second;
- } else if (secondHit) {
- hitNode = second;
- otherNode = first;
- } else {
- // find the nearest
- const qreal firstPos = positionAt(q, firstHandle, point);
- const qreal secondPos = positionAt(q, secondHandle, point);
- const qreal firstDistance = qAbs(firstPos - first->position());
- const qreal secondDistance = qAbs(secondPos - second->position());
-
- if (qFuzzyCompare(firstDistance, secondDistance)) {
- // same distance => choose the one that can be moved towards the press position
- const bool inverted = from > to;
- if ((!inverted && firstPos < first->position()) || (inverted && firstPos > first->position())) {
- hitNode = first;
- otherNode = second;
- } else {
- hitNode = second;
- otherNode = first;
- }
- } else if (firstDistance < secondDistance) {
- hitNode = first;
- otherNode = second;
- } else {
- hitNode = second;
- otherNode = first;
- }
- }
-
- if (hitNode) {
- hitNode->setPressed(true);
- if (QQuickItem *handle = hitNode->handle())
- handle->setZ(1);
- QQuickRangeSliderNodePrivate::get(hitNode)->touchId = touchId;
- }
- if (otherNode) {
- if (QQuickItem *handle = otherNode->handle())
- handle->setZ(0);
- }
-}
-
-void QQuickRangeSliderPrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickRangeSlider);
- QQuickControlPrivate::handleMove(point);
- QQuickRangeSliderNode *pressedNode = QQuickRangeSliderPrivate::pressedNode(touchId);
- if (pressedNode) {
- const qreal oldPos = pressedNode->position();
- qreal pos = positionAt(q, pressedNode->handle(), point);
- if (snapMode == QQuickRangeSlider::SnapAlways)
- pos = snapPosition(q, pos);
- if (live)
- pressedNode->setValue(valueAt(q, pos));
- else
- QQuickRangeSliderNodePrivate::get(pressedNode)->setPosition(pos);
-
- if (!qFuzzyCompare(pressedNode->position(), oldPos))
- emit pressedNode->moved();
- }
-}
-
-void QQuickRangeSliderPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickRangeSlider);
- QQuickControlPrivate::handleRelease(point);
- pressPoint = QPointF();
-
- QQuickRangeSliderNode *pressedNode = QQuickRangeSliderPrivate::pressedNode(touchId);
- if (!pressedNode)
- return;
- QQuickRangeSliderNodePrivate *pressedNodePrivate = QQuickRangeSliderNodePrivate::get(pressedNode);
-
- if (q->keepMouseGrab() || q->keepTouchGrab()) {
- const qreal oldPos = pressedNode->position();
- qreal pos = positionAt(q, pressedNode->handle(), point);
- if (snapMode != QQuickRangeSlider::NoSnap)
- pos = snapPosition(q, pos);
- qreal val = valueAt(q, pos);
- if (!qFuzzyCompare(val, pressedNode->value()))
- pressedNode->setValue(val);
- else if (snapMode != QQuickRangeSlider::NoSnap)
- pressedNodePrivate->setPosition(pos);
- q->setKeepMouseGrab(false);
- q->setKeepTouchGrab(false);
-
- if (!qFuzzyCompare(pressedNode->position(), oldPos))
- emit pressedNode->moved();
- }
- pressedNode->setPressed(false);
- pressedNodePrivate->touchId = -1;
-}
-
-void QQuickRangeSliderPrivate::handleUngrab()
-{
- QQuickControlPrivate::handleUngrab();
- pressPoint = QPointF();
- first->setPressed(false);
- second->setPressed(false);
- QQuickRangeSliderNodePrivate::get(first)->touchId = -1;
- QQuickRangeSliderNodePrivate::get(second)->touchId = -1;
-}
-
-void QQuickRangeSliderPrivate::updateHover(const QPointF &pos)
-{
- Q_Q(QQuickRangeSlider);
- QQuickItem *firstHandle = first->handle();
- QQuickItem *secondHandle = second->handle();
- first->setHovered(firstHandle && firstHandle->isEnabled() && firstHandle->contains(q->mapToItem(firstHandle, pos)));
- second->setHovered(secondHandle && secondHandle->isEnabled() && secondHandle->contains(q->mapToItem(secondHandle, pos)));
-}
-
-void QQuickRangeSliderPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- QQuickControlPrivate::itemImplicitWidthChanged(item);
- if (item == first->handle())
- emit first->implicitHandleWidthChanged();
- else if (item == second->handle())
- emit second->implicitHandleWidthChanged();
-}
-
-void QQuickRangeSliderPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- QQuickControlPrivate::itemImplicitHeightChanged(item);
- if (item == first->handle())
- emit first->implicitHandleHeightChanged();
- else if (item == second->handle())
- emit second->implicitHandleHeightChanged();
-}
-
-QQuickRangeSlider::QQuickRangeSlider(QQuickItem *parent)
- : QQuickControl(*(new QQuickRangeSliderPrivate), parent)
-{
- Q_D(QQuickRangeSlider);
- d->first = new QQuickRangeSliderNode(0.0, this);
- d->second = new QQuickRangeSliderNode(1.0, this);
-
- setFlag(QQuickItem::ItemIsFocusScope);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-}
-
-QQuickRangeSlider::~QQuickRangeSlider()
-{
- Q_D(QQuickRangeSlider);
- d->removeImplicitSizeListener(d->first->handle());
- d->removeImplicitSizeListener(d->second->handle());
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::RangeSlider::from
-
- This property holds the starting value for the range. The default value is \c 0.0.
-
- \sa to, first.value, second.value
-*/
-qreal QQuickRangeSlider::from() const
-{
- Q_D(const QQuickRangeSlider);
- return d->from;
-}
-
-void QQuickRangeSlider::setFrom(qreal from)
-{
- Q_D(QQuickRangeSlider);
- if (qFuzzyCompare(d->from, from))
- return;
-
- d->from = from;
- emit fromChanged();
-
- if (isComponentComplete()) {
- d->first->setValue(d->first->value());
- d->second->setValue(d->second->value());
- }
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::RangeSlider::to
-
- This property holds the end value for the range. The default value is \c 1.0.
-
- \sa from, first.value, second.value
-*/
-qreal QQuickRangeSlider::to() const
-{
- Q_D(const QQuickRangeSlider);
- return d->to;
-}
-
-void QQuickRangeSlider::setTo(qreal to)
-{
- Q_D(QQuickRangeSlider);
- if (qFuzzyCompare(d->to, to))
- return;
-
- d->to = to;
- emit toChanged();
-
- if (isComponentComplete()) {
- d->first->setValue(d->first->value());
- d->second->setValue(d->second->value());
- }
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty qreal QtQuick.Controls::RangeSlider::touchDragThreshold
-
- This property holds the threshold (in logical pixels) at which a touch drag event will be initiated.
- The mouse drag threshold won't be affected.
- The default value is \c Qt.styleHints.startDragDistance.
-
- \sa QStyleHints
-
-*/
-qreal QQuickRangeSlider::touchDragThreshold() const
-{
- Q_D(const QQuickRangeSlider);
- return d->touchDragThreshold;
-}
-
-void QQuickRangeSlider::setTouchDragThreshold(qreal touchDragThreshold)
-{
- Q_D(QQuickRangeSlider);
- if (d->touchDragThreshold == touchDragThreshold)
- return;
-
- d->touchDragThreshold = touchDragThreshold;
- emit touchDragThresholdChanged();
-}
-
-void QQuickRangeSlider::resetTouchDragThreshold()
-{
- setTouchDragThreshold(-1);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlmethod real QtQuick.Controls::RangeSlider::valueAt(real position)
-
- Returns the value for the given \a position.
-
- \sa first.value, second.value, first.position, second.position, live
-*/
-qreal QQuickRangeSlider::valueAt(qreal position) const
-{
- Q_D(const QQuickRangeSlider);
- const qreal value = (d->to - d->from) * position;
- if (qFuzzyIsNull(d->stepSize))
- return d->from + value;
- return d->from + qRound(value / d->stepSize) * d->stepSize;
-}
-
-/*!
- \qmlpropertygroup QtQuick.Controls::RangeSlider::first
- \qmlproperty real QtQuick.Controls::RangeSlider::first.value
- \qmlproperty real QtQuick.Controls::RangeSlider::first.position
- \qmlproperty real QtQuick.Controls::RangeSlider::first.visualPosition
- \qmlproperty Item QtQuick.Controls::RangeSlider::first.handle
- \qmlproperty bool QtQuick.Controls::RangeSlider::first.pressed
- \qmlproperty bool QtQuick.Controls::RangeSlider::first.hovered
- \qmlproperty real QtQuick.Controls::RangeSlider::first.implicitHandleWidth
- \qmlproperty real QtQuick.Controls::RangeSlider::first.implicitHandleHeight
-
- \table
- \header
- \li Property
- \li Description
- \row
- \li value
- \li This property holds the value of the first handle in the range
- \c from - \c to.
-
- If \l from is greater than \l to, the value of the first handle
- must be greater than the second, and vice versa.
-
- The default value is \c 0.0.
- \row
- \li handle
- \li This property holds the first handle item.
- \row
- \li visualPosition
- \li This property holds the visual position of the first handle.
-
- The position is expressed as a fraction of the control's size, in the range
- \c {0.0 - 1.0}. When the control is \l {Control::mirrored}{mirrored}, the
- value is equal to \c {1.0 - position}. This makes the value suitable for
- visualizing the slider, taking right-to-left support into account.
- \row
- \li position
- \li This property holds the logical position of the first handle.
-
- The position is expressed as a fraction of the control's size, in the range
- \c {0.0 - 1.0}. For visualizing a slider, the right-to-left aware
- \l {first.visualPosition}{visualPosition} should be used instead.
- \row
- \li pressed
- \li This property holds whether the first handle is pressed by either touch,
- mouse, or keys.
- \row
- \li hovered
- \li This property holds whether the first handle is hovered.
- This property was introduced in QtQuick.Controls 2.1.
- \row
- \li implicitHandleWidth
- \li This property holds the implicit width of the first handle.
- This property was introduced in QtQuick.Controls 2.5.
- \row
- \li implicitHandleHeight
- \li This property holds the implicit height of the first handle.
- This property was introduced in QtQuick.Controls 2.5.
- \endtable
-
- \sa first.moved(), first.increase(), first.decrease()
-*/
-QQuickRangeSliderNode *QQuickRangeSlider::first() const
-{
- Q_D(const QQuickRangeSlider);
- return d->first;
-}
-
-/*!
- \qmlsignal void QtQuick.Controls::RangeSlider::first.moved()
- \qmlsignal void QtQuick.Controls::RangeSlider::second.moved()
- \since QtQuick.Controls 2.5
-
- This signal is emitted when either the first or second handle has been
- interactively moved by the user by either touch, mouse, or keys.
-
- \sa first, second
-*/
-
-/*!
- \qmlpropertygroup QtQuick.Controls::RangeSlider::second
- \qmlproperty real QtQuick.Controls::RangeSlider::second.value
- \qmlproperty real QtQuick.Controls::RangeSlider::second.position
- \qmlproperty real QtQuick.Controls::RangeSlider::second.visualPosition
- \qmlproperty Item QtQuick.Controls::RangeSlider::second.handle
- \qmlproperty bool QtQuick.Controls::RangeSlider::second.pressed
- \qmlproperty bool QtQuick.Controls::RangeSlider::second.hovered
- \qmlproperty real QtQuick.Controls::RangeSlider::second.implicitHandleWidth
- \qmlproperty real QtQuick.Controls::RangeSlider::second.implicitHandleHeight
-
- \table
- \header
- \li Property
- \li Description
- \row
- \li value
- \li This property holds the value of the second handle in the range
- \c from - \c to.
-
- If \l from is greater than \l to, the value of the first handle
- must be greater than the second, and vice versa.
-
- The default value is \c 0.0.
- \row
- \li handle
- \li This property holds the second handle item.
- \row
- \li visualPosition
- \li This property holds the visual position of the second handle.
-
- The position is expressed as a fraction of the control's size, in the range
- \c {0.0 - 1.0}. When the control is \l {Control::mirrored}{mirrored}, the
- value is equal to \c {1.0 - position}. This makes the value suitable for
- visualizing the slider, taking right-to-left support into account.
- \row
- \li position
- \li This property holds the logical position of the second handle.
-
- The position is expressed as a fraction of the control's size, in the range
- \c {0.0 - 1.0}. For visualizing a slider, the right-to-left aware
- \l {second.visualPosition}{visualPosition} should be used instead.
- \row
- \li pressed
- \li This property holds whether the second handle is pressed by either touch,
- mouse, or keys.
- \row
- \li hovered
- \li This property holds whether the second handle is hovered.
- This property was introduced in QtQuick.Controls 2.1.
- \row
- \li implicitHandleWidth
- \li This property holds the implicit width of the second handle.
- This property was introduced in QtQuick.Controls 2.5.
- \row
- \li implicitHandleHeight
- \li This property holds the implicit height of the second handle.
- This property was introduced in QtQuick.Controls 2.5.
- \endtable
-
- \sa second.moved(), second.increase(), second.decrease()
-*/
-QQuickRangeSliderNode *QQuickRangeSlider::second() const
-{
- Q_D(const QQuickRangeSlider);
- return d->second;
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::RangeSlider::stepSize
-
- This property holds the step size. The default value is \c 0.0.
-
- \sa snapMode, first.increase(), first.decrease()
-*/
-qreal QQuickRangeSlider::stepSize() const
-{
- Q_D(const QQuickRangeSlider);
- return d->stepSize;
-}
-
-void QQuickRangeSlider::setStepSize(qreal step)
-{
- Q_D(QQuickRangeSlider);
- if (qFuzzyCompare(d->stepSize, step))
- return;
-
- d->stepSize = step;
- emit stepSizeChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::RangeSlider::snapMode
-
- This property holds the snap mode.
-
- The snap mode determines how the slider handles behave with
- regards to the \l stepSize.
-
- Possible values:
- \value RangeSlider.NoSnap The slider does not snap (default).
- \value RangeSlider.SnapAlways The slider snaps while the handle is dragged.
- \value RangeSlider.SnapOnRelease The slider does not snap while being dragged, but only after the handle is released.
-
- For visual explanations of the various modes, see the
- \l {Slider::}{snapMode} documentation of \l Slider.
-
- \sa stepSize
-*/
-QQuickRangeSlider::SnapMode QQuickRangeSlider::snapMode() const
-{
- Q_D(const QQuickRangeSlider);
- return d->snapMode;
-}
-
-void QQuickRangeSlider::setSnapMode(SnapMode mode)
-{
- Q_D(QQuickRangeSlider);
- if (d->snapMode == mode)
- return;
-
- d->snapMode = mode;
- emit snapModeChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::RangeSlider::orientation
-
- This property holds the orientation.
-
- Possible values:
- \value Qt.Horizontal Horizontal (default)
- \value Qt.Vertical Vertical
-
- \sa horizontal, vertical
-*/
-Qt::Orientation QQuickRangeSlider::orientation() const
-{
- Q_D(const QQuickRangeSlider);
- return d->orientation;
-}
-
-void QQuickRangeSlider::setOrientation(Qt::Orientation orientation)
-{
- Q_D(QQuickRangeSlider);
- if (d->orientation == orientation)
- return;
-
- d->orientation = orientation;
- emit orientationChanged();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::RangeSlider::setValues(real firstValue, real secondValue)
-
- Sets \l first.value and \l second.value with the given arguments.
-
- If \a to is larger than \a from and \a firstValue is larger than
- \a secondValue, \a firstValue will be clamped to \a secondValue.
-
- If \a from is larger than \a to and \a secondValue is larger than
- \a firstValue, \a secondValue will be clamped to \a firstValue.
-
- This function may be necessary to set the first and second values
- after the control has been completed, as there is a circular
- dependency between firstValue and secondValue which can cause
- assigned values to be clamped to each other.
-
- \sa stepSize
-*/
-void QQuickRangeSlider::setValues(qreal firstValue, qreal secondValue)
-{
- Q_D(QQuickRangeSlider);
- // Restrict the values to be within to and from.
- const qreal smaller = qMin(d->to, d->from);
- const qreal larger = qMax(d->to, d->from);
- firstValue = qBound(smaller, firstValue, larger);
- secondValue = qBound(smaller, secondValue, larger);
-
- if (d->from > d->to) {
- // If the from and to values are reversed, the secondValue
- // might be less than the first value, which is not allowed.
- if (secondValue > firstValue)
- secondValue = firstValue;
- } else {
- // Otherwise, clamp first to second if it's too large.
- if (firstValue > secondValue)
- firstValue = secondValue;
- }
-
- // Then set both values. If they didn't change, no change signal will be emitted.
- QQuickRangeSliderNodePrivate *firstPrivate = QQuickRangeSliderNodePrivate::get(d->first);
- if (firstValue != firstPrivate->value) {
- firstPrivate->value = firstValue;
- emit d->first->valueChanged();
- }
-
- QQuickRangeSliderNodePrivate *secondPrivate = QQuickRangeSliderNodePrivate::get(d->second);
- if (secondValue != secondPrivate->value) {
- secondPrivate->value = secondValue;
- emit d->second->valueChanged();
- }
-
- // After we've set both values, then we can update the positions.
- // If we don't do this last, the positions may be incorrect.
- firstPrivate->updatePosition(true);
- secondPrivate->updatePosition();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::RangeSlider::live
-
- This property holds whether the slider provides live updates for the \l first.value
- and \l second.value properties while the respective handles are dragged.
-
- The default value is \c true.
-
- \sa first.value, second.value
-*/
-bool QQuickRangeSlider::live() const
-{
- Q_D(const QQuickRangeSlider);
- return d->live;
-}
-
-void QQuickRangeSlider::setLive(bool live)
-{
- Q_D(QQuickRangeSlider);
- if (d->live == live)
- return;
-
- d->live = live;
- emit liveChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::RangeSlider::horizontal
- \readonly
-
- This property holds whether the slider is horizontal.
-
- \sa orientation
-*/
-bool QQuickRangeSlider::isHorizontal() const
-{
- Q_D(const QQuickRangeSlider);
- return d->orientation == Qt::Horizontal;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::RangeSlider::vertical
- \readonly
-
- This property holds whether the slider is vertical.
-
- \sa orientation
-*/
-bool QQuickRangeSlider::isVertical() const
-{
- Q_D(const QQuickRangeSlider);
- return d->orientation == Qt::Vertical;
-}
-
-void QQuickRangeSlider::focusInEvent(QFocusEvent *event)
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::focusInEvent(event);
-
- // The active focus ends up to RangeSlider when using forceActiveFocus()
- // or QML KeyNavigation. We must forward the focus to one of the handles,
- // because RangeSlider handles key events for the focused handle. If
- // neither handle has active focus, RangeSlider doesn't do anything.
- QQuickItem *handle = nextItemInFocusChain();
- // QQuickItem::nextItemInFocusChain() only works as desired with
- // Qt::TabFocusAllControls. otherwise pick the first handle
- if (!handle || handle == this)
- handle = d->first->handle();
- if (handle)
- handle->forceActiveFocus(event->reason());
-}
-
-void QQuickRangeSlider::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::keyPressEvent(event);
-
- QQuickRangeSliderNode *focusNode = d->first->handle()->hasActiveFocus()
- ? d->first : (d->second->handle()->hasActiveFocus() ? d->second : nullptr);
- if (!focusNode)
- return;
-
- const qreal oldValue = focusNode->value();
- if (d->orientation == Qt::Horizontal) {
- if (event->key() == Qt::Key_Left) {
- focusNode->setPressed(true);
- if (isMirrored())
- focusNode->increase();
- else
- focusNode->decrease();
- event->accept();
- } else if (event->key() == Qt::Key_Right) {
- focusNode->setPressed(true);
- if (isMirrored())
- focusNode->decrease();
- else
- focusNode->increase();
- event->accept();
- }
- } else {
- if (event->key() == Qt::Key_Up) {
- focusNode->setPressed(true);
- focusNode->increase();
- event->accept();
- } else if (event->key() == Qt::Key_Down) {
- focusNode->setPressed(true);
- focusNode->decrease();
- event->accept();
- }
- }
- if (!qFuzzyCompare(focusNode->value(), oldValue))
- emit focusNode->moved();
-}
-
-void QQuickRangeSlider::hoverEnterEvent(QHoverEvent *event)
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::hoverEnterEvent(event);
- d->updateHover(event->posF());
-}
-
-void QQuickRangeSlider::hoverMoveEvent(QHoverEvent *event)
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::hoverMoveEvent(event);
- d->updateHover(event->posF());
-}
-
-void QQuickRangeSlider::hoverLeaveEvent(QHoverEvent *event)
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::hoverLeaveEvent(event);
- d->first->setHovered(false);
- d->second->setHovered(false);
-}
-
-void QQuickRangeSlider::keyReleaseEvent(QKeyEvent *event)
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::keyReleaseEvent(event);
- d->first->setPressed(false);
- d->second->setPressed(false);
-}
-
-void QQuickRangeSlider::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::mousePressEvent(event);
- d->handleMove(event->localPos());
- setKeepMouseGrab(true);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickRangeSlider::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickRangeSlider);
- switch (event->type()) {
- case QEvent::TouchUpdate:
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- if (!d->acceptTouch(point))
- continue;
-
- switch (point.state()) {
- case Qt::TouchPointPressed:
- d->handlePress(point.pos());
- break;
- case Qt::TouchPointMoved:
- if (!keepTouchGrab()) {
- if (d->orientation == Qt::Horizontal)
- setKeepTouchGrab(QQuickWindowPrivate::dragOverThreshold(point.pos().x() - point.startPos().x(), Qt::XAxis, &point, qRound(d->touchDragThreshold)));
- else
- setKeepTouchGrab(QQuickWindowPrivate::dragOverThreshold(point.pos().y() - point.startPos().y(), Qt::YAxis, &point, qRound(d->touchDragThreshold)));
- }
- if (keepTouchGrab())
- d->handleMove(point.pos());
- break;
- case Qt::TouchPointReleased:
- d->handleRelease(point.pos());
- break;
- default:
- break;
- }
- }
- break;
-
- default:
- QQuickControl::touchEvent(event);
- break;
- }
-}
-#endif
-
-void QQuickRangeSlider::mirrorChange()
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::mirrorChange();
- emit d->first->visualPositionChanged();
- emit d->second->visualPositionChanged();
-}
-
-void QQuickRangeSlider::classBegin()
-{
- Q_D(QQuickRangeSlider);
- QQuickControl::classBegin();
-
- QQmlContext *context = qmlContext(this);
- if (context) {
- QQmlEngine::setContextForObject(d->first, context);
- QQmlEngine::setContextForObject(d->second, context);
- }
-}
-
-void QQuickRangeSlider::componentComplete()
-{
- Q_D(QQuickRangeSlider);
- QQuickRangeSliderNodePrivate *firstPrivate = QQuickRangeSliderNodePrivate::get(d->first);
- QQuickRangeSliderNodePrivate *secondPrivate = QQuickRangeSliderNodePrivate::get(d->second);
- firstPrivate->executeHandle(true);
- secondPrivate->executeHandle(true);
-
- QQuickControl::componentComplete();
-
- if (firstPrivate->isPendingValue || secondPrivate->isPendingValue
- || !qFuzzyCompare(d->from, defaultFrom) || !qFuzzyCompare(d->to, defaultTo)) {
- // Properties were set while we were loading. To avoid clamping issues that occur when setting the
- // values of first and second overriding values set by the user, set them all at once at the end.
- // Another reason that we must set these values here is that the from and to values might have made the old range invalid.
- setValues(firstPrivate->isPendingValue ? firstPrivate->pendingValue : firstPrivate->value,
- secondPrivate->isPendingValue ? secondPrivate->pendingValue : secondPrivate->value);
-
- firstPrivate->pendingValue = 0;
- firstPrivate->isPendingValue = false;
- secondPrivate->pendingValue = 0;
- secondPrivate->isPendingValue = false;
- } else {
- // If there was no pending data, we must still update the positions,
- // as first.setValue()/second.setValue() won't be called as part of default construction.
- // Don't need to ignore the second position when updating the first position here,
- // as our default values are guaranteed to be valid.
- firstPrivate->updatePosition();
- secondPrivate->updatePosition();
- }
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::RangeSlider::first.increase()
-
- Increases the value of the handle by stepSize, or \c 0.1 if stepSize is not defined.
-
- \sa first
-*/
-
-/*!
- \qmlmethod void QtQuick.Controls::RangeSlider::first.decrease()
-
- Decreases the value of the handle by stepSize, or \c 0.1 if stepSize is not defined.
-
- \sa first
-*/
-
-/*!
- \qmlmethod void QtQuick.Controls::RangeSlider::second.increase()
-
- Increases the value of the handle by stepSize, or \c 0.1 if stepSize is not defined.
-
- \sa second
-*/
-
-/*!
- \qmlmethod void QtQuick.Controls::RangeSlider::second.decrease()
-
- Decreases the value of the handle by stepSize, or \c 0.1 if stepSize is not defined.
-
- \sa second
-*/
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickRangeSlider::accessibleRole() const
-{
- return QAccessible::Slider;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickrangeslider_p.h b/src/quicktemplates2/qquickrangeslider_p.h
deleted file mode 100644
index a42245a1..00000000
--- a/src/quicktemplates2/qquickrangeslider_p.h
+++ /dev/null
@@ -1,225 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKRANGESLIDER_P_H
-#define QQUICKRANGESLIDER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickRangeSliderPrivate;
-class QQuickRangeSliderNode;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickRangeSlider : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged FINAL)
- Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged FINAL)
- Q_PROPERTY(QQuickRangeSliderNode *first READ first CONSTANT FINAL)
- Q_PROPERTY(QQuickRangeSliderNode *second READ second CONSTANT FINAL)
- Q_PROPERTY(qreal stepSize READ stepSize WRITE setStepSize NOTIFY stepSizeChanged FINAL)
- Q_PROPERTY(SnapMode snapMode READ snapMode WRITE setSnapMode NOTIFY snapModeChanged FINAL)
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(bool live READ live WRITE setLive NOTIFY liveChanged FINAL REVISION 2)
- Q_PROPERTY(bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION 3)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION 3)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal touchDragThreshold READ touchDragThreshold WRITE setTouchDragThreshold RESET resetTouchDragThreshold NOTIFY touchDragThresholdChanged FINAL REVISION 5)
-
-public:
- explicit QQuickRangeSlider(QQuickItem *parent = nullptr);
- ~QQuickRangeSlider();
-
- qreal from() const;
- void setFrom(qreal from);
-
- qreal to() const;
- void setTo(qreal to);
-
- QQuickRangeSliderNode *first() const;
- QQuickRangeSliderNode *second() const;
-
- qreal stepSize() const;
- void setStepSize(qreal step);
-
- enum SnapMode {
- NoSnap,
- SnapAlways,
- SnapOnRelease
- };
- Q_ENUM(SnapMode)
-
- SnapMode snapMode() const;
- void setSnapMode(SnapMode mode);
-
- Qt::Orientation orientation() const;
- void setOrientation(Qt::Orientation orientation);
-
- Q_INVOKABLE void setValues(qreal firstValue, qreal secondValue);
-
- // 2.2 (Qt 5.9)
- bool live() const;
- void setLive(bool live);
-
- // 2.3 (Qt 5.10)
- bool isHorizontal() const;
- bool isVertical() const;
-
- // 2.5 (Qt 5.12)
- qreal touchDragThreshold() const;
- void setTouchDragThreshold(qreal touchDragThreshold);
- void resetTouchDragThreshold();
- Q_REVISION(5) Q_INVOKABLE qreal valueAt(qreal position) const;
-
-Q_SIGNALS:
- void fromChanged();
- void toChanged();
- void stepSizeChanged();
- void snapModeChanged();
- void orientationChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void liveChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void touchDragThresholdChanged();
-
-protected:
- void focusInEvent(QFocusEvent *event) override;
- void hoverEnterEvent(QHoverEvent *event) override;
- void hoverMoveEvent(QHoverEvent *event) override;
- void hoverLeaveEvent(QHoverEvent *event) override;
- void keyPressEvent(QKeyEvent *event) override;
- void keyReleaseEvent(QKeyEvent *event) override;
- void mousePressEvent(QMouseEvent *event) override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
- void mirrorChange() override;
- void classBegin() override;
- void componentComplete() override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- friend class QQuickRangeSliderNode;
-
- Q_DISABLE_COPY(QQuickRangeSlider)
- Q_DECLARE_PRIVATE(QQuickRangeSlider)
-};
-
-class QQuickRangeSliderNodePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickRangeSliderNode : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(qreal value READ value WRITE setValue NOTIFY valueChanged FINAL)
- Q_PROPERTY(qreal position READ position NOTIFY positionChanged FINAL)
- Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL)
- Q_PROPERTY(QQuickItem *handle READ handle WRITE setHandle NOTIFY handleChanged FINAL)
- Q_PROPERTY(bool pressed READ isPressed WRITE setPressed NOTIFY pressedChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(bool hovered READ isHovered WRITE setHovered NOTIFY hoveredChanged FINAL REVISION 1)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal implicitHandleWidth READ implicitHandleWidth NOTIFY implicitHandleWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitHandleHeight READ implicitHandleHeight NOTIFY implicitHandleHeightChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "handle")
-
-public:
- explicit QQuickRangeSliderNode(qreal value, QQuickRangeSlider *slider);
- ~QQuickRangeSliderNode();
-
- qreal value() const;
- void setValue(qreal value);
-
- qreal position() const;
- qreal visualPosition() const;
-
- QQuickItem *handle() const;
- void setHandle(QQuickItem *handle);
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
- // 2.1 (Qt 5.8)
- bool isHovered() const;
- void setHovered(bool hovered);
-
- // 2.5 (Qt 5.12)
- qreal implicitHandleWidth() const;
- qreal implicitHandleHeight() const;
-
-public Q_SLOTS:
- void increase();
- void decrease();
-
-Q_SIGNALS:
- void valueChanged();
- void positionChanged();
- void visualPositionChanged();
- void handleChanged();
- void pressedChanged();
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void hoveredChanged();
- // 2.5 (Qt 5.12)
- /*Q_REVISION(5)*/ void moved();
- /*Q_REVISION(5)*/ void implicitHandleWidthChanged();
- /*Q_REVISION(5)*/ void implicitHandleHeightChanged();
-
-private:
- Q_DISABLE_COPY(QQuickRangeSliderNode)
- Q_DECLARE_PRIVATE(QQuickRangeSliderNode)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickRangeSlider)
-
-#endif // QQUICKRANGESLIDER_P_H
diff --git a/src/quicktemplates2/qquickroundbutton.cpp b/src/quicktemplates2/qquickroundbutton.cpp
deleted file mode 100644
index d930edbe..00000000
--- a/src/quicktemplates2/qquickroundbutton.cpp
+++ /dev/null
@@ -1,135 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickroundbutton_p.h"
-
-#include <QtQuickTemplates2/private/qquickbutton_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype RoundButton
- \inherits Button
- \instantiates QQuickRoundButton
- \inqmlmodule QtQuick.Controls
- \since 5.8
- \ingroup qtquickcontrols2-buttons
- \brief A push-button control with rounded corners that can be clicked by the user.
-
- \image qtquickcontrols2-roundbutton.png
-
- RoundButton is identical to \l Button, except that it has a \l radius property
- which allows the corners to be rounded without having to customize the
- \l background.
-
- \snippet qtquickcontrols2-roundbutton.qml 1
-
- \sa {Customizing RoundButton}, {Button Controls}
-*/
-
-class QQuickRoundButtonPrivate : public QQuickButtonPrivate
-{
- Q_DECLARE_PUBLIC(QQuickRoundButton)
-
-public:
- void setRadius(qreal newRadius = -1.0);
-
- qreal radius = 0;
- bool explicitRadius = false;
-};
-
-void QQuickRoundButtonPrivate::setRadius(qreal newRadius)
-{
- Q_Q(QQuickRoundButton);
- const qreal oldRadius = radius;
- if (newRadius < 0)
- radius = qMax<qreal>(0, qMin(width, height) / 2);
- else
- radius = newRadius;
-
- if (!qFuzzyCompare(radius, oldRadius))
- emit q->radiusChanged();
-}
-
-QQuickRoundButton::QQuickRoundButton(QQuickItem *parent)
- : QQuickButton(*(new QQuickRoundButtonPrivate), parent)
-{
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::RoundButton::radius
-
- This property holds the radius of the button.
-
- To create a relatively square button that has slightly rounded corners,
- use a small value, such as \c 3.
-
- To create a completely circular button (the default), use a value that is
- equal to half of the width or height of the button, and make the button's
- width and height identical.
-
- To reset this property back to the default value, set its value to
- \c undefined.
-*/
-qreal QQuickRoundButton::radius() const
-{
- Q_D(const QQuickRoundButton);
- return d->radius;
-}
-
-void QQuickRoundButton::setRadius(qreal radius)
-{
- Q_D(QQuickRoundButton);
- d->explicitRadius = true;
- d->setRadius(radius);
-}
-
-void QQuickRoundButton::resetRadius()
-{
- Q_D(QQuickRoundButton);
- d->explicitRadius = false;
- d->setRadius();
-}
-
-void QQuickRoundButton::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickRoundButton);
- QQuickControl::geometryChanged(newGeometry, oldGeometry);
- if (!d->explicitRadius)
- d->setRadius();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickroundbutton_p.h b/src/quicktemplates2/qquickroundbutton_p.h
deleted file mode 100644
index de6f1440..00000000
--- a/src/quicktemplates2/qquickroundbutton_p.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKROUNDBUTTON_P_H
-#define QQUICKROUNDBUTTON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickRoundButtonPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickRoundButton : public QQuickButton
-{
- Q_OBJECT
- Q_PROPERTY(qreal radius READ radius WRITE setRadius RESET resetRadius NOTIFY radiusChanged FINAL)
-
-public:
- explicit QQuickRoundButton(QQuickItem *parent = nullptr);
-
- qreal radius() const;
- void setRadius(qreal radius);
- void resetRadius();
-
-Q_SIGNALS:
- void radiusChanged();
-
-protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
-private:
- Q_DISABLE_COPY(QQuickRoundButton)
- Q_DECLARE_PRIVATE(QQuickRoundButton)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickRoundButton)
-
-#endif // QQUICKROUNDBUTTON_P_H
diff --git a/src/quicktemplates2/qquickscrollbar.cpp b/src/quicktemplates2/qquickscrollbar.cpp
deleted file mode 100644
index 535151d6..00000000
--- a/src/quicktemplates2/qquickscrollbar.cpp
+++ /dev/null
@@ -1,1080 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickscrollbar_p.h"
-#include "qquickscrollbar_p_p.h"
-#include "qquickscrollview_p.h"
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQuick/private/qquickflickable_p.h>
-#if QT_CONFIG(accessibility)
-#include <QtQuick/private/qquickaccessibleattached_p.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ScrollBar
- \inherits Control
- \instantiates QQuickScrollBar
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-indicators
- \brief Vertical or horizontal interactive scroll bar.
-
- \image qtquickcontrols2-scrollbar.gif
-
- ScrollBar is an interactive bar that can be used to scroll to a specific
- position. A scroll bar can be either \l vertical or \l horizontal, and can
- be attached to any \l Flickable, such as \l ListView and \l GridView.
-
- \code
- Flickable {
- // ...
- ScrollBar.vertical: ScrollBar { }
- }
- \endcode
-
- \section1 Attaching ScrollBar to a Flickable
-
- When ScrollBar is attached \l {ScrollBar::vertical}{vertically} or
- \l {ScrollBar::horizontal}{horizontally} to a Flickable, its geometry and
- the following properties are automatically set and updated as appropriate:
-
- \list
- \li \l orientation
- \li \l position
- \li \l size
- \li \l active
- \endlist
-
- An attached ScrollBar re-parents itself to the target Flickable. A vertically
- attached ScrollBar resizes itself to the height of the Flickable, and positions
- itself to either side of it based on the \l {Control::mirrored}{layout direction}.
- A horizontally attached ScrollBar resizes itself to the width of the Flickable,
- and positions itself to the bottom. The automatic geometry management can be disabled
- by specifying another parent for the attached ScrollBar. This can be useful, for
- example, if the ScrollBar should be placed outside a clipping Flickable. This is
- demonstrated by the following example:
-
- \code
- Flickable {
- id: flickable
- clip: true
- // ...
- ScrollBar.vertical: ScrollBar {
- parent: flickable.parent
- anchors.top: flickable.top
- anchors.left: flickable.right
- anchors.bottom: flickable.bottom
- }
- }
- \endcode
-
- Notice that ScrollBar does not filter key events of the Flickable it is
- attached to. The following example illustrates how to implement scrolling
- with up and down keys:
-
- \code
- Flickable {
- focus: true
-
- Keys.onUpPressed: scrollBar.decrease()
- Keys.onDownPressed: scrollBar.increase()
-
- ScrollBar.vertical: ScrollBar { id: scrollBar }
- }
- \endcode
-
- \section1 Binding the Active State of Horizontal and Vertical Scroll Bars
-
- Horizontal and vertical scroll bars do not share the \l active state with
- each other by default. In order to keep both bars visible whilst scrolling
- to either direction, establish a two-way binding between the active states
- as presented by the following example:
-
- \snippet qtquickcontrols2-scrollbar-active.qml 1
-
- \section1 Non-attached Scroll Bars
-
- It is possible to create an instance of ScrollBar without using the
- attached property API. This is useful when the behavior of the attached
- scroll bar is not sufficient or a \l Flickable is not in use. In the
- following example, horizontal and vertical scroll bars are used to
- scroll over the text without using \l Flickable:
-
- \snippet qtquickcontrols2-scrollbar-non-attached.qml 1
-
- \image qtquickcontrols2-scrollbar-non-attached.png
-
- When using a non-attached ScrollBar, the following must be done manually:
-
- \list
- \li Layout the scroll bar (with the \l {Item::}{x} and \l {Item::}{y} or
- \l {Item::anchors}{anchor} properties, for example).
- \li Set the \l size and \l position properties to determine the size and position
- of the scroll bar in relation to the scrolled item.
- \li Set the \l active property to determine when the scroll bar will be
- visible.
- \endlist
-
- \sa ScrollIndicator, {Customizing ScrollBar}, {Indicator Controls}
-*/
-
-static const QQuickItemPrivate::ChangeTypes changeTypes = QQuickItemPrivate::Geometry | QQuickItemPrivate::Destroyed;
-static const QQuickItemPrivate::ChangeTypes horizontalChangeTypes = changeTypes | QQuickItemPrivate::ImplicitHeight;
-static const QQuickItemPrivate::ChangeTypes verticalChangeTypes = changeTypes | QQuickItemPrivate::ImplicitWidth;
-
-QQuickScrollBarPrivate::VisualArea QQuickScrollBarPrivate::visualArea() const
-{
- qreal visualPos = position;
- if (minimumSize > size)
- visualPos = position / (1.0 - size) * (1.0 - minimumSize);
-
- qreal visualSize = qBound<qreal>(0, qMax(size, minimumSize) + qMin<qreal>(0, visualPos), 1.0 - visualPos);
-
- visualPos = qBound<qreal>(0, visualPos, 1.0 - visualSize);
-
- return VisualArea(visualPos, visualSize);
-}
-
-qreal QQuickScrollBarPrivate::logicalPosition(qreal position) const
-{
- if (minimumSize > size)
- return position * (1.0 - size) / (1.0 - minimumSize);
- return position;
-}
-
-qreal QQuickScrollBarPrivate::snapPosition(qreal position) const
-{
- const qreal effectiveStep = stepSize * (1.0 - size);
- if (qFuzzyIsNull(effectiveStep))
- return position;
-
- return qRound(position / effectiveStep) * effectiveStep;
-}
-
-qreal QQuickScrollBarPrivate::positionAt(const QPointF &point) const
-{
- Q_Q(const QQuickScrollBar);
- if (orientation == Qt::Horizontal)
- return logicalPosition(point.x() - q->leftPadding()) / q->availableWidth();
- else
- return logicalPosition(point.y() - q->topPadding()) / q->availableHeight();
-}
-
-void QQuickScrollBarPrivate::setInteractive(bool enabled)
-{
- Q_Q(QQuickScrollBar);
- if (interactive == enabled)
- return;
-
- interactive = enabled;
- if (interactive) {
- q->setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- q->setCursor(Qt::ArrowCursor);
-#endif
- } else {
- q->setAcceptedMouseButtons(Qt::NoButton);
-#if QT_CONFIG(cursor)
- q->unsetCursor();
-#endif
- q->ungrabMouse();
- }
- emit q->interactiveChanged();
-}
-
-void QQuickScrollBarPrivate::updateActive()
-{
- Q_Q(QQuickScrollBar);
-#if QT_CONFIG(quicktemplates2_hover)
- bool hover = hovered;
-#else
- bool hover = false;
-#endif
- q->setActive(moving || (interactive && (pressed || hover)));
-}
-
-void QQuickScrollBarPrivate::resizeContent()
-{
- Q_Q(QQuickScrollBar);
- if (!contentItem)
- return;
-
- // - negative overshoot (pos < 0): clamp the pos to 0, and deduct the overshoot from the size
- // - positive overshoot (pos + size > 1): clamp the size to 1-pos
- const VisualArea visual = visualArea();
-
- if (orientation == Qt::Horizontal) {
- contentItem->setPosition(QPointF(q->leftPadding() + visual.position * q->availableWidth(), q->topPadding()));
- contentItem->setSize(QSizeF(q->availableWidth() * visual.size, q->availableHeight()));
- } else {
- contentItem->setPosition(QPointF(q->leftPadding(), q->topPadding() + visual.position * q->availableHeight()));
- contentItem->setSize(QSizeF(q->availableWidth(), q->availableHeight() * visual.size));
- }
-}
-
-void QQuickScrollBarPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickScrollBar);
- QQuickControlPrivate::handlePress(point);
- offset = positionAt(point) - position;
- qreal sz = qMax(size, logicalPosition(minimumSize));
- if (offset < 0 || offset > sz)
- offset = sz / 2;
- q->setPressed(true);
-}
-
-void QQuickScrollBarPrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickScrollBar);
- QQuickControlPrivate::handleMove(point);
- qreal pos = qBound<qreal>(0.0, positionAt(point) - offset, 1.0 - size);
- if (snapMode == QQuickScrollBar::SnapAlways)
- pos = snapPosition(pos);
- q->setPosition(pos);
-}
-
-void QQuickScrollBarPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickScrollBar);
- QQuickControlPrivate::handleRelease(point);
- qreal pos = qBound<qreal>(0.0, positionAt(point) - offset, 1.0 - size);
- if (snapMode != QQuickScrollBar::NoSnap)
- pos = snapPosition(pos);
- q->setPosition(pos);
- offset = 0.0;
- q->setPressed(false);
-}
-
-void QQuickScrollBarPrivate::handleUngrab()
-{
- Q_Q(QQuickScrollBar);
- QQuickControlPrivate::handleUngrab();
- offset = 0.0;
- q->setPressed(false);
-}
-
-void QQuickScrollBarPrivate::visualAreaChange(const VisualArea &newVisualArea, const VisualArea &oldVisualArea)
-{
- Q_Q(QQuickScrollBar);
- if (!qFuzzyCompare(newVisualArea.size, oldVisualArea.size))
- emit q->visualSizeChanged();
- if (!qFuzzyCompare(newVisualArea.position, oldVisualArea.position))
- emit q->visualPositionChanged();
-}
-
-QQuickScrollBar::QQuickScrollBar(QQuickItem *parent)
- : QQuickControl(*(new QQuickScrollBarPrivate), parent)
-{
- setKeepMouseGrab(true);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-}
-
-QQuickScrollBarAttached *QQuickScrollBar::qmlAttachedProperties(QObject *object)
-{
- return new QQuickScrollBarAttached(object);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ScrollBar::size
-
- This property holds the size of the scroll bar, scaled to \c {0.0 - 1.0}.
-
- \sa {Flickable::visibleArea.heightRatio}{Flickable::visibleArea}
-
- This property is automatically set when the scroll bar is
- \l {Attaching ScrollBar to a Flickable}{attached to a flickable}.
-
- \sa minimumSize, visualSize
-*/
-qreal QQuickScrollBar::size() const
-{
- Q_D(const QQuickScrollBar);
- return d->size;
-}
-
-void QQuickScrollBar::setSize(qreal size)
-{
- Q_D(QQuickScrollBar);
- if (qFuzzyCompare(d->size, size))
- return;
-
- auto oldVisualArea = d->visualArea();
- d->size = size;
- if (isComponentComplete())
- d->resizeContent();
- emit sizeChanged();
- d->visualAreaChange(d->visualArea(), oldVisualArea);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ScrollBar::position
-
- This property holds the position of the scroll bar, scaled to \c {0.0 - 1.0}.
-
- \sa {Flickable::visibleArea.yPosition}{Flickable::visibleArea}
-
- This property is automatically set when the scroll bar is
- \l {Attaching ScrollBar to a Flickable}{attached to a flickable}.
-
- \sa visualPosition
-*/
-qreal QQuickScrollBar::position() const
-{
- Q_D(const QQuickScrollBar);
- return d->position;
-}
-
-void QQuickScrollBar::setPosition(qreal position)
-{
- Q_D(QQuickScrollBar);
- if (qFuzzyCompare(d->position, position))
- return;
-
- auto oldVisualArea = d->visualArea();
- d->position = position;
- if (isComponentComplete())
- d->resizeContent();
- emit positionChanged();
- d->visualAreaChange(d->visualArea(), oldVisualArea);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ScrollBar::stepSize
-
- This property holds the step size. The default value is \c 0.0.
-
- \sa snapMode, increase(), decrease()
-*/
-qreal QQuickScrollBar::stepSize() const
-{
- Q_D(const QQuickScrollBar);
- return d->stepSize;
-}
-
-void QQuickScrollBar::setStepSize(qreal step)
-{
- Q_D(QQuickScrollBar);
- if (qFuzzyCompare(d->stepSize, step))
- return;
-
- d->stepSize = step;
- emit stepSizeChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::ScrollBar::active
-
- This property holds whether the scroll bar is active, i.e. when it's \l pressed
- or the attached Flickable is \l {Flickable::moving}{moving}.
-
- It is possible to keep \l {Binding the Active State of Horizontal and Vertical Scroll Bars}
- {both horizontal and vertical bars visible} while scrolling in either direction.
-
- This property is automatically set when the scroll bar is
- \l {Attaching ScrollBar to a Flickable}{attached to a flickable}.
-*/
-bool QQuickScrollBar::isActive() const
-{
- Q_D(const QQuickScrollBar);
- return d->active;
-}
-
-void QQuickScrollBar::setActive(bool active)
-{
- Q_D(QQuickScrollBar);
- if (d->active == active)
- return;
-
- d->active = active;
- emit activeChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::ScrollBar::pressed
-
- This property holds whether the scroll bar is pressed.
-*/
-bool QQuickScrollBar::isPressed() const
-{
- Q_D(const QQuickScrollBar);
- return d->pressed;
-}
-
-void QQuickScrollBar::setPressed(bool pressed)
-{
- Q_D(QQuickScrollBar);
- if (d->pressed == pressed)
- return;
-
- d->pressed = pressed;
- setAccessibleProperty("pressed", pressed);
- d->updateActive();
- emit pressedChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::ScrollBar::orientation
-
- This property holds the orientation of the scroll bar.
-
- Possible values:
- \value Qt.Horizontal Horizontal
- \value Qt.Vertical Vertical (default)
-
- This property is automatically set when the scroll bar is
- \l {Attaching ScrollBar to a Flickable}{attached to a flickable}.
-
- \sa horizontal, vertical
-*/
-Qt::Orientation QQuickScrollBar::orientation() const
-{
- Q_D(const QQuickScrollBar);
- return d->orientation;
-}
-
-void QQuickScrollBar::setOrientation(Qt::Orientation orientation)
-{
- Q_D(QQuickScrollBar);
- if (d->orientation == orientation)
- return;
-
- d->orientation = orientation;
- if (isComponentComplete())
- d->resizeContent();
- emit orientationChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty enumeration QtQuick.Controls::ScrollBar::snapMode
-
- This property holds the snap mode.
-
- Possible values:
- \value ScrollBar.NoSnap The scrollbar does not snap (default).
- \value ScrollBar.SnapAlways The scrollbar snaps while dragged.
- \value ScrollBar.SnapOnRelease The scrollbar does not snap while being dragged, but only after released.
-
- In the following table, the various modes are illustrated with animations.
- The movement and the \l stepSize (\c 0.25) are identical in each animation.
-
- \table
- \header
- \row \li \b Value \li \b Example
- \row \li \c ScrollBar.NoSnap \li \image qtquickcontrols2-scrollbar-nosnap.gif
- \row \li \c ScrollBar.SnapAlways \li \image qtquickcontrols2-scrollbar-snapalways.gif
- \row \li \c ScrollBar.SnapOnRelease \li \image qtquickcontrols2-scrollbar-snaponrelease.gif
- \endtable
-
- \sa stepSize
-*/
-QQuickScrollBar::SnapMode QQuickScrollBar::snapMode() const
-{
- Q_D(const QQuickScrollBar);
- return d->snapMode;
-}
-
-void QQuickScrollBar::setSnapMode(SnapMode mode)
-{
- Q_D(QQuickScrollBar);
- if (d->snapMode == mode)
- return;
-
- d->snapMode = mode;
- emit snapModeChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::ScrollBar::interactive
-
- This property holds whether the scroll bar is interactive. The default value is \c true.
-
- A non-interactive scroll bar is visually and behaviorally similar to \l ScrollIndicator.
- This property is useful for switching between typical mouse- and touch-orientated UIs
- with interactive and non-interactive scroll bars, respectively.
-*/
-bool QQuickScrollBar::isInteractive() const
-{
- Q_D(const QQuickScrollBar);
- return d->interactive;
-}
-
-void QQuickScrollBar::setInteractive(bool interactive)
-{
- Q_D(QQuickScrollBar);
- d->explicitInteractive = true;
- d->setInteractive(interactive);
-}
-
-void QQuickScrollBar::resetInteractive()
-{
- Q_D(QQuickScrollBar);
- d->explicitInteractive = false;
- d->setInteractive(true);
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty enumeration QtQuick.Controls::ScrollBar::policy
-
- This property holds the policy of the scroll bar. The default policy is \c ScrollBar.AsNeeded.
-
- Possible values:
- \value ScrollBar.AsNeeded The scroll bar is only shown when the content is too large to fit.
- \value ScrollBar.AlwaysOff The scroll bar is never shown.
- \value ScrollBar.AlwaysOn The scroll bar is always shown.
-
- The following example keeps the vertical scroll bar always visible:
-
- \snippet qtquickcontrols2-scrollbar-policy.qml 1
-*/
-QQuickScrollBar::Policy QQuickScrollBar::policy() const
-{
- Q_D(const QQuickScrollBar);
- return d->policy;
-}
-
-void QQuickScrollBar::setPolicy(Policy policy)
-{
- Q_D(QQuickScrollBar);
- if (d->policy == policy)
- return;
-
- d->policy = policy;
- emit policyChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::ScrollBar::horizontal
- \readonly
-
- This property holds whether the scroll bar is horizontal.
-
- \sa orientation
-*/
-bool QQuickScrollBar::isHorizontal() const
-{
- Q_D(const QQuickScrollBar);
- return d->orientation == Qt::Horizontal;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::ScrollBar::vertical
- \readonly
-
- This property holds whether the scroll bar is vertical.
-
- \sa orientation
-*/
-bool QQuickScrollBar::isVertical() const
-{
- Q_D(const QQuickScrollBar);
- return d->orientation == Qt::Vertical;
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty real QtQuick.Controls::ScrollBar::minimumSize
-
- This property holds the minimum size of the scroll bar, scaled to \c {0.0 - 1.0}.
-
- \sa size, visualSize, visualPosition
-*/
-qreal QQuickScrollBar::minimumSize() const
-{
- Q_D(const QQuickScrollBar);
- return d->minimumSize;
-}
-
-void QQuickScrollBar::setMinimumSize(qreal minimumSize)
-{
- Q_D(QQuickScrollBar);
- if (qFuzzyCompare(d->minimumSize, minimumSize))
- return;
-
- auto oldVisualArea = d->visualArea();
- d->minimumSize = minimumSize;
- if (isComponentComplete())
- d->resizeContent();
- emit minimumSizeChanged();
- d->visualAreaChange(d->visualArea(), oldVisualArea);
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty real QtQuick.Controls::ScrollBar::visualSize
-
- This property holds the effective visual size of the scroll bar,
- which may be limited by the \l {minimumSize}{minimum size}.
-
- \sa size, minimumSize
-*/
-qreal QQuickScrollBar::visualSize() const
-{
- Q_D(const QQuickScrollBar);
- return d->visualArea().size;
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty real QtQuick.Controls::ScrollBar::visualPosition
-
- This property holds the effective visual position of the scroll bar,
- which may be limited by the \l {minimumSize}{minimum size}.
-
- \sa position, minimumSize
-*/
-qreal QQuickScrollBar::visualPosition() const
-{
- Q_D(const QQuickScrollBar);
- return d->visualArea().position;
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::ScrollBar::increase()
-
- Increases the position by \l stepSize or \c 0.1 if stepSize is \c 0.0.
-
- \sa stepSize
-*/
-void QQuickScrollBar::increase()
-{
- Q_D(QQuickScrollBar);
- qreal step = qFuzzyIsNull(d->stepSize) ? 0.1 : d->stepSize;
- bool wasActive = d->active;
- setActive(true);
- setPosition(qMin<qreal>(1.0 - d->size, d->position + step));
- setActive(wasActive);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::ScrollBar::decrease()
-
- Decreases the position by \l stepSize or \c 0.1 if stepSize is \c 0.0.
-
- \sa stepSize
-*/
-void QQuickScrollBar::decrease()
-{
- Q_D(QQuickScrollBar);
- qreal step = qFuzzyIsNull(d->stepSize) ? 0.1 : d->stepSize;
- bool wasActive = d->active;
- setActive(true);
- setPosition(qMax<qreal>(0.0, d->position - step));
- setActive(wasActive);
-}
-
-void QQuickScrollBar::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickScrollBar);
- QQuickControl::mousePressEvent(event);
- d->handleMove(event->localPos());
-}
-
-#if QT_CONFIG(quicktemplates2_hover)
-void QQuickScrollBar::hoverChange()
-{
- Q_D(QQuickScrollBar);
- d->updateActive();
-}
-#endif
-
-#if QT_CONFIG(accessibility)
-void QQuickScrollBar::accessibilityActiveChanged(bool active)
-{
- QQuickControl::accessibilityActiveChanged(active);
-
- Q_D(QQuickScrollBar);
- if (active) {
- setAccessibleProperty("pressed", d->pressed);
-
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(this)) {
- connect(accessibleAttached, &QQuickAccessibleAttached::increaseAction, this, &QQuickScrollBar::increase);
- connect(accessibleAttached, &QQuickAccessibleAttached::decreaseAction, this, &QQuickScrollBar::decrease);
- }
- } else {
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(this)) {
- disconnect(accessibleAttached, &QQuickAccessibleAttached::increaseAction, this, &QQuickScrollBar::increase);
- disconnect(accessibleAttached, &QQuickAccessibleAttached::decreaseAction, this, &QQuickScrollBar::decrease);
- }
- }
-}
-
-QAccessible::Role QQuickScrollBar::accessibleRole() const
-{
- return QAccessible::ScrollBar;
-}
-#endif
-
-void QQuickScrollBarAttachedPrivate::setFlickable(QQuickFlickable *item)
-{
- if (flickable) {
- // NOTE: Use removeItemChangeListener(Geometry) instead of updateOrRemoveGeometryChangeListener(Size).
- // The latter doesn't remove the listener but only resets its types. Thus, it leaves behind a dangling
- // pointer on destruction.
- QQuickItemPrivate::get(flickable)->removeItemChangeListener(this, QQuickItemPrivate::Geometry);
- if (horizontal)
- cleanupHorizontal();
- if (vertical)
- cleanupVertical();
- }
-
- flickable = item;
-
- if (item) {
- QQuickItemPrivate::get(item)->updateOrAddGeometryChangeListener(this, QQuickGeometryChange::Size);
- if (horizontal)
- initHorizontal();
- if (vertical)
- initVertical();
- }
-}
-
-void QQuickScrollBarAttachedPrivate::initHorizontal()
-{
- Q_ASSERT(flickable && horizontal);
-
- connect(flickable, &QQuickFlickable::movingHorizontallyChanged, this, &QQuickScrollBarAttachedPrivate::activateHorizontal);
-
- // TODO: export QQuickFlickableVisibleArea
- QObject *area = flickable->property("visibleArea").value<QObject *>();
- QObject::connect(area, SIGNAL(widthRatioChanged(qreal)), horizontal, SLOT(setSize(qreal)));
- QObject::connect(area, SIGNAL(xPositionChanged(qreal)), horizontal, SLOT(setPosition(qreal)));
-
- // ensure that the ScrollBar is stacked above the Flickable in a ScrollView
- QQuickItem *parent = horizontal->parentItem();
- if (parent && parent == flickable->parentItem())
- horizontal->stackAfter(flickable);
-
- layoutHorizontal();
- horizontal->setSize(area->property("widthRatio").toReal());
- horizontal->setPosition(area->property("xPosition").toReal());
-}
-
-void QQuickScrollBarAttachedPrivate::initVertical()
-{
- Q_ASSERT(flickable && vertical);
-
- connect(flickable, &QQuickFlickable::movingVerticallyChanged, this, &QQuickScrollBarAttachedPrivate::activateVertical);
-
- // TODO: export QQuickFlickableVisibleArea
- QObject *area = flickable->property("visibleArea").value<QObject *>();
- QObject::connect(area, SIGNAL(heightRatioChanged(qreal)), vertical, SLOT(setSize(qreal)));
- QObject::connect(area, SIGNAL(yPositionChanged(qreal)), vertical, SLOT(setPosition(qreal)));
-
- // ensure that the ScrollBar is stacked above the Flickable in a ScrollView
- QQuickItem *parent = vertical->parentItem();
- if (parent && parent == flickable->parentItem())
- vertical->stackAfter(flickable);
-
- layoutVertical();
- vertical->setSize(area->property("heightRatio").toReal());
- vertical->setPosition(area->property("yPosition").toReal());
-}
-
-void QQuickScrollBarAttachedPrivate::cleanupHorizontal()
-{
- Q_ASSERT(flickable && horizontal);
-
- disconnect(flickable, &QQuickFlickable::movingHorizontallyChanged, this, &QQuickScrollBarAttachedPrivate::activateHorizontal);
-
- // TODO: export QQuickFlickableVisibleArea
- QObject *area = flickable->property("visibleArea").value<QObject *>();
- QObject::disconnect(area, SIGNAL(widthRatioChanged(qreal)), horizontal, SLOT(setSize(qreal)));
- QObject::disconnect(area, SIGNAL(xPositionChanged(qreal)), horizontal, SLOT(setPosition(qreal)));
-}
-
-void QQuickScrollBarAttachedPrivate::cleanupVertical()
-{
- Q_ASSERT(flickable && vertical);
-
- disconnect(flickable, &QQuickFlickable::movingVerticallyChanged, this, &QQuickScrollBarAttachedPrivate::activateVertical);
-
- // TODO: export QQuickFlickableVisibleArea
- QObject *area = flickable->property("visibleArea").value<QObject *>();
- QObject::disconnect(area, SIGNAL(heightRatioChanged(qreal)), vertical, SLOT(setSize(qreal)));
- QObject::disconnect(area, SIGNAL(yPositionChanged(qreal)), vertical, SLOT(setPosition(qreal)));
-}
-
-void QQuickScrollBarAttachedPrivate::activateHorizontal()
-{
- QQuickScrollBarPrivate *p = QQuickScrollBarPrivate::get(horizontal);
- p->moving = flickable->isMovingHorizontally();
- p->updateActive();
-}
-
-void QQuickScrollBarAttachedPrivate::activateVertical()
-{
- QQuickScrollBarPrivate *p = QQuickScrollBarPrivate::get(vertical);
- p->moving = flickable->isMovingVertically();
- p->updateActive();
-}
-
-// TODO: QQuickFlickable::maxXYExtent()
-class QQuickFriendlyFlickable : public QQuickFlickable
-{
- friend class QQuickScrollBarAttachedPrivate;
-};
-
-void QQuickScrollBarAttachedPrivate::scrollHorizontal()
-{
- QQuickFriendlyFlickable *f = reinterpret_cast<QQuickFriendlyFlickable *>(flickable);
-
- const qreal viewwidth = f->width();
- const qreal maxxextent = -f->maxXExtent() + f->minXExtent();
- const qreal cx = horizontal->position() * (maxxextent + viewwidth) - f->minXExtent();
-
- if (!qIsNaN(cx) && !qFuzzyCompare(cx, flickable->contentX()))
- flickable->setContentX(cx);
-}
-
-void QQuickScrollBarAttachedPrivate::scrollVertical()
-{
- QQuickFriendlyFlickable *f = reinterpret_cast<QQuickFriendlyFlickable *>(flickable);
-
- const qreal viewheight = f->height();
- const qreal maxyextent = -f->maxYExtent() + f->minYExtent();
- const qreal cy = vertical->position() * (maxyextent + viewheight) - f->minYExtent();
-
- if (!qIsNaN(cy) && !qFuzzyCompare(cy, flickable->contentY()))
- flickable->setContentY(cy);
-}
-
-void QQuickScrollBarAttachedPrivate::mirrorVertical()
-{
- layoutVertical(true);
-}
-
-void QQuickScrollBarAttachedPrivate::layoutHorizontal(bool move)
-{
- Q_ASSERT(horizontal && flickable);
- if (horizontal->parentItem() != flickable)
- return;
- horizontal->setWidth(flickable->width());
- if (move)
- horizontal->setY(flickable->height() - horizontal->height());
-}
-
-void QQuickScrollBarAttachedPrivate::layoutVertical(bool move)
-{
- Q_ASSERT(vertical && flickable);
- if (vertical->parentItem() != flickable)
- return;
- vertical->setHeight(flickable->height());
- if (move)
- vertical->setX(vertical->isMirrored() ? 0 : flickable->width() - vertical->width());
-}
-
-void QQuickScrollBarAttachedPrivate::itemGeometryChanged(QQuickItem *item, const QQuickGeometryChange change, const QRectF &diff)
-{
- Q_UNUSED(item);
- Q_UNUSED(change);
- if (horizontal && horizontal->height() > 0) {
-#ifdef QT_QUICK_NEW_GEOMETRY_CHANGED_HANDLING // TODO: correct/rename diff to oldGeometry
- bool move = qFuzzyIsNull(horizontal->y()) || qFuzzyCompare(horizontal->y(), diff.height() - horizontal->height());
-#else
- bool move = qFuzzyIsNull(horizontal->y()) || qFuzzyCompare(horizontal->y(), item->height() - diff.height() - horizontal->height());
-#endif
- if (flickable)
- layoutHorizontal(move);
- }
- if (vertical && vertical->width() > 0) {
-#ifdef QT_QUICK_NEW_GEOMETRY_CHANGED_HANDLING // TODO: correct/rename diff to oldGeometry
- bool move = qFuzzyIsNull(vertical->x()) || qFuzzyCompare(vertical->x(), diff.width() - vertical->width());
-#else
- bool move = qFuzzyIsNull(vertical->x()) || qFuzzyCompare(vertical->x(), item->width() - diff.width() - vertical->width());
-#endif
- if (flickable)
- layoutVertical(move);
- }
-}
-
-void QQuickScrollBarAttachedPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- if (item == vertical && flickable)
- layoutVertical(true);
-}
-
-void QQuickScrollBarAttachedPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- if (item == horizontal && flickable)
- layoutHorizontal(true);
-}
-
-void QQuickScrollBarAttachedPrivate::itemDestroyed(QQuickItem *item)
-{
- if (item == horizontal)
- horizontal = nullptr;
- if (item == vertical)
- vertical = nullptr;
-}
-
-QQuickScrollBarAttached::QQuickScrollBarAttached(QObject *parent)
- : QObject(*(new QQuickScrollBarAttachedPrivate), parent)
-{
- Q_D(QQuickScrollBarAttached);
- d->setFlickable(qobject_cast<QQuickFlickable *>(parent));
-
- if (parent && !d->flickable && !qobject_cast<QQuickScrollView *>(parent))
- qmlWarning(parent) << "ScrollBar must be attached to a Flickable or ScrollView";
-}
-
-QQuickScrollBarAttached::~QQuickScrollBarAttached()
-{
- Q_D(QQuickScrollBarAttached);
- if (d->horizontal) {
- QQuickItemPrivate::get(d->horizontal)->removeItemChangeListener(d, horizontalChangeTypes);
- d->horizontal = nullptr;
- }
- if (d->vertical) {
- QQuickItemPrivate::get(d->vertical)->removeItemChangeListener(d, verticalChangeTypes);
- d->vertical = nullptr;
- }
- d->setFlickable(nullptr);
-}
-
-/*!
- \qmlattachedproperty ScrollBar QtQuick.Controls::ScrollBar::horizontal
-
- This property attaches a horizontal scroll bar to a \l Flickable.
-
- \code
- Flickable {
- contentWidth: 2000
- ScrollBar.horizontal: ScrollBar { }
- }
- \endcode
-
- \sa {Attaching ScrollBar to a Flickable}
-*/
-QQuickScrollBar *QQuickScrollBarAttached::horizontal() const
-{
- Q_D(const QQuickScrollBarAttached);
- return d->horizontal;
-}
-
-void QQuickScrollBarAttached::setHorizontal(QQuickScrollBar *horizontal)
-{
- Q_D(QQuickScrollBarAttached);
- if (d->horizontal == horizontal)
- return;
-
- if (d->horizontal) {
- QQuickItemPrivate::get(d->horizontal)->removeItemChangeListener(d, horizontalChangeTypes);
- QObjectPrivate::disconnect(d->horizontal, &QQuickScrollBar::positionChanged, d, &QQuickScrollBarAttachedPrivate::scrollHorizontal);
-
- if (d->flickable)
- d->cleanupHorizontal();
- }
-
- d->horizontal = horizontal;
-
- if (horizontal) {
- if (!horizontal->parentItem())
- horizontal->setParentItem(qobject_cast<QQuickItem *>(parent()));
- horizontal->setOrientation(Qt::Horizontal);
-
- QQuickItemPrivate::get(horizontal)->addItemChangeListener(d, horizontalChangeTypes);
- QObjectPrivate::connect(horizontal, &QQuickScrollBar::positionChanged, d, &QQuickScrollBarAttachedPrivate::scrollHorizontal);
-
- if (d->flickable)
- d->initHorizontal();
- }
- emit horizontalChanged();
-}
-
-/*!
- \qmlattachedproperty ScrollBar QtQuick.Controls::ScrollBar::vertical
-
- This property attaches a vertical scroll bar to a \l Flickable.
-
- \code
- Flickable {
- contentHeight: 2000
- ScrollBar.vertical: ScrollBar { }
- }
- \endcode
-
- \sa {Attaching ScrollBar to a Flickable}
-*/
-QQuickScrollBar *QQuickScrollBarAttached::vertical() const
-{
- Q_D(const QQuickScrollBarAttached);
- return d->vertical;
-}
-
-void QQuickScrollBarAttached::setVertical(QQuickScrollBar *vertical)
-{
- Q_D(QQuickScrollBarAttached);
- if (d->vertical == vertical)
- return;
-
- if (d->vertical) {
- QQuickItemPrivate::get(d->vertical)->removeItemChangeListener(d, verticalChangeTypes);
- QObjectPrivate::disconnect(d->vertical, &QQuickScrollBar::mirroredChanged, d, &QQuickScrollBarAttachedPrivate::mirrorVertical);
- QObjectPrivate::disconnect(d->vertical, &QQuickScrollBar::positionChanged, d, &QQuickScrollBarAttachedPrivate::scrollVertical);
-
- if (d->flickable)
- d->cleanupVertical();
- }
-
- d->vertical = vertical;
-
- if (vertical) {
- if (!vertical->parentItem())
- vertical->setParentItem(qobject_cast<QQuickItem *>(parent()));
- vertical->setOrientation(Qt::Vertical);
-
- QQuickItemPrivate::get(vertical)->addItemChangeListener(d, verticalChangeTypes);
- QObjectPrivate::connect(vertical, &QQuickScrollBar::mirroredChanged, d, &QQuickScrollBarAttachedPrivate::mirrorVertical);
- QObjectPrivate::connect(vertical, &QQuickScrollBar::positionChanged, d, &QQuickScrollBarAttachedPrivate::scrollVertical);
-
- if (d->flickable)
- d->initVertical();
- }
- emit verticalChanged();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickscrollbar_p.h b/src/quicktemplates2/qquickscrollbar_p.h
deleted file mode 100644
index 5fad8240..00000000
--- a/src/quicktemplates2/qquickscrollbar_p.h
+++ /dev/null
@@ -1,206 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSCROLLBAR_P_H
-#define QQUICKSCROLLBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickScrollBarAttached;
-class QQuickScrollBarPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickScrollBar : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(qreal size READ size WRITE setSize NOTIFY sizeChanged FINAL)
- Q_PROPERTY(qreal position READ position WRITE setPosition NOTIFY positionChanged FINAL)
- Q_PROPERTY(qreal stepSize READ stepSize WRITE setStepSize NOTIFY stepSizeChanged FINAL)
- Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged FINAL)
- Q_PROPERTY(bool pressed READ isPressed WRITE setPressed NOTIFY pressedChanged FINAL)
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(SnapMode snapMode READ snapMode WRITE setSnapMode NOTIFY snapModeChanged FINAL REVISION 2)
- Q_PROPERTY(bool interactive READ isInteractive WRITE setInteractive RESET resetInteractive NOTIFY interactiveChanged FINAL REVISION 2)
- Q_PROPERTY(Policy policy READ policy WRITE setPolicy NOTIFY policyChanged FINAL REVISION 2)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION 3)
- Q_PROPERTY(bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION 3)
- // 2.4 (Qt 5.11)
- Q_PROPERTY(qreal minimumSize READ minimumSize WRITE setMinimumSize NOTIFY minimumSizeChanged FINAL REVISION 4)
- Q_PROPERTY(qreal visualSize READ visualSize NOTIFY visualSizeChanged FINAL REVISION 4)
- Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL REVISION 4)
-
-public:
- explicit QQuickScrollBar(QQuickItem *parent = nullptr);
-
- static QQuickScrollBarAttached *qmlAttachedProperties(QObject *object);
-
- qreal size() const;
- qreal position() const;
-
- qreal stepSize() const;
- void setStepSize(qreal step);
-
- bool isActive() const;
- void setActive(bool active);
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
- Qt::Orientation orientation() const;
- void setOrientation(Qt::Orientation orientation);
-
- // 2.2 (Qt 5.9)
- enum SnapMode {
- NoSnap,
- SnapAlways,
- SnapOnRelease
- };
- Q_ENUM(SnapMode)
-
- SnapMode snapMode() const;
- void setSnapMode(SnapMode mode);
-
- bool isInteractive() const;
- void setInteractive(bool interactive);
- void resetInteractive();
-
- enum Policy {
- AsNeeded = Qt::ScrollBarAsNeeded,
- AlwaysOff = Qt::ScrollBarAlwaysOff,
- AlwaysOn = Qt::ScrollBarAlwaysOn
- };
- Q_ENUM(Policy)
-
- Policy policy() const;
- void setPolicy(Policy policy);
-
- // 2.3 (Qt 5.10)
- bool isHorizontal() const;
- bool isVertical() const;
-
- // 2.4 (Qt 5.11)
- qreal minimumSize() const;
- void setMinimumSize(qreal minimumSize);
-
- qreal visualSize() const;
- qreal visualPosition() const;
-
-public Q_SLOTS:
- void increase();
- void decrease();
- void setSize(qreal size);
- void setPosition(qreal position);
-
-Q_SIGNALS:
- void sizeChanged();
- void positionChanged();
- void stepSizeChanged();
- void activeChanged();
- void pressedChanged();
- void orientationChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void snapModeChanged();
- Q_REVISION(2) void interactiveChanged();
- Q_REVISION(2) void policyChanged();
- // 2.4 (Qt 5.11)
- Q_REVISION(4) void minimumSizeChanged();
- Q_REVISION(4) void visualSizeChanged();
- Q_REVISION(4) void visualPositionChanged();
-
-protected:
- void mousePressEvent(QMouseEvent *event) override;
-
-#if QT_CONFIG(quicktemplates2_hover)
- void hoverChange() override;
-#endif
-
-#if QT_CONFIG(accessibility)
- void accessibilityActiveChanged(bool active) override;
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickScrollBar)
- Q_DECLARE_PRIVATE(QQuickScrollBar)
-};
-
-class QQuickScrollBarAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickScrollBarAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickScrollBar *horizontal READ horizontal WRITE setHorizontal NOTIFY horizontalChanged FINAL)
- Q_PROPERTY(QQuickScrollBar *vertical READ vertical WRITE setVertical NOTIFY verticalChanged FINAL)
-
-public:
- explicit QQuickScrollBarAttached(QObject *parent = nullptr);
- ~QQuickScrollBarAttached();
-
- QQuickScrollBar *horizontal() const;
- void setHorizontal(QQuickScrollBar *horizontal);
-
- QQuickScrollBar *vertical() const;
- void setVertical(QQuickScrollBar *vertical);
-
-Q_SIGNALS:
- void horizontalChanged();
- void verticalChanged();
-
-private:
- Q_DISABLE_COPY(QQuickScrollBarAttached)
- Q_DECLARE_PRIVATE(QQuickScrollBarAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickScrollBar)
-QML_DECLARE_TYPEINFO(QQuickScrollBar, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKSCROLLBAR_P_H
diff --git a/src/quicktemplates2/qquickscrollbar_p_p.h b/src/quicktemplates2/qquickscrollbar_p_p.h
deleted file mode 100644
index 5c7628b9..00000000
--- a/src/quicktemplates2/qquickscrollbar_p_p.h
+++ /dev/null
@@ -1,143 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSCROLLBAR_P_P_H
-#define QQUICKSCROLLBAR_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickscrollbar_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFlickable;
-
-class QQuickScrollBarPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickScrollBar)
-
-public:
- static QQuickScrollBarPrivate *get(QQuickScrollBar *bar)
- {
- return bar->d_func();
- }
-
- struct VisualArea
- {
- VisualArea(qreal pos, qreal sz)
- : position(pos), size(sz) { }
- qreal position = 0;
- qreal size = 0;
- };
- VisualArea visualArea() const;
-
- qreal logicalPosition(qreal position) const;
-
- qreal snapPosition(qreal position) const;
- qreal positionAt(const QPointF &point) const;
- void setInteractive(bool interactive);
- void updateActive();
- void resizeContent() override;
-
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- void visualAreaChange(const VisualArea &newVisualArea, const VisualArea &oldVisualArea);
-
- qreal size = 0;
- qreal position = 0;
- qreal stepSize = 0;
- qreal offset = 0;
- qreal minimumSize = 0;
- bool active = false;
- bool pressed = false;
- bool moving = false;
- bool interactive = true;
- bool explicitInteractive = false;
- Qt::Orientation orientation = Qt::Vertical;
- QQuickScrollBar::SnapMode snapMode = QQuickScrollBar::NoSnap;
- QQuickScrollBar::Policy policy = QQuickScrollBar::AsNeeded;
-};
-
-class QQuickScrollBarAttachedPrivate : public QObjectPrivate, public QQuickItemChangeListener
-{
-public:
- static QQuickScrollBarAttachedPrivate *get(QQuickScrollBarAttached *attached)
- {
- return attached->d_func();
- }
-
- void setFlickable(QQuickFlickable *flickable);
-
- void initHorizontal();
- void initVertical();
- void cleanupHorizontal();
- void cleanupVertical();
- void activateHorizontal();
- void activateVertical();
- void scrollHorizontal();
- void scrollVertical();
- void mirrorVertical();
-
- void layoutHorizontal(bool move = true);
- void layoutVertical(bool move = true);
-
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
- void itemDestroyed(QQuickItem *item) override;
-
- QQuickFlickable *flickable = nullptr;
- QQuickScrollBar *horizontal = nullptr;
- QQuickScrollBar *vertical = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSCROLLBAR_P_P_H
diff --git a/src/quicktemplates2/qquickscrollindicator.cpp b/src/quicktemplates2/qquickscrollindicator.cpp
deleted file mode 100644
index 1e411bce..00000000
--- a/src/quicktemplates2/qquickscrollindicator.cpp
+++ /dev/null
@@ -1,665 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickscrollindicator_p.h"
-#include "qquickcontrol_p_p.h"
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQuick/private/qquickflickable_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ScrollIndicator
- \inherits Control
- \instantiates QQuickScrollIndicator
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-indicators
- \brief Vertical or horizontal non-interactive scroll indicator.
-
- \image qtquickcontrols2-scrollindicator.gif
-
- ScrollIndicator is a non-interactive indicator that indicates the current scroll
- position. A scroll indicator can be either \l vertical or \l horizontal, and can
- be attached to any \l Flickable, such as \l ListView and \l GridView.
-
- \code
- Flickable {
- // ...
- ScrollIndicator.vertical: ScrollIndicator { }
- }
- \endcode
-
- \section1 Attaching ScrollIndicator to a Flickable
-
- \note When ScrollIndicator is attached \l {ScrollIndicator::vertical}{vertically}
- or \l {ScrollIndicator::horizontal}{horizontally} to a Flickable, its geometry and
- the following properties are automatically set and updated as appropriate:
-
- \list
- \li \l orientation
- \li \l position
- \li \l size
- \li \l active
- \endlist
-
- An attached ScrollIndicator re-parents itself to the target Flickable. A vertically
- attached ScrollIndicator resizes itself to the height of the Flickable, and positions
- itself to either side of it based on the \l {Control::mirrored}{layout direction}.
- A horizontally attached ScrollIndicator resizes itself to the width of the Flickable,
- and positions itself to the bottom. The automatic geometry management can be disabled
- by specifying another parent for the attached ScrollIndicator. This can be useful, for
- example, if the ScrollIndicator should be placed outside a clipping Flickable. This is
- demonstrated by the following example:
-
- \code
- Flickable {
- id: flickable
- clip: true
- // ...
- ScrollIndicator.vertical: ScrollIndicator {
- parent: flickable.parent
- anchors.top: flickable.top
- anchors.left: flickable.right
- anchors.bottom: flickable.bottom
- }
- }
- \endcode
-
- \section1 Binding the Active State of Horizontal and Vertical Scroll Indicators
-
- Horizontal and vertical scroll indicators do not share the \l active state with
- each other by default. In order to keep both indicators visible whilst scrolling
- to either direction, establish a two-way binding between the active states as
- presented by the following example:
-
- \snippet qtquickcontrols2-scrollindicator-active.qml 1
-
- \section1 Non-attached Scroll Indicators
-
- It is possible to create an instance of ScrollIndicator without using the
- attached property API. This is useful when the behavior of the attached
- scoll indicator is not sufficient or a \l Flickable is not in use. In the
- following example, horizontal and vertical scroll indicators are used to
- indicate how far the user has scrolled over the text (using \l MouseArea
- instead of \l Flickable):
-
- \snippet qtquickcontrols2-scrollindicator-non-attached.qml 1
-
- \image qtquickcontrols2-scrollindicator-non-attached.png
-
- \sa ScrollBar, {Customizing ScrollIndicator}, {Indicator Controls}
-*/
-
-static const QQuickItemPrivate::ChangeTypes changeTypes = QQuickItemPrivate::Geometry | QQuickItemPrivate::Destroyed;
-static const QQuickItemPrivate::ChangeTypes horizontalChangeTypes = changeTypes | QQuickItemPrivate::ImplicitHeight;
-static const QQuickItemPrivate::ChangeTypes verticalChangeTypes = changeTypes | QQuickItemPrivate::ImplicitWidth;
-
-class QQuickScrollIndicatorPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickScrollIndicator)
-
-public:
- struct VisualArea
- {
- VisualArea(qreal pos, qreal sz)
- : position(pos), size(sz) { }
- qreal position = 0;
- qreal size = 0;
- };
- VisualArea visualArea() const;
- void visualAreaChange(const VisualArea &newVisualArea, const VisualArea &oldVisualArea);
-
- void resizeContent() override;
-
- qreal size = 0;
- qreal minimumSize = 0;
- qreal position = 0;
- bool active = false;
- Qt::Orientation orientation = Qt::Vertical;
-};
-
-QQuickScrollIndicatorPrivate::VisualArea QQuickScrollIndicatorPrivate::visualArea() const
-{
- qreal visualPos = position;
- if (minimumSize > size)
- visualPos = position / (1.0 - size) * (1.0 - minimumSize);
-
- qreal visualSize = qBound<qreal>(0, qMax(size, minimumSize) + qMin<qreal>(0, visualPos), 1.0 - visualPos);
-
- visualPos = qBound<qreal>(0, visualPos, 1.0 - visualSize);
-
- return VisualArea(visualPos, visualSize);
-}
-
-void QQuickScrollIndicatorPrivate::visualAreaChange(const VisualArea &newVisualArea, const VisualArea &oldVisualArea)
-{
- Q_Q(QQuickScrollIndicator);
- if (!qFuzzyCompare(newVisualArea.size, oldVisualArea.size))
- emit q->visualSizeChanged();
- if (!qFuzzyCompare(newVisualArea.position, oldVisualArea.position))
- emit q->visualPositionChanged();
-}
-
-void QQuickScrollIndicatorPrivate::resizeContent()
-{
- Q_Q(QQuickScrollIndicator);
- if (!contentItem)
- return;
-
- // - negative overshoot (pos < 0): clamp the pos to 0, and deduct the overshoot from the size
- // - positive overshoot (pos + size > 1): clamp the size to 1-pos
- const VisualArea visual = visualArea();
-
- if (orientation == Qt::Horizontal) {
- contentItem->setPosition(QPointF(q->leftPadding() + visual.position * q->availableWidth(), q->topPadding()));
- contentItem->setSize(QSizeF(q->availableWidth() * visual.size, q->availableHeight()));
- } else {
- contentItem->setPosition(QPointF(q->leftPadding(), q->topPadding() + visual.position * q->availableHeight()));
- contentItem->setSize(QSizeF(q->availableWidth(), q->availableHeight() * visual.size));
- }
-}
-
-QQuickScrollIndicator::QQuickScrollIndicator(QQuickItem *parent)
- : QQuickControl(*(new QQuickScrollIndicatorPrivate), parent)
-{
-}
-
-QQuickScrollIndicatorAttached *QQuickScrollIndicator::qmlAttachedProperties(QObject *object)
-{
- return new QQuickScrollIndicatorAttached(object);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ScrollIndicator::size
-
- This property holds the size of the indicator, scaled to \c {0.0 - 1.0}.
-
- \sa {Flickable::visibleArea.heightRatio}{Flickable::visibleArea}
-
- This property is automatically set when the scroll indicator is
- \l {Attaching ScrollIndicator to a Flickable}{attached to a flickable}.
-
- \sa minimumSize, visualSize
-*/
-qreal QQuickScrollIndicator::size() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->size;
-}
-
-void QQuickScrollIndicator::setSize(qreal size)
-{
- Q_D(QQuickScrollIndicator);
- if (qFuzzyCompare(d->size, size))
- return;
-
- auto oldVisualArea = d->visualArea();
- d->size = size;
- if (isComponentComplete())
- d->resizeContent();
- emit sizeChanged();
- d->visualAreaChange(d->visualArea(), oldVisualArea);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::ScrollIndicator::position
-
- This property holds the position of the indicator, scaled to \c {0.0 - 1.0}.
-
- This property is automatically set when the scroll indicator is
- \l {Attaching ScrollIndicator to a Flickable}{attached to a flickable}.
-
- \sa {Flickable::visibleArea.yPosition}{Flickable::visibleArea}, visualPosition
-*/
-qreal QQuickScrollIndicator::position() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->position;
-}
-
-void QQuickScrollIndicator::setPosition(qreal position)
-{
- Q_D(QQuickScrollIndicator);
- if (qFuzzyCompare(d->position, position))
- return;
-
- auto oldVisualArea = d->visualArea();
- d->position = position;
- if (isComponentComplete())
- d->resizeContent();
- emit positionChanged();
- d->visualAreaChange(d->visualArea(), oldVisualArea);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::ScrollIndicator::active
-
- This property holds whether the indicator is active, that is, when the
- attached Flickable is \l {Flickable::moving}{moving}.
-
- It is possible to keep \l {Binding the Active State of Horizontal and Vertical Scroll Indicators}
- {both horizontal and vertical indicators visible} while scrolling in either direction.
-
- This property is automatically set when the scroll indicator is
- \l {Attaching ScrollIndicator to a Flickable}{attached to a flickable}.
-*/
-bool QQuickScrollIndicator::isActive() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->active;
-}
-
-void QQuickScrollIndicator::setActive(bool active)
-{
- Q_D(QQuickScrollIndicator);
- if (d->active == active)
- return;
-
- d->active = active;
- emit activeChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::ScrollIndicator::orientation
-
- This property holds the orientation of the indicator.
-
- Possible values:
- \value Qt.Horizontal Horizontal
- \value Qt.Vertical Vertical (default)
-
- This property is automatically set when the scroll indicator is
- \l {Attaching ScrollIndicator to a Flickable}{attached to a flickable}.
-
- \sa horizontal, vertical
-*/
-Qt::Orientation QQuickScrollIndicator::orientation() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->orientation;
-}
-
-void QQuickScrollIndicator::setOrientation(Qt::Orientation orientation)
-{
- Q_D(QQuickScrollIndicator);
- if (d->orientation == orientation)
- return;
-
- d->orientation = orientation;
- if (isComponentComplete())
- d->resizeContent();
- emit orientationChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::ScrollIndicator::horizontal
- \readonly
-
- This property holds whether the scroll indicator is horizontal.
-
- \sa orientation
-*/
-bool QQuickScrollIndicator::isHorizontal() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->orientation == Qt::Horizontal;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::ScrollIndicator::vertical
- \readonly
-
- This property holds whether the scroll indicator is vertical.
-
- \sa orientation
-*/
-bool QQuickScrollIndicator::isVertical() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->orientation == Qt::Vertical;
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty real QtQuick.Controls::ScrollIndicator::minimumSize
-
- This property holds the minimum size of the indicator, scaled to \c {0.0 - 1.0}.
-
- \sa size, visualSize, visualPosition
-*/
-qreal QQuickScrollIndicator::minimumSize() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->minimumSize;
-}
-
-void QQuickScrollIndicator::setMinimumSize(qreal minimumSize)
-{
- Q_D(QQuickScrollIndicator);
- if (qFuzzyCompare(d->minimumSize, minimumSize))
- return;
-
- auto oldVisualArea = d->visualArea();
- d->minimumSize = minimumSize;
- if (isComponentComplete())
- d->resizeContent();
- emit minimumSizeChanged();
- d->visualAreaChange(d->visualArea(), oldVisualArea);
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty real QtQuick.Controls::ScrollIndicator::visualSize
-
- This property holds the effective visual size of the indicator,
- which may be limited by the \l {minimumSize}{minimum size}.
-
- \sa size, minimumSize
-*/
-qreal QQuickScrollIndicator::visualSize() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->visualArea().size;
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty real QtQuick.Controls::ScrollIndicator::visualPosition
-
- This property holds the effective visual position of the indicator,
- which may be limited by the \l {minimumSize}{minimum size}.
-
- \sa position, minimumSize
-*/
-qreal QQuickScrollIndicator::visualPosition() const
-{
- Q_D(const QQuickScrollIndicator);
- return d->visualArea().position;
-}
-
-class QQuickScrollIndicatorAttachedPrivate : public QObjectPrivate, public QQuickItemChangeListener
-{
-public:
- void activateHorizontal();
- void activateVertical();
-
- void layoutHorizontal(bool move = true);
- void layoutVertical(bool move = true);
-
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
- void itemDestroyed(QQuickItem *item) override;
-
- QQuickFlickable *flickable = nullptr;
- QQuickScrollIndicator *horizontal = nullptr;
- QQuickScrollIndicator *vertical = nullptr;
-};
-
-void QQuickScrollIndicatorAttachedPrivate::activateHorizontal()
-{
- horizontal->setActive(flickable->isMovingHorizontally());
-}
-
-void QQuickScrollIndicatorAttachedPrivate::activateVertical()
-{
- vertical->setActive(flickable->isMovingVertically());
-}
-
-void QQuickScrollIndicatorAttachedPrivate::layoutHorizontal(bool move)
-{
- Q_ASSERT(horizontal && flickable);
- if (horizontal->parentItem() != flickable)
- return;
- horizontal->setWidth(flickable->width());
- if (move)
- horizontal->setY(flickable->height() - horizontal->height());
-}
-
-void QQuickScrollIndicatorAttachedPrivate::layoutVertical(bool move)
-{
- Q_ASSERT(vertical && flickable);
- if (vertical->parentItem() != flickable)
- return;
- vertical->setHeight(flickable->height());
- if (move && !QQuickItemPrivate::get(vertical)->isMirrored())
- vertical->setX(flickable->width() - vertical->width());
-}
-
-void QQuickScrollIndicatorAttachedPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff)
-{
- Q_UNUSED(item);
- Q_UNUSED(change);
- if (horizontal && horizontal->height() > 0) {
-#ifdef QT_QUICK_NEW_GEOMETRY_CHANGED_HANDLING // TODO: correct/rename diff to oldGeometry
- bool move = qFuzzyIsNull(horizontal->y()) || qFuzzyCompare(horizontal->y(), diff.height() - horizontal->height());
-#else
- bool move = qFuzzyIsNull(horizontal->y()) || qFuzzyCompare(horizontal->y(), item->height() - diff.height() - horizontal->height());
-#endif
- layoutHorizontal(move);
- }
- if (vertical && vertical->width() > 0) {
-#ifdef QT_QUICK_NEW_GEOMETRY_CHANGED_HANDLING // TODO: correct/rename diff to oldGeometry
- bool move = qFuzzyIsNull(vertical->x()) || qFuzzyCompare(vertical->x(), diff.width() - vertical->width());
-#else
- bool move = qFuzzyIsNull(vertical->x()) || qFuzzyCompare(vertical->x(), item->width() - diff.width() - vertical->width());
-#endif
- layoutVertical(move);
- }
-}
-
-void QQuickScrollIndicatorAttachedPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- if (item == vertical)
- layoutVertical(true);
-}
-
-void QQuickScrollIndicatorAttachedPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- if (item == horizontal)
- layoutHorizontal(true);
-}
-
-void QQuickScrollIndicatorAttachedPrivate::itemDestroyed(QQuickItem *item)
-{
- if (item == horizontal)
- horizontal = nullptr;
- if (item == vertical)
- vertical = nullptr;
-}
-
-QQuickScrollIndicatorAttached::QQuickScrollIndicatorAttached(QObject *parent)
- : QObject(*(new QQuickScrollIndicatorAttachedPrivate), parent)
-{
- Q_D(QQuickScrollIndicatorAttached);
- d->flickable = qobject_cast<QQuickFlickable *>(parent);
- if (d->flickable)
- QQuickItemPrivate::get(d->flickable)->updateOrAddGeometryChangeListener(d, QQuickGeometryChange::Size);
- else if (parent)
- qmlWarning(parent) << "ScrollIndicator must be attached to a Flickable";
-}
-
-QQuickScrollIndicatorAttached::~QQuickScrollIndicatorAttached()
-{
- Q_D(QQuickScrollIndicatorAttached);
- if (d->flickable) {
- if (d->horizontal)
- QQuickItemPrivate::get(d->horizontal)->removeItemChangeListener(d, horizontalChangeTypes);
- if (d->vertical)
- QQuickItemPrivate::get(d->vertical)->removeItemChangeListener(d,verticalChangeTypes);
- // NOTE: Use removeItemChangeListener(Geometry) instead of updateOrRemoveGeometryChangeListener(Size).
- // The latter doesn't remove the listener but only resets its types. Thus, it leaves behind a dangling
- // pointer on destruction.
- QQuickItemPrivate::get(d->flickable)->removeItemChangeListener(d, QQuickItemPrivate::Geometry);
- }
-}
-
-/*!
- \qmlattachedproperty ScrollIndicator QtQuick.Controls::ScrollIndicator::horizontal
-
- This property attaches a horizontal scroll indicator to a \l Flickable.
-
- \code
- Flickable {
- contentWidth: 2000
- ScrollIndicator.horizontal: ScrollIndicator { }
- }
- \endcode
-
- \sa {Attaching ScrollIndicator to a Flickable}
-*/
-QQuickScrollIndicator *QQuickScrollIndicatorAttached::horizontal() const
-{
- Q_D(const QQuickScrollIndicatorAttached);
- return d->horizontal;
-}
-
-void QQuickScrollIndicatorAttached::setHorizontal(QQuickScrollIndicator *horizontal)
-{
- Q_D(QQuickScrollIndicatorAttached);
- if (d->horizontal == horizontal)
- return;
-
- if (d->horizontal && d->flickable) {
- QQuickItemPrivate::get(d->horizontal)->removeItemChangeListener(d, horizontalChangeTypes);
- QObjectPrivate::disconnect(d->flickable, &QQuickFlickable::movingHorizontallyChanged, d, &QQuickScrollIndicatorAttachedPrivate::activateHorizontal);
-
- // TODO: export QQuickFlickableVisibleArea
- QObject *area = d->flickable->property("visibleArea").value<QObject *>();
- disconnect(area, SIGNAL(widthRatioChanged(qreal)), d->horizontal, SLOT(setSize(qreal)));
- disconnect(area, SIGNAL(xPositionChanged(qreal)), d->horizontal, SLOT(setPosition(qreal)));
- }
-
- d->horizontal = horizontal;
-
- if (horizontal && d->flickable) {
- if (!horizontal->parentItem())
- horizontal->setParentItem(d->flickable);
- horizontal->setOrientation(Qt::Horizontal);
-
- QQuickItemPrivate::get(horizontal)->addItemChangeListener(d, horizontalChangeTypes);
- QObjectPrivate::connect(d->flickable, &QQuickFlickable::movingHorizontallyChanged, d, &QQuickScrollIndicatorAttachedPrivate::activateHorizontal);
-
- // TODO: export QQuickFlickableVisibleArea
- QObject *area = d->flickable->property("visibleArea").value<QObject *>();
- connect(area, SIGNAL(widthRatioChanged(qreal)), horizontal, SLOT(setSize(qreal)));
- connect(area, SIGNAL(xPositionChanged(qreal)), horizontal, SLOT(setPosition(qreal)));
-
- d->layoutHorizontal();
- horizontal->setSize(area->property("widthRatio").toReal());
- horizontal->setPosition(area->property("xPosition").toReal());
- }
- emit horizontalChanged();
-}
-
-/*!
- \qmlattachedproperty ScrollIndicator QtQuick.Controls::ScrollIndicator::vertical
-
- This property attaches a vertical scroll indicator to a \l Flickable.
-
- \code
- Flickable {
- contentHeight: 2000
- ScrollIndicator.vertical: ScrollIndicator { }
- }
- \endcode
-
- \sa {Attaching ScrollIndicator to a Flickable}
-*/
-QQuickScrollIndicator *QQuickScrollIndicatorAttached::vertical() const
-{
- Q_D(const QQuickScrollIndicatorAttached);
- return d->vertical;
-}
-
-void QQuickScrollIndicatorAttached::setVertical(QQuickScrollIndicator *vertical)
-{
- Q_D(QQuickScrollIndicatorAttached);
- if (d->vertical == vertical)
- return;
-
- if (d->vertical && d->flickable) {
- QQuickItemPrivate::get(d->vertical)->removeItemChangeListener(d, verticalChangeTypes);
- QObjectPrivate::disconnect(d->flickable, &QQuickFlickable::movingVerticallyChanged, d, &QQuickScrollIndicatorAttachedPrivate::activateVertical);
-
- // TODO: export QQuickFlickableVisibleArea
- QObject *area = d->flickable->property("visibleArea").value<QObject *>();
- disconnect(area, SIGNAL(heightRatioChanged(qreal)), d->vertical, SLOT(setSize(qreal)));
- disconnect(area, SIGNAL(yPositionChanged(qreal)), d->vertical, SLOT(setPosition(qreal)));
- }
-
- d->vertical = vertical;
-
- if (vertical && d->flickable) {
- if (!vertical->parentItem())
- vertical->setParentItem(d->flickable);
- vertical->setOrientation(Qt::Vertical);
-
- QQuickItemPrivate::get(vertical)->addItemChangeListener(d, verticalChangeTypes);
- QObjectPrivate::connect(d->flickable, &QQuickFlickable::movingVerticallyChanged, d, &QQuickScrollIndicatorAttachedPrivate::activateVertical);
-
- // TODO: export QQuickFlickableVisibleArea
- QObject *area = d->flickable->property("visibleArea").value<QObject *>();
- connect(area, SIGNAL(heightRatioChanged(qreal)), vertical, SLOT(setSize(qreal)));
- connect(area, SIGNAL(yPositionChanged(qreal)), vertical, SLOT(setPosition(qreal)));
-
- d->layoutVertical();
- vertical->setSize(area->property("heightRatio").toReal());
- vertical->setPosition(area->property("yPosition").toReal());
- }
- emit verticalChanged();
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickScrollIndicator::touchEvent(QTouchEvent *event)
-{
- event->ignore(); // QTBUG-61785
-}
-#endif
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickScrollIndicator::accessibleRole() const
-{
- return QAccessible::Indicator;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickscrollindicator_p.h b/src/quicktemplates2/qquickscrollindicator_p.h
deleted file mode 100644
index 4fa06a33..00000000
--- a/src/quicktemplates2/qquickscrollindicator_p.h
+++ /dev/null
@@ -1,159 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSCROLLINDICATOR_P_H
-#define QQUICKSCROLLINDICATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFlickable;
-class QQuickScrollIndicatorAttached;
-class QQuickScrollIndicatorPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickScrollIndicator : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(qreal size READ size WRITE setSize NOTIFY sizeChanged FINAL)
- Q_PROPERTY(qreal position READ position WRITE setPosition NOTIFY positionChanged FINAL)
- Q_PROPERTY(bool active READ isActive WRITE setActive NOTIFY activeChanged FINAL)
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION 3)
- Q_PROPERTY(bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION 3)
- // 2.4 (Qt 5.11)
- Q_PROPERTY(qreal minimumSize READ minimumSize WRITE setMinimumSize NOTIFY minimumSizeChanged FINAL REVISION 4)
- Q_PROPERTY(qreal visualSize READ visualSize NOTIFY visualSizeChanged FINAL REVISION 4)
- Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL REVISION 4)
-
-public:
- explicit QQuickScrollIndicator(QQuickItem *parent = nullptr);
-
- static QQuickScrollIndicatorAttached *qmlAttachedProperties(QObject *object);
-
- qreal size() const;
- qreal position() const;
-
- bool isActive() const;
- void setActive(bool active);
-
- Qt::Orientation orientation() const;
- void setOrientation(Qt::Orientation orientation);
-
- // 2.3 (Qt 5.10)
- bool isHorizontal() const;
- bool isVertical() const;
-
- // 2.4 (Qt 5.11)
- qreal minimumSize() const;
- void setMinimumSize(qreal minimumSize);
-
- qreal visualSize() const;
- qreal visualPosition() const;
-
-public Q_SLOTS:
- void setSize(qreal size);
- void setPosition(qreal position);
-
-Q_SIGNALS:
- void sizeChanged();
- void positionChanged();
- void activeChanged();
- void orientationChanged();
- // 2.4 (Qt 5.11)
- Q_REVISION(4) void minimumSizeChanged();
- Q_REVISION(4) void visualSizeChanged();
- Q_REVISION(4) void visualPositionChanged();
-
-protected:
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickScrollIndicator)
- Q_DECLARE_PRIVATE(QQuickScrollIndicator)
-};
-
-class QQuickScrollIndicatorAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickScrollIndicatorAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickScrollIndicator *horizontal READ horizontal WRITE setHorizontal NOTIFY horizontalChanged FINAL)
- Q_PROPERTY(QQuickScrollIndicator *vertical READ vertical WRITE setVertical NOTIFY verticalChanged FINAL)
-
-public:
- explicit QQuickScrollIndicatorAttached(QObject *parent = nullptr);
- ~QQuickScrollIndicatorAttached();
-
- QQuickScrollIndicator *horizontal() const;
- void setHorizontal(QQuickScrollIndicator *horizontal);
-
- QQuickScrollIndicator *vertical() const;
- void setVertical(QQuickScrollIndicator *vertical);
-
-Q_SIGNALS:
- void horizontalChanged();
- void verticalChanged();
-
-private:
- Q_DISABLE_COPY(QQuickScrollIndicatorAttached)
- Q_DECLARE_PRIVATE(QQuickScrollIndicatorAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickScrollIndicator)
-QML_DECLARE_TYPEINFO(QQuickScrollIndicator, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKSCROLLINDICATOR_P_H
diff --git a/src/quicktemplates2/qquickscrollview.cpp b/src/quicktemplates2/qquickscrollview.cpp
deleted file mode 100644
index 70390351..00000000
--- a/src/quicktemplates2/qquickscrollview.cpp
+++ /dev/null
@@ -1,604 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickscrollview_p.h"
-#include "qquickpane_p_p.h"
-#include "qquickscrollbar_p_p.h"
-
-#include <QtQuick/private/qquickflickable_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ScrollView
- \inherits Pane
- \instantiates QQuickScrollView
- \inqmlmodule QtQuick.Controls
- \since 5.9
- \ingroup qtquickcontrols2-containers
- \ingroup qtquickcontrols2-focusscopes
- \brief Scrollable view.
-
- ScrollView provides scrolling for user-defined content. It can be used to
- either replace a \l Flickable, or to decorate an existing one.
-
- \image qtquickcontrols2-scrollview.png
-
- The first example demonstrates the simplest usage of ScrollView.
-
- \snippet qtquickcontrols2-scrollview.qml file
-
- \note ScrollView does not automatically clip its contents. If it is not used as
- a full-screen item, you should consider setting the \l {Item::}{clip} property
- to \c true, as shown above.
-
- The second example illustrates using an existing \l Flickable, that is,
- a \l ListView.
-
- \snippet qtquickcontrols2-scrollview-listview.qml file
-
- \section2 Sizing
-
- As with Flickable, there are several things to keep in mind when using
- ScrollView:
- \list
- \li If only a single item is used within a ScrollView, the content size is
- automatically calculated based on the implicit size of its contained item.
- However, if more than one item is used (or an implicit size is not
- provided), the \l {QtQuick.Controls::Pane::}{contentWidth} and
- \l {QtQuick.Controls::Pane::}{contentHeight} properties must
- be set to the combined size of its contained items.
- \li If the content size is less than or equal to the size of the ScrollView,
- it will not be flickable.
- \endlist
-
- \section2 Scroll Bars
-
- The horizontal and vertical scroll bars can be accessed and customized using
- the \l {ScrollBar::horizontal}{ScrollBar.horizontal} and \l {ScrollBar::vertical}
- {ScrollBar.vertical} attached properties. The following example adjusts the scroll
- bar policies so that the horizontal scroll bar is always off, and the vertical
- scroll bar is always on.
-
- \snippet qtquickcontrols2-scrollview-policy.qml file
-
- \section2 Touch vs. Mouse Interaction
-
- On touch, ScrollView enables flicking and makes the scroll bars non-interactive.
-
- \image qtquickcontrols2-scrollindicator.gif
-
- When interacted with a mouse device, flicking is disabled and the scroll bars
- are interactive.
-
- \image qtquickcontrols2-scrollbar.gif
-
- Scroll bars can be made interactive on touch, or non-interactive when interacted
- with a mouse device, by setting the \l {ScrollBar::}{interactive} property explicitly
- to \c true or \c false, respectively.
-
- \snippet qtquickcontrols2-scrollview-interactive.qml file
-
- \sa ScrollBar, ScrollIndicator, {Customizing ScrollView}, {Container Controls},
- {Focus Management in Qt Quick Controls}
-*/
-
-class QQuickScrollViewPrivate : public QQuickPanePrivate
-{
- Q_DECLARE_PUBLIC(QQuickScrollView)
-
-public:
- QQmlListProperty<QObject> contentData() override;
- QQmlListProperty<QQuickItem> contentChildren() override;
- QList<QQuickItem *> contentChildItems() const override;
-
- QQuickItem *getContentItem() override;
-
- QQuickFlickable *ensureFlickable(bool content);
- bool setFlickable(QQuickFlickable *flickable, bool content);
-
- void flickableContentWidthChanged();
- void flickableContentHeightChanged();
-
- qreal getContentWidth() const override;
- qreal getContentHeight() const override;
-
- QQuickScrollBar *verticalScrollBar() const;
- QQuickScrollBar *horizontalScrollBar() const;
-
- void setScrollBarsInteractive(bool interactive);
-
- static void contentData_append(QQmlListProperty<QObject> *prop, QObject *obj);
- static int contentData_count(QQmlListProperty<QObject> *prop);
- static QObject *contentData_at(QQmlListProperty<QObject> *prop, int index);
- static void contentData_clear(QQmlListProperty<QObject> *prop);
-
- static void contentChildren_append(QQmlListProperty<QQuickItem> *prop, QQuickItem *obj);
- static int contentChildren_count(QQmlListProperty<QQuickItem> *prop);
- static QQuickItem *contentChildren_at(QQmlListProperty<QQuickItem> *prop, int index);
- static void contentChildren_clear(QQmlListProperty<QQuickItem> *prop);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
-
- bool wasTouched = false;
- QQuickFlickable *flickable = nullptr;
- bool flickableHasExplicitContentWidth = true;
- bool flickableHasExplicitContentHeight = true;
-};
-
-QList<QQuickItem *> QQuickScrollViewPrivate::contentChildItems() const
-{
- if (!flickable)
- return QList<QQuickItem *>();
-
- return flickable->contentItem()->childItems();
-}
-
-QQuickItem *QQuickScrollViewPrivate::getContentItem()
-{
- if (!contentItem)
- executeContentItem();
- return ensureFlickable(false);
-}
-
-QQuickFlickable *QQuickScrollViewPrivate::ensureFlickable(bool content)
-{
- Q_Q(QQuickScrollView);
- if (!flickable) {
- flickableHasExplicitContentWidth = false;
- flickableHasExplicitContentHeight = false;
- setFlickable(new QQuickFlickable(q), content);
- }
- return flickable;
-}
-
-bool QQuickScrollViewPrivate::setFlickable(QQuickFlickable *item, bool content)
-{
- Q_Q(QQuickScrollView);
- if (item == flickable)
- return false;
-
- QQuickScrollBarAttached *attached = qobject_cast<QQuickScrollBarAttached *>(qmlAttachedPropertiesObject<QQuickScrollBar>(q, false));
-
- if (flickable) {
- flickable->removeEventFilter(q);
-
- if (attached)
- QQuickScrollBarAttachedPrivate::get(attached)->setFlickable(nullptr);
-
- QObjectPrivate::disconnect(flickable->contentItem(), &QQuickItem::childrenChanged, this, &QQuickPanePrivate::contentChildrenChange);
- QObjectPrivate::disconnect(flickable, &QQuickFlickable::contentWidthChanged, this, &QQuickScrollViewPrivate::flickableContentWidthChanged);
- QObjectPrivate::disconnect(flickable, &QQuickFlickable::contentHeightChanged, this, &QQuickScrollViewPrivate::flickableContentHeightChanged);
- }
-
- flickable = item;
- if (content)
- q->setContentItem(flickable);
-
- if (flickable) {
- flickable->installEventFilter(q);
- if (hasContentWidth)
- flickable->setContentWidth(contentWidth);
- else
- flickableContentWidthChanged();
- if (hasContentHeight)
- flickable->setContentHeight(contentHeight);
- else
- flickableContentHeightChanged();
-
- if (attached)
- QQuickScrollBarAttachedPrivate::get(attached)->setFlickable(flickable);
-
- QObjectPrivate::connect(flickable->contentItem(), &QQuickItem::childrenChanged, this, &QQuickPanePrivate::contentChildrenChange);
- QObjectPrivate::connect(flickable, &QQuickFlickable::contentWidthChanged, this, &QQuickScrollViewPrivate::flickableContentWidthChanged);
- QObjectPrivate::connect(flickable, &QQuickFlickable::contentHeightChanged, this, &QQuickScrollViewPrivate::flickableContentHeightChanged);
- }
-
- return true;
-}
-
-void QQuickScrollViewPrivate::flickableContentWidthChanged()
-{
- Q_Q(QQuickScrollView);
- if (!flickable || !componentComplete)
- return;
-
- const qreal cw = flickable->contentWidth();
- if (qFuzzyCompare(cw, implicitContentWidth))
- return;
-
- flickableHasExplicitContentWidth = true;
- implicitContentWidth = cw;
- emit q->implicitContentWidthChanged();
-}
-
-void QQuickScrollViewPrivate::flickableContentHeightChanged()
-{
- Q_Q(QQuickScrollView);
- if (!flickable || !componentComplete)
- return;
-
- const qreal ch = flickable->contentHeight();
- if (qFuzzyCompare(ch, implicitContentHeight))
- return;
-
- flickableHasExplicitContentHeight = true;
- implicitContentHeight = ch;
- emit q->implicitContentHeightChanged();
-}
-
-qreal QQuickScrollViewPrivate::getContentWidth() const
-{
- if (flickable && flickableHasExplicitContentWidth)
- return flickable->contentWidth();
-
- // The scrollview wraps a flickable created by us, and nobody searched for it and
- // modified its contentWidth. In that case, since the application does not control
- // this flickable, we fall back to calculate the content width based on the child
- // items inside it.
- return QQuickPanePrivate::getContentWidth();
-}
-
-qreal QQuickScrollViewPrivate::getContentHeight() const
-{
- if (flickable && flickableHasExplicitContentHeight)
- return flickable->contentHeight();
-
- // The scrollview wraps a flickable created by us, and nobody searched for it and
- // modified its contentHeight. In that case, since the application does not control
- // this flickable, we fall back to calculate the content height based on the child
- // items inside it.
- return QQuickPanePrivate::getContentHeight();
-}
-
-QQuickScrollBar *QQuickScrollViewPrivate::verticalScrollBar() const
-{
- Q_Q(const QQuickScrollView);
- QQuickScrollBarAttached *attached = qobject_cast<QQuickScrollBarAttached *>(qmlAttachedPropertiesObject<QQuickScrollBar>(q, false));
- if (!attached)
- return nullptr;
- return attached->vertical();
-}
-
-QQuickScrollBar *QQuickScrollViewPrivate::horizontalScrollBar() const
-{
- Q_Q(const QQuickScrollView);
- QQuickScrollBarAttached *attached = qobject_cast<QQuickScrollBarAttached *>(qmlAttachedPropertiesObject<QQuickScrollBar>(q, false));
- if (!attached)
- return nullptr;
- return attached->horizontal();
-}
-
-void QQuickScrollViewPrivate::setScrollBarsInteractive(bool interactive)
-{
- QQuickScrollBar *hbar = horizontalScrollBar();
- if (hbar) {
- QQuickScrollBarPrivate *p = QQuickScrollBarPrivate::get(hbar);
- if (!p->explicitInteractive)
- p->setInteractive(interactive);
- }
-
- QQuickScrollBar *vbar = verticalScrollBar();
- if (vbar) {
- QQuickScrollBarPrivate *p = QQuickScrollBarPrivate::get(vbar);
- if (!p->explicitInteractive)
- p->setInteractive(interactive);
- }
-}
-
-void QQuickScrollViewPrivate::contentData_append(QQmlListProperty<QObject> *prop, QObject *obj)
-{
- QQuickScrollViewPrivate *p = static_cast<QQuickScrollViewPrivate *>(prop->data);
- if (!p->flickable && p->setFlickable(qobject_cast<QQuickFlickable *>(obj), true))
- return;
-
- QQuickFlickable *flickable = p->ensureFlickable(true);
- Q_ASSERT(flickable);
- QQmlListProperty<QObject> data = flickable->flickableData();
- data.append(&data, obj);
-}
-
-int QQuickScrollViewPrivate::contentData_count(QQmlListProperty<QObject> *prop)
-{
- QQuickScrollViewPrivate *p = static_cast<QQuickScrollViewPrivate *>(prop->data);
- if (!p->flickable)
- return 0;
-
- QQmlListProperty<QObject> data = p->flickable->flickableData();
- return data.count(&data);
-}
-
-QObject *QQuickScrollViewPrivate::contentData_at(QQmlListProperty<QObject> *prop, int index)
-{
- QQuickScrollViewPrivate *p = static_cast<QQuickScrollViewPrivate *>(prop->data);
- if (!p->flickable)
- return nullptr;
-
- QQmlListProperty<QObject> data = p->flickable->flickableData();
- return data.at(&data, index);
-}
-
-void QQuickScrollViewPrivate::contentData_clear(QQmlListProperty<QObject> *prop)
-{
- QQuickScrollViewPrivate *p = static_cast<QQuickScrollViewPrivate *>(prop->data);
- if (!p->flickable)
- return;
-
- QQmlListProperty<QObject> data = p->flickable->flickableData();
- return data.clear(&data);
-}
-
-void QQuickScrollViewPrivate::contentChildren_append(QQmlListProperty<QQuickItem> *prop, QQuickItem *item)
-{
- QQuickScrollViewPrivate *p = static_cast<QQuickScrollViewPrivate *>(prop->data);
- if (!p->flickable)
- p->setFlickable(qobject_cast<QQuickFlickable *>(item), true);
-
- QQuickFlickable *flickable = p->ensureFlickable(true);
- Q_ASSERT(flickable);
- QQmlListProperty<QQuickItem> children = flickable->flickableChildren();
- children.append(&children, item);
-}
-
-int QQuickScrollViewPrivate::contentChildren_count(QQmlListProperty<QQuickItem> *prop)
-{
- QQuickScrollViewPrivate *p = static_cast<QQuickScrollViewPrivate *>(prop->data);
- if (!p->flickable)
- return 0;
-
- QQmlListProperty<QQuickItem> children = p->flickable->flickableChildren();
- return children.count(&children);
-}
-
-QQuickItem *QQuickScrollViewPrivate::contentChildren_at(QQmlListProperty<QQuickItem> *prop, int index)
-{
- QQuickScrollViewPrivate *p = static_cast<QQuickScrollViewPrivate *>(prop->data);
- if (!p->flickable)
- return nullptr;
-
- QQmlListProperty<QQuickItem> children = p->flickable->flickableChildren();
- return children.at(&children, index);
-}
-
-void QQuickScrollViewPrivate::contentChildren_clear(QQmlListProperty<QQuickItem> *prop)
-{
- QQuickScrollViewPrivate *p = static_cast<QQuickScrollViewPrivate *>(prop->data);
- if (!p->flickable)
- return;
-
- QQmlListProperty<QQuickItem> children = p->flickable->flickableChildren();
- children.clear(&children);
-}
-
-void QQuickScrollViewPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- // a special case for width<->height dependent content (wrapping text) in ScrollView
- if (contentWidth < 0 && !componentComplete)
- return;
-
- QQuickPanePrivate::itemImplicitWidthChanged(item);
-}
-
-QQuickScrollView::QQuickScrollView(QQuickItem *parent)
- : QQuickPane(*(new QQuickScrollViewPrivate), parent)
-{
- Q_D(QQuickScrollView);
- d->contentWidth = -1;
- d->contentHeight = -1;
-
- setFiltersChildMouseEvents(true);
- setWheelEnabled(true);
-}
-
-/*!
- \qmlproperty list<Object> QtQuick.Controls::ScrollView::contentData
- \default
-
- This property holds the list of content data.
-
- The list contains all objects that have been declared in QML as children of the view.
-
- \note Unlike \c contentChildren, \c contentData does include non-visual QML objects.
-
- \sa Item::data, contentChildren
-*/
-QQmlListProperty<QObject> QQuickScrollViewPrivate::contentData()
-{
- Q_Q(QQuickScrollView);
- return QQmlListProperty<QObject>(q, this,
- QQuickScrollViewPrivate::contentData_append,
- QQuickScrollViewPrivate::contentData_count,
- QQuickScrollViewPrivate::contentData_at,
- QQuickScrollViewPrivate::contentData_clear);
-}
-
-/*!
- \qmlproperty list<Item> QtQuick.Controls::ScrollView::contentChildren
-
- This property holds the list of content children.
-
- The list contains all items that have been declared in QML as children of the view.
-
- \note Unlike \c contentData, \c contentChildren does not include non-visual QML objects.
-
- \sa Item::children, contentData
-*/
-QQmlListProperty<QQuickItem> QQuickScrollViewPrivate::contentChildren()
-{
- Q_Q(QQuickScrollView);
- return QQmlListProperty<QQuickItem>(q, this,
- QQuickScrollViewPrivate::contentChildren_append,
- QQuickScrollViewPrivate::contentChildren_count,
- QQuickScrollViewPrivate::contentChildren_at,
- QQuickScrollViewPrivate::contentChildren_clear);
-}
-
-bool QQuickScrollView::childMouseEventFilter(QQuickItem *item, QEvent *event)
-{
- Q_D(QQuickScrollView);
- switch (event->type()) {
- case QEvent::TouchBegin:
- d->wasTouched = true;
- d->setScrollBarsInteractive(false);
- return false;
-
- case QEvent::TouchEnd:
- d->wasTouched = false;
- return false;
-
- case QEvent::MouseButtonPress:
- // NOTE: Flickable does not handle touch events, only synthesized mouse events
- if (static_cast<QMouseEvent *>(event)->source() == Qt::MouseEventNotSynthesized) {
- d->wasTouched = false;
- d->setScrollBarsInteractive(true);
- return false;
- }
- return !d->wasTouched && item == d->flickable;
-
- case QEvent::MouseMove:
- case QEvent::MouseButtonRelease:
- if (static_cast<QMouseEvent *>(event)->source() == Qt::MouseEventNotSynthesized)
- return item == d->flickable;
- break;
-
- case QEvent::HoverEnter:
- case QEvent::HoverMove:
- if (d->wasTouched && (item == d->verticalScrollBar() || item == d->horizontalScrollBar()))
- d->setScrollBarsInteractive(true);
- break;
-
- default:
- break;
- }
-
- return false;
-}
-
-bool QQuickScrollView::eventFilter(QObject *object, QEvent *event)
-{
- Q_D(QQuickScrollView);
- if (event->type() == QEvent::Wheel) {
- d->setScrollBarsInteractive(true);
- if (!d->wheelEnabled)
- return true;
- }
- return QQuickPane::eventFilter(object, event);
-}
-
-void QQuickScrollView::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickScrollView);
- QQuickPane::keyPressEvent(event);
- switch (event->key()) {
- case Qt::Key_Up:
- if (QQuickScrollBar *vbar = d->verticalScrollBar()) {
- vbar->decrease();
- event->accept();
- }
- break;
- case Qt::Key_Down:
- if (QQuickScrollBar *vbar = d->verticalScrollBar()) {
- vbar->increase();
- event->accept();
- }
- break;
- case Qt::Key_Left:
- if (QQuickScrollBar *hbar = d->horizontalScrollBar()) {
- hbar->decrease();
- event->accept();
- }
- break;
- case Qt::Key_Right:
- if (QQuickScrollBar *hbar = d->horizontalScrollBar()) {
- hbar->increase();
- event->accept();
- }
- break;
- default:
- event->ignore();
- break;
- }
-}
-
-void QQuickScrollView::componentComplete()
-{
- Q_D(QQuickScrollView);
- QQuickPane::componentComplete();
- if (!d->contentItem)
- d->ensureFlickable(true);
-}
-
-void QQuickScrollView::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickScrollView);
- if (newItem != d->flickable) {
- // The new flickable was not created by us. In that case, we always
- // assume/require that it has an explicit content size assigned.
- d->flickableHasExplicitContentWidth = true;
- d->flickableHasExplicitContentHeight = true;
- d->setFlickable(qobject_cast<QQuickFlickable *>(newItem), false);
- }
- QQuickPane::contentItemChange(newItem, oldItem);
-}
-
-void QQuickScrollView::contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize)
-{
- Q_D(QQuickScrollView);
- QQuickPane::contentSizeChange(newSize, oldSize);
- if (d->flickable) {
- // Only set the content size on the flickable if the flickable doesn't
- // have an explicit assignment from before. Otherwise we can end up overwriting
- // assignments done to those properties by the application. The
- // exception is if the application has assigned a content size
- // directly to the scrollview, which will then win even if the
- // application has assigned something else to the flickable.
- if (d->hasContentWidth || !d->flickableHasExplicitContentWidth)
- d->flickable->setContentWidth(newSize.width());
- if (d->hasContentHeight || !d->flickableHasExplicitContentHeight)
- d->flickable->setContentHeight(newSize.height());
- }
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickScrollView::accessibleRole() const
-{
- return QAccessible::Pane;
-}
-#endif
-
-QT_END_NAMESPACE
-
-#include "moc_qquickscrollview_p.cpp"
diff --git a/src/quicktemplates2/qquickscrollview_p.h b/src/quicktemplates2/qquickscrollview_p.h
deleted file mode 100644
index 2b8d260e..00000000
--- a/src/quicktemplates2/qquickscrollview_p.h
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSCROLLVIEW_P_H
-#define QQUICKSCROLLVIEW_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpane_p.h>
-#include <QtQml/qqmllist.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickScrollViewPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickScrollView : public QQuickPane
-{
- Q_OBJECT
-
-public:
- explicit QQuickScrollView(QQuickItem *parent = nullptr);
-
-protected:
- bool childMouseEventFilter(QQuickItem *item, QEvent *event) override;
- bool eventFilter(QObject *object, QEvent *event) override;
- void keyPressEvent(QKeyEvent *event) override;
-
- void componentComplete() override;
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
- void contentSizeChange(const QSizeF &newSize, const QSizeF &oldSize) override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickScrollView)
- Q_DECLARE_PRIVATE(QQuickScrollView)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickScrollView)
-
-#endif // QQUICKSCROLLVIEW_P_H
diff --git a/src/quicktemplates2/qquickshortcutcontext.cpp b/src/quicktemplates2/qquickshortcutcontext.cpp
deleted file mode 100644
index 4e4b46fa..00000000
--- a/src/quicktemplates2/qquickshortcutcontext.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickshortcutcontext_p_p.h"
-#include "qquickoverlay_p_p.h"
-#include "qquicktooltip_p.h"
-#include "qquickpopup_p.h"
-#include "qquickmenu_p.h"
-#include "qquickmenubaritem_p.h"
-
-#include <QtGui/qguiapplication.h>
-#include <QtQuick/qquickrendercontrol.h>
-
-QT_BEGIN_NAMESPACE
-
-static bool isBlockedByPopup(QQuickItem *item)
-{
- if (!item || !item->window())
- return false;
-
- QQuickOverlay *overlay = QQuickOverlay::overlay(item->window());
- const auto popups = QQuickOverlayPrivate::get(overlay)->stackingOrderPopups();
- for (QQuickPopup *popup : popups) {
- if (qobject_cast<QQuickToolTip *>(popup))
- continue; // ignore tooltips (QTBUG-60492)
- if (popup->isModal() || popup->closePolicy() & QQuickPopup::CloseOnEscape) {
- if (QQuickMenu *menu = qobject_cast<QQuickMenu *>(popup)) {
- if (qobject_cast<QQuickMenuBarItem *>(menu->parentItem()))
- continue;
- }
- return item != popup->popupItem() && !popup->popupItem()->isAncestorOf(item);
- }
- }
-
- return false;
-}
-
-bool QQuickShortcutContext::matcher(QObject *obj, Qt::ShortcutContext context)
-{
- QQuickItem *item = nullptr;
- switch (context) {
- case Qt::ApplicationShortcut:
- return true;
- case Qt::WindowShortcut:
- while (obj && !obj->isWindowType()) {
- item = qobject_cast<QQuickItem *>(obj);
- if (item && item->window()) {
- obj = item->window();
- break;
- } else if (QQuickPopup *popup = qobject_cast<QQuickPopup *>(obj)) {
- obj = popup->window();
- item = popup->popupItem();
- break;
- }
- obj = obj->parent();
- }
- if (QWindow *renderWindow = QQuickRenderControl::renderWindowFor(qobject_cast<QQuickWindow *>(obj)))
- obj = renderWindow;
- return obj && obj == QGuiApplication::focusWindow() && !isBlockedByPopup(item);
- default:
- return false;
- }
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickshortcutcontext_p_p.h b/src/quicktemplates2/qquickshortcutcontext_p_p.h
deleted file mode 100644
index 44e63f1e..00000000
--- a/src/quicktemplates2/qquickshortcutcontext_p_p.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSHORTCUTCONTEXT_P_P_H
-#define QQUICKSHORTCUTCONTEXT_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qnamespace.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QObject;
-
-struct Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickShortcutContext
-{
- static bool matcher(QObject *object, Qt::ShortcutContext context);
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSHORTCUTCONTEXT_P_P_H
diff --git a/src/quicktemplates2/qquickslider.cpp b/src/quicktemplates2/qquickslider.cpp
deleted file mode 100644
index 054ea502..00000000
--- a/src/quicktemplates2/qquickslider.cpp
+++ /dev/null
@@ -1,886 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickslider_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtQuick/private/qquickwindow_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Slider
- \inherits Control
- \instantiates QQuickSlider
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-input
- \brief Used to select a value by sliding a handle along a track.
-
- \image qtquickcontrols2-slider.gif
-
- Slider is used to select a value by sliding a handle along a track.
-
- In the example below, custom \l from, \l value, and \l to values are set:
-
- \code
- Slider {
- from: 1
- value: 25
- to: 100
- }
- \endcode
-
- The \l position property is expressed as a fraction of the control's size,
- in the range \c {0.0 - 1.0}. The \l visualPosition property is
- the same, except that it is reversed in a
- \l {Right-to-left User Interfaces}{right-to-left} application. The
- visualPosition is useful for positioning the handle when styling Slider.
- In the example above, \l visualPosition will be \c 0.24 in a left-to-right
- application, and \c 0.76 in a right-to-left application.
-
- For a slider that allows the user to select a range by providing two
- handles, see \l RangeSlider.
-
- \sa {Customizing Slider}, {Input Controls}
-*/
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlsignal QtQuick.Controls::Slider::moved()
-
- This signal is emitted when the slider has been interactively moved
- by the user by either touch, mouse, wheel, or keys.
-*/
-
-class QQuickSliderPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSlider)
-
-public:
- qreal snapPosition(qreal position) const;
- qreal positionAt(const QPointF &point) const;
- void setPosition(qreal position);
- void updatePosition();
-
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- void cancelHandle();
- void executeHandle(bool complete = false);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- qreal from = 0;
- qreal to = 1;
- qreal value = 0;
- qreal position = 0;
- qreal stepSize = 0;
- qreal touchDragThreshold = -1; // in QQuickWindowPrivate::dragOverThreshold, '-1' implies using styleHints::startDragDistance()
- bool live = true;
- bool pressed = false;
- QPointF pressPoint;
- Qt::Orientation orientation = Qt::Horizontal;
- QQuickSlider::SnapMode snapMode = QQuickSlider::NoSnap;
- QQuickDeferredPointer<QQuickItem> handle;
-};
-
-qreal QQuickSliderPrivate::snapPosition(qreal position) const
-{
- const qreal range = to - from;
- if (qFuzzyIsNull(range))
- return position;
-
- const qreal effectiveStep = stepSize / range;
- if (qFuzzyIsNull(effectiveStep))
- return position;
-
- return qRound(position / effectiveStep) * effectiveStep;
-}
-
-qreal QQuickSliderPrivate::positionAt(const QPointF &point) const
-{
- Q_Q(const QQuickSlider);
- qreal pos = 0.0;
- if (orientation == Qt::Horizontal) {
- const qreal hw = handle ? handle->width() : 0;
- const qreal offset = hw / 2;
- const qreal extent = q->availableWidth() - hw;
- if (!qFuzzyIsNull(extent)) {
- if (q->isMirrored())
- pos = (q->width() - point.x() - q->rightPadding() - offset) / extent;
- else
- pos = (point.x() - q->leftPadding() - offset) / extent;
- }
- } else {
- const qreal hh = handle ? handle->height() : 0;
- const qreal offset = hh / 2;
- const qreal extent = q->availableHeight() - hh;
- if (!qFuzzyIsNull(extent))
- pos = (q->height() - point.y() - q->bottomPadding() - offset) / extent;
- }
- return qBound<qreal>(0.0, pos, 1.0);
-}
-
-void QQuickSliderPrivate::setPosition(qreal pos)
-{
- Q_Q(QQuickSlider);
- pos = qBound<qreal>(0.0, pos, 1.0);
- if (qFuzzyCompare(position, pos))
- return;
-
- position = pos;
- emit q->positionChanged();
- emit q->visualPositionChanged();
-}
-
-void QQuickSliderPrivate::updatePosition()
-{
- qreal pos = 0;
- if (!qFuzzyCompare(from, to))
- pos = (value - from) / (to - from);
- setPosition(pos);
-}
-
-void QQuickSliderPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickSlider);
- QQuickControlPrivate::handlePress(point);
- pressPoint = point;
- q->setPressed(true);
-}
-
-void QQuickSliderPrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickSlider);
- QQuickControlPrivate::handleMove(point);
- const qreal oldPos = position;
- qreal pos = positionAt(point);
- if (snapMode == QQuickSlider::SnapAlways)
- pos = snapPosition(pos);
- if (live)
- q->setValue(q->valueAt(pos));
- else
- setPosition(pos);
- if (!qFuzzyCompare(pos, oldPos))
- emit q->moved();
-}
-
-void QQuickSliderPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickSlider);
- QQuickControlPrivate::handleRelease(point);
- pressPoint = QPointF();
- const qreal oldPos = position;
- qreal pos = positionAt(point);
- if (snapMode != QQuickSlider::NoSnap)
- pos = snapPosition(pos);
- qreal val = q->valueAt(pos);
- if (!qFuzzyCompare(val, value))
- q->setValue(val);
- else if (snapMode != QQuickSlider::NoSnap)
- setPosition(pos);
- if (!qFuzzyCompare(pos, oldPos))
- emit q->moved();
- q->setKeepMouseGrab(false);
- q->setKeepTouchGrab(false);
- q->setPressed(false);
-}
-
-void QQuickSliderPrivate::handleUngrab()
-{
- Q_Q(QQuickSlider);
- QQuickControlPrivate::handleUngrab();
- pressPoint = QPointF();
- q->setPressed(false);
-}
-
-static inline QString handleName() { return QStringLiteral("handle"); }
-
-void QQuickSliderPrivate::cancelHandle()
-{
- Q_Q(QQuickSlider);
- quickCancelDeferred(q, handleName());
-}
-
-void QQuickSliderPrivate::executeHandle(bool complete)
-{
- Q_Q(QQuickSlider);
- if (handle.wasExecuted())
- return;
-
- if (!handle || complete)
- quickBeginDeferred(q, handleName(), handle);
- if (complete)
- quickCompleteDeferred(q, handleName(), handle);
-}
-
-void QQuickSliderPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickSlider);
- QQuickControlPrivate::itemImplicitWidthChanged(item);
- if (item == handle)
- emit q->implicitHandleWidthChanged();
-}
-
-void QQuickSliderPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickSlider);
- QQuickControlPrivate::itemImplicitHeightChanged(item);
- if (item == handle)
- emit q->implicitHandleHeightChanged();
-}
-
-QQuickSlider::QQuickSlider(QQuickItem *parent)
- : QQuickControl(*(new QQuickSliderPrivate), parent)
-{
- setActiveFocusOnTab(true);
- setFocusPolicy(Qt::StrongFocus);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-}
-
-QQuickSlider::~QQuickSlider()
-{
- Q_D(QQuickSlider);
- d->removeImplicitSizeListener(d->handle);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Slider::from
-
- This property holds the starting value for the range. The default value is \c 0.0.
-
- \sa to, value
-*/
-qreal QQuickSlider::from() const
-{
- Q_D(const QQuickSlider);
- return d->from;
-}
-
-void QQuickSlider::setFrom(qreal from)
-{
- Q_D(QQuickSlider);
- if (qFuzzyCompare(d->from, from))
- return;
-
- d->from = from;
- emit fromChanged();
- if (isComponentComplete()) {
- setValue(d->value);
- d->updatePosition();
- }
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Slider::to
-
- This property holds the end value for the range. The default value is \c 1.0.
-
- \sa from, value
-*/
-qreal QQuickSlider::to() const
-{
- Q_D(const QQuickSlider);
- return d->to;
-}
-
-void QQuickSlider::setTo(qreal to)
-{
- Q_D(QQuickSlider);
- if (qFuzzyCompare(d->to, to))
- return;
-
- d->to = to;
- emit toChanged();
- if (isComponentComplete()) {
- setValue(d->value);
- d->updatePosition();
- }
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Slider::value
-
- This property holds the value in the range \c from - \c to. The default value is \c 0.0.
-
- \sa position
-*/
-qreal QQuickSlider::value() const
-{
- Q_D(const QQuickSlider);
- return d->value;
-}
-
-void QQuickSlider::setValue(qreal value)
-{
- Q_D(QQuickSlider);
- if (isComponentComplete())
- value = d->from > d->to ? qBound(d->to, value, d->from) : qBound(d->from, value, d->to);
-
- if (qFuzzyCompare(d->value, value))
- return;
-
- d->value = value;
- d->updatePosition();
- emit valueChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Slider::position
- \readonly
-
- This property holds the logical position of the handle.
-
- The position is expressed as a fraction of the control's size, in the range
- \c {0.0 - 1.0}. For visualizing a slider, the right-to-left aware
- \l visualPosition should be used instead.
-
- \sa value, visualPosition, valueAt()
-*/
-qreal QQuickSlider::position() const
-{
- Q_D(const QQuickSlider);
- return d->position;
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Slider::visualPosition
- \readonly
-
- This property holds the visual position of the handle.
-
- The position is expressed as a fraction of the control's size, in the range
- \c {0.0 - 1.0}. When the control is \l {Control::mirrored}{mirrored}, the
- value is equal to \c {1.0 - position}. This makes the value suitable for
- visualizing the slider, taking right-to-left support into account.
-
- \sa position
-*/
-qreal QQuickSlider::visualPosition() const
-{
- Q_D(const QQuickSlider);
- if (d->orientation == Qt::Vertical || isMirrored())
- return 1.0 - d->position;
- return d->position;
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Slider::stepSize
-
- This property holds the step size. The default value is \c 0.0.
-
- \sa snapMode, increase(), decrease()
-*/
-qreal QQuickSlider::stepSize() const
-{
- Q_D(const QQuickSlider);
- return d->stepSize;
-}
-
-void QQuickSlider::setStepSize(qreal step)
-{
- Q_D(QQuickSlider);
- if (qFuzzyCompare(d->stepSize, step))
- return;
-
- d->stepSize = step;
- emit stepSizeChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Slider::snapMode
-
- This property holds the snap mode.
-
- The snap mode determines how the slider handle behaves with
- regards to the \l stepSize.
-
- Possible values:
- \value Slider.NoSnap The slider does not snap (default).
- \value Slider.SnapAlways The slider snaps while the handle is dragged.
- \value Slider.SnapOnRelease The slider does not snap while being dragged, but only after the handle is released.
-
- In the following table, the various modes are illustrated with animations.
- The movement of the mouse cursor and the \l stepSize (\c 0.2) are identical
- in each animation.
-
- \table
- \header
- \row \li \b Value \li \b Example
- \row \li \c Slider.NoSnap \li \image qtquickcontrols2-slider-nosnap.gif
- \row \li \c Slider.SnapAlways \li \image qtquickcontrols2-slider-snapalways.gif
- \row \li \c Slider.SnapOnRelease \li \image qtquickcontrols2-slider-snaponrelease.gif
- \endtable
-
- \sa stepSize
-*/
-QQuickSlider::SnapMode QQuickSlider::snapMode() const
-{
- Q_D(const QQuickSlider);
- return d->snapMode;
-}
-
-void QQuickSlider::setSnapMode(SnapMode mode)
-{
- Q_D(QQuickSlider);
- if (d->snapMode == mode)
- return;
-
- d->snapMode = mode;
- emit snapModeChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Slider::pressed
-
- This property holds whether the slider is pressed by either touch, mouse,
- or keys.
-*/
-bool QQuickSlider::isPressed() const
-{
- Q_D(const QQuickSlider);
- return d->pressed;
-}
-
-void QQuickSlider::setPressed(bool pressed)
-{
- Q_D(QQuickSlider);
- if (d->pressed == pressed)
- return;
-
- d->pressed = pressed;
- setAccessibleProperty("pressed", pressed);
- emit pressedChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::Slider::horizontal
- \readonly
-
- This property holds whether the slider is horizontal.
-
- \sa orientation
-*/
-bool QQuickSlider::isHorizontal() const
-{
- Q_D(const QQuickSlider);
- return d->orientation == Qt::Horizontal;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::Slider::vertical
- \readonly
-
- This property holds whether the slider is vertical.
-
- \sa orientation
-*/
-bool QQuickSlider::isVertical() const
-{
- Q_D(const QQuickSlider);
- return d->orientation == Qt::Vertical;
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::Slider::orientation
-
- This property holds the orientation.
-
- Possible values:
- \value Qt.Horizontal Horizontal (default)
- \value Qt.Vertical Vertical
-
- \sa horizontal, vertical
-*/
-Qt::Orientation QQuickSlider::orientation() const
-{
- Q_D(const QQuickSlider);
- return d->orientation;
-}
-
-void QQuickSlider::setOrientation(Qt::Orientation orientation)
-{
- Q_D(QQuickSlider);
- if (d->orientation == orientation)
- return;
-
- d->orientation = orientation;
- emit orientationChanged();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Slider::handle
-
- This property holds the handle item.
-
- \sa {Customizing Slider}
-*/
-QQuickItem *QQuickSlider::handle() const
-{
- QQuickSliderPrivate *d = const_cast<QQuickSliderPrivate *>(d_func());
- if (!d->handle)
- d->executeHandle();
- return d->handle;
-}
-
-void QQuickSlider::setHandle(QQuickItem *handle)
-{
- Q_D(QQuickSlider);
- if (d->handle == handle)
- return;
-
- if (!d->handle.isExecuting())
- d->cancelHandle();
-
- const qreal oldImplicitHandleWidth = implicitHandleWidth();
- const qreal oldImplicitHandleHeight = implicitHandleHeight();
-
- d->removeImplicitSizeListener(d->handle);
- delete d->handle;
- d->handle = handle;
-
- if (handle) {
- if (!handle->parentItem())
- handle->setParentItem(this);
- d->addImplicitSizeListener(handle);
- }
-
- if (!qFuzzyCompare(oldImplicitHandleWidth, implicitHandleWidth()))
- emit implicitHandleWidthChanged();
- if (!qFuzzyCompare(oldImplicitHandleHeight, implicitHandleHeight()))
- emit implicitHandleHeightChanged();
- if (!d->handle.isExecuting())
- emit handleChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlmethod real QtQuick.Controls::Slider::valueAt(real position)
-
- Returns the value for the given \a position.
-
- \sa value, position
-*/
-qreal QQuickSlider::valueAt(qreal position) const
-{
- Q_D(const QQuickSlider);
- const qreal value = (d->to - d->from) * position;
- if (qFuzzyIsNull(d->stepSize))
- return d->from + value;
- return d->from + qRound(value / d->stepSize) * d->stepSize;
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::Slider::live
-
- This property holds whether the slider provides live updates for the \l value
- property while the handle is dragged.
-
- The default value is \c true.
-
- \sa value, valueAt()
-*/
-bool QQuickSlider::live() const
-{
- Q_D(const QQuickSlider);
- return d->live;
-}
-
-void QQuickSlider::setLive(bool live)
-{
- Q_D(QQuickSlider);
- if (d->live == live)
- return;
-
- d->live = live;
- emit liveChanged();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Slider::increase()
-
- Increases the value by \l stepSize or \c 0.1 if stepSize is not defined.
-
- \sa stepSize
-*/
-void QQuickSlider::increase()
-{
- Q_D(QQuickSlider);
- qreal step = qFuzzyIsNull(d->stepSize) ? 0.1 : d->stepSize;
- setValue(d->value + step);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Slider::decrease()
-
- Decreases the value by \l stepSize or \c 0.1 if stepSize is not defined.
-
- \sa stepSize
-*/
-void QQuickSlider::decrease()
-{
- Q_D(QQuickSlider);
- qreal step = qFuzzyIsNull(d->stepSize) ? 0.1 : d->stepSize;
- setValue(d->value - step);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty qreal QtQuick.Controls::Slider::touchDragThreshold
-
- This property holds the threshold (in logical pixels) at which a touch drag event will be initiated.
- The mouse drag threshold won't be affected.
- The default value is \c Qt.styleHints.startDragDistance.
-
- \sa QStyleHints
-*/
-qreal QQuickSlider::touchDragThreshold() const
-{
- Q_D(const QQuickSlider);
- return d->touchDragThreshold;
-}
-
-void QQuickSlider::setTouchDragThreshold(qreal touchDragThreshold)
-{
- Q_D(QQuickSlider);
- if (d->touchDragThreshold == touchDragThreshold)
- return;
-
- d->touchDragThreshold = touchDragThreshold;
- emit touchDragThresholdChanged();
-}
-
-void QQuickSlider::resetTouchDragThreshold()
-{
- setTouchDragThreshold(-1);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Slider::implicitHandleWidth
- \readonly
-
- This property holds the implicit handle width.
-
- The value is equal to \c {handle ? handle.implicitWidth : 0}.
-
- This is typically used, together with \l {Control::}{implicitContentWidth} and
- \l {Control::}{implicitBackgroundWidth}, to calculate the \l {Item::}{implicitWidth}.
-
- \sa implicitHandleHeight
-*/
-qreal QQuickSlider::implicitHandleWidth() const
-{
- Q_D(const QQuickSlider);
- if (!d->handle)
- return 0;
- return d->handle->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::Slider::implicitHandleHeight
- \readonly
-
- This property holds the implicit handle height.
-
- The value is equal to \c {handle ? handle.implicitHeight : 0}.
-
- This is typically used, together with \l {Control::}{implicitContentHeight} and
- \l {Control::}{implicitBackgroundHeight}, to calculate the \l {Item::}{implicitHeight}.
-
- \sa implicitHandleWidth
-*/
-qreal QQuickSlider::implicitHandleHeight() const
-{
- Q_D(const QQuickSlider);
- if (!d->handle)
- return 0;
- return d->handle->implicitHeight();
-}
-
-void QQuickSlider::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickSlider);
- QQuickControl::keyPressEvent(event);
-
- const qreal oldValue = d->value;
- if (d->orientation == Qt::Horizontal) {
- if (event->key() == Qt::Key_Left) {
- setPressed(true);
- if (isMirrored())
- increase();
- else
- decrease();
- event->accept();
- } else if (event->key() == Qt::Key_Right) {
- setPressed(true);
- if (isMirrored())
- decrease();
- else
- increase();
- event->accept();
- }
- } else {
- if (event->key() == Qt::Key_Up) {
- setPressed(true);
- increase();
- event->accept();
- } else if (event->key() == Qt::Key_Down) {
- setPressed(true);
- decrease();
- event->accept();
- }
- }
- if (!qFuzzyCompare(d->value, oldValue))
- emit moved();
-}
-
-void QQuickSlider::keyReleaseEvent(QKeyEvent *event)
-{
- QQuickControl::keyReleaseEvent(event);
- setPressed(false);
-}
-
-void QQuickSlider::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickSlider);
- QQuickControl::mousePressEvent(event);
- d->handleMove(event->localPos());
- setKeepMouseGrab(true);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickSlider::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickSlider);
- switch (event->type()) {
- case QEvent::TouchUpdate:
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- if (!d->acceptTouch(point))
- continue;
-
- switch (point.state()) {
- case Qt::TouchPointPressed:
- d->handlePress(point.pos());
- break;
- case Qt::TouchPointMoved:
- if (!keepTouchGrab()) {
- if (d->orientation == Qt::Horizontal)
- setKeepTouchGrab(QQuickWindowPrivate::dragOverThreshold(point.pos().x() - d->pressPoint.x(), Qt::XAxis, &point, qRound(d->touchDragThreshold)));
- else
- setKeepTouchGrab(QQuickWindowPrivate::dragOverThreshold(point.pos().y() - d->pressPoint.y(), Qt::YAxis, &point, qRound(d->touchDragThreshold)));
- }
- if (keepTouchGrab())
- d->handleMove(point.pos());
- break;
- case Qt::TouchPointReleased:
- d->handleRelease(point.pos());
- break;
- default:
- break;
- }
- }
- break;
-
- default:
- QQuickControl::touchEvent(event);
- break;
- }
-}
-#endif
-
-#if QT_CONFIG(wheelevent)
-void QQuickSlider::wheelEvent(QWheelEvent *event)
-{
- Q_D(QQuickSlider);
- QQuickControl::wheelEvent(event);
- if (d->wheelEnabled) {
- const qreal oldValue = d->value;
- const QPointF angle = event->angleDelta();
- const qreal delta = (qFuzzyIsNull(angle.y()) ? angle.x() : (event->inverted() ? -angle.y() : angle.y())) / QWheelEvent::DefaultDeltasPerStep;
- const qreal step = qFuzzyIsNull(d->stepSize) ? 0.1 : d->stepSize;
- setValue(oldValue + step * delta);
- const bool wasMoved = !qFuzzyCompare(d->value, oldValue);
- if (wasMoved)
- emit moved();
- }
-}
-#endif
-
-void QQuickSlider::mirrorChange()
-{
- QQuickControl::mirrorChange();
- emit visualPositionChanged();
-}
-
-void QQuickSlider::componentComplete()
-{
- Q_D(QQuickSlider);
- d->executeHandle(true);
- QQuickControl::componentComplete();
- setValue(d->value);
- d->updatePosition();
-}
-
-#if QT_CONFIG(accessibility)
-void QQuickSlider::accessibilityActiveChanged(bool active)
-{
- QQuickControl::accessibilityActiveChanged(active);
-
- Q_D(QQuickSlider);
- if (active)
- setAccessibleProperty("pressed", d->pressed);
-}
-
-QAccessible::Role QQuickSlider::accessibleRole() const
-{
- return QAccessible::Slider;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickslider_p.h b/src/quicktemplates2/qquickslider_p.h
deleted file mode 100644
index c65733dc..00000000
--- a/src/quicktemplates2/qquickslider_p.h
+++ /dev/null
@@ -1,188 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSLIDER_P_H
-#define QQUICKSLIDER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickSliderPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSlider : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged FINAL)
- Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged FINAL)
- Q_PROPERTY(qreal value READ value WRITE setValue NOTIFY valueChanged FINAL)
- Q_PROPERTY(qreal position READ position NOTIFY positionChanged FINAL)
- Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL)
- Q_PROPERTY(qreal stepSize READ stepSize WRITE setStepSize NOTIFY stepSizeChanged FINAL)
- Q_PROPERTY(SnapMode snapMode READ snapMode WRITE setSnapMode NOTIFY snapModeChanged FINAL)
- Q_PROPERTY(bool pressed READ isPressed WRITE setPressed NOTIFY pressedChanged FINAL)
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL)
- Q_PROPERTY(QQuickItem *handle READ handle WRITE setHandle NOTIFY handleChanged FINAL)
- Q_PROPERTY(bool live READ live WRITE setLive NOTIFY liveChanged FINAL REVISION 2)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION 3)
- Q_PROPERTY(bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION 3)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal touchDragThreshold READ touchDragThreshold WRITE setTouchDragThreshold RESET resetTouchDragThreshold NOTIFY touchDragThresholdChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitHandleWidth READ implicitHandleWidth NOTIFY implicitHandleWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitHandleHeight READ implicitHandleHeight NOTIFY implicitHandleHeightChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background,handle")
-
-public:
- explicit QQuickSlider(QQuickItem *parent = nullptr);
- ~QQuickSlider();
-
- qreal from() const;
- void setFrom(qreal from);
-
- qreal to() const;
- void setTo(qreal to);
-
- qreal value() const;
- void setValue(qreal value);
-
- qreal position() const;
- qreal visualPosition() const;
-
- qreal stepSize() const;
- void setStepSize(qreal step);
-
- enum SnapMode {
- NoSnap,
- SnapAlways,
- SnapOnRelease
- };
- Q_ENUM(SnapMode)
-
- SnapMode snapMode() const;
- void setSnapMode(SnapMode mode);
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
- Qt::Orientation orientation() const;
- void setOrientation(Qt::Orientation orientation);
-
- QQuickItem *handle() const;
- void setHandle(QQuickItem *handle);
-
- // 2.1 (Qt 5.8)
- Q_REVISION(1) Q_INVOKABLE qreal valueAt(qreal position) const;
-
- // 2.2 (Qt 5.9)
- bool live() const;
- void setLive(bool live);
-
- // 2.3 (Qt 5.10)
- bool isHorizontal() const;
- bool isVertical() const;
-
- // 2.5 (Qt 5.12)
- qreal touchDragThreshold() const;
- void setTouchDragThreshold(qreal touchDragThreshold);
- void resetTouchDragThreshold();
-
- qreal implicitHandleWidth() const;
- qreal implicitHandleHeight() const;
-
-public Q_SLOTS:
- void increase();
- void decrease();
-
-Q_SIGNALS:
- void fromChanged();
- void toChanged();
- void valueChanged();
- void positionChanged();
- void visualPositionChanged();
- void stepSizeChanged();
- void snapModeChanged();
- void pressedChanged();
- void orientationChanged();
- void handleChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void moved();
- Q_REVISION(2) void liveChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void touchDragThresholdChanged();
- Q_REVISION(5) void implicitHandleWidthChanged();
- Q_REVISION(5) void implicitHandleHeightChanged();
-
-protected:
- void keyPressEvent(QKeyEvent *event) override;
- void keyReleaseEvent(QKeyEvent *event) override;
- void mousePressEvent(QMouseEvent *event) override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-#if QT_CONFIG(wheelevent)
- void wheelEvent(QWheelEvent *event) override;
-#endif
-
- void mirrorChange() override;
- void componentComplete() override;
-
-#if QT_CONFIG(accessibility)
- void accessibilityActiveChanged(bool active) override;
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickSlider)
- Q_DECLARE_PRIVATE(QQuickSlider)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickSlider)
-
-#endif // QQUICKSLIDER_P_H
diff --git a/src/quicktemplates2/qquickspinbox.cpp b/src/quicktemplates2/qquickspinbox.cpp
deleted file mode 100644
index 389e5c54..00000000
--- a/src/quicktemplates2/qquickspinbox.cpp
+++ /dev/null
@@ -1,1178 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickspinbox_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtGui/qguiapplication.h>
-#include <QtGui/qstylehints.h>
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQml/private/qqmllocale_p.h>
-#include <QtQml/private/qqmlengine_p.h>
-#include <QtQuick/private/qquicktextinput_p.h>
-
-QT_BEGIN_NAMESPACE
-
-// copied from qabstractbutton.cpp
-static const int AUTO_REPEAT_DELAY = 300;
-static const int AUTO_REPEAT_INTERVAL = 100;
-
-/*!
- \qmltype SpinBox
- \inherits Control
- \instantiates QQuickSpinBox
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup input
- \ingroup qtquickcontrols2-focusscopes
- \brief Allows the user to select from a set of preset values.
-
- \image qtquickcontrols2-spinbox.png
-
- SpinBox allows the user to choose an integer value by clicking the up
- or down indicator buttons, or by pressing up or down on the keyboard.
- Optionally, SpinBox can be also made \l editable, so the user can enter
- a text value in the input field.
-
- By default, SpinBox provides discrete values in the range of \c [0-99]
- with a \l stepSize of \c 1.
-
- \snippet qtquickcontrols2-spinbox.qml 1
-
- \section2 Custom Values
-
- \image qtquickcontrols2-spinbox-textual.png
-
- Even though SpinBox works on integer values, it can be customized to
- accept arbitrary input values. The following snippet demonstrates how
- \l validator, \l textFromValue and \l valueFromText can be used to
- customize the default behavior.
-
- \snippet qtquickcontrols2-spinbox-textual.qml 1
-
- In the same manner, SpinBox can be customized to accept floating point
- numbers:
-
- \image qtquickcontrols2-spinbox-double.png
-
- \snippet qtquickcontrols2-spinbox-double.qml 1
-
- \sa Tumbler, {Customizing SpinBox}, {Focus Management in Qt Quick Controls}
-*/
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlsignal QtQuick.Controls::SpinBox::valueModified()
-
- This signal is emitted when the spin box value has been interactively
- modified by the user by either touch, mouse, wheel, or keys.
-*/
-
-class QQuickSpinBoxPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSpinBox)
-
-public:
- int boundValue(int value, bool wrap) const;
- void updateValue();
- bool setValue(int value, bool wrap, bool modified);
- bool stepBy(int steps, bool modified);
- void increase(bool modified);
- void decrease(bool modified);
-
- int effectiveStepSize() const;
-
- void updateDisplayText();
- void setDisplayText(const QString &displayText);
-
- bool upEnabled() const;
- void updateUpEnabled();
- bool downEnabled() const;
- void updateDownEnabled();
- void updateHover(const QPointF &pos);
-
- void startRepeatDelay();
- void startPressRepeat();
- void stopPressRepeat();
-
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
- void handleUngrab() override;
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- bool editable = false;
- bool wrap = false;
- int from = 0;
- int to = 99;
- int value = 0;
- int stepSize = 1;
- int delayTimer = 0;
- int repeatTimer = 0;
- QString displayText;
- QQuickSpinButton *up = nullptr;
- QQuickSpinButton *down = nullptr;
- QValidator *validator = nullptr;
- mutable QJSValue textFromValue;
- mutable QJSValue valueFromText;
- Qt::InputMethodHints inputMethodHints = Qt::ImhDigitsOnly;
-};
-
-class QQuickSpinButtonPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSpinButton)
-
-public:
- static QQuickSpinButtonPrivate *get(QQuickSpinButton *button)
- {
- return button->d_func();
- }
-
- void cancelIndicator();
- void executeIndicator(bool complete = false);
-
- bool pressed = false;
- bool hovered = false;
- QQuickDeferredPointer<QQuickItem> indicator;
-};
-
-int QQuickSpinBoxPrivate::boundValue(int value, bool wrap) const
-{
- bool inverted = from > to;
- if (!wrap)
- return inverted ? qBound(to, value, from) : qBound(from, value, to);
-
- int f = inverted ? to : from;
- int t = inverted ? from : to;
- if (value < f)
- value = t;
- else if (value > t)
- value = f;
-
- return value;
-}
-
-void QQuickSpinBoxPrivate::updateValue()
-{
- Q_Q(QQuickSpinBox);
- if (contentItem) {
- QVariant text = contentItem->property("text");
- if (text.isValid()) {
- int val = 0;
- QQmlEngine *engine = qmlEngine(q);
- if (engine && valueFromText.isCallable()) {
- QV4::ExecutionEngine *v4 = QQmlEnginePrivate::getV4Engine(engine);
- QJSValue loc(v4, QQmlLocale::wrap(v4, locale));
- val = valueFromText.call(QJSValueList() << text.toString() << loc).toInt();
- } else {
- val = locale.toInt(text.toString());
- }
- setValue(val, /* allowWrap = */ false, /* modified = */ true);
- }
- }
-}
-
-bool QQuickSpinBoxPrivate::setValue(int newValue, bool allowWrap, bool modified)
-{
- Q_Q(QQuickSpinBox);
- if (q->isComponentComplete())
- newValue = boundValue(newValue, allowWrap);
-
- if (value == newValue)
- return false;
-
- value = newValue;
-
- updateDisplayText();
- updateUpEnabled();
- updateDownEnabled();
-
- emit q->valueChanged();
- if (modified)
- emit q->valueModified();
- return true;
-}
-
-bool QQuickSpinBoxPrivate::stepBy(int steps, bool modified)
-{
- return setValue(value + steps, wrap, modified);
-}
-
-void QQuickSpinBoxPrivate::increase(bool modified)
-{
- setValue(value + effectiveStepSize(), wrap, modified);
-}
-
-void QQuickSpinBoxPrivate::decrease(bool modified)
-{
- setValue(value - effectiveStepSize(), wrap, modified);
-}
-
-int QQuickSpinBoxPrivate::effectiveStepSize() const
-{
- return from > to ? -1 * stepSize : stepSize;
-}
-
-void QQuickSpinBoxPrivate::updateDisplayText()
-{
- Q_Q(QQuickSpinBox);
- QString text;
- QQmlEngine *engine = qmlEngine(q);
- if (engine && textFromValue.isCallable()) {
- QV4::ExecutionEngine *v4 = QQmlEnginePrivate::getV4Engine(engine);
- QJSValue loc(v4, QQmlLocale::wrap(v4, locale));
- text = textFromValue.call(QJSValueList() << value << loc).toString();
- } else {
- text = locale.toString(value);
- }
- setDisplayText(text);
-}
-
-void QQuickSpinBoxPrivate::setDisplayText(const QString &text)
-{
- Q_Q(QQuickSpinBox);
- if (displayText == text)
- return;
-
- displayText = text;
- emit q->displayTextChanged();
-}
-
-bool QQuickSpinBoxPrivate::upEnabled() const
-{
- const QQuickItem *upIndicator = up->indicator();
- return upIndicator && upIndicator->isEnabled();
-}
-
-void QQuickSpinBoxPrivate::updateUpEnabled()
-{
- QQuickItem *upIndicator = up->indicator();
- if (!upIndicator)
- return;
-
- upIndicator->setEnabled(wrap || (from < to ? value < to : value > to));
-}
-
-bool QQuickSpinBoxPrivate::downEnabled() const
-{
- const QQuickItem *downIndicator = down->indicator();
- return downIndicator && downIndicator->isEnabled();
-}
-
-void QQuickSpinBoxPrivate::updateDownEnabled()
-{
- QQuickItem *downIndicator = down->indicator();
- if (!downIndicator)
- return;
-
- downIndicator->setEnabled(wrap || (from < to ? value > from : value < from));
-}
-
-void QQuickSpinBoxPrivate::updateHover(const QPointF &pos)
-{
- Q_Q(QQuickSpinBox);
- QQuickItem *ui = up->indicator();
- QQuickItem *di = down->indicator();
- up->setHovered(ui && ui->isEnabled() && ui->contains(q->mapToItem(ui, pos)));
- down->setHovered(di && di->isEnabled() && di->contains(q->mapToItem(di, pos)));
-}
-
-void QQuickSpinBoxPrivate::startRepeatDelay()
-{
- Q_Q(QQuickSpinBox);
- stopPressRepeat();
- delayTimer = q->startTimer(AUTO_REPEAT_DELAY);
-}
-
-void QQuickSpinBoxPrivate::startPressRepeat()
-{
- Q_Q(QQuickSpinBox);
- stopPressRepeat();
- repeatTimer = q->startTimer(AUTO_REPEAT_INTERVAL);
-}
-
-void QQuickSpinBoxPrivate::stopPressRepeat()
-{
- Q_Q(QQuickSpinBox);
- if (delayTimer > 0) {
- q->killTimer(delayTimer);
- delayTimer = 0;
- }
- if (repeatTimer > 0) {
- q->killTimer(repeatTimer);
- repeatTimer = 0;
- }
-}
-
-void QQuickSpinBoxPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickSpinBox);
- QQuickControlPrivate::handlePress(point);
- QQuickItem *ui = up->indicator();
- QQuickItem *di = down->indicator();
- up->setPressed(ui && ui->isEnabled() && ui->contains(ui->mapFromItem(q, point)));
- down->setPressed(di && di->isEnabled() && di->contains(di->mapFromItem(q, point)));
-
- bool pressed = up->isPressed() || down->isPressed();
- q->setAccessibleProperty("pressed", pressed);
- if (pressed)
- startRepeatDelay();
-}
-
-void QQuickSpinBoxPrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickSpinBox);
- QQuickControlPrivate::handleMove(point);
- QQuickItem *ui = up->indicator();
- QQuickItem *di = down->indicator();
- up->setHovered(ui && ui->isEnabled() && ui->contains(ui->mapFromItem(q, point)));
- up->setPressed(up->isHovered());
- down->setHovered(di && di->isEnabled() && di->contains(di->mapFromItem(q, point)));
- down->setPressed(down->isHovered());
-
- bool pressed = up->isPressed() || down->isPressed();
- q->setAccessibleProperty("pressed", pressed);
- if (!pressed)
- stopPressRepeat();
-}
-
-void QQuickSpinBoxPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickSpinBox);
- QQuickControlPrivate::handleRelease(point);
- QQuickItem *ui = up->indicator();
- QQuickItem *di = down->indicator();
-
- int oldValue = value;
- if (up->isPressed()) {
- up->setPressed(false);
- if (repeatTimer <= 0 && ui && ui->contains(ui->mapFromItem(q, point)))
- q->increase();
- } else if (down->isPressed()) {
- down->setPressed(false);
- if (repeatTimer <= 0 && di && di->contains(di->mapFromItem(q, point)))
- q->decrease();
- }
- if (value != oldValue)
- emit q->valueModified();
-
- q->setAccessibleProperty("pressed", false);
- stopPressRepeat();
-}
-
-void QQuickSpinBoxPrivate::handleUngrab()
-{
- Q_Q(QQuickSpinBox);
- QQuickControlPrivate::handleUngrab();
- up->setPressed(false);
- down->setPressed(false);
-
- q->setAccessibleProperty("pressed", false);
- stopPressRepeat();
-}
-
-void QQuickSpinBoxPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- QQuickControlPrivate::itemImplicitWidthChanged(item);
- if (item == up->indicator())
- emit up->implicitIndicatorWidthChanged();
- else if (item == down->indicator())
- emit down->implicitIndicatorWidthChanged();
-}
-
-void QQuickSpinBoxPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- QQuickControlPrivate::itemImplicitHeightChanged(item);
- if (item == up->indicator())
- emit up->implicitIndicatorHeightChanged();
- else if (item == down->indicator())
- emit down->implicitIndicatorHeightChanged();
-}
-
-QQuickSpinBox::QQuickSpinBox(QQuickItem *parent)
- : QQuickControl(*(new QQuickSpinBoxPrivate), parent)
-{
- Q_D(QQuickSpinBox);
- d->up = new QQuickSpinButton(this);
- d->down = new QQuickSpinButton(this);
-
- setFlag(ItemIsFocusScope);
- setFiltersChildMouseEvents(true);
- setAcceptedMouseButtons(Qt::LeftButton);
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
-}
-
-QQuickSpinBox::~QQuickSpinBox()
-{
- Q_D(QQuickSpinBox);
- d->removeImplicitSizeListener(d->up->indicator());
- d->removeImplicitSizeListener(d->down->indicator());
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::SpinBox::from
-
- This property holds the starting value for the range. The default value is \c 0.
-
- \sa to, value
-*/
-int QQuickSpinBox::from() const
-{
- Q_D(const QQuickSpinBox);
- return d->from;
-}
-
-void QQuickSpinBox::setFrom(int from)
-{
- Q_D(QQuickSpinBox);
- if (d->from == from)
- return;
-
- d->from = from;
- emit fromChanged();
- if (isComponentComplete()) {
- if (!d->setValue(d->value, /* allowWrap = */ false, /* modified = */ false)) {
- d->updateUpEnabled();
- d->updateDownEnabled();
- }
- }
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::SpinBox::to
-
- This property holds the end value for the range. The default value is \c 99.
-
- \sa from, value
-*/
-int QQuickSpinBox::to() const
-{
- Q_D(const QQuickSpinBox);
- return d->to;
-}
-
-void QQuickSpinBox::setTo(int to)
-{
- Q_D(QQuickSpinBox);
- if (d->to == to)
- return;
-
- d->to = to;
- emit toChanged();
- if (isComponentComplete()) {
- if (!d->setValue(d->value, /* allowWrap = */false, /* modified = */ false)) {
- d->updateUpEnabled();
- d->updateDownEnabled();
- }
- }
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::SpinBox::value
-
- This property holds the value in the range \c from - \c to. The default value is \c 0.
-*/
-int QQuickSpinBox::value() const
-{
- Q_D(const QQuickSpinBox);
- return d->value;
-}
-
-void QQuickSpinBox::setValue(int value)
-{
- Q_D(QQuickSpinBox);
- d->setValue(value, /* allowWrap = */ false, /* modified = */ false);
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::SpinBox::stepSize
-
- This property holds the step size. The default value is \c 1.
-
- \sa increase(), decrease()
-*/
-int QQuickSpinBox::stepSize() const
-{
- Q_D(const QQuickSpinBox);
- return d->stepSize;
-}
-
-void QQuickSpinBox::setStepSize(int step)
-{
- Q_D(QQuickSpinBox);
- if (d->stepSize == step)
- return;
-
- d->stepSize = step;
- emit stepSizeChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::SpinBox::editable
-
- This property holds whether the spinbox is editable. The default value is \c false.
-
- \sa validator
-*/
-bool QQuickSpinBox::isEditable() const
-{
- Q_D(const QQuickSpinBox);
- return d->editable;
-}
-
-void QQuickSpinBox::setEditable(bool editable)
-{
- Q_D(QQuickSpinBox);
- if (d->editable == editable)
- return;
-
-#if QT_CONFIG(cursor)
- if (d->contentItem) {
- if (editable)
- d->contentItem->setCursor(Qt::IBeamCursor);
- else
- d->contentItem->unsetCursor();
- }
-#endif
-
- d->editable = editable;
- setAccessibleProperty("editable", editable);
- emit editableChanged();
-}
-
-/*!
- \qmlproperty Validator QtQuick.Controls::SpinBox::validator
-
- This property holds the input text validator for editable spinboxes. By
- default, SpinBox uses \l IntValidator to accept input of integer numbers.
-
- \code
- SpinBox {
- id: control
- validator: IntValidator {
- locale: control.locale.name
- bottom: Math.min(control.from, control.to)
- top: Math.max(control.from, control.to)
- }
- }
- \endcode
-
- \sa editable, textFromValue, valueFromText, {Control::locale}{locale}
-*/
-QValidator *QQuickSpinBox::validator() const
-{
- Q_D(const QQuickSpinBox);
- return d->validator;
-}
-
-void QQuickSpinBox::setValidator(QValidator *validator)
-{
- Q_D(QQuickSpinBox);
- if (d->validator == validator)
- return;
-
- d->validator = validator;
- emit validatorChanged();
-}
-
-/*!
- \qmlproperty function QtQuick.Controls::SpinBox::textFromValue
-
- This property holds a callback function that is called whenever
- an integer value needs to be converted to display text.
-
- The default function can be overridden to display custom text for a given
- value. This applies to both editable and non-editable spinboxes;
- for example, when using the up and down buttons or a mouse wheel to
- increment and decrement the value, the new value is converted to display
- text using this function.
-
- The callback function signature is \c {string function(value, locale)}.
- The function can have one or two arguments, where the first argument
- is the value to be converted, and the optional second argument is the
- locale that should be used for the conversion, if applicable.
-
- The default implementation does the conversion using
- \l {QtQml::Number::toLocaleString()}{Number.toLocaleString}():
-
- \code
- textFromValue: function(value, locale) { return Number(value).toLocaleString(locale, 'f', 0); }
- \endcode
-
- \note When applying a custom \c textFromValue implementation for editable
- spinboxes, a matching \l valueFromText implementation must be provided
- to be able to convert the custom text back to an integer value.
-
- \sa valueFromText, validator, {Control::locale}{locale}
-*/
-QJSValue QQuickSpinBox::textFromValue() const
-{
- Q_D(const QQuickSpinBox);
- if (!d->textFromValue.isCallable()) {
- QQmlEngine *engine = qmlEngine(this);
- if (engine)
- d->textFromValue = engine->evaluate(QStringLiteral("(function(value, locale) { return Number(value).toLocaleString(locale, 'f', 0); })"));
- }
- return d->textFromValue;
-}
-
-void QQuickSpinBox::setTextFromValue(const QJSValue &callback)
-{
- Q_D(QQuickSpinBox);
- if (!callback.isCallable()) {
- qmlWarning(this) << "textFromValue must be a callable function";
- return;
- }
- d->textFromValue = callback;
- emit textFromValueChanged();
-}
-
-/*!
- \qmlproperty function QtQuick.Controls::SpinBox::valueFromText
-
- This property holds a callback function that is called whenever
- input text needs to be converted to an integer value.
-
- This function only needs to be overridden when \l textFromValue
- is overridden for an editable spinbox.
-
- The callback function signature is \c {int function(text, locale)}.
- The function can have one or two arguments, where the first argument
- is the text to be converted, and the optional second argument is the
- locale that should be used for the conversion, if applicable.
-
- The default implementation does the conversion using \l {QtQml::Locale}{Number.fromLocaleString()}:
-
- \code
- valueFromText: function(text, locale) { return Number.fromLocaleString(locale, text); }
- \endcode
-
- \note When applying a custom \l textFromValue implementation for editable
- spinboxes, a matching \c valueFromText implementation must be provided
- to be able to convert the custom text back to an integer value.
-
- \sa textFromValue, validator, {Control::locale}{locale}
-*/
-QJSValue QQuickSpinBox::valueFromText() const
-{
- Q_D(const QQuickSpinBox);
- if (!d->valueFromText.isCallable()) {
- QQmlEngine *engine = qmlEngine(this);
- if (engine)
- d->valueFromText = engine->evaluate(QStringLiteral("function(text, locale) { return Number.fromLocaleString(locale, text); }"));
- }
- return d->valueFromText;
-}
-
-void QQuickSpinBox::setValueFromText(const QJSValue &callback)
-{
- Q_D(QQuickSpinBox);
- if (!callback.isCallable()) {
- qmlWarning(this) << "valueFromText must be a callable function";
- return;
- }
- d->valueFromText = callback;
- emit valueFromTextChanged();
-}
-
-/*!
- \qmlpropertygroup QtQuick.Controls::SpinBox::up
- \qmlproperty bool QtQuick.Controls::SpinBox::up.pressed
- \qmlproperty Item QtQuick.Controls::SpinBox::up.indicator
- \qmlproperty bool QtQuick.Controls::SpinBox::up.hovered
- \qmlproperty real QtQuick.Controls::SpinBox::up.implicitIndicatorWidth
- \qmlproperty real QtQuick.Controls::SpinBox::up.implicitIndicatorHeight
-
- These properties hold the up indicator item and whether it is pressed or
- hovered. The \c up.hovered property was introduced in QtQuick.Controls 2.1,
- and the \c up.implicitIndicatorWidth and \c up.implicitIndicatorHeight
- properties were introduced in QtQuick.Controls 2.5.
-
- \sa increase()
-*/
-QQuickSpinButton *QQuickSpinBox::up() const
-{
- Q_D(const QQuickSpinBox);
- return d->up;
-}
-
-/*!
- \qmlpropertygroup QtQuick.Controls::SpinBox::down
- \qmlproperty bool QtQuick.Controls::SpinBox::down.pressed
- \qmlproperty Item QtQuick.Controls::SpinBox::down.indicator
- \qmlproperty bool QtQuick.Controls::SpinBox::down.hovered
- \qmlproperty real QtQuick.Controls::SpinBox::down.implicitIndicatorWidth
- \qmlproperty real QtQuick.Controls::SpinBox::down.implicitIndicatorHeight
-
- These properties hold the down indicator item and whether it is pressed or
- hovered. The \c down.hovered property was introduced in QtQuick.Controls 2.1,
- and the \c down.implicitIndicatorWidth and \c down.implicitIndicatorHeight
- properties were introduced in QtQuick.Controls 2.5.
-
- \sa decrease()
-*/
-QQuickSpinButton *QQuickSpinBox::down() const
-{
- Q_D(const QQuickSpinBox);
- return d->down;
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty flags QtQuick.Controls::SpinBox::inputMethodHints
-
- This property provides hints to the input method about the expected content
- of the spin box and how it should operate.
-
- The default value is \c Qt.ImhDigitsOnly.
-
- \include inputmethodhints.qdocinc
-*/
-Qt::InputMethodHints QQuickSpinBox::inputMethodHints() const
-{
- Q_D(const QQuickSpinBox);
- return d->inputMethodHints;
-}
-
-void QQuickSpinBox::setInputMethodHints(Qt::InputMethodHints hints)
-{
- Q_D(QQuickSpinBox);
- if (d->inputMethodHints == hints)
- return;
-
- d->inputMethodHints = hints;
- emit inputMethodHintsChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty bool QtQuick.Controls::SpinBox::inputMethodComposing
- \readonly
-
- This property holds whether an editable spin box has partial text input from an input method.
-
- While it is composing, an input method may rely on mouse or key events from the spin box to
- edit or commit the partial text. This property can be used to determine when to disable event
- handlers that may interfere with the correct operation of an input method.
-*/
-bool QQuickSpinBox::isInputMethodComposing() const
-{
- Q_D(const QQuickSpinBox);
- return d->contentItem && d->contentItem->property("inputMethodComposing").toBool();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::SpinBox::wrap
-
- This property holds whether the spinbox wraps. The default value is \c false.
-
- If wrap is \c true, stepping past \l to changes the value to \l from and vice versa.
-*/
-bool QQuickSpinBox::wrap() const
-{
- Q_D(const QQuickSpinBox);
- return d->wrap;
-}
-
-void QQuickSpinBox::setWrap(bool wrap)
-{
- Q_D(QQuickSpinBox);
- if (d->wrap == wrap)
- return;
-
- d->wrap = wrap;
- if (d->value == d->from || d->value == d->to) {
- d->updateUpEnabled();
- d->updateDownEnabled();
- }
- emit wrapChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.4 (Qt 5.11)
- \qmlproperty string QtQuick.Controls::SpinBox::displayText
- \readonly
-
- This property holds the textual value of the spinbox.
-
- The value of the property is based on \l textFromValue and \l {Control::}
- {locale}, and equal to:
- \badcode
- var text = spinBox.textFromValue(spinBox.value, spinBox.locale)
- \endcode
-
- \sa textFromValue
-*/
-QString QQuickSpinBox::displayText() const
-{
- Q_D(const QQuickSpinBox);
- return d->displayText;
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::SpinBox::increase()
-
- Increases the value by \l stepSize, or \c 1 if stepSize is not defined.
-
- \sa stepSize
-*/
-void QQuickSpinBox::increase()
-{
- Q_D(QQuickSpinBox);
- d->increase(false);
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::SpinBox::decrease()
-
- Decreases the value by \l stepSize, or \c 1 if stepSize is not defined.
-
- \sa stepSize
-*/
-void QQuickSpinBox::decrease()
-{
- Q_D(QQuickSpinBox);
- d->decrease(false);
-}
-
-void QQuickSpinBox::focusInEvent(QFocusEvent *event)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::focusInEvent(event);
-
- // When an editable SpinBox gets focus, it must pass on the focus to its editor.
- if (d->editable && d->contentItem && !d->contentItem->hasActiveFocus())
- d->contentItem->forceActiveFocus(event->reason());
-}
-
-void QQuickSpinBox::hoverEnterEvent(QHoverEvent *event)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::hoverEnterEvent(event);
- d->updateHover(event->posF());
-}
-
-void QQuickSpinBox::hoverMoveEvent(QHoverEvent *event)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::hoverMoveEvent(event);
- d->updateHover(event->posF());
-}
-
-void QQuickSpinBox::hoverLeaveEvent(QHoverEvent *event)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::hoverLeaveEvent(event);
- d->down->setHovered(false);
- d->up->setHovered(false);
-}
-
-void QQuickSpinBox::keyPressEvent(QKeyEvent *event)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::keyPressEvent(event);
-
- switch (event->key()) {
- case Qt::Key_Up:
- if (d->upEnabled()) {
- d->increase(true);
- d->up->setPressed(true);
- event->accept();
- }
- break;
-
- case Qt::Key_Down:
- if (d->downEnabled()) {
- d->decrease(true);
- d->down->setPressed(true);
- event->accept();
- }
- break;
-
- default:
- break;
- }
-
- setAccessibleProperty("pressed", d->up->isPressed() || d->down->isPressed());
-}
-
-void QQuickSpinBox::keyReleaseEvent(QKeyEvent *event)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::keyReleaseEvent(event);
-
- if (d->editable && (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return))
- d->updateValue();
-
- d->up->setPressed(false);
- d->down->setPressed(false);
- setAccessibleProperty("pressed", false);
-}
-
-void QQuickSpinBox::timerEvent(QTimerEvent *event)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::timerEvent(event);
- if (event->timerId() == d->delayTimer) {
- d->startPressRepeat();
- } else if (event->timerId() == d->repeatTimer) {
- if (d->up->isPressed())
- d->increase(true);
- else if (d->down->isPressed())
- d->decrease(true);
- }
-}
-
-#if QT_CONFIG(wheelevent)
-void QQuickSpinBox::wheelEvent(QWheelEvent *event)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::wheelEvent(event);
- if (d->wheelEnabled) {
- const QPointF angle = event->angleDelta();
- const qreal delta = (qFuzzyIsNull(angle.y()) ? angle.x() : angle.y()) / QWheelEvent::DefaultDeltasPerStep;
- d->stepBy(qRound(d->effectiveStepSize() * delta), true);
- }
-}
-#endif
-
-void QQuickSpinBox::classBegin()
-{
- Q_D(QQuickSpinBox);
- QQuickControl::classBegin();
-
- QQmlContext *context = qmlContext(this);
- if (context) {
- QQmlEngine::setContextForObject(d->up, context);
- QQmlEngine::setContextForObject(d->down, context);
- }
-}
-
-void QQuickSpinBox::componentComplete()
-{
- Q_D(QQuickSpinBox);
- QQuickSpinButtonPrivate::get(d->up)->executeIndicator(true);
- QQuickSpinButtonPrivate::get(d->down)->executeIndicator(true);
-
- QQuickControl::componentComplete();
- if (!d->setValue(d->value, /* allowWrap = */ false, /* modified = */ false)) {
- d->updateDisplayText();
- d->updateUpEnabled();
- d->updateDownEnabled();
- }
-}
-
-void QQuickSpinBox::itemChange(ItemChange change, const ItemChangeData &value)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::itemChange(change, value);
- if (d->editable && change == ItemActiveFocusHasChanged && !value.boolValue)
- d->updateValue();
-}
-
-void QQuickSpinBox::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickSpinBox);
- if (QQuickTextInput *oldInput = qobject_cast<QQuickTextInput *>(oldItem))
- disconnect(oldInput, &QQuickTextInput::inputMethodComposingChanged, this, &QQuickSpinBox::inputMethodComposingChanged);
-
- if (newItem) {
- newItem->setActiveFocusOnTab(true);
- if (d->activeFocus)
- newItem->forceActiveFocus(d->focusReason);
-#if QT_CONFIG(cursor)
- if (d->editable)
- newItem->setCursor(Qt::IBeamCursor);
-#endif
-
- if (QQuickTextInput *newInput = qobject_cast<QQuickTextInput *>(newItem))
- connect(newInput, &QQuickTextInput::inputMethodComposingChanged, this, &QQuickSpinBox::inputMethodComposingChanged);
- }
-}
-
-void QQuickSpinBox::localeChange(const QLocale &newLocale, const QLocale &oldLocale)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::localeChange(newLocale, oldLocale);
- d->updateDisplayText();
-}
-
-QFont QQuickSpinBox::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::SpinBox);
-}
-
-QPalette QQuickSpinBox::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::SpinBox);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickSpinBox::accessibleRole() const
-{
- return QAccessible::SpinBox;
-}
-
-void QQuickSpinBox::accessibilityActiveChanged(bool active)
-{
- Q_D(QQuickSpinBox);
- QQuickControl::accessibilityActiveChanged(active);
-
- if (active)
- setAccessibleProperty("editable", d->editable);
-}
-#endif
-
-static inline QString indicatorName() { return QStringLiteral("indicator"); }
-
-void QQuickSpinButtonPrivate::cancelIndicator()
-{
- Q_Q(QQuickSpinButton);
- quickCancelDeferred(q, indicatorName());
-}
-
-void QQuickSpinButtonPrivate::executeIndicator(bool complete)
-{
- Q_Q(QQuickSpinButton);
- if (indicator.wasExecuted())
- return;
-
- if (!indicator || complete)
- quickBeginDeferred(q, indicatorName(), indicator);
- if (complete)
- quickCompleteDeferred(q, indicatorName(), indicator);
-}
-
-QQuickSpinButton::QQuickSpinButton(QQuickSpinBox *parent)
- : QObject(*(new QQuickSpinButtonPrivate), parent)
-{
-}
-
-bool QQuickSpinButton::isPressed() const
-{
- Q_D(const QQuickSpinButton);
- return d->pressed;
-}
-
-void QQuickSpinButton::setPressed(bool pressed)
-{
- Q_D(QQuickSpinButton);
- if (d->pressed == pressed)
- return;
-
- d->pressed = pressed;
- emit pressedChanged();
-}
-
-QQuickItem *QQuickSpinButton::indicator() const
-{
- QQuickSpinButtonPrivate *d = const_cast<QQuickSpinButtonPrivate *>(d_func());
- if (!d->indicator)
- d->executeIndicator();
- return d->indicator;
-}
-
-void QQuickSpinButton::setIndicator(QQuickItem *indicator)
-{
- Q_D(QQuickSpinButton);
- if (d->indicator == indicator)
- return;
-
- if (!d->indicator.isExecuting())
- d->cancelIndicator();
-
- const qreal oldImplicitIndicatorWidth = implicitIndicatorWidth();
- const qreal oldImplicitIndicatorHeight = implicitIndicatorHeight();
-
- QQuickSpinBox *spinBox = static_cast<QQuickSpinBox *>(parent());
- QQuickSpinBoxPrivate::get(spinBox)->removeImplicitSizeListener(d->indicator);
- delete d->indicator;
- d->indicator = indicator;
-
- if (indicator) {
- if (!indicator->parentItem())
- indicator->setParentItem(spinBox);
- QQuickSpinBoxPrivate::get(spinBox)->addImplicitSizeListener(indicator);
- }
-
- if (!qFuzzyCompare(oldImplicitIndicatorWidth, implicitIndicatorWidth()))
- emit implicitIndicatorWidthChanged();
- if (!qFuzzyCompare(oldImplicitIndicatorHeight, implicitIndicatorHeight()))
- emit implicitIndicatorHeightChanged();
- if (!d->indicator.isExecuting())
- emit indicatorChanged();
-}
-
-bool QQuickSpinButton::isHovered() const
-{
- Q_D(const QQuickSpinButton);
- return d->hovered;
-}
-
-void QQuickSpinButton::setHovered(bool hovered)
-{
- Q_D(QQuickSpinButton);
- if (d->hovered == hovered)
- return;
-
- d->hovered = hovered;
- emit hoveredChanged();
-}
-
-qreal QQuickSpinButton::implicitIndicatorWidth() const
-{
- Q_D(const QQuickSpinButton);
- if (!d->indicator)
- return 0;
- return d->indicator->implicitWidth();
-}
-
-qreal QQuickSpinButton::implicitIndicatorHeight() const
-{
- Q_D(const QQuickSpinButton);
- if (!d->indicator)
- return 0;
- return d->indicator->implicitHeight();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickspinbox_p.h b/src/quicktemplates2/qquickspinbox_p.h
deleted file mode 100644
index 4a339b76..00000000
--- a/src/quicktemplates2/qquickspinbox_p.h
+++ /dev/null
@@ -1,226 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSPINBOX_P_H
-#define QQUICKSPINBOX_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQml/qjsvalue.h>
-
-QT_BEGIN_NAMESPACE
-
-class QValidator;
-class QQuickSpinButton;
-class QQuickSpinButtonPrivate;
-class QQuickSpinBoxPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSpinBox : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(int from READ from WRITE setFrom NOTIFY fromChanged FINAL)
- Q_PROPERTY(int to READ to WRITE setTo NOTIFY toChanged FINAL)
- Q_PROPERTY(int value READ value WRITE setValue NOTIFY valueChanged FINAL)
- Q_PROPERTY(int stepSize READ stepSize WRITE setStepSize NOTIFY stepSizeChanged FINAL)
- Q_PROPERTY(bool editable READ isEditable WRITE setEditable NOTIFY editableChanged FINAL)
- Q_PROPERTY(QValidator *validator READ validator WRITE setValidator NOTIFY validatorChanged FINAL)
- Q_PROPERTY(QJSValue textFromValue READ textFromValue WRITE setTextFromValue NOTIFY textFromValueChanged FINAL)
- Q_PROPERTY(QJSValue valueFromText READ valueFromText WRITE setValueFromText NOTIFY valueFromTextChanged FINAL)
- Q_PROPERTY(QQuickSpinButton *up READ up CONSTANT FINAL)
- Q_PROPERTY(QQuickSpinButton *down READ down CONSTANT FINAL)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints NOTIFY inputMethodHintsChanged FINAL REVISION 2)
- Q_PROPERTY(bool inputMethodComposing READ isInputMethodComposing NOTIFY inputMethodComposingChanged FINAL REVISION 2)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool wrap READ wrap WRITE setWrap NOTIFY wrapChanged FINAL REVISION 3)
- // 2.4 (Qt 5.11)
- Q_PROPERTY(QString displayText READ displayText NOTIFY displayTextChanged FINAL REVISION 4)
-
-public:
- explicit QQuickSpinBox(QQuickItem *parent = nullptr);
- ~QQuickSpinBox();
-
- int from() const;
- void setFrom(int from);
-
- int to() const;
- void setTo(int to);
-
- int value() const;
- void setValue(int value);
-
- int stepSize() const;
- void setStepSize(int step);
-
- bool isEditable() const;
- void setEditable(bool editable);
-
- QValidator *validator() const;
- void setValidator(QValidator *validator);
-
- QJSValue textFromValue() const;
- void setTextFromValue(const QJSValue &callback);
-
- QJSValue valueFromText() const;
- void setValueFromText(const QJSValue &callback);
-
- QQuickSpinButton *up() const;
- QQuickSpinButton *down() const;
-
- // 2.2 (Qt 5.9)
- Qt::InputMethodHints inputMethodHints() const;
- void setInputMethodHints(Qt::InputMethodHints hints);
-
- bool isInputMethodComposing() const;
-
- // 2.3 (Qt 5.10)
- bool wrap() const;
- void setWrap(bool wrap);
-
- // 2.4 (Qt 5.11)
- QString displayText() const;
-
-public Q_SLOTS:
- void increase();
- void decrease();
-
-Q_SIGNALS:
- void fromChanged();
- void toChanged();
- void valueChanged();
- void stepSizeChanged();
- void editableChanged();
- void validatorChanged();
- void textFromValueChanged();
- void valueFromTextChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void valueModified();
- Q_REVISION(2) void inputMethodHintsChanged();
- Q_REVISION(2) void inputMethodComposingChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void wrapChanged();
- // 2.4 (Qt 5.11)
- Q_REVISION(4) void displayTextChanged();
-
-protected:
- void focusInEvent(QFocusEvent *event) override;
- void hoverEnterEvent(QHoverEvent *event) override;
- void hoverMoveEvent(QHoverEvent *event) override;
- void hoverLeaveEvent(QHoverEvent *event) override;
- void keyPressEvent(QKeyEvent *event) override;
- void keyReleaseEvent(QKeyEvent *event) override;
- void timerEvent(QTimerEvent *event) override;
-#if QT_CONFIG(wheelevent)
- void wheelEvent(QWheelEvent *event) override;
-#endif
-
- void classBegin() override;
- void componentComplete() override;
- void itemChange(ItemChange change, const ItemChangeData &value) override;
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
- void localeChange(const QLocale &newLocale, const QLocale &oldLocale) override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
- void accessibilityActiveChanged(bool active) override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickSpinBox)
- Q_DECLARE_PRIVATE(QQuickSpinBox)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSpinButton : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(bool pressed READ isPressed WRITE setPressed NOTIFY pressedChanged FINAL)
- Q_PROPERTY(QQuickItem *indicator READ indicator WRITE setIndicator NOTIFY indicatorChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(bool hovered READ isHovered WRITE setHovered NOTIFY hoveredChanged FINAL REVISION 1)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(qreal implicitIndicatorWidth READ implicitIndicatorWidth NOTIFY implicitIndicatorWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitIndicatorHeight READ implicitIndicatorHeight NOTIFY implicitIndicatorHeightChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "indicator")
-
-public:
- explicit QQuickSpinButton(QQuickSpinBox *parent);
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
- QQuickItem *indicator() const;
- void setIndicator(QQuickItem *indicator);
-
- // 2.1 (Qt 5.8)
- bool isHovered() const;
- void setHovered(bool hovered);
-
- // 2.5 (Qt 5.12)
- qreal implicitIndicatorWidth() const;
- qreal implicitIndicatorHeight() const;
-
-Q_SIGNALS:
- void pressedChanged();
- void indicatorChanged();
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void hoveredChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void implicitIndicatorWidthChanged();
- Q_REVISION(5) void implicitIndicatorHeightChanged();
-
-private:
- Q_DISABLE_COPY(QQuickSpinButton)
- Q_DECLARE_PRIVATE(QQuickSpinButton)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickSpinBox)
-
-#endif // QQUICKSPINBOX_P_H
diff --git a/src/quicktemplates2/qquicksplitview.cpp b/src/quicktemplates2/qquicksplitview.cpp
deleted file mode 100644
index 75cd9674..00000000
--- a/src/quicktemplates2/qquicksplitview.cpp
+++ /dev/null
@@ -1,2049 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicksplitview_p.h"
-#include "qquicksplitview_p_p.h"
-#include "qquickcontentitem_p.h"
-
-#include <QtCore/qdebug.h>
-#include <QtCore/qloggingcategory.h>
-#include <QtCore/qcborarray.h>
-#include <QtCore/qcbormap.h>
-#include <QtCore/qcborvalue.h>
-#include <QtQml/QQmlInfo>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype SplitView
- \inherits Control
- \instantiates QQuickSplitView
- \inqmlmodule QtQuick.Controls
- \since 5.13
- \ingroup qtquickcontrols2-containers
- \ingroup qtquickcontrols2-focusscopes
- \brief Lays out items with a draggable splitter between each item
-
- SplitView is a control that lays out items horizontally or vertically with
- a draggable splitter between each item.
-
- SplitView supports the following attached properties on items it manages:
-
- \list
- \li \l SplitView.minimumWidth
- \li \l SplitView.minimumHeight
- \li \l SplitView.preferredWidth
- \li \l SplitView.preferredHeight
- \li \l SplitView.maximumWidth
- \li \l SplitView.maximumHeight
- \li \l SplitView.fillWidth (true for only one child)
- \li \l SplitView.fillHeight (true for only one child)
- \endlist
-
- In addition, each handle has the following read-only attached properties:
-
- \list
- \li \l SplitHandle.hovered
- \li \l SplitHandle.pressed
- \endlist
-
- The preferred size of items in a SplitView can be specified via
- \l {Item::}{implicitWidth} and \l {Item::}{implicitHeight} or
- \c SplitView.preferredWidth and \c SplitView.preferredHeight:
-
- \code
- SplitView {
- anchors.fill: parent
-
- Item {
- SplitView.preferredWidth: 50
- }
-
- // ...
- }
- \endcode
-
- For a horizontal SplitView, it's not necessary to specify the preferred
- height of each item, as they will be resized to the height of the view.
- This applies in reverse for vertical views.
-
- When a split handle is dragged, the \c SplitView.preferredWidth or
- \c SplitView.preferredHeight property is overwritten, depending on the
- \l orientation of the view.
-
- To limit the size of items in a horizontal view, use the following
- properties:
-
- \code
- SplitView {
- anchors.fill: parent
-
- Item {
- SplitView.minimumWidth: 25
- SplitView.preferredWidth: 50
- SplitView.maximumWidth: 100
- }
-
- // ...
- }
- \endcode
-
- To limit the size of items in a vertical view, use the following
- properties:
-
- \code
- SplitView {
- anchors.fill: parent
- orientation: Qt.Vertical
-
- Item {
- SplitView.minimumHeight: 25
- SplitView.preferredHeight: 50
- SplitView.maximumHeight: 100
- }
-
- // ...
- }
- \endcode
-
- There will always be one item (the fill item) in the SplitView that has
- \c SplitView.fillWidth set to \c true (or \c SplitView.fillHeight, if
- \l orientation is \c Qt.Vertical). This means that the item will get all
- leftover space when other items have been laid out. By default, the last
- visible child of the SplitView will have this set, but it can be changed by
- explicitly setting \c fillWidth to \c true on another item.
-
- A handle can belong to the item either on the left or top side, or on the
- right or bottom side:
-
- \list
- \li If the fill item is to the right: the handle belongs to the left
- item.
- \li If the fill item is on the left: the handle belongs to the right
- item.
- \endlist
-
- To create a SplitView with three items, and let the center item get
- superfluous space, one could do the following:
-
- \code
- SplitView {
- anchors.fill: parent
- orientation: Qt.Horizontal
-
- Rectangle {
- implicitWidth: 200
- SplitView.maximumWidth: 400
- color: "lightblue"
- Label {
- text: "View 1"
- anchors.centerIn: parent
- }
- }
- Rectangle {
- id: centerItem
- SplitView.minimumWidth: 50
- SplitView.fillWidth: true
- color: "lightgray"
- Label {
- text: "View 2"
- anchors.centerIn: parent
- }
- }
- Rectangle {
- implicitWidth: 200
- color: "lightgreen"
- Label {
- text: "View 3"
- anchors.centerIn: parent
- }
- }
- }
- \endcode
-
- \section1 Serializing SplitView's State
-
- The main purpose of SplitView is to allow users to easily configure the
- size of various UI elements. In addition, the user's preferred sizes should
- be remembered across sessions. To achieve this, the values of the \c
- SplitView.preferredWidth and \c SplitView.preferredHeight properties can be
- serialized using the \l saveState() and \l restoreState() functions:
-
- \qml \QtMinorVersion
- import QtQuick.Controls 2.\1
- import Qt.labs.settings 1.0
-
- ApplicationWindow {
- // ...
-
- Component.onCompleted: splitView.restoreState(settings.splitView)
- Component.onDestruction: settings.splitView = splitView.saveState()
-
- Settings {
- id: settings
- property var splitView
- }
-
- SplitView {
- id: splitView
- // ...
- }
- }
- \endqml
-
- Alternatively, the \l {Settings::}{value()} and \l {Settings::}{setValue()}
- functions of \l Settings can be used:
-
- \qml \QtMinorVersion
- import QtQuick.Controls 2.\1
- import Qt.labs.settings 1.0
-
- ApplicationWindow {
- // ...
-
- Component.onCompleted: splitView.restoreState(settings.value("ui/splitview"))
- Component.onDestruction: settings.setValue("ui/splitview", splitView.saveState())
-
- Settings {
- id: settings
- }
-
- SplitView {
- id: splitView
- // ...
- }
- }
- \endqml
-
- \sa SplitHandle, {Customizing SplitView}, {Container Controls}
-*/
-
-Q_LOGGING_CATEGORY(qlcQQuickSplitView, "qt.quick.controls.splitview")
-Q_LOGGING_CATEGORY(qlcQQuickSplitViewMouse, "qt.quick.controls.splitview.mouse")
-Q_LOGGING_CATEGORY(qlcQQuickSplitViewState, "qt.quick.controls.splitview.state")
-
-void QQuickSplitViewPrivate::updateFillIndex()
-{
- const int count = contentModel->count();
- const bool horizontal = isHorizontal();
-
- qCDebug(qlcQQuickSplitView) << "looking for fillWidth/Height item amongst" << count << "items";
-
- m_fillIndex = -1;
- int i = 0;
- int lastVisibleIndex = -1;
- for (; i < count; ++i) {
- QQuickItem *item = qobject_cast<QQuickItem*>(contentModel->object(i));
- if (!item->isVisible())
- continue;
-
- lastVisibleIndex = i;
-
- const QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, false));
- if (!attached)
- continue;
-
- if ((horizontal && attached->fillWidth()) || (!horizontal && attached->fillHeight())) {
- m_fillIndex = i;
- qCDebug(qlcQQuickSplitView) << "found fillWidth/Height item at index" << m_fillIndex;
- break;
- }
- }
-
- if (m_fillIndex == -1) {
- // If there was no item with fillWidth/fillHeight set, m_fillIndex will be -1,
- // and we'll set it to the last visible item.
- // If there was an item with fillWidth/fillHeight set, we were already done and this will be skipped.
- m_fillIndex = lastVisibleIndex != -1 ? lastVisibleIndex : count - 1;
- qCDebug(qlcQQuickSplitView) << "found no fillWidth/Height item; using last item at index" << m_fillIndex;
- }
-}
-
-/*
- Resizes split items according to their preferred size and any constraints.
-
- If a split item is being resized due to a split handle being dragged,
- it will be resized accordingly.
-
- Items that aren't visible are skipped.
-*/
-void QQuickSplitViewPrivate::layoutResizeSplitItems(qreal &usedWidth, qreal &usedHeight, int &indexBeingResizedDueToDrag)
-{
- const int count = contentModel->count();
- const bool horizontal = isHorizontal();
- for (int index = 0; index < count; ++index) {
- QQuickItem *item = qobject_cast<QQuickItem*>(contentModel->object(index));
- if (!item->isVisible()) {
- // The item is not visible, so skip it.
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index << ": split item " << item
- << " at index " << index << " is not visible; skipping it and its handles (if any)";
- continue;
- }
-
- const QQuickItemPrivate *itemPrivate = QQuickItemPrivate::get(item);
- QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, false));
- const auto sizeData = effectiveSizeData(itemPrivate, attached);
-
- const bool resizeLeftItem = m_fillIndex > m_pressedHandleIndex;
- // True if any handle is pressed.
- const bool isAHandlePressed = m_pressedHandleIndex != -1;
- // True if this particular item is being resized as a result of a handle being dragged.
- const bool isBeingResized = isAHandlePressed && ((resizeLeftItem && index == m_pressedHandleIndex)
- || (!resizeLeftItem && index == m_pressedHandleIndex + 1));
- if (isBeingResized) {
- indexBeingResizedDueToDrag = index;
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index << ": dragging handle for item";
- }
-
- const qreal size = horizontal ? width : height;
- qreal requestedSize = 0;
- if (isBeingResized) {
- // Don't let the mouse go past either edge of the SplitView.
- const qreal clampedMousePos = horizontal
- ? qBound(qreal(0.0), m_mousePos.x(), width)
- : qBound(qreal(0.0), m_mousePos.y(), height);
-
- // We also need to ensure that the item's edge doesn't go too far
- // out and hence give the item more space than is available.
- const int firstIndex = resizeLeftItem ? m_pressedHandleIndex + 1 : 0;
- const int lastIndex = resizeLeftItem ? contentModel->count() - 1 : m_pressedHandleIndex;
- const qreal accumulated = accumulatedSize(firstIndex, lastIndex);
-
- const qreal mousePosRelativeToLeftHandleEdge = horizontal
- ? m_pressPos.x() - m_handlePosBeforePress.x()
- : m_pressPos.y() - m_handlePosBeforePress.y();
-
- const QQuickItem *pressedHandleItem = m_handleItems.at(m_pressedHandleIndex);
- const qreal pressedHandleSize = horizontal ? pressedHandleItem->width() : pressedHandleItem->height();
-
- if (resizeLeftItem) {
- // The handle shouldn't cross other handles, so use the right edge of
- // the first handle to the left as the left edge.
- qreal leftEdge = 0;
- if (m_pressedHandleIndex - 1 >= 0) {
- const QQuickItem *leftHandle = m_handleItems.at(m_pressedHandleIndex - 1);
- leftEdge = horizontal
- ? leftHandle->x() + leftHandle->width()
- : leftHandle->y() + leftHandle->height();
- }
-
- // The mouse can be clicked anywhere in the handle, and if we don't account for
- // its position within the handle, the handle will jump when dragged.
- const qreal pressedHandlePos = clampedMousePos - mousePosRelativeToLeftHandleEdge;
-
- const qreal rightStop = size - accumulated - pressedHandleSize;
- qreal leftStop = qMax(leftEdge, pressedHandlePos);
- // qBound() doesn't care if min is greater than max, but we do.
- if (leftStop > rightStop)
- leftStop = rightStop;
- const qreal newHandlePos = qBound(leftStop, pressedHandlePos, rightStop);
- const qreal newItemSize = newHandlePos - leftEdge;
-
- // Modify the preferredWidth, otherwise the original implicitWidth/preferredWidth
- // will be used on the next layout (when it's no longer being resized).
- if (!attached) {
- // Force the attached object to be created since we rely on it.
- attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, true));
- }
-
- /*
- Users could conceivably respond to size changes in items by setting attached
- SplitView properties:
-
- onWidthChanged: if (width < 10) secondItem.SplitView.preferredWidth = 100
-
- We handle this by doing another layout after the current layout if the
- attached/implicit size properties are set during this layout. However, we also
- need to set preferredWidth/Height here (for reasons mentioned in the comment above),
- but we don't want this to count as a request for a delayed layout, so we guard against it.
- */
- m_ignoreNextLayoutRequest = true;
-
- if (horizontal)
- attached->setPreferredWidth(newItemSize);
- else
- attached->setPreferredHeight(newItemSize);
-
- // We still need to use requestedWidth in the setWidth() call below,
- // because sizeData has already been calculated and now contains an old
- // effectivePreferredWidth value.
- requestedSize = newItemSize;
-
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index << ": resized (dragged) " << item
- << " (clampedMousePos=" << clampedMousePos
- << " pressedHandlePos=" << pressedHandlePos
- << " accumulated=" << accumulated
- << " leftEdge=" << leftEdge
- << " leftStop=" << leftStop
- << " rightStop=" << rightStop
- << " newHandlePos=" << newHandlePos
- << " newItemSize=" << newItemSize << ")";
- } else { // Resizing the item on the right.
- // The handle shouldn't cross other handles, so use the left edge of
- // the first handle to the right as the right edge.
- qreal rightEdge = size;
- if (m_pressedHandleIndex + 1 < m_handleItems.size()) {
- const QQuickItem *rightHandle = m_handleItems.at(m_pressedHandleIndex + 1);
- rightEdge = horizontal ? rightHandle->x() : rightHandle->y();
- }
-
- // The mouse can be clicked anywhere in the handle, and if we don't account for
- // its position within the handle, the handle will jump when dragged.
- const qreal pressedHandlePos = clampedMousePos - mousePosRelativeToLeftHandleEdge;
-
- const qreal leftStop = accumulated - pressedHandleSize;
- qreal rightStop = qMin(rightEdge - pressedHandleSize, pressedHandlePos);
- // qBound() doesn't care if min is greater than max, but we do.
- if (rightStop < leftStop)
- rightStop = leftStop;
- const qreal newHandlePos = qBound(leftStop, pressedHandlePos, rightStop);
- const qreal newItemSize = rightEdge - (newHandlePos + pressedHandleSize);
-
- // Modify the preferredWidth, otherwise the original implicitWidth/preferredWidth
- // will be used on the next layout (when it's no longer being resized).
- if (!attached) {
- // Force the attached object to be created since we rely on it.
- attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, true));
- }
-
- m_ignoreNextLayoutRequest = true;
-
- if (horizontal)
- attached->setPreferredWidth(newItemSize);
- else
- attached->setPreferredHeight(newItemSize);
-
- // We still need to use requestedSize in the setWidth()/setHeight() call below,
- // because sizeData has already been calculated and now contains an old
- // effectivePreferredWidth/Height value.
- requestedSize = newItemSize;
-
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index << ": resized (dragged) " << item
- << " (clampedMousePos=" << clampedMousePos
- << " pressedHandlePos=" << pressedHandlePos
- << " accumulated=" << accumulated
- << " leftEdge=" << rightEdge
- << " leftStop=" << leftStop
- << " rightStop=" << rightStop
- << " newHandlePos=" << newHandlePos
- << " newItemSize=" << newItemSize << ")";
- }
- } else if (index != m_fillIndex) {
- // No handle is being dragged and we're not the fill item,
- // so set our preferred size as we normally would.
- requestedSize = horizontal
- ? sizeData.effectivePreferredWidth : sizeData.effectivePreferredHeight;
- }
-
- if (index != m_fillIndex) {
- if (horizontal) {
- item->setWidth(qBound(
- sizeData.effectiveMinimumWidth,
- requestedSize,
- sizeData.effectiveMaximumWidth));
- item->setHeight(height);
- } else {
- item->setWidth(width);
- item->setHeight(qBound(
- sizeData.effectiveMinimumHeight,
- requestedSize,
- sizeData.effectiveMaximumHeight));
- }
-
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index << ": resized split item " << item
- << " (effective"
- << " minW=" << sizeData.effectiveMinimumWidth
- << ", minH=" << sizeData.effectiveMinimumHeight
- << ", prfW=" << sizeData.effectivePreferredWidth
- << ", prfH=" << sizeData.effectivePreferredHeight
- << ", maxW=" << sizeData.effectiveMaximumWidth
- << ", maxH=" << sizeData.effectiveMaximumHeight << ")";
-
- // Keep track of how much space has been used so far.
- if (horizontal)
- usedWidth += item->width();
- else
- usedHeight += item->height();
- } else if (indexBeingResizedDueToDrag != m_fillIndex) {
- // The fill item is resized afterwards, outside of the loop.
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index << ": skipping fill item as we resize it last";
- }
-
- // Also account for the size of the handle for this item (if any).
- // We do this for the fill item too, which is why it's outside of the check above.
- if (index < count - 1 && m_handle) {
- QQuickItem *handleItem = m_handleItems.at(index);
- // The handle for an item that's not visible will usually already be skipped
- // with the item visibility check higher up, but if the view looks like this
- // [ visible ] | [ visible (fill) ] | [ hidden ]
- // ^
- // hidden
- // and we're iterating over the second item (which is visible but has no handle),
- // we need to add an extra check for it to avoid it still taking up space.
- if (handleItem->isVisible()) {
- if (horizontal) {
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index
- << ": handle takes up " << handleItem->width() << " width";
- usedWidth += handleItem->width();
- } else {
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index
- << ": handle takes up " << handleItem->height() << " height";
- usedHeight += handleItem->height();
- }
- } else {
- qCDebug(qlcQQuickSplitView).nospace() << " - " << index << ": handle is not visible; skipping it";
- }
- }
- }
-}
-
-/*
- Resizes the fill item by giving it the remaining space
- after all other items have been resized.
-
- Items that aren't visible are skipped.
-*/
-void QQuickSplitViewPrivate::layoutResizeFillItem(QQuickItem *fillItem,
- qreal &usedWidth, qreal &usedHeight, int indexBeingResizedDueToDrag)
-{
- // Only bother resizing if it it's visible. Also, if it's being resized due to a drag,
- // then we've already set its size in layoutResizeSplitItems(), so no need to do it here.
- if (!fillItem->isVisible() || indexBeingResizedDueToDrag == m_fillIndex) {
- qCDebug(qlcQQuickSplitView).nospace() << m_fillIndex << ": - fill item " << fillItem
- << " is not visible or was already resized due to a drag;"
- << " skipping it and its handles (if any)";
- return;
- }
-
- const QQuickItemPrivate *fillItemPrivate = QQuickItemPrivate::get(fillItem);
- const QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(fillItem, false));
- const auto fillSizeData = effectiveSizeData(fillItemPrivate, attached);
- if (isHorizontal()) {
- fillItem->setWidth(qBound(
- fillSizeData.effectiveMinimumWidth,
- width - usedWidth,
- fillSizeData.effectiveMaximumWidth));
- fillItem->setHeight(height);
- } else {
- fillItem->setWidth(width);
- fillItem->setHeight(qBound(
- fillSizeData.effectiveMinimumHeight,
- height - usedHeight,
- fillSizeData.effectiveMaximumHeight));
- }
-
- qCDebug(qlcQQuickSplitView).nospace() << " - " << m_fillIndex
- << ": resized split fill item " << fillItem << " (effective"
- << " minW=" << fillSizeData.effectiveMinimumWidth
- << ", minH=" << fillSizeData.effectiveMinimumHeight
- << ", maxW=" << fillSizeData.effectiveMaximumWidth
- << ", maxH=" << fillSizeData.effectiveMaximumHeight << ")";
-}
-
-/*
- Positions items by laying them out in a row or column.
-
- Items that aren't visible are skipped.
-*/
-void QQuickSplitViewPrivate::layoutPositionItems(const QQuickItem *fillItem)
-{
- const bool horizontal = isHorizontal();
- const int count = contentModel->count();
- qreal usedWidth = 0;
- qreal usedHeight = 0;
-
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = qobject_cast<QQuickItem*>(contentModel->object(i));
- if (!item->isVisible()) {
- qCDebug(qlcQQuickSplitView).nospace() << " - " << i << ": split item " << item
- << " is not visible; skipping it and its handles (if any)";
- continue;
- }
-
- // Position the item.
- if (horizontal) {
- item->setX(usedWidth);
- item->setY(0);
- } else {
- item->setX(0);
- item->setY(usedHeight);
- }
-
- // Keep track of how much space has been used so far.
- if (horizontal)
- usedWidth += item->width();
- else
- usedHeight += item->height();
-
- if (Q_UNLIKELY(qlcQQuickSplitView().isDebugEnabled())) {
- const QQuickItemPrivate *fillItemPrivate = QQuickItemPrivate::get(fillItem);
- const QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(fillItem, false));
- const auto sizeData = effectiveSizeData(fillItemPrivate, attached);
- qCDebug(qlcQQuickSplitView).nospace() << " - " << i << ": positioned "
- << (i == m_fillIndex ? "fill item " : "item ") << item << " (effective"
- << " minW=" << sizeData.effectiveMinimumWidth
- << ", minH=" << sizeData.effectiveMinimumHeight
- << ", prfW=" << sizeData.effectivePreferredWidth
- << ", prfH=" << sizeData.effectivePreferredHeight
- << ", maxW=" << sizeData.effectiveMaximumWidth
- << ", maxH=" << sizeData.effectiveMaximumHeight << ")";
- }
-
- // Position the handle for this item (if any).
- if (i < count - 1 && m_handle) {
- // Position the handle.
- QQuickItem *handleItem = m_handleItems.at(i);
- handleItem->setX(horizontal ? usedWidth : 0);
- handleItem->setY(horizontal ? 0 : usedHeight);
-
- if (horizontal)
- usedWidth += handleItem->width();
- else
- usedHeight += handleItem->height();
-
- qCDebug(qlcQQuickSplitView).nospace() << " - " << i << ": positioned handle " << handleItem;
- }
- }
-}
-
-void QQuickSplitViewPrivate::requestLayout()
-{
- Q_Q(QQuickSplitView);
- q->polish();
-}
-
-void QQuickSplitViewPrivate::layout()
-{
- if (!componentComplete)
- return;
-
- if (m_layingOut)
- return;
-
- const int count = contentModel->count();
- if (count <= 0)
- return;
-
- Q_ASSERT_X(m_fillIndex < count, Q_FUNC_INFO, qPrintable(
- QString::fromLatin1("m_fillIndex is %1 but our count is %2").arg(m_fillIndex).arg(count)));
-
- Q_ASSERT_X(!m_handle || m_handleItems.size() == count - 1, Q_FUNC_INFO, qPrintable(QString::fromLatin1(
- "Expected %1 handle items, but there are %2").arg(count - 1).arg(m_handleItems.size())));
-
- // We allow mouse events to instantly trigger layouts, whereas with e.g.
- // attached properties being set, we require a delayed layout.
- // To prevent recursive calls during mouse events, we need this guard.
- QBoolBlocker guard(m_layingOut, true);
-
- const bool horizontal = isHorizontal();
- qCDebug(qlcQQuickSplitView) << "laying out" << count << "split items"
- << (horizontal ? "horizontally" : "vertically") << "in SplitView" << q_func();
-
- qreal usedWidth = 0;
- qreal usedHeight = 0;
- int indexBeingResizedDueToDrag = -1;
-
- qCDebug(qlcQQuickSplitView) << " resizing:";
-
- // First, resize the items. We need to do this first because otherwise fill
- // items would take up all of the remaining space as soon as they are encountered.
- layoutResizeSplitItems(usedWidth, usedHeight, indexBeingResizedDueToDrag);
-
- qCDebug(qlcQQuickSplitView).nospace()
- << " - (remaining width=" << width - usedWidth
- << " remaining height=" << height - usedHeight << ")";
-
- // Give the fill item the remaining space.
- QQuickItem *fillItem = qobject_cast<QQuickItem*>(contentModel->object(m_fillIndex));
- layoutResizeFillItem(fillItem, usedWidth, usedHeight, indexBeingResizedDueToDrag);
-
- qCDebug(qlcQQuickSplitView) << " positioning:";
-
- // Position the items.
- layoutPositionItems(fillItem);
-
- qCDebug(qlcQQuickSplitView).nospace() << "finished layouting";
-}
-
-void QQuickSplitViewPrivate::createHandles()
-{
- Q_ASSERT(m_handle);
- // A handle only makes sense if there are two items on either side.
- if (contentModel->count() <= 1)
- return;
-
- // Create new handle items if there aren't enough.
- const int count = contentModel->count() - 1;
- qCDebug(qlcQQuickSplitView) << "creating" << count << "handles";
- m_handleItems.reserve(count);
- for (int i = 0; i < count; ++i)
- createHandleItem(i);
-}
-
-void QQuickSplitViewPrivate::createHandleItem(int index)
-{
- Q_Q(QQuickSplitView);
- if (contentModel->count() <= 1)
- return;
-
- qCDebug(qlcQQuickSplitView) << "- creating handle for split item at index" << index
- << "from handle component" << m_handle;
-
- // If we don't use the correct context, it won't be possible to refer to
- // the control's id from within the delegate.
- QQmlContext *creationContext = m_handle->creationContext();
- // The component might not have been created in QML, in which case
- // the creation context will be null and we have to create it ourselves.
- if (!creationContext)
- creationContext = qmlContext(q);
- QQmlContext *context = new QQmlContext(creationContext, q);
- context->setContextObject(q);
- QQuickItem *item = qobject_cast<QQuickItem*>(m_handle->beginCreate(context));
- if (item) {
- // Insert the item to our list of items *before* its parent is set to us,
- // so that we can avoid it being added as a content item by checking
- // if it is in the list in isContent().
- m_handleItems.insert(index, item);
-
- item->setParentItem(q);
-
- m_handle->completeCreate();
- resizeHandle(item);
- }
-}
-
-void QQuickSplitViewPrivate::removeExcessHandles()
-{
- int excess = m_handleItems.size() - qMax(0, contentModel->count() - 1);
- for (; excess > 0; --excess) {
- QQuickItem *handleItem = m_handleItems.takeLast();
- delete handleItem;
- }
-}
-
-qreal QQuickSplitViewPrivate::accumulatedSize(int firstIndex, int lastIndex) const
-{
- qreal size = 0.0;
- const bool horizontal = isHorizontal();
- for (int i = firstIndex; i <= lastIndex; ++i) {
- QQuickItem *item = qobject_cast<QQuickItem*>(contentModel->object(i));
- if (item->isVisible()) {
- if (i != m_fillIndex) {
- size += horizontal ? item->width() : item->height();
- } else {
- // If the fill item has a minimum size specified, we must respect it.
- const QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, false));
- if (attached) {
- const QQuickSplitViewAttachedPrivate *attachedPrivate
- = QQuickSplitViewAttachedPrivate::get(attached);
- if (horizontal && attachedPrivate->m_isMinimumWidthSet)
- size += attachedPrivate->m_minimumWidth;
- else if (!horizontal && attachedPrivate->m_isMinimumHeightSet)
- size += attachedPrivate->m_minimumHeight;
- }
- }
- }
-
- // Only add the handle's width if there's actually a handle for this split item index.
- if (i < lastIndex || lastIndex < contentModel->count() - 1) {
- const QQuickItem *handleItem = m_handleItems.at(i);
- if (handleItem->isVisible())
- size += horizontal ? handleItem->width() : handleItem->height();
- }
- }
- return size;
-}
-
-qreal effectiveMinimumWidth(const QQuickSplitViewAttachedPrivate *attachedPrivate)
-{
- return attachedPrivate && attachedPrivate->m_isMinimumWidthSet ? attachedPrivate->m_minimumWidth : 0;
-}
-
-qreal effectiveMinimumHeight(const QQuickSplitViewAttachedPrivate *attachedPrivate)
-{
- return attachedPrivate && attachedPrivate->m_isMinimumHeightSet ? attachedPrivate->m_minimumHeight : 0;
-}
-
-qreal effectivePreferredWidth(const QQuickSplitViewAttachedPrivate *attachedPrivate,
- const QQuickItemPrivate *itemPrivate)
-{
- return attachedPrivate && attachedPrivate->m_isPreferredWidthSet
- ? attachedPrivate->m_preferredWidth : itemPrivate->implicitWidth;
-}
-
-qreal effectivePreferredHeight(const QQuickSplitViewAttachedPrivate *attachedPrivate,
- const QQuickItemPrivate *itemPrivate)
-{
- return attachedPrivate && attachedPrivate->m_isPreferredHeightSet
- ? attachedPrivate->m_preferredHeight : itemPrivate->implicitHeight;
-}
-
-qreal effectiveMaximumWidth(const QQuickSplitViewAttachedPrivate *attachedPrivate)
-{
- return attachedPrivate && attachedPrivate->m_isMaximumWidthSet
- ? attachedPrivate->m_maximumWidth : std::numeric_limits<qreal>::infinity();
-}
-
-qreal effectiveMaximumHeight(const QQuickSplitViewAttachedPrivate *attachedPrivate)
-{
- return attachedPrivate && attachedPrivate->m_isMaximumHeightSet
- ? attachedPrivate->m_maximumHeight : std::numeric_limits<qreal>::infinity();
-}
-
-// We don't just take an index, because the item and attached properties object
-// will both be used outside of this function by calling code, so save some
-// time by not accessing them twice.
-QQuickSplitViewPrivate::EffectiveSizeData QQuickSplitViewPrivate::effectiveSizeData(
- const QQuickItemPrivate *itemPrivate, const QQuickSplitViewAttached *attached) const
-{
- EffectiveSizeData data;
- const QQuickSplitViewAttachedPrivate *attachedPrivate = attached ? QQuickSplitViewAttachedPrivate::get(attached) : nullptr;
- data.effectiveMinimumWidth = effectiveMinimumWidth(attachedPrivate);
- data.effectiveMinimumHeight = effectiveMinimumHeight(attachedPrivate);
- data.effectivePreferredWidth = effectivePreferredWidth(attachedPrivate, itemPrivate);
- data.effectivePreferredHeight = effectivePreferredHeight(attachedPrivate, itemPrivate);
- data.effectiveMaximumWidth = effectiveMaximumWidth(attachedPrivate);
- data.effectiveMaximumHeight = effectiveMaximumHeight(attachedPrivate);
- return data;
-}
-
-int QQuickSplitViewPrivate::handleIndexForSplitIndex(int splitIndex) const
-{
- // If it's the last item in the view, it doesn't have a handle, so use
- // the handle for the previous item.
- return splitIndex == contentModel->count() - 1 ? splitIndex - 1 : splitIndex;
-}
-
-void QQuickSplitViewPrivate::destroyHandles()
-{
- qDeleteAll(m_handleItems);
- m_handleItems.clear();
-}
-
-void QQuickSplitViewPrivate::resizeHandle(QQuickItem *handleItem)
-{
- const bool horizontal = isHorizontal();
- handleItem->setWidth(horizontal ? handleItem->implicitWidth() : width);
- handleItem->setHeight(horizontal ? height : handleItem->implicitHeight());
-}
-
-void QQuickSplitViewPrivate::resizeHandles()
-{
- for (QQuickItem *handleItem : m_handleItems)
- resizeHandle(handleItem);
-}
-
-void QQuickSplitViewPrivate::updateHandleVisibilities()
-{
- // If this is the first item that is visible, we won't have any
- // handles yet, because we don't create a handle if we only have one item.
- if (m_handleItems.isEmpty())
- return;
-
- // If the visibility/children change makes any item the last (right/bottom-most)
- // visible item, we don't want to display a handle for it either:
- // [ visible (fill) ] | [ hidden ] | [ hidden ]
- // ^ ^
- // hidden hidden
- const int count = contentModel->count();
- int lastVisibleItemIndex = -1;
- for (int i = count - 1; i >= 0; --i) {
- const QQuickItem *item = qobject_cast<QQuickItem*>(contentModel->object(i));
- if (item->isVisible()) {
- lastVisibleItemIndex = i;
- break;
- }
- }
-
- for (int i = 0; i < count - 1; ++i) {
- const QQuickItem *item = qobject_cast<QQuickItem*>(contentModel->object(i));
- QQuickItem *handleItem = m_handleItems.at(i);
- if (i != lastVisibleItemIndex)
- handleItem->setVisible(item->isVisible());
- else
- handleItem->setVisible(false);
- qCDebug(qlcQQuickSplitView) << "set visible property of handle at index"
- << i << "to" << handleItem->isVisible();
- }
-}
-
-void QQuickSplitViewPrivate::setResizing(bool resizing)
-{
- Q_Q(QQuickSplitView);
- if (resizing == m_resizing)
- return;
-
- m_resizing = resizing;
- emit q->resizingChanged();
-}
-
-bool QQuickSplitViewPrivate::isHorizontal() const
-{
- return m_orientation == Qt::Horizontal;
-}
-
-QQuickItem *QQuickSplitViewPrivate::getContentItem()
-{
- Q_Q(QQuickSplitView);
- if (QQuickItem *item = QQuickContainerPrivate::getContentItem())
- return item;
-
- // TODO: why are several created?
- return new QQuickContentItem(q);
-}
-
-void QQuickSplitViewPrivate::handlePress(const QPointF &point)
-{
- Q_Q(QQuickSplitView);
- QQuickContainerPrivate::handlePress(point);
-
- QQuickItem *pressedItem = q->childAt(point.x(), point.y());
- const int pressedHandleIndex = m_handleItems.indexOf(pressedItem);
- if (pressedHandleIndex != -1) {
- m_pressedHandleIndex = pressedHandleIndex;
- m_pressPos = point;
- m_mousePos = point;
-
- const QQuickItem *leftOrTopItem = qobject_cast<QQuickItem*>(contentModel->object(m_pressedHandleIndex));
- const QQuickItem *rightOrBottomItem = qobject_cast<QQuickItem*>(contentModel->object(m_pressedHandleIndex + 1));
- const bool isHorizontal = m_orientation == Qt::Horizontal;
- m_leftOrTopItemSizeBeforePress = isHorizontal ? leftOrTopItem->width() : leftOrTopItem->height();
- m_rightOrBottomItemSizeBeforePress = isHorizontal ? rightOrBottomItem->width() : rightOrBottomItem->height();
- m_handlePosBeforePress = pressedItem->position();
-
- // Avoid e.g. Flickable stealing our drag if we're inside it.
- q->setKeepMouseGrab(true);
-
- // Force the attached object to be created since we rely on it.
- QQuickSplitHandleAttached *handleAttached = qobject_cast<QQuickSplitHandleAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitHandleAttached>(pressedItem, true));
- QQuickSplitHandleAttachedPrivate::get(handleAttached)->setPressed(true);
-
- setResizing(true);
-
- qCDebug(qlcQQuickSplitViewMouse).nospace() << "handled press -"
- << " left/top index=" << m_pressedHandleIndex << ","
- << " size before press=" << m_leftOrTopItemSizeBeforePress << ","
- << " right/bottom index=" << m_pressedHandleIndex + 1 << ","
- << " size before press=" << m_rightOrBottomItemSizeBeforePress;
- }
-}
-
-void QQuickSplitViewPrivate::handleMove(const QPointF &point)
-{
- QQuickContainerPrivate::handleMove(point);
-
- if (m_pressedHandleIndex != -1) {
- m_mousePos = point;
- // Don't request layouts for input events because we want
- // resizing to be as responsive and smooth as possible.
- updatePolish();
- }
-}
-
-void QQuickSplitViewPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickSplitView);
- QQuickContainerPrivate::handleRelease(point);
-
- if (m_pressedHandleIndex != -1) {
- QQuickItem *pressedHandle = m_handleItems.at(m_pressedHandleIndex);
- QQuickSplitHandleAttached *handleAttached = qobject_cast<QQuickSplitHandleAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitHandleAttached>(pressedHandle, true));
- QQuickSplitHandleAttachedPrivate::get(handleAttached)->setPressed(false);
- }
-
- setResizing(false);
-
- m_pressedHandleIndex = -1;
- m_pressPos = QPointF();
- m_mousePos = QPointF();
- m_handlePosBeforePress = QPointF();
- m_leftOrTopItemSizeBeforePress = 0.0;
- m_rightOrBottomItemSizeBeforePress = 0.0;
- q->setKeepMouseGrab(false);
-}
-
-void QQuickSplitViewPrivate::itemVisibilityChanged(QQuickItem *item)
-{
- const int itemIndex = contentModel->indexOf(item, nullptr);
- Q_ASSERT(itemIndex != -1);
-
- qCDebug(qlcQQuickSplitView) << "visible property of split item"
- << item << "at index" << itemIndex << "changed to" << item->isVisible();
-
- // The visibility of an item just changed, so we need to update the visibility
- // of the corresponding handle (if one exists).
-
- const int handleIndex = handleIndexForSplitIndex(itemIndex);
- QQuickItem *handleItem = m_handleItems.at(handleIndex);
- handleItem->setVisible(item->isVisible());
-
- qCDebug(qlcQQuickSplitView) << "set visible property of handle item"
- << handleItem << "at index" << handleIndex << "to" << item->isVisible();
-
- updateHandleVisibilities();
- updateFillIndex();
- requestLayout();
-}
-
-void QQuickSplitViewPrivate::itemImplicitWidthChanged(QQuickItem *)
-{
- requestLayout();
-}
-
-void QQuickSplitViewPrivate::itemImplicitHeightChanged(QQuickItem *)
-{
- requestLayout();
-}
-
-void QQuickSplitViewPrivate::updatePolish()
-{
- layout();
-}
-
-QQuickSplitViewPrivate *QQuickSplitViewPrivate::get(QQuickSplitView *splitView)
-{
- return splitView->d_func();
-}
-
-QQuickSplitView::QQuickSplitView(QQuickItem *parent)
- : QQuickContainer(*(new QQuickSplitViewPrivate), parent)
-{
- Q_D(QQuickSplitView);
- d->changeTypes |= QQuickItemPrivate::Visibility;
-
- setAcceptedMouseButtons(Qt::LeftButton);
-}
-
-QQuickSplitView::QQuickSplitView(QQuickSplitViewPrivate &dd, QQuickItem *parent)
- : QQuickContainer(dd, parent)
-{
- Q_D(QQuickSplitView);
- d->changeTypes |= QQuickItemPrivate::Visibility;
-
- setAcceptedMouseButtons(Qt::LeftButton);
-}
-
-QQuickSplitView::~QQuickSplitView()
-{
- Q_D(QQuickSplitView);
- for (int i = 0; i < d->contentModel->count(); ++i) {
- QQuickItem *item = qobject_cast<QQuickItem*>(d->contentModel->object(i));
- d->removeImplicitSizeListener(item);
- }
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::SplitView::orientation
-
- This property holds the orientation of the SplitView.
-
- The orientation determines how the split items are laid out:
-
- Possible values:
- \value Qt.Horizontal The items are laid out horizontally (default).
- \value Qt.Vertical The items are laid out vertically.
-*/
-Qt::Orientation QQuickSplitView::orientation() const
-{
- Q_D(const QQuickSplitView);
- return d->m_orientation;
-}
-
-void QQuickSplitView::setOrientation(Qt::Orientation orientation)
-{
- Q_D(QQuickSplitView);
- if (orientation == d->m_orientation)
- return;
-
- d->m_orientation = orientation;
- d->resizeHandles();
- d->requestLayout();
- emit orientationChanged();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::SplitView::resizing
- \readonly
-
- This property is \c true when the user is resizing
- split items by dragging on the splitter handles.
-*/
-bool QQuickSplitView::isResizing() const
-{
- Q_D(const QQuickSplitView);
- return d->m_resizing;
-}
-
-/*!
- \qmlproperty Component QtQuick.Controls::SplitView::handle
-
- This property holds the handle component.
-
- An instance of this component will be instantiated \c {count - 1}
- times, as long as \l count is greater than than \c {1}.
-
- The following table explains how each handle will be resized
- depending on the orientation of the split view:
-
- \table
- \header
- \li Orientation
- \li Handle Width
- \li Handle Height
- \row
- \li \c Qt.Horizontal
- \li \c implicitWidth
- \li The \l height of the SplitView.
- \row
- \li \c Qt.Vertical
- \li The \l width of the SplitView.
- \li \c implicitHeight
- \endtable
-
- \sa {Customizing SplitView}
-*/
-QQmlComponent *QQuickSplitView::handle()
-{
- Q_D(const QQuickSplitView);
- return d->m_handle;
-}
-
-void QQuickSplitView::setHandle(QQmlComponent *handle)
-{
- Q_D(QQuickSplitView);
- if (handle == d->m_handle)
- return;
-
- qCDebug(qlcQQuickSplitView) << "setting handle" << handle;
-
- if (d->m_handle)
- d->destroyHandles();
-
- d->m_handle = handle;
-
- if (d->m_handle)
- d->createHandles();
-
- d->requestLayout();
-
- emit handleChanged();
-}
-
-bool QQuickSplitView::isContent(QQuickItem *item) const
-{
- Q_D(const QQuickSplitView);
- if (!qmlContext(item))
- return false;
-
- if (QQuickItemPrivate::get(item)->isTransparentForPositioner())
- return false;
-
- return !d->m_handleItems.contains(item);
-}
-
-QQuickSplitViewAttached *QQuickSplitView::qmlAttachedProperties(QObject *object)
-{
- return new QQuickSplitViewAttached(object);
-}
-
-/*!
- \qmlmethod var QtQuick.Controls::SplitView::saveState()
-
- Saves the preferred sizes of split items into a byte array and returns it.
-
- \sa {Serializing SplitView's State}, restoreState()
-*/
-QVariant QQuickSplitView::saveState()
-{
- Q_D(QQuickSplitView);
- qCDebug(qlcQQuickSplitViewState) << "saving state for split items in" << this;
-
- // Save the preferred sizes of each split item.
- QCborArray cborArray;
- for (int i = 0; i < d->contentModel->count(); ++i) {
- const QQuickItem *item = qobject_cast<QQuickItem*>(d->contentModel->object(i));
- const QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, false));
- // Don't serialise stuff if we don't need to. If a split item was given a preferred
- // size in QML or it was dragged, it will have an attached object and either
- // m_isPreferredWidthSet or m_isPreferredHeightSet (or both) will be true,
- // so items without these can be skipped. We write the index of each item
- // that has data so that we know which item to set it on when restoring.
- if (!attached)
- continue;
-
- const QQuickSplitViewAttachedPrivate *attachedPrivate = QQuickSplitViewAttachedPrivate::get(attached);
- if (!attachedPrivate->m_isPreferredWidthSet && !attachedPrivate->m_isPreferredHeightSet)
- continue;
-
- QCborMap cborMap;
- cborMap[QLatin1String("index")] = i;
- if (attachedPrivate->m_isPreferredWidthSet) {
- cborMap[QLatin1String("preferredWidth")] = static_cast<double>(attachedPrivate->m_preferredWidth);
-
- qCDebug(qlcQQuickSplitViewState).nospace() << "- wrote preferredWidth of "
- << attachedPrivate->m_preferredWidth << " for split item " << item << " at index " << i;
- }
- if (attachedPrivate->m_isPreferredHeightSet) {
- cborMap[QLatin1String("preferredHeight")] = static_cast<double>(attachedPrivate->m_preferredHeight);
-
- qCDebug(qlcQQuickSplitViewState).nospace() << "- wrote preferredHeight of "
- << attachedPrivate->m_preferredHeight << " for split item " << item << " at index " << i;
- }
-
- cborArray.append(cborMap);
- }
-
- const QByteArray byteArray = cborArray.toCborValue().toCbor();
- qCDebug(qlcQQuickSplitViewState) << "the resulting byte array is:" << byteArray;
- return QVariant(byteArray);
-}
-
-/*!
- \qmlmethod bool QtQuick.Controls::SplitView::restoreState(state)
-
- Reads the preferred sizes from \a state and applies them to the split items.
-
- Returns \c true if the state was successfully restored, otherwise \c false.
-
- \sa {Serializing SplitView's State}, saveState()
-*/
-bool QQuickSplitView::restoreState(const QVariant &state)
-{
- const QByteArray cborByteArray = state.toByteArray();
- Q_D(QQuickSplitView);
- if (cborByteArray.isEmpty())
- return false;
-
- QCborParserError parserError;
- const QCborValue cborValue(QCborValue::fromCbor(cborByteArray, &parserError));
- if (parserError.error != QCborError::NoError) {
- qmlWarning(this) << "Error reading SplitView state:" << parserError.errorString();
- return false;
- }
-
- qCDebug(qlcQQuickSplitViewState) << "restoring state for split items of" << this
- << "from the following string:" << state;
-
- const QCborArray cborArray(cborValue.toArray());
- const int ourCount = d->contentModel->count();
- // This could conceivably happen if items were removed from the SplitView since the state was last saved.
- if (cborArray.size() > ourCount) {
- qmlWarning(this) << "Error reading SplitView state: expected "
- << ourCount << " or less split items but got " << cborArray.size();
- return false;
- }
-
- for (auto it = cborArray.constBegin(); it != cborArray.constEnd(); ++it) {
- QCborMap cborMap(it->toMap());
- const int splitItemIndex = cborMap.value(QLatin1String("index")).toInteger();
- const bool isPreferredWidthSet = cborMap.contains(QLatin1String("preferredWidth"));
- const bool isPreferredHeightSet = cborMap.contains(QLatin1String("preferredHeight"));
-
- QQuickItem *item = qobject_cast<QQuickItem*>(d->contentModel->object(splitItemIndex));
- // If the split item does not have a preferred size specified in QML, it could still have
- // been resized via dragging before it was saved. In this case, it won't have an
- // attached object upon application startup, so we create it.
- QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, true));
- if (isPreferredWidthSet) {
- const qreal preferredWidth = cborMap.value(QLatin1String("preferredWidth")).toDouble();
- attached->setPreferredWidth(preferredWidth);
- }
- if (isPreferredHeightSet) {
- const qreal preferredHeight = cborMap.value(QLatin1String("preferredHeight")).toDouble();
- attached->setPreferredHeight(preferredHeight);
- }
-
- const QQuickSplitViewAttachedPrivate *attachedPrivate = QQuickSplitViewAttachedPrivate::get(attached);
- qCDebug(qlcQQuickSplitViewState).nospace()
- << "- restored the following state for split item " << item << " at index " << splitItemIndex
- << ": preferredWidthSet=" << attachedPrivate->m_isPreferredWidthSet
- << " preferredWidth=" << attachedPrivate->m_preferredWidth
- << " preferredHeightSet=" << attachedPrivate->m_isPreferredHeightSet
- << " preferredHeight=" << attachedPrivate->m_preferredHeight;
- }
-
- return true;
-}
-
-void QQuickSplitView::componentComplete()
-{
- Q_D(QQuickSplitView);
- QQuickControl::componentComplete();
- d->resizeHandles();
- d->updateFillIndex();
- d->updatePolish();
-}
-
-void QQuickSplitView::hoverMoveEvent(QHoverEvent *event)
-{
- Q_D(QQuickSplitView);
- QQuickContainer::hoverMoveEvent(event);
-
- QQuickItem *hoveredItem = childAt(event->pos().x(), event->pos().y());
- if (!hoveredItem) {
- // No handle is hovered.
- if (d->m_hoveredHandleIndex != -1) {
- // The previously-hovered handle is no longer hovered.
- QQuickItem *oldHoveredHandle = d->m_handleItems.at(d->m_hoveredHandleIndex);
- QQuickSplitHandleAttached *handleAttached = qobject_cast<QQuickSplitHandleAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitHandleAttached>(oldHoveredHandle, true));
- QQuickSplitHandleAttachedPrivate::get(handleAttached)->setHovered(false);
- }
-
- qCDebug(qlcQQuickSplitViewMouse) << "handle item at index" << d->m_hoveredHandleIndex << "is no longer hovered";
-
- d->m_hoveredHandleIndex = -1;
-
-#if QT_CONFIG(cursor)
- setCursor(Qt::ArrowCursor);
-#endif
- } else {
- // A child item of ours is hovered.
-
- // First, clear the hovered flag of any previously-hovered handle.
- if (d->m_hoveredHandleIndex != -1) {
- QQuickItem *oldHoveredHandle = d->m_handleItems.at(d->m_hoveredHandleIndex);
- QQuickSplitHandleAttached *handleAttached = qobject_cast<QQuickSplitHandleAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitHandleAttached>(oldHoveredHandle, true));
- QQuickSplitHandleAttachedPrivate::get(handleAttached)->setHovered(false);
- }
-
- // Now check if the newly hovered item is actually a handle.
- const int hoveredHandleIndex = d->m_handleItems.indexOf(hoveredItem);
- if (hoveredHandleIndex == -1)
- return;
-
- // It's a handle, so it's now hovered.
- d->m_hoveredHandleIndex = hoveredHandleIndex;
-
- QQuickSplitHandleAttached *handleAttached = qobject_cast<QQuickSplitHandleAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitHandleAttached>(hoveredItem, true));
- QQuickSplitHandleAttachedPrivate::get(handleAttached)->setHovered(true);
-
-#if QT_CONFIG(cursor)
- setCursor(d->m_orientation == Qt::Horizontal ? Qt::SplitHCursor : Qt::SplitVCursor);
-#endif
-
- qCDebug(qlcQQuickSplitViewMouse) << "handle item at index" << d->m_hoveredHandleIndex << "is now hovered";
- }
-}
-
-void QQuickSplitView::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickSplitView);
- QQuickControl::geometryChanged(newGeometry, oldGeometry);
- d->resizeHandles();
- d->requestLayout();
-}
-
-void QQuickSplitView::itemAdded(int index, QQuickItem *item)
-{
- Q_D(QQuickSplitView);
- if (QQuickItemPrivate::get(item)->isTransparentForPositioner())
- return;
-
- const int count = d->contentModel->count();
- qCDebug(qlcQQuickSplitView).nospace() << "split item " << item << " added at index " << index
- << "; there are now " << count << " items";
-
- QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, false));
- if (attached)
- QQuickSplitViewAttachedPrivate::get(attached)->setView(this);
-
- // Only need to add handles if we have more than one split item.
- if (count > 1) {
- // If the item was added at the end, it shouldn't get a handle;
- // the handle always goes to the split item on the left.
- d->createHandleItem(index < count - 1 ? index : index - 1);
- }
-
- d->addImplicitSizeListener(item);
-
- d->updateHandleVisibilities();
- d->updateFillIndex();
- d->requestLayout();
-}
-
-void QQuickSplitView::itemMoved(int index, QQuickItem *item)
-{
- Q_D(QQuickSplitView);
- if (QQuickItemPrivate::get(item)->isTransparentForPositioner())
- return;
-
- qCDebug(qlcQQuickSplitView) << "split item" << item << "moved to index" << index;
-
- d->updateHandleVisibilities();
- d->updateFillIndex();
- d->requestLayout();
-}
-
-void QQuickSplitView::itemRemoved(int index, QQuickItem *item)
-{
- Q_D(QQuickSplitView);
- if (QQuickItemPrivate::get(item)->isTransparentForPositioner())
- return;
-
- qCDebug(qlcQQuickSplitView).nospace() << "split item " << item << " removed from index " << index
- << "; there are now " << d->contentModel->count() << " items";
-
- // Clear hovered/pressed handle if there are any.
- if (d->m_hoveredHandleIndex != -1 || d->m_pressedHandleIndex != -1) {
- const int handleIndex = d->m_hoveredHandleIndex != -1 ? d->m_hoveredHandleIndex : d->m_pressedHandleIndex;
- QQuickItem *itemHandle = d->m_handleItems.at(handleIndex);
- QQuickSplitHandleAttached *handleAttached = qobject_cast<QQuickSplitHandleAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitHandleAttached>(itemHandle, false));
- if (handleAttached) {
- auto handleAttachedPrivate = QQuickSplitHandleAttachedPrivate::get(handleAttached);
- handleAttachedPrivate->setHovered(false);
- handleAttachedPrivate->setPressed(false);
- }
-
- setKeepMouseGrab(false);
- d->m_hoveredHandleIndex = -1;
- d->m_pressedHandleIndex = -1;
- }
-
- // Unset any attached properties since the item is no longer owned by us.
- QQuickSplitViewAttached *attached = qobject_cast<QQuickSplitViewAttached*>(
- qmlAttachedPropertiesObject<QQuickSplitView>(item, false));
- if (attached)
- QQuickSplitViewAttachedPrivate::get(attached)->setView(this);
-
- d->removeImplicitSizeListener(item);
-
- d->removeExcessHandles();
- d->updateHandleVisibilities();
- d->updateFillIndex();
- d->requestLayout();
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickSplitView::accessibleRole() const
-{
- return QAccessible::Pane;
-}
-#endif
-
-QQuickSplitViewAttached::QQuickSplitViewAttached(QObject *parent)
- : QObject(*(new QQuickSplitViewAttachedPrivate), parent)
-{
- Q_D(QQuickSplitViewAttached);
- QQuickItem *item = qobject_cast<QQuickItem *>(parent);
- if (!item) {
- qmlWarning(parent) << "SplitView: attached properties can only be used on Items";
- return;
- }
-
- if (QQuickItemPrivate::get(item)->isTransparentForPositioner())
- return;
-
- d->m_splitItem = item;
-
- // Child items get added to SplitView's contentItem, so we have to ensure
- // that exists first before trying to set m_splitView.
- // Apparently, in some cases it's normal for the parent item
- // to not exist until shortly after this constructor has run.
- if (!item->parentItem())
- return;
-
- // This will get hit when attached SplitView properties are imperatively set
- // on an item that previously had none set, for example.
- QQuickSplitView *splitView = qobject_cast<QQuickSplitView*>(item->parentItem()->parentItem());
- if (!splitView) {
- qmlWarning(parent) << "SplitView: attached properties must be accessed through a direct child of SplitView";
- return;
- }
-
- d->setView(splitView);
-}
-
-/*!
- \qmlattachedproperty SplitView QtQuick.Controls::SplitView::view
-
- This attached property holds the split view of the item it is
- attached to, or \c null if the item is not in a split view.
-*/
-QQuickSplitView *QQuickSplitViewAttached::view() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_splitView;
-}
-
-/*!
- \qmlattachedproperty real QtQuick.Controls::SplitView::minimumWidth
-
- This attached property controls the minimum width of the split item.
- The \l preferredWidth is bound within the \l minimumWidth and
- \l maximumWidth. A split item cannot be dragged to be smaller than
- its \c minimumWidth.
-
- The default value is \c 0. To reset this property to its default value,
- set it to \c undefined.
-
- \sa maximumWidth, preferredWidth, fillWidth, minimumHeight
-*/
-qreal QQuickSplitViewAttached::minimumWidth() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_minimumWidth;
-}
-
-void QQuickSplitViewAttached::setMinimumWidth(qreal width)
-{
- Q_D(QQuickSplitViewAttached);
- d->m_isMinimumWidthSet = true;
- if (qFuzzyCompare(width, d->m_minimumWidth))
- return;
-
- d->m_minimumWidth = width;
- d->requestLayoutView();
- emit minimumWidthChanged();
-}
-
-void QQuickSplitViewAttached::resetMinimumWidth()
-{
- Q_D(QQuickSplitViewAttached);
- const qreal oldEffectiveMinimumWidth = effectiveMinimumWidth(d);
-
- d->m_isMinimumWidthSet = false;
- d->m_minimumWidth = -1;
-
- const qreal newEffectiveMinimumWidth = effectiveMinimumWidth(d);
- if (qFuzzyCompare(newEffectiveMinimumWidth, oldEffectiveMinimumWidth))
- return;
-
- d->requestLayoutView();
- emit minimumWidthChanged();
-}
-
-/*!
- \qmlattachedproperty real QtQuick.Controls::SplitView::minimumHeight
-
- This attached property controls the minimum height of the split item.
- The \l preferredHeight is bound within the \l minimumHeight and
- \l maximumHeight. A split item cannot be dragged to be smaller than
- its \c minimumHeight.
-
- The default value is \c 0. To reset this property to its default value,
- set it to \c undefined.
-
- \sa maximumHeight, preferredHeight, fillHeight, minimumWidth
-*/
-qreal QQuickSplitViewAttached::minimumHeight() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_minimumHeight;
-}
-
-void QQuickSplitViewAttached::setMinimumHeight(qreal height)
-{
- Q_D(QQuickSplitViewAttached);
- d->m_isMinimumHeightSet = true;
- if (qFuzzyCompare(height, d->m_minimumHeight))
- return;
-
- d->m_minimumHeight = height;
- d->requestLayoutView();
- emit minimumHeightChanged();
-}
-
-void QQuickSplitViewAttached::resetMinimumHeight()
-{
- Q_D(QQuickSplitViewAttached);
- const qreal oldEffectiveMinimumHeight = effectiveMinimumHeight(d);
-
- d->m_isMinimumHeightSet = false;
- d->m_minimumHeight = -1;
-
- const qreal newEffectiveMinimumHeight = effectiveMinimumHeight(d);
- if (qFuzzyCompare(newEffectiveMinimumHeight, oldEffectiveMinimumHeight))
- return;
-
- d->requestLayoutView();
- emit minimumHeightChanged();
-}
-
-/*!
- \qmlattachedproperty real QtQuick.Controls::SplitView::preferredWidth
-
- This attached property controls the preferred width of the split item. The
- preferred width will be used as the size of the item, and will be bound
- within the \l minimumWidth and \l maximumWidth. If the preferred width
- is not set, the item's \l {Item::}{implicitWidth} will be used.
-
- When a split item is resized, the preferredWidth will be set in order
- to keep track of the new size.
-
- By default, this property is not set, and therefore
- \l {Item::}{implicitWidth} will be used instead. To reset this property to
- its default value, set it to \c undefined.
-
- \note Do not set the \l width property of a split item, as it will be
- overwritten upon each layout of the SplitView.
-
- \sa minimumWidth, maximumWidth, fillWidth, preferredHeight
-*/
-qreal QQuickSplitViewAttached::preferredWidth() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_preferredWidth;
-}
-
-void QQuickSplitViewAttached::setPreferredWidth(qreal width)
-{
- Q_D(QQuickSplitViewAttached);
- d->m_isPreferredWidthSet = true;
- // Make sure that we clear this flag now, before we emit the change signals
- // which could cause another setter to be called.
- auto splitViewPrivate = d->m_splitView ? QQuickSplitViewPrivate::get(d->m_splitView) : nullptr;
- const bool ignoreNextLayoutRequest = splitViewPrivate && splitViewPrivate->m_ignoreNextLayoutRequest;
- if (splitViewPrivate)
- splitViewPrivate->m_ignoreNextLayoutRequest = false;
-
- if (qFuzzyCompare(width, d->m_preferredWidth))
- return;
-
- d->m_preferredWidth = width;
-
- if (!ignoreNextLayoutRequest) {
- // We are currently in the middle of performing a layout, and the user (not our internal code)
- // changed the preferred width of one of the split items, so request another layout.
- d->requestLayoutView();
- }
-
- emit preferredWidthChanged();
-}
-
-void QQuickSplitViewAttached::resetPreferredWidth()
-{
- Q_D(QQuickSplitViewAttached);
- const qreal oldEffectivePreferredWidth = effectivePreferredWidth(
- d, QQuickItemPrivate::get(d->m_splitItem));
-
- d->m_isPreferredWidthSet = false;
- d->m_preferredWidth = -1;
-
- const qreal newEffectivePreferredWidth = effectivePreferredWidth(
- d, QQuickItemPrivate::get(d->m_splitItem));
- if (qFuzzyCompare(newEffectivePreferredWidth, oldEffectivePreferredWidth))
- return;
-
- d->requestLayoutView();
- emit preferredWidthChanged();
-}
-
-/*!
- \qmlattachedproperty real QtQuick.Controls::SplitView::preferredHeight
-
- This attached property controls the preferred height of the split item. The
- preferred height will be used as the size of the item, and will be bound
- within the \l minimumHeight and \l maximumHeight. If the preferred height
- is not set, the item's \l {Item::}{implicitHeight} will be used.
-
- When a split item is resized, the preferredHeight will be set in order
- to keep track of the new size.
-
- By default, this property is not set, and therefore
- \l {Item::}{implicitHeight} will be used instead. To reset this property to
- its default value, set it to \c undefined.
-
- \note Do not set the \l height property of a split item, as it will be
- overwritten upon each layout of the SplitView.
-
- \sa minimumHeight, maximumHeight, fillHeight, preferredWidth
-*/
-qreal QQuickSplitViewAttached::preferredHeight() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_preferredHeight;
-}
-
-void QQuickSplitViewAttached::setPreferredHeight(qreal height)
-{
- Q_D(QQuickSplitViewAttached);
- d->m_isPreferredHeightSet = true;
- // Make sure that we clear this flag now, before we emit the change signals
- // which could cause another setter to be called.
- auto splitViewPrivate = d->m_splitView ? QQuickSplitViewPrivate::get(d->m_splitView) : nullptr;
- const bool ignoreNextLayoutRequest = splitViewPrivate && splitViewPrivate->m_ignoreNextLayoutRequest;
- if (splitViewPrivate)
- splitViewPrivate->m_ignoreNextLayoutRequest = false;
-
- if (qFuzzyCompare(height, d->m_preferredHeight))
- return;
-
- d->m_preferredHeight = height;
-
- if (!ignoreNextLayoutRequest) {
- // We are currently in the middle of performing a layout, and the user (not our internal code)
- // changed the preferred height of one of the split items, so request another layout.
- d->requestLayoutView();
- }
-
- emit preferredHeightChanged();
-}
-
-void QQuickSplitViewAttached::resetPreferredHeight()
-{
- Q_D(QQuickSplitViewAttached);
- const qreal oldEffectivePreferredHeight = effectivePreferredHeight(
- d, QQuickItemPrivate::get(d->m_splitItem));
-
- d->m_isPreferredHeightSet = false;
- d->m_preferredHeight = -1;
-
- const qreal newEffectivePreferredHeight = effectivePreferredHeight(
- d, QQuickItemPrivate::get(d->m_splitItem));
- if (qFuzzyCompare(newEffectivePreferredHeight, oldEffectivePreferredHeight))
- return;
-
- d->requestLayoutView();
- emit preferredHeightChanged();
-}
-
-/*!
- \qmlattachedproperty real QtQuick.Controls::SplitView::maximumWidth
-
- This attached property controls the maximum width of the split item.
- The \l preferredWidth is bound within the \l minimumWidth and
- \l maximumWidth. A split item cannot be dragged to be larger than
- its \c maximumWidth.
-
- The default value is \c Infinity. To reset this property to its default
- value, set it to \c undefined.
-
- \sa minimumWidth, preferredWidth, fillWidth, maximumHeight
-*/
-qreal QQuickSplitViewAttached::maximumWidth() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_maximumWidth;
-}
-
-void QQuickSplitViewAttached::setMaximumWidth(qreal width)
-{
- Q_D(QQuickSplitViewAttached);
- d->m_isMaximumWidthSet = true;
- if (qFuzzyCompare(width, d->m_maximumWidth))
- return;
-
- d->m_maximumWidth = width;
- d->requestLayoutView();
- emit maximumWidthChanged();
-}
-
-void QQuickSplitViewAttached::resetMaximumWidth()
-{
- Q_D(QQuickSplitViewAttached);
- const qreal oldEffectiveMaximumWidth = effectiveMaximumWidth(d);
-
- d->m_isMaximumWidthSet = false;
- d->m_maximumWidth = -1;
-
- const qreal newEffectiveMaximumWidth = effectiveMaximumWidth(d);
- if (qFuzzyCompare(newEffectiveMaximumWidth, oldEffectiveMaximumWidth))
- return;
-
- d->requestLayoutView();
- emit maximumWidthChanged();
-}
-
-/*!
- \qmlattachedproperty real QtQuick.Controls::SplitView::maximumHeight
-
- This attached property controls the maximum height of the split item.
- The \l preferredHeight is bound within the \l minimumHeight and
- \l maximumHeight. A split item cannot be dragged to be larger than
- its \c maximumHeight.
-
- The default value is \c Infinity. To reset this property to its default
- value, set it to \c undefined.
-
- \sa minimumHeight, preferredHeight, fillHeight, maximumWidth
-*/
-qreal QQuickSplitViewAttached::maximumHeight() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_maximumHeight;
-}
-
-void QQuickSplitViewAttached::setMaximumHeight(qreal height)
-{
- Q_D(QQuickSplitViewAttached);
- d->m_isMaximumHeightSet = true;
- if (qFuzzyCompare(height, d->m_maximumHeight))
- return;
-
- d->m_maximumHeight = height;
- d->requestLayoutView();
- emit maximumHeightChanged();
-}
-
-void QQuickSplitViewAttached::resetMaximumHeight()
-{
- Q_D(QQuickSplitViewAttached);
- const qreal oldEffectiveMaximumHeight = effectiveMaximumHeight(d);
-
- d->m_isMaximumHeightSet = false;
- d->m_maximumHeight = -1;
-
- const qreal newEffectiveMaximumHeight = effectiveMaximumHeight(d);
- if (qFuzzyCompare(newEffectiveMaximumHeight, oldEffectiveMaximumHeight))
- return;
-
- d->requestLayoutView();
- emit maximumHeightChanged();
-}
-
-/*!
- \qmlattachedproperty bool QtQuick.Controls::SplitView::fillWidth
-
- This attached property controls whether the item takes the remaining space
- in the split view after all other items have been laid out.
-
- By default, the last visible child of the split view will have this set,
- but it can be changed by explicitly setting \c fillWidth to \c true on
- another item.
-
- The width of a split item with \c fillWidth set to \c true is still
- restricted within its \l minimumWidth and \l maximumWidth.
-
- \sa minimumWidth, preferredWidth, maximumWidth, fillHeight
-*/
-bool QQuickSplitViewAttached::fillWidth() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_fillWidth;
-}
-
-void QQuickSplitViewAttached::setFillWidth(bool fill)
-{
- Q_D(QQuickSplitViewAttached);
- d->m_isFillWidthSet = true;
- if (fill == d->m_fillWidth)
- return;
-
- d->m_fillWidth = fill;
- if (d->m_splitView && d->m_splitView->orientation() == Qt::Horizontal)
- QQuickSplitViewPrivate::get(d->m_splitView)->updateFillIndex();
- d->requestLayoutView();
- emit fillWidthChanged();
-}
-
-/*!
- \qmlattachedproperty bool QtQuick.Controls::SplitView::fillHeight
-
- This attached property controls whether the item takes the remaining space
- in the split view after all other items have been laid out.
-
- By default, the last visible child of the split view will have this set,
- but it can be changed by explicitly setting \c fillHeight to \c true on
- another item.
-
- The height of a split item with \c fillHeight set to \c true is still
- restricted within its \l minimumHeight and \l maximumHeight.
-
- \sa minimumHeight, preferredHeight, maximumHeight, fillWidth
-*/
-bool QQuickSplitViewAttached::fillHeight() const
-{
- Q_D(const QQuickSplitViewAttached);
- return d->m_fillHeight;
-}
-
-void QQuickSplitViewAttached::setFillHeight(bool fill)
-{
- Q_D(QQuickSplitViewAttached);
- d->m_isFillHeightSet = true;
- if (fill == d->m_fillHeight)
- return;
-
- d->m_fillHeight = fill;
- if (d->m_splitView && d->m_splitView->orientation() == Qt::Vertical)
- QQuickSplitViewPrivate::get(d->m_splitView)->updateFillIndex();
- d->requestLayoutView();
- emit fillHeightChanged();
-}
-
-QQuickSplitViewAttachedPrivate::QQuickSplitViewAttachedPrivate()
- : m_fillWidth(false)
- , m_fillHeight(false)
- , m_isFillWidthSet(false)
- , m_isFillHeightSet(false)
- , m_isMinimumWidthSet(false)
- , m_isMinimumHeightSet(false)
- , m_isPreferredWidthSet(false)
- , m_isPreferredHeightSet(false)
- , m_isMaximumWidthSet(false)
- , m_isMaximumHeightSet(false)
- , m_minimumWidth(0)
- , m_minimumHeight(0)
- , m_preferredWidth(-1)
- , m_preferredHeight(-1)
- , m_maximumWidth(std::numeric_limits<qreal>::infinity())
- , m_maximumHeight(std::numeric_limits<qreal>::infinity())
-{
-}
-
-void QQuickSplitViewAttachedPrivate::setView(QQuickSplitView *newView)
-{
- Q_Q(QQuickSplitViewAttached);
- if (newView == m_splitView)
- return;
-
- m_splitView = newView;
- qCDebug(qlcQQuickSplitView) << "set SplitView" << newView << "on attached object" << this;
- emit q->viewChanged();
-}
-
-void QQuickSplitViewAttachedPrivate::requestLayoutView()
-{
- if (m_splitView)
- QQuickSplitViewPrivate::get(m_splitView)->requestLayout();
-}
-
-QQuickSplitViewAttachedPrivate *QQuickSplitViewAttachedPrivate::get(QQuickSplitViewAttached *attached)
-{
- return attached->d_func();
-}
-
-const QQuickSplitViewAttachedPrivate *QQuickSplitViewAttachedPrivate::get(const QQuickSplitViewAttached *attached)
-{
- return attached->d_func();
-}
-
-QQuickSplitHandleAttachedPrivate::QQuickSplitHandleAttachedPrivate()
- : m_hovered(false)
- , m_pressed(false)
-{
-}
-
-void QQuickSplitHandleAttachedPrivate::setHovered(bool hovered)
-{
- Q_Q(QQuickSplitHandleAttached);
- if (hovered == m_hovered)
- return;
-
- m_hovered = hovered;
- emit q->hoveredChanged();
-}
-
-void QQuickSplitHandleAttachedPrivate::setPressed(bool pressed)
-{
- Q_Q(QQuickSplitHandleAttached);
- if (pressed == m_pressed)
- return;
-
- m_pressed = pressed;
- emit q->pressedChanged();
-}
-
-QQuickSplitHandleAttachedPrivate *QQuickSplitHandleAttachedPrivate::get(QQuickSplitHandleAttached *attached)
-{
- return attached->d_func();
-}
-
-const QQuickSplitHandleAttachedPrivate *QQuickSplitHandleAttachedPrivate::get(const QQuickSplitHandleAttached *attached)
-{
- return attached->d_func();
-}
-
-QQuickSplitHandleAttached::QQuickSplitHandleAttached(QObject *parent)
- : QObject(*(new QQuickSplitViewAttachedPrivate), parent)
-{
-}
-
-/*!
- \qmltype SplitHandle
- \inherits QtObject
- \instantiates QQuickSplitHandleAttached
- \inqmlmodule QtQuick.Controls
- \since 5.13
- \brief Provides attached properties for SplitView handles
-
- SplitHandle provides attached properties for \l SplitView handles.
-
- For split items themselves, use the attached \l SplitView properties.
-
- \sa SplitView
-*/
-
-/*!
- \qmlattachedproperty bool QtQuick.Controls::SplitHandle::hovered
-
- This attached property holds whether the split handle is hovered.
-
- \sa pressed
-*/
-bool QQuickSplitHandleAttached::isHovered() const
-{
- Q_D(const QQuickSplitHandleAttached);
- return d->m_hovered;
-}
-
-/*!
- \qmlattachedproperty bool QtQuick.Controls::SplitHandle::pressed
-
- This attached property holds whether the split handle is pressed.
-
- \sa hovered
-*/
-bool QQuickSplitHandleAttached::isPressed() const
-{
- Q_D(const QQuickSplitHandleAttached);
- return d->m_pressed;
-}
-
-QQuickSplitHandleAttached *QQuickSplitHandleAttached::qmlAttachedProperties(QObject *object)
-{
- return new QQuickSplitHandleAttached(object);
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquicksplitview_p.cpp"
diff --git a/src/quicktemplates2/qquicksplitview_p.h b/src/quicktemplates2/qquicksplitview_p.h
deleted file mode 100644
index 99001615..00000000
--- a/src/quicktemplates2/qquicksplitview_p.h
+++ /dev/null
@@ -1,218 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSPLITVIEW_P_H
-#define QQUICKSPLITVIEW_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontainer_p.h>
-#include <QtQml/qqmllist.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickSplitViewPrivate;
-class QQuickSplitViewAttached;
-class QQuickSplitViewAttachedPrivate;
-class QQuickSplitHandleAttached;
-class QQuickSplitHandleAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSplitView : public QQuickContainer
-{
- Q_OBJECT
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL)
- Q_PROPERTY(bool resizing READ isResizing NOTIFY resizingChanged)
- Q_PROPERTY(QQmlComponent *handle READ handle WRITE setHandle NOTIFY handleChanged FINAL)
-
-public:
- explicit QQuickSplitView(QQuickItem *parent = nullptr);
- ~QQuickSplitView() override;
-
- Qt::Orientation orientation() const;
- void setOrientation(Qt::Orientation orientation);
-
- bool isResizing() const;
-
- QQmlComponent *handle();
- void setHandle(QQmlComponent *handle);
-
- bool isContent(QQuickItem *item) const override;
-
- static QQuickSplitViewAttached *qmlAttachedProperties(QObject *object);
-
- // Based on the same code in QMainWindow.
- enum VersionMarkers {
- VersionMarker = 0xff
- };
- Q_INVOKABLE QVariant saveState();
- Q_INVOKABLE bool restoreState(const QVariant &state);
-
-Q_SIGNALS:
- void orientationChanged();
- void resizingChanged();
- void handleChanged();
-
-protected:
- QQuickSplitView(QQuickSplitViewPrivate &dd, QQuickItem *parent);
-
- void componentComplete() override;
- void hoverMoveEvent(QHoverEvent *event) override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
- void itemAdded(int index, QQuickItem *item) override;
- void itemMoved(int index, QQuickItem *item) override;
- void itemRemoved(int index, QQuickItem *item) override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickSplitView)
- Q_DECLARE_PRIVATE(QQuickSplitView)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSplitViewAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickSplitView *view READ view NOTIFY viewChanged FINAL)
- Q_PROPERTY(qreal minimumWidth READ minimumWidth WRITE setMinimumWidth
- RESET resetMinimumWidth NOTIFY minimumWidthChanged FINAL)
- Q_PROPERTY(qreal minimumHeight READ minimumHeight WRITE setMinimumHeight
- RESET resetMinimumHeight NOTIFY minimumHeightChanged FINAL)
- Q_PROPERTY(qreal preferredWidth READ preferredWidth WRITE setPreferredWidth
- RESET resetPreferredWidth NOTIFY preferredWidthChanged FINAL)
- Q_PROPERTY(qreal preferredHeight READ preferredHeight WRITE setPreferredHeight
- RESET resetPreferredHeight NOTIFY preferredHeightChanged FINAL)
- Q_PROPERTY(qreal maximumWidth READ maximumWidth WRITE setMaximumWidth
- RESET resetMaximumWidth NOTIFY maximumWidthChanged FINAL)
- Q_PROPERTY(qreal maximumHeight READ maximumHeight WRITE setMaximumHeight
- RESET resetMaximumHeight NOTIFY maximumHeightChanged FINAL)
- Q_PROPERTY(bool fillHeight READ fillHeight WRITE setFillHeight NOTIFY fillHeightChanged FINAL)
- Q_PROPERTY(bool fillWidth READ fillWidth WRITE setFillWidth NOTIFY fillWidthChanged FINAL)
-
-public:
- explicit QQuickSplitViewAttached(QObject *parent = nullptr);
-
- QQuickSplitView *view() const;
-
- qreal minimumWidth() const;
- void setMinimumWidth(qreal width);
- void resetMinimumWidth();
-
- qreal minimumHeight() const;
- void setMinimumHeight(qreal height);
- void resetMinimumHeight();
-
- qreal preferredWidth() const;
- void setPreferredWidth(qreal width);
- void resetPreferredWidth();
-
- qreal preferredHeight() const;
- void setPreferredHeight(qreal height);
- void resetPreferredHeight();
-
- qreal maximumWidth() const;
- void setMaximumWidth(qreal width);
- void resetMaximumWidth();
-
- qreal maximumHeight() const;
- void setMaximumHeight(qreal height);
- void resetMaximumHeight();
-
- bool fillWidth() const;
- void setFillWidth(bool fill);
-
- bool fillHeight() const;
- void setFillHeight(bool fill);
-
-Q_SIGNALS:
- void viewChanged();
- void minimumWidthChanged();
- void minimumHeightChanged();
- void preferredWidthChanged();
- void preferredHeightChanged();
- void maximumWidthChanged();
- void maximumHeightChanged();
- void fillWidthChanged();
- void fillHeightChanged();
-
-private:
- Q_DISABLE_COPY(QQuickSplitViewAttached)
- Q_DECLARE_PRIVATE(QQuickSplitViewAttached)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSplitHandleAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(bool hovered READ isHovered NOTIFY hoveredChanged FINAL)
- Q_PROPERTY(bool pressed READ isPressed NOTIFY pressedChanged FINAL)
-
-public:
- explicit QQuickSplitHandleAttached(QObject *parent = nullptr);
-
- bool isHovered() const;
- bool isPressed() const;
-
- static QQuickSplitHandleAttached *qmlAttachedProperties(QObject *object);
-
-Q_SIGNALS:
- void hoveredChanged();
- void pressedChanged();
-
-private:
- Q_DISABLE_COPY(QQuickSplitHandleAttached)
- Q_DECLARE_PRIVATE(QQuickSplitHandleAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickSplitView)
-QML_DECLARE_TYPEINFO(QQuickSplitView, QML_HAS_ATTACHED_PROPERTIES)
-
-QML_DECLARE_TYPE(QQuickSplitHandleAttached)
-QML_DECLARE_TYPEINFO(QQuickSplitHandleAttached, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKSPLITVIEW_P_H
diff --git a/src/quicktemplates2/qquicksplitview_p_p.h b/src/quicktemplates2/qquicksplitview_p_p.h
deleted file mode 100644
index 5d71d461..00000000
--- a/src/quicktemplates2/qquicksplitview_p_p.h
+++ /dev/null
@@ -1,178 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSPLITVIEW_P_P_H
-#define QQUICKSPLITVIEW_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontainer_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickSplitView;
-class QQuickSplitViewAttached;
-class QQuickSplitHandleAttached;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSplitViewPrivate : public QQuickContainerPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSplitView)
-
-public:
- void updateFillIndex();
- void layoutResizeSplitItems(qreal &usedWidth, qreal &usedHeight, int &indexBeingResizedDueToDrag);
- void layoutResizeFillItem(QQuickItem *fillItem, qreal &usedWidth, qreal &usedHeight, int indexBeingResizedDueToDrag);
- void layoutPositionItems(const QQuickItem *fillItem);
- void requestLayout();
- void layout();
- void createHandles();
- void createHandleItem(int index);
- void removeExcessHandles();
- void destroyHandles();
- void resizeHandle(QQuickItem *handleItem);
- void resizeHandles();
- void updateHandleVisibilities();
- void setResizing(bool resizing);
-
- bool isHorizontal() const;
- qreal accumulatedSize(int firstIndex, int lastIndex) const;
-
- struct EffectiveSizeData {
- qreal effectiveMinimumWidth;
- qreal effectiveMinimumHeight;
- qreal effectivePreferredWidth;
- qreal effectivePreferredHeight;
- qreal effectiveMaximumWidth;
- qreal effectiveMaximumHeight;
- };
-
- EffectiveSizeData effectiveSizeData(const QQuickItemPrivate *itemPrivate,
- const QQuickSplitViewAttached *attached) const;
-
- int handleIndexForSplitIndex(int splitIndex) const;
-
- QQuickItem *getContentItem() override;
- void handlePress(const QPointF &point) override;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
-
- void itemVisibilityChanged(QQuickItem *item) override;
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- void updatePolish() override;
-
- static QQuickSplitViewPrivate *get(QQuickSplitView *splitView);
-
- Qt::Orientation m_orientation = Qt::Horizontal;
- QQmlComponent *m_handle = nullptr;
- QVector<QQuickItem*> m_handleItems;
- int m_hoveredHandleIndex = -1;
- int m_pressedHandleIndex = -1;
- QPointF m_pressPos;
- QPointF m_mousePos;
- QPointF m_handlePosBeforePress;
- qreal m_leftOrTopItemSizeBeforePress = 0.0;
- qreal m_rightOrBottomItemSizeBeforePress = 0.0;
- int m_fillIndex = -1;
- bool m_layingOut = false;
- bool m_ignoreNextLayoutRequest = false;
- bool m_resizing = false;
-};
-
-class QQuickSplitViewAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSplitViewAttached)
-
-public:
- QQuickSplitViewAttachedPrivate();
-
- void setView(QQuickSplitView *newView);
- void requestLayoutView();
-
- static QQuickSplitViewAttachedPrivate *get(QQuickSplitViewAttached *attached);
- static const QQuickSplitViewAttachedPrivate *get(const QQuickSplitViewAttached *attached);
-
- QQuickItem *m_splitItem = nullptr;
- QQuickSplitView *m_splitView = nullptr;
-
- unsigned m_fillWidth : 1;
- unsigned m_fillHeight : 1;
- unsigned m_isFillWidthSet : 1;
- unsigned m_isFillHeightSet : 1;
- unsigned m_isMinimumWidthSet : 1;
- unsigned m_isMinimumHeightSet : 1;
- unsigned m_isPreferredWidthSet : 1;
- unsigned m_isPreferredHeightSet : 1;
- unsigned m_isMaximumWidthSet : 1;
- unsigned m_isMaximumHeightSet : 1;
- qreal m_minimumWidth;
- qreal m_minimumHeight;
- qreal m_preferredWidth;
- qreal m_preferredHeight;
- qreal m_maximumWidth;
- qreal m_maximumHeight;
-};
-
-class QQuickSplitHandleAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSplitHandleAttached)
-
-public:
- QQuickSplitHandleAttachedPrivate();
-
- void setHovered(bool hovered);
- void setPressed(bool pressed);
-
- static QQuickSplitHandleAttachedPrivate *get(QQuickSplitHandleAttached *attached);
- static const QQuickSplitHandleAttachedPrivate *get(const QQuickSplitHandleAttached *attached);
-
- unsigned m_hovered : 1;
- unsigned m_pressed : 1;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSPLITVIEW_P_P_H
diff --git a/src/quicktemplates2/qquickstackelement.cpp b/src/quicktemplates2/qquickstackelement.cpp
deleted file mode 100644
index 4c14022a..00000000
--- a/src/quicktemplates2/qquickstackelement.cpp
+++ /dev/null
@@ -1,325 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickstackelement_p_p.h"
-#include "qquickstackview_p_p.h"
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQml/qqmlincubator.h>
-#include <QtQml/private/qv4qobjectwrapper_p.h>
-#include <QtQml/private/qqmlcomponent_p.h>
-#include <QtQml/private/qqmlengine_p.h>
-#include <QtQml/private/qqmlapiversion_p.h>
-
-QT_BEGIN_NAMESPACE
-
-static QQuickStackViewAttached *attachedStackObject(QQuickStackElement *element)
-{
- QQuickStackViewAttached *attached = qobject_cast<QQuickStackViewAttached *>(qmlAttachedPropertiesObject<QQuickStackView>(element->item, false));
- if (attached)
- QQuickStackViewAttachedPrivate::get(attached)->element = element;
- return attached;
-}
-
-class QQuickStackIncubator : public QQmlIncubator
-{
-public:
- QQuickStackIncubator(QQuickStackElement *element)
- : QQmlIncubator(Synchronous),
- element(element)
- {
- }
-
-protected:
- void setInitialState(QObject *object) override { element->incubate(object); }
-
-private:
- QQuickStackElement *element;
-};
-
-QQuickStackElement::QQuickStackElement()
- : QQuickItemViewTransitionableItem(nullptr)
-{
-}
-
-QQuickStackElement::~QQuickStackElement()
-{
- if (item)
- QQuickItemPrivate::get(item)->removeItemChangeListener(this, QQuickItemPrivate::Destroyed);
-
- if (ownComponent)
- delete component;
-
- QQuickStackViewAttached *attached = attachedStackObject(this);
- if (item) {
- if (ownItem) {
- item->setParentItem(nullptr);
- item->deleteLater();
- item = nullptr;
- } else {
- setVisible(false);
- if (!widthValid)
- item->resetWidth();
- if (!heightValid)
- item->resetHeight();
- if (item->parentItem() != originalParent) {
- item->setParentItem(originalParent);
- } else {
- if (attached)
- QQuickStackViewAttachedPrivate::get(attached)->itemParentChanged(item, nullptr);
- }
- }
- }
-
- if (attached)
- emit attached->removed();
-
- delete context;
-}
-
-QQuickStackElement *QQuickStackElement::fromString(const QString &str, QQuickStackView *view, QString *error)
-{
- QUrl url(str);
- if (!url.isValid()) {
- *error = QStringLiteral("invalid url: ") + str;
- return nullptr;
- }
-
- if (url.isRelative())
- url = qmlContext(view)->resolvedUrl(url);
-
- QQuickStackElement *element = new QQuickStackElement;
- element->component = new QQmlComponent(qmlEngine(view), url, view);
- element->ownComponent = true;
- return element;
-}
-
-QQuickStackElement *QQuickStackElement::fromObject(QObject *object, QQuickStackView *view, QString *error)
-{
- Q_UNUSED(view);
- QQmlComponent *component = qobject_cast<QQmlComponent *>(object);
- QQuickItem *item = qobject_cast<QQuickItem *>(object);
- if (!component && !item) {
- *error = QQmlMetaType::prettyTypeName(object) + QStringLiteral(" is not supported. Must be Item or Component.");
- return nullptr;
- }
-
- QQuickStackElement *element = new QQuickStackElement;
- element->component = qobject_cast<QQmlComponent *>(object);
- element->item = qobject_cast<QQuickItem *>(object);
- if (element->item)
- element->originalParent = element->item->parentItem();
- return element;
-}
-
-bool QQuickStackElement::load(QQuickStackView *parent)
-{
- setView(parent);
- if (!item) {
- ownItem = true;
-
- if (component->isLoading()) {
- QObject::connect(component, &QQmlComponent::statusChanged, [this](QQmlComponent::Status status) {
- if (status == QQmlComponent::Ready)
- load(view);
- else if (status == QQmlComponent::Error)
- QQuickStackViewPrivate::get(view)->warn(component->errorString().trimmed());
- });
- return true;
- }
-
- QQmlContext *creationContext = component->creationContext();
- if (!creationContext)
- creationContext = qmlContext(parent);
- context = new QQmlContext(creationContext, parent);
- context->setContextObject(parent);
-
- QQuickStackIncubator incubator(this);
- component->create(incubator, context);
- if (component->isError())
- QQuickStackViewPrivate::get(parent)->warn(component->errorString().trimmed());
- } else {
- initialize();
- }
- return item;
-}
-
-void QQuickStackElement::incubate(QObject *object)
-{
- item = qmlobject_cast<QQuickItem *>(object);
- if (item) {
- QQmlEngine::setObjectOwnership(item, QQmlEngine::CppOwnership);
- item->setParent(view);
- initialize();
- }
-}
-
-void QQuickStackElement::initialize()
-{
- if (!item || init)
- return;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- if (!(widthValid = p->widthValid))
- item->setWidth(view->width());
- if (!(heightValid = p->heightValid))
- item->setHeight(view->height());
- item->setParentItem(view);
- p->addItemChangeListener(this, QQuickItemPrivate::Destroyed);
-
- if (!properties.isUndefined()) {
- QQmlEngine *engine = qmlEngine(view);
- Q_ASSERT(engine);
- QV4::ExecutionEngine *v4 = QQmlEnginePrivate::getV4Engine(engine);
- Q_ASSERT(v4);
- QV4::Scope scope(v4);
- QV4::ScopedValue ipv(scope, properties.value());
- QV4::Scoped<QV4::QmlContext> qmlContext(scope, qmlCallingContext.value());
- QV4::ScopedValue qmlObject(scope, QV4::QObjectWrapper::wrap(v4, item));
-#if Q_QML_PRIVATE_API_VERSION >= 6
- RequiredProperties requiredPropertiesCurrentlyNotSupported;
- QQmlComponentPrivate::setInitialProperties(v4, qmlContext, qmlObject, ipv, requiredPropertiesCurrentlyNotSupported, item);
-#else
- QQmlComponentPrivate::setInitialProperties(v4, qmlContext, qmlObject, ipv);
-#endif
- properties.clear();
- }
-
- init = true;
-}
-
-void QQuickStackElement::setIndex(int value)
-{
- if (index == value)
- return;
-
- index = value;
- QQuickStackViewAttached *attached = attachedStackObject(this);
- if (attached)
- emit attached->indexChanged();
-}
-
-void QQuickStackElement::setView(QQuickStackView *value)
-{
- if (view == value)
- return;
-
- view = value;
- QQuickStackViewAttached *attached = attachedStackObject(this);
- if (attached)
- emit attached->viewChanged();
-}
-
-void QQuickStackElement::setStatus(QQuickStackView::Status value)
-{
- if (status == value)
- return;
-
- status = value;
- QQuickStackViewAttached *attached = attachedStackObject(this);
- if (!attached)
- return;
-
- switch (value) {
- case QQuickStackView::Inactive:
- emit attached->deactivated();
- break;
- case QQuickStackView::Deactivating:
- emit attached->deactivating();
- break;
- case QQuickStackView::Activating:
- emit attached->activating();
- break;
- case QQuickStackView::Active:
- emit attached->activated();
- break;
- default:
- Q_UNREACHABLE();
- break;
- }
-
- emit attached->statusChanged();
-}
-
-void QQuickStackElement::setVisible(bool visible)
-{
- QQuickStackViewAttached *attached = attachedStackObject(this);
- if (!item || (attached && QQuickStackViewAttachedPrivate::get(attached)->explicitVisible))
- return;
-
- item->setVisible(visible);
-}
-
-void QQuickStackElement::transitionNextReposition(QQuickItemViewTransitioner *transitioner, QQuickItemViewTransitioner::TransitionType type, bool asTarget)
-{
- if (transitioner)
- transitioner->transitionNextReposition(this, type, asTarget);
-}
-
-bool QQuickStackElement::prepareTransition(QQuickItemViewTransitioner *transitioner, const QRectF &viewBounds)
-{
- if (transitioner) {
- if (item) {
- QQuickAnchors *anchors = QQuickItemPrivate::get(item)->_anchors;
- // TODO: expose QQuickAnchorLine so we can test for other conflicting anchors
- if (anchors && (anchors->fill() || anchors->centerIn()))
- qmlWarning(item) << "StackView has detected conflicting anchors. Transitions may not execute properly.";
- }
-
- // TODO: add force argument to QQuickItemViewTransitionableItem::prepareTransition()?
- nextTransitionToSet = true;
- nextTransitionFromSet = true;
- nextTransitionFrom += QPointF(1, 1);
- return QQuickItemViewTransitionableItem::prepareTransition(transitioner, index, viewBounds);
- }
- return false;
-}
-
-void QQuickStackElement::startTransition(QQuickItemViewTransitioner *transitioner, QQuickStackView::Status status)
-{
- setStatus(status);
- if (transitioner)
- QQuickItemViewTransitionableItem::startTransition(transitioner, index);
-}
-
-void QQuickStackElement::itemDestroyed(QQuickItem *)
-{
- item = nullptr;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickstackelement_p_p.h b/src/quicktemplates2/qquickstackelement_p_p.h
deleted file mode 100644
index 65e73244..00000000
--- a/src/quicktemplates2/qquickstackelement_p_p.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTACKELEMENT_P_P_H
-#define QQUICKSTACKELEMENT_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickstackview_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtQuick/private/qquickitemviewtransition_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQml/private/qv4persistent_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlContext;
-class QQmlComponent;
-struct QQuickStackTransition;
-
-class QQuickStackElement : public QQuickItemViewTransitionableItem, public QQuickItemChangeListener
-{
- QQuickStackElement();
-
-public:
- ~QQuickStackElement();
-
- static QQuickStackElement *fromString(const QString &str, QQuickStackView *view, QString *error);
- static QQuickStackElement *fromObject(QObject *object, QQuickStackView *view, QString *error);
-
- bool load(QQuickStackView *parent);
- void incubate(QObject *object);
- void initialize();
-
- void setIndex(int index);
- void setView(QQuickStackView *view);
- void setStatus(QQuickStackView::Status status);
- void setVisible(bool visible);
-
- void transitionNextReposition(QQuickItemViewTransitioner *transitioner, QQuickItemViewTransitioner::TransitionType type, bool asTarget);
- bool prepareTransition(QQuickItemViewTransitioner *transitioner, const QRectF &viewBounds);
- void startTransition(QQuickItemViewTransitioner *transitioner, QQuickStackView::Status status);
-
- void itemDestroyed(QQuickItem *item) override;
-
- int index = -1;
- bool init = false;
- bool removal = false;
- bool ownItem = false;
- bool ownComponent = false;
- bool widthValid = false;
- bool heightValid = false;
- QQmlContext *context = nullptr;
- QQmlComponent *component = nullptr;
- QQuickStackView *view = nullptr;
- QPointer<QQuickItem> originalParent;
- QQuickStackView::Status status = QQuickStackView::Inactive;
- QV4::PersistentValue properties;
- QV4::PersistentValue qmlCallingContext;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSTACKELEMENT_P_P_H
diff --git a/src/quicktemplates2/qquickstacktransition.cpp b/src/quicktemplates2/qquickstacktransition.cpp
deleted file mode 100644
index a0192d1b..00000000
--- a/src/quicktemplates2/qquickstacktransition.cpp
+++ /dev/null
@@ -1,150 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickstacktransition_p_p.h"
-#include "qquickstackelement_p_p.h"
-#include "qquickstackview_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-static QQuickStackTransition exitTransition(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view)
-{
- QQuickStackTransition st;
- st.status = QQuickStackView::Deactivating;
- st.element = element;
-
- const QQuickItemViewTransitioner *transitioner = QQuickStackViewPrivate::get(view)->transitioner;
-
- switch (operation) {
- case QQuickStackView::PushTransition:
- st.type = QQuickItemViewTransitioner::AddTransition;
- if (transitioner)
- st.transition = transitioner->addDisplacedTransition;
- break;
- case QQuickStackView::ReplaceTransition:
- st.type = QQuickItemViewTransitioner::MoveTransition;
- if (transitioner)
- st.transition = transitioner->moveDisplacedTransition;
- break;
- case QQuickStackView::PopTransition:
- st.target = true;
- st.type = QQuickItemViewTransitioner::RemoveTransition;
- st.viewBounds = view->boundingRect();
- if (transitioner)
- st.transition = transitioner->removeTransition;
- break;
- default:
- Q_UNREACHABLE();
- break;
- }
-
- return st;
-}
-
-static QQuickStackTransition enterTransition(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view)
-{
- QQuickStackTransition st;
- st.status = QQuickStackView::Activating;
- st.element = element;
-
- const QQuickItemViewTransitioner *transitioner = QQuickStackViewPrivate::get(view)->transitioner;
-
- switch (operation) {
- case QQuickStackView::PushTransition:
- st.target = true;
- st.type = QQuickItemViewTransitioner::AddTransition;
- st.viewBounds = view->boundingRect();
- if (transitioner)
- st.transition = transitioner->addTransition;
- break;
- case QQuickStackView::ReplaceTransition:
- st.target = true;
- st.type = QQuickItemViewTransitioner::MoveTransition;
- st.viewBounds = view->boundingRect();
- if (transitioner)
- st.transition = transitioner->moveTransition;
- break;
- case QQuickStackView::PopTransition:
- st.type = QQuickItemViewTransitioner::RemoveTransition;
- if (transitioner)
- st.transition = transitioner->removeDisplacedTransition;
- break;
- default:
- Q_UNREACHABLE();
- break;
- }
-
- return st;
-}
-
-static QQuickStackView::Operation operationTransition(QQuickStackView::Operation operation, QQuickStackView::Operation transition)
-{
- if (operation == QQuickStackView::Immediate || operation == QQuickStackView::Transition)
- return transition;
- return operation;
-}
-
-QQuickStackTransition QQuickStackTransition::popExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view)
-{
- return exitTransition(operationTransition(operation, QQuickStackView::PopTransition), element, view);
-}
-
-QQuickStackTransition QQuickStackTransition::popEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view)
-{
- return enterTransition(operationTransition(operation, QQuickStackView::PopTransition), element, view);
-}
-
-QQuickStackTransition QQuickStackTransition::pushExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view)
-{
- return exitTransition(operationTransition(operation, QQuickStackView::PushTransition), element, view);
-}
-
-QQuickStackTransition QQuickStackTransition::pushEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view)
-{
- return enterTransition(operationTransition(operation, QQuickStackView::PushTransition), element, view);
-}
-
-QQuickStackTransition QQuickStackTransition::replaceExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view)
-{
- return exitTransition(operationTransition(operation, QQuickStackView::ReplaceTransition), element, view);
-}
-
-QQuickStackTransition QQuickStackTransition::replaceEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view)
-{
- return enterTransition(operationTransition(operation, QQuickStackView::ReplaceTransition), element, view);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickstacktransition_p_p.h b/src/quicktemplates2/qquickstacktransition_p_p.h
deleted file mode 100644
index 3a08fb4a..00000000
--- a/src/quicktemplates2/qquickstacktransition_p_p.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTACKTRANSITION_P_P_H
-#define QQUICKSTACKTRANSITION_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickstackview_p.h>
-#include <QtQuick/private/qquickitemviewtransition_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickStackElement;
-
-struct QQuickStackTransition
-{
- static QQuickStackTransition popExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view);
- static QQuickStackTransition popEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view);
-
- static QQuickStackTransition pushExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view);
- static QQuickStackTransition pushEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view);
-
- static QQuickStackTransition replaceExit(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view);
- static QQuickStackTransition replaceEnter(QQuickStackView::Operation operation, QQuickStackElement *element, QQuickStackView *view);
-
- bool target = false;
- QQuickStackView::Status status = QQuickStackView::Inactive;
- QQuickItemViewTransitioner::TransitionType type = QQuickItemViewTransitioner::NoTransition;
- QRectF viewBounds;
- QQuickStackElement *element = nullptr;
- QQuickTransition *transition = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSTACKTRANSITION_P_P_H
diff --git a/src/quicktemplates2/qquickstackview.cpp b/src/quicktemplates2/qquickstackview.cpp
deleted file mode 100644
index b2a95731..00000000
--- a/src/quicktemplates2/qquickstackview.cpp
+++ /dev/null
@@ -1,1363 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickstackview_p.h"
-#include "qquickstackview_p_p.h"
-#include "qquickstackelement_p_p.h"
-#include "qquickstacktransition_p_p.h"
-
-#include <QtCore/qscopedvaluerollback.h>
-#include <QtQml/qjsvalue.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlinfo.h>
-
-#include <private/qv4qobjectwrapper_p.h>
-#include <private/qqmlengine_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype StackView
- \inherits Control
- \instantiates QQuickStackView
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-navigation
- \ingroup qtquickcontrols2-containers
- \ingroup qtquickcontrols2-focusscopes
- \brief Provides a stack-based navigation model.
-
- \image qtquickcontrols2-stackview-wireframe.png
-
- StackView can be used with a set of inter-linked information pages. For
- example, an email application with separate views to list the latest emails,
- view a specific email, and list/view the attachments. The email list view
- is pushed onto the stack as users open an email, and popped out as they
- choose to go back.
-
- The following snippet demonstrates a simple use case, where the \c mainView
- is pushed onto and popped out of the stack on relevant button click:
-
- \qml
- ApplicationWindow {
- title: qsTr("Hello World")
- width: 640
- height: 480
- visible: true
-
- StackView {
- id: stack
- initialItem: mainView
- anchors.fill: parent
- }
-
- Component {
- id: mainView
-
- Row {
- spacing: 10
-
- Button {
- text: "Push"
- onClicked: stack.push(mainView)
- }
- Button {
- text: "Pop"
- enabled: stack.depth > 1
- onClicked: stack.pop()
-
- }
- Text {
- text: stack.depth
- }
- }
- }
- }
- \endqml
-
- \section1 Using StackView in an Application
-
- Using StackView in an application is as simple as adding it as a child to
- a Window. The stack is usually anchored to the edges of the window, except
- at the top or bottom where it might be anchored to a status bar, or some
- other similar UI component. The stack can then be used by invoking its
- navigation methods. The first item to show in the StackView is the one
- that was assigned to \l initialItem, or the topmost item if \l initialItem
- is not set.
-
- \section1 Basic Navigation
-
- StackView supports three primary navigation operations: push(), pop(), and
- replace(). These correspond to classic stack operations where "push" adds
- an item to the top of a stack, "pop" removes the top item from the
- stack, and "replace" is like a pop followed by a push, which replaces the
- topmost item with the new item. The topmost item in the stack
- corresponds to the one that is \l{StackView::currentItem}{currently}
- visible on screen. Logically, "push" navigates forward or deeper into the
- application UI, "pop" navigates backward, and "replace" replaces the
- \l currentItem.
-
- \section2 Pushing Items
-
- In the following animation, three \l Label controls are pushed onto a
- stack view with the \l push() function:
-
- \image qtquickcontrols2-stackview-push.gif
-
- The stack now contains the following items: \c [A, B, C].
-
- \note When the stack is empty, a push() operation will not have a
- transition animation because there is nothing to transition from (typically
- on application start-up).
-
- \section2 Popping Items
-
- Continuing on from the example above, the topmost item on the stack is
- removed with a call to \l pop():
-
- \image qtquickcontrols2-stackview-pop.gif
-
- The stack now contains the following items: \c [A, B].
-
- \note A pop() operation on a stack with depth 1 or 0 does nothing. In such
- cases, the stack can be emptied using the \l clear() method.
-
- \section3 Unwinding Items via Pop
-
- Sometimes, it is necessary to go back more than a single step in the stack.
- For example, to return to a "main" item or some kind of section item in the
- application. In such cases, it is possible to specify an item as a
- parameter for pop(). This is called an "unwind" operation, where the stack
- unwinds till the specified item. If the item is not found, stack unwinds
- until it is left with one item, which becomes the \l currentItem. To
- explicitly unwind to the bottom of the stack, it is recommended to use
- \l{pop()}{pop(null)}, although any non-existent item will do.
-
- In the following animation, we unwind the stack to the first item by
- calling \c pop(null):
-
- \image qtquickcontrols2-stackview-unwind.gif
-
- The stack now contains a single item: \c [A].
-
- \section2 Replacing Items
-
- In the following animation, we \l replace the topmost item with \c D:
-
- \image qtquickcontrols2-stackview-replace.gif
-
- The stack now contains the following items: \c [A, B, D].
-
- \section1 Deep Linking
-
- \e{Deep linking} means launching an application into a particular state. For
- example, a newspaper application could be launched into showing a
- particular article, bypassing the topmost item. In terms of StackView, deep linking means the ability to modify
- the state of the stack, so much so that it is possible to push a set of
- items to the top of the stack, or to completely reset the stack to a given
- state.
-
- The API for deep linking in StackView is the same as for basic navigation.
- Pushing an array instead of a single item adds all the items in that array
- to the stack. The transition animation, however, is applied only for the
- last item in the array. The normal semantics of push() apply for deep
- linking, that is, it adds whatever is pushed onto the stack.
-
- \note Only the last item of the array is loaded. The rest of the items are
- loaded only when needed, either on subsequent calls to pop or on request to
- get an item using get().
-
- This gives us the following result, given the stack [A, B, C]:
-
- \list
- \li \l{push()}{push([D, E, F])} => [A, B, C, D, E, F] - "push" transition
- animation between C and F
- \li \l{replace()}{replace([D, E, F])} => [A, B, D, E, F] - "replace"
- transition animation between C and F
- \li \l{clear()} followed by \l{push()}{push([D, E, F])} => [D, E, F] - no
- transition animation for pushing items as the stack was empty.
- \endlist
-
- \section1 Finding Items
-
- An Item for which the application does not have a reference can be found
- by calling find(). The method needs a callback function, which is invoked
- for each item in the stack (starting at the top) until a match is found.
- If the callback returns \c true, find() stops and returns the matching
- item, otherwise \c null is returned.
-
- The code below searches the stack for an item named "order_id" and unwinds
- to that item.
-
- \badcode
- stackView.pop(stackView.find(function(item) {
- return item.name == "order_id";
- }));
- \endcode
-
- You can also get to an item in the stack using \l {get()}{get(index)}.
-
- \badcode
- previousItem = stackView.get(myItem.StackView.index - 1));
- \endcode
-
- \section1 Transitions
-
- For each push or pop operation, different transition animations are applied
- to entering and exiting items. These animations define how the entering item
- should animate in, and the exiting item should animate out. The animations
- can be customized by assigning different \l{Transition}s for the
- \l pushEnter, \l pushExit, \l popEnter, \l popExit, \l replaceEnter, and
- \l replaceExit properties of StackView.
-
- \note The transition animations affect each others' transitional behavior.
- Customizing the animation for one and leaving the other may give unexpected
- results.
-
- The following snippet defines a simple fade transition for push and pop
- operations:
-
- \qml
- StackView {
- id: stackview
- anchors.fill: parent
-
- pushEnter: Transition {
- PropertyAnimation {
- property: "opacity"
- from: 0
- to:1
- duration: 200
- }
- }
- pushExit: Transition {
- PropertyAnimation {
- property: "opacity"
- from: 1
- to:0
- duration: 200
- }
- }
- popEnter: Transition {
- PropertyAnimation {
- property: "opacity"
- from: 0
- to:1
- duration: 200
- }
- }
- popExit: Transition {
- PropertyAnimation {
- property: "opacity"
- from: 1
- to:0
- duration: 200
- }
- }
- }
- \endqml
-
- \note Using anchors on the items added to a StackView is not supported.
- Typically push, pop, and replace transitions animate the position,
- which is not possible when anchors are applied. Notice that this
- only applies to the root of the item. Using anchors for its children
- works as expected.
-
- \section1 Item Ownership
-
- StackView only takes ownership of items that it creates itself. This means
- that any item pushed onto a StackView will never be destroyed by the
- StackView; only items that StackView creates from \l {Component}{Components}
- or \l [QML] {url}{URLs} are destroyed by the StackView. To illustrate this,
- the messages in the example below will only be printed when the StackView
- is destroyed, not when the items are popped off the stack:
-
- \qml
- Component {
- id: itemComponent
-
- Item {
- Component.onDestruction: print("Destroying second item")
- }
- }
-
- StackView {
- initialItem: Item {
- Component.onDestruction: print("Destroying initial item")
- }
-
- Component.onCompleted: push(itemComponent.createObject(window))
- }
- \endqml
-
- However, both of the items created from the URL and Component in the
- following example will be destroyed by the StackView when they are popped
- off of it:
-
- \qml
- Component {
- id: itemComponent
-
- Item {
- Component.onDestruction: print("Destroying second item")
- }
- }
-
- StackView {
- initialItem: "Item1.qml"
-
- Component.onCompleted: push(itemComponent)
- }
- \endqml
-
- \section1 Size
-
- StackView does not inherit an implicit size from items that are pushed onto
- it. This means that using it as the \l {Popup::}{contentItem} of a
- \l Dialog, for example, will not work as expected:
-
- \code
- Dialog {
- StackView {
- initialItem: Rectangle {
- width: 200
- height: 200
- color: "salmon"
- }
- }
- }
- \endcode
-
- There are several ways to ensure that StackView has a size in this
- situation:
-
- \list
- \li Set \l implicitWidth and \l implicitHeight on the StackView itself.
- \li Set \l implicitWidth and \l implicitHeight on the \l Rectangle.
- \li Set \l {Popup::}{contentWidth} and \l {Popup::}{contentHeight} on
- the Dialog.
- \li Give the Dialog a size.
- \endlist
-
- \sa {Customizing StackView}, {Navigation Controls}, {Container Controls},
- {Focus Management in Qt Quick Controls}
-*/
-
-QQuickStackView::QQuickStackView(QQuickItem *parent)
- : QQuickControl(*(new QQuickStackViewPrivate), parent)
-{
- setFlag(ItemIsFocusScope);
-}
-
-QQuickStackView::~QQuickStackView()
-{
- Q_D(QQuickStackView);
- if (d->transitioner) {
- d->transitioner->setChangeListener(nullptr);
- delete d->transitioner;
- }
- qDeleteAll(d->removing);
- qDeleteAll(d->removed);
- qDeleteAll(d->elements);
-}
-
-QQuickStackViewAttached *QQuickStackView::qmlAttachedProperties(QObject *object)
-{
- return new QQuickStackViewAttached(object);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::StackView::busy
- \readonly
- This property holds whether a transition is running.
-*/
-bool QQuickStackView::isBusy() const
-{
- Q_D(const QQuickStackView);
- return d->busy;
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::StackView::depth
- \readonly
- This property holds the number of items currently pushed onto the stack.
-*/
-int QQuickStackView::depth() const
-{
- Q_D(const QQuickStackView);
- return d->elements.count();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::StackView::currentItem
- \readonly
- This property holds the current top-most item in the stack.
-*/
-QQuickItem *QQuickStackView::currentItem() const
-{
- Q_D(const QQuickStackView);
- return d->currentItem;
-}
-
-/*!
- \qmlmethod Item QtQuick.Controls::StackView::get(index, behavior)
-
- Returns the item at position \a index in the stack, or \c null if the index
- is out of bounds.
-
- Supported behavior values:
- \value StackView.DontLoad The item is not forced to load (and \c null is returned if not yet loaded).
- \value StackView.ForceLoad The item is forced to load.
-*/
-QQuickItem *QQuickStackView::get(int index, LoadBehavior behavior)
-{
- Q_D(QQuickStackView);
- QQuickStackElement *element = d->elements.value(index);
- if (element) {
- if (behavior == ForceLoad)
- element->load(this);
- return element->item;
- }
- return nullptr;
-}
-
-/*!
- \qmlmethod Item QtQuick.Controls::StackView::find(callback, behavior)
-
- Search for a specific item inside the stack. The \a callback function is called
- for each item in the stack (with the item and index as arguments) until the callback
- function returns \c true. The return value is the item found. For example:
-
- \code
- stackView.find(function(item, index) {
- return item.isTheOne
- })
- \endcode
-
- Supported behavior values:
- \value StackView.DontLoad Unloaded items are skipped (the callback function is not called for them).
- \value StackView.ForceLoad Unloaded items are forced to load.
-*/
-QQuickItem *QQuickStackView::find(const QJSValue &callback, LoadBehavior behavior)
-{
- Q_D(QQuickStackView);
- QJSValue func(callback);
- QQmlEngine *engine = qmlEngine(this);
- if (!engine || !func.isCallable()) // TODO: warning?
- return nullptr;
-
- for (int i = d->elements.count() - 1; i >= 0; --i) {
- QQuickStackElement *element = d->elements.at(i);
- if (behavior == ForceLoad)
- element->load(this);
- if (element->item) {
- QJSValue rv = func.call(QJSValueList() << engine->newQObject(element->item) << i);
- if (rv.toBool())
- return element->item;
- }
- }
-
- return nullptr;
-}
-
-/*!
- \qmlmethod Item QtQuick.Controls::StackView::push(item, properties, operation)
-
- Pushes an \a item onto the stack using the specified \a operation, and
- optionally applies a set of \a properties on the item. The item can be
- an \l Item, \l Component, or a \l [QML] url. Returns the item that became
- current.
-
- StackView creates an instance automatically if the pushed item is a \l Component,
- or a \l [QML] url, and the instance will be destroyed when it is popped
- off the stack. See \l {Item Ownership} for more information.
-
- The optional \a properties argument specifies a map of initial
- property values for the pushed item. For dynamically created items, these values
- are applied before the creation is finalized. This is more efficient than setting
- property values after creation, particularly where large sets of property values
- are defined, and also allows property bindings to be set up (using \l{Qt::binding}
- {Qt.binding()}) before the item is created.
-
- Pushing a single item:
- \code
- stackView.push(rect)
-
- // or with properties:
- stackView.push(rect, {"color": "red"})
- \endcode
-
- Multiple items can be pushed at the same time either by passing them as
- additional arguments, or as an array. The last item becomes the current
- item. Each item can be followed by a set of properties to apply.
-
- Passing a variable amount of arguments:
- \code
- stackView.push(rect1, rect2, rect3)
-
- // or with properties:
- stackView.push(rect1, {"color": "red"}, rect2, {"color": "green"}, rect3, {"color": "blue"})
- \endcode
-
- Pushing an array of items:
- \code
- stackView.push([rect1, rect2, rect3])
-
- // or with properties:
- stackView.push([rect1, {"color": "red"}, rect2, {"color": "green"}, rect3, {"color": "blue"}])
- \endcode
-
- An \a operation can be optionally specified as the last argument. Supported
- operations:
-
- \value StackView.Transition An operation with default transitions (default).
- \value StackView.Immediate An immediate operation without transitions.
- \value StackView.PushTransition An operation with push transitions (since QtQuick.Controls 2.1).
- \value StackView.ReplaceTransition An operation with replace transitions (since QtQuick.Controls 2.1).
- \value StackView.PopTransition An operation with pop transitions (since QtQuick.Controls 2.1).
-
- \note Items that already exist in the stack are not pushed.
-
- \sa initialItem, {Pushing Items}
-*/
-void QQuickStackView::push(QQmlV4Function *args)
-{
- Q_D(QQuickStackView);
- QScopedValueRollback<QString> rollback(d->operation, QStringLiteral("push"));
- if (args->length() <= 0) {
- d->warn(QStringLiteral("missing arguments"));
- args->setReturnValue(QV4::Encode::null());
- return;
- }
-
- QV4::ExecutionEngine *v4 = args->v4engine();
- QV4::Scope scope(v4);
-
- Operation operation = d->elements.isEmpty() ? Immediate : PushTransition;
- QV4::ScopedValue lastArg(scope, (*args)[args->length() - 1]);
- if (lastArg->isInt32())
- operation = static_cast<Operation>(lastArg->toInt32());
-
- QStringList errors;
- QList<QQuickStackElement *> elements = d->parseElements(0, args, &errors);
- // Remove any items that are already in the stack, as they can't be in two places at once.
- for (int i = 0; i < elements.size(); ) {
- QQuickStackElement *element = elements.at(i);
- if (element->item && d->findElement(element->item))
- elements.removeAt(i);
- else
- ++i;
- }
-
- if (!errors.isEmpty() || elements.isEmpty()) {
- if (!errors.isEmpty()) {
- for (const QString &error : qAsConst(errors))
- d->warn(error);
- } else {
- d->warn(QStringLiteral("nothing to push"));
- }
- args->setReturnValue(QV4::Encode::null());
- return;
- }
-
- QQuickStackElement *exit = nullptr;
- if (!d->elements.isEmpty())
- exit = d->elements.top();
-
- int oldDepth = d->elements.count();
- if (d->pushElements(elements)) {
- d->depthChange(d->elements.count(), oldDepth);
- QQuickStackElement *enter = d->elements.top();
- d->startTransition(QQuickStackTransition::pushEnter(operation, enter, this),
- QQuickStackTransition::pushExit(operation, exit, this),
- operation == Immediate);
- d->setCurrentItem(enter);
- }
-
- if (d->currentItem) {
- QV4::ScopedValue rv(scope, QV4::QObjectWrapper::wrap(v4, d->currentItem));
- args->setReturnValue(rv->asReturnedValue());
- } else {
- args->setReturnValue(QV4::Encode::null());
- }
-}
-
-/*!
- \qmlmethod Item QtQuick.Controls::StackView::pop(item, operation)
-
- Pops one or more items off the stack. Returns the last item removed from the stack.
-
- If the \a item argument is specified, all items down to (but not
- including) \a item will be popped. If \a item is \c null, all
- items down to (but not including) the first item is popped.
- If not specified, only the current item is popped.
-
- \include qquickstackview.qdocinc pop-ownership
-
- An \a operation can be optionally specified as the last argument. Supported
- operations:
-
- \value StackView.Transition An operation with default transitions (default).
- \value StackView.Immediate An immediate operation without transitions.
- \value StackView.PushTransition An operation with push transitions (since QtQuick.Controls 2.1).
- \value StackView.ReplaceTransition An operation with replace transitions (since QtQuick.Controls 2.1).
- \value StackView.PopTransition An operation with pop transitions (since QtQuick.Controls 2.1).
-
- Examples:
- \code
- stackView.pop()
- stackView.pop(someItem, StackView.Immediate)
- stackView.pop(StackView.Immediate)
- stackView.pop(null)
- \endcode
-
- \sa clear(), {Popping Items}, {Unwinding Items via Pop}
-*/
-void QQuickStackView::pop(QQmlV4Function *args)
-{
- Q_D(QQuickStackView);
- QScopedValueRollback<QString> rollback(d->operation, QStringLiteral("pop"));
- int argc = args->length();
- if (d->elements.count() <= 1 || argc > 2) {
- if (argc > 2)
- d->warn(QStringLiteral("too many arguments"));
- args->setReturnValue(QV4::Encode::null());
- return;
- }
-
- int oldDepth = d->elements.count();
- QQuickStackElement *exit = d->elements.pop();
- QQuickStackElement *enter = d->elements.top();
-
- QV4::ExecutionEngine *v4 = args->v4engine();
- QV4::Scope scope(v4);
-
- if (argc > 0) {
- QV4::ScopedValue value(scope, (*args)[0]);
- if (value->isNull()) {
- enter = d->elements.value(0);
- } else if (const QV4::QObjectWrapper *o = value->as<QV4::QObjectWrapper>()) {
- QQuickItem *item = qobject_cast<QQuickItem *>(o->object());
- enter = d->findElement(item);
- if (!enter) {
- if (item != d->currentItem)
- d->warn(QStringLiteral("unknown argument: ") + value->toQString()); // TODO: safe?
- args->setReturnValue(QV4::Encode::null());
- d->elements.push(exit); // restore
- return;
- }
- }
- }
-
- Operation operation = PopTransition;
- if (argc > 0) {
- QV4::ScopedValue lastArg(scope, (*args)[argc - 1]);
- if (lastArg->isInt32())
- operation = static_cast<Operation>(lastArg->toInt32());
- }
-
- QQuickItem *previousItem = nullptr;
-
- if (d->popElements(enter)) {
- if (exit) {
- exit->removal = true;
- d->removing.insert(exit);
- previousItem = exit->item;
- }
- d->depthChange(d->elements.count(), oldDepth);
- d->startTransition(QQuickStackTransition::popExit(operation, exit, this),
- QQuickStackTransition::popEnter(operation, enter, this),
- operation == Immediate);
- d->setCurrentItem(enter);
- }
-
- if (previousItem) {
- QV4::ScopedValue rv(scope, QV4::QObjectWrapper::wrap(v4, previousItem));
- args->setReturnValue(rv->asReturnedValue());
- } else {
- args->setReturnValue(QV4::Encode::null());
- }
-}
-
-/*!
- \qmlmethod Item QtQuick.Controls::StackView::replace(target, item, properties, operation)
-
- Replaces one or more items on the stack with the specified \a item and
- \a operation, and optionally applies a set of \a properties on the
- item. The item can be an \l Item, \l Component, or a \l [QML] url.
- Returns the item that became current.
-
- \include qquickstackview.qdocinc pop-ownership
-
- If the \a target argument is specified, all items down to the \target
- item will be replaced. If \a target is \c null, all items in the stack
- will be replaced. If not specified, only the top item will be replaced.
-
- StackView creates an instance automatically if the replacing item is a \l Component,
- or a \l [QML] url. The optional \a properties argument specifies a map of initial
- property values for the replacing item. For dynamically created items, these values
- are applied before the creation is finalized. This is more efficient than setting
- property values after creation, particularly where large sets of property values
- are defined, and also allows property bindings to be set up (using \l{Qt::binding}
- {Qt.binding()}) before the item is created.
-
- Replace the top item:
- \code
- stackView.replace(rect)
-
- // or with properties:
- stackView.replace(rect, {"color": "red"})
- \endcode
-
- Multiple items can be replaced at the same time either by passing them as
- additional arguments, or as an array. Each item can be followed by a set
- of properties to apply.
-
- Passing a variable amount of arguments:
- \code
- stackView.replace(rect1, rect2, rect3)
-
- // or with properties:
- stackView.replace(rect1, {"color": "red"}, rect2, {"color": "green"}, rect3, {"color": "blue"})
- \endcode
-
- Replacing an array of items:
- \code
- stackView.replace([rect1, rect2, rect3])
-
- // or with properties:
- stackView.replace([rect1, {"color": "red"}, rect2, {"color": "green"}, rect3, {"color": "blue"}])
- \endcode
-
- An \a operation can be optionally specified as the last argument. Supported
- operations:
-
- \value StackView.Transition An operation with default transitions (default).
- \value StackView.Immediate An immediate operation without transitions.
- \value StackView.PushTransition An operation with push transitions (since QtQuick.Controls 2.1).
- \value StackView.ReplaceTransition An operation with replace transitions (since QtQuick.Controls 2.1).
- \value StackView.PopTransition An operation with pop transitions (since QtQuick.Controls 2.1).
-
- The following example illustrates the use of push and pop transitions with replace().
-
- \code
- StackView {
- id: stackView
-
- initialItem: Component {
- id: page
-
- Page {
- Row {
- spacing: 20
- anchors.centerIn: parent
-
- Button {
- text: "<"
- onClicked: stackView.replace(page, StackView.PopTransition)
- }
- Button {
- text: ">"
- onClicked: stackView.replace(page, StackView.PushTransition)
- }
- }
- }
- }
- }
- \endcode
-
- \sa push(), {Replacing Items}
-*/
-void QQuickStackView::replace(QQmlV4Function *args)
-{
- Q_D(QQuickStackView);
- QScopedValueRollback<QString> rollback(d->operation, QStringLiteral("replace"));
- if (args->length() <= 0) {
- d->warn(QStringLiteral("missing arguments"));
- args->setReturnValue(QV4::Encode::null());
- return;
- }
-
- QV4::ExecutionEngine *v4 = args->v4engine();
- QV4::Scope scope(v4);
-
- Operation operation = d->elements.isEmpty() ? Immediate : ReplaceTransition;
- QV4::ScopedValue lastArg(scope, (*args)[args->length() - 1]);
- if (lastArg->isInt32())
- operation = static_cast<Operation>(lastArg->toInt32());
-
- QQuickStackElement *target = nullptr;
- QV4::ScopedValue firstArg(scope, (*args)[0]);
- if (firstArg->isNull())
- target = d->elements.value(0);
- else if (!firstArg->isInt32())
- target = d->findElement(firstArg);
-
- QStringList errors;
- QList<QQuickStackElement *> elements = d->parseElements(target ? 1 : 0, args, &errors);
- if (!errors.isEmpty() || elements.isEmpty()) {
- if (!errors.isEmpty()) {
- for (const QString &error : qAsConst(errors))
- d->warn(error);
- } else {
- d->warn(QStringLiteral("nothing to push"));
- }
- args->setReturnValue(QV4::Encode::null());
- return;
- }
-
- int oldDepth = d->elements.count();
- QQuickStackElement* exit = nullptr;
- if (!d->elements.isEmpty())
- exit = d->elements.pop();
-
- if (exit != target ? d->replaceElements(target, elements) : d->pushElements(elements)) {
- d->depthChange(d->elements.count(), oldDepth);
- if (exit) {
- exit->removal = true;
- d->removing.insert(exit);
- }
- QQuickStackElement *enter = d->elements.top();
- d->startTransition(QQuickStackTransition::replaceExit(operation, exit, this),
- QQuickStackTransition::replaceEnter(operation, enter, this),
- operation == Immediate);
- d->setCurrentItem(enter);
- }
-
- if (d->currentItem) {
- QV4::ScopedValue rv(scope, QV4::QObjectWrapper::wrap(v4, d->currentItem));
- args->setReturnValue(rv->asReturnedValue());
- } else {
- args->setReturnValue(QV4::Encode::null());
- }
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::StackView::empty
- \readonly
-
- This property holds whether the stack is empty.
-
- \sa depth
-*/
-bool QQuickStackView::isEmpty() const
-{
- Q_D(const QQuickStackView);
- return d->elements.isEmpty();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::StackView::clear(transition)
-
- Removes all items from the stack.
-
- \include qquickstackview.qdocinc pop-ownership
-
- Since QtQuick.Controls 2.3, a \a transition can be optionally specified. Supported transitions:
-
- \value StackView.Immediate Clear the stack immediately without any transition (default).
- \value StackView.PushTransition Clear the stack with a push transition.
- \value StackView.ReplaceTransition Clear the stack with a replace transition.
- \value StackView.PopTransition Clear the stack with a pop transition.
-*/
-void QQuickStackView::clear(Operation operation)
-{
- Q_D(QQuickStackView);
- if (d->elements.isEmpty())
- return;
-
- if (operation != Immediate) {
- QQuickStackElement *exit = d->elements.pop();
- exit->removal = true;
- d->removing.insert(exit);
- d->startTransition(QQuickStackTransition::popExit(operation, exit, this),
- QQuickStackTransition::popEnter(operation, nullptr, this), false);
- }
-
- int oldDepth = d->elements.count();
- d->setCurrentItem(nullptr);
- qDeleteAll(d->elements);
- d->elements.clear();
- d->depthChange(0, oldDepth);
-}
-
-/*!
- \qmlproperty var QtQuick.Controls::StackView::initialItem
-
- This property holds the initial item that should be shown when the StackView
- is created. The initial item can be an \l Item, \l Component, or a \l [QML] url.
- Specifying an initial item is equivalent to:
- \code
- Component.onCompleted: stackView.push(myInitialItem)
- \endcode
-
- \sa push()
-*/
-QJSValue QQuickStackView::initialItem() const
-{
- Q_D(const QQuickStackView);
- return d->initialItem;
-}
-
-void QQuickStackView::setInitialItem(const QJSValue &item)
-{
- Q_D(QQuickStackView);
- d->initialItem = item;
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::StackView::popEnter
-
- This property holds the transition that is applied to the item that
- enters the stack when another item is popped off of it.
-
- \sa {Customizing StackView}
-*/
-QQuickTransition *QQuickStackView::popEnter() const
-{
- Q_D(const QQuickStackView);
- if (d->transitioner)
- return d->transitioner->removeDisplacedTransition;
- return nullptr;
-}
-
-void QQuickStackView::setPopEnter(QQuickTransition *enter)
-{
- Q_D(QQuickStackView);
- d->ensureTransitioner();
- if (d->transitioner->removeDisplacedTransition == enter)
- return;
-
- d->transitioner->removeDisplacedTransition = enter;
- emit popEnterChanged();
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::StackView::popExit
-
- This property holds the transition that is applied to the item that
- exits the stack when the item is popped off of it.
-
- \sa {Customizing StackView}
-*/
-QQuickTransition *QQuickStackView::popExit() const
-{
- Q_D(const QQuickStackView);
- if (d->transitioner)
- return d->transitioner->removeTransition;
- return nullptr;
-}
-
-void QQuickStackView::setPopExit(QQuickTransition *exit)
-{
- Q_D(QQuickStackView);
- d->ensureTransitioner();
- if (d->transitioner->removeTransition == exit)
- return;
-
- d->transitioner->removeTransition = exit;
- emit popExitChanged();
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::StackView::pushEnter
-
- This property holds the transition that is applied to the item that
- enters the stack when the item is pushed onto it.
-
- \sa {Customizing StackView}
-*/
-QQuickTransition *QQuickStackView::pushEnter() const
-{
- Q_D(const QQuickStackView);
- if (d->transitioner)
- return d->transitioner->addTransition;
- return nullptr;
-}
-
-void QQuickStackView::setPushEnter(QQuickTransition *enter)
-{
- Q_D(QQuickStackView);
- d->ensureTransitioner();
- if (d->transitioner->addTransition == enter)
- return;
-
- d->transitioner->addTransition = enter;
- emit pushEnterChanged();
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::StackView::pushExit
-
- This property holds the transition that is applied to the item that
- exits the stack when another item is pushed onto it.
-
- \sa {Customizing StackView}
-*/
-QQuickTransition *QQuickStackView::pushExit() const
-{
- Q_D(const QQuickStackView);
- if (d->transitioner)
- return d->transitioner->addDisplacedTransition;
- return nullptr;
-}
-
-void QQuickStackView::setPushExit(QQuickTransition *exit)
-{
- Q_D(QQuickStackView);
- d->ensureTransitioner();
- if (d->transitioner->addDisplacedTransition == exit)
- return;
-
- d->transitioner->addDisplacedTransition = exit;
- emit pushExitChanged();
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::StackView::replaceEnter
-
- This property holds the transition that is applied to the item that
- enters the stack when another item is replaced by it.
-
- \sa {Customizing StackView}
-*/
-QQuickTransition *QQuickStackView::replaceEnter() const
-{
- Q_D(const QQuickStackView);
- if (d->transitioner)
- return d->transitioner->moveTransition;
- return nullptr;
-}
-
-void QQuickStackView::setReplaceEnter(QQuickTransition *enter)
-{
- Q_D(QQuickStackView);
- d->ensureTransitioner();
- if (d->transitioner->moveTransition == enter)
- return;
-
- d->transitioner->moveTransition = enter;
- emit replaceEnterChanged();
-}
-
-/*!
- \qmlproperty Transition QtQuick.Controls::StackView::replaceExit
-
- This property holds the transition that is applied to the item that
- exits the stack when it is replaced by another item.
-
- \sa {Customizing StackView}
-*/
-QQuickTransition *QQuickStackView::replaceExit() const
-{
- Q_D(const QQuickStackView);
- if (d->transitioner)
- return d->transitioner->moveDisplacedTransition;
- return nullptr;
-}
-
-void QQuickStackView::setReplaceExit(QQuickTransition *exit)
-{
- Q_D(QQuickStackView);
- d->ensureTransitioner();
- if (d->transitioner->moveDisplacedTransition == exit)
- return;
-
- d->transitioner->moveDisplacedTransition = exit;
- emit replaceExitChanged();
-}
-
-void QQuickStackView::componentComplete()
-{
- QQuickControl::componentComplete();
-
- Q_D(QQuickStackView);
- QScopedValueRollback<QString> rollback(d->operation, QStringLiteral("initialItem"));
- QQuickStackElement *element = nullptr;
- QString error;
- int oldDepth = d->elements.count();
- if (QObject *o = d->initialItem.toQObject())
- element = QQuickStackElement::fromObject(o, this, &error);
- else if (d->initialItem.isString())
- element = QQuickStackElement::fromString(d->initialItem.toString(), this, &error);
- if (!error.isEmpty()) {
- d->warn(error);
- delete element;
- } else if (d->pushElement(element)) {
- d->depthChange(d->elements.count(), oldDepth);
- d->setCurrentItem(element);
- element->setStatus(QQuickStackView::Active);
- }
-}
-
-void QQuickStackView::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- QQuickControl::geometryChanged(newGeometry, oldGeometry);
-
- Q_D(QQuickStackView);
- for (QQuickStackElement *element : qAsConst(d->elements)) {
- if (element->item) {
- if (!element->widthValid)
- element->item->setWidth(newGeometry.width());
- if (!element->heightValid)
- element->item->setHeight(newGeometry.height());
- }
- }
-}
-
-bool QQuickStackView::childMouseEventFilter(QQuickItem *item, QEvent *event)
-{
- // in order to block accidental user interaction while busy/transitioning,
- // StackView filters out childrens' mouse events. therefore we block all
- // press events. however, since push() may be called from signal handlers
- // such as onPressed or onDoubleClicked, we must let the current mouse
- // grabber item receive the respective mouse release event to avoid
- // breaking its state (QTBUG-50305).
- if (event->type() == QEvent::MouseButtonPress)
- return true;
- if (event->type() == QEvent::UngrabMouse)
- return false;
- QQuickWindow *window = item->window();
- return window && !window->mouseGrabberItem();
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickStackView::touchEvent(QTouchEvent *event)
-{
- event->ignore(); // QTBUG-65084
-}
-#endif
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickStackView::accessibleRole() const
-{
- return QAccessible::LayeredPane;
-}
-#endif
-
-void QQuickStackViewAttachedPrivate::itemParentChanged(QQuickItem *item, QQuickItem *parent)
-{
- Q_Q(QQuickStackViewAttached);
- int oldIndex = element ? element->index : -1;
- QQuickStackView *oldView = element ? element->view : nullptr;
- QQuickStackView::Status oldStatus = element ? element->status : QQuickStackView::Inactive;
-
- QQuickStackView *newView = qobject_cast<QQuickStackView *>(parent);
- element = newView ? QQuickStackViewPrivate::get(newView)->findElement(item) : nullptr;
-
- int newIndex = element ? element->index : -1;
- QQuickStackView::Status newStatus = element ? element->status : QQuickStackView::Inactive;
-
- if (oldIndex != newIndex)
- emit q->indexChanged();
- if (oldView != newView)
- emit q->viewChanged();
- if (oldStatus != newStatus)
- emit q->statusChanged();
-}
-
-QQuickStackViewAttached::QQuickStackViewAttached(QObject *parent)
- : QObject(*(new QQuickStackViewAttachedPrivate), parent)
-{
- Q_D(QQuickStackViewAttached);
- QQuickItem *item = qobject_cast<QQuickItem *>(parent);
- if (item) {
- connect(item, &QQuickItem::visibleChanged, this, &QQuickStackViewAttached::visibleChanged);
- QQuickItemPrivate::get(item)->addItemChangeListener(d, QQuickItemPrivate::Parent);
- d->itemParentChanged(item, item->parentItem());
- } else if (parent) {
- qmlWarning(parent) << "StackView must be attached to an Item";
- }
-}
-
-QQuickStackViewAttached::~QQuickStackViewAttached()
-{
- Q_D(QQuickStackViewAttached);
- QQuickItem *parentItem = qobject_cast<QQuickItem *>(parent());
- if (parentItem)
- QQuickItemPrivate::get(parentItem)->removeItemChangeListener(d, QQuickItemPrivate::Parent);
-}
-
-/*!
- \qmlattachedproperty int QtQuick.Controls::StackView::index
- \readonly
-
- This attached property holds the stack index of the item it's
- attached to, or \c -1 if the item is not in a stack.
-*/
-int QQuickStackViewAttached::index() const
-{
- Q_D(const QQuickStackViewAttached);
- return d->element ? d->element->index : -1;
-}
-
-/*!
- \qmlattachedproperty StackView QtQuick.Controls::StackView::view
- \readonly
-
- This attached property holds the stack view of the item it's
- attached to, or \c null if the item is not in a stack.
-*/
-QQuickStackView *QQuickStackViewAttached::view() const
-{
- Q_D(const QQuickStackViewAttached);
- return d->element ? d->element->view : nullptr;
-}
-
-/*!
- \qmlattachedproperty enumeration QtQuick.Controls::StackView::status
- \readonly
-
- This attached property holds the stack status of the item it's
- attached to, or \c StackView.Inactive if the item is not in a stack.
-
- Available values:
- \value StackView.Inactive The item is inactive (or not in a stack).
- \value StackView.Deactivating The item is being deactivated (popped off).
- \value StackView.Activating The item is being activated (becoming the current item).
- \value StackView.Active The item is active, that is, the current item.
-*/
-QQuickStackView::Status QQuickStackViewAttached::status() const
-{
- Q_D(const QQuickStackViewAttached);
- return d->element ? d->element->status : QQuickStackView::Inactive;
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlattachedproperty bool QtQuick.Controls::StackView::visible
-
- This attached property holds the visibility of the item it's attached to.
- The value follows the value of \l Item::visible.
-
- By default, StackView shows incoming items when the enter transition begins,
- and hides outgoing items when the exit transition ends. Setting this property
- explicitly allows the default behavior to be overridden, making it possible
- to keep items that are below the top-most item visible.
-
- \note The default transitions of most styles slide outgoing items outside the
- view, and may also animate their opacity. In order to keep a full stack
- of items visible, consider customizing the \l transitions so that the
- items underneath can be seen.
-
- \image qtquickcontrols2-stackview-visible.png
-
- \snippet qtquickcontrols2-stackview-visible.qml 1
-*/
-bool QQuickStackViewAttached::isVisible() const
-{
- const QQuickItem *parentItem = qobject_cast<QQuickItem *>(parent());
- return parentItem && parentItem->isVisible();
-}
-
-void QQuickStackViewAttached::setVisible(bool visible)
-{
- Q_D(QQuickStackViewAttached);
- d->explicitVisible = true;
- QQuickItem *parentItem = qobject_cast<QQuickItem *>(parent());
- if (parentItem)
- parentItem->setVisible(visible);
-}
-
-void QQuickStackViewAttached::resetVisible()
-{
- Q_D(QQuickStackViewAttached);
- d->explicitVisible = false;
- if (!d->element || !d->element->view)
- return;
-
- QQuickItem *parentItem = qobject_cast<QQuickItem *>(parent());
- if (parentItem)
- parentItem->setVisible(parentItem == d->element->view->currentItem());
-}
-
-/*!
- \qmlattachedsignal QtQuick.Controls::StackView::activated()
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This attached signal is emitted when the item it's attached to is activated in the stack.
-
- \sa status
-*/
-
-/*!
- \qmlattachedsignal QtQuick.Controls::StackView::deactivated()
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This attached signal is emitted when the item it's attached to is deactivated in the stack.
-
- \sa status
-*/
-
-/*!
- \qmlattachedsignal QtQuick.Controls::StackView::activating()
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This attached signal is emitted when the item it's attached to is in the process of being
- activated in the stack.
-
- \sa status
-*/
-
-/*!
- \qmlattachedsignal QtQuick.Controls::StackView::deactivating()
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This attached signal is emitted when the item it's attached to is in the process of being
- dectivated in the stack.
-
- \sa status
-*/
-
-/*!
- \qmlattachedsignal QtQuick.Controls::StackView::removed()
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This attached signal is emitted when the item it's attached to has been
- removed from the stack. It can be used to safely destroy an Item that was
- pushed onto the stack, for example:
-
- \code
- Item {
- StackView.onRemoved: destroy() // Will be destroyed sometime after this call.
- }
- \endcode
-
- \sa status
-*/
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickstackview_p.cpp b/src/quicktemplates2/qquickstackview_p.cpp
deleted file mode 100644
index 7cb943a3..00000000
--- a/src/quicktemplates2/qquickstackview_p.cpp
+++ /dev/null
@@ -1,310 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickstackview_p_p.h"
-#include "qquickstackelement_p_p.h"
-#include "qquickstacktransition_p_p.h"
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQml/qqmllist.h>
-#include <QtQml/private/qv4qmlcontext_p.h>
-#include <QtQml/private/qv4qobjectwrapper_p.h>
-#include <QtQuick/private/qquickanimation_p.h>
-#include <QtQuick/private/qquicktransition_p.h>
-
-QT_BEGIN_NAMESPACE
-
-void QQuickStackViewPrivate::warn(const QString &error)
-{
- Q_Q(QQuickStackView);
- if (operation.isEmpty())
- qmlWarning(q) << error;
- else
- qmlWarning(q) << operation << ": " << error;
-}
-
-void QQuickStackViewPrivate::setCurrentItem(QQuickStackElement *element)
-{
- Q_Q(QQuickStackView);
- QQuickItem *item = element ? element->item : nullptr;
- if (currentItem == item)
- return;
-
- currentItem = item;
- if (element)
- element->setVisible(true);
- if (item)
- item->setFocus(true);
- emit q->currentItemChanged();
-}
-
-static bool initProperties(QQuickStackElement *element, const QV4::Value &props, QQmlV4Function *args)
-{
- if (props.isObject()) {
- const QV4::QObjectWrapper *wrapper = props.as<QV4::QObjectWrapper>();
- if (!wrapper) {
- QV4::ExecutionEngine *v4 = args->v4engine();
- element->properties.set(v4, props);
- element->qmlCallingContext.set(v4, v4->qmlContext());
- return true;
- }
- }
- return false;
-}
-
-QList<QQuickStackElement *> QQuickStackViewPrivate::parseElements(int from, QQmlV4Function *args, QStringList *errors)
-{
- QV4::ExecutionEngine *v4 = args->v4engine();
- QQmlContextData *context = v4->callingQmlContext();
- QV4::Scope scope(v4);
-
- QList<QQuickStackElement *> elements;
-
- int argc = args->length();
- for (int i = from; i < argc; ++i) {
- QV4::ScopedValue arg(scope, (*args)[i]);
- if (QV4::ArrayObject *array = arg->as<QV4::ArrayObject>()) {
- const uint len = uint(array->getLength());
- for (uint j = 0; j < len; ++j) {
- QString error;
- QV4::ScopedValue value(scope, array->get(j));
- QQuickStackElement *element = createElement(value, context, &error);
- if (element) {
- if (j < len - 1) {
- QV4::ScopedValue props(scope, array->get(j + 1));
- if (initProperties(element, props, args))
- ++j;
- }
- elements += element;
- } else if (!error.isEmpty()) {
- *errors += error;
- }
- }
- } else {
- QString error;
- QQuickStackElement *element = createElement(arg, context, &error);
- if (element) {
- if (i < argc - 1) {
- QV4::ScopedValue props(scope, (*args)[i + 1]);
- if (initProperties(element, props, args))
- ++i;
- }
- elements += element;
- } else if (!error.isEmpty()) {
- *errors += error;
- }
- }
- }
- return elements;
-}
-
-QQuickStackElement *QQuickStackViewPrivate::findElement(QQuickItem *item) const
-{
- if (item) {
- for (QQuickStackElement *e : qAsConst(elements)) {
- if (e->item == item)
- return e;
- }
- }
- return nullptr;
-}
-
-QQuickStackElement *QQuickStackViewPrivate::findElement(const QV4::Value &value) const
-{
- if (const QV4::QObjectWrapper *o = value.as<QV4::QObjectWrapper>())
- return findElement(qobject_cast<QQuickItem *>(o->object()));
- return nullptr;
-}
-
-static QString resolvedUrl(const QString &str, QQmlContextData *context)
-{
- QUrl url(str);
- if (url.isRelative())
- return context->resolvedUrl(url).toString();
- return str;
-}
-
-QQuickStackElement *QQuickStackViewPrivate::createElement(const QV4::Value &value, QQmlContextData *context, QString *error)
-{
- Q_Q(QQuickStackView);
- if (const QV4::String *s = value.as<QV4::String>())
- return QQuickStackElement::fromString(resolvedUrl(s->toQString(), context), q, error);
- if (const QV4::QObjectWrapper *o = value.as<QV4::QObjectWrapper>())
- return QQuickStackElement::fromObject(o->object(), q, error);
- return nullptr;
-}
-
-bool QQuickStackViewPrivate::pushElements(const QList<QQuickStackElement *> &elems)
-{
- Q_Q(QQuickStackView);
- if (!elems.isEmpty()) {
- for (QQuickStackElement *e : elems) {
- e->setIndex(elements.count());
- elements += e;
- }
- return elements.top()->load(q);
- }
- return false;
-}
-
-bool QQuickStackViewPrivate::pushElement(QQuickStackElement *element)
-{
- if (element)
- return pushElements(QList<QQuickStackElement *>() << element);
- return false;
-}
-
-bool QQuickStackViewPrivate::popElements(QQuickStackElement *element)
-{
- Q_Q(QQuickStackView);
- while (elements.count() > 1 && elements.top() != element) {
- delete elements.pop();
- if (!element)
- break;
- }
- return elements.top()->load(q);
-}
-
-bool QQuickStackViewPrivate::replaceElements(QQuickStackElement *target, const QList<QQuickStackElement *> &elems)
-{
- if (target) {
- while (!elements.isEmpty()) {
- QQuickStackElement* top = elements.pop();
- delete top;
- if (top == target)
- break;
- }
- }
- return pushElements(elems);
-}
-
-void QQuickStackViewPrivate::ensureTransitioner()
-{
- if (!transitioner) {
- transitioner = new QQuickItemViewTransitioner;
- transitioner->setChangeListener(this);
- }
-}
-
-void QQuickStackViewPrivate::startTransition(const QQuickStackTransition &first, const QQuickStackTransition &second, bool immediate)
-{
- if (first.element)
- first.element->transitionNextReposition(transitioner, first.type, first.target);
- if (second.element)
- second.element->transitionNextReposition(transitioner, second.type, second.target);
-
- if (first.element) {
- if (immediate || !first.element->item || !first.element->prepareTransition(transitioner, first.viewBounds))
- completeTransition(first.element, first.transition, first.status);
- else
- first.element->startTransition(transitioner, first.status);
- }
- if (second.element) {
- if (immediate || !second.element->item || !second.element->prepareTransition(transitioner, second.viewBounds))
- completeTransition(second.element, second.transition, second.status);
- else
- second.element->startTransition(transitioner, second.status);
- }
-
- if (transitioner) {
- setBusy(!transitioner->runningJobs.isEmpty());
- transitioner->resetTargetLists();
- }
-}
-
-void QQuickStackViewPrivate::completeTransition(QQuickStackElement *element, QQuickTransition *transition, QQuickStackView::Status status)
-{
- element->setStatus(status);
- if (transition) {
- // TODO: add a proper way to complete a transition
- QQmlListProperty<QQuickAbstractAnimation> animations = transition->animations();
- int count = animations.count(&animations);
- for (int i = 0; i < count; ++i) {
- QQuickAbstractAnimation *anim = animations.at(&animations, i);
- anim->complete();
- }
- }
- viewItemTransitionFinished(element);
-}
-
-void QQuickStackViewPrivate::viewItemTransitionFinished(QQuickItemViewTransitionableItem *transitionable)
-{
- QQuickStackElement *element = static_cast<QQuickStackElement *>(transitionable);
- if (element->status == QQuickStackView::Activating) {
- element->setStatus(QQuickStackView::Active);
- } else if (element->status == QQuickStackView::Deactivating) {
- element->setStatus(QQuickStackView::Inactive);
- element->setVisible(false);
- if (element->removal || element->isPendingRemoval())
- removed += element;
- }
-
- if (transitioner && transitioner->runningJobs.isEmpty()) {
- // ~QQuickStackElement() emits QQuickStackViewAttached::removed(), which may be used
- // to modify the stack. Set the status first and make a copy of the destroyable stack
- // elements to exclude any modifications that may happen during the loop. (QTBUG-62153)
- setBusy(false);
- QList<QQuickStackElement*> elements = removed;
- removed.clear();
- qDeleteAll(elements);
- }
-
- removing.remove(element);
-}
-
-void QQuickStackViewPrivate::setBusy(bool b)
-{
- Q_Q(QQuickStackView);
- if (busy == b)
- return;
-
- busy = b;
- q->setFiltersChildMouseEvents(busy);
- emit q->busyChanged();
-}
-
-void QQuickStackViewPrivate::depthChange(int newDepth, int oldDepth)
-{
- Q_Q(QQuickStackView);
- if (newDepth == oldDepth)
- return;
-
- emit q->depthChanged();
- if (newDepth == 0 || oldDepth == 0)
- emit q->emptyChanged();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickstackview_p.h b/src/quicktemplates2/qquickstackview_p.h
deleted file mode 100644
index ba6fe106..00000000
--- a/src/quicktemplates2/qquickstackview_p.h
+++ /dev/null
@@ -1,221 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTACKVIEW_P_H
-#define QQUICKSTACKVIEW_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlV4Function;
-class QQuickTransition;
-class QQuickStackElement;
-class QQuickStackViewPrivate;
-class QQuickStackViewAttached;
-class QQuickStackViewAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickStackView : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(bool busy READ isBusy NOTIFY busyChanged FINAL)
- Q_PROPERTY(int depth READ depth NOTIFY depthChanged FINAL)
- Q_PROPERTY(QQuickItem *currentItem READ currentItem NOTIFY currentItemChanged FINAL)
- Q_PROPERTY(QJSValue initialItem READ initialItem WRITE setInitialItem FINAL)
- Q_PROPERTY(QQuickTransition *popEnter READ popEnter WRITE setPopEnter NOTIFY popEnterChanged FINAL)
- Q_PROPERTY(QQuickTransition *popExit READ popExit WRITE setPopExit NOTIFY popExitChanged FINAL)
- Q_PROPERTY(QQuickTransition *pushEnter READ pushEnter WRITE setPushEnter NOTIFY pushEnterChanged FINAL)
- Q_PROPERTY(QQuickTransition *pushExit READ pushExit WRITE setPushExit NOTIFY pushExitChanged FINAL)
- Q_PROPERTY(QQuickTransition *replaceEnter READ replaceEnter WRITE setReplaceEnter NOTIFY replaceEnterChanged FINAL)
- Q_PROPERTY(QQuickTransition *replaceExit READ replaceExit WRITE setReplaceExit NOTIFY replaceExitChanged FINAL)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool empty READ isEmpty NOTIFY emptyChanged FINAL REVISION 3)
-
-public:
- explicit QQuickStackView(QQuickItem *parent = nullptr);
- ~QQuickStackView();
-
- static QQuickStackViewAttached *qmlAttachedProperties(QObject *object);
-
- bool isBusy() const;
- int depth() const;
- QQuickItem *currentItem() const;
-
- enum Status {
- Inactive = 0,
- Deactivating = 1,
- Activating = 2,
- Active = 3
- };
- Q_ENUM(Status)
-
- QJSValue initialItem() const;
- void setInitialItem(const QJSValue &item);
-
- QQuickTransition *popEnter() const;
- void setPopEnter(QQuickTransition *enter);
-
- QQuickTransition *popExit() const;
- void setPopExit(QQuickTransition *exit);
-
- QQuickTransition *pushEnter() const;
- void setPushEnter(QQuickTransition *enter);
-
- QQuickTransition *pushExit() const;
- void setPushExit(QQuickTransition *exit);
-
- QQuickTransition *replaceEnter() const;
- void setReplaceEnter(QQuickTransition *enter);
-
- QQuickTransition *replaceExit() const;
- void setReplaceExit(QQuickTransition *exit);
-
- enum LoadBehavior {
- DontLoad,
- ForceLoad
- };
- Q_ENUM(LoadBehavior)
-
- Q_INVOKABLE QQuickItem *get(int index, LoadBehavior behavior = DontLoad);
- Q_INVOKABLE QQuickItem *find(const QJSValue &callback, LoadBehavior behavior = DontLoad);
-
- enum Operation {
- Transition = -1, // deprecated
- Immediate = 0,
- PushTransition = 1,
- ReplaceTransition = 2,
- PopTransition = 3,
- };
- Q_ENUM(Operation)
-
- Q_INVOKABLE void push(QQmlV4Function *args);
- Q_INVOKABLE void pop(QQmlV4Function *args);
- Q_INVOKABLE void replace(QQmlV4Function *args);
-
- // 2.3 (Qt 5.10)
- bool isEmpty() const;
-
-public Q_SLOTS:
- void clear(Operation operation = Immediate);
-
-Q_SIGNALS:
- void busyChanged();
- void depthChanged();
- void currentItemChanged();
- void popEnterChanged();
- void popExitChanged();
- void pushEnterChanged();
- void pushExitChanged();
- void replaceEnterChanged();
- void replaceExitChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void emptyChanged();
-
-protected:
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- bool childMouseEventFilter(QQuickItem *, QEvent *) override;
-
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickStackView)
- Q_DECLARE_PRIVATE(QQuickStackView)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickStackViewAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(int index READ index NOTIFY indexChanged FINAL)
- Q_PROPERTY(QQuickStackView *view READ view NOTIFY viewChanged FINAL)
- Q_PROPERTY(QQuickStackView::Status status READ status NOTIFY statusChanged FINAL)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible RESET resetVisible NOTIFY visibleChanged FINAL) // REVISION 2
-
-public:
- explicit QQuickStackViewAttached(QObject *parent = nullptr);
- ~QQuickStackViewAttached();
-
- int index() const;
- QQuickStackView *view() const;
- QQuickStackView::Status status() const;
-
- // 2.2 (Qt 5.9)
- bool isVisible() const;
- void setVisible(bool visible);
- void resetVisible();
-
-Q_SIGNALS:
- void indexChanged();
- void viewChanged();
- void statusChanged();
- // 2.1 (Qt 5.8)
- /*Q_REVISION(1)*/ void activated();
- /*Q_REVISION(1)*/ void activating();
- /*Q_REVISION(1)*/ void deactivated();
- /*Q_REVISION(1)*/ void deactivating();
- /*Q_REVISION(1)*/ void removed();
- // 2.2 (Qt 5.9)
- /*Q_REVISION(2)*/ void visibleChanged();
-
-private:
- Q_DISABLE_COPY(QQuickStackViewAttached)
- Q_DECLARE_PRIVATE(QQuickStackViewAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickStackView)
-QML_DECLARE_TYPEINFO(QQuickStackView, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKSTACKVIEW_P_H
diff --git a/src/quicktemplates2/qquickstackview_p_p.h b/src/quicktemplates2/qquickstackview_p_p.h
deleted file mode 100644
index c20ce776..00000000
--- a/src/quicktemplates2/qquickstackview_p_p.h
+++ /dev/null
@@ -1,124 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSTACKVIEW_P_P_H
-#define QQUICKSTACKVIEW_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickstackview_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtQuick/private/qquickitemviewtransition_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQml/private/qv4value_p.h>
-#include <QtCore/qset.h>
-#include <QtCore/qstack.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlContextData;
-class QQuickStackElement;
-struct QQuickStackTransition;
-
-class QQuickStackViewPrivate : public QQuickControlPrivate, public QQuickItemViewTransitionChangeListener
-{
- Q_DECLARE_PUBLIC(QQuickStackView)
-
-public:
- static QQuickStackViewPrivate *get(QQuickStackView *view)
- {
- return view->d_func();
- }
-
- void warn(const QString &error);
-
- void setCurrentItem(QQuickStackElement *element);
-
- QList<QQuickStackElement *> parseElements(int from, QQmlV4Function *args, QStringList *errors);
- QQuickStackElement *findElement(QQuickItem *item) const;
- QQuickStackElement *findElement(const QV4::Value &value) const;
- QQuickStackElement *createElement(const QV4::Value &value, QQmlContextData *context, QString *error);
- bool pushElements(const QList<QQuickStackElement *> &elements);
- bool pushElement(QQuickStackElement *element);
- bool popElements(QQuickStackElement *element);
- bool replaceElements(QQuickStackElement *element, const QList<QQuickStackElement *> &elements);
-
- void ensureTransitioner();
- void startTransition(const QQuickStackTransition &first, const QQuickStackTransition &second, bool immediate);
- void completeTransition(QQuickStackElement *element, QQuickTransition *transition, QQuickStackView::Status status);
-
- void viewItemTransitionFinished(QQuickItemViewTransitionableItem *item) override;
- void setBusy(bool busy);
- void depthChange(int newDepth, int oldDepth);
-
- bool busy = false;
- QString operation;
- QJSValue initialItem;
- QQuickItem *currentItem = nullptr;
- QSet<QQuickStackElement*> removing;
- QList<QQuickStackElement*> removed;
- QStack<QQuickStackElement *> elements;
- QQuickItemViewTransitioner *transitioner = nullptr;
-};
-
-class QQuickStackViewAttachedPrivate : public QObjectPrivate, public QQuickItemChangeListener
-{
- Q_DECLARE_PUBLIC(QQuickStackViewAttached)
-
-public:
- static QQuickStackViewAttachedPrivate *get(QQuickStackViewAttached *attached)
- {
- return attached->d_func();
- }
-
- void itemParentChanged(QQuickItem *item, QQuickItem *parent);
-
- bool explicitVisible = false;
- QQuickStackElement *element = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSTACKVIEW_P_P_H
diff --git a/src/quicktemplates2/qquickswipe_p.h b/src/quicktemplates2/qquickswipe_p.h
deleted file mode 100644
index 20e38e90..00000000
--- a/src/quicktemplates2/qquickswipe_p.h
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSWIPE_P_H
-#define QQUICKSWIPE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qobject.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtQuickTemplates2/private/qquickswipedelegate_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQmlComponent;
-class QQuickItem;
-class QQuickTransition;
-class QQuickSwipePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipe : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(qreal position READ position WRITE setPosition NOTIFY positionChanged FINAL)
- Q_PROPERTY(bool complete READ isComplete NOTIFY completeChanged FINAL)
- Q_PROPERTY(QQmlComponent *left READ left WRITE setLeft NOTIFY leftChanged FINAL)
- Q_PROPERTY(QQmlComponent *behind READ behind WRITE setBehind NOTIFY behindChanged FINAL)
- Q_PROPERTY(QQmlComponent *right READ right WRITE setRight NOTIFY rightChanged FINAL)
- Q_PROPERTY(QQuickItem *leftItem READ leftItem NOTIFY leftItemChanged FINAL)
- Q_PROPERTY(QQuickItem *behindItem READ behindItem NOTIFY behindItemChanged FINAL)
- Q_PROPERTY(QQuickItem *rightItem READ rightItem NOTIFY rightItemChanged FINAL)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged FINAL) // REVISION 2
- Q_PROPERTY(QQuickTransition *transition READ transition WRITE setTransition NOTIFY transitionChanged FINAL) // REVISION 2
-
-public:
- explicit QQuickSwipe(QQuickSwipeDelegate *control);
-
- qreal position() const;
- void setPosition(qreal position);
-
- bool isComplete() const;
- void setComplete(bool complete);
-
- QQmlComponent *left() const;
- void setLeft(QQmlComponent *left);
-
- QQmlComponent *behind() const;
- void setBehind(QQmlComponent *behind);
-
- QQmlComponent *right() const;
- void setRight(QQmlComponent *right);
-
- QQuickItem *leftItem() const;
- void setLeftItem(QQuickItem *item);
-
- QQuickItem *behindItem() const;
- void setBehindItem(QQuickItem *item);
-
- QQuickItem *rightItem() const;
- void setRightItem(QQuickItem *item);
-
- // 2.1 (Qt 5.8)
- Q_REVISION(1) Q_INVOKABLE void close();
-
- // 2.2 (Qt 5.9)
- bool isEnabled() const;
- void setEnabled(bool enabled);
-
- QQuickTransition *transition() const;
- void setTransition(QQuickTransition *transition);
-
- Q_REVISION(2) Q_INVOKABLE void open(QQuickSwipeDelegate::Side side);
-
-Q_SIGNALS:
- void positionChanged();
- void completeChanged();
- void leftChanged();
- void behindChanged();
- void rightChanged();
- void leftItemChanged();
- void behindItemChanged();
- void rightItemChanged();
- // 2.1 (Qt 5.8)
- /*Q_REVISION(1)*/ void completed();
- // 2.2 (Qt 5.9)
- /*Q_REVISION(2)*/ void opened();
- /*Q_REVISION(2)*/ void closed();
- /*Q_REVISION(2)*/ void enabledChanged();
- /*Q_REVISION(2)*/ void transitionChanged();
-
-private:
- Q_DISABLE_COPY(QQuickSwipe)
- Q_DECLARE_PRIVATE(QQuickSwipe)
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSWIPE_P_H
diff --git a/src/quicktemplates2/qquickswipedelegate.cpp b/src/quicktemplates2/qquickswipedelegate.cpp
deleted file mode 100644
index 97c17a6b..00000000
--- a/src/quicktemplates2/qquickswipedelegate.cpp
+++ /dev/null
@@ -1,1385 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickswipedelegate_p.h"
-#include "qquickswipedelegate_p_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickitemdelegate_p_p.h"
-#include "qquickvelocitycalculator_p_p.h"
-
-#include <QtGui/qstylehints.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQml/qqmlinfo.h>
-#include <QtQuick/private/qquickanimation_p.h>
-#include <QtQuick/private/qquicktransition_p.h>
-#include <QtQuick/private/qquicktransitionmanager_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype SwipeDelegate
- \inherits ItemDelegate
- \instantiates QQuickSwipeDelegate
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-delegates
- \brief Swipable item delegate.
-
- SwipeDelegate presents a view item that can be swiped left or right to
- expose more options or information. It is used as a delegate in views such
- as \l ListView.
-
- In the following example, SwipeDelegate is used in a \l ListView to allow
- items to be removed from it by swiping to the left:
-
- \snippet qtquickcontrols2-swipedelegate.qml 1
-
- SwipeDelegate inherits its API from \l ItemDelegate, which is inherited
- from AbstractButton. For instance, you can set \l {AbstractButton::text}{text},
- and react to \l {AbstractButton::clicked}{clicks} using the AbstractButton
- API.
-
- Information regarding the progress of a swipe, as well as the components
- that should be shown upon swiping, are both available through the
- \l {SwipeDelegate::}{swipe} grouped property object. For example,
- \c swipe.position holds the position of the
- swipe within the range \c -1.0 to \c 1.0. The \c swipe.left
- property determines which item will be displayed when the control is swiped
- to the right, and vice versa for \c swipe.right. The positioning of these
- components is left to applications to decide. For example, without specifying
- any position for \c swipe.left or \c swipe.right, the following will
- occur:
-
- \image qtquickcontrols2-swipedelegate.gif
-
- If \c swipe.left and \c swipe.right are anchored to the left and
- right of the \l {Control::}{background} item (respectively), they'll behave like this:
-
- \image qtquickcontrols2-swipedelegate-leading-trailing.gif
-
- When using \c swipe.left and \c swipe.right, the control cannot be
- swiped past the left and right edges. To achieve this type of "wrapping"
- behavior, set \c swipe.behind instead. This will result in the same
- item being shown regardless of which direction the control is swiped. For
- example, in the image below, we set \c swipe.behind and then swipe the
- control repeatedly in both directions:
-
- \image qtquickcontrols2-swipedelegate-behind.gif
-
- \sa {Customizing SwipeDelegate}, {Delegate Controls}, {Qt Quick Controls 2 - Swipe to Remove}{Swipe to Remove Example}
-*/
-
-namespace {
- typedef QQuickSwipeDelegateAttached Attached;
-
- Attached *attachedObject(QQuickItem *item) {
- return qobject_cast<Attached*>(qmlAttachedPropertiesObject<QQuickSwipeDelegate>(item, false));
- }
-
- enum PositionAnimation {
- DontAnimatePosition,
- AnimatePosition
- };
-}
-
-class QQuickSwipeTransitionManager : public QQuickTransitionManager
-{
-public:
- QQuickSwipeTransitionManager(QQuickSwipe *swipe);
-
- void transition(QQuickTransition *transition, qreal position);
-
-protected:
- void finished() override;
-
-private:
- QQuickSwipe *m_swipe = nullptr;
-};
-
-class QQuickSwipePrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSwipe)
-
-public:
- QQuickSwipePrivate(QQuickSwipeDelegate *control) : control(control) { }
-
- static QQuickSwipePrivate *get(QQuickSwipe *swipe);
-
- QQuickItem *createDelegateItem(QQmlComponent *component);
- QQuickItem *showRelevantItemForPosition(qreal position);
- QQuickItem *createRelevantItemForDistance(qreal distance);
- void reposition(PositionAnimation animationPolicy);
- void createLeftItem();
- void createBehindItem();
- void createRightItem();
- void createAndShowLeftItem();
- void createAndShowBehindItem();
- void createAndShowRightItem();
-
- void warnAboutMixingDelegates();
- void warnAboutSettingDelegatesWhileVisible();
-
- bool hasDelegates() const;
-
- bool isTransitioning() const;
- void beginTransition(qreal position);
- void finishTransition();
-
- QQuickSwipeDelegate *control = nullptr;
- // Same range as position, but is set before press events so that we can
- // keep track of which direction the user must swipe when using left and right delegates.
- qreal positionBeforePress = 0;
- qreal position = 0;
- // A "less strict" version of complete that is true if complete was true
- // before the last press event.
- bool wasComplete = false;
- bool complete = false;
- bool enabled = true;
- QQuickVelocityCalculator velocityCalculator;
- QQmlComponent *left = nullptr;
- QQmlComponent *behind = nullptr;
- QQmlComponent *right = nullptr;
- QQuickItem *leftItem = nullptr;
- QQuickItem *behindItem = nullptr;
- QQuickItem *rightItem = nullptr;
- QQuickTransition *transition = nullptr;
- QScopedPointer<QQuickSwipeTransitionManager> transitionManager;
-};
-
-QQuickSwipeTransitionManager::QQuickSwipeTransitionManager(QQuickSwipe *swipe)
- : m_swipe(swipe)
-{
-}
-
-void QQuickSwipeTransitionManager::transition(QQuickTransition *transition, qreal position)
-{
- qmlExecuteDeferred(transition);
-
- QQmlProperty defaultTarget(m_swipe, QLatin1String("position"));
- QQmlListProperty<QQuickAbstractAnimation> animations = transition->animations();
- const int count = animations.count(&animations);
- for (int i = 0; i < count; ++i) {
- QQuickAbstractAnimation *anim = animations.at(&animations, i);
- anim->setDefaultTarget(defaultTarget);
- }
-
- QList<QQuickStateAction> actions;
- actions << QQuickStateAction(m_swipe, QLatin1String("position"), position);
- QQuickTransitionManager::transition(actions, transition, m_swipe);
-}
-
-void QQuickSwipeTransitionManager::finished()
-{
- QQuickSwipePrivate::get(m_swipe)->finishTransition();
-}
-
-QQuickSwipePrivate *QQuickSwipePrivate::get(QQuickSwipe *swipe)
-{
- return swipe->d_func();
-}
-
-QQuickItem *QQuickSwipePrivate::createDelegateItem(QQmlComponent *component)
-{
- // If we don't use the correct context, it won't be possible to refer to
- // the control's id from within the delegates.
- QQmlContext *creationContext = component->creationContext();
- // The component might not have been created in QML, in which case
- // the creation context will be null and we have to create it ourselves.
- if (!creationContext)
- creationContext = qmlContext(control);
- QQmlContext *context = new QQmlContext(creationContext, control);
- context->setContextObject(control);
- QQuickItem *item = qobject_cast<QQuickItem*>(component->beginCreate(context));
- if (item) {
- item->setParentItem(control);
- component->completeCreate();
- }
- return item;
-}
-
-QQuickItem *QQuickSwipePrivate::showRelevantItemForPosition(qreal position)
-{
- if (qFuzzyIsNull(position))
- return nullptr;
-
- if (behind) {
- createAndShowBehindItem();
- return behindItem;
- }
-
- if (right && position < 0.0) {
- createAndShowRightItem();
- return rightItem;
- }
-
- if (left && position > 0.0) {
- createAndShowLeftItem();
- return leftItem;
- }
-
- return nullptr;
-}
-
-QQuickItem *QQuickSwipePrivate::createRelevantItemForDistance(qreal distance)
-{
- if (qFuzzyIsNull(distance))
- return nullptr;
-
- if (behind) {
- createBehindItem();
- return behindItem;
- }
-
- // a) If the position before the press was 0.0, we know that *any* movement
- // whose distance is negative will result in the right item being shown and
- // vice versa.
- // b) Once the control has been exposed (that is, swiped to the left or right,
- // and hence the position is either -1.0 or 1.0), we must use the width of the
- // relevant item to determine if the distance is larger than that item,
- // in order to know whether or not to display it.
- // c) If the control has been exposed, and the swipe is larger than the width
- // of the relevant item from which the swipe started from, we must show the
- // item on the other side (if any).
-
- if (right) {
- if ((distance < 0.0 && positionBeforePress == 0.0) /* a) */
- || (rightItem && positionBeforePress == -1.0 && distance < rightItem->width()) /* b) */
- || (leftItem && positionBeforePress == 1.0 && qAbs(distance) > leftItem->width())) /* c) */ {
- createRightItem();
- return rightItem;
- }
- }
-
- if (left) {
- if ((distance > 0.0 && positionBeforePress == 0.0) /* a) */
- || (leftItem && positionBeforePress == 1.0 && qAbs(distance) < leftItem->width()) /* b) */
- || (rightItem && positionBeforePress == -1.0 && qAbs(distance) > rightItem->width())) /* c) */ {
- createLeftItem();
- return leftItem;
- }
- }
-
- return nullptr;
-}
-
-void QQuickSwipePrivate::reposition(PositionAnimation animationPolicy)
-{
- QQuickItem *relevantItem = showRelevantItemForPosition(position);
- const qreal relevantWidth = relevantItem ? relevantItem->width() : 0.0;
- const qreal contentItemX = position * relevantWidth + control->leftPadding();
-
- // "Behavior on x" relies on the property system to know when it should update,
- // so we can prevent it from animating by setting the x position directly.
- if (animationPolicy == AnimatePosition) {
- if (QQuickItem *contentItem = control->contentItem())
- contentItem->setProperty("x", contentItemX);
- if (QQuickItem *background = control->background())
- background->setProperty("x", position * relevantWidth);
- } else {
- if (QQuickItem *contentItem = control->contentItem())
- contentItem->setX(contentItemX);
- if (QQuickItem *background = control->background())
- background->setX(position * relevantWidth);
- }
-}
-
-void QQuickSwipePrivate::createLeftItem()
-{
- if (!leftItem) {
- Q_Q(QQuickSwipe);
- q->setLeftItem(createDelegateItem(left));
- if (!leftItem)
- qmlWarning(control) << "Failed to create left item:" << left->errors();
- }
-}
-
-void QQuickSwipePrivate::createBehindItem()
-{
- if (!behindItem) {
- Q_Q(QQuickSwipe);
- q->setBehindItem(createDelegateItem(behind));
- if (!behindItem)
- qmlWarning(control) << "Failed to create behind item:" << behind->errors();
- }
-}
-
-void QQuickSwipePrivate::createRightItem()
-{
- if (!rightItem) {
- Q_Q(QQuickSwipe);
- q->setRightItem(createDelegateItem(right));
- if (!rightItem)
- qmlWarning(control) << "Failed to create right item:" << right->errors();
- }
-}
-
-void QQuickSwipePrivate::createAndShowLeftItem()
-{
- createLeftItem();
-
- if (leftItem)
- leftItem->setVisible(true);
-
- if (rightItem)
- rightItem->setVisible(false);
-}
-
-void QQuickSwipePrivate::createAndShowBehindItem()
-{
- createBehindItem();
-
- if (behindItem)
- behindItem->setVisible(true);
-}
-
-void QQuickSwipePrivate::createAndShowRightItem()
-{
- createRightItem();
-
- // This item may have already existed but was hidden.
- if (rightItem)
- rightItem->setVisible(true);
-
- // The left item isn't visible when the right item is visible, so save rendering effort by hiding it.
- if (leftItem)
- leftItem->setVisible(false);
-}
-
-void QQuickSwipePrivate::warnAboutMixingDelegates()
-{
- qmlWarning(control) << "cannot set both behind and left/right properties";
-}
-
-void QQuickSwipePrivate::warnAboutSettingDelegatesWhileVisible()
-{
- qmlWarning(control) << "left/right/behind properties may only be set when swipe.position is 0";
-}
-
-bool QQuickSwipePrivate::hasDelegates() const
-{
- return left || right || behind;
-}
-
-bool QQuickSwipePrivate::isTransitioning() const
-{
- return transitionManager && transitionManager->isRunning();
-}
-
-void QQuickSwipePrivate::beginTransition(qreal newPosition)
-{
- Q_Q(QQuickSwipe);
- if (!transition) {
- q->setPosition(newPosition);
- finishTransition();
- return;
- }
-
- if (!transitionManager)
- transitionManager.reset(new QQuickSwipeTransitionManager(q));
-
- transitionManager->transition(transition, newPosition);
-}
-
-void QQuickSwipePrivate::finishTransition()
-{
- Q_Q(QQuickSwipe);
- q->setComplete(qFuzzyCompare(qAbs(position), qreal(1.0)));
- if (complete)
- emit q->opened();
- else
- emit q->closed();
-}
-
-QQuickSwipe::QQuickSwipe(QQuickSwipeDelegate *control)
- : QObject(*(new QQuickSwipePrivate(control)))
-{
-}
-
-QQmlComponent *QQuickSwipe::left() const
-{
- Q_D(const QQuickSwipe);
- return d->left;
-}
-
-void QQuickSwipe::setLeft(QQmlComponent *left)
-{
- Q_D(QQuickSwipe);
- if (left == d->left)
- return;
-
- if (d->behind) {
- d->warnAboutMixingDelegates();
- return;
- }
-
- if (!qFuzzyIsNull(d->position)) {
- d->warnAboutSettingDelegatesWhileVisible();
- return;
- }
-
- d->left = left;
-
- if (!d->left) {
- delete d->leftItem;
- d->leftItem = nullptr;
- }
-
- d->control->setFiltersChildMouseEvents(d->hasDelegates());
-
- emit leftChanged();
-}
-
-QQmlComponent *QQuickSwipe::behind() const
-{
- Q_D(const QQuickSwipe);
- return d->behind;
-}
-
-void QQuickSwipe::setBehind(QQmlComponent *behind)
-{
- Q_D(QQuickSwipe);
- if (behind == d->behind)
- return;
-
- if (d->left || d->right) {
- d->warnAboutMixingDelegates();
- return;
- }
-
- if (!qFuzzyIsNull(d->position)) {
- d->warnAboutSettingDelegatesWhileVisible();
- return;
- }
-
- d->behind = behind;
-
- if (!d->behind) {
- delete d->behindItem;
- d->behindItem = nullptr;
- }
-
- d->control->setFiltersChildMouseEvents(d->hasDelegates());
-
- emit behindChanged();
-}
-
-QQmlComponent *QQuickSwipe::right() const
-{
- Q_D(const QQuickSwipe);
- return d->right;
-}
-
-void QQuickSwipe::setRight(QQmlComponent *right)
-{
- Q_D(QQuickSwipe);
- if (right == d->right)
- return;
-
- if (d->behind) {
- d->warnAboutMixingDelegates();
- return;
- }
-
- if (!qFuzzyIsNull(d->position)) {
- d->warnAboutSettingDelegatesWhileVisible();
- return;
- }
-
- d->right = right;
-
- if (!d->right) {
- delete d->rightItem;
- d->rightItem = nullptr;
- }
-
- d->control->setFiltersChildMouseEvents(d->hasDelegates());
-
- emit rightChanged();
-}
-
-QQuickItem *QQuickSwipe::leftItem() const
-{
- Q_D(const QQuickSwipe);
- return d->leftItem;
-}
-
-void QQuickSwipe::setLeftItem(QQuickItem *item)
-{
- Q_D(QQuickSwipe);
- if (item == d->leftItem)
- return;
-
- delete d->leftItem;
- d->leftItem = item;
-
- if (d->leftItem) {
- d->leftItem->setParentItem(d->control);
-
- if (qFuzzyIsNull(d->leftItem->z()))
- d->leftItem->setZ(-2);
- }
-
- emit leftItemChanged();
-}
-
-QQuickItem *QQuickSwipe::behindItem() const
-{
- Q_D(const QQuickSwipe);
- return d->behindItem;
-}
-
-void QQuickSwipe::setBehindItem(QQuickItem *item)
-{
- Q_D(QQuickSwipe);
- if (item == d->behindItem)
- return;
-
- delete d->behindItem;
- d->behindItem = item;
-
- if (d->behindItem) {
- d->behindItem->setParentItem(d->control);
-
- if (qFuzzyIsNull(d->behindItem->z()))
- d->behindItem->setZ(-2);
- }
-
- emit behindItemChanged();
-}
-
-QQuickItem *QQuickSwipe::rightItem() const
-{
- Q_D(const QQuickSwipe);
- return d->rightItem;
-}
-
-void QQuickSwipe::setRightItem(QQuickItem *item)
-{
- Q_D(QQuickSwipe);
- if (item == d->rightItem)
- return;
-
- delete d->rightItem;
- d->rightItem = item;
-
- if (d->rightItem) {
- d->rightItem->setParentItem(d->control);
-
- if (qFuzzyIsNull(d->rightItem->z()))
- d->rightItem->setZ(-2);
- }
-
- emit rightItemChanged();
-}
-
-qreal QQuickSwipe::position() const
-{
- Q_D(const QQuickSwipe);
- return d->position;
-}
-
-void QQuickSwipe::setPosition(qreal position)
-{
- Q_D(QQuickSwipe);
- const qreal adjustedPosition = qBound<qreal>(-1.0, position, 1.0);
- if (adjustedPosition == d->position)
- return;
-
- d->position = adjustedPosition;
- d->reposition(AnimatePosition);
- emit positionChanged();
-}
-
-bool QQuickSwipe::isComplete() const
-{
- Q_D(const QQuickSwipe);
- return d->complete;
-}
-
-void QQuickSwipe::setComplete(bool complete)
-{
- Q_D(QQuickSwipe);
- if (complete == d->complete)
- return;
-
- d->complete = complete;
- emit completeChanged();
- if (d->complete)
- emit completed();
-}
-
-bool QQuickSwipe::isEnabled() const
-{
- Q_D(const QQuickSwipe);
- return d->enabled;
-}
-
-void QQuickSwipe::setEnabled(bool enabled)
-{
- Q_D(QQuickSwipe);
- if (enabled == d->enabled)
- return;
-
- d->enabled = enabled;
- emit enabledChanged();
-}
-
-QQuickTransition *QQuickSwipe::transition() const
-{
- Q_D(const QQuickSwipe);
- return d->transition;
-}
-
-void QQuickSwipe::setTransition(QQuickTransition *transition)
-{
- Q_D(QQuickSwipe);
- if (transition == d->transition)
- return;
-
- d->transition = transition;
- emit transitionChanged();
-}
-
-void QQuickSwipe::open(QQuickSwipeDelegate::Side side)
-{
- Q_D(QQuickSwipe);
- if (qFuzzyCompare(qAbs(d->position), qreal(1.0)))
- return;
-
- if ((side != QQuickSwipeDelegate::Left && side != QQuickSwipeDelegate::Right)
- || (!d->left && !d->behind && side == QQuickSwipeDelegate::Left)
- || (!d->right && !d->behind && side == QQuickSwipeDelegate::Right))
- return;
-
- d->beginTransition(side);
- d->wasComplete = true;
- d->velocityCalculator.reset();
- d->positionBeforePress = d->position;
-}
-
-void QQuickSwipe::close()
-{
- Q_D(QQuickSwipe);
- if (qFuzzyIsNull(d->position))
- return;
-
- d->beginTransition(0.0);
- d->wasComplete = false;
- d->positionBeforePress = 0.0;
- d->velocityCalculator.reset();
-}
-
-QQuickSwipeDelegatePrivate::QQuickSwipeDelegatePrivate(QQuickSwipeDelegate *control)
- : swipe(control)
-{
-}
-
-bool QQuickSwipeDelegatePrivate::handleMousePressEvent(QQuickItem *item, QMouseEvent *event)
-{
- Q_Q(QQuickSwipeDelegate);
- QQuickSwipePrivate *swipePrivate = QQuickSwipePrivate::get(&swipe);
- // If the position is 0, we want to handle events ourselves - we don't want child items to steal them.
- // This code will only get called when a child item has been created;
- // events will go through the regular channels (mousePressEvent()) until then.
- if (qFuzzyIsNull(swipePrivate->position)) {
- q->mousePressEvent(event);
- // The press point could be incorrect if the press happened over a child item,
- // so we correct it after calling the base class' mousePressEvent(), rather
- // than having to duplicate its code just so we can set the pressPoint.
- setPressPoint(item->mapToItem(q, event->pos()));
- return true;
- }
-
- // The position is non-zero, this press could be either for a delegate or the control itself
- // (the control can be clicked to e.g. close the swipe). Either way, we must begin measuring
- // mouse movement in case it turns into a swipe, in which case we grab the mouse.
- swipePrivate->positionBeforePress = swipePrivate->position;
- swipePrivate->velocityCalculator.startMeasuring(event->pos(), event->timestamp());
- setPressPoint(item->mapToItem(q, event->pos()));
-
- // When a delegate uses the attached properties and signals, it declares that it wants mouse events.
- Attached *attached = attachedObject(item);
- if (attached) {
- attached->setPressed(true);
- // Stop the event from propagating, as QQuickItem explicitly ignores events.
- event->accept();
- return true;
- }
-
- return false;
-}
-
-bool QQuickSwipeDelegatePrivate::handleMouseMoveEvent(QQuickItem *item, QMouseEvent *event)
-{
- Q_Q(QQuickSwipeDelegate);
-
- if (holdTimer > 0) {
- if (QLineF(pressPoint, event->localPos()).length() > QGuiApplication::styleHints()->startDragDistance())
- stopPressAndHold();
- }
-
- // The delegate can still be pressed when swipe.enabled is false,
- // but the mouse moving shouldn't have any effect on swipe.position.
- QQuickSwipePrivate *swipePrivate = QQuickSwipePrivate::get(&swipe);
- if (!swipePrivate->enabled)
- return false;
-
- // Protect against division by zero.
- if (width == 0)
- return false;
-
- // Don't bother reacting to events if we don't have any delegates.
- if (!swipePrivate->left && !swipePrivate->right && !swipePrivate->behind)
- return false;
-
- // Don't handle move events for the control if it wasn't pressed.
- if (item == q && !pressed)
- return false;
-
- const QPointF mappedEventPos = item->mapToItem(q, event->pos());
- const qreal distance = (mappedEventPos - pressPoint).x();
- if (!q->keepMouseGrab()) {
- // Taken from QQuickDrawerPrivate::grabMouse; see comments there.
- int threshold = qMax(20, QGuiApplication::styleHints()->startDragDistance() + 5);
- const bool overThreshold = QQuickWindowPrivate::dragOverThreshold(distance, Qt::XAxis, event, threshold);
- if (window && overThreshold) {
- QQuickItem *grabber = q->window()->mouseGrabberItem();
- if (!grabber || !grabber->keepMouseGrab()) {
- q->grabMouse();
- q->setKeepMouseGrab(true);
- q->setPressed(true);
- swipe.setComplete(false);
-
- if (Attached *attached = attachedObject(item))
- attached->setPressed(false);
- }
- }
- }
-
- if (q->keepMouseGrab()) {
- // Ensure we don't try to calculate a position when the user tried to drag
- // to the left when the left item is already exposed, and vice versa.
- // The code below assumes that the drag is valid, so if we don't have this check,
- // the wrong items are visible and the swiping wraps.
- if (swipePrivate->behind
- || ((swipePrivate->left || swipePrivate->right)
- && (qFuzzyIsNull(swipePrivate->positionBeforePress)
- || (swipePrivate->positionBeforePress == -1.0 && distance >= 0.0)
- || (swipePrivate->positionBeforePress == 1.0 && distance <= 0.0)))) {
-
- // We must instantiate the items here so that we can calculate the
- // position against the width of the relevant item.
- QQuickItem *relevantItem = swipePrivate->createRelevantItemForDistance(distance);
- // If there isn't any relevant item, the user may have swiped back to the 0 position,
- // or they swiped back to a position that is equal to positionBeforePress.
- const qreal normalizedDistance = relevantItem ? distance / relevantItem->width() : 0.0;
- qreal position = 0;
-
- // If the control was exposed before the drag begun, the distance should be inverted.
- // For example, if the control had been swiped to the right, the position would be 1.0.
- // If the control was then swiped to the left by a distance of -20 pixels, the normalized
- // distance might be -0.2, for example, which cannot be used as the position; the swipe
- // started from the right, so we account for that by adding the position.
- if (qFuzzyIsNull(normalizedDistance)) {
- // There are two cases when the normalizedDistance can be 0,
- // and we must distinguish between them:
- //
- // a) The swipe returns to the position that it was at before the press event.
- // In this case, the distance will be 0.
- // There would have been many position changes in the meantime, so we can't just
- // ignore the move event; we have to set position to what it was before the press.
- //
- // b) If the position was at, 1.0, for example, and the control was then swiped
- // to the left by the exact width of the left item, there won't be any relevant item
- // (because the swipe's position would be at 0.0). In turn, the normalizedDistance
- // would be 0 (because of the lack of a relevant item), but the distance will be non-zero.
- position = qFuzzyIsNull(distance) ? swipePrivate->positionBeforePress : 0;
- } else if (!swipePrivate->wasComplete) {
- position = normalizedDistance;
- } else {
- position = distance > 0 ? normalizedDistance - 1.0 : normalizedDistance + 1.0;
- }
-
- if (swipePrivate->isTransitioning())
- swipePrivate->transitionManager->cancel();
- swipe.setPosition(position);
- }
- } else {
- // The swipe wasn't initiated.
- if (event->pos().y() < 0 || event->pos().y() > height) {
- // The mouse went outside the vertical bounds of the control, so
- // we should no longer consider it pressed.
- q->setPressed(false);
- }
- }
-
- event->accept();
-
- return q->keepMouseGrab();
-}
-
-static const qreal exposeVelocityThreshold = 300.0;
-
-bool QQuickSwipeDelegatePrivate::handleMouseReleaseEvent(QQuickItem *item, QMouseEvent *event)
-{
- Q_Q(QQuickSwipeDelegate);
- QQuickSwipePrivate *swipePrivate = QQuickSwipePrivate::get(&swipe);
- swipePrivate->velocityCalculator.stopMeasuring(event->pos(), event->timestamp());
-
- const bool hadGrabbedMouse = q->keepMouseGrab();
- q->setKeepMouseGrab(false);
-
- // Animations for the background and contentItem delegates are typically
- // only enabled when !control.down, so that the animations aren't running
- // when the user is swiping. To ensure that the animations are enabled
- // *before* the positions of these delegates change (via the swipe.setPosition() calls below),
- // we must cancel the press. QQuickAbstractButton::mouseUngrabEvent() does this
- // for us, but by then it's too late.
- if (hadGrabbedMouse) {
- // TODO: this is copied from QQuickAbstractButton::mouseUngrabEvent().
- // Eventually it should be moved into a private helper so that we don't have to duplicate it.
- q->setPressed(false);
- stopPressRepeat();
- stopPressAndHold();
- emit q->canceled();
- }
-
- // The control can be exposed by either swiping past the halfway mark, or swiping fast enough.
- const qreal swipeVelocity = swipePrivate->velocityCalculator.velocity().x();
- if (swipePrivate->position > 0.5 ||
- (swipePrivate->position > 0.0 && swipeVelocity > exposeVelocityThreshold)) {
- swipePrivate->beginTransition(1.0);
- swipePrivate->wasComplete = true;
- } else if (swipePrivate->position < -0.5 ||
- (swipePrivate->position < 0.0 && swipeVelocity < -exposeVelocityThreshold)) {
- swipePrivate->beginTransition(-1.0);
- swipePrivate->wasComplete = true;
- } else if (!swipePrivate->isTransitioning()) {
- swipePrivate->beginTransition(0.0);
- swipePrivate->wasComplete = false;
- }
-
- if (Attached *attached = attachedObject(item)) {
- const bool wasPressed = attached->isPressed();
- if (wasPressed) {
- attached->setPressed(false);
- emit attached->clicked();
- }
- }
-
- // Only consume child events if we had grabbed the mouse.
- return hadGrabbedMouse;
-}
-
-static void warnIfHorizontallyAnchored(QQuickItem *item, const QString &itemName)
-{
- if (!item)
- return;
-
- QQuickAnchors *anchors = QQuickItemPrivate::get(item)->_anchors;
- if (anchors && (anchors->fill() || anchors->centerIn() || anchors->left().item || anchors->right().item)
- && !item->property("_q_QQuickSwipeDelegate_warned").toBool()) {
- qmlWarning(item) << QString::fromLatin1("SwipeDelegate: cannot use horizontal anchors with %1; unable to layout the item.").arg(itemName);
- item->setProperty("_q_QQuickSwipeDelegate_warned", true);
- }
-}
-
-void QQuickSwipeDelegatePrivate::resizeContent()
-{
- warnIfHorizontallyAnchored(background, QStringLiteral("background"));
- warnIfHorizontallyAnchored(contentItem, QStringLiteral("contentItem"));
-
- // If the background and contentItem are repositioned due to a swipe,
- // we don't want to call QQuickControlPrivate's implementation of this function,
- // as it repositions the contentItem to be visible.
- // However, we still want to resize the control vertically.
- QQuickSwipePrivate *swipePrivate = QQuickSwipePrivate::get(&swipe);
- if (!swipePrivate->complete) {
- QQuickItemDelegatePrivate::resizeContent();
- } else if (contentItem) {
- Q_Q(QQuickSwipeDelegate);
- contentItem->setY(q->topPadding());
- contentItem->setHeight(q->availableHeight());
- }
-}
-
-QQuickSwipeDelegate::QQuickSwipeDelegate(QQuickItem *parent)
- : QQuickItemDelegate(*(new QQuickSwipeDelegatePrivate(this)), parent)
-{
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlmethod void QtQuick.Controls::SwipeDelegate::swipe.open(enumeration side)
-
- This method sets the \c position of the swipe so that it opens
- from the specified \a side.
-
- Available values:
- \value SwipeDelegate.Left The \c position is set to \c 1, which makes the swipe open
- from the left. Either \c swipe.left or \c swipe.behind must
- have been specified; otherwise the call is ignored.
- \value SwipeDelegate.Right The \c position is set to \c -1, which makes the swipe open
- from the right. Either \c swipe.right or \c swipe.behind must
- have been specified; otherwise the call is ignored.
-
- Any animations defined for the \l {Item::}{x} position of \l {Control::}{contentItem}
- and \l {Control::}{background} will be triggered.
-
- \sa swipe, swipe.close()
-*/
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlmethod void QtQuick.Controls::SwipeDelegate::swipe.close()
-
- This method sets the \c position of the swipe to \c 0. Any animations
- defined for the \l {Item::}{x} position of \l {Control::}{contentItem}
- and \l {Control::}{background} will be triggered.
-
- \sa swipe, swipe.open()
-*/
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlsignal void QtQuick.Controls::SwipeDelegate::swipe.opened()
-
- This signal is emitted when the delegate has been swiped open
- and the transition has finished.
-
- It is useful for performing some action upon completion of a swipe.
- For example, it can be used to remove the delegate from the list
- that it is in.
-
- \sa swipe, swipe.closed()
-*/
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlsignal void QtQuick.Controls::SwipeDelegate::swipe.closed()
-
- This signal is emitted when the delegate has been swiped to closed
- and the transition has finished.
-
- It is useful for performing some action upon cancellation of a swipe.
- For example, it can be used to cancel the removal of the delegate from
- the list that it is in.
-
- \sa swipe, swipe.opened()
-*/
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlsignal void QtQuick.Controls::SwipeDelegate::swipe.completed()
-
- This signal is emitted when \c swipe.complete becomes \c true.
-
- It is useful for performing some action upon completion of a swipe.
- For example, it can be used to remove the delegate from the list
- that it is in.
-
- \sa swipe
-*/
-
-/*!
- \qmlpropertygroup QtQuick.Controls::SwipeDelegate::swipe
- \qmlproperty real QtQuick.Controls::SwipeDelegate::swipe.position
- \qmlproperty bool QtQuick.Controls::SwipeDelegate::swipe.complete
- \qmlproperty bool QtQuick.Controls::SwipeDelegate::swipe.enabled
- \qmlproperty Component QtQuick.Controls::SwipeDelegate::swipe.left
- \qmlproperty Component QtQuick.Controls::SwipeDelegate::swipe.behind
- \qmlproperty Component QtQuick.Controls::SwipeDelegate::swipe.right
- \qmlproperty Item QtQuick.Controls::SwipeDelegate::swipe.leftItem
- \qmlproperty Item QtQuick.Controls::SwipeDelegate::swipe.behindItem
- \qmlproperty Item QtQuick.Controls::SwipeDelegate::swipe.rightItem
- \qmlproperty Transition QtQuick.Controls::SwipeDelegate::swipe.transition
-
- \table
- \header
- \li Name
- \li Description
- \row
- \li position
- \li This read-only property holds the position of the swipe relative to either
- side of the control. When this value reaches either
- \c -1.0 (left side) or \c 1.0 (right side) and the mouse button is
- released, \c complete will be \c true.
- \row
- \li complete
- \li This read-only property holds whether the control is fully exposed after
- having been swiped to the left or right.
-
- When complete is \c true, any interactive items declared in \c left,
- \c right, or \c behind will receive mouse events.
- \row
- \li enabled
- \li This property determines whether or not the control can be swiped.
-
- This property was added in QtQuick.Controls 2.2.
- \row
- \li left
- \li This property holds the left delegate.
-
- The left delegate sits behind both \l {Control::}{contentItem} and
- \l {Control::}{background}. When the SwipeDelegate is swiped to the right,
- this item will be gradually revealed.
-
- \include qquickswipedelegate-interaction.qdocinc
- \row
- \li behind
- \li This property holds the delegate that is shown when the
- SwipeDelegate is swiped to both the left and right.
-
- As with the \c left and \c right delegates, it sits behind both
- \l {Control::}{contentItem} and \l {Control::}{background}. However, a
- SwipeDelegate whose \c behind has been set can be continuously swiped
- from either side, and will always show the same item.
-
- \include qquickswipedelegate-interaction.qdocinc
- \row
- \li right
- \li This property holds the right delegate.
-
- The right delegate sits behind both \l {Control::}{contentItem} and
- \l {Control::}{background}. When the SwipeDelegate is swiped to the left,
- this item will be gradually revealed.
-
- \include qquickswipedelegate-interaction.qdocinc
- \row
- \li leftItem
- \li This read-only property holds the item instantiated from the \c left component.
-
- If \c left has not been set, or the position hasn't changed since
- creation of the SwipeDelegate, this property will be \c null.
- \row
- \li behindItem
- \li This read-only property holds the item instantiated from the \c behind component.
-
- If \c behind has not been set, or the position hasn't changed since
- creation of the SwipeDelegate, this property will be \c null.
- \row
- \li rightItem
- \li This read-only property holds the item instantiated from the \c right component.
-
- If \c right has not been set, or the position hasn't changed since
- creation of the SwipeDelegate, this property will be \c null.
- \row
- \li transition
- \li This property holds the transition that is applied when a swipe is released,
- or \l swipe.open() or \l swipe.close() is called.
-
- \snippet qtquickcontrols2-swipedelegate-transition.qml 1
-
- This property was added in Qt Quick Controls 2.2.
- \endtable
-
- \sa {Control::}{contentItem}, {Control::}{background}, swipe.open(), swipe.close()
-*/
-QQuickSwipe *QQuickSwipeDelegate::swipe() const
-{
- Q_D(const QQuickSwipeDelegate);
- return const_cast<QQuickSwipe*>(&d->swipe);
-}
-
-QQuickSwipeDelegateAttached *QQuickSwipeDelegate::qmlAttachedProperties(QObject *object)
-{
- return new QQuickSwipeDelegateAttached(object);
-}
-
-static bool isChildOrGrandchildOf(QQuickItem *child, QQuickItem *item)
-{
- return item && (child == item || item->isAncestorOf(child));
-}
-
-bool QQuickSwipeDelegate::childMouseEventFilter(QQuickItem *child, QEvent *event)
-{
- Q_D(QQuickSwipeDelegate);
- // The contentItem is, by default, usually a non-interactive item like Text, and
- // the same applies to the background. This means that simply stacking the left/right/behind
- // items before these items won't allow us to get mouse events when the control is not currently exposed
- // but has been previously. Therefore, we instead call setFiltersChildMouseEvents(true) in the constructor
- // and filter out child events only when the child is the left/right/behind item.
- const QQuickSwipePrivate *swipePrivate = QQuickSwipePrivate::get(&d->swipe);
- if (!isChildOrGrandchildOf(child, swipePrivate->leftItem) && !isChildOrGrandchildOf(child, swipePrivate->behindItem)
- && !isChildOrGrandchildOf(child, swipePrivate->rightItem)) {
- return false;
- }
-
- switch (event->type()) {
- case QEvent::MouseButtonPress: {
- return d->handleMousePressEvent(child, static_cast<QMouseEvent *>(event));
- } case QEvent::MouseMove: {
- return d->handleMouseMoveEvent(child, static_cast<QMouseEvent *>(event));
- } case QEvent::MouseButtonRelease: {
- // Make sure that the control gets release events if it has created child
- // items that are stealing events from it.
- QMouseEvent *mouseEvent = static_cast<QMouseEvent *>(event);
- QQuickItemDelegate::mouseReleaseEvent(mouseEvent);
- return d->handleMouseReleaseEvent(child, mouseEvent);
- } case QEvent::UngrabMouse: {
- // If the mouse was pressed over e.g. rightItem and then dragged down,
- // the ListView would eventually grab the mouse, at which point we must
- // clear the pressed flag so that it doesn't stay pressed after the release.
- Attached *attached = attachedObject(child);
- if (attached)
- attached->setPressed(false);
- return false;
- } default:
- return false;
- }
-}
-
-// We only override this to set positionBeforePress;
-// otherwise, it's the same as the base class implementation.
-void QQuickSwipeDelegate::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickSwipeDelegate);
- QQuickItemDelegate::mousePressEvent(event);
-
- QQuickSwipePrivate *swipePrivate = QQuickSwipePrivate::get(&d->swipe);
- if (!swipePrivate->enabled)
- return;
-
- swipePrivate->positionBeforePress = swipePrivate->position;
- swipePrivate->velocityCalculator.startMeasuring(event->pos(), event->timestamp());
-}
-
-void QQuickSwipeDelegate::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickSwipeDelegate);
- if (filtersChildMouseEvents())
- d->handleMouseMoveEvent(this, event);
- else
- QQuickItemDelegate::mouseMoveEvent(event);
-}
-
-void QQuickSwipeDelegate::mouseReleaseEvent(QMouseEvent *event)
-{
- Q_D(QQuickSwipeDelegate);
- if (!filtersChildMouseEvents() || !d->handleMouseReleaseEvent(this, event))
- QQuickItemDelegate::mouseReleaseEvent(event);
-}
-
-void QQuickSwipeDelegate::touchEvent(QTouchEvent *event)
-{
- // Don't allow QQuickControl accept the touch event, because QQuickSwipeDelegate
- // is still based on synthesized mouse events
- event->ignore();
-}
-
-void QQuickSwipeDelegate::componentComplete()
-{
- Q_D(QQuickSwipeDelegate);
- QQuickItemDelegate::componentComplete();
- QQuickSwipePrivate::get(&d->swipe)->reposition(DontAnimatePosition);
-}
-
-void QQuickSwipeDelegate::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickSwipeDelegate);
- QQuickControl::geometryChanged(newGeometry, oldGeometry);
-
- if (isComponentComplete() && !qFuzzyCompare(newGeometry.width(), oldGeometry.width())) {
- QQuickSwipePrivate *swipePrivate = QQuickSwipePrivate::get(&d->swipe);
- swipePrivate->reposition(DontAnimatePosition);
- }
-}
-
-QFont QQuickSwipeDelegate::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ListView);
-}
-
-QPalette QQuickSwipeDelegate::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ListView);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickSwipeDelegate::accessibleRole() const
-{
- return QAccessible::ListItem;
-}
-#endif
-
-class QQuickSwipeDelegateAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSwipeDelegateAttached)
-
-public:
- // True when left/right/behind is non-interactive and is pressed.
- bool pressed = false;
-};
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlattachedsignal QtQuick.Controls::SwipeDelegate::clicked()
-
- This signal can be attached to a non-interactive item declared in
- \c swipe.left, \c swipe.right, or \c swipe.behind, in order to react to
- clicks. Items can only be clicked when \c swipe.complete is \c true.
-
- For interactive controls (such as \l Button) declared in these
- items, use their respective \c clicked() signal instead.
-
- To respond to clicks on the SwipeDelegate itself, use its
- \l {AbstractButton::}{clicked()} signal.
-
- \note See the documentation for \l pressed for information on
- how to use the event-related properties correctly.
-
- \sa pressed
-*/
-
-QQuickSwipeDelegateAttached::QQuickSwipeDelegateAttached(QObject *object)
- : QObject(*(new QQuickSwipeDelegateAttachedPrivate), object)
-{
- QQuickItem *item = qobject_cast<QQuickItem *>(object);
- if (item) {
- // This allows us to be notified when an otherwise non-interactive item
- // is pressed and clicked. The alternative is much more more complex:
- // iterating through children that contain the event pos and finding
- // the first one with an attached object.
- item->setAcceptedMouseButtons(Qt::AllButtons);
- } else {
- qWarning() << "Attached properties of SwipeDelegate must be accessed through an Item";
- }
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlattachedproperty bool QtQuick.Controls::SwipeDelegate::pressed
- \readonly
-
- This property can be attached to a non-interactive item declared in
- \c swipe.left, \c swipe.right, or \c swipe.behind, in order to detect if it
- is pressed. Items can only be pressed when \c swipe.complete is \c true.
-
- For example:
-
- \code
- swipe.right: Label {
- anchors.right: parent.right
- height: parent.height
- text: "Action"
- color: "white"
- padding: 12
- background: Rectangle {
- color: SwipeDelegate.pressed ? Qt.darker("tomato", 1.1) : "tomato"
- }
- }
- \endcode
-
- It is possible to have multiple items which individually receive mouse and
- touch events. For example, to have two actions in the \c swipe.right item,
- use the following code:
-
- \code
- swipe.right: Row {
- anchors.right: parent.right
- height: parent.height
-
- Label {
- id: moveLabel
- text: qsTr("Move")
- color: "white"
- verticalAlignment: Label.AlignVCenter
- padding: 12
- height: parent.height
-
- SwipeDelegate.onClicked: console.log("Moving...")
-
- background: Rectangle {
- color: moveLabel.SwipeDelegate.pressed ? Qt.darker("#ffbf47", 1.1) : "#ffbf47"
- }
- }
- Label {
- id: deleteLabel
- text: qsTr("Delete")
- color: "white"
- verticalAlignment: Label.AlignVCenter
- padding: 12
- height: parent.height
-
- SwipeDelegate.onClicked: console.log("Deleting...")
-
- background: Rectangle {
- color: deleteLabel.SwipeDelegate.pressed ? Qt.darker("tomato", 1.1) : "tomato"
- }
- }
- }
- \endcode
-
- Note how the \c color assignment in each \l {Control::}{background} item
- qualifies the attached property with the \c id of the label. This
- is important; using the attached properties on an item causes that item
- to accept events. Suppose we had left out the \c id in the previous example:
-
- \code
- color: SwipeDelegate.pressed ? Qt.darker("tomato", 1.1) : "tomato"
- \endcode
-
- The \l Rectangle background item is a child of the label, so it naturally
- receives events before it. In practice, this means that the background
- color will change, but the \c onClicked handler in the label will never
- get called.
-
- For interactive controls (such as \l Button) declared in these
- items, use their respective \c pressed property instead.
-
- For presses on the SwipeDelegate itself, use its
- \l {AbstractButton::}{pressed} property.
-
- \sa clicked()
-*/
-bool QQuickSwipeDelegateAttached::isPressed() const
-{
- Q_D(const QQuickSwipeDelegateAttached);
- return d->pressed;
-}
-
-void QQuickSwipeDelegateAttached::setPressed(bool pressed)
-{
- Q_D(QQuickSwipeDelegateAttached);
- if (pressed == d->pressed)
- return;
-
- d->pressed = pressed;
- emit pressedChanged();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickswipedelegate_p.h b/src/quicktemplates2/qquickswipedelegate_p.h
deleted file mode 100644
index 53211ccb..00000000
--- a/src/quicktemplates2/qquickswipedelegate_p.h
+++ /dev/null
@@ -1,123 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSWIPEDELEGATE_P_H
-#define QQUICKSWIPEDELEGATE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickitemdelegate_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickSwipe;
-class QQuickSwipeDelegatePrivate;
-class QQuickSwipeDelegateAttached;
-class QQuickSwipeDelegateAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeDelegate : public QQuickItemDelegate
-{
- Q_OBJECT
- Q_PROPERTY(QQuickSwipe *swipe READ swipe CONSTANT FINAL)
-
-public:
- explicit QQuickSwipeDelegate(QQuickItem *parent = nullptr);
-
- QQuickSwipe *swipe() const;
-
- enum Side { Left = 1, Right = -1 };
- Q_ENUM(Side)
-
- static QQuickSwipeDelegateAttached *qmlAttachedProperties(QObject *object);
-
-protected:
- bool childMouseEventFilter(QQuickItem *child, QEvent *event) override;
- void mousePressEvent(QMouseEvent *event) override;
- void mouseMoveEvent(QMouseEvent *event) override;
- void mouseReleaseEvent(QMouseEvent *event) override;
- void touchEvent(QTouchEvent *event) override;
-
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickSwipeDelegate)
- Q_DECLARE_PRIVATE(QQuickSwipeDelegate)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeDelegateAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(bool pressed READ isPressed NOTIFY pressedChanged FINAL)
-
-public:
- explicit QQuickSwipeDelegateAttached(QObject *object = nullptr);
-
- bool isPressed() const;
- void setPressed(bool pressed);
-
-Q_SIGNALS:
- void pressedChanged();
- void clicked();
-
-private:
- Q_DISABLE_COPY(QQuickSwipeDelegateAttached)
- Q_DECLARE_PRIVATE(QQuickSwipeDelegateAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickSwipeDelegate)
-QML_DECLARE_TYPEINFO(QQuickSwipeDelegate, QML_HAS_ATTACHED_PROPERTIES)
-Q_DECLARE_METATYPE(QQuickSwipeDelegate::Side)
-
-#endif // QQUICKSWIPEDELEGATE_P_H
diff --git a/src/quicktemplates2/qquickswipedelegate_p_p.h b/src/quicktemplates2/qquickswipedelegate_p_p.h
deleted file mode 100644
index 78c72ec8..00000000
--- a/src/quicktemplates2/qquickswipedelegate_p_p.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSWIPEDELEGATE_P_P_H
-#define QQUICKSWIPEDELEGATE_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickitemdelegate_p_p.h>
-#include <QtQuickTemplates2/private/qquickswipe_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickSwipeDelegate;
-
-class QQuickSwipeDelegatePrivate : public QQuickItemDelegatePrivate
-{
- Q_DECLARE_PUBLIC(QQuickSwipeDelegate)
-
-public:
- QQuickSwipeDelegatePrivate(QQuickSwipeDelegate *control);
-
- bool handleMousePressEvent(QQuickItem *item, QMouseEvent *event);
- bool handleMouseMoveEvent(QQuickItem *item, QMouseEvent *event);
- bool handleMouseReleaseEvent(QQuickItem *item, QMouseEvent *event);
-
- void resizeContent() override;
-
- QQuickSwipe swipe;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKSWIPEDELEGATE_P_P_H
diff --git a/src/quicktemplates2/qquickswipeview.cpp b/src/quicktemplates2/qquickswipeview.cpp
deleted file mode 100644
index 3ba4f4d3..00000000
--- a/src/quicktemplates2/qquickswipeview.cpp
+++ /dev/null
@@ -1,476 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickswipeview_p.h"
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQuickTemplates2/private/qquickcontainer_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype SwipeView
- \inherits Container
- \instantiates QQuickSwipeView
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-navigation
- \ingroup qtquickcontrols2-containers
- \ingroup qtquickcontrols2-focusscopes
- \brief Enables the user to navigate pages by swiping sideways.
-
- SwipeView provides a swipe-based navigation model.
-
- \image qtquickcontrols2-swipeview.gif
-
- SwipeView is populated with a set of pages. One page is visible at a time.
- The user can navigate between the pages by swiping sideways. Notice that
- SwipeView itself is entirely non-visual. It is recommended to combine it
- with PageIndicator, to give the user a visual clue that there are multiple
- pages.
-
- \snippet qtquickcontrols2-swipeview-indicator.qml 1
-
- As shown above, SwipeView is typically populated with a static set of
- pages that are defined inline as children of the view. It is also possible
- to \l {Container::addItem()}{add}, \l {Container::insertItem()}{insert},
- \l {Container::moveItem()}{move}, and \l {Container::removeItem()}{remove}
- pages dynamically at run time.
-
- It is generally not advisable to add excessive amounts of pages to a
- SwipeView. However, when the amount of pages grows larger, or individual
- pages are relatively complex, it may be desirable to free up resources by
- unloading pages that are outside the immediate reach of the user.
- The following example presents how to use \l Loader to keep a maximum of
- three pages simultaneously instantiated.
-
- \code
- SwipeView {
- Repeater {
- model: 6
- Loader {
- active: SwipeView.isCurrentItem || SwipeView.isNextItem || SwipeView.isPreviousItem
- sourceComponent: Text {
- text: index
- Component.onCompleted: console.log("created:", index)
- Component.onDestruction: console.log("destroyed:", index)
- }
- }
- }
- }
- \endcode
-
- \note SwipeView takes over the geometry management of items added to the
- view. Using anchors on the items is not supported, and any \c width
- or \c height assignment will be overridden by the view. Notice that
- this only applies to the root of the item. Specifying width and height,
- or using anchors for its children works as expected.
-
- \sa TabBar, PageIndicator, {Customizing SwipeView}, {Navigation Controls}, {Container Controls},
- {Focus Management in Qt Quick Controls}
-*/
-
-class QQuickSwipeViewPrivate : public QQuickContainerPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSwipeView)
-
-public:
- void resizeItem(QQuickItem *item);
- void resizeItems();
-
- static QQuickSwipeViewPrivate *get(QQuickSwipeView *view);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- qreal getContentWidth() const override;
- qreal getContentHeight() const override;
-
- bool interactive = true;
- Qt::Orientation orientation = Qt::Horizontal;
-};
-
-class QQuickSwipeViewAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSwipeViewAttached)
-
-public:
- static QQuickSwipeViewAttachedPrivate *get(QQuickSwipeViewAttached *attached)
- {
- return attached->d_func();
- }
-
- void update(QQuickSwipeView *newView, int newIndex);
- void updateCurrentIndex();
- void setCurrentIndex(int i);
-
- QQuickSwipeView *swipeView = nullptr;
- int index = -1;
- int currentIndex = -1;
-};
-
-void QQuickSwipeViewPrivate::resizeItems()
-{
- Q_Q(QQuickSwipeView);
- const int count = q->count();
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = itemAt(i);
- if (item) {
- QQuickAnchors *anchors = QQuickItemPrivate::get(item)->_anchors;
- // TODO: expose QQuickAnchorLine so we can test for other conflicting anchors
- if (anchors && (anchors->fill() || anchors->centerIn()) && !item->property("_q_QQuickSwipeView_warned").toBool()) {
- qmlWarning(item) << "SwipeView has detected conflicting anchors. Unable to layout the item.";
- item->setProperty("_q_QQuickSwipeView_warned", true);
- }
-
- if (orientation == Qt::Horizontal)
- item->setY(0);
- else
- item->setX(0);
- item->setSize(QSizeF(contentItem->width(), contentItem->height()));
- }
- }
-}
-
-QQuickSwipeViewPrivate *QQuickSwipeViewPrivate::get(QQuickSwipeView *view)
-{
- return view->d_func();
-}
-
-void QQuickSwipeViewPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickSwipeView);
- QQuickContainerPrivate::itemImplicitWidthChanged(item);
- if (item == q->currentItem())
- updateImplicitContentWidth();
-}
-
-void QQuickSwipeViewPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickSwipeView);
- QQuickContainerPrivate::itemImplicitHeightChanged(item);
- if (item == q->currentItem())
- updateImplicitContentHeight();
-}
-
-qreal QQuickSwipeViewPrivate::getContentWidth() const
-{
- Q_Q(const QQuickSwipeView);
- QQuickItem *currentItem = q->currentItem();
- return currentItem ? currentItem->implicitWidth() : 0;
-}
-
-qreal QQuickSwipeViewPrivate::getContentHeight() const
-{
- Q_Q(const QQuickSwipeView);
- QQuickItem *currentItem = q->currentItem();
- return currentItem ? currentItem->implicitHeight() : 0;
-}
-
-QQuickSwipeView::QQuickSwipeView(QQuickItem *parent)
- : QQuickContainer(*(new QQuickSwipeViewPrivate), parent)
-{
- Q_D(QQuickSwipeView);
- d->changeTypes |= QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight;
- setFlag(ItemIsFocusScope);
- setActiveFocusOnTab(true);
- QObjectPrivate::connect(this, &QQuickContainer::currentItemChanged, d, &QQuickControlPrivate::updateImplicitContentSize);
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlproperty bool QtQuick.Controls::SwipeView::interactive
-
- This property describes whether the user can interact with the SwipeView.
- The user cannot swipe a view that is not interactive.
-
- The default value is \c true.
-*/
-bool QQuickSwipeView::isInteractive() const
-{
- Q_D(const QQuickSwipeView);
- return d->interactive;
-}
-
-void QQuickSwipeView::setInteractive(bool interactive)
-{
- Q_D(QQuickSwipeView);
- if (d->interactive == interactive)
- return;
-
- d->interactive = interactive;
- emit interactiveChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty enumeration QtQuick.Controls::SwipeView::orientation
-
- This property holds the orientation.
-
- Possible values:
- \value Qt.Horizontal Horizontal (default)
- \value Qt.Vertical Vertical
-
- \sa horizontal, vertical
-*/
-Qt::Orientation QQuickSwipeView::orientation() const
-{
- Q_D(const QQuickSwipeView);
- return d->orientation;
-}
-
-void QQuickSwipeView::setOrientation(Qt::Orientation orientation)
-{
- Q_D(QQuickSwipeView);
- if (d->orientation == orientation)
- return;
-
- d->orientation = orientation;
- if (isComponentComplete())
- d->resizeItems();
- emit orientationChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::SwipeView::horizontal
- \readonly
-
- This property holds whether the swipe view is horizontal.
-
- \sa orientation
-*/
-bool QQuickSwipeView::isHorizontal() const
-{
- Q_D(const QQuickSwipeView);
- return d->orientation == Qt::Horizontal;
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty bool QtQuick.Controls::SwipeView::vertical
- \readonly
-
- This property holds whether the swipe view is vertical.
-
- \sa orientation
-*/
-bool QQuickSwipeView::isVertical() const
-{
- Q_D(const QQuickSwipeView);
- return d->orientation == Qt::Vertical;
-}
-
-QQuickSwipeViewAttached *QQuickSwipeView::qmlAttachedProperties(QObject *object)
-{
- return new QQuickSwipeViewAttached(object);
-}
-
-void QQuickSwipeView::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickSwipeView);
- QQuickContainer::geometryChanged(newGeometry, oldGeometry);
- d->resizeItems();
-}
-
-void QQuickSwipeView::itemAdded(int index, QQuickItem *item)
-{
- Q_D(QQuickSwipeView);
- QQuickItemPrivate::get(item)->setCulled(true); // QTBUG-51078, QTBUG-51669
- if (isComponentComplete())
- item->setSize(QSizeF(d->contentItem->width(), d->contentItem->height()));
- QQuickSwipeViewAttached *attached = qobject_cast<QQuickSwipeViewAttached *>(qmlAttachedPropertiesObject<QQuickSwipeView>(item));
- if (attached)
- QQuickSwipeViewAttachedPrivate::get(attached)->update(this, index);
-}
-
-void QQuickSwipeView::itemMoved(int index, QQuickItem *item)
-{
- QQuickSwipeViewAttached *attached = qobject_cast<QQuickSwipeViewAttached *>(qmlAttachedPropertiesObject<QQuickSwipeView>(item));
- if (attached)
- QQuickSwipeViewAttachedPrivate::get(attached)->update(this, index);
-}
-
-void QQuickSwipeView::itemRemoved(int, QQuickItem *item)
-{
- QQuickSwipeViewAttached *attached = qobject_cast<QQuickSwipeViewAttached *>(qmlAttachedPropertiesObject<QQuickSwipeView>(item));
- if (attached)
- QQuickSwipeViewAttachedPrivate::get(attached)->update(nullptr, -1);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickSwipeView::accessibleRole() const
-{
- return QAccessible::PageTabList;
-}
-#endif
-
-/*!
- \qmlattachedproperty int QtQuick.Controls::SwipeView::index
- \readonly
-
- This attached property holds the index of each child item in the SwipeView.
-
- It is attached to each child item of the SwipeView.
-*/
-
-/*!
- \qmlattachedproperty bool QtQuick.Controls::SwipeView::isCurrentItem
- \readonly
-
- This attached property is \c true if this child is the current item.
-
- It is attached to each child item of the SwipeView.
-*/
-
-/*!
- \qmlattachedproperty bool QtQuick.Controls::SwipeView::isNextItem
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \readonly
-
- This attached property is \c true if this child is the next item.
-
- It is attached to each child item of the SwipeView.
-*/
-
-/*!
- \qmlattachedproperty bool QtQuick.Controls::SwipeView::isPreviousItem
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \readonly
-
- This attached property is \c true if this child is the previous item.
-
- It is attached to each child item of the SwipeView.
-*/
-
-/*!
- \qmlattachedproperty SwipeView QtQuick.Controls::SwipeView::view
- \readonly
-
- This attached property holds the view that manages this child item.
-
- It is attached to each child item of the SwipeView.
-*/
-
-void QQuickSwipeViewAttachedPrivate::updateCurrentIndex()
-{
- setCurrentIndex(swipeView ? swipeView->currentIndex() : -1);
-}
-
-void QQuickSwipeViewAttachedPrivate::setCurrentIndex(int i)
-{
- if (i == currentIndex)
- return;
-
- Q_Q(QQuickSwipeViewAttached);
- const bool wasCurrent = q->isCurrentItem();
- const bool wasNext = q->isNextItem();
- const bool wasPrevious = q->isPreviousItem();
-
- currentIndex = i;
- if (wasCurrent != q->isCurrentItem())
- emit q->isCurrentItemChanged();
- if (wasNext != q->isNextItem())
- emit q->isNextItemChanged();
- if (wasPrevious != q->isPreviousItem())
- emit q->isPreviousItemChanged();
-}
-
-void QQuickSwipeViewAttachedPrivate::update(QQuickSwipeView *newView, int newIndex)
-{
- Q_Q(QQuickSwipeViewAttached);
- int oldIndex = index;
- QQuickSwipeView *oldView = swipeView;
-
- index = newIndex;
- swipeView = newView;
-
- if (oldView != newView) {
- if (oldView) {
- disconnect(oldView, &QQuickSwipeView::currentIndexChanged,
- this, &QQuickSwipeViewAttachedPrivate::updateCurrentIndex);
- }
- if (newView) {
- connect(newView, &QQuickSwipeView::currentIndexChanged,
- this, &QQuickSwipeViewAttachedPrivate::updateCurrentIndex);
- }
- emit q->viewChanged();
- }
- if (oldIndex != newIndex)
- emit q->indexChanged();
-
- updateCurrentIndex();
-}
-
-QQuickSwipeViewAttached::QQuickSwipeViewAttached(QObject *parent)
- : QObject(*(new QQuickSwipeViewAttachedPrivate), parent)
-{
- if (!qobject_cast<QQuickItem *>(parent))
- qmlWarning(parent) << "SwipeView: attached properties must be accessed from within a child item";
-}
-
-int QQuickSwipeViewAttached::index() const
-{
- Q_D(const QQuickSwipeViewAttached);
- return d->index;
-}
-
-bool QQuickSwipeViewAttached::isCurrentItem() const
-{
- Q_D(const QQuickSwipeViewAttached);
- return d->index != -1 && d->currentIndex != -1 && d->index == d->currentIndex;
-}
-
-QQuickSwipeView *QQuickSwipeViewAttached::view() const
-{
- Q_D(const QQuickSwipeViewAttached);
- return d->swipeView;
-}
-
-bool QQuickSwipeViewAttached::isNextItem() const
-{
- Q_D(const QQuickSwipeViewAttached);
- return d->index != -1 && d->currentIndex != -1 && d->index == d->currentIndex + 1;
-}
-
-bool QQuickSwipeViewAttached::isPreviousItem() const
-{
- Q_D(const QQuickSwipeViewAttached);
- return d->index != -1 && d->currentIndex != -1 && d->index == d->currentIndex - 1;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickswipeview_p.h b/src/quicktemplates2/qquickswipeview_p.h
deleted file mode 100644
index 03f6cefa..00000000
--- a/src/quicktemplates2/qquickswipeview_p.h
+++ /dev/null
@@ -1,148 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSWIPEVIEW_P_H
-#define QQUICKSWIPEVIEW_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontainer_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickSwipeViewAttached;
-class QQuickSwipeViewPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeView : public QQuickContainer
-{
- Q_OBJECT
- // 2.1 (Qt 5.8)
- Q_PROPERTY(bool interactive READ isInteractive WRITE setInteractive NOTIFY interactiveChanged FINAL REVISION 1)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL REVISION 2)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL REVISION 3)
- Q_PROPERTY(bool vertical READ isVertical NOTIFY orientationChanged FINAL REVISION 3)
-
-public:
- explicit QQuickSwipeView(QQuickItem *parent = nullptr);
-
- static QQuickSwipeViewAttached *qmlAttachedProperties(QObject *object);
-
- // 2.1 (Qt 5.8)
- bool isInteractive() const;
- void setInteractive(bool interactive);
-
- // 2.2 (Qt 5.9)
- Qt::Orientation orientation() const;
- void setOrientation(Qt::Orientation orientation);
-
- // 2.3 (Qt 5.10)
- bool isHorizontal() const;
- bool isVertical() const;
-
-Q_SIGNALS:
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void interactiveChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void orientationChanged();
-
-protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void itemAdded(int index, QQuickItem *item) override;
- void itemMoved(int index, QQuickItem *item) override;
- void itemRemoved(int index, QQuickItem *item) override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickSwipeView)
- Q_DECLARE_PRIVATE(QQuickSwipeView)
-};
-
-class QQuickSwipeViewAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwipeViewAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(int index READ index NOTIFY indexChanged FINAL)
- Q_PROPERTY(bool isCurrentItem READ isCurrentItem NOTIFY isCurrentItemChanged FINAL)
- Q_PROPERTY(QQuickSwipeView *view READ view NOTIFY viewChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(bool isNextItem READ isNextItem NOTIFY isNextItemChanged FINAL REVISION 1)
- Q_PROPERTY(bool isPreviousItem READ isPreviousItem NOTIFY isPreviousItemChanged FINAL REVISION 1)
-
-public:
- explicit QQuickSwipeViewAttached(QObject *parent = nullptr);
-
- int index() const;
- bool isCurrentItem() const;
- QQuickSwipeView *view() const;
-
- // 2.1 (Qt 5.8)
- bool isNextItem() const;
- bool isPreviousItem() const;
-
-Q_SIGNALS:
- void indexChanged();
- void isCurrentItemChanged();
- void viewChanged();
- // 2.1 (Qt 5.8)
- /*Q_REVISION(1)*/ void isNextItemChanged();
- /*Q_REVISION(1)*/ void isPreviousItemChanged();
-
-private:
- Q_DISABLE_COPY(QQuickSwipeViewAttached)
- Q_DECLARE_PRIVATE(QQuickSwipeViewAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickSwipeView)
-QML_DECLARE_TYPEINFO(QQuickSwipeView, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKSWIPEVIEW_P_H
diff --git a/src/quicktemplates2/qquickswitch.cpp b/src/quicktemplates2/qquickswitch.cpp
deleted file mode 100644
index 675cb6ae..00000000
--- a/src/quicktemplates2/qquickswitch.cpp
+++ /dev/null
@@ -1,242 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickswitch_p.h"
-#include "qquickabstractbutton_p_p.h"
-
-#include <QtGui/qstylehints.h>
-#include <QtGui/qguiapplication.h>
-#include <QtQuick/private/qquickwindow_p.h>
-#include <QtQuick/private/qquickevents_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype Switch
- \inherits AbstractButton
- \instantiates QQuickSwitch
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-buttons
- \brief Switch button that can be toggled on or off.
-
- \image qtquickcontrols2-switch.gif
-
- Switch is an option button that can be dragged or toggled on (checked) or
- off (unchecked). Switches are typically used to select between two states.
- For larger sets of options, such as those in a list, consider using
- \l SwitchDelegate instead.
-
- Switch inherits its API from \l AbstractButton. For instance, the state
- of the switch can be set with the \l {AbstractButton::}{checked} property.
-
- \code
- ColumnLayout {
- Switch {
- text: qsTr("Wi-Fi")
- }
- Switch {
- text: qsTr("Bluetooth")
- }
- }
- \endcode
-
- \sa {Customizing Switch}, {Button Controls}
-*/
-
-class QQuickSwitchPrivate : public QQuickAbstractButtonPrivate
-{
- Q_DECLARE_PUBLIC(QQuickSwitch)
-
-public:
- qreal positionAt(const QPointF &point) const;
-
- bool canDrag(const QPointF &movePoint) const;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
-
- qreal position = 0;
-};
-
-qreal QQuickSwitchPrivate::positionAt(const QPointF &point) const
-{
- Q_Q(const QQuickSwitch);
- qreal pos = 0.0;
- if (indicator)
- pos = indicator->mapFromItem(q, point).x() / indicator->width();
- if (q->isMirrored())
- return 1.0 - pos;
- return pos;
-}
-
-bool QQuickSwitchPrivate::canDrag(const QPointF &movePoint) const
-{
- // don't start dragging the handle unless the initial press was at the indicator,
- // or the drag has reached the indicator area. this prevents unnatural jumps when
- // dragging far outside the indicator.
- const qreal pressPos = positionAt(pressPoint);
- const qreal movePos = positionAt(movePoint);
- return (pressPos >= 0.0 && pressPos <= 1.0) || (movePos >= 0.0 && movePos <= 1.0);
-}
-
-void QQuickSwitchPrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickSwitch);
- QQuickAbstractButtonPrivate::handleMove(point);
- if (q->keepMouseGrab() || q->keepTouchGrab())
- q->setPosition(positionAt(point));
-}
-
-void QQuickSwitchPrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickSwitch);
- QQuickAbstractButtonPrivate::handleRelease(point);
- q->setKeepMouseGrab(false);
- q->setKeepTouchGrab(false);
-}
-
-QQuickSwitch::QQuickSwitch(QQuickItem *parent)
- : QQuickAbstractButton(*(new QQuickSwitchPrivate), parent)
-{
- Q_D(QQuickSwitch);
- d->keepPressed = true;
- setCheckable(true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Switch::position
- \readonly
-
- \input includes/qquickswitch.qdocinc position
-*/
-qreal QQuickSwitch::position() const
-{
- Q_D(const QQuickSwitch);
- return d->position;
-}
-
-void QQuickSwitch::setPosition(qreal position)
-{
- Q_D(QQuickSwitch);
- position = qBound<qreal>(0.0, position, 1.0);
- if (qFuzzyCompare(d->position, position))
- return;
-
- d->position = position;
- emit positionChanged();
- emit visualPositionChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::Switch::visualPosition
- \readonly
-
- \input includes/qquickswitch.qdocinc visualPosition
-*/
-qreal QQuickSwitch::visualPosition() const
-{
- Q_D(const QQuickSwitch);
- if (isMirrored())
- return 1.0 - d->position;
- return d->position;
-}
-
-void QQuickSwitch::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickSwitch);
- if (!keepMouseGrab()) {
- const QPointF movePoint = event->localPos();
- if (d->canDrag(movePoint))
- setKeepMouseGrab(QQuickWindowPrivate::dragOverThreshold(movePoint.x() - d->pressPoint.x(), Qt::XAxis, event));
- }
- QQuickAbstractButton::mouseMoveEvent(event);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickSwitch::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickSwitch);
- if (!keepTouchGrab() && event->type() == QEvent::TouchUpdate) {
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- if (point.id() != d->touchId || point.state() != Qt::TouchPointMoved)
- continue;
- if (d->canDrag(point.pos()))
- setKeepTouchGrab(QQuickWindowPrivate::dragOverThreshold(point.pos().x() - d->pressPoint.x(), Qt::XAxis, &point));
- }
- }
- QQuickAbstractButton::touchEvent(event);
-}
-#endif
-
-void QQuickSwitch::mirrorChange()
-{
- QQuickAbstractButton::mirrorChange();
- emit visualPositionChanged();
-}
-
-void QQuickSwitch::nextCheckState()
-{
- Q_D(QQuickSwitch);
- if (keepMouseGrab() || keepTouchGrab()) {
- d->toggle(d->position > 0.5);
- // the checked state might not change => force a position update to
- // avoid that the handle is left somewhere in the middle (QTBUG-57944)
- setPosition(d->checked ? 1.0 : 0.0);
- } else {
- QQuickAbstractButton::nextCheckState();
- }
-}
-
-void QQuickSwitch::buttonChange(ButtonChange change)
-{
- Q_D(QQuickSwitch);
- if (change == ButtonCheckedChange)
- setPosition(d->checked ? 1.0 : 0.0);
- else
- QQuickAbstractButton::buttonChange(change);
-}
-
-QFont QQuickSwitch::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::Switch);
-}
-
-QPalette QQuickSwitch::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::Switch);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickswitch_p.h b/src/quicktemplates2/qquickswitch_p.h
deleted file mode 100644
index ddc32395..00000000
--- a/src/quicktemplates2/qquickswitch_p.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSWITCH_P_H
-#define QQUICKSWITCH_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickSwitchPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwitch : public QQuickAbstractButton
-{
- Q_OBJECT
- Q_PROPERTY(qreal position READ position WRITE setPosition NOTIFY positionChanged FINAL)
- Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL)
-
-public:
- explicit QQuickSwitch(QQuickItem *parent = nullptr);
-
- qreal position() const;
- void setPosition(qreal position);
-
- qreal visualPosition() const;
-
-Q_SIGNALS:
- void positionChanged();
- void visualPositionChanged();
-
-protected:
- void mouseMoveEvent(QMouseEvent *event) override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-
- void mirrorChange() override;
-
- void nextCheckState() override;
- void buttonChange(ButtonChange change) override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-private:
- Q_DISABLE_COPY(QQuickSwitch)
- Q_DECLARE_PRIVATE(QQuickSwitch)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickSwitch)
-
-#endif // QQUICKSWITCH_P_H
diff --git a/src/quicktemplates2/qquickswitchdelegate.cpp b/src/quicktemplates2/qquickswitchdelegate.cpp
deleted file mode 100644
index 3a849be0..00000000
--- a/src/quicktemplates2/qquickswitchdelegate.cpp
+++ /dev/null
@@ -1,239 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickswitchdelegate_p.h"
-
-#include "qquickitemdelegate_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype SwitchDelegate
- \inherits ItemDelegate
- \instantiates QQuickSwitchDelegate
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-delegates
- \brief Item delegate with a switch indicator that can be toggled on or off.
-
- \image qtquickcontrols2-switchdelegate.gif
-
- SwitchDelegate presents an item delegate that can be toggled on (checked) or
- off (unchecked). Switch delegates are typically used to select one or more
- options from a set of options. For smaller sets of options, or for options
- that need to be uniquely identifiable, consider using \l Switch instead.
-
- SwitchDelegate inherits its API from \l ItemDelegate, which is inherited
- from \l AbstractButton. For instance, you can set \l {AbstractButton::text}{text},
- and react to \l {AbstractButton::clicked}{clicks} using the \l AbstractButton
- API. The state of the switch delegate can be set with the
- \l {AbstractButton::}{checked} property.
-
- \code
- ListView {
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: SwitchDelegate {
- text: modelData
- }
- }
- \endcode
-
- \sa {Customizing SwitchDelegate}, {Delegate Controls}
-*/
-
-class QQuickSwitchDelegatePrivate : public QQuickItemDelegatePrivate
-{
- Q_DECLARE_PUBLIC(QQuickSwitchDelegate)
-
-public:
- qreal positionAt(const QPointF &point) const;
-
- bool canDrag(const QPointF &movePoint) const;
- void handleMove(const QPointF &point) override;
- void handleRelease(const QPointF &point) override;
-
- qreal position = 0;
-};
-
-qreal QQuickSwitchDelegatePrivate::positionAt(const QPointF &point) const
-{
- Q_Q(const QQuickSwitchDelegate);
- qreal pos = 0.0;
- if (indicator)
- pos = indicator->mapFromItem(q, point).x() / indicator->width();
- if (q->isMirrored())
- return 1.0 - pos;
- return pos;
-}
-
-bool QQuickSwitchDelegatePrivate::canDrag(const QPointF &movePoint) const
-{
- // don't start dragging the handle unless the initial press was at the indicator,
- // or the drag has reached the indicator area. this prevents unnatural jumps when
- // dragging far outside the indicator.
- const qreal pressPos = positionAt(pressPoint);
- const qreal movePos = positionAt(movePoint);
- return (pressPos >= 0.0 && pressPos <= 1.0) || (movePos >= 0.0 && movePos <= 1.0);
-}
-
-void QQuickSwitchDelegatePrivate::handleMove(const QPointF &point)
-{
- Q_Q(QQuickSwitchDelegate);
- QQuickItemDelegatePrivate::handleMove(point);
- if (q->keepMouseGrab() || q->keepTouchGrab())
- q->setPosition(positionAt(point));
-}
-
-void QQuickSwitchDelegatePrivate::handleRelease(const QPointF &point)
-{
- Q_Q(QQuickSwitchDelegate);
- QQuickItemDelegatePrivate::handleRelease(point);
- q->setKeepMouseGrab(false);
- q->setKeepTouchGrab(false);
-}
-
-QQuickSwitchDelegate::QQuickSwitchDelegate(QQuickItem *parent)
- : QQuickItemDelegate(*(new QQuickSwitchDelegatePrivate), parent)
-{
- Q_D(QQuickSwitchDelegate);
- d->keepPressed = true;
- setCheckable(true);
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::SwitchDelegate::position
- \readonly
-
- \input includes/qquickswitch.qdocinc position
-*/
-qreal QQuickSwitchDelegate::position() const
-{
- Q_D(const QQuickSwitchDelegate);
- return d->position;
-}
-
-void QQuickSwitchDelegate::setPosition(qreal position)
-{
- Q_D(QQuickSwitchDelegate);
- position = qBound<qreal>(0.0, position, 1.0);
- if (qFuzzyCompare(d->position, position))
- return;
-
- d->position = position;
- emit positionChanged();
- emit visualPositionChanged();
-}
-
-/*!
- \qmlproperty real QtQuick.Controls::SwitchDelegate::visualPosition
- \readonly
-
- \input includes/qquickswitch.qdocinc visualPosition
-*/
-qreal QQuickSwitchDelegate::visualPosition() const
-{
- Q_D(const QQuickSwitchDelegate);
- if (isMirrored())
- return 1.0 - d->position;
- return d->position;
-}
-
-void QQuickSwitchDelegate::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickSwitchDelegate);
- if (!keepMouseGrab()) {
- const QPointF movePoint = event->localPos();
- if (d->canDrag(movePoint))
- setKeepMouseGrab(QQuickWindowPrivate::dragOverThreshold(movePoint.x() - d->pressPoint.x(), Qt::XAxis, event));
- }
- QQuickItemDelegate::mouseMoveEvent(event);
-}
-
-#if QT_CONFIG(quicktemplates2_multitouch)
-void QQuickSwitchDelegate::touchEvent(QTouchEvent *event)
-{
- Q_D(QQuickSwitchDelegate);
- if (!keepTouchGrab() && event->type() == QEvent::TouchUpdate) {
- for (const QTouchEvent::TouchPoint &point : event->touchPoints()) {
- if (point.id() != d->touchId || point.state() != Qt::TouchPointMoved)
- continue;
- if (d->canDrag(point.pos()))
- setKeepTouchGrab(QQuickWindowPrivate::dragOverThreshold(point.pos().x() - d->pressPoint.x(), Qt::XAxis, &point));
- }
- }
- QQuickItemDelegate::touchEvent(event);
-}
-#endif
-
-QFont QQuickSwitchDelegate::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ListView);
-}
-
-QPalette QQuickSwitchDelegate::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ListView);
-}
-
-void QQuickSwitchDelegate::mirrorChange()
-{
- QQuickItemDelegate::mirrorChange();
- emit visualPositionChanged();
-}
-
-void QQuickSwitchDelegate::nextCheckState()
-{
- Q_D(QQuickSwitchDelegate);
- if (keepMouseGrab() || keepTouchGrab()) {
- d->toggle(d->position > 0.5);
- // the checked state might not change => force a position update to
- // avoid that the handle is left somewhere in the middle (QTBUG-57944)
- setPosition(d->checked ? 1.0 : 0.0);
- } else {
- QQuickItemDelegate::nextCheckState();
- }
-}
-
-void QQuickSwitchDelegate::buttonChange(ButtonChange change)
-{
- Q_D(QQuickSwitchDelegate);
- if (change == ButtonCheckedChange)
- setPosition(d->checked ? 1.0 : 0.0);
- else
- QQuickAbstractButton::buttonChange(change);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickswitchdelegate_p.h b/src/quicktemplates2/qquickswitchdelegate_p.h
deleted file mode 100644
index 1fb35aea..00000000
--- a/src/quicktemplates2/qquickswitchdelegate_p.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKSWITCHDELEGATE_P_H
-#define QQUICKSWITCHDELEGATE_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickitemdelegate_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickSwitchDelegatePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickSwitchDelegate : public QQuickItemDelegate
-{
- Q_OBJECT
- Q_PROPERTY(qreal position READ position WRITE setPosition NOTIFY positionChanged FINAL)
- Q_PROPERTY(qreal visualPosition READ visualPosition NOTIFY visualPositionChanged FINAL)
-
-public:
- explicit QQuickSwitchDelegate(QQuickItem *parent = nullptr);
-
- qreal position() const;
- void setPosition(qreal position);
-
- qreal visualPosition() const;
-
-Q_SIGNALS:
- void positionChanged();
- void visualPositionChanged();
-
-protected:
- void mouseMoveEvent(QMouseEvent *event) override;
-#if QT_CONFIG(quicktemplates2_multitouch)
- void touchEvent(QTouchEvent *event) override;
-#endif
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
- void mirrorChange() override;
-
- void nextCheckState() override;
- void buttonChange(ButtonChange change) override;
-
-private:
- Q_DISABLE_COPY(QQuickSwitchDelegate)
- Q_DECLARE_PRIVATE(QQuickSwitchDelegate)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickSwitchDelegate)
-
-#endif // QQUICKSWITCHDELEGATE_P_H
diff --git a/src/quicktemplates2/qquicktabbar.cpp b/src/quicktemplates2/qquicktabbar.cpp
deleted file mode 100644
index 5a439b4b..00000000
--- a/src/quicktemplates2/qquicktabbar.cpp
+++ /dev/null
@@ -1,484 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktabbar_p.h"
-#include "qquicktabbutton_p.h"
-#include "qquickcontainer_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype TabBar
- \inherits Container
- \instantiates QQuickTabBar
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-navigation
- \ingroup qtquickcontrols2-containers
- \ingroup qtquickcontrols2-focusscopes
- \brief Allows the user to switch between different views or subtasks.
-
- TabBar provides a tab-based navigation model.
-
- \image qtquickcontrols2-tabbar-wireframe.png
-
- TabBar is populated with TabButton controls, and can be used together with
- any layout or container control that provides \c currentIndex -property,
- such as \l StackLayout or \l SwipeView
-
- \snippet qtquickcontrols2-tabbar.qml 1
-
- As shown above, TabBar is typically populated with a static set of tab buttons
- that are defined inline as children of the tab bar. It is also possible to
- \l {Container::addItem()}{add}, \l {Container::insertItem()}{insert},
- \l {Container::moveItem()}{move}, and \l {Container::removeItem()}{remove}
- items dynamically at run time. The items can be accessed using
- \l {Container::}{itemAt()} or \l {Container::}{contentChildren}.
-
- \section2 Resizing Tabs
-
- By default, TabBar resizes its buttons to fit the width of the control.
- The available space is distributed equally to each button. The default
- resizing behavior can be overridden by setting an explicit width for the
- buttons.
-
- The following example illustrates how to keep each tab button at their
- implicit size instead of being resized to fit the tabbar:
-
- \borderedimage qtquickcontrols2-tabbar-explicit.png
-
- \snippet qtquickcontrols2-tabbar-explicit.qml 1
-
- \section2 Flickable Tabs
-
- If the total width of the buttons exceeds the available width of the tab bar,
- it automatically becomes flickable.
-
- \image qtquickcontrols2-tabbar-flickable.png
-
- \snippet qtquickcontrols2-tabbar-flickable.qml 1
-
- \sa TabButton, {Customizing TabBar}, {Navigation Controls}, {Container Controls},
- {Focus Management in Qt Quick Controls}
-*/
-
-class QQuickTabBarPrivate : public QQuickContainerPrivate
-{
- Q_DECLARE_PUBLIC(QQuickTabBar)
-
-public:
- void updateCurrentItem();
- void updateCurrentIndex();
- void updateLayout();
-
- qreal getContentWidth() const override;
- qreal getContentHeight() const override;
-
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
-
- bool updatingLayout = false;
- QQuickTabBar::Position position = QQuickTabBar::Header;
-};
-
-class QQuickTabBarAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickTabBarAttached)
-
-public:
- static QQuickTabBarAttachedPrivate *get(QQuickTabBarAttached *attached)
- {
- return attached->d_func();
- }
-
- void update(QQuickTabBar *tabBar, int index);
-
- int index = -1;
- QQuickTabBar *tabBar = nullptr;
-};
-
-void QQuickTabBarPrivate::updateCurrentItem()
-{
- QQuickTabButton *button = qobject_cast<QQuickTabButton *>(contentModel->get(currentIndex));
- if (button)
- button->setChecked(true);
-}
-
-void QQuickTabBarPrivate::updateCurrentIndex()
-{
- Q_Q(QQuickTabBar);
- QQuickTabButton *button = qobject_cast<QQuickTabButton *>(q->sender());
- if (button && button->isChecked())
- q->setCurrentIndex(contentModel->indexOf(button, nullptr));
-}
-
-void QQuickTabBarPrivate::updateLayout()
-{
- Q_Q(QQuickTabBar);
- const int count = contentModel->count();
- if (count <= 0 || !contentItem)
- return;
-
- qreal reservedWidth = 0;
- int resizableCount = 0;
-
- QVector<QQuickItem *> allItems;
- allItems.reserve(count);
-
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = q->itemAt(i);
- if (item) {
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- if (!p->widthValid)
- ++resizableCount;
- else
- reservedWidth += item->width();
- allItems += item;
- }
- }
-
- const qreal totalSpacing = qMax(0, count - 1) * spacing;
- const qreal itemWidth = (contentItem->width() - reservedWidth - totalSpacing) / qMax(1, resizableCount);
-
- updatingLayout = true;
- for (QQuickItem *item : qAsConst(allItems)) {
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- if (!p->widthValid) {
- item->setWidth(itemWidth);
- p->widthValid = false;
- }
- if (!p->heightValid) {
- item->setHeight(contentHeight);
- p->heightValid = false;
- } else {
- item->setY((contentHeight - item->height()) / 2);
- }
- }
- updatingLayout = false;
-}
-
-qreal QQuickTabBarPrivate::getContentWidth() const
-{
- Q_Q(const QQuickTabBar);
- const int count = contentModel->count();
- qreal totalWidth = qMax(0, count - 1) * spacing;
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = q->itemAt(i);
- if (item) {
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- if (!p->widthValid)
- totalWidth += item->implicitWidth();
- else
- totalWidth += item->width();
- }
- }
- return totalWidth;
-}
-
-qreal QQuickTabBarPrivate::getContentHeight() const
-{
- Q_Q(const QQuickTabBar);
- const int count = contentModel->count();
- qreal maxHeight = 0;
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = q->itemAt(i);
- if (item)
- maxHeight = qMax(maxHeight, item->implicitHeight());
- }
- return maxHeight;
-}
-
-void QQuickTabBarPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff)
-{
- QQuickContainerPrivate::itemGeometryChanged(item, change, diff);
- if (!updatingLayout) {
- if (change.sizeChange())
- updateImplicitContentSize();
- updateLayout();
- }
-}
-
-void QQuickTabBarPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- QQuickContainerPrivate::itemImplicitWidthChanged(item);
- if (item != contentItem)
- updateImplicitContentWidth();
-}
-
-void QQuickTabBarPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- QQuickContainerPrivate::itemImplicitHeightChanged(item);
- if (item != contentItem)
- updateImplicitContentHeight();
-}
-
-QQuickTabBar::QQuickTabBar(QQuickItem *parent)
- : QQuickContainer(*(new QQuickTabBarPrivate), parent)
-{
- Q_D(QQuickTabBar);
- d->changeTypes |= QQuickItemPrivate::Geometry | QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight;
- setFlag(ItemIsFocusScope);
- QObjectPrivate::connect(this, &QQuickTabBar::currentIndexChanged, d, &QQuickTabBarPrivate::updateCurrentItem);
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::TabBar::position
-
- This property holds the position of the tab bar.
-
- \note If the tab bar is assigned as a header or footer of \l ApplicationWindow
- or \l Page, the appropriate position is set automatically.
-
- Possible values:
- \value TabBar.Header The tab bar is at the top, as a window or page header.
- \value TabBar.Footer The tab bar is at the bottom, as a window or page footer.
-
- The default value is style-specific.
-
- \sa ApplicationWindow::header, ApplicationWindow::footer, Page::header, Page::footer
-*/
-QQuickTabBar::Position QQuickTabBar::position() const
-{
- Q_D(const QQuickTabBar);
- return d->position;
-}
-
-void QQuickTabBar::setPosition(Position position)
-{
- Q_D(QQuickTabBar);
- if (d->position == position)
- return;
-
- d->position = position;
- emit positionChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty real QtQuick.Controls::TabBar::contentWidth
-
- This property holds the content width. It is used for calculating the total
- implicit width of the tab bar.
-
- \note This property is available in TabBar since QtQuick.Controls 2.2 (Qt 5.9),
- but it was promoted to the Container base type in QtQuick.Controls 2.5 (Qt 5.12).
-
- \sa Container::contentWidth
-*/
-
-/*!
- \since QtQuick.Controls 2.2 (Qt 5.9)
- \qmlproperty real QtQuick.Controls::TabBar::contentHeight
-
- This property holds the content height. It is used for calculating the total
- implicit height of the tab bar.
-
- \note This property is available in TabBar since QtQuick.Controls 2.2 (Qt 5.9),
- but it was promoted to the Container base type in QtQuick.Controls 2.5 (Qt 5.12).
-
- \sa Container::contentHeight
-*/
-
-QQuickTabBarAttached *QQuickTabBar::qmlAttachedProperties(QObject *object)
-{
- return new QQuickTabBarAttached(object);
-}
-
-void QQuickTabBar::updatePolish()
-{
- Q_D(QQuickTabBar);
- QQuickContainer::updatePolish();
- d->updateLayout();
-}
-
-void QQuickTabBar::componentComplete()
-{
- Q_D(QQuickTabBar);
- QQuickContainer::componentComplete();
- d->updateCurrentItem();
- d->updateLayout();
-}
-
-void QQuickTabBar::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickTabBar);
- QQuickContainer::geometryChanged(newGeometry, oldGeometry);
- d->updateLayout();
-}
-
-bool QQuickTabBar::isContent(QQuickItem *item) const
-{
- return qobject_cast<QQuickTabButton *>(item);
-}
-
-void QQuickTabBar::itemAdded(int index, QQuickItem *item)
-{
- Q_D(QQuickTabBar);
- Q_UNUSED(index);
- QQuickItemPrivate::get(item)->setCulled(true); // QTBUG-55129
- if (QQuickTabButton *button = qobject_cast<QQuickTabButton *>(item))
- QObjectPrivate::connect(button, &QQuickTabButton::checkedChanged, d, &QQuickTabBarPrivate::updateCurrentIndex);
- QQuickTabBarAttached *attached = qobject_cast<QQuickTabBarAttached *>(qmlAttachedPropertiesObject<QQuickTabBar>(item));
- if (attached)
- QQuickTabBarAttachedPrivate::get(attached)->update(this, index);
- d->updateImplicitContentSize();
- if (isComponentComplete())
- polish();
-}
-
-void QQuickTabBar::itemMoved(int index, QQuickItem *item)
-{
- QQuickTabBarAttached *attached = qobject_cast<QQuickTabBarAttached *>(qmlAttachedPropertiesObject<QQuickTabBar>(item));
- if (attached)
- QQuickTabBarAttachedPrivate::get(attached)->update(this, index);
-}
-
-void QQuickTabBar::itemRemoved(int index, QQuickItem *item)
-{
- Q_D(QQuickTabBar);
- Q_UNUSED(index);
- if (QQuickTabButton *button = qobject_cast<QQuickTabButton *>(item))
- QObjectPrivate::disconnect(button, &QQuickTabButton::checkedChanged, d, &QQuickTabBarPrivate::updateCurrentIndex);
- QQuickTabBarAttached *attached = qobject_cast<QQuickTabBarAttached *>(qmlAttachedPropertiesObject<QQuickTabBar>(item));
- if (attached)
- QQuickTabBarAttachedPrivate::get(attached)->update(nullptr, -1);
- d->updateImplicitContentSize();
- if (isComponentComplete())
- polish();
-}
-
-QFont QQuickTabBar::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::TabBar);
-}
-
-QPalette QQuickTabBar::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::TabBar);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickTabBar::accessibleRole() const
-{
- return QAccessible::PageTabList;
-}
-#endif
-
-/*!
- \qmlattachedproperty int QtQuick.Controls::TabBar::index
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \readonly
-
- This attached property holds the index of each tab button in the TabBar.
-
- It is attached to each tab button of the TabBar.
-*/
-
-/*!
- \qmlattachedproperty TabBar QtQuick.Controls::TabBar::tabBar
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \readonly
-
- This attached property holds the tab bar that manages this tab button.
-
- It is attached to each tab button of the TabBar.
-*/
-
-/*!
- \qmlattachedproperty enumeration QtQuick.Controls::TabBar::position
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \readonly
-
- This attached property holds the position of the tab bar.
-
- It is attached to each tab button of the TabBar.
-
- Possible values:
- \value TabBar.Header The tab bar is at the top, as a window or page header.
- \value TabBar.Footer The tab bar is at the bottom, as a window or page footer.
-*/
-
-void QQuickTabBarAttachedPrivate::update(QQuickTabBar *newTabBar, int newIndex)
-{
- Q_Q(QQuickTabBarAttached);
- const int oldIndex = index;
- const QQuickTabBar *oldTabBar = tabBar;
- const QQuickTabBar::Position oldPos = q->position();
-
- index = newIndex;
- tabBar = newTabBar;
-
- if (oldTabBar != newTabBar) {
- if (oldTabBar)
- QObject::disconnect(oldTabBar, &QQuickTabBar::positionChanged, q, &QQuickTabBarAttached::positionChanged);
- if (newTabBar)
- QObject::connect(newTabBar, &QQuickTabBar::positionChanged, q, &QQuickTabBarAttached::positionChanged);
- emit q->tabBarChanged();
- }
-
- if (oldIndex != newIndex)
- emit q->indexChanged();
- if (oldPos != q->position())
- emit q->positionChanged();
-}
-
-QQuickTabBarAttached::QQuickTabBarAttached(QObject *parent)
- : QObject(*(new QQuickTabBarAttachedPrivate), parent)
-{
-}
-
-int QQuickTabBarAttached::index() const
-{
- Q_D(const QQuickTabBarAttached);
- return d->index;
-}
-
-QQuickTabBar *QQuickTabBarAttached::tabBar() const
-{
- Q_D(const QQuickTabBarAttached);
- return d->tabBar;
-}
-
-QQuickTabBar::Position QQuickTabBarAttached::position() const
-{
- Q_D(const QQuickTabBarAttached);
- if (!d->tabBar)
- return QQuickTabBar::Header;
- return d->tabBar->position();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktabbar_p.h b/src/quicktemplates2/qquicktabbar_p.h
deleted file mode 100644
index 5367118c..00000000
--- a/src/quicktemplates2/qquicktabbar_p.h
+++ /dev/null
@@ -1,134 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTABBAR_P_H
-#define QQUICKTABBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontainer_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTabBarPrivate;
-class QQuickTabBarAttached;
-class QQuickTabBarAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTabBar : public QQuickContainer
-{
- Q_OBJECT
- Q_PROPERTY(Position position READ position WRITE setPosition NOTIFY positionChanged FINAL)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(qreal contentWidth READ contentWidth WRITE setContentWidth RESET resetContentWidth NOTIFY contentWidthChanged FINAL REVISION 2) // re-declare QQuickContainer::contentWidth (REV 5)
- Q_PROPERTY(qreal contentHeight READ contentHeight WRITE setContentHeight RESET resetContentHeight NOTIFY contentHeightChanged FINAL REVISION 2) // re-declare QQuickContainer::contentHeight (REV 5)
-
-public:
- explicit QQuickTabBar(QQuickItem *parent = nullptr);
-
- enum Position {
- Header,
- Footer
- };
- Q_ENUM(Position)
-
- Position position() const;
- void setPosition(Position position);
-
- static QQuickTabBarAttached *qmlAttachedProperties(QObject *object);
-
-Q_SIGNALS:
- void positionChanged();
-
-protected:
- void updatePolish() override;
- void componentComplete() override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- bool isContent(QQuickItem *item) const override;
- void itemAdded(int index, QQuickItem *item) override;
- void itemMoved(int index, QQuickItem *item) override;
- void itemRemoved(int index, QQuickItem *item) override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickTabBar)
- Q_DECLARE_PRIVATE(QQuickTabBar)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTabBarAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(int index READ index NOTIFY indexChanged FINAL)
- Q_PROPERTY(QQuickTabBar *tabBar READ tabBar NOTIFY tabBarChanged FINAL)
- Q_PROPERTY(QQuickTabBar::Position position READ position NOTIFY positionChanged FINAL)
-
-public:
- explicit QQuickTabBarAttached(QObject *parent = nullptr);
-
- int index() const;
- QQuickTabBar *tabBar() const;
- QQuickTabBar::Position position() const;
-
-Q_SIGNALS:
- void indexChanged();
- void tabBarChanged();
- void positionChanged();
-
-private:
- Q_DISABLE_COPY(QQuickTabBarAttached)
- Q_DECLARE_PRIVATE(QQuickTabBarAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickTabBar)
-QML_DECLARE_TYPEINFO(QQuickTabBar, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKTABBAR_P_H
diff --git a/src/quicktemplates2/qquicktabbutton.cpp b/src/quicktemplates2/qquicktabbutton.cpp
deleted file mode 100644
index 6e20b0da..00000000
--- a/src/quicktemplates2/qquicktabbutton.cpp
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktabbutton_p.h"
-#include "qquickcontrol_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype TabButton
- \inherits AbstractButton
- \instantiates QQuickTabButton
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-navigation
- \brief Button with a look suitable for a TabBar.
-
- \image qtquickcontrols2-tabbutton.png
-
- TabButton is used in conjunction with a \l TabBar.
-
- \snippet qtquickcontrols2-tabbutton.qml 1
-
- TabButton inherits its API from AbstractButton. For instance, you can set
- \l {AbstractButton::text}{text}, and react to \l {AbstractButton::clicked}{clicks}
- using the AbstractButton API.
-
- \sa TabBar, {Customizing TabButton}, {Button Controls}, {Navigation Controls}
-*/
-
-QQuickTabButton::QQuickTabButton(QQuickItem *parent)
- : QQuickAbstractButton(parent)
-{
- setCheckable(true);
- setAutoExclusive(true);
-}
-
-QFont QQuickTabButton::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::TabBar);
-}
-
-QPalette QQuickTabButton::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::TabBar);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickTabButton::accessibleRole() const
-{
- return QAccessible::PageTab;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktabbutton_p.h b/src/quicktemplates2/qquicktabbutton_p.h
deleted file mode 100644
index 9ca9df9f..00000000
--- a/src/quicktemplates2/qquicktabbutton_p.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTABBUTTON_P_H
-#define QQUICKTABBUTTON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTabButton : public QQuickAbstractButton
-{
- Q_OBJECT
-
-public:
- explicit QQuickTabButton(QQuickItem *parent = nullptr);
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickTabButton)
-
-#endif // QQUICKTABBUTTON_P_H
diff --git a/src/quicktemplates2/qquicktextarea.cpp b/src/quicktemplates2/qquicktextarea.cpp
deleted file mode 100644
index f7b8969c..00000000
--- a/src/quicktemplates2/qquicktextarea.cpp
+++ /dev/null
@@ -1,1229 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktextarea_p.h"
-#include "qquicktextarea_p_p.h"
-#include "qquickcontrol_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickscrollview_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtQml/qqmlinfo.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquickclipnode_p.h>
-#include <QtQuick/private/qquickflickable_p.h>
-
-#if QT_CONFIG(accessibility)
-#include <QtQuick/private/qquickaccessibleattached_p.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype TextArea
- \inherits TextEdit
- \instantiates QQuickTextArea
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-input
- \brief Multi-line text input area.
-
- TextArea is a multi-line text editor. TextArea extends TextEdit with
- a \l {placeholderText}{placeholder text} functionality, and adds decoration.
-
- \image qtquickcontrols2-textarea.png
-
- \code
- TextArea {
- placeholderText: qsTr("Enter description")
- }
- \endcode
-
- TextArea is not scrollable by itself. Especially on screen-size constrained
- platforms, it is often preferable to make entire application pages scrollable.
- On such a scrollable page, a non-scrollable TextArea might behave better than
- nested scrollable controls. Notice, however, that in such a scenario, the background
- decoration of the TextArea scrolls together with the rest of the scrollable
- content.
-
- \section2 Scrollable TextArea
-
- If you want to make a TextArea scrollable, for example, when it covers
- an entire application page, it can be placed inside a \l ScrollView.
-
- \image qtquickcontrols2-textarea-scrollable.png
-
- \snippet qtquickcontrols2-textarea-scrollable.qml 1
-
- A TextArea that is placed inside a \l ScrollView does the following:
-
- \list
- \li Sets the content size automatically
- \li Ensures that the background decoration stays in place
- \li Clips the content
- \endlist
-
- \section2 Tab Focus
-
- By default, pressing the tab key while TextArea has
- \l {Item::activeFocus}{active focus} results in a tab character being input
- into the control itself. To make tab pass active focus onto another item,
- use the attached \l KeyNavigation properties:
-
- \code
- TextField {
- id: textField
- }
-
- TextArea {
- KeyNavigation.priority: KeyNavigation.BeforeItem
- KeyNavigation.tab: textField
- }
- \endcode
-
- \sa TextField, {Customizing TextArea}, {Input Controls}
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::TextArea::pressAndHold(MouseEvent event)
-
- This signal is emitted when there is a long press (the delay depends on the platform plugin).
- The \l {MouseEvent}{event} parameter provides information about the press, including the x and y
- position of the press, and which button is pressed.
-
- \sa pressed, released
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::TextArea::pressed(MouseEvent event)
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This signal is emitted when the text area is pressed by the user.
- The \l {MouseEvent}{event} parameter provides information about the press,
- including the x and y position of the press, and which button is pressed.
-
- \sa released, pressAndHold
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::TextArea::released(MouseEvent event)
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This signal is emitted when the text area is released by the user.
- The \l {MouseEvent}{event} parameter provides information about the release,
- including the x and y position of the press, and which button is pressed.
-
- \sa pressed, pressAndHold
-*/
-
-QQuickTextAreaPrivate::QQuickTextAreaPrivate()
-{
-#if QT_CONFIG(accessibility)
- QAccessible::installActivationObserver(this);
-#endif
-}
-
-QQuickTextAreaPrivate::~QQuickTextAreaPrivate()
-{
-#if QT_CONFIG(accessibility)
- QAccessible::removeActivationObserver(this);
-#endif
-}
-
-void QQuickTextAreaPrivate::setTopInset(qreal value, bool reset)
-{
- Q_Q(QQuickTextArea);
- const QMarginsF oldInset = getInset();
- extra.value().topInset = value;
- extra.value().hasTopInset = !reset;
- if (!qFuzzyCompare(oldInset.top(), value)) {
- emit q->topInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickTextAreaPrivate::setLeftInset(qreal value, bool reset)
-{
- Q_Q(QQuickTextArea);
- const QMarginsF oldInset = getInset();
- extra.value().leftInset = value;
- extra.value().hasLeftInset = !reset;
- if (!qFuzzyCompare(oldInset.left(), value)) {
- emit q->leftInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickTextAreaPrivate::setRightInset(qreal value, bool reset)
-{
- Q_Q(QQuickTextArea);
- const QMarginsF oldInset = getInset();
- extra.value().rightInset = value;
- extra.value().hasRightInset = !reset;
- if (!qFuzzyCompare(oldInset.right(), value)) {
- emit q->rightInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickTextAreaPrivate::setBottomInset(qreal value, bool reset)
-{
- Q_Q(QQuickTextArea);
- const QMarginsF oldInset = getInset();
- extra.value().bottomInset = value;
- extra.value().hasBottomInset = !reset;
- if (!qFuzzyCompare(oldInset.bottom(), value)) {
- emit q->bottomInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickTextAreaPrivate::resizeBackground()
-{
- if (!background)
- return;
-
- resizingBackground = true;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (((!p->widthValid || !extra.isAllocated() || !extra->hasBackgroundWidth) && qFuzzyIsNull(background->x()))
- || (extra.isAllocated() && (extra->hasLeftInset || extra->hasRightInset))) {
- background->setX(getLeftInset());
- background->setWidth(width - getLeftInset() - getRightInset());
- }
- if (((!p->heightValid || !extra.isAllocated() || !extra->hasBackgroundHeight) && qFuzzyIsNull(background->y()))
- || (extra.isAllocated() && (extra->hasTopInset || extra->hasBottomInset))) {
- background->setY(getTopInset());
- background->setHeight(height - getTopInset() - getBottomInset());
- }
-
- resizingBackground = false;
-}
-
-/*!
- \internal
-
- Determine which font is implicitly imposed on this control by its ancestors
- and QGuiApplication::font, resolve this against its own font (attributes from
- the implicit font are copied over). Then propagate this font to this
- control's children.
-*/
-void QQuickTextAreaPrivate::resolveFont()
-{
- Q_Q(QQuickTextArea);
- inheritFont(QQuickControlPrivate::parentFont(q));
-}
-
-void QQuickTextAreaPrivate::inheritFont(const QFont &font)
-{
- QFont parentFont = extra.isAllocated() ? extra->requestedFont.resolve(font) : font;
- parentFont.resolve(extra.isAllocated() ? extra->requestedFont.resolve() | font.resolve() : font.resolve());
-
- const QFont defaultFont = QQuickTheme::font(QQuickTheme::TextArea);
- const QFont resolvedFont = parentFont.resolve(defaultFont);
-
- setFont_helper(resolvedFont);
-}
-
-/*!
- \internal
-
- Assign \a font to this control, and propagate it to all children.
-*/
-void QQuickTextAreaPrivate::updateFont(const QFont &font)
-{
- Q_Q(QQuickTextArea);
- QFont oldFont = sourceFont;
- q->QQuickTextEdit::setFont(font);
-
- QQuickControlPrivate::updateFontRecur(q, font);
-
- if (oldFont != font)
- emit q->fontChanged();
-}
-
-/*!
- \internal
-
- Determine which palette is implicitly imposed on this control by its ancestors
- and QGuiApplication::palette, resolve this against its own palette (attributes from
- the implicit palette are copied over). Then propagate this palette to this
- control's children.
-*/
-void QQuickTextAreaPrivate::resolvePalette()
-{
- Q_Q(QQuickTextArea);
- inheritPalette(QQuickControlPrivate::parentPalette(q));
-}
-
-void QQuickTextAreaPrivate::inheritPalette(const QPalette &palette)
-{
- QPalette parentPalette = extra.isAllocated() ? extra->requestedPalette.resolve(palette) : palette;
- parentPalette.resolve(extra.isAllocated() ? extra->requestedPalette.resolve() | palette.resolve() : palette.resolve());
-
- const QPalette defaultPalette = QQuickTheme::palette(QQuickTheme::TextArea);
- const QPalette resolvedPalette = parentPalette.resolve(defaultPalette);
-
- setPalette_helper(resolvedPalette);
-}
-
-void QQuickTextAreaPrivate::updatePalette(const QPalette &palette)
-{
- Q_Q(QQuickTextArea);
- QPalette oldPalette = resolvedPalette;
- resolvedPalette = palette;
-
- QQuickControlPrivate::updatePaletteRecur(q, palette);
-
- if (oldPalette != palette)
- emit q->paletteChanged();
-}
-
-#if QT_CONFIG(quicktemplates2_hover)
-void QQuickTextAreaPrivate::updateHoverEnabled(bool enabled, bool xplicit)
-{
- Q_Q(QQuickTextArea);
- if (!xplicit && explicitHoverEnabled)
- return;
-
- bool wasEnabled = q->isHoverEnabled();
- explicitHoverEnabled = xplicit;
- if (wasEnabled != enabled) {
- q->setAcceptHoverEvents(enabled);
- QQuickControlPrivate::updateHoverEnabledRecur(q, enabled);
- emit q->hoverEnabledChanged();
- }
-}
-#endif
-
-void QQuickTextAreaPrivate::attachFlickable(QQuickFlickable *item)
-{
- Q_Q(QQuickTextArea);
- flickable = item;
- q->setParentItem(flickable->contentItem());
-
- if (background)
- background->setParentItem(flickable);
-
- QObjectPrivate::connect(q, &QQuickTextArea::contentSizeChanged, this, &QQuickTextAreaPrivate::resizeFlickableContent);
- QObjectPrivate::connect(q, &QQuickTextEdit::cursorRectangleChanged, this, &QQuickTextAreaPrivate::ensureCursorVisible);
-
- QObject::connect(flickable, &QQuickFlickable::contentXChanged, q, &QQuickItem::update);
- QObject::connect(flickable, &QQuickFlickable::contentYChanged, q, &QQuickItem::update);
-
- QQuickItemPrivate::get(flickable)->updateOrAddGeometryChangeListener(this, QQuickGeometryChange::Size);
- QObjectPrivate::connect(flickable, &QQuickFlickable::contentWidthChanged, this, &QQuickTextAreaPrivate::resizeFlickableControl);
- QObjectPrivate::connect(flickable, &QQuickFlickable::contentHeightChanged, this, &QQuickTextAreaPrivate::resizeFlickableControl);
-
- resizeFlickableControl();
-}
-
-void QQuickTextAreaPrivate::detachFlickable()
-{
- Q_Q(QQuickTextArea);
- q->setParentItem(nullptr);
- if (background && background->parentItem() == flickable)
- background->setParentItem(q);
-
- QObjectPrivate::disconnect(q, &QQuickTextArea::contentSizeChanged, this, &QQuickTextAreaPrivate::resizeFlickableContent);
- QObjectPrivate::disconnect(q, &QQuickTextEdit::cursorRectangleChanged, this, &QQuickTextAreaPrivate::ensureCursorVisible);
-
- QObject::disconnect(flickable, &QQuickFlickable::contentXChanged, q, &QQuickItem::update);
- QObject::disconnect(flickable, &QQuickFlickable::contentYChanged, q, &QQuickItem::update);
-
- QQuickItemPrivate::get(flickable)->updateOrRemoveGeometryChangeListener(this, QQuickGeometryChange::Nothing);
- QObjectPrivate::disconnect(flickable, &QQuickFlickable::contentWidthChanged, this, &QQuickTextAreaPrivate::resizeFlickableControl);
- QObjectPrivate::disconnect(flickable, &QQuickFlickable::contentHeightChanged, this, &QQuickTextAreaPrivate::resizeFlickableControl);
-
- flickable = nullptr;
-
- resizeBackground();
-}
-
-void QQuickTextAreaPrivate::ensureCursorVisible()
-{
- Q_Q(QQuickTextArea);
- if (!flickable)
- return;
-
- const qreal cx = flickable->contentX();
- const qreal cy = flickable->contentY();
- const qreal w = flickable->width();
- const qreal h = flickable->height();
-
- const qreal tp = q->topPadding();
- const qreal lp = q->leftPadding();
- const QRectF cr = q->cursorRectangle();
-
- if (cr.left() <= cx + lp) {
- flickable->setContentX(cr.left() - lp);
- } else {
- // calculate the rectangle of the next character and ensure that
- // it's visible if it's on the same line with the cursor
- const qreal rp = q->rightPadding();
- const QRectF nr = q->cursorPosition() < q->length() ? q->positionToRectangle(q->cursorPosition() + 1) : QRectF();
- if (qFuzzyCompare(nr.y(), cr.y()) && nr.right() >= cx + lp + w - rp)
- flickable->setContentX(nr.right() - w + rp);
- else if (cr.right() >= cx + lp + w - rp)
- flickable->setContentX(cr.right() - w + rp);
- }
-
- if (cr.top() <= cy + tp) {
- flickable->setContentY(cr.top() - tp);
- } else {
- const qreal bp = q->bottomPadding();
- if (cr.bottom() >= cy + tp + h - bp)
- flickable->setContentY(cr.bottom() - h + bp);
- }
-}
-
-void QQuickTextAreaPrivate::resizeFlickableControl()
-{
- Q_Q(QQuickTextArea);
- if (!flickable)
- return;
-
- const qreal w = wrapMode == QQuickTextArea::NoWrap ? qMax(flickable->width(), flickable->contentWidth()) : flickable->width();
- const qreal h = qMax(flickable->height(), flickable->contentHeight());
- q->setSize(QSizeF(w, h));
-
- resizeBackground();
-}
-
-void QQuickTextAreaPrivate::resizeFlickableContent()
-{
- Q_Q(QQuickTextArea);
- if (!flickable)
- return;
-
- flickable->setContentWidth(q->contentWidth() + q->leftPadding() + q->rightPadding());
- flickable->setContentHeight(q->contentHeight() + q->topPadding() + q->bottomPadding());
-}
-
-void QQuickTextAreaPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff)
-{
- Q_UNUSED(diff);
- if (!resizingBackground && item == background) {
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- // Only set hasBackgroundWidth/Height if it was a width/height change,
- // otherwise we're prevented from setting a width/height in the future.
- if (change.widthChange())
- extra.value().hasBackgroundWidth = p->widthValid;
- if (change.heightChange())
- extra.value().hasBackgroundHeight = p->heightValid;
- }
-
- if (flickable)
- resizeFlickableControl();
- else
- resizeBackground();
-}
-
-qreal QQuickTextAreaPrivate::getImplicitWidth() const
-{
- return QQuickItemPrivate::getImplicitWidth();
-}
-
-qreal QQuickTextAreaPrivate::getImplicitHeight() const
-{
- return QQuickItemPrivate::getImplicitHeight();
-}
-
-void QQuickTextAreaPrivate::implicitWidthChanged()
-{
- Q_Q(QQuickTextArea);
- QQuickItemPrivate::implicitWidthChanged();
- emit q->implicitWidthChanged3();
-}
-
-void QQuickTextAreaPrivate::implicitHeightChanged()
-{
- Q_Q(QQuickTextArea);
- QQuickItemPrivate::implicitHeightChanged();
- emit q->implicitHeightChanged3();
-}
-
-void QQuickTextAreaPrivate::readOnlyChanged(bool isReadOnly)
-{
- Q_UNUSED(isReadOnly);
-#if QT_CONFIG(accessibility)
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(q_func()))
- accessibleAttached->set_readOnly(isReadOnly);
-#endif
-#if QT_CONFIG(cursor)
- q_func()->setCursor(isReadOnly ? Qt::ArrowCursor : Qt::IBeamCursor);
-#endif
-}
-
-#if QT_CONFIG(accessibility)
-void QQuickTextAreaPrivate::accessibilityActiveChanged(bool active)
-{
- if (!active)
- return;
-
- Q_Q(QQuickTextArea);
- QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(q, true));
- Q_ASSERT(accessibleAttached);
- accessibleAttached->setRole(accessibleRole());
- accessibleAttached->set_readOnly(q->isReadOnly());
- accessibleAttached->setDescription(placeholder);
-}
-
-QAccessible::Role QQuickTextAreaPrivate::accessibleRole() const
-{
- return QAccessible::EditableText;
-}
-#endif
-
-static inline QString backgroundName() { return QStringLiteral("background"); }
-
-void QQuickTextAreaPrivate::cancelBackground()
-{
- Q_Q(QQuickTextArea);
- quickCancelDeferred(q, backgroundName());
-}
-
-void QQuickTextAreaPrivate::executeBackground(bool complete)
-{
- Q_Q(QQuickTextArea);
- if (background.wasExecuted())
- return;
-
- if (!background || complete)
- quickBeginDeferred(q, backgroundName(), background);
- if (complete)
- quickCompleteDeferred(q, backgroundName(), background);
-}
-
-void QQuickTextAreaPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickTextArea);
- if (item == background)
- emit q->implicitBackgroundWidthChanged();
-}
-
-void QQuickTextAreaPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickTextArea);
- if (item == background)
- emit q->implicitBackgroundHeightChanged();
-}
-
-void QQuickTextAreaPrivate::itemDestroyed(QQuickItem *item)
-{
- Q_Q(QQuickTextArea);
- if (item == background) {
- background = nullptr;
- emit q->implicitBackgroundWidthChanged();
- emit q->implicitBackgroundHeightChanged();
- }
-}
-
-QQuickTextArea::QQuickTextArea(QQuickItem *parent)
- : QQuickTextEdit(*(new QQuickTextAreaPrivate), parent)
-{
- Q_D(QQuickTextArea);
- setActiveFocusOnTab(true);
- setAcceptedMouseButtons(Qt::AllButtons);
- d->setImplicitResizeEnabled(false);
- d->pressHandler.control = this;
-#if QT_CONFIG(cursor)
- setCursor(Qt::IBeamCursor);
-#endif
- QObjectPrivate::connect(this, &QQuickTextEdit::readOnlyChanged,
- d, &QQuickTextAreaPrivate::readOnlyChanged);
-}
-
-QQuickTextArea::~QQuickTextArea()
-{
- Q_D(QQuickTextArea);
- if (d->flickable)
- d->detachFlickable();
- QQuickControlPrivate::removeImplicitSizeListener(d->background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
-}
-
-QQuickTextAreaAttached *QQuickTextArea::qmlAttachedProperties(QObject *object)
-{
- return new QQuickTextAreaAttached(object);
-}
-
-QFont QQuickTextArea::font() const
-{
- return QQuickTextEdit::font();
-}
-
-void QQuickTextArea::setFont(const QFont &font)
-{
- Q_D(QQuickTextArea);
- if (d->extra.value().requestedFont.resolve() == font.resolve() && d->extra.value().requestedFont == font)
- return;
-
- d->extra.value().requestedFont = font;
- d->resolveFont();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::TextArea::background
-
- This property holds the background item.
-
- \input qquickcontrol-background.qdocinc notes
-
- \sa {Customizing TextArea}
-*/
-QQuickItem *QQuickTextArea::background() const
-{
- QQuickTextAreaPrivate *d = const_cast<QQuickTextAreaPrivate *>(d_func());
- if (!d->background)
- d->executeBackground();
- return d->background;
-}
-
-void QQuickTextArea::setBackground(QQuickItem *background)
-{
- Q_D(QQuickTextArea);
- if (d->background == background)
- return;
-
- if (!d->background.isExecuting())
- d->cancelBackground();
-
- const qreal oldImplicitBackgroundWidth = implicitBackgroundWidth();
- const qreal oldImplicitBackgroundHeight = implicitBackgroundHeight();
-
- if (d->extra.isAllocated()) {
- d->extra.value().hasBackgroundWidth = false;
- d->extra.value().hasBackgroundHeight = false;
- }
-
- QQuickControlPrivate::removeImplicitSizeListener(d->background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- delete d->background;
- d->background = background;
-
- if (background) {
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (p->widthValid || p->heightValid) {
- d->extra.value().hasBackgroundWidth = p->widthValid;
- d->extra.value().hasBackgroundHeight = p->heightValid;
- }
- if (d->flickable)
- background->setParentItem(d->flickable);
- else
- background->setParentItem(this);
- if (qFuzzyIsNull(background->z()))
- background->setZ(-1);
- if (isComponentComplete())
- d->resizeBackground();
- QQuickControlPrivate::addImplicitSizeListener(background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- }
-
- if (!qFuzzyCompare(oldImplicitBackgroundWidth, implicitBackgroundWidth()))
- emit implicitBackgroundWidthChanged();
- if (!qFuzzyCompare(oldImplicitBackgroundHeight, implicitBackgroundHeight()))
- emit implicitBackgroundHeightChanged();
- if (!d->background.isExecuting())
- emit backgroundChanged();
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::TextArea::placeholderText
-
- This property holds the short hint that is displayed in the text area before
- the user enters a value.
-*/
-QString QQuickTextArea::placeholderText() const
-{
- Q_D(const QQuickTextArea);
- return d->placeholder;
-}
-
-void QQuickTextArea::setPlaceholderText(const QString &text)
-{
- Q_D(QQuickTextArea);
- if (d->placeholder == text)
- return;
-
- d->placeholder = text;
-#if QT_CONFIG(accessibility)
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(this))
- accessibleAttached->setDescription(text);
-#endif
- emit placeholderTextChanged();
-}
-
-/*!
- \qmlproperty color QtQuick.Controls::TextArea::placeholderTextColor
- \since QtQuick.Controls 2.5 (Qt 5.12)
-
- This property holds the color of placeholderText.
-
- \sa placeholderText
-*/
-QColor QQuickTextArea::placeholderTextColor() const
-{
- Q_D(const QQuickTextArea);
- return d->placeholderColor;
-}
-
-void QQuickTextArea::setPlaceholderTextColor(const QColor &color)
-{
- Q_D(QQuickTextArea);
- if (d->placeholderColor == color)
- return;
-
- d->placeholderColor = color;
- emit placeholderTextColorChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::TextArea::focusReason
-
- \include qquickcontrol-focusreason.qdocinc
-*/
-Qt::FocusReason QQuickTextArea::focusReason() const
-{
- Q_D(const QQuickTextArea);
- return d->focusReason;
-}
-
-void QQuickTextArea::setFocusReason(Qt::FocusReason reason)
-{
- Q_D(QQuickTextArea);
- if (d->focusReason == reason)
- return;
-
- d->focusReason = reason;
- emit focusReasonChanged();
-}
-
-bool QQuickTextArea::contains(const QPointF &point) const
-{
- Q_D(const QQuickTextArea);
- if (d->flickable && !d->flickable->contains(d->flickable->mapFromItem(this, point)))
- return false;
- return QQuickTextEdit::contains(point);
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlproperty bool QtQuick.Controls::TextArea::hovered
- \readonly
-
- This property holds whether the text area is hovered.
-
- \sa hoverEnabled
-*/
-bool QQuickTextArea::isHovered() const
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(const QQuickTextArea);
- return d->hovered;
-#else
- return false;
-#endif
-}
-
-void QQuickTextArea::setHovered(bool hovered)
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickTextArea);
- if (hovered == d->hovered)
- return;
-
- d->hovered = hovered;
- emit hoveredChanged();
-#else
- Q_UNUSED(hovered);
-#endif
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlproperty bool QtQuick.Controls::TextArea::hoverEnabled
-
- This property determines whether the text area accepts hover events. The default value is \c true.
-
- \sa hovered
-*/
-bool QQuickTextArea::isHoverEnabled() const
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(const QQuickTextArea);
- return d->hoverEnabled;
-#else
- return false;
-#endif
-}
-
-void QQuickTextArea::setHoverEnabled(bool enabled)
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickTextArea);
- if (d->explicitHoverEnabled && enabled == d->hoverEnabled)
- return;
-
- d->updateHoverEnabled(enabled, true); // explicit=true
-#else
- Q_UNUSED(enabled);
-#endif
-}
-
-void QQuickTextArea::resetHoverEnabled()
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickTextArea);
- if (!d->explicitHoverEnabled)
- return;
-
- d->explicitHoverEnabled = false;
- d->updateHoverEnabled(QQuickControlPrivate::calcHoverEnabled(d->parentItem), false); // explicit=false
-#endif
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty palette QtQuick.Controls::TextArea::palette
-
- This property holds the palette currently set for the text area.
-
- \sa Control::palette
-*/
-QPalette QQuickTextArea::palette() const
-{
- Q_D(const QQuickTextArea);
- QPalette palette = d->resolvedPalette;
- if (!isEnabled())
- palette.setCurrentColorGroup(QPalette::Disabled);
- return palette;
-}
-
-void QQuickTextArea::setPalette(const QPalette &palette)
-{
- Q_D(QQuickTextArea);
- if (d->extra.value().requestedPalette.resolve() == palette.resolve() && d->extra.value().requestedPalette == palette)
- return;
-
- d->extra.value().requestedPalette = palette;
- d->resolvePalette();
-}
-
-void QQuickTextArea::resetPalette()
-{
- setPalette(QPalette());
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextArea::implicitBackgroundWidth
- \readonly
-
- This property holds the implicit background width.
-
- The value is equal to \c {background ? background.implicitWidth : 0}.
-
- \sa implicitBackgroundHeight
-*/
-qreal QQuickTextArea::implicitBackgroundWidth() const
-{
- Q_D(const QQuickTextArea);
- if (!d->background)
- return 0;
- return d->background->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextArea::implicitBackgroundHeight
- \readonly
-
- This property holds the implicit background height.
-
- The value is equal to \c {background ? background.implicitHeight : 0}.
-
- \sa implicitBackgroundWidth
-*/
-qreal QQuickTextArea::implicitBackgroundHeight() const
-{
- Q_D(const QQuickTextArea);
- if (!d->background)
- return 0;
- return d->background->implicitHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextArea::topInset
-
- This property holds the top inset for the background.
-
- \sa {Control Layout}, bottomInset
-*/
-qreal QQuickTextArea::topInset() const
-{
- Q_D(const QQuickTextArea);
- return d->getTopInset();
-}
-
-void QQuickTextArea::setTopInset(qreal inset)
-{
- Q_D(QQuickTextArea);
- d->setTopInset(inset);
-}
-
-void QQuickTextArea::resetTopInset()
-{
- Q_D(QQuickTextArea);
- d->setTopInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextArea::leftInset
-
- This property holds the left inset for the background.
-
- \sa {Control Layout}, rightInset
-*/
-qreal QQuickTextArea::leftInset() const
-{
- Q_D(const QQuickTextArea);
- return d->getLeftInset();
-}
-
-void QQuickTextArea::setLeftInset(qreal inset)
-{
- Q_D(QQuickTextArea);
- d->setLeftInset(inset);
-}
-
-void QQuickTextArea::resetLeftInset()
-{
- Q_D(QQuickTextArea);
- d->setLeftInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextArea::rightInset
-
- This property holds the right inset for the background.
-
- \sa {Control Layout}, leftInset
-*/
-qreal QQuickTextArea::rightInset() const
-{
- Q_D(const QQuickTextArea);
- return d->getRightInset();
-}
-
-void QQuickTextArea::setRightInset(qreal inset)
-{
- Q_D(QQuickTextArea);
- d->setRightInset(inset);
-}
-
-void QQuickTextArea::resetRightInset()
-{
- Q_D(QQuickTextArea);
- d->setRightInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextArea::bottomInset
-
- This property holds the bottom inset for the background.
-
- \sa {Control Layout}, topInset
-*/
-qreal QQuickTextArea::bottomInset() const
-{
- Q_D(const QQuickTextArea);
- return d->getBottomInset();
-}
-
-void QQuickTextArea::setBottomInset(qreal inset)
-{
- Q_D(QQuickTextArea);
- d->setBottomInset(inset);
-}
-
-void QQuickTextArea::resetBottomInset()
-{
- Q_D(QQuickTextArea);
- d->setBottomInset(0, true);
-}
-
-void QQuickTextArea::classBegin()
-{
- Q_D(QQuickTextArea);
- QQuickTextEdit::classBegin();
- d->resolveFont();
- d->resolvePalette();
-}
-
-void QQuickTextArea::componentComplete()
-{
- Q_D(QQuickTextArea);
- d->executeBackground(true);
- QQuickTextEdit::componentComplete();
- d->resizeBackground();
-#if QT_CONFIG(quicktemplates2_hover)
- if (!d->explicitHoverEnabled)
- setAcceptHoverEvents(QQuickControlPrivate::calcHoverEnabled(d->parentItem));
-#endif
-#if QT_CONFIG(accessibility)
- if (QAccessible::isActive())
- d->accessibilityActiveChanged(true);
-#endif
-}
-
-void QQuickTextArea::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &value)
-{
- Q_D(QQuickTextArea);
- QQuickTextEdit::itemChange(change, value);
- switch (change) {
- case ItemEnabledHasChanged:
- emit paletteChanged();
- break;
- case ItemSceneChange:
- case ItemParentHasChanged:
- if ((change == ItemParentHasChanged && value.item) || (change == ItemSceneChange && value.window)) {
- d->resolveFont();
- d->resolvePalette();
-#if QT_CONFIG(quicktemplates2_hover)
- if (!d->explicitHoverEnabled)
- d->updateHoverEnabled(QQuickControlPrivate::calcHoverEnabled(d->parentItem), false); // explicit=false
-#endif
- if (change == ItemParentHasChanged) {
- QQuickFlickable *flickable = qobject_cast<QQuickFlickable *>(value.item->parentItem());
- if (flickable) {
- QQuickScrollView *scrollView = qobject_cast<QQuickScrollView *>(flickable->parentItem());
- if (scrollView)
- d->attachFlickable(flickable);
- }
- }
- }
- break;
- default:
- break;
- }
-}
-
-void QQuickTextArea::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickTextArea);
- QQuickTextEdit::geometryChanged(newGeometry, oldGeometry);
- d->resizeBackground();
-}
-
-void QQuickTextArea::insetChange(const QMarginsF &newInset, const QMarginsF &oldInset)
-{
- Q_D(QQuickTextArea);
- Q_UNUSED(newInset);
- Q_UNUSED(oldInset);
- d->resizeBackground();
-}
-
-QSGNode *QQuickTextArea::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data)
-{
- Q_D(QQuickTextArea);
- QQuickDefaultClipNode *clipNode = static_cast<QQuickDefaultClipNode *>(oldNode);
- if (!clipNode)
- clipNode = new QQuickDefaultClipNode(QRectF());
-
- QQuickItem *clipper = this;
- if (d->flickable)
- clipper = d->flickable;
-
- const QRectF cr = clipper->clipRect().adjusted(leftPadding(), topPadding(), -rightPadding(), -bottomPadding());
- clipNode->setRect(!d->flickable ? cr : cr.translated(d->flickable->contentX(), d->flickable->contentY()));
- clipNode->update();
-
- QSGNode *textNode = QQuickTextEdit::updatePaintNode(clipNode->firstChild(), data);
- if (!textNode->parent())
- clipNode->appendChildNode(textNode);
-
- if (d->cursorItem) {
- QQuickDefaultClipNode *cursorNode = QQuickItemPrivate::get(d->cursorItem)->clipNode();
- if (cursorNode)
- cursorNode->setClipRect(d->cursorItem->mapRectFromItem(clipper, cr));
- }
-
- return clipNode;
-}
-
-void QQuickTextArea::focusInEvent(QFocusEvent *event)
-{
- QQuickTextEdit::focusInEvent(event);
- setFocusReason(event->reason());
-}
-
-void QQuickTextArea::focusOutEvent(QFocusEvent *event)
-{
- QQuickTextEdit::focusOutEvent(event);
- setFocusReason(event->reason());
-}
-
-#if QT_CONFIG(quicktemplates2_hover)
-void QQuickTextArea::hoverEnterEvent(QHoverEvent *event)
-{
- Q_D(QQuickTextArea);
- QQuickTextEdit::hoverEnterEvent(event);
- setHovered(d->hoverEnabled);
- event->setAccepted(d->hoverEnabled);
-}
-
-void QQuickTextArea::hoverLeaveEvent(QHoverEvent *event)
-{
- Q_D(QQuickTextArea);
- QQuickTextEdit::hoverLeaveEvent(event);
- setHovered(false);
- event->setAccepted(d->hoverEnabled);
-}
-#endif
-
-void QQuickTextArea::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickTextArea);
- d->pressHandler.mousePressEvent(event);
- if (d->pressHandler.isActive()) {
- if (d->pressHandler.delayedMousePressEvent) {
- QQuickTextEdit::mousePressEvent(d->pressHandler.delayedMousePressEvent);
- d->pressHandler.clearDelayedMouseEvent();
- }
- // Calling the base class implementation will result in QQuickTextControl's
- // press handler being called, which ignores events that aren't Qt::LeftButton.
- const bool wasAccepted = event->isAccepted();
- QQuickTextEdit::mousePressEvent(event);
- if (wasAccepted)
- event->accept();
- }
-}
-
-void QQuickTextArea::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickTextArea);
- d->pressHandler.mouseMoveEvent(event);
- if (d->pressHandler.isActive()) {
- if (d->pressHandler.delayedMousePressEvent) {
- QQuickTextEdit::mousePressEvent(d->pressHandler.delayedMousePressEvent);
- d->pressHandler.clearDelayedMouseEvent();
- }
- QQuickTextEdit::mouseMoveEvent(event);
- }
-}
-
-void QQuickTextArea::mouseReleaseEvent(QMouseEvent *event)
-{
- Q_D(QQuickTextArea);
- d->pressHandler.mouseReleaseEvent(event);
- if (d->pressHandler.isActive()) {
- if (d->pressHandler.delayedMousePressEvent) {
- QQuickTextEdit::mousePressEvent(d->pressHandler.delayedMousePressEvent);
- d->pressHandler.clearDelayedMouseEvent();
- }
- QQuickTextEdit::mouseReleaseEvent(event);
- }
-}
-
-void QQuickTextArea::mouseDoubleClickEvent(QMouseEvent *event)
-{
- Q_D(QQuickTextArea);
- if (d->pressHandler.delayedMousePressEvent) {
- QQuickTextEdit::mousePressEvent(d->pressHandler.delayedMousePressEvent);
- d->pressHandler.clearDelayedMouseEvent();
- }
- QQuickTextEdit::mouseDoubleClickEvent(event);
-}
-
-void QQuickTextArea::timerEvent(QTimerEvent *event)
-{
- Q_D(QQuickTextArea);
- if (event->timerId() == d->pressHandler.timer.timerId())
- d->pressHandler.timerEvent(event);
- else
- QQuickTextEdit::timerEvent(event);
-}
-
-class QQuickTextAreaAttachedPrivate : public QObjectPrivate
-{
-public:
- QQuickTextArea *control = nullptr;
-};
-
-QQuickTextAreaAttached::QQuickTextAreaAttached(QObject *parent)
- : QObject(*(new QQuickTextAreaAttachedPrivate), parent)
-{
-}
-
-/*!
- \qmlattachedproperty TextArea QtQuick.Controls::TextArea::flickable
-
- This property attaches a text area to a \l Flickable.
-
- \sa ScrollBar, ScrollIndicator, {Scrollable TextArea}
-*/
-QQuickTextArea *QQuickTextAreaAttached::flickable() const
-{
- Q_D(const QQuickTextAreaAttached);
- return d->control;
-}
-
-void QQuickTextAreaAttached::setFlickable(QQuickTextArea *control)
-{
- Q_D(QQuickTextAreaAttached);
- QQuickFlickable *flickable = qobject_cast<QQuickFlickable *>(parent());
- if (!flickable) {
- qmlWarning(parent()) << "TextArea must be attached to a Flickable";
- return;
- }
-
- if (d->control == control)
- return;
-
- if (d->control)
- QQuickTextAreaPrivate::get(d->control)->detachFlickable();
-
- d->control = control;
-
- if (control)
- QQuickTextAreaPrivate::get(control)->attachFlickable(flickable);
-
- emit flickableChanged();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktextarea_p.h b/src/quicktemplates2/qquicktextarea_p.h
deleted file mode 100644
index 15182a84..00000000
--- a/src/quicktemplates2/qquicktextarea_p.h
+++ /dev/null
@@ -1,221 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTEXTAREA_P_H
-#define QQUICKTEXTAREA_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpalette.h>
-#include <QtQuick/private/qquicktextedit_p.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickText;
-class QQuickTextAreaPrivate;
-class QQuickTextAreaAttached;
-class QQuickMouseEvent;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTextArea : public QQuickTextEdit
-{
- Q_OBJECT
- Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged) // override
- Q_PROPERTY(qreal implicitWidth READ implicitWidth WRITE setImplicitWidth NOTIFY implicitWidthChanged3 FINAL)
- Q_PROPERTY(qreal implicitHeight READ implicitHeight WRITE setImplicitHeight NOTIFY implicitHeightChanged3 FINAL)
- Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
- Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText NOTIFY placeholderTextChanged FINAL)
- Q_PROPERTY(Qt::FocusReason focusReason READ focusReason WRITE setFocusReason NOTIFY focusReasonChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(bool hovered READ isHovered NOTIFY hoveredChanged FINAL REVISION 1)
- Q_PROPERTY(bool hoverEnabled READ isHoverEnabled WRITE setHoverEnabled RESET resetHoverEnabled NOTIFY hoverEnabledChanged FINAL REVISION 1)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged FINAL REVISION 3)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(QColor placeholderTextColor READ placeholderTextColor WRITE setPlaceholderTextColor NOTIFY placeholderTextColorChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundWidth READ implicitBackgroundWidth NOTIFY implicitBackgroundWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundHeight READ implicitBackgroundHeight NOTIFY implicitBackgroundHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal topInset READ topInset WRITE setTopInset RESET resetTopInset NOTIFY topInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal leftInset READ leftInset WRITE setLeftInset RESET resetLeftInset NOTIFY leftInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal rightInset READ rightInset WRITE setRightInset RESET resetRightInset NOTIFY rightInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal bottomInset READ bottomInset WRITE setBottomInset RESET resetBottomInset NOTIFY bottomInsetChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background")
-
-public:
- explicit QQuickTextArea(QQuickItem *parent = nullptr);
- ~QQuickTextArea();
-
- static QQuickTextAreaAttached *qmlAttachedProperties(QObject *object);
-
- QFont font() const;
- void setFont(const QFont &font);
-
- QQuickItem *background() const;
- void setBackground(QQuickItem *background);
-
- QString placeholderText() const;
- void setPlaceholderText(const QString &text);
-
- Qt::FocusReason focusReason() const;
- void setFocusReason(Qt::FocusReason reason);
-
- bool contains(const QPointF &point) const override;
-
- // 2.1 (Qt 5.8)
- bool isHovered() const;
- void setHovered(bool hovered);
-
- bool isHoverEnabled() const;
- void setHoverEnabled(bool enabled);
- void resetHoverEnabled();
-
- // 2.3 (Qt 5.10)
- QPalette palette() const;
- void setPalette(const QPalette &palette);
- void resetPalette();
-
- // 2.5 (Qt 5.12)
- QColor placeholderTextColor() const;
- void setPlaceholderTextColor(const QColor &color);
-
- qreal implicitBackgroundWidth() const;
- qreal implicitBackgroundHeight() const;
-
- qreal topInset() const;
- void setTopInset(qreal inset);
- void resetTopInset();
-
- qreal leftInset() const;
- void setLeftInset(qreal inset);
- void resetLeftInset();
-
- qreal rightInset() const;
- void setRightInset(qreal inset);
- void resetRightInset();
-
- qreal bottomInset() const;
- void setBottomInset(qreal inset);
- void resetBottomInset();
-
-Q_SIGNALS:
- void fontChanged();
- void implicitWidthChanged3();
- void implicitHeightChanged3();
- void backgroundChanged();
- void placeholderTextChanged();
- void focusReasonChanged();
- void pressAndHold(QQuickMouseEvent *event);
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void pressed(QQuickMouseEvent *event);
- Q_REVISION(1) void released(QQuickMouseEvent *event);
- Q_REVISION(1) void hoveredChanged();
- Q_REVISION(1) void hoverEnabledChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void paletteChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void placeholderTextColorChanged();
- Q_REVISION(5) void implicitBackgroundWidthChanged();
- Q_REVISION(5) void implicitBackgroundHeightChanged();
- Q_REVISION(5) void topInsetChanged();
- Q_REVISION(5) void leftInsetChanged();
- Q_REVISION(5) void rightInsetChanged();
- Q_REVISION(5) void bottomInsetChanged();
-
-protected:
- friend struct QQuickPressHandler;
-
- void classBegin() override;
- void componentComplete() override;
-
- void itemChange(ItemChange change, const ItemChangeData &value) override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- virtual void insetChange(const QMarginsF &newInset, const QMarginsF &oldInset);
-
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) override;
-
- void focusInEvent(QFocusEvent *event) override;
- void focusOutEvent(QFocusEvent *event) override;
-#if QT_CONFIG(quicktemplates2_hover)
- void hoverEnterEvent(QHoverEvent *event) override;
- void hoverLeaveEvent(QHoverEvent *event) override;
-#endif
- void mousePressEvent(QMouseEvent *event) override;
- void mouseMoveEvent(QMouseEvent *event) override;
- void mouseReleaseEvent(QMouseEvent *event) override;
- void mouseDoubleClickEvent(QMouseEvent *event) override;
- void timerEvent(QTimerEvent *event) override;
-
-private:
- Q_DISABLE_COPY(QQuickTextArea)
- Q_DECLARE_PRIVATE(QQuickTextArea)
-};
-
-class QQuickTextAreaAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTextAreaAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickTextArea *flickable READ flickable WRITE setFlickable NOTIFY flickableChanged FINAL)
-
-public:
- explicit QQuickTextAreaAttached(QObject *parent);
-
- QQuickTextArea *flickable() const;
- void setFlickable(QQuickTextArea *control);
-
-Q_SIGNALS:
- void flickableChanged();
-
-private:
- Q_DISABLE_COPY(QQuickTextAreaAttached)
- Q_DECLARE_PRIVATE(QQuickTextAreaAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickTextArea)
-QML_DECLARE_TYPEINFO(QQuickTextArea, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKTEXTAREA_P_H
diff --git a/src/quicktemplates2/qquicktextarea_p_p.h b/src/quicktemplates2/qquicktextarea_p_p.h
deleted file mode 100644
index 613551e4..00000000
--- a/src/quicktemplates2/qquicktextarea_p_p.h
+++ /dev/null
@@ -1,179 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTEXTAREA_P_P_H
-#define QQUICKTEXTAREA_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQml/private/qlazilyallocated_p.h>
-#include <QtQuick/private/qquicktextedit_p_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQuickTemplates2/private/qquickpresshandler_p_p.h>
-#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
-
-#include <QtQuickTemplates2/private/qquicktextarea_p.h>
-
-#if QT_CONFIG(accessibility)
-#include <QtGui/qaccessible.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-class QQuickFlickable;
-
-class QQuickTextAreaPrivate : public QQuickTextEditPrivate, public QQuickItemChangeListener
-#if QT_CONFIG(accessibility)
- , public QAccessible::ActivationObserver
-#endif
-{
- Q_DECLARE_PUBLIC(QQuickTextArea)
-
-public:
- QQuickTextAreaPrivate();
- ~QQuickTextAreaPrivate();
-
- static QQuickTextAreaPrivate *get(QQuickTextArea *item)
- {
- return static_cast<QQuickTextAreaPrivate *>(QObjectPrivate::get(item));
- }
-
- inline QMarginsF getInset() const { return QMarginsF(getLeftInset(), getTopInset(), getRightInset(), getBottomInset()); }
- inline qreal getTopInset() const { return extra.isAllocated() ? extra->topInset : 0; }
- inline qreal getLeftInset() const { return extra.isAllocated() ? extra->leftInset : 0; }
- inline qreal getRightInset() const { return extra.isAllocated() ? extra->rightInset : 0; }
- inline qreal getBottomInset() const { return extra.isAllocated() ? extra->bottomInset : 0; }
-
- void setTopInset(qreal value, bool reset = false);
- void setLeftInset(qreal value, bool reset = false);
- void setRightInset(qreal value, bool reset = false);
- void setBottomInset(qreal value, bool reset = false);
-
- void resizeBackground();
-
- void resolveFont();
- void inheritFont(const QFont &font);
- void updateFont(const QFont &font);
- inline void setFont_helper(const QFont &font) {
- if (sourceFont.resolve() == font.resolve() && sourceFont == font)
- return;
- updateFont(font);
- }
-
- void resolvePalette();
- void inheritPalette(const QPalette &palette);
- void updatePalette(const QPalette &palette);
- inline void setPalette_helper(const QPalette &palette) {
- if (resolvedPalette.resolve() == palette.resolve() && resolvedPalette == palette)
- return;
- updatePalette(palette);
- }
-
-#if QT_CONFIG(quicktemplates2_hover)
- void updateHoverEnabled(bool h, bool e);
-#endif
-
- void attachFlickable(QQuickFlickable *flickable);
- void detachFlickable();
- void ensureCursorVisible();
- void resizeFlickableControl();
- void resizeFlickableContent();
-
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
-
- qreal getImplicitWidth() const override;
- qreal getImplicitHeight() const override;
-
- void implicitWidthChanged() override;
- void implicitHeightChanged() override;
-
- void readOnlyChanged(bool isReadOnly);
-
-#if QT_CONFIG(accessibility)
- void accessibilityActiveChanged(bool active) override;
- QAccessible::Role accessibleRole() const override;
-#endif
-
- void cancelBackground();
- void executeBackground(bool complete = false);
-
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
- void itemDestroyed(QQuickItem *item) override;
-
-#if QT_CONFIG(quicktemplates2_hover)
- bool hovered = false;
- bool explicitHoverEnabled = false;
-#endif
-
- struct ExtraData {
- bool hasTopInset = false;
- bool hasLeftInset = false;
- bool hasRightInset = false;
- bool hasBottomInset = false;
- bool hasBackgroundWidth = false;
- bool hasBackgroundHeight = false;
- qreal topInset = 0;
- qreal leftInset = 0;
- qreal rightInset = 0;
- qreal bottomInset = 0;
- QFont requestedFont;
- QPalette requestedPalette;
- };
- QLazilyAllocated<ExtraData> extra;
-
- bool resizingBackground = false;
- QPalette resolvedPalette;
- QQuickDeferredPointer<QQuickItem> background;
- QString placeholder;
- QColor placeholderColor;
- Qt::FocusReason focusReason = Qt::OtherFocusReason;
- QQuickPressHandler pressHandler;
- QQuickFlickable *flickable = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKTEXTAREA_P_P_H
diff --git a/src/quicktemplates2/qquicktextfield.cpp b/src/quicktemplates2/qquicktextfield.cpp
deleted file mode 100644
index 56ffc52f..00000000
--- a/src/quicktemplates2/qquicktextfield.cpp
+++ /dev/null
@@ -1,1017 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktextfield_p.h"
-#include "qquicktextfield_p_p.h"
-#include "qquickcontrol_p.h"
-#include "qquickcontrol_p_p.h"
-#include "qquickdeferredexecute_p_p.h"
-
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuick/private/qquicktextinput_p.h>
-#include <QtQuick/private/qquickclipnode_p.h>
-
-#if QT_CONFIG(accessibility)
-#include <QtQuick/private/qquickaccessibleattached_p.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype TextField
- \inherits TextInput
- \instantiates QQuickTextField
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-input
- \brief Single-line text input field.
-
- TextField is a single line text editor. TextField extends TextInput with
- a \l {placeholderText}{placeholder text} functionality, and adds decoration.
-
- \table
- \row \li \image qtquickcontrols2-textfield-normal.png
- \li A text field in its normal state.
- \row \li \image qtquickcontrols2-textfield-focused.png
- \li A text field that has active focus.
- \row \li \image qtquickcontrols2-textfield-disabled.png
- \li A text field that is disabled.
- \endtable
-
- \code
- TextField {
- placeholderText: qsTr("Enter name")
- }
- \endcode
-
- \sa TextArea, {Customizing TextField}, {Input Controls}
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::TextField::pressAndHold(MouseEvent event)
-
- This signal is emitted when there is a long press (the delay depends on the platform plugin).
- The \l {MouseEvent}{event} parameter provides information about the press, including the x and y
- position of the press, and which button is pressed.
-
- \sa pressed, released
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::TextField::pressed(MouseEvent event)
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This signal is emitted when the text field is pressed by the user.
- The \l {MouseEvent}{event} parameter provides information about the press,
- including the x and y position of the press, and which button is pressed.
-
- \sa released, pressAndHold
-*/
-
-/*!
- \qmlsignal QtQuick.Controls::TextField::released(MouseEvent event)
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This signal is emitted when the text field is released by the user.
- The \l {MouseEvent}{event} parameter provides information about the release,
- including the x and y position of the press, and which button is pressed.
-
- \sa pressed, pressAndHold
-*/
-
-QQuickTextFieldPrivate::QQuickTextFieldPrivate()
-{
-#if QT_CONFIG(accessibility)
- QAccessible::installActivationObserver(this);
-#endif
-}
-
-QQuickTextFieldPrivate::~QQuickTextFieldPrivate()
-{
-#if QT_CONFIG(accessibility)
- QAccessible::removeActivationObserver(this);
-#endif
-}
-
-void QQuickTextFieldPrivate::setTopInset(qreal value, bool reset)
-{
- Q_Q(QQuickTextField);
- const QMarginsF oldInset = getInset();
- extra.value().topInset = value;
- extra.value().hasTopInset = !reset;
- if (!qFuzzyCompare(oldInset.top(), value)) {
- emit q->topInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickTextFieldPrivate::setLeftInset(qreal value, bool reset)
-{
- Q_Q(QQuickTextField);
- const QMarginsF oldInset = getInset();
- extra.value().leftInset = value;
- extra.value().hasLeftInset = !reset;
- if (!qFuzzyCompare(oldInset.left(), value)) {
- emit q->leftInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickTextFieldPrivate::setRightInset(qreal value, bool reset)
-{
- Q_Q(QQuickTextField);
- const QMarginsF oldInset = getInset();
- extra.value().rightInset = value;
- extra.value().hasRightInset = !reset;
- if (!qFuzzyCompare(oldInset.right(), value)) {
- emit q->rightInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickTextFieldPrivate::setBottomInset(qreal value, bool reset)
-{
- Q_Q(QQuickTextField);
- const QMarginsF oldInset = getInset();
- extra.value().bottomInset = value;
- extra.value().hasBottomInset = !reset;
- if (!qFuzzyCompare(oldInset.bottom(), value)) {
- emit q->bottomInsetChanged();
- q->insetChange(getInset(), oldInset);
- }
-}
-
-void QQuickTextFieldPrivate::resizeBackground()
-{
- if (!background)
- return;
-
- resizingBackground = true;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (((!p->widthValid || !extra.isAllocated() || !extra->hasBackgroundWidth) && qFuzzyIsNull(background->x()))
- || (extra.isAllocated() && (extra->hasLeftInset || extra->hasRightInset))) {
- const bool wasWidthValid = p->widthValid;
- background->setX(getLeftInset());
- background->setWidth(width - getLeftInset() - getRightInset());
- // If the user hadn't previously set the width, that shouldn't change when we set it for them.
- if (!wasWidthValid)
- p->widthValid = false;
- }
- if (((!p->heightValid || !extra.isAllocated() || !extra->hasBackgroundHeight) && qFuzzyIsNull(background->y()))
- || (extra.isAllocated() && (extra->hasTopInset || extra->hasBottomInset))) {
- const bool wasHeightValid = p->heightValid;
- background->setY(getTopInset());
- background->setHeight(height - getTopInset() - getBottomInset());
- if (!wasHeightValid)
- p->heightValid = false;
- }
-
- resizingBackground = false;
-}
-
-/*!
- \internal
-
- Determine which font is implicitly imposed on this control by its ancestors
- and QGuiApplication::font, resolve this against its own font (attributes from
- the implicit font are copied over). Then propagate this font to this
- control's children.
-*/
-void QQuickTextFieldPrivate::resolveFont()
-{
- Q_Q(QQuickTextField);
- inheritFont(QQuickControlPrivate::parentFont(q));
-}
-
-void QQuickTextFieldPrivate::inheritFont(const QFont &font)
-{
- QFont parentFont = extra.isAllocated() ? extra->requestedFont.resolve(font) : font;
- parentFont.resolve(extra.isAllocated() ? extra->requestedFont.resolve() | font.resolve() : font.resolve());
-
- const QFont defaultFont = QQuickTheme::font(QQuickTheme::TextField);
- const QFont resolvedFont = parentFont.resolve(defaultFont);
-
- setFont_helper(resolvedFont);
-}
-
-/*!
- \internal
-
- Assign \a font to this control, and propagate it to all children.
-*/
-void QQuickTextFieldPrivate::updateFont(const QFont &font)
-{
- Q_Q(QQuickTextField);
- QFont oldFont = sourceFont;
- q->QQuickTextInput::setFont(font);
-
- QQuickControlPrivate::updateFontRecur(q, font);
-
- if (oldFont != font)
- emit q->fontChanged();
-}
-
-/*!
- \internal
-
- Determine which palette is implicitly imposed on this control by its ancestors
- and QGuiApplication::palette, resolve this against its own palette (attributes from
- the implicit palette are copied over). Then propagate this palette to this
- control's children.
-*/
-void QQuickTextFieldPrivate::resolvePalette()
-{
- Q_Q(QQuickTextField);
- inheritPalette(QQuickControlPrivate::parentPalette(q));
-}
-
-void QQuickTextFieldPrivate::inheritPalette(const QPalette &palette)
-{
- QPalette parentPalette = extra.isAllocated() ? extra->requestedPalette.resolve(palette) : palette;
- parentPalette.resolve(extra.isAllocated() ? extra->requestedPalette.resolve() | palette.resolve() : palette.resolve());
-
- const QPalette defaultPalette = QQuickTheme::palette(QQuickTheme::TextField);
- const QPalette resolvedPalette = parentPalette.resolve(defaultPalette);
-
- setPalette_helper(resolvedPalette);
-}
-
-void QQuickTextFieldPrivate::updatePalette(const QPalette &palette)
-{
- Q_Q(QQuickTextField);
- QPalette oldPalette = resolvedPalette;
- resolvedPalette = palette;
-
- QQuickControlPrivate::updatePaletteRecur(q, palette);
-
- if (oldPalette != palette)
- emit q->paletteChanged();
-}
-
-#if QT_CONFIG(quicktemplates2_hover)
-void QQuickTextFieldPrivate::updateHoverEnabled(bool enabled, bool xplicit)
-{
- Q_Q(QQuickTextField);
- if (!xplicit && explicitHoverEnabled)
- return;
-
- bool wasEnabled = q->isHoverEnabled();
- explicitHoverEnabled = xplicit;
- if (wasEnabled != enabled) {
- q->setAcceptHoverEvents(enabled);
- QQuickControlPrivate::updateHoverEnabledRecur(q, enabled);
- emit q->hoverEnabledChanged();
- }
-}
-#endif
-
-qreal QQuickTextFieldPrivate::getImplicitWidth() const
-{
- return QQuickItemPrivate::getImplicitWidth();
-}
-
-qreal QQuickTextFieldPrivate::getImplicitHeight() const
-{
- return QQuickItemPrivate::getImplicitHeight();
-}
-
-void QQuickTextFieldPrivate::implicitWidthChanged()
-{
- Q_Q(QQuickTextField);
- QQuickItemPrivate::implicitWidthChanged();
- emit q->implicitWidthChanged3();
-}
-
-void QQuickTextFieldPrivate::implicitHeightChanged()
-{
- Q_Q(QQuickTextField);
- QQuickItemPrivate::implicitHeightChanged();
- emit q->implicitHeightChanged3();
-}
-
-void QQuickTextFieldPrivate::readOnlyChanged(bool isReadOnly)
-{
- Q_UNUSED(isReadOnly);
-#if QT_CONFIG(accessibility)
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(q_func()))
- accessibleAttached->set_readOnly(isReadOnly);
-#endif
-#if QT_CONFIG(cursor)
- q_func()->setCursor(isReadOnly ? Qt::ArrowCursor : Qt::IBeamCursor);
-#endif
-}
-
-void QQuickTextFieldPrivate::echoModeChanged(QQuickTextField::EchoMode echoMode)
-{
-#if QT_CONFIG(accessibility)
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(q_func()))
- accessibleAttached->set_passwordEdit((echoMode == QQuickTextField::Password || echoMode == QQuickTextField::PasswordEchoOnEdit) ? true : false);
-#else
- Q_UNUSED(echoMode)
-#endif
-}
-
-#if QT_CONFIG(accessibility)
-void QQuickTextFieldPrivate::accessibilityActiveChanged(bool active)
-{
- if (!active)
- return;
-
- Q_Q(QQuickTextField);
- QQuickAccessibleAttached *accessibleAttached = qobject_cast<QQuickAccessibleAttached *>(qmlAttachedPropertiesObject<QQuickAccessibleAttached>(q, true));
- Q_ASSERT(accessibleAttached);
- accessibleAttached->setRole(accessibleRole());
- accessibleAttached->set_readOnly(m_readOnly);
- accessibleAttached->set_passwordEdit((m_echoMode == QQuickTextField::Password || m_echoMode == QQuickTextField::PasswordEchoOnEdit) ? true : false);
- accessibleAttached->setDescription(placeholder);
-}
-
-QAccessible::Role QQuickTextFieldPrivate::accessibleRole() const
-{
- return QAccessible::EditableText;
-}
-#endif
-
-static inline QString backgroundName() { return QStringLiteral("background"); }
-
-void QQuickTextFieldPrivate::cancelBackground()
-{
- Q_Q(QQuickTextField);
- quickCancelDeferred(q, backgroundName());
-}
-
-void QQuickTextFieldPrivate::executeBackground(bool complete)
-{
- Q_Q(QQuickTextField);
- if (background.wasExecuted())
- return;
-
- if (!background || complete)
- quickBeginDeferred(q, backgroundName(), background);
- if (complete)
- quickCompleteDeferred(q, backgroundName(), background);
-}
-
-void QQuickTextFieldPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff)
-{
- Q_UNUSED(diff);
- if (resizingBackground || item != background || !change.sizeChange())
- return;
-
- QQuickItemPrivate *p = QQuickItemPrivate::get(item);
- // QTBUG-71875: only allocate the extra data if we have to.
- // resizeBackground() relies on the value of extra.isAllocated()
- // as part of its checks to see whether it should resize the background or not.
- if (p->widthValid || extra.isAllocated())
- extra.value().hasBackgroundWidth = p->widthValid;
- if (p->heightValid || extra.isAllocated())
- extra.value().hasBackgroundHeight = p->heightValid;
- resizeBackground();
-}
-
-void QQuickTextFieldPrivate::itemImplicitWidthChanged(QQuickItem *item)
-{
- Q_Q(QQuickTextField);
- if (item == background)
- emit q->implicitBackgroundWidthChanged();
-}
-
-void QQuickTextFieldPrivate::itemImplicitHeightChanged(QQuickItem *item)
-{
- Q_Q(QQuickTextField);
- if (item == background)
- emit q->implicitBackgroundHeightChanged();
-}
-
-void QQuickTextFieldPrivate::itemDestroyed(QQuickItem *item)
-{
- Q_Q(QQuickTextField);
- if (item == background) {
- background = nullptr;
- emit q->implicitBackgroundWidthChanged();
- emit q->implicitBackgroundHeightChanged();
- }
-}
-
-QQuickTextField::QQuickTextField(QQuickItem *parent)
- : QQuickTextInput(*(new QQuickTextFieldPrivate), parent)
-{
- Q_D(QQuickTextField);
- d->pressHandler.control = this;
- d->setImplicitResizeEnabled(false);
- setAcceptedMouseButtons(Qt::AllButtons);
- setActiveFocusOnTab(true);
-#if QT_CONFIG(cursor)
- setCursor(Qt::IBeamCursor);
-#endif
- QObjectPrivate::connect(this, &QQuickTextInput::readOnlyChanged, d, &QQuickTextFieldPrivate::readOnlyChanged);
- QObjectPrivate::connect(this, &QQuickTextInput::echoModeChanged, d, &QQuickTextFieldPrivate::echoModeChanged);
-}
-
-QQuickTextField::~QQuickTextField()
-{
- Q_D(QQuickTextField);
- QQuickControlPrivate::removeImplicitSizeListener(d->background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
-}
-
-QFont QQuickTextField::font() const
-{
- return QQuickTextInput::font();
-}
-
-void QQuickTextField::setFont(const QFont &font)
-{
- Q_D(QQuickTextField);
- if (d->extra.value().requestedFont.resolve() == font.resolve() && d->extra.value().requestedFont == font)
- return;
-
- d->extra.value().requestedFont = font;
- d->resolveFont();
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::TextField::background
-
- This property holds the background item.
-
- \input qquickcontrol-background.qdocinc notes
-
- \sa {Customizing TextField}
-*/
-QQuickItem *QQuickTextField::background() const
-{
- QQuickTextFieldPrivate *d = const_cast<QQuickTextFieldPrivate *>(d_func());
- if (!d->background)
- d->executeBackground();
- return d->background;
-}
-
-void QQuickTextField::setBackground(QQuickItem *background)
-{
- Q_D(QQuickTextField);
- if (d->background == background)
- return;
-
- if (!d->background.isExecuting())
- d->cancelBackground();
-
- const qreal oldImplicitBackgroundWidth = implicitBackgroundWidth();
- const qreal oldImplicitBackgroundHeight = implicitBackgroundHeight();
-
- if (d->extra.isAllocated()) {
- d->extra.value().hasBackgroundWidth = false;
- d->extra.value().hasBackgroundHeight = false;
- }
-
- QQuickControlPrivate::removeImplicitSizeListener(d->background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- delete d->background;
- d->background = background;
-
- if (background) {
- background->setParentItem(this);
- if (qFuzzyIsNull(background->z()))
- background->setZ(-1);
- QQuickItemPrivate *p = QQuickItemPrivate::get(background);
- if (p->widthValid || p->heightValid) {
- d->extra.value().hasBackgroundWidth = p->widthValid;
- d->extra.value().hasBackgroundHeight = p->heightValid;
- }
- if (isComponentComplete())
- d->resizeBackground();
- QQuickControlPrivate::addImplicitSizeListener(background, d, QQuickControlPrivate::ImplicitSizeChanges | QQuickItemPrivate::Geometry);
- }
-
- if (!qFuzzyCompare(oldImplicitBackgroundWidth, implicitBackgroundWidth()))
- emit implicitBackgroundWidthChanged();
- if (!qFuzzyCompare(oldImplicitBackgroundHeight, implicitBackgroundHeight()))
- emit implicitBackgroundHeightChanged();
- if (!d->background.isExecuting())
- emit backgroundChanged();
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::TextField::placeholderText
-
- This property holds the hint that is displayed in the TextField before the user
- enters text.
-*/
-QString QQuickTextField::placeholderText() const
-{
- Q_D(const QQuickTextField);
- return d->placeholder;
-}
-
-void QQuickTextField::setPlaceholderText(const QString &text)
-{
- Q_D(QQuickTextField);
- if (d->placeholder == text)
- return;
-
- d->placeholder = text;
-#if QT_CONFIG(accessibility)
- if (QQuickAccessibleAttached *accessibleAttached = QQuickControlPrivate::accessibleAttached(this))
- accessibleAttached->setDescription(text);
-#endif
- emit placeholderTextChanged();
-}
-
-/*!
- \qmlproperty color QtQuick.Controls::TextField::placeholderTextColor
- \since QtQuick.Controls 2.5 (Qt 5.12)
-
- This property holds the color of placeholderText.
-
- \sa placeholderText
-*/
-QColor QQuickTextField::placeholderTextColor() const
-{
- Q_D(const QQuickTextField);
- return d->placeholderColor;
-}
-
-void QQuickTextField::setPlaceholderTextColor(const QColor &color)
-{
- Q_D(QQuickTextField);
- if (d->placeholderColor == color)
- return;
-
- d->placeholderColor = color;
- emit placeholderTextColorChanged();
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::TextField::focusReason
-
- \include qquickcontrol-focusreason.qdocinc
-*/
-Qt::FocusReason QQuickTextField::focusReason() const
-{
- Q_D(const QQuickTextField);
- return d->focusReason;
-}
-
-void QQuickTextField::setFocusReason(Qt::FocusReason reason)
-{
- Q_D(QQuickTextField);
- if (d->focusReason == reason)
- return;
-
- d->focusReason = reason;
- emit focusReasonChanged();
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlproperty bool QtQuick.Controls::TextField::hovered
- \readonly
-
- This property holds whether the text field is hovered.
-
- \sa hoverEnabled
-*/
-bool QQuickTextField::isHovered() const
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(const QQuickTextField);
- return d->hovered;
-#else
- return false;
-#endif
-}
-
-void QQuickTextField::setHovered(bool hovered)
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickTextField);
- if (hovered == d->hovered)
- return;
-
- d->hovered = hovered;
- emit hoveredChanged();
-#else
- Q_UNUSED(hovered);
-#endif
-}
-
-/*!
- \since QtQuick.Controls 2.1 (Qt 5.8)
- \qmlproperty bool QtQuick.Controls::TextField::hoverEnabled
-
- This property determines whether the text field accepts hover events. The default value is \c false.
-
- \sa hovered
-*/
-bool QQuickTextField::isHoverEnabled() const
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(const QQuickTextField);
- return d->hoverEnabled;
-#else
- return false;
-#endif
-}
-
-void QQuickTextField::setHoverEnabled(bool enabled)
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickTextField);
- if (d->explicitHoverEnabled && enabled == d->hoverEnabled)
- return;
-
- d->updateHoverEnabled(enabled, true); // explicit=true
-#else
- Q_UNUSED(enabled);
-#endif
-}
-
-void QQuickTextField::resetHoverEnabled()
-{
-#if QT_CONFIG(quicktemplates2_hover)
- Q_D(QQuickTextField);
- if (!d->explicitHoverEnabled)
- return;
-
- d->explicitHoverEnabled = false;
- d->updateHoverEnabled(QQuickControlPrivate::calcHoverEnabled(d->parentItem), false); // explicit=false
-#endif
-}
-
-/*!
- \since QtQuick.Controls 2.3 (Qt 5.10)
- \qmlproperty palette QtQuick.Controls::TextField::palette
-
- This property holds the palette currently set for the text field.
-
- \sa Control::palette
-*/
-QPalette QQuickTextField::palette() const
-{
- Q_D(const QQuickTextField);
- QPalette palette = d->resolvedPalette;
- if (!isEnabled())
- palette.setCurrentColorGroup(QPalette::Disabled);
- return palette;
-}
-
-void QQuickTextField::setPalette(const QPalette &palette)
-{
- Q_D(QQuickTextField);
- if (d->extra.value().requestedPalette.resolve() == palette.resolve() && d->extra.value().requestedPalette == palette)
- return;
-
- d->extra.value().requestedPalette = palette;
- d->resolvePalette();
-}
-
-void QQuickTextField::resetPalette()
-{
- setPalette(QPalette());
-}
-
-void QQuickTextField::classBegin()
-{
- Q_D(QQuickTextField);
- QQuickTextInput::classBegin();
- d->resolveFont();
- d->resolvePalette();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextField::implicitBackgroundWidth
- \readonly
-
- This property holds the implicit background width.
-
- The value is equal to \c {background ? background.implicitWidth : 0}.
-
- \sa implicitBackgroundHeight
-*/
-qreal QQuickTextField::implicitBackgroundWidth() const
-{
- Q_D(const QQuickTextField);
- if (!d->background)
- return 0;
- return d->background->implicitWidth();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextField::implicitBackgroundHeight
- \readonly
-
- This property holds the implicit background height.
-
- The value is equal to \c {background ? background.implicitHeight : 0}.
-
- \sa implicitBackgroundWidth
-*/
-qreal QQuickTextField::implicitBackgroundHeight() const
-{
- Q_D(const QQuickTextField);
- if (!d->background)
- return 0;
- return d->background->implicitHeight();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextField::topInset
-
- This property holds the top inset for the background.
-
- \sa {Control Layout}, bottomInset
-*/
-qreal QQuickTextField::topInset() const
-{
- Q_D(const QQuickTextField);
- return d->getTopInset();
-}
-
-void QQuickTextField::setTopInset(qreal inset)
-{
- Q_D(QQuickTextField);
- d->setTopInset(inset);
-}
-
-void QQuickTextField::resetTopInset()
-{
- Q_D(QQuickTextField);
- d->setTopInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextField::leftInset
-
- This property holds the left inset for the background.
-
- \sa {Control Layout}, rightInset
-*/
-qreal QQuickTextField::leftInset() const
-{
- Q_D(const QQuickTextField);
- return d->getLeftInset();
-}
-
-void QQuickTextField::setLeftInset(qreal inset)
-{
- Q_D(QQuickTextField);
- d->setLeftInset(inset);
-}
-
-void QQuickTextField::resetLeftInset()
-{
- Q_D(QQuickTextField);
- d->setLeftInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextField::rightInset
-
- This property holds the right inset for the background.
-
- \sa {Control Layout}, leftInset
-*/
-qreal QQuickTextField::rightInset() const
-{
- Q_D(const QQuickTextField);
- return d->getRightInset();
-}
-
-void QQuickTextField::setRightInset(qreal inset)
-{
- Q_D(QQuickTextField);
- d->setRightInset(inset);
-}
-
-void QQuickTextField::resetRightInset()
-{
- Q_D(QQuickTextField);
- d->setRightInset(0, true);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlproperty real QtQuick.Controls::TextField::bottomInset
-
- This property holds the bottom inset for the background.
-
- \sa {Control Layout}, topInset
-*/
-qreal QQuickTextField::bottomInset() const
-{
- Q_D(const QQuickTextField);
- return d->getBottomInset();
-}
-
-void QQuickTextField::setBottomInset(qreal inset)
-{
- Q_D(QQuickTextField);
- d->setBottomInset(inset);
-}
-
-void QQuickTextField::resetBottomInset()
-{
- Q_D(QQuickTextField);
- d->setBottomInset(0, true);
-}
-
-void QQuickTextField::componentComplete()
-{
- Q_D(QQuickTextField);
- d->executeBackground(true);
- QQuickTextInput::componentComplete();
- d->resizeBackground();
-#if QT_CONFIG(quicktemplates2_hover)
- if (!d->explicitHoverEnabled)
- setAcceptHoverEvents(QQuickControlPrivate::calcHoverEnabled(d->parentItem));
-#endif
-#if QT_CONFIG(accessibility)
- if (QAccessible::isActive())
- d->accessibilityActiveChanged(true);
-#endif
-}
-
-void QQuickTextField::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &value)
-{
- Q_D(QQuickTextField);
- QQuickTextInput::itemChange(change, value);
- switch (change) {
- case ItemEnabledHasChanged:
- emit paletteChanged();
- break;
- case ItemSceneChange:
- case ItemParentHasChanged:
- if ((change == ItemParentHasChanged && value.item) || (change == ItemSceneChange && value.window)) {
- d->resolveFont();
- d->resolvePalette();
-#if QT_CONFIG(quicktemplates2_hover)
- if (!d->explicitHoverEnabled)
- d->updateHoverEnabled(QQuickControlPrivate::calcHoverEnabled(d->parentItem), false); // explicit=false
-#endif
- }
- break;
- default:
- break;
- }
-}
-
-void QQuickTextField::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickTextField);
- QQuickTextInput::geometryChanged(newGeometry, oldGeometry);
- d->resizeBackground();
-}
-
-void QQuickTextField::insetChange(const QMarginsF &newInset, const QMarginsF &oldInset)
-{
- Q_D(QQuickTextField);
- Q_UNUSED(newInset);
- Q_UNUSED(oldInset);
- d->resizeBackground();
-}
-QSGNode *QQuickTextField::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data)
-{
- QQuickDefaultClipNode *clipNode = static_cast<QQuickDefaultClipNode *>(oldNode);
- if (!clipNode)
- clipNode = new QQuickDefaultClipNode(QRectF());
-
- clipNode->setRect(clipRect().adjusted(leftPadding(), topPadding(), -rightPadding(), -bottomPadding()));
- clipNode->update();
-
- QSGNode *textNode = QQuickTextInput::updatePaintNode(clipNode->firstChild(), data);
- if (!textNode->parent())
- clipNode->appendChildNode(textNode);
-
- return clipNode;
-}
-
-void QQuickTextField::focusInEvent(QFocusEvent *event)
-{
- QQuickTextInput::focusInEvent(event);
- setFocusReason(event->reason());
-}
-
-void QQuickTextField::focusOutEvent(QFocusEvent *event)
-{
- QQuickTextInput::focusOutEvent(event);
- setFocusReason(event->reason());
-}
-
-#if QT_CONFIG(quicktemplates2_hover)
-void QQuickTextField::hoverEnterEvent(QHoverEvent *event)
-{
- Q_D(QQuickTextField);
- QQuickTextInput::hoverEnterEvent(event);
- setHovered(d->hoverEnabled);
- event->setAccepted(d->hoverEnabled);
-}
-
-void QQuickTextField::hoverLeaveEvent(QHoverEvent *event)
-{
- Q_D(QQuickTextField);
- QQuickTextInput::hoverLeaveEvent(event);
- setHovered(false);
- event->setAccepted(d->hoverEnabled);
-}
-#endif
-
-void QQuickTextField::mousePressEvent(QMouseEvent *event)
-{
- Q_D(QQuickTextField);
- d->pressHandler.mousePressEvent(event);
- if (d->pressHandler.isActive()) {
- if (d->pressHandler.delayedMousePressEvent) {
- QQuickTextInput::mousePressEvent(d->pressHandler.delayedMousePressEvent);
- d->pressHandler.clearDelayedMouseEvent();
- }
- if (event->buttons() != Qt::RightButton)
- QQuickTextInput::mousePressEvent(event);
- }
-}
-
-void QQuickTextField::mouseMoveEvent(QMouseEvent *event)
-{
- Q_D(QQuickTextField);
- d->pressHandler.mouseMoveEvent(event);
- if (d->pressHandler.isActive()) {
- if (d->pressHandler.delayedMousePressEvent) {
- QQuickTextInput::mousePressEvent(d->pressHandler.delayedMousePressEvent);
- d->pressHandler.clearDelayedMouseEvent();
- }
- if (event->buttons() != Qt::RightButton)
- QQuickTextInput::mouseMoveEvent(event);
- }
-}
-
-void QQuickTextField::mouseReleaseEvent(QMouseEvent *event)
-{
- Q_D(QQuickTextField);
- d->pressHandler.mouseReleaseEvent(event);
- if (d->pressHandler.isActive()) {
- if (d->pressHandler.delayedMousePressEvent) {
- QQuickTextInput::mousePressEvent(d->pressHandler.delayedMousePressEvent);
- d->pressHandler.clearDelayedMouseEvent();
- }
- if (event->buttons() != Qt::RightButton)
- QQuickTextInput::mouseReleaseEvent(event);
- }
-}
-
-void QQuickTextField::mouseDoubleClickEvent(QMouseEvent *event)
-{
- Q_D(QQuickTextField);
- if (d->pressHandler.delayedMousePressEvent) {
- QQuickTextInput::mousePressEvent(d->pressHandler.delayedMousePressEvent);
- d->pressHandler.clearDelayedMouseEvent();
- }
- if (event->buttons() != Qt::RightButton)
- QQuickTextInput::mouseDoubleClickEvent(event);
-}
-
-void QQuickTextField::timerEvent(QTimerEvent *event)
-{
- Q_D(QQuickTextField);
- if (event->timerId() == d->pressHandler.timer.timerId())
- d->pressHandler.timerEvent(event);
- else
- QQuickTextInput::timerEvent(event);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktextfield_p.h b/src/quicktemplates2/qquicktextfield_p.h
deleted file mode 100644
index ae2681d1..00000000
--- a/src/quicktemplates2/qquicktextfield_p.h
+++ /dev/null
@@ -1,194 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTEXTFIELD_P_H
-#define QQUICKTEXTFIELD_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtGui/qpalette.h>
-#include <QtQuick/private/qquicktextinput_p.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickText;
-class QQuickTextFieldPrivate;
-class QQuickMouseEvent;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTextField : public QQuickTextInput
-{
- Q_OBJECT
- Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged) // override
- Q_PROPERTY(qreal implicitWidth READ implicitWidth WRITE setImplicitWidth NOTIFY implicitWidthChanged3 FINAL)
- Q_PROPERTY(qreal implicitHeight READ implicitHeight WRITE setImplicitHeight NOTIFY implicitHeightChanged3 FINAL)
- Q_PROPERTY(QQuickItem *background READ background WRITE setBackground NOTIFY backgroundChanged FINAL)
- Q_PROPERTY(QString placeholderText READ placeholderText WRITE setPlaceholderText NOTIFY placeholderTextChanged FINAL)
- Q_PROPERTY(Qt::FocusReason focusReason READ focusReason WRITE setFocusReason NOTIFY focusReasonChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(bool hovered READ isHovered NOTIFY hoveredChanged FINAL REVISION 1)
- Q_PROPERTY(bool hoverEnabled READ isHoverEnabled WRITE setHoverEnabled RESET resetHoverEnabled NOTIFY hoverEnabledChanged FINAL REVISION 1)
- // 2.3 (Qt 5.10)
- Q_PROPERTY(QPalette palette READ palette WRITE setPalette RESET resetPalette NOTIFY paletteChanged FINAL REVISION 3)
- // 2.5 (Qt 5.12)
- Q_PROPERTY(QColor placeholderTextColor READ placeholderTextColor WRITE setPlaceholderTextColor NOTIFY placeholderTextColorChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundWidth READ implicitBackgroundWidth NOTIFY implicitBackgroundWidthChanged FINAL REVISION 5)
- Q_PROPERTY(qreal implicitBackgroundHeight READ implicitBackgroundHeight NOTIFY implicitBackgroundHeightChanged FINAL REVISION 5)
- Q_PROPERTY(qreal topInset READ topInset WRITE setTopInset RESET resetTopInset NOTIFY topInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal leftInset READ leftInset WRITE setLeftInset RESET resetLeftInset NOTIFY leftInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal rightInset READ rightInset WRITE setRightInset RESET resetRightInset NOTIFY rightInsetChanged FINAL REVISION 5)
- Q_PROPERTY(qreal bottomInset READ bottomInset WRITE setBottomInset RESET resetBottomInset NOTIFY bottomInsetChanged FINAL REVISION 5)
- Q_CLASSINFO("DeferredPropertyNames", "background")
-
-public:
- explicit QQuickTextField(QQuickItem *parent = nullptr);
- ~QQuickTextField();
-
- QFont font() const;
- void setFont(const QFont &font);
-
- QQuickItem *background() const;
- void setBackground(QQuickItem *background);
-
- QString placeholderText() const;
- void setPlaceholderText(const QString &text);
-
- Qt::FocusReason focusReason() const;
- void setFocusReason(Qt::FocusReason reason);
-
- // 2.1 (Qt 5.8)
- bool isHovered() const;
- void setHovered(bool hovered);
-
- bool isHoverEnabled() const;
- void setHoverEnabled(bool enabled);
- void resetHoverEnabled();
-
- // 2.3 (Qt 5.10)
- QPalette palette() const;
- void setPalette(const QPalette &palette);
- void resetPalette();
-
- // 2.5 (Qt 5.12)
- QColor placeholderTextColor() const;
- void setPlaceholderTextColor(const QColor &color);
-
- qreal implicitBackgroundWidth() const;
- qreal implicitBackgroundHeight() const;
-
- qreal topInset() const;
- void setTopInset(qreal inset);
- void resetTopInset();
-
- qreal leftInset() const;
- void setLeftInset(qreal inset);
- void resetLeftInset();
-
- qreal rightInset() const;
- void setRightInset(qreal inset);
- void resetRightInset();
-
- qreal bottomInset() const;
- void setBottomInset(qreal inset);
- void resetBottomInset();
-
-Q_SIGNALS:
- void fontChanged();
- void implicitWidthChanged3();
- void implicitHeightChanged3();
- void backgroundChanged();
- void placeholderTextChanged();
- void focusReasonChanged();
- void pressAndHold(QQuickMouseEvent *event);
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void pressed(QQuickMouseEvent *event);
- Q_REVISION(1) void released(QQuickMouseEvent *event);
- Q_REVISION(1) void hoveredChanged();
- Q_REVISION(1) void hoverEnabledChanged();
- // 2.3 (Qt 5.10)
- Q_REVISION(3) void paletteChanged();
- // 2.5 (Qt 5.12)
- Q_REVISION(5) void placeholderTextColorChanged();
- Q_REVISION(5) void implicitBackgroundWidthChanged();
- Q_REVISION(5) void implicitBackgroundHeightChanged();
- Q_REVISION(5) void topInsetChanged();
- Q_REVISION(5) void leftInsetChanged();
- Q_REVISION(5) void rightInsetChanged();
- Q_REVISION(5) void bottomInsetChanged();
-
-protected:
- friend struct QQuickPressHandler;
-
- void classBegin() override;
- void componentComplete() override;
-
- void itemChange(ItemChange change, const ItemChangeData &value) override;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- virtual void insetChange(const QMarginsF &newInset, const QMarginsF &oldInset);
-
- QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) override;
-
- void focusInEvent(QFocusEvent *event) override;
- void focusOutEvent(QFocusEvent *event) override;
-#if QT_CONFIG(quicktemplates2_hover)
- void hoverEnterEvent(QHoverEvent *event) override;
- void hoverLeaveEvent(QHoverEvent *event) override;
-#endif
- void mousePressEvent(QMouseEvent *event) override;
- void mouseMoveEvent(QMouseEvent *event) override;
- void mouseReleaseEvent(QMouseEvent *event) override;
- void mouseDoubleClickEvent(QMouseEvent *event) override;
- void timerEvent(QTimerEvent *event) override;
-
-private:
- Q_DISABLE_COPY(QQuickTextField)
- Q_DECLARE_PRIVATE(QQuickTextField)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickTextField)
-
-#endif // QQUICKTEXTFIELD_P_H
diff --git a/src/quicktemplates2/qquicktextfield_p_p.h b/src/quicktemplates2/qquicktextfield_p_p.h
deleted file mode 100644
index 3389d3dc..00000000
--- a/src/quicktemplates2/qquicktextfield_p_p.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTEXTFIELD_P_P_H
-#define QQUICKTEXTFIELD_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQml/private/qlazilyallocated_p.h>
-#include <QtQuick/private/qquicktextinput_p_p.h>
-#include <QtQuick/private/qquickitemchangelistener_p.h>
-#include <QtQuickTemplates2/private/qquickpresshandler_p_p.h>
-#include <QtQuickTemplates2/private/qquickdeferredpointer_p_p.h>
-
-#include <QtQuickTemplates2/private/qquicktextfield_p.h>
-
-#if QT_CONFIG(accessibility)
-#include <QtGui/qaccessible.h>
-#endif
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTextFieldPrivate : public QQuickTextInputPrivate, public QQuickItemChangeListener
-#if QT_CONFIG(accessibility)
- , public QAccessible::ActivationObserver
-#endif
-{
- Q_DECLARE_PUBLIC(QQuickTextField)
-
-public:
- QQuickTextFieldPrivate();
- ~QQuickTextFieldPrivate();
-
- static QQuickTextFieldPrivate *get(QQuickTextField *item) {
- return static_cast<QQuickTextFieldPrivate *>(QObjectPrivate::get(item)); }
-
- inline QMarginsF getInset() const { return QMarginsF(getLeftInset(), getTopInset(), getRightInset(), getBottomInset()); }
- inline qreal getTopInset() const { return extra.isAllocated() ? extra->topInset : 0; }
- inline qreal getLeftInset() const { return extra.isAllocated() ? extra->leftInset : 0; }
- inline qreal getRightInset() const { return extra.isAllocated() ? extra->rightInset : 0; }
- inline qreal getBottomInset() const { return extra.isAllocated() ? extra->bottomInset : 0; }
-
- void setTopInset(qreal value, bool reset = false);
- void setLeftInset(qreal value, bool reset = false);
- void setRightInset(qreal value, bool reset = false);
- void setBottomInset(qreal value, bool reset = false);
-
- void resizeBackground();
-
- void resolveFont();
- void inheritFont(const QFont &font);
- void updateFont(const QFont &font);
- inline void setFont_helper(const QFont &font) {
- if (sourceFont.resolve() == font.resolve() && sourceFont == font)
- return;
- updateFont(font);
- }
-
- void resolvePalette();
- void inheritPalette(const QPalette &palette);
- void updatePalette(const QPalette &palette);
- inline void setPalette_helper(const QPalette &palette) {
- if (resolvedPalette.resolve() == palette.resolve() && resolvedPalette == palette)
- return;
- updatePalette(palette);
- }
-
-#if QT_CONFIG(quicktemplates2_hover)
- void updateHoverEnabled(bool h, bool e);
-#endif
-
- qreal getImplicitWidth() const override;
- qreal getImplicitHeight() const override;
-
- void implicitWidthChanged() override;
- void implicitHeightChanged() override;
-
- void readOnlyChanged(bool isReadOnly);
- void echoModeChanged(QQuickTextField::EchoMode echoMode);
-
-#if QT_CONFIG(accessibility)
- void accessibilityActiveChanged(bool active) override;
- QAccessible::Role accessibleRole() const override;
-#endif
-
- void cancelBackground();
- void executeBackground(bool complete = false);
-
- void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff) override;
- void itemImplicitWidthChanged(QQuickItem *item) override;
- void itemImplicitHeightChanged(QQuickItem *item) override;
- void itemDestroyed(QQuickItem *item) override;
-
-#if QT_CONFIG(quicktemplates2_hover)
- bool hovered = false;
- bool explicitHoverEnabled = false;
-#endif
-
- struct ExtraData {
- bool hasTopInset = false;
- bool hasLeftInset = false;
- bool hasRightInset = false;
- bool hasBottomInset = false;
- bool hasBackgroundWidth = false;
- bool hasBackgroundHeight = false;
- qreal topInset = 0;
- qreal leftInset = 0;
- qreal rightInset = 0;
- qreal bottomInset = 0;
- QFont requestedFont;
- QPalette requestedPalette;
- };
- QLazilyAllocated<ExtraData> extra;
-
- bool resizingBackground = false;
- QPalette resolvedPalette;
- QQuickDeferredPointer<QQuickItem> background;
- QString placeholder;
- QColor placeholderColor;
- Qt::FocusReason focusReason = Qt::OtherFocusReason;
- QQuickPressHandler pressHandler;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKTEXTFIELD_P_P_H
diff --git a/src/quicktemplates2/qquicktheme.cpp b/src/quicktemplates2/qquicktheme.cpp
deleted file mode 100644
index af49ffc9..00000000
--- a/src/quicktemplates2/qquicktheme.cpp
+++ /dev/null
@@ -1,178 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktheme_p.h"
-#include "qquicktheme_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/private/qguiapplication_p.h>
-
-QT_BEGIN_NAMESPACE
-
-QScopedPointer<QQuickTheme> QQuickThemePrivate::instance;
-
-static void cleanup_instance()
-{
- QQuickThemePrivate::instance.reset();
-}
-
-static void install_instance_cleanuper()
-{
- qAddPostRoutine(cleanup_instance);
-}
-
-Q_COREAPP_STARTUP_FUNCTION(install_instance_cleanuper)
-
-static QPlatformTheme::Font platformFont(QQuickTheme::Scope scope)
-{
- switch (scope) {
- case QQuickTheme::Button: return QPlatformTheme::PushButtonFont;
- case QQuickTheme::CheckBox: return QPlatformTheme::CheckBoxFont;
- case QQuickTheme::ComboBox: return QPlatformTheme::ComboMenuItemFont;
- case QQuickTheme::GroupBox: return QPlatformTheme::GroupBoxTitleFont;
- case QQuickTheme::ItemView: return QPlatformTheme::ItemViewFont;
- case QQuickTheme::Label: return QPlatformTheme::LabelFont;
- case QQuickTheme::ListView: return QPlatformTheme::ListViewFont;
- case QQuickTheme::Menu: return QPlatformTheme::MenuFont;
- case QQuickTheme::MenuBar: return QPlatformTheme::MenuBarFont;
- case QQuickTheme::RadioButton: return QPlatformTheme::RadioButtonFont;
- case QQuickTheme::SpinBox: return QPlatformTheme::EditorFont;
- case QQuickTheme::Switch: return QPlatformTheme::CheckBoxFont;
- case QQuickTheme::TabBar: return QPlatformTheme::TabButtonFont;
- case QQuickTheme::TextArea: return QPlatformTheme::EditorFont;
- case QQuickTheme::TextField: return QPlatformTheme::EditorFont;
- case QQuickTheme::ToolBar: return QPlatformTheme::ToolButtonFont;
- case QQuickTheme::ToolTip: return QPlatformTheme::TipLabelFont;
- case QQuickTheme::Tumbler: return QPlatformTheme::ItemViewFont;
- default: return QPlatformTheme::SystemFont;
- }
-}
-
-static QPlatformTheme::Palette platformPalette(QQuickTheme::Scope scope)
-{
- switch (scope) {
- case QQuickTheme::Button: return QPlatformTheme::ButtonPalette;
- case QQuickTheme::CheckBox: return QPlatformTheme::CheckBoxPalette;
- case QQuickTheme::ComboBox: return QPlatformTheme::ComboBoxPalette;
- case QQuickTheme::GroupBox: return QPlatformTheme::GroupBoxPalette;
- case QQuickTheme::ItemView: return QPlatformTheme::ItemViewPalette;
- case QQuickTheme::Label: return QPlatformTheme::LabelPalette;
- case QQuickTheme::ListView: return QPlatformTheme::ItemViewPalette;
- case QQuickTheme::Menu: return QPlatformTheme::MenuPalette;
- case QQuickTheme::MenuBar: return QPlatformTheme::MenuBarPalette;
- case QQuickTheme::RadioButton: return QPlatformTheme::RadioButtonPalette;
- case QQuickTheme::SpinBox: return QPlatformTheme::TextLineEditPalette;
- case QQuickTheme::Switch: return QPlatformTheme::CheckBoxPalette;
- case QQuickTheme::TabBar: return QPlatformTheme::TabBarPalette;
- case QQuickTheme::TextArea: return QPlatformTheme::TextEditPalette;
- case QQuickTheme::TextField: return QPlatformTheme::TextLineEditPalette;
- case QQuickTheme::ToolBar: return QPlatformTheme::ToolButtonPalette;
- case QQuickTheme::ToolTip: return QPlatformTheme::ToolTipPalette;
- case QQuickTheme::Tumbler: return QPlatformTheme::ItemViewPalette;
- default: return QPlatformTheme::SystemPalette;
- }
-}
-
-QQuickTheme::QQuickTheme()
- : d_ptr(new QQuickThemePrivate)
-{
- d_ptr->q_ptr = this;
-}
-
-QQuickTheme::~QQuickTheme()
-{
-}
-
-QQuickTheme *QQuickTheme::instance()
-{
- return QQuickThemePrivate::instance.data();
-}
-
-QFont QQuickTheme::font(Scope scope)
-{
- const QFont *font = nullptr;
- if (QQuickTheme *theme = instance())
- font = QQuickThemePrivate::get(theme)->fonts[scope].data();
- else if (QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme())
- font = theme->font(platformFont(scope));
-
- if (font) {
- QFont f = *font;
- if (scope == System)
- f.resolve(0);
- return f;
- }
-
- if (scope != System)
- return QQuickTheme::font(System);
-
- return QFont();
-}
-
-QPalette QQuickTheme::palette(Scope scope)
-{
- const QPalette *palette = nullptr;
- if (QQuickTheme *theme = instance())
- palette = QQuickThemePrivate::get(theme)->palettes[scope].data();
- else if (QPlatformTheme *theme = QGuiApplicationPrivate::platformTheme())
- palette = theme->palette(platformPalette(scope));
-
- if (palette) {
- QPalette f = *palette;
- if (scope == System)
- f.resolve(0);
- return f;
- }
-
- if (scope != System)
- return QQuickTheme::palette(System);
-
- return QPalette();
-}
-
-void QQuickTheme::setFont(Scope scope, const QFont &font)
-{
- Q_D(QQuickTheme);
- d->fonts[scope] = QSharedPointer<QFont>::create(d->defaultFont ? d->defaultFont->resolve(font) : font);
-}
-
-void QQuickTheme::setPalette(Scope scope, const QPalette &palette)
-{
- Q_D(QQuickTheme);
- d->palettes[scope] = QSharedPointer<QPalette>::create(d->defaultPalette ? d->defaultPalette->resolve(palette) : palette);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktheme_p.h b/src/quicktemplates2/qquicktheme_p.h
deleted file mode 100644
index d51cc5b6..00000000
--- a/src/quicktemplates2/qquicktheme_p.h
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTHEME_P_H
-#define QQUICKTHEME_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qtquicktemplates2global_p.h>
-#include <QtCore/qscopedpointer.h>
-#include <QtGui/qfont.h>
-#include <QtGui/qpalette.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickThemePrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTheme
-{
-public:
- QQuickTheme();
- ~QQuickTheme();
-
- static QQuickTheme *instance();
-
- enum Scope {
- System,
- Button,
- CheckBox,
- ComboBox,
- GroupBox,
- ItemView,
- Label,
- ListView,
- Menu,
- MenuBar,
- RadioButton,
- SpinBox,
- Switch,
- TabBar,
- TextArea,
- TextField,
- ToolBar,
- ToolTip,
- Tumbler
- };
-
- static QFont font(Scope scope);
- static QPalette palette(Scope scope);
-
- void setFont(Scope scope, const QFont &font);
- void setPalette(Scope scope, const QPalette &palette);
-
-private:
- Q_DISABLE_COPY(QQuickTheme)
- Q_DECLARE_PRIVATE(QQuickTheme)
- QScopedPointer<QQuickThemePrivate> d_ptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKTHEME_P_H
diff --git a/src/quicktemplates2/qquicktheme_p_p.h b/src/quicktemplates2/qquicktheme_p_p.h
deleted file mode 100644
index c7421677..00000000
--- a/src/quicktemplates2/qquicktheme_p_p.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTHEME_P_P_H
-#define QQUICKTHEME_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquicktheme_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickThemePrivate
-{
- Q_DECLARE_PUBLIC(QQuickTheme)
-
-public:
- static QQuickThemePrivate *get(QQuickTheme *theme)
- {
- return theme->d_func();
- }
-
- static QScopedPointer<QQuickTheme> instance;
-
- static const int NScopes = QQuickTheme::Tumbler + 1;
-
- QScopedPointer<const QFont> defaultFont;
- QScopedPointer<const QPalette> defaultPalette;
- QSharedPointer<QFont> fonts[NScopes];
- QSharedPointer<QPalette> palettes[NScopes];
- QQuickTheme *q_ptr = nullptr;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKTHEME_P_P_H
diff --git a/src/quicktemplates2/qquicktoolbar.cpp b/src/quicktemplates2/qquicktoolbar.cpp
deleted file mode 100644
index 0abf0364..00000000
--- a/src/quicktemplates2/qquicktoolbar.cpp
+++ /dev/null
@@ -1,159 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktoolbar_p.h"
-#include "qquickpane_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ToolBar
- \inherits Pane
- \instantiates QQuickToolBar
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-containers
- \brief Container for context-sensitive controls.
-
- ToolBar is a container of application-wide and context sensitive
- actions and controls, such as navigation buttons and search fields.
- ToolBar is commonly used as a \l {ApplicationWindow::header}{header}
- or a \l {ApplicationWindow::footer}{footer} of an \l ApplicationWindow.
-
- ToolBar does not provide a layout of its own, but requires you to
- position its contents, for instance by creating a \l RowLayout. If only
- a single item is used within the ToolBar, it will resize to fit the
- implicit size of its contained item. This makes it particularly suitable
- for use together with layouts.
-
- \image qtquickcontrols2-toolbar.png
-
- \code
- ApplicationWindow {
- visible:true
-
- header: ToolBar {
- RowLayout {
- anchors.fill: parent
- ToolButton {
- text: qsTr("‹")
- onClicked: stack.pop()
- }
- Label {
- text: "Title"
- elide: Label.ElideRight
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- Layout.fillWidth: true
- }
- ToolButton {
- text: qsTr("⋮")
- onClicked: menu.open()
- }
- }
- }
-
- StackView {
- id: stack
- anchors.fill: parent
- }
- }
- \endcode
-
- \sa ApplicationWindow, ToolButton, {Customizing ToolBar}, {Container Controls}
-*/
-
-class QQuickToolBarPrivate : public QQuickPanePrivate
-{
-public:
- QQuickToolBar::Position position = QQuickToolBar::Header;
-};
-
-QQuickToolBar::QQuickToolBar(QQuickItem *parent)
- : QQuickPane(*(new QQuickToolBarPrivate), parent)
-{
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::ToolBar::position
-
- This property holds the position of the toolbar.
-
- \note If the toolbar is assigned as a header or footer of \l ApplicationWindow
- or \l Page, the appropriate position is set automatically.
-
- Possible values:
- \value ToolBar.Header The toolbar is at the top, as a window or page header.
- \value ToolBar.Footer The toolbar is at the bottom, as a window or page footer.
-
- The default value is style-specific.
-
- \sa ApplicationWindow::header, ApplicationWindow::footer, Page::header, Page::footer
-*/
-QQuickToolBar::Position QQuickToolBar::position() const
-{
- Q_D(const QQuickToolBar);
- return d->position;
-}
-
-void QQuickToolBar::setPosition(Position position)
-{
- Q_D(QQuickToolBar);
- if (d->position == position)
- return;
-
- d->position = position;
- emit positionChanged();
-}
-
-QFont QQuickToolBar::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ToolBar);
-}
-
-QPalette QQuickToolBar::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ToolBar);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickToolBar::accessibleRole() const
-{
- return QAccessible::ToolBar;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktoolbar_p.h b/src/quicktemplates2/qquicktoolbar_p.h
deleted file mode 100644
index ef2ceb7e..00000000
--- a/src/quicktemplates2/qquicktoolbar_p.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTOOLBAR_P_H
-#define QQUICKTOOLBAR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpane_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickToolBarPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickToolBar : public QQuickPane
-{
- Q_OBJECT
- Q_PROPERTY(Position position READ position WRITE setPosition NOTIFY positionChanged FINAL)
-
-public:
- explicit QQuickToolBar(QQuickItem *parent = nullptr);
-
- enum Position {
- Header,
- Footer
- };
- Q_ENUM(Position)
-
- Position position() const;
- void setPosition(Position position);
-
-Q_SIGNALS:
- void positionChanged();
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickToolBar)
- Q_DECLARE_PRIVATE(QQuickToolBar)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickToolBar)
-
-#endif // QQUICKTOOLBAR_P_H
diff --git a/src/quicktemplates2/qquicktoolbutton.cpp b/src/quicktemplates2/qquicktoolbutton.cpp
deleted file mode 100644
index b613e69b..00000000
--- a/src/quicktemplates2/qquicktoolbutton.cpp
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktoolbutton_p.h"
-#include "qquickcontrol_p_p.h"
-
-#include <QtGui/qpa/qplatformtheme.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ToolButton
- \inherits Button
- \instantiates QQuickToolButton
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-buttons
- \brief Button with a look suitable for a ToolBar.
-
- ToolButton is functionally similar to \l Button, but provides a look that
- is more suitable within a \l ToolBar.
-
- \image qtquickcontrols2-toolbar.png
-
- \snippet qtquickcontrols2-toolbar.qml 1
-
- ToolButton inherits its API from AbstractButton. For instance, you can set
- \l {AbstractButton::text}{text}, display an \l {Icons in Qt Quick Controls}{icon},
- and react to \l {AbstractButton::clicked}{clicks} using the AbstractButton API.
-
- \sa ToolBar, {Customizing ToolButton}, {Button Controls}
-*/
-
-QQuickToolButton::QQuickToolButton(QQuickItem *parent)
- : QQuickButton(parent)
-{
-}
-
-QFont QQuickToolButton::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ToolBar);
-}
-
-QPalette QQuickToolButton::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ToolBar);
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktoolbutton_p.h b/src/quicktemplates2/qquicktoolbutton_p.h
deleted file mode 100644
index 0e376f7b..00000000
--- a/src/quicktemplates2/qquicktoolbutton_p.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTOOLBUTTON_P_H
-#define QQUICKTOOLBUTTON_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickbutton_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickToolButton : public QQuickButton
-{
- Q_OBJECT
-
-public:
- explicit QQuickToolButton(QQuickItem *parent = nullptr);
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickToolButton)
-
-#endif // QQUICKTOOLBUTTON_P_H
diff --git a/src/quicktemplates2/qquicktoolseparator.cpp b/src/quicktemplates2/qquicktoolseparator.cpp
deleted file mode 100644
index 625e85e9..00000000
--- a/src/quicktemplates2/qquicktoolseparator.cpp
+++ /dev/null
@@ -1,151 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktoolseparator_p.h"
-
-#include "qquickcontrol_p_p.h"
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ToolSeparator
- \inherits Control
- \instantiates QQuickToolSeparator
- \inqmlmodule QtQuick.Controls
- \since 5.8
- \ingroup qtquickcontrols2-separators
- \brief Separates a group of items in a toolbar from adjacent items.
-
- ToolSeparator is used to visually distinguish between groups of items in a
- toolbar by separating them with a line. It can be used in horizontal or
- vertical toolbars by setting the \l orientation property to \c Qt.Vertical
- or \c Qt.Horizontal, respectively.
-
- \image qtquickcontrols2-toolseparator.png
-
- \snippet qtquickcontrols2-toolseparator.qml 1
-
- \sa {Customizing ToolSeparator}, {Separator Controls}
-*/
-
-class QQuickToolSeparatorPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickToolSeparator)
-
-public:
- Qt::Orientation orientation = Qt::Vertical;
-};
-
-QQuickToolSeparator::QQuickToolSeparator(QQuickItem *parent)
- : QQuickControl(*(new QQuickToolSeparatorPrivate), parent)
-{
-}
-
-/*!
- \qmlproperty enumeration QtQuick.Controls::ToolSeparator::orientation
-
- This property holds the orientation of the tool separator.
-
- Possible values:
- \value Qt.Horizontal A horizontal separator is used in a vertical toolbar.
- \value Qt.Vertical A vertical separator is used in a horizontal toolbar. (default)
-*/
-Qt::Orientation QQuickToolSeparator::orientation() const
-{
- Q_D(const QQuickToolSeparator);
- return d->orientation;
-}
-
-void QQuickToolSeparator::setOrientation(Qt::Orientation orientation)
-{
- Q_D(QQuickToolSeparator);
- if (d->orientation == orientation)
- return;
-
- d->orientation = orientation;
- emit orientationChanged();
-}
-
-/*!
- \readonly
- \qmlproperty bool QtQuick.Controls::ToolSeparator::horizontal
-
- This property holds whether \l orientation is equal to \c Qt.Horizontal.
-
- It is useful for \l {Customizing ToolSeparator}{customizing ToolSeparator}.
-
- \sa orientation, vertical
-*/
-bool QQuickToolSeparator::isHorizontal() const
-{
- Q_D(const QQuickToolSeparator);
- return d->orientation == Qt::Horizontal;
-}
-
-/*!
- \readonly
- \qmlproperty bool QtQuick.Controls::ToolSeparator::vertical
-
- This property holds whether \l orientation is equal to \c Qt.Vertical.
-
- It is useful for \l {Customizing ToolSeparator}{customizing ToolSeparator}.
-
- \sa orientation, horizontal
-*/
-bool QQuickToolSeparator::isVertical() const
-{
- Q_D(const QQuickToolSeparator);
- return d->orientation == Qt::Vertical;
-}
-
-QFont QQuickToolSeparator::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ToolBar);
-}
-
-QPalette QQuickToolSeparator::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ToolBar);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickToolSeparator::accessibleRole() const
-{
- return QAccessible::Separator;
-}
-#endif
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktoolseparator_p.h b/src/quicktemplates2/qquicktoolseparator_p.h
deleted file mode 100644
index c3c14b82..00000000
--- a/src/quicktemplates2/qquicktoolseparator_p.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTOOLSEPARATOR_P_H
-#define QQUICKTOOLSEPARATOR_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickToolSeparatorPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickToolSeparator : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation NOTIFY orientationChanged FINAL)
- Q_PROPERTY(bool horizontal READ isHorizontal NOTIFY orientationChanged FINAL)
- Q_PROPERTY(bool vertical READ isVertical NOTIFY orientationChanged FINAL)
-
-public:
- explicit QQuickToolSeparator(QQuickItem *parent = nullptr);
-
- Qt::Orientation orientation() const;
- void setOrientation(Qt::Orientation orientation);
-
- bool isHorizontal() const;
- bool isVertical() const;
-
-Q_SIGNALS:
- void orientationChanged();
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickToolSeparator)
- Q_DECLARE_PRIVATE(QQuickToolSeparator)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickToolSeparator)
-
-#endif // QQUICKTOOLSEPARATOR_P_H
diff --git a/src/quicktemplates2/qquicktooltip.cpp b/src/quicktemplates2/qquicktooltip.cpp
deleted file mode 100644
index 0a36e0c7..00000000
--- a/src/quicktemplates2/qquicktooltip.cpp
+++ /dev/null
@@ -1,563 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktooltip_p.h"
-#include "qquickpopup_p_p.h"
-#include "qquickpopupitem_p_p.h"
-#include "qquickcontrol_p_p.h"
-
-#include <QtCore/qbasictimer.h>
-#include <QtQml/qqmlinfo.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcontext.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQuick/qquickwindow.h>
-
-QT_BEGIN_NAMESPACE
-
-/*!
- \qmltype ToolTip
- \inherits Popup
- \instantiates QQuickToolTip
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-popups
- \brief Provides tool tips for any control.
-
- A tool tip is a short piece of text that informs the user of a control's
- function. It is typically placed above or below the parent control. The
- tip text can be any \l{Rich Text Processing}{rich text} formatted string.
-
- \image qtquickcontrols2-tooltip.png
-
- \section2 Attached Tool Tips
-
- The most straight-forward way to setup tool tips for controls is to
- specify \l text and \l {visible}{visibility} via attached properties.
- The following example illustrates this approach:
-
- \snippet qtquickcontrols2-tooltip.qml 1
-
- Under normal circumstances, there is only one tool tip visible at a time.
- In order to save resources, all items that use the ToolTip attached property
- share the same visual tool tip label instance. Even though the visuals are
- shared, \c text, \c timeout and \c delay are stored individually for each item
- that uses the respective attached property. However, multiple items cannot
- make the shared tool tip visible at the same time. The shared tool tip is only
- shown for the last item that made it visible. The position of the shared tool
- tip is determined by the framework.
-
- \section2 Delay and Timeout
-
- Tool tips are typically transient in a sense that they are shown as a
- result of a certain external event or user interaction, and they usually
- hide after a certain timeout. It is possible to control the delay when
- a tool tip is shown, and the timeout when it is hidden. This makes it
- possible to implement varying strategies for showing and hiding tool tips.
-
- For example, on touch screens, it is a common pattern to show a tool tip
- as a result of pressing and holding down a button. The following example
- demonstrates how to delay showing a tool tip until the press-and-hold
- interval is reached. In this example, the tool tip hides as soon as the
- button is released.
-
- \snippet qtquickcontrols2-tooltip-pressandhold.qml 1
-
- With pointer devices, however, it might be desired to show a tool tip as
- a result of hovering a button for a while. The following example presents
- how to show a tool tip after hovering a button for a second, and hide it
- after a timeout of five seconds.
-
- \snippet qtquickcontrols2-tooltip-hover.qml 1
-
- \section2 Custom Tool Tips
-
- Should one need more fine-grained control over the tool tip position, or
- multiple simultaneous tool tip instances are needed, it is also possible
- to create local tool tip instances. This way, it is possible to
- \l {Customizing ToolTip}{customize} the tool tip, and the whole \l Popup
- API is available. The following example presents a tool tip that presents
- the value of a slider when the handle is dragged.
-
- \image qtquickcontrols2-tooltip-slider.png
-
- \snippet qtquickcontrols2-tooltip-slider.qml 1
-
- \sa {Customizing ToolTip}, {Popup Controls}
-*/
-
-class QQuickToolTipPrivate : public QQuickPopupPrivate
-{
- Q_DECLARE_PUBLIC(QQuickToolTip)
-
-public:
- void startDelay();
- void stopDelay();
-
- void startTimeout();
- void stopTimeout();
-
- int delay = 0;
- int timeout = -1;
- QString text;
- QBasicTimer delayTimer;
- QBasicTimer timeoutTimer;
-};
-
-void QQuickToolTipPrivate::startDelay()
-{
- Q_Q(QQuickToolTip);
- if (delay > 0)
- delayTimer.start(delay, q);
-}
-
-void QQuickToolTipPrivate::stopDelay()
-{
- delayTimer.stop();
-}
-
-void QQuickToolTipPrivate::startTimeout()
-{
- Q_Q(QQuickToolTip);
- if (timeout > 0)
- timeoutTimer.start(timeout, q);
-}
-
-void QQuickToolTipPrivate::stopTimeout()
-{
- timeoutTimer.stop();
-}
-
-QQuickToolTip::QQuickToolTip(QQuickItem *parent)
- : QQuickPopup(*(new QQuickToolTipPrivate), parent)
-{
- Q_D(QQuickToolTip);
- d->allowVerticalFlip = true;
- d->allowHorizontalFlip = true;
- d->popupItem->setHoverEnabled(false); // QTBUG-63644
-}
-
-/*!
- \qmlproperty string QtQuick.Controls::ToolTip::text
-
- This property holds the text shown on the tool tip.
-*/
-QString QQuickToolTip::text() const
-{
- Q_D(const QQuickToolTip);
- return d->text;
-}
-
-void QQuickToolTip::setText(const QString &text)
-{
- Q_D(QQuickToolTip);
- if (d->text == text)
- return;
-
- d->text = text;
- setAccessibleName(text);
- emit textChanged();
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::ToolTip::delay
-
- This property holds the delay (milliseconds) after which the tool tip is
- shown. A tooltip with a negative delay is shown immediately. The default
- value is \c 0.
-
- \sa {Delay and Timeout}
-*/
-int QQuickToolTip::delay() const
-{
- Q_D(const QQuickToolTip);
- return d->delay;
-}
-
-void QQuickToolTip::setDelay(int delay)
-{
- Q_D(QQuickToolTip);
- if (d->delay == delay)
- return;
-
- d->delay = delay;
- emit delayChanged();
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::ToolTip::timeout
-
- This property holds the timeout (milliseconds) after which the tool tip is
- hidden. A tooltip with a negative timeout does not hide automatically. The
- default value is \c -1.
-
- \sa {Delay and Timeout}
-*/
-int QQuickToolTip::timeout() const
-{
- Q_D(const QQuickToolTip);
- return d->timeout;
-}
-
-void QQuickToolTip::setTimeout(int timeout)
-{
- Q_D(QQuickToolTip);
- if (d->timeout == timeout)
- return;
-
- d->timeout = timeout;
-
- if (timeout <= 0)
- d->stopTimeout();
- else if (isVisible())
- d->startTimeout();
-
- emit timeoutChanged();
-}
-
-void QQuickToolTip::setVisible(bool visible)
-{
- Q_D(QQuickToolTip);
- if (visible) {
- if (!d->visible && d->delay > 0) {
- d->startDelay();
- return;
- }
- } else {
- d->stopDelay();
- }
- QQuickPopup::setVisible(visible);
-}
-
-QQuickToolTipAttached *QQuickToolTip::qmlAttachedProperties(QObject *object)
-{
- QQuickItem *item = qobject_cast<QQuickItem *>(object);
- if (!item)
- qmlWarning(object) << "ToolTip must be attached to an Item";
-
- return new QQuickToolTipAttached(object);
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlmethod void QtQuick.Controls::ToolTip::show(string text, int timeout = -1)
-
- This method shows the tooltip with \a text and \a timeout (milliseconds).
-*/
-void QQuickToolTip::show(const QString &text, int ms)
-{
- if (ms >= 0)
- setTimeout(ms);
- setText(text);
- open();
-}
-
-/*!
- \since QtQuick.Controls 2.5 (Qt 5.12)
- \qmlmethod void QtQuick.Controls::ToolTip::hide()
-
- This method hides the tooltip.
-*/
-void QQuickToolTip::hide()
-{
- close();
-}
-
-QFont QQuickToolTip::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::ToolTip);
-}
-
-QPalette QQuickToolTip::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::ToolTip);
-}
-
-void QQuickToolTip::itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data)
-{
- Q_D(QQuickToolTip);
- QQuickPopup::itemChange(change, data);
- if (change == QQuickItem::ItemVisibleHasChanged) {
- if (data.boolValue)
- d->startTimeout();
- else
- d->stopTimeout();
-
- QQuickToolTipAttached *attached = qobject_cast<QQuickToolTipAttached *>(qmlAttachedPropertiesObject<QQuickToolTip>(d->parentItem, false));
- if (attached)
- emit attached->visibleChanged();
- }
-}
-
-void QQuickToolTip::timerEvent(QTimerEvent *event)
-{
- Q_D(QQuickToolTip);
- if (event->timerId() == d->timeoutTimer.timerId()) {
- d->stopTimeout();
- QQuickPopup::setVisible(false);
- return;
- }
- if (event->timerId() == d->delayTimer.timerId()) {
- d->stopDelay();
- QQuickPopup::setVisible(true);
- return;
- }
- QQuickPopup::timerEvent(event);
-}
-
-#if QT_CONFIG(accessibility)
-QAccessible::Role QQuickToolTip::accessibleRole() const
-{
- return QAccessible::ToolTip;
-}
-
-void QQuickToolTip::accessibilityActiveChanged(bool active)
-{
- Q_D(QQuickToolTip);
- QQuickPopup::accessibilityActiveChanged(active);
-
- if (active)
- setAccessibleName(d->text);
-}
-#endif
-
-class QQuickToolTipAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickToolTipAttached)
-
-public:
- QQuickToolTip *instance(bool create) const;
-
- int delay = 0;
- int timeout = -1;
- QString text;
-};
-
-QQuickToolTip *QQuickToolTipAttachedPrivate::instance(bool create) const
-{
- QQmlEngine *engine = qmlEngine(parent);
- if (!engine)
- return nullptr;
-
- static const char *name = "_q_QQuickToolTip";
-
- QQuickToolTip *tip = engine->property(name).value<QQuickToolTip *>();
- if (!tip && create) {
- // TODO: a cleaner way to create the instance? QQml(Meta)Type?
- QQmlComponent component(engine);
- component.setData("import QtQuick.Controls 2.4; ToolTip { }", QUrl());
-
- QObject *object = component.create();
- if (object)
- object->setParent(engine);
-
- tip = qobject_cast<QQuickToolTip *>(object);
- if (!tip)
- delete object;
- else
- engine->setProperty(name, QVariant::fromValue(object));
- }
- return tip;
-}
-
-QQuickToolTipAttached::QQuickToolTipAttached(QObject *parent)
- : QObject(*(new QQuickToolTipAttachedPrivate), parent)
-{
-}
-
-/*!
- \qmlattachedproperty string QtQuick.Controls::ToolTip::text
-
- This attached property holds the text of the shared tool tip.
- The property can be attached to any item.
-
- \sa {Attached Tool Tips}
-*/
-QString QQuickToolTipAttached::text() const
-{
- Q_D(const QQuickToolTipAttached);
- return d->text;
-}
-
-void QQuickToolTipAttached::setText(const QString &text)
-{
- Q_D(QQuickToolTipAttached);
- if (d->text == text)
- return;
-
- d->text = text;
- emit textChanged();
-
- if (isVisible())
- d->instance(true)->setText(text);
-}
-
-/*!
- \qmlattachedproperty int QtQuick.Controls::ToolTip::delay
-
- This attached property holds the delay (milliseconds) of the shared tool tip.
- The property can be attached to any item.
-
- \sa {Attached Tool Tips}, {Delay and Timeout}
-*/
-int QQuickToolTipAttached::delay() const
-{
- Q_D(const QQuickToolTipAttached);
- return d->delay;
-}
-
-void QQuickToolTipAttached::setDelay(int delay)
-{
- Q_D(QQuickToolTipAttached);
- if (d->delay == delay)
- return;
-
- d->delay = delay;
- emit delayChanged();
-
- if (isVisible())
- d->instance(true)->setDelay(delay);
-}
-
-/*!
- \qmlattachedproperty int QtQuick.Controls::ToolTip::timeout
-
- This attached property holds the timeout (milliseconds) of the shared tool tip.
- The property can be attached to any item.
-
- \sa {Attached Tool Tips}, {Delay and Timeout}
-*/
-int QQuickToolTipAttached::timeout() const
-{
- Q_D(const QQuickToolTipAttached);
- return d->timeout;
-}
-
-void QQuickToolTipAttached::setTimeout(int timeout)
-{
- Q_D(QQuickToolTipAttached);
- if (d->timeout == timeout)
- return;
-
- d->timeout = timeout;
- emit timeoutChanged();
-
- if (isVisible())
- d->instance(true)->setTimeout(timeout);
-}
-
-/*!
- \qmlattachedproperty bool QtQuick.Controls::ToolTip::visible
-
- This attached property holds whether the shared tool tip is visible.
- The property can be attached to any item.
-
- \sa {Attached Tool Tips}
-*/
-bool QQuickToolTipAttached::isVisible() const
-{
- Q_D(const QQuickToolTipAttached);
- QQuickToolTip *tip = d->instance(false);
- if (!tip)
- return false;
-
- return tip->isVisible() && tip->parentItem() == parent();
-}
-
-void QQuickToolTipAttached::setVisible(bool visible)
-{
- Q_D(QQuickToolTipAttached);
- if (visible)
- show(d->text);
- else
- hide();
-}
-
-/*!
- \qmlattachedproperty ToolTip QtQuick.Controls::ToolTip::toolTip
-
- This attached property holds the shared tool tip instance. The property
- can be attached to any item.
-
- \sa {Attached Tool Tips}
-*/
-QQuickToolTip *QQuickToolTipAttached::toolTip() const
-{
- Q_D(const QQuickToolTipAttached);
- return d->instance(true);
-}
-
-/*!
- \qmlattachedmethod void QtQuick.Controls::ToolTip::show(string text, int timeout = -1)
-
- This attached method shows the shared tooltip with \a text and \a timeout (milliseconds).
- The method can be attached to any item.
-
- \sa {Attached Tool Tips}
-*/
-void QQuickToolTipAttached::show(const QString &text, int ms)
-{
- Q_D(QQuickToolTipAttached);
- QQuickToolTip *tip = d->instance(true);
- if (!tip)
- return;
-
- tip->resetWidth();
- tip->resetHeight();
- tip->setParentItem(qobject_cast<QQuickItem *>(parent()));
- tip->setDelay(d->delay);
- tip->setTimeout(ms >= 0 ? ms : d->timeout);
- tip->show(text);
-}
-
-/*!
- \qmlattachedmethod void QtQuick.Controls::ToolTip::hide()
-
- This attached method hides the shared tooltip. The method can be attached to any item.
-
- \sa {Attached Tool Tips}
-*/
-void QQuickToolTipAttached::hide()
-{
- Q_D(QQuickToolTipAttached);
- QQuickToolTip *tip = d->instance(false);
- if (!tip)
- return;
-
- tip->close();
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquicktooltip_p.h b/src/quicktemplates2/qquicktooltip_p.h
deleted file mode 100644
index 432bdd8e..00000000
--- a/src/quicktemplates2/qquicktooltip_p.h
+++ /dev/null
@@ -1,154 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTOOLTIP_P_H
-#define QQUICKTOOLTIP_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickToolTipPrivate;
-class QQuickToolTipAttached;
-class QQuickToolTipAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickToolTip : public QQuickPopup
-{
- Q_OBJECT
- Q_PROPERTY(int delay READ delay WRITE setDelay NOTIFY delayChanged FINAL)
- Q_PROPERTY(int timeout READ timeout WRITE setTimeout NOTIFY timeoutChanged FINAL)
- Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
-
-public:
- explicit QQuickToolTip(QQuickItem *parent = nullptr);
-
- QString text() const;
- void setText(const QString &text);
-
- int delay() const;
- void setDelay(int delay);
-
- int timeout() const;
- void setTimeout(int timeout);
-
- void setVisible(bool visible) override;
-
- static QQuickToolTipAttached *qmlAttachedProperties(QObject *object);
-
-Q_SIGNALS:
- void textChanged();
- void delayChanged();
- void timeoutChanged();
-
-public Q_SLOTS:
- Q_REVISION(5) void show(const QString &text, int ms = -1);
- Q_REVISION(5) void hide();
-
-protected:
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
- void itemChange(QQuickItem::ItemChange change, const QQuickItem::ItemChangeData &data) override;
- void timerEvent(QTimerEvent *event) override;
-
-#if QT_CONFIG(accessibility)
- QAccessible::Role accessibleRole() const override;
- void accessibilityActiveChanged(bool active) override;
-#endif
-
-private:
- Q_DISABLE_COPY(QQuickToolTip)
- Q_DECLARE_PRIVATE(QQuickToolTip)
-};
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickToolTipAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged FINAL)
- Q_PROPERTY(int delay READ delay WRITE setDelay NOTIFY delayChanged FINAL)
- Q_PROPERTY(int timeout READ timeout WRITE setTimeout NOTIFY timeoutChanged FINAL)
- Q_PROPERTY(bool visible READ isVisible WRITE setVisible NOTIFY visibleChanged FINAL)
- Q_PROPERTY(QQuickToolTip *toolTip READ toolTip CONSTANT FINAL)
-
-public:
- explicit QQuickToolTipAttached(QObject *parent = nullptr);
-
- QString text() const;
- void setText(const QString &text);
-
- int delay() const;
- void setDelay(int delay);
-
- int timeout() const;
- void setTimeout(int timeout);
-
- bool isVisible() const;
- void setVisible(bool visible);
-
- QQuickToolTip *toolTip() const;
-
-Q_SIGNALS:
- void textChanged();
- void delayChanged();
- void timeoutChanged();
- void visibleChanged();
-
-public Q_SLOTS:
- void show(const QString &text, int ms = -1);
- void hide();
-
-private:
- Q_DISABLE_COPY(QQuickToolTipAttached)
- Q_DECLARE_PRIVATE(QQuickToolTipAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickToolTip)
-QML_DECLARE_TYPEINFO(QQuickToolTip, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKTOOLTIP_P_H
diff --git a/src/quicktemplates2/qquicktumbler.cpp b/src/quicktemplates2/qquicktumbler.cpp
deleted file mode 100644
index 85c70b1b..00000000
--- a/src/quicktemplates2/qquicktumbler.cpp
+++ /dev/null
@@ -1,1045 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquicktumbler_p.h"
-
-#include <QtCore/qloggingcategory.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQml/qqmlinfo.h>
-#include <QtQuick/private/qquickflickable_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtQuickTemplates2/private/qquicktumbler_p_p.h>
-
-QT_BEGIN_NAMESPACE
-
-Q_LOGGING_CATEGORY(lcTumbler, "qt.quick.controls.tumbler")
-
-/*!
- \qmltype Tumbler
- \inherits Control
- \instantiates QQuickTumbler
- \inqmlmodule QtQuick.Controls
- \since 5.7
- \ingroup qtquickcontrols2-input
- \brief Spinnable wheel of items that can be selected.
-
- \image qtquickcontrols2-tumbler-wrap.gif
-
- \code
- Tumbler {
- model: 5
- // ...
- }
- \endcode
-
- Tumbler allows the user to select an option from a spinnable \e "wheel" of
- items. It is useful for when there are too many options to use, for
- example, a RadioButton, and too few options to require the use of an
- editable SpinBox. It is convenient in that it requires no keyboard usage
- and wraps around at each end when there are a large number of items.
-
- The API is similar to that of views like \l ListView and \l PathView; a
- \l model and \l delegate can be set, and the \l count and \l currentItem
- properties provide read-only access to information about the view. To
- position the view at a certain index, use \l positionViewAtIndex().
-
- Unlike views like \l PathView and \l ListView, however, there is always a
- current item (when the model isn't empty). This means that when \l count is
- equal to \c 0, \l currentIndex will be \c -1. In all other cases, it will
- be greater than or equal to \c 0.
-
- By default, Tumbler \l {wrap}{wraps} when it reaches the top and bottom, as
- long as there are more items in the model than there are visible items;
- that is, when \l count is greater than \l visibleItemCount:
-
- \snippet qtquickcontrols2-tumbler-timePicker.qml tumbler
-
- \sa {Customizing Tumbler}, {Input Controls}
-*/
-
-namespace {
- static inline qreal delegateHeight(const QQuickTumbler *tumbler)
- {
- return tumbler->availableHeight() / tumbler->visibleItemCount();
- }
-}
-
-/*
- Finds the contentItem of the view that is a child of the control's \a contentItem.
- The type is stored in \a type.
-*/
-QQuickItem *QQuickTumblerPrivate::determineViewType(QQuickItem *contentItem)
-{
- if (!contentItem) {
- resetViewData();
- return nullptr;
- }
-
- if (contentItem->inherits("QQuickPathView")) {
- view = contentItem;
- viewContentItem = contentItem;
- viewContentItemType = PathViewContentItem;
- viewOffset = 0;
-
- return contentItem;
- } else if (contentItem->inherits("QQuickListView")) {
- view = contentItem;
- viewContentItem = qobject_cast<QQuickFlickable*>(contentItem)->contentItem();
- viewContentItemType = ListViewContentItem;
- viewContentY = 0;
-
- return contentItem;
- } else {
- const auto childItems = contentItem->childItems();
- for (QQuickItem *childItem : childItems) {
- QQuickItem *item = determineViewType(childItem);
- if (item)
- return item;
- }
- }
-
- resetViewData();
- viewContentItemType = UnsupportedContentItemType;
- return nullptr;
-}
-
-void QQuickTumblerPrivate::resetViewData()
-{
- view = nullptr;
- viewContentItem = nullptr;
- if (viewContentItemType == PathViewContentItem)
- viewOffset = 0;
- else if (viewContentItemType == ListViewContentItem)
- viewContentY = 0;
- viewContentItemType = NoContentItem;
-}
-
-QList<QQuickItem *> QQuickTumblerPrivate::viewContentItemChildItems() const
-{
- if (!viewContentItem)
- return QList<QQuickItem *>();
-
- return viewContentItem->childItems();
-}
-
-QQuickTumblerPrivate *QQuickTumblerPrivate::get(QQuickTumbler *tumbler)
-{
- return tumbler->d_func();
-}
-
-void QQuickTumblerPrivate::_q_updateItemHeights()
-{
- if (ignoreSignals)
- return;
-
- // Can't use our own private padding members here, as the padding property might be set,
- // which doesn't affect them, only their getters.
- Q_Q(const QQuickTumbler);
- const qreal itemHeight = delegateHeight(q);
- const auto items = viewContentItemChildItems();
- for (QQuickItem *childItem : items)
- childItem->setHeight(itemHeight);
-}
-
-void QQuickTumblerPrivate::_q_updateItemWidths()
-{
- if (ignoreSignals)
- return;
-
- Q_Q(const QQuickTumbler);
- const qreal availableWidth = q->availableWidth();
- const auto items = viewContentItemChildItems();
- for (QQuickItem *childItem : items)
- childItem->setWidth(availableWidth);
-}
-
-void QQuickTumblerPrivate::_q_onViewCurrentIndexChanged()
-{
- Q_Q(QQuickTumbler);
- if (!view || ignoreCurrentIndexChanges || currentIndexSetDuringModelChange) {
- // If the user set currentIndex in the onModelChanged handler,
- // we have to respect that currentIndex by ignoring changes in the view
- // until the model has finished being set.
- qCDebug(lcTumbler).nospace() << "view currentIndex changed to "
- << (view ? view->property("currentIndex").toString() : QStringLiteral("unknown index (no view)"))
- << ", but we're ignoring it because one or more of the following conditions are true:"
- << "\n- !view: " << !view
- << "\n- ignoreCurrentIndexChanges: " << ignoreCurrentIndexChanges
- << "\n- currentIndexSetDuringModelChange: " << currentIndexSetDuringModelChange;
- return;
- }
-
- const int oldCurrentIndex = currentIndex;
- currentIndex = view->property("currentIndex").toInt();
-
- qCDebug(lcTumbler).nospace() << "view currentIndex changed to "
- << (view ? view->property("currentIndex").toString() : QStringLiteral("unknown index (no view)"))
- << ", our old currentIndex was " << oldCurrentIndex;
-
- if (oldCurrentIndex != currentIndex)
- emit q->currentIndexChanged();
-}
-
-void QQuickTumblerPrivate::_q_onViewCountChanged()
-{
- Q_Q(QQuickTumbler);
- qCDebug(lcTumbler) << "view count changed - ignoring signals?" << ignoreSignals;
- if (ignoreSignals)
- return;
-
- setCount(view->property("count").toInt());
-
- if (count > 0) {
- if (pendingCurrentIndex != -1) {
- // If there was an attempt to set currentIndex at creation, try to finish that attempt now.
- // componentComplete() is too early, because the count might only be known sometime after completion.
- setCurrentIndex(pendingCurrentIndex);
- // If we could successfully set the currentIndex, consider it done.
- // Otherwise, we'll try again later in updatePolish().
- if (currentIndex == pendingCurrentIndex)
- setPendingCurrentIndex(-1);
- else
- q->polish();
- } else if (currentIndex == -1) {
- // If new items were added and our currentIndex was -1, we must
- // enforce our rule of a non-negative currentIndex when count > 0.
- setCurrentIndex(0);
- }
- } else {
- setCurrentIndex(-1);
- }
-}
-
-void QQuickTumblerPrivate::_q_onViewOffsetChanged()
-{
- viewOffset = view->property("offset").toReal();
- calculateDisplacements();
-}
-
-void QQuickTumblerPrivate::_q_onViewContentYChanged()
-{
- viewContentY = view->property("contentY").toReal();
- calculateDisplacements();
-}
-
-void QQuickTumblerPrivate::calculateDisplacements()
-{
- const auto items = viewContentItemChildItems();
- for (QQuickItem *childItem : items) {
- QQuickTumblerAttached *attached = qobject_cast<QQuickTumblerAttached *>(qmlAttachedPropertiesObject<QQuickTumbler>(childItem, false));
- if (attached)
- QQuickTumblerAttachedPrivate::get(attached)->calculateDisplacement();
- }
-}
-
-void QQuickTumblerPrivate::itemChildAdded(QQuickItem *, QQuickItem *)
-{
- _q_updateItemWidths();
- _q_updateItemHeights();
-}
-
-void QQuickTumblerPrivate::itemChildRemoved(QQuickItem *, QQuickItem *)
-{
- _q_updateItemWidths();
- _q_updateItemHeights();
-}
-
-void QQuickTumblerPrivate::itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &diff)
-{
- QQuickControlPrivate::itemGeometryChanged(item, change, diff);
- if (change.sizeChange())
- calculateDisplacements();
-}
-
-QQuickTumbler::QQuickTumbler(QQuickItem *parent)
- : QQuickControl(*(new QQuickTumblerPrivate), parent)
-{
- setActiveFocusOnTab(true);
-
- connect(this, SIGNAL(leftPaddingChanged()), this, SLOT(_q_updateItemWidths()));
- connect(this, SIGNAL(rightPaddingChanged()), this, SLOT(_q_updateItemWidths()));
- connect(this, SIGNAL(topPaddingChanged()), this, SLOT(_q_updateItemHeights()));
- connect(this, SIGNAL(bottomPaddingChanged()), this, SLOT(_q_updateItemHeights()));
-}
-
-QQuickTumbler::~QQuickTumbler()
-{
- Q_D(QQuickTumbler);
- // Ensure that the item change listener is removed.
- d->disconnectFromView();
-}
-
-/*!
- \qmlproperty variant QtQuick.Controls::Tumbler::model
-
- This property holds the model that provides data for this tumbler.
-*/
-QVariant QQuickTumbler::model() const
-{
- Q_D(const QQuickTumbler);
- return d->model;
-}
-
-void QQuickTumbler::setModel(const QVariant &model)
-{
- Q_D(QQuickTumbler);
- if (model == d->model)
- return;
-
- d->beginSetModel();
-
- d->model = model;
- emit modelChanged();
-
- d->endSetModel();
-
- d->currentIndexSetDuringModelChange = false;
-
- // Don't try to correct the currentIndex if count() isn't known yet.
- // We can check in setupViewData() instead.
- if (isComponentComplete() && d->view && count() == 0)
- d->setCurrentIndex(-1);
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::Tumbler::count
- \readonly
-
- This property holds the number of items in the model.
-*/
-int QQuickTumbler::count() const
-{
- Q_D(const QQuickTumbler);
- return d->count;
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::Tumbler::currentIndex
-
- This property holds the index of the current item.
-
- The value of this property is \c -1 when \l count is equal to \c 0. In all
- other cases, it will be greater than or equal to \c 0.
-
- \sa currentItem, positionViewAtIndex()
-*/
-int QQuickTumbler::currentIndex() const
-{
- Q_D(const QQuickTumbler);
- return d->currentIndex;
-}
-
-void QQuickTumbler::setCurrentIndex(int currentIndex)
-{
- Q_D(QQuickTumbler);
- if (d->modelBeingSet)
- d->currentIndexSetDuringModelChange = true;
- d->setCurrentIndex(currentIndex, QQuickTumblerPrivate::UserChange);
-}
-
-/*!
- \qmlproperty Item QtQuick.Controls::Tumbler::currentItem
- \readonly
-
- This property holds the item at the current index.
-
- \sa currentIndex, positionViewAtIndex()
-*/
-QQuickItem *QQuickTumbler::currentItem() const
-{
- Q_D(const QQuickTumbler);
- return d->view ? d->view->property("currentItem").value<QQuickItem*>() : nullptr;
-}
-
-/*!
- \qmlproperty Component QtQuick.Controls::Tumbler::delegate
-
- This property holds the delegate used to display each item.
-*/
-QQmlComponent *QQuickTumbler::delegate() const
-{
- Q_D(const QQuickTumbler);
- return d->delegate;
-}
-
-void QQuickTumbler::setDelegate(QQmlComponent *delegate)
-{
- Q_D(QQuickTumbler);
- if (delegate == d->delegate)
- return;
-
- d->delegate = delegate;
- emit delegateChanged();
-}
-
-/*!
- \qmlproperty int QtQuick.Controls::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.
-*/
-int QQuickTumbler::visibleItemCount() const
-{
- Q_D(const QQuickTumbler);
- return d->visibleItemCount;
-}
-
-void QQuickTumbler::setVisibleItemCount(int visibleItemCount)
-{
- Q_D(QQuickTumbler);
- if (visibleItemCount == d->visibleItemCount)
- return;
-
- d->visibleItemCount = visibleItemCount;
- d->_q_updateItemHeights();
- emit visibleItemCountChanged();
-}
-
-QQuickTumblerAttached *QQuickTumbler::qmlAttachedProperties(QObject *object)
-{
- return new QQuickTumblerAttached(object);
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Tumbler::wrap
- \since QtQuick.Controls 2.1 (Qt 5.8)
-
- This property determines whether or not the tumbler wraps around when it
- reaches the top or bottom.
-
- The default value is \c false when \l count is less than
- \l visibleItemCount, as it is simpler to interact with a non-wrapping Tumbler
- when there are only a few items. To override this behavior, explicitly set
- the value of this property. To return to the default behavior, set this
- property to \c undefined.
-*/
-bool QQuickTumbler::wrap() const
-{
- Q_D(const QQuickTumbler);
- return d->wrap;
-}
-
-void QQuickTumbler::setWrap(bool wrap)
-{
- Q_D(QQuickTumbler);
- d->setWrap(wrap, true);
-}
-
-void QQuickTumbler::resetWrap()
-{
- Q_D(QQuickTumbler);
- d->explicitWrap = false;
- d->setWrapBasedOnCount();
-}
-
-/*!
- \qmlproperty bool QtQuick.Controls::Tumbler::moving
- \since QtQuick.Controls 2.2 (Qt 5.9)
-
- This property describes whether the tumbler is currently moving, due to
- the user either dragging or flicking it.
-*/
-bool QQuickTumbler::isMoving() const
-{
- Q_D(const QQuickTumbler);
- return d->view && d->view->property("moving").toBool();
-}
-
-/*!
- \qmlmethod void QtQuick.Controls::Tumbler::positionViewAtIndex(int index, PositionMode mode)
- \since QtQuick.Controls 2.5 (Qt 5.12)
-
- Positions the view so that the \a index is at the position specified by \a mode.
-
- For example:
-
- \code
- positionViewAtIndex(10, Tumbler.Center)
- \endcode
-
- If \l wrap is true (the default), the modes available to \l {PathView}'s
- \l {PathView::}{positionViewAtIndex()} function
- are available, otherwise the modes available to \l {ListView}'s
- \l {ListView::}{positionViewAtIndex()} function
- are available.
-
- \note There is a known limitation that using \c Tumbler.Beginning when \l
- wrap is \c true will result in the wrong item being positioned at the top
- of view. As a workaround, pass \c {index - 1}.
-
- \sa currentIndex
-*/
-void QQuickTumbler::positionViewAtIndex(int index, QQuickTumbler::PositionMode mode)
-{
- Q_D(QQuickTumbler);
- if (!d->view) {
- d->warnAboutIncorrectContentItem();
- return;
- }
-
- QMetaObject::invokeMethod(d->view, "positionViewAtIndex", Q_ARG(int, index), Q_ARG(int, mode));
-}
-
-void QQuickTumbler::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
-{
- Q_D(QQuickTumbler);
-
- QQuickControl::geometryChanged(newGeometry, oldGeometry);
-
- d->_q_updateItemHeights();
-
- if (newGeometry.width() != oldGeometry.width())
- d->_q_updateItemWidths();
-}
-
-void QQuickTumbler::componentComplete()
-{
- Q_D(QQuickTumbler);
- qCDebug(lcTumbler) << "componentComplete()";
- QQuickControl::componentComplete();
-
- if (!d->view) {
- // Force the view to be created.
- qCDebug(lcTumbler) << "emitting wrapChanged() to force view to be created";
- emit wrapChanged();
- // Determine the type of view for attached properties, etc.
- d->setupViewData(d->contentItem);
- }
-
- // If there was no contentItem or it was of an unsupported type,
- // we don't have anything else to do.
- if (!d->view)
- return;
-
- // Update item heights after we've populated the model,
- // otherwise ignoreSignals will cause these functions to return early.
- d->_q_updateItemHeights();
- d->_q_updateItemWidths();
- d->_q_onViewCountChanged();
-
- qCDebug(lcTumbler) << "componentComplete() is done";
-}
-
-void QQuickTumbler::contentItemChange(QQuickItem *newItem, QQuickItem *oldItem)
-{
- Q_D(QQuickTumbler);
-
- QQuickControl::contentItemChange(newItem, oldItem);
-
- if (oldItem)
- d->disconnectFromView();
-
- if (newItem) {
- // We wait until wrap is set to that we know which type of view to create.
- // If we try to set up the view too early, we'll issue warnings about it not existing.
- if (isComponentComplete()) {
- // Make sure we use the new content item and not the current one, as that won't
- // be changed until after contentItemChange() has finished.
- d->setupViewData(newItem);
-
- d->_q_updateItemHeights();
- d->_q_updateItemWidths();
- }
- }
-}
-
-void QQuickTumblerPrivate::disconnectFromView()
-{
- Q_Q(QQuickTumbler);
- if (!view) {
- // If a custom content item is declared, it can happen that
- // the original contentItem exists without the view etc. having been
- // determined yet, and then this is called when the custom content item
- // is eventually set.
- return;
- }
-
- QObject::disconnect(view, SIGNAL(currentIndexChanged()), q, SLOT(_q_onViewCurrentIndexChanged()));
- QObject::disconnect(view, SIGNAL(currentItemChanged()), q, SIGNAL(currentItemChanged()));
- QObject::disconnect(view, SIGNAL(countChanged()), q, SLOT(_q_onViewCountChanged()));
- QObject::disconnect(view, SIGNAL(movingChanged()), q, SIGNAL(movingChanged()));
-
- if (viewContentItemType == PathViewContentItem)
- QObject::disconnect(view, SIGNAL(offsetChanged()), q, SLOT(_q_onViewOffsetChanged()));
- else
- QObject::disconnect(view, SIGNAL(contentYChanged()), q, SLOT(_q_onViewContentYChanged()));
-
- QQuickItemPrivate *oldViewContentItemPrivate = QQuickItemPrivate::get(viewContentItem);
- oldViewContentItemPrivate->removeItemChangeListener(this, QQuickItemPrivate::Children | QQuickItemPrivate::Geometry);
-
- resetViewData();
-}
-
-void QQuickTumblerPrivate::setupViewData(QQuickItem *newControlContentItem)
-{
- // Don't do anything if we've already set up.
- if (view)
- return;
-
- determineViewType(newControlContentItem);
-
- if (viewContentItemType == QQuickTumblerPrivate::NoContentItem)
- return;
-
- if (viewContentItemType == QQuickTumblerPrivate::UnsupportedContentItemType) {
- warnAboutIncorrectContentItem();
- return;
- }
-
- Q_Q(QQuickTumbler);
- QObject::connect(view, SIGNAL(currentIndexChanged()), q, SLOT(_q_onViewCurrentIndexChanged()));
- QObject::connect(view, SIGNAL(currentItemChanged()), q, SIGNAL(currentItemChanged()));
- QObject::connect(view, SIGNAL(countChanged()), q, SLOT(_q_onViewCountChanged()));
- QObject::connect(view, SIGNAL(movingChanged()), q, SIGNAL(movingChanged()));
-
- if (viewContentItemType == PathViewContentItem) {
- QObject::connect(view, SIGNAL(offsetChanged()), q, SLOT(_q_onViewOffsetChanged()));
- _q_onViewOffsetChanged();
- } else {
- QObject::connect(view, SIGNAL(contentYChanged()), q, SLOT(_q_onViewContentYChanged()));
- _q_onViewContentYChanged();
- }
-
- QQuickItemPrivate *viewContentItemPrivate = QQuickItemPrivate::get(viewContentItem);
- viewContentItemPrivate->addItemChangeListener(this, QQuickItemPrivate::Children | QQuickItemPrivate::Geometry);
-
- // Sync the view's currentIndex with ours.
- syncCurrentIndex();
-
- calculateDisplacements();
-}
-
-void QQuickTumblerPrivate::warnAboutIncorrectContentItem()
-{
- Q_Q(QQuickTumbler);
- qmlWarning(q) << "Tumbler: contentItem must contain either a PathView or a ListView";
-}
-
-void QQuickTumblerPrivate::syncCurrentIndex()
-{
- const int actualViewIndex = view->property("currentIndex").toInt();
- Q_Q(QQuickTumbler);
-
- const bool isPendingCurrentIndex = pendingCurrentIndex != -1;
- const int indexToSet = isPendingCurrentIndex ? pendingCurrentIndex : currentIndex;
-
- // Nothing to do.
- if (actualViewIndex == indexToSet) {
- setPendingCurrentIndex(-1);
- return;
- }
-
- // PathView likes to use 0 as currentIndex for empty models, but we use -1 for that.
- if (q->count() == 0 && actualViewIndex == 0)
- return;
-
- ignoreCurrentIndexChanges = true;
- view->setProperty("currentIndex", QVariant(indexToSet));
- ignoreCurrentIndexChanges = false;
-
- if (view->property("currentIndex").toInt() == indexToSet)
- setPendingCurrentIndex(-1);
- else if (isPendingCurrentIndex)
- q->polish();
-}
-
-void QQuickTumblerPrivate::setPendingCurrentIndex(int index)
-{
- qCDebug(lcTumbler) << "setting pendingCurrentIndex to" << index;
- pendingCurrentIndex = index;
-}
-
-QString QQuickTumblerPrivate::propertyChangeReasonToString(
- QQuickTumblerPrivate::PropertyChangeReason changeReason)
-{
- return changeReason == UserChange ? QStringLiteral("UserChange") : QStringLiteral("InternalChange");
-}
-
-void QQuickTumblerPrivate::setCurrentIndex(int newCurrentIndex,
- QQuickTumblerPrivate::PropertyChangeReason changeReason)
-{
- Q_Q(QQuickTumbler);
- qCDebug(lcTumbler).nospace() << "setting currentIndex to " << newCurrentIndex
- << ", old currentIndex was " << currentIndex
- << ", changeReason is " << propertyChangeReasonToString(changeReason);
- if (newCurrentIndex == currentIndex || newCurrentIndex < -1)
- return;
-
- if (!q->isComponentComplete()) {
- // Views can't set currentIndex until they're ready.
- qCDebug(lcTumbler) << "we're not complete; setting pendingCurrentIndex instead";
- setPendingCurrentIndex(newCurrentIndex);
- return;
- }
-
- if (modelBeingSet && changeReason == UserChange) {
- // If modelBeingSet is true and the user set the currentIndex,
- // the model is in the process of being set and the user has set
- // the currentIndex in onModelChanged. We have to queue the currentIndex
- // change until we're ready.
- qCDebug(lcTumbler) << "a model is being set; setting pendingCurrentIndex instead";
- setPendingCurrentIndex(newCurrentIndex);
- return;
- }
-
- // -1 doesn't make sense for a non-empty Tumbler, because unlike
- // e.g. ListView, there's always one item selected.
- // Wait until the component has finished before enforcing this rule, though,
- // because the count might not be known yet.
- if ((count > 0 && newCurrentIndex == -1) || (newCurrentIndex >= count)) {
- return;
- }
-
- // The view might not have been created yet, as is the case
- // if you create a Tumbler component and pass e.g. { currentIndex: 2 }
- // to createObject().
- if (view) {
- // Only actually set our currentIndex if the view was able to set theirs.
- bool couldSet = false;
- if (count == 0 && newCurrentIndex == -1) {
- // PathView insists on using 0 as the currentIndex when there are no items.
- couldSet = true;
- } else {
- ignoreCurrentIndexChanges = true;
- ignoreSignals = true;
- view->setProperty("currentIndex", newCurrentIndex);
- ignoreSignals = false;
- ignoreCurrentIndexChanges = false;
-
- couldSet = view->property("currentIndex").toInt() == newCurrentIndex;
- }
-
- if (couldSet) {
- // The view's currentIndex might not have actually changed, but ours has,
- // and that's what user code sees.
- currentIndex = newCurrentIndex;
- emit q->currentIndexChanged();
- }
-
- qCDebug(lcTumbler) << "view's currentIndex is now" << view->property("currentIndex").toInt()
- << "and ours is" << currentIndex;
- }
-}
-
-void QQuickTumblerPrivate::setCount(int newCount)
-{
- qCDebug(lcTumbler).nospace() << "setting count to " << newCount
- << ", old count was " << count;
- if (newCount == count)
- return;
-
- count = newCount;
-
- Q_Q(QQuickTumbler);
- setWrapBasedOnCount();
-
- emit q->countChanged();
-}
-
-void QQuickTumblerPrivate::setWrapBasedOnCount()
-{
- if (count == 0 || explicitWrap || modelBeingSet)
- return;
-
- setWrap(count >= visibleItemCount, false);
-}
-
-void QQuickTumblerPrivate::setWrap(bool shouldWrap, bool isExplicit)
-{
- qCDebug(lcTumbler) << "setting wrap to" << shouldWrap << "- exlicit?" << isExplicit;
- if (isExplicit)
- explicitWrap = true;
-
- Q_Q(QQuickTumbler);
- if (q->isComponentComplete() && shouldWrap == wrap)
- return;
-
- // Since we use the currentIndex of the contentItem directly, we must
- // ensure that we keep track of the currentIndex so it doesn't get lost
- // between view changes.
- const int oldCurrentIndex = currentIndex;
-
- disconnectFromView();
-
- wrap = shouldWrap;
-
- // New views will set their currentIndex upon creation, which we'd otherwise
- // take as the correct one, so we must ignore them.
- ignoreCurrentIndexChanges = true;
-
- // This will cause the view to be created if our contentItem is a TumblerView.
- emit q->wrapChanged();
-
- ignoreCurrentIndexChanges = false;
-
- // If isComponentComplete() is true, we require a contentItem. If it's not
- // true, it might not have been created yet, so we wait until
- // componentComplete() is called.
- //
- // When the contentItem (usually QQuickTumblerView) has been created, we
- // can start determining its type, etc. If the delegates use attached
- // properties, this will have already been called, in which case it will
- // return early. If the delegate doesn't use attached properties, we need
- // to call it here.
- if (q->isComponentComplete() || contentItem)
- setupViewData(contentItem);
-
- setCurrentIndex(oldCurrentIndex);
-}
-
-void QQuickTumblerPrivate::beginSetModel()
-{
- modelBeingSet = true;
-}
-
-void QQuickTumblerPrivate::endSetModel()
-{
- modelBeingSet = false;
- setWrapBasedOnCount();
-}
-
-void QQuickTumbler::keyPressEvent(QKeyEvent *event)
-{
- QQuickControl::keyPressEvent(event);
-
- Q_D(QQuickTumbler);
- if (event->isAutoRepeat() || !d->view)
- return;
-
- if (event->key() == Qt::Key_Up) {
- QMetaObject::invokeMethod(d->view, "decrementCurrentIndex");
- } else if (event->key() == Qt::Key_Down) {
- QMetaObject::invokeMethod(d->view, "incrementCurrentIndex");
- }
-}
-
-void QQuickTumbler::updatePolish()
-{
- Q_D(QQuickTumbler);
- if (d->pendingCurrentIndex != -1) {
- // Update our count, as ignoreSignals might have been true
- // when _q_onViewCountChanged() was last called.
- d->setCount(d->view->property("count").toInt());
-
- // If the count is still 0, it's not going to happen.
- if (d->count == 0) {
- d->setPendingCurrentIndex(-1);
- return;
- }
-
- // If there is a pending currentIndex at this stage, it means that
- // the view wouldn't set our currentIndex in _q_onViewCountChanged
- // because it wasn't ready. Try one last time here.
- d->setCurrentIndex(d->pendingCurrentIndex);
-
- if (d->currentIndex != d->pendingCurrentIndex && d->currentIndex == -1) {
- // If we *still* couldn't set it, it's probably invalid.
- // See if we can at least enforce our rule of "non-negative currentIndex when count > 0" instead.
- d->setCurrentIndex(0);
- }
-
- d->setPendingCurrentIndex(-1);
- }
-}
-
-QFont QQuickTumbler::defaultFont() const
-{
- return QQuickTheme::font(QQuickTheme::Tumbler);
-}
-
-QPalette QQuickTumbler::defaultPalette() const
-{
- return QQuickTheme::palette(QQuickTheme::Tumbler);
-}
-
-void QQuickTumblerAttachedPrivate::init(QQuickItem *delegateItem)
-{
- if (!delegateItem->parentItem()) {
- qWarning() << "Tumbler: attached properties must be accessed through a delegate item that has a parent";
- return;
- }
-
- QVariant indexContextProperty = qmlContext(delegateItem)->contextProperty(QStringLiteral("index"));
- if (!indexContextProperty.isValid()) {
- qWarning() << "Tumbler: attempting to access attached property on item without an \"index\" property";
- return;
- }
-
- index = indexContextProperty.toInt();
-
- QQuickItem *parentItem = delegateItem;
- while ((parentItem = parentItem->parentItem())) {
- if ((tumbler = qobject_cast<QQuickTumbler*>(parentItem)))
- break;
- }
-}
-
-void QQuickTumblerAttachedPrivate::calculateDisplacement()
-{
- const qreal previousDisplacement = displacement;
- displacement = 0;
-
- if (!tumbler) {
- // Can happen if the attached properties are accessed on the wrong type of item or the tumbler was destroyed.
- // We don't want to emit the change signal though, as this could cause warnings about Tumbler.tumbler being null.
- return;
- }
-
- // Can happen if there is no ListView or PathView within the contentItem.
- QQuickTumblerPrivate *tumblerPrivate = QQuickTumblerPrivate::get(tumbler);
- if (!tumblerPrivate->viewContentItem) {
- emitIfDisplacementChanged(previousDisplacement, displacement);
- return;
- }
-
- // The attached property gets created before our count is updated, so just cheat here
- // to avoid having to listen to count changes.
- const int count = tumblerPrivate->view->property("count").toInt();
- // This can happen in tests, so it may happen in normal usage too.
- if (count == 0) {
- emitIfDisplacementChanged(previousDisplacement, displacement);
- return;
- }
-
- if (tumblerPrivate->viewContentItemType == QQuickTumblerPrivate::PathViewContentItem) {
- const qreal offset = tumblerPrivate->viewOffset;
-
- displacement = count > 1 ? count - index - offset : 0;
- // Don't add 1 if count <= visibleItemCount
- const int visibleItems = tumbler->visibleItemCount();
- const int halfVisibleItems = visibleItems / 2 + (visibleItems < count ? 1 : 0);
- if (displacement > halfVisibleItems)
- displacement -= count;
- else if (displacement < -halfVisibleItems)
- displacement += count;
- } else {
- const qreal contentY = tumblerPrivate->viewContentY;
- const qreal delegateH = delegateHeight(tumbler);
- const qreal preferredHighlightBegin = tumblerPrivate->view->property("preferredHighlightBegin").toReal();
- const qreal itemY = qobject_cast<QQuickItem*>(parent)->y();
- qreal currentItemY = 0;
- auto currentItem = tumblerPrivate->view->property("currentItem").value<QQuickItem*>();
- if (currentItem)
- currentItemY = currentItem->y();
- // Start from the y position of the current item.
- const qreal topOfCurrentItemInViewport = currentItemY - contentY;
- // Then, calculate the distance between it and the preferredHighlightBegin.
- const qreal relativePositionToPreferredHighlightBegin = topOfCurrentItemInViewport - preferredHighlightBegin;
- // Next, calculate the distance between us and the current item.
- const qreal distanceFromCurrentItem = currentItemY - itemY;
- const qreal displacementInPixels = distanceFromCurrentItem - relativePositionToPreferredHighlightBegin;
- // Convert it from pixels to a floating point index.
- displacement = displacementInPixels / delegateH;
- }
-
- emitIfDisplacementChanged(previousDisplacement, displacement);
-}
-
-void QQuickTumblerAttachedPrivate::emitIfDisplacementChanged(qreal oldDisplacement, qreal newDisplacement)
-{
- Q_Q(QQuickTumblerAttached);
- if (newDisplacement != oldDisplacement)
- emit q->displacementChanged();
-}
-
-QQuickTumblerAttached::QQuickTumblerAttached(QObject *parent)
- : QObject(*(new QQuickTumblerAttachedPrivate), parent)
-{
- Q_D(QQuickTumblerAttached);
- QQuickItem *delegateItem = qobject_cast<QQuickItem *>(parent);
- if (delegateItem)
- d->init(delegateItem);
- else if (parent)
- qmlWarning(parent) << "Tumbler: attached properties of Tumbler must be accessed through a delegate item";
-
- if (d->tumbler) {
- // When the Tumbler is completed, wrapChanged() is emitted to let QQuickTumblerView
- // know that it can create the view. The view itself might instantiate delegates
- // that use attached properties. At this point, setupViewData() hasn't been called yet
- // (it's called on the next line in componentComplete()), so we call it here so that
- // we have access to the view.
- QQuickTumblerPrivate *tumblerPrivate = QQuickTumblerPrivate::get(d->tumbler);
- tumblerPrivate->setupViewData(tumblerPrivate->contentItem);
-
- if (delegateItem->parentItem() == tumblerPrivate->viewContentItem) {
- // This item belongs to the "new" view, meaning that the tumbler's contentItem
- // was probably assigned declaratively. If they're not equal, calling
- // calculateDisplacement() would use the old contentItem data, which is bad.
- d->calculateDisplacement();
- }
- }
-}
-
-/*!
- \qmlattachedproperty Tumbler QtQuick.Controls::Tumbler::tumbler
- \readonly
-
- This attached property holds the tumbler. The property can be attached to
- a tumbler delegate. The value is \c null if the item is not a tumbler delegate.
-*/
-QQuickTumbler *QQuickTumblerAttached::tumbler() const
-{
- Q_D(const QQuickTumblerAttached);
- return d->tumbler;
-}
-
-/*!
- \qmlattachedproperty real QtQuick.Controls::Tumbler::displacement
- \readonly
-
- This attached property holds a value from \c {-visibleItemCount / 2} to
- \c {visibleItemCount / 2}, which represents how far away this item is from
- being the current item, with \c 0 being completely current.
-
- For example, the item below will be 40% opaque when it is not the current item,
- and transition to 100% opacity when it becomes the current item:
-
- \code
- delegate: Text {
- text: modelData
- opacity: 0.4 + Math.max(0, 1 - Math.abs(Tumbler.displacement)) * 0.6
- }
- \endcode
-*/
-qreal QQuickTumblerAttached::displacement() const
-{
- Q_D(const QQuickTumblerAttached);
- return d->displacement;
-}
-
-QT_END_NAMESPACE
-
-#include "moc_qquicktumbler_p.cpp"
diff --git a/src/quicktemplates2/qquicktumbler_p.h b/src/quicktemplates2/qquicktumbler_p.h
deleted file mode 100644
index 3f7c06db..00000000
--- a/src/quicktemplates2/qquicktumbler_p.h
+++ /dev/null
@@ -1,177 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTUMBLER_P_H
-#define QQUICKTUMBLER_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qvariant.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickTumblerAttached;
-class QQuickTumblerPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTumbler : public QQuickControl
-{
- Q_OBJECT
- Q_PROPERTY(QVariant model READ model WRITE setModel NOTIFY modelChanged FINAL)
- Q_PROPERTY(int count READ count NOTIFY countChanged FINAL)
- Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged FINAL)
- Q_PROPERTY(QQuickItem *currentItem READ currentItem NOTIFY currentItemChanged FINAL)
- Q_PROPERTY(QQmlComponent *delegate READ delegate WRITE setDelegate NOTIFY delegateChanged FINAL)
- Q_PROPERTY(int visibleItemCount READ visibleItemCount WRITE setVisibleItemCount NOTIFY visibleItemCountChanged FINAL)
- // 2.1 (Qt 5.8)
- Q_PROPERTY(bool wrap READ wrap WRITE setWrap RESET resetWrap NOTIFY wrapChanged FINAL REVISION 1)
- // 2.2 (Qt 5.9)
- Q_PROPERTY(bool moving READ isMoving NOTIFY movingChanged FINAL REVISION 2)
-
-public:
- explicit QQuickTumbler(QQuickItem *parent = nullptr);
- ~QQuickTumbler();
-
- QVariant model() const;
- void setModel(const QVariant &model);
-
- int count() const;
-
- int currentIndex() const;
- void setCurrentIndex(int currentIndex);
- QQuickItem *currentItem() const;
-
- QQmlComponent *delegate() const;
- void setDelegate(QQmlComponent *delegate);
-
- int visibleItemCount() const;
- void setVisibleItemCount(int visibleItemCount);
-
- static QQuickTumblerAttached *qmlAttachedProperties(QObject *object);
-
- // 2.1 (Qt 5.8)
- bool wrap() const;
- void setWrap(bool wrap);
- void resetWrap();
-
- // 2.2 (Qt 5.9)
- bool isMoving() const;
-
- enum PositionMode {
- Beginning,
- Center,
- End,
- Visible, // ListView-only
- Contain,
- SnapPosition
- };
- Q_ENUM(PositionMode)
-
- // 2.5 (Qt 5.12)
- Q_REVISION(5) Q_INVOKABLE void positionViewAtIndex(int index, PositionMode mode);
-
-Q_SIGNALS:
- void modelChanged();
- void countChanged();
- void currentIndexChanged();
- void currentItemChanged();
- void delegateChanged();
- void visibleItemCountChanged();
- // 2.1 (Qt 5.8)
- Q_REVISION(1) void wrapChanged();
- // 2.2 (Qt 5.9)
- Q_REVISION(2) void movingChanged();
-
-protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
- void componentComplete() override;
- void contentItemChange(QQuickItem *newItem, QQuickItem *oldItem) override;
- void keyPressEvent(QKeyEvent *event) override;
- void updatePolish() override;
-
- QFont defaultFont() const override;
- QPalette defaultPalette() const override;
-
-private:
- Q_DISABLE_COPY(QQuickTumbler)
- Q_DECLARE_PRIVATE(QQuickTumbler)
-
- Q_PRIVATE_SLOT(d_func(), void _q_updateItemWidths())
- Q_PRIVATE_SLOT(d_func(), void _q_updateItemHeights())
- Q_PRIVATE_SLOT(d_func(), void _q_onViewCurrentIndexChanged())
- Q_PRIVATE_SLOT(d_func(), void _q_onViewCountChanged())
- Q_PRIVATE_SLOT(d_func(), void _q_onViewOffsetChanged())
- Q_PRIVATE_SLOT(d_func(), void _q_onViewContentYChanged())
-};
-
-class QQuickTumblerAttachedPrivate;
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTumblerAttached : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QQuickTumbler *tumbler READ tumbler CONSTANT FINAL)
- Q_PROPERTY(qreal displacement READ displacement NOTIFY displacementChanged FINAL)
-
-public:
- explicit QQuickTumblerAttached(QObject *parent = nullptr);
-
- QQuickTumbler *tumbler() const;
- qreal displacement() const;
-
-Q_SIGNALS:
- void displacementChanged();
-
-private:
- Q_DISABLE_COPY(QQuickTumblerAttached)
- Q_DECLARE_PRIVATE(QQuickTumblerAttached)
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QQuickTumbler)
-QML_DECLARE_TYPEINFO(QQuickTumbler, QML_HAS_ATTACHED_PROPERTIES)
-
-#endif // QQUICKTUMBLER_P_H
diff --git a/src/quicktemplates2/qquicktumbler_p_p.h b/src/quicktemplates2/qquicktumbler_p_p.h
deleted file mode 100644
index 049ab8a1..00000000
--- a/src/quicktemplates2/qquicktumbler_p_p.h
+++ /dev/null
@@ -1,153 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKTUMBLER_P_P_H
-#define QQUICKTUMBLER_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtQuickTemplates2/private/qquicktumbler_p.h>
-
-QT_BEGIN_NAMESPACE
-
-class Q_QUICKTEMPLATES2_PRIVATE_EXPORT QQuickTumblerPrivate : public QQuickControlPrivate
-{
- Q_DECLARE_PUBLIC(QQuickTumbler)
-
-public:
- enum ContentItemType {
- NoContentItem,
- UnsupportedContentItemType,
- PathViewContentItem,
- ListViewContentItem
- };
-
- QQuickItem *determineViewType(QQuickItem *contentItem);
- void resetViewData();
- QList<QQuickItem *> viewContentItemChildItems() const;
-
- static QQuickTumblerPrivate *get(QQuickTumbler *tumbler);
-
- QVariant model;
- QQmlComponent *delegate = nullptr;
- int visibleItemCount = 5;
- bool wrap = true;
- bool explicitWrap = false;
- bool modelBeingSet = false;
- bool currentIndexSetDuringModelChange = false;
- QQuickItem *view = nullptr;
- QQuickItem *viewContentItem = nullptr;
- ContentItemType viewContentItemType = UnsupportedContentItemType;
- union {
- qreal viewOffset; // PathView
- qreal viewContentY; // ListView
- };
- int currentIndex = -1;
- int pendingCurrentIndex = -1;
- bool ignoreCurrentIndexChanges = false;
- int count = 0;
- bool ignoreSignals = false;
-
- void _q_updateItemHeights();
- void _q_updateItemWidths();
- void _q_onViewCurrentIndexChanged();
- void _q_onViewCountChanged();
- void _q_onViewOffsetChanged();
- void _q_onViewContentYChanged();
-
- void calculateDisplacements();
-
- void disconnectFromView();
- void setupViewData(QQuickItem *newControlContentItem);
- void warnAboutIncorrectContentItem();
- void syncCurrentIndex();
- void setPendingCurrentIndex(int index);
-
- enum PropertyChangeReason {
- UserChange,
- InternalChange
- };
-
- static QString propertyChangeReasonToString(PropertyChangeReason changeReason);
-
- void setCurrentIndex(int newCurrentIndex, PropertyChangeReason changeReason = InternalChange);
- void setCount(int newCount);
- void setWrapBasedOnCount();
- void setWrap(bool shouldWrap, bool isExplicit);
- void beginSetModel();
- void endSetModel();
-
- void itemChildAdded(QQuickItem *, QQuickItem *) override;
- void itemChildRemoved(QQuickItem *, QQuickItem *) override;
- void itemGeometryChanged(QQuickItem *, QQuickGeometryChange , const QRectF &) override;
-};
-
-class QQuickTumblerAttachedPrivate : public QObjectPrivate
-{
- Q_DECLARE_PUBLIC(QQuickTumblerAttached)
-
-public:
- static QQuickTumblerAttachedPrivate *get(QQuickTumblerAttached *attached)
- {
- return attached->d_func();
- }
-
- void init(QQuickItem *delegateItem);
-
- void calculateDisplacement();
- void emitIfDisplacementChanged(qreal oldDisplacement, qreal newDisplacement);
-
- // The Tumbler that contains the delegate. Required to calculated the displacement.
- QPointer<QQuickTumbler> tumbler;
- // The index of the delegate. Used to calculate the displacement.
- int index = -1;
- // The displacement for our delegate.
- qreal displacement = 0;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKTUMBLER_P_P_H
diff --git a/src/quicktemplates2/qquickvelocitycalculator.cpp b/src/quicktemplates2/qquickvelocitycalculator.cpp
deleted file mode 100644
index a0c5ec0d..00000000
--- a/src/quicktemplates2/qquickvelocitycalculator.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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 "qquickvelocitycalculator_p_p.h"
-
-#include <QtCore/qdebug.h>
-
-QT_BEGIN_NAMESPACE
-
-/*
- Usage:
-
- QQuickVelocityCalculator velocityCalculator;
-
- // ...
-
- velocityCalcular.startMeasuring(event->pos(), event->timestamp());
- velocityCalcular.stopMeasuring(event->pos(), event->timestamp());
-
- // ...
-
- if (velocityCalculator.velocity().x() > someAmount)
- doSomething();
- else if (velocityCalculator.velocity().x() < -someAmount)
- doSomethingElse();
-*/
-
-void QQuickVelocityCalculator::startMeasuring(const QPointF &point1, qint64 timestamp)
-{
- m_point1 = point1;
-
- if (timestamp != 0)
- m_point1Timestamp = timestamp;
- else
- m_timer.start();
-}
-
-void QQuickVelocityCalculator::stopMeasuring(const QPointF &point2, qint64 timestamp)
-{
- if (timestamp == 0 && !m_timer.isValid()) {
- qWarning() << "QQuickVelocityCalculator: a call to stopMeasuring() must be preceded by a call to startMeasuring()";
- return;
- }
-
- m_point2 = point2;
- m_point2Timestamp = timestamp != 0 ? timestamp : m_timer.elapsed();
- m_timer.invalidate();
-}
-
-void QQuickVelocityCalculator::reset()
-{
- m_point1 = QPointF();
- m_point2 = QPointF();
- m_point1Timestamp = 0;
- m_point2Timestamp = 0;
- m_timer.invalidate();
-}
-
-QPointF QQuickVelocityCalculator::velocity() const
-{
- if ((m_point2Timestamp == 0 || m_point1Timestamp == m_point2Timestamp) && !m_timer.isValid())
- return QPointF();
-
- const qreal secondsElapsed = (m_point2Timestamp != 0 ? m_point2Timestamp - m_point1Timestamp : m_timer.elapsed()) / 1000.0;
- const QPointF distance = m_point2 - m_point1;
- return distance / secondsElapsed;
-}
-
-QT_END_NAMESPACE
diff --git a/src/quicktemplates2/qquickvelocitycalculator_p_p.h b/src/quicktemplates2/qquickvelocitycalculator_p_p.h
deleted file mode 100644
index 2b13ff07..00000000
--- a/src/quicktemplates2/qquickvelocitycalculator_p_p.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKVELOCITYCALCULATOR_P_P_H
-#define QQUICKVELOCITYCALCULATOR_P_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qpoint.h>
-#include <QtCore/qelapsedtimer.h>
-
-QT_BEGIN_NAMESPACE
-
-class QQuickVelocityCalculator
-{
-public:
- void startMeasuring(const QPointF &point1, qint64 timestamp = 0);
- void stopMeasuring(const QPointF &m_point2, qint64 timestamp = 0);
- void reset();
- QPointF velocity() const;
-
-private:
- QPointF m_point1;
- QPointF m_point2;
- qint64 m_point1Timestamp = 0;
- qint64 m_point2Timestamp = 0;
- // When a timestamp isn't available, we must use a timer.
- // When stopMeasuring() has been called, we store the elapsed time in point2timestamp.
- QElapsedTimer m_timer;
-};
-
-QT_END_NAMESPACE
-
-#endif // QQUICKVELOCITYCALCULATOR_P_P_H
diff --git a/src/quicktemplates2/qtquicktemplates2global_p.h b/src/quicktemplates2/qtquicktemplates2global_p.h
deleted file mode 100644
index e5ee3f2e..00000000
--- a/src/quicktemplates2/qtquicktemplates2global_p.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the Qt Quick Templates 2 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$
-**
-****************************************************************************/
-
-#ifndef QTQUICKTEMPLATES2GLOBAL_P_H
-#define QTQUICKTEMPLATES2GLOBAL_P_H
-
-//
-// W A R N I N G
-// -------------
-//
-// This file is not part of the Qt API. It exists purely as an
-// implementation detail. This header file may change from version to
-// version without notice, or even be removed.
-//
-// We mean it.
-//
-
-#include <QtCore/qglobal.h>
-#include <QtQml/private/qqmlglobal_p.h>
-#include <QtQuickTemplates2/private/qtquicktemplates2-config_p.h>
-
-QT_BEGIN_NAMESPACE
-
-#ifndef QT_STATIC
-# if defined(QT_BUILD_QUICKTEMPLATES2_LIB)
-# define Q_QUICKTEMPLATES2_PRIVATE_EXPORT Q_DECL_EXPORT
-# else
-# define Q_QUICKTEMPLATES2_PRIVATE_EXPORT Q_DECL_IMPORT
-# endif
-#else
-# define Q_QUICKTEMPLATES2_PRIVATE_EXPORT
-#endif
-
-QT_END_NAMESPACE
-
-#endif // QTQUICKTEMPLATES2GLOBAL_P_H
diff --git a/src/quicktemplates2/quicktemplates2.pri b/src/quicktemplates2/quicktemplates2.pri
deleted file mode 100644
index c145c20f..00000000
--- a/src/quicktemplates2/quicktemplates2.pri
+++ /dev/null
@@ -1,179 +0,0 @@
-INCLUDEPATH += $$PWD
-
-HEADERS += \
- $$PWD/qquickabstractbutton_p.h \
- $$PWD/qquickabstractbutton_p_p.h \
- $$PWD/qquickaction_p.h \
- $$PWD/qquickactiongroup_p.h \
- $$PWD/qquickapplicationwindow_p.h \
- $$PWD/qquickbusyindicator_p.h \
- $$PWD/qquickbutton_p.h \
- $$PWD/qquickbutton_p_p.h \
- $$PWD/qquickbuttongroup_p.h \
- $$PWD/qquickcheckbox_p.h \
- $$PWD/qquickcheckdelegate_p.h \
- $$PWD/qquickcombobox_p.h \
- $$PWD/qquickcontainer_p.h \
- $$PWD/qquickcontainer_p_p.h \
- $$PWD/qquickcontentitem_p.h \
- $$PWD/qquickcontrol_p.h \
- $$PWD/qquickcontrol_p_p.h \
- $$PWD/qquickdeferredexecute_p_p.h \
- $$PWD/qquickdeferredpointer_p_p.h \
- $$PWD/qquickdelaybutton_p.h \
- $$PWD/qquickdial_p.h \
- $$PWD/qquickdialog_p.h \
- $$PWD/qquickdialog_p_p.h \
- $$PWD/qquickdialogbuttonbox_p.h \
- $$PWD/qquickdialogbuttonbox_p_p.h \
- $$PWD/qquickdrawer_p.h \
- $$PWD/qquickdrawer_p_p.h \
- $$PWD/qquickframe_p.h \
- $$PWD/qquickframe_p_p.h \
- $$PWD/qquickgroupbox_p.h \
- $$PWD/qquickicon_p.h \
- $$PWD/qquickitemdelegate_p.h \
- $$PWD/qquickitemdelegate_p_p.h \
- $$PWD/qquicklabel_p.h \
- $$PWD/qquicklabel_p_p.h \
- $$PWD/qquickmenu_p.h \
- $$PWD/qquickmenu_p_p.h \
- $$PWD/qquickmenubar_p.h \
- $$PWD/qquickmenubar_p_p.h \
- $$PWD/qquickmenubaritem_p.h \
- $$PWD/qquickmenubaritem_p_p.h \
- $$PWD/qquickmenuitem_p.h \
- $$PWD/qquickmenuitem_p_p.h \
- $$PWD/qquickmenuseparator_p.h \
- $$PWD/qquickoverlay_p.h \
- $$PWD/qquickoverlay_p_p.h \
- $$PWD/qquickpage_p.h \
- $$PWD/qquickpage_p_p.h \
- $$PWD/qquickpageindicator_p.h \
- $$PWD/qquickpalette_p.h \
- $$PWD/qquickpaletteprovider_p.h \
- $$PWD/qquickpane_p.h \
- $$PWD/qquickpane_p_p.h \
- $$PWD/qquickpopup_p.h \
- $$PWD/qquickpopup_p_p.h \
- $$PWD/qquickpopupanchors_p.h \
- $$PWD/qquickpopupanchors_p_p.h \
- $$PWD/qquickpopupitem_p_p.h \
- $$PWD/qquickpopuppositioner_p_p.h \
- $$PWD/qquickpresshandler_p_p.h \
- $$PWD/qquickprogressbar_p.h \
- $$PWD/qquickradiobutton_p.h \
- $$PWD/qquickradiodelegate_p.h \
- $$PWD/qquickrangeslider_p.h \
- $$PWD/qquickroundbutton_p.h \
- $$PWD/qquickscrollbar_p.h \
- $$PWD/qquickscrollbar_p_p.h \
- $$PWD/qquickscrollindicator_p.h \
- $$PWD/qquickscrollview_p.h \
- $$PWD/qquickshortcutcontext_p_p.h \
- $$PWD/qquickslider_p.h \
- $$PWD/qquickspinbox_p.h \
- $$PWD/qquicksplitview_p.h \
- $$PWD/qquickstackelement_p_p.h \
- $$PWD/qquickstacktransition_p_p.h \
- $$PWD/qquickstackview_p.h \
- $$PWD/qquickstackview_p_p.h \
- $$PWD/qquickswipe_p.h \
- $$PWD/qquickswipedelegate_p.h \
- $$PWD/qquickswipedelegate_p_p.h \
- $$PWD/qquickswipeview_p.h \
- $$PWD/qquickswitch_p.h \
- $$PWD/qquickswitchdelegate_p.h \
- $$PWD/qquicktabbar_p.h \
- $$PWD/qquicktabbutton_p.h \
- $$PWD/qquicktextarea_p.h \
- $$PWD/qquicktextarea_p_p.h \
- $$PWD/qquicktextfield_p.h \
- $$PWD/qquicktextfield_p_p.h \
- $$PWD/qquicktheme_p.h \
- $$PWD/qquicktheme_p_p.h \
- $$PWD/qquicktoolbar_p.h \
- $$PWD/qquicktoolbutton_p.h \
- $$PWD/qquicktoolseparator_p.h \
- $$PWD/qquicktooltip_p.h \
- $$PWD/qquickvelocitycalculator_p_p.h
-
-SOURCES += \
- $$PWD/qquickabstractbutton.cpp \
- $$PWD/qquickaction.cpp \
- $$PWD/qquickactiongroup.cpp \
- $$PWD/qquickapplicationwindow.cpp \
- $$PWD/qquickbusyindicator.cpp \
- $$PWD/qquickbutton.cpp \
- $$PWD/qquickbuttongroup.cpp \
- $$PWD/qquickcheckbox.cpp \
- $$PWD/qquickcheckdelegate.cpp \
- $$PWD/qquickcombobox.cpp \
- $$PWD/qquickcontainer.cpp \
- $$PWD/qquickcontentitem.cpp \
- $$PWD/qquickcontrol.cpp \
- $$PWD/qquickdeferredexecute.cpp \
- $$PWD/qquickdelaybutton.cpp \
- $$PWD/qquickdial.cpp \
- $$PWD/qquickdialog.cpp \
- $$PWD/qquickdialogbuttonbox.cpp \
- $$PWD/qquickdrawer.cpp \
- $$PWD/qquickframe.cpp \
- $$PWD/qquickgroupbox.cpp \
- $$PWD/qquickicon.cpp \
- $$PWD/qquickitemdelegate.cpp \
- $$PWD/qquicklabel.cpp \
- $$PWD/qquickmenu.cpp \
- $$PWD/qquickmenubar.cpp \
- $$PWD/qquickmenubaritem.cpp \
- $$PWD/qquickmenuitem.cpp \
- $$PWD/qquickmenuseparator.cpp \
- $$PWD/qquickoverlay.cpp \
- $$PWD/qquickpage.cpp \
- $$PWD/qquickpageindicator.cpp \
- $$PWD/qquickpalette.cpp \
- $$PWD/qquickpaletteprovider.cpp \
- $$PWD/qquickpane.cpp \
- $$PWD/qquickpopup.cpp \
- $$PWD/qquickpopupanchors.cpp \
- $$PWD/qquickpopupitem.cpp \
- $$PWD/qquickpopuppositioner.cpp \
- $$PWD/qquickpresshandler.cpp \
- $$PWD/qquickprogressbar.cpp \
- $$PWD/qquickradiobutton.cpp \
- $$PWD/qquickradiodelegate.cpp \
- $$PWD/qquickrangeslider.cpp \
- $$PWD/qquickroundbutton.cpp \
- $$PWD/qquickscrollbar.cpp \
- $$PWD/qquickscrollindicator.cpp \
- $$PWD/qquickscrollview.cpp \
- $$PWD/qquickshortcutcontext.cpp \
- $$PWD/qquickslider.cpp \
- $$PWD/qquickspinbox.cpp \
- $$PWD/qquicksplitview.cpp \
- $$PWD/qquickstackelement.cpp \
- $$PWD/qquickstacktransition.cpp \
- $$PWD/qquickstackview.cpp \
- $$PWD/qquickstackview_p.cpp \
- $$PWD/qquickswipedelegate.cpp \
- $$PWD/qquickswipeview.cpp \
- $$PWD/qquickswitch.cpp \
- $$PWD/qquickswitchdelegate.cpp \
- $$PWD/qquicktabbar.cpp \
- $$PWD/qquicktabbutton.cpp \
- $$PWD/qquicktextarea.cpp \
- $$PWD/qquicktextfield.cpp \
- $$PWD/qquicktheme.cpp \
- $$PWD/qquicktoolbar.cpp \
- $$PWD/qquicktoolbutton.cpp \
- $$PWD/qquicktoolseparator.cpp \
- $$PWD/qquicktooltip.cpp \
- $$PWD/qquickvelocitycalculator.cpp
-
-qtConfig(quick-listview):qtConfig(quick-pathview) {
- HEADERS += \
- $$PWD/qquicktumbler_p.h \
- $$PWD/qquicktumbler_p_p.h
- SOURCES += \
- $$PWD/qquicktumbler.cpp
-}
diff --git a/src/quicktemplates2/quicktemplates2.pro b/src/quicktemplates2/quicktemplates2.pro
deleted file mode 100644
index 8ed0151a..00000000
--- a/src/quicktemplates2/quicktemplates2.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-TARGET = QtQuickTemplates2
-MODULE = quicktemplates2
-
-QT += quick
-QT_PRIVATE += core-private gui-private qml-private quick-private
-qtHaveModule(qmlmodels): QT += qmlmodels-private
-
-DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
-
-HEADERS += \
- $$PWD/qtquicktemplates2global_p.h
-
-include(quicktemplates2.pri)
-load(qt_module)
diff --git a/src/src.pro b/src/src.pro
deleted file mode 100644
index 7f945ffb..00000000
--- a/src/src.pro
+++ /dev/null
@@ -1,8 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- quicktemplates2 \
- quickcontrols2 \
- imports
-
-quickcontrols2.depends = quicktemplates2
-imports.depends = quickcontrols2 quicktemplates2
diff --git a/sync.profile b/sync.profile
deleted file mode 100644
index 41eae2b2..00000000
--- a/sync.profile
+++ /dev/null
@@ -1,6 +0,0 @@
-%modules = ( # path to module name map
- "QtQuickControls2" => "$basedir/src/quickcontrols2",
- "QtQuickTemplates2" => "$basedir/src/quicktemplates2",
-);
-%moduleheaders = ( # restrict the module headers to those found in relative path
-);
diff --git a/tests/auto/accessibility/accessibility.pro b/tests/auto/accessibility/accessibility.pro
deleted file mode 100644
index dd8e60a7..00000000
--- a/tests/auto/accessibility/accessibility.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-CONFIG += testcase
-TARGET = tst_accessibility
-SOURCES += tst_accessibility.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private quicktemplates2-private testlib
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
-
diff --git a/tests/auto/accessibility/data/abstractbutton.qml b/tests/auto/accessibility/data/abstractbutton.qml
deleted file mode 100644
index b0922176..00000000
--- a/tests/auto/accessibility/data/abstractbutton.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-AbstractButton {
- text: "AbstractButton"
-}
diff --git a/tests/auto/accessibility/data/busyindicator.qml b/tests/auto/accessibility/data/busyindicator.qml
deleted file mode 100644
index e1c33765..00000000
--- a/tests/auto/accessibility/data/busyindicator.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-BusyIndicator { }
diff --git a/tests/auto/accessibility/data/button.qml b/tests/auto/accessibility/data/button.qml
deleted file mode 100644
index 600c05da..00000000
--- a/tests/auto/accessibility/data/button.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Button {
- text: "Button"
-}
diff --git a/tests/auto/accessibility/data/checkbox.qml b/tests/auto/accessibility/data/checkbox.qml
deleted file mode 100644
index f86a9a27..00000000
--- a/tests/auto/accessibility/data/checkbox.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-CheckBox {
- text: "CheckBox"
-}
diff --git a/tests/auto/accessibility/data/checkdelegate.qml b/tests/auto/accessibility/data/checkdelegate.qml
deleted file mode 100644
index 2750052f..00000000
--- a/tests/auto/accessibility/data/checkdelegate.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-CheckDelegate {
- text: "CheckDelegate"
-}
diff --git a/tests/auto/accessibility/data/combobox.qml b/tests/auto/accessibility/data/combobox.qml
deleted file mode 100644
index ec4e87ef..00000000
--- a/tests/auto/accessibility/data/combobox.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ComboBox {
- model: ["ComboBox"]
-}
diff --git a/tests/auto/accessibility/data/container.qml b/tests/auto/accessibility/data/container.qml
deleted file mode 100644
index b8d57eea..00000000
--- a/tests/auto/accessibility/data/container.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Container { }
diff --git a/tests/auto/accessibility/data/control.qml b/tests/auto/accessibility/data/control.qml
deleted file mode 100644
index dac5f935..00000000
--- a/tests/auto/accessibility/data/control.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Control { }
diff --git a/tests/auto/accessibility/data/dayofweekrow-2.qml b/tests/auto/accessibility/data/dayofweekrow-2.qml
deleted file mode 100644
index 96c750cb..00000000
--- a/tests/auto/accessibility/data/dayofweekrow-2.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-DayOfWeekRow { }
diff --git a/tests/auto/accessibility/data/dayofweekrow.qml b/tests/auto/accessibility/data/dayofweekrow.qml
deleted file mode 100644
index a2aa44ec..00000000
--- a/tests/auto/accessibility/data/dayofweekrow.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-DayOfWeekRow {
- Accessible.name: "DayOfWeekRow"
-}
diff --git a/tests/auto/accessibility/data/dial.qml b/tests/auto/accessibility/data/dial.qml
deleted file mode 100644
index 9a471548..00000000
--- a/tests/auto/accessibility/data/dial.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Dial { }
diff --git a/tests/auto/accessibility/data/dialog.qml b/tests/auto/accessibility/data/dialog.qml
deleted file mode 100644
index 20317a31..00000000
--- a/tests/auto/accessibility/data/dialog.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Dialog {
- title: "Dialog"
-}
diff --git a/tests/auto/accessibility/data/drawer.qml b/tests/auto/accessibility/data/drawer.qml
deleted file mode 100644
index 9b0db5fa..00000000
--- a/tests/auto/accessibility/data/drawer.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Drawer { }
diff --git a/tests/auto/accessibility/data/frame.qml b/tests/auto/accessibility/data/frame.qml
deleted file mode 100644
index 02e45a78..00000000
--- a/tests/auto/accessibility/data/frame.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Frame { }
diff --git a/tests/auto/accessibility/data/groupbox.qml b/tests/auto/accessibility/data/groupbox.qml
deleted file mode 100644
index 0fa8cff5..00000000
--- a/tests/auto/accessibility/data/groupbox.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-GroupBox {
- title: "GroupBox"
-}
diff --git a/tests/auto/accessibility/data/itemdelegate.qml b/tests/auto/accessibility/data/itemdelegate.qml
deleted file mode 100644
index 52831648..00000000
--- a/tests/auto/accessibility/data/itemdelegate.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ItemDelegate {
- text: "ItemDelegate"
-}
diff --git a/tests/auto/accessibility/data/label.qml b/tests/auto/accessibility/data/label.qml
deleted file mode 100644
index 6d7466bc..00000000
--- a/tests/auto/accessibility/data/label.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Label {
- text: "Label"
-}
diff --git a/tests/auto/accessibility/data/menu.qml b/tests/auto/accessibility/data/menu.qml
deleted file mode 100644
index 126914d1..00000000
--- a/tests/auto/accessibility/data/menu.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Menu { }
diff --git a/tests/auto/accessibility/data/menuitem.qml b/tests/auto/accessibility/data/menuitem.qml
deleted file mode 100644
index 97fd478f..00000000
--- a/tests/auto/accessibility/data/menuitem.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-MenuItem {
- text: "MenuItem"
-}
diff --git a/tests/auto/accessibility/data/monthgrid-2.qml b/tests/auto/accessibility/data/monthgrid-2.qml
deleted file mode 100644
index 6368d090..00000000
--- a/tests/auto/accessibility/data/monthgrid-2.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-MonthGrid {
- title: "MonthGrid"
-}
diff --git a/tests/auto/accessibility/data/monthgrid.qml b/tests/auto/accessibility/data/monthgrid.qml
deleted file mode 100644
index 03de2499..00000000
--- a/tests/auto/accessibility/data/monthgrid.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-MonthGrid {
- title: "MonthGrid"
- Accessible.name: title
-}
diff --git a/tests/auto/accessibility/data/page.qml b/tests/auto/accessibility/data/page.qml
deleted file mode 100644
index 84036878..00000000
--- a/tests/auto/accessibility/data/page.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Page {
- title: "Page"
-}
diff --git a/tests/auto/accessibility/data/pageindicator.qml b/tests/auto/accessibility/data/pageindicator.qml
deleted file mode 100644
index 30184167..00000000
--- a/tests/auto/accessibility/data/pageindicator.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-PageIndicator { }
diff --git a/tests/auto/accessibility/data/pane.qml b/tests/auto/accessibility/data/pane.qml
deleted file mode 100644
index bde4fad5..00000000
--- a/tests/auto/accessibility/data/pane.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Pane { }
diff --git a/tests/auto/accessibility/data/popup.qml b/tests/auto/accessibility/data/popup.qml
deleted file mode 100644
index 907d0c55..00000000
--- a/tests/auto/accessibility/data/popup.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Popup { }
diff --git a/tests/auto/accessibility/data/progressbar.qml b/tests/auto/accessibility/data/progressbar.qml
deleted file mode 100644
index 74b2cb84..00000000
--- a/tests/auto/accessibility/data/progressbar.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ProgressBar {
- from: 0
- to: 100
- value: 50
-}
diff --git a/tests/auto/accessibility/data/radiobutton.qml b/tests/auto/accessibility/data/radiobutton.qml
deleted file mode 100644
index 1b046d3e..00000000
--- a/tests/auto/accessibility/data/radiobutton.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-RadioButton {
- text: "RadioButton"
-}
diff --git a/tests/auto/accessibility/data/radiodelegate.qml b/tests/auto/accessibility/data/radiodelegate.qml
deleted file mode 100644
index f2bec8bc..00000000
--- a/tests/auto/accessibility/data/radiodelegate.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-RadioDelegate {
- text: "RadioDelegate"
-}
diff --git a/tests/auto/accessibility/data/rangeslider.qml b/tests/auto/accessibility/data/rangeslider.qml
deleted file mode 100644
index 95bff377..00000000
--- a/tests/auto/accessibility/data/rangeslider.qml
+++ /dev/null
@@ -1,11 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-RangeSlider {
- from: 0
- to: 100
- first.value: 25
- second.value: 75
- stepSize: 1
- orientation: Qt.Horizontal
-}
diff --git a/tests/auto/accessibility/data/roundbutton.qml b/tests/auto/accessibility/data/roundbutton.qml
deleted file mode 100644
index 20f0ed9a..00000000
--- a/tests/auto/accessibility/data/roundbutton.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-RoundButton {
- text: "RoundButton"
-}
diff --git a/tests/auto/accessibility/data/scrollbar.qml b/tests/auto/accessibility/data/scrollbar.qml
deleted file mode 100644
index 1e7cf155..00000000
--- a/tests/auto/accessibility/data/scrollbar.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollBar { }
diff --git a/tests/auto/accessibility/data/scrollindicator.qml b/tests/auto/accessibility/data/scrollindicator.qml
deleted file mode 100644
index 24ef9271..00000000
--- a/tests/auto/accessibility/data/scrollindicator.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ScrollIndicator { }
diff --git a/tests/auto/accessibility/data/slider.qml b/tests/auto/accessibility/data/slider.qml
deleted file mode 100644
index 0d1db79c..00000000
--- a/tests/auto/accessibility/data/slider.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Slider {
- from: 0
- to: 100
- value: 50
- stepSize: 1
- orientation: Qt.Horizontal
-}
diff --git a/tests/auto/accessibility/data/spinbox.qml b/tests/auto/accessibility/data/spinbox.qml
deleted file mode 100644
index 3da1f868..00000000
--- a/tests/auto/accessibility/data/spinbox.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-SpinBox {
- from: 0
- to: 100
- value: 50
- stepSize: 1
-}
diff --git a/tests/auto/accessibility/data/stackview.qml b/tests/auto/accessibility/data/stackview.qml
deleted file mode 100644
index 48cb384e..00000000
--- a/tests/auto/accessibility/data/stackview.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-StackView { }
diff --git a/tests/auto/accessibility/data/swipedelegate.qml b/tests/auto/accessibility/data/swipedelegate.qml
deleted file mode 100644
index d6f503c4..00000000
--- a/tests/auto/accessibility/data/swipedelegate.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-SwipeDelegate {
- text: "SwipeDelegate"
-}
diff --git a/tests/auto/accessibility/data/swipeview.qml b/tests/auto/accessibility/data/swipeview.qml
deleted file mode 100644
index efb185e6..00000000
--- a/tests/auto/accessibility/data/swipeview.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-SwipeView { }
diff --git a/tests/auto/accessibility/data/switch.qml b/tests/auto/accessibility/data/switch.qml
deleted file mode 100644
index b9c8a572..00000000
--- a/tests/auto/accessibility/data/switch.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Switch {
- text: "Switch"
-}
diff --git a/tests/auto/accessibility/data/switchdelegate.qml b/tests/auto/accessibility/data/switchdelegate.qml
deleted file mode 100644
index d0d9599c..00000000
--- a/tests/auto/accessibility/data/switchdelegate.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-SwitchDelegate {
- text: "SwitchDelegate"
-}
diff --git a/tests/auto/accessibility/data/tabbar.qml b/tests/auto/accessibility/data/tabbar.qml
deleted file mode 100644
index d65b1305..00000000
--- a/tests/auto/accessibility/data/tabbar.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TabBar { }
diff --git a/tests/auto/accessibility/data/tabbutton.qml b/tests/auto/accessibility/data/tabbutton.qml
deleted file mode 100644
index 72277a9f..00000000
--- a/tests/auto/accessibility/data/tabbutton.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TabButton {
- text: "TabButton"
-}
diff --git a/tests/auto/accessibility/data/textarea.qml b/tests/auto/accessibility/data/textarea.qml
deleted file mode 100644
index c861cda4..00000000
--- a/tests/auto/accessibility/data/textarea.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TextArea {
- text: "TextArea"
-}
diff --git a/tests/auto/accessibility/data/textfield.qml b/tests/auto/accessibility/data/textfield.qml
deleted file mode 100644
index 222a1223..00000000
--- a/tests/auto/accessibility/data/textfield.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TextField {
- text: "TextField"
-}
diff --git a/tests/auto/accessibility/data/toolbar.qml b/tests/auto/accessibility/data/toolbar.qml
deleted file mode 100644
index f8cbe311..00000000
--- a/tests/auto/accessibility/data/toolbar.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ToolBar { }
diff --git a/tests/auto/accessibility/data/toolbutton.qml b/tests/auto/accessibility/data/toolbutton.qml
deleted file mode 100644
index 84d67cfa..00000000
--- a/tests/auto/accessibility/data/toolbutton.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ToolButton {
- text: "ToolButton"
-}
diff --git a/tests/auto/accessibility/data/tooltip.qml b/tests/auto/accessibility/data/tooltip.qml
deleted file mode 100644
index a6f7718d..00000000
--- a/tests/auto/accessibility/data/tooltip.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ToolTip {
- text: "ToolTip"
-}
diff --git a/tests/auto/accessibility/data/tumbler.qml b/tests/auto/accessibility/data/tumbler.qml
deleted file mode 100644
index fda5c2bd..00000000
--- a/tests/auto/accessibility/data/tumbler.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Tumbler { }
diff --git a/tests/auto/accessibility/data/weeknumbercolumn-2.qml b/tests/auto/accessibility/data/weeknumbercolumn-2.qml
deleted file mode 100644
index 2c5b836b..00000000
--- a/tests/auto/accessibility/data/weeknumbercolumn-2.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-WeekNumberColumn { }
diff --git a/tests/auto/accessibility/data/weeknumbercolumn.qml b/tests/auto/accessibility/data/weeknumbercolumn.qml
deleted file mode 100644
index 71d533ef..00000000
--- a/tests/auto/accessibility/data/weeknumbercolumn.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import Qt.labs.calendar 1.0
-
-WeekNumberColumn {
- Accessible.name: "WeekNumberColumn"
-}
diff --git a/tests/auto/accessibility/tst_accessibility.cpp b/tests/auto/accessibility/tst_accessibility.cpp
deleted file mode 100644
index 0c2f2e74..00000000
--- a/tests/auto/accessibility/tst_accessibility.cpp
+++ /dev/null
@@ -1,182 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQml/qqmlcontext.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include "../shared/util.h"
-
-#if QT_CONFIG(accessibility)
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtGui/qpa/qplatformintegration.h>
-#include <QtGui/qpa/qplatformaccessibility.h>
-#include <QtQuick/private/qquickaccessibleattached_p.h>
-#endif
-
-class tst_accessibility : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void a11y_data();
- void a11y();
-
-private:
- QQmlEngine engine;
-};
-
-void tst_accessibility::a11y_data()
-{
- QTest::addColumn<QString>("name");
- QTest::addColumn<QAccessible::Role>("role");
- QTest::addColumn<QString>("text");
-
- QTest::newRow("AbstractButton") << "abstractbutton" << QAccessible::Button << "AbstractButton";
- QTest::newRow("BusyIndicator") << "busyindicator" << QAccessible::Indicator << "";
- QTest::newRow("Button") << "button" << QAccessible::Button << "Button";
- QTest::newRow("CheckBox") << "checkbox" << QAccessible::CheckBox << "CheckBox";
- QTest::newRow("CheckDelegate") << "checkdelegate" << QAccessible::CheckBox << "CheckDelegate";
- QTest::newRow("ComboBox") << "combobox" << QAccessible::ComboBox << "ComboBox";
- QTest::newRow("Container") << "container" << QAccessible::NoRole << "";
- QTest::newRow("Control") << "control" << QAccessible::NoRole << "";
- QTest::newRow("Dial") << "dial" << QAccessible::Dial << "";
- QTest::newRow("Dialog") << "dialog" << QAccessible::Dialog << "Dialog";
- QTest::newRow("Drawer") << "drawer" << QAccessible::Dialog << "";
- QTest::newRow("Frame") << "frame" << QAccessible::Border << "";
- QTest::newRow("GroupBox") << "groupbox" << QAccessible::Grouping << "GroupBox";
- QTest::newRow("ItemDelegate") << "itemdelegate" << QAccessible::ListItem << "ItemDelegate";
- QTest::newRow("Label") << "label" << QAccessible::StaticText << "Label";
- QTest::newRow("Menu") << "menu" << QAccessible::PopupMenu << "";
- QTest::newRow("MenuItem") << "menuitem" << QAccessible::MenuItem << "MenuItem";
- QTest::newRow("Page") << "page" << QAccessible::PageTab << "Page";
- QTest::newRow("PageIndicator") << "pageindicator" << QAccessible::Indicator << "";
- QTest::newRow("Pane") << "pane" << QAccessible::Pane << "";
- QTest::newRow("Popup") << "popup" << QAccessible::Dialog << "";
- QTest::newRow("ProgressBar") << "progressbar" << QAccessible::ProgressBar << "";
- QTest::newRow("RadioButton") << "radiobutton" << QAccessible::RadioButton << "RadioButton";
- QTest::newRow("RadioDelegate") << "radiodelegate" << QAccessible::RadioButton << "RadioDelegate";
- QTest::newRow("RangeSlider") << "rangeslider" << QAccessible::Slider << "";
- QTest::newRow("RoundButton") << "roundbutton" << QAccessible::Button << "RoundButton";
- QTest::newRow("ScrollBar") << "scrollbar" << QAccessible::ScrollBar << "";
- QTest::newRow("ScrollIndicator") << "scrollindicator" << QAccessible::Indicator << "";
- QTest::newRow("Slider") << "slider" << QAccessible::Slider << "";
- QTest::newRow("SpinBox") << "spinbox" << QAccessible::SpinBox << "";
- QTest::newRow("StackView") << "stackview" << QAccessible::LayeredPane << "";
- QTest::newRow("SwipeDelegate") << "swipedelegate" << QAccessible::ListItem << "SwipeDelegate";
- QTest::newRow("SwipeView") << "swipeview" << QAccessible::PageTabList << "";
- QTest::newRow("Switch") << "switch" << QAccessible::CheckBox << "Switch";
- QTest::newRow("SwitchDelegate") << "switchdelegate" << QAccessible::ListItem << "SwitchDelegate";
- QTest::newRow("TabBar") << "tabbar" << QAccessible::PageTabList << "";
- QTest::newRow("TabButton") << "tabbutton" << QAccessible::PageTab << "TabButton";
- QTest::newRow("TextArea") << "textarea" << QAccessible::EditableText << "";
- QTest::newRow("TextField") << "textfield" << QAccessible::EditableText << "";
- QTest::newRow("ToolBar") << "toolbar" << QAccessible::ToolBar << "";
- QTest::newRow("ToolButton") << "toolbutton" << QAccessible::Button << "ToolButton";
- QTest::newRow("ToolTip") << "tooltip" << QAccessible::ToolTip << "ToolTip";
- QTest::newRow("Tumbler") << "tumbler" << QAccessible::NoRole << ""; // TODO
-
- QTest::newRow("DayOfWeekRow") << "dayofweekrow" << QAccessible::NoRole << "DayOfWeekRow";
- QTest::newRow("MonthGrid") << "monthgrid" << QAccessible::NoRole << "MonthGrid";
- QTest::newRow("WeekNumberColumn") << "weeknumbercolumn" << QAccessible::NoRole << "WeekNumberColumn";
-}
-
-#if QT_CONFIG(accessibility)
-static QPlatformAccessibility *platformAccessibility()
-{
- QPlatformIntegration *pfIntegration = QGuiApplicationPrivate::platformIntegration();
- return pfIntegration ? pfIntegration->accessibility() : nullptr;
-}
-#endif
-
-void tst_accessibility::a11y()
-{
- QFETCH(QString, name);
- QFETCH(QAccessible::Role, role);
- QFETCH(QString, text);
-
- QString fn = name;
-#if !QT_CONFIG(accessibility)
- if (name == QLatin1String("dayofweekrow")
- || name == QLatin1String("monthgrid")
- || name == QLatin1String("weeknumbercolumn"))
- fn += QLatin1String("-2");
-#endif
-
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl(fn + ".qml"));
-
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
-
- QQuickItem *item = qobject_cast<QQuickItem *>(object.data());
- if (!item) {
- QQuickPopup *popup = qobject_cast<QQuickPopup *>(object.data());
- if (popup)
- item = popup->popupItem();
- }
- QVERIFY(item);
-
-#if QT_CONFIG(accessibility)
- QQuickAccessibleAttached *acc = QQuickAccessibleAttached::attachedProperties(item);
- if (name != QLatin1String("dayofweekrow")
- && name != QLatin1String("monthgrid")
- && name != QLatin1String("weeknumbercolumn")) {
- if (QAccessible::isActive()) {
- QVERIFY(acc);
- } else {
- QVERIFY(!acc);
- QPlatformAccessibility *accessibility = platformAccessibility();
- if (!accessibility)
- QSKIP("No QPlatformAccessibility available.");
- accessibility->setActive(true);
- acc = QQuickAccessibleAttached::attachedProperties(item);
- }
- }
- QVERIFY(acc);
- QCOMPARE(acc->role(), role);
- QCOMPARE(acc->name(), text);
-#else
- Q_UNUSED(role)
- Q_UNUSED(text)
-#endif
-}
-
-QTEST_MAIN(tst_accessibility)
-
-#include "tst_accessibility.moc"
diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro
deleted file mode 100644
index d528b848..00000000
--- a/tests/auto/auto.pro
+++ /dev/null
@@ -1,32 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- accessibility \
- calendar \
- controls \
- cursor \
- customization \
- designer \
- focus \
- font \
- palette \
- platform \
- pressandhold \
- qquickapplicationwindow \
- qquickcolor \
- qquickdrawer \
- qquickiconimage \
- qquickiconlabel \
- qquickimaginestyle \
- qquickmaterialstyle \
- qquickmaterialstyleconf \
- qquickmenu \
- qquickmenubar \
- qquickninepatchimage \
- qquickpopup \
- qquickstyle \
- qquickstyleselector \
- qquickuniversalstyle \
- qquickuniversalstyleconf \
- revisions \
- sanity \
- snippets
diff --git a/tests/auto/bic/data/QtQuickControls2.5.10.0.linux-gcc-amd64.txt b/tests/auto/bic/data/QtQuickControls2.5.10.0.linux-gcc-amd64.txt
deleted file mode 100644
index 1b41ce03..00000000
--- a/tests/auto/bic/data/QtQuickControls2.5.10.0.linux-gcc-amd64.txt
+++ /dev/null
@@ -1,10983 +0,0 @@
-Class std::__failure_type
- size=1 align=1
- base size=0 base align=1
-std::__failure_type (0x0x7fba168d6720) 0 empty
-
-Class std::__do_is_destructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_destructible_impl (0x0x7fba16930ea0) 0 empty
-
-Class std::__do_is_nt_destructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_nt_destructible_impl (0x0x7fba1645e120) 0 empty
-
-Class std::__do_is_default_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_default_constructible_impl (0x0x7fba1645e360) 0 empty
-
-Class std::__do_is_static_castable_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_static_castable_impl (0x0x7fba1645e5a0) 0 empty
-
-Class std::__do_is_direct_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_direct_constructible_impl (0x0x7fba1645e720) 0 empty
-
-Class std::__do_is_nary_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_nary_constructible_impl (0x0x7fba1645eae0) 0 empty
-
-Class std::__do_common_type_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_common_type_impl (0x0x7fba165172a0) 0 empty
-
-Class std::__do_member_type_wrapper
- size=1 align=1
- base size=0 base align=1
-std::__do_member_type_wrapper (0x0x7fba16517360) 0 empty
-
-Class std::__result_of_memfun_ref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memfun_ref_impl (0x0x7fba165176c0) 0 empty
-
-Class std::__result_of_memfun_deref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memfun_deref_impl (0x0x7fba16517780) 0 empty
-
-Class std::__result_of_memobj_ref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memobj_ref_impl (0x0x7fba16517840) 0 empty
-
-Class std::__result_of_memobj_deref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memobj_deref_impl (0x0x7fba16517900) 0 empty
-
-Class std::__result_of_other_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_other_impl (0x0x7fba16517ba0) 0 empty
-
-Class std::piecewise_construct_t
- size=1 align=1
- base size=0 base align=1
-std::piecewise_construct_t (0x0x7fba16517d80) 0 empty
-
-Class std::__true_type
- size=1 align=1
- base size=0 base align=1
-std::__true_type (0x0x7fba16595240) 0 empty
-
-Class std::__false_type
- size=1 align=1
- base size=0 base align=1
-std::__false_type (0x0x7fba165952a0) 0 empty
-
-Class std::input_iterator_tag
- size=1 align=1
- base size=0 base align=1
-std::input_iterator_tag (0x0x7fba165cff00) 0 empty
-
-Class std::output_iterator_tag
- size=1 align=1
- base size=0 base align=1
-std::output_iterator_tag (0x0x7fba165cff60) 0 empty
-
-Class std::forward_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::forward_iterator_tag (0x0x7fba16547340) 0 empty
- std::input_iterator_tag (0x0x7fba165fe000) 0 empty
-
-Class std::bidirectional_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::bidirectional_iterator_tag (0x0x7fba165473a8) 0 empty
- std::forward_iterator_tag (0x0x7fba16547410) 0 empty
- std::input_iterator_tag (0x0x7fba165fe060) 0 empty
-
-Class std::random_access_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::random_access_iterator_tag (0x0x7fba16547478) 0 empty
- std::bidirectional_iterator_tag (0x0x7fba165474e0) 0 empty
- std::forward_iterator_tag (0x0x7fba16547548) 0 empty
- std::input_iterator_tag (0x0x7fba165fe0c0) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_less_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_less_iter (0x0x7fba165fed20) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_less_val
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_less_val (0x0x7fba165fed80) 0 empty
-
-Class __gnu_cxx::__ops::_Val_less_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Val_less_iter (0x0x7fba165fede0) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_equal_to_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_equal_to_iter (0x0x7fba165fee40) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_equal_to_val
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_equal_to_val (0x0x7fba165feea0) 0 empty
-
-Class wait
- size=4 align=4
- base size=4 base align=4
-wait (0x0x7fba162c19c0) 0
-
-Class __locale_struct
- size=232 align=8
- base size=232 base align=8
-__locale_struct (0x0x7fba162c1c00) 0
-
-Class timespec
- size=16 align=8
- base size=16 base align=8
-timespec (0x0x7fba162c1cc0) 0
-
-Class timeval
- size=16 align=8
- base size=16 base align=8
-timeval (0x0x7fba162c1d20) 0
-
-Class pthread_attr_t
- size=56 align=8
- base size=56 base align=8
-pthread_attr_t (0x0x7fba162c1de0) 0
-
-Class __pthread_internal_list
- size=16 align=8
- base size=16 base align=8
-__pthread_internal_list (0x0x7fba162c1e40) 0
-
-Class random_data
- size=48 align=8
- base size=48 base align=8
-random_data (0x0x7fba16365300) 0
-
-Class drand48_data
- size=24 align=8
- base size=24 base align=8
-drand48_data (0x0x7fba16365360) 0
-
-Vtable for std::exception
-std::exception::_ZTVSt9exception: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9exception)
-16 (int (*)(...))std::exception::~exception
-24 (int (*)(...))std::exception::~exception
-32 (int (*)(...))std::exception::what
-
-Class std::exception
- size=8 align=8
- base size=8 base align=8
-std::exception (0x0x7fba163653c0) 0 nearly-empty
- vptr=((& std::exception::_ZTVSt9exception) + 16u)
-
-Vtable for std::bad_exception
-std::bad_exception::_ZTVSt13bad_exception: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt13bad_exception)
-16 (int (*)(...))std::bad_exception::~bad_exception
-24 (int (*)(...))std::bad_exception::~bad_exception
-32 (int (*)(...))std::bad_exception::what
-
-Class std::bad_exception
- size=8 align=8
- base size=8 base align=8
-std::bad_exception (0x0x7fba16547a90) 0 nearly-empty
- vptr=((& std::bad_exception::_ZTVSt13bad_exception) + 16u)
- std::exception (0x0x7fba16365420) 0 nearly-empty
- primary-for std::bad_exception (0x0x7fba16547a90)
-
-Class std::__exception_ptr::exception_ptr
- size=8 align=8
- base size=8 base align=8
-std::__exception_ptr::exception_ptr (0x0x7fba16365480) 0
-
-Vtable for std::nested_exception
-std::nested_exception::_ZTVSt16nested_exception: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt16nested_exception)
-16 (int (*)(...))std::nested_exception::~nested_exception
-24 (int (*)(...))std::nested_exception::~nested_exception
-
-Class std::nested_exception
- size=16 align=8
- base size=16 base align=8
-std::nested_exception (0x0x7fba163654e0) 0
- vptr=((& std::nested_exception::_ZTVSt16nested_exception) + 16u)
-
-Vtable for std::bad_alloc
-std::bad_alloc::_ZTVSt9bad_alloc: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9bad_alloc)
-16 (int (*)(...))std::bad_alloc::~bad_alloc
-24 (int (*)(...))std::bad_alloc::~bad_alloc
-32 (int (*)(...))std::bad_alloc::what
-
-Class std::bad_alloc
- size=8 align=8
- base size=8 base align=8
-std::bad_alloc (0x0x7fba16547c98) 0 nearly-empty
- vptr=((& std::bad_alloc::_ZTVSt9bad_alloc) + 16u)
- std::exception (0x0x7fba16365900) 0 nearly-empty
- primary-for std::bad_alloc (0x0x7fba16547c98)
-
-Vtable for std::bad_array_new_length
-std::bad_array_new_length::_ZTVSt20bad_array_new_length: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt20bad_array_new_length)
-16 (int (*)(...))std::bad_array_new_length::~bad_array_new_length
-24 (int (*)(...))std::bad_array_new_length::~bad_array_new_length
-32 (int (*)(...))std::bad_array_new_length::what
-
-Class std::bad_array_new_length
- size=8 align=8
- base size=8 base align=8
-std::bad_array_new_length (0x0x7fba16547d00) 0 nearly-empty
- vptr=((& std::bad_array_new_length::_ZTVSt20bad_array_new_length) + 16u)
- std::bad_alloc (0x0x7fba16547d68) 0 nearly-empty
- primary-for std::bad_array_new_length (0x0x7fba16547d00)
- std::exception (0x0x7fba16365960) 0 nearly-empty
- primary-for std::bad_alloc (0x0x7fba16547d68)
-
-Class std::nothrow_t
- size=1 align=1
- base size=0 base align=1
-std::nothrow_t (0x0x7fba163659c0) 0 empty
-
-Class __exception
- size=40 align=8
- base size=40 base align=8
-__exception (0x0x7fba160da600) 0
-
-Class lconv
- size=96 align=8
- base size=96 base align=8
-lconv (0x0x7fba15eec300) 0
-
-Vtable for __cxxabiv1::__forced_unwind
-__cxxabiv1::__forced_unwind::_ZTVN10__cxxabiv115__forced_unwindE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN10__cxxabiv115__forced_unwindE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class __cxxabiv1::__forced_unwind
- size=8 align=8
- base size=8 base align=8
-__cxxabiv1::__forced_unwind (0x0x7fba15eec360) 0 nearly-empty
- vptr=((& __cxxabiv1::__forced_unwind::_ZTVN10__cxxabiv115__forced_unwindE) + 16u)
-
-Class sched_param
- size=4 align=4
- base size=4 base align=4
-sched_param (0x0x7fba15f8d240) 0
-
-Class __sched_param
- size=4 align=4
- base size=4 base align=4
-__sched_param (0x0x7fba15f8d2a0) 0
-
-Class timex
- size=208 align=8
- base size=208 base align=8
-timex (0x0x7fba15f8d360) 0
-
-Class tm
- size=56 align=8
- base size=56 base align=8
-tm (0x0x7fba15f8d3c0) 0
-
-Class itimerspec
- size=32 align=8
- base size=32 base align=8
-itimerspec (0x0x7fba15f8d420) 0
-
-Class _pthread_cleanup_buffer
- size=32 align=8
- base size=32 base align=8
-_pthread_cleanup_buffer (0x0x7fba15f8d480) 0
-
-Class __pthread_cleanup_frame
- size=24 align=8
- base size=24 base align=8
-__pthread_cleanup_frame (0x0x7fba15f8d5a0) 0
-
-Class __pthread_cleanup_class
- size=24 align=8
- base size=24 base align=8
-__pthread_cleanup_class (0x0x7fba15f8d600) 0
-
-Class _IO_marker
- size=24 align=8
- base size=24 base align=8
-_IO_marker (0x0x7fba15f8da20) 0
-
-Class _IO_FILE
- size=216 align=8
- base size=216 base align=8
-_IO_FILE (0x0x7fba15f8da80) 0
-
-Class std::_Hash_impl
- size=1 align=1
- base size=0 base align=1
-std::_Hash_impl (0x0x7fba15aac2a0) 0 empty
-
-Class std::_Fnv_hash_impl
- size=1 align=1
- base size=0 base align=1
-std::_Fnv_hash_impl (0x0x7fba15aac300) 0 empty
-
-Class std::__numeric_limits_base
- size=1 align=1
- base size=0 base align=1
-std::__numeric_limits_base (0x0x7fba15b7d2a0) 0 empty
-
-Class std::_Bit_reference
- size=16 align=8
- base size=16 base align=8
-std::_Bit_reference (0x0x7fba159350c0) 0
-
-Class std::_Bit_iterator_base
- size=16 align=8
- base size=12 base align=8
-std::_Bit_iterator_base (0x0x7fba15ac6af8) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7fba15935180) 0 empty
-
-Class std::_Bit_iterator
- size=16 align=8
- base size=12 base align=8
-std::_Bit_iterator (0x0x7fba15ac6b60) 0
- std::_Bit_iterator_base (0x0x7fba15ac6bc8) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7fba159351e0) 0 empty
-
-Class std::_Bit_const_iterator
- size=16 align=8
- base size=12 base align=8
-std::_Bit_const_iterator (0x0x7fba15ac6c30) 0
- std::_Bit_iterator_base (0x0x7fba15ac6c98) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7fba15935240) 0 empty
-
-Class std::random_device
- size=5000 align=8
- base size=5000 base align=8
-std::random_device (0x0x7fba15756060) 0
-
-Class std::bernoulli_distribution::param_type
- size=8 align=8
- base size=8 base align=8
-std::bernoulli_distribution::param_type (0x0x7fba15756de0) 0
-
-Class std::bernoulli_distribution
- size=8 align=8
- base size=8 base align=8
-std::bernoulli_distribution (0x0x7fba15756d80) 0
-
-Class std::seed_seq
- size=24 align=8
- base size=24 base align=8
-std::seed_seq (0x0x7fba1549fd80) 0
-
-Class qIsNull(double)::U
- size=8 align=8
- base size=8 base align=8
-qIsNull(double)::U (0x0x7fba140858a0) 0
-
-Class qIsNull(float)::U
- size=4 align=4
- base size=4 base align=4
-qIsNull(float)::U (0x0x7fba14085900) 0
-
-Class QSysInfo
- size=1 align=1
- base size=0 base align=1
-QSysInfo (0x0x7fba1416e3c0) 0 empty
-
-Class QMessageLogContext
- size=32 align=8
- base size=32 base align=8
-QMessageLogContext (0x0x7fba1416e420) 0
-
-Class QMessageLogger
- size=32 align=8
- base size=32 base align=8
-QMessageLogger (0x0x7fba1416e480) 0
-
-Class QFlag
- size=4 align=4
- base size=4 base align=4
-QFlag (0x0x7fba1416e4e0) 0
-
-Class QIncompatibleFlag
- size=4 align=4
- base size=4 base align=4
-QIncompatibleFlag (0x0x7fba1416e780) 0
-
-Class std::__atomic_flag_base
- size=1 align=1
- base size=1 base align=1
-std::__atomic_flag_base (0x0x7fba1416ecc0) 0
-
-Class std::atomic_flag
- size=1 align=1
- base size=1 base align=1
-std::atomic_flag (0x0x7fba1415f9c0) 0
- std::__atomic_flag_base (0x0x7fba1416ed20) 0
-
-Class QAtomicInt
- size=4 align=4
- base size=4 base align=4
-QAtomicInt (0x0x7fba13d91138) 0
- QAtomicInteger<int> (0x0x7fba13d911a0) 0
- QBasicAtomicInteger<int> (0x0x7fba13d0e480) 0
-
-Class QInternal
- size=1 align=1
- base size=0 base align=1
-QInternal (0x0x7fba13bc5a20) 0 empty
-
-Class QtPrivate::QSlotObjectBase
- size=16 align=8
- base size=16 base align=8
-QtPrivate::QSlotObjectBase (0x0x7fba139c7a80) 0
-
-Class QGenericArgument
- size=16 align=8
- base size=16 base align=8
-QGenericArgument (0x0x7fba139c7ba0) 0
-
-Class QGenericReturnArgument
- size=16 align=8
- base size=16 base align=8
-QGenericReturnArgument (0x0x7fba13b97bc8) 0
- QGenericArgument (0x0x7fba139c7c00) 0
-
-Class QMetaObject
- size=48 align=8
- base size=48 base align=8
-QMetaObject (0x0x7fba139c7d80) 0
-
-Class QMetaObject::Connection
- size=8 align=8
- base size=8 base align=8
-QMetaObject::Connection (0x0x7fba139c7e40) 0
-
-Class QLatin1Char
- size=1 align=1
- base size=1 base align=1
-QLatin1Char (0x0x7fba13681ea0) 0
-
-Class QChar
- size=2 align=2
- base size=2 base align=2
-QChar (0x0x7fba13681f00) 0
-
-Class QtPrivate::RefCount
- size=4 align=4
- base size=4 base align=4
-QtPrivate::RefCount (0x0x7fba1372b1e0) 0
-
-Class QArrayData
- size=24 align=8
- base size=24 base align=8
-QArrayData (0x0x7fba1372b240) 0
-
-Class QtPrivate::QContainerImplHelper
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QContainerImplHelper (0x0x7fba1372b5a0) 0 empty
-
-Class std::locale
- size=8 align=8
- base size=8 base align=8
-std::locale (0x0x7fba1372b600) 0
-
-Vtable for std::locale::facet
-std::locale::facet::_ZTVNSt6locale5facetE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt6locale5facetE)
-16 (int (*)(...))std::locale::facet::~facet
-24 (int (*)(...))std::locale::facet::~facet
-
-Class std::locale::facet
- size=16 align=8
- base size=12 base align=8
-std::locale::facet (0x0x7fba1372b660) 0
- vptr=((& std::locale::facet::_ZTVNSt6locale5facetE) + 16u)
-
-Class std::locale::id
- size=8 align=8
- base size=8 base align=8
-std::locale::id (0x0x7fba1372b6c0) 0
-
-Class std::locale::_Impl
- size=40 align=8
- base size=40 base align=8
-std::locale::_Impl (0x0x7fba1372b720) 0
-
-Class std::__cow_string
- size=8 align=8
- base size=8 base align=8
-std::__cow_string (0x0x7fba1372bae0) 0
-
-Vtable for std::logic_error
-std::logic_error::_ZTVSt11logic_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt11logic_error)
-16 (int (*)(...))std::logic_error::~logic_error
-24 (int (*)(...))std::logic_error::~logic_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::logic_error
- size=16 align=8
- base size=16 base align=8
-std::logic_error (0x0x7fba1342f138) 0
- vptr=((& std::logic_error::_ZTVSt11logic_error) + 16u)
- std::exception (0x0x7fba1372bba0) 0 nearly-empty
- primary-for std::logic_error (0x0x7fba1342f138)
-
-Vtable for std::domain_error
-std::domain_error::_ZTVSt12domain_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12domain_error)
-16 (int (*)(...))std::domain_error::~domain_error
-24 (int (*)(...))std::domain_error::~domain_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::domain_error
- size=16 align=8
- base size=16 base align=8
-std::domain_error (0x0x7fba1342f1a0) 0
- vptr=((& std::domain_error::_ZTVSt12domain_error) + 16u)
- std::logic_error (0x0x7fba1342f208) 0
- primary-for std::domain_error (0x0x7fba1342f1a0)
- std::exception (0x0x7fba1372bc00) 0 nearly-empty
- primary-for std::logic_error (0x0x7fba1342f208)
-
-Vtable for std::invalid_argument
-std::invalid_argument::_ZTVSt16invalid_argument: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt16invalid_argument)
-16 (int (*)(...))std::invalid_argument::~invalid_argument
-24 (int (*)(...))std::invalid_argument::~invalid_argument
-32 (int (*)(...))std::logic_error::what
-
-Class std::invalid_argument
- size=16 align=8
- base size=16 base align=8
-std::invalid_argument (0x0x7fba1342f270) 0
- vptr=((& std::invalid_argument::_ZTVSt16invalid_argument) + 16u)
- std::logic_error (0x0x7fba1342f2d8) 0
- primary-for std::invalid_argument (0x0x7fba1342f270)
- std::exception (0x0x7fba1372bc60) 0 nearly-empty
- primary-for std::logic_error (0x0x7fba1342f2d8)
-
-Vtable for std::length_error
-std::length_error::_ZTVSt12length_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12length_error)
-16 (int (*)(...))std::length_error::~length_error
-24 (int (*)(...))std::length_error::~length_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::length_error
- size=16 align=8
- base size=16 base align=8
-std::length_error (0x0x7fba1342f340) 0
- vptr=((& std::length_error::_ZTVSt12length_error) + 16u)
- std::logic_error (0x0x7fba1342f3a8) 0
- primary-for std::length_error (0x0x7fba1342f340)
- std::exception (0x0x7fba1372bcc0) 0 nearly-empty
- primary-for std::logic_error (0x0x7fba1342f3a8)
-
-Vtable for std::out_of_range
-std::out_of_range::_ZTVSt12out_of_range: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12out_of_range)
-16 (int (*)(...))std::out_of_range::~out_of_range
-24 (int (*)(...))std::out_of_range::~out_of_range
-32 (int (*)(...))std::logic_error::what
-
-Class std::out_of_range
- size=16 align=8
- base size=16 base align=8
-std::out_of_range (0x0x7fba1342f410) 0
- vptr=((& std::out_of_range::_ZTVSt12out_of_range) + 16u)
- std::logic_error (0x0x7fba1342f478) 0
- primary-for std::out_of_range (0x0x7fba1342f410)
- std::exception (0x0x7fba1372bd20) 0 nearly-empty
- primary-for std::logic_error (0x0x7fba1342f478)
-
-Vtable for std::runtime_error
-std::runtime_error::_ZTVSt13runtime_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt13runtime_error)
-16 (int (*)(...))std::runtime_error::~runtime_error
-24 (int (*)(...))std::runtime_error::~runtime_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::runtime_error
- size=16 align=8
- base size=16 base align=8
-std::runtime_error (0x0x7fba1342f4e0) 0
- vptr=((& std::runtime_error::_ZTVSt13runtime_error) + 16u)
- std::exception (0x0x7fba1372bd80) 0 nearly-empty
- primary-for std::runtime_error (0x0x7fba1342f4e0)
-
-Vtable for std::range_error
-std::range_error::_ZTVSt11range_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt11range_error)
-16 (int (*)(...))std::range_error::~range_error
-24 (int (*)(...))std::range_error::~range_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::range_error
- size=16 align=8
- base size=16 base align=8
-std::range_error (0x0x7fba1342f548) 0
- vptr=((& std::range_error::_ZTVSt11range_error) + 16u)
- std::runtime_error (0x0x7fba1342f5b0) 0
- primary-for std::range_error (0x0x7fba1342f548)
- std::exception (0x0x7fba1372bde0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7fba1342f5b0)
-
-Vtable for std::overflow_error
-std::overflow_error::_ZTVSt14overflow_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt14overflow_error)
-16 (int (*)(...))std::overflow_error::~overflow_error
-24 (int (*)(...))std::overflow_error::~overflow_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::overflow_error
- size=16 align=8
- base size=16 base align=8
-std::overflow_error (0x0x7fba1342f618) 0
- vptr=((& std::overflow_error::_ZTVSt14overflow_error) + 16u)
- std::runtime_error (0x0x7fba1342f680) 0
- primary-for std::overflow_error (0x0x7fba1342f618)
- std::exception (0x0x7fba1372be40) 0 nearly-empty
- primary-for std::runtime_error (0x0x7fba1342f680)
-
-Vtable for std::underflow_error
-std::underflow_error::_ZTVSt15underflow_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt15underflow_error)
-16 (int (*)(...))std::underflow_error::~underflow_error
-24 (int (*)(...))std::underflow_error::~underflow_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::underflow_error
- size=16 align=8
- base size=16 base align=8
-std::underflow_error (0x0x7fba1342f6e8) 0
- vptr=((& std::underflow_error::_ZTVSt15underflow_error) + 16u)
- std::runtime_error (0x0x7fba1342f750) 0
- primary-for std::underflow_error (0x0x7fba1342f6e8)
- std::exception (0x0x7fba1372bea0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7fba1342f750)
-
-Vtable for std::_V2::error_category
-std::_V2::error_category::_ZTVNSt3_V214error_categoryE: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt3_V214error_categoryE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))std::_V2::error_category::_M_message
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))std::_V2::error_category::default_error_condition
-64 (int (*)(...))std::_V2::error_category::equivalent
-72 (int (*)(...))std::_V2::error_category::equivalent
-
-Class std::_V2::error_category
- size=8 align=8
- base size=8 base align=8
-std::_V2::error_category (0x0x7fba1346e060) 0 nearly-empty
- vptr=((& std::_V2::error_category::_ZTVNSt3_V214error_categoryE) + 16u)
-
-Class std::error_code
- size=16 align=8
- base size=16 base align=8
-std::error_code (0x0x7fba1346e2a0) 0
-
-Class std::error_condition
- size=16 align=8
- base size=16 base align=8
-std::error_condition (0x0x7fba1346e420) 0
-
-Vtable for std::system_error
-std::system_error::_ZTVSt12system_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12system_error)
-16 (int (*)(...))std::system_error::~system_error
-24 (int (*)(...))std::system_error::~system_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::system_error
- size=32 align=8
- base size=32 base align=8
-std::system_error (0x0x7fba1342fc30) 0
- vptr=((& std::system_error::_ZTVSt12system_error) + 16u)
- std::runtime_error (0x0x7fba1342fc98) 0
- primary-for std::system_error (0x0x7fba1342fc30)
- std::exception (0x0x7fba1346e660) 0 nearly-empty
- primary-for std::runtime_error (0x0x7fba1342fc98)
-
-Vtable for std::ios_base::failure
-std::ios_base::failure::_ZTVNSt8ios_base7failureB5cxx11E: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt8ios_base7failureB5cxx11E)
-16 (int (*)(...))std::ios_base::failure::~failure
-24 (int (*)(...))std::ios_base::failure::~failure
-32 (int (*)(...))std::ios_base::failure::what
-
-Class std::ios_base::failure
- size=32 align=8
- base size=32 base align=8
-std::ios_base::failure (0x0x7fba134cc888) 0
- vptr=((& std::ios_base::failure::_ZTVNSt8ios_base7failureB5cxx11E) + 16u)
- std::system_error (0x0x7fba134cc8f0) 0
- primary-for std::ios_base::failure (0x0x7fba134cc888)
- std::runtime_error (0x0x7fba134cc958) 0
- primary-for std::system_error (0x0x7fba134cc8f0)
- std::exception (0x0x7fba1346e960) 0 nearly-empty
- primary-for std::runtime_error (0x0x7fba134cc958)
-
-Class std::ios_base::_Callback_list
- size=24 align=8
- base size=24 base align=8
-std::ios_base::_Callback_list (0x0x7fba1346e9c0) 0
-
-Class std::ios_base::_Words
- size=16 align=8
- base size=16 base align=8
-std::ios_base::_Words (0x0x7fba1346ea20) 0
-
-Class std::ios_base::Init
- size=1 align=1
- base size=0 base align=1
-std::ios_base::Init (0x0x7fba1346ea80) 0 empty
-
-Vtable for std::ios_base
-std::ios_base::_ZTVSt8ios_base: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt8ios_base)
-16 (int (*)(...))std::ios_base::~ios_base
-24 (int (*)(...))std::ios_base::~ios_base
-
-Class std::ios_base
- size=216 align=8
- base size=216 base align=8
-std::ios_base (0x0x7fba1346e900) 0
- vptr=((& std::ios_base::_ZTVSt8ios_base) + 16u)
-
-Class std::ctype_base
- size=1 align=1
- base size=0 base align=1
-std::ctype_base (0x0x7fba131a2240) 0 empty
-
-Class std::__num_base
- size=1 align=1
- base size=0 base align=1
-std::__num_base (0x0x7fba131a2900) 0 empty
-
-VTT for std::basic_ostream<char>
-std::basic_ostream<char>::_ZTTSo: 2u entries
-0 ((& std::basic_ostream<char>::_ZTVSo) + 24u)
-8 ((& std::basic_ostream<char>::_ZTVSo) + 64u)
-
-VTT for std::basic_ostream<wchar_t>
-std::basic_ostream<wchar_t>::_ZTTSt13basic_ostreamIwSt11char_traitsIwEE: 2u entries
-0 ((& std::basic_ostream<wchar_t>::_ZTVSt13basic_ostreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_ostream<wchar_t>::_ZTVSt13basic_ostreamIwSt11char_traitsIwEE) + 64u)
-
-VTT for std::basic_istream<char>
-std::basic_istream<char>::_ZTTSi: 2u entries
-0 ((& std::basic_istream<char>::_ZTVSi) + 24u)
-8 ((& std::basic_istream<char>::_ZTVSi) + 64u)
-
-VTT for std::basic_istream<wchar_t>
-std::basic_istream<wchar_t>::_ZTTSt13basic_istreamIwSt11char_traitsIwEE: 2u entries
-0 ((& std::basic_istream<wchar_t>::_ZTVSt13basic_istreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_istream<wchar_t>::_ZTVSt13basic_istreamIwSt11char_traitsIwEE) + 64u)
-
-Construction vtable for std::basic_istream<char> (0x0x7fba1318e208 instance) in std::basic_iostream<char>
-std::basic_iostream<char>::_ZTCSd0_Si: 10u entries
-0 24u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISi)
-24 0u
-32 0u
-40 18446744073709551592u
-48 (int (*)(...))-24
-56 (int (*)(...))(& _ZTISi)
-64 0u
-72 0u
-
-Construction vtable for std::basic_ostream<char> (0x0x7fba1318e2d8 instance) in std::basic_iostream<char>
-std::basic_iostream<char>::_ZTCSd16_So: 10u entries
-0 8u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISo)
-24 0u
-32 0u
-40 18446744073709551608u
-48 (int (*)(...))-8
-56 (int (*)(...))(& _ZTISo)
-64 0u
-72 0u
-
-VTT for std::basic_iostream<char>
-std::basic_iostream<char>::_ZTTSd: 7u entries
-0 ((& std::basic_iostream<char>::_ZTVSd) + 24u)
-8 ((& std::basic_iostream<char>::_ZTCSd0_Si) + 24u)
-16 ((& std::basic_iostream<char>::_ZTCSd0_Si) + 64u)
-24 ((& std::basic_iostream<char>::_ZTCSd16_So) + 24u)
-32 ((& std::basic_iostream<char>::_ZTCSd16_So) + 64u)
-40 ((& std::basic_iostream<char>::_ZTVSd) + 104u)
-48 ((& std::basic_iostream<char>::_ZTVSd) + 64u)
-
-Construction vtable for std::basic_istream<wchar_t> (0x0x7fba1318e680 instance) in std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E: 10u entries
-0 24u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISt13basic_istreamIwSt11char_traitsIwEE)
-24 0u
-32 0u
-40 18446744073709551592u
-48 (int (*)(...))-24
-56 (int (*)(...))(& _ZTISt13basic_istreamIwSt11char_traitsIwEE)
-64 0u
-72 0u
-
-Construction vtable for std::basic_ostream<wchar_t> (0x0x7fba1318e750 instance) in std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E: 10u entries
-0 8u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISt13basic_ostreamIwSt11char_traitsIwEE)
-24 0u
-32 0u
-40 18446744073709551608u
-48 (int (*)(...))-8
-56 (int (*)(...))(& _ZTISt13basic_ostreamIwSt11char_traitsIwEE)
-64 0u
-72 0u
-
-VTT for std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTTSt14basic_iostreamIwSt11char_traitsIwEE: 7u entries
-0 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E) + 24u)
-16 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E) + 64u)
-24 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E) + 24u)
-32 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E) + 64u)
-40 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 104u)
-48 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 64u)
-
-Class QByteArrayDataPtr
- size=8 align=8
- base size=8 base align=8
-QByteArrayDataPtr (0x0x7fba12ddd180) 0
-
-Class QByteArray
- size=8 align=8
- base size=8 base align=8
-QByteArray (0x0x7fba12ddd1e0) 0
-
-Class QByteRef
- size=16 align=8
- base size=12 base align=8
-QByteRef (0x0x7fba12edb540) 0
-
-Class QStringDataPtr
- size=8 align=8
- base size=8 base align=8
-QStringDataPtr (0x0x7fba12edb8a0) 0
-
-Class QStringView
- size=16 align=8
- base size=16 base align=8
-QStringView (0x0x7fba12edbd20) 0
-
-Class QLatin1String
- size=16 align=8
- base size=16 base align=8
-QLatin1String (0x0x7fba12c09ba0) 0
-
-Class QString::Null
- size=1 align=1
- base size=0 base align=1
-QString::Null (0x0x7fba12c98240) 0 empty
-
-Class QString
- size=8 align=8
- base size=8 base align=8
-QString (0x0x7fba12c981e0) 0
-
-Class QCharRef
- size=16 align=8
- base size=12 base align=8
-QCharRef (0x0x7fba12a41300) 0
-
-Class QStringRef
- size=16 align=8
- base size=16 base align=8
-QStringRef (0x0x7fba12a41f00) 0
-
-Class QtPrivate::QHashCombine
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QHashCombine (0x0x7fba1283fb40) 0 empty
-
-Class QtPrivate::QHashCombineCommutative
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QHashCombineCommutative (0x0x7fba1283fba0) 0 empty
-
-Class std::__detail::_List_node_base
- size=16 align=8
- base size=16 base align=8
-std::__detail::_List_node_base (0x0x7fba1283fc00) 0
-
-Class QListData::NotArrayCompatibleLayout
- size=1 align=1
- base size=0 base align=1
-QListData::NotArrayCompatibleLayout (0x0x7fba12676000) 0 empty
-
-Class QListData::NotIndirectLayout
- size=1 align=1
- base size=0 base align=1
-QListData::NotIndirectLayout (0x0x7fba12676060) 0 empty
-
-Class QListData::ArrayCompatibleLayout
- size=1 align=1
- base size=1 base align=1
-QListData::ArrayCompatibleLayout (0x0x7fba125bd1a0) 0 empty
- QListData::NotIndirectLayout (0x0x7fba126760c0) 0 empty
-
-Class QListData::InlineWithPaddingLayout
- size=1 align=1
- base size=1 base align=1
-QListData::InlineWithPaddingLayout (0x0x7fba12679150) 0 empty
- QListData::NotArrayCompatibleLayout (0x0x7fba12676120) 0 empty
- QListData::NotIndirectLayout (0x0x7fba12676180) 0 empty
-
-Class QListData::IndirectLayout
- size=1 align=1
- base size=1 base align=1
-QListData::IndirectLayout (0x0x7fba125bd208) 0 empty
- QListData::NotArrayCompatibleLayout (0x0x7fba126761e0) 0 empty
-
-Class QListData::Data
- size=24 align=8
- base size=24 base align=8
-QListData::Data (0x0x7fba12676240) 0
-
-Class QListData
- size=8 align=8
- base size=8 base align=8
-QListData (0x0x7fba1283ff60) 0
-
-Class QRegExp
- size=8 align=8
- base size=8 base align=8
-QRegExp (0x0x7fba126766c0) 0
-
-Class QStringMatcher::Data
- size=272 align=8
- base size=272 base align=8
-QStringMatcher::Data (0x0x7fba12420900) 0
-
-Class QStringMatcher
- size=1048 align=8
- base size=1048 base align=8
-QStringMatcher (0x0x7fba124208a0) 0
-
-Class QStringList
- size=8 align=8
- base size=8 base align=8
-QStringList (0x0x7fba1241fc30) 0
- QList<QString> (0x0x7fba1241fc98) 0
- QListSpecialMethods<QString> (0x0x7fba12420ae0) 0 empty
-
-Class QScopedPointerPodDeleter
- size=1 align=1
- base size=0 base align=1
-QScopedPointerPodDeleter (0x0x7fba12420f00) 0 empty
-
-Class std::_Rb_tree_node_base
- size=32 align=8
- base size=32 base align=8
-std::_Rb_tree_node_base (0x0x7fba124c2a20) 0
-
-Class std::allocator_arg_t
- size=1 align=1
- base size=0 base align=1
-std::allocator_arg_t (0x0x7fba122c70c0) 0 empty
-
-Class std::__uses_alloc_base
- size=1 align=1
- base size=0 base align=1
-std::__uses_alloc_base (0x0x7fba122c7240) 0 empty
-
-Class std::__uses_alloc0::_Sink
- size=1 align=1
- base size=0 base align=1
-std::__uses_alloc0::_Sink (0x0x7fba122c7300) 0 empty
-
-Class std::__uses_alloc0
- size=1 align=1
- base size=1 base align=1
-std::__uses_alloc0 (0x0x7fba1249c5b0) 0
- std::__uses_alloc_base (0x0x7fba122c72a0) 0 empty
-
-Class std::_Swallow_assign
- size=1 align=1
- base size=0 base align=1
-std::_Swallow_assign (0x0x7fba11fb7360) 0 empty
-
-Class QtPrivate::AbstractDebugStreamFunction
- size=16 align=8
- base size=16 base align=8
-QtPrivate::AbstractDebugStreamFunction (0x0x7fba11fb75a0) 0
-
-Class QtPrivate::AbstractComparatorFunction
- size=24 align=8
- base size=24 base align=8
-QtPrivate::AbstractComparatorFunction (0x0x7fba11fb7660) 0
-
-Class QtPrivate::AbstractConverterFunction
- size=8 align=8
- base size=8 base align=8
-QtPrivate::AbstractConverterFunction (0x0x7fba11fb7780) 0
-
-Class QMetaType
- size=80 align=8
- base size=80 base align=8
-QMetaType (0x0x7fba11fb7900) 0
-
-Class QtMetaTypePrivate::VariantData
- size=24 align=8
- base size=20 base align=8
-QtMetaTypePrivate::VariantData (0x0x7fba11fb7d20) 0
-
-Class QtMetaTypePrivate::VectorBoolElements
- size=1 align=1
- base size=0 base align=1
-QtMetaTypePrivate::VectorBoolElements (0x0x7fba11fb7e40) 0 empty
-
-Class QtMetaTypePrivate::QSequentialIterableImpl
- size=104 align=8
- base size=104 base align=8
-QtMetaTypePrivate::QSequentialIterableImpl (0x0x7fba1211c7e0) 0
-
-Class QtMetaTypePrivate::QAssociativeIterableImpl
- size=112 align=8
- base size=112 base align=8
-QtMetaTypePrivate::QAssociativeIterableImpl (0x0x7fba1211cc00) 0
-
-Class QtMetaTypePrivate::QPairVariantInterfaceImpl
- size=40 align=8
- base size=40 base align=8
-QtMetaTypePrivate::QPairVariantInterfaceImpl (0x0x7fba1211cf00) 0
-
-Class std::chrono::_V2::system_clock
- size=1 align=1
- base size=0 base align=1
-std::chrono::_V2::system_clock (0x0x7fba11c0a780) 0 empty
-
-Class std::chrono::_V2::steady_clock
- size=1 align=1
- base size=0 base align=1
-std::chrono::_V2::steady_clock (0x0x7fba11d59600) 0 empty
-
-Vtable for QObjectData
-QObjectData::_ZTV11QObjectData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QObjectData)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))__cxa_pure_virtual
-
-Class QObjectData
- size=48 align=8
- base size=48 base align=8
-QObjectData (0x0x7fba11d59660) 0
- vptr=((& QObjectData::_ZTV11QObjectData) + 16u)
-
-Class QObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QObject::QPrivateSignal (0x0x7fba11d59840) 0 empty
-
-Vtable for QObject
-QObject::_ZTV7QObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QObject)
-16 (int (*)(...))QObject::metaObject
-24 (int (*)(...))QObject::qt_metacast
-32 (int (*)(...))QObject::qt_metacall
-40 (int (*)(...))QObject::~QObject
-48 (int (*)(...))QObject::~QObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QObject
- size=16 align=8
- base size=16 base align=8
-QObject (0x0x7fba11d597e0) 0
- vptr=((& QObject::_ZTV7QObject) + 16u)
-
-Vtable for QObjectUserData
-QObjectUserData::_ZTV15QObjectUserData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QObjectUserData)
-16 (int (*)(...))QObjectUserData::~QObjectUserData
-24 (int (*)(...))QObjectUserData::~QObjectUserData
-
-Class QObjectUserData
- size=8 align=8
- base size=8 base align=8
-QObjectUserData (0x0x7fba11a1fae0) 0 nearly-empty
- vptr=((& QObjectUserData::_ZTV15QObjectUserData) + 16u)
-
-Class QSignalBlocker
- size=16 align=8
- base size=10 base align=8
-QSignalBlocker (0x0x7fba11a1fb40) 0
-
-Class QAbstractAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractAnimation::QPrivateSignal (0x0x7fba11a1fc00) 0 empty
-
-Vtable for QAbstractAnimation
-QAbstractAnimation::_ZTV18QAbstractAnimation: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractAnimation)
-16 (int (*)(...))QAbstractAnimation::metaObject
-24 (int (*)(...))QAbstractAnimation::qt_metacast
-32 (int (*)(...))QAbstractAnimation::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QAbstractAnimation
- size=16 align=8
- base size=16 base align=8
-QAbstractAnimation (0x0x7fba11a487b8) 0
- vptr=((& QAbstractAnimation::_ZTV18QAbstractAnimation) + 16u)
- QObject (0x0x7fba11a1fba0) 0
- primary-for QAbstractAnimation (0x0x7fba11a487b8)
-
-Class QAnimationDriver::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAnimationDriver::QPrivateSignal (0x0x7fba11a1fcc0) 0 empty
-
-Vtable for QAnimationDriver
-QAnimationDriver::_ZTV16QAnimationDriver: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QAnimationDriver)
-16 (int (*)(...))QAnimationDriver::metaObject
-24 (int (*)(...))QAnimationDriver::qt_metacast
-32 (int (*)(...))QAnimationDriver::qt_metacall
-40 (int (*)(...))QAnimationDriver::~QAnimationDriver
-48 (int (*)(...))QAnimationDriver::~QAnimationDriver
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAnimationDriver::advance
-120 (int (*)(...))QAnimationDriver::elapsed
-128 (int (*)(...))QAnimationDriver::start
-136 (int (*)(...))QAnimationDriver::stop
-
-Class QAnimationDriver
- size=16 align=8
- base size=16 base align=8
-QAnimationDriver (0x0x7fba11a48820) 0
- vptr=((& QAnimationDriver::_ZTV16QAnimationDriver) + 16u)
- QObject (0x0x7fba11a1fc60) 0
- primary-for QAnimationDriver (0x0x7fba11a48820)
-
-Class QEventLoop::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QEventLoop::QPrivateSignal (0x0x7fba11a1fd80) 0 empty
-
-Vtable for QEventLoop
-QEventLoop::_ZTV10QEventLoop: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QEventLoop)
-16 (int (*)(...))QEventLoop::metaObject
-24 (int (*)(...))QEventLoop::qt_metacast
-32 (int (*)(...))QEventLoop::qt_metacall
-40 (int (*)(...))QEventLoop::~QEventLoop
-48 (int (*)(...))QEventLoop::~QEventLoop
-56 (int (*)(...))QEventLoop::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QEventLoop
- size=16 align=8
- base size=16 base align=8
-QEventLoop (0x0x7fba11a48888) 0
- vptr=((& QEventLoop::_ZTV10QEventLoop) + 16u)
- QObject (0x0x7fba11a1fd20) 0
- primary-for QEventLoop (0x0x7fba11a48888)
-
-Class QEventLoopLocker
- size=8 align=8
- base size=8 base align=8
-QEventLoopLocker (0x0x7fba11a1ff60) 0
-
-Class QAbstractEventDispatcher::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractEventDispatcher::QPrivateSignal (0x0x7fba11ad8060) 0 empty
-
-Class QAbstractEventDispatcher::TimerInfo
- size=12 align=4
- base size=12 base align=4
-QAbstractEventDispatcher::TimerInfo (0x0x7fba11ad80c0) 0
-
-Vtable for QAbstractEventDispatcher
-QAbstractEventDispatcher::_ZTV24QAbstractEventDispatcher: 28u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAbstractEventDispatcher)
-16 (int (*)(...))QAbstractEventDispatcher::metaObject
-24 (int (*)(...))QAbstractEventDispatcher::qt_metacast
-32 (int (*)(...))QAbstractEventDispatcher::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-184 (int (*)(...))__cxa_pure_virtual
-192 (int (*)(...))__cxa_pure_virtual
-200 (int (*)(...))__cxa_pure_virtual
-208 (int (*)(...))QAbstractEventDispatcher::startingUp
-216 (int (*)(...))QAbstractEventDispatcher::closingDown
-
-Class QAbstractEventDispatcher
- size=16 align=8
- base size=16 base align=8
-QAbstractEventDispatcher (0x0x7fba11a489c0) 0
- vptr=((& QAbstractEventDispatcher::_ZTV24QAbstractEventDispatcher) + 16u)
- QObject (0x0x7fba11ad8000) 0
- primary-for QAbstractEventDispatcher (0x0x7fba11a489c0)
-
-Vtable for std::type_info
-std::type_info::_ZTVSt9type_info: 8u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9type_info)
-16 (int (*)(...))std::type_info::~type_info
-24 (int (*)(...))std::type_info::~type_info
-32 (int (*)(...))std::type_info::__is_pointer_p
-40 (int (*)(...))std::type_info::__is_function_p
-48 (int (*)(...))std::type_info::__do_catch
-56 (int (*)(...))std::type_info::__do_upcast
-
-Class std::type_info
- size=16 align=8
- base size=16 base align=8
-std::type_info (0x0x7fba11ad8360) 0
- vptr=((& std::type_info::_ZTVSt9type_info) + 16u)
-
-Vtable for std::bad_cast
-std::bad_cast::_ZTVSt8bad_cast: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt8bad_cast)
-16 (int (*)(...))std::bad_cast::~bad_cast
-24 (int (*)(...))std::bad_cast::~bad_cast
-32 (int (*)(...))std::bad_cast::what
-
-Class std::bad_cast
- size=8 align=8
- base size=8 base align=8
-std::bad_cast (0x0x7fba11a48bc8) 0 nearly-empty
- vptr=((& std::bad_cast::_ZTVSt8bad_cast) + 16u)
- std::exception (0x0x7fba11ad83c0) 0 nearly-empty
- primary-for std::bad_cast (0x0x7fba11a48bc8)
-
-Vtable for std::bad_typeid
-std::bad_typeid::_ZTVSt10bad_typeid: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt10bad_typeid)
-16 (int (*)(...))std::bad_typeid::~bad_typeid
-24 (int (*)(...))std::bad_typeid::~bad_typeid
-32 (int (*)(...))std::bad_typeid::what
-
-Class std::bad_typeid
- size=8 align=8
- base size=8 base align=8
-std::bad_typeid (0x0x7fba11a48c30) 0 nearly-empty
- vptr=((& std::bad_typeid::_ZTVSt10bad_typeid) + 16u)
- std::exception (0x0x7fba11ad8420) 0 nearly-empty
- primary-for std::bad_typeid (0x0x7fba11a48c30)
-
-Vtable for std::bad_function_call
-std::bad_function_call::_ZTVSt17bad_function_call: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt17bad_function_call)
-16 (int (*)(...))std::bad_function_call::~bad_function_call
-24 (int (*)(...))std::bad_function_call::~bad_function_call
-32 (int (*)(...))std::bad_function_call::what
-
-Class std::bad_function_call
- size=8 align=8
- base size=8 base align=8
-std::bad_function_call (0x0x7fba11799ea0) 0 nearly-empty
- vptr=((& std::bad_function_call::_ZTVSt17bad_function_call) + 16u)
- std::exception (0x0x7fba118714e0) 0 nearly-empty
- primary-for std::bad_function_call (0x0x7fba11799ea0)
-
-Class std::_Nocopy_types
- size=16 align=8
- base size=16 base align=8
-std::_Nocopy_types (0x0x7fba118715a0) 0
-
-Class std::_Any_data
- size=16 align=8
- base size=16 base align=8
-std::_Any_data (0x0x7fba11871600) 0
-
-Class std::_Function_base
- size=24 align=8
- base size=24 base align=8
-std::_Function_base (0x0x7fba11871720) 0
-
-Class QMapNodeBase
- size=24 align=8
- base size=24 base align=8
-QMapNodeBase (0x0x7fba11871c00) 0
-
-Class QMapDataBase
- size=40 align=8
- base size=40 base align=8
-QMapDataBase (0x0x7fba11923180) 0
-
-Class QHashData::Node
- size=16 align=8
- base size=16 base align=8
-QHashData::Node (0x0x7fba11923540) 0
-
-Class QHashData
- size=48 align=8
- base size=44 base align=8
-QHashData (0x0x7fba119234e0) 0
-
-Class QHashDummyValue
- size=1 align=1
- base size=0 base align=1
-QHashDummyValue (0x0x7fba119235a0) 0 empty
-
-Class QVariant::PrivateShared
- size=16 align=8
- base size=12 base align=8
-QVariant::PrivateShared (0x0x7fba11923e40) 0
-
-Class QVariant::Private::Data
- size=8 align=8
- base size=8 base align=8
-QVariant::Private::Data (0x0x7fba11923f00) 0
-
-Class QVariant::Private
- size=16 align=8
- base size=12 base align=8
-QVariant::Private (0x0x7fba11923ea0) 0
-
-Class QVariant::Handler
- size=72 align=8
- base size=72 base align=8
-QVariant::Handler (0x0x7fba11923f60) 0
-
-Class QVariant
- size=16 align=8
- base size=16 base align=8
-QVariant (0x0x7fba11923de0) 0
-
-Class QVariantComparisonHelper
- size=8 align=8
- base size=8 base align=8
-QVariantComparisonHelper (0x0x7fba11400a80) 0
-
-Class QSequentialIterable::const_iterator
- size=112 align=8
- base size=112 base align=8
-QSequentialIterable::const_iterator (0x0x7fba114a8120) 0
-
-Class QSequentialIterable
- size=104 align=8
- base size=104 base align=8
-QSequentialIterable (0x0x7fba114a80c0) 0
-
-Class QAssociativeIterable::const_iterator
- size=120 align=8
- base size=120 base align=8
-QAssociativeIterable::const_iterator (0x0x7fba114a81e0) 0
-
-Class QAssociativeIterable
- size=112 align=8
- base size=112 base align=8
-QAssociativeIterable (0x0x7fba114a8180) 0
-
-Class QModelIndex
- size=24 align=8
- base size=24 base align=8
-QModelIndex (0x0x7fba111c24e0) 0
-
-Class QPersistentModelIndex
- size=8 align=8
- base size=8 base align=8
-QPersistentModelIndex (0x0x7fba111c2ba0) 0
-
-Class QAbstractItemModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractItemModel::QPrivateSignal (0x0x7fba10f97300) 0 empty
-
-Vtable for QAbstractItemModel
-QAbstractItemModel::_ZTV18QAbstractItemModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractItemModel)
-16 (int (*)(...))QAbstractItemModel::metaObject
-24 (int (*)(...))QAbstractItemModel::qt_metacast
-32 (int (*)(...))QAbstractItemModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractItemModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractItemModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractItemModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractItemModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractItemModel
- size=16 align=8
- base size=16 base align=8
-QAbstractItemModel (0x0x7fba10f81c30) 0
- vptr=((& QAbstractItemModel::_ZTV18QAbstractItemModel) + 16u)
- QObject (0x0x7fba10f972a0) 0
- primary-for QAbstractItemModel (0x0x7fba10f81c30)
-
-Class QAbstractTableModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTableModel::QPrivateSignal (0x0x7fba10f97660) 0 empty
-
-Vtable for QAbstractTableModel
-QAbstractTableModel::_ZTV19QAbstractTableModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractTableModel)
-16 (int (*)(...))QAbstractTableModel::metaObject
-24 (int (*)(...))QAbstractTableModel::qt_metacast
-32 (int (*)(...))QAbstractTableModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractTableModel::index
-120 (int (*)(...))QAbstractTableModel::parent
-128 (int (*)(...))QAbstractTableModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractTableModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractTableModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractTableModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractTableModel
- size=16 align=8
- base size=16 base align=8
-QAbstractTableModel (0x0x7fba10f81e38) 0
- vptr=((& QAbstractTableModel::_ZTV19QAbstractTableModel) + 16u)
- QAbstractItemModel (0x0x7fba10f81ea0) 0
- primary-for QAbstractTableModel (0x0x7fba10f81e38)
- QObject (0x0x7fba10f97600) 0
- primary-for QAbstractItemModel (0x0x7fba10f81ea0)
-
-Class QAbstractListModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractListModel::QPrivateSignal (0x0x7fba10f97720) 0 empty
-
-Vtable for QAbstractListModel
-QAbstractListModel::_ZTV18QAbstractListModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractListModel)
-16 (int (*)(...))QAbstractListModel::metaObject
-24 (int (*)(...))QAbstractListModel::qt_metacast
-32 (int (*)(...))QAbstractListModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractListModel::index
-120 (int (*)(...))QAbstractListModel::parent
-128 (int (*)(...))QAbstractListModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QAbstractListModel::columnCount
-152 (int (*)(...))QAbstractListModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractListModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractListModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractListModel
- size=16 align=8
- base size=16 base align=8
-QAbstractListModel (0x0x7fba10f81f08) 0
- vptr=((& QAbstractListModel::_ZTV18QAbstractListModel) + 16u)
- QAbstractItemModel (0x0x7fba10f81f70) 0
- primary-for QAbstractListModel (0x0x7fba10f81f08)
- QObject (0x0x7fba10f976c0) 0
- primary-for QAbstractItemModel (0x0x7fba10f81f70)
-
-Vtable for QAbstractNativeEventFilter
-QAbstractNativeEventFilter::_ZTV26QAbstractNativeEventFilter: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAbstractNativeEventFilter)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractNativeEventFilter
- size=16 align=8
- base size=16 base align=8
-QAbstractNativeEventFilter (0x0x7fba10f979c0) 0
- vptr=((& QAbstractNativeEventFilter::_ZTV26QAbstractNativeEventFilter) + 16u)
-
-Class QAbstractProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractProxyModel::QPrivateSignal (0x0x7fba10f97a80) 0 empty
-
-Vtable for QAbstractProxyModel
-QAbstractProxyModel::_ZTV19QAbstractProxyModel: 53u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractProxyModel)
-16 (int (*)(...))QAbstractProxyModel::metaObject
-24 (int (*)(...))QAbstractProxyModel::qt_metacast
-32 (int (*)(...))QAbstractProxyModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractProxyModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QAbstractProxyModel::headerData
-184 (int (*)(...))QAbstractProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QAbstractProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QAbstractProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QAbstractProxyModel::setSourceModel
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))__cxa_pure_virtual
-408 (int (*)(...))QAbstractProxyModel::mapSelectionToSource
-416 (int (*)(...))QAbstractProxyModel::mapSelectionFromSource
-
-Class QAbstractProxyModel
- size=16 align=8
- base size=16 base align=8
-QAbstractProxyModel (0x0x7fba1106e0d0) 0
- vptr=((& QAbstractProxyModel::_ZTV19QAbstractProxyModel) + 16u)
- QAbstractItemModel (0x0x7fba1106e138) 0
- primary-for QAbstractProxyModel (0x0x7fba1106e0d0)
- QObject (0x0x7fba10f97a20) 0
- primary-for QAbstractItemModel (0x0x7fba1106e138)
-
-Class QAbstractState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractState::QPrivateSignal (0x0x7fba10f97b40) 0 empty
-
-Vtable for QAbstractState
-QAbstractState::_ZTV14QAbstractState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QAbstractState)
-16 (int (*)(...))QAbstractState::metaObject
-24 (int (*)(...))QAbstractState::qt_metacast
-32 (int (*)(...))QAbstractState::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractState
- size=16 align=8
- base size=16 base align=8
-QAbstractState (0x0x7fba1106e1a0) 0
- vptr=((& QAbstractState::_ZTV14QAbstractState) + 16u)
- QObject (0x0x7fba10f97ae0) 0
- primary-for QAbstractState (0x0x7fba1106e1a0)
-
-Class QAbstractTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTransition::QPrivateSignal (0x0x7fba10f97c00) 0 empty
-
-Vtable for QAbstractTransition
-QAbstractTransition::_ZTV19QAbstractTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractTransition)
-16 (int (*)(...))QAbstractTransition::metaObject
-24 (int (*)(...))QAbstractTransition::qt_metacast
-32 (int (*)(...))QAbstractTransition::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractTransition
- size=16 align=8
- base size=16 base align=8
-QAbstractTransition (0x0x7fba1106e208) 0
- vptr=((& QAbstractTransition::_ZTV19QAbstractTransition) + 16u)
- QObject (0x0x7fba10f97ba0) 0
- primary-for QAbstractTransition (0x0x7fba1106e208)
-
-Class QAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAnimationGroup::QPrivateSignal (0x0x7fba10f97cc0) 0 empty
-
-Vtable for QAnimationGroup
-QAnimationGroup::_ZTV15QAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QAnimationGroup)
-16 (int (*)(...))QAnimationGroup::metaObject
-24 (int (*)(...))QAnimationGroup::qt_metacast
-32 (int (*)(...))QAnimationGroup::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QAnimationGroup (0x0x7fba1106e270) 0
- vptr=((& QAnimationGroup::_ZTV15QAnimationGroup) + 16u)
- QAbstractAnimation (0x0x7fba1106e2d8) 0
- primary-for QAnimationGroup (0x0x7fba1106e270)
- QObject (0x0x7fba10f97c60) 0
- primary-for QAbstractAnimation (0x0x7fba1106e2d8)
-
-Class QBasicTimer
- size=4 align=4
- base size=4 base align=4
-QBasicTimer (0x0x7fba1110fa20) 0
-
-Class QBitArray
- size=8 align=8
- base size=8 base align=8
-QBitArray (0x0x7fba1110fcc0) 0
-
-Class QBitRef
- size=16 align=8
- base size=12 base align=8
-QBitRef (0x0x7fba1110fd80) 0
-
-Class QIODevice::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIODevice::QPrivateSignal (0x0x7fba10da20c0) 0 empty
-
-Vtable for QIODevice
-QIODevice::_ZTV9QIODevice: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QIODevice)
-16 (int (*)(...))QIODevice::metaObject
-24 (int (*)(...))QIODevice::qt_metacast
-32 (int (*)(...))QIODevice::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIODevice::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QIODevice::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))__cxa_pure_virtual
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))__cxa_pure_virtual
-
-Class QIODevice
- size=16 align=8
- base size=16 base align=8
-QIODevice (0x0x7fba1106e958) 0
- vptr=((& QIODevice::_ZTV9QIODevice) + 16u)
- QObject (0x0x7fba10da2060) 0
- primary-for QIODevice (0x0x7fba1106e958)
-
-Class QBuffer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QBuffer::QPrivateSignal (0x0x7fba10da2300) 0 empty
-
-Vtable for QBuffer
-QBuffer::_ZTV7QBuffer: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QBuffer)
-16 (int (*)(...))QBuffer::metaObject
-24 (int (*)(...))QBuffer::qt_metacast
-32 (int (*)(...))QBuffer::qt_metacall
-40 (int (*)(...))QBuffer::~QBuffer
-48 (int (*)(...))QBuffer::~QBuffer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QBuffer::connectNotify
-104 (int (*)(...))QBuffer::disconnectNotify
-112 (int (*)(...))QIODevice::isSequential
-120 (int (*)(...))QBuffer::open
-128 (int (*)(...))QBuffer::close
-136 (int (*)(...))QBuffer::pos
-144 (int (*)(...))QBuffer::size
-152 (int (*)(...))QBuffer::seek
-160 (int (*)(...))QBuffer::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QBuffer::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QBuffer::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QBuffer::writeData
-
-Class QBuffer
- size=16 align=8
- base size=16 base align=8
-QBuffer (0x0x7fba1106ea90) 0
- vptr=((& QBuffer::_ZTV7QBuffer) + 16u)
- QIODevice (0x0x7fba1106eaf8) 0
- primary-for QBuffer (0x0x7fba1106ea90)
- QObject (0x0x7fba10da22a0) 0
- primary-for QIODevice (0x0x7fba1106eaf8)
-
-Class QByteArrayMatcher::Data
- size=272 align=8
- base size=272 base align=8
-QByteArrayMatcher::Data (0x0x7fba10da23c0) 0
-
-Class QByteArrayMatcher
- size=1040 align=8
- base size=1040 base align=8
-QByteArrayMatcher (0x0x7fba10da2360) 0
-
-Class QStaticByteArrayMatcherBase::Skiptable
- size=256 align=1
- base size=256 base align=1
-QStaticByteArrayMatcherBase::Skiptable (0x0x7fba10da24e0) 0
-
-Class QStaticByteArrayMatcherBase
- size=256 align=16
- base size=256 base align=16
-QStaticByteArrayMatcherBase (0x0x7fba10da2480) 0
-
-Class QSharedData
- size=4 align=4
- base size=4 base align=4
-QSharedData (0x0x7fba10da26c0) 0
-
-Class QLocale
- size=8 align=8
- base size=8 base align=8
-QLocale (0x0x7fba10da28a0) 0
-
-Class QCollatorSortKey
- size=8 align=8
- base size=8 base align=8
-QCollatorSortKey (0x0x7fba10da2ea0) 0
-
-Class QCollator
- size=8 align=8
- base size=8 base align=8
-QCollator (0x0x7fba10da2f60) 0
-
-Class QCommandLineOption
- size=8 align=8
- base size=8 base align=8
-QCommandLineOption (0x0x7fba10b89f60) 0
-
-Vtable for QEvent
-QEvent::_ZTV6QEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QEvent)
-16 (int (*)(...))QEvent::~QEvent
-24 (int (*)(...))QEvent::~QEvent
-
-Class QEvent
- size=24 align=8
- base size=20 base align=8
-QEvent (0x0x7fba10bc0420) 0
- vptr=((& QEvent::_ZTV6QEvent) + 16u)
-
-Vtable for QTimerEvent
-QTimerEvent::_ZTV11QTimerEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTimerEvent)
-16 (int (*)(...))QTimerEvent::~QTimerEvent
-24 (int (*)(...))QTimerEvent::~QTimerEvent
-
-Class QTimerEvent
- size=24 align=8
- base size=24 base align=8
-QTimerEvent (0x0x7fba10c19000) 0
- vptr=((& QTimerEvent::_ZTV11QTimerEvent) + 16u)
- QEvent (0x0x7fba10bc0480) 0
- primary-for QTimerEvent (0x0x7fba10c19000)
-
-Vtable for QChildEvent
-QChildEvent::_ZTV11QChildEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QChildEvent)
-16 (int (*)(...))QChildEvent::~QChildEvent
-24 (int (*)(...))QChildEvent::~QChildEvent
-
-Class QChildEvent
- size=32 align=8
- base size=32 base align=8
-QChildEvent (0x0x7fba10c19068) 0
- vptr=((& QChildEvent::_ZTV11QChildEvent) + 16u)
- QEvent (0x0x7fba10bc04e0) 0
- primary-for QChildEvent (0x0x7fba10c19068)
-
-Vtable for QDynamicPropertyChangeEvent
-QDynamicPropertyChangeEvent::_ZTV27QDynamicPropertyChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QDynamicPropertyChangeEvent)
-16 (int (*)(...))QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent
-24 (int (*)(...))QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent
-
-Class QDynamicPropertyChangeEvent
- size=32 align=8
- base size=32 base align=8
-QDynamicPropertyChangeEvent (0x0x7fba10c195b0) 0
- vptr=((& QDynamicPropertyChangeEvent::_ZTV27QDynamicPropertyChangeEvent) + 16u)
- QEvent (0x0x7fba10bc09c0) 0
- primary-for QDynamicPropertyChangeEvent (0x0x7fba10c195b0)
-
-Vtable for QDeferredDeleteEvent
-QDeferredDeleteEvent::_ZTV20QDeferredDeleteEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QDeferredDeleteEvent)
-16 (int (*)(...))QDeferredDeleteEvent::~QDeferredDeleteEvent
-24 (int (*)(...))QDeferredDeleteEvent::~QDeferredDeleteEvent
-
-Class QDeferredDeleteEvent
- size=24 align=8
- base size=24 base align=8
-QDeferredDeleteEvent (0x0x7fba10c19618) 0
- vptr=((& QDeferredDeleteEvent::_ZTV20QDeferredDeleteEvent) + 16u)
- QEvent (0x0x7fba10bc0a20) 0
- primary-for QDeferredDeleteEvent (0x0x7fba10c19618)
-
-Class QCoreApplication::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QCoreApplication::QPrivateSignal (0x0x7fba10bc0ae0) 0 empty
-
-Vtable for QCoreApplication
-QCoreApplication::_ZTV16QCoreApplication: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QCoreApplication)
-16 (int (*)(...))QCoreApplication::metaObject
-24 (int (*)(...))QCoreApplication::qt_metacast
-32 (int (*)(...))QCoreApplication::qt_metacall
-40 (int (*)(...))QCoreApplication::~QCoreApplication
-48 (int (*)(...))QCoreApplication::~QCoreApplication
-56 (int (*)(...))QCoreApplication::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QCoreApplication::notify
-120 (int (*)(...))QCoreApplication::compressEvent
-
-Class QCoreApplication
- size=16 align=8
- base size=16 base align=8
-QCoreApplication (0x0x7fba10c19680) 0
- vptr=((& QCoreApplication::_ZTV16QCoreApplication) + 16u)
- QObject (0x0x7fba10bc0a80) 0
- primary-for QCoreApplication (0x0x7fba10c19680)
-
-Class QCommandLineParser
- size=8 align=8
- base size=8 base align=8
-QCommandLineParser (0x0x7fba10bc0b40) 0
-
-Class QContiguousCacheData
- size=24 align=4
- base size=24 base align=4
-QContiguousCacheData (0x0x7fba10bc0ba0) 0
-
-Class QCryptographicHash
- size=8 align=8
- base size=8 base align=8
-QCryptographicHash (0x0x7fba10caa1e0) 0
-
-Class QDataStream
- size=32 align=8
- base size=32 base align=8
-QDataStream (0x0x7fba10caa240) 0
-
-Class QtPrivate::StreamStateSaver
- size=16 align=8
- base size=12 base align=8
-QtPrivate::StreamStateSaver (0x0x7fba10caa300) 0
-
-Class QDate
- size=8 align=8
- base size=8 base align=8
-QDate (0x0x7fba10caa7e0) 0
-
-Class QTime
- size=4 align=4
- base size=4 base align=4
-QTime (0x0x7fba10caaa80) 0
-
-Class QDateTime::ShortData
- size=8 align=8
- base size=8 base align=8
-QDateTime::ShortData (0x0x7fba1097d240) 0
-
-Class QDateTime::Data
- size=8 align=8
- base size=8 base align=8
-QDateTime::Data (0x0x7fba1097d2a0) 0
-
-Class QDateTime
- size=8 align=8
- base size=8 base align=8
-QDateTime (0x0x7fba1097d1e0) 0
-
-Class QElapsedTimer
- size=16 align=8
- base size=16 base align=8
-QElapsedTimer (0x0x7fba10a263c0) 0
-
-Class QDeadlineTimer
- size=16 align=8
- base size=16 base align=8
-QDeadlineTimer (0x0x7fba10a268a0) 0
-
-Vtable for QTextStream
-QTextStream::_ZTV11QTextStream: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTextStream)
-16 (int (*)(...))QTextStream::~QTextStream
-24 (int (*)(...))QTextStream::~QTextStream
-
-Class QTextStream
- size=16 align=8
- base size=16 base align=8
-QTextStream (0x0x7fba10744840) 0
- vptr=((& QTextStream::_ZTV11QTextStream) + 16u)
-
-Class QTextStreamManipulator
- size=40 align=8
- base size=38 base align=8
-QTextStreamManipulator (0x0x7fba10744ae0) 0
-
-Class QtSharedPointer::NormalDeleter
- size=1 align=1
- base size=0 base align=1
-QtSharedPointer::NormalDeleter (0x0x7fba10744d20) 0 empty
-
-Class QtSharedPointer::ExternalRefCountData
- size=16 align=8
- base size=16 base align=8
-QtSharedPointer::ExternalRefCountData (0x0x7fba10744ea0) 0
-
-Class QDebug::Stream
- size=80 align=8
- base size=76 base align=8
-QDebug::Stream (0x0x7fba1088f420) 0
-
-Class QDebug
- size=8 align=8
- base size=8 base align=8
-QDebug (0x0x7fba1088f3c0) 0
-
-Class QDebugStateSaver
- size=8 align=8
- base size=8 base align=8
-QDebugStateSaver (0x0x7fba105e1900) 0
-
-Class QNoDebug
- size=1 align=1
- base size=0 base align=1
-QNoDebug (0x0x7fba105e19c0) 0 empty
-
-Class QFileDevice::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileDevice::QPrivateSignal (0x0x7fba106b1b40) 0 empty
-
-Vtable for QFileDevice
-QFileDevice::_ZTV11QFileDevice: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFileDevice)
-16 (int (*)(...))QFileDevice::metaObject
-24 (int (*)(...))QFileDevice::qt_metacast
-32 (int (*)(...))QFileDevice::qt_metacall
-40 (int (*)(...))QFileDevice::~QFileDevice
-48 (int (*)(...))QFileDevice::~QFileDevice
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFileDevice::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QFileDevice::fileName
-248 (int (*)(...))QFileDevice::resize
-256 (int (*)(...))QFileDevice::permissions
-264 (int (*)(...))QFileDevice::setPermissions
-
-Class QFileDevice
- size=16 align=8
- base size=16 base align=8
-QFileDevice (0x0x7fba106c75b0) 0
- vptr=((& QFileDevice::_ZTV11QFileDevice) + 16u)
- QIODevice (0x0x7fba106c7618) 0
- primary-for QFileDevice (0x0x7fba106c75b0)
- QObject (0x0x7fba106b1ae0) 0
- primary-for QIODevice (0x0x7fba106c7618)
-
-Class QFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFile::QPrivateSignal (0x0x7fba106b1d80) 0 empty
-
-Vtable for QFile
-QFile::_ZTV5QFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QFile)
-16 (int (*)(...))QFile::metaObject
-24 (int (*)(...))QFile::qt_metacast
-32 (int (*)(...))QFile::qt_metacall
-40 (int (*)(...))QFile::~QFile
-48 (int (*)(...))QFile::~QFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QFile::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFile::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QFile::fileName
-248 (int (*)(...))QFile::resize
-256 (int (*)(...))QFile::permissions
-264 (int (*)(...))QFile::setPermissions
-
-Class QFile
- size=16 align=8
- base size=16 base align=8
-QFile (0x0x7fba106c7750) 0
- vptr=((& QFile::_ZTV5QFile) + 16u)
- QFileDevice (0x0x7fba106c77b8) 0
- primary-for QFile (0x0x7fba106c7750)
- QIODevice (0x0x7fba106c7820) 0
- primary-for QFileDevice (0x0x7fba106c77b8)
- QObject (0x0x7fba106b1d20) 0
- primary-for QIODevice (0x0x7fba106c7820)
-
-Class QFileInfo
- size=8 align=8
- base size=8 base align=8
-QFileInfo (0x0x7fba106b1f60) 0
-
-Class QDir
- size=8 align=8
- base size=8 base align=8
-QDir (0x0x7fba103633c0) 0
-
-Class QDirIterator
- size=8 align=8
- base size=8 base align=8
-QDirIterator (0x0x7fba10363d80) 0
-
-Class QEasingCurve
- size=8 align=8
- base size=8 base align=8
-QEasingCurve (0x0x7fba10458000) 0
-
-Class QEventTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QEventTransition::QPrivateSignal (0x0x7fba104e5420) 0 empty
-
-Vtable for QEventTransition
-QEventTransition::_ZTV16QEventTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QEventTransition)
-16 (int (*)(...))QEventTransition::metaObject
-24 (int (*)(...))QEventTransition::qt_metacast
-32 (int (*)(...))QEventTransition::qt_metacall
-40 (int (*)(...))QEventTransition::~QEventTransition
-48 (int (*)(...))QEventTransition::~QEventTransition
-56 (int (*)(...))QEventTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QEventTransition::eventTest
-120 (int (*)(...))QEventTransition::onTransition
-
-Class QEventTransition
- size=16 align=8
- base size=16 base align=8
-QEventTransition (0x0x7fba104d8a28) 0
- vptr=((& QEventTransition::_ZTV16QEventTransition) + 16u)
- QAbstractTransition (0x0x7fba104d8a90) 0
- primary-for QEventTransition (0x0x7fba104d8a28)
- QObject (0x0x7fba104e53c0) 0
- primary-for QAbstractTransition (0x0x7fba104d8a90)
-
-Vtable for QException
-QException::_ZTV10QException: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QException)
-16 (int (*)(...))QException::~QException
-24 (int (*)(...))QException::~QException
-32 (int (*)(...))std::exception::what
-40 (int (*)(...))QException::raise
-48 (int (*)(...))QException::clone
-
-Class QException
- size=8 align=8
- base size=8 base align=8
-QException (0x0x7fba104d8af8) 0 nearly-empty
- vptr=((& QException::_ZTV10QException) + 16u)
- std::exception (0x0x7fba104e5480) 0 nearly-empty
- primary-for QException (0x0x7fba104d8af8)
-
-Vtable for QUnhandledException
-QUnhandledException::_ZTV19QUnhandledException: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QUnhandledException)
-16 (int (*)(...))QUnhandledException::~QUnhandledException
-24 (int (*)(...))QUnhandledException::~QUnhandledException
-32 (int (*)(...))std::exception::what
-40 (int (*)(...))QUnhandledException::raise
-48 (int (*)(...))QUnhandledException::clone
-
-Class QUnhandledException
- size=8 align=8
- base size=8 base align=8
-QUnhandledException (0x0x7fba104d8b60) 0 nearly-empty
- vptr=((& QUnhandledException::_ZTV19QUnhandledException) + 16u)
- QException (0x0x7fba104d8bc8) 0 nearly-empty
- primary-for QUnhandledException (0x0x7fba104d8b60)
- std::exception (0x0x7fba104e54e0) 0 nearly-empty
- primary-for QException (0x0x7fba104d8bc8)
-
-Class QtPrivate::ExceptionHolder
- size=8 align=8
- base size=8 base align=8
-QtPrivate::ExceptionHolder (0x0x7fba104e5540) 0
-
-Class QtPrivate::ExceptionStore
- size=8 align=8
- base size=8 base align=8
-QtPrivate::ExceptionStore (0x0x7fba104e5600) 0
-
-Vtable for QFactoryInterface
-QFactoryInterface::_ZTV17QFactoryInterface: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QFactoryInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QFactoryInterface
- size=8 align=8
- base size=8 base align=8
-QFactoryInterface (0x0x7fba104e5660) 0 nearly-empty
- vptr=((& QFactoryInterface::_ZTV17QFactoryInterface) + 16u)
-
-Class QFileSelector::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileSelector::QPrivateSignal (0x0x7fba104e5780) 0 empty
-
-Vtable for QFileSelector
-QFileSelector::_ZTV13QFileSelector: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QFileSelector)
-16 (int (*)(...))QFileSelector::metaObject
-24 (int (*)(...))QFileSelector::qt_metacast
-32 (int (*)(...))QFileSelector::qt_metacall
-40 (int (*)(...))QFileSelector::~QFileSelector
-48 (int (*)(...))QFileSelector::~QFileSelector
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QFileSelector
- size=16 align=8
- base size=16 base align=8
-QFileSelector (0x0x7fba104d8c30) 0
- vptr=((& QFileSelector::_ZTV13QFileSelector) + 16u)
- QObject (0x0x7fba104e5720) 0
- primary-for QFileSelector (0x0x7fba104d8c30)
-
-Class QFileSystemWatcher::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileSystemWatcher::QPrivateSignal (0x0x7fba104e5840) 0 empty
-
-Vtable for QFileSystemWatcher
-QFileSystemWatcher::_ZTV18QFileSystemWatcher: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QFileSystemWatcher)
-16 (int (*)(...))QFileSystemWatcher::metaObject
-24 (int (*)(...))QFileSystemWatcher::qt_metacast
-32 (int (*)(...))QFileSystemWatcher::qt_metacall
-40 (int (*)(...))QFileSystemWatcher::~QFileSystemWatcher
-48 (int (*)(...))QFileSystemWatcher::~QFileSystemWatcher
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QFileSystemWatcher
- size=16 align=8
- base size=16 base align=8
-QFileSystemWatcher (0x0x7fba104d8c98) 0
- vptr=((& QFileSystemWatcher::_ZTV18QFileSystemWatcher) + 16u)
- QObject (0x0x7fba104e57e0) 0
- primary-for QFileSystemWatcher (0x0x7fba104d8c98)
-
-Class QFinalState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFinalState::QPrivateSignal (0x0x7fba104e5900) 0 empty
-
-Vtable for QFinalState
-QFinalState::_ZTV11QFinalState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFinalState)
-16 (int (*)(...))QFinalState::metaObject
-24 (int (*)(...))QFinalState::qt_metacast
-32 (int (*)(...))QFinalState::qt_metacall
-40 (int (*)(...))QFinalState::~QFinalState
-48 (int (*)(...))QFinalState::~QFinalState
-56 (int (*)(...))QFinalState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFinalState::onEntry
-120 (int (*)(...))QFinalState::onExit
-
-Class QFinalState
- size=16 align=8
- base size=16 base align=8
-QFinalState (0x0x7fba104d8d00) 0
- vptr=((& QFinalState::_ZTV11QFinalState) + 16u)
- QAbstractState (0x0x7fba104d8d68) 0
- primary-for QFinalState (0x0x7fba104d8d00)
- QObject (0x0x7fba104e58a0) 0
- primary-for QAbstractState (0x0x7fba104d8d68)
-
-Vtable for QRunnable
-QRunnable::_ZTV9QRunnable: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QRunnable)
-16 (int (*)(...))__cxa_pure_virtual
-24 0u
-32 0u
-
-Class QRunnable
- size=16 align=8
- base size=12 base align=8
-QRunnable (0x0x7fba104e5960) 0
- vptr=((& QRunnable::_ZTV9QRunnable) + 16u)
-
-Class QBasicMutex
- size=8 align=8
- base size=8 base align=8
-QBasicMutex (0x0x7fba104e59c0) 0
-
-Class QMutex
- size=8 align=8
- base size=8 base align=8
-QMutex (0x0x7fba104d8ea0) 0
- QBasicMutex (0x0x7fba104e5ba0) 0
-
-Class QMutexLocker
- size=8 align=8
- base size=8 base align=8
-QMutexLocker (0x0x7fba104e5c00) 0
-
-Class QtPrivate::ResultItem
- size=16 align=8
- base size=16 base align=8
-QtPrivate::ResultItem (0x0x7fba104e5c60) 0
-
-Class QtPrivate::ResultIteratorBase
- size=16 align=8
- base size=12 base align=8
-QtPrivate::ResultIteratorBase (0x0x7fba104e5cc0) 0
-
-Vtable for QtPrivate::ResultStoreBase
-QtPrivate::ResultStoreBase::_ZTVN9QtPrivate15ResultStoreBaseE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9QtPrivate15ResultStoreBaseE)
-16 (int (*)(...))QtPrivate::ResultStoreBase::~ResultStoreBase
-24 (int (*)(...))QtPrivate::ResultStoreBase::~ResultStoreBase
-
-Class QtPrivate::ResultStoreBase
- size=48 align=8
- base size=44 base align=8
-QtPrivate::ResultStoreBase (0x0x7fba104e5de0) 0
- vptr=((& QtPrivate::ResultStoreBase::_ZTVN9QtPrivate15ResultStoreBaseE) + 16u)
-
-Vtable for QFutureInterfaceBase
-QFutureInterfaceBase::_ZTV20QFutureInterfaceBase: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QFutureInterfaceBase)
-16 (int (*)(...))QFutureInterfaceBase::~QFutureInterfaceBase
-24 (int (*)(...))QFutureInterfaceBase::~QFutureInterfaceBase
-
-Class QFutureInterfaceBase
- size=16 align=8
- base size=16 base align=8
-QFutureInterfaceBase (0x0x7fba10268660) 0
- vptr=((& QFutureInterfaceBase::_ZTV20QFutureInterfaceBase) + 16u)
-
-Class QFutureWatcherBase::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFutureWatcherBase::QPrivateSignal (0x0x7fba10268e40) 0 empty
-
-Vtable for QFutureWatcherBase
-QFutureWatcherBase::_ZTV18QFutureWatcherBase: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QFutureWatcherBase)
-16 (int (*)(...))QFutureWatcherBase::metaObject
-24 (int (*)(...))QFutureWatcherBase::qt_metacast
-32 (int (*)(...))QFutureWatcherBase::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QFutureWatcherBase::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QFutureWatcherBase::connectNotify
-104 (int (*)(...))QFutureWatcherBase::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QFutureWatcherBase
- size=16 align=8
- base size=16 base align=8
-QFutureWatcherBase (0x0x7fba10316000) 0
- vptr=((& QFutureWatcherBase::_ZTV18QFutureWatcherBase) + 16u)
- QObject (0x0x7fba10268de0) 0
- primary-for QFutureWatcherBase (0x0x7fba10316000)
-
-Class QHistoryState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QHistoryState::QPrivateSignal (0x0x7fba0ff46480) 0 empty
-
-Vtable for QHistoryState
-QHistoryState::_ZTV13QHistoryState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QHistoryState)
-16 (int (*)(...))QHistoryState::metaObject
-24 (int (*)(...))QHistoryState::qt_metacast
-32 (int (*)(...))QHistoryState::qt_metacall
-40 (int (*)(...))QHistoryState::~QHistoryState
-48 (int (*)(...))QHistoryState::~QHistoryState
-56 (int (*)(...))QHistoryState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QHistoryState::onEntry
-120 (int (*)(...))QHistoryState::onExit
-
-Class QHistoryState
- size=16 align=8
- base size=16 base align=8
-QHistoryState (0x0x7fba103168f0) 0
- vptr=((& QHistoryState::_ZTV13QHistoryState) + 16u)
- QAbstractState (0x0x7fba10316958) 0
- primary-for QHistoryState (0x0x7fba103168f0)
- QObject (0x0x7fba0ff46420) 0
- primary-for QAbstractState (0x0x7fba10316958)
-
-Class QIdentityProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIdentityProxyModel::QPrivateSignal (0x0x7fba0ff46540) 0 empty
-
-Vtable for QIdentityProxyModel
-QIdentityProxyModel::_ZTV19QIdentityProxyModel: 53u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QIdentityProxyModel)
-16 (int (*)(...))QIdentityProxyModel::metaObject
-24 (int (*)(...))QIdentityProxyModel::qt_metacast
-32 (int (*)(...))QIdentityProxyModel::qt_metacall
-40 (int (*)(...))QIdentityProxyModel::~QIdentityProxyModel
-48 (int (*)(...))QIdentityProxyModel::~QIdentityProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIdentityProxyModel::index
-120 (int (*)(...))QIdentityProxyModel::parent
-128 (int (*)(...))QIdentityProxyModel::sibling
-136 (int (*)(...))QIdentityProxyModel::rowCount
-144 (int (*)(...))QIdentityProxyModel::columnCount
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QIdentityProxyModel::headerData
-184 (int (*)(...))QAbstractProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QIdentityProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QIdentityProxyModel::insertRows
-264 (int (*)(...))QIdentityProxyModel::insertColumns
-272 (int (*)(...))QIdentityProxyModel::removeRows
-280 (int (*)(...))QIdentityProxyModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QAbstractProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QIdentityProxyModel::match
-352 (int (*)(...))QAbstractProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QIdentityProxyModel::setSourceModel
-392 (int (*)(...))QIdentityProxyModel::mapToSource
-400 (int (*)(...))QIdentityProxyModel::mapFromSource
-408 (int (*)(...))QIdentityProxyModel::mapSelectionToSource
-416 (int (*)(...))QIdentityProxyModel::mapSelectionFromSource
-
-Class QIdentityProxyModel
- size=16 align=8
- base size=16 base align=8
-QIdentityProxyModel (0x0x7fba103169c0) 0
- vptr=((& QIdentityProxyModel::_ZTV19QIdentityProxyModel) + 16u)
- QAbstractProxyModel (0x0x7fba10316a28) 0
- primary-for QIdentityProxyModel (0x0x7fba103169c0)
- QAbstractItemModel (0x0x7fba10316a90) 0
- primary-for QAbstractProxyModel (0x0x7fba10316a28)
- QObject (0x0x7fba0ff464e0) 0
- primary-for QAbstractItemModel (0x0x7fba10316a90)
-
-Class QItemSelectionRange
- size=16 align=8
- base size=16 base align=8
-QItemSelectionRange (0x0x7fba0ff465a0) 0
-
-Class QItemSelectionModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QItemSelectionModel::QPrivateSignal (0x0x7fba0ff46c60) 0 empty
-
-Vtable for QItemSelectionModel
-QItemSelectionModel::_ZTV19QItemSelectionModel: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QItemSelectionModel)
-16 (int (*)(...))QItemSelectionModel::metaObject
-24 (int (*)(...))QItemSelectionModel::qt_metacast
-32 (int (*)(...))QItemSelectionModel::qt_metacall
-40 (int (*)(...))QItemSelectionModel::~QItemSelectionModel
-48 (int (*)(...))QItemSelectionModel::~QItemSelectionModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QItemSelectionModel::setCurrentIndex
-120 (int (*)(...))QItemSelectionModel::select
-128 (int (*)(...))QItemSelectionModel::select
-136 (int (*)(...))QItemSelectionModel::clear
-144 (int (*)(...))QItemSelectionModel::reset
-152 (int (*)(...))QItemSelectionModel::clearCurrentIndex
-
-Class QItemSelectionModel
- size=16 align=8
- base size=16 base align=8
-QItemSelectionModel (0x0x7fba0ffb52d8) 0
- vptr=((& QItemSelectionModel::_ZTV19QItemSelectionModel) + 16u)
- QObject (0x0x7fba0ff46c00) 0
- primary-for QItemSelectionModel (0x0x7fba0ffb52d8)
-
-Class QItemSelection
- size=8 align=8
- base size=8 base align=8
-QItemSelection (0x0x7fba0ffb54e0) 0
- QList<QItemSelectionRange> (0x0x7fba0ffb5548) 0
- QListSpecialMethods<QItemSelectionRange> (0x0x7fba0ff46f60) 0 empty
-
-Class QJsonValue
- size=24 align=8
- base size=20 base align=8
-QJsonValue (0x0x7fba1003f480) 0
-
-Class QJsonValueRef
- size=16 align=8
- base size=12 base align=8
-QJsonValueRef (0x0x7fba0fdb3ba0) 0
-
-Class QJsonValuePtr
- size=24 align=8
- base size=24 base align=8
-QJsonValuePtr (0x0x7fba0fe18120) 0
-
-Class QJsonValueRefPtr
- size=16 align=8
- base size=16 base align=8
-QJsonValueRefPtr (0x0x7fba0fe18180) 0
-
-Class QJsonArray::iterator
- size=16 align=8
- base size=12 base align=8
-QJsonArray::iterator (0x0x7fba0fe18360) 0
-
-Class QJsonArray::const_iterator
- size=16 align=8
- base size=12 base align=8
-QJsonArray::const_iterator (0x0x7fba0fe183c0) 0
-
-Class QJsonArray
- size=16 align=8
- base size=16 base align=8
-QJsonArray (0x0x7fba0fe18300) 0
-
-Class QJsonParseError
- size=8 align=4
- base size=8 base align=4
-QJsonParseError (0x0x7fba0fed4600) 0
-
-Class QJsonDocument
- size=8 align=8
- base size=8 base align=8
-QJsonDocument (0x0x7fba0fed4660) 0
-
-Class QJsonObject::iterator
- size=16 align=8
- base size=12 base align=8
-QJsonObject::iterator (0x0x7fba0fed4cc0) 0
-
-Class QJsonObject::const_iterator
- size=16 align=8
- base size=12 base align=8
-QJsonObject::const_iterator (0x0x7fba0fed4d20) 0
-
-Class QJsonObject
- size=16 align=8
- base size=16 base align=8
-QJsonObject (0x0x7fba0fed4c60) 0
-
-Class QLibrary::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLibrary::QPrivateSignal (0x0x7fba0fc1e000) 0 empty
-
-Vtable for QLibrary
-QLibrary::_ZTV8QLibrary: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QLibrary)
-16 (int (*)(...))QLibrary::metaObject
-24 (int (*)(...))QLibrary::qt_metacast
-32 (int (*)(...))QLibrary::qt_metacall
-40 (int (*)(...))QLibrary::~QLibrary
-48 (int (*)(...))QLibrary::~QLibrary
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QLibrary
- size=32 align=8
- base size=25 base align=8
-QLibrary (0x0x7fba0fbdc888) 0
- vptr=((& QLibrary::_ZTV8QLibrary) + 16u)
- QObject (0x0x7fba0fbc2f60) 0
- primary-for QLibrary (0x0x7fba0fbdc888)
-
-Class QVersionNumber::SegmentStorage
- size=8 align=8
- base size=8 base align=8
-QVersionNumber::SegmentStorage (0x0x7fba0fc1e6c0) 0
-
-Class QVersionNumber
- size=8 align=8
- base size=8 base align=8
-QVersionNumber (0x0x7fba0fc1e1e0) 0
-
-Class QLibraryInfo
- size=1 align=1
- base size=0 base align=1
-QLibraryInfo (0x0x7fba0fc1eba0) 0 empty
-
-Class QPoint
- size=8 align=4
- base size=8 base align=4
-QPoint (0x0x7fba0fc1ec00) 0
-
-Class QPointF
- size=16 align=8
- base size=16 base align=8
-QPointF (0x0x7fba0fc1eea0) 0
-
-Class QLine
- size=16 align=4
- base size=16 base align=4
-QLine (0x0x7fba0f926180) 0
-
-Class QLineF
- size=32 align=8
- base size=32 base align=8
-QLineF (0x0x7fba0f926ae0) 0
-
-Class QLinkedListData
- size=32 align=8
- base size=25 base align=8
-QLinkedListData (0x0x7fba0f9b4480) 0
-
-Class QLockFile
- size=8 align=8
- base size=8 base align=8
-QLockFile (0x0x7fba0f9b47e0) 0
-
-Class QLoggingCategory::AtomicBools
- size=4 align=1
- base size=4 base align=1
-QLoggingCategory::AtomicBools (0x0x7fba0f9b4960) 0
-
-Class QLoggingCategory
- size=24 align=8
- base size=24 base align=8
-QLoggingCategory (0x0x7fba0f9b4900) 0
-
-Class QMargins
- size=16 align=4
- base size=16 base align=4
-QMargins (0x0x7fba0f9b4ae0) 0
-
-Class QMarginsF
- size=32 align=8
- base size=32 base align=8
-QMarginsF (0x0x7fba0f9b4d80) 0
-
-Class QMessageAuthenticationCode
- size=8 align=8
- base size=8 base align=8
-QMessageAuthenticationCode (0x0x7fba0f739420) 0
-
-Class QMetaMethod
- size=16 align=8
- base size=12 base align=8
-QMetaMethod (0x0x7fba0f739480) 0
-
-Class QMetaEnum
- size=16 align=8
- base size=12 base align=8
-QMetaEnum (0x0x7fba0f739a80) 0
-
-Class QMetaProperty
- size=32 align=8
- base size=32 base align=8
-QMetaProperty (0x0x7fba0f739d80) 0
-
-Class QMetaClassInfo
- size=16 align=8
- base size=12 base align=8
-QMetaClassInfo (0x0x7fba0f739de0) 0
-
-Class QMimeData::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QMimeData::QPrivateSignal (0x0x7fba0f7ef120) 0 empty
-
-Vtable for QMimeData
-QMimeData::_ZTV9QMimeData: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QMimeData)
-16 (int (*)(...))QMimeData::metaObject
-24 (int (*)(...))QMimeData::qt_metacast
-32 (int (*)(...))QMimeData::qt_metacall
-40 (int (*)(...))QMimeData::~QMimeData
-48 (int (*)(...))QMimeData::~QMimeData
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QMimeData::hasFormat
-120 (int (*)(...))QMimeData::formats
-128 (int (*)(...))QMimeData::retrieveData
-
-Class QMimeData
- size=16 align=8
- base size=16 base align=8
-QMimeData (0x0x7fba0f756af8) 0
- vptr=((& QMimeData::_ZTV9QMimeData) + 16u)
- QObject (0x0x7fba0f7ef0c0) 0
- primary-for QMimeData (0x0x7fba0f756af8)
-
-Class QMimeType
- size=8 align=8
- base size=8 base align=8
-QMimeType (0x0x7fba0f7ef180) 0
-
-Class QMimeDatabase
- size=8 align=8
- base size=8 base align=8
-QMimeDatabase (0x0x7fba0f7ef480) 0
-
-Class QObjectCleanupHandler::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QObjectCleanupHandler::QPrivateSignal (0x0x7fba0f7ef540) 0 empty
-
-Vtable for QObjectCleanupHandler
-QObjectCleanupHandler::_ZTV21QObjectCleanupHandler: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QObjectCleanupHandler)
-16 (int (*)(...))QObjectCleanupHandler::metaObject
-24 (int (*)(...))QObjectCleanupHandler::qt_metacast
-32 (int (*)(...))QObjectCleanupHandler::qt_metacall
-40 (int (*)(...))QObjectCleanupHandler::~QObjectCleanupHandler
-48 (int (*)(...))QObjectCleanupHandler::~QObjectCleanupHandler
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QObjectCleanupHandler
- size=24 align=8
- base size=24 base align=8
-QObjectCleanupHandler (0x0x7fba0f756d00) 0
- vptr=((& QObjectCleanupHandler::_ZTV21QObjectCleanupHandler) + 16u)
- QObject (0x0x7fba0f7ef4e0) 0
- primary-for QObjectCleanupHandler (0x0x7fba0f756d00)
-
-Class QOperatingSystemVersion
- size=16 align=4
- base size=16 base align=4
-QOperatingSystemVersion (0x0x7fba0f7ef5a0) 0
-
-Class QParallelAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QParallelAnimationGroup::QPrivateSignal (0x0x7fba0f7efd20) 0 empty
-
-Vtable for QParallelAnimationGroup
-QParallelAnimationGroup::_ZTV23QParallelAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QParallelAnimationGroup)
-16 (int (*)(...))QParallelAnimationGroup::metaObject
-24 (int (*)(...))QParallelAnimationGroup::qt_metacast
-32 (int (*)(...))QParallelAnimationGroup::qt_metacall
-40 (int (*)(...))QParallelAnimationGroup::~QParallelAnimationGroup
-48 (int (*)(...))QParallelAnimationGroup::~QParallelAnimationGroup
-56 (int (*)(...))QParallelAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QParallelAnimationGroup::duration
-120 (int (*)(...))QParallelAnimationGroup::updateCurrentTime
-128 (int (*)(...))QParallelAnimationGroup::updateState
-136 (int (*)(...))QParallelAnimationGroup::updateDirection
-
-Class QParallelAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QParallelAnimationGroup (0x0x7fba0f851410) 0
- vptr=((& QParallelAnimationGroup::_ZTV23QParallelAnimationGroup) + 16u)
- QAnimationGroup (0x0x7fba0f851478) 0
- primary-for QParallelAnimationGroup (0x0x7fba0f851410)
- QAbstractAnimation (0x0x7fba0f8514e0) 0
- primary-for QAnimationGroup (0x0x7fba0f851478)
- QObject (0x0x7fba0f7efcc0) 0
- primary-for QAbstractAnimation (0x0x7fba0f8514e0)
-
-Class QPauseAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPauseAnimation::QPrivateSignal (0x0x7fba0f7efde0) 0 empty
-
-Vtable for QPauseAnimation
-QPauseAnimation::_ZTV15QPauseAnimation: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QPauseAnimation)
-16 (int (*)(...))QPauseAnimation::metaObject
-24 (int (*)(...))QPauseAnimation::qt_metacast
-32 (int (*)(...))QPauseAnimation::qt_metacall
-40 (int (*)(...))QPauseAnimation::~QPauseAnimation
-48 (int (*)(...))QPauseAnimation::~QPauseAnimation
-56 (int (*)(...))QPauseAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPauseAnimation::duration
-120 (int (*)(...))QPauseAnimation::updateCurrentTime
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QPauseAnimation
- size=16 align=8
- base size=16 base align=8
-QPauseAnimation (0x0x7fba0f851548) 0
- vptr=((& QPauseAnimation::_ZTV15QPauseAnimation) + 16u)
- QAbstractAnimation (0x0x7fba0f8515b0) 0
- primary-for QPauseAnimation (0x0x7fba0f851548)
- QObject (0x0x7fba0f7efd80) 0
- primary-for QAbstractAnimation (0x0x7fba0f8515b0)
-
-Class QStaticPlugin
- size=16 align=8
- base size=16 base align=8
-QStaticPlugin (0x0x7fba0f8a2000) 0
-
-Class QPluginLoader::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPluginLoader::QPrivateSignal (0x0x7fba0f8a2300) 0 empty
-
-Vtable for QPluginLoader
-QPluginLoader::_ZTV13QPluginLoader: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QPluginLoader)
-16 (int (*)(...))QPluginLoader::metaObject
-24 (int (*)(...))QPluginLoader::qt_metacast
-32 (int (*)(...))QPluginLoader::qt_metacall
-40 (int (*)(...))QPluginLoader::~QPluginLoader
-48 (int (*)(...))QPluginLoader::~QPluginLoader
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QPluginLoader
- size=32 align=8
- base size=25 base align=8
-QPluginLoader (0x0x7fba0f8517b8) 0
- vptr=((& QPluginLoader::_ZTV13QPluginLoader) + 16u)
- QObject (0x0x7fba0f8a22a0) 0
- primary-for QPluginLoader (0x0x7fba0f8517b8)
-
-Class QProcessEnvironment
- size=8 align=8
- base size=8 base align=8
-QProcessEnvironment (0x0x7fba0f8a2360) 0
-
-Class QProcess::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QProcess::QPrivateSignal (0x0x7fba0f8a2a20) 0 empty
-
-Vtable for QProcess
-QProcess::_ZTV8QProcess: 31u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QProcess)
-16 (int (*)(...))QProcess::metaObject
-24 (int (*)(...))QProcess::qt_metacast
-32 (int (*)(...))QProcess::qt_metacall
-40 (int (*)(...))QProcess::~QProcess
-48 (int (*)(...))QProcess::~QProcess
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QProcess::isSequential
-120 (int (*)(...))QProcess::open
-128 (int (*)(...))QProcess::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QProcess::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QProcess::bytesAvailable
-184 (int (*)(...))QProcess::bytesToWrite
-192 (int (*)(...))QProcess::canReadLine
-200 (int (*)(...))QProcess::waitForReadyRead
-208 (int (*)(...))QProcess::waitForBytesWritten
-216 (int (*)(...))QProcess::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QProcess::writeData
-240 (int (*)(...))QProcess::setupChildProcess
-
-Class QProcess
- size=16 align=8
- base size=16 base align=8
-QProcess (0x0x7fba0f851e38) 0
- vptr=((& QProcess::_ZTV8QProcess) + 16u)
- QIODevice (0x0x7fba0f851ea0) 0
- primary-for QProcess (0x0x7fba0f851e38)
- QObject (0x0x7fba0f8a29c0) 0
- primary-for QIODevice (0x0x7fba0f851ea0)
-
-Class QVariantAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QVariantAnimation::QPrivateSignal (0x0x7fba0f8a2ae0) 0 empty
-
-Vtable for QVariantAnimation
-QVariantAnimation::_ZTV17QVariantAnimation: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QVariantAnimation)
-16 (int (*)(...))QVariantAnimation::metaObject
-24 (int (*)(...))QVariantAnimation::qt_metacast
-32 (int (*)(...))QVariantAnimation::qt_metacall
-40 (int (*)(...))QVariantAnimation::~QVariantAnimation
-48 (int (*)(...))QVariantAnimation::~QVariantAnimation
-56 (int (*)(...))QVariantAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QVariantAnimation::duration
-120 (int (*)(...))QVariantAnimation::updateCurrentTime
-128 (int (*)(...))QVariantAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-144 (int (*)(...))QVariantAnimation::updateCurrentValue
-152 (int (*)(...))QVariantAnimation::interpolated
-
-Class QVariantAnimation
- size=16 align=8
- base size=16 base align=8
-QVariantAnimation (0x0x7fba0f851f08) 0
- vptr=((& QVariantAnimation::_ZTV17QVariantAnimation) + 16u)
- QAbstractAnimation (0x0x7fba0f851f70) 0
- primary-for QVariantAnimation (0x0x7fba0f851f08)
- QObject (0x0x7fba0f8a2a80) 0
- primary-for QAbstractAnimation (0x0x7fba0f851f70)
-
-Class QPropertyAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPropertyAnimation::QPrivateSignal (0x0x7fba0f8a2ba0) 0 empty
-
-Vtable for QPropertyAnimation
-QPropertyAnimation::_ZTV18QPropertyAnimation: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QPropertyAnimation)
-16 (int (*)(...))QPropertyAnimation::metaObject
-24 (int (*)(...))QPropertyAnimation::qt_metacast
-32 (int (*)(...))QPropertyAnimation::qt_metacall
-40 (int (*)(...))QPropertyAnimation::~QPropertyAnimation
-48 (int (*)(...))QPropertyAnimation::~QPropertyAnimation
-56 (int (*)(...))QPropertyAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QVariantAnimation::duration
-120 (int (*)(...))QVariantAnimation::updateCurrentTime
-128 (int (*)(...))QPropertyAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-144 (int (*)(...))QPropertyAnimation::updateCurrentValue
-152 (int (*)(...))QVariantAnimation::interpolated
-
-Class QPropertyAnimation
- size=16 align=8
- base size=16 base align=8
-QPropertyAnimation (0x0x7fba0f52a068) 0
- vptr=((& QPropertyAnimation::_ZTV18QPropertyAnimation) + 16u)
- QVariantAnimation (0x0x7fba0f52a0d0) 0
- primary-for QPropertyAnimation (0x0x7fba0f52a068)
- QAbstractAnimation (0x0x7fba0f52a138) 0
- primary-for QVariantAnimation (0x0x7fba0f52a0d0)
- QObject (0x0x7fba0f8a2b40) 0
- primary-for QAbstractAnimation (0x0x7fba0f52a138)
-
-Class QRandomGenerator::Storage
- size=2504 align=8
- base size=2504 base align=8
-QRandomGenerator::Storage (0x0x7fba0f8a2cc0) 0
-
-Class QRandomGenerator
- size=2512 align=8
- base size=2512 base align=8
-QRandomGenerator (0x0x7fba0f8a2c60) 0
-
-Class QRandomGenerator64
- size=2512 align=8
- base size=2512 base align=8
-QRandomGenerator64 (0x0x7fba0f5ca410) 0
- QRandomGenerator (0x0x7fba0f5adc60) 0
-
-Class QReadWriteLock
- size=8 align=8
- base size=8 base align=8
-QReadWriteLock (0x0x7fba0f5add20) 0
-
-Class QReadLocker
- size=8 align=8
- base size=8 base align=8
-QReadLocker (0x0x7fba0f66a000) 0
-
-Class QWriteLocker
- size=8 align=8
- base size=8 base align=8
-QWriteLocker (0x0x7fba0f66a0c0) 0
-
-Class QSize
- size=8 align=4
- base size=8 base align=4
-QSize (0x0x7fba0f66a180) 0
-
-Class QSizeF
- size=16 align=8
- base size=16 base align=8
-QSizeF (0x0x7fba0f66a420) 0
-
-Class QRect
- size=16 align=4
- base size=16 base align=4
-QRect (0x0x7fba0f66a6c0) 0
-
-Class QRectF
- size=32 align=8
- base size=32 base align=8
-QRectF (0x0x7fba0f66a960) 0
-
-Class QRegularExpression
- size=8 align=8
- base size=8 base align=8
-QRegularExpression (0x0x7fba0f66ac00) 0
-
-Class QRegularExpressionMatch
- size=8 align=8
- base size=8 base align=8
-QRegularExpressionMatch (0x0x7fba0f46a240) 0
-
-Class QRegularExpressionMatchIterator
- size=8 align=8
- base size=8 base align=8
-QRegularExpressionMatchIterator (0x0x7fba0f46a540) 0
-
-Class QResource
- size=8 align=8
- base size=8 base align=8
-QResource (0x0x7fba0f46a840) 0
-
-Class QSaveFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSaveFile::QPrivateSignal (0x0x7fba0f46a9c0) 0 empty
-
-Vtable for QSaveFile
-QSaveFile::_ZTV9QSaveFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSaveFile)
-16 (int (*)(...))QSaveFile::metaObject
-24 (int (*)(...))QSaveFile::qt_metacast
-32 (int (*)(...))QSaveFile::qt_metacall
-40 (int (*)(...))QSaveFile::~QSaveFile
-48 (int (*)(...))QSaveFile::~QSaveFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QSaveFile::open
-128 (int (*)(...))QSaveFile::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFileDevice::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QSaveFile::writeData
-240 (int (*)(...))QSaveFile::fileName
-248 (int (*)(...))QFileDevice::resize
-256 (int (*)(...))QFileDevice::permissions
-264 (int (*)(...))QFileDevice::setPermissions
-
-Class QSaveFile
- size=16 align=8
- base size=16 base align=8
-QSaveFile (0x0x7fba0f441618) 0
- vptr=((& QSaveFile::_ZTV9QSaveFile) + 16u)
- QFileDevice (0x0x7fba0f441680) 0
- primary-for QSaveFile (0x0x7fba0f441618)
- QIODevice (0x0x7fba0f4416e8) 0
- primary-for QFileDevice (0x0x7fba0f441680)
- QObject (0x0x7fba0f46a960) 0
- primary-for QIODevice (0x0x7fba0f4416e8)
-
-Class QSemaphore
- size=8 align=8
- base size=8 base align=8
-QSemaphore (0x0x7fba0f46aa80) 0
-
-Class QSemaphoreReleaser
- size=16 align=8
- base size=12 base align=8
-QSemaphoreReleaser (0x0x7fba0f46aae0) 0
-
-Class QSequentialAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSequentialAnimationGroup::QPrivateSignal (0x0x7fba0f1ee120) 0 empty
-
-Vtable for QSequentialAnimationGroup
-QSequentialAnimationGroup::_ZTV25QSequentialAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QSequentialAnimationGroup)
-16 (int (*)(...))QSequentialAnimationGroup::metaObject
-24 (int (*)(...))QSequentialAnimationGroup::qt_metacast
-32 (int (*)(...))QSequentialAnimationGroup::qt_metacall
-40 (int (*)(...))QSequentialAnimationGroup::~QSequentialAnimationGroup
-48 (int (*)(...))QSequentialAnimationGroup::~QSequentialAnimationGroup
-56 (int (*)(...))QSequentialAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSequentialAnimationGroup::duration
-120 (int (*)(...))QSequentialAnimationGroup::updateCurrentTime
-128 (int (*)(...))QSequentialAnimationGroup::updateState
-136 (int (*)(...))QSequentialAnimationGroup::updateDirection
-
-Class QSequentialAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QSequentialAnimationGroup (0x0x7fba0f1d0f08) 0
- vptr=((& QSequentialAnimationGroup::_ZTV25QSequentialAnimationGroup) + 16u)
- QAnimationGroup (0x0x7fba0f1d0f70) 0
- primary-for QSequentialAnimationGroup (0x0x7fba0f1d0f08)
- QAbstractAnimation (0x0x7fba0f1f1000) 0
- primary-for QAnimationGroup (0x0x7fba0f1d0f70)
- QObject (0x0x7fba0f1ee0c0) 0
- primary-for QAbstractAnimation (0x0x7fba0f1f1000)
-
-Class QSettings::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSettings::QPrivateSignal (0x0x7fba0f1ee1e0) 0 empty
-
-Vtable for QSettings
-QSettings::_ZTV9QSettings: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSettings)
-16 (int (*)(...))QSettings::metaObject
-24 (int (*)(...))QSettings::qt_metacast
-32 (int (*)(...))QSettings::qt_metacall
-40 (int (*)(...))QSettings::~QSettings
-48 (int (*)(...))QSettings::~QSettings
-56 (int (*)(...))QSettings::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSettings
- size=16 align=8
- base size=16 base align=8
-QSettings (0x0x7fba0f1f1068) 0
- vptr=((& QSettings::_ZTV9QSettings) + 16u)
- QObject (0x0x7fba0f1ee180) 0
- primary-for QSettings (0x0x7fba0f1f1068)
-
-Class QSharedMemory::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSharedMemory::QPrivateSignal (0x0x7fba0f1ee2a0) 0 empty
-
-Vtable for QSharedMemory
-QSharedMemory::_ZTV13QSharedMemory: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSharedMemory)
-16 (int (*)(...))QSharedMemory::metaObject
-24 (int (*)(...))QSharedMemory::qt_metacast
-32 (int (*)(...))QSharedMemory::qt_metacall
-40 (int (*)(...))QSharedMemory::~QSharedMemory
-48 (int (*)(...))QSharedMemory::~QSharedMemory
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSharedMemory
- size=16 align=8
- base size=16 base align=8
-QSharedMemory (0x0x7fba0f1f10d0) 0
- vptr=((& QSharedMemory::_ZTV13QSharedMemory) + 16u)
- QObject (0x0x7fba0f1ee240) 0
- primary-for QSharedMemory (0x0x7fba0f1f10d0)
-
-Class QSignalMapper::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSignalMapper::QPrivateSignal (0x0x7fba0f1ee360) 0 empty
-
-Vtable for QSignalMapper
-QSignalMapper::_ZTV13QSignalMapper: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSignalMapper)
-16 (int (*)(...))QSignalMapper::metaObject
-24 (int (*)(...))QSignalMapper::qt_metacast
-32 (int (*)(...))QSignalMapper::qt_metacall
-40 (int (*)(...))QSignalMapper::~QSignalMapper
-48 (int (*)(...))QSignalMapper::~QSignalMapper
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSignalMapper
- size=16 align=8
- base size=16 base align=8
-QSignalMapper (0x0x7fba0f1f1138) 0
- vptr=((& QSignalMapper::_ZTV13QSignalMapper) + 16u)
- QObject (0x0x7fba0f1ee300) 0
- primary-for QSignalMapper (0x0x7fba0f1f1138)
-
-Class QSignalTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSignalTransition::QPrivateSignal (0x0x7fba0f1ee420) 0 empty
-
-Vtable for QSignalTransition
-QSignalTransition::_ZTV17QSignalTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSignalTransition)
-16 (int (*)(...))QSignalTransition::metaObject
-24 (int (*)(...))QSignalTransition::qt_metacast
-32 (int (*)(...))QSignalTransition::qt_metacall
-40 (int (*)(...))QSignalTransition::~QSignalTransition
-48 (int (*)(...))QSignalTransition::~QSignalTransition
-56 (int (*)(...))QSignalTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSignalTransition::eventTest
-120 (int (*)(...))QSignalTransition::onTransition
-
-Class QSignalTransition
- size=16 align=8
- base size=16 base align=8
-QSignalTransition (0x0x7fba0f1f11a0) 0
- vptr=((& QSignalTransition::_ZTV17QSignalTransition) + 16u)
- QAbstractTransition (0x0x7fba0f1f1208) 0
- primary-for QSignalTransition (0x0x7fba0f1f11a0)
- QObject (0x0x7fba0f1ee3c0) 0
- primary-for QAbstractTransition (0x0x7fba0f1f1208)
-
-Class QSocketNotifier::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSocketNotifier::QPrivateSignal (0x0x7fba0f1ee4e0) 0 empty
-
-Vtable for QSocketNotifier
-QSocketNotifier::_ZTV15QSocketNotifier: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSocketNotifier)
-16 (int (*)(...))QSocketNotifier::metaObject
-24 (int (*)(...))QSocketNotifier::qt_metacast
-32 (int (*)(...))QSocketNotifier::qt_metacall
-40 (int (*)(...))QSocketNotifier::~QSocketNotifier
-48 (int (*)(...))QSocketNotifier::~QSocketNotifier
-56 (int (*)(...))QSocketNotifier::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSocketNotifier
- size=16 align=8
- base size=16 base align=8
-QSocketNotifier (0x0x7fba0f1f1270) 0
- vptr=((& QSocketNotifier::_ZTV15QSocketNotifier) + 16u)
- QObject (0x0x7fba0f1ee480) 0
- primary-for QSocketNotifier (0x0x7fba0f1f1270)
-
-Class QSortFilterProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSortFilterProxyModel::QPrivateSignal (0x0x7fba0f1ee5a0) 0 empty
-
-Vtable for QSortFilterProxyModel
-QSortFilterProxyModel::_ZTV21QSortFilterProxyModel: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QSortFilterProxyModel)
-16 (int (*)(...))QSortFilterProxyModel::metaObject
-24 (int (*)(...))QSortFilterProxyModel::qt_metacast
-32 (int (*)(...))QSortFilterProxyModel::qt_metacall
-40 (int (*)(...))QSortFilterProxyModel::~QSortFilterProxyModel
-48 (int (*)(...))QSortFilterProxyModel::~QSortFilterProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSortFilterProxyModel::index
-120 (int (*)(...))QSortFilterProxyModel::parent
-128 (int (*)(...))QSortFilterProxyModel::sibling
-136 (int (*)(...))QSortFilterProxyModel::rowCount
-144 (int (*)(...))QSortFilterProxyModel::columnCount
-152 (int (*)(...))QSortFilterProxyModel::hasChildren
-160 (int (*)(...))QSortFilterProxyModel::data
-168 (int (*)(...))QSortFilterProxyModel::setData
-176 (int (*)(...))QSortFilterProxyModel::headerData
-184 (int (*)(...))QSortFilterProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QSortFilterProxyModel::mimeTypes
-216 (int (*)(...))QSortFilterProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QSortFilterProxyModel::dropMimeData
-240 (int (*)(...))QSortFilterProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QSortFilterProxyModel::insertRows
-264 (int (*)(...))QSortFilterProxyModel::insertColumns
-272 (int (*)(...))QSortFilterProxyModel::removeRows
-280 (int (*)(...))QSortFilterProxyModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QSortFilterProxyModel::fetchMore
-312 (int (*)(...))QSortFilterProxyModel::canFetchMore
-320 (int (*)(...))QSortFilterProxyModel::flags
-328 (int (*)(...))QSortFilterProxyModel::sort
-336 (int (*)(...))QSortFilterProxyModel::buddy
-344 (int (*)(...))QSortFilterProxyModel::match
-352 (int (*)(...))QSortFilterProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QSortFilterProxyModel::setSourceModel
-392 (int (*)(...))QSortFilterProxyModel::mapToSource
-400 (int (*)(...))QSortFilterProxyModel::mapFromSource
-408 (int (*)(...))QSortFilterProxyModel::mapSelectionToSource
-416 (int (*)(...))QSortFilterProxyModel::mapSelectionFromSource
-424 (int (*)(...))QSortFilterProxyModel::filterAcceptsRow
-432 (int (*)(...))QSortFilterProxyModel::filterAcceptsColumn
-440 (int (*)(...))QSortFilterProxyModel::lessThan
-
-Class QSortFilterProxyModel
- size=16 align=8
- base size=16 base align=8
-QSortFilterProxyModel (0x0x7fba0f1f12d8) 0
- vptr=((& QSortFilterProxyModel::_ZTV21QSortFilterProxyModel) + 16u)
- QAbstractProxyModel (0x0x7fba0f1f1340) 0
- primary-for QSortFilterProxyModel (0x0x7fba0f1f12d8)
- QAbstractItemModel (0x0x7fba0f1f13a8) 0
- primary-for QAbstractProxyModel (0x0x7fba0f1f1340)
- QObject (0x0x7fba0f1ee540) 0
- primary-for QAbstractItemModel (0x0x7fba0f1f13a8)
-
-Class QStandardPaths
- size=1 align=1
- base size=0 base align=1
-QStandardPaths (0x0x7fba0f1ee660) 0 empty
-
-Class QState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QState::QPrivateSignal (0x0x7fba0f1ee8a0) 0 empty
-
-Vtable for QState
-QState::_ZTV6QState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QState)
-16 (int (*)(...))QState::metaObject
-24 (int (*)(...))QState::qt_metacast
-32 (int (*)(...))QState::qt_metacall
-40 (int (*)(...))QState::~QState
-48 (int (*)(...))QState::~QState
-56 (int (*)(...))QState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QState::onEntry
-120 (int (*)(...))QState::onExit
-
-Class QState
- size=16 align=8
- base size=16 base align=8
-QState (0x0x7fba0f1f1548) 0
- vptr=((& QState::_ZTV6QState) + 16u)
- QAbstractState (0x0x7fba0f1f15b0) 0
- primary-for QState (0x0x7fba0f1f1548)
- QObject (0x0x7fba0f1ee840) 0
- primary-for QAbstractState (0x0x7fba0f1f15b0)
-
-Class QStateMachine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStateMachine::QPrivateSignal (0x0x7fba0f1ee9c0) 0 empty
-
-Vtable for QStateMachine::SignalEvent
-QStateMachine::SignalEvent::_ZTVN13QStateMachine11SignalEventE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QStateMachine11SignalEventE)
-16 (int (*)(...))QStateMachine::SignalEvent::~SignalEvent
-24 (int (*)(...))QStateMachine::SignalEvent::~SignalEvent
-
-Class QStateMachine::SignalEvent
- size=48 align=8
- base size=48 base align=8
-QStateMachine::SignalEvent (0x0x7fba0f1f1750) 0
- vptr=((& QStateMachine::SignalEvent::_ZTVN13QStateMachine11SignalEventE) + 16u)
- QEvent (0x0x7fba0f1eea20) 0
- primary-for QStateMachine::SignalEvent (0x0x7fba0f1f1750)
-
-Vtable for QStateMachine::WrappedEvent
-QStateMachine::WrappedEvent::_ZTVN13QStateMachine12WrappedEventE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QStateMachine12WrappedEventE)
-16 (int (*)(...))QStateMachine::WrappedEvent::~WrappedEvent
-24 (int (*)(...))QStateMachine::WrappedEvent::~WrappedEvent
-
-Class QStateMachine::WrappedEvent
- size=40 align=8
- base size=40 base align=8
-QStateMachine::WrappedEvent (0x0x7fba0f1f17b8) 0
- vptr=((& QStateMachine::WrappedEvent::_ZTVN13QStateMachine12WrappedEventE) + 16u)
- QEvent (0x0x7fba0f1eea80) 0
- primary-for QStateMachine::WrappedEvent (0x0x7fba0f1f17b8)
-
-Vtable for QStateMachine
-QStateMachine::_ZTV13QStateMachine: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QStateMachine)
-16 (int (*)(...))QStateMachine::metaObject
-24 (int (*)(...))QStateMachine::qt_metacast
-32 (int (*)(...))QStateMachine::qt_metacall
-40 (int (*)(...))QStateMachine::~QStateMachine
-48 (int (*)(...))QStateMachine::~QStateMachine
-56 (int (*)(...))QStateMachine::event
-64 (int (*)(...))QStateMachine::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QStateMachine::onEntry
-120 (int (*)(...))QStateMachine::onExit
-128 (int (*)(...))QStateMachine::beginSelectTransitions
-136 (int (*)(...))QStateMachine::endSelectTransitions
-144 (int (*)(...))QStateMachine::beginMicrostep
-152 (int (*)(...))QStateMachine::endMicrostep
-
-Class QStateMachine
- size=16 align=8
- base size=16 base align=8
-QStateMachine (0x0x7fba0f1f1618) 0
- vptr=((& QStateMachine::_ZTV13QStateMachine) + 16u)
- QState (0x0x7fba0f1f1680) 0
- primary-for QStateMachine (0x0x7fba0f1f1618)
- QAbstractState (0x0x7fba0f1f16e8) 0
- primary-for QState (0x0x7fba0f1f1680)
- QObject (0x0x7fba0f1ee960) 0
- primary-for QAbstractState (0x0x7fba0f1f16e8)
-
-Class QStorageInfo
- size=8 align=8
- base size=8 base align=8
-QStorageInfo (0x0x7fba0f1eeae0) 0
-
-Class QAbstractConcatenable
- size=1 align=1
- base size=0 base align=1
-QAbstractConcatenable (0x0x7fba0ef37a20) 0 empty
-
-Class QStringListModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStringListModel::QPrivateSignal (0x0x7fba0efad540) 0 empty
-
-Vtable for QStringListModel
-QStringListModel::_ZTV16QStringListModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QStringListModel)
-16 (int (*)(...))QStringListModel::metaObject
-24 (int (*)(...))QStringListModel::qt_metacast
-32 (int (*)(...))QStringListModel::qt_metacall
-40 (int (*)(...))QStringListModel::~QStringListModel
-48 (int (*)(...))QStringListModel::~QStringListModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractListModel::index
-120 (int (*)(...))QAbstractListModel::parent
-128 (int (*)(...))QStringListModel::sibling
-136 (int (*)(...))QStringListModel::rowCount
-144 (int (*)(...))QAbstractListModel::columnCount
-152 (int (*)(...))QAbstractListModel::hasChildren
-160 (int (*)(...))QStringListModel::data
-168 (int (*)(...))QStringListModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractListModel::dropMimeData
-240 (int (*)(...))QStringListModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QStringListModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QStringListModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QStringListModel::flags
-328 (int (*)(...))QStringListModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QStringListModel
- size=24 align=8
- base size=24 base align=8
-QStringListModel (0x0x7fba0ef55c98) 0
- vptr=((& QStringListModel::_ZTV16QStringListModel) + 16u)
- QAbstractListModel (0x0x7fba0ef55d00) 0
- primary-for QStringListModel (0x0x7fba0ef55c98)
- QAbstractItemModel (0x0x7fba0ef55d68) 0
- primary-for QAbstractListModel (0x0x7fba0ef55d00)
- QObject (0x0x7fba0efad4e0) 0
- primary-for QAbstractItemModel (0x0x7fba0ef55d68)
-
-Class QSystemSemaphore
- size=8 align=8
- base size=8 base align=8
-QSystemSemaphore (0x0x7fba0efad5a0) 0
-
-Class QTemporaryDir
- size=8 align=8
- base size=8 base align=8
-QTemporaryDir (0x0x7fba0efad660) 0
-
-Class QTemporaryFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTemporaryFile::QPrivateSignal (0x0x7fba0efad780) 0 empty
-
-Vtable for QTemporaryFile
-QTemporaryFile::_ZTV14QTemporaryFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QTemporaryFile)
-16 (int (*)(...))QTemporaryFile::metaObject
-24 (int (*)(...))QTemporaryFile::qt_metacast
-32 (int (*)(...))QTemporaryFile::qt_metacall
-40 (int (*)(...))QTemporaryFile::~QTemporaryFile
-48 (int (*)(...))QTemporaryFile::~QTemporaryFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QTemporaryFile::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFile::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QTemporaryFile::fileName
-248 (int (*)(...))QFile::resize
-256 (int (*)(...))QFile::permissions
-264 (int (*)(...))QFile::setPermissions
-
-Class QTemporaryFile
- size=16 align=8
- base size=16 base align=8
-QTemporaryFile (0x0x7fba0ef55dd0) 0
- vptr=((& QTemporaryFile::_ZTV14QTemporaryFile) + 16u)
- QFile (0x0x7fba0ef55e38) 0
- primary-for QTemporaryFile (0x0x7fba0ef55dd0)
- QFileDevice (0x0x7fba0ef55ea0) 0
- primary-for QFile (0x0x7fba0ef55e38)
- QIODevice (0x0x7fba0ef55f08) 0
- primary-for QFileDevice (0x0x7fba0ef55ea0)
- QObject (0x0x7fba0efad720) 0
- primary-for QIODevice (0x0x7fba0ef55f08)
-
-Class QTextBoundaryFinder
- size=48 align=8
- base size=48 base align=8
-QTextBoundaryFinder (0x0x7fba0efad7e0) 0
-
-Class QTextCodec::ConverterState
- size=32 align=8
- base size=32 base align=8
-QTextCodec::ConverterState (0x0x7fba0efada20) 0
-
-Vtable for QTextCodec
-QTextCodec::_ZTV10QTextCodec: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextCodec)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))QTextCodec::aliases
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 0u
-64 0u
-
-Class QTextCodec
- size=8 align=8
- base size=8 base align=8
-QTextCodec (0x0x7fba0efad9c0) 0 nearly-empty
- vptr=((& QTextCodec::_ZTV10QTextCodec) + 16u)
-
-Class QTextEncoder
- size=40 align=8
- base size=40 base align=8
-QTextEncoder (0x0x7fba0efadc00) 0
-
-Class QTextDecoder
- size=40 align=8
- base size=40 base align=8
-QTextDecoder (0x0x7fba0efadc60) 0
-
-Class std::__mutex_base
- size=40 align=8
- base size=40 base align=8
-std::__mutex_base (0x0x7fba0efadcc0) 0
-
-Class std::__recursive_mutex_base
- size=40 align=8
- base size=40 base align=8
-std::__recursive_mutex_base (0x0x7fba0efadd20) 0
-
-Class std::mutex
- size=40 align=8
- base size=40 base align=8
-std::mutex (0x0x7fba0f033138) 0
- std::__mutex_base (0x0x7fba0efadd80) 0
-
-Class std::recursive_mutex
- size=40 align=8
- base size=40 base align=8
-std::recursive_mutex (0x0x7fba0f0331a0) 0
- std::__recursive_mutex_base (0x0x7fba0efadde0) 0
-
-Class std::timed_mutex
- size=40 align=8
- base size=40 base align=8
-std::timed_mutex (0x0x7fba0f0bff50) 0
- std::__mutex_base (0x0x7fba0efadf00) 0
- std::__timed_mutex_impl<std::timed_mutex> (0x0x7fba0efadf60) 0 empty
-
-Class std::recursive_timed_mutex
- size=40 align=8
- base size=40 base align=8
-std::recursive_timed_mutex (0x0x7fba0f0d6bd0) 0
- std::__recursive_mutex_base (0x0x7fba0f0e2060) 0
- std::__timed_mutex_impl<std::recursive_timed_mutex> (0x0x7fba0f0e20c0) 0 empty
-
-Class std::defer_lock_t
- size=1 align=1
- base size=0 base align=1
-std::defer_lock_t (0x0x7fba0f0e2120) 0 empty
-
-Class std::try_to_lock_t
- size=1 align=1
- base size=0 base align=1
-std::try_to_lock_t (0x0x7fba0f0e2180) 0 empty
-
-Class std::adopt_lock_t
- size=1 align=1
- base size=0 base align=1
-std::adopt_lock_t (0x0x7fba0f0e21e0) 0 empty
-
-Class std::once_flag
- size=4 align=4
- base size=4 base align=4
-std::once_flag (0x0x7fba0f0e2420) 0
-
-Vtable for __gnu_cxx::__concurrence_lock_error
-__gnu_cxx::__concurrence_lock_error::_ZTVN9__gnu_cxx24__concurrence_lock_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx24__concurrence_lock_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error
-24 (int (*)(...))__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error
-32 (int (*)(...))__gnu_cxx::__concurrence_lock_error::what
-
-Class __gnu_cxx::__concurrence_lock_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_lock_error (0x0x7fba0f0332d8) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_lock_error::_ZTVN9__gnu_cxx24__concurrence_lock_errorE) + 16u)
- std::exception (0x0x7fba0f0e24e0) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_lock_error (0x0x7fba0f0332d8)
-
-Vtable for __gnu_cxx::__concurrence_unlock_error
-__gnu_cxx::__concurrence_unlock_error::_ZTVN9__gnu_cxx26__concurrence_unlock_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx26__concurrence_unlock_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error
-24 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error
-32 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::what
-
-Class __gnu_cxx::__concurrence_unlock_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_unlock_error (0x0x7fba0f033340) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_unlock_error::_ZTVN9__gnu_cxx26__concurrence_unlock_errorE) + 16u)
- std::exception (0x0x7fba0f0e25a0) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_unlock_error (0x0x7fba0f033340)
-
-Vtable for __gnu_cxx::__concurrence_broadcast_error
-__gnu_cxx::__concurrence_broadcast_error::_ZTVN9__gnu_cxx29__concurrence_broadcast_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx29__concurrence_broadcast_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error
-24 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error
-32 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::what
-
-Class __gnu_cxx::__concurrence_broadcast_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_broadcast_error (0x0x7fba0f0333a8) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_broadcast_error::_ZTVN9__gnu_cxx29__concurrence_broadcast_errorE) + 16u)
- std::exception (0x0x7fba0f0e2660) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_broadcast_error (0x0x7fba0f0333a8)
-
-Vtable for __gnu_cxx::__concurrence_wait_error
-__gnu_cxx::__concurrence_wait_error::_ZTVN9__gnu_cxx24__concurrence_wait_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx24__concurrence_wait_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error
-24 (int (*)(...))__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error
-32 (int (*)(...))__gnu_cxx::__concurrence_wait_error::what
-
-Class __gnu_cxx::__concurrence_wait_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_wait_error (0x0x7fba0f033478) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_wait_error::_ZTVN9__gnu_cxx24__concurrence_wait_errorE) + 16u)
- std::exception (0x0x7fba0f0e2720) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_wait_error (0x0x7fba0f033478)
-
-Class __gnu_cxx::__mutex
- size=40 align=8
- base size=40 base align=8
-__gnu_cxx::__mutex (0x0x7fba0f0e27e0) 0
-
-Class __gnu_cxx::__recursive_mutex
- size=40 align=8
- base size=40 base align=8
-__gnu_cxx::__recursive_mutex (0x0x7fba0f0e2840) 0
-
-Class __gnu_cxx::__scoped_lock
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__scoped_lock (0x0x7fba0f0e28a0) 0
-
-Class __gnu_cxx::__cond
- size=48 align=8
- base size=48 base align=8
-__gnu_cxx::__cond (0x0x7fba0f0e2900) 0
-
-Vtable for std::bad_weak_ptr
-std::bad_weak_ptr::_ZTVSt12bad_weak_ptr: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12bad_weak_ptr)
-16 (int (*)(...))std::bad_weak_ptr::~bad_weak_ptr
-24 (int (*)(...))std::bad_weak_ptr::~bad_weak_ptr
-32 (int (*)(...))std::bad_weak_ptr::what
-
-Class std::bad_weak_ptr
- size=8 align=8
- base size=8 base align=8
-std::bad_weak_ptr (0x0x7fba0f033750) 0 nearly-empty
- vptr=((& std::bad_weak_ptr::_ZTVSt12bad_weak_ptr) + 16u)
- std::exception (0x0x7fba0f0e2c60) 0 nearly-empty
- primary-for std::bad_weak_ptr (0x0x7fba0f033750)
-
-Class std::_Sp_make_shared_tag
- size=1 align=1
- base size=0 base align=1
-std::_Sp_make_shared_tag (0x0x7fba0ee304e0) 0 empty
-
-Class std::_Sp_locker
- size=2 align=1
- base size=2 base align=1
-std::_Sp_locker (0x0x7fba0ee30cc0) 0
-
-Class std::thread::id
- size=8 align=8
- base size=8 base align=8
-std::thread::id (0x0x7fba0ee30ea0) 0
-
-Vtable for std::thread::_Impl_base
-std::thread::_Impl_base::_ZTVNSt6thread10_Impl_baseE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt6thread10_Impl_baseE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class std::thread::_Impl_base
- size=24 align=8
- base size=24 base align=8
-std::thread::_Impl_base (0x0x7fba0ee30f00) 0
- vptr=((& std::thread::_Impl_base::_ZTVNSt6thread10_Impl_baseE) + 16u)
-
-Class std::thread
- size=8 align=8
- base size=8 base align=8
-std::thread (0x0x7fba0ee30e40) 0
-
-Class std::condition_variable
- size=48 align=8
- base size=48 base align=8
-std::condition_variable (0x0x7fba0ecddb40) 0
-
-Class std::__at_thread_exit_elt
- size=16 align=8
- base size=16 base align=8
-std::__at_thread_exit_elt (0x0x7fba0ecddc00) 0
-
-Class std::_V2::condition_variable_any
- size=64 align=8
- base size=64 base align=8
-std::_V2::condition_variable_any (0x0x7fba0ecddc60) 0
-
-Class std::__atomic_futex_unsigned_base
- size=1 align=1
- base size=0 base align=1
-std::__atomic_futex_unsigned_base (0x0x7fba0e9ca300) 0 empty
-
-Vtable for std::future_error
-std::future_error::_ZTVSt12future_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12future_error)
-16 (int (*)(...))std::future_error::~future_error
-24 (int (*)(...))std::future_error::~future_error
-32 (int (*)(...))std::future_error::what
-
-Class std::future_error
- size=32 align=8
- base size=32 base align=8
-std::future_error (0x0x7fba0e9c5a90) 0
- vptr=((& std::future_error::_ZTVSt12future_error) + 16u)
- std::logic_error (0x0x7fba0e9c5af8) 0
- primary-for std::future_error (0x0x7fba0e9c5a90)
- std::exception (0x0x7fba0e9ca420) 0 nearly-empty
- primary-for std::logic_error (0x0x7fba0e9c5af8)
-
-Class std::__future_base::_Result_base::_Deleter
- size=1 align=1
- base size=0 base align=1
-std::__future_base::_Result_base::_Deleter (0x0x7fba0e9ca540) 0 empty
-
-Vtable for std::__future_base::_Result_base
-std::__future_base::_Result_base::_ZTVNSt13__future_base12_Result_baseE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base12_Result_baseE)
-16 (int (*)(...))__cxa_pure_virtual
-24 0u
-32 0u
-
-Class std::__future_base::_Result_base
- size=16 align=8
- base size=16 base align=8
-std::__future_base::_Result_base (0x0x7fba0e9ca4e0) 0
- vptr=((& std::__future_base::_Result_base::_ZTVNSt13__future_base12_Result_baseE) + 16u)
-
-Class std::__future_base::_State_baseV2::__exception_ptr_tag
- size=1 align=1
- base size=0 base align=1
-std::__future_base::_State_baseV2::__exception_ptr_tag (0x0x7fba0e707a80) 0 empty
-
-Class std::__future_base::_State_baseV2::_Make_ready
- size=32 align=8
- base size=32 base align=8
-std::__future_base::_State_baseV2::_Make_ready (0x0x7fba0e7280d0) 0
- std::__at_thread_exit_elt (0x0x7fba0e707b40) 0
-
-Vtable for std::__future_base::_State_baseV2
-std::__future_base::_State_baseV2::_ZTVNSt13__future_base13_State_baseV2E: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base13_State_baseV2E)
-16 (int (*)(...))std::__future_base::_State_baseV2::~_State_baseV2
-24 (int (*)(...))std::__future_base::_State_baseV2::~_State_baseV2
-32 (int (*)(...))std::__future_base::_State_baseV2::_M_complete_async
-40 (int (*)(...))std::__future_base::_State_baseV2::_M_is_deferred_future
-
-Class std::__future_base::_State_baseV2
- size=32 align=8
- base size=28 base align=8
-std::__future_base::_State_baseV2 (0x0x7fba0e9ca6c0) 0
- vptr=((& std::__future_base::_State_baseV2::_ZTVNSt13__future_base13_State_baseV2E) + 16u)
-
-Class std::__future_base
- size=1 align=1
- base size=0 base align=1
-std::__future_base (0x0x7fba0e9ca480) 0 empty
-
-Vtable for std::__future_base::_Async_state_commonV2
-std::__future_base::_Async_state_commonV2::_ZTVNSt13__future_base21_Async_state_commonV2E: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base21_Async_state_commonV2E)
-16 (int (*)(...))std::__future_base::_Async_state_commonV2::~_Async_state_commonV2
-24 (int (*)(...))std::__future_base::_Async_state_commonV2::~_Async_state_commonV2
-32 (int (*)(...))std::__future_base::_Async_state_commonV2::_M_complete_async
-40 (int (*)(...))std::__future_base::_State_baseV2::_M_is_deferred_future
-
-Class std::__future_base::_Async_state_commonV2
- size=48 align=8
- base size=44 base align=8
-std::__future_base::_Async_state_commonV2 (0x0x7fba0e470c98) 0
- vptr=((& std::__future_base::_Async_state_commonV2::_ZTVNSt13__future_base21_Async_state_commonV2E) + 16u)
- std::__future_base::_State_baseV2 (0x0x7fba0e472a20) 0
- primary-for std::__future_base::_Async_state_commonV2 (0x0x7fba0e470c98)
-
-Class QThread::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QThread::QPrivateSignal (0x0x7fba0e0f3180) 0 empty
-
-Vtable for QThread
-QThread::_ZTV7QThread: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QThread)
-16 (int (*)(...))QThread::metaObject
-24 (int (*)(...))QThread::qt_metacast
-32 (int (*)(...))QThread::qt_metacall
-40 (int (*)(...))QThread::~QThread
-48 (int (*)(...))QThread::~QThread
-56 (int (*)(...))QThread::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QThread::run
-
-Class QThread
- size=16 align=8
- base size=16 base align=8
-QThread (0x0x7fba0e4d4750) 0
- vptr=((& QThread::_ZTV7QThread) + 16u)
- QObject (0x0x7fba0e0f3120) 0
- primary-for QThread (0x0x7fba0e4d4750)
-
-Class QThreadPool::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QThreadPool::QPrivateSignal (0x0x7fba0e0f32a0) 0 empty
-
-Vtable for QThreadPool
-QThreadPool::_ZTV11QThreadPool: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QThreadPool)
-16 (int (*)(...))QThreadPool::metaObject
-24 (int (*)(...))QThreadPool::qt_metacast
-32 (int (*)(...))QThreadPool::qt_metacall
-40 (int (*)(...))QThreadPool::~QThreadPool
-48 (int (*)(...))QThreadPool::~QThreadPool
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QThreadPool
- size=16 align=8
- base size=16 base align=8
-QThreadPool (0x0x7fba0e4d47b8) 0
- vptr=((& QThreadPool::_ZTV11QThreadPool) + 16u)
- QObject (0x0x7fba0e0f3240) 0
- primary-for QThreadPool (0x0x7fba0e4d47b8)
-
-Class QThreadStorageData
- size=4 align=4
- base size=4 base align=4
-QThreadStorageData (0x0x7fba0e0f3300) 0
-
-Class QTimeLine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTimeLine::QPrivateSignal (0x0x7fba0e0f3420) 0 empty
-
-Vtable for QTimeLine
-QTimeLine::_ZTV9QTimeLine: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QTimeLine)
-16 (int (*)(...))QTimeLine::metaObject
-24 (int (*)(...))QTimeLine::qt_metacast
-32 (int (*)(...))QTimeLine::qt_metacall
-40 (int (*)(...))QTimeLine::~QTimeLine
-48 (int (*)(...))QTimeLine::~QTimeLine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QTimeLine::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTimeLine::valueForTime
-
-Class QTimeLine
- size=16 align=8
- base size=16 base align=8
-QTimeLine (0x0x7fba0e4d4820) 0
- vptr=((& QTimeLine::_ZTV9QTimeLine) + 16u)
- QObject (0x0x7fba0e0f33c0) 0
- primary-for QTimeLine (0x0x7fba0e4d4820)
-
-Class QTimer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTimer::QPrivateSignal (0x0x7fba0e0f34e0) 0 empty
-
-Vtable for QTimer
-QTimer::_ZTV6QTimer: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QTimer)
-16 (int (*)(...))QTimer::metaObject
-24 (int (*)(...))QTimer::qt_metacast
-32 (int (*)(...))QTimer::qt_metacall
-40 (int (*)(...))QTimer::~QTimer
-48 (int (*)(...))QTimer::~QTimer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QTimer::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTimer
- size=32 align=8
- base size=29 base align=8
-QTimer (0x0x7fba0e4d4888) 0
- vptr=((& QTimer::_ZTV6QTimer) + 16u)
- QObject (0x0x7fba0e0f3480) 0
- primary-for QTimer (0x0x7fba0e4d4888)
-
-Class QTimeZone::OffsetData
- size=32 align=8
- base size=28 base align=8
-QTimeZone::OffsetData (0x0x7fba0e0f3ba0) 0
-
-Class QTimeZone
- size=8 align=8
- base size=8 base align=8
-QTimeZone (0x0x7fba0e0f3b40) 0
-
-Class QTranslator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTranslator::QPrivateSignal (0x0x7fba0e1c3180) 0 empty
-
-Vtable for QTranslator
-QTranslator::_ZTV11QTranslator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTranslator)
-16 (int (*)(...))QTranslator::metaObject
-24 (int (*)(...))QTranslator::qt_metacast
-32 (int (*)(...))QTranslator::qt_metacall
-40 (int (*)(...))QTranslator::~QTranslator
-48 (int (*)(...))QTranslator::~QTranslator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTranslator::translate
-120 (int (*)(...))QTranslator::isEmpty
-
-Class QTranslator
- size=16 align=8
- base size=16 base align=8
-QTranslator (0x0x7fba0e1bc2d8) 0
- vptr=((& QTranslator::_ZTV11QTranslator) + 16u)
- QObject (0x0x7fba0e1c3120) 0
- primary-for QTranslator (0x0x7fba0e1bc2d8)
-
-Class QUrl
- size=8 align=8
- base size=8 base align=8
-QUrl (0x0x7fba0e1c32a0) 0
-
-Class QUrlQuery
- size=8 align=8
- base size=8 base align=8
-QUrlQuery (0x0x7fba0e2da960) 0
-
-Class QUuid
- size=16 align=4
- base size=16 base align=4
-QUuid (0x0x7fba0df79000) 0
-
-Class QWaitCondition
- size=8 align=8
- base size=8 base align=8
-QWaitCondition (0x0x7fba0df79600) 0
-
-Class QXmlStreamStringRef
- size=16 align=8
- base size=16 base align=8
-QXmlStreamStringRef (0x0x7fba0df79660) 0
-
-Class QXmlStreamAttribute
- size=80 align=8
- base size=73 base align=8
-QXmlStreamAttribute (0x0x7fba0df79960) 0
-
-Class QXmlStreamAttributes
- size=8 align=8
- base size=8 base align=8
-QXmlStreamAttributes (0x0x7fba0df78dd0) 0
- QVector<QXmlStreamAttribute> (0x0x7fba0df79d20) 0
-
-Class QXmlStreamNamespaceDeclaration
- size=40 align=8
- base size=40 base align=8
-QXmlStreamNamespaceDeclaration (0x0x7fba0df79d80) 0
-
-Class QXmlStreamNotationDeclaration
- size=56 align=8
- base size=56 base align=8
-QXmlStreamNotationDeclaration (0x0x7fba0e064060) 0
-
-Class QXmlStreamEntityDeclaration
- size=88 align=8
- base size=88 base align=8
-QXmlStreamEntityDeclaration (0x0x7fba0e064300) 0
-
-Vtable for QXmlStreamEntityResolver
-QXmlStreamEntityResolver::_ZTV24QXmlStreamEntityResolver: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QXmlStreamEntityResolver)
-16 (int (*)(...))QXmlStreamEntityResolver::~QXmlStreamEntityResolver
-24 (int (*)(...))QXmlStreamEntityResolver::~QXmlStreamEntityResolver
-32 (int (*)(...))QXmlStreamEntityResolver::resolveEntity
-40 (int (*)(...))QXmlStreamEntityResolver::resolveUndeclaredEntity
-
-Class QXmlStreamEntityResolver
- size=8 align=8
- base size=8 base align=8
-QXmlStreamEntityResolver (0x0x7fba0e0645a0) 0 nearly-empty
- vptr=((& QXmlStreamEntityResolver::_ZTV24QXmlStreamEntityResolver) + 16u)
-
-Class QXmlStreamReader
- size=8 align=8
- base size=8 base align=8
-QXmlStreamReader (0x0x7fba0e064600) 0
-
-Class QXmlStreamWriter
- size=8 align=8
- base size=8 base align=8
-QXmlStreamWriter (0x0x7fba0dd12060) 0
-
-Class QRgba64
- size=8 align=8
- base size=8 base align=8
-QRgba64 (0x0x7fba0dd12180) 0
-
-Class QColor
- size=16 align=4
- base size=14 base align=4
-QColor (0x0x7fba0dd12420) 0
-
-Class QRegion::QRegionData
- size=16 align=8
- base size=16 base align=8
-QRegion::QRegionData (0x0x7fba0dd12de0) 0
-
-Class QRegion
- size=8 align=8
- base size=8 base align=8
-QRegion (0x0x7fba0dd12d80) 0
-
-Class QKeySequence
- size=8 align=8
- base size=8 base align=8
-QKeySequence (0x0x7fba0decb180) 0
-
-Class QVector2D
- size=8 align=4
- base size=8 base align=4
-QVector2D (0x0x7fba0db656c0) 0
-
-Class QTouchDevice
- size=8 align=8
- base size=8 base align=8
-QTouchDevice (0x0x7fba0db65960) 0
-
-Vtable for QInputEvent
-QInputEvent::_ZTV11QInputEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QInputEvent)
-16 (int (*)(...))QInputEvent::~QInputEvent
-24 (int (*)(...))QInputEvent::~QInputEvent
-
-Class QInputEvent
- size=32 align=8
- base size=32 base align=8
-QInputEvent (0x0x7fba0db64bc8) 0
- vptr=((& QInputEvent::_ZTV11QInputEvent) + 16u)
- QEvent (0x0x7fba0db65b40) 0
- primary-for QInputEvent (0x0x7fba0db64bc8)
-
-Vtable for QEnterEvent
-QEnterEvent::_ZTV11QEnterEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QEnterEvent)
-16 (int (*)(...))QEnterEvent::~QEnterEvent
-24 (int (*)(...))QEnterEvent::~QEnterEvent
-
-Class QEnterEvent
- size=72 align=8
- base size=72 base align=8
-QEnterEvent (0x0x7fba0db64c30) 0
- vptr=((& QEnterEvent::_ZTV11QEnterEvent) + 16u)
- QEvent (0x0x7fba0db65ba0) 0
- primary-for QEnterEvent (0x0x7fba0db64c30)
-
-Vtable for QMouseEvent
-QMouseEvent::_ZTV11QMouseEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QMouseEvent)
-16 (int (*)(...))QMouseEvent::~QMouseEvent
-24 (int (*)(...))QMouseEvent::~QMouseEvent
-
-Class QMouseEvent
- size=104 align=8
- base size=100 base align=8
-QMouseEvent (0x0x7fba0db64c98) 0
- vptr=((& QMouseEvent::_ZTV11QMouseEvent) + 16u)
- QInputEvent (0x0x7fba0db64d00) 0
- primary-for QMouseEvent (0x0x7fba0db64c98)
- QEvent (0x0x7fba0db65c00) 0
- primary-for QInputEvent (0x0x7fba0db64d00)
-
-Vtable for QHoverEvent
-QHoverEvent::_ZTV11QHoverEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QHoverEvent)
-16 (int (*)(...))QHoverEvent::~QHoverEvent
-24 (int (*)(...))QHoverEvent::~QHoverEvent
-
-Class QHoverEvent
- size=64 align=8
- base size=64 base align=8
-QHoverEvent (0x0x7fba0db64d68) 0
- vptr=((& QHoverEvent::_ZTV11QHoverEvent) + 16u)
- QInputEvent (0x0x7fba0db64dd0) 0
- primary-for QHoverEvent (0x0x7fba0db64d68)
- QEvent (0x0x7fba0db65c60) 0
- primary-for QInputEvent (0x0x7fba0db64dd0)
-
-Vtable for QWheelEvent
-QWheelEvent::_ZTV11QWheelEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QWheelEvent)
-16 (int (*)(...))QWheelEvent::~QWheelEvent
-24 (int (*)(...))QWheelEvent::~QWheelEvent
-
-Class QWheelEvent
- size=96 align=8
- base size=96 base align=8
-QWheelEvent (0x0x7fba0db64e38) 0
- vptr=((& QWheelEvent::_ZTV11QWheelEvent) + 16u)
- QInputEvent (0x0x7fba0db64ea0) 0
- primary-for QWheelEvent (0x0x7fba0db64e38)
- QEvent (0x0x7fba0db65cc0) 0
- primary-for QInputEvent (0x0x7fba0db64ea0)
-
-Vtable for QTabletEvent
-QTabletEvent::_ZTV12QTabletEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QTabletEvent)
-16 (int (*)(...))QTabletEvent::~QTabletEvent
-24 (int (*)(...))QTabletEvent::~QTabletEvent
-
-Class QTabletEvent
- size=128 align=8
- base size=128 base align=8
-QTabletEvent (0x0x7fba0db64f08) 0
- vptr=((& QTabletEvent::_ZTV12QTabletEvent) + 16u)
- QInputEvent (0x0x7fba0db64f70) 0
- primary-for QTabletEvent (0x0x7fba0db64f08)
- QEvent (0x0x7fba0db65d20) 0
- primary-for QInputEvent (0x0x7fba0db64f70)
-
-Vtable for QNativeGestureEvent
-QNativeGestureEvent::_ZTV19QNativeGestureEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QNativeGestureEvent)
-16 (int (*)(...))QNativeGestureEvent::~QNativeGestureEvent
-24 (int (*)(...))QNativeGestureEvent::~QNativeGestureEvent
-
-Class QNativeGestureEvent
- size=112 align=8
- base size=112 base align=8
-QNativeGestureEvent (0x0x7fba0dc6f000) 0
- vptr=((& QNativeGestureEvent::_ZTV19QNativeGestureEvent) + 16u)
- QInputEvent (0x0x7fba0dc6f068) 0
- primary-for QNativeGestureEvent (0x0x7fba0dc6f000)
- QEvent (0x0x7fba0db65d80) 0
- primary-for QInputEvent (0x0x7fba0dc6f068)
-
-Vtable for QKeyEvent
-QKeyEvent::_ZTV9QKeyEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QKeyEvent)
-16 (int (*)(...))QKeyEvent::~QKeyEvent
-24 (int (*)(...))QKeyEvent::~QKeyEvent
-
-Class QKeyEvent
- size=64 align=8
- base size=59 base align=8
-QKeyEvent (0x0x7fba0dc6f0d0) 0
- vptr=((& QKeyEvent::_ZTV9QKeyEvent) + 16u)
- QInputEvent (0x0x7fba0dc6f138) 0
- primary-for QKeyEvent (0x0x7fba0dc6f0d0)
- QEvent (0x0x7fba0db65de0) 0
- primary-for QInputEvent (0x0x7fba0dc6f138)
-
-Vtable for QFocusEvent
-QFocusEvent::_ZTV11QFocusEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFocusEvent)
-16 (int (*)(...))QFocusEvent::~QFocusEvent
-24 (int (*)(...))QFocusEvent::~QFocusEvent
-
-Class QFocusEvent
- size=24 align=8
- base size=24 base align=8
-QFocusEvent (0x0x7fba0dc6f1a0) 0
- vptr=((& QFocusEvent::_ZTV11QFocusEvent) + 16u)
- QEvent (0x0x7fba0db65e40) 0
- primary-for QFocusEvent (0x0x7fba0dc6f1a0)
-
-Vtable for QPaintEvent
-QPaintEvent::_ZTV11QPaintEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QPaintEvent)
-16 (int (*)(...))QPaintEvent::~QPaintEvent
-24 (int (*)(...))QPaintEvent::~QPaintEvent
-
-Class QPaintEvent
- size=56 align=8
- base size=49 base align=8
-QPaintEvent (0x0x7fba0dc6f208) 0
- vptr=((& QPaintEvent::_ZTV11QPaintEvent) + 16u)
- QEvent (0x0x7fba0db65ea0) 0
- primary-for QPaintEvent (0x0x7fba0dc6f208)
-
-Vtable for QMoveEvent
-QMoveEvent::_ZTV10QMoveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QMoveEvent)
-16 (int (*)(...))QMoveEvent::~QMoveEvent
-24 (int (*)(...))QMoveEvent::~QMoveEvent
-
-Class QMoveEvent
- size=40 align=8
- base size=36 base align=8
-QMoveEvent (0x0x7fba0dc6f270) 0
- vptr=((& QMoveEvent::_ZTV10QMoveEvent) + 16u)
- QEvent (0x0x7fba0db65f00) 0
- primary-for QMoveEvent (0x0x7fba0dc6f270)
-
-Vtable for QExposeEvent
-QExposeEvent::_ZTV12QExposeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QExposeEvent)
-16 (int (*)(...))QExposeEvent::~QExposeEvent
-24 (int (*)(...))QExposeEvent::~QExposeEvent
-
-Class QExposeEvent
- size=32 align=8
- base size=32 base align=8
-QExposeEvent (0x0x7fba0dc6f2d8) 0
- vptr=((& QExposeEvent::_ZTV12QExposeEvent) + 16u)
- QEvent (0x0x7fba0db65f60) 0
- primary-for QExposeEvent (0x0x7fba0dc6f2d8)
-
-Vtable for QPlatformSurfaceEvent
-QPlatformSurfaceEvent::_ZTV21QPlatformSurfaceEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QPlatformSurfaceEvent)
-16 (int (*)(...))QPlatformSurfaceEvent::~QPlatformSurfaceEvent
-24 (int (*)(...))QPlatformSurfaceEvent::~QPlatformSurfaceEvent
-
-Class QPlatformSurfaceEvent
- size=24 align=8
- base size=24 base align=8
-QPlatformSurfaceEvent (0x0x7fba0dc6f340) 0
- vptr=((& QPlatformSurfaceEvent::_ZTV21QPlatformSurfaceEvent) + 16u)
- QEvent (0x0x7fba0dca4000) 0
- primary-for QPlatformSurfaceEvent (0x0x7fba0dc6f340)
-
-Vtable for QResizeEvent
-QResizeEvent::_ZTV12QResizeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QResizeEvent)
-16 (int (*)(...))QResizeEvent::~QResizeEvent
-24 (int (*)(...))QResizeEvent::~QResizeEvent
-
-Class QResizeEvent
- size=40 align=8
- base size=36 base align=8
-QResizeEvent (0x0x7fba0dc6f3a8) 0
- vptr=((& QResizeEvent::_ZTV12QResizeEvent) + 16u)
- QEvent (0x0x7fba0dca4060) 0
- primary-for QResizeEvent (0x0x7fba0dc6f3a8)
-
-Vtable for QCloseEvent
-QCloseEvent::_ZTV11QCloseEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QCloseEvent)
-16 (int (*)(...))QCloseEvent::~QCloseEvent
-24 (int (*)(...))QCloseEvent::~QCloseEvent
-
-Class QCloseEvent
- size=24 align=8
- base size=20 base align=8
-QCloseEvent (0x0x7fba0dc6f410) 0
- vptr=((& QCloseEvent::_ZTV11QCloseEvent) + 16u)
- QEvent (0x0x7fba0dca40c0) 0
- primary-for QCloseEvent (0x0x7fba0dc6f410)
-
-Vtable for QIconDragEvent
-QIconDragEvent::_ZTV14QIconDragEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QIconDragEvent)
-16 (int (*)(...))QIconDragEvent::~QIconDragEvent
-24 (int (*)(...))QIconDragEvent::~QIconDragEvent
-
-Class QIconDragEvent
- size=24 align=8
- base size=20 base align=8
-QIconDragEvent (0x0x7fba0dc6f478) 0
- vptr=((& QIconDragEvent::_ZTV14QIconDragEvent) + 16u)
- QEvent (0x0x7fba0dca4120) 0
- primary-for QIconDragEvent (0x0x7fba0dc6f478)
-
-Vtable for QShowEvent
-QShowEvent::_ZTV10QShowEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QShowEvent)
-16 (int (*)(...))QShowEvent::~QShowEvent
-24 (int (*)(...))QShowEvent::~QShowEvent
-
-Class QShowEvent
- size=24 align=8
- base size=20 base align=8
-QShowEvent (0x0x7fba0dc6f4e0) 0
- vptr=((& QShowEvent::_ZTV10QShowEvent) + 16u)
- QEvent (0x0x7fba0dca4180) 0
- primary-for QShowEvent (0x0x7fba0dc6f4e0)
-
-Vtable for QHideEvent
-QHideEvent::_ZTV10QHideEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QHideEvent)
-16 (int (*)(...))QHideEvent::~QHideEvent
-24 (int (*)(...))QHideEvent::~QHideEvent
-
-Class QHideEvent
- size=24 align=8
- base size=20 base align=8
-QHideEvent (0x0x7fba0dc6f548) 0
- vptr=((& QHideEvent::_ZTV10QHideEvent) + 16u)
- QEvent (0x0x7fba0dca41e0) 0
- primary-for QHideEvent (0x0x7fba0dc6f548)
-
-Vtable for QContextMenuEvent
-QContextMenuEvent::_ZTV17QContextMenuEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QContextMenuEvent)
-16 (int (*)(...))QContextMenuEvent::~QContextMenuEvent
-24 (int (*)(...))QContextMenuEvent::~QContextMenuEvent
-
-Class QContextMenuEvent
- size=56 align=8
- base size=49 base align=8
-QContextMenuEvent (0x0x7fba0dc6f5b0) 0
- vptr=((& QContextMenuEvent::_ZTV17QContextMenuEvent) + 16u)
- QInputEvent (0x0x7fba0dc6f618) 0
- primary-for QContextMenuEvent (0x0x7fba0dc6f5b0)
- QEvent (0x0x7fba0dca4240) 0
- primary-for QInputEvent (0x0x7fba0dc6f618)
-
-Class QInputMethodEvent::Attribute
- size=32 align=8
- base size=32 base align=8
-QInputMethodEvent::Attribute (0x0x7fba0dca4300) 0
-
-Vtable for QInputMethodEvent
-QInputMethodEvent::_ZTV17QInputMethodEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QInputMethodEvent)
-16 (int (*)(...))QInputMethodEvent::~QInputMethodEvent
-24 (int (*)(...))QInputMethodEvent::~QInputMethodEvent
-
-Class QInputMethodEvent
- size=56 align=8
- base size=56 base align=8
-QInputMethodEvent (0x0x7fba0dc6f680) 0
- vptr=((& QInputMethodEvent::_ZTV17QInputMethodEvent) + 16u)
- QEvent (0x0x7fba0dca42a0) 0
- primary-for QInputMethodEvent (0x0x7fba0dc6f680)
-
-Class QInputMethodQueryEvent::QueryPair
- size=24 align=8
- base size=24 base align=8
-QInputMethodQueryEvent::QueryPair (0x0x7fba0dca4780) 0
-
-Vtable for QInputMethodQueryEvent
-QInputMethodQueryEvent::_ZTV22QInputMethodQueryEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QInputMethodQueryEvent)
-16 (int (*)(...))QInputMethodQueryEvent::~QInputMethodQueryEvent
-24 (int (*)(...))QInputMethodQueryEvent::~QInputMethodQueryEvent
-
-Class QInputMethodQueryEvent
- size=32 align=8
- base size=32 base align=8
-QInputMethodQueryEvent (0x0x7fba0dc6f9c0) 0
- vptr=((& QInputMethodQueryEvent::_ZTV22QInputMethodQueryEvent) + 16u)
- QEvent (0x0x7fba0dca4720) 0
- primary-for QInputMethodQueryEvent (0x0x7fba0dc6f9c0)
-
-Vtable for QDropEvent
-QDropEvent::_ZTV10QDropEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QDropEvent)
-16 (int (*)(...))QDropEvent::~QDropEvent
-24 (int (*)(...))QDropEvent::~QDropEvent
-
-Class QDropEvent
- size=72 align=8
- base size=72 base align=8
-QDropEvent (0x0x7fba0dc6fc98) 0
- vptr=((& QDropEvent::_ZTV10QDropEvent) + 16u)
- QEvent (0x0x7fba0dca4ae0) 0
- primary-for QDropEvent (0x0x7fba0dc6fc98)
-
-Vtable for QDragMoveEvent
-QDragMoveEvent::_ZTV14QDragMoveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QDragMoveEvent)
-16 (int (*)(...))QDragMoveEvent::~QDragMoveEvent
-24 (int (*)(...))QDragMoveEvent::~QDragMoveEvent
-
-Class QDragMoveEvent
- size=88 align=8
- base size=88 base align=8
-QDragMoveEvent (0x0x7fba0dc6fd00) 0
- vptr=((& QDragMoveEvent::_ZTV14QDragMoveEvent) + 16u)
- QDropEvent (0x0x7fba0dc6fd68) 0
- primary-for QDragMoveEvent (0x0x7fba0dc6fd00)
- QEvent (0x0x7fba0dca4b40) 0
- primary-for QDropEvent (0x0x7fba0dc6fd68)
-
-Vtable for QDragEnterEvent
-QDragEnterEvent::_ZTV15QDragEnterEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QDragEnterEvent)
-16 (int (*)(...))QDragEnterEvent::~QDragEnterEvent
-24 (int (*)(...))QDragEnterEvent::~QDragEnterEvent
-
-Class QDragEnterEvent
- size=88 align=8
- base size=88 base align=8
-QDragEnterEvent (0x0x7fba0dc6fdd0) 0
- vptr=((& QDragEnterEvent::_ZTV15QDragEnterEvent) + 16u)
- QDragMoveEvent (0x0x7fba0dc6fe38) 0
- primary-for QDragEnterEvent (0x0x7fba0dc6fdd0)
- QDropEvent (0x0x7fba0dc6fea0) 0
- primary-for QDragMoveEvent (0x0x7fba0dc6fe38)
- QEvent (0x0x7fba0dca4ba0) 0
- primary-for QDropEvent (0x0x7fba0dc6fea0)
-
-Vtable for QDragLeaveEvent
-QDragLeaveEvent::_ZTV15QDragLeaveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QDragLeaveEvent)
-16 (int (*)(...))QDragLeaveEvent::~QDragLeaveEvent
-24 (int (*)(...))QDragLeaveEvent::~QDragLeaveEvent
-
-Class QDragLeaveEvent
- size=24 align=8
- base size=20 base align=8
-QDragLeaveEvent (0x0x7fba0dc6ff08) 0
- vptr=((& QDragLeaveEvent::_ZTV15QDragLeaveEvent) + 16u)
- QEvent (0x0x7fba0dca4c00) 0
- primary-for QDragLeaveEvent (0x0x7fba0dc6ff08)
-
-Vtable for QHelpEvent
-QHelpEvent::_ZTV10QHelpEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QHelpEvent)
-16 (int (*)(...))QHelpEvent::~QHelpEvent
-24 (int (*)(...))QHelpEvent::~QHelpEvent
-
-Class QHelpEvent
- size=40 align=8
- base size=36 base align=8
-QHelpEvent (0x0x7fba0dc6ff70) 0
- vptr=((& QHelpEvent::_ZTV10QHelpEvent) + 16u)
- QEvent (0x0x7fba0dca4c60) 0
- primary-for QHelpEvent (0x0x7fba0dc6ff70)
-
-Vtable for QStatusTipEvent
-QStatusTipEvent::_ZTV15QStatusTipEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QStatusTipEvent)
-16 (int (*)(...))QStatusTipEvent::~QStatusTipEvent
-24 (int (*)(...))QStatusTipEvent::~QStatusTipEvent
-
-Class QStatusTipEvent
- size=32 align=8
- base size=32 base align=8
-QStatusTipEvent (0x0x7fba0d972000) 0
- vptr=((& QStatusTipEvent::_ZTV15QStatusTipEvent) + 16u)
- QEvent (0x0x7fba0dca4cc0) 0
- primary-for QStatusTipEvent (0x0x7fba0d972000)
-
-Vtable for QWhatsThisClickedEvent
-QWhatsThisClickedEvent::_ZTV22QWhatsThisClickedEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QWhatsThisClickedEvent)
-16 (int (*)(...))QWhatsThisClickedEvent::~QWhatsThisClickedEvent
-24 (int (*)(...))QWhatsThisClickedEvent::~QWhatsThisClickedEvent
-
-Class QWhatsThisClickedEvent
- size=32 align=8
- base size=32 base align=8
-QWhatsThisClickedEvent (0x0x7fba0d972068) 0
- vptr=((& QWhatsThisClickedEvent::_ZTV22QWhatsThisClickedEvent) + 16u)
- QEvent (0x0x7fba0dca4d20) 0
- primary-for QWhatsThisClickedEvent (0x0x7fba0d972068)
-
-Vtable for QActionEvent
-QActionEvent::_ZTV12QActionEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QActionEvent)
-16 (int (*)(...))QActionEvent::~QActionEvent
-24 (int (*)(...))QActionEvent::~QActionEvent
-
-Class QActionEvent
- size=40 align=8
- base size=40 base align=8
-QActionEvent (0x0x7fba0d9720d0) 0
- vptr=((& QActionEvent::_ZTV12QActionEvent) + 16u)
- QEvent (0x0x7fba0dca4d80) 0
- primary-for QActionEvent (0x0x7fba0d9720d0)
-
-Vtable for QFileOpenEvent
-QFileOpenEvent::_ZTV14QFileOpenEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QFileOpenEvent)
-16 (int (*)(...))QFileOpenEvent::~QFileOpenEvent
-24 (int (*)(...))QFileOpenEvent::~QFileOpenEvent
-
-Class QFileOpenEvent
- size=40 align=8
- base size=40 base align=8
-QFileOpenEvent (0x0x7fba0d972138) 0
- vptr=((& QFileOpenEvent::_ZTV14QFileOpenEvent) + 16u)
- QEvent (0x0x7fba0dca4de0) 0
- primary-for QFileOpenEvent (0x0x7fba0d972138)
-
-Vtable for QToolBarChangeEvent
-QToolBarChangeEvent::_ZTV19QToolBarChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QToolBarChangeEvent)
-16 (int (*)(...))QToolBarChangeEvent::~QToolBarChangeEvent
-24 (int (*)(...))QToolBarChangeEvent::~QToolBarChangeEvent
-
-Class QToolBarChangeEvent
- size=24 align=8
- base size=21 base align=8
-QToolBarChangeEvent (0x0x7fba0d9721a0) 0
- vptr=((& QToolBarChangeEvent::_ZTV19QToolBarChangeEvent) + 16u)
- QEvent (0x0x7fba0dca4e40) 0
- primary-for QToolBarChangeEvent (0x0x7fba0d9721a0)
-
-Vtable for QShortcutEvent
-QShortcutEvent::_ZTV14QShortcutEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QShortcutEvent)
-16 (int (*)(...))QShortcutEvent::~QShortcutEvent
-24 (int (*)(...))QShortcutEvent::~QShortcutEvent
-
-Class QShortcutEvent
- size=40 align=8
- base size=40 base align=8
-QShortcutEvent (0x0x7fba0d972208) 0
- vptr=((& QShortcutEvent::_ZTV14QShortcutEvent) + 16u)
- QEvent (0x0x7fba0dca4ea0) 0
- primary-for QShortcutEvent (0x0x7fba0d972208)
-
-Vtable for QWindowStateChangeEvent
-QWindowStateChangeEvent::_ZTV23QWindowStateChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QWindowStateChangeEvent)
-16 (int (*)(...))QWindowStateChangeEvent::~QWindowStateChangeEvent
-24 (int (*)(...))QWindowStateChangeEvent::~QWindowStateChangeEvent
-
-Class QWindowStateChangeEvent
- size=32 align=8
- base size=25 base align=8
-QWindowStateChangeEvent (0x0x7fba0d972270) 0
- vptr=((& QWindowStateChangeEvent::_ZTV23QWindowStateChangeEvent) + 16u)
- QEvent (0x0x7fba0dca4f00) 0
- primary-for QWindowStateChangeEvent (0x0x7fba0d972270)
-
-Class QPointingDeviceUniqueId
- size=8 align=8
- base size=8 base align=8
-QPointingDeviceUniqueId (0x0x7fba0dca4f60) 0
-
-Class QTouchEvent::TouchPoint
- size=8 align=8
- base size=8 base align=8
-QTouchEvent::TouchPoint (0x0x7fba0d9a0660) 0
-
-Vtable for QTouchEvent
-QTouchEvent::_ZTV11QTouchEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTouchEvent)
-16 (int (*)(...))QTouchEvent::~QTouchEvent
-24 (int (*)(...))QTouchEvent::~QTouchEvent
-
-Class QTouchEvent
- size=72 align=8
- base size=72 base align=8
-QTouchEvent (0x0x7fba0d9728f0) 0
- vptr=((& QTouchEvent::_ZTV11QTouchEvent) + 16u)
- QInputEvent (0x0x7fba0d972958) 0
- primary-for QTouchEvent (0x0x7fba0d9728f0)
- QEvent (0x0x7fba0d9a0600) 0
- primary-for QInputEvent (0x0x7fba0d972958)
-
-Vtable for QScrollPrepareEvent
-QScrollPrepareEvent::_ZTV19QScrollPrepareEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QScrollPrepareEvent)
-16 (int (*)(...))QScrollPrepareEvent::~QScrollPrepareEvent
-24 (int (*)(...))QScrollPrepareEvent::~QScrollPrepareEvent
-
-Class QScrollPrepareEvent
- size=112 align=8
- base size=112 base align=8
-QScrollPrepareEvent (0x0x7fba0da831a0) 0
- vptr=((& QScrollPrepareEvent::_ZTV19QScrollPrepareEvent) + 16u)
- QEvent (0x0x7fba0da6acc0) 0
- primary-for QScrollPrepareEvent (0x0x7fba0da831a0)
-
-Vtable for QScrollEvent
-QScrollEvent::_ZTV12QScrollEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QScrollEvent)
-16 (int (*)(...))QScrollEvent::~QScrollEvent
-24 (int (*)(...))QScrollEvent::~QScrollEvent
-
-Class QScrollEvent
- size=64 align=8
- base size=60 base align=8
-QScrollEvent (0x0x7fba0da83208) 0
- vptr=((& QScrollEvent::_ZTV12QScrollEvent) + 16u)
- QEvent (0x0x7fba0da6ad20) 0
- primary-for QScrollEvent (0x0x7fba0da83208)
-
-Vtable for QScreenOrientationChangeEvent
-QScreenOrientationChangeEvent::_ZTV29QScreenOrientationChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QScreenOrientationChangeEvent)
-16 (int (*)(...))QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent
-24 (int (*)(...))QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent
-
-Class QScreenOrientationChangeEvent
- size=40 align=8
- base size=36 base align=8
-QScreenOrientationChangeEvent (0x0x7fba0da83270) 0
- vptr=((& QScreenOrientationChangeEvent::_ZTV29QScreenOrientationChangeEvent) + 16u)
- QEvent (0x0x7fba0da6ad80) 0
- primary-for QScreenOrientationChangeEvent (0x0x7fba0da83270)
-
-Vtable for QApplicationStateChangeEvent
-QApplicationStateChangeEvent::_ZTV28QApplicationStateChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QApplicationStateChangeEvent)
-16 (int (*)(...))QApplicationStateChangeEvent::~QApplicationStateChangeEvent
-24 (int (*)(...))QApplicationStateChangeEvent::~QApplicationStateChangeEvent
-
-Class QApplicationStateChangeEvent
- size=24 align=8
- base size=24 base align=8
-QApplicationStateChangeEvent (0x0x7fba0da832d8) 0
- vptr=((& QApplicationStateChangeEvent::_ZTV28QApplicationStateChangeEvent) + 16u)
- QEvent (0x0x7fba0da6ade0) 0
- primary-for QApplicationStateChangeEvent (0x0x7fba0da832d8)
-
-Class QFont
- size=16 align=8
- base size=12 base align=8
-QFont (0x0x7fba0da6ae40) 0
-
-Class QPolygon
- size=8 align=8
- base size=8 base align=8
-QPolygon (0x0x7fba0d751068) 0
- QVector<QPoint> (0x0x7fba0d71bb40) 0
-
-Class QPolygonF
- size=8 align=8
- base size=8 base align=8
-QPolygonF (0x0x7fba0d751410) 0
- QVector<QPointF> (0x0x7fba0d7cf000) 0
-
-Class QMatrix
- size=48 align=8
- base size=48 base align=8
-QMatrix (0x0x7fba0d7cf3c0) 0
-
-Class QPainterPath::Element
- size=24 align=8
- base size=24 base align=8
-QPainterPath::Element (0x0x7fba0d7cf6c0) 0
-
-Class QPainterPath
- size=8 align=8
- base size=8 base align=8
-QPainterPath (0x0x7fba0d7cf660) 0
-
-Class QPainterPathStroker
- size=8 align=8
- base size=8 base align=8
-QPainterPathStroker (0x0x7fba0d89f0c0) 0
-
-Class QTransform
- size=88 align=8
- base size=88 base align=8
-QTransform (0x0x7fba0d89f1e0) 0
-
-Vtable for QPaintDevice
-QPaintDevice::_ZTV12QPaintDevice: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QPaintDevice)
-16 0u
-24 0u
-32 (int (*)(...))QPaintDevice::devType
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPaintDevice
- size=24 align=8
- base size=24 base align=8
-QPaintDevice (0x0x7fba0d89f900) 0
- vptr=((& QPaintDevice::_ZTV12QPaintDevice) + 16u)
-
-Class QPixelFormat
- size=8 align=8
- base size=8 base align=8
-QPixelFormat (0x0x7fba0d89f960) 0
-
-Vtable for QImage
-QImage::_ZTV6QImage: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QImage)
-16 (int (*)(...))QImage::~QImage
-24 (int (*)(...))QImage::~QImage
-32 (int (*)(...))QImage::devType
-40 (int (*)(...))QImage::paintEngine
-48 (int (*)(...))QImage::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QImage
- size=32 align=8
- base size=32 base align=8
-QImage (0x0x7fba0d5c72d8) 0
- vptr=((& QImage::_ZTV6QImage) + 16u)
- QPaintDevice (0x0x7fba0d5c2420) 0
- primary-for QImage (0x0x7fba0d5c72d8)
-
-Vtable for QPixmap
-QPixmap::_ZTV7QPixmap: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QPixmap)
-16 (int (*)(...))QPixmap::~QPixmap
-24 (int (*)(...))QPixmap::~QPixmap
-32 (int (*)(...))QPixmap::devType
-40 (int (*)(...))QPixmap::paintEngine
-48 (int (*)(...))QPixmap::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPixmap
- size=32 align=8
- base size=32 base align=8
-QPixmap (0x0x7fba0d68ae38) 0
- vptr=((& QPixmap::_ZTV7QPixmap) + 16u)
- QPaintDevice (0x0x7fba0d6953c0) 0
- primary-for QPixmap (0x0x7fba0d68ae38)
-
-Class QBrush
- size=8 align=8
- base size=8 base align=8
-QBrush (0x0x7fba0d6956c0) 0
-
-Class QBrushData
- size=112 align=8
- base size=112 base align=8
-QBrushData (0x0x7fba0d695e40) 0
-
-Class QGradient
- size=64 align=8
- base size=64 base align=8
-QGradient (0x0x7fba0d695ea0) 0
-
-Class QLinearGradient
- size=64 align=8
- base size=64 base align=8
-QLinearGradient (0x0x7fba0d1f27b8) 0
- QGradient (0x0x7fba0d26f180) 0
-
-Class QRadialGradient
- size=64 align=8
- base size=64 base align=8
-QRadialGradient (0x0x7fba0d1f2820) 0
- QGradient (0x0x7fba0d26f1e0) 0
-
-Class QConicalGradient
- size=64 align=8
- base size=64 base align=8
-QConicalGradient (0x0x7fba0d1f2888) 0
- QGradient (0x0x7fba0d26f240) 0
-
-Class QPen
- size=8 align=8
- base size=8 base align=8
-QPen (0x0x7fba0d26f2a0) 0
-
-Class QTextOption::Tab
- size=16 align=8
- base size=14 base align=8
-QTextOption::Tab (0x0x7fba0d3174e0) 0
-
-Class QTextOption
- size=32 align=8
- base size=32 base align=8
-QTextOption (0x0x7fba0d317480) 0
-
-Class QTextLength
- size=16 align=8
- base size=16 base align=8
-QTextLength (0x0x7fba0d317c60) 0
-
-Class QTextFormat
- size=16 align=8
- base size=12 base align=8
-QTextFormat (0x0x7fba0d39e3c0) 0
-
-Class QTextCharFormat
- size=16 align=8
- base size=12 base align=8
-QTextCharFormat (0x0x7fba0d013958) 0
- QTextFormat (0x0x7fba0d06f240) 0
-
-Class QTextBlockFormat
- size=16 align=8
- base size=12 base align=8
-QTextBlockFormat (0x0x7fba0d013b60) 0
- QTextFormat (0x0x7fba0d06f4e0) 0
-
-Class QTextListFormat
- size=16 align=8
- base size=12 base align=8
-QTextListFormat (0x0x7fba0d013dd0) 0
- QTextFormat (0x0x7fba0d06f780) 0
-
-Class QTextImageFormat
- size=16 align=8
- base size=12 base align=8
-QTextImageFormat (0x0x7fba0d0130d0) 0
- QTextCharFormat (0x0x7fba0d013270) 0
- QTextFormat (0x0x7fba0d06fa20) 0
-
-Class QTextFrameFormat
- size=16 align=8
- base size=12 base align=8
-QTextFrameFormat (0x0x7fba0d12f0d0) 0
- QTextFormat (0x0x7fba0d06fcc0) 0
-
-Class QTextTableFormat
- size=16 align=8
- base size=12 base align=8
-QTextTableFormat (0x0x7fba0d12f2d8) 0
- QTextFrameFormat (0x0x7fba0d12f340) 0
- QTextFormat (0x0x7fba0d06ff60) 0
-
-Class QTextTableCellFormat
- size=16 align=8
- base size=12 base align=8
-QTextTableCellFormat (0x0x7fba0d12f548) 0
- QTextCharFormat (0x0x7fba0d12f5b0) 0
- QTextFormat (0x0x7fba0d16b2a0) 0
-
-Class QFontDatabase
- size=8 align=8
- base size=8 base align=8
-QFontDatabase (0x0x7fba0d16b540) 0
-
-Class QRawFont
- size=8 align=8
- base size=8 base align=8
-QRawFont (0x0x7fba0d16b5a0) 0
-
-Class QGlyphRun
- size=8 align=8
- base size=8 base align=8
-QGlyphRun (0x0x7fba0d16ba80) 0
-
-Class QTextCursor
- size=8 align=8
- base size=8 base align=8
-QTextCursor (0x0x7fba0d16bd80) 0
-
-Class QTextInlineObject
- size=16 align=8
- base size=16 base align=8
-QTextInlineObject (0x0x7fba0ce5b0c0) 0
-
-Class QTextLayout::FormatRange
- size=24 align=8
- base size=24 base align=8
-QTextLayout::FormatRange (0x0x7fba0ce5b180) 0
-
-Class QTextLayout
- size=8 align=8
- base size=8 base align=8
-QTextLayout (0x0x7fba0ce5b120) 0
-
-Class QTextLine
- size=16 align=8
- base size=16 base align=8
-QTextLine (0x0x7fba0ce5bba0) 0
-
-Vtable for QAbstractUndoItem
-QAbstractUndoItem::_ZTV17QAbstractUndoItem: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAbstractUndoItem)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))__cxa_pure_virtual
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractUndoItem
- size=8 align=8
- base size=8 base align=8
-QAbstractUndoItem (0x0x7fba0ce5bc00) 0 nearly-empty
- vptr=((& QAbstractUndoItem::_ZTV17QAbstractUndoItem) + 16u)
-
-Class QTextDocument::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextDocument::QPrivateSignal (0x0x7fba0ce5bcc0) 0 empty
-
-Vtable for QTextDocument
-QTextDocument::_ZTV13QTextDocument: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QTextDocument)
-16 (int (*)(...))QTextDocument::metaObject
-24 (int (*)(...))QTextDocument::qt_metacast
-32 (int (*)(...))QTextDocument::qt_metacall
-40 (int (*)(...))QTextDocument::~QTextDocument
-48 (int (*)(...))QTextDocument::~QTextDocument
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextDocument::clear
-120 (int (*)(...))QTextDocument::createObject
-128 (int (*)(...))QTextDocument::loadResource
-
-Class QTextDocument
- size=16 align=8
- base size=16 base align=8
-QTextDocument (0x0x7fba0ceb78f0) 0
- vptr=((& QTextDocument::_ZTV13QTextDocument) + 16u)
- QObject (0x0x7fba0ce5bc60) 0
- primary-for QTextDocument (0x0x7fba0ceb78f0)
-
-Class QPalette::Data
- size=4 align=4
- base size=4 base align=4
-QPalette::Data (0x0x7fba0ce5bf00) 0
-
-Class QPalette
- size=16 align=8
- base size=12 base align=8
-QPalette (0x0x7fba0ce5bea0) 0
-
-Class QAbstractTextDocumentLayout::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTextDocumentLayout::QPrivateSignal (0x0x7fba0cc12000) 0 empty
-
-Class QAbstractTextDocumentLayout::Selection
- size=24 align=8
- base size=24 base align=8
-QAbstractTextDocumentLayout::Selection (0x0x7fba0cc12060) 0
-
-Class QAbstractTextDocumentLayout::PaintContext
- size=64 align=8
- base size=64 base align=8
-QAbstractTextDocumentLayout::PaintContext (0x0x7fba0cc120c0) 0
-
-Vtable for QAbstractTextDocumentLayout
-QAbstractTextDocumentLayout::_ZTV27QAbstractTextDocumentLayout: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAbstractTextDocumentLayout)
-16 (int (*)(...))QAbstractTextDocumentLayout::metaObject
-24 (int (*)(...))QAbstractTextDocumentLayout::qt_metacast
-32 (int (*)(...))QAbstractTextDocumentLayout::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractTextDocumentLayout::resizeInlineObject
-176 (int (*)(...))QAbstractTextDocumentLayout::positionInlineObject
-184 (int (*)(...))QAbstractTextDocumentLayout::drawInlineObject
-
-Class QAbstractTextDocumentLayout
- size=16 align=8
- base size=16 base align=8
-QAbstractTextDocumentLayout (0x0x7fba0cbed618) 0
- vptr=((& QAbstractTextDocumentLayout::_ZTV27QAbstractTextDocumentLayout) + 16u)
- QObject (0x0x7fba0cfcdf60) 0
- primary-for QAbstractTextDocumentLayout (0x0x7fba0cbed618)
-
-Vtable for QTextObjectInterface
-QTextObjectInterface::_ZTV20QTextObjectInterface: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTextObjectInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QTextObjectInterface
- size=8 align=8
- base size=8 base align=8
-QTextObjectInterface (0x0x7fba0cc12660) 0 nearly-empty
- vptr=((& QTextObjectInterface::_ZTV20QTextObjectInterface) + 16u)
-
-Class QAccessible::State
- size=8 align=8
- base size=5 base align=8
-QAccessible::State (0x0x7fba0cc12780) 0
-
-Vtable for QAccessible::ActivationObserver
-QAccessible::ActivationObserver::_ZTVN11QAccessible18ActivationObserverE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN11QAccessible18ActivationObserverE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessible::ActivationObserver
- size=8 align=8
- base size=8 base align=8
-QAccessible::ActivationObserver (0x0x7fba0cc127e0) 0 nearly-empty
- vptr=((& QAccessible::ActivationObserver::_ZTVN11QAccessible18ActivationObserverE) + 16u)
-
-Class QAccessible
- size=1 align=1
- base size=0 base align=1
-QAccessible (0x0x7fba0cc12720) 0 empty
-
-Vtable for QAccessibleInterface
-QAccessibleInterface::_ZTV20QAccessibleInterface: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QAccessibleInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QAccessibleInterface::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleInterface::focusChild
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleInterface (0x0x7fba0cc129c0) 0 nearly-empty
- vptr=((& QAccessibleInterface::_ZTV20QAccessibleInterface) + 16u)
-
-Vtable for QAccessibleTextInterface
-QAccessibleTextInterface::_ZTV24QAccessibleTextInterface: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAccessibleTextInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))QAccessibleTextInterface::textBeforeOffset
-104 (int (*)(...))QAccessibleTextInterface::textAfterOffset
-112 (int (*)(...))QAccessibleTextInterface::textAtOffset
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTextInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTextInterface (0x0x7fba0cc12a20) 0 nearly-empty
- vptr=((& QAccessibleTextInterface::_ZTV24QAccessibleTextInterface) + 16u)
-
-Vtable for QAccessibleEditableTextInterface
-QAccessibleEditableTextInterface::_ZTV32QAccessibleEditableTextInterface: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI32QAccessibleEditableTextInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleEditableTextInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleEditableTextInterface (0x0x7fba0cc12a80) 0 nearly-empty
- vptr=((& QAccessibleEditableTextInterface::_ZTV32QAccessibleEditableTextInterface) + 16u)
-
-Vtable for QAccessibleValueInterface
-QAccessibleValueInterface::_ZTV25QAccessibleValueInterface: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleValueInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleValueInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleValueInterface (0x0x7fba0cc12ae0) 0 nearly-empty
- vptr=((& QAccessibleValueInterface::_ZTV25QAccessibleValueInterface) + 16u)
-
-Vtable for QAccessibleTableCellInterface
-QAccessibleTableCellInterface::_ZTV29QAccessibleTableCellInterface: 12u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QAccessibleTableCellInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTableCellInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTableCellInterface (0x0x7fba0cc12b40) 0 nearly-empty
- vptr=((& QAccessibleTableCellInterface::_ZTV29QAccessibleTableCellInterface) + 16u)
-
-Vtable for QAccessibleTableInterface
-QAccessibleTableInterface::_ZTV25QAccessibleTableInterface: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleTableInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-184 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTableInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTableInterface (0x0x7fba0cc12ba0) 0 nearly-empty
- vptr=((& QAccessibleTableInterface::_ZTV25QAccessibleTableInterface) + 16u)
-
-Vtable for QAccessibleActionInterface
-QAccessibleActionInterface::_ZTV26QAccessibleActionInterface: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleActionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QAccessibleActionInterface::localizedActionName
-48 (int (*)(...))QAccessibleActionInterface::localizedActionDescription
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleActionInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleActionInterface (0x0x7fba0cc12c00) 0 nearly-empty
- vptr=((& QAccessibleActionInterface::_ZTV26QAccessibleActionInterface) + 16u)
-
-Vtable for QAccessibleImageInterface
-QAccessibleImageInterface::_ZTV25QAccessibleImageInterface: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleImageInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleImageInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleImageInterface (0x0x7fba0cc12c60) 0 nearly-empty
- vptr=((& QAccessibleImageInterface::_ZTV25QAccessibleImageInterface) + 16u)
-
-Vtable for QAccessibleEvent
-QAccessibleEvent::_ZTV16QAccessibleEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QAccessibleEvent)
-16 (int (*)(...))QAccessibleEvent::~QAccessibleEvent
-24 (int (*)(...))QAccessibleEvent::~QAccessibleEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleEvent
- size=32 align=8
- base size=28 base align=8
-QAccessibleEvent (0x0x7fba0cc12cc0) 0
- vptr=((& QAccessibleEvent::_ZTV16QAccessibleEvent) + 16u)
-
-Vtable for QAccessibleStateChangeEvent
-QAccessibleStateChangeEvent::_ZTV27QAccessibleStateChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAccessibleStateChangeEvent)
-16 (int (*)(...))QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent
-24 (int (*)(...))QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleStateChangeEvent
- size=40 align=8
- base size=40 base align=8
-QAccessibleStateChangeEvent (0x0x7fba0cd13068) 0
- vptr=((& QAccessibleStateChangeEvent::_ZTV27QAccessibleStateChangeEvent) + 16u)
- QAccessibleEvent (0x0x7fba0cd0d240) 0
- primary-for QAccessibleStateChangeEvent (0x0x7fba0cd13068)
-
-Vtable for QAccessibleTextCursorEvent
-QAccessibleTextCursorEvent::_ZTV26QAccessibleTextCursorEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextCursorEvent)
-16 (int (*)(...))QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent
-24 (int (*)(...))QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextCursorEvent
- size=32 align=8
- base size=32 base align=8
-QAccessibleTextCursorEvent (0x0x7fba0cd130d0) 0
- vptr=((& QAccessibleTextCursorEvent::_ZTV26QAccessibleTextCursorEvent) + 16u)
- QAccessibleEvent (0x0x7fba0cd0d2a0) 0
- primary-for QAccessibleTextCursorEvent (0x0x7fba0cd130d0)
-
-Vtable for QAccessibleTextSelectionEvent
-QAccessibleTextSelectionEvent::_ZTV29QAccessibleTextSelectionEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QAccessibleTextSelectionEvent)
-16 (int (*)(...))QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent
-24 (int (*)(...))QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextSelectionEvent
- size=40 align=8
- base size=40 base align=8
-QAccessibleTextSelectionEvent (0x0x7fba0cd13138) 0
- vptr=((& QAccessibleTextSelectionEvent::_ZTV29QAccessibleTextSelectionEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7fba0cd131a0) 0
- primary-for QAccessibleTextSelectionEvent (0x0x7fba0cd13138)
- QAccessibleEvent (0x0x7fba0cd0d300) 0
- primary-for QAccessibleTextCursorEvent (0x0x7fba0cd131a0)
-
-Vtable for QAccessibleTextInsertEvent
-QAccessibleTextInsertEvent::_ZTV26QAccessibleTextInsertEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextInsertEvent)
-16 (int (*)(...))QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent
-24 (int (*)(...))QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextInsertEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTextInsertEvent (0x0x7fba0cd13208) 0
- vptr=((& QAccessibleTextInsertEvent::_ZTV26QAccessibleTextInsertEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7fba0cd13270) 0
- primary-for QAccessibleTextInsertEvent (0x0x7fba0cd13208)
- QAccessibleEvent (0x0x7fba0cd0d360) 0
- primary-for QAccessibleTextCursorEvent (0x0x7fba0cd13270)
-
-Vtable for QAccessibleTextRemoveEvent
-QAccessibleTextRemoveEvent::_ZTV26QAccessibleTextRemoveEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextRemoveEvent)
-16 (int (*)(...))QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent
-24 (int (*)(...))QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextRemoveEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTextRemoveEvent (0x0x7fba0cd132d8) 0
- vptr=((& QAccessibleTextRemoveEvent::_ZTV26QAccessibleTextRemoveEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7fba0cd13340) 0
- primary-for QAccessibleTextRemoveEvent (0x0x7fba0cd132d8)
- QAccessibleEvent (0x0x7fba0cd0d3c0) 0
- primary-for QAccessibleTextCursorEvent (0x0x7fba0cd13340)
-
-Vtable for QAccessibleTextUpdateEvent
-QAccessibleTextUpdateEvent::_ZTV26QAccessibleTextUpdateEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextUpdateEvent)
-16 (int (*)(...))QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent
-24 (int (*)(...))QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextUpdateEvent
- size=56 align=8
- base size=56 base align=8
-QAccessibleTextUpdateEvent (0x0x7fba0cd133a8) 0
- vptr=((& QAccessibleTextUpdateEvent::_ZTV26QAccessibleTextUpdateEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7fba0cd13410) 0
- primary-for QAccessibleTextUpdateEvent (0x0x7fba0cd133a8)
- QAccessibleEvent (0x0x7fba0cd0d420) 0
- primary-for QAccessibleTextCursorEvent (0x0x7fba0cd13410)
-
-Vtable for QAccessibleValueChangeEvent
-QAccessibleValueChangeEvent::_ZTV27QAccessibleValueChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAccessibleValueChangeEvent)
-16 (int (*)(...))QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent
-24 (int (*)(...))QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleValueChangeEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleValueChangeEvent (0x0x7fba0cd13478) 0
- vptr=((& QAccessibleValueChangeEvent::_ZTV27QAccessibleValueChangeEvent) + 16u)
- QAccessibleEvent (0x0x7fba0cd0d480) 0
- primary-for QAccessibleValueChangeEvent (0x0x7fba0cd13478)
-
-Vtable for QAccessibleTableModelChangeEvent
-QAccessibleTableModelChangeEvent::_ZTV32QAccessibleTableModelChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI32QAccessibleTableModelChangeEvent)
-16 (int (*)(...))QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent
-24 (int (*)(...))QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTableModelChangeEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTableModelChangeEvent (0x0x7fba0cd134e0) 0
- vptr=((& QAccessibleTableModelChangeEvent::_ZTV32QAccessibleTableModelChangeEvent) + 16u)
- QAccessibleEvent (0x0x7fba0cd0d4e0) 0
- primary-for QAccessibleTableModelChangeEvent (0x0x7fba0cd134e0)
-
-Vtable for QAccessibleBridge
-QAccessibleBridge::_ZTV17QAccessibleBridge: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessibleBridge)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleBridge
- size=8 align=8
- base size=8 base align=8
-QAccessibleBridge (0x0x7fba0cd0d5a0) 0 nearly-empty
- vptr=((& QAccessibleBridge::_ZTV17QAccessibleBridge) + 16u)
-
-Class QAccessibleBridgePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAccessibleBridgePlugin::QPrivateSignal (0x0x7fba0cd0d660) 0 empty
-
-Vtable for QAccessibleBridgePlugin
-QAccessibleBridgePlugin::_ZTV23QAccessibleBridgePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QAccessibleBridgePlugin)
-16 (int (*)(...))QAccessibleBridgePlugin::metaObject
-24 (int (*)(...))QAccessibleBridgePlugin::qt_metacast
-32 (int (*)(...))QAccessibleBridgePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleBridgePlugin
- size=16 align=8
- base size=16 base align=8
-QAccessibleBridgePlugin (0x0x7fba0cd13548) 0
- vptr=((& QAccessibleBridgePlugin::_ZTV23QAccessibleBridgePlugin) + 16u)
- QObject (0x0x7fba0cd0d600) 0
- primary-for QAccessibleBridgePlugin (0x0x7fba0cd13548)
-
-Vtable for QAccessibleObject
-QAccessibleObject::_ZTV17QAccessibleObject: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessibleObject)
-16 0u
-24 0u
-32 (int (*)(...))QAccessibleObject::isValid
-40 (int (*)(...))QAccessibleObject::object
-48 (int (*)(...))QAccessibleInterface::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleInterface::focusChild
-72 (int (*)(...))QAccessibleObject::childAt
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QAccessibleObject::setText
-128 (int (*)(...))QAccessibleObject::rect
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleObject
- size=16 align=8
- base size=16 base align=8
-QAccessibleObject (0x0x7fba0cd135b0) 0
- vptr=((& QAccessibleObject::_ZTV17QAccessibleObject) + 16u)
- QAccessibleInterface (0x0x7fba0cd0d6c0) 0 nearly-empty
- primary-for QAccessibleObject (0x0x7fba0cd135b0)
-
-Vtable for QAccessibleApplication
-QAccessibleApplication::_ZTV22QAccessibleApplication: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QAccessibleApplication)
-16 (int (*)(...))QAccessibleApplication::~QAccessibleApplication
-24 (int (*)(...))QAccessibleApplication::~QAccessibleApplication
-32 (int (*)(...))QAccessibleObject::isValid
-40 (int (*)(...))QAccessibleObject::object
-48 (int (*)(...))QAccessibleApplication::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleApplication::focusChild
-72 (int (*)(...))QAccessibleObject::childAt
-80 (int (*)(...))QAccessibleApplication::parent
-88 (int (*)(...))QAccessibleApplication::child
-96 (int (*)(...))QAccessibleApplication::childCount
-104 (int (*)(...))QAccessibleApplication::indexOfChild
-112 (int (*)(...))QAccessibleApplication::text
-120 (int (*)(...))QAccessibleObject::setText
-128 (int (*)(...))QAccessibleObject::rect
-136 (int (*)(...))QAccessibleApplication::role
-144 (int (*)(...))QAccessibleApplication::state
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleApplication
- size=16 align=8
- base size=16 base align=8
-QAccessibleApplication (0x0x7fba0cd13618) 0
- vptr=((& QAccessibleApplication::_ZTV22QAccessibleApplication) + 16u)
- QAccessibleObject (0x0x7fba0cd13680) 0
- primary-for QAccessibleApplication (0x0x7fba0cd13618)
- QAccessibleInterface (0x0x7fba0cd0d720) 0 nearly-empty
- primary-for QAccessibleObject (0x0x7fba0cd13680)
-
-Class QAccessiblePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAccessiblePlugin::QPrivateSignal (0x0x7fba0cd0d7e0) 0 empty
-
-Vtable for QAccessiblePlugin
-QAccessiblePlugin::_ZTV17QAccessiblePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessiblePlugin)
-16 (int (*)(...))QAccessiblePlugin::metaObject
-24 (int (*)(...))QAccessiblePlugin::qt_metacast
-32 (int (*)(...))QAccessiblePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessiblePlugin
- size=16 align=8
- base size=16 base align=8
-QAccessiblePlugin (0x0x7fba0cd136e8) 0
- vptr=((& QAccessiblePlugin::_ZTV17QAccessiblePlugin) + 16u)
- QObject (0x0x7fba0cd0d780) 0
- primary-for QAccessiblePlugin (0x0x7fba0cd136e8)
-
-Class QSurfaceFormat
- size=8 align=8
- base size=8 base align=8
-QSurfaceFormat (0x0x7fba0cd0d840) 0
-
-Vtable for QSurface
-QSurface::_ZTV8QSurface: 8u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QSurface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-
-Class QSurface
- size=24 align=8
- base size=24 base align=8
-QSurface (0x0x7fba0cd0da20) 0
- vptr=((& QSurface::_ZTV8QSurface) + 16u)
-
-Class QIcon
- size=8 align=8
- base size=8 base align=8
-QIcon (0x0x7fba0cd0dba0) 0
-
-Class QCursor
- size=8 align=8
- base size=8 base align=8
-QCursor (0x0x7fba0cacbf60) 0
-
-Class QWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QWindow::QPrivateSignal (0x0x7fba0cb7f5a0) 0 empty
-
-Vtable for QWindow
-QWindow::_ZTV7QWindow: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QWindow)
-16 (int (*)(...))QWindow::metaObject
-24 (int (*)(...))QWindow::qt_metacast
-32 (int (*)(...))QWindow::qt_metacall
-40 (int (*)(...))QWindow::~QWindow
-48 (int (*)(...))QWindow::~QWindow
-56 (int (*)(...))QWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI7QWindow)
-312 (int (*)(...))QWindow::_ZThn16_N7QWindowD1Ev
-320 (int (*)(...))QWindow::_ZThn16_N7QWindowD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QWindow
- size=40 align=8
- base size=40 base align=8
-QWindow (0x0x7fba0cb8a150) 0
- vptr=((& QWindow::_ZTV7QWindow) + 16u)
- QObject (0x0x7fba0cb7f4e0) 0
- primary-for QWindow (0x0x7fba0cb8a150)
- QSurface (0x0x7fba0cb7f540) 16
- vptr=((& QWindow::_ZTV7QWindow) + 312u)
-
-Class QBackingStore
- size=8 align=8
- base size=8 base align=8
-QBackingStore (0x0x7fba0cb7f6c0) 0
-
-Vtable for QBitmap
-QBitmap::_ZTV7QBitmap: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QBitmap)
-16 (int (*)(...))QBitmap::~QBitmap
-24 (int (*)(...))QBitmap::~QBitmap
-32 (int (*)(...))QPixmap::devType
-40 (int (*)(...))QPixmap::paintEngine
-48 (int (*)(...))QPixmap::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QBitmap
- size=32 align=8
- base size=32 base align=8
-QBitmap (0x0x7fba0cb78750) 0
- vptr=((& QBitmap::_ZTV7QBitmap) + 16u)
- QPixmap (0x0x7fba0cb787b8) 0
- primary-for QBitmap (0x0x7fba0cb78750)
- QPaintDevice (0x0x7fba0cb7f780) 0
- primary-for QPixmap (0x0x7fba0cb787b8)
-
-Class QClipboard::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QClipboard::QPrivateSignal (0x0x7fba0cb7fae0) 0 empty
-
-Vtable for QClipboard
-QClipboard::_ZTV10QClipboard: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QClipboard)
-16 (int (*)(...))QClipboard::metaObject
-24 (int (*)(...))QClipboard::qt_metacast
-32 (int (*)(...))QClipboard::qt_metacall
-40 (int (*)(...))QClipboard::~QClipboard
-48 (int (*)(...))QClipboard::~QClipboard
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QClipboard
- size=16 align=8
- base size=16 base align=8
-QClipboard (0x0x7fba0cb78a28) 0
- vptr=((& QClipboard::_ZTV10QClipboard) + 16u)
- QObject (0x0x7fba0cb7fa80) 0
- primary-for QClipboard (0x0x7fba0cb78a28)
-
-Class QDesktopServices
- size=1 align=1
- base size=0 base align=1
-QDesktopServices (0x0x7fba0cb7fb40) 0 empty
-
-Class QDrag::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDrag::QPrivateSignal (0x0x7fba0cb7fc00) 0 empty
-
-Vtable for QDrag
-QDrag::_ZTV5QDrag: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QDrag)
-16 (int (*)(...))QDrag::metaObject
-24 (int (*)(...))QDrag::qt_metacast
-32 (int (*)(...))QDrag::qt_metacall
-40 (int (*)(...))QDrag::~QDrag
-48 (int (*)(...))QDrag::~QDrag
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDrag
- size=16 align=8
- base size=16 base align=8
-QDrag (0x0x7fba0cb78a90) 0
- vptr=((& QDrag::_ZTV5QDrag) + 16u)
- QObject (0x0x7fba0cb7fba0) 0
- primary-for QDrag (0x0x7fba0cb78a90)
-
-Class QFontInfo
- size=8 align=8
- base size=8 base align=8
-QFontInfo (0x0x7fba0cb7fc60) 0
-
-Class QFontMetrics
- size=8 align=8
- base size=8 base align=8
-QFontMetrics (0x0x7fba0cb7ff00) 0
-
-Class QFontMetricsF
- size=8 align=8
- base size=8 base align=8
-QFontMetricsF (0x0x7fba0c84e240) 0
-
-Class QGenericPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QGenericPlugin::QPrivateSignal (0x0x7fba0c91d9c0) 0 empty
-
-Vtable for QGenericPlugin
-QGenericPlugin::_ZTV14QGenericPlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QGenericPlugin)
-16 (int (*)(...))QGenericPlugin::metaObject
-24 (int (*)(...))QGenericPlugin::qt_metacast
-32 (int (*)(...))QGenericPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QGenericPlugin
- size=16 align=8
- base size=16 base align=8
-QGenericPlugin (0x0x7fba0c8815b0) 0
- vptr=((& QGenericPlugin::_ZTV14QGenericPlugin) + 16u)
- QObject (0x0x7fba0c91d960) 0
- primary-for QGenericPlugin (0x0x7fba0c8815b0)
-
-Class QGenericPluginFactory
- size=1 align=1
- base size=0 base align=1
-QGenericPluginFactory (0x0x7fba0c91da20) 0 empty
-
-Class QInputMethod::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QInputMethod::QPrivateSignal (0x0x7fba0c91dae0) 0 empty
-
-Vtable for QInputMethod
-QInputMethod::_ZTV12QInputMethod: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QInputMethod)
-16 (int (*)(...))QInputMethod::metaObject
-24 (int (*)(...))QInputMethod::qt_metacast
-32 (int (*)(...))QInputMethod::qt_metacall
-40 (int (*)(...))QInputMethod::~QInputMethod
-48 (int (*)(...))QInputMethod::~QInputMethod
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QInputMethod
- size=16 align=8
- base size=16 base align=8
-QInputMethod (0x0x7fba0c881618) 0
- vptr=((& QInputMethod::_ZTV12QInputMethod) + 16u)
- QObject (0x0x7fba0c91da80) 0
- primary-for QInputMethod (0x0x7fba0c881618)
-
-Class QGuiApplication::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QGuiApplication::QPrivateSignal (0x0x7fba0c91dba0) 0 empty
-
-Vtable for QGuiApplication
-QGuiApplication::_ZTV15QGuiApplication: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QGuiApplication)
-16 (int (*)(...))QGuiApplication::metaObject
-24 (int (*)(...))QGuiApplication::qt_metacast
-32 (int (*)(...))QGuiApplication::qt_metacall
-40 (int (*)(...))QGuiApplication::~QGuiApplication
-48 (int (*)(...))QGuiApplication::~QGuiApplication
-56 (int (*)(...))QGuiApplication::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QGuiApplication::notify
-120 (int (*)(...))QGuiApplication::compressEvent
-
-Class QGuiApplication
- size=16 align=8
- base size=16 base align=8
-QGuiApplication (0x0x7fba0c881680) 0
- vptr=((& QGuiApplication::_ZTV15QGuiApplication) + 16u)
- QCoreApplication (0x0x7fba0c8816e8) 0
- primary-for QGuiApplication (0x0x7fba0c881680)
- QObject (0x0x7fba0c91db40) 0
- primary-for QCoreApplication (0x0x7fba0c8816e8)
-
-Class QIconEngine::AvailableSizesArgument
- size=16 align=8
- base size=16 base align=8
-QIconEngine::AvailableSizesArgument (0x0x7fba0c603120) 0
-
-Class QIconEngine::ScaledPixmapArgument
- size=56 align=8
- base size=56 base align=8
-QIconEngine::ScaledPixmapArgument (0x0x7fba0c6032a0) 0
-
-Vtable for QIconEngine
-QIconEngine::_ZTV11QIconEngine: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QIconEngine)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QIconEngine::actualSize
-48 (int (*)(...))QIconEngine::pixmap
-56 (int (*)(...))QIconEngine::addPixmap
-64 (int (*)(...))QIconEngine::addFile
-72 (int (*)(...))QIconEngine::key
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))QIconEngine::read
-96 (int (*)(...))QIconEngine::write
-104 (int (*)(...))QIconEngine::availableSizes
-112 (int (*)(...))QIconEngine::iconName
-120 (int (*)(...))QIconEngine::virtual_hook
-
-Class QIconEngine
- size=8 align=8
- base size=8 base align=8
-QIconEngine (0x0x7fba0c6030c0) 0 nearly-empty
- vptr=((& QIconEngine::_ZTV11QIconEngine) + 16u)
-
-Class QIconEnginePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIconEnginePlugin::QPrivateSignal (0x0x7fba0c603360) 0 empty
-
-Vtable for QIconEnginePlugin
-QIconEnginePlugin::_ZTV17QIconEnginePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QIconEnginePlugin)
-16 (int (*)(...))QIconEnginePlugin::metaObject
-24 (int (*)(...))QIconEnginePlugin::qt_metacast
-32 (int (*)(...))QIconEnginePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QIconEnginePlugin
- size=16 align=8
- base size=16 base align=8
-QIconEnginePlugin (0x0x7fba0c881d00) 0
- vptr=((& QIconEnginePlugin::_ZTV17QIconEnginePlugin) + 16u)
- QObject (0x0x7fba0c603300) 0
- primary-for QIconEnginePlugin (0x0x7fba0c881d00)
-
-Vtable for QImageIOHandler
-QImageIOHandler::_ZTV15QImageIOHandler: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QImageIOHandler)
-16 0u
-24 0u
-32 (int (*)(...))QImageIOHandler::name
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))QImageIOHandler::write
-64 (int (*)(...))QImageIOHandler::option
-72 (int (*)(...))QImageIOHandler::setOption
-80 (int (*)(...))QImageIOHandler::supportsOption
-88 (int (*)(...))QImageIOHandler::jumpToNextImage
-96 (int (*)(...))QImageIOHandler::jumpToImage
-104 (int (*)(...))QImageIOHandler::loopCount
-112 (int (*)(...))QImageIOHandler::imageCount
-120 (int (*)(...))QImageIOHandler::nextImageDelay
-128 (int (*)(...))QImageIOHandler::currentImageNumber
-136 (int (*)(...))QImageIOHandler::currentImageRect
-
-Class QImageIOHandler
- size=16 align=8
- base size=16 base align=8
-QImageIOHandler (0x0x7fba0c6033c0) 0
- vptr=((& QImageIOHandler::_ZTV15QImageIOHandler) + 16u)
-
-Class QImageIOPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QImageIOPlugin::QPrivateSignal (0x0x7fba0c603540) 0 empty
-
-Vtable for QImageIOPlugin
-QImageIOPlugin::_ZTV14QImageIOPlugin: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QImageIOPlugin)
-16 (int (*)(...))QImageIOPlugin::metaObject
-24 (int (*)(...))QImageIOPlugin::qt_metacast
-32 (int (*)(...))QImageIOPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QImageIOPlugin
- size=16 align=8
- base size=16 base align=8
-QImageIOPlugin (0x0x7fba0c881d68) 0
- vptr=((& QImageIOPlugin::_ZTV14QImageIOPlugin) + 16u)
- QObject (0x0x7fba0c6034e0) 0
- primary-for QImageIOPlugin (0x0x7fba0c881d68)
-
-Class QImageReader
- size=8 align=8
- base size=8 base align=8
-QImageReader (0x0x7fba0c603720) 0
-
-Class QImageWriter
- size=8 align=8
- base size=8 base align=8
-QImageWriter (0x0x7fba0c603780) 0
-
-Class QVector3D
- size=12 align=4
- base size=12 base align=4
-QVector3D (0x0x7fba0c6037e0) 0
-
-Class QVector4D
- size=16 align=4
- base size=16 base align=4
-QVector4D (0x0x7fba0c603a80) 0
-
-Class QQuaternion
- size=16 align=4
- base size=16 base align=4
-QQuaternion (0x0x7fba0c603d20) 0
-
-Class QMatrix4x4
- size=68 align=4
- base size=68 base align=4
-QMatrix4x4 (0x0x7fba0c7b5360) 0
-
-Class QMovie::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QMovie::QPrivateSignal (0x0x7fba0c7b5ae0) 0 empty
-
-Vtable for QMovie
-QMovie::_ZTV6QMovie: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QMovie)
-16 (int (*)(...))QMovie::metaObject
-24 (int (*)(...))QMovie::qt_metacast
-32 (int (*)(...))QMovie::qt_metacall
-40 (int (*)(...))QMovie::~QMovie
-48 (int (*)(...))QMovie::~QMovie
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QMovie
- size=16 align=8
- base size=16 base align=8
-QMovie (0x0x7fba0c72ff08) 0
- vptr=((& QMovie::_ZTV6QMovie) + 16u)
- QObject (0x0x7fba0c7b5a80) 0
- primary-for QMovie (0x0x7fba0c72ff08)
-
-Class QOffscreenSurface::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOffscreenSurface::QPrivateSignal (0x0x7fba0c7b5c00) 0 empty
-
-Vtable for QOffscreenSurface
-QOffscreenSurface::_ZTV17QOffscreenSurface: 26u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QOffscreenSurface)
-16 (int (*)(...))QOffscreenSurface::metaObject
-24 (int (*)(...))QOffscreenSurface::qt_metacast
-32 (int (*)(...))QOffscreenSurface::qt_metacall
-40 (int (*)(...))QOffscreenSurface::~QOffscreenSurface
-48 (int (*)(...))QOffscreenSurface::~QOffscreenSurface
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QOffscreenSurface::surfaceType
-120 (int (*)(...))QOffscreenSurface::format
-128 (int (*)(...))QOffscreenSurface::size
-136 (int (*)(...))QOffscreenSurface::surfaceHandle
-144 (int (*)(...))-16
-152 (int (*)(...))(& _ZTI17QOffscreenSurface)
-160 (int (*)(...))QOffscreenSurface::_ZThn16_N17QOffscreenSurfaceD1Ev
-168 (int (*)(...))QOffscreenSurface::_ZThn16_N17QOffscreenSurfaceD0Ev
-176 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface6formatEv
-184 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface13surfaceHandleEv
-192 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface11surfaceTypeEv
-200 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface4sizeEv
-
-Class QOffscreenSurface
- size=40 align=8
- base size=40 base align=8
-QOffscreenSurface (0x0x7fba0c4fae00) 0
- vptr=((& QOffscreenSurface::_ZTV17QOffscreenSurface) + 16u)
- QObject (0x0x7fba0c7b5b40) 0
- primary-for QOffscreenSurface (0x0x7fba0c4fae00)
- QSurface (0x0x7fba0c7b5ba0) 16
- vptr=((& QOffscreenSurface::_ZTV17QOffscreenSurface) + 160u)
-
-Class QOpenGLBuffer
- size=8 align=8
- base size=8 base align=8
-QOpenGLBuffer (0x0x7fba0c7b5cc0) 0
-
-Class QOpenGLVersionStatus
- size=12 align=4
- base size=12 base align=4
-QOpenGLVersionStatus (0x0x7fba0c7b5ea0) 0
-
-Class QOpenGLVersionFunctionsBackend
- size=16 align=8
- base size=12 base align=8
-QOpenGLVersionFunctionsBackend (0x0x7fba0bea89c0) 0
-
-Class QOpenGLVersionFunctionsStorage
- size=8 align=8
- base size=8 base align=8
-QOpenGLVersionFunctionsStorage (0x0x7fba0bea8a20) 0
-
-Class QAbstractOpenGLFunctionsPrivate
- size=16 align=8
- base size=9 base align=8
-QAbstractOpenGLFunctionsPrivate (0x0x7fba0bea8a80) 0
-
-Vtable for QAbstractOpenGLFunctions
-QAbstractOpenGLFunctions::_ZTV24QAbstractOpenGLFunctions: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAbstractOpenGLFunctions)
-16 (int (*)(...))QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions
-24 (int (*)(...))QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions
-32 (int (*)(...))QAbstractOpenGLFunctions::initializeOpenGLFunctions
-
-Class QAbstractOpenGLFunctions
- size=16 align=8
- base size=16 base align=8
-QAbstractOpenGLFunctions (0x0x7fba0bea8ae0) 0
- vptr=((& QAbstractOpenGLFunctions::_ZTV24QAbstractOpenGLFunctions) + 16u)
-
-Class QOpenGLFunctions_1_0_CoreBackend::Functions
- size=384 align=8
- base size=384 base align=8
-QOpenGLFunctions_1_0_CoreBackend::Functions (0x0x7fba0bea8ba0) 0
-
-Class QOpenGLFunctions_1_0_CoreBackend
- size=400 align=8
- base size=400 base align=8
-QOpenGLFunctions_1_0_CoreBackend (0x0x7fba0bec21a0) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bea8b40) 0
-
-Class QOpenGLFunctions_1_1_CoreBackend::Functions
- size=128 align=8
- base size=128 base align=8
-QOpenGLFunctions_1_1_CoreBackend::Functions (0x0x7fba0bea8cc0) 0
-
-Class QOpenGLFunctions_1_1_CoreBackend
- size=144 align=8
- base size=144 base align=8
-QOpenGLFunctions_1_1_CoreBackend (0x0x7fba0bec2208) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bea8c60) 0
-
-Class QOpenGLFunctions_1_2_CoreBackend::Functions
- size=48 align=8
- base size=48 base align=8
-QOpenGLFunctions_1_2_CoreBackend::Functions (0x0x7fba0bea8de0) 0
-
-Class QOpenGLFunctions_1_2_CoreBackend
- size=64 align=8
- base size=64 base align=8
-QOpenGLFunctions_1_2_CoreBackend (0x0x7fba0bec2270) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bea8d80) 0
-
-Class QOpenGLFunctions_1_3_CoreBackend::Functions
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_1_3_CoreBackend::Functions (0x0x7fba0bea8f00) 0
-
-Class QOpenGLFunctions_1_3_CoreBackend
- size=88 align=8
- base size=88 base align=8
-QOpenGLFunctions_1_3_CoreBackend (0x0x7fba0bec22d8) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bea8ea0) 0
-
-Class QOpenGLFunctions_1_4_CoreBackend::Functions
- size=56 align=8
- base size=56 base align=8
-QOpenGLFunctions_1_4_CoreBackend::Functions (0x0x7fba0bf090c0) 0
-
-Class QOpenGLFunctions_1_4_CoreBackend
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_1_4_CoreBackend (0x0x7fba0bec2340) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09060) 0
-
-Class QOpenGLFunctions_1_5_CoreBackend::Functions
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_1_5_CoreBackend::Functions (0x0x7fba0bf091e0) 0
-
-Class QOpenGLFunctions_1_5_CoreBackend
- size=168 align=8
- base size=168 base align=8
-QOpenGLFunctions_1_5_CoreBackend (0x0x7fba0bec23a8) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09180) 0
-
-Class QOpenGLFunctions_2_0_CoreBackend::Functions
- size=744 align=8
- base size=744 base align=8
-QOpenGLFunctions_2_0_CoreBackend::Functions (0x0x7fba0bf09300) 0
-
-Class QOpenGLFunctions_2_0_CoreBackend
- size=760 align=8
- base size=760 base align=8
-QOpenGLFunctions_2_0_CoreBackend (0x0x7fba0bec2410) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf092a0) 0
-
-Class QOpenGLFunctions_2_1_CoreBackend::Functions
- size=48 align=8
- base size=48 base align=8
-QOpenGLFunctions_2_1_CoreBackend::Functions (0x0x7fba0bf09420) 0
-
-Class QOpenGLFunctions_2_1_CoreBackend
- size=64 align=8
- base size=64 base align=8
-QOpenGLFunctions_2_1_CoreBackend (0x0x7fba0bec2478) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf093c0) 0
-
-Class QOpenGLFunctions_3_0_CoreBackend::Functions
- size=672 align=8
- base size=672 base align=8
-QOpenGLFunctions_3_0_CoreBackend::Functions (0x0x7fba0bf09540) 0
-
-Class QOpenGLFunctions_3_0_CoreBackend
- size=688 align=8
- base size=688 base align=8
-QOpenGLFunctions_3_0_CoreBackend (0x0x7fba0bec24e0) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf094e0) 0
-
-Class QOpenGLFunctions_3_1_CoreBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_3_1_CoreBackend::Functions (0x0x7fba0bf09660) 0
-
-Class QOpenGLFunctions_3_1_CoreBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_3_1_CoreBackend (0x0x7fba0bec2548) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09600) 0
-
-Class QOpenGLFunctions_3_2_CoreBackend::Functions
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_3_2_CoreBackend::Functions (0x0x7fba0bf09780) 0
-
-Class QOpenGLFunctions_3_2_CoreBackend
- size=168 align=8
- base size=168 base align=8
-QOpenGLFunctions_3_2_CoreBackend (0x0x7fba0bec25b0) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09720) 0
-
-Class QOpenGLFunctions_3_3_CoreBackend::Functions
- size=464 align=8
- base size=464 base align=8
-QOpenGLFunctions_3_3_CoreBackend::Functions (0x0x7fba0bf098a0) 0
-
-Class QOpenGLFunctions_3_3_CoreBackend
- size=480 align=8
- base size=480 base align=8
-QOpenGLFunctions_3_3_CoreBackend (0x0x7fba0bec2618) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09840) 0
-
-Class QOpenGLFunctions_4_0_CoreBackend::Functions
- size=368 align=8
- base size=368 base align=8
-QOpenGLFunctions_4_0_CoreBackend::Functions (0x0x7fba0bf099c0) 0
-
-Class QOpenGLFunctions_4_0_CoreBackend
- size=384 align=8
- base size=384 base align=8
-QOpenGLFunctions_4_0_CoreBackend (0x0x7fba0bec2680) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09960) 0
-
-Class QOpenGLFunctions_4_1_CoreBackend::Functions
- size=704 align=8
- base size=704 base align=8
-QOpenGLFunctions_4_1_CoreBackend::Functions (0x0x7fba0bf09ae0) 0
-
-Class QOpenGLFunctions_4_1_CoreBackend
- size=720 align=8
- base size=720 base align=8
-QOpenGLFunctions_4_1_CoreBackend (0x0x7fba0bec26e8) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09a80) 0
-
-Class QOpenGLFunctions_4_2_CoreBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_4_2_CoreBackend::Functions (0x0x7fba0bf09c00) 0
-
-Class QOpenGLFunctions_4_2_CoreBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_4_2_CoreBackend (0x0x7fba0bec2750) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09ba0) 0
-
-Class QOpenGLFunctions_4_3_CoreBackend::Functions
- size=344 align=8
- base size=344 base align=8
-QOpenGLFunctions_4_3_CoreBackend::Functions (0x0x7fba0bf09d20) 0
-
-Class QOpenGLFunctions_4_3_CoreBackend
- size=360 align=8
- base size=360 base align=8
-QOpenGLFunctions_4_3_CoreBackend (0x0x7fba0bec27b8) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09cc0) 0
-
-Class QOpenGLFunctions_4_4_CoreBackend::Functions
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_4_4_CoreBackend::Functions (0x0x7fba0bf09e40) 0
-
-Class QOpenGLFunctions_4_4_CoreBackend
- size=88 align=8
- base size=88 base align=8
-QOpenGLFunctions_4_4_CoreBackend (0x0x7fba0bec2820) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09de0) 0
-
-Class QOpenGLFunctions_4_5_CoreBackend::Functions
- size=848 align=8
- base size=848 base align=8
-QOpenGLFunctions_4_5_CoreBackend::Functions (0x0x7fba0bc01000) 0
-
-Class QOpenGLFunctions_4_5_CoreBackend
- size=864 align=8
- base size=864 base align=8
-QOpenGLFunctions_4_5_CoreBackend (0x0x7fba0bec2888) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bf09f60) 0
-
-Class QOpenGLFunctions_1_0_DeprecatedBackend::Functions
- size=2064 align=8
- base size=2064 base align=8
-QOpenGLFunctions_1_0_DeprecatedBackend::Functions (0x0x7fba0bc01120) 0
-
-Class QOpenGLFunctions_1_0_DeprecatedBackend
- size=2080 align=8
- base size=2080 base align=8
-QOpenGLFunctions_1_0_DeprecatedBackend (0x0x7fba0bec28f0) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc010c0) 0
-
-Class QOpenGLFunctions_1_1_DeprecatedBackend::Functions
- size=136 align=8
- base size=136 base align=8
-QOpenGLFunctions_1_1_DeprecatedBackend::Functions (0x0x7fba0bc01240) 0
-
-Class QOpenGLFunctions_1_1_DeprecatedBackend
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_1_1_DeprecatedBackend (0x0x7fba0bec2958) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc011e0) 0
-
-Class QOpenGLFunctions_1_2_DeprecatedBackend::Functions
- size=256 align=8
- base size=256 base align=8
-QOpenGLFunctions_1_2_DeprecatedBackend::Functions (0x0x7fba0bc01360) 0
-
-Class QOpenGLFunctions_1_2_DeprecatedBackend
- size=272 align=8
- base size=272 base align=8
-QOpenGLFunctions_1_2_DeprecatedBackend (0x0x7fba0bec29c0) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc01300) 0
-
-Class QOpenGLFunctions_1_3_DeprecatedBackend::Functions
- size=296 align=8
- base size=296 base align=8
-QOpenGLFunctions_1_3_DeprecatedBackend::Functions (0x0x7fba0bc01480) 0
-
-Class QOpenGLFunctions_1_3_DeprecatedBackend
- size=312 align=8
- base size=312 base align=8
-QOpenGLFunctions_1_3_DeprecatedBackend (0x0x7fba0bec2a28) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc01420) 0
-
-Class QOpenGLFunctions_1_4_DeprecatedBackend::Functions
- size=304 align=8
- base size=304 base align=8
-QOpenGLFunctions_1_4_DeprecatedBackend::Functions (0x0x7fba0bc015a0) 0
-
-Class QOpenGLFunctions_1_4_DeprecatedBackend
- size=320 align=8
- base size=320 base align=8
-QOpenGLFunctions_1_4_DeprecatedBackend (0x0x7fba0bec2a90) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc01540) 0
-
-Class QOpenGLFunctions_2_0_DeprecatedBackend::Functions
- size=288 align=8
- base size=288 base align=8
-QOpenGLFunctions_2_0_DeprecatedBackend::Functions (0x0x7fba0bc016c0) 0
-
-Class QOpenGLFunctions_2_0_DeprecatedBackend
- size=304 align=8
- base size=304 base align=8
-QOpenGLFunctions_2_0_DeprecatedBackend (0x0x7fba0bec2af8) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc01660) 0
-
-Class QOpenGLFunctions_3_0_DeprecatedBackend::Functions
- size=160 align=8
- base size=160 base align=8
-QOpenGLFunctions_3_0_DeprecatedBackend::Functions (0x0x7fba0bc017e0) 0
-
-Class QOpenGLFunctions_3_0_DeprecatedBackend
- size=176 align=8
- base size=176 base align=8
-QOpenGLFunctions_3_0_DeprecatedBackend (0x0x7fba0bec2b60) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc01780) 0
-
-Class QOpenGLFunctions_3_3_DeprecatedBackend::Functions
- size=240 align=8
- base size=240 base align=8
-QOpenGLFunctions_3_3_DeprecatedBackend::Functions (0x0x7fba0bc01900) 0
-
-Class QOpenGLFunctions_3_3_DeprecatedBackend
- size=256 align=8
- base size=256 base align=8
-QOpenGLFunctions_3_3_DeprecatedBackend (0x0x7fba0bec2bc8) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc018a0) 0
-
-Class QOpenGLFunctions_4_5_DeprecatedBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_4_5_DeprecatedBackend::Functions (0x0x7fba0bc01a20) 0
-
-Class QOpenGLFunctions_4_5_DeprecatedBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_4_5_DeprecatedBackend (0x0x7fba0bec2c30) 0
- QOpenGLVersionFunctionsBackend (0x0x7fba0bc019c0) 0
-
-Class QOpenGLVersionProfile
- size=8 align=8
- base size=8 base align=8
-QOpenGLVersionProfile (0x0x7fba0bc01ae0) 0
-
-Class QOpenGLContextGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLContextGroup::QPrivateSignal (0x0x7fba0bd0d4e0) 0 empty
-
-Vtable for QOpenGLContextGroup
-QOpenGLContextGroup::_ZTV19QOpenGLContextGroup: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QOpenGLContextGroup)
-16 (int (*)(...))QOpenGLContextGroup::metaObject
-24 (int (*)(...))QOpenGLContextGroup::qt_metacast
-32 (int (*)(...))QOpenGLContextGroup::qt_metacall
-40 (int (*)(...))QOpenGLContextGroup::~QOpenGLContextGroup
-48 (int (*)(...))QOpenGLContextGroup::~QOpenGLContextGroup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLContextGroup
- size=16 align=8
- base size=16 base align=8
-QOpenGLContextGroup (0x0x7fba0bd03680) 0
- vptr=((& QOpenGLContextGroup::_ZTV19QOpenGLContextGroup) + 16u)
- QObject (0x0x7fba0bd0d480) 0
- primary-for QOpenGLContextGroup (0x0x7fba0bd03680)
-
-Class QOpenGLContext::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLContext::QPrivateSignal (0x0x7fba0bd0d5a0) 0 empty
-
-Vtable for QOpenGLContext
-QOpenGLContext::_ZTV14QOpenGLContext: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QOpenGLContext)
-16 (int (*)(...))QOpenGLContext::metaObject
-24 (int (*)(...))QOpenGLContext::qt_metacast
-32 (int (*)(...))QOpenGLContext::qt_metacall
-40 (int (*)(...))QOpenGLContext::~QOpenGLContext
-48 (int (*)(...))QOpenGLContext::~QOpenGLContext
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLContext
- size=16 align=8
- base size=16 base align=8
-QOpenGLContext (0x0x7fba0bd036e8) 0
- vptr=((& QOpenGLContext::_ZTV14QOpenGLContext) + 16u)
- QObject (0x0x7fba0bd0d540) 0
- primary-for QOpenGLContext (0x0x7fba0bd036e8)
-
-Class QOpenGLDebugMessage
- size=8 align=8
- base size=8 base align=8
-QOpenGLDebugMessage (0x0x7fba0bd0d600) 0
-
-Class QOpenGLDebugLogger::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLDebugLogger::QPrivateSignal (0x0x7fba0bd0dde0) 0 empty
-
-Vtable for QOpenGLDebugLogger
-QOpenGLDebugLogger::_ZTV18QOpenGLDebugLogger: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLDebugLogger)
-16 (int (*)(...))QOpenGLDebugLogger::metaObject
-24 (int (*)(...))QOpenGLDebugLogger::qt_metacast
-32 (int (*)(...))QOpenGLDebugLogger::qt_metacall
-40 (int (*)(...))QOpenGLDebugLogger::~QOpenGLDebugLogger
-48 (int (*)(...))QOpenGLDebugLogger::~QOpenGLDebugLogger
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLDebugLogger
- size=16 align=8
- base size=16 base align=8
-QOpenGLDebugLogger (0x0x7fba0bd03b60) 0
- vptr=((& QOpenGLDebugLogger::_ZTV18QOpenGLDebugLogger) + 16u)
- QObject (0x0x7fba0bd0dd80) 0
- primary-for QOpenGLDebugLogger (0x0x7fba0bd03b60)
-
-Class QOpenGLFunctions
- size=8 align=8
- base size=8 base align=8
-QOpenGLFunctions (0x0x7fba0bd0df60) 0
-
-Class QOpenGLFunctionsPrivate::Functions
- size=1152 align=8
- base size=1152 base align=8
-QOpenGLFunctionsPrivate::Functions (0x0x7fba0ba5b1e0) 0
-
-Class QOpenGLFunctionsPrivate
- size=1152 align=8
- base size=1152 base align=8
-QOpenGLFunctionsPrivate (0x0x7fba0ba5b180) 0
-
-Class QOpenGLExtraFunctions
- size=8 align=8
- base size=8 base align=8
-QOpenGLExtraFunctions (0x0x7fba0bd03dd0) 0
- QOpenGLFunctions (0x0x7fba0bb7f900) 0
-
-Class QOpenGLExtraFunctionsPrivate::Functions
- size=1728 align=8
- base size=1728 base align=8
-QOpenGLExtraFunctionsPrivate::Functions (0x0x7fba0bb7f9c0) 0
-
-Class QOpenGLExtraFunctionsPrivate
- size=2880 align=8
- base size=2880 base align=8
-QOpenGLExtraFunctionsPrivate (0x0x7fba0bd03e38) 0
- QOpenGLFunctionsPrivate (0x0x7fba0bb7f960) 0
-
-Vtable for QOpenGLFramebufferObject
-QOpenGLFramebufferObject::_ZTV24QOpenGLFramebufferObject: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QOpenGLFramebufferObject)
-16 (int (*)(...))QOpenGLFramebufferObject::~QOpenGLFramebufferObject
-24 (int (*)(...))QOpenGLFramebufferObject::~QOpenGLFramebufferObject
-
-Class QOpenGLFramebufferObject
- size=16 align=8
- base size=16 base align=8
-QOpenGLFramebufferObject (0x0x7fba0b5e20c0) 0
- vptr=((& QOpenGLFramebufferObject::_ZTV24QOpenGLFramebufferObject) + 16u)
-
-Class QOpenGLFramebufferObjectFormat
- size=8 align=8
- base size=8 base align=8
-QOpenGLFramebufferObjectFormat (0x0x7fba0b5e21e0) 0
-
-Vtable for QOpenGLPaintDevice
-QOpenGLPaintDevice::_ZTV18QOpenGLPaintDevice: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLPaintDevice)
-16 (int (*)(...))QOpenGLPaintDevice::~QOpenGLPaintDevice
-24 (int (*)(...))QOpenGLPaintDevice::~QOpenGLPaintDevice
-32 (int (*)(...))QOpenGLPaintDevice::devType
-40 (int (*)(...))QOpenGLPaintDevice::paintEngine
-48 (int (*)(...))QOpenGLPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))QOpenGLPaintDevice::ensureActiveTarget
-
-Class QOpenGLPaintDevice
- size=32 align=8
- base size=32 base align=8
-QOpenGLPaintDevice (0x0x7fba0b9b1138) 0
- vptr=((& QOpenGLPaintDevice::_ZTV18QOpenGLPaintDevice) + 16u)
- QPaintDevice (0x0x7fba0b5e2240) 0
- primary-for QOpenGLPaintDevice (0x0x7fba0b9b1138)
-
-Class QOpenGLPixelTransferOptions
- size=8 align=8
- base size=8 base align=8
-QOpenGLPixelTransferOptions (0x0x7fba0b5e2360) 0
-
-Class QOpenGLShader::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLShader::QPrivateSignal (0x0x7fba0b5e26c0) 0 empty
-
-Vtable for QOpenGLShader
-QOpenGLShader::_ZTV13QOpenGLShader: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QOpenGLShader)
-16 (int (*)(...))QOpenGLShader::metaObject
-24 (int (*)(...))QOpenGLShader::qt_metacast
-32 (int (*)(...))QOpenGLShader::qt_metacall
-40 (int (*)(...))QOpenGLShader::~QOpenGLShader
-48 (int (*)(...))QOpenGLShader::~QOpenGLShader
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLShader
- size=16 align=8
- base size=16 base align=8
-QOpenGLShader (0x0x7fba0b9b1340) 0
- vptr=((& QOpenGLShader::_ZTV13QOpenGLShader) + 16u)
- QObject (0x0x7fba0b5e2660) 0
- primary-for QOpenGLShader (0x0x7fba0b9b1340)
-
-Class QOpenGLShaderProgram::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLShaderProgram::QPrivateSignal (0x0x7fba0b5e2900) 0 empty
-
-Vtable for QOpenGLShaderProgram
-QOpenGLShaderProgram::_ZTV20QOpenGLShaderProgram: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QOpenGLShaderProgram)
-16 (int (*)(...))QOpenGLShaderProgram::metaObject
-24 (int (*)(...))QOpenGLShaderProgram::qt_metacast
-32 (int (*)(...))QOpenGLShaderProgram::qt_metacall
-40 (int (*)(...))QOpenGLShaderProgram::~QOpenGLShaderProgram
-48 (int (*)(...))QOpenGLShaderProgram::~QOpenGLShaderProgram
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QOpenGLShaderProgram::link
-
-Class QOpenGLShaderProgram
- size=16 align=8
- base size=16 base align=8
-QOpenGLShaderProgram (0x0x7fba0b9b1478) 0
- vptr=((& QOpenGLShaderProgram::_ZTV20QOpenGLShaderProgram) + 16u)
- QObject (0x0x7fba0b5e28a0) 0
- primary-for QOpenGLShaderProgram (0x0x7fba0b9b1478)
-
-Class QOpenGLTexture
- size=8 align=8
- base size=8 base align=8
-QOpenGLTexture (0x0x7fba0b5e2960) 0
-
-Class QOpenGLTextureBlitter
- size=8 align=8
- base size=8 base align=8
-QOpenGLTextureBlitter (0x0x7fba0b5e2c00) 0
-
-Class QOpenGLTimerQuery::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLTimerQuery::QPrivateSignal (0x0x7fba0b5e2d80) 0 empty
-
-Vtable for QOpenGLTimerQuery
-QOpenGLTimerQuery::_ZTV17QOpenGLTimerQuery: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QOpenGLTimerQuery)
-16 (int (*)(...))QOpenGLTimerQuery::metaObject
-24 (int (*)(...))QOpenGLTimerQuery::qt_metacast
-32 (int (*)(...))QOpenGLTimerQuery::qt_metacall
-40 (int (*)(...))QOpenGLTimerQuery::~QOpenGLTimerQuery
-48 (int (*)(...))QOpenGLTimerQuery::~QOpenGLTimerQuery
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLTimerQuery
- size=16 align=8
- base size=16 base align=8
-QOpenGLTimerQuery (0x0x7fba0b9b15b0) 0
- vptr=((& QOpenGLTimerQuery::_ZTV17QOpenGLTimerQuery) + 16u)
- QObject (0x0x7fba0b5e2d20) 0
- primary-for QOpenGLTimerQuery (0x0x7fba0b9b15b0)
-
-Class QOpenGLTimeMonitor::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLTimeMonitor::QPrivateSignal (0x0x7fba0b5e2e40) 0 empty
-
-Vtable for QOpenGLTimeMonitor
-QOpenGLTimeMonitor::_ZTV18QOpenGLTimeMonitor: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLTimeMonitor)
-16 (int (*)(...))QOpenGLTimeMonitor::metaObject
-24 (int (*)(...))QOpenGLTimeMonitor::qt_metacast
-32 (int (*)(...))QOpenGLTimeMonitor::qt_metacall
-40 (int (*)(...))QOpenGLTimeMonitor::~QOpenGLTimeMonitor
-48 (int (*)(...))QOpenGLTimeMonitor::~QOpenGLTimeMonitor
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLTimeMonitor
- size=16 align=8
- base size=16 base align=8
-QOpenGLTimeMonitor (0x0x7fba0b9b1618) 0
- vptr=((& QOpenGLTimeMonitor::_ZTV18QOpenGLTimeMonitor) + 16u)
- QObject (0x0x7fba0b5e2de0) 0
- primary-for QOpenGLTimeMonitor (0x0x7fba0b9b1618)
-
-Class QOpenGLVertexArrayObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLVertexArrayObject::QPrivateSignal (0x0x7fba0b5e2f00) 0 empty
-
-Class QOpenGLVertexArrayObject::Binder
- size=8 align=8
- base size=8 base align=8
-QOpenGLVertexArrayObject::Binder (0x0x7fba0b5e2f60) 0
-
-Vtable for QOpenGLVertexArrayObject
-QOpenGLVertexArrayObject::_ZTV24QOpenGLVertexArrayObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QOpenGLVertexArrayObject)
-16 (int (*)(...))QOpenGLVertexArrayObject::metaObject
-24 (int (*)(...))QOpenGLVertexArrayObject::qt_metacast
-32 (int (*)(...))QOpenGLVertexArrayObject::qt_metacall
-40 (int (*)(...))QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject
-48 (int (*)(...))QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLVertexArrayObject
- size=16 align=8
- base size=16 base align=8
-QOpenGLVertexArrayObject (0x0x7fba0b9b1680) 0
- vptr=((& QOpenGLVertexArrayObject::_ZTV24QOpenGLVertexArrayObject) + 16u)
- QObject (0x0x7fba0b5e2ea0) 0
- primary-for QOpenGLVertexArrayObject (0x0x7fba0b9b1680)
-
-Class QPaintDeviceWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPaintDeviceWindow::QPrivateSignal (0x0x7fba0b7b7120) 0 empty
-
-Vtable for QPaintDeviceWindow
-QPaintDeviceWindow::_ZTV18QPaintDeviceWindow: 58u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-16 (int (*)(...))QPaintDeviceWindow::metaObject
-24 (int (*)(...))QPaintDeviceWindow::qt_metacast
-32 (int (*)(...))QPaintDeviceWindow::qt_metacall
-40 (int (*)(...))QPaintDeviceWindow::~QPaintDeviceWindow
-48 (int (*)(...))QPaintDeviceWindow::~QPaintDeviceWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QPaintDeviceWindow::paintEvent
-304 (int (*)(...))QPaintDeviceWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))-16
-328 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-336 (int (*)(...))QPaintDeviceWindow::_ZThn16_N18QPaintDeviceWindowD1Ev
-344 (int (*)(...))QPaintDeviceWindow::_ZThn16_N18QPaintDeviceWindowD0Ev
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-360 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-368 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-376 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-384 (int (*)(...))-40
-392 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-400 (int (*)(...))QPaintDeviceWindow::_ZThn40_N18QPaintDeviceWindowD1Ev
-408 (int (*)(...))QPaintDeviceWindow::_ZThn40_N18QPaintDeviceWindowD0Ev
-416 (int (*)(...))QPaintDevice::devType
-424 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-432 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-440 (int (*)(...))QPaintDevice::initPainter
-448 (int (*)(...))QPaintDevice::redirected
-456 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPaintDeviceWindow
- size=64 align=8
- base size=64 base align=8
-QPaintDeviceWindow (0x0x7fba0b7b0850) 0
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 16u)
- QWindow (0x0x7fba0b7b08c0) 0
- primary-for QPaintDeviceWindow (0x0x7fba0b7b0850)
- QObject (0x0x7fba0b7b7000) 0
- primary-for QWindow (0x0x7fba0b7b08c0)
- QSurface (0x0x7fba0b7b7060) 16
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 336u)
- QPaintDevice (0x0x7fba0b7b70c0) 40
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 400u)
-
-Class QOpenGLWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLWindow::QPrivateSignal (0x0x7fba0b7b72a0) 0 empty
-
-Vtable for QOpenGLWindow
-QOpenGLWindow::_ZTV13QOpenGLWindow: 64u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QOpenGLWindow)
-16 (int (*)(...))QOpenGLWindow::metaObject
-24 (int (*)(...))QOpenGLWindow::qt_metacast
-32 (int (*)(...))QOpenGLWindow::qt_metacall
-40 (int (*)(...))QOpenGLWindow::~QOpenGLWindow
-48 (int (*)(...))QOpenGLWindow::~QOpenGLWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QOpenGLWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QOpenGLWindow::paintEvent
-304 (int (*)(...))QOpenGLWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))QOpenGLWindow::initializeGL
-328 (int (*)(...))QOpenGLWindow::resizeGL
-336 (int (*)(...))QOpenGLWindow::paintGL
-344 (int (*)(...))QOpenGLWindow::paintUnderGL
-352 (int (*)(...))QOpenGLWindow::paintOverGL
-360 (int (*)(...))QOpenGLWindow::redirected
-368 (int (*)(...))-16
-376 (int (*)(...))(& _ZTI13QOpenGLWindow)
-384 (int (*)(...))QOpenGLWindow::_ZThn16_N13QOpenGLWindowD1Ev
-392 (int (*)(...))QOpenGLWindow::_ZThn16_N13QOpenGLWindowD0Ev
-400 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-408 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-416 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-424 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-432 (int (*)(...))-40
-440 (int (*)(...))(& _ZTI13QOpenGLWindow)
-448 (int (*)(...))QOpenGLWindow::_ZThn40_N13QOpenGLWindowD1Ev
-456 (int (*)(...))QOpenGLWindow::_ZThn40_N13QOpenGLWindowD0Ev
-464 (int (*)(...))QPaintDevice::devType
-472 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-480 (int (*)(...))QOpenGLWindow::_ZThn40_NK13QOpenGLWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-488 (int (*)(...))QPaintDevice::initPainter
-496 (int (*)(...))QOpenGLWindow::_ZThn40_NK13QOpenGLWindow10redirectedEP6QPoint
-504 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QOpenGLWindow
- size=64 align=8
- base size=64 base align=8
-QOpenGLWindow (0x0x7fba0b9b1750) 0
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 16u)
- QPaintDeviceWindow (0x0x7fba0b7b0e00) 0
- primary-for QOpenGLWindow (0x0x7fba0b9b1750)
- QWindow (0x0x7fba0b7b0e70) 0
- primary-for QPaintDeviceWindow (0x0x7fba0b7b0e00)
- QObject (0x0x7fba0b7b7180) 0
- primary-for QWindow (0x0x7fba0b7b0e70)
- QSurface (0x0x7fba0b7b71e0) 16
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 384u)
- QPaintDevice (0x0x7fba0b7b7240) 40
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 448u)
-
-Class QPageSize
- size=8 align=8
- base size=8 base align=8
-QPageSize (0x0x7fba0b7b7300) 0
-
-Class QPageLayout
- size=8 align=8
- base size=8 base align=8
-QPageLayout (0x0x7fba0b7b7cc0) 0
-
-Class QPagedPaintDevice::Margins
- size=32 align=8
- base size=32 base align=8
-QPagedPaintDevice::Margins (0x0x7fba0b45d720) 0
-
-Vtable for QPagedPaintDevice
-QPagedPaintDevice::_ZTV17QPagedPaintDevice: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QPagedPaintDevice)
-16 0u
-24 0u
-32 (int (*)(...))QPaintDevice::devType
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))QPagedPaintDevice::setPageSize
-96 (int (*)(...))QPagedPaintDevice::setPageSizeMM
-104 (int (*)(...))QPagedPaintDevice::setMargins
-
-Class QPagedPaintDevice
- size=32 align=8
- base size=32 base align=8
-QPagedPaintDevice (0x0x7fba0b460478) 0
- vptr=((& QPagedPaintDevice::_ZTV17QPagedPaintDevice) + 16u)
- QPaintDevice (0x0x7fba0b45d6c0) 0
- primary-for QPagedPaintDevice (0x0x7fba0b460478)
-
-Class QPainter::PixmapFragment
- size=80 align=8
- base size=80 base align=8
-QPainter::PixmapFragment (0x0x7fba0b45d7e0) 0
-
-Class QPainter
- size=8 align=8
- base size=8 base align=8
-QPainter (0x0x7fba0b45d780) 0
-
-Class QTextItem
- size=1 align=1
- base size=0 base align=1
-QTextItem (0x0x7fba0b5bd600) 0 empty
-
-Vtable for QPaintEngine
-QPaintEngine::_ZTV12QPaintEngine: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QPaintEngine)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))QPaintEngine::drawRects
-64 (int (*)(...))QPaintEngine::drawRects
-72 (int (*)(...))QPaintEngine::drawLines
-80 (int (*)(...))QPaintEngine::drawLines
-88 (int (*)(...))QPaintEngine::drawEllipse
-96 (int (*)(...))QPaintEngine::drawEllipse
-104 (int (*)(...))QPaintEngine::drawPath
-112 (int (*)(...))QPaintEngine::drawPoints
-120 (int (*)(...))QPaintEngine::drawPoints
-128 (int (*)(...))QPaintEngine::drawPolygon
-136 (int (*)(...))QPaintEngine::drawPolygon
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QPaintEngine::drawTextItem
-160 (int (*)(...))QPaintEngine::drawTiledPixmap
-168 (int (*)(...))QPaintEngine::drawImage
-176 (int (*)(...))QPaintEngine::coordinateOffset
-184 (int (*)(...))__cxa_pure_virtual
-
-Class QPaintEngine
- size=32 align=8
- base size=32 base align=8
-QPaintEngine (0x0x7fba0b5bd8a0) 0
- vptr=((& QPaintEngine::_ZTV12QPaintEngine) + 16u)
-
-Class QPaintEngineState
- size=4 align=4
- base size=4 base align=4
-QPaintEngineState (0x0x7fba0b5bdb40) 0
-
-Class QPdfWriter::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPdfWriter::QPrivateSignal (0x0x7fba0b5bdf60) 0 empty
-
-Vtable for QPdfWriter
-QPdfWriter::_ZTV10QPdfWriter: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QPdfWriter)
-16 (int (*)(...))QPdfWriter::metaObject
-24 (int (*)(...))QPdfWriter::qt_metacast
-32 (int (*)(...))QPdfWriter::qt_metacall
-40 (int (*)(...))QPdfWriter::~QPdfWriter
-48 (int (*)(...))QPdfWriter::~QPdfWriter
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPdfWriter::newPage
-120 (int (*)(...))QPdfWriter::setPageSize
-128 (int (*)(...))QPdfWriter::setPageSizeMM
-136 (int (*)(...))QPdfWriter::setMargins
-144 (int (*)(...))QPdfWriter::paintEngine
-152 (int (*)(...))QPdfWriter::metric
-160 (int (*)(...))-16
-168 (int (*)(...))(& _ZTI10QPdfWriter)
-176 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriterD1Ev
-184 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriterD0Ev
-192 (int (*)(...))QPaintDevice::devType
-200 (int (*)(...))QPdfWriter::_ZThn16_NK10QPdfWriter11paintEngineEv
-208 (int (*)(...))QPdfWriter::_ZThn16_NK10QPdfWriter6metricEN12QPaintDevice17PaintDeviceMetricE
-216 (int (*)(...))QPaintDevice::initPainter
-224 (int (*)(...))QPaintDevice::redirected
-232 (int (*)(...))QPaintDevice::sharedPainter
-240 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter7newPageEv
-248 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter11setPageSizeEN17QPagedPaintDevice8PageSizeE
-256 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter13setPageSizeMMERK6QSizeF
-264 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter10setMarginsERKN17QPagedPaintDevice7MarginsE
-
-Class QPdfWriter
- size=48 align=8
- base size=48 base align=8
-QPdfWriter (0x0x7fba0b34d230) 0
- vptr=((& QPdfWriter::_ZTV10QPdfWriter) + 16u)
- QObject (0x0x7fba0b5bdea0) 0
- primary-for QPdfWriter (0x0x7fba0b34d230)
- QPagedPaintDevice (0x0x7fba0b26c4e0) 16
- vptr=((& QPdfWriter::_ZTV10QPdfWriter) + 176u)
- QPaintDevice (0x0x7fba0b5bdf00) 16
- primary-for QPagedPaintDevice (0x0x7fba0b26c4e0)
-
-Vtable for QPicture
-QPicture::_ZTV8QPicture: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QPicture)
-16 (int (*)(...))QPicture::~QPicture
-24 (int (*)(...))QPicture::~QPicture
-32 (int (*)(...))QPicture::devType
-40 (int (*)(...))QPicture::paintEngine
-48 (int (*)(...))QPicture::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))QPicture::setData
-
-Class QPicture
- size=32 align=8
- base size=32 base align=8
-QPicture (0x0x7fba0b26c548) 0
- vptr=((& QPicture::_ZTV8QPicture) + 16u)
- QPaintDevice (0x0x7fba0b36c120) 0
- primary-for QPicture (0x0x7fba0b26c548)
-
-Class QPictureIO
- size=8 align=8
- base size=8 base align=8
-QPictureIO (0x0x7fba0b36c420) 0
-
-Class QPictureFormatPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPictureFormatPlugin::QPrivateSignal (0x0x7fba0b36c4e0) 0 empty
-
-Vtable for QPictureFormatPlugin
-QPictureFormatPlugin::_ZTV20QPictureFormatPlugin: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QPictureFormatPlugin)
-16 (int (*)(...))QPictureFormatPlugin::metaObject
-24 (int (*)(...))QPictureFormatPlugin::qt_metacast
-32 (int (*)(...))QPictureFormatPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPictureFormatPlugin::loadPicture
-120 (int (*)(...))QPictureFormatPlugin::savePicture
-128 (int (*)(...))__cxa_pure_virtual
-
-Class QPictureFormatPlugin
- size=16 align=8
- base size=16 base align=8
-QPictureFormatPlugin (0x0x7fba0b26c750) 0
- vptr=((& QPictureFormatPlugin::_ZTV20QPictureFormatPlugin) + 16u)
- QObject (0x0x7fba0b36c480) 0
- primary-for QPictureFormatPlugin (0x0x7fba0b26c750)
-
-Class QPixmapCache::Key
- size=8 align=8
- base size=8 base align=8
-QPixmapCache::Key (0x0x7fba0b36c5a0) 0
-
-Class QPixmapCache
- size=1 align=1
- base size=0 base align=1
-QPixmapCache (0x0x7fba0b36c540) 0 empty
-
-Class QRasterWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRasterWindow::QPrivateSignal (0x0x7fba0b028720) 0 empty
-
-Vtable for QRasterWindow
-QRasterWindow::_ZTV13QRasterWindow: 59u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QRasterWindow)
-16 (int (*)(...))QRasterWindow::metaObject
-24 (int (*)(...))QRasterWindow::qt_metacast
-32 (int (*)(...))QRasterWindow::qt_metacall
-40 (int (*)(...))QRasterWindow::~QRasterWindow
-48 (int (*)(...))QRasterWindow::~QRasterWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QPaintDeviceWindow::paintEvent
-304 (int (*)(...))QRasterWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))QRasterWindow::redirected
-328 (int (*)(...))-16
-336 (int (*)(...))(& _ZTI13QRasterWindow)
-344 (int (*)(...))QRasterWindow::_ZThn16_N13QRasterWindowD1Ev
-352 (int (*)(...))QRasterWindow::_ZThn16_N13QRasterWindowD0Ev
-360 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-368 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-376 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-384 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-392 (int (*)(...))-40
-400 (int (*)(...))(& _ZTI13QRasterWindow)
-408 (int (*)(...))QRasterWindow::_ZThn40_N13QRasterWindowD1Ev
-416 (int (*)(...))QRasterWindow::_ZThn40_N13QRasterWindowD0Ev
-424 (int (*)(...))QPaintDevice::devType
-432 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-440 (int (*)(...))QRasterWindow::_ZThn40_NK13QRasterWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-448 (int (*)(...))QPaintDevice::initPainter
-456 (int (*)(...))QRasterWindow::_ZThn40_NK13QRasterWindow10redirectedEP6QPoint
-464 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QRasterWindow
- size=64 align=8
- base size=64 base align=8
-QRasterWindow (0x0x7fba0b020e38) 0
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 16u)
- QPaintDeviceWindow (0x0x7fba0b02d930) 0
- primary-for QRasterWindow (0x0x7fba0b020e38)
- QWindow (0x0x7fba0b02d9a0) 0
- primary-for QPaintDeviceWindow (0x0x7fba0b02d930)
- QObject (0x0x7fba0b028600) 0
- primary-for QWindow (0x0x7fba0b02d9a0)
- QSurface (0x0x7fba0b028660) 16
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 344u)
- QPaintDevice (0x0x7fba0b0286c0) 40
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 408u)
-
-Class QScreen::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QScreen::QPrivateSignal (0x0x7fba0b0287e0) 0 empty
-
-Vtable for QScreen
-QScreen::_ZTV7QScreen: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QScreen)
-16 (int (*)(...))QScreen::metaObject
-24 (int (*)(...))QScreen::qt_metacast
-32 (int (*)(...))QScreen::qt_metacall
-40 (int (*)(...))QScreen::~QScreen
-48 (int (*)(...))QScreen::~QScreen
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QScreen
- size=16 align=8
- base size=16 base align=8
-QScreen (0x0x7fba0b020f08) 0
- vptr=((& QScreen::_ZTV7QScreen) + 16u)
- QObject (0x0x7fba0b028780) 0
- primary-for QScreen (0x0x7fba0b020f08)
-
-Class QSessionManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSessionManager::QPrivateSignal (0x0x7fba0b0288a0) 0 empty
-
-Vtable for QSessionManager
-QSessionManager::_ZTV15QSessionManager: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSessionManager)
-16 (int (*)(...))QSessionManager::metaObject
-24 (int (*)(...))QSessionManager::qt_metacast
-32 (int (*)(...))QSessionManager::qt_metacall
-40 (int (*)(...))QSessionManager::~QSessionManager
-48 (int (*)(...))QSessionManager::~QSessionManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSessionManager
- size=16 align=8
- base size=16 base align=8
-QSessionManager (0x0x7fba0b020f70) 0
- vptr=((& QSessionManager::_ZTV15QSessionManager) + 16u)
- QObject (0x0x7fba0b028840) 0
- primary-for QSessionManager (0x0x7fba0b020f70)
-
-Vtable for QStandardItem
-QStandardItem::_ZTV13QStandardItem: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QStandardItem)
-16 (int (*)(...))QStandardItem::~QStandardItem
-24 (int (*)(...))QStandardItem::~QStandardItem
-32 (int (*)(...))QStandardItem::data
-40 (int (*)(...))QStandardItem::setData
-48 (int (*)(...))QStandardItem::clone
-56 (int (*)(...))QStandardItem::type
-64 (int (*)(...))QStandardItem::read
-72 (int (*)(...))QStandardItem::write
-80 (int (*)(...))QStandardItem::operator<
-
-Class QStandardItem
- size=16 align=8
- base size=16 base align=8
-QStandardItem (0x0x7fba0b028900) 0
- vptr=((& QStandardItem::_ZTV13QStandardItem) + 16u)
-
-Class QStandardItemModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStandardItemModel::QPrivateSignal (0x0x7fba0b13c060) 0 empty
-
-Vtable for QStandardItemModel
-QStandardItemModel::_ZTV18QStandardItemModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QStandardItemModel)
-16 (int (*)(...))QStandardItemModel::metaObject
-24 (int (*)(...))QStandardItemModel::qt_metacast
-32 (int (*)(...))QStandardItemModel::qt_metacall
-40 (int (*)(...))QStandardItemModel::~QStandardItemModel
-48 (int (*)(...))QStandardItemModel::~QStandardItemModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QStandardItemModel::index
-120 (int (*)(...))QStandardItemModel::parent
-128 (int (*)(...))QStandardItemModel::sibling
-136 (int (*)(...))QStandardItemModel::rowCount
-144 (int (*)(...))QStandardItemModel::columnCount
-152 (int (*)(...))QStandardItemModel::hasChildren
-160 (int (*)(...))QStandardItemModel::data
-168 (int (*)(...))QStandardItemModel::setData
-176 (int (*)(...))QStandardItemModel::headerData
-184 (int (*)(...))QStandardItemModel::setHeaderData
-192 (int (*)(...))QStandardItemModel::itemData
-200 (int (*)(...))QStandardItemModel::setItemData
-208 (int (*)(...))QStandardItemModel::mimeTypes
-216 (int (*)(...))QStandardItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QStandardItemModel::dropMimeData
-240 (int (*)(...))QStandardItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QStandardItemModel::insertRows
-264 (int (*)(...))QStandardItemModel::insertColumns
-272 (int (*)(...))QStandardItemModel::removeRows
-280 (int (*)(...))QStandardItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QStandardItemModel::flags
-328 (int (*)(...))QStandardItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QStandardItemModel
- size=16 align=8
- base size=16 base align=8
-QStandardItemModel (0x0x7fba0b0b8618) 0
- vptr=((& QStandardItemModel::_ZTV18QStandardItemModel) + 16u)
- QAbstractItemModel (0x0x7fba0b0b8680) 0
- primary-for QStandardItemModel (0x0x7fba0b0b8618)
- QObject (0x0x7fba0b13c000) 0
- primary-for QAbstractItemModel (0x0x7fba0b0b8680)
-
-Class QStaticText
- size=8 align=8
- base size=8 base align=8
-QStaticText (0x0x7fba0b13c0c0) 0
-
-Class QStyleHints::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStyleHints::QPrivateSignal (0x0x7fba0b13c540) 0 empty
-
-Vtable for QStyleHints
-QStyleHints::_ZTV11QStyleHints: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QStyleHints)
-16 (int (*)(...))QStyleHints::metaObject
-24 (int (*)(...))QStyleHints::qt_metacast
-32 (int (*)(...))QStyleHints::qt_metacall
-40 (int (*)(...))QStyleHints::~QStyleHints
-48 (int (*)(...))QStyleHints::~QStyleHints
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QStyleHints
- size=16 align=8
- base size=16 base align=8
-QStyleHints (0x0x7fba0b0b8888) 0
- vptr=((& QStyleHints::_ZTV11QStyleHints) + 16u)
- QObject (0x0x7fba0b13c4e0) 0
- primary-for QStyleHints (0x0x7fba0b0b8888)
-
-Class QTextObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextObject::QPrivateSignal (0x0x7fba0b13c600) 0 empty
-
-Vtable for QTextObject
-QTextObject::_ZTV11QTextObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTextObject)
-16 (int (*)(...))QTextObject::metaObject
-24 (int (*)(...))QTextObject::qt_metacast
-32 (int (*)(...))QTextObject::qt_metacall
-40 (int (*)(...))QTextObject::~QTextObject
-48 (int (*)(...))QTextObject::~QTextObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextObject
- size=16 align=8
- base size=16 base align=8
-QTextObject (0x0x7fba0b0b88f0) 0
- vptr=((& QTextObject::_ZTV11QTextObject) + 16u)
- QObject (0x0x7fba0b13c5a0) 0
- primary-for QTextObject (0x0x7fba0b0b88f0)
-
-Class QTextBlockGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextBlockGroup::QPrivateSignal (0x0x7fba0b13c6c0) 0 empty
-
-Vtable for QTextBlockGroup
-QTextBlockGroup::_ZTV15QTextBlockGroup: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QTextBlockGroup)
-16 (int (*)(...))QTextBlockGroup::metaObject
-24 (int (*)(...))QTextBlockGroup::qt_metacast
-32 (int (*)(...))QTextBlockGroup::qt_metacall
-40 (int (*)(...))QTextBlockGroup::~QTextBlockGroup
-48 (int (*)(...))QTextBlockGroup::~QTextBlockGroup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextBlockGroup::blockInserted
-120 (int (*)(...))QTextBlockGroup::blockRemoved
-128 (int (*)(...))QTextBlockGroup::blockFormatChanged
-
-Class QTextBlockGroup
- size=16 align=8
- base size=16 base align=8
-QTextBlockGroup (0x0x7fba0b0b8958) 0
- vptr=((& QTextBlockGroup::_ZTV15QTextBlockGroup) + 16u)
- QTextObject (0x0x7fba0b0b89c0) 0
- primary-for QTextBlockGroup (0x0x7fba0b0b8958)
- QObject (0x0x7fba0b13c660) 0
- primary-for QTextObject (0x0x7fba0b0b89c0)
-
-Vtable for QTextFrameLayoutData
-QTextFrameLayoutData::_ZTV20QTextFrameLayoutData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTextFrameLayoutData)
-16 (int (*)(...))QTextFrameLayoutData::~QTextFrameLayoutData
-24 (int (*)(...))QTextFrameLayoutData::~QTextFrameLayoutData
-
-Class QTextFrameLayoutData
- size=8 align=8
- base size=8 base align=8
-QTextFrameLayoutData (0x0x7fba0b13c720) 0 nearly-empty
- vptr=((& QTextFrameLayoutData::_ZTV20QTextFrameLayoutData) + 16u)
-
-Class QTextFrame::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextFrame::QPrivateSignal (0x0x7fba0b13c7e0) 0 empty
-
-Class QTextFrame::iterator
- size=32 align=8
- base size=28 base align=8
-QTextFrame::iterator (0x0x7fba0b13c840) 0
-
-Vtable for QTextFrame
-QTextFrame::_ZTV10QTextFrame: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextFrame)
-16 (int (*)(...))QTextFrame::metaObject
-24 (int (*)(...))QTextFrame::qt_metacast
-32 (int (*)(...))QTextFrame::qt_metacall
-40 (int (*)(...))QTextFrame::~QTextFrame
-48 (int (*)(...))QTextFrame::~QTextFrame
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextFrame
- size=16 align=8
- base size=16 base align=8
-QTextFrame (0x0x7fba0b0b8a28) 0
- vptr=((& QTextFrame::_ZTV10QTextFrame) + 16u)
- QTextObject (0x0x7fba0b0b8a90) 0
- primary-for QTextFrame (0x0x7fba0b0b8a28)
- QObject (0x0x7fba0b13c780) 0
- primary-for QTextObject (0x0x7fba0b0b8a90)
-
-Vtable for QTextBlockUserData
-QTextBlockUserData::_ZTV18QTextBlockUserData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QTextBlockUserData)
-16 (int (*)(...))QTextBlockUserData::~QTextBlockUserData
-24 (int (*)(...))QTextBlockUserData::~QTextBlockUserData
-
-Class QTextBlockUserData
- size=8 align=8
- base size=8 base align=8
-QTextBlockUserData (0x0x7fba0b13cae0) 0 nearly-empty
- vptr=((& QTextBlockUserData::_ZTV18QTextBlockUserData) + 16u)
-
-Class QTextBlock::iterator
- size=24 align=8
- base size=20 base align=8
-QTextBlock::iterator (0x0x7fba0b13cba0) 0
-
-Class QTextBlock
- size=16 align=8
- base size=12 base align=8
-QTextBlock (0x0x7fba0b13cb40) 0
-
-Class QTextFragment
- size=16 align=8
- base size=16 base align=8
-QTextFragment (0x0x7fba0ae2f0c0) 0
-
-Class QSyntaxHighlighter::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSyntaxHighlighter::QPrivateSignal (0x0x7fba0ae2f3c0) 0 empty
-
-Vtable for QSyntaxHighlighter
-QSyntaxHighlighter::_ZTV18QSyntaxHighlighter: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSyntaxHighlighter)
-16 (int (*)(...))QSyntaxHighlighter::metaObject
-24 (int (*)(...))QSyntaxHighlighter::qt_metacast
-32 (int (*)(...))QSyntaxHighlighter::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QSyntaxHighlighter
- size=16 align=8
- base size=16 base align=8
-QSyntaxHighlighter (0x0x7fba0ae451a0) 0
- vptr=((& QSyntaxHighlighter::_ZTV18QSyntaxHighlighter) + 16u)
- QObject (0x0x7fba0ae2f360) 0
- primary-for QSyntaxHighlighter (0x0x7fba0ae451a0)
-
-Class QTextDocumentFragment
- size=8 align=8
- base size=8 base align=8
-QTextDocumentFragment (0x0x7fba0ae2f420) 0
-
-Class QTextDocumentWriter
- size=8 align=8
- base size=8 base align=8
-QTextDocumentWriter (0x0x7fba0ae2f480) 0
-
-Class QTextList::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextList::QPrivateSignal (0x0x7fba0ae2f540) 0 empty
-
-Vtable for QTextList
-QTextList::_ZTV9QTextList: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QTextList)
-16 (int (*)(...))QTextList::metaObject
-24 (int (*)(...))QTextList::qt_metacast
-32 (int (*)(...))QTextList::qt_metacall
-40 (int (*)(...))QTextList::~QTextList
-48 (int (*)(...))QTextList::~QTextList
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextBlockGroup::blockInserted
-120 (int (*)(...))QTextBlockGroup::blockRemoved
-128 (int (*)(...))QTextBlockGroup::blockFormatChanged
-
-Class QTextList
- size=16 align=8
- base size=16 base align=8
-QTextList (0x0x7fba0ae45208) 0
- vptr=((& QTextList::_ZTV9QTextList) + 16u)
- QTextBlockGroup (0x0x7fba0ae45270) 0
- primary-for QTextList (0x0x7fba0ae45208)
- QTextObject (0x0x7fba0ae452d8) 0
- primary-for QTextBlockGroup (0x0x7fba0ae45270)
- QObject (0x0x7fba0ae2f4e0) 0
- primary-for QTextObject (0x0x7fba0ae452d8)
-
-Class QTextTableCell
- size=16 align=8
- base size=12 base align=8
-QTextTableCell (0x0x7fba0ae2f5a0) 0
-
-Class QTextTable::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextTable::QPrivateSignal (0x0x7fba0ae2f660) 0 empty
-
-Vtable for QTextTable
-QTextTable::_ZTV10QTextTable: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextTable)
-16 (int (*)(...))QTextTable::metaObject
-24 (int (*)(...))QTextTable::qt_metacast
-32 (int (*)(...))QTextTable::qt_metacall
-40 (int (*)(...))QTextTable::~QTextTable
-48 (int (*)(...))QTextTable::~QTextTable
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextTable
- size=16 align=8
- base size=16 base align=8
-QTextTable (0x0x7fba0ae45340) 0
- vptr=((& QTextTable::_ZTV10QTextTable) + 16u)
- QTextFrame (0x0x7fba0ae453a8) 0
- primary-for QTextTable (0x0x7fba0ae45340)
- QTextObject (0x0x7fba0ae45410) 0
- primary-for QTextFrame (0x0x7fba0ae453a8)
- QObject (0x0x7fba0ae2f600) 0
- primary-for QTextObject (0x0x7fba0ae45410)
-
-Class QValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QValidator::QPrivateSignal (0x0x7fba0ae2f720) 0 empty
-
-Vtable for QValidator
-QValidator::_ZTV10QValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QValidator)
-16 (int (*)(...))QValidator::metaObject
-24 (int (*)(...))QValidator::qt_metacast
-32 (int (*)(...))QValidator::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QValidator::fixup
-
-Class QValidator
- size=16 align=8
- base size=16 base align=8
-QValidator (0x0x7fba0ae45478) 0
- vptr=((& QValidator::_ZTV10QValidator) + 16u)
- QObject (0x0x7fba0ae2f6c0) 0
- primary-for QValidator (0x0x7fba0ae45478)
-
-Class QIntValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIntValidator::QPrivateSignal (0x0x7fba0ae2f7e0) 0 empty
-
-Vtable for QIntValidator
-QIntValidator::_ZTV13QIntValidator: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QIntValidator)
-16 (int (*)(...))QIntValidator::metaObject
-24 (int (*)(...))QIntValidator::qt_metacast
-32 (int (*)(...))QIntValidator::qt_metacall
-40 (int (*)(...))QIntValidator::~QIntValidator
-48 (int (*)(...))QIntValidator::~QIntValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIntValidator::validate
-120 (int (*)(...))QIntValidator::fixup
-128 (int (*)(...))QIntValidator::setRange
-
-Class QIntValidator
- size=24 align=8
- base size=24 base align=8
-QIntValidator (0x0x7fba0ae454e0) 0
- vptr=((& QIntValidator::_ZTV13QIntValidator) + 16u)
- QValidator (0x0x7fba0ae45548) 0
- primary-for QIntValidator (0x0x7fba0ae454e0)
- QObject (0x0x7fba0ae2f780) 0
- primary-for QValidator (0x0x7fba0ae45548)
-
-Class QDoubleValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDoubleValidator::QPrivateSignal (0x0x7fba0ae2f8a0) 0 empty
-
-Vtable for QDoubleValidator
-QDoubleValidator::_ZTV16QDoubleValidator: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QDoubleValidator)
-16 (int (*)(...))QDoubleValidator::metaObject
-24 (int (*)(...))QDoubleValidator::qt_metacast
-32 (int (*)(...))QDoubleValidator::qt_metacall
-40 (int (*)(...))QDoubleValidator::~QDoubleValidator
-48 (int (*)(...))QDoubleValidator::~QDoubleValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QDoubleValidator::validate
-120 (int (*)(...))QValidator::fixup
-128 (int (*)(...))QDoubleValidator::setRange
-
-Class QDoubleValidator
- size=40 align=8
- base size=36 base align=8
-QDoubleValidator (0x0x7fba0ae455b0) 0
- vptr=((& QDoubleValidator::_ZTV16QDoubleValidator) + 16u)
- QValidator (0x0x7fba0ae45618) 0
- primary-for QDoubleValidator (0x0x7fba0ae455b0)
- QObject (0x0x7fba0ae2f840) 0
- primary-for QValidator (0x0x7fba0ae45618)
-
-Class QRegExpValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRegExpValidator::QPrivateSignal (0x0x7fba0ae2f9c0) 0 empty
-
-Vtable for QRegExpValidator
-QRegExpValidator::_ZTV16QRegExpValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QRegExpValidator)
-16 (int (*)(...))QRegExpValidator::metaObject
-24 (int (*)(...))QRegExpValidator::qt_metacast
-32 (int (*)(...))QRegExpValidator::qt_metacall
-40 (int (*)(...))QRegExpValidator::~QRegExpValidator
-48 (int (*)(...))QRegExpValidator::~QRegExpValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QRegExpValidator::validate
-120 (int (*)(...))QValidator::fixup
-
-Class QRegExpValidator
- size=24 align=8
- base size=24 base align=8
-QRegExpValidator (0x0x7fba0ae45680) 0
- vptr=((& QRegExpValidator::_ZTV16QRegExpValidator) + 16u)
- QValidator (0x0x7fba0ae456e8) 0
- primary-for QRegExpValidator (0x0x7fba0ae45680)
- QObject (0x0x7fba0ae2f960) 0
- primary-for QValidator (0x0x7fba0ae456e8)
-
-Class QRegularExpressionValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRegularExpressionValidator::QPrivateSignal (0x0x7fba0ae2fa80) 0 empty
-
-Vtable for QRegularExpressionValidator
-QRegularExpressionValidator::_ZTV27QRegularExpressionValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QRegularExpressionValidator)
-16 (int (*)(...))QRegularExpressionValidator::metaObject
-24 (int (*)(...))QRegularExpressionValidator::qt_metacast
-32 (int (*)(...))QRegularExpressionValidator::qt_metacall
-40 (int (*)(...))QRegularExpressionValidator::~QRegularExpressionValidator
-48 (int (*)(...))QRegularExpressionValidator::~QRegularExpressionValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QRegularExpressionValidator::validate
-120 (int (*)(...))QValidator::fixup
-
-Class QRegularExpressionValidator
- size=16 align=8
- base size=16 base align=8
-QRegularExpressionValidator (0x0x7fba0ae45750) 0
- vptr=((& QRegularExpressionValidator::_ZTV27QRegularExpressionValidator) + 16u)
- QValidator (0x0x7fba0ae457b8) 0
- primary-for QRegularExpressionValidator (0x0x7fba0ae45750)
- QObject (0x0x7fba0ae2fa20) 0
- primary-for QValidator (0x0x7fba0ae457b8)
-
-Class QNetworkRequest
- size=8 align=8
- base size=8 base align=8
-QNetworkRequest (0x0x7fba0ae2fae0) 0
-
-Class QNetworkCacheMetaData
- size=8 align=8
- base size=8 base align=8
-QNetworkCacheMetaData (0x0x7fba0af2b060) 0
-
-Class QAbstractNetworkCache::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractNetworkCache::QPrivateSignal (0x0x7fba0af2b720) 0 empty
-
-Vtable for QAbstractNetworkCache
-QAbstractNetworkCache::_ZTV21QAbstractNetworkCache: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QAbstractNetworkCache)
-16 (int (*)(...))QAbstractNetworkCache::metaObject
-24 (int (*)(...))QAbstractNetworkCache::qt_metacast
-32 (int (*)(...))QAbstractNetworkCache::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractNetworkCache
- size=16 align=8
- base size=16 base align=8
-QAbstractNetworkCache (0x0x7fba0af57000) 0
- vptr=((& QAbstractNetworkCache::_ZTV21QAbstractNetworkCache) + 16u)
- QObject (0x0x7fba0af2b6c0) 0
- primary-for QAbstractNetworkCache (0x0x7fba0af57000)
-
-Class QAbstractSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractSocket::QPrivateSignal (0x0x7fba0af2b7e0) 0 empty
-
-Vtable for QAbstractSocket
-QAbstractSocket::_ZTV15QAbstractSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QAbstractSocket)
-16 (int (*)(...))QAbstractSocket::metaObject
-24 (int (*)(...))QAbstractSocket::qt_metacast
-32 (int (*)(...))QAbstractSocket::qt_metacall
-40 (int (*)(...))QAbstractSocket::~QAbstractSocket
-48 (int (*)(...))QAbstractSocket::~QAbstractSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QAbstractSocket
- size=16 align=8
- base size=16 base align=8
-QAbstractSocket (0x0x7fba0af57068) 0
- vptr=((& QAbstractSocket::_ZTV15QAbstractSocket) + 16u)
- QIODevice (0x0x7fba0af570d0) 0
- primary-for QAbstractSocket (0x0x7fba0af57068)
- QObject (0x0x7fba0af2b780) 0
- primary-for QIODevice (0x0x7fba0af570d0)
-
-Class QAuthenticator
- size=8 align=8
- base size=8 base align=8
-QAuthenticator (0x0x7fba0af2bd80) 0
-
-Class QDnsDomainNameRecord
- size=8 align=8
- base size=8 base align=8
-QDnsDomainNameRecord (0x0x7fba0af2bde0) 0
-
-Class QDnsHostAddressRecord
- size=8 align=8
- base size=8 base align=8
-QDnsHostAddressRecord (0x0x7fba0ac2f120) 0
-
-Class QDnsMailExchangeRecord
- size=8 align=8
- base size=8 base align=8
-QDnsMailExchangeRecord (0x0x7fba0ac2f420) 0
-
-Class QDnsServiceRecord
- size=8 align=8
- base size=8 base align=8
-QDnsServiceRecord (0x0x7fba0ac2f720) 0
-
-Class QDnsTextRecord
- size=8 align=8
- base size=8 base align=8
-QDnsTextRecord (0x0x7fba0ac2fa20) 0
-
-Class QDnsLookup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDnsLookup::QPrivateSignal (0x0x7fba0ac2fd80) 0 empty
-
-Vtable for QDnsLookup
-QDnsLookup::_ZTV10QDnsLookup: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QDnsLookup)
-16 (int (*)(...))QDnsLookup::metaObject
-24 (int (*)(...))QDnsLookup::qt_metacast
-32 (int (*)(...))QDnsLookup::qt_metacall
-40 (int (*)(...))QDnsLookup::~QDnsLookup
-48 (int (*)(...))QDnsLookup::~QDnsLookup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDnsLookup
- size=16 align=8
- base size=16 base align=8
-QDnsLookup (0x0x7fba0af57af8) 0
- vptr=((& QDnsLookup::_ZTV10QDnsLookup) + 16u)
- QObject (0x0x7fba0ac2fd20) 0
- primary-for QDnsLookup (0x0x7fba0af57af8)
-
-Class QIPv6Address
- size=16 align=1
- base size=16 base align=1
-QIPv6Address (0x0x7fba0ac2fde0) 0
-
-Class QHostAddress
- size=8 align=8
- base size=8 base align=8
-QHostAddress (0x0x7fba0ac2fe40) 0
-
-Class QHostInfo
- size=8 align=8
- base size=8 base align=8
-QHostInfo (0x0x7fba0acdb660) 0
-
-Class QHstsPolicy
- size=8 align=8
- base size=8 base align=8
-QHstsPolicy (0x0x7fba0acdbb40) 0
-
-Class QHttpPart
- size=8 align=8
- base size=8 base align=8
-QHttpPart (0x0x7fba0ada8360) 0
-
-Class QHttpMultiPart::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QHttpMultiPart::QPrivateSignal (0x0x7fba0ada86c0) 0 empty
-
-Vtable for QHttpMultiPart
-QHttpMultiPart::_ZTV14QHttpMultiPart: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QHttpMultiPart)
-16 (int (*)(...))QHttpMultiPart::metaObject
-24 (int (*)(...))QHttpMultiPart::qt_metacast
-32 (int (*)(...))QHttpMultiPart::qt_metacall
-40 (int (*)(...))QHttpMultiPart::~QHttpMultiPart
-48 (int (*)(...))QHttpMultiPart::~QHttpMultiPart
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QHttpMultiPart
- size=16 align=8
- base size=16 base align=8
-QHttpMultiPart (0x0x7fba0ad15d68) 0
- vptr=((& QHttpMultiPart::_ZTV14QHttpMultiPart) + 16u)
- QObject (0x0x7fba0ada8660) 0
- primary-for QHttpMultiPart (0x0x7fba0ad15d68)
-
-Class QLocalServer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLocalServer::QPrivateSignal (0x0x7fba0ada8780) 0 empty
-
-Vtable for QLocalServer
-QLocalServer::_ZTV12QLocalServer: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QLocalServer)
-16 (int (*)(...))QLocalServer::metaObject
-24 (int (*)(...))QLocalServer::qt_metacast
-32 (int (*)(...))QLocalServer::qt_metacall
-40 (int (*)(...))QLocalServer::~QLocalServer
-48 (int (*)(...))QLocalServer::~QLocalServer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QLocalServer::hasPendingConnections
-120 (int (*)(...))QLocalServer::nextPendingConnection
-128 (int (*)(...))QLocalServer::incomingConnection
-
-Class QLocalServer
- size=16 align=8
- base size=16 base align=8
-QLocalServer (0x0x7fba0ad15dd0) 0
- vptr=((& QLocalServer::_ZTV12QLocalServer) + 16u)
- QObject (0x0x7fba0ada8720) 0
- primary-for QLocalServer (0x0x7fba0ad15dd0)
-
-Class QLocalSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLocalSocket::QPrivateSignal (0x0x7fba0ada89c0) 0 empty
-
-Vtable for QLocalSocket
-QLocalSocket::_ZTV12QLocalSocket: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QLocalSocket)
-16 (int (*)(...))QLocalSocket::metaObject
-24 (int (*)(...))QLocalSocket::qt_metacast
-32 (int (*)(...))QLocalSocket::qt_metacall
-40 (int (*)(...))QLocalSocket::~QLocalSocket
-48 (int (*)(...))QLocalSocket::~QLocalSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QLocalSocket::isSequential
-120 (int (*)(...))QLocalSocket::open
-128 (int (*)(...))QLocalSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QLocalSocket::bytesAvailable
-184 (int (*)(...))QLocalSocket::bytesToWrite
-192 (int (*)(...))QLocalSocket::canReadLine
-200 (int (*)(...))QLocalSocket::waitForReadyRead
-208 (int (*)(...))QLocalSocket::waitForBytesWritten
-216 (int (*)(...))QLocalSocket::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QLocalSocket::writeData
-
-Class QLocalSocket
- size=16 align=8
- base size=16 base align=8
-QLocalSocket (0x0x7fba0ad15f70) 0
- vptr=((& QLocalSocket::_ZTV12QLocalSocket) + 16u)
- QIODevice (0x0x7fba0aa23000) 0
- primary-for QLocalSocket (0x0x7fba0ad15f70)
- QObject (0x0x7fba0ada8960) 0
- primary-for QIODevice (0x0x7fba0aa23000)
-
-Class QTcpSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTcpSocket::QPrivateSignal (0x0x7fba0ada8a80) 0 empty
-
-Vtable for QTcpSocket
-QTcpSocket::_ZTV10QTcpSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTcpSocket)
-16 (int (*)(...))QTcpSocket::metaObject
-24 (int (*)(...))QTcpSocket::qt_metacast
-32 (int (*)(...))QTcpSocket::qt_metacall
-40 (int (*)(...))QTcpSocket::~QTcpSocket
-48 (int (*)(...))QTcpSocket::~QTcpSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QTcpSocket
- size=16 align=8
- base size=16 base align=8
-QTcpSocket (0x0x7fba0aa23068) 0
- vptr=((& QTcpSocket::_ZTV10QTcpSocket) + 16u)
- QAbstractSocket (0x0x7fba0aa230d0) 0
- primary-for QTcpSocket (0x0x7fba0aa23068)
- QIODevice (0x0x7fba0aa23138) 0
- primary-for QAbstractSocket (0x0x7fba0aa230d0)
- QObject (0x0x7fba0ada8a20) 0
- primary-for QIODevice (0x0x7fba0aa23138)
-
-Class QSslCertificate
- size=8 align=8
- base size=8 base align=8
-QSslCertificate (0x0x7fba0ada8c60) 0
-
-Class QSslError
- size=8 align=8
- base size=8 base align=8
-QSslError (0x0x7fba0aab20c0) 0
-
-Class QSslSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSslSocket::QPrivateSignal (0x0x7fba0aab2a20) 0 empty
-
-Vtable for QSslSocket
-QSslSocket::_ZTV10QSslSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QSslSocket)
-16 (int (*)(...))QSslSocket::metaObject
-24 (int (*)(...))QSslSocket::qt_metacast
-32 (int (*)(...))QSslSocket::qt_metacall
-40 (int (*)(...))QSslSocket::~QSslSocket
-48 (int (*)(...))QSslSocket::~QSslSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QSslSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QSslSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QSslSocket::bytesAvailable
-184 (int (*)(...))QSslSocket::bytesToWrite
-192 (int (*)(...))QSslSocket::canReadLine
-200 (int (*)(...))QSslSocket::waitForReadyRead
-208 (int (*)(...))QSslSocket::waitForBytesWritten
-216 (int (*)(...))QSslSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QSslSocket::writeData
-240 (int (*)(...))QSslSocket::resume
-248 (int (*)(...))QSslSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QSslSocket::disconnectFromHost
-272 (int (*)(...))QSslSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QSslSocket::setSocketDescriptor
-296 (int (*)(...))QSslSocket::setSocketOption
-304 (int (*)(...))QSslSocket::socketOption
-312 (int (*)(...))QSslSocket::waitForConnected
-320 (int (*)(...))QSslSocket::waitForDisconnected
-
-Class QSslSocket
- size=16 align=8
- base size=16 base align=8
-QSslSocket (0x0x7fba0aa23af8) 0
- vptr=((& QSslSocket::_ZTV10QSslSocket) + 16u)
- QTcpSocket (0x0x7fba0aa23b60) 0
- primary-for QSslSocket (0x0x7fba0aa23af8)
- QAbstractSocket (0x0x7fba0aa23bc8) 0
- primary-for QTcpSocket (0x0x7fba0aa23b60)
- QIODevice (0x0x7fba0aa23c30) 0
- primary-for QAbstractSocket (0x0x7fba0aa23bc8)
- QObject (0x0x7fba0aab29c0) 0
- primary-for QIODevice (0x0x7fba0aa23c30)
-
-Class QSslConfiguration
- size=8 align=8
- base size=8 base align=8
-QSslConfiguration (0x0x7fba0aab2a80) 0
-
-Class QSslPreSharedKeyAuthenticator
- size=8 align=8
- base size=8 base align=8
-QSslPreSharedKeyAuthenticator (0x0x7fba0ab6d240) 0
-
-Class QNetworkAccessManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkAccessManager::QPrivateSignal (0x0x7fba0ab6db40) 0 empty
-
-Vtable for QNetworkAccessManager
-QNetworkAccessManager::_ZTV21QNetworkAccessManager: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QNetworkAccessManager)
-16 (int (*)(...))QNetworkAccessManager::metaObject
-24 (int (*)(...))QNetworkAccessManager::qt_metacast
-32 (int (*)(...))QNetworkAccessManager::qt_metacall
-40 (int (*)(...))QNetworkAccessManager::~QNetworkAccessManager
-48 (int (*)(...))QNetworkAccessManager::~QNetworkAccessManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkAccessManager::createRequest
-
-Class QNetworkAccessManager
- size=16 align=8
- base size=16 base align=8
-QNetworkAccessManager (0x0x7fba0ab698f0) 0
- vptr=((& QNetworkAccessManager::_ZTV21QNetworkAccessManager) + 16u)
- QObject (0x0x7fba0ab6dae0) 0
- primary-for QNetworkAccessManager (0x0x7fba0ab698f0)
-
-Class QNetworkConfiguration
- size=8 align=8
- base size=8 base align=8
-QNetworkConfiguration (0x0x7fba0ab6dba0) 0
-
-Class QNetworkConfigurationManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkConfigurationManager::QPrivateSignal (0x0x7fba0a7fa060) 0 empty
-
-Vtable for QNetworkConfigurationManager
-QNetworkConfigurationManager::_ZTV28QNetworkConfigurationManager: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QNetworkConfigurationManager)
-16 (int (*)(...))QNetworkConfigurationManager::metaObject
-24 (int (*)(...))QNetworkConfigurationManager::qt_metacast
-32 (int (*)(...))QNetworkConfigurationManager::qt_metacall
-40 (int (*)(...))QNetworkConfigurationManager::~QNetworkConfigurationManager
-48 (int (*)(...))QNetworkConfigurationManager::~QNetworkConfigurationManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QNetworkConfigurationManager
- size=16 align=8
- base size=16 base align=8
-QNetworkConfigurationManager (0x0x7fba0ab69af8) 0
- vptr=((& QNetworkConfigurationManager::_ZTV28QNetworkConfigurationManager) + 16u)
- QObject (0x0x7fba0a7fa000) 0
- primary-for QNetworkConfigurationManager (0x0x7fba0ab69af8)
-
-Class QNetworkCookie
- size=8 align=8
- base size=8 base align=8
-QNetworkCookie (0x0x7fba0a7fa3c0) 0
-
-Class QNetworkCookieJar::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkCookieJar::QPrivateSignal (0x0x7fba0a7faba0) 0 empty
-
-Vtable for QNetworkCookieJar
-QNetworkCookieJar::_ZTV17QNetworkCookieJar: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QNetworkCookieJar)
-16 (int (*)(...))QNetworkCookieJar::metaObject
-24 (int (*)(...))QNetworkCookieJar::qt_metacast
-32 (int (*)(...))QNetworkCookieJar::qt_metacall
-40 (int (*)(...))QNetworkCookieJar::~QNetworkCookieJar
-48 (int (*)(...))QNetworkCookieJar::~QNetworkCookieJar
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkCookieJar::cookiesForUrl
-120 (int (*)(...))QNetworkCookieJar::setCookiesFromUrl
-128 (int (*)(...))QNetworkCookieJar::insertCookie
-136 (int (*)(...))QNetworkCookieJar::updateCookie
-144 (int (*)(...))QNetworkCookieJar::deleteCookie
-152 (int (*)(...))QNetworkCookieJar::validateCookie
-
-Class QNetworkCookieJar
- size=16 align=8
- base size=16 base align=8
-QNetworkCookieJar (0x0x7fba0a877340) 0
- vptr=((& QNetworkCookieJar::_ZTV17QNetworkCookieJar) + 16u)
- QObject (0x0x7fba0a7fab40) 0
- primary-for QNetworkCookieJar (0x0x7fba0a877340)
-
-Class QNetworkDatagram
- size=8 align=8
- base size=8 base align=8
-QNetworkDatagram (0x0x7fba0a7fac00) 0
-
-Class QNetworkDiskCache::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkDiskCache::QPrivateSignal (0x0x7fba0a910c00) 0 empty
-
-Vtable for QNetworkDiskCache
-QNetworkDiskCache::_ZTV17QNetworkDiskCache: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QNetworkDiskCache)
-16 (int (*)(...))QNetworkDiskCache::metaObject
-24 (int (*)(...))QNetworkDiskCache::qt_metacast
-32 (int (*)(...))QNetworkDiskCache::qt_metacall
-40 (int (*)(...))QNetworkDiskCache::~QNetworkDiskCache
-48 (int (*)(...))QNetworkDiskCache::~QNetworkDiskCache
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkDiskCache::metaData
-120 (int (*)(...))QNetworkDiskCache::updateMetaData
-128 (int (*)(...))QNetworkDiskCache::data
-136 (int (*)(...))QNetworkDiskCache::remove
-144 (int (*)(...))QNetworkDiskCache::cacheSize
-152 (int (*)(...))QNetworkDiskCache::prepare
-160 (int (*)(...))QNetworkDiskCache::insert
-168 (int (*)(...))QNetworkDiskCache::clear
-176 (int (*)(...))QNetworkDiskCache::expire
-
-Class QNetworkDiskCache
- size=16 align=8
- base size=16 base align=8
-QNetworkDiskCache (0x0x7fba0a915d68) 0
- vptr=((& QNetworkDiskCache::_ZTV17QNetworkDiskCache) + 16u)
- QAbstractNetworkCache (0x0x7fba0a915dd0) 0
- primary-for QNetworkDiskCache (0x0x7fba0a915d68)
- QObject (0x0x7fba0a910ba0) 0
- primary-for QAbstractNetworkCache (0x0x7fba0a915dd0)
-
-Class QNetworkAddressEntry
- size=8 align=8
- base size=8 base align=8
-QNetworkAddressEntry (0x0x7fba0a910c60) 0
-
-Class QNetworkInterface
- size=8 align=8
- base size=8 base align=8
-QNetworkInterface (0x0x7fba0a966360) 0
-
-Class QNetworkProxyQuery
- size=8 align=8
- base size=8 base align=8
-QNetworkProxyQuery (0x0x7fba0a966a80) 0
-
-Class QNetworkProxy
- size=8 align=8
- base size=8 base align=8
-QNetworkProxy (0x0x7fba0a5fc120) 0
-
-Vtable for QNetworkProxyFactory
-QNetworkProxyFactory::_ZTV20QNetworkProxyFactory: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QNetworkProxyFactory)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QNetworkProxyFactory
- size=8 align=8
- base size=8 base align=8
-QNetworkProxyFactory (0x0x7fba0a5fc900) 0 nearly-empty
- vptr=((& QNetworkProxyFactory::_ZTV20QNetworkProxyFactory) + 16u)
-
-Class QNetworkReply::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkReply::QPrivateSignal (0x0x7fba0a5fcae0) 0 empty
-
-Vtable for QNetworkReply
-QNetworkReply::_ZTV13QNetworkReply: 36u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QNetworkReply)
-16 (int (*)(...))QNetworkReply::metaObject
-24 (int (*)(...))QNetworkReply::qt_metacast
-32 (int (*)(...))QNetworkReply::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkReply::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QNetworkReply::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))__cxa_pure_virtual
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QNetworkReply::writeData
-240 (int (*)(...))QNetworkReply::setReadBufferSize
-248 (int (*)(...))__cxa_pure_virtual
-256 (int (*)(...))QNetworkReply::ignoreSslErrors
-264 (int (*)(...))QNetworkReply::sslConfigurationImplementation
-272 (int (*)(...))QNetworkReply::setSslConfigurationImplementation
-280 (int (*)(...))QNetworkReply::ignoreSslErrorsImplementation
-
-Class QNetworkReply
- size=16 align=8
- base size=16 base align=8
-QNetworkReply (0x0x7fba0a623478) 0
- vptr=((& QNetworkReply::_ZTV13QNetworkReply) + 16u)
- QIODevice (0x0x7fba0a6234e0) 0
- primary-for QNetworkReply (0x0x7fba0a623478)
- QObject (0x0x7fba0a5fca80) 0
- primary-for QIODevice (0x0x7fba0a6234e0)
-
-Class QNetworkSession::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkSession::QPrivateSignal (0x0x7fba0a5fccc0) 0 empty
-
-Vtable for QNetworkSession
-QNetworkSession::_ZTV15QNetworkSession: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QNetworkSession)
-16 (int (*)(...))QNetworkSession::metaObject
-24 (int (*)(...))QNetworkSession::qt_metacast
-32 (int (*)(...))QNetworkSession::qt_metacall
-40 (int (*)(...))QNetworkSession::~QNetworkSession
-48 (int (*)(...))QNetworkSession::~QNetworkSession
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QNetworkSession::connectNotify
-104 (int (*)(...))QNetworkSession::disconnectNotify
-
-Class QNetworkSession
- size=24 align=8
- base size=24 base align=8
-QNetworkSession (0x0x7fba0a623548) 0
- vptr=((& QNetworkSession::_ZTV15QNetworkSession) + 16u)
- QObject (0x0x7fba0a5fcc60) 0
- primary-for QNetworkSession (0x0x7fba0a623548)
-
-Class QTcpServer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTcpServer::QPrivateSignal (0x0x7fba0a6c22a0) 0 empty
-
-Vtable for QTcpServer
-QTcpServer::_ZTV10QTcpServer: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTcpServer)
-16 (int (*)(...))QTcpServer::metaObject
-24 (int (*)(...))QTcpServer::qt_metacast
-32 (int (*)(...))QTcpServer::qt_metacall
-40 (int (*)(...))QTcpServer::~QTcpServer
-48 (int (*)(...))QTcpServer::~QTcpServer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTcpServer::hasPendingConnections
-120 (int (*)(...))QTcpServer::nextPendingConnection
-128 (int (*)(...))QTcpServer::incomingConnection
-
-Class QTcpServer
- size=16 align=8
- base size=16 base align=8
-QTcpServer (0x0x7fba0a623680) 0
- vptr=((& QTcpServer::_ZTV10QTcpServer) + 16u)
- QObject (0x0x7fba0a6c2240) 0
- primary-for QTcpServer (0x0x7fba0a623680)
-
-Class QSslCertificateExtension
- size=8 align=8
- base size=8 base align=8
-QSslCertificateExtension (0x0x7fba0a6c2300) 0
-
-Class QSslCipher
- size=8 align=8
- base size=8 base align=8
-QSslCipher (0x0x7fba0a6c2600) 0
-
-Class QSslDiffieHellmanParameters
- size=8 align=8
- base size=8 base align=8
-QSslDiffieHellmanParameters (0x0x7fba0a6c2de0) 0
-
-Class QSslEllipticCurve
- size=4 align=4
- base size=4 base align=4
-QSslEllipticCurve (0x0x7fba0a7b3900) 0
-
-Class QSslKey
- size=8 align=8
- base size=8 base align=8
-QSslKey (0x0x7fba0a3e6060) 0
-
-Class QUdpSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QUdpSocket::QPrivateSignal (0x0x7fba0a3e63c0) 0 empty
-
-Vtable for QUdpSocket
-QUdpSocket::_ZTV10QUdpSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QUdpSocket)
-16 (int (*)(...))QUdpSocket::metaObject
-24 (int (*)(...))QUdpSocket::qt_metacast
-32 (int (*)(...))QUdpSocket::qt_metacall
-40 (int (*)(...))QUdpSocket::~QUdpSocket
-48 (int (*)(...))QUdpSocket::~QUdpSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QUdpSocket
- size=16 align=8
- base size=16 base align=8
-QUdpSocket (0x0x7fba0a7bec30) 0
- vptr=((& QUdpSocket::_ZTV10QUdpSocket) + 16u)
- QAbstractSocket (0x0x7fba0a7bec98) 0
- primary-for QUdpSocket (0x0x7fba0a7bec30)
- QIODevice (0x0x7fba0a7bed00) 0
- primary-for QAbstractSocket (0x0x7fba0a7bec98)
- QObject (0x0x7fba0a3e6360) 0
- primary-for QIODevice (0x0x7fba0a7bed00)
-
-Class QJSValue
- size=8 align=8
- base size=8 base align=8
-QJSValue (0x0x7fba0a3e6420) 0
-
-Class QJSEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QJSEngine::QPrivateSignal (0x0x7fba0a3e6720) 0 empty
-
-Vtable for QJSEngine
-QJSEngine::_ZTV9QJSEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QJSEngine)
-16 (int (*)(...))QJSEngine::metaObject
-24 (int (*)(...))QJSEngine::qt_metacast
-32 (int (*)(...))QJSEngine::qt_metacall
-40 (int (*)(...))QJSEngine::~QJSEngine
-48 (int (*)(...))QJSEngine::~QJSEngine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QJSEngine
- size=24 align=8
- base size=24 base align=8
-QJSEngine (0x0x7fba0a7bee38) 0
- vptr=((& QJSEngine::_ZTV9QJSEngine) + 16u)
- QObject (0x0x7fba0a3e66c0) 0
- primary-for QJSEngine (0x0x7fba0a7bee38)
-
-Class QJSValueIterator
- size=8 align=8
- base size=8 base align=8
-QJSValueIterator (0x0x7fba0a3e6900) 0
-
-Class QQmlPrivate::RegisterType
- size=128 align=8
- base size=124 base align=8
-QQmlPrivate::RegisterType (0x0x7fba0a3e6de0) 0
-
-Class QQmlPrivate::RegisterInterface
- size=24 align=8
- base size=24 base align=8
-QQmlPrivate::RegisterInterface (0x0x7fba0a3e6e40) 0
-
-Class QQmlPrivate::RegisterAutoParent
- size=16 align=8
- base size=16 base align=8
-QQmlPrivate::RegisterAutoParent (0x0x7fba0a3e6ea0) 0
-
-Class QQmlPrivate::RegisterSingletonType
- size=64 align=8
- base size=64 base align=8
-QQmlPrivate::RegisterSingletonType (0x0x7fba0a3e6f00) 0
-
-Class QQmlPrivate::RegisterCompositeType
- size=32 align=8
- base size=32 base align=8
-QQmlPrivate::RegisterCompositeType (0x0x7fba0a3e6f60) 0
-
-Class QQmlPrivate::RegisterCompositeSingletonType
- size=32 align=8
- base size=32 base align=8
-QQmlPrivate::RegisterCompositeSingletonType (0x0x7fba0a4e5000) 0
-
-Class QQmlPrivate::CachedQmlUnit
- size=24 align=8
- base size=24 base align=8
-QQmlPrivate::CachedQmlUnit (0x0x7fba0a4e5060) 0
-
-Class QQmlPrivate::RegisterQmlUnitCacheHook
- size=16 align=8
- base size=16 base align=8
-QQmlPrivate::RegisterQmlUnitCacheHook (0x0x7fba0a4e50c0) 0
-
-Vtable for QQmlParserStatus
-QQmlParserStatus::_ZTV16QQmlParserStatus: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QQmlParserStatus)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlParserStatus
- size=16 align=8
- base size=16 base align=8
-QQmlParserStatus (0x0x7fba0a4e5120) 0
- vptr=((& QQmlParserStatus::_ZTV16QQmlParserStatus) + 16u)
-
-Vtable for QQmlPropertyValueSource
-QQmlPropertyValueSource::_ZTV23QQmlPropertyValueSource: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QQmlPropertyValueSource)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlPropertyValueSource
- size=8 align=8
- base size=8 base align=8
-QQmlPropertyValueSource (0x0x7fba0a4e51e0) 0 nearly-empty
- vptr=((& QQmlPropertyValueSource::_ZTV23QQmlPropertyValueSource) + 16u)
-
-Class QQmlListReference
- size=8 align=8
- base size=8 base align=8
-QQmlListReference (0x0x7fba0a4e5300) 0
-
-Vtable for QQmlAbstractUrlInterceptor
-QQmlAbstractUrlInterceptor::_ZTV26QQmlAbstractUrlInterceptor: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QQmlAbstractUrlInterceptor)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlAbstractUrlInterceptor
- size=8 align=8
- base size=8 base align=8
-QQmlAbstractUrlInterceptor (0x0x7fba0a4e5960) 0 nearly-empty
- vptr=((& QQmlAbstractUrlInterceptor::_ZTV26QQmlAbstractUrlInterceptor) + 16u)
-
-Class QQmlError
- size=8 align=8
- base size=8 base align=8
-QQmlError (0x0x7fba0a4e59c0) 0
-
-Class QQmlDebuggingEnabler
- size=1 align=1
- base size=0 base align=1
-QQmlDebuggingEnabler (0x0x7fba0a4e5c60) 0 empty
-
-Vtable for QQmlImageProviderBase
-QQmlImageProviderBase::_ZTV21QQmlImageProviderBase: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QQmlImageProviderBase)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlImageProviderBase
- size=8 align=8
- base size=8 base align=8
-QQmlImageProviderBase (0x0x7fba0a4e5cc0) 0 nearly-empty
- vptr=((& QQmlImageProviderBase::_ZTV21QQmlImageProviderBase) + 16u)
-
-Class QQmlEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlEngine::QPrivateSignal (0x0x7fba0a4e5f00) 0 empty
-
-Vtable for QQmlEngine
-QQmlEngine::_ZTV10QQmlEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQmlEngine)
-16 (int (*)(...))QQmlEngine::metaObject
-24 (int (*)(...))QQmlEngine::qt_metacast
-32 (int (*)(...))QQmlEngine::qt_metacall
-40 (int (*)(...))QQmlEngine::~QQmlEngine
-48 (int (*)(...))QQmlEngine::~QQmlEngine
-56 (int (*)(...))QQmlEngine::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlEngine
- size=24 align=8
- base size=24 base align=8
-QQmlEngine (0x0x7fba0a4cb478) 0
- vptr=((& QQmlEngine::_ZTV10QQmlEngine) + 16u)
- QJSEngine (0x0x7fba0a4cb4e0) 0
- primary-for QQmlEngine (0x0x7fba0a4cb478)
- QObject (0x0x7fba0a4e5ea0) 0
- primary-for QJSEngine (0x0x7fba0a4cb4e0)
-
-Class QQmlApplicationEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlApplicationEngine::QPrivateSignal (0x0x7fba0a241000) 0 empty
-
-Vtable for QQmlApplicationEngine
-QQmlApplicationEngine::_ZTV21QQmlApplicationEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QQmlApplicationEngine)
-16 (int (*)(...))QQmlApplicationEngine::metaObject
-24 (int (*)(...))QQmlApplicationEngine::qt_metacast
-32 (int (*)(...))QQmlApplicationEngine::qt_metacall
-40 (int (*)(...))QQmlApplicationEngine::~QQmlApplicationEngine
-48 (int (*)(...))QQmlApplicationEngine::~QQmlApplicationEngine
-56 (int (*)(...))QQmlEngine::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlApplicationEngine
- size=24 align=8
- base size=24 base align=8
-QQmlApplicationEngine (0x0x7fba0a4cb548) 0
- vptr=((& QQmlApplicationEngine::_ZTV21QQmlApplicationEngine) + 16u)
- QQmlEngine (0x0x7fba0a4cb5b0) 0
- primary-for QQmlApplicationEngine (0x0x7fba0a4cb548)
- QJSEngine (0x0x7fba0a4cb618) 0
- primary-for QQmlEngine (0x0x7fba0a4cb5b0)
- QObject (0x0x7fba0a4e5f60) 0
- primary-for QJSEngine (0x0x7fba0a4cb618)
-
-Class QQmlComponent::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlComponent::QPrivateSignal (0x0x7fba0a2410c0) 0 empty
-
-Vtable for QQmlComponent
-QQmlComponent::_ZTV13QQmlComponent: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QQmlComponent)
-16 (int (*)(...))QQmlComponent::metaObject
-24 (int (*)(...))QQmlComponent::qt_metacast
-32 (int (*)(...))QQmlComponent::qt_metacall
-40 (int (*)(...))QQmlComponent::~QQmlComponent
-48 (int (*)(...))QQmlComponent::~QQmlComponent
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQmlComponent::create
-120 (int (*)(...))QQmlComponent::beginCreate
-128 (int (*)(...))QQmlComponent::completeCreate
-
-Class QQmlComponent
- size=16 align=8
- base size=16 base align=8
-QQmlComponent (0x0x7fba0a4cb680) 0
- vptr=((& QQmlComponent::_ZTV13QQmlComponent) + 16u)
- QObject (0x0x7fba0a241060) 0
- primary-for QQmlComponent (0x0x7fba0a4cb680)
-
-Class QQmlContext::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlContext::QPrivateSignal (0x0x7fba0a241900) 0 empty
-
-Vtable for QQmlContext
-QQmlContext::_ZTV11QQmlContext: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QQmlContext)
-16 (int (*)(...))QQmlContext::metaObject
-24 (int (*)(...))QQmlContext::qt_metacast
-32 (int (*)(...))QQmlContext::qt_metacall
-40 (int (*)(...))QQmlContext::~QQmlContext
-48 (int (*)(...))QQmlContext::~QQmlContext
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlContext
- size=16 align=8
- base size=16 base align=8
-QQmlContext (0x0x7fba0a4cbbc8) 0
- vptr=((& QQmlContext::_ZTV11QQmlContext) + 16u)
- QObject (0x0x7fba0a2418a0) 0
- primary-for QQmlContext (0x0x7fba0a4cbbc8)
-
-Class QQmlScriptString
- size=8 align=8
- base size=8 base align=8
-QQmlScriptString (0x0x7fba0a241a80) 0
-
-Class QQmlExpression::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlExpression::QPrivateSignal (0x0x7fba0a241cc0) 0 empty
-
-Vtable for QQmlExpression
-QQmlExpression::_ZTV14QQmlExpression: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QQmlExpression)
-16 (int (*)(...))QQmlExpression::metaObject
-24 (int (*)(...))QQmlExpression::qt_metacast
-32 (int (*)(...))QQmlExpression::qt_metacall
-40 (int (*)(...))QQmlExpression::~QQmlExpression
-48 (int (*)(...))QQmlExpression::~QQmlExpression
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlExpression
- size=16 align=8
- base size=16 base align=8
-QQmlExpression (0x0x7fba0a4cbc30) 0
- vptr=((& QQmlExpression::_ZTV14QQmlExpression) + 16u)
- QObject (0x0x7fba0a241c60) 0
- primary-for QQmlExpression (0x0x7fba0a4cbc30)
-
-Vtable for QQmlTypesExtensionInterface
-QQmlTypesExtensionInterface::_ZTV27QQmlTypesExtensionInterface: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QQmlTypesExtensionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlTypesExtensionInterface
- size=8 align=8
- base size=8 base align=8
-QQmlTypesExtensionInterface (0x0x7fba0a241d20) 0 nearly-empty
- vptr=((& QQmlTypesExtensionInterface::_ZTV27QQmlTypesExtensionInterface) + 16u)
-
-Vtable for QQmlExtensionInterface
-QQmlExtensionInterface::_ZTV22QQmlExtensionInterface: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QQmlExtensionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlExtensionInterface
- size=8 align=8
- base size=8 base align=8
-QQmlExtensionInterface (0x0x7fba0a4cbc98) 0 nearly-empty
- vptr=((& QQmlExtensionInterface::_ZTV22QQmlExtensionInterface) + 16u)
- QQmlTypesExtensionInterface (0x0x7fba0a241d80) 0 nearly-empty
- primary-for QQmlExtensionInterface (0x0x7fba0a4cbc98)
-
-Class QQmlExtensionPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlExtensionPlugin::QPrivateSignal (0x0x7fba0a241f60) 0 empty
-
-Vtable for QQmlExtensionPlugin
-QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQmlExtensionPlugin)
-16 (int (*)(...))QQmlExtensionPlugin::metaObject
-24 (int (*)(...))QQmlExtensionPlugin::qt_metacast
-32 (int (*)(...))QQmlExtensionPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QQmlExtensionPlugin::initializeEngine
-128 (int (*)(...))-16
-136 (int (*)(...))(& _ZTI19QQmlExtensionPlugin)
-144 0u
-152 0u
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QQmlExtensionPlugin::_ZThn16_N19QQmlExtensionPlugin16initializeEngineEP10QQmlEnginePKc
-
-Class QQmlExtensionPlugin
- size=24 align=8
- base size=24 base align=8
-QQmlExtensionPlugin (0x0x7fba0a2ea7e0) 0
- vptr=((& QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin) + 16u)
- QObject (0x0x7fba0a241ea0) 0
- primary-for QQmlExtensionPlugin (0x0x7fba0a2ea7e0)
- QQmlExtensionInterface (0x0x7fba0a4cbd00) 16 nearly-empty
- vptr=((& QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin) + 144u)
- QQmlTypesExtensionInterface (0x0x7fba0a241f00) 16 nearly-empty
- primary-for QQmlExtensionInterface (0x0x7fba0a4cbd00)
-
-Class QQmlFile
- size=8 align=8
- base size=8 base align=8
-QQmlFile (0x0x7fba0a302000) 0
-
-Class QQmlFileSelector::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlFileSelector::QPrivateSignal (0x0x7fba0a3020c0) 0 empty
-
-Vtable for QQmlFileSelector
-QQmlFileSelector::_ZTV16QQmlFileSelector: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QQmlFileSelector)
-16 (int (*)(...))QQmlFileSelector::metaObject
-24 (int (*)(...))QQmlFileSelector::qt_metacast
-32 (int (*)(...))QQmlFileSelector::qt_metacall
-40 (int (*)(...))QQmlFileSelector::~QQmlFileSelector
-48 (int (*)(...))QQmlFileSelector::~QQmlFileSelector
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlFileSelector
- size=16 align=8
- base size=16 base align=8
-QQmlFileSelector (0x0x7fba0a4cbdd0) 0
- vptr=((& QQmlFileSelector::_ZTV16QQmlFileSelector) + 16u)
- QObject (0x0x7fba0a302060) 0
- primary-for QQmlFileSelector (0x0x7fba0a4cbdd0)
-
-Vtable for QQmlIncubator
-QQmlIncubator::_ZTV13QQmlIncubator: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QQmlIncubator)
-16 (int (*)(...))QQmlIncubator::~QQmlIncubator
-24 (int (*)(...))QQmlIncubator::~QQmlIncubator
-32 (int (*)(...))QQmlIncubator::statusChanged
-40 (int (*)(...))QQmlIncubator::setInitialState
-
-Class QQmlIncubator
- size=16 align=8
- base size=16 base align=8
-QQmlIncubator (0x0x7fba0a302120) 0
- vptr=((& QQmlIncubator::_ZTV13QQmlIncubator) + 16u)
-
-Vtable for QQmlIncubationController
-QQmlIncubationController::_ZTV24QQmlIncubationController: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QQmlIncubationController)
-16 (int (*)(...))QQmlIncubationController::~QQmlIncubationController
-24 (int (*)(...))QQmlIncubationController::~QQmlIncubationController
-32 (int (*)(...))QQmlIncubationController::incubatingObjectCountChanged
-
-Class QQmlIncubationController
- size=16 align=8
- base size=16 base align=8
-QQmlIncubationController (0x0x7fba0a302180) 0
- vptr=((& QQmlIncubationController::_ZTV24QQmlIncubationController) + 16u)
-
-Class QQmlInfo
- size=16 align=8
- base size=16 base align=8
-QQmlInfo (0x0x7fba0a4cbe38) 0
- QDebug (0x0x7fba0a3021e0) 0
-
-Vtable for QQmlNetworkAccessManagerFactory
-QQmlNetworkAccessManagerFactory::_ZTV31QQmlNetworkAccessManagerFactory: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI31QQmlNetworkAccessManagerFactory)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlNetworkAccessManagerFactory
- size=8 align=8
- base size=8 base align=8
-QQmlNetworkAccessManagerFactory (0x0x7fba0a3b60c0) 0 nearly-empty
- vptr=((& QQmlNetworkAccessManagerFactory::_ZTV31QQmlNetworkAccessManagerFactory) + 16u)
-
-Class QQmlProperty
- size=8 align=8
- base size=8 base align=8
-QQmlProperty (0x0x7fba0a3b6120) 0
-
-Class QQmlPropertyMap::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlPropertyMap::QPrivateSignal (0x0x7fba0a3b6c60) 0 empty
-
-Vtable for QQmlPropertyMap
-QQmlPropertyMap::_ZTV15QQmlPropertyMap: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QQmlPropertyMap)
-16 (int (*)(...))QQmlPropertyMap::metaObject
-24 (int (*)(...))QQmlPropertyMap::qt_metacast
-32 (int (*)(...))QQmlPropertyMap::qt_metacall
-40 (int (*)(...))QQmlPropertyMap::~QQmlPropertyMap
-48 (int (*)(...))QQmlPropertyMap::~QQmlPropertyMap
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQmlPropertyMap::updateValue
-
-Class QQmlPropertyMap
- size=16 align=8
- base size=16 base align=8
-QQmlPropertyMap (0x0x7fba0a3d9680) 0
- vptr=((& QQmlPropertyMap::_ZTV15QQmlPropertyMap) + 16u)
- QObject (0x0x7fba0a3b6c00) 0
- primary-for QQmlPropertyMap (0x0x7fba0a3d9680)
-
-Class QQuickTransform::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTransform::QPrivateSignal (0x0x7fba0a3b6d20) 0 empty
-
-Vtable for QQuickTransform
-QQuickTransform::_ZTV15QQuickTransform: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QQuickTransform)
-16 (int (*)(...))QQuickTransform::metaObject
-24 (int (*)(...))QQuickTransform::qt_metacast
-32 (int (*)(...))QQuickTransform::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QQuickTransform
- size=16 align=8
- base size=16 base align=8
-QQuickTransform (0x0x7fba0a3d96e8) 0
- vptr=((& QQuickTransform::_ZTV15QQuickTransform) + 16u)
- QObject (0x0x7fba0a3b6cc0) 0
- primary-for QQuickTransform (0x0x7fba0a3d96e8)
-
-Class QQuickItem::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickItem::QPrivateSignal (0x0x7fba0a3b6e40) 0 empty
-
-Class QQuickItem::ItemChangeData
- size=8 align=8
- base size=8 base align=8
-QQuickItem::ItemChangeData (0x0x7fba0a3b6ea0) 0
-
-Class QQuickItem::UpdatePaintNodeData
- size=8 align=8
- base size=8 base align=8
-QQuickItem::UpdatePaintNodeData (0x0x7fba0a3b6f00) 0
-
-Vtable for QQuickItem
-QQuickItem::_ZTV10QQuickItem: 55u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQuickItem)
-16 (int (*)(...))QQuickItem::metaObject
-24 (int (*)(...))QQuickItem::qt_metacast
-32 (int (*)(...))QQuickItem::qt_metacall
-40 (int (*)(...))QQuickItem::~QQuickItem
-48 (int (*)(...))QQuickItem::~QQuickItem
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickItem::isTextureProvider
-152 (int (*)(...))QQuickItem::textureProvider
-160 (int (*)(...))QQuickItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickItem::geometryChanged
-368 (int (*)(...))QQuickItem::updatePaintNode
-376 (int (*)(...))QQuickItem::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))-16
-400 (int (*)(...))(& _ZTI10QQuickItem)
-408 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItemD1Ev
-416 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItemD0Ev
-424 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickItem
- size=32 align=8
- base size=32 base align=8
-QQuickItem (0x0x7fba09ff45b0) 0
- vptr=((& QQuickItem::_ZTV10QQuickItem) + 16u)
- QObject (0x0x7fba0a3b6d80) 0
- primary-for QQuickItem (0x0x7fba09ff45b0)
- QQmlParserStatus (0x0x7fba0a3b6de0) 16
- vptr=((& QQuickItem::_ZTV10QQuickItem) + 408u)
-
-Class QQuickFramebufferObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickFramebufferObject::QPrivateSignal (0x0x7fba0a05a720) 0 empty
-
-Vtable for QQuickFramebufferObject::Renderer
-QQuickFramebufferObject::Renderer::_ZTVN23QQuickFramebufferObject8RendererE: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN23QQuickFramebufferObject8RendererE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QQuickFramebufferObject::Renderer::createFramebufferObject
-48 (int (*)(...))QQuickFramebufferObject::Renderer::synchronize
-
-Class QQuickFramebufferObject::Renderer
- size=16 align=8
- base size=16 base align=8
-QQuickFramebufferObject::Renderer (0x0x7fba0a05a780) 0
- vptr=((& QQuickFramebufferObject::Renderer::_ZTVN23QQuickFramebufferObject8RendererE) + 16u)
-
-Vtable for QQuickFramebufferObject
-QQuickFramebufferObject::_ZTV23QQuickFramebufferObject: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QQuickFramebufferObject)
-16 (int (*)(...))QQuickFramebufferObject::metaObject
-24 (int (*)(...))QQuickFramebufferObject::qt_metacast
-32 (int (*)(...))QQuickFramebufferObject::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickFramebufferObject::isTextureProvider
-152 (int (*)(...))QQuickFramebufferObject::textureProvider
-160 (int (*)(...))QQuickItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickFramebufferObject::geometryChanged
-368 (int (*)(...))QQuickFramebufferObject::updatePaintNode
-376 (int (*)(...))QQuickFramebufferObject::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))-16
-408 (int (*)(...))(& _ZTI23QQuickFramebufferObject)
-416 0u
-424 0u
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-440 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickFramebufferObject
- size=32 align=8
- base size=32 base align=8
-QQuickFramebufferObject (0x0x7fba0a3d9820) 0
- vptr=((& QQuickFramebufferObject::_ZTV23QQuickFramebufferObject) + 16u)
- QQuickItem (0x0x7fba0a0a3bd0) 0
- primary-for QQuickFramebufferObject (0x0x7fba0a3d9820)
- QObject (0x0x7fba0a05a660) 0
- primary-for QQuickItem (0x0x7fba0a0a3bd0)
- QQmlParserStatus (0x0x7fba0a05a6c0) 16
- vptr=((& QQuickFramebufferObject::_ZTV23QQuickFramebufferObject) + 416u)
-
-Vtable for QQuickTextureFactory
-QQuickTextureFactory::_ZTV20QQuickTextureFactory: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QQuickTextureFactory)
-16 (int (*)(...))QObject::metaObject
-24 (int (*)(...))QObject::qt_metacast
-32 (int (*)(...))QObject::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))QQuickTextureFactory::image
-
-Class QQuickTextureFactory
- size=16 align=8
- base size=16 base align=8
-QQuickTextureFactory (0x0x7fba0a3d9888) 0
- vptr=((& QQuickTextureFactory::_ZTV20QQuickTextureFactory) + 16u)
- QObject (0x0x7fba0a05a7e0) 0
- primary-for QQuickTextureFactory (0x0x7fba0a3d9888)
-
-Class QQuickImageResponse::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickImageResponse::QPrivateSignal (0x0x7fba0a05a8a0) 0 empty
-
-Vtable for QQuickImageResponse
-QQuickImageResponse::_ZTV19QQuickImageResponse: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickImageResponse)
-16 (int (*)(...))QQuickImageResponse::metaObject
-24 (int (*)(...))QQuickImageResponse::qt_metacast
-32 (int (*)(...))QQuickImageResponse::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QQuickImageResponse::errorString
-128 (int (*)(...))QQuickImageResponse::cancel
-
-Class QQuickImageResponse
- size=16 align=8
- base size=16 base align=8
-QQuickImageResponse (0x0x7fba0a3d98f0) 0
- vptr=((& QQuickImageResponse::_ZTV19QQuickImageResponse) + 16u)
- QObject (0x0x7fba0a05a840) 0
- primary-for QQuickImageResponse (0x0x7fba0a3d98f0)
-
-Vtable for QQuickImageProvider
-QQuickImageProvider::_ZTV19QQuickImageProvider: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickImageProvider)
-16 (int (*)(...))QQuickImageProvider::~QQuickImageProvider
-24 (int (*)(...))QQuickImageProvider::~QQuickImageProvider
-32 (int (*)(...))QQuickImageProvider::imageType
-40 (int (*)(...))QQuickImageProvider::flags
-48 (int (*)(...))QQuickImageProvider::requestImage
-56 (int (*)(...))QQuickImageProvider::requestPixmap
-64 (int (*)(...))QQuickImageProvider::requestTexture
-
-Class QQuickImageProvider
- size=16 align=8
- base size=16 base align=8
-QQuickImageProvider (0x0x7fba0a3d9958) 0
- vptr=((& QQuickImageProvider::_ZTV19QQuickImageProvider) + 16u)
- QQmlImageProviderBase (0x0x7fba0a05a900) 0 nearly-empty
- primary-for QQuickImageProvider (0x0x7fba0a3d9958)
-
-Vtable for QQuickAsyncImageProvider
-QQuickAsyncImageProvider::_ZTV24QQuickAsyncImageProvider: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QQuickAsyncImageProvider)
-16 0u
-24 0u
-32 (int (*)(...))QQuickImageProvider::imageType
-40 (int (*)(...))QQuickImageProvider::flags
-48 (int (*)(...))QQuickImageProvider::requestImage
-56 (int (*)(...))QQuickImageProvider::requestPixmap
-64 (int (*)(...))QQuickImageProvider::requestTexture
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QQuickAsyncImageProvider
- size=24 align=8
- base size=24 base align=8
-QQuickAsyncImageProvider (0x0x7fba0a3d99c0) 0
- vptr=((& QQuickAsyncImageProvider::_ZTV24QQuickAsyncImageProvider) + 16u)
- QQuickImageProvider (0x0x7fba0a3d9a28) 0
- primary-for QQuickAsyncImageProvider (0x0x7fba0a3d99c0)
- QQmlImageProviderBase (0x0x7fba0a05a960) 0 nearly-empty
- primary-for QQuickImageProvider (0x0x7fba0a3d9a28)
-
-Class QQuickItemGrabResult::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickItemGrabResult::QPrivateSignal (0x0x7fba0a05aa20) 0 empty
-
-Vtable for QQuickItemGrabResult
-QQuickItemGrabResult::_ZTV20QQuickItemGrabResult: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QQuickItemGrabResult)
-16 (int (*)(...))QQuickItemGrabResult::metaObject
-24 (int (*)(...))QQuickItemGrabResult::qt_metacast
-32 (int (*)(...))QQuickItemGrabResult::qt_metacall
-40 (int (*)(...))QQuickItemGrabResult::~QQuickItemGrabResult
-48 (int (*)(...))QQuickItemGrabResult::~QQuickItemGrabResult
-56 (int (*)(...))QQuickItemGrabResult::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQuickItemGrabResult
- size=16 align=8
- base size=16 base align=8
-QQuickItemGrabResult (0x0x7fba0a3d9a90) 0
- vptr=((& QQuickItemGrabResult::_ZTV20QQuickItemGrabResult) + 16u)
- QObject (0x0x7fba0a05a9c0) 0
- primary-for QQuickItemGrabResult (0x0x7fba0a3d9a90)
-
-Class QQuickPaintedItem::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickPaintedItem::QPrivateSignal (0x0x7fba0a05ab40) 0 empty
-
-Vtable for QQuickPaintedItem
-QQuickPaintedItem::_ZTV17QQuickPaintedItem: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QQuickPaintedItem)
-16 (int (*)(...))QQuickPaintedItem::metaObject
-24 (int (*)(...))QQuickPaintedItem::qt_metacast
-32 (int (*)(...))QQuickPaintedItem::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickPaintedItem::isTextureProvider
-152 (int (*)(...))QQuickPaintedItem::textureProvider
-160 (int (*)(...))QQuickPaintedItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickItem::geometryChanged
-368 (int (*)(...))QQuickPaintedItem::updatePaintNode
-376 (int (*)(...))QQuickPaintedItem::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))-16
-408 (int (*)(...))(& _ZTI17QQuickPaintedItem)
-416 0u
-424 0u
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-440 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickPaintedItem
- size=32 align=8
- base size=32 base align=8
-QQuickPaintedItem (0x0x7fba0a3d9af8) 0
- vptr=((& QQuickPaintedItem::_ZTV17QQuickPaintedItem) + 16u)
- QQuickItem (0x0x7fba0a0d5e00) 0
- primary-for QQuickPaintedItem (0x0x7fba0a3d9af8)
- QObject (0x0x7fba0a05aa80) 0
- primary-for QQuickItem (0x0x7fba0a0d5e00)
- QQmlParserStatus (0x0x7fba0a05aae0) 16
- vptr=((& QQuickPaintedItem::_ZTV17QQuickPaintedItem) + 416u)
-
-Class QQuickRenderControl::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickRenderControl::QPrivateSignal (0x0x7fba0a05ad80) 0 empty
-
-Vtable for QQuickRenderControl
-QQuickRenderControl::_ZTV19QQuickRenderControl: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickRenderControl)
-16 (int (*)(...))QQuickRenderControl::metaObject
-24 (int (*)(...))QQuickRenderControl::qt_metacast
-32 (int (*)(...))QQuickRenderControl::qt_metacall
-40 (int (*)(...))QQuickRenderControl::~QQuickRenderControl
-48 (int (*)(...))QQuickRenderControl::~QQuickRenderControl
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickRenderControl::renderWindow
-
-Class QQuickRenderControl
- size=16 align=8
- base size=16 base align=8
-QQuickRenderControl (0x0x7fba0a3d9c98) 0
- vptr=((& QQuickRenderControl::_ZTV19QQuickRenderControl) + 16u)
- QObject (0x0x7fba0a05ad20) 0
- primary-for QQuickRenderControl (0x0x7fba0a3d9c98)
-
-Class QQuickTextDocument::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTextDocument::QPrivateSignal (0x0x7fba0a05ae40) 0 empty
-
-Vtable for QQuickTextDocument
-QQuickTextDocument::_ZTV18QQuickTextDocument: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QQuickTextDocument)
-16 (int (*)(...))QQuickTextDocument::metaObject
-24 (int (*)(...))QQuickTextDocument::qt_metacast
-32 (int (*)(...))QQuickTextDocument::qt_metacall
-40 (int (*)(...))QQuickTextDocument::~QQuickTextDocument
-48 (int (*)(...))QQuickTextDocument::~QQuickTextDocument
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQuickTextDocument
- size=16 align=8
- base size=16 base align=8
-QQuickTextDocument (0x0x7fba0a3d9d00) 0
- vptr=((& QQuickTextDocument::_ZTV18QQuickTextDocument) + 16u)
- QObject (0x0x7fba0a05ade0) 0
- primary-for QQuickTextDocument (0x0x7fba0a3d9d00)
-
-Class QSGGeometry::Attribute
- size=16 align=4
- base size=16 base align=4
-QSGGeometry::Attribute (0x0x7fba0a1741e0) 0
-
-Class QSGGeometry::AttributeSet
- size=16 align=8
- base size=16 base align=8
-QSGGeometry::AttributeSet (0x0x7fba0a174240) 0
-
-Class QSGGeometry::Point2D
- size=8 align=4
- base size=8 base align=4
-QSGGeometry::Point2D (0x0x7fba0a1742a0) 0
-
-Class QSGGeometry::TexturedPoint2D
- size=16 align=4
- base size=16 base align=4
-QSGGeometry::TexturedPoint2D (0x0x7fba0a174300) 0
-
-Class QSGGeometry::ColoredPoint2D
- size=12 align=4
- base size=12 base align=4
-QSGGeometry::ColoredPoint2D (0x0x7fba0a174360) 0
-
-Vtable for QSGGeometry
-QSGGeometry::_ZTV11QSGGeometry: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGGeometry)
-16 (int (*)(...))QSGGeometry::~QSGGeometry
-24 (int (*)(...))QSGGeometry::~QSGGeometry
-
-Class QSGGeometry
- size=128 align=8
- base size=128 base align=8
-QSGGeometry (0x0x7fba0a174180) 0
- vptr=((& QSGGeometry::_ZTV11QSGGeometry) + 16u)
-
-Vtable for QSGNode
-QSGNode::_ZTV7QSGNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QSGNode)
-16 (int (*)(...))QSGNode::~QSGNode
-24 (int (*)(...))QSGNode::~QSGNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGNode
- size=80 align=8
- base size=80 base align=8
-QSGNode (0x0x7fba0a174840) 0
- vptr=((& QSGNode::_ZTV7QSGNode) + 16u)
-
-Vtable for QSGBasicGeometryNode
-QSGBasicGeometryNode::_ZTV20QSGBasicGeometryNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGBasicGeometryNode)
-16 (int (*)(...))QSGBasicGeometryNode::~QSGBasicGeometryNode
-24 (int (*)(...))QSGBasicGeometryNode::~QSGBasicGeometryNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGBasicGeometryNode
- size=112 align=8
- base size=112 base align=8
-QSGBasicGeometryNode (0x0x7fba0a1aa410) 0
- vptr=((& QSGBasicGeometryNode::_ZTV20QSGBasicGeometryNode) + 16u)
- QSGNode (0x0x7fba0a174c00) 0
- primary-for QSGBasicGeometryNode (0x0x7fba0a1aa410)
-
-Vtable for QSGGeometryNode
-QSGGeometryNode::_ZTV15QSGGeometryNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSGGeometryNode)
-16 (int (*)(...))QSGGeometryNode::~QSGGeometryNode
-24 (int (*)(...))QSGGeometryNode::~QSGGeometryNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGGeometryNode
- size=144 align=8
- base size=144 base align=8
-QSGGeometryNode (0x0x7fba0a1aa478) 0
- vptr=((& QSGGeometryNode::_ZTV15QSGGeometryNode) + 16u)
- QSGBasicGeometryNode (0x0x7fba0a1aa4e0) 0
- primary-for QSGGeometryNode (0x0x7fba0a1aa478)
- QSGNode (0x0x7fba0a174c60) 0
- primary-for QSGBasicGeometryNode (0x0x7fba0a1aa4e0)
-
-Vtable for QSGClipNode
-QSGClipNode::_ZTV11QSGClipNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGClipNode)
-16 (int (*)(...))QSGClipNode::~QSGClipNode
-24 (int (*)(...))QSGClipNode::~QSGClipNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGClipNode
- size=152 align=8
- base size=152 base align=8
-QSGClipNode (0x0x7fba0a1aa548) 0
- vptr=((& QSGClipNode::_ZTV11QSGClipNode) + 16u)
- QSGBasicGeometryNode (0x0x7fba0a1aa5b0) 0
- primary-for QSGClipNode (0x0x7fba0a1aa548)
- QSGNode (0x0x7fba0a174cc0) 0
- primary-for QSGBasicGeometryNode (0x0x7fba0a1aa5b0)
-
-Vtable for QSGTransformNode
-QSGTransformNode::_ZTV16QSGTransformNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGTransformNode)
-16 (int (*)(...))QSGTransformNode::~QSGTransformNode
-24 (int (*)(...))QSGTransformNode::~QSGTransformNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGTransformNode
- size=216 align=8
- base size=216 base align=8
-QSGTransformNode (0x0x7fba0a1aa618) 0
- vptr=((& QSGTransformNode::_ZTV16QSGTransformNode) + 16u)
- QSGNode (0x0x7fba0a174d20) 0
- primary-for QSGTransformNode (0x0x7fba0a1aa618)
-
-Vtable for QSGRootNode
-QSGRootNode::_ZTV11QSGRootNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGRootNode)
-16 (int (*)(...))QSGRootNode::~QSGRootNode
-24 (int (*)(...))QSGRootNode::~QSGRootNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGRootNode
- size=88 align=8
- base size=88 base align=8
-QSGRootNode (0x0x7fba0a1aa680) 0
- vptr=((& QSGRootNode::_ZTV11QSGRootNode) + 16u)
- QSGNode (0x0x7fba0a174d80) 0
- primary-for QSGRootNode (0x0x7fba0a1aa680)
-
-Vtable for QSGOpacityNode
-QSGOpacityNode::_ZTV14QSGOpacityNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QSGOpacityNode)
-16 (int (*)(...))QSGOpacityNode::~QSGOpacityNode
-24 (int (*)(...))QSGOpacityNode::~QSGOpacityNode
-32 (int (*)(...))QSGOpacityNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGOpacityNode
- size=96 align=8
- base size=96 base align=8
-QSGOpacityNode (0x0x7fba0a1aa820) 0
- vptr=((& QSGOpacityNode::_ZTV14QSGOpacityNode) + 16u)
- QSGNode (0x0x7fba0a174f00) 0
- primary-for QSGOpacityNode (0x0x7fba0a1aa820)
-
-Vtable for QSGNodeVisitor
-QSGNodeVisitor::_ZTV14QSGNodeVisitor: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QSGNodeVisitor)
-16 (int (*)(...))QSGNodeVisitor::~QSGNodeVisitor
-24 (int (*)(...))QSGNodeVisitor::~QSGNodeVisitor
-32 (int (*)(...))QSGNodeVisitor::enterTransformNode
-40 (int (*)(...))QSGNodeVisitor::leaveTransformNode
-48 (int (*)(...))QSGNodeVisitor::enterClipNode
-56 (int (*)(...))QSGNodeVisitor::leaveClipNode
-64 (int (*)(...))QSGNodeVisitor::enterGeometryNode
-72 (int (*)(...))QSGNodeVisitor::leaveGeometryNode
-80 (int (*)(...))QSGNodeVisitor::enterOpacityNode
-88 (int (*)(...))QSGNodeVisitor::leaveOpacityNode
-96 (int (*)(...))QSGNodeVisitor::visitNode
-104 (int (*)(...))QSGNodeVisitor::visitChildren
-
-Class QSGNodeVisitor
- size=8 align=8
- base size=8 base align=8
-QSGNodeVisitor (0x0x7fba0a174f60) 0 nearly-empty
- vptr=((& QSGNodeVisitor::_ZTV14QSGNodeVisitor) + 16u)
-
-Vtable for QSGRendererInterface
-QSGRendererInterface::_ZTV20QSGRendererInterface: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGRendererInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QSGRendererInterface::getResource
-48 (int (*)(...))QSGRendererInterface::getResource
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QSGRendererInterface
- size=8 align=8
- base size=8 base align=8
-QSGRendererInterface (0x0x7fba09efb000) 0 nearly-empty
- vptr=((& QSGRendererInterface::_ZTV20QSGRendererInterface) + 16u)
-
-Class QQuickWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickWindow::QPrivateSignal (0x0x7fba09efb420) 0 empty
-
-Vtable for QQuickWindow
-QQuickWindow::_ZTV12QQuickWindow: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QQuickWindow)
-16 (int (*)(...))QQuickWindow::metaObject
-24 (int (*)(...))QQuickWindow::qt_metacast
-32 (int (*)(...))QQuickWindow::qt_metacall
-40 (int (*)(...))QQuickWindow::~QQuickWindow
-48 (int (*)(...))QQuickWindow::~QQuickWindow
-56 (int (*)(...))QQuickWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QQuickWindow::accessibleRoot
-144 (int (*)(...))QQuickWindow::focusObject
-152 (int (*)(...))QQuickWindow::exposeEvent
-160 (int (*)(...))QQuickWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QQuickWindow::focusInEvent
-184 (int (*)(...))QQuickWindow::focusOutEvent
-192 (int (*)(...))QQuickWindow::showEvent
-200 (int (*)(...))QQuickWindow::hideEvent
-208 (int (*)(...))QQuickWindow::keyPressEvent
-216 (int (*)(...))QQuickWindow::keyReleaseEvent
-224 (int (*)(...))QQuickWindow::mousePressEvent
-232 (int (*)(...))QQuickWindow::mouseReleaseEvent
-240 (int (*)(...))QQuickWindow::mouseDoubleClickEvent
-248 (int (*)(...))QQuickWindow::mouseMoveEvent
-256 (int (*)(...))QQuickWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI12QQuickWindow)
-312 (int (*)(...))QQuickWindow::_ZThn16_N12QQuickWindowD1Ev
-320 (int (*)(...))QQuickWindow::_ZThn16_N12QQuickWindowD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QQuickWindow
- size=40 align=8
- base size=40 base align=8
-QQuickWindow (0x0x7fba0a1aaa28) 0
- vptr=((& QQuickWindow::_ZTV12QQuickWindow) + 16u)
- QWindow (0x0x7fba09f37e00) 0
- primary-for QQuickWindow (0x0x7fba0a1aaa28)
- QObject (0x0x7fba09efb360) 0
- primary-for QWindow (0x0x7fba09f37e00)
- QSurface (0x0x7fba09efb3c0) 16
- vptr=((& QQuickWindow::_ZTV12QQuickWindow) + 312u)
-
-Class QQuickView::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickView::QPrivateSignal (0x0x7fba09efb7e0) 0 empty
-
-Vtable for QQuickView
-QQuickView::_ZTV10QQuickView: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQuickView)
-16 (int (*)(...))QQuickView::metaObject
-24 (int (*)(...))QQuickView::qt_metacast
-32 (int (*)(...))QQuickView::qt_metacall
-40 (int (*)(...))QQuickView::~QQuickView
-48 (int (*)(...))QQuickView::~QQuickView
-56 (int (*)(...))QQuickWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QQuickView::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QQuickWindow::accessibleRoot
-144 (int (*)(...))QQuickWindow::focusObject
-152 (int (*)(...))QQuickWindow::exposeEvent
-160 (int (*)(...))QQuickView::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QQuickWindow::focusInEvent
-184 (int (*)(...))QQuickWindow::focusOutEvent
-192 (int (*)(...))QQuickWindow::showEvent
-200 (int (*)(...))QQuickWindow::hideEvent
-208 (int (*)(...))QQuickView::keyPressEvent
-216 (int (*)(...))QQuickView::keyReleaseEvent
-224 (int (*)(...))QQuickView::mousePressEvent
-232 (int (*)(...))QQuickView::mouseReleaseEvent
-240 (int (*)(...))QQuickWindow::mouseDoubleClickEvent
-248 (int (*)(...))QQuickView::mouseMoveEvent
-256 (int (*)(...))QQuickWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI10QQuickView)
-312 (int (*)(...))QQuickView::_ZThn16_N10QQuickViewD1Ev
-320 (int (*)(...))QQuickView::_ZThn16_N10QQuickViewD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QQuickView
- size=40 align=8
- base size=40 base align=8
-QQuickView (0x0x7fba0a1aab60) 0
- vptr=((& QQuickView::_ZTV10QQuickView) + 16u)
- QQuickWindow (0x0x7fba0a1aabc8) 0
- primary-for QQuickView (0x0x7fba0a1aab60)
- QWindow (0x0x7fba09fa84d0) 0
- primary-for QQuickWindow (0x0x7fba0a1aabc8)
- QObject (0x0x7fba09efb720) 0
- primary-for QWindow (0x0x7fba09fa84d0)
- QSurface (0x0x7fba09efb780) 16
- vptr=((& QQuickView::_ZTV10QQuickView) + 312u)
-
-Class QSGAbstractRenderer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGAbstractRenderer::QPrivateSignal (0x0x7fba09efb8a0) 0 empty
-
-Vtable for QSGAbstractRenderer
-QSGAbstractRenderer::_ZTV19QSGAbstractRenderer: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QSGAbstractRenderer)
-16 (int (*)(...))QSGAbstractRenderer::metaObject
-24 (int (*)(...))QSGAbstractRenderer::qt_metacast
-32 (int (*)(...))QSGAbstractRenderer::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QSGAbstractRenderer
- size=16 align=8
- base size=16 base align=8
-QSGAbstractRenderer (0x0x7fba0a1aac30) 0
- vptr=((& QSGAbstractRenderer::_ZTV19QSGAbstractRenderer) + 16u)
- QObject (0x0x7fba09efb840) 0
- primary-for QSGAbstractRenderer (0x0x7fba0a1aac30)
-
-Class QSGEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGEngine::QPrivateSignal (0x0x7fba09efbae0) 0 empty
-
-Vtable for QSGEngine
-QSGEngine::_ZTV9QSGEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSGEngine)
-16 (int (*)(...))QSGEngine::metaObject
-24 (int (*)(...))QSGEngine::qt_metacast
-32 (int (*)(...))QSGEngine::qt_metacall
-40 (int (*)(...))QSGEngine::~QSGEngine
-48 (int (*)(...))QSGEngine::~QSGEngine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSGEngine
- size=16 align=8
- base size=16 base align=8
-QSGEngine (0x0x7fba0a1aad68) 0
- vptr=((& QSGEngine::_ZTV9QSGEngine) + 16u)
- QObject (0x0x7fba09efba80) 0
- primary-for QSGEngine (0x0x7fba0a1aad68)
-
-Class QSGMaterialShader::RenderState
- size=16 align=8
- base size=16 base align=8
-QSGMaterialShader::RenderState (0x0x7fba09efbd80) 0
-
-Vtable for QSGMaterialShader
-QSGMaterialShader::_ZTV17QSGMaterialShader: 12u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGMaterialShader)
-16 0u
-24 0u
-32 (int (*)(...))QSGMaterialShader::activate
-40 (int (*)(...))QSGMaterialShader::deactivate
-48 (int (*)(...))QSGMaterialShader::updateState
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))QSGMaterialShader::compile
-72 (int (*)(...))QSGMaterialShader::initialize
-80 (int (*)(...))QSGMaterialShader::vertexShader
-88 (int (*)(...))QSGMaterialShader::fragmentShader
-
-Class QSGMaterialShader
- size=32 align=8
- base size=32 base align=8
-QSGMaterialShader (0x0x7fba09efbd20) 0
- vptr=((& QSGMaterialShader::_ZTV17QSGMaterialShader) + 16u)
-
-Class QSGMaterialType
- size=1 align=1
- base size=0 base align=1
-QSGMaterialType (0x0x7fba09c6e060) 0 empty
-
-Vtable for QSGMaterial
-QSGMaterial::_ZTV11QSGMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGMaterial)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QSGMaterial::compare
-
-Class QSGMaterial
- size=24 align=8
- base size=24 base align=8
-QSGMaterial (0x0x7fba09c6e0c0) 0
- vptr=((& QSGMaterial::_ZTV11QSGMaterial) + 16u)
-
-Vtable for QSGFlatColorMaterial
-QSGFlatColorMaterial::_ZTV20QSGFlatColorMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGFlatColorMaterial)
-16 (int (*)(...))QSGFlatColorMaterial::~QSGFlatColorMaterial
-24 (int (*)(...))QSGFlatColorMaterial::~QSGFlatColorMaterial
-32 (int (*)(...))QSGFlatColorMaterial::type
-40 (int (*)(...))QSGFlatColorMaterial::createShader
-48 (int (*)(...))QSGFlatColorMaterial::compare
-
-Class QSGFlatColorMaterial
- size=40 align=8
- base size=40 base align=8
-QSGFlatColorMaterial (0x0x7fba09c7a0d0) 0
- vptr=((& QSGFlatColorMaterial::_ZTV20QSGFlatColorMaterial) + 16u)
- QSGMaterial (0x0x7fba09c6e2a0) 0
- primary-for QSGFlatColorMaterial (0x0x7fba09c7a0d0)
-
-Class QSGTexture::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGTexture::QPrivateSignal (0x0x7fba09c6e360) 0 empty
-
-Vtable for QSGTexture
-QSGTexture::_ZTV10QSGTexture: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QSGTexture)
-16 (int (*)(...))QSGTexture::metaObject
-24 (int (*)(...))QSGTexture::qt_metacast
-32 (int (*)(...))QSGTexture::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QSGTexture::normalizedTextureSubRect
-152 (int (*)(...))QSGTexture::isAtlasTexture
-160 (int (*)(...))QSGTexture::removedFromAtlas
-168 (int (*)(...))__cxa_pure_virtual
-
-Class QSGTexture
- size=16 align=8
- base size=16 base align=8
-QSGTexture (0x0x7fba09c7a138) 0
- vptr=((& QSGTexture::_ZTV10QSGTexture) + 16u)
- QObject (0x0x7fba09c6e300) 0
- primary-for QSGTexture (0x0x7fba09c7a138)
-
-Class QSGDynamicTexture::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGDynamicTexture::QPrivateSignal (0x0x7fba09c6e420) 0 empty
-
-Vtable for QSGDynamicTexture
-QSGDynamicTexture::_ZTV17QSGDynamicTexture: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGDynamicTexture)
-16 (int (*)(...))QSGDynamicTexture::metaObject
-24 (int (*)(...))QSGDynamicTexture::qt_metacast
-32 (int (*)(...))QSGDynamicTexture::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QSGTexture::normalizedTextureSubRect
-152 (int (*)(...))QSGTexture::isAtlasTexture
-160 (int (*)(...))QSGTexture::removedFromAtlas
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-
-Class QSGDynamicTexture
- size=16 align=8
- base size=16 base align=8
-QSGDynamicTexture (0x0x7fba09c7a1a0) 0
- vptr=((& QSGDynamicTexture::_ZTV17QSGDynamicTexture) + 16u)
- QSGTexture (0x0x7fba09c7a208) 0
- primary-for QSGDynamicTexture (0x0x7fba09c7a1a0)
- QObject (0x0x7fba09c6e3c0) 0
- primary-for QSGTexture (0x0x7fba09c7a208)
-
-Vtable for QSGImageNode
-QSGImageNode::_ZTV12QSGImageNode: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QSGImageNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-
-Class QSGImageNode
- size=144 align=8
- base size=144 base align=8
-QSGImageNode (0x0x7fba09c7a270) 0
- vptr=((& QSGImageNode::_ZTV12QSGImageNode) + 16u)
- QSGGeometryNode (0x0x7fba09c7a2d8) 0
- primary-for QSGImageNode (0x0x7fba09c7a270)
- QSGBasicGeometryNode (0x0x7fba09c7a340) 0
- primary-for QSGGeometryNode (0x0x7fba09c7a2d8)
- QSGNode (0x0x7fba09c6e480) 0
- primary-for QSGBasicGeometryNode (0x0x7fba09c7a340)
-
-Vtable for QSGNinePatchNode
-QSGNinePatchNode::_ZTV16QSGNinePatchNode: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGNinePatchNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-
-Class QSGNinePatchNode
- size=144 align=8
- base size=144 base align=8
-QSGNinePatchNode (0x0x7fba09c7a478) 0
- vptr=((& QSGNinePatchNode::_ZTV16QSGNinePatchNode) + 16u)
- QSGGeometryNode (0x0x7fba09c7a4e0) 0
- primary-for QSGNinePatchNode (0x0x7fba09c7a478)
- QSGBasicGeometryNode (0x0x7fba09c7a548) 0
- primary-for QSGGeometryNode (0x0x7fba09c7a4e0)
- QSGNode (0x0x7fba09c6e660) 0
- primary-for QSGBasicGeometryNode (0x0x7fba09c7a548)
-
-Vtable for QSGRectangleNode
-QSGRectangleNode::_ZTV16QSGRectangleNode: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGRectangleNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QSGRectangleNode
- size=144 align=8
- base size=144 base align=8
-QSGRectangleNode (0x0x7fba09c7a5b0) 0
- vptr=((& QSGRectangleNode::_ZTV16QSGRectangleNode) + 16u)
- QSGGeometryNode (0x0x7fba09c7a618) 0
- primary-for QSGRectangleNode (0x0x7fba09c7a5b0)
- QSGBasicGeometryNode (0x0x7fba09c7a680) 0
- primary-for QSGGeometryNode (0x0x7fba09c7a618)
- QSGNode (0x0x7fba09c6e6c0) 0
- primary-for QSGBasicGeometryNode (0x0x7fba09c7a680)
-
-Vtable for QSGRenderNode::RenderState
-QSGRenderNode::RenderState::_ZTVN13QSGRenderNode11RenderStateE: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QSGRenderNode11RenderStateE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))QSGRenderNode::RenderState::get
-
-Class QSGRenderNode::RenderState
- size=8 align=8
- base size=8 base align=8
-QSGRenderNode::RenderState (0x0x7fba09c6e780) 0 nearly-empty
- vptr=((& QSGRenderNode::RenderState::_ZTVN13QSGRenderNode11RenderStateE) + 16u)
-
-Vtable for QSGRenderNode
-QSGRenderNode::_ZTV13QSGRenderNode: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSGRenderNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))QSGRenderNode::changedStates
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))QSGRenderNode::releaseResources
-72 (int (*)(...))QSGRenderNode::flags
-80 (int (*)(...))QSGRenderNode::rect
-
-Class QSGRenderNode
- size=88 align=8
- base size=88 base align=8
-QSGRenderNode (0x0x7fba09c7a6e8) 0
- vptr=((& QSGRenderNode::_ZTV13QSGRenderNode) + 16u)
- QSGNode (0x0x7fba09c6e720) 0
- primary-for QSGRenderNode (0x0x7fba09c7a6e8)
-
-Vtable for QSGSimpleRectNode
-QSGSimpleRectNode::_ZTV17QSGSimpleRectNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGSimpleRectNode)
-16 (int (*)(...))QSGSimpleRectNode::~QSGSimpleRectNode
-24 (int (*)(...))QSGSimpleRectNode::~QSGSimpleRectNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGSimpleRectNode
- size=320 align=8
- base size=320 base align=8
-QSGSimpleRectNode (0x0x7fba09c7ab60) 0
- vptr=((& QSGSimpleRectNode::_ZTV17QSGSimpleRectNode) + 16u)
- QSGGeometryNode (0x0x7fba09c7abc8) 0
- primary-for QSGSimpleRectNode (0x0x7fba09c7ab60)
- QSGBasicGeometryNode (0x0x7fba09c7ac30) 0
- primary-for QSGGeometryNode (0x0x7fba09c7abc8)
- QSGNode (0x0x7fba09c6ed80) 0
- primary-for QSGBasicGeometryNode (0x0x7fba09c7ac30)
-
-Vtable for QSGOpaqueTextureMaterial
-QSGOpaqueTextureMaterial::_ZTV24QSGOpaqueTextureMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QSGOpaqueTextureMaterial)
-16 (int (*)(...))QSGOpaqueTextureMaterial::~QSGOpaqueTextureMaterial
-24 (int (*)(...))QSGOpaqueTextureMaterial::~QSGOpaqueTextureMaterial
-32 (int (*)(...))QSGOpaqueTextureMaterial::type
-40 (int (*)(...))QSGOpaqueTextureMaterial::createShader
-48 (int (*)(...))QSGOpaqueTextureMaterial::compare
-
-Class QSGOpaqueTextureMaterial
- size=40 align=8
- base size=36 base align=8
-QSGOpaqueTextureMaterial (0x0x7fba09c7ac98) 0
- vptr=((& QSGOpaqueTextureMaterial::_ZTV24QSGOpaqueTextureMaterial) + 16u)
- QSGMaterial (0x0x7fba09c6ede0) 0
- primary-for QSGOpaqueTextureMaterial (0x0x7fba09c7ac98)
-
-Vtable for QSGTextureMaterial
-QSGTextureMaterial::_ZTV18QSGTextureMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSGTextureMaterial)
-16 (int (*)(...))QSGTextureMaterial::~QSGTextureMaterial
-24 (int (*)(...))QSGTextureMaterial::~QSGTextureMaterial
-32 (int (*)(...))QSGTextureMaterial::type
-40 (int (*)(...))QSGTextureMaterial::createShader
-48 (int (*)(...))QSGOpaqueTextureMaterial::compare
-
-Class QSGTextureMaterial
- size=40 align=8
- base size=36 base align=8
-QSGTextureMaterial (0x0x7fba09c7ad00) 0
- vptr=((& QSGTextureMaterial::_ZTV18QSGTextureMaterial) + 16u)
- QSGOpaqueTextureMaterial (0x0x7fba09c7ad68) 0
- primary-for QSGTextureMaterial (0x0x7fba09c7ad00)
- QSGMaterial (0x0x7fba09c6ee40) 0
- primary-for QSGOpaqueTextureMaterial (0x0x7fba09c7ad68)
-
-Vtable for QSGSimpleTextureNode
-QSGSimpleTextureNode::_ZTV20QSGSimpleTextureNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGSimpleTextureNode)
-16 (int (*)(...))QSGSimpleTextureNode::~QSGSimpleTextureNode
-24 (int (*)(...))QSGSimpleTextureNode::~QSGSimpleTextureNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGSimpleTextureNode
- size=384 align=8
- base size=384 base align=8
-QSGSimpleTextureNode (0x0x7fba09c7add0) 0
- vptr=((& QSGSimpleTextureNode::_ZTV20QSGSimpleTextureNode) + 16u)
- QSGGeometryNode (0x0x7fba09c7ae38) 0
- primary-for QSGSimpleTextureNode (0x0x7fba09c7add0)
- QSGBasicGeometryNode (0x0x7fba09c7aea0) 0
- primary-for QSGGeometryNode (0x0x7fba09c7ae38)
- QSGNode (0x0x7fba09c6eea0) 0
- primary-for QSGBasicGeometryNode (0x0x7fba09c7aea0)
-
-Class QSGTextureProvider::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGTextureProvider::QPrivateSignal (0x0x7fba09a37180) 0 empty
-
-Vtable for QSGTextureProvider
-QSGTextureProvider::_ZTV18QSGTextureProvider: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSGTextureProvider)
-16 (int (*)(...))QSGTextureProvider::metaObject
-24 (int (*)(...))QSGTextureProvider::qt_metacast
-32 (int (*)(...))QSGTextureProvider::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QSGTextureProvider
- size=16 align=8
- base size=16 base align=8
-QSGTextureProvider (0x0x7fba09a3a068) 0
- vptr=((& QSGTextureProvider::_ZTV18QSGTextureProvider) + 16u)
- QObject (0x0x7fba09a37120) 0
- primary-for QSGTextureProvider (0x0x7fba09a3a068)
-
-Vtable for QSGVertexColorMaterial
-QSGVertexColorMaterial::_ZTV22QSGVertexColorMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QSGVertexColorMaterial)
-16 (int (*)(...))QSGVertexColorMaterial::~QSGVertexColorMaterial
-24 (int (*)(...))QSGVertexColorMaterial::~QSGVertexColorMaterial
-32 (int (*)(...))QSGVertexColorMaterial::type
-40 (int (*)(...))QSGVertexColorMaterial::createShader
-48 (int (*)(...))QSGVertexColorMaterial::compare
-
-Class QSGVertexColorMaterial
- size=24 align=8
- base size=24 base align=8
-QSGVertexColorMaterial (0x0x7fba09a3a0d0) 0
- vptr=((& QSGVertexColorMaterial::_ZTV22QSGVertexColorMaterial) + 16u)
- QSGMaterial (0x0x7fba09a371e0) 0
- primary-for QSGVertexColorMaterial (0x0x7fba09a3a0d0)
-
-Class QQuickStyle
- size=1 align=1
- base size=0 base align=1
-QQuickStyle (0x0x7fba09a37240) 0 empty
-
diff --git a/tests/auto/bic/data/QtQuickControls2.5.11.0.linux-gcc-amd64.txt b/tests/auto/bic/data/QtQuickControls2.5.11.0.linux-gcc-amd64.txt
deleted file mode 100644
index 4c7accb3..00000000
--- a/tests/auto/bic/data/QtQuickControls2.5.11.0.linux-gcc-amd64.txt
+++ /dev/null
@@ -1,10993 +0,0 @@
-Class std::__failure_type
- size=1 align=1
- base size=0 base align=1
-std::__failure_type (0x0x7f64f1187e40) 0 empty
-
-Class std::__do_is_destructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_destructible_impl (0x0x7f64f0d9a600) 0 empty
-
-Class std::__do_is_nt_destructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_nt_destructible_impl (0x0x7f64f0d9a840) 0 empty
-
-Class std::__do_is_default_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_default_constructible_impl (0x0x7f64f0d9aa80) 0 empty
-
-Class std::__do_is_static_castable_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_static_castable_impl (0x0x7f64f0d9acc0) 0 empty
-
-Class std::__do_is_direct_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_direct_constructible_impl (0x0x7f64f0d9ae40) 0 empty
-
-Class std::__do_is_nary_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_nary_constructible_impl (0x0x7f64f0dce240) 0 empty
-
-Class std::__do_common_type_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_common_type_impl (0x0x7f64f0e539c0) 0 empty
-
-Class std::__do_member_type_wrapper
- size=1 align=1
- base size=0 base align=1
-std::__do_member_type_wrapper (0x0x7f64f0e53a80) 0 empty
-
-Class std::__result_of_memfun_ref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memfun_ref_impl (0x0x7f64f0e53de0) 0 empty
-
-Class std::__result_of_memfun_deref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memfun_deref_impl (0x0x7f64f0e53ea0) 0 empty
-
-Class std::__result_of_memobj_ref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memobj_ref_impl (0x0x7f64f0e53f60) 0 empty
-
-Class std::__result_of_memobj_deref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memobj_deref_impl (0x0x7f64f0e8b060) 0 empty
-
-Class std::__result_of_other_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_other_impl (0x0x7f64f0e8b300) 0 empty
-
-Class std::piecewise_construct_t
- size=1 align=1
- base size=0 base align=1
-std::piecewise_construct_t (0x0x7f64f0e8b4e0) 0 empty
-
-Class std::__true_type
- size=1 align=1
- base size=0 base align=1
-std::__true_type (0x0x7f64f0e8b960) 0 empty
-
-Class std::__false_type
- size=1 align=1
- base size=0 base align=1
-std::__false_type (0x0x7f64f0e8b9c0) 0 empty
-
-Class std::input_iterator_tag
- size=1 align=1
- base size=0 base align=1
-std::input_iterator_tag (0x0x7f64f0f38660) 0 empty
-
-Class std::output_iterator_tag
- size=1 align=1
- base size=0 base align=1
-std::output_iterator_tag (0x0x7f64f0f386c0) 0 empty
-
-Class std::forward_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::forward_iterator_tag (0x0x7f64f0e993a8) 0 empty
- std::input_iterator_tag (0x0x7f64f0f38720) 0 empty
-
-Class std::bidirectional_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::bidirectional_iterator_tag (0x0x7f64f0e99410) 0 empty
- std::forward_iterator_tag (0x0x7f64f0e99478) 0 empty
- std::input_iterator_tag (0x0x7f64f0f38780) 0 empty
-
-Class std::random_access_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::random_access_iterator_tag (0x0x7f64f0e994e0) 0 empty
- std::bidirectional_iterator_tag (0x0x7f64f0e99548) 0 empty
- std::forward_iterator_tag (0x0x7f64f0e995b0) 0 empty
- std::input_iterator_tag (0x0x7f64f0f387e0) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_less_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_less_iter (0x0x7f64f0f7d480) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_less_val
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_less_val (0x0x7f64f0f7d4e0) 0 empty
-
-Class __gnu_cxx::__ops::_Val_less_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Val_less_iter (0x0x7f64f0f7d540) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_equal_to_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_equal_to_iter (0x0x7f64f0f7d5a0) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_equal_to_val
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_equal_to_val (0x0x7f64f0f7d600) 0 empty
-
-Class wait
- size=4 align=4
- base size=4 base align=4
-wait (0x0x7f64f0c84120) 0
-
-Class __locale_struct
- size=232 align=8
- base size=232 base align=8
-__locale_struct (0x0x7f64f0c84360) 0
-
-Class timespec
- size=16 align=8
- base size=16 base align=8
-timespec (0x0x7f64f0c84420) 0
-
-Class timeval
- size=16 align=8
- base size=16 base align=8
-timeval (0x0x7f64f0c84480) 0
-
-Class pthread_attr_t
- size=56 align=8
- base size=56 base align=8
-pthread_attr_t (0x0x7f64f0c84540) 0
-
-Class __pthread_internal_list
- size=16 align=8
- base size=16 base align=8
-__pthread_internal_list (0x0x7f64f0c845a0) 0
-
-Class random_data
- size=48 align=8
- base size=48 base align=8
-random_data (0x0x7f64f0c84a20) 0
-
-Class drand48_data
- size=24 align=8
- base size=24 base align=8
-drand48_data (0x0x7f64f0c84a80) 0
-
-Vtable for std::exception
-std::exception::_ZTVSt9exception: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9exception)
-16 (int (*)(...))std::exception::~exception
-24 (int (*)(...))std::exception::~exception
-32 (int (*)(...))std::exception::what
-
-Class std::exception
- size=8 align=8
- base size=8 base align=8
-std::exception (0x0x7f64f0c84ae0) 0 nearly-empty
- vptr=((& std::exception::_ZTVSt9exception) + 16u)
-
-Vtable for std::bad_exception
-std::bad_exception::_ZTVSt13bad_exception: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt13bad_exception)
-16 (int (*)(...))std::bad_exception::~bad_exception
-24 (int (*)(...))std::bad_exception::~bad_exception
-32 (int (*)(...))std::bad_exception::what
-
-Class std::bad_exception
- size=8 align=8
- base size=8 base align=8
-std::bad_exception (0x0x7f64f0e99af8) 0 nearly-empty
- vptr=((& std::bad_exception::_ZTVSt13bad_exception) + 16u)
- std::exception (0x0x7f64f0c84b40) 0 nearly-empty
- primary-for std::bad_exception (0x0x7f64f0e99af8)
-
-Class std::__exception_ptr::exception_ptr
- size=8 align=8
- base size=8 base align=8
-std::__exception_ptr::exception_ptr (0x0x7f64f0c84ba0) 0
-
-Vtable for std::nested_exception
-std::nested_exception::_ZTVSt16nested_exception: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt16nested_exception)
-16 (int (*)(...))std::nested_exception::~nested_exception
-24 (int (*)(...))std::nested_exception::~nested_exception
-
-Class std::nested_exception
- size=16 align=8
- base size=16 base align=8
-std::nested_exception (0x0x7f64f0c84c00) 0
- vptr=((& std::nested_exception::_ZTVSt16nested_exception) + 16u)
-
-Vtable for std::bad_alloc
-std::bad_alloc::_ZTVSt9bad_alloc: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9bad_alloc)
-16 (int (*)(...))std::bad_alloc::~bad_alloc
-24 (int (*)(...))std::bad_alloc::~bad_alloc
-32 (int (*)(...))std::bad_alloc::what
-
-Class std::bad_alloc
- size=8 align=8
- base size=8 base align=8
-std::bad_alloc (0x0x7f64f0e99d00) 0 nearly-empty
- vptr=((& std::bad_alloc::_ZTVSt9bad_alloc) + 16u)
- std::exception (0x0x7f64f09b1060) 0 nearly-empty
- primary-for std::bad_alloc (0x0x7f64f0e99d00)
-
-Vtable for std::bad_array_new_length
-std::bad_array_new_length::_ZTVSt20bad_array_new_length: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt20bad_array_new_length)
-16 (int (*)(...))std::bad_array_new_length::~bad_array_new_length
-24 (int (*)(...))std::bad_array_new_length::~bad_array_new_length
-32 (int (*)(...))std::bad_array_new_length::what
-
-Class std::bad_array_new_length
- size=8 align=8
- base size=8 base align=8
-std::bad_array_new_length (0x0x7f64f0e99d68) 0 nearly-empty
- vptr=((& std::bad_array_new_length::_ZTVSt20bad_array_new_length) + 16u)
- std::bad_alloc (0x0x7f64f0e99dd0) 0 nearly-empty
- primary-for std::bad_array_new_length (0x0x7f64f0e99d68)
- std::exception (0x0x7f64f09b10c0) 0 nearly-empty
- primary-for std::bad_alloc (0x0x7f64f0e99dd0)
-
-Class std::nothrow_t
- size=1 align=1
- base size=0 base align=1
-std::nothrow_t (0x0x7f64f09b1120) 0 empty
-
-Class __exception
- size=40 align=8
- base size=40 base align=8
-__exception (0x0x7f64f09b1d20) 0
-
-Class lconv
- size=96 align=8
- base size=96 base align=8
-lconv (0x0x7f64f07b0a20) 0
-
-Vtable for __cxxabiv1::__forced_unwind
-__cxxabiv1::__forced_unwind::_ZTVN10__cxxabiv115__forced_unwindE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN10__cxxabiv115__forced_unwindE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class __cxxabiv1::__forced_unwind
- size=8 align=8
- base size=8 base align=8
-__cxxabiv1::__forced_unwind (0x0x7f64f07b0a80) 0 nearly-empty
- vptr=((& __cxxabiv1::__forced_unwind::_ZTVN10__cxxabiv115__forced_unwindE) + 16u)
-
-Class sched_param
- size=4 align=4
- base size=4 base align=4
-sched_param (0x0x7f64f08b7960) 0
-
-Class __sched_param
- size=4 align=4
- base size=4 base align=4
-__sched_param (0x0x7f64f08b79c0) 0
-
-Class timex
- size=208 align=8
- base size=208 base align=8
-timex (0x0x7f64f08b7a80) 0
-
-Class tm
- size=56 align=8
- base size=56 base align=8
-tm (0x0x7f64f08b7ae0) 0
-
-Class itimerspec
- size=32 align=8
- base size=32 base align=8
-itimerspec (0x0x7f64f08b7b40) 0
-
-Class _pthread_cleanup_buffer
- size=32 align=8
- base size=32 base align=8
-_pthread_cleanup_buffer (0x0x7f64f08b7ba0) 0
-
-Class __pthread_cleanup_frame
- size=24 align=8
- base size=24 base align=8
-__pthread_cleanup_frame (0x0x7f64f08b7cc0) 0
-
-Class __pthread_cleanup_class
- size=24 align=8
- base size=24 base align=8
-__pthread_cleanup_class (0x0x7f64f08b7d20) 0
-
-Class _IO_marker
- size=24 align=8
- base size=24 base align=8
-_IO_marker (0x0x7f64f0621180) 0
-
-Class _IO_FILE
- size=216 align=8
- base size=216 base align=8
-_IO_FILE (0x0x7f64f06211e0) 0
-
-Class std::_Hash_impl
- size=1 align=1
- base size=0 base align=1
-std::_Hash_impl (0x0x7f64f04079c0) 0 empty
-
-Class std::_Fnv_hash_impl
- size=1 align=1
- base size=0 base align=1
-std::_Fnv_hash_impl (0x0x7f64f0407a20) 0 empty
-
-Class std::__numeric_limits_base
- size=1 align=1
- base size=0 base align=1
-std::__numeric_limits_base (0x0x7f64f043d9c0) 0 empty
-
-Class std::_Bit_reference
- size=16 align=8
- base size=16 base align=8
-std::_Bit_reference (0x0x7f64f02247e0) 0
-
-Class std::_Bit_iterator_base
- size=16 align=8
- base size=12 base align=8
-std::_Bit_iterator_base (0x0x7f64f0434b60) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f64f02248a0) 0 empty
-
-Class std::_Bit_iterator
- size=16 align=8
- base size=12 base align=8
-std::_Bit_iterator (0x0x7f64f0434bc8) 0
- std::_Bit_iterator_base (0x0x7f64f0434c30) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f64f0224900) 0 empty
-
-Class std::_Bit_const_iterator
- size=16 align=8
- base size=12 base align=8
-std::_Bit_const_iterator (0x0x7f64f0434c98) 0
- std::_Bit_iterator_base (0x0x7f64f0434d00) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f64f0224960) 0 empty
-
-Class std::random_device
- size=5000 align=8
- base size=5000 base align=8
-std::random_device (0x0x7f64f0072780) 0
-
-Class std::bernoulli_distribution::param_type
- size=8 align=8
- base size=8 base align=8
-std::bernoulli_distribution::param_type (0x0x7f64f0145540) 0
-
-Class std::bernoulli_distribution
- size=8 align=8
- base size=8 base align=8
-std::bernoulli_distribution (0x0x7f64f01454e0) 0
-
-Class std::seed_seq
- size=24 align=8
- base size=24 base align=8
-std::seed_seq (0x0x7f64efef84e0) 0
-
-Class qIsNull(double)::U
- size=8 align=8
- base size=8 base align=8
-qIsNull(double)::U (0x0x7f64eeabf000) 0
-
-Class qIsNull(float)::U
- size=4 align=4
- base size=4 base align=4
-qIsNull(float)::U (0x0x7f64eeabf060) 0
-
-Class QSysInfo
- size=1 align=1
- base size=0 base align=1
-QSysInfo (0x0x7f64ee753ae0) 0 empty
-
-Class QMessageLogContext
- size=32 align=8
- base size=32 base align=8
-QMessageLogContext (0x0x7f64ee753b40) 0
-
-Class QMessageLogger
- size=32 align=8
- base size=32 base align=8
-QMessageLogger (0x0x7f64ee753ba0) 0
-
-Class QFlag
- size=4 align=4
- base size=4 base align=4
-QFlag (0x0x7f64ee753c00) 0
-
-Class QIncompatibleFlag
- size=4 align=4
- base size=4 base align=4
-QIncompatibleFlag (0x0x7f64ee753ea0) 0
-
-Class std::__atomic_flag_base
- size=1 align=1
- base size=1 base align=1
-std::__atomic_flag_base (0x0x7f64ee7c1420) 0
-
-Class std::atomic_flag
- size=1 align=1
- base size=1 base align=1
-std::atomic_flag (0x0x7f64ee759a28) 0
- std::__atomic_flag_base (0x0x7f64ee7c1480) 0
-
-Class QAtomicInt
- size=4 align=4
- base size=4 base align=4
-QAtomicInt (0x0x7f64ee6d51a0) 0
- QAtomicInteger<int> (0x0x7f64ee6d5208) 0
- QBasicAtomicInteger<int> (0x0x7f64ee5e2ba0) 0
-
-Class QInternal
- size=1 align=1
- base size=0 base align=1
-QInternal (0x0x7f64edf6a180) 0 empty
-
-Class QtPrivate::QSlotObjectBase
- size=16 align=8
- base size=16 base align=8
-QtPrivate::QSlotObjectBase (0x0x7f64edfdc1e0) 0
-
-Class QGenericArgument
- size=16 align=8
- base size=16 base align=8
-QGenericArgument (0x0x7f64edfdc300) 0
-
-Class QGenericReturnArgument
- size=16 align=8
- base size=16 base align=8
-QGenericReturnArgument (0x0x7f64ee196c30) 0
- QGenericArgument (0x0x7f64edfdc360) 0
-
-Class QMetaObject
- size=48 align=8
- base size=48 base align=8
-QMetaObject (0x0x7f64edfdc4e0) 0
-
-Class QMetaObject::Connection
- size=8 align=8
- base size=8 base align=8
-QMetaObject::Connection (0x0x7f64edfdc5a0) 0
-
-Class QLatin1Char
- size=1 align=1
- base size=1 base align=1
-QLatin1Char (0x0x7f64ee0ba600) 0
-
-Class QChar
- size=2 align=2
- base size=2 base align=2
-QChar (0x0x7f64ee0ba660) 0
-
-Class QtPrivate::RefCount
- size=4 align=4
- base size=4 base align=4
-QtPrivate::RefCount (0x0x7f64ee0ba900) 0
-
-Class QArrayData
- size=24 align=8
- base size=24 base align=8
-QArrayData (0x0x7f64ee0ba960) 0
-
-Class QtPrivate::QContainerImplHelper
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QContainerImplHelper (0x0x7f64ee0bacc0) 0 empty
-
-Class std::locale
- size=8 align=8
- base size=8 base align=8
-std::locale (0x0x7f64ee0bad20) 0
-
-Vtable for std::locale::facet
-std::locale::facet::_ZTVNSt6locale5facetE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt6locale5facetE)
-16 (int (*)(...))std::locale::facet::~facet
-24 (int (*)(...))std::locale::facet::~facet
-
-Class std::locale::facet
- size=16 align=8
- base size=12 base align=8
-std::locale::facet (0x0x7f64ee0bad80) 0
- vptr=((& std::locale::facet::_ZTVNSt6locale5facetE) + 16u)
-
-Class std::locale::id
- size=8 align=8
- base size=8 base align=8
-std::locale::id (0x0x7f64ee0bade0) 0
-
-Class std::locale::_Impl
- size=40 align=8
- base size=40 base align=8
-std::locale::_Impl (0x0x7f64ee0bae40) 0
-
-Class std::__cow_string
- size=8 align=8
- base size=8 base align=8
-std::__cow_string (0x0x7f64ede40240) 0
-
-Vtable for std::logic_error
-std::logic_error::_ZTVSt11logic_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt11logic_error)
-16 (int (*)(...))std::logic_error::~logic_error
-24 (int (*)(...))std::logic_error::~logic_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::logic_error
- size=16 align=8
- base size=16 base align=8
-std::logic_error (0x0x7f64ede5a208) 0
- vptr=((& std::logic_error::_ZTVSt11logic_error) + 16u)
- std::exception (0x0x7f64ede40300) 0 nearly-empty
- primary-for std::logic_error (0x0x7f64ede5a208)
-
-Vtable for std::domain_error
-std::domain_error::_ZTVSt12domain_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12domain_error)
-16 (int (*)(...))std::domain_error::~domain_error
-24 (int (*)(...))std::domain_error::~domain_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::domain_error
- size=16 align=8
- base size=16 base align=8
-std::domain_error (0x0x7f64ede5a270) 0
- vptr=((& std::domain_error::_ZTVSt12domain_error) + 16u)
- std::logic_error (0x0x7f64ede5a2d8) 0
- primary-for std::domain_error (0x0x7f64ede5a270)
- std::exception (0x0x7f64ede40360) 0 nearly-empty
- primary-for std::logic_error (0x0x7f64ede5a2d8)
-
-Vtable for std::invalid_argument
-std::invalid_argument::_ZTVSt16invalid_argument: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt16invalid_argument)
-16 (int (*)(...))std::invalid_argument::~invalid_argument
-24 (int (*)(...))std::invalid_argument::~invalid_argument
-32 (int (*)(...))std::logic_error::what
-
-Class std::invalid_argument
- size=16 align=8
- base size=16 base align=8
-std::invalid_argument (0x0x7f64ede5a340) 0
- vptr=((& std::invalid_argument::_ZTVSt16invalid_argument) + 16u)
- std::logic_error (0x0x7f64ede5a3a8) 0
- primary-for std::invalid_argument (0x0x7f64ede5a340)
- std::exception (0x0x7f64ede403c0) 0 nearly-empty
- primary-for std::logic_error (0x0x7f64ede5a3a8)
-
-Vtable for std::length_error
-std::length_error::_ZTVSt12length_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12length_error)
-16 (int (*)(...))std::length_error::~length_error
-24 (int (*)(...))std::length_error::~length_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::length_error
- size=16 align=8
- base size=16 base align=8
-std::length_error (0x0x7f64ede5a410) 0
- vptr=((& std::length_error::_ZTVSt12length_error) + 16u)
- std::logic_error (0x0x7f64ede5a478) 0
- primary-for std::length_error (0x0x7f64ede5a410)
- std::exception (0x0x7f64ede40420) 0 nearly-empty
- primary-for std::logic_error (0x0x7f64ede5a478)
-
-Vtable for std::out_of_range
-std::out_of_range::_ZTVSt12out_of_range: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12out_of_range)
-16 (int (*)(...))std::out_of_range::~out_of_range
-24 (int (*)(...))std::out_of_range::~out_of_range
-32 (int (*)(...))std::logic_error::what
-
-Class std::out_of_range
- size=16 align=8
- base size=16 base align=8
-std::out_of_range (0x0x7f64ede5a4e0) 0
- vptr=((& std::out_of_range::_ZTVSt12out_of_range) + 16u)
- std::logic_error (0x0x7f64ede5a548) 0
- primary-for std::out_of_range (0x0x7f64ede5a4e0)
- std::exception (0x0x7f64ede40480) 0 nearly-empty
- primary-for std::logic_error (0x0x7f64ede5a548)
-
-Vtable for std::runtime_error
-std::runtime_error::_ZTVSt13runtime_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt13runtime_error)
-16 (int (*)(...))std::runtime_error::~runtime_error
-24 (int (*)(...))std::runtime_error::~runtime_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::runtime_error
- size=16 align=8
- base size=16 base align=8
-std::runtime_error (0x0x7f64ede5a5b0) 0
- vptr=((& std::runtime_error::_ZTVSt13runtime_error) + 16u)
- std::exception (0x0x7f64ede404e0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f64ede5a5b0)
-
-Vtable for std::range_error
-std::range_error::_ZTVSt11range_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt11range_error)
-16 (int (*)(...))std::range_error::~range_error
-24 (int (*)(...))std::range_error::~range_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::range_error
- size=16 align=8
- base size=16 base align=8
-std::range_error (0x0x7f64ede5a618) 0
- vptr=((& std::range_error::_ZTVSt11range_error) + 16u)
- std::runtime_error (0x0x7f64ede5a680) 0
- primary-for std::range_error (0x0x7f64ede5a618)
- std::exception (0x0x7f64ede40540) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f64ede5a680)
-
-Vtable for std::overflow_error
-std::overflow_error::_ZTVSt14overflow_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt14overflow_error)
-16 (int (*)(...))std::overflow_error::~overflow_error
-24 (int (*)(...))std::overflow_error::~overflow_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::overflow_error
- size=16 align=8
- base size=16 base align=8
-std::overflow_error (0x0x7f64ede5a6e8) 0
- vptr=((& std::overflow_error::_ZTVSt14overflow_error) + 16u)
- std::runtime_error (0x0x7f64ede5a750) 0
- primary-for std::overflow_error (0x0x7f64ede5a6e8)
- std::exception (0x0x7f64ede405a0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f64ede5a750)
-
-Vtable for std::underflow_error
-std::underflow_error::_ZTVSt15underflow_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt15underflow_error)
-16 (int (*)(...))std::underflow_error::~underflow_error
-24 (int (*)(...))std::underflow_error::~underflow_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::underflow_error
- size=16 align=8
- base size=16 base align=8
-std::underflow_error (0x0x7f64ede5a7b8) 0
- vptr=((& std::underflow_error::_ZTVSt15underflow_error) + 16u)
- std::runtime_error (0x0x7f64ede5a820) 0
- primary-for std::underflow_error (0x0x7f64ede5a7b8)
- std::exception (0x0x7f64ede40600) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f64ede5a820)
-
-Vtable for std::_V2::error_category
-std::_V2::error_category::_ZTVNSt3_V214error_categoryE: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt3_V214error_categoryE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))std::_V2::error_category::_M_message
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))std::_V2::error_category::default_error_condition
-64 (int (*)(...))std::_V2::error_category::equivalent
-72 (int (*)(...))std::_V2::error_category::equivalent
-
-Class std::_V2::error_category
- size=8 align=8
- base size=8 base align=8
-std::_V2::error_category (0x0x7f64ede40780) 0 nearly-empty
- vptr=((& std::_V2::error_category::_ZTVNSt3_V214error_categoryE) + 16u)
-
-Class std::error_code
- size=16 align=8
- base size=16 base align=8
-std::error_code (0x0x7f64ede409c0) 0
-
-Class std::error_condition
- size=16 align=8
- base size=16 base align=8
-std::error_condition (0x0x7f64ede40b40) 0
-
-Vtable for std::system_error
-std::system_error::_ZTVSt12system_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12system_error)
-16 (int (*)(...))std::system_error::~system_error
-24 (int (*)(...))std::system_error::~system_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::system_error
- size=32 align=8
- base size=32 base align=8
-std::system_error (0x0x7f64ede5ad00) 0
- vptr=((& std::system_error::_ZTVSt12system_error) + 16u)
- std::runtime_error (0x0x7f64ede5ad68) 0
- primary-for std::system_error (0x0x7f64ede5ad00)
- std::exception (0x0x7f64ede40d80) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f64ede5ad68)
-
-Vtable for std::ios_base::failure
-std::ios_base::failure::_ZTVNSt8ios_base7failureB5cxx11E: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt8ios_base7failureB5cxx11E)
-16 (int (*)(...))std::ios_base::failure::~failure
-24 (int (*)(...))std::ios_base::failure::~failure
-32 (int (*)(...))std::ios_base::failure::what
-
-Class std::ios_base::failure
- size=32 align=8
- base size=32 base align=8
-std::ios_base::failure (0x0x7f64edaf28f0) 0
- vptr=((& std::ios_base::failure::_ZTVNSt8ios_base7failureB5cxx11E) + 16u)
- std::system_error (0x0x7f64edaf2958) 0
- primary-for std::ios_base::failure (0x0x7f64edaf28f0)
- std::runtime_error (0x0x7f64edaf29c0) 0
- primary-for std::system_error (0x0x7f64edaf2958)
- std::exception (0x0x7f64edb200c0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f64edaf29c0)
-
-Class std::ios_base::_Callback_list
- size=24 align=8
- base size=24 base align=8
-std::ios_base::_Callback_list (0x0x7f64edb20120) 0
-
-Class std::ios_base::_Words
- size=16 align=8
- base size=16 base align=8
-std::ios_base::_Words (0x0x7f64edb20180) 0
-
-Class std::ios_base::Init
- size=1 align=1
- base size=0 base align=1
-std::ios_base::Init (0x0x7f64edb201e0) 0 empty
-
-Vtable for std::ios_base
-std::ios_base::_ZTVSt8ios_base: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt8ios_base)
-16 (int (*)(...))std::ios_base::~ios_base
-24 (int (*)(...))std::ios_base::~ios_base
-
-Class std::ios_base
- size=216 align=8
- base size=216 base align=8
-std::ios_base (0x0x7f64edb20060) 0
- vptr=((& std::ios_base::_ZTVSt8ios_base) + 16u)
-
-Class std::ctype_base
- size=1 align=1
- base size=0 base align=1
-std::ctype_base (0x0x7f64edb20960) 0 empty
-
-Class std::__num_base
- size=1 align=1
- base size=0 base align=1
-std::__num_base (0x0x7f64edca1060) 0 empty
-
-VTT for std::basic_ostream<char>
-std::basic_ostream<char>::_ZTTSo: 2u entries
-0 ((& std::basic_ostream<char>::_ZTVSo) + 24u)
-8 ((& std::basic_ostream<char>::_ZTVSo) + 64u)
-
-VTT for std::basic_ostream<wchar_t>
-std::basic_ostream<wchar_t>::_ZTTSt13basic_ostreamIwSt11char_traitsIwEE: 2u entries
-0 ((& std::basic_ostream<wchar_t>::_ZTVSt13basic_ostreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_ostream<wchar_t>::_ZTVSt13basic_ostreamIwSt11char_traitsIwEE) + 64u)
-
-VTT for std::basic_istream<char>
-std::basic_istream<char>::_ZTTSi: 2u entries
-0 ((& std::basic_istream<char>::_ZTVSi) + 24u)
-8 ((& std::basic_istream<char>::_ZTVSi) + 64u)
-
-VTT for std::basic_istream<wchar_t>
-std::basic_istream<wchar_t>::_ZTTSt13basic_istreamIwSt11char_traitsIwEE: 2u entries
-0 ((& std::basic_istream<wchar_t>::_ZTVSt13basic_istreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_istream<wchar_t>::_ZTVSt13basic_istreamIwSt11char_traitsIwEE) + 64u)
-
-Construction vtable for std::basic_istream<char> (0x0x7f64ed7be270 instance) in std::basic_iostream<char>
-std::basic_iostream<char>::_ZTCSd0_Si: 10u entries
-0 24u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISi)
-24 0u
-32 0u
-40 18446744073709551592u
-48 (int (*)(...))-24
-56 (int (*)(...))(& _ZTISi)
-64 0u
-72 0u
-
-Construction vtable for std::basic_ostream<char> (0x0x7f64ed7be340 instance) in std::basic_iostream<char>
-std::basic_iostream<char>::_ZTCSd16_So: 10u entries
-0 8u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISo)
-24 0u
-32 0u
-40 18446744073709551608u
-48 (int (*)(...))-8
-56 (int (*)(...))(& _ZTISo)
-64 0u
-72 0u
-
-VTT for std::basic_iostream<char>
-std::basic_iostream<char>::_ZTTSd: 7u entries
-0 ((& std::basic_iostream<char>::_ZTVSd) + 24u)
-8 ((& std::basic_iostream<char>::_ZTCSd0_Si) + 24u)
-16 ((& std::basic_iostream<char>::_ZTCSd0_Si) + 64u)
-24 ((& std::basic_iostream<char>::_ZTCSd16_So) + 24u)
-32 ((& std::basic_iostream<char>::_ZTCSd16_So) + 64u)
-40 ((& std::basic_iostream<char>::_ZTVSd) + 104u)
-48 ((& std::basic_iostream<char>::_ZTVSd) + 64u)
-
-Construction vtable for std::basic_istream<wchar_t> (0x0x7f64ed7be6e8 instance) in std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E: 10u entries
-0 24u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISt13basic_istreamIwSt11char_traitsIwEE)
-24 0u
-32 0u
-40 18446744073709551592u
-48 (int (*)(...))-24
-56 (int (*)(...))(& _ZTISt13basic_istreamIwSt11char_traitsIwEE)
-64 0u
-72 0u
-
-Construction vtable for std::basic_ostream<wchar_t> (0x0x7f64ed7be7b8 instance) in std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E: 10u entries
-0 8u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISt13basic_ostreamIwSt11char_traitsIwEE)
-24 0u
-32 0u
-40 18446744073709551608u
-48 (int (*)(...))-8
-56 (int (*)(...))(& _ZTISt13basic_ostreamIwSt11char_traitsIwEE)
-64 0u
-72 0u
-
-VTT for std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTTSt14basic_iostreamIwSt11char_traitsIwEE: 7u entries
-0 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E) + 24u)
-16 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E) + 64u)
-24 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E) + 24u)
-32 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E) + 64u)
-40 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 104u)
-48 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 64u)
-
-Class QByteArrayDataPtr
- size=8 align=8
- base size=8 base align=8
-QByteArrayDataPtr (0x0x7f64eda9e8a0) 0
-
-Class QByteArray
- size=8 align=8
- base size=8 base align=8
-QByteArray (0x0x7f64eda9e900) 0
-
-Class QByteRef
- size=16 align=8
- base size=12 base align=8
-QByteRef (0x0x7f64ed506c60) 0
-
-Class QStringDataPtr
- size=8 align=8
- base size=8 base align=8
-QStringDataPtr (0x0x7f64ed5f1000) 0
-
-Class QStringView
- size=16 align=8
- base size=16 base align=8
-QStringView (0x0x7f64ed5f1480) 0
-
-Class QLatin1String
- size=16 align=8
- base size=16 base align=8
-QLatin1String (0x0x7f64ed685300) 0
-
-Class QString::Null
- size=1 align=1
- base size=0 base align=1
-QString::Null (0x0x7f64ed685960) 0 empty
-
-Class QString
- size=8 align=8
- base size=8 base align=8
-QString (0x0x7f64ed685900) 0
-
-Class QCharRef
- size=16 align=8
- base size=12 base align=8
-QCharRef (0x0x7f64ed466a20) 0
-
-Class QStringRef
- size=16 align=8
- base size=16 base align=8
-QStringRef (0x0x7f64ed205660) 0
-
-Class QtPrivate::QHashCombine
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QHashCombine (0x0x7f64ed012300) 0 empty
-
-Class QtPrivate::QHashCombineCommutative
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QHashCombineCommutative (0x0x7f64ed012360) 0 empty
-
-Class std::__detail::_List_node_base
- size=16 align=8
- base size=16 base align=8
-std::__detail::_List_node_base (0x0x7f64ed0123c0) 0
-
-Class QListData::NotArrayCompatibleLayout
- size=1 align=1
- base size=0 base align=1
-QListData::NotArrayCompatibleLayout (0x0x7f64ed012780) 0 empty
-
-Class QListData::NotIndirectLayout
- size=1 align=1
- base size=0 base align=1
-QListData::NotIndirectLayout (0x0x7f64ed0127e0) 0 empty
-
-Class QListData::ArrayCompatibleLayout
- size=1 align=1
- base size=1 base align=1
-QListData::ArrayCompatibleLayout (0x0x7f64ed017270) 0 empty
- QListData::NotIndirectLayout (0x0x7f64ed012840) 0 empty
-
-Class QListData::InlineWithPaddingLayout
- size=1 align=1
- base size=1 base align=1
-QListData::InlineWithPaddingLayout (0x0x7f64ed0dd540) 0 empty
- QListData::NotArrayCompatibleLayout (0x0x7f64ed0128a0) 0 empty
- QListData::NotIndirectLayout (0x0x7f64ed012900) 0 empty
-
-Class QListData::IndirectLayout
- size=1 align=1
- base size=1 base align=1
-QListData::IndirectLayout (0x0x7f64ed0172d8) 0 empty
- QListData::NotArrayCompatibleLayout (0x0x7f64ed012960) 0 empty
-
-Class QListData::Data
- size=24 align=8
- base size=24 base align=8
-QListData::Data (0x0x7f64ed0129c0) 0
-
-Class QListData
- size=8 align=8
- base size=8 base align=8
-QListData (0x0x7f64ed012720) 0
-
-Class QRegExp
- size=8 align=8
- base size=8 base align=8
-QRegExp (0x0x7f64ed012e40) 0
-
-Class QStringMatcher::Data
- size=272 align=8
- base size=272 base align=8
-QStringMatcher::Data (0x0x7f64ece8d0c0) 0
-
-Class QStringMatcher
- size=1048 align=8
- base size=1048 base align=8
-QStringMatcher (0x0x7f64ece8d060) 0
-
-Class QStringList
- size=8 align=8
- base size=8 base align=8
-QStringList (0x0x7f64ece7dd00) 0
- QList<QString> (0x0x7f64ece7dd68) 0
- QListSpecialMethods<QString> (0x0x7f64ece8d2a0) 0 empty
-
-Class QScopedPointerPodDeleter
- size=1 align=1
- base size=0 base align=1
-QScopedPointerPodDeleter (0x0x7f64ece8d6c0) 0 empty
-
-Class std::_Rb_tree_node_base
- size=32 align=8
- base size=32 base align=8
-std::_Rb_tree_node_base (0x0x7f64ecbaf2a0) 0
-
-Class std::allocator_arg_t
- size=1 align=1
- base size=0 base align=1
-std::allocator_arg_t (0x0x7f64ecbaf900) 0 empty
-
-Class std::__uses_alloc_base
- size=1 align=1
- base size=0 base align=1
-std::__uses_alloc_base (0x0x7f64ecbafa80) 0 empty
-
-Class std::__uses_alloc0::_Sink
- size=1 align=1
- base size=0 base align=1
-std::__uses_alloc0::_Sink (0x0x7f64ecbafb40) 0 empty
-
-Class std::__uses_alloc0
- size=1 align=1
- base size=1 base align=1
-std::__uses_alloc0 (0x0x7f64ecafa680) 0
- std::__uses_alloc_base (0x0x7f64ecbafae0) 0 empty
-
-Class std::_Swallow_assign
- size=1 align=1
- base size=0 base align=1
-std::_Swallow_assign (0x0x7f64ec9b4ba0) 0 empty
-
-Class QtPrivate::AbstractDebugStreamFunction
- size=16 align=8
- base size=16 base align=8
-QtPrivate::AbstractDebugStreamFunction (0x0x7f64ec9b4de0) 0
-
-Class QtPrivate::AbstractComparatorFunction
- size=24 align=8
- base size=24 base align=8
-QtPrivate::AbstractComparatorFunction (0x0x7f64ec9b4ea0) 0
-
-Class QtPrivate::AbstractConverterFunction
- size=8 align=8
- base size=8 base align=8
-QtPrivate::AbstractConverterFunction (0x0x7f64ec6fb000) 0
-
-Class QMetaType
- size=80 align=8
- base size=80 base align=8
-QMetaType (0x0x7f64ec6fb180) 0
-
-Class QtMetaTypePrivate::VariantData
- size=24 align=8
- base size=20 base align=8
-QtMetaTypePrivate::VariantData (0x0x7f64ec6fb5a0) 0
-
-Class QtMetaTypePrivate::VectorBoolElements
- size=1 align=1
- base size=0 base align=1
-QtMetaTypePrivate::VectorBoolElements (0x0x7f64ec6fb6c0) 0 empty
-
-Class QtMetaTypePrivate::QSequentialIterableImpl
- size=104 align=8
- base size=104 base align=8
-QtMetaTypePrivate::QSequentialIterableImpl (0x0x7f64ec81f060) 0
-
-Class QtMetaTypePrivate::QAssociativeIterableImpl
- size=112 align=8
- base size=112 base align=8
-QtMetaTypePrivate::QAssociativeIterableImpl (0x0x7f64ec81f480) 0
-
-Class QtMetaTypePrivate::QPairVariantInterfaceImpl
- size=40 align=8
- base size=40 base align=8
-QtMetaTypePrivate::QPairVariantInterfaceImpl (0x0x7f64ec81f780) 0
-
-Class std::chrono::_V2::system_clock
- size=1 align=1
- base size=0 base align=1
-std::chrono::_V2::system_clock (0x0x7f64ec2fb000) 0 empty
-
-Class std::chrono::_V2::steady_clock
- size=1 align=1
- base size=0 base align=1
-std::chrono::_V2::steady_clock (0x0x7f64ec3c6e40) 0 empty
-
-Vtable for QObjectData
-QObjectData::_ZTV11QObjectData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QObjectData)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))__cxa_pure_virtual
-
-Class QObjectData
- size=48 align=8
- base size=48 base align=8
-QObjectData (0x0x7f64ec3c6ea0) 0
- vptr=((& QObjectData::_ZTV11QObjectData) + 16u)
-
-Class QObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QObject::QPrivateSignal (0x0x7f64ec4110c0) 0 empty
-
-Vtable for QObject
-QObject::_ZTV7QObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QObject)
-16 (int (*)(...))QObject::metaObject
-24 (int (*)(...))QObject::qt_metacast
-32 (int (*)(...))QObject::qt_metacall
-40 (int (*)(...))QObject::~QObject
-48 (int (*)(...))QObject::~QObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QObject
- size=16 align=8
- base size=16 base align=8
-QObject (0x0x7f64ec411060) 0
- vptr=((& QObject::_ZTV7QObject) + 16u)
-
-Vtable for QObjectUserData
-QObjectUserData::_ZTV15QObjectUserData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QObjectUserData)
-16 (int (*)(...))QObjectUserData::~QObjectUserData
-24 (int (*)(...))QObjectUserData::~QObjectUserData
-
-Class QObjectUserData
- size=8 align=8
- base size=8 base align=8
-QObjectUserData (0x0x7f64ec0d3360) 0 nearly-empty
- vptr=((& QObjectUserData::_ZTV15QObjectUserData) + 16u)
-
-Class QSignalBlocker
- size=16 align=8
- base size=10 base align=8
-QSignalBlocker (0x0x7f64ec0d33c0) 0
-
-Class QAbstractAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractAnimation::QPrivateSignal (0x0x7f64ec0d3480) 0 empty
-
-Vtable for QAbstractAnimation
-QAbstractAnimation::_ZTV18QAbstractAnimation: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractAnimation)
-16 (int (*)(...))QAbstractAnimation::metaObject
-24 (int (*)(...))QAbstractAnimation::qt_metacast
-32 (int (*)(...))QAbstractAnimation::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QAbstractAnimation
- size=16 align=8
- base size=16 base align=8
-QAbstractAnimation (0x0x7f64ec0c4888) 0
- vptr=((& QAbstractAnimation::_ZTV18QAbstractAnimation) + 16u)
- QObject (0x0x7f64ec0d3420) 0
- primary-for QAbstractAnimation (0x0x7f64ec0c4888)
-
-Class QAnimationDriver::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAnimationDriver::QPrivateSignal (0x0x7f64ec0d3540) 0 empty
-
-Vtable for QAnimationDriver
-QAnimationDriver::_ZTV16QAnimationDriver: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QAnimationDriver)
-16 (int (*)(...))QAnimationDriver::metaObject
-24 (int (*)(...))QAnimationDriver::qt_metacast
-32 (int (*)(...))QAnimationDriver::qt_metacall
-40 (int (*)(...))QAnimationDriver::~QAnimationDriver
-48 (int (*)(...))QAnimationDriver::~QAnimationDriver
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAnimationDriver::advance
-120 (int (*)(...))QAnimationDriver::elapsed
-128 (int (*)(...))QAnimationDriver::start
-136 (int (*)(...))QAnimationDriver::stop
-
-Class QAnimationDriver
- size=16 align=8
- base size=16 base align=8
-QAnimationDriver (0x0x7f64ec0c48f0) 0
- vptr=((& QAnimationDriver::_ZTV16QAnimationDriver) + 16u)
- QObject (0x0x7f64ec0d34e0) 0
- primary-for QAnimationDriver (0x0x7f64ec0c48f0)
-
-Class QEventLoop::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QEventLoop::QPrivateSignal (0x0x7f64ec0d3600) 0 empty
-
-Vtable for QEventLoop
-QEventLoop::_ZTV10QEventLoop: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QEventLoop)
-16 (int (*)(...))QEventLoop::metaObject
-24 (int (*)(...))QEventLoop::qt_metacast
-32 (int (*)(...))QEventLoop::qt_metacall
-40 (int (*)(...))QEventLoop::~QEventLoop
-48 (int (*)(...))QEventLoop::~QEventLoop
-56 (int (*)(...))QEventLoop::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QEventLoop
- size=16 align=8
- base size=16 base align=8
-QEventLoop (0x0x7f64ec0c4958) 0
- vptr=((& QEventLoop::_ZTV10QEventLoop) + 16u)
- QObject (0x0x7f64ec0d35a0) 0
- primary-for QEventLoop (0x0x7f64ec0c4958)
-
-Class QEventLoopLocker
- size=8 align=8
- base size=8 base align=8
-QEventLoopLocker (0x0x7f64ec0d37e0) 0
-
-Class QAbstractEventDispatcher::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractEventDispatcher::QPrivateSignal (0x0x7f64ec0d38a0) 0 empty
-
-Class QAbstractEventDispatcher::TimerInfo
- size=12 align=4
- base size=12 base align=4
-QAbstractEventDispatcher::TimerInfo (0x0x7f64ec0d3900) 0
-
-Vtable for QAbstractEventDispatcher
-QAbstractEventDispatcher::_ZTV24QAbstractEventDispatcher: 28u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAbstractEventDispatcher)
-16 (int (*)(...))QAbstractEventDispatcher::metaObject
-24 (int (*)(...))QAbstractEventDispatcher::qt_metacast
-32 (int (*)(...))QAbstractEventDispatcher::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-184 (int (*)(...))__cxa_pure_virtual
-192 (int (*)(...))__cxa_pure_virtual
-200 (int (*)(...))__cxa_pure_virtual
-208 (int (*)(...))QAbstractEventDispatcher::startingUp
-216 (int (*)(...))QAbstractEventDispatcher::closingDown
-
-Class QAbstractEventDispatcher
- size=16 align=8
- base size=16 base align=8
-QAbstractEventDispatcher (0x0x7f64ec0c4a90) 0
- vptr=((& QAbstractEventDispatcher::_ZTV24QAbstractEventDispatcher) + 16u)
- QObject (0x0x7f64ec0d3840) 0
- primary-for QAbstractEventDispatcher (0x0x7f64ec0c4a90)
-
-Vtable for std::type_info
-std::type_info::_ZTVSt9type_info: 8u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9type_info)
-16 (int (*)(...))std::type_info::~type_info
-24 (int (*)(...))std::type_info::~type_info
-32 (int (*)(...))std::type_info::__is_pointer_p
-40 (int (*)(...))std::type_info::__is_function_p
-48 (int (*)(...))std::type_info::__do_catch
-56 (int (*)(...))std::type_info::__do_upcast
-
-Class std::type_info
- size=16 align=8
- base size=16 base align=8
-std::type_info (0x0x7f64ec0d3ba0) 0
- vptr=((& std::type_info::_ZTVSt9type_info) + 16u)
-
-Vtable for std::bad_cast
-std::bad_cast::_ZTVSt8bad_cast: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt8bad_cast)
-16 (int (*)(...))std::bad_cast::~bad_cast
-24 (int (*)(...))std::bad_cast::~bad_cast
-32 (int (*)(...))std::bad_cast::what
-
-Class std::bad_cast
- size=8 align=8
- base size=8 base align=8
-std::bad_cast (0x0x7f64ec0c4c98) 0 nearly-empty
- vptr=((& std::bad_cast::_ZTVSt8bad_cast) + 16u)
- std::exception (0x0x7f64ec0d3c00) 0 nearly-empty
- primary-for std::bad_cast (0x0x7f64ec0c4c98)
-
-Vtable for std::bad_typeid
-std::bad_typeid::_ZTVSt10bad_typeid: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt10bad_typeid)
-16 (int (*)(...))std::bad_typeid::~bad_typeid
-24 (int (*)(...))std::bad_typeid::~bad_typeid
-32 (int (*)(...))std::bad_typeid::what
-
-Class std::bad_typeid
- size=8 align=8
- base size=8 base align=8
-std::bad_typeid (0x0x7f64ec0c4d00) 0 nearly-empty
- vptr=((& std::bad_typeid::_ZTVSt10bad_typeid) + 16u)
- std::exception (0x0x7f64ec0d3c60) 0 nearly-empty
- primary-for std::bad_typeid (0x0x7f64ec0c4d00)
-
-Vtable for std::bad_function_call
-std::bad_function_call::_ZTVSt17bad_function_call: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt17bad_function_call)
-16 (int (*)(...))std::bad_function_call::~bad_function_call
-24 (int (*)(...))std::bad_function_call::~bad_function_call
-32 (int (*)(...))std::bad_function_call::what
-
-Class std::bad_function_call
- size=8 align=8
- base size=8 base align=8
-std::bad_function_call (0x0x7f64ec218f70) 0 nearly-empty
- vptr=((& std::bad_function_call::_ZTVSt17bad_function_call) + 16u)
- std::exception (0x0x7f64ec293d20) 0 nearly-empty
- primary-for std::bad_function_call (0x0x7f64ec218f70)
-
-Class std::_Nocopy_types
- size=16 align=8
- base size=16 base align=8
-std::_Nocopy_types (0x0x7f64ec293de0) 0
-
-Class std::_Any_data
- size=16 align=8
- base size=16 base align=8
-std::_Any_data (0x0x7f64ec293e40) 0
-
-Class std::_Function_base
- size=24 align=8
- base size=24 base align=8
-std::_Function_base (0x0x7f64ec293f60) 0
-
-Class QMapNodeBase
- size=24 align=8
- base size=24 base align=8
-QMapNodeBase (0x0x7f64ebf36480) 0
-
-Class QMapDataBase
- size=40 align=8
- base size=40 base align=8
-QMapDataBase (0x0x7f64ebf369c0) 0
-
-Class QHashData::Node
- size=16 align=8
- base size=16 base align=8
-QHashData::Node (0x0x7f64ebf36d80) 0
-
-Class QHashData
- size=48 align=8
- base size=44 base align=8
-QHashData (0x0x7f64ebf36d20) 0
-
-Class QHashDummyValue
- size=1 align=1
- base size=0 base align=1
-QHashDummyValue (0x0x7f64ebf36de0) 0 empty
-
-Class QVariant::PrivateShared
- size=16 align=8
- base size=12 base align=8
-QVariant::PrivateShared (0x0x7f64ebccf6c0) 0
-
-Class QVariant::Private::Data
- size=8 align=8
- base size=8 base align=8
-QVariant::Private::Data (0x0x7f64ebccf780) 0
-
-Class QVariant::Private
- size=16 align=8
- base size=12 base align=8
-QVariant::Private (0x0x7f64ebccf720) 0
-
-Class QVariant::Handler
- size=72 align=8
- base size=72 base align=8
-QVariant::Handler (0x0x7f64ebccf7e0) 0
-
-Class QVariant
- size=16 align=8
- base size=16 base align=8
-QVariant (0x0x7f64ebccf660) 0
-
-Class QVariantComparisonHelper
- size=8 align=8
- base size=8 base align=8
-QVariantComparisonHelper (0x0x7f64ebb24300) 0
-
-Class QSequentialIterable::const_iterator
- size=112 align=8
- base size=112 base align=8
-QSequentialIterable::const_iterator (0x0x7f64ebb24960) 0
-
-Class QSequentialIterable
- size=104 align=8
- base size=104 base align=8
-QSequentialIterable (0x0x7f64ebb24900) 0
-
-Class QAssociativeIterable::const_iterator
- size=120 align=8
- base size=120 base align=8
-QAssociativeIterable::const_iterator (0x0x7f64ebb24a20) 0
-
-Class QAssociativeIterable
- size=112 align=8
- base size=112 base align=8
-QAssociativeIterable (0x0x7f64ebb249c0) 0
-
-Class QModelIndex
- size=24 align=8
- base size=24 base align=8
-QModelIndex (0x0x7f64ebc4ed20) 0
-
-Class QPersistentModelIndex
- size=8 align=8
- base size=8 base align=8
-QPersistentModelIndex (0x0x7f64eb993420) 0
-
-Class QAbstractItemModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractItemModel::QPrivateSignal (0x0x7f64eba30b40) 0 empty
-
-Vtable for QAbstractItemModel
-QAbstractItemModel::_ZTV18QAbstractItemModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractItemModel)
-16 (int (*)(...))QAbstractItemModel::metaObject
-24 (int (*)(...))QAbstractItemModel::qt_metacast
-32 (int (*)(...))QAbstractItemModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractItemModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractItemModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractItemModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractItemModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractItemModel
- size=16 align=8
- base size=16 base align=8
-QAbstractItemModel (0x0x7f64eba33d00) 0
- vptr=((& QAbstractItemModel::_ZTV18QAbstractItemModel) + 16u)
- QObject (0x0x7f64eba30ae0) 0
- primary-for QAbstractItemModel (0x0x7f64eba33d00)
-
-Class QAbstractTableModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTableModel::QPrivateSignal (0x0x7f64eba94420) 0 empty
-
-Vtable for QAbstractTableModel
-QAbstractTableModel::_ZTV19QAbstractTableModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractTableModel)
-16 (int (*)(...))QAbstractTableModel::metaObject
-24 (int (*)(...))QAbstractTableModel::qt_metacast
-32 (int (*)(...))QAbstractTableModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractTableModel::index
-120 (int (*)(...))QAbstractTableModel::parent
-128 (int (*)(...))QAbstractTableModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractTableModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractTableModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractTableModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractTableModel
- size=16 align=8
- base size=16 base align=8
-QAbstractTableModel (0x0x7f64eba90410) 0
- vptr=((& QAbstractTableModel::_ZTV19QAbstractTableModel) + 16u)
- QAbstractItemModel (0x0x7f64eba90478) 0
- primary-for QAbstractTableModel (0x0x7f64eba90410)
- QObject (0x0x7f64eba943c0) 0
- primary-for QAbstractItemModel (0x0x7f64eba90478)
-
-Class QAbstractListModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractListModel::QPrivateSignal (0x0x7f64eba944e0) 0 empty
-
-Vtable for QAbstractListModel
-QAbstractListModel::_ZTV18QAbstractListModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractListModel)
-16 (int (*)(...))QAbstractListModel::metaObject
-24 (int (*)(...))QAbstractListModel::qt_metacast
-32 (int (*)(...))QAbstractListModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractListModel::index
-120 (int (*)(...))QAbstractListModel::parent
-128 (int (*)(...))QAbstractListModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QAbstractListModel::columnCount
-152 (int (*)(...))QAbstractListModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractListModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractListModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractListModel
- size=16 align=8
- base size=16 base align=8
-QAbstractListModel (0x0x7f64eba904e0) 0
- vptr=((& QAbstractListModel::_ZTV18QAbstractListModel) + 16u)
- QAbstractItemModel (0x0x7f64eba90548) 0
- primary-for QAbstractListModel (0x0x7f64eba904e0)
- QObject (0x0x7f64eba94480) 0
- primary-for QAbstractItemModel (0x0x7f64eba90548)
-
-Vtable for QAbstractNativeEventFilter
-QAbstractNativeEventFilter::_ZTV26QAbstractNativeEventFilter: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAbstractNativeEventFilter)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractNativeEventFilter
- size=16 align=8
- base size=16 base align=8
-QAbstractNativeEventFilter (0x0x7f64eba94780) 0
- vptr=((& QAbstractNativeEventFilter::_ZTV26QAbstractNativeEventFilter) + 16u)
-
-Class QAbstractProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractProxyModel::QPrivateSignal (0x0x7f64eba94840) 0 empty
-
-Vtable for QAbstractProxyModel
-QAbstractProxyModel::_ZTV19QAbstractProxyModel: 53u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractProxyModel)
-16 (int (*)(...))QAbstractProxyModel::metaObject
-24 (int (*)(...))QAbstractProxyModel::qt_metacast
-32 (int (*)(...))QAbstractProxyModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractProxyModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QAbstractProxyModel::headerData
-184 (int (*)(...))QAbstractProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QAbstractProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QAbstractProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QAbstractProxyModel::setSourceModel
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))__cxa_pure_virtual
-408 (int (*)(...))QAbstractProxyModel::mapSelectionToSource
-416 (int (*)(...))QAbstractProxyModel::mapSelectionFromSource
-
-Class QAbstractProxyModel
- size=16 align=8
- base size=16 base align=8
-QAbstractProxyModel (0x0x7f64eba90680) 0
- vptr=((& QAbstractProxyModel::_ZTV19QAbstractProxyModel) + 16u)
- QAbstractItemModel (0x0x7f64eba906e8) 0
- primary-for QAbstractProxyModel (0x0x7f64eba90680)
- QObject (0x0x7f64eba947e0) 0
- primary-for QAbstractItemModel (0x0x7f64eba906e8)
-
-Class QAbstractState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractState::QPrivateSignal (0x0x7f64eba94900) 0 empty
-
-Vtable for QAbstractState
-QAbstractState::_ZTV14QAbstractState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QAbstractState)
-16 (int (*)(...))QAbstractState::metaObject
-24 (int (*)(...))QAbstractState::qt_metacast
-32 (int (*)(...))QAbstractState::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractState
- size=16 align=8
- base size=16 base align=8
-QAbstractState (0x0x7f64eba90750) 0
- vptr=((& QAbstractState::_ZTV14QAbstractState) + 16u)
- QObject (0x0x7f64eba948a0) 0
- primary-for QAbstractState (0x0x7f64eba90750)
-
-Class QAbstractTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTransition::QPrivateSignal (0x0x7f64eba949c0) 0 empty
-
-Vtable for QAbstractTransition
-QAbstractTransition::_ZTV19QAbstractTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractTransition)
-16 (int (*)(...))QAbstractTransition::metaObject
-24 (int (*)(...))QAbstractTransition::qt_metacast
-32 (int (*)(...))QAbstractTransition::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractTransition
- size=16 align=8
- base size=16 base align=8
-QAbstractTransition (0x0x7f64eba907b8) 0
- vptr=((& QAbstractTransition::_ZTV19QAbstractTransition) + 16u)
- QObject (0x0x7f64eba94960) 0
- primary-for QAbstractTransition (0x0x7f64eba907b8)
-
-Class QAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAnimationGroup::QPrivateSignal (0x0x7f64eba94a80) 0 empty
-
-Vtable for QAnimationGroup
-QAnimationGroup::_ZTV15QAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QAnimationGroup)
-16 (int (*)(...))QAnimationGroup::metaObject
-24 (int (*)(...))QAnimationGroup::qt_metacast
-32 (int (*)(...))QAnimationGroup::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QAnimationGroup (0x0x7f64eba90820) 0
- vptr=((& QAnimationGroup::_ZTV15QAnimationGroup) + 16u)
- QAbstractAnimation (0x0x7f64eba90888) 0
- primary-for QAnimationGroup (0x0x7f64eba90820)
- QObject (0x0x7f64eba94a20) 0
- primary-for QAbstractAnimation (0x0x7f64eba90888)
-
-Class QBasicTimer
- size=4 align=4
- base size=4 base align=4
-QBasicTimer (0x0x7f64eb8037e0) 0
-
-Class QBitArray
- size=8 align=8
- base size=8 base align=8
-QBitArray (0x0x7f64eb803a80) 0
-
-Class QBitRef
- size=16 align=8
- base size=12 base align=8
-QBitRef (0x0x7f64eb803b40) 0
-
-Class QIODevice::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIODevice::QPrivateSignal (0x0x7f64eb803e40) 0 empty
-
-Vtable for QIODevice
-QIODevice::_ZTV9QIODevice: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QIODevice)
-16 (int (*)(...))QIODevice::metaObject
-24 (int (*)(...))QIODevice::qt_metacast
-32 (int (*)(...))QIODevice::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIODevice::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QIODevice::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))__cxa_pure_virtual
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))__cxa_pure_virtual
-
-Class QIODevice
- size=16 align=8
- base size=16 base align=8
-QIODevice (0x0x7f64eba90f08) 0
- vptr=((& QIODevice::_ZTV9QIODevice) + 16u)
- QObject (0x0x7f64eb803de0) 0
- primary-for QIODevice (0x0x7f64eba90f08)
-
-Class QBuffer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QBuffer::QPrivateSignal (0x0x7f64eb4c40c0) 0 empty
-
-Vtable for QBuffer
-QBuffer::_ZTV7QBuffer: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QBuffer)
-16 (int (*)(...))QBuffer::metaObject
-24 (int (*)(...))QBuffer::qt_metacast
-32 (int (*)(...))QBuffer::qt_metacall
-40 (int (*)(...))QBuffer::~QBuffer
-48 (int (*)(...))QBuffer::~QBuffer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QBuffer::connectNotify
-104 (int (*)(...))QBuffer::disconnectNotify
-112 (int (*)(...))QIODevice::isSequential
-120 (int (*)(...))QBuffer::open
-128 (int (*)(...))QBuffer::close
-136 (int (*)(...))QBuffer::pos
-144 (int (*)(...))QBuffer::size
-152 (int (*)(...))QBuffer::seek
-160 (int (*)(...))QBuffer::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QBuffer::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QBuffer::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QBuffer::writeData
-
-Class QBuffer
- size=16 align=8
- base size=16 base align=8
-QBuffer (0x0x7f64eb4bd068) 0
- vptr=((& QBuffer::_ZTV7QBuffer) + 16u)
- QIODevice (0x0x7f64eb4bd0d0) 0
- primary-for QBuffer (0x0x7f64eb4bd068)
- QObject (0x0x7f64eb4c4060) 0
- primary-for QIODevice (0x0x7f64eb4bd0d0)
-
-Class QByteArrayMatcher::Data
- size=272 align=8
- base size=272 base align=8
-QByteArrayMatcher::Data (0x0x7f64eb4c4180) 0
-
-Class QByteArrayMatcher
- size=1040 align=8
- base size=1040 base align=8
-QByteArrayMatcher (0x0x7f64eb4c4120) 0
-
-Class QStaticByteArrayMatcherBase::Skiptable
- size=256 align=1
- base size=256 base align=1
-QStaticByteArrayMatcherBase::Skiptable (0x0x7f64eb4c42a0) 0
-
-Class QStaticByteArrayMatcherBase
- size=256 align=16
- base size=256 base align=16
-QStaticByteArrayMatcherBase (0x0x7f64eb4c4240) 0
-
-Class QSharedData
- size=4 align=4
- base size=4 base align=4
-QSharedData (0x0x7f64eb4c4480) 0
-
-Class QLocale
- size=8 align=8
- base size=8 base align=8
-QLocale (0x0x7f64eb4c4660) 0
-
-Class QCollatorSortKey
- size=8 align=8
- base size=8 base align=8
-QCollatorSortKey (0x0x7f64eb4c4c60) 0
-
-Class QCollator
- size=8 align=8
- base size=8 base align=8
-QCollator (0x0x7f64eb4c4d20) 0
-
-Class QCommandLineOption
- size=8 align=8
- base size=8 base align=8
-QCommandLineOption (0x0x7f64eb28bd20) 0
-
-Vtable for QEvent
-QEvent::_ZTV6QEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QEvent)
-16 (int (*)(...))QEvent::~QEvent
-24 (int (*)(...))QEvent::~QEvent
-
-Class QEvent
- size=24 align=8
- base size=20 base align=8
-QEvent (0x0x7f64eb2cb1e0) 0
- vptr=((& QEvent::_ZTV6QEvent) + 16u)
-
-Vtable for QTimerEvent
-QTimerEvent::_ZTV11QTimerEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTimerEvent)
-16 (int (*)(...))QTimerEvent::~QTimerEvent
-24 (int (*)(...))QTimerEvent::~QTimerEvent
-
-Class QTimerEvent
- size=24 align=8
- base size=24 base align=8
-QTimerEvent (0x0x7f64eb2a05b0) 0
- vptr=((& QTimerEvent::_ZTV11QTimerEvent) + 16u)
- QEvent (0x0x7f64eb2cb240) 0
- primary-for QTimerEvent (0x0x7f64eb2a05b0)
-
-Vtable for QChildEvent
-QChildEvent::_ZTV11QChildEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QChildEvent)
-16 (int (*)(...))QChildEvent::~QChildEvent
-24 (int (*)(...))QChildEvent::~QChildEvent
-
-Class QChildEvent
- size=32 align=8
- base size=32 base align=8
-QChildEvent (0x0x7f64eb2a0618) 0
- vptr=((& QChildEvent::_ZTV11QChildEvent) + 16u)
- QEvent (0x0x7f64eb2cb2a0) 0
- primary-for QChildEvent (0x0x7f64eb2a0618)
-
-Vtable for QDynamicPropertyChangeEvent
-QDynamicPropertyChangeEvent::_ZTV27QDynamicPropertyChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QDynamicPropertyChangeEvent)
-16 (int (*)(...))QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent
-24 (int (*)(...))QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent
-
-Class QDynamicPropertyChangeEvent
- size=32 align=8
- base size=32 base align=8
-QDynamicPropertyChangeEvent (0x0x7f64eb2a0b60) 0
- vptr=((& QDynamicPropertyChangeEvent::_ZTV27QDynamicPropertyChangeEvent) + 16u)
- QEvent (0x0x7f64eb2cb780) 0
- primary-for QDynamicPropertyChangeEvent (0x0x7f64eb2a0b60)
-
-Vtable for QDeferredDeleteEvent
-QDeferredDeleteEvent::_ZTV20QDeferredDeleteEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QDeferredDeleteEvent)
-16 (int (*)(...))QDeferredDeleteEvent::~QDeferredDeleteEvent
-24 (int (*)(...))QDeferredDeleteEvent::~QDeferredDeleteEvent
-
-Class QDeferredDeleteEvent
- size=24 align=8
- base size=24 base align=8
-QDeferredDeleteEvent (0x0x7f64eb2a0bc8) 0
- vptr=((& QDeferredDeleteEvent::_ZTV20QDeferredDeleteEvent) + 16u)
- QEvent (0x0x7f64eb2cb7e0) 0
- primary-for QDeferredDeleteEvent (0x0x7f64eb2a0bc8)
-
-Class QCoreApplication::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QCoreApplication::QPrivateSignal (0x0x7f64eb2cb8a0) 0 empty
-
-Vtable for QCoreApplication
-QCoreApplication::_ZTV16QCoreApplication: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QCoreApplication)
-16 (int (*)(...))QCoreApplication::metaObject
-24 (int (*)(...))QCoreApplication::qt_metacast
-32 (int (*)(...))QCoreApplication::qt_metacall
-40 (int (*)(...))QCoreApplication::~QCoreApplication
-48 (int (*)(...))QCoreApplication::~QCoreApplication
-56 (int (*)(...))QCoreApplication::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QCoreApplication::notify
-120 (int (*)(...))QCoreApplication::compressEvent
-
-Class QCoreApplication
- size=16 align=8
- base size=16 base align=8
-QCoreApplication (0x0x7f64eb2a0c30) 0
- vptr=((& QCoreApplication::_ZTV16QCoreApplication) + 16u)
- QObject (0x0x7f64eb2cb840) 0
- primary-for QCoreApplication (0x0x7f64eb2a0c30)
-
-Class QCommandLineParser
- size=8 align=8
- base size=8 base align=8
-QCommandLineParser (0x0x7f64eb2cb900) 0
-
-Class QContiguousCacheData
- size=24 align=4
- base size=24 base align=4
-QContiguousCacheData (0x0x7f64eb2cb960) 0
-
-Class QCryptographicHash
- size=8 align=8
- base size=8 base align=8
-QCryptographicHash (0x0x7f64eb2cbf60) 0
-
-Class QDataStream
- size=32 align=8
- base size=32 base align=8
-QDataStream (0x0x7f64eb3bf000) 0
-
-Class QtPrivate::StreamStateSaver
- size=16 align=8
- base size=12 base align=8
-QtPrivate::StreamStateSaver (0x0x7f64eb3bf0c0) 0
-
-Class QDate
- size=8 align=8
- base size=8 base align=8
-QDate (0x0x7f64eb3bf5a0) 0
-
-Class QTime
- size=4 align=4
- base size=4 base align=4
-QTime (0x0x7f64eb3bf840) 0
-
-Class QDateTime::ShortData
- size=8 align=8
- base size=8 base align=8
-QDateTime::ShortData (0x0x7f64eb07a000) 0
-
-Class QDateTime::Data
- size=8 align=8
- base size=8 base align=8
-QDateTime::Data (0x0x7f64eb07a060) 0
-
-Class QDateTime
- size=8 align=8
- base size=8 base align=8
-QDateTime (0x0x7f64eb3bff60) 0
-
-Class QElapsedTimer
- size=16 align=8
- base size=16 base align=8
-QElapsedTimer (0x0x7f64eb122180) 0
-
-Class QDeadlineTimer
- size=16 align=8
- base size=16 base align=8
-QDeadlineTimer (0x0x7f64eb122660) 0
-
-Vtable for QTextStream
-QTextStream::_ZTV11QTextStream: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTextStream)
-16 (int (*)(...))QTextStream::~QTextStream
-24 (int (*)(...))QTextStream::~QTextStream
-
-Class QTextStream
- size=16 align=8
- base size=16 base align=8
-QTextStream (0x0x7f64eb264600) 0
- vptr=((& QTextStream::_ZTV11QTextStream) + 16u)
-
-Class QTextStreamManipulator
- size=40 align=8
- base size=38 base align=8
-QTextStreamManipulator (0x0x7f64eb2648a0) 0
-
-Class QtSharedPointer::NormalDeleter
- size=1 align=1
- base size=0 base align=1
-QtSharedPointer::NormalDeleter (0x0x7f64eb264ae0) 0 empty
-
-Class QtSharedPointer::ExternalRefCountData
- size=16 align=8
- base size=16 base align=8
-QtSharedPointer::ExternalRefCountData (0x0x7f64eb264c60) 0
-
-Class QDebug::Stream
- size=80 align=8
- base size=76 base align=8
-QDebug::Stream (0x0x7f64eaff11e0) 0
-
-Class QDebug
- size=8 align=8
- base size=8 base align=8
-QDebug (0x0x7f64eaff1180) 0
-
-Class QDebugStateSaver
- size=8 align=8
- base size=8 base align=8
-QDebugStateSaver (0x0x7f64eacea6c0) 0
-
-Class QNoDebug
- size=1 align=1
- base size=0 base align=1
-QNoDebug (0x0x7f64eacea780) 0 empty
-
-Class QFileDevice::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileDevice::QPrivateSignal (0x0x7f64eadbf900) 0 empty
-
-Vtable for QFileDevice
-QFileDevice::_ZTV11QFileDevice: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFileDevice)
-16 (int (*)(...))QFileDevice::metaObject
-24 (int (*)(...))QFileDevice::qt_metacast
-32 (int (*)(...))QFileDevice::qt_metacall
-40 (int (*)(...))QFileDevice::~QFileDevice
-48 (int (*)(...))QFileDevice::~QFileDevice
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFileDevice::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QFileDevice::fileName
-248 (int (*)(...))QFileDevice::resize
-256 (int (*)(...))QFileDevice::permissions
-264 (int (*)(...))QFileDevice::setPermissions
-
-Class QFileDevice
- size=16 align=8
- base size=16 base align=8
-QFileDevice (0x0x7f64eadc5d68) 0
- vptr=((& QFileDevice::_ZTV11QFileDevice) + 16u)
- QIODevice (0x0x7f64eadc5dd0) 0
- primary-for QFileDevice (0x0x7f64eadc5d68)
- QObject (0x0x7f64eadbf8a0) 0
- primary-for QIODevice (0x0x7f64eadc5dd0)
-
-Class QFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFile::QPrivateSignal (0x0x7f64eadbfb40) 0 empty
-
-Vtable for QFile
-QFile::_ZTV5QFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QFile)
-16 (int (*)(...))QFile::metaObject
-24 (int (*)(...))QFile::qt_metacast
-32 (int (*)(...))QFile::qt_metacall
-40 (int (*)(...))QFile::~QFile
-48 (int (*)(...))QFile::~QFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QFile::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFile::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QFile::fileName
-248 (int (*)(...))QFile::resize
-256 (int (*)(...))QFile::permissions
-264 (int (*)(...))QFile::setPermissions
-
-Class QFile
- size=16 align=8
- base size=16 base align=8
-QFile (0x0x7f64eadc5f08) 0
- vptr=((& QFile::_ZTV5QFile) + 16u)
- QFileDevice (0x0x7f64eadc5f70) 0
- primary-for QFile (0x0x7f64eadc5f08)
- QIODevice (0x0x7f64eadc51a0) 0
- primary-for QFileDevice (0x0x7f64eadc5f70)
- QObject (0x0x7f64eadbfae0) 0
- primary-for QIODevice (0x0x7f64eadc51a0)
-
-Class QFileInfo
- size=8 align=8
- base size=8 base align=8
-QFileInfo (0x0x7f64eadbfd20) 0
-
-Class QDir
- size=8 align=8
- base size=8 base align=8
-QDir (0x0x7f64eaa81180) 0
-
-Class QDirIterator
- size=8 align=8
- base size=8 base align=8
-QDirIterator (0x0x7f64eaa81780) 0
-
-Class QEasingCurve
- size=8 align=8
- base size=8 base align=8
-QEasingCurve (0x0x7f64eaa819c0) 0
-
-Class QEventTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QEventTransition::QPrivateSignal (0x0x7f64eabd4de0) 0 empty
-
-Vtable for QEventTransition
-QEventTransition::_ZTV16QEventTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QEventTransition)
-16 (int (*)(...))QEventTransition::metaObject
-24 (int (*)(...))QEventTransition::qt_metacast
-32 (int (*)(...))QEventTransition::qt_metacall
-40 (int (*)(...))QEventTransition::~QEventTransition
-48 (int (*)(...))QEventTransition::~QEventTransition
-56 (int (*)(...))QEventTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QEventTransition::eventTest
-120 (int (*)(...))QEventTransition::onTransition
-
-Class QEventTransition
- size=16 align=8
- base size=16 base align=8
-QEventTransition (0x0x7f64eabd6c30) 0
- vptr=((& QEventTransition::_ZTV16QEventTransition) + 16u)
- QAbstractTransition (0x0x7f64eabd6c98) 0
- primary-for QEventTransition (0x0x7f64eabd6c30)
- QObject (0x0x7f64eabd4d80) 0
- primary-for QAbstractTransition (0x0x7f64eabd6c98)
-
-Vtable for QException
-QException::_ZTV10QException: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QException)
-16 (int (*)(...))QException::~QException
-24 (int (*)(...))QException::~QException
-32 (int (*)(...))std::exception::what
-40 (int (*)(...))QException::raise
-48 (int (*)(...))QException::clone
-
-Class QException
- size=8 align=8
- base size=8 base align=8
-QException (0x0x7f64eabd6d00) 0 nearly-empty
- vptr=((& QException::_ZTV10QException) + 16u)
- std::exception (0x0x7f64eabd4e40) 0 nearly-empty
- primary-for QException (0x0x7f64eabd6d00)
-
-Vtable for QUnhandledException
-QUnhandledException::_ZTV19QUnhandledException: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QUnhandledException)
-16 (int (*)(...))QUnhandledException::~QUnhandledException
-24 (int (*)(...))QUnhandledException::~QUnhandledException
-32 (int (*)(...))std::exception::what
-40 (int (*)(...))QUnhandledException::raise
-48 (int (*)(...))QUnhandledException::clone
-
-Class QUnhandledException
- size=8 align=8
- base size=8 base align=8
-QUnhandledException (0x0x7f64eabd6d68) 0 nearly-empty
- vptr=((& QUnhandledException::_ZTV19QUnhandledException) + 16u)
- QException (0x0x7f64eabd6dd0) 0 nearly-empty
- primary-for QUnhandledException (0x0x7f64eabd6d68)
- std::exception (0x0x7f64eabd4ea0) 0 nearly-empty
- primary-for QException (0x0x7f64eabd6dd0)
-
-Class QtPrivate::ExceptionHolder
- size=8 align=8
- base size=8 base align=8
-QtPrivate::ExceptionHolder (0x0x7f64eabd4f00) 0
-
-Class QtPrivate::ExceptionStore
- size=8 align=8
- base size=8 base align=8
-QtPrivate::ExceptionStore (0x0x7f64eac50000) 0
-
-Vtable for QFactoryInterface
-QFactoryInterface::_ZTV17QFactoryInterface: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QFactoryInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QFactoryInterface
- size=8 align=8
- base size=8 base align=8
-QFactoryInterface (0x0x7f64eac50060) 0 nearly-empty
- vptr=((& QFactoryInterface::_ZTV17QFactoryInterface) + 16u)
-
-Class QFileSelector::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileSelector::QPrivateSignal (0x0x7f64eac50180) 0 empty
-
-Vtable for QFileSelector
-QFileSelector::_ZTV13QFileSelector: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QFileSelector)
-16 (int (*)(...))QFileSelector::metaObject
-24 (int (*)(...))QFileSelector::qt_metacast
-32 (int (*)(...))QFileSelector::qt_metacall
-40 (int (*)(...))QFileSelector::~QFileSelector
-48 (int (*)(...))QFileSelector::~QFileSelector
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QFileSelector
- size=16 align=8
- base size=16 base align=8
-QFileSelector (0x0x7f64eabd6e38) 0
- vptr=((& QFileSelector::_ZTV13QFileSelector) + 16u)
- QObject (0x0x7f64eac50120) 0
- primary-for QFileSelector (0x0x7f64eabd6e38)
-
-Class QFileSystemWatcher::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileSystemWatcher::QPrivateSignal (0x0x7f64eac50240) 0 empty
-
-Vtable for QFileSystemWatcher
-QFileSystemWatcher::_ZTV18QFileSystemWatcher: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QFileSystemWatcher)
-16 (int (*)(...))QFileSystemWatcher::metaObject
-24 (int (*)(...))QFileSystemWatcher::qt_metacast
-32 (int (*)(...))QFileSystemWatcher::qt_metacall
-40 (int (*)(...))QFileSystemWatcher::~QFileSystemWatcher
-48 (int (*)(...))QFileSystemWatcher::~QFileSystemWatcher
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QFileSystemWatcher
- size=16 align=8
- base size=16 base align=8
-QFileSystemWatcher (0x0x7f64eabd6ea0) 0
- vptr=((& QFileSystemWatcher::_ZTV18QFileSystemWatcher) + 16u)
- QObject (0x0x7f64eac501e0) 0
- primary-for QFileSystemWatcher (0x0x7f64eabd6ea0)
-
-Class QFinalState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFinalState::QPrivateSignal (0x0x7f64eac50300) 0 empty
-
-Vtable for QFinalState
-QFinalState::_ZTV11QFinalState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFinalState)
-16 (int (*)(...))QFinalState::metaObject
-24 (int (*)(...))QFinalState::qt_metacast
-32 (int (*)(...))QFinalState::qt_metacall
-40 (int (*)(...))QFinalState::~QFinalState
-48 (int (*)(...))QFinalState::~QFinalState
-56 (int (*)(...))QFinalState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFinalState::onEntry
-120 (int (*)(...))QFinalState::onExit
-
-Class QFinalState
- size=16 align=8
- base size=16 base align=8
-QFinalState (0x0x7f64eabd6f08) 0
- vptr=((& QFinalState::_ZTV11QFinalState) + 16u)
- QAbstractState (0x0x7f64eabd6f70) 0
- primary-for QFinalState (0x0x7f64eabd6f08)
- QObject (0x0x7f64eac502a0) 0
- primary-for QAbstractState (0x0x7f64eabd6f70)
-
-Vtable for QRunnable
-QRunnable::_ZTV9QRunnable: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QRunnable)
-16 (int (*)(...))__cxa_pure_virtual
-24 0u
-32 0u
-
-Class QRunnable
- size=16 align=8
- base size=12 base align=8
-QRunnable (0x0x7f64eac50360) 0
- vptr=((& QRunnable::_ZTV9QRunnable) + 16u)
-
-Class QBasicMutex
- size=8 align=8
- base size=8 base align=8
-QBasicMutex (0x0x7f64eac503c0) 0
-
-Class QMutex
- size=8 align=8
- base size=8 base align=8
-QMutex (0x0x7f64ea8bd0d0) 0
- QBasicMutex (0x0x7f64eac505a0) 0
-
-Class QMutexLocker
- size=8 align=8
- base size=8 base align=8
-QMutexLocker (0x0x7f64eac50600) 0
-
-Class QtPrivate::ResultItem
- size=16 align=8
- base size=16 base align=8
-QtPrivate::ResultItem (0x0x7f64eac50660) 0
-
-Class QtPrivate::ResultIteratorBase
- size=16 align=8
- base size=12 base align=8
-QtPrivate::ResultIteratorBase (0x0x7f64eac506c0) 0
-
-Vtable for QtPrivate::ResultStoreBase
-QtPrivate::ResultStoreBase::_ZTVN9QtPrivate15ResultStoreBaseE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9QtPrivate15ResultStoreBaseE)
-16 (int (*)(...))QtPrivate::ResultStoreBase::~ResultStoreBase
-24 (int (*)(...))QtPrivate::ResultStoreBase::~ResultStoreBase
-
-Class QtPrivate::ResultStoreBase
- size=48 align=8
- base size=44 base align=8
-QtPrivate::ResultStoreBase (0x0x7f64eac507e0) 0
- vptr=((& QtPrivate::ResultStoreBase::_ZTVN9QtPrivate15ResultStoreBaseE) + 16u)
-
-Vtable for QFutureInterfaceBase
-QFutureInterfaceBase::_ZTV20QFutureInterfaceBase: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QFutureInterfaceBase)
-16 (int (*)(...))QFutureInterfaceBase::~QFutureInterfaceBase
-24 (int (*)(...))QFutureInterfaceBase::~QFutureInterfaceBase
-
-Class QFutureInterfaceBase
- size=16 align=8
- base size=16 base align=8
-QFutureInterfaceBase (0x0x7f64ea979060) 0
- vptr=((& QFutureInterfaceBase::_ZTV20QFutureInterfaceBase) + 16u)
-
-Class QFutureWatcherBase::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFutureWatcherBase::QPrivateSignal (0x0x7f64ea979840) 0 empty
-
-Vtable for QFutureWatcherBase
-QFutureWatcherBase::_ZTV18QFutureWatcherBase: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QFutureWatcherBase)
-16 (int (*)(...))QFutureWatcherBase::metaObject
-24 (int (*)(...))QFutureWatcherBase::qt_metacast
-32 (int (*)(...))QFutureWatcherBase::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QFutureWatcherBase::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QFutureWatcherBase::connectNotify
-104 (int (*)(...))QFutureWatcherBase::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QFutureWatcherBase
- size=16 align=8
- base size=16 base align=8
-QFutureWatcherBase (0x0x7f64ea9fc208) 0
- vptr=((& QFutureWatcherBase::_ZTV18QFutureWatcherBase) + 16u)
- QObject (0x0x7f64ea9797e0) 0
- primary-for QFutureWatcherBase (0x0x7f64ea9fc208)
-
-Class QHistoryState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QHistoryState::QPrivateSignal (0x0x7f64ea979e40) 0 empty
-
-Vtable for QHistoryState
-QHistoryState::_ZTV13QHistoryState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QHistoryState)
-16 (int (*)(...))QHistoryState::metaObject
-24 (int (*)(...))QHistoryState::qt_metacast
-32 (int (*)(...))QHistoryState::qt_metacall
-40 (int (*)(...))QHistoryState::~QHistoryState
-48 (int (*)(...))QHistoryState::~QHistoryState
-56 (int (*)(...))QHistoryState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QHistoryState::onEntry
-120 (int (*)(...))QHistoryState::onExit
-
-Class QHistoryState
- size=16 align=8
- base size=16 base align=8
-QHistoryState (0x0x7f64ea9fcaf8) 0
- vptr=((& QHistoryState::_ZTV13QHistoryState) + 16u)
- QAbstractState (0x0x7f64ea9fcb60) 0
- primary-for QHistoryState (0x0x7f64ea9fcaf8)
- QObject (0x0x7f64ea979de0) 0
- primary-for QAbstractState (0x0x7f64ea9fcb60)
-
-Class QIdentityProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIdentityProxyModel::QPrivateSignal (0x0x7f64ea979f00) 0 empty
-
-Vtable for QIdentityProxyModel
-QIdentityProxyModel::_ZTV19QIdentityProxyModel: 53u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QIdentityProxyModel)
-16 (int (*)(...))QIdentityProxyModel::metaObject
-24 (int (*)(...))QIdentityProxyModel::qt_metacast
-32 (int (*)(...))QIdentityProxyModel::qt_metacall
-40 (int (*)(...))QIdentityProxyModel::~QIdentityProxyModel
-48 (int (*)(...))QIdentityProxyModel::~QIdentityProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIdentityProxyModel::index
-120 (int (*)(...))QIdentityProxyModel::parent
-128 (int (*)(...))QIdentityProxyModel::sibling
-136 (int (*)(...))QIdentityProxyModel::rowCount
-144 (int (*)(...))QIdentityProxyModel::columnCount
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QIdentityProxyModel::headerData
-184 (int (*)(...))QAbstractProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QIdentityProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QIdentityProxyModel::insertRows
-264 (int (*)(...))QIdentityProxyModel::insertColumns
-272 (int (*)(...))QIdentityProxyModel::removeRows
-280 (int (*)(...))QIdentityProxyModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QAbstractProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QIdentityProxyModel::match
-352 (int (*)(...))QAbstractProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QIdentityProxyModel::setSourceModel
-392 (int (*)(...))QIdentityProxyModel::mapToSource
-400 (int (*)(...))QIdentityProxyModel::mapFromSource
-408 (int (*)(...))QIdentityProxyModel::mapSelectionToSource
-416 (int (*)(...))QIdentityProxyModel::mapSelectionFromSource
-
-Class QIdentityProxyModel
- size=16 align=8
- base size=16 base align=8
-QIdentityProxyModel (0x0x7f64ea9fcbc8) 0
- vptr=((& QIdentityProxyModel::_ZTV19QIdentityProxyModel) + 16u)
- QAbstractProxyModel (0x0x7f64ea9fcc30) 0
- primary-for QIdentityProxyModel (0x0x7f64ea9fcbc8)
- QAbstractItemModel (0x0x7f64ea9fcc98) 0
- primary-for QAbstractProxyModel (0x0x7f64ea9fcc30)
- QObject (0x0x7f64ea979ea0) 0
- primary-for QAbstractItemModel (0x0x7f64ea9fcc98)
-
-Class QItemSelectionRange
- size=16 align=8
- base size=16 base align=8
-QItemSelectionRange (0x0x7f64ea979f60) 0
-
-Class QItemSelectionModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QItemSelectionModel::QPrivateSignal (0x0x7f64ea69a660) 0 empty
-
-Vtable for QItemSelectionModel
-QItemSelectionModel::_ZTV19QItemSelectionModel: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QItemSelectionModel)
-16 (int (*)(...))QItemSelectionModel::metaObject
-24 (int (*)(...))QItemSelectionModel::qt_metacast
-32 (int (*)(...))QItemSelectionModel::qt_metacall
-40 (int (*)(...))QItemSelectionModel::~QItemSelectionModel
-48 (int (*)(...))QItemSelectionModel::~QItemSelectionModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QItemSelectionModel::setCurrentIndex
-120 (int (*)(...))QItemSelectionModel::select
-128 (int (*)(...))QItemSelectionModel::select
-136 (int (*)(...))QItemSelectionModel::clear
-144 (int (*)(...))QItemSelectionModel::reset
-152 (int (*)(...))QItemSelectionModel::clearCurrentIndex
-
-Class QItemSelectionModel
- size=16 align=8
- base size=16 base align=8
-QItemSelectionModel (0x0x7f64ea6c34e0) 0
- vptr=((& QItemSelectionModel::_ZTV19QItemSelectionModel) + 16u)
- QObject (0x0x7f64ea69a600) 0
- primary-for QItemSelectionModel (0x0x7f64ea6c34e0)
-
-Class QItemSelection
- size=8 align=8
- base size=8 base align=8
-QItemSelection (0x0x7f64ea6c36e8) 0
- QList<QItemSelectionRange> (0x0x7f64ea6c3750) 0
- QListSpecialMethods<QItemSelectionRange> (0x0x7f64ea69a960) 0 empty
-
-Class QJsonValue
- size=24 align=8
- base size=20 base align=8
-QJsonValue (0x0x7f64ea69ae40) 0
-
-Class QJsonValueRef
- size=16 align=8
- base size=12 base align=8
-QJsonValueRef (0x0x7f64ea4d15a0) 0
-
-Class QJsonValuePtr
- size=24 align=8
- base size=24 base align=8
-QJsonValuePtr (0x0x7f64ea4d1ae0) 0
-
-Class QJsonValueRefPtr
- size=16 align=8
- base size=16 base align=8
-QJsonValueRefPtr (0x0x7f64ea4d1b40) 0
-
-Class QJsonArray::iterator
- size=16 align=8
- base size=12 base align=8
-QJsonArray::iterator (0x0x7f64ea4d1d20) 0
-
-Class QJsonArray::const_iterator
- size=16 align=8
- base size=12 base align=8
-QJsonArray::const_iterator (0x0x7f64ea4d1d80) 0
-
-Class QJsonArray
- size=16 align=8
- base size=16 base align=8
-QJsonArray (0x0x7f64ea4d1cc0) 0
-
-Class QJsonParseError
- size=8 align=4
- base size=8 base align=4
-QJsonParseError (0x0x7f64ea63f000) 0
-
-Class QJsonDocument
- size=8 align=8
- base size=8 base align=8
-QJsonDocument (0x0x7f64ea63f060) 0
-
-Class QJsonObject::iterator
- size=16 align=8
- base size=12 base align=8
-QJsonObject::iterator (0x0x7f64ea63f6c0) 0
-
-Class QJsonObject::const_iterator
- size=16 align=8
- base size=12 base align=8
-QJsonObject::const_iterator (0x0x7f64ea63f720) 0
-
-Class QJsonObject
- size=16 align=8
- base size=16 base align=8
-QJsonObject (0x0x7f64ea63f660) 0
-
-Class QLibrary::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLibrary::QPrivateSignal (0x0x7f64ea2f09c0) 0 empty
-
-Vtable for QLibrary
-QLibrary::_ZTV8QLibrary: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QLibrary)
-16 (int (*)(...))QLibrary::metaObject
-24 (int (*)(...))QLibrary::qt_metacast
-32 (int (*)(...))QLibrary::qt_metacall
-40 (int (*)(...))QLibrary::~QLibrary
-48 (int (*)(...))QLibrary::~QLibrary
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QLibrary
- size=32 align=8
- base size=25 base align=8
-QLibrary (0x0x7f64ea2efa90) 0
- vptr=((& QLibrary::_ZTV8QLibrary) + 16u)
- QObject (0x0x7f64ea2f0960) 0
- primary-for QLibrary (0x0x7f64ea2efa90)
-
-Class QVersionNumber::SegmentStorage
- size=8 align=8
- base size=8 base align=8
-QVersionNumber::SegmentStorage (0x0x7f64ea37f0c0) 0
-
-Class QVersionNumber
- size=8 align=8
- base size=8 base align=8
-QVersionNumber (0x0x7f64ea2f0ba0) 0
-
-Class QLibraryInfo
- size=1 align=1
- base size=0 base align=1
-QLibraryInfo (0x0x7f64ea37f5a0) 0 empty
-
-Class QPoint
- size=8 align=4
- base size=8 base align=4
-QPoint (0x0x7f64ea37f600) 0
-
-Class QPointF
- size=16 align=8
- base size=16 base align=8
-QPointF (0x0x7f64ea37f8a0) 0
-
-Class QLine
- size=16 align=4
- base size=16 base align=4
-QLine (0x0x7f64ea37fb40) 0
-
-Class QLineF
- size=32 align=8
- base size=32 base align=8
-QLineF (0x0x7f64ea0774e0) 0
-
-Class QLinkedListData
- size=32 align=8
- base size=25 base align=8
-QLinkedListData (0x0x7f64ea077e40) 0
-
-Class QLockFile
- size=8 align=8
- base size=8 base align=8
-QLockFile (0x0x7f64ea1161e0) 0
-
-Class QLoggingCategory::AtomicBools
- size=4 align=1
- base size=4 base align=1
-QLoggingCategory::AtomicBools (0x0x7f64ea116360) 0
-
-Class QLoggingCategory
- size=24 align=8
- base size=24 base align=8
-QLoggingCategory (0x0x7f64ea116300) 0
-
-Class QMargins
- size=16 align=4
- base size=16 base align=4
-QMargins (0x0x7f64ea1164e0) 0
-
-Class QMarginsF
- size=32 align=8
- base size=32 base align=8
-QMarginsF (0x0x7f64ea116780) 0
-
-Class QMessageAuthenticationCode
- size=8 align=8
- base size=8 base align=8
-QMessageAuthenticationCode (0x0x7f64ea116de0) 0
-
-Class QMetaMethod
- size=16 align=8
- base size=12 base align=8
-QMetaMethod (0x0x7f64ea116e40) 0
-
-Class QMetaEnum
- size=16 align=8
- base size=12 base align=8
-QMetaEnum (0x0x7f64e9ee5480) 0
-
-Class QMetaProperty
- size=32 align=8
- base size=32 base align=8
-QMetaProperty (0x0x7f64e9ee5780) 0
-
-Class QMetaClassInfo
- size=16 align=8
- base size=12 base align=8
-QMetaClassInfo (0x0x7f64e9ee57e0) 0
-
-Class QMimeData::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QMimeData::QPrivateSignal (0x0x7f64e9ee5ae0) 0 empty
-
-Vtable for QMimeData
-QMimeData::_ZTV9QMimeData: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QMimeData)
-16 (int (*)(...))QMimeData::metaObject
-24 (int (*)(...))QMimeData::qt_metacast
-32 (int (*)(...))QMimeData::qt_metacall
-40 (int (*)(...))QMimeData::~QMimeData
-48 (int (*)(...))QMimeData::~QMimeData
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QMimeData::hasFormat
-120 (int (*)(...))QMimeData::formats
-128 (int (*)(...))QMimeData::retrieveData
-
-Class QMimeData
- size=16 align=8
- base size=16 base align=8
-QMimeData (0x0x7f64e9e73d00) 0
- vptr=((& QMimeData::_ZTV9QMimeData) + 16u)
- QObject (0x0x7f64e9ee5a80) 0
- primary-for QMimeData (0x0x7f64e9e73d00)
-
-Class QMimeType
- size=8 align=8
- base size=8 base align=8
-QMimeType (0x0x7f64e9ee5b40) 0
-
-Class QMimeDatabase
- size=8 align=8
- base size=8 base align=8
-QMimeDatabase (0x0x7f64e9ee5e40) 0
-
-Class QObjectCleanupHandler::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QObjectCleanupHandler::QPrivateSignal (0x0x7f64e9ee5f00) 0 empty
-
-Vtable for QObjectCleanupHandler
-QObjectCleanupHandler::_ZTV21QObjectCleanupHandler: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QObjectCleanupHandler)
-16 (int (*)(...))QObjectCleanupHandler::metaObject
-24 (int (*)(...))QObjectCleanupHandler::qt_metacast
-32 (int (*)(...))QObjectCleanupHandler::qt_metacall
-40 (int (*)(...))QObjectCleanupHandler::~QObjectCleanupHandler
-48 (int (*)(...))QObjectCleanupHandler::~QObjectCleanupHandler
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QObjectCleanupHandler
- size=24 align=8
- base size=24 base align=8
-QObjectCleanupHandler (0x0x7f64e9e73f08) 0
- vptr=((& QObjectCleanupHandler::_ZTV21QObjectCleanupHandler) + 16u)
- QObject (0x0x7f64e9ee5ea0) 0
- primary-for QObjectCleanupHandler (0x0x7f64e9e73f08)
-
-Class QOperatingSystemVersion
- size=16 align=4
- base size=16 base align=4
-QOperatingSystemVersion (0x0x7f64e9ee5f60) 0
-
-Class QParallelAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QParallelAnimationGroup::QPrivateSignal (0x0x7f64e9f6e720) 0 empty
-
-Vtable for QParallelAnimationGroup
-QParallelAnimationGroup::_ZTV23QParallelAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QParallelAnimationGroup)
-16 (int (*)(...))QParallelAnimationGroup::metaObject
-24 (int (*)(...))QParallelAnimationGroup::qt_metacast
-32 (int (*)(...))QParallelAnimationGroup::qt_metacall
-40 (int (*)(...))QParallelAnimationGroup::~QParallelAnimationGroup
-48 (int (*)(...))QParallelAnimationGroup::~QParallelAnimationGroup
-56 (int (*)(...))QParallelAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QParallelAnimationGroup::duration
-120 (int (*)(...))QParallelAnimationGroup::updateCurrentTime
-128 (int (*)(...))QParallelAnimationGroup::updateState
-136 (int (*)(...))QParallelAnimationGroup::updateDirection
-
-Class QParallelAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QParallelAnimationGroup (0x0x7f64e9f74618) 0
- vptr=((& QParallelAnimationGroup::_ZTV23QParallelAnimationGroup) + 16u)
- QAnimationGroup (0x0x7f64e9f74680) 0
- primary-for QParallelAnimationGroup (0x0x7f64e9f74618)
- QAbstractAnimation (0x0x7f64e9f746e8) 0
- primary-for QAnimationGroup (0x0x7f64e9f74680)
- QObject (0x0x7f64e9f6e6c0) 0
- primary-for QAbstractAnimation (0x0x7f64e9f746e8)
-
-Class QPauseAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPauseAnimation::QPrivateSignal (0x0x7f64e9f6e7e0) 0 empty
-
-Vtable for QPauseAnimation
-QPauseAnimation::_ZTV15QPauseAnimation: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QPauseAnimation)
-16 (int (*)(...))QPauseAnimation::metaObject
-24 (int (*)(...))QPauseAnimation::qt_metacast
-32 (int (*)(...))QPauseAnimation::qt_metacall
-40 (int (*)(...))QPauseAnimation::~QPauseAnimation
-48 (int (*)(...))QPauseAnimation::~QPauseAnimation
-56 (int (*)(...))QPauseAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPauseAnimation::duration
-120 (int (*)(...))QPauseAnimation::updateCurrentTime
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QPauseAnimation
- size=16 align=8
- base size=16 base align=8
-QPauseAnimation (0x0x7f64e9f74750) 0
- vptr=((& QPauseAnimation::_ZTV15QPauseAnimation) + 16u)
- QAbstractAnimation (0x0x7f64e9f747b8) 0
- primary-for QPauseAnimation (0x0x7f64e9f74750)
- QObject (0x0x7f64e9f6e780) 0
- primary-for QAbstractAnimation (0x0x7f64e9f747b8)
-
-Class QStaticPlugin
- size=16 align=8
- base size=16 base align=8
-QStaticPlugin (0x0x7f64e9f6e9c0) 0
-
-Class QPluginLoader::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPluginLoader::QPrivateSignal (0x0x7f64e9f6ecc0) 0 empty
-
-Vtable for QPluginLoader
-QPluginLoader::_ZTV13QPluginLoader: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QPluginLoader)
-16 (int (*)(...))QPluginLoader::metaObject
-24 (int (*)(...))QPluginLoader::qt_metacast
-32 (int (*)(...))QPluginLoader::qt_metacall
-40 (int (*)(...))QPluginLoader::~QPluginLoader
-48 (int (*)(...))QPluginLoader::~QPluginLoader
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QPluginLoader
- size=32 align=8
- base size=25 base align=8
-QPluginLoader (0x0x7f64e9f749c0) 0
- vptr=((& QPluginLoader::_ZTV13QPluginLoader) + 16u)
- QObject (0x0x7f64e9f6ec60) 0
- primary-for QPluginLoader (0x0x7f64e9f749c0)
-
-Class QProcessEnvironment
- size=8 align=8
- base size=8 base align=8
-QProcessEnvironment (0x0x7f64e9f6ed20) 0
-
-Class QProcess::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QProcess::QPrivateSignal (0x0x7f64e9ff2420) 0 empty
-
-Vtable for QProcess
-QProcess::_ZTV8QProcess: 31u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QProcess)
-16 (int (*)(...))QProcess::metaObject
-24 (int (*)(...))QProcess::qt_metacast
-32 (int (*)(...))QProcess::qt_metacall
-40 (int (*)(...))QProcess::~QProcess
-48 (int (*)(...))QProcess::~QProcess
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QProcess::isSequential
-120 (int (*)(...))QProcess::open
-128 (int (*)(...))QProcess::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QProcess::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QProcess::bytesAvailable
-184 (int (*)(...))QProcess::bytesToWrite
-192 (int (*)(...))QProcess::canReadLine
-200 (int (*)(...))QProcess::waitForReadyRead
-208 (int (*)(...))QProcess::waitForBytesWritten
-216 (int (*)(...))QProcess::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QProcess::writeData
-240 (int (*)(...))QProcess::setupChildProcess
-
-Class QProcess
- size=16 align=8
- base size=16 base align=8
-QProcess (0x0x7f64e9ffc068) 0
- vptr=((& QProcess::_ZTV8QProcess) + 16u)
- QIODevice (0x0x7f64e9ffc0d0) 0
- primary-for QProcess (0x0x7f64e9ffc068)
- QObject (0x0x7f64e9ff23c0) 0
- primary-for QIODevice (0x0x7f64e9ffc0d0)
-
-Class QVariantAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QVariantAnimation::QPrivateSignal (0x0x7f64e9ff24e0) 0 empty
-
-Vtable for QVariantAnimation
-QVariantAnimation::_ZTV17QVariantAnimation: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QVariantAnimation)
-16 (int (*)(...))QVariantAnimation::metaObject
-24 (int (*)(...))QVariantAnimation::qt_metacast
-32 (int (*)(...))QVariantAnimation::qt_metacall
-40 (int (*)(...))QVariantAnimation::~QVariantAnimation
-48 (int (*)(...))QVariantAnimation::~QVariantAnimation
-56 (int (*)(...))QVariantAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QVariantAnimation::duration
-120 (int (*)(...))QVariantAnimation::updateCurrentTime
-128 (int (*)(...))QVariantAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-144 (int (*)(...))QVariantAnimation::updateCurrentValue
-152 (int (*)(...))QVariantAnimation::interpolated
-
-Class QVariantAnimation
- size=16 align=8
- base size=16 base align=8
-QVariantAnimation (0x0x7f64e9ffc138) 0
- vptr=((& QVariantAnimation::_ZTV17QVariantAnimation) + 16u)
- QAbstractAnimation (0x0x7f64e9ffc1a0) 0
- primary-for QVariantAnimation (0x0x7f64e9ffc138)
- QObject (0x0x7f64e9ff2480) 0
- primary-for QAbstractAnimation (0x0x7f64e9ffc1a0)
-
-Class QPropertyAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPropertyAnimation::QPrivateSignal (0x0x7f64e9ff25a0) 0 empty
-
-Vtable for QPropertyAnimation
-QPropertyAnimation::_ZTV18QPropertyAnimation: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QPropertyAnimation)
-16 (int (*)(...))QPropertyAnimation::metaObject
-24 (int (*)(...))QPropertyAnimation::qt_metacast
-32 (int (*)(...))QPropertyAnimation::qt_metacall
-40 (int (*)(...))QPropertyAnimation::~QPropertyAnimation
-48 (int (*)(...))QPropertyAnimation::~QPropertyAnimation
-56 (int (*)(...))QPropertyAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QVariantAnimation::duration
-120 (int (*)(...))QVariantAnimation::updateCurrentTime
-128 (int (*)(...))QPropertyAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-144 (int (*)(...))QPropertyAnimation::updateCurrentValue
-152 (int (*)(...))QVariantAnimation::interpolated
-
-Class QPropertyAnimation
- size=16 align=8
- base size=16 base align=8
-QPropertyAnimation (0x0x7f64e9ffc270) 0
- vptr=((& QPropertyAnimation::_ZTV18QPropertyAnimation) + 16u)
- QVariantAnimation (0x0x7f64e9ffc2d8) 0
- primary-for QPropertyAnimation (0x0x7f64e9ffc270)
- QAbstractAnimation (0x0x7f64e9ffc340) 0
- primary-for QVariantAnimation (0x0x7f64e9ffc2d8)
- QObject (0x0x7f64e9ff2540) 0
- primary-for QAbstractAnimation (0x0x7f64e9ffc340)
-
-Class QRandomGenerator::Storage
- size=2504 align=8
- base size=2504 base align=8
-QRandomGenerator::Storage (0x0x7f64e9ff26c0) 0
-
-Class QRandomGenerator
- size=2512 align=8
- base size=2512 base align=8
-QRandomGenerator (0x0x7f64e9ff2660) 0
-
-Class QRandomGenerator64
- size=2512 align=8
- base size=2512 base align=8
-QRandomGenerator64 (0x0x7f64e9cdc618) 0
- QRandomGenerator (0x0x7f64e9cdf660) 0
-
-Class QReadWriteLock
- size=8 align=8
- base size=8 base align=8
-QReadWriteLock (0x0x7f64e9cdf720) 0
-
-Class QReadLocker
- size=8 align=8
- base size=8 base align=8
-QReadLocker (0x0x7f64e9cdf9c0) 0
-
-Class QWriteLocker
- size=8 align=8
- base size=8 base align=8
-QWriteLocker (0x0x7f64e9cdfa80) 0
-
-Class QSize
- size=8 align=4
- base size=8 base align=4
-QSize (0x0x7f64e9cdfb40) 0
-
-Class QSizeF
- size=16 align=8
- base size=16 base align=8
-QSizeF (0x0x7f64e9cdfde0) 0
-
-Class QRect
- size=16 align=4
- base size=16 base align=4
-QRect (0x0x7f64e9df80c0) 0
-
-Class QRectF
- size=32 align=8
- base size=32 base align=8
-QRectF (0x0x7f64e9df8360) 0
-
-Class QRegularExpression
- size=8 align=8
- base size=8 base align=8
-QRegularExpression (0x0x7f64e9df8600) 0
-
-Class QRegularExpressionMatch
- size=8 align=8
- base size=8 base align=8
-QRegularExpressionMatch (0x0x7f64e9df8c00) 0
-
-Class QRegularExpressionMatchIterator
- size=8 align=8
- base size=8 base align=8
-QRegularExpressionMatchIterator (0x0x7f64e9df8f00) 0
-
-Class QResource
- size=8 align=8
- base size=8 base align=8
-QResource (0x0x7f64e9bfc240) 0
-
-Class QSaveFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSaveFile::QPrivateSignal (0x0x7f64e9bfc3c0) 0 empty
-
-Vtable for QSaveFile
-QSaveFile::_ZTV9QSaveFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSaveFile)
-16 (int (*)(...))QSaveFile::metaObject
-24 (int (*)(...))QSaveFile::qt_metacast
-32 (int (*)(...))QSaveFile::qt_metacall
-40 (int (*)(...))QSaveFile::~QSaveFile
-48 (int (*)(...))QSaveFile::~QSaveFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QSaveFile::open
-128 (int (*)(...))QSaveFile::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFileDevice::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QSaveFile::writeData
-240 (int (*)(...))QSaveFile::fileName
-248 (int (*)(...))QFileDevice::resize
-256 (int (*)(...))QFileDevice::permissions
-264 (int (*)(...))QFileDevice::setPermissions
-
-Class QSaveFile
- size=16 align=8
- base size=16 base align=8
-QSaveFile (0x0x7f64e9ae6820) 0
- vptr=((& QSaveFile::_ZTV9QSaveFile) + 16u)
- QFileDevice (0x0x7f64e9ae6888) 0
- primary-for QSaveFile (0x0x7f64e9ae6820)
- QIODevice (0x0x7f64e9ae68f0) 0
- primary-for QFileDevice (0x0x7f64e9ae6888)
- QObject (0x0x7f64e9bfc360) 0
- primary-for QIODevice (0x0x7f64e9ae68f0)
-
-Class QSemaphore
- size=8 align=8
- base size=8 base align=8
-QSemaphore (0x0x7f64e9bfc480) 0
-
-Class QSemaphoreReleaser
- size=16 align=8
- base size=12 base align=8
-QSemaphoreReleaser (0x0x7f64e9bfc600) 0
-
-Class QSequentialAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSequentialAnimationGroup::QPrivateSignal (0x0x7f64e9942c00) 0 empty
-
-Vtable for QSequentialAnimationGroup
-QSequentialAnimationGroup::_ZTV25QSequentialAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QSequentialAnimationGroup)
-16 (int (*)(...))QSequentialAnimationGroup::metaObject
-24 (int (*)(...))QSequentialAnimationGroup::qt_metacast
-32 (int (*)(...))QSequentialAnimationGroup::qt_metacall
-40 (int (*)(...))QSequentialAnimationGroup::~QSequentialAnimationGroup
-48 (int (*)(...))QSequentialAnimationGroup::~QSequentialAnimationGroup
-56 (int (*)(...))QSequentialAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSequentialAnimationGroup::duration
-120 (int (*)(...))QSequentialAnimationGroup::updateCurrentTime
-128 (int (*)(...))QSequentialAnimationGroup::updateState
-136 (int (*)(...))QSequentialAnimationGroup::updateDirection
-
-Class QSequentialAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QSequentialAnimationGroup (0x0x7f64e995e1a0) 0
- vptr=((& QSequentialAnimationGroup::_ZTV25QSequentialAnimationGroup) + 16u)
- QAnimationGroup (0x0x7f64e995e208) 0
- primary-for QSequentialAnimationGroup (0x0x7f64e995e1a0)
- QAbstractAnimation (0x0x7f64e995e270) 0
- primary-for QAnimationGroup (0x0x7f64e995e208)
- QObject (0x0x7f64e9942ba0) 0
- primary-for QAbstractAnimation (0x0x7f64e995e270)
-
-Class QSettings::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSettings::QPrivateSignal (0x0x7f64e9942cc0) 0 empty
-
-Vtable for QSettings
-QSettings::_ZTV9QSettings: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSettings)
-16 (int (*)(...))QSettings::metaObject
-24 (int (*)(...))QSettings::qt_metacast
-32 (int (*)(...))QSettings::qt_metacall
-40 (int (*)(...))QSettings::~QSettings
-48 (int (*)(...))QSettings::~QSettings
-56 (int (*)(...))QSettings::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSettings
- size=16 align=8
- base size=16 base align=8
-QSettings (0x0x7f64e995e2d8) 0
- vptr=((& QSettings::_ZTV9QSettings) + 16u)
- QObject (0x0x7f64e9942c60) 0
- primary-for QSettings (0x0x7f64e995e2d8)
-
-Class QSharedMemory::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSharedMemory::QPrivateSignal (0x0x7f64e9942d80) 0 empty
-
-Vtable for QSharedMemory
-QSharedMemory::_ZTV13QSharedMemory: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSharedMemory)
-16 (int (*)(...))QSharedMemory::metaObject
-24 (int (*)(...))QSharedMemory::qt_metacast
-32 (int (*)(...))QSharedMemory::qt_metacall
-40 (int (*)(...))QSharedMemory::~QSharedMemory
-48 (int (*)(...))QSharedMemory::~QSharedMemory
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSharedMemory
- size=16 align=8
- base size=16 base align=8
-QSharedMemory (0x0x7f64e995e340) 0
- vptr=((& QSharedMemory::_ZTV13QSharedMemory) + 16u)
- QObject (0x0x7f64e9942d20) 0
- primary-for QSharedMemory (0x0x7f64e995e340)
-
-Class QSignalMapper::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSignalMapper::QPrivateSignal (0x0x7f64e9942e40) 0 empty
-
-Vtable for QSignalMapper
-QSignalMapper::_ZTV13QSignalMapper: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSignalMapper)
-16 (int (*)(...))QSignalMapper::metaObject
-24 (int (*)(...))QSignalMapper::qt_metacast
-32 (int (*)(...))QSignalMapper::qt_metacall
-40 (int (*)(...))QSignalMapper::~QSignalMapper
-48 (int (*)(...))QSignalMapper::~QSignalMapper
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSignalMapper
- size=16 align=8
- base size=16 base align=8
-QSignalMapper (0x0x7f64e995e3a8) 0
- vptr=((& QSignalMapper::_ZTV13QSignalMapper) + 16u)
- QObject (0x0x7f64e9942de0) 0
- primary-for QSignalMapper (0x0x7f64e995e3a8)
-
-Class QSignalTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSignalTransition::QPrivateSignal (0x0x7f64e9942f00) 0 empty
-
-Vtable for QSignalTransition
-QSignalTransition::_ZTV17QSignalTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSignalTransition)
-16 (int (*)(...))QSignalTransition::metaObject
-24 (int (*)(...))QSignalTransition::qt_metacast
-32 (int (*)(...))QSignalTransition::qt_metacall
-40 (int (*)(...))QSignalTransition::~QSignalTransition
-48 (int (*)(...))QSignalTransition::~QSignalTransition
-56 (int (*)(...))QSignalTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSignalTransition::eventTest
-120 (int (*)(...))QSignalTransition::onTransition
-
-Class QSignalTransition
- size=16 align=8
- base size=16 base align=8
-QSignalTransition (0x0x7f64e995e410) 0
- vptr=((& QSignalTransition::_ZTV17QSignalTransition) + 16u)
- QAbstractTransition (0x0x7f64e995e478) 0
- primary-for QSignalTransition (0x0x7f64e995e410)
- QObject (0x0x7f64e9942ea0) 0
- primary-for QAbstractTransition (0x0x7f64e995e478)
-
-Class QSocketNotifier::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSocketNotifier::QPrivateSignal (0x0x7f64e99cf000) 0 empty
-
-Vtable for QSocketNotifier
-QSocketNotifier::_ZTV15QSocketNotifier: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSocketNotifier)
-16 (int (*)(...))QSocketNotifier::metaObject
-24 (int (*)(...))QSocketNotifier::qt_metacast
-32 (int (*)(...))QSocketNotifier::qt_metacall
-40 (int (*)(...))QSocketNotifier::~QSocketNotifier
-48 (int (*)(...))QSocketNotifier::~QSocketNotifier
-56 (int (*)(...))QSocketNotifier::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSocketNotifier
- size=16 align=8
- base size=16 base align=8
-QSocketNotifier (0x0x7f64e995e4e0) 0
- vptr=((& QSocketNotifier::_ZTV15QSocketNotifier) + 16u)
- QObject (0x0x7f64e9942f60) 0
- primary-for QSocketNotifier (0x0x7f64e995e4e0)
-
-Class QSortFilterProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSortFilterProxyModel::QPrivateSignal (0x0x7f64e99cf0c0) 0 empty
-
-Vtable for QSortFilterProxyModel
-QSortFilterProxyModel::_ZTV21QSortFilterProxyModel: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QSortFilterProxyModel)
-16 (int (*)(...))QSortFilterProxyModel::metaObject
-24 (int (*)(...))QSortFilterProxyModel::qt_metacast
-32 (int (*)(...))QSortFilterProxyModel::qt_metacall
-40 (int (*)(...))QSortFilterProxyModel::~QSortFilterProxyModel
-48 (int (*)(...))QSortFilterProxyModel::~QSortFilterProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSortFilterProxyModel::index
-120 (int (*)(...))QSortFilterProxyModel::parent
-128 (int (*)(...))QSortFilterProxyModel::sibling
-136 (int (*)(...))QSortFilterProxyModel::rowCount
-144 (int (*)(...))QSortFilterProxyModel::columnCount
-152 (int (*)(...))QSortFilterProxyModel::hasChildren
-160 (int (*)(...))QSortFilterProxyModel::data
-168 (int (*)(...))QSortFilterProxyModel::setData
-176 (int (*)(...))QSortFilterProxyModel::headerData
-184 (int (*)(...))QSortFilterProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QSortFilterProxyModel::mimeTypes
-216 (int (*)(...))QSortFilterProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QSortFilterProxyModel::dropMimeData
-240 (int (*)(...))QSortFilterProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QSortFilterProxyModel::insertRows
-264 (int (*)(...))QSortFilterProxyModel::insertColumns
-272 (int (*)(...))QSortFilterProxyModel::removeRows
-280 (int (*)(...))QSortFilterProxyModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QSortFilterProxyModel::fetchMore
-312 (int (*)(...))QSortFilterProxyModel::canFetchMore
-320 (int (*)(...))QSortFilterProxyModel::flags
-328 (int (*)(...))QSortFilterProxyModel::sort
-336 (int (*)(...))QSortFilterProxyModel::buddy
-344 (int (*)(...))QSortFilterProxyModel::match
-352 (int (*)(...))QSortFilterProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QSortFilterProxyModel::setSourceModel
-392 (int (*)(...))QSortFilterProxyModel::mapToSource
-400 (int (*)(...))QSortFilterProxyModel::mapFromSource
-408 (int (*)(...))QSortFilterProxyModel::mapSelectionToSource
-416 (int (*)(...))QSortFilterProxyModel::mapSelectionFromSource
-424 (int (*)(...))QSortFilterProxyModel::filterAcceptsRow
-432 (int (*)(...))QSortFilterProxyModel::filterAcceptsColumn
-440 (int (*)(...))QSortFilterProxyModel::lessThan
-
-Class QSortFilterProxyModel
- size=16 align=8
- base size=16 base align=8
-QSortFilterProxyModel (0x0x7f64e995e548) 0
- vptr=((& QSortFilterProxyModel::_ZTV21QSortFilterProxyModel) + 16u)
- QAbstractProxyModel (0x0x7f64e995e5b0) 0
- primary-for QSortFilterProxyModel (0x0x7f64e995e548)
- QAbstractItemModel (0x0x7f64e995e618) 0
- primary-for QAbstractProxyModel (0x0x7f64e995e5b0)
- QObject (0x0x7f64e99cf060) 0
- primary-for QAbstractItemModel (0x0x7f64e995e618)
-
-Class QStandardPaths
- size=1 align=1
- base size=0 base align=1
-QStandardPaths (0x0x7f64e99cf180) 0 empty
-
-Class QState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QState::QPrivateSignal (0x0x7f64e99cf3c0) 0 empty
-
-Vtable for QState
-QState::_ZTV6QState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QState)
-16 (int (*)(...))QState::metaObject
-24 (int (*)(...))QState::qt_metacast
-32 (int (*)(...))QState::qt_metacall
-40 (int (*)(...))QState::~QState
-48 (int (*)(...))QState::~QState
-56 (int (*)(...))QState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QState::onEntry
-120 (int (*)(...))QState::onExit
-
-Class QState
- size=16 align=8
- base size=16 base align=8
-QState (0x0x7f64e995e7b8) 0
- vptr=((& QState::_ZTV6QState) + 16u)
- QAbstractState (0x0x7f64e995e820) 0
- primary-for QState (0x0x7f64e995e7b8)
- QObject (0x0x7f64e99cf360) 0
- primary-for QAbstractState (0x0x7f64e995e820)
-
-Class QStateMachine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStateMachine::QPrivateSignal (0x0x7f64e99cf4e0) 0 empty
-
-Vtable for QStateMachine::SignalEvent
-QStateMachine::SignalEvent::_ZTVN13QStateMachine11SignalEventE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QStateMachine11SignalEventE)
-16 (int (*)(...))QStateMachine::SignalEvent::~SignalEvent
-24 (int (*)(...))QStateMachine::SignalEvent::~SignalEvent
-
-Class QStateMachine::SignalEvent
- size=48 align=8
- base size=48 base align=8
-QStateMachine::SignalEvent (0x0x7f64e995e9c0) 0
- vptr=((& QStateMachine::SignalEvent::_ZTVN13QStateMachine11SignalEventE) + 16u)
- QEvent (0x0x7f64e99cf540) 0
- primary-for QStateMachine::SignalEvent (0x0x7f64e995e9c0)
-
-Vtable for QStateMachine::WrappedEvent
-QStateMachine::WrappedEvent::_ZTVN13QStateMachine12WrappedEventE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QStateMachine12WrappedEventE)
-16 (int (*)(...))QStateMachine::WrappedEvent::~WrappedEvent
-24 (int (*)(...))QStateMachine::WrappedEvent::~WrappedEvent
-
-Class QStateMachine::WrappedEvent
- size=40 align=8
- base size=40 base align=8
-QStateMachine::WrappedEvent (0x0x7f64e995ea28) 0
- vptr=((& QStateMachine::WrappedEvent::_ZTVN13QStateMachine12WrappedEventE) + 16u)
- QEvent (0x0x7f64e99cf5a0) 0
- primary-for QStateMachine::WrappedEvent (0x0x7f64e995ea28)
-
-Vtable for QStateMachine
-QStateMachine::_ZTV13QStateMachine: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QStateMachine)
-16 (int (*)(...))QStateMachine::metaObject
-24 (int (*)(...))QStateMachine::qt_metacast
-32 (int (*)(...))QStateMachine::qt_metacall
-40 (int (*)(...))QStateMachine::~QStateMachine
-48 (int (*)(...))QStateMachine::~QStateMachine
-56 (int (*)(...))QStateMachine::event
-64 (int (*)(...))QStateMachine::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QStateMachine::onEntry
-120 (int (*)(...))QStateMachine::onExit
-128 (int (*)(...))QStateMachine::beginSelectTransitions
-136 (int (*)(...))QStateMachine::endSelectTransitions
-144 (int (*)(...))QStateMachine::beginMicrostep
-152 (int (*)(...))QStateMachine::endMicrostep
-
-Class QStateMachine
- size=16 align=8
- base size=16 base align=8
-QStateMachine (0x0x7f64e995e888) 0
- vptr=((& QStateMachine::_ZTV13QStateMachine) + 16u)
- QState (0x0x7f64e995e8f0) 0
- primary-for QStateMachine (0x0x7f64e995e888)
- QAbstractState (0x0x7f64e995e958) 0
- primary-for QState (0x0x7f64e995e8f0)
- QObject (0x0x7f64e99cf480) 0
- primary-for QAbstractState (0x0x7f64e995e958)
-
-Class QStorageInfo
- size=8 align=8
- base size=8 base align=8
-QStorageInfo (0x0x7f64e99cf600) 0
-
-Class QAbstractConcatenable
- size=1 align=1
- base size=0 base align=1
-QAbstractConcatenable (0x0x7f64e96c5540) 0 empty
-
-Class QStringListModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStringListModel::QPrivateSignal (0x0x7f64e974a900) 0 empty
-
-Vtable for QStringListModel
-QStringListModel::_ZTV16QStringListModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QStringListModel)
-16 (int (*)(...))QStringListModel::metaObject
-24 (int (*)(...))QStringListModel::qt_metacast
-32 (int (*)(...))QStringListModel::qt_metacall
-40 (int (*)(...))QStringListModel::~QStringListModel
-48 (int (*)(...))QStringListModel::~QStringListModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractListModel::index
-120 (int (*)(...))QAbstractListModel::parent
-128 (int (*)(...))QStringListModel::sibling
-136 (int (*)(...))QStringListModel::rowCount
-144 (int (*)(...))QAbstractListModel::columnCount
-152 (int (*)(...))QAbstractListModel::hasChildren
-160 (int (*)(...))QStringListModel::data
-168 (int (*)(...))QStringListModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractListModel::dropMimeData
-240 (int (*)(...))QStringListModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QStringListModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QStringListModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QStringListModel::flags
-328 (int (*)(...))QStringListModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QStringListModel
- size=24 align=8
- base size=24 base align=8
-QStringListModel (0x0x7f64e974fa28) 0
- vptr=((& QStringListModel::_ZTV16QStringListModel) + 16u)
- QAbstractListModel (0x0x7f64e974fa90) 0
- primary-for QStringListModel (0x0x7f64e974fa28)
- QAbstractItemModel (0x0x7f64e974faf8) 0
- primary-for QAbstractListModel (0x0x7f64e974fa90)
- QObject (0x0x7f64e974a8a0) 0
- primary-for QAbstractItemModel (0x0x7f64e974faf8)
-
-Class QSystemSemaphore
- size=8 align=8
- base size=8 base align=8
-QSystemSemaphore (0x0x7f64e974a960) 0
-
-Class QTemporaryDir
- size=8 align=8
- base size=8 base align=8
-QTemporaryDir (0x0x7f64e974aa20) 0
-
-Class QTemporaryFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTemporaryFile::QPrivateSignal (0x0x7f64e974ab40) 0 empty
-
-Vtable for QTemporaryFile
-QTemporaryFile::_ZTV14QTemporaryFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QTemporaryFile)
-16 (int (*)(...))QTemporaryFile::metaObject
-24 (int (*)(...))QTemporaryFile::qt_metacast
-32 (int (*)(...))QTemporaryFile::qt_metacall
-40 (int (*)(...))QTemporaryFile::~QTemporaryFile
-48 (int (*)(...))QTemporaryFile::~QTemporaryFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QTemporaryFile::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFile::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QTemporaryFile::fileName
-248 (int (*)(...))QFile::resize
-256 (int (*)(...))QFile::permissions
-264 (int (*)(...))QFile::setPermissions
-
-Class QTemporaryFile
- size=16 align=8
- base size=16 base align=8
-QTemporaryFile (0x0x7f64e974fb60) 0
- vptr=((& QTemporaryFile::_ZTV14QTemporaryFile) + 16u)
- QFile (0x0x7f64e974fbc8) 0
- primary-for QTemporaryFile (0x0x7f64e974fb60)
- QFileDevice (0x0x7f64e974fc30) 0
- primary-for QFile (0x0x7f64e974fbc8)
- QIODevice (0x0x7f64e974fc98) 0
- primary-for QFileDevice (0x0x7f64e974fc30)
- QObject (0x0x7f64e974aae0) 0
- primary-for QIODevice (0x0x7f64e974fc98)
-
-Class QTextBoundaryFinder
- size=48 align=8
- base size=48 base align=8
-QTextBoundaryFinder (0x0x7f64e974aba0) 0
-
-Class QTextCodec::ConverterState
- size=32 align=8
- base size=32 base align=8
-QTextCodec::ConverterState (0x0x7f64e974ade0) 0
-
-Vtable for QTextCodec
-QTextCodec::_ZTV10QTextCodec: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextCodec)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))QTextCodec::aliases
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 0u
-64 0u
-
-Class QTextCodec
- size=8 align=8
- base size=8 base align=8
-QTextCodec (0x0x7f64e974ad80) 0 nearly-empty
- vptr=((& QTextCodec::_ZTV10QTextCodec) + 16u)
-
-Class QTextEncoder
- size=40 align=8
- base size=40 base align=8
-QTextEncoder (0x0x7f64e9836000) 0
-
-Class QTextDecoder
- size=40 align=8
- base size=40 base align=8
-QTextDecoder (0x0x7f64e9836060) 0
-
-Class std::__mutex_base
- size=40 align=8
- base size=40 base align=8
-std::__mutex_base (0x0x7f64e98360c0) 0
-
-Class std::__recursive_mutex_base
- size=40 align=8
- base size=40 base align=8
-std::__recursive_mutex_base (0x0x7f64e9836120) 0
-
-Class std::mutex
- size=40 align=8
- base size=40 base align=8
-std::mutex (0x0x7f64e974fea0) 0
- std::__mutex_base (0x0x7f64e9836180) 0
-
-Class std::recursive_mutex
- size=40 align=8
- base size=40 base align=8
-std::recursive_mutex (0x0x7f64e974ff08) 0
- std::__recursive_mutex_base (0x0x7f64e98361e0) 0
-
-Class std::timed_mutex
- size=40 align=8
- base size=40 base align=8
-std::timed_mutex (0x0x7f64e9461690) 0
- std::__mutex_base (0x0x7f64e9836300) 0
- std::__timed_mutex_impl<std::timed_mutex> (0x0x7f64e9836360) 0 empty
-
-Class std::recursive_timed_mutex
- size=40 align=8
- base size=40 base align=8
-std::recursive_timed_mutex (0x0x7f64e947b070) 0
- std::__recursive_mutex_base (0x0x7f64e9836420) 0
- std::__timed_mutex_impl<std::recursive_timed_mutex> (0x0x7f64e9836480) 0 empty
-
-Class std::defer_lock_t
- size=1 align=1
- base size=0 base align=1
-std::defer_lock_t (0x0x7f64e98364e0) 0 empty
-
-Class std::try_to_lock_t
- size=1 align=1
- base size=0 base align=1
-std::try_to_lock_t (0x0x7f64e9836540) 0 empty
-
-Class std::adopt_lock_t
- size=1 align=1
- base size=0 base align=1
-std::adopt_lock_t (0x0x7f64e98365a0) 0 empty
-
-Class std::once_flag
- size=4 align=4
- base size=4 base align=4
-std::once_flag (0x0x7f64e98367e0) 0
-
-Vtable for __gnu_cxx::__concurrence_lock_error
-__gnu_cxx::__concurrence_lock_error::_ZTVN9__gnu_cxx24__concurrence_lock_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx24__concurrence_lock_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error
-24 (int (*)(...))__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error
-32 (int (*)(...))__gnu_cxx::__concurrence_lock_error::what
-
-Class __gnu_cxx::__concurrence_lock_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_lock_error (0x0x7f64e94c8068) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_lock_error::_ZTVN9__gnu_cxx24__concurrence_lock_errorE) + 16u)
- std::exception (0x0x7f64e98368a0) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_lock_error (0x0x7f64e94c8068)
-
-Vtable for __gnu_cxx::__concurrence_unlock_error
-__gnu_cxx::__concurrence_unlock_error::_ZTVN9__gnu_cxx26__concurrence_unlock_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx26__concurrence_unlock_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error
-24 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error
-32 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::what
-
-Class __gnu_cxx::__concurrence_unlock_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_unlock_error (0x0x7f64e94c80d0) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_unlock_error::_ZTVN9__gnu_cxx26__concurrence_unlock_errorE) + 16u)
- std::exception (0x0x7f64e9836960) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_unlock_error (0x0x7f64e94c80d0)
-
-Vtable for __gnu_cxx::__concurrence_broadcast_error
-__gnu_cxx::__concurrence_broadcast_error::_ZTVN9__gnu_cxx29__concurrence_broadcast_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx29__concurrence_broadcast_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error
-24 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error
-32 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::what
-
-Class __gnu_cxx::__concurrence_broadcast_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_broadcast_error (0x0x7f64e94c8138) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_broadcast_error::_ZTVN9__gnu_cxx29__concurrence_broadcast_errorE) + 16u)
- std::exception (0x0x7f64e9836a20) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_broadcast_error (0x0x7f64e94c8138)
-
-Vtable for __gnu_cxx::__concurrence_wait_error
-__gnu_cxx::__concurrence_wait_error::_ZTVN9__gnu_cxx24__concurrence_wait_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx24__concurrence_wait_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error
-24 (int (*)(...))__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error
-32 (int (*)(...))__gnu_cxx::__concurrence_wait_error::what
-
-Class __gnu_cxx::__concurrence_wait_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_wait_error (0x0x7f64e94c8208) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_wait_error::_ZTVN9__gnu_cxx24__concurrence_wait_errorE) + 16u)
- std::exception (0x0x7f64e9836ae0) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_wait_error (0x0x7f64e94c8208)
-
-Class __gnu_cxx::__mutex
- size=40 align=8
- base size=40 base align=8
-__gnu_cxx::__mutex (0x0x7f64e9836ba0) 0
-
-Class __gnu_cxx::__recursive_mutex
- size=40 align=8
- base size=40 base align=8
-__gnu_cxx::__recursive_mutex (0x0x7f64e9836c00) 0
-
-Class __gnu_cxx::__scoped_lock
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__scoped_lock (0x0x7f64e9836c60) 0
-
-Class __gnu_cxx::__cond
- size=48 align=8
- base size=48 base align=8
-__gnu_cxx::__cond (0x0x7f64e9836cc0) 0
-
-Vtable for std::bad_weak_ptr
-std::bad_weak_ptr::_ZTVSt12bad_weak_ptr: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12bad_weak_ptr)
-16 (int (*)(...))std::bad_weak_ptr::~bad_weak_ptr
-24 (int (*)(...))std::bad_weak_ptr::~bad_weak_ptr
-32 (int (*)(...))std::bad_weak_ptr::what
-
-Class std::bad_weak_ptr
- size=8 align=8
- base size=8 base align=8
-std::bad_weak_ptr (0x0x7f64e94c84e0) 0 nearly-empty
- vptr=((& std::bad_weak_ptr::_ZTVSt12bad_weak_ptr) + 16u)
- std::exception (0x0x7f64e958a060) 0 nearly-empty
- primary-for std::bad_weak_ptr (0x0x7f64e94c84e0)
-
-Class std::_Sp_make_shared_tag
- size=1 align=1
- base size=0 base align=1
-std::_Sp_make_shared_tag (0x0x7f64e958a8a0) 0 empty
-
-Class std::_Sp_locker
- size=2 align=1
- base size=2 base align=1
-std::_Sp_locker (0x0x7f64e93060c0) 0
-
-Class std::thread::id
- size=8 align=8
- base size=8 base align=8
-std::thread::id (0x0x7f64e93062a0) 0
-
-Vtable for std::thread::_Impl_base
-std::thread::_Impl_base::_ZTVNSt6thread10_Impl_baseE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt6thread10_Impl_baseE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class std::thread::_Impl_base
- size=24 align=8
- base size=24 base align=8
-std::thread::_Impl_base (0x0x7f64e9306300) 0
- vptr=((& std::thread::_Impl_base::_ZTVNSt6thread10_Impl_baseE) + 16u)
-
-Class std::thread
- size=8 align=8
- base size=8 base align=8
-std::thread (0x0x7f64e9306240) 0
-
-Class std::condition_variable
- size=48 align=8
- base size=48 base align=8
-std::condition_variable (0x0x7f64e9082f00) 0
-
-Class std::__at_thread_exit_elt
- size=16 align=8
- base size=16 base align=8
-std::__at_thread_exit_elt (0x0x7f64e90e4000) 0
-
-Class std::_V2::condition_variable_any
- size=64 align=8
- base size=64 base align=8
-std::_V2::condition_variable_any (0x0x7f64e90e4060) 0
-
-Class std::__atomic_futex_unsigned_base
- size=1 align=1
- base size=0 base align=1
-std::__atomic_futex_unsigned_base (0x0x7f64e916f6c0) 0 empty
-
-Vtable for std::future_error
-std::future_error::_ZTVSt12future_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12future_error)
-16 (int (*)(...))std::future_error::~future_error
-24 (int (*)(...))std::future_error::~future_error
-32 (int (*)(...))std::future_error::what
-
-Class std::future_error
- size=32 align=8
- base size=32 base align=8
-std::future_error (0x0x7f64e9170820) 0
- vptr=((& std::future_error::_ZTVSt12future_error) + 16u)
- std::logic_error (0x0x7f64e9170888) 0
- primary-for std::future_error (0x0x7f64e9170820)
- std::exception (0x0x7f64e916f7e0) 0 nearly-empty
- primary-for std::logic_error (0x0x7f64e9170888)
-
-Class std::__future_base::_Result_base::_Deleter
- size=1 align=1
- base size=0 base align=1
-std::__future_base::_Result_base::_Deleter (0x0x7f64e916f900) 0 empty
-
-Vtable for std::__future_base::_Result_base
-std::__future_base::_Result_base::_ZTVNSt13__future_base12_Result_baseE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base12_Result_baseE)
-16 (int (*)(...))__cxa_pure_virtual
-24 0u
-32 0u
-
-Class std::__future_base::_Result_base
- size=16 align=8
- base size=16 base align=8
-std::__future_base::_Result_base (0x0x7f64e916f8a0) 0
- vptr=((& std::__future_base::_Result_base::_ZTVNSt13__future_base12_Result_baseE) + 16u)
-
-Class std::__future_base::_State_baseV2::__exception_ptr_tag
- size=1 align=1
- base size=0 base align=1
-std::__future_base::_State_baseV2::__exception_ptr_tag (0x0x7f64e8e28e40) 0 empty
-
-Class std::__future_base::_State_baseV2::_Make_ready
- size=32 align=8
- base size=32 base align=8
-std::__future_base::_State_baseV2::_Make_ready (0x0x7f64e8e2be38) 0
- std::__at_thread_exit_elt (0x0x7f64e8e28f00) 0
-
-Vtable for std::__future_base::_State_baseV2
-std::__future_base::_State_baseV2::_ZTVNSt13__future_base13_State_baseV2E: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base13_State_baseV2E)
-16 (int (*)(...))std::__future_base::_State_baseV2::~_State_baseV2
-24 (int (*)(...))std::__future_base::_State_baseV2::~_State_baseV2
-32 (int (*)(...))std::__future_base::_State_baseV2::_M_complete_async
-40 (int (*)(...))std::__future_base::_State_baseV2::_M_is_deferred_future
-
-Class std::__future_base::_State_baseV2
- size=32 align=8
- base size=28 base align=8
-std::__future_base::_State_baseV2 (0x0x7f64e916fa80) 0
- vptr=((& std::__future_base::_State_baseV2::_ZTVNSt13__future_base13_State_baseV2E) + 16u)
-
-Class std::__future_base
- size=1 align=1
- base size=0 base align=1
-std::__future_base (0x0x7f64e916f840) 0 empty
-
-Vtable for std::__future_base::_Async_state_commonV2
-std::__future_base::_Async_state_commonV2::_ZTVNSt13__future_base21_Async_state_commonV2E: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base21_Async_state_commonV2E)
-16 (int (*)(...))std::__future_base::_Async_state_commonV2::~_Async_state_commonV2
-24 (int (*)(...))std::__future_base::_Async_state_commonV2::~_Async_state_commonV2
-32 (int (*)(...))std::__future_base::_Async_state_commonV2::_M_complete_async
-40 (int (*)(...))std::__future_base::_State_baseV2::_M_is_deferred_future
-
-Class std::__future_base::_Async_state_commonV2
- size=48 align=8
- base size=44 base align=8
-std::__future_base::_Async_state_commonV2 (0x0x7f64e8c25a28) 0
- vptr=((& std::__future_base::_Async_state_commonV2::_ZTVNSt13__future_base21_Async_state_commonV2E) + 16u)
- std::__future_base::_State_baseV2 (0x0x7f64e8c11de0) 0
- primary-for std::__future_base::_Async_state_commonV2 (0x0x7f64e8c25a28)
-
-Class QThread::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QThread::QPrivateSignal (0x0x7f64e8880540) 0 empty
-
-Vtable for QThread
-QThread::_ZTV7QThread: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QThread)
-16 (int (*)(...))QThread::metaObject
-24 (int (*)(...))QThread::qt_metacast
-32 (int (*)(...))QThread::qt_metacall
-40 (int (*)(...))QThread::~QThread
-48 (int (*)(...))QThread::~QThread
-56 (int (*)(...))QThread::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QThread::run
-
-Class QThread
- size=16 align=8
- base size=16 base align=8
-QThread (0x0x7f64e88864e0) 0
- vptr=((& QThread::_ZTV7QThread) + 16u)
- QObject (0x0x7f64e88804e0) 0
- primary-for QThread (0x0x7f64e88864e0)
-
-Class QThreadPool::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QThreadPool::QPrivateSignal (0x0x7f64e8880660) 0 empty
-
-Vtable for QThreadPool
-QThreadPool::_ZTV11QThreadPool: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QThreadPool)
-16 (int (*)(...))QThreadPool::metaObject
-24 (int (*)(...))QThreadPool::qt_metacast
-32 (int (*)(...))QThreadPool::qt_metacall
-40 (int (*)(...))QThreadPool::~QThreadPool
-48 (int (*)(...))QThreadPool::~QThreadPool
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QThreadPool
- size=16 align=8
- base size=16 base align=8
-QThreadPool (0x0x7f64e8886548) 0
- vptr=((& QThreadPool::_ZTV11QThreadPool) + 16u)
- QObject (0x0x7f64e8880600) 0
- primary-for QThreadPool (0x0x7f64e8886548)
-
-Class QThreadStorageData
- size=4 align=4
- base size=4 base align=4
-QThreadStorageData (0x0x7f64e88806c0) 0
-
-Class QTimeLine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTimeLine::QPrivateSignal (0x0x7f64e88807e0) 0 empty
-
-Vtable for QTimeLine
-QTimeLine::_ZTV9QTimeLine: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QTimeLine)
-16 (int (*)(...))QTimeLine::metaObject
-24 (int (*)(...))QTimeLine::qt_metacast
-32 (int (*)(...))QTimeLine::qt_metacall
-40 (int (*)(...))QTimeLine::~QTimeLine
-48 (int (*)(...))QTimeLine::~QTimeLine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QTimeLine::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTimeLine::valueForTime
-
-Class QTimeLine
- size=16 align=8
- base size=16 base align=8
-QTimeLine (0x0x7f64e88865b0) 0
- vptr=((& QTimeLine::_ZTV9QTimeLine) + 16u)
- QObject (0x0x7f64e8880780) 0
- primary-for QTimeLine (0x0x7f64e88865b0)
-
-Class QTimer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTimer::QPrivateSignal (0x0x7f64e88808a0) 0 empty
-
-Vtable for QTimer
-QTimer::_ZTV6QTimer: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QTimer)
-16 (int (*)(...))QTimer::metaObject
-24 (int (*)(...))QTimer::qt_metacast
-32 (int (*)(...))QTimer::qt_metacall
-40 (int (*)(...))QTimer::~QTimer
-48 (int (*)(...))QTimer::~QTimer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QTimer::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTimer
- size=32 align=8
- base size=29 base align=8
-QTimer (0x0x7f64e8886618) 0
- vptr=((& QTimer::_ZTV6QTimer) + 16u)
- QObject (0x0x7f64e8880840) 0
- primary-for QTimer (0x0x7f64e8886618)
-
-Class QTimeZone::OffsetData
- size=32 align=8
- base size=28 base align=8
-QTimeZone::OffsetData (0x0x7f64e8880f60) 0
-
-Class QTimeZone
- size=8 align=8
- base size=8 base align=8
-QTimeZone (0x0x7f64e8880f00) 0
-
-Class QTranslator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTranslator::QPrivateSignal (0x0x7f64e895b540) 0 empty
-
-Vtable for QTranslator
-QTranslator::_ZTV11QTranslator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTranslator)
-16 (int (*)(...))QTranslator::metaObject
-24 (int (*)(...))QTranslator::qt_metacast
-32 (int (*)(...))QTranslator::qt_metacall
-40 (int (*)(...))QTranslator::~QTranslator
-48 (int (*)(...))QTranslator::~QTranslator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTranslator::translate
-120 (int (*)(...))QTranslator::isEmpty
-
-Class QTranslator
- size=16 align=8
- base size=16 base align=8
-QTranslator (0x0x7f64e8978068) 0
- vptr=((& QTranslator::_ZTV11QTranslator) + 16u)
- QObject (0x0x7f64e895b4e0) 0
- primary-for QTranslator (0x0x7f64e8978068)
-
-Class QUrl
- size=8 align=8
- base size=8 base align=8
-QUrl (0x0x7f64e895b660) 0
-
-Class QUrlQuery
- size=8 align=8
- base size=8 base align=8
-QUrlQuery (0x0x7f64e867dd20) 0
-
-Class QUuid
- size=16 align=4
- base size=16 base align=4
-QUuid (0x0x7f64e871f3c0) 0
-
-Class QWaitCondition
- size=8 align=8
- base size=8 base align=8
-QWaitCondition (0x0x7f64e871f9c0) 0
-
-Class QXmlStreamStringRef
- size=16 align=8
- base size=16 base align=8
-QXmlStreamStringRef (0x0x7f64e871fa20) 0
-
-Class QXmlStreamAttribute
- size=80 align=8
- base size=73 base align=8
-QXmlStreamAttribute (0x0x7f64e871fcc0) 0
-
-Class QXmlStreamAttributes
- size=8 align=8
- base size=8 base align=8
-QXmlStreamAttributes (0x0x7f64e874faf8) 0
- QVector<QXmlStreamAttribute> (0x0x7f64e87ca0c0) 0
-
-Class QXmlStreamNamespaceDeclaration
- size=40 align=8
- base size=40 base align=8
-QXmlStreamNamespaceDeclaration (0x0x7f64e87ca120) 0
-
-Class QXmlStreamNotationDeclaration
- size=56 align=8
- base size=56 base align=8
-QXmlStreamNotationDeclaration (0x0x7f64e87ca3c0) 0
-
-Class QXmlStreamEntityDeclaration
- size=88 align=8
- base size=88 base align=8
-QXmlStreamEntityDeclaration (0x0x7f64e87ca660) 0
-
-Vtable for QXmlStreamEntityResolver
-QXmlStreamEntityResolver::_ZTV24QXmlStreamEntityResolver: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QXmlStreamEntityResolver)
-16 (int (*)(...))QXmlStreamEntityResolver::~QXmlStreamEntityResolver
-24 (int (*)(...))QXmlStreamEntityResolver::~QXmlStreamEntityResolver
-32 (int (*)(...))QXmlStreamEntityResolver::resolveEntity
-40 (int (*)(...))QXmlStreamEntityResolver::resolveUndeclaredEntity
-
-Class QXmlStreamEntityResolver
- size=8 align=8
- base size=8 base align=8
-QXmlStreamEntityResolver (0x0x7f64e87ca900) 0 nearly-empty
- vptr=((& QXmlStreamEntityResolver::_ZTV24QXmlStreamEntityResolver) + 16u)
-
-Class QXmlStreamReader
- size=8 align=8
- base size=8 base align=8
-QXmlStreamReader (0x0x7f64e87ca960) 0
-
-Class QXmlStreamWriter
- size=8 align=8
- base size=8 base align=8
-QXmlStreamWriter (0x0x7f64e84c43c0) 0
-
-Class QRgba64
- size=8 align=8
- base size=8 base align=8
-QRgba64 (0x0x7f64e84c44e0) 0
-
-Class QColor
- size=16 align=4
- base size=14 base align=4
-QColor (0x0x7f64e84c4780) 0
-
-Class QRegion::QRegionData
- size=16 align=8
- base size=16 base align=8
-QRegion::QRegionData (0x0x7f64e85cc180) 0
-
-Class QRegion
- size=8 align=8
- base size=8 base align=8
-QRegion (0x0x7f64e85cc120) 0
-
-Class QKeySequence
- size=8 align=8
- base size=8 base align=8
-QKeySequence (0x0x7f64e826c4e0) 0
-
-Class QVector2D
- size=8 align=4
- base size=8 base align=4
-QVector2D (0x0x7f64e831aa20) 0
-
-Class QTouchDevice
- size=8 align=8
- base size=8 base align=8
-QTouchDevice (0x0x7f64e831acc0) 0
-
-Vtable for QInputEvent
-QInputEvent::_ZTV11QInputEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QInputEvent)
-16 (int (*)(...))QInputEvent::~QInputEvent
-24 (int (*)(...))QInputEvent::~QInputEvent
-
-Class QInputEvent
- size=32 align=8
- base size=32 base align=8
-QInputEvent (0x0x7f64e83218f0) 0
- vptr=((& QInputEvent::_ZTV11QInputEvent) + 16u)
- QEvent (0x0x7f64e831aea0) 0
- primary-for QInputEvent (0x0x7f64e83218f0)
-
-Vtable for QEnterEvent
-QEnterEvent::_ZTV11QEnterEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QEnterEvent)
-16 (int (*)(...))QEnterEvent::~QEnterEvent
-24 (int (*)(...))QEnterEvent::~QEnterEvent
-
-Class QEnterEvent
- size=72 align=8
- base size=72 base align=8
-QEnterEvent (0x0x7f64e8321958) 0
- vptr=((& QEnterEvent::_ZTV11QEnterEvent) + 16u)
- QEvent (0x0x7f64e831af00) 0
- primary-for QEnterEvent (0x0x7f64e8321958)
-
-Vtable for QMouseEvent
-QMouseEvent::_ZTV11QMouseEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QMouseEvent)
-16 (int (*)(...))QMouseEvent::~QMouseEvent
-24 (int (*)(...))QMouseEvent::~QMouseEvent
-
-Class QMouseEvent
- size=104 align=8
- base size=100 base align=8
-QMouseEvent (0x0x7f64e83219c0) 0
- vptr=((& QMouseEvent::_ZTV11QMouseEvent) + 16u)
- QInputEvent (0x0x7f64e8321a28) 0
- primary-for QMouseEvent (0x0x7f64e83219c0)
- QEvent (0x0x7f64e831af60) 0
- primary-for QInputEvent (0x0x7f64e8321a28)
-
-Vtable for QHoverEvent
-QHoverEvent::_ZTV11QHoverEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QHoverEvent)
-16 (int (*)(...))QHoverEvent::~QHoverEvent
-24 (int (*)(...))QHoverEvent::~QHoverEvent
-
-Class QHoverEvent
- size=64 align=8
- base size=64 base align=8
-QHoverEvent (0x0x7f64e8321a90) 0
- vptr=((& QHoverEvent::_ZTV11QHoverEvent) + 16u)
- QInputEvent (0x0x7f64e8321af8) 0
- primary-for QHoverEvent (0x0x7f64e8321a90)
- QEvent (0x0x7f64e83eb000) 0
- primary-for QInputEvent (0x0x7f64e8321af8)
-
-Vtable for QWheelEvent
-QWheelEvent::_ZTV11QWheelEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QWheelEvent)
-16 (int (*)(...))QWheelEvent::~QWheelEvent
-24 (int (*)(...))QWheelEvent::~QWheelEvent
-
-Class QWheelEvent
- size=96 align=8
- base size=96 base align=8
-QWheelEvent (0x0x7f64e8321b60) 0
- vptr=((& QWheelEvent::_ZTV11QWheelEvent) + 16u)
- QInputEvent (0x0x7f64e8321bc8) 0
- primary-for QWheelEvent (0x0x7f64e8321b60)
- QEvent (0x0x7f64e83eb060) 0
- primary-for QInputEvent (0x0x7f64e8321bc8)
-
-Vtable for QTabletEvent
-QTabletEvent::_ZTV12QTabletEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QTabletEvent)
-16 (int (*)(...))QTabletEvent::~QTabletEvent
-24 (int (*)(...))QTabletEvent::~QTabletEvent
-
-Class QTabletEvent
- size=128 align=8
- base size=128 base align=8
-QTabletEvent (0x0x7f64e8321c30) 0
- vptr=((& QTabletEvent::_ZTV12QTabletEvent) + 16u)
- QInputEvent (0x0x7f64e8321c98) 0
- primary-for QTabletEvent (0x0x7f64e8321c30)
- QEvent (0x0x7f64e83eb0c0) 0
- primary-for QInputEvent (0x0x7f64e8321c98)
-
-Vtable for QNativeGestureEvent
-QNativeGestureEvent::_ZTV19QNativeGestureEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QNativeGestureEvent)
-16 (int (*)(...))QNativeGestureEvent::~QNativeGestureEvent
-24 (int (*)(...))QNativeGestureEvent::~QNativeGestureEvent
-
-Class QNativeGestureEvent
- size=112 align=8
- base size=112 base align=8
-QNativeGestureEvent (0x0x7f64e8321d00) 0
- vptr=((& QNativeGestureEvent::_ZTV19QNativeGestureEvent) + 16u)
- QInputEvent (0x0x7f64e8321d68) 0
- primary-for QNativeGestureEvent (0x0x7f64e8321d00)
- QEvent (0x0x7f64e83eb120) 0
- primary-for QInputEvent (0x0x7f64e8321d68)
-
-Vtable for QKeyEvent
-QKeyEvent::_ZTV9QKeyEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QKeyEvent)
-16 (int (*)(...))QKeyEvent::~QKeyEvent
-24 (int (*)(...))QKeyEvent::~QKeyEvent
-
-Class QKeyEvent
- size=64 align=8
- base size=59 base align=8
-QKeyEvent (0x0x7f64e8321dd0) 0
- vptr=((& QKeyEvent::_ZTV9QKeyEvent) + 16u)
- QInputEvent (0x0x7f64e8321e38) 0
- primary-for QKeyEvent (0x0x7f64e8321dd0)
- QEvent (0x0x7f64e83eb180) 0
- primary-for QInputEvent (0x0x7f64e8321e38)
-
-Vtable for QFocusEvent
-QFocusEvent::_ZTV11QFocusEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFocusEvent)
-16 (int (*)(...))QFocusEvent::~QFocusEvent
-24 (int (*)(...))QFocusEvent::~QFocusEvent
-
-Class QFocusEvent
- size=24 align=8
- base size=24 base align=8
-QFocusEvent (0x0x7f64e8321ea0) 0
- vptr=((& QFocusEvent::_ZTV11QFocusEvent) + 16u)
- QEvent (0x0x7f64e83eb1e0) 0
- primary-for QFocusEvent (0x0x7f64e8321ea0)
-
-Vtable for QPaintEvent
-QPaintEvent::_ZTV11QPaintEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QPaintEvent)
-16 (int (*)(...))QPaintEvent::~QPaintEvent
-24 (int (*)(...))QPaintEvent::~QPaintEvent
-
-Class QPaintEvent
- size=56 align=8
- base size=49 base align=8
-QPaintEvent (0x0x7f64e8321f08) 0
- vptr=((& QPaintEvent::_ZTV11QPaintEvent) + 16u)
- QEvent (0x0x7f64e83eb240) 0
- primary-for QPaintEvent (0x0x7f64e8321f08)
-
-Vtable for QMoveEvent
-QMoveEvent::_ZTV10QMoveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QMoveEvent)
-16 (int (*)(...))QMoveEvent::~QMoveEvent
-24 (int (*)(...))QMoveEvent::~QMoveEvent
-
-Class QMoveEvent
- size=40 align=8
- base size=36 base align=8
-QMoveEvent (0x0x7f64e8321f70) 0
- vptr=((& QMoveEvent::_ZTV10QMoveEvent) + 16u)
- QEvent (0x0x7f64e83eb2a0) 0
- primary-for QMoveEvent (0x0x7f64e8321f70)
-
-Vtable for QExposeEvent
-QExposeEvent::_ZTV12QExposeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QExposeEvent)
-16 (int (*)(...))QExposeEvent::~QExposeEvent
-24 (int (*)(...))QExposeEvent::~QExposeEvent
-
-Class QExposeEvent
- size=32 align=8
- base size=32 base align=8
-QExposeEvent (0x0x7f64e8064000) 0
- vptr=((& QExposeEvent::_ZTV12QExposeEvent) + 16u)
- QEvent (0x0x7f64e83eb300) 0
- primary-for QExposeEvent (0x0x7f64e8064000)
-
-Vtable for QPlatformSurfaceEvent
-QPlatformSurfaceEvent::_ZTV21QPlatformSurfaceEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QPlatformSurfaceEvent)
-16 (int (*)(...))QPlatformSurfaceEvent::~QPlatformSurfaceEvent
-24 (int (*)(...))QPlatformSurfaceEvent::~QPlatformSurfaceEvent
-
-Class QPlatformSurfaceEvent
- size=24 align=8
- base size=24 base align=8
-QPlatformSurfaceEvent (0x0x7f64e8064068) 0
- vptr=((& QPlatformSurfaceEvent::_ZTV21QPlatformSurfaceEvent) + 16u)
- QEvent (0x0x7f64e83eb360) 0
- primary-for QPlatformSurfaceEvent (0x0x7f64e8064068)
-
-Vtable for QResizeEvent
-QResizeEvent::_ZTV12QResizeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QResizeEvent)
-16 (int (*)(...))QResizeEvent::~QResizeEvent
-24 (int (*)(...))QResizeEvent::~QResizeEvent
-
-Class QResizeEvent
- size=40 align=8
- base size=36 base align=8
-QResizeEvent (0x0x7f64e80640d0) 0
- vptr=((& QResizeEvent::_ZTV12QResizeEvent) + 16u)
- QEvent (0x0x7f64e83eb3c0) 0
- primary-for QResizeEvent (0x0x7f64e80640d0)
-
-Vtable for QCloseEvent
-QCloseEvent::_ZTV11QCloseEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QCloseEvent)
-16 (int (*)(...))QCloseEvent::~QCloseEvent
-24 (int (*)(...))QCloseEvent::~QCloseEvent
-
-Class QCloseEvent
- size=24 align=8
- base size=20 base align=8
-QCloseEvent (0x0x7f64e8064138) 0
- vptr=((& QCloseEvent::_ZTV11QCloseEvent) + 16u)
- QEvent (0x0x7f64e83eb420) 0
- primary-for QCloseEvent (0x0x7f64e8064138)
-
-Vtable for QIconDragEvent
-QIconDragEvent::_ZTV14QIconDragEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QIconDragEvent)
-16 (int (*)(...))QIconDragEvent::~QIconDragEvent
-24 (int (*)(...))QIconDragEvent::~QIconDragEvent
-
-Class QIconDragEvent
- size=24 align=8
- base size=20 base align=8
-QIconDragEvent (0x0x7f64e80641a0) 0
- vptr=((& QIconDragEvent::_ZTV14QIconDragEvent) + 16u)
- QEvent (0x0x7f64e83eb480) 0
- primary-for QIconDragEvent (0x0x7f64e80641a0)
-
-Vtable for QShowEvent
-QShowEvent::_ZTV10QShowEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QShowEvent)
-16 (int (*)(...))QShowEvent::~QShowEvent
-24 (int (*)(...))QShowEvent::~QShowEvent
-
-Class QShowEvent
- size=24 align=8
- base size=20 base align=8
-QShowEvent (0x0x7f64e8064208) 0
- vptr=((& QShowEvent::_ZTV10QShowEvent) + 16u)
- QEvent (0x0x7f64e83eb4e0) 0
- primary-for QShowEvent (0x0x7f64e8064208)
-
-Vtable for QHideEvent
-QHideEvent::_ZTV10QHideEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QHideEvent)
-16 (int (*)(...))QHideEvent::~QHideEvent
-24 (int (*)(...))QHideEvent::~QHideEvent
-
-Class QHideEvent
- size=24 align=8
- base size=20 base align=8
-QHideEvent (0x0x7f64e8064270) 0
- vptr=((& QHideEvent::_ZTV10QHideEvent) + 16u)
- QEvent (0x0x7f64e83eb540) 0
- primary-for QHideEvent (0x0x7f64e8064270)
-
-Vtable for QContextMenuEvent
-QContextMenuEvent::_ZTV17QContextMenuEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QContextMenuEvent)
-16 (int (*)(...))QContextMenuEvent::~QContextMenuEvent
-24 (int (*)(...))QContextMenuEvent::~QContextMenuEvent
-
-Class QContextMenuEvent
- size=56 align=8
- base size=49 base align=8
-QContextMenuEvent (0x0x7f64e80642d8) 0
- vptr=((& QContextMenuEvent::_ZTV17QContextMenuEvent) + 16u)
- QInputEvent (0x0x7f64e8064340) 0
- primary-for QContextMenuEvent (0x0x7f64e80642d8)
- QEvent (0x0x7f64e83eb5a0) 0
- primary-for QInputEvent (0x0x7f64e8064340)
-
-Class QInputMethodEvent::Attribute
- size=32 align=8
- base size=32 base align=8
-QInputMethodEvent::Attribute (0x0x7f64e83eb660) 0
-
-Vtable for QInputMethodEvent
-QInputMethodEvent::_ZTV17QInputMethodEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QInputMethodEvent)
-16 (int (*)(...))QInputMethodEvent::~QInputMethodEvent
-24 (int (*)(...))QInputMethodEvent::~QInputMethodEvent
-
-Class QInputMethodEvent
- size=56 align=8
- base size=56 base align=8
-QInputMethodEvent (0x0x7f64e80643a8) 0
- vptr=((& QInputMethodEvent::_ZTV17QInputMethodEvent) + 16u)
- QEvent (0x0x7f64e83eb600) 0
- primary-for QInputMethodEvent (0x0x7f64e80643a8)
-
-Class QInputMethodQueryEvent::QueryPair
- size=24 align=8
- base size=24 base align=8
-QInputMethodQueryEvent::QueryPair (0x0x7f64e83ebae0) 0
-
-Vtable for QInputMethodQueryEvent
-QInputMethodQueryEvent::_ZTV22QInputMethodQueryEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QInputMethodQueryEvent)
-16 (int (*)(...))QInputMethodQueryEvent::~QInputMethodQueryEvent
-24 (int (*)(...))QInputMethodQueryEvent::~QInputMethodQueryEvent
-
-Class QInputMethodQueryEvent
- size=32 align=8
- base size=32 base align=8
-QInputMethodQueryEvent (0x0x7f64e80646e8) 0
- vptr=((& QInputMethodQueryEvent::_ZTV22QInputMethodQueryEvent) + 16u)
- QEvent (0x0x7f64e83eba80) 0
- primary-for QInputMethodQueryEvent (0x0x7f64e80646e8)
-
-Vtable for QDropEvent
-QDropEvent::_ZTV10QDropEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QDropEvent)
-16 (int (*)(...))QDropEvent::~QDropEvent
-24 (int (*)(...))QDropEvent::~QDropEvent
-
-Class QDropEvent
- size=72 align=8
- base size=72 base align=8
-QDropEvent (0x0x7f64e80649c0) 0
- vptr=((& QDropEvent::_ZTV10QDropEvent) + 16u)
- QEvent (0x0x7f64e83ebe40) 0
- primary-for QDropEvent (0x0x7f64e80649c0)
-
-Vtable for QDragMoveEvent
-QDragMoveEvent::_ZTV14QDragMoveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QDragMoveEvent)
-16 (int (*)(...))QDragMoveEvent::~QDragMoveEvent
-24 (int (*)(...))QDragMoveEvent::~QDragMoveEvent
-
-Class QDragMoveEvent
- size=88 align=8
- base size=88 base align=8
-QDragMoveEvent (0x0x7f64e8064a28) 0
- vptr=((& QDragMoveEvent::_ZTV14QDragMoveEvent) + 16u)
- QDropEvent (0x0x7f64e8064a90) 0
- primary-for QDragMoveEvent (0x0x7f64e8064a28)
- QEvent (0x0x7f64e83ebea0) 0
- primary-for QDropEvent (0x0x7f64e8064a90)
-
-Vtable for QDragEnterEvent
-QDragEnterEvent::_ZTV15QDragEnterEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QDragEnterEvent)
-16 (int (*)(...))QDragEnterEvent::~QDragEnterEvent
-24 (int (*)(...))QDragEnterEvent::~QDragEnterEvent
-
-Class QDragEnterEvent
- size=88 align=8
- base size=88 base align=8
-QDragEnterEvent (0x0x7f64e8064af8) 0
- vptr=((& QDragEnterEvent::_ZTV15QDragEnterEvent) + 16u)
- QDragMoveEvent (0x0x7f64e8064b60) 0
- primary-for QDragEnterEvent (0x0x7f64e8064af8)
- QDropEvent (0x0x7f64e8064bc8) 0
- primary-for QDragMoveEvent (0x0x7f64e8064b60)
- QEvent (0x0x7f64e83ebf00) 0
- primary-for QDropEvent (0x0x7f64e8064bc8)
-
-Vtable for QDragLeaveEvent
-QDragLeaveEvent::_ZTV15QDragLeaveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QDragLeaveEvent)
-16 (int (*)(...))QDragLeaveEvent::~QDragLeaveEvent
-24 (int (*)(...))QDragLeaveEvent::~QDragLeaveEvent
-
-Class QDragLeaveEvent
- size=24 align=8
- base size=20 base align=8
-QDragLeaveEvent (0x0x7f64e8064c30) 0
- vptr=((& QDragLeaveEvent::_ZTV15QDragLeaveEvent) + 16u)
- QEvent (0x0x7f64e83ebf60) 0
- primary-for QDragLeaveEvent (0x0x7f64e8064c30)
-
-Vtable for QHelpEvent
-QHelpEvent::_ZTV10QHelpEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QHelpEvent)
-16 (int (*)(...))QHelpEvent::~QHelpEvent
-24 (int (*)(...))QHelpEvent::~QHelpEvent
-
-Class QHelpEvent
- size=40 align=8
- base size=36 base align=8
-QHelpEvent (0x0x7f64e8064c98) 0
- vptr=((& QHelpEvent::_ZTV10QHelpEvent) + 16u)
- QEvent (0x0x7f64e8132000) 0
- primary-for QHelpEvent (0x0x7f64e8064c98)
-
-Vtable for QStatusTipEvent
-QStatusTipEvent::_ZTV15QStatusTipEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QStatusTipEvent)
-16 (int (*)(...))QStatusTipEvent::~QStatusTipEvent
-24 (int (*)(...))QStatusTipEvent::~QStatusTipEvent
-
-Class QStatusTipEvent
- size=32 align=8
- base size=32 base align=8
-QStatusTipEvent (0x0x7f64e8064d00) 0
- vptr=((& QStatusTipEvent::_ZTV15QStatusTipEvent) + 16u)
- QEvent (0x0x7f64e8132060) 0
- primary-for QStatusTipEvent (0x0x7f64e8064d00)
-
-Vtable for QWhatsThisClickedEvent
-QWhatsThisClickedEvent::_ZTV22QWhatsThisClickedEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QWhatsThisClickedEvent)
-16 (int (*)(...))QWhatsThisClickedEvent::~QWhatsThisClickedEvent
-24 (int (*)(...))QWhatsThisClickedEvent::~QWhatsThisClickedEvent
-
-Class QWhatsThisClickedEvent
- size=32 align=8
- base size=32 base align=8
-QWhatsThisClickedEvent (0x0x7f64e8064d68) 0
- vptr=((& QWhatsThisClickedEvent::_ZTV22QWhatsThisClickedEvent) + 16u)
- QEvent (0x0x7f64e81320c0) 0
- primary-for QWhatsThisClickedEvent (0x0x7f64e8064d68)
-
-Vtable for QActionEvent
-QActionEvent::_ZTV12QActionEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QActionEvent)
-16 (int (*)(...))QActionEvent::~QActionEvent
-24 (int (*)(...))QActionEvent::~QActionEvent
-
-Class QActionEvent
- size=40 align=8
- base size=40 base align=8
-QActionEvent (0x0x7f64e8064dd0) 0
- vptr=((& QActionEvent::_ZTV12QActionEvent) + 16u)
- QEvent (0x0x7f64e8132120) 0
- primary-for QActionEvent (0x0x7f64e8064dd0)
-
-Vtable for QFileOpenEvent
-QFileOpenEvent::_ZTV14QFileOpenEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QFileOpenEvent)
-16 (int (*)(...))QFileOpenEvent::~QFileOpenEvent
-24 (int (*)(...))QFileOpenEvent::~QFileOpenEvent
-
-Class QFileOpenEvent
- size=40 align=8
- base size=40 base align=8
-QFileOpenEvent (0x0x7f64e8064e38) 0
- vptr=((& QFileOpenEvent::_ZTV14QFileOpenEvent) + 16u)
- QEvent (0x0x7f64e8132180) 0
- primary-for QFileOpenEvent (0x0x7f64e8064e38)
-
-Vtable for QToolBarChangeEvent
-QToolBarChangeEvent::_ZTV19QToolBarChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QToolBarChangeEvent)
-16 (int (*)(...))QToolBarChangeEvent::~QToolBarChangeEvent
-24 (int (*)(...))QToolBarChangeEvent::~QToolBarChangeEvent
-
-Class QToolBarChangeEvent
- size=24 align=8
- base size=21 base align=8
-QToolBarChangeEvent (0x0x7f64e8064ea0) 0
- vptr=((& QToolBarChangeEvent::_ZTV19QToolBarChangeEvent) + 16u)
- QEvent (0x0x7f64e81321e0) 0
- primary-for QToolBarChangeEvent (0x0x7f64e8064ea0)
-
-Vtable for QShortcutEvent
-QShortcutEvent::_ZTV14QShortcutEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QShortcutEvent)
-16 (int (*)(...))QShortcutEvent::~QShortcutEvent
-24 (int (*)(...))QShortcutEvent::~QShortcutEvent
-
-Class QShortcutEvent
- size=40 align=8
- base size=40 base align=8
-QShortcutEvent (0x0x7f64e8064f08) 0
- vptr=((& QShortcutEvent::_ZTV14QShortcutEvent) + 16u)
- QEvent (0x0x7f64e8132240) 0
- primary-for QShortcutEvent (0x0x7f64e8064f08)
-
-Vtable for QWindowStateChangeEvent
-QWindowStateChangeEvent::_ZTV23QWindowStateChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QWindowStateChangeEvent)
-16 (int (*)(...))QWindowStateChangeEvent::~QWindowStateChangeEvent
-24 (int (*)(...))QWindowStateChangeEvent::~QWindowStateChangeEvent
-
-Class QWindowStateChangeEvent
- size=32 align=8
- base size=25 base align=8
-QWindowStateChangeEvent (0x0x7f64e8064f70) 0
- vptr=((& QWindowStateChangeEvent::_ZTV23QWindowStateChangeEvent) + 16u)
- QEvent (0x0x7f64e81322a0) 0
- primary-for QWindowStateChangeEvent (0x0x7f64e8064f70)
-
-Class QPointingDeviceUniqueId
- size=8 align=8
- base size=8 base align=8
-QPointingDeviceUniqueId (0x0x7f64e8132300) 0
-
-Class QTouchEvent::TouchPoint
- size=8 align=8
- base size=8 base align=8
-QTouchEvent::TouchPoint (0x0x7f64e81329c0) 0
-
-Vtable for QTouchEvent
-QTouchEvent::_ZTV11QTouchEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTouchEvent)
-16 (int (*)(...))QTouchEvent::~QTouchEvent
-24 (int (*)(...))QTouchEvent::~QTouchEvent
-
-Class QTouchEvent
- size=72 align=8
- base size=72 base align=8
-QTouchEvent (0x0x7f64e8167618) 0
- vptr=((& QTouchEvent::_ZTV11QTouchEvent) + 16u)
- QInputEvent (0x0x7f64e8167680) 0
- primary-for QTouchEvent (0x0x7f64e8167618)
- QEvent (0x0x7f64e8132960) 0
- primary-for QInputEvent (0x0x7f64e8167680)
-
-Vtable for QScrollPrepareEvent
-QScrollPrepareEvent::_ZTV19QScrollPrepareEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QScrollPrepareEvent)
-16 (int (*)(...))QScrollPrepareEvent::~QScrollPrepareEvent
-24 (int (*)(...))QScrollPrepareEvent::~QScrollPrepareEvent
-
-Class QScrollPrepareEvent
- size=112 align=8
- base size=112 base align=8
-QScrollPrepareEvent (0x0x7f64e7d2bea0) 0
- vptr=((& QScrollPrepareEvent::_ZTV19QScrollPrepareEvent) + 16u)
- QEvent (0x0x7f64e7d59060) 0
- primary-for QScrollPrepareEvent (0x0x7f64e7d2bea0)
-
-Vtable for QScrollEvent
-QScrollEvent::_ZTV12QScrollEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QScrollEvent)
-16 (int (*)(...))QScrollEvent::~QScrollEvent
-24 (int (*)(...))QScrollEvent::~QScrollEvent
-
-Class QScrollEvent
- size=64 align=8
- base size=60 base align=8
-QScrollEvent (0x0x7f64e7d2bf08) 0
- vptr=((& QScrollEvent::_ZTV12QScrollEvent) + 16u)
- QEvent (0x0x7f64e7d590c0) 0
- primary-for QScrollEvent (0x0x7f64e7d2bf08)
-
-Vtable for QScreenOrientationChangeEvent
-QScreenOrientationChangeEvent::_ZTV29QScreenOrientationChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QScreenOrientationChangeEvent)
-16 (int (*)(...))QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent
-24 (int (*)(...))QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent
-
-Class QScreenOrientationChangeEvent
- size=40 align=8
- base size=36 base align=8
-QScreenOrientationChangeEvent (0x0x7f64e7d2bf70) 0
- vptr=((& QScreenOrientationChangeEvent::_ZTV29QScreenOrientationChangeEvent) + 16u)
- QEvent (0x0x7f64e7d59120) 0
- primary-for QScreenOrientationChangeEvent (0x0x7f64e7d2bf70)
-
-Vtable for QApplicationStateChangeEvent
-QApplicationStateChangeEvent::_ZTV28QApplicationStateChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QApplicationStateChangeEvent)
-16 (int (*)(...))QApplicationStateChangeEvent::~QApplicationStateChangeEvent
-24 (int (*)(...))QApplicationStateChangeEvent::~QApplicationStateChangeEvent
-
-Class QApplicationStateChangeEvent
- size=24 align=8
- base size=24 base align=8
-QApplicationStateChangeEvent (0x0x7f64e7d89000) 0
- vptr=((& QApplicationStateChangeEvent::_ZTV28QApplicationStateChangeEvent) + 16u)
- QEvent (0x0x7f64e7d59180) 0
- primary-for QApplicationStateChangeEvent (0x0x7f64e7d89000)
-
-Class QFont
- size=16 align=8
- base size=12 base align=8
-QFont (0x0x7f64e7d591e0) 0
-
-Class QPolygon
- size=8 align=8
- base size=8 base align=8
-QPolygon (0x0x7f64e7d89d68) 0
- QVector<QPoint> (0x0x7f64e7d59ea0) 0
-
-Class QPolygonF
- size=8 align=8
- base size=8 base align=8
-QPolygonF (0x0x7f64e7e5d138) 0
- QVector<QPointF> (0x0x7f64e7e50360) 0
-
-Class QMatrix
- size=48 align=8
- base size=48 base align=8
-QMatrix (0x0x7f64e7e50720) 0
-
-Class QPainterPath::Element
- size=24 align=8
- base size=24 base align=8
-QPainterPath::Element (0x0x7f64e7e50a20) 0
-
-Class QPainterPath
- size=8 align=8
- base size=8 base align=8
-QPainterPath (0x0x7f64e7e509c0) 0
-
-Class QPainterPathStroker
- size=8 align=8
- base size=8 base align=8
-QPainterPathStroker (0x0x7f64e7b60420) 0
-
-Class QTransform
- size=88 align=8
- base size=88 base align=8
-QTransform (0x0x7f64e7b60540) 0
-
-Vtable for QPaintDevice
-QPaintDevice::_ZTV12QPaintDevice: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QPaintDevice)
-16 0u
-24 0u
-32 (int (*)(...))QPaintDevice::devType
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPaintDevice
- size=24 align=8
- base size=24 base align=8
-QPaintDevice (0x0x7f64e7b60c60) 0
- vptr=((& QPaintDevice::_ZTV12QPaintDevice) + 16u)
-
-Class QPixelFormat
- size=8 align=8
- base size=8 base align=8
-QPixelFormat (0x0x7f64e7b60cc0) 0
-
-Vtable for QImage
-QImage::_ZTV6QImage: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QImage)
-16 (int (*)(...))QImage::~QImage
-24 (int (*)(...))QImage::~QImage
-32 (int (*)(...))QImage::devType
-40 (int (*)(...))QImage::paintEngine
-48 (int (*)(...))QImage::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QImage
- size=32 align=8
- base size=32 base align=8
-QImage (0x0x7f64e7cb6000) 0
- vptr=((& QImage::_ZTV6QImage) + 16u)
- QPaintDevice (0x0x7f64e7c87780) 0
- primary-for QImage (0x0x7f64e7cb6000)
-
-Vtable for QPixmap
-QPixmap::_ZTV7QPixmap: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QPixmap)
-16 (int (*)(...))QPixmap::~QPixmap
-24 (int (*)(...))QPixmap::~QPixmap
-32 (int (*)(...))QPixmap::devType
-40 (int (*)(...))QPixmap::paintEngine
-48 (int (*)(...))QPixmap::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPixmap
- size=32 align=8
- base size=32 base align=8
-QPixmap (0x0x7f64e795fb60) 0
- vptr=((& QPixmap::_ZTV7QPixmap) + 16u)
- QPaintDevice (0x0x7f64e7960720) 0
- primary-for QPixmap (0x0x7f64e795fb60)
-
-Class QBrush
- size=8 align=8
- base size=8 base align=8
-QBrush (0x0x7f64e7960a20) 0
-
-Class QBrushData
- size=112 align=8
- base size=112 base align=8
-QBrushData (0x0x7f64e79f91e0) 0
-
-Class QGradient
- size=64 align=8
- base size=64 base align=8
-QGradient (0x0x7f64e79f9240) 0
-
-Class QLinearGradient
- size=64 align=8
- base size=64 base align=8
-QLinearGradient (0x0x7f64e79f44e0) 0
- QGradient (0x0x7f64e79f94e0) 0
-
-Class QRadialGradient
- size=64 align=8
- base size=64 base align=8
-QRadialGradient (0x0x7f64e79f4548) 0
- QGradient (0x0x7f64e79f9540) 0
-
-Class QConicalGradient
- size=64 align=8
- base size=64 base align=8
-QConicalGradient (0x0x7f64e79f45b0) 0
- QGradient (0x0x7f64e79f95a0) 0
-
-Class QPen
- size=8 align=8
- base size=8 base align=8
-QPen (0x0x7f64e79f9600) 0
-
-Class QTextOption::Tab
- size=16 align=8
- base size=14 base align=8
-QTextOption::Tab (0x0x7f64e7ae0840) 0
-
-Class QTextOption
- size=32 align=8
- base size=32 base align=8
-QTextOption (0x0x7f64e7ae07e0) 0
-
-Class QTextLength
- size=16 align=8
- base size=16 base align=8
-QTextLength (0x0x7f64e7763000) 0
-
-Class QTextFormat
- size=16 align=8
- base size=12 base align=8
-QTextFormat (0x0x7f64e7763720) 0
-
-Class QTextCharFormat
- size=16 align=8
- base size=12 base align=8
-QTextCharFormat (0x0x7f64e77eb548) 0
- QTextFormat (0x0x7f64e77ea5a0) 0
-
-Class QTextBlockFormat
- size=16 align=8
- base size=12 base align=8
-QTextBlockFormat (0x0x7f64e77eb750) 0
- QTextFormat (0x0x7f64e77ea840) 0
-
-Class QTextListFormat
- size=16 align=8
- base size=12 base align=8
-QTextListFormat (0x0x7f64e77eb9c0) 0
- QTextFormat (0x0x7f64e77eaae0) 0
-
-Class QTextImageFormat
- size=16 align=8
- base size=12 base align=8
-QTextImageFormat (0x0x7f64e77ebbc8) 0
- QTextCharFormat (0x0x7f64e77ebc30) 0
- QTextFormat (0x0x7f64e77ead80) 0
-
-Class QTextFrameFormat
- size=16 align=8
- base size=12 base align=8
-QTextFrameFormat (0x0x7f64e77ebe38) 0
- QTextFormat (0x0x7f64e790b060) 0
-
-Class QTextTableFormat
- size=16 align=8
- base size=12 base align=8
-QTextTableFormat (0x0x7f64e7540000) 0
- QTextFrameFormat (0x0x7f64e7540068) 0
- QTextFormat (0x0x7f64e790b300) 0
-
-Class QTextTableCellFormat
- size=16 align=8
- base size=12 base align=8
-QTextTableCellFormat (0x0x7f64e7540270) 0
- QTextCharFormat (0x0x7f64e75402d8) 0
- QTextFormat (0x0x7f64e790b600) 0
-
-Class QFontDatabase
- size=8 align=8
- base size=8 base align=8
-QFontDatabase (0x0x7f64e790b8a0) 0
-
-Class QRawFont
- size=8 align=8
- base size=8 base align=8
-QRawFont (0x0x7f64e790b900) 0
-
-Class QGlyphRun
- size=8 align=8
- base size=8 base align=8
-QGlyphRun (0x0x7f64e790bde0) 0
-
-Class QTextCursor
- size=8 align=8
- base size=8 base align=8
-QTextCursor (0x0x7f64e7607120) 0
-
-Class QTextInlineObject
- size=16 align=8
- base size=16 base align=8
-QTextInlineObject (0x0x7f64e7607420) 0
-
-Class QTextLayout::FormatRange
- size=24 align=8
- base size=24 base align=8
-QTextLayout::FormatRange (0x0x7f64e76074e0) 0
-
-Class QTextLayout
- size=8 align=8
- base size=8 base align=8
-QTextLayout (0x0x7f64e7607480) 0
-
-Class QTextLine
- size=16 align=8
- base size=16 base align=8
-QTextLine (0x0x7f64e7607f00) 0
-
-Vtable for QAbstractUndoItem
-QAbstractUndoItem::_ZTV17QAbstractUndoItem: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAbstractUndoItem)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))__cxa_pure_virtual
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractUndoItem
- size=8 align=8
- base size=8 base align=8
-QAbstractUndoItem (0x0x7f64e7607f60) 0 nearly-empty
- vptr=((& QAbstractUndoItem::_ZTV17QAbstractUndoItem) + 16u)
-
-Class QTextDocument::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextDocument::QPrivateSignal (0x0x7f64e76cc060) 0 empty
-
-Vtable for QTextDocument
-QTextDocument::_ZTV13QTextDocument: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QTextDocument)
-16 (int (*)(...))QTextDocument::metaObject
-24 (int (*)(...))QTextDocument::qt_metacast
-32 (int (*)(...))QTextDocument::qt_metacall
-40 (int (*)(...))QTextDocument::~QTextDocument
-48 (int (*)(...))QTextDocument::~QTextDocument
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextDocument::clear
-120 (int (*)(...))QTextDocument::createObject
-128 (int (*)(...))QTextDocument::loadResource
-
-Class QTextDocument
- size=16 align=8
- base size=16 base align=8
-QTextDocument (0x0x7f64e76a4618) 0
- vptr=((& QTextDocument::_ZTV13QTextDocument) + 16u)
- QObject (0x0x7f64e76cc000) 0
- primary-for QTextDocument (0x0x7f64e76a4618)
-
-Class QPalette::Data
- size=4 align=4
- base size=4 base align=4
-QPalette::Data (0x0x7f64e76cc2a0) 0
-
-Class QPalette
- size=16 align=8
- base size=12 base align=8
-QPalette (0x0x7f64e76cc240) 0
-
-Class QAbstractTextDocumentLayout::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTextDocumentLayout::QPrivateSignal (0x0x7f64e73d2360) 0 empty
-
-Class QAbstractTextDocumentLayout::Selection
- size=24 align=8
- base size=24 base align=8
-QAbstractTextDocumentLayout::Selection (0x0x7f64e73d23c0) 0
-
-Class QAbstractTextDocumentLayout::PaintContext
- size=64 align=8
- base size=64 base align=8
-QAbstractTextDocumentLayout::PaintContext (0x0x7f64e73d2420) 0
-
-Vtable for QAbstractTextDocumentLayout
-QAbstractTextDocumentLayout::_ZTV27QAbstractTextDocumentLayout: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAbstractTextDocumentLayout)
-16 (int (*)(...))QAbstractTextDocumentLayout::metaObject
-24 (int (*)(...))QAbstractTextDocumentLayout::qt_metacast
-32 (int (*)(...))QAbstractTextDocumentLayout::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractTextDocumentLayout::resizeInlineObject
-176 (int (*)(...))QAbstractTextDocumentLayout::positionInlineObject
-184 (int (*)(...))QAbstractTextDocumentLayout::drawInlineObject
-
-Class QAbstractTextDocumentLayout
- size=16 align=8
- base size=16 base align=8
-QAbstractTextDocumentLayout (0x0x7f64e73d3340) 0
- vptr=((& QAbstractTextDocumentLayout::_ZTV27QAbstractTextDocumentLayout) + 16u)
- QObject (0x0x7f64e73d2300) 0
- primary-for QAbstractTextDocumentLayout (0x0x7f64e73d3340)
-
-Vtable for QTextObjectInterface
-QTextObjectInterface::_ZTV20QTextObjectInterface: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTextObjectInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QTextObjectInterface
- size=8 align=8
- base size=8 base align=8
-QTextObjectInterface (0x0x7f64e73d29c0) 0 nearly-empty
- vptr=((& QTextObjectInterface::_ZTV20QTextObjectInterface) + 16u)
-
-Class QAccessible::State
- size=8 align=8
- base size=5 base align=8
-QAccessible::State (0x0x7f64e73d2ae0) 0
-
-Vtable for QAccessible::ActivationObserver
-QAccessible::ActivationObserver::_ZTVN11QAccessible18ActivationObserverE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN11QAccessible18ActivationObserverE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessible::ActivationObserver
- size=8 align=8
- base size=8 base align=8
-QAccessible::ActivationObserver (0x0x7f64e73d2b40) 0 nearly-empty
- vptr=((& QAccessible::ActivationObserver::_ZTVN11QAccessible18ActivationObserverE) + 16u)
-
-Class QAccessible
- size=1 align=1
- base size=0 base align=1
-QAccessible (0x0x7f64e73d2a80) 0 empty
-
-Vtable for QAccessibleInterface
-QAccessibleInterface::_ZTV20QAccessibleInterface: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QAccessibleInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QAccessibleInterface::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleInterface::focusChild
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleInterface (0x0x7f64e73d2d20) 0 nearly-empty
- vptr=((& QAccessibleInterface::_ZTV20QAccessibleInterface) + 16u)
-
-Vtable for QAccessibleTextInterface
-QAccessibleTextInterface::_ZTV24QAccessibleTextInterface: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAccessibleTextInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))QAccessibleTextInterface::textBeforeOffset
-104 (int (*)(...))QAccessibleTextInterface::textAfterOffset
-112 (int (*)(...))QAccessibleTextInterface::textAtOffset
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTextInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTextInterface (0x0x7f64e73d2d80) 0 nearly-empty
- vptr=((& QAccessibleTextInterface::_ZTV24QAccessibleTextInterface) + 16u)
-
-Vtable for QAccessibleEditableTextInterface
-QAccessibleEditableTextInterface::_ZTV32QAccessibleEditableTextInterface: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI32QAccessibleEditableTextInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleEditableTextInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleEditableTextInterface (0x0x7f64e73d2de0) 0 nearly-empty
- vptr=((& QAccessibleEditableTextInterface::_ZTV32QAccessibleEditableTextInterface) + 16u)
-
-Vtable for QAccessibleValueInterface
-QAccessibleValueInterface::_ZTV25QAccessibleValueInterface: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleValueInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleValueInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleValueInterface (0x0x7f64e73d2e40) 0 nearly-empty
- vptr=((& QAccessibleValueInterface::_ZTV25QAccessibleValueInterface) + 16u)
-
-Vtable for QAccessibleTableCellInterface
-QAccessibleTableCellInterface::_ZTV29QAccessibleTableCellInterface: 12u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QAccessibleTableCellInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTableCellInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTableCellInterface (0x0x7f64e73d2ea0) 0 nearly-empty
- vptr=((& QAccessibleTableCellInterface::_ZTV29QAccessibleTableCellInterface) + 16u)
-
-Vtable for QAccessibleTableInterface
-QAccessibleTableInterface::_ZTV25QAccessibleTableInterface: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleTableInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-184 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTableInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTableInterface (0x0x7f64e73d2f00) 0 nearly-empty
- vptr=((& QAccessibleTableInterface::_ZTV25QAccessibleTableInterface) + 16u)
-
-Vtable for QAccessibleActionInterface
-QAccessibleActionInterface::_ZTV26QAccessibleActionInterface: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleActionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QAccessibleActionInterface::localizedActionName
-48 (int (*)(...))QAccessibleActionInterface::localizedActionDescription
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleActionInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleActionInterface (0x0x7f64e73d2f60) 0 nearly-empty
- vptr=((& QAccessibleActionInterface::_ZTV26QAccessibleActionInterface) + 16u)
-
-Vtable for QAccessibleImageInterface
-QAccessibleImageInterface::_ZTV25QAccessibleImageInterface: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleImageInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleImageInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleImageInterface (0x0x7f64e74df000) 0 nearly-empty
- vptr=((& QAccessibleImageInterface::_ZTV25QAccessibleImageInterface) + 16u)
-
-Vtable for QAccessibleEvent
-QAccessibleEvent::_ZTV16QAccessibleEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QAccessibleEvent)
-16 (int (*)(...))QAccessibleEvent::~QAccessibleEvent
-24 (int (*)(...))QAccessibleEvent::~QAccessibleEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleEvent
- size=32 align=8
- base size=28 base align=8
-QAccessibleEvent (0x0x7f64e74df060) 0
- vptr=((& QAccessibleEvent::_ZTV16QAccessibleEvent) + 16u)
-
-Vtable for QAccessibleStateChangeEvent
-QAccessibleStateChangeEvent::_ZTV27QAccessibleStateChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAccessibleStateChangeEvent)
-16 (int (*)(...))QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent
-24 (int (*)(...))QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleStateChangeEvent
- size=40 align=8
- base size=40 base align=8
-QAccessibleStateChangeEvent (0x0x7f64e73d3d68) 0
- vptr=((& QAccessibleStateChangeEvent::_ZTV27QAccessibleStateChangeEvent) + 16u)
- QAccessibleEvent (0x0x7f64e74df5a0) 0
- primary-for QAccessibleStateChangeEvent (0x0x7f64e73d3d68)
-
-Vtable for QAccessibleTextCursorEvent
-QAccessibleTextCursorEvent::_ZTV26QAccessibleTextCursorEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextCursorEvent)
-16 (int (*)(...))QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent
-24 (int (*)(...))QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextCursorEvent
- size=32 align=8
- base size=32 base align=8
-QAccessibleTextCursorEvent (0x0x7f64e73d3dd0) 0
- vptr=((& QAccessibleTextCursorEvent::_ZTV26QAccessibleTextCursorEvent) + 16u)
- QAccessibleEvent (0x0x7f64e74df600) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f64e73d3dd0)
-
-Vtable for QAccessibleTextSelectionEvent
-QAccessibleTextSelectionEvent::_ZTV29QAccessibleTextSelectionEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QAccessibleTextSelectionEvent)
-16 (int (*)(...))QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent
-24 (int (*)(...))QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextSelectionEvent
- size=40 align=8
- base size=40 base align=8
-QAccessibleTextSelectionEvent (0x0x7f64e73d3e38) 0
- vptr=((& QAccessibleTextSelectionEvent::_ZTV29QAccessibleTextSelectionEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7f64e73d3ea0) 0
- primary-for QAccessibleTextSelectionEvent (0x0x7f64e73d3e38)
- QAccessibleEvent (0x0x7f64e74df660) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f64e73d3ea0)
-
-Vtable for QAccessibleTextInsertEvent
-QAccessibleTextInsertEvent::_ZTV26QAccessibleTextInsertEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextInsertEvent)
-16 (int (*)(...))QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent
-24 (int (*)(...))QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextInsertEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTextInsertEvent (0x0x7f64e73d3f08) 0
- vptr=((& QAccessibleTextInsertEvent::_ZTV26QAccessibleTextInsertEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7f64e73d3f70) 0
- primary-for QAccessibleTextInsertEvent (0x0x7f64e73d3f08)
- QAccessibleEvent (0x0x7f64e74df6c0) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f64e73d3f70)
-
-Vtable for QAccessibleTextRemoveEvent
-QAccessibleTextRemoveEvent::_ZTV26QAccessibleTextRemoveEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextRemoveEvent)
-16 (int (*)(...))QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent
-24 (int (*)(...))QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextRemoveEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTextRemoveEvent (0x0x7f64e7170000) 0
- vptr=((& QAccessibleTextRemoveEvent::_ZTV26QAccessibleTextRemoveEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7f64e7170068) 0
- primary-for QAccessibleTextRemoveEvent (0x0x7f64e7170000)
- QAccessibleEvent (0x0x7f64e74df720) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f64e7170068)
-
-Vtable for QAccessibleTextUpdateEvent
-QAccessibleTextUpdateEvent::_ZTV26QAccessibleTextUpdateEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextUpdateEvent)
-16 (int (*)(...))QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent
-24 (int (*)(...))QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextUpdateEvent
- size=56 align=8
- base size=56 base align=8
-QAccessibleTextUpdateEvent (0x0x7f64e71700d0) 0
- vptr=((& QAccessibleTextUpdateEvent::_ZTV26QAccessibleTextUpdateEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7f64e7170138) 0
- primary-for QAccessibleTextUpdateEvent (0x0x7f64e71700d0)
- QAccessibleEvent (0x0x7f64e74df780) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f64e7170138)
-
-Vtable for QAccessibleValueChangeEvent
-QAccessibleValueChangeEvent::_ZTV27QAccessibleValueChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAccessibleValueChangeEvent)
-16 (int (*)(...))QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent
-24 (int (*)(...))QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleValueChangeEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleValueChangeEvent (0x0x7f64e71701a0) 0
- vptr=((& QAccessibleValueChangeEvent::_ZTV27QAccessibleValueChangeEvent) + 16u)
- QAccessibleEvent (0x0x7f64e74df7e0) 0
- primary-for QAccessibleValueChangeEvent (0x0x7f64e71701a0)
-
-Vtable for QAccessibleTableModelChangeEvent
-QAccessibleTableModelChangeEvent::_ZTV32QAccessibleTableModelChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI32QAccessibleTableModelChangeEvent)
-16 (int (*)(...))QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent
-24 (int (*)(...))QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTableModelChangeEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTableModelChangeEvent (0x0x7f64e7170208) 0
- vptr=((& QAccessibleTableModelChangeEvent::_ZTV32QAccessibleTableModelChangeEvent) + 16u)
- QAccessibleEvent (0x0x7f64e74df840) 0
- primary-for QAccessibleTableModelChangeEvent (0x0x7f64e7170208)
-
-Vtable for QAccessibleBridge
-QAccessibleBridge::_ZTV17QAccessibleBridge: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessibleBridge)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleBridge
- size=8 align=8
- base size=8 base align=8
-QAccessibleBridge (0x0x7f64e74df900) 0 nearly-empty
- vptr=((& QAccessibleBridge::_ZTV17QAccessibleBridge) + 16u)
-
-Class QAccessibleBridgePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAccessibleBridgePlugin::QPrivateSignal (0x0x7f64e74df9c0) 0 empty
-
-Vtable for QAccessibleBridgePlugin
-QAccessibleBridgePlugin::_ZTV23QAccessibleBridgePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QAccessibleBridgePlugin)
-16 (int (*)(...))QAccessibleBridgePlugin::metaObject
-24 (int (*)(...))QAccessibleBridgePlugin::qt_metacast
-32 (int (*)(...))QAccessibleBridgePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleBridgePlugin
- size=16 align=8
- base size=16 base align=8
-QAccessibleBridgePlugin (0x0x7f64e7170270) 0
- vptr=((& QAccessibleBridgePlugin::_ZTV23QAccessibleBridgePlugin) + 16u)
- QObject (0x0x7f64e74df960) 0
- primary-for QAccessibleBridgePlugin (0x0x7f64e7170270)
-
-Vtable for QAccessibleObject
-QAccessibleObject::_ZTV17QAccessibleObject: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessibleObject)
-16 0u
-24 0u
-32 (int (*)(...))QAccessibleObject::isValid
-40 (int (*)(...))QAccessibleObject::object
-48 (int (*)(...))QAccessibleInterface::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleInterface::focusChild
-72 (int (*)(...))QAccessibleObject::childAt
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QAccessibleObject::setText
-128 (int (*)(...))QAccessibleObject::rect
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleObject
- size=16 align=8
- base size=16 base align=8
-QAccessibleObject (0x0x7f64e71702d8) 0
- vptr=((& QAccessibleObject::_ZTV17QAccessibleObject) + 16u)
- QAccessibleInterface (0x0x7f64e74dfa20) 0 nearly-empty
- primary-for QAccessibleObject (0x0x7f64e71702d8)
-
-Vtable for QAccessibleApplication
-QAccessibleApplication::_ZTV22QAccessibleApplication: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QAccessibleApplication)
-16 (int (*)(...))QAccessibleApplication::~QAccessibleApplication
-24 (int (*)(...))QAccessibleApplication::~QAccessibleApplication
-32 (int (*)(...))QAccessibleObject::isValid
-40 (int (*)(...))QAccessibleObject::object
-48 (int (*)(...))QAccessibleApplication::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleApplication::focusChild
-72 (int (*)(...))QAccessibleObject::childAt
-80 (int (*)(...))QAccessibleApplication::parent
-88 (int (*)(...))QAccessibleApplication::child
-96 (int (*)(...))QAccessibleApplication::childCount
-104 (int (*)(...))QAccessibleApplication::indexOfChild
-112 (int (*)(...))QAccessibleApplication::text
-120 (int (*)(...))QAccessibleObject::setText
-128 (int (*)(...))QAccessibleObject::rect
-136 (int (*)(...))QAccessibleApplication::role
-144 (int (*)(...))QAccessibleApplication::state
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleApplication
- size=16 align=8
- base size=16 base align=8
-QAccessibleApplication (0x0x7f64e7170340) 0
- vptr=((& QAccessibleApplication::_ZTV22QAccessibleApplication) + 16u)
- QAccessibleObject (0x0x7f64e71703a8) 0
- primary-for QAccessibleApplication (0x0x7f64e7170340)
- QAccessibleInterface (0x0x7f64e74dfa80) 0 nearly-empty
- primary-for QAccessibleObject (0x0x7f64e71703a8)
-
-Class QAccessiblePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAccessiblePlugin::QPrivateSignal (0x0x7f64e74dfb40) 0 empty
-
-Vtable for QAccessiblePlugin
-QAccessiblePlugin::_ZTV17QAccessiblePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessiblePlugin)
-16 (int (*)(...))QAccessiblePlugin::metaObject
-24 (int (*)(...))QAccessiblePlugin::qt_metacast
-32 (int (*)(...))QAccessiblePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessiblePlugin
- size=16 align=8
- base size=16 base align=8
-QAccessiblePlugin (0x0x7f64e7170410) 0
- vptr=((& QAccessiblePlugin::_ZTV17QAccessiblePlugin) + 16u)
- QObject (0x0x7f64e74dfae0) 0
- primary-for QAccessiblePlugin (0x0x7f64e7170410)
-
-Class QSurfaceFormat
- size=8 align=8
- base size=8 base align=8
-QSurfaceFormat (0x0x7f64e74dfba0) 0
-
-Vtable for QSurface
-QSurface::_ZTV8QSurface: 8u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QSurface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-
-Class QSurface
- size=24 align=8
- base size=24 base align=8
-QSurface (0x0x7f64e74dfd80) 0
- vptr=((& QSurface::_ZTV8QSurface) + 16u)
-
-Class QIcon
- size=8 align=8
- base size=8 base align=8
-QIcon (0x0x7f64e74dff00) 0
-
-Class QCursor
- size=8 align=8
- base size=8 base align=8
-QCursor (0x0x7f64e72d4300) 0
-
-Class QWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QWindow::QPrivateSignal (0x0x7f64e6f5e900) 0 empty
-
-Vtable for QWindow
-QWindow::_ZTV7QWindow: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QWindow)
-16 (int (*)(...))QWindow::metaObject
-24 (int (*)(...))QWindow::qt_metacast
-32 (int (*)(...))QWindow::qt_metacall
-40 (int (*)(...))QWindow::~QWindow
-48 (int (*)(...))QWindow::~QWindow
-56 (int (*)(...))QWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI7QWindow)
-312 (int (*)(...))QWindow::_ZThn16_N7QWindowD1Ev
-320 (int (*)(...))QWindow::_ZThn16_N7QWindowD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QWindow
- size=40 align=8
- base size=40 base align=8
-QWindow (0x0x7f64e6f73230) 0
- vptr=((& QWindow::_ZTV7QWindow) + 16u)
- QObject (0x0x7f64e6f5e840) 0
- primary-for QWindow (0x0x7f64e6f73230)
- QSurface (0x0x7f64e6f5e8a0) 16
- vptr=((& QWindow::_ZTV7QWindow) + 312u)
-
-Class QBackingStore
- size=8 align=8
- base size=8 base align=8
-QBackingStore (0x0x7f64e6f5ea20) 0
-
-Vtable for QBitmap
-QBitmap::_ZTV7QBitmap: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QBitmap)
-16 (int (*)(...))QBitmap::~QBitmap
-24 (int (*)(...))QBitmap::~QBitmap
-32 (int (*)(...))QPixmap::devType
-40 (int (*)(...))QPixmap::paintEngine
-48 (int (*)(...))QPixmap::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QBitmap
- size=32 align=8
- base size=32 base align=8
-QBitmap (0x0x7f64e6f70478) 0
- vptr=((& QBitmap::_ZTV7QBitmap) + 16u)
- QPixmap (0x0x7f64e6f704e0) 0
- primary-for QBitmap (0x0x7f64e6f70478)
- QPaintDevice (0x0x7f64e6f5eae0) 0
- primary-for QPixmap (0x0x7f64e6f704e0)
-
-Class QClipboard::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QClipboard::QPrivateSignal (0x0x7f64e6f5ee40) 0 empty
-
-Vtable for QClipboard
-QClipboard::_ZTV10QClipboard: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QClipboard)
-16 (int (*)(...))QClipboard::metaObject
-24 (int (*)(...))QClipboard::qt_metacast
-32 (int (*)(...))QClipboard::qt_metacall
-40 (int (*)(...))QClipboard::~QClipboard
-48 (int (*)(...))QClipboard::~QClipboard
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QClipboard
- size=16 align=8
- base size=16 base align=8
-QClipboard (0x0x7f64e6f70750) 0
- vptr=((& QClipboard::_ZTV10QClipboard) + 16u)
- QObject (0x0x7f64e6f5ede0) 0
- primary-for QClipboard (0x0x7f64e6f70750)
-
-Class QDesktopServices
- size=1 align=1
- base size=0 base align=1
-QDesktopServices (0x0x7f64e6f5eea0) 0 empty
-
-Class QDrag::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDrag::QPrivateSignal (0x0x7f64e6f5ef60) 0 empty
-
-Vtable for QDrag
-QDrag::_ZTV5QDrag: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QDrag)
-16 (int (*)(...))QDrag::metaObject
-24 (int (*)(...))QDrag::qt_metacast
-32 (int (*)(...))QDrag::qt_metacall
-40 (int (*)(...))QDrag::~QDrag
-48 (int (*)(...))QDrag::~QDrag
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDrag
- size=16 align=8
- base size=16 base align=8
-QDrag (0x0x7f64e6f707b8) 0
- vptr=((& QDrag::_ZTV5QDrag) + 16u)
- QObject (0x0x7f64e6f5ef00) 0
- primary-for QDrag (0x0x7f64e6f707b8)
-
-Class QFontInfo
- size=8 align=8
- base size=8 base align=8
-QFontInfo (0x0x7f64e7016000) 0
-
-Class QFontMetrics
- size=8 align=8
- base size=8 base align=8
-QFontMetrics (0x0x7f64e70162a0) 0
-
-Class QFontMetricsF
- size=8 align=8
- base size=8 base align=8
-QFontMetricsF (0x0x7f64e70165a0) 0
-
-Class QGenericPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QGenericPlugin::QPrivateSignal (0x0x7f64e70cbd20) 0 empty
-
-Vtable for QGenericPlugin
-QGenericPlugin::_ZTV14QGenericPlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QGenericPlugin)
-16 (int (*)(...))QGenericPlugin::metaObject
-24 (int (*)(...))QGenericPlugin::qt_metacast
-32 (int (*)(...))QGenericPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QGenericPlugin
- size=16 align=8
- base size=16 base align=8
-QGenericPlugin (0x0x7f64e70c9270) 0
- vptr=((& QGenericPlugin::_ZTV14QGenericPlugin) + 16u)
- QObject (0x0x7f64e70cbcc0) 0
- primary-for QGenericPlugin (0x0x7f64e70c9270)
-
-Class QGenericPluginFactory
- size=1 align=1
- base size=0 base align=1
-QGenericPluginFactory (0x0x7f64e70cbd80) 0 empty
-
-Class QInputMethod::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QInputMethod::QPrivateSignal (0x0x7f64e70cbe40) 0 empty
-
-Vtable for QInputMethod
-QInputMethod::_ZTV12QInputMethod: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QInputMethod)
-16 (int (*)(...))QInputMethod::metaObject
-24 (int (*)(...))QInputMethod::qt_metacast
-32 (int (*)(...))QInputMethod::qt_metacall
-40 (int (*)(...))QInputMethod::~QInputMethod
-48 (int (*)(...))QInputMethod::~QInputMethod
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QInputMethod
- size=16 align=8
- base size=16 base align=8
-QInputMethod (0x0x7f64e70c92d8) 0
- vptr=((& QInputMethod::_ZTV12QInputMethod) + 16u)
- QObject (0x0x7f64e70cbde0) 0
- primary-for QInputMethod (0x0x7f64e70c92d8)
-
-Class QGuiApplication::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QGuiApplication::QPrivateSignal (0x0x7f64e70cbf00) 0 empty
-
-Vtable for QGuiApplication
-QGuiApplication::_ZTV15QGuiApplication: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QGuiApplication)
-16 (int (*)(...))QGuiApplication::metaObject
-24 (int (*)(...))QGuiApplication::qt_metacast
-32 (int (*)(...))QGuiApplication::qt_metacall
-40 (int (*)(...))QGuiApplication::~QGuiApplication
-48 (int (*)(...))QGuiApplication::~QGuiApplication
-56 (int (*)(...))QGuiApplication::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QGuiApplication::notify
-120 (int (*)(...))QGuiApplication::compressEvent
-
-Class QGuiApplication
- size=16 align=8
- base size=16 base align=8
-QGuiApplication (0x0x7f64e70c9340) 0
- vptr=((& QGuiApplication::_ZTV15QGuiApplication) + 16u)
- QCoreApplication (0x0x7f64e70c93a8) 0
- primary-for QGuiApplication (0x0x7f64e70c9340)
- QObject (0x0x7f64e70cbea0) 0
- primary-for QCoreApplication (0x0x7f64e70c93a8)
-
-Class QIconEngine::AvailableSizesArgument
- size=16 align=8
- base size=16 base align=8
-QIconEngine::AvailableSizesArgument (0x0x7f64e6dee480) 0
-
-Class QIconEngine::ScaledPixmapArgument
- size=56 align=8
- base size=56 base align=8
-QIconEngine::ScaledPixmapArgument (0x0x7f64e6dee600) 0
-
-Vtable for QIconEngine
-QIconEngine::_ZTV11QIconEngine: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QIconEngine)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QIconEngine::actualSize
-48 (int (*)(...))QIconEngine::pixmap
-56 (int (*)(...))QIconEngine::addPixmap
-64 (int (*)(...))QIconEngine::addFile
-72 (int (*)(...))QIconEngine::key
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))QIconEngine::read
-96 (int (*)(...))QIconEngine::write
-104 (int (*)(...))QIconEngine::availableSizes
-112 (int (*)(...))QIconEngine::iconName
-120 (int (*)(...))QIconEngine::virtual_hook
-
-Class QIconEngine
- size=8 align=8
- base size=8 base align=8
-QIconEngine (0x0x7f64e6dee420) 0 nearly-empty
- vptr=((& QIconEngine::_ZTV11QIconEngine) + 16u)
-
-Class QIconEnginePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIconEnginePlugin::QPrivateSignal (0x0x7f64e6dee6c0) 0 empty
-
-Vtable for QIconEnginePlugin
-QIconEnginePlugin::_ZTV17QIconEnginePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QIconEnginePlugin)
-16 (int (*)(...))QIconEnginePlugin::metaObject
-24 (int (*)(...))QIconEnginePlugin::qt_metacast
-32 (int (*)(...))QIconEnginePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QIconEnginePlugin
- size=16 align=8
- base size=16 base align=8
-QIconEnginePlugin (0x0x7f64e70c99c0) 0
- vptr=((& QIconEnginePlugin::_ZTV17QIconEnginePlugin) + 16u)
- QObject (0x0x7f64e6dee660) 0
- primary-for QIconEnginePlugin (0x0x7f64e70c99c0)
-
-Vtable for QImageIOHandler
-QImageIOHandler::_ZTV15QImageIOHandler: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QImageIOHandler)
-16 0u
-24 0u
-32 (int (*)(...))QImageIOHandler::name
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))QImageIOHandler::write
-64 (int (*)(...))QImageIOHandler::option
-72 (int (*)(...))QImageIOHandler::setOption
-80 (int (*)(...))QImageIOHandler::supportsOption
-88 (int (*)(...))QImageIOHandler::jumpToNextImage
-96 (int (*)(...))QImageIOHandler::jumpToImage
-104 (int (*)(...))QImageIOHandler::loopCount
-112 (int (*)(...))QImageIOHandler::imageCount
-120 (int (*)(...))QImageIOHandler::nextImageDelay
-128 (int (*)(...))QImageIOHandler::currentImageNumber
-136 (int (*)(...))QImageIOHandler::currentImageRect
-
-Class QImageIOHandler
- size=16 align=8
- base size=16 base align=8
-QImageIOHandler (0x0x7f64e6dee720) 0
- vptr=((& QImageIOHandler::_ZTV15QImageIOHandler) + 16u)
-
-Class QImageIOPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QImageIOPlugin::QPrivateSignal (0x0x7f64e6dee8a0) 0 empty
-
-Vtable for QImageIOPlugin
-QImageIOPlugin::_ZTV14QImageIOPlugin: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QImageIOPlugin)
-16 (int (*)(...))QImageIOPlugin::metaObject
-24 (int (*)(...))QImageIOPlugin::qt_metacast
-32 (int (*)(...))QImageIOPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QImageIOPlugin
- size=16 align=8
- base size=16 base align=8
-QImageIOPlugin (0x0x7f64e70c9a28) 0
- vptr=((& QImageIOPlugin::_ZTV14QImageIOPlugin) + 16u)
- QObject (0x0x7f64e6dee840) 0
- primary-for QImageIOPlugin (0x0x7f64e70c9a28)
-
-Class QImageReader
- size=8 align=8
- base size=8 base align=8
-QImageReader (0x0x7f64e6deea80) 0
-
-Class QImageWriter
- size=8 align=8
- base size=8 base align=8
-QImageWriter (0x0x7f64e6deeae0) 0
-
-Class QVector3D
- size=12 align=4
- base size=12 base align=4
-QVector3D (0x0x7f64e6deeb40) 0
-
-Class QVector4D
- size=16 align=4
- base size=16 base align=4
-QVector4D (0x0x7f64e6deede0) 0
-
-Class QQuaternion
- size=16 align=4
- base size=16 base align=4
-QQuaternion (0x0x7f64e6b250c0) 0
-
-Class QMatrix4x4
- size=68 align=4
- base size=68 base align=4
-QMatrix4x4 (0x0x7f64e6b256c0) 0
-
-Class QMovie::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QMovie::QPrivateSignal (0x0x7f64e6b25e40) 0 empty
-
-Vtable for QMovie
-QMovie::_ZTV6QMovie: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QMovie)
-16 (int (*)(...))QMovie::metaObject
-24 (int (*)(...))QMovie::qt_metacast
-32 (int (*)(...))QMovie::qt_metacall
-40 (int (*)(...))QMovie::~QMovie
-48 (int (*)(...))QMovie::~QMovie
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QMovie
- size=16 align=8
- base size=16 base align=8
-QMovie (0x0x7f64e6b7dc30) 0
- vptr=((& QMovie::_ZTV6QMovie) + 16u)
- QObject (0x0x7f64e6b25de0) 0
- primary-for QMovie (0x0x7f64e6b7dc30)
-
-Class QOffscreenSurface::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOffscreenSurface::QPrivateSignal (0x0x7f64e6b25f60) 0 empty
-
-Vtable for QOffscreenSurface
-QOffscreenSurface::_ZTV17QOffscreenSurface: 26u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QOffscreenSurface)
-16 (int (*)(...))QOffscreenSurface::metaObject
-24 (int (*)(...))QOffscreenSurface::qt_metacast
-32 (int (*)(...))QOffscreenSurface::qt_metacall
-40 (int (*)(...))QOffscreenSurface::~QOffscreenSurface
-48 (int (*)(...))QOffscreenSurface::~QOffscreenSurface
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QOffscreenSurface::surfaceType
-120 (int (*)(...))QOffscreenSurface::format
-128 (int (*)(...))QOffscreenSurface::size
-136 (int (*)(...))QOffscreenSurface::surfaceHandle
-144 (int (*)(...))-16
-152 (int (*)(...))(& _ZTI17QOffscreenSurface)
-160 (int (*)(...))QOffscreenSurface::_ZThn16_N17QOffscreenSurfaceD1Ev
-168 (int (*)(...))QOffscreenSurface::_ZThn16_N17QOffscreenSurfaceD0Ev
-176 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface6formatEv
-184 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface13surfaceHandleEv
-192 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface11surfaceTypeEv
-200 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface4sizeEv
-
-Class QOffscreenSurface
- size=40 align=8
- base size=40 base align=8
-QOffscreenSurface (0x0x7f64e6ccbd20) 0
- vptr=((& QOffscreenSurface::_ZTV17QOffscreenSurface) + 16u)
- QObject (0x0x7f64e6b25ea0) 0
- primary-for QOffscreenSurface (0x0x7f64e6ccbd20)
- QSurface (0x0x7f64e6b25f00) 16
- vptr=((& QOffscreenSurface::_ZTV17QOffscreenSurface) + 160u)
-
-Class QOpenGLBuffer
- size=8 align=8
- base size=8 base align=8
-QOpenGLBuffer (0x0x7f64e6a81060) 0
-
-Class QOpenGLVersionStatus
- size=12 align=4
- base size=12 base align=4
-QOpenGLVersionStatus (0x0x7f64e6a81240) 0
-
-Class QOpenGLVersionFunctionsBackend
- size=16 align=8
- base size=12 base align=8
-QOpenGLVersionFunctionsBackend (0x0x7f64e669dd20) 0
-
-Class QOpenGLVersionFunctionsStorage
- size=8 align=8
- base size=8 base align=8
-QOpenGLVersionFunctionsStorage (0x0x7f64e669dd80) 0
-
-Class QAbstractOpenGLFunctionsPrivate
- size=16 align=8
- base size=9 base align=8
-QAbstractOpenGLFunctionsPrivate (0x0x7f64e669dde0) 0
-
-Vtable for QAbstractOpenGLFunctions
-QAbstractOpenGLFunctions::_ZTV24QAbstractOpenGLFunctions: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAbstractOpenGLFunctions)
-16 (int (*)(...))QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions
-24 (int (*)(...))QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions
-32 (int (*)(...))QAbstractOpenGLFunctions::initializeOpenGLFunctions
-
-Class QAbstractOpenGLFunctions
- size=16 align=8
- base size=16 base align=8
-QAbstractOpenGLFunctions (0x0x7f64e669de40) 0
- vptr=((& QAbstractOpenGLFunctions::_ZTV24QAbstractOpenGLFunctions) + 16u)
-
-Class QOpenGLFunctions_1_0_CoreBackend::Functions
- size=384 align=8
- base size=384 base align=8
-QOpenGLFunctions_1_0_CoreBackend::Functions (0x0x7f64e669df00) 0
-
-Class QOpenGLFunctions_1_0_CoreBackend
- size=400 align=8
- base size=400 base align=8
-QOpenGLFunctions_1_0_CoreBackend (0x0x7f64e669eea0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e669dea0) 0
-
-Class QOpenGLFunctions_1_1_CoreBackend::Functions
- size=128 align=8
- base size=128 base align=8
-QOpenGLFunctions_1_1_CoreBackend::Functions (0x0x7f64e66e8060) 0
-
-Class QOpenGLFunctions_1_1_CoreBackend
- size=144 align=8
- base size=144 base align=8
-QOpenGLFunctions_1_1_CoreBackend (0x0x7f64e669ef08) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8000) 0
-
-Class QOpenGLFunctions_1_2_CoreBackend::Functions
- size=48 align=8
- base size=48 base align=8
-QOpenGLFunctions_1_2_CoreBackend::Functions (0x0x7f64e66e8180) 0
-
-Class QOpenGLFunctions_1_2_CoreBackend
- size=64 align=8
- base size=64 base align=8
-QOpenGLFunctions_1_2_CoreBackend (0x0x7f64e669ef70) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8120) 0
-
-Class QOpenGLFunctions_1_3_CoreBackend::Functions
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_1_3_CoreBackend::Functions (0x0x7f64e66e82a0) 0
-
-Class QOpenGLFunctions_1_3_CoreBackend
- size=88 align=8
- base size=88 base align=8
-QOpenGLFunctions_1_3_CoreBackend (0x0x7f64e66fd000) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8240) 0
-
-Class QOpenGLFunctions_1_4_CoreBackend::Functions
- size=56 align=8
- base size=56 base align=8
-QOpenGLFunctions_1_4_CoreBackend::Functions (0x0x7f64e66e8420) 0
-
-Class QOpenGLFunctions_1_4_CoreBackend
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_1_4_CoreBackend (0x0x7f64e66fd068) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e83c0) 0
-
-Class QOpenGLFunctions_1_5_CoreBackend::Functions
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_1_5_CoreBackend::Functions (0x0x7f64e66e8540) 0
-
-Class QOpenGLFunctions_1_5_CoreBackend
- size=168 align=8
- base size=168 base align=8
-QOpenGLFunctions_1_5_CoreBackend (0x0x7f64e66fd0d0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e84e0) 0
-
-Class QOpenGLFunctions_2_0_CoreBackend::Functions
- size=744 align=8
- base size=744 base align=8
-QOpenGLFunctions_2_0_CoreBackend::Functions (0x0x7f64e66e8660) 0
-
-Class QOpenGLFunctions_2_0_CoreBackend
- size=760 align=8
- base size=760 base align=8
-QOpenGLFunctions_2_0_CoreBackend (0x0x7f64e66fd138) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8600) 0
-
-Class QOpenGLFunctions_2_1_CoreBackend::Functions
- size=48 align=8
- base size=48 base align=8
-QOpenGLFunctions_2_1_CoreBackend::Functions (0x0x7f64e66e8780) 0
-
-Class QOpenGLFunctions_2_1_CoreBackend
- size=64 align=8
- base size=64 base align=8
-QOpenGLFunctions_2_1_CoreBackend (0x0x7f64e66fd1a0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8720) 0
-
-Class QOpenGLFunctions_3_0_CoreBackend::Functions
- size=672 align=8
- base size=672 base align=8
-QOpenGLFunctions_3_0_CoreBackend::Functions (0x0x7f64e66e88a0) 0
-
-Class QOpenGLFunctions_3_0_CoreBackend
- size=688 align=8
- base size=688 base align=8
-QOpenGLFunctions_3_0_CoreBackend (0x0x7f64e66fd208) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8840) 0
-
-Class QOpenGLFunctions_3_1_CoreBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_3_1_CoreBackend::Functions (0x0x7f64e66e89c0) 0
-
-Class QOpenGLFunctions_3_1_CoreBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_3_1_CoreBackend (0x0x7f64e66fd270) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8960) 0
-
-Class QOpenGLFunctions_3_2_CoreBackend::Functions
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_3_2_CoreBackend::Functions (0x0x7f64e66e8ae0) 0
-
-Class QOpenGLFunctions_3_2_CoreBackend
- size=168 align=8
- base size=168 base align=8
-QOpenGLFunctions_3_2_CoreBackend (0x0x7f64e66fd2d8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8a80) 0
-
-Class QOpenGLFunctions_3_3_CoreBackend::Functions
- size=464 align=8
- base size=464 base align=8
-QOpenGLFunctions_3_3_CoreBackend::Functions (0x0x7f64e66e8c00) 0
-
-Class QOpenGLFunctions_3_3_CoreBackend
- size=480 align=8
- base size=480 base align=8
-QOpenGLFunctions_3_3_CoreBackend (0x0x7f64e66fd340) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8ba0) 0
-
-Class QOpenGLFunctions_4_0_CoreBackend::Functions
- size=368 align=8
- base size=368 base align=8
-QOpenGLFunctions_4_0_CoreBackend::Functions (0x0x7f64e66e8d20) 0
-
-Class QOpenGLFunctions_4_0_CoreBackend
- size=384 align=8
- base size=384 base align=8
-QOpenGLFunctions_4_0_CoreBackend (0x0x7f64e66fd3a8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8cc0) 0
-
-Class QOpenGLFunctions_4_1_CoreBackend::Functions
- size=704 align=8
- base size=704 base align=8
-QOpenGLFunctions_4_1_CoreBackend::Functions (0x0x7f64e66e8e40) 0
-
-Class QOpenGLFunctions_4_1_CoreBackend
- size=720 align=8
- base size=720 base align=8
-QOpenGLFunctions_4_1_CoreBackend (0x0x7f64e66fd410) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8de0) 0
-
-Class QOpenGLFunctions_4_2_CoreBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_4_2_CoreBackend::Functions (0x0x7f64e66e8f60) 0
-
-Class QOpenGLFunctions_4_2_CoreBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_4_2_CoreBackend (0x0x7f64e66fd478) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e66e8f00) 0
-
-Class QOpenGLFunctions_4_3_CoreBackend::Functions
- size=344 align=8
- base size=344 base align=8
-QOpenGLFunctions_4_3_CoreBackend::Functions (0x0x7f64e63d40c0) 0
-
-Class QOpenGLFunctions_4_3_CoreBackend
- size=360 align=8
- base size=360 base align=8
-QOpenGLFunctions_4_3_CoreBackend (0x0x7f64e66fd4e0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4060) 0
-
-Class QOpenGLFunctions_4_4_CoreBackend::Functions
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_4_4_CoreBackend::Functions (0x0x7f64e63d41e0) 0
-
-Class QOpenGLFunctions_4_4_CoreBackend
- size=88 align=8
- base size=88 base align=8
-QOpenGLFunctions_4_4_CoreBackend (0x0x7f64e66fd548) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4180) 0
-
-Class QOpenGLFunctions_4_5_CoreBackend::Functions
- size=848 align=8
- base size=848 base align=8
-QOpenGLFunctions_4_5_CoreBackend::Functions (0x0x7f64e63d4360) 0
-
-Class QOpenGLFunctions_4_5_CoreBackend
- size=864 align=8
- base size=864 base align=8
-QOpenGLFunctions_4_5_CoreBackend (0x0x7f64e66fd5b0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4300) 0
-
-Class QOpenGLFunctions_1_0_DeprecatedBackend::Functions
- size=2064 align=8
- base size=2064 base align=8
-QOpenGLFunctions_1_0_DeprecatedBackend::Functions (0x0x7f64e63d4480) 0
-
-Class QOpenGLFunctions_1_0_DeprecatedBackend
- size=2080 align=8
- base size=2080 base align=8
-QOpenGLFunctions_1_0_DeprecatedBackend (0x0x7f64e66fd618) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4420) 0
-
-Class QOpenGLFunctions_1_1_DeprecatedBackend::Functions
- size=136 align=8
- base size=136 base align=8
-QOpenGLFunctions_1_1_DeprecatedBackend::Functions (0x0x7f64e63d45a0) 0
-
-Class QOpenGLFunctions_1_1_DeprecatedBackend
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_1_1_DeprecatedBackend (0x0x7f64e66fd680) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4540) 0
-
-Class QOpenGLFunctions_1_2_DeprecatedBackend::Functions
- size=256 align=8
- base size=256 base align=8
-QOpenGLFunctions_1_2_DeprecatedBackend::Functions (0x0x7f64e63d46c0) 0
-
-Class QOpenGLFunctions_1_2_DeprecatedBackend
- size=272 align=8
- base size=272 base align=8
-QOpenGLFunctions_1_2_DeprecatedBackend (0x0x7f64e66fd6e8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4660) 0
-
-Class QOpenGLFunctions_1_3_DeprecatedBackend::Functions
- size=296 align=8
- base size=296 base align=8
-QOpenGLFunctions_1_3_DeprecatedBackend::Functions (0x0x7f64e63d47e0) 0
-
-Class QOpenGLFunctions_1_3_DeprecatedBackend
- size=312 align=8
- base size=312 base align=8
-QOpenGLFunctions_1_3_DeprecatedBackend (0x0x7f64e66fd750) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4780) 0
-
-Class QOpenGLFunctions_1_4_DeprecatedBackend::Functions
- size=304 align=8
- base size=304 base align=8
-QOpenGLFunctions_1_4_DeprecatedBackend::Functions (0x0x7f64e63d4900) 0
-
-Class QOpenGLFunctions_1_4_DeprecatedBackend
- size=320 align=8
- base size=320 base align=8
-QOpenGLFunctions_1_4_DeprecatedBackend (0x0x7f64e66fd7b8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d48a0) 0
-
-Class QOpenGLFunctions_2_0_DeprecatedBackend::Functions
- size=288 align=8
- base size=288 base align=8
-QOpenGLFunctions_2_0_DeprecatedBackend::Functions (0x0x7f64e63d4a20) 0
-
-Class QOpenGLFunctions_2_0_DeprecatedBackend
- size=304 align=8
- base size=304 base align=8
-QOpenGLFunctions_2_0_DeprecatedBackend (0x0x7f64e66fd820) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d49c0) 0
-
-Class QOpenGLFunctions_3_0_DeprecatedBackend::Functions
- size=160 align=8
- base size=160 base align=8
-QOpenGLFunctions_3_0_DeprecatedBackend::Functions (0x0x7f64e63d4b40) 0
-
-Class QOpenGLFunctions_3_0_DeprecatedBackend
- size=176 align=8
- base size=176 base align=8
-QOpenGLFunctions_3_0_DeprecatedBackend (0x0x7f64e66fd888) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4ae0) 0
-
-Class QOpenGLFunctions_3_3_DeprecatedBackend::Functions
- size=240 align=8
- base size=240 base align=8
-QOpenGLFunctions_3_3_DeprecatedBackend::Functions (0x0x7f64e63d4c60) 0
-
-Class QOpenGLFunctions_3_3_DeprecatedBackend
- size=256 align=8
- base size=256 base align=8
-QOpenGLFunctions_3_3_DeprecatedBackend (0x0x7f64e66fd8f0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4c00) 0
-
-Class QOpenGLFunctions_4_5_DeprecatedBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_4_5_DeprecatedBackend::Functions (0x0x7f64e63d4d80) 0
-
-Class QOpenGLFunctions_4_5_DeprecatedBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_4_5_DeprecatedBackend (0x0x7f64e66fd958) 0
- QOpenGLVersionFunctionsBackend (0x0x7f64e63d4d20) 0
-
-Class QOpenGLVersionProfile
- size=8 align=8
- base size=8 base align=8
-QOpenGLVersionProfile (0x0x7f64e63d4e40) 0
-
-Class QOpenGLContextGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLContextGroup::QPrivateSignal (0x0x7f64e64fb840) 0 empty
-
-Vtable for QOpenGLContextGroup
-QOpenGLContextGroup::_ZTV19QOpenGLContextGroup: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QOpenGLContextGroup)
-16 (int (*)(...))QOpenGLContextGroup::metaObject
-24 (int (*)(...))QOpenGLContextGroup::qt_metacast
-32 (int (*)(...))QOpenGLContextGroup::qt_metacall
-40 (int (*)(...))QOpenGLContextGroup::~QOpenGLContextGroup
-48 (int (*)(...))QOpenGLContextGroup::~QOpenGLContextGroup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLContextGroup
- size=16 align=8
- base size=16 base align=8
-QOpenGLContextGroup (0x0x7f64e650a3a8) 0
- vptr=((& QOpenGLContextGroup::_ZTV19QOpenGLContextGroup) + 16u)
- QObject (0x0x7f64e64fb7e0) 0
- primary-for QOpenGLContextGroup (0x0x7f64e650a3a8)
-
-Class QOpenGLContext::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLContext::QPrivateSignal (0x0x7f64e64fb900) 0 empty
-
-Vtable for QOpenGLContext
-QOpenGLContext::_ZTV14QOpenGLContext: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QOpenGLContext)
-16 (int (*)(...))QOpenGLContext::metaObject
-24 (int (*)(...))QOpenGLContext::qt_metacast
-32 (int (*)(...))QOpenGLContext::qt_metacall
-40 (int (*)(...))QOpenGLContext::~QOpenGLContext
-48 (int (*)(...))QOpenGLContext::~QOpenGLContext
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLContext
- size=16 align=8
- base size=16 base align=8
-QOpenGLContext (0x0x7f64e650a410) 0
- vptr=((& QOpenGLContext::_ZTV14QOpenGLContext) + 16u)
- QObject (0x0x7f64e64fb8a0) 0
- primary-for QOpenGLContext (0x0x7f64e650a410)
-
-Class QOpenGLDebugMessage
- size=8 align=8
- base size=8 base align=8
-QOpenGLDebugMessage (0x0x7f64e64fb960) 0
-
-Class QOpenGLDebugLogger::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLDebugLogger::QPrivateSignal (0x0x7f64e61b7180) 0 empty
-
-Vtable for QOpenGLDebugLogger
-QOpenGLDebugLogger::_ZTV18QOpenGLDebugLogger: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLDebugLogger)
-16 (int (*)(...))QOpenGLDebugLogger::metaObject
-24 (int (*)(...))QOpenGLDebugLogger::qt_metacast
-32 (int (*)(...))QOpenGLDebugLogger::qt_metacall
-40 (int (*)(...))QOpenGLDebugLogger::~QOpenGLDebugLogger
-48 (int (*)(...))QOpenGLDebugLogger::~QOpenGLDebugLogger
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLDebugLogger
- size=16 align=8
- base size=16 base align=8
-QOpenGLDebugLogger (0x0x7f64e650a888) 0
- vptr=((& QOpenGLDebugLogger::_ZTV18QOpenGLDebugLogger) + 16u)
- QObject (0x0x7f64e61b7120) 0
- primary-for QOpenGLDebugLogger (0x0x7f64e650a888)
-
-Class QOpenGLFunctions
- size=8 align=8
- base size=8 base align=8
-QOpenGLFunctions (0x0x7f64e61b7300) 0
-
-Class QOpenGLFunctionsPrivate::Functions
- size=1152 align=8
- base size=1152 base align=8
-QOpenGLFunctionsPrivate::Functions (0x0x7f64e61b7540) 0
-
-Class QOpenGLFunctionsPrivate
- size=1152 align=8
- base size=1152 base align=8
-QOpenGLFunctionsPrivate (0x0x7f64e61b74e0) 0
-
-Class QOpenGLExtraFunctions
- size=8 align=8
- base size=8 base align=8
-QOpenGLExtraFunctions (0x0x7f64e650aaf8) 0
- QOpenGLFunctions (0x0x7f64e5f6ec60) 0
-
-Class QOpenGLExtraFunctionsPrivate::Functions
- size=1728 align=8
- base size=1728 base align=8
-QOpenGLExtraFunctionsPrivate::Functions (0x0x7f64e5f6ed20) 0
-
-Class QOpenGLExtraFunctionsPrivate
- size=2880 align=8
- base size=2880 base align=8
-QOpenGLExtraFunctionsPrivate (0x0x7f64e650ab60) 0
- QOpenGLFunctionsPrivate (0x0x7f64e5f6ecc0) 0
-
-Vtable for QOpenGLFramebufferObject
-QOpenGLFramebufferObject::_ZTV24QOpenGLFramebufferObject: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QOpenGLFramebufferObject)
-16 (int (*)(...))QOpenGLFramebufferObject::~QOpenGLFramebufferObject
-24 (int (*)(...))QOpenGLFramebufferObject::~QOpenGLFramebufferObject
-
-Class QOpenGLFramebufferObject
- size=16 align=8
- base size=16 base align=8
-QOpenGLFramebufferObject (0x0x7f64e5dd7420) 0
- vptr=((& QOpenGLFramebufferObject::_ZTV24QOpenGLFramebufferObject) + 16u)
-
-Class QOpenGLFramebufferObjectFormat
- size=8 align=8
- base size=8 base align=8
-QOpenGLFramebufferObjectFormat (0x0x7f64e5dd7540) 0
-
-Vtable for QOpenGLPaintDevice
-QOpenGLPaintDevice::_ZTV18QOpenGLPaintDevice: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLPaintDevice)
-16 (int (*)(...))QOpenGLPaintDevice::~QOpenGLPaintDevice
-24 (int (*)(...))QOpenGLPaintDevice::~QOpenGLPaintDevice
-32 (int (*)(...))QOpenGLPaintDevice::devType
-40 (int (*)(...))QOpenGLPaintDevice::paintEngine
-48 (int (*)(...))QOpenGLPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))QOpenGLPaintDevice::ensureActiveTarget
-
-Class QOpenGLPaintDevice
- size=32 align=8
- base size=32 base align=8
-QOpenGLPaintDevice (0x0x7f64e650ae38) 0
- vptr=((& QOpenGLPaintDevice::_ZTV18QOpenGLPaintDevice) + 16u)
- QPaintDevice (0x0x7f64e5dd75a0) 0
- primary-for QOpenGLPaintDevice (0x0x7f64e650ae38)
-
-Class QOpenGLPixelTransferOptions
- size=8 align=8
- base size=8 base align=8
-QOpenGLPixelTransferOptions (0x0x7f64e5dd76c0) 0
-
-Class QOpenGLShader::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLShader::QPrivateSignal (0x0x7f64e5dd7a20) 0 empty
-
-Vtable for QOpenGLShader
-QOpenGLShader::_ZTV13QOpenGLShader: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QOpenGLShader)
-16 (int (*)(...))QOpenGLShader::metaObject
-24 (int (*)(...))QOpenGLShader::qt_metacast
-32 (int (*)(...))QOpenGLShader::qt_metacall
-40 (int (*)(...))QOpenGLShader::~QOpenGLShader
-48 (int (*)(...))QOpenGLShader::~QOpenGLShader
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLShader
- size=16 align=8
- base size=16 base align=8
-QOpenGLShader (0x0x7f64e5e41068) 0
- vptr=((& QOpenGLShader::_ZTV13QOpenGLShader) + 16u)
- QObject (0x0x7f64e5dd79c0) 0
- primary-for QOpenGLShader (0x0x7f64e5e41068)
-
-Class QOpenGLShaderProgram::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLShaderProgram::QPrivateSignal (0x0x7f64e5dd7c60) 0 empty
-
-Vtable for QOpenGLShaderProgram
-QOpenGLShaderProgram::_ZTV20QOpenGLShaderProgram: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QOpenGLShaderProgram)
-16 (int (*)(...))QOpenGLShaderProgram::metaObject
-24 (int (*)(...))QOpenGLShaderProgram::qt_metacast
-32 (int (*)(...))QOpenGLShaderProgram::qt_metacall
-40 (int (*)(...))QOpenGLShaderProgram::~QOpenGLShaderProgram
-48 (int (*)(...))QOpenGLShaderProgram::~QOpenGLShaderProgram
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QOpenGLShaderProgram::link
-
-Class QOpenGLShaderProgram
- size=16 align=8
- base size=16 base align=8
-QOpenGLShaderProgram (0x0x7f64e5e411a0) 0
- vptr=((& QOpenGLShaderProgram::_ZTV20QOpenGLShaderProgram) + 16u)
- QObject (0x0x7f64e5dd7c00) 0
- primary-for QOpenGLShaderProgram (0x0x7f64e5e411a0)
-
-Class QOpenGLTexture
- size=8 align=8
- base size=8 base align=8
-QOpenGLTexture (0x0x7f64e5dd7cc0) 0
-
-Class QOpenGLTextureBlitter
- size=8 align=8
- base size=8 base align=8
-QOpenGLTextureBlitter (0x0x7f64e5dd7f60) 0
-
-Class QOpenGLTimerQuery::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLTimerQuery::QPrivateSignal (0x0x7f64e5b81120) 0 empty
-
-Vtable for QOpenGLTimerQuery
-QOpenGLTimerQuery::_ZTV17QOpenGLTimerQuery: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QOpenGLTimerQuery)
-16 (int (*)(...))QOpenGLTimerQuery::metaObject
-24 (int (*)(...))QOpenGLTimerQuery::qt_metacast
-32 (int (*)(...))QOpenGLTimerQuery::qt_metacall
-40 (int (*)(...))QOpenGLTimerQuery::~QOpenGLTimerQuery
-48 (int (*)(...))QOpenGLTimerQuery::~QOpenGLTimerQuery
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLTimerQuery
- size=16 align=8
- base size=16 base align=8
-QOpenGLTimerQuery (0x0x7f64e5e412d8) 0
- vptr=((& QOpenGLTimerQuery::_ZTV17QOpenGLTimerQuery) + 16u)
- QObject (0x0x7f64e5b810c0) 0
- primary-for QOpenGLTimerQuery (0x0x7f64e5e412d8)
-
-Class QOpenGLTimeMonitor::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLTimeMonitor::QPrivateSignal (0x0x7f64e5b811e0) 0 empty
-
-Vtable for QOpenGLTimeMonitor
-QOpenGLTimeMonitor::_ZTV18QOpenGLTimeMonitor: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLTimeMonitor)
-16 (int (*)(...))QOpenGLTimeMonitor::metaObject
-24 (int (*)(...))QOpenGLTimeMonitor::qt_metacast
-32 (int (*)(...))QOpenGLTimeMonitor::qt_metacall
-40 (int (*)(...))QOpenGLTimeMonitor::~QOpenGLTimeMonitor
-48 (int (*)(...))QOpenGLTimeMonitor::~QOpenGLTimeMonitor
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLTimeMonitor
- size=16 align=8
- base size=16 base align=8
-QOpenGLTimeMonitor (0x0x7f64e5e41340) 0
- vptr=((& QOpenGLTimeMonitor::_ZTV18QOpenGLTimeMonitor) + 16u)
- QObject (0x0x7f64e5b81180) 0
- primary-for QOpenGLTimeMonitor (0x0x7f64e5e41340)
-
-Class QOpenGLVertexArrayObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLVertexArrayObject::QPrivateSignal (0x0x7f64e5b812a0) 0 empty
-
-Class QOpenGLVertexArrayObject::Binder
- size=8 align=8
- base size=8 base align=8
-QOpenGLVertexArrayObject::Binder (0x0x7f64e5b81300) 0
-
-Vtable for QOpenGLVertexArrayObject
-QOpenGLVertexArrayObject::_ZTV24QOpenGLVertexArrayObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QOpenGLVertexArrayObject)
-16 (int (*)(...))QOpenGLVertexArrayObject::metaObject
-24 (int (*)(...))QOpenGLVertexArrayObject::qt_metacast
-32 (int (*)(...))QOpenGLVertexArrayObject::qt_metacall
-40 (int (*)(...))QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject
-48 (int (*)(...))QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLVertexArrayObject
- size=16 align=8
- base size=16 base align=8
-QOpenGLVertexArrayObject (0x0x7f64e5e413a8) 0
- vptr=((& QOpenGLVertexArrayObject::_ZTV24QOpenGLVertexArrayObject) + 16u)
- QObject (0x0x7f64e5b81240) 0
- primary-for QOpenGLVertexArrayObject (0x0x7f64e5e413a8)
-
-Class QPaintDeviceWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPaintDeviceWindow::QPrivateSignal (0x0x7f64e5b81480) 0 empty
-
-Vtable for QPaintDeviceWindow
-QPaintDeviceWindow::_ZTV18QPaintDeviceWindow: 58u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-16 (int (*)(...))QPaintDeviceWindow::metaObject
-24 (int (*)(...))QPaintDeviceWindow::qt_metacast
-32 (int (*)(...))QPaintDeviceWindow::qt_metacall
-40 (int (*)(...))QPaintDeviceWindow::~QPaintDeviceWindow
-48 (int (*)(...))QPaintDeviceWindow::~QPaintDeviceWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QPaintDeviceWindow::paintEvent
-304 (int (*)(...))QPaintDeviceWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))-16
-328 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-336 (int (*)(...))QPaintDeviceWindow::_ZThn16_N18QPaintDeviceWindowD1Ev
-344 (int (*)(...))QPaintDeviceWindow::_ZThn16_N18QPaintDeviceWindowD0Ev
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-360 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-368 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-376 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-384 (int (*)(...))-40
-392 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-400 (int (*)(...))QPaintDeviceWindow::_ZThn40_N18QPaintDeviceWindowD1Ev
-408 (int (*)(...))QPaintDeviceWindow::_ZThn40_N18QPaintDeviceWindowD0Ev
-416 (int (*)(...))QPaintDevice::devType
-424 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-432 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-440 (int (*)(...))QPaintDevice::initPainter
-448 (int (*)(...))QPaintDevice::redirected
-456 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPaintDeviceWindow
- size=64 align=8
- base size=64 base align=8
-QPaintDeviceWindow (0x0x7f64e5baabd0) 0
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 16u)
- QWindow (0x0x7f64e5baac40) 0
- primary-for QPaintDeviceWindow (0x0x7f64e5baabd0)
- QObject (0x0x7f64e5b81360) 0
- primary-for QWindow (0x0x7f64e5baac40)
- QSurface (0x0x7f64e5b813c0) 16
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 336u)
- QPaintDevice (0x0x7f64e5b81420) 40
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 400u)
-
-Class QOpenGLWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLWindow::QPrivateSignal (0x0x7f64e5b81600) 0 empty
-
-Vtable for QOpenGLWindow
-QOpenGLWindow::_ZTV13QOpenGLWindow: 64u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QOpenGLWindow)
-16 (int (*)(...))QOpenGLWindow::metaObject
-24 (int (*)(...))QOpenGLWindow::qt_metacast
-32 (int (*)(...))QOpenGLWindow::qt_metacall
-40 (int (*)(...))QOpenGLWindow::~QOpenGLWindow
-48 (int (*)(...))QOpenGLWindow::~QOpenGLWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QOpenGLWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QOpenGLWindow::paintEvent
-304 (int (*)(...))QOpenGLWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))QOpenGLWindow::initializeGL
-328 (int (*)(...))QOpenGLWindow::resizeGL
-336 (int (*)(...))QOpenGLWindow::paintGL
-344 (int (*)(...))QOpenGLWindow::paintUnderGL
-352 (int (*)(...))QOpenGLWindow::paintOverGL
-360 (int (*)(...))QOpenGLWindow::redirected
-368 (int (*)(...))-16
-376 (int (*)(...))(& _ZTI13QOpenGLWindow)
-384 (int (*)(...))QOpenGLWindow::_ZThn16_N13QOpenGLWindowD1Ev
-392 (int (*)(...))QOpenGLWindow::_ZThn16_N13QOpenGLWindowD0Ev
-400 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-408 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-416 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-424 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-432 (int (*)(...))-40
-440 (int (*)(...))(& _ZTI13QOpenGLWindow)
-448 (int (*)(...))QOpenGLWindow::_ZThn40_N13QOpenGLWindowD1Ev
-456 (int (*)(...))QOpenGLWindow::_ZThn40_N13QOpenGLWindowD0Ev
-464 (int (*)(...))QPaintDevice::devType
-472 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-480 (int (*)(...))QOpenGLWindow::_ZThn40_NK13QOpenGLWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-488 (int (*)(...))QPaintDevice::initPainter
-496 (int (*)(...))QOpenGLWindow::_ZThn40_NK13QOpenGLWindow10redirectedEP6QPoint
-504 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QOpenGLWindow
- size=64 align=8
- base size=64 base align=8
-QOpenGLWindow (0x0x7f64e5e41478) 0
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 16u)
- QPaintDeviceWindow (0x0x7f64e5bd5000) 0
- primary-for QOpenGLWindow (0x0x7f64e5e41478)
- QWindow (0x0x7f64e5bd5070) 0
- primary-for QPaintDeviceWindow (0x0x7f64e5bd5000)
- QObject (0x0x7f64e5b814e0) 0
- primary-for QWindow (0x0x7f64e5bd5070)
- QSurface (0x0x7f64e5b81540) 16
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 384u)
- QPaintDevice (0x0x7f64e5b815a0) 40
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 448u)
-
-Class QPageSize
- size=8 align=8
- base size=8 base align=8
-QPageSize (0x0x7f64e5b81660) 0
-
-Class QPageLayout
- size=8 align=8
- base size=8 base align=8
-QPageLayout (0x0x7f64e5c40060) 0
-
-Class QPagedPaintDevice::Margins
- size=32 align=8
- base size=32 base align=8
-QPagedPaintDevice::Margins (0x0x7f64e5c40a80) 0
-
-Vtable for QPagedPaintDevice
-QPagedPaintDevice::_ZTV17QPagedPaintDevice: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QPagedPaintDevice)
-16 0u
-24 0u
-32 (int (*)(...))QPaintDevice::devType
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))QPagedPaintDevice::setPageSize
-96 (int (*)(...))QPagedPaintDevice::setPageSizeMM
-104 (int (*)(...))QPagedPaintDevice::setMargins
-
-Class QPagedPaintDevice
- size=32 align=8
- base size=32 base align=8
-QPagedPaintDevice (0x0x7f64e5c701a0) 0
- vptr=((& QPagedPaintDevice::_ZTV17QPagedPaintDevice) + 16u)
- QPaintDevice (0x0x7f64e5c40a20) 0
- primary-for QPagedPaintDevice (0x0x7f64e5c701a0)
-
-Class QPainter::PixmapFragment
- size=80 align=8
- base size=80 base align=8
-QPainter::PixmapFragment (0x0x7f64e5c40b40) 0
-
-Class QPainter
- size=8 align=8
- base size=8 base align=8
-QPainter (0x0x7f64e5c40ae0) 0
-
-Class QTextItem
- size=1 align=1
- base size=0 base align=1
-QTextItem (0x0x7f64e5942960) 0 empty
-
-Vtable for QPaintEngine
-QPaintEngine::_ZTV12QPaintEngine: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QPaintEngine)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))QPaintEngine::drawRects
-64 (int (*)(...))QPaintEngine::drawRects
-72 (int (*)(...))QPaintEngine::drawLines
-80 (int (*)(...))QPaintEngine::drawLines
-88 (int (*)(...))QPaintEngine::drawEllipse
-96 (int (*)(...))QPaintEngine::drawEllipse
-104 (int (*)(...))QPaintEngine::drawPath
-112 (int (*)(...))QPaintEngine::drawPoints
-120 (int (*)(...))QPaintEngine::drawPoints
-128 (int (*)(...))QPaintEngine::drawPolygon
-136 (int (*)(...))QPaintEngine::drawPolygon
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QPaintEngine::drawTextItem
-160 (int (*)(...))QPaintEngine::drawTiledPixmap
-168 (int (*)(...))QPaintEngine::drawImage
-176 (int (*)(...))QPaintEngine::coordinateOffset
-184 (int (*)(...))__cxa_pure_virtual
-
-Class QPaintEngine
- size=32 align=8
- base size=32 base align=8
-QPaintEngine (0x0x7f64e5942c00) 0
- vptr=((& QPaintEngine::_ZTV12QPaintEngine) + 16u)
-
-Class QPaintEngineState
- size=4 align=4
- base size=4 base align=4
-QPaintEngineState (0x0x7f64e5942ea0) 0
-
-Class QPdfWriter::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPdfWriter::QPrivateSignal (0x0x7f64e5af6300) 0 empty
-
-Vtable for QPdfWriter
-QPdfWriter::_ZTV10QPdfWriter: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QPdfWriter)
-16 (int (*)(...))QPdfWriter::metaObject
-24 (int (*)(...))QPdfWriter::qt_metacast
-32 (int (*)(...))QPdfWriter::qt_metacall
-40 (int (*)(...))QPdfWriter::~QPdfWriter
-48 (int (*)(...))QPdfWriter::~QPdfWriter
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPdfWriter::newPage
-120 (int (*)(...))QPdfWriter::setPageSize
-128 (int (*)(...))QPdfWriter::setPageSizeMM
-136 (int (*)(...))QPdfWriter::setMargins
-144 (int (*)(...))QPdfWriter::paintEngine
-152 (int (*)(...))QPdfWriter::metric
-160 (int (*)(...))-16
-168 (int (*)(...))(& _ZTI10QPdfWriter)
-176 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriterD1Ev
-184 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriterD0Ev
-192 (int (*)(...))QPaintDevice::devType
-200 (int (*)(...))QPdfWriter::_ZThn16_NK10QPdfWriter11paintEngineEv
-208 (int (*)(...))QPdfWriter::_ZThn16_NK10QPdfWriter6metricEN12QPaintDevice17PaintDeviceMetricE
-216 (int (*)(...))QPaintDevice::initPainter
-224 (int (*)(...))QPaintDevice::redirected
-232 (int (*)(...))QPaintDevice::sharedPainter
-240 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter7newPageEv
-248 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter11setPageSizeEN17QPagedPaintDevice8PageSizeE
-256 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter13setPageSizeMMERK6QSizeF
-264 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter10setMarginsERKN17QPagedPaintDevice7MarginsE
-
-Class QPdfWriter
- size=48 align=8
- base size=48 base align=8
-QPdfWriter (0x0x7f64e57544d0) 0
- vptr=((& QPdfWriter::_ZTV10QPdfWriter) + 16u)
- QObject (0x0x7f64e5af6240) 0
- primary-for QPdfWriter (0x0x7f64e57544d0)
- QPagedPaintDevice (0x0x7f64e5abc208) 16
- vptr=((& QPdfWriter::_ZTV10QPdfWriter) + 176u)
- QPaintDevice (0x0x7f64e5af62a0) 16
- primary-for QPagedPaintDevice (0x0x7f64e5abc208)
-
-Vtable for QPicture
-QPicture::_ZTV8QPicture: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QPicture)
-16 (int (*)(...))QPicture::~QPicture
-24 (int (*)(...))QPicture::~QPicture
-32 (int (*)(...))QPicture::devType
-40 (int (*)(...))QPicture::paintEngine
-48 (int (*)(...))QPicture::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))QPicture::setData
-
-Class QPicture
- size=32 align=8
- base size=32 base align=8
-QPicture (0x0x7f64e5abc270) 0
- vptr=((& QPicture::_ZTV8QPicture) + 16u)
- QPaintDevice (0x0x7f64e5af6480) 0
- primary-for QPicture (0x0x7f64e5abc270)
-
-Class QPictureIO
- size=8 align=8
- base size=8 base align=8
-QPictureIO (0x0x7f64e5af6780) 0
-
-Class QPictureFormatPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPictureFormatPlugin::QPrivateSignal (0x0x7f64e5af6840) 0 empty
-
-Vtable for QPictureFormatPlugin
-QPictureFormatPlugin::_ZTV20QPictureFormatPlugin: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QPictureFormatPlugin)
-16 (int (*)(...))QPictureFormatPlugin::metaObject
-24 (int (*)(...))QPictureFormatPlugin::qt_metacast
-32 (int (*)(...))QPictureFormatPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPictureFormatPlugin::loadPicture
-120 (int (*)(...))QPictureFormatPlugin::savePicture
-128 (int (*)(...))__cxa_pure_virtual
-
-Class QPictureFormatPlugin
- size=16 align=8
- base size=16 base align=8
-QPictureFormatPlugin (0x0x7f64e5abc478) 0
- vptr=((& QPictureFormatPlugin::_ZTV20QPictureFormatPlugin) + 16u)
- QObject (0x0x7f64e5af67e0) 0
- primary-for QPictureFormatPlugin (0x0x7f64e5abc478)
-
-Class QPixmapCache::Key
- size=8 align=8
- base size=8 base align=8
-QPixmapCache::Key (0x0x7f64e5af6900) 0
-
-Class QPixmapCache
- size=1 align=1
- base size=0 base align=1
-QPixmapCache (0x0x7f64e5af68a0) 0 empty
-
-Class QRasterWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRasterWindow::QPrivateSignal (0x0x7f64e583ca80) 0 empty
-
-Vtable for QRasterWindow
-QRasterWindow::_ZTV13QRasterWindow: 59u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QRasterWindow)
-16 (int (*)(...))QRasterWindow::metaObject
-24 (int (*)(...))QRasterWindow::qt_metacast
-32 (int (*)(...))QRasterWindow::qt_metacall
-40 (int (*)(...))QRasterWindow::~QRasterWindow
-48 (int (*)(...))QRasterWindow::~QRasterWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QPaintDeviceWindow::paintEvent
-304 (int (*)(...))QRasterWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))QRasterWindow::redirected
-328 (int (*)(...))-16
-336 (int (*)(...))(& _ZTI13QRasterWindow)
-344 (int (*)(...))QRasterWindow::_ZThn16_N13QRasterWindowD1Ev
-352 (int (*)(...))QRasterWindow::_ZThn16_N13QRasterWindowD0Ev
-360 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-368 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-376 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-384 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-392 (int (*)(...))-40
-400 (int (*)(...))(& _ZTI13QRasterWindow)
-408 (int (*)(...))QRasterWindow::_ZThn40_N13QRasterWindowD1Ev
-416 (int (*)(...))QRasterWindow::_ZThn40_N13QRasterWindowD0Ev
-424 (int (*)(...))QPaintDevice::devType
-432 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-440 (int (*)(...))QRasterWindow::_ZThn40_NK13QRasterWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-448 (int (*)(...))QPaintDevice::initPainter
-456 (int (*)(...))QRasterWindow::_ZThn40_NK13QRasterWindow10redirectedEP6QPoint
-464 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QRasterWindow
- size=64 align=8
- base size=64 base align=8
-QRasterWindow (0x0x7f64e583db60) 0
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 16u)
- QPaintDeviceWindow (0x0x7f64e584b2a0) 0
- primary-for QRasterWindow (0x0x7f64e583db60)
- QWindow (0x0x7f64e584b310) 0
- primary-for QPaintDeviceWindow (0x0x7f64e584b2a0)
- QObject (0x0x7f64e583c960) 0
- primary-for QWindow (0x0x7f64e584b310)
- QSurface (0x0x7f64e583c9c0) 16
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 344u)
- QPaintDevice (0x0x7f64e583ca20) 40
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 408u)
-
-Class QScreen::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QScreen::QPrivateSignal (0x0x7f64e583cb40) 0 empty
-
-Vtable for QScreen
-QScreen::_ZTV7QScreen: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QScreen)
-16 (int (*)(...))QScreen::metaObject
-24 (int (*)(...))QScreen::qt_metacast
-32 (int (*)(...))QScreen::qt_metacall
-40 (int (*)(...))QScreen::~QScreen
-48 (int (*)(...))QScreen::~QScreen
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QScreen
- size=16 align=8
- base size=16 base align=8
-QScreen (0x0x7f64e583dc30) 0
- vptr=((& QScreen::_ZTV7QScreen) + 16u)
- QObject (0x0x7f64e583cae0) 0
- primary-for QScreen (0x0x7f64e583dc30)
-
-Class QSessionManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSessionManager::QPrivateSignal (0x0x7f64e583cc00) 0 empty
-
-Vtable for QSessionManager
-QSessionManager::_ZTV15QSessionManager: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSessionManager)
-16 (int (*)(...))QSessionManager::metaObject
-24 (int (*)(...))QSessionManager::qt_metacast
-32 (int (*)(...))QSessionManager::qt_metacall
-40 (int (*)(...))QSessionManager::~QSessionManager
-48 (int (*)(...))QSessionManager::~QSessionManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSessionManager
- size=16 align=8
- base size=16 base align=8
-QSessionManager (0x0x7f64e583dc98) 0
- vptr=((& QSessionManager::_ZTV15QSessionManager) + 16u)
- QObject (0x0x7f64e583cba0) 0
- primary-for QSessionManager (0x0x7f64e583dc98)
-
-Vtable for QStandardItem
-QStandardItem::_ZTV13QStandardItem: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QStandardItem)
-16 (int (*)(...))QStandardItem::~QStandardItem
-24 (int (*)(...))QStandardItem::~QStandardItem
-32 (int (*)(...))QStandardItem::data
-40 (int (*)(...))QStandardItem::setData
-48 (int (*)(...))QStandardItem::clone
-56 (int (*)(...))QStandardItem::type
-64 (int (*)(...))QStandardItem::read
-72 (int (*)(...))QStandardItem::write
-80 (int (*)(...))QStandardItem::operator<
-
-Class QStandardItem
- size=16 align=8
- base size=16 base align=8
-QStandardItem (0x0x7f64e583cc60) 0
- vptr=((& QStandardItem::_ZTV13QStandardItem) + 16u)
-
-Class QStandardItemModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStandardItemModel::QPrivateSignal (0x0x7f64e58d63c0) 0 empty
-
-Vtable for QStandardItemModel
-QStandardItemModel::_ZTV18QStandardItemModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QStandardItemModel)
-16 (int (*)(...))QStandardItemModel::metaObject
-24 (int (*)(...))QStandardItemModel::qt_metacast
-32 (int (*)(...))QStandardItemModel::qt_metacall
-40 (int (*)(...))QStandardItemModel::~QStandardItemModel
-48 (int (*)(...))QStandardItemModel::~QStandardItemModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QStandardItemModel::index
-120 (int (*)(...))QStandardItemModel::parent
-128 (int (*)(...))QStandardItemModel::sibling
-136 (int (*)(...))QStandardItemModel::rowCount
-144 (int (*)(...))QStandardItemModel::columnCount
-152 (int (*)(...))QStandardItemModel::hasChildren
-160 (int (*)(...))QStandardItemModel::data
-168 (int (*)(...))QStandardItemModel::setData
-176 (int (*)(...))QStandardItemModel::headerData
-184 (int (*)(...))QStandardItemModel::setHeaderData
-192 (int (*)(...))QStandardItemModel::itemData
-200 (int (*)(...))QStandardItemModel::setItemData
-208 (int (*)(...))QStandardItemModel::mimeTypes
-216 (int (*)(...))QStandardItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QStandardItemModel::dropMimeData
-240 (int (*)(...))QStandardItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QStandardItemModel::insertRows
-264 (int (*)(...))QStandardItemModel::insertColumns
-272 (int (*)(...))QStandardItemModel::removeRows
-280 (int (*)(...))QStandardItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QStandardItemModel::flags
-328 (int (*)(...))QStandardItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QStandardItemModel
- size=16 align=8
- base size=16 base align=8
-QStandardItemModel (0x0x7f64e58d8340) 0
- vptr=((& QStandardItemModel::_ZTV18QStandardItemModel) + 16u)
- QAbstractItemModel (0x0x7f64e58d83a8) 0
- primary-for QStandardItemModel (0x0x7f64e58d8340)
- QObject (0x0x7f64e58d6360) 0
- primary-for QAbstractItemModel (0x0x7f64e58d83a8)
-
-Class QStaticText
- size=8 align=8
- base size=8 base align=8
-QStaticText (0x0x7f64e58d6420) 0
-
-Class QStyleHints::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStyleHints::QPrivateSignal (0x0x7f64e58d68a0) 0 empty
-
-Vtable for QStyleHints
-QStyleHints::_ZTV11QStyleHints: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QStyleHints)
-16 (int (*)(...))QStyleHints::metaObject
-24 (int (*)(...))QStyleHints::qt_metacast
-32 (int (*)(...))QStyleHints::qt_metacall
-40 (int (*)(...))QStyleHints::~QStyleHints
-48 (int (*)(...))QStyleHints::~QStyleHints
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QStyleHints
- size=16 align=8
- base size=16 base align=8
-QStyleHints (0x0x7f64e58d85b0) 0
- vptr=((& QStyleHints::_ZTV11QStyleHints) + 16u)
- QObject (0x0x7f64e58d6840) 0
- primary-for QStyleHints (0x0x7f64e58d85b0)
-
-Class QTextObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextObject::QPrivateSignal (0x0x7f64e58d6960) 0 empty
-
-Vtable for QTextObject
-QTextObject::_ZTV11QTextObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTextObject)
-16 (int (*)(...))QTextObject::metaObject
-24 (int (*)(...))QTextObject::qt_metacast
-32 (int (*)(...))QTextObject::qt_metacall
-40 (int (*)(...))QTextObject::~QTextObject
-48 (int (*)(...))QTextObject::~QTextObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextObject
- size=16 align=8
- base size=16 base align=8
-QTextObject (0x0x7f64e58d8618) 0
- vptr=((& QTextObject::_ZTV11QTextObject) + 16u)
- QObject (0x0x7f64e58d6900) 0
- primary-for QTextObject (0x0x7f64e58d8618)
-
-Class QTextBlockGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextBlockGroup::QPrivateSignal (0x0x7f64e58d6a20) 0 empty
-
-Vtable for QTextBlockGroup
-QTextBlockGroup::_ZTV15QTextBlockGroup: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QTextBlockGroup)
-16 (int (*)(...))QTextBlockGroup::metaObject
-24 (int (*)(...))QTextBlockGroup::qt_metacast
-32 (int (*)(...))QTextBlockGroup::qt_metacall
-40 (int (*)(...))QTextBlockGroup::~QTextBlockGroup
-48 (int (*)(...))QTextBlockGroup::~QTextBlockGroup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextBlockGroup::blockInserted
-120 (int (*)(...))QTextBlockGroup::blockRemoved
-128 (int (*)(...))QTextBlockGroup::blockFormatChanged
-
-Class QTextBlockGroup
- size=16 align=8
- base size=16 base align=8
-QTextBlockGroup (0x0x7f64e58d8680) 0
- vptr=((& QTextBlockGroup::_ZTV15QTextBlockGroup) + 16u)
- QTextObject (0x0x7f64e58d86e8) 0
- primary-for QTextBlockGroup (0x0x7f64e58d8680)
- QObject (0x0x7f64e58d69c0) 0
- primary-for QTextObject (0x0x7f64e58d86e8)
-
-Vtable for QTextFrameLayoutData
-QTextFrameLayoutData::_ZTV20QTextFrameLayoutData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTextFrameLayoutData)
-16 (int (*)(...))QTextFrameLayoutData::~QTextFrameLayoutData
-24 (int (*)(...))QTextFrameLayoutData::~QTextFrameLayoutData
-
-Class QTextFrameLayoutData
- size=8 align=8
- base size=8 base align=8
-QTextFrameLayoutData (0x0x7f64e58d6a80) 0 nearly-empty
- vptr=((& QTextFrameLayoutData::_ZTV20QTextFrameLayoutData) + 16u)
-
-Class QTextFrame::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextFrame::QPrivateSignal (0x0x7f64e58d6b40) 0 empty
-
-Class QTextFrame::iterator
- size=32 align=8
- base size=28 base align=8
-QTextFrame::iterator (0x0x7f64e58d6ba0) 0
-
-Vtable for QTextFrame
-QTextFrame::_ZTV10QTextFrame: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextFrame)
-16 (int (*)(...))QTextFrame::metaObject
-24 (int (*)(...))QTextFrame::qt_metacast
-32 (int (*)(...))QTextFrame::qt_metacall
-40 (int (*)(...))QTextFrame::~QTextFrame
-48 (int (*)(...))QTextFrame::~QTextFrame
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextFrame
- size=16 align=8
- base size=16 base align=8
-QTextFrame (0x0x7f64e58d8750) 0
- vptr=((& QTextFrame::_ZTV10QTextFrame) + 16u)
- QTextObject (0x0x7f64e58d87b8) 0
- primary-for QTextFrame (0x0x7f64e58d8750)
- QObject (0x0x7f64e58d6ae0) 0
- primary-for QTextObject (0x0x7f64e58d87b8)
-
-Vtable for QTextBlockUserData
-QTextBlockUserData::_ZTV18QTextBlockUserData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QTextBlockUserData)
-16 (int (*)(...))QTextBlockUserData::~QTextBlockUserData
-24 (int (*)(...))QTextBlockUserData::~QTextBlockUserData
-
-Class QTextBlockUserData
- size=8 align=8
- base size=8 base align=8
-QTextBlockUserData (0x0x7f64e58d6e40) 0 nearly-empty
- vptr=((& QTextBlockUserData::_ZTV18QTextBlockUserData) + 16u)
-
-Class QTextBlock::iterator
- size=24 align=8
- base size=20 base align=8
-QTextBlock::iterator (0x0x7f64e58d6f00) 0
-
-Class QTextBlock
- size=16 align=8
- base size=12 base align=8
-QTextBlock (0x0x7f64e58d6ea0) 0
-
-Class QTextFragment
- size=16 align=8
- base size=16 base align=8
-QTextFragment (0x0x7f64e5645420) 0
-
-Class QSyntaxHighlighter::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSyntaxHighlighter::QPrivateSignal (0x0x7f64e5645720) 0 empty
-
-Vtable for QSyntaxHighlighter
-QSyntaxHighlighter::_ZTV18QSyntaxHighlighter: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSyntaxHighlighter)
-16 (int (*)(...))QSyntaxHighlighter::metaObject
-24 (int (*)(...))QSyntaxHighlighter::qt_metacast
-32 (int (*)(...))QSyntaxHighlighter::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QSyntaxHighlighter
- size=16 align=8
- base size=16 base align=8
-QSyntaxHighlighter (0x0x7f64e58d8ea0) 0
- vptr=((& QSyntaxHighlighter::_ZTV18QSyntaxHighlighter) + 16u)
- QObject (0x0x7f64e56456c0) 0
- primary-for QSyntaxHighlighter (0x0x7f64e58d8ea0)
-
-Class QTextDocumentFragment
- size=8 align=8
- base size=8 base align=8
-QTextDocumentFragment (0x0x7f64e5645780) 0
-
-Class QTextDocumentWriter
- size=8 align=8
- base size=8 base align=8
-QTextDocumentWriter (0x0x7f64e56457e0) 0
-
-Class QTextList::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextList::QPrivateSignal (0x0x7f64e56458a0) 0 empty
-
-Vtable for QTextList
-QTextList::_ZTV9QTextList: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QTextList)
-16 (int (*)(...))QTextList::metaObject
-24 (int (*)(...))QTextList::qt_metacast
-32 (int (*)(...))QTextList::qt_metacall
-40 (int (*)(...))QTextList::~QTextList
-48 (int (*)(...))QTextList::~QTextList
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextBlockGroup::blockInserted
-120 (int (*)(...))QTextBlockGroup::blockRemoved
-128 (int (*)(...))QTextBlockGroup::blockFormatChanged
-
-Class QTextList
- size=16 align=8
- base size=16 base align=8
-QTextList (0x0x7f64e58d8f08) 0
- vptr=((& QTextList::_ZTV9QTextList) + 16u)
- QTextBlockGroup (0x0x7f64e58d8f70) 0
- primary-for QTextList (0x0x7f64e58d8f08)
- QTextObject (0x0x7f64e5686000) 0
- primary-for QTextBlockGroup (0x0x7f64e58d8f70)
- QObject (0x0x7f64e5645840) 0
- primary-for QTextObject (0x0x7f64e5686000)
-
-Class QTextTableCell
- size=16 align=8
- base size=12 base align=8
-QTextTableCell (0x0x7f64e5645900) 0
-
-Class QTextTable::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextTable::QPrivateSignal (0x0x7f64e56459c0) 0 empty
-
-Vtable for QTextTable
-QTextTable::_ZTV10QTextTable: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextTable)
-16 (int (*)(...))QTextTable::metaObject
-24 (int (*)(...))QTextTable::qt_metacast
-32 (int (*)(...))QTextTable::qt_metacall
-40 (int (*)(...))QTextTable::~QTextTable
-48 (int (*)(...))QTextTable::~QTextTable
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextTable
- size=16 align=8
- base size=16 base align=8
-QTextTable (0x0x7f64e5686068) 0
- vptr=((& QTextTable::_ZTV10QTextTable) + 16u)
- QTextFrame (0x0x7f64e56860d0) 0
- primary-for QTextTable (0x0x7f64e5686068)
- QTextObject (0x0x7f64e5686138) 0
- primary-for QTextFrame (0x0x7f64e56860d0)
- QObject (0x0x7f64e5645960) 0
- primary-for QTextObject (0x0x7f64e5686138)
-
-Class QValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QValidator::QPrivateSignal (0x0x7f64e5645a80) 0 empty
-
-Vtable for QValidator
-QValidator::_ZTV10QValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QValidator)
-16 (int (*)(...))QValidator::metaObject
-24 (int (*)(...))QValidator::qt_metacast
-32 (int (*)(...))QValidator::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QValidator::fixup
-
-Class QValidator
- size=16 align=8
- base size=16 base align=8
-QValidator (0x0x7f64e56861a0) 0
- vptr=((& QValidator::_ZTV10QValidator) + 16u)
- QObject (0x0x7f64e5645a20) 0
- primary-for QValidator (0x0x7f64e56861a0)
-
-Class QIntValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIntValidator::QPrivateSignal (0x0x7f64e5645b40) 0 empty
-
-Vtable for QIntValidator
-QIntValidator::_ZTV13QIntValidator: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QIntValidator)
-16 (int (*)(...))QIntValidator::metaObject
-24 (int (*)(...))QIntValidator::qt_metacast
-32 (int (*)(...))QIntValidator::qt_metacall
-40 (int (*)(...))QIntValidator::~QIntValidator
-48 (int (*)(...))QIntValidator::~QIntValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIntValidator::validate
-120 (int (*)(...))QIntValidator::fixup
-128 (int (*)(...))QIntValidator::setRange
-
-Class QIntValidator
- size=24 align=8
- base size=24 base align=8
-QIntValidator (0x0x7f64e5686208) 0
- vptr=((& QIntValidator::_ZTV13QIntValidator) + 16u)
- QValidator (0x0x7f64e5686270) 0
- primary-for QIntValidator (0x0x7f64e5686208)
- QObject (0x0x7f64e5645ae0) 0
- primary-for QValidator (0x0x7f64e5686270)
-
-Class QDoubleValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDoubleValidator::QPrivateSignal (0x0x7f64e5645c00) 0 empty
-
-Vtable for QDoubleValidator
-QDoubleValidator::_ZTV16QDoubleValidator: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QDoubleValidator)
-16 (int (*)(...))QDoubleValidator::metaObject
-24 (int (*)(...))QDoubleValidator::qt_metacast
-32 (int (*)(...))QDoubleValidator::qt_metacall
-40 (int (*)(...))QDoubleValidator::~QDoubleValidator
-48 (int (*)(...))QDoubleValidator::~QDoubleValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QDoubleValidator::validate
-120 (int (*)(...))QValidator::fixup
-128 (int (*)(...))QDoubleValidator::setRange
-
-Class QDoubleValidator
- size=40 align=8
- base size=36 base align=8
-QDoubleValidator (0x0x7f64e56862d8) 0
- vptr=((& QDoubleValidator::_ZTV16QDoubleValidator) + 16u)
- QValidator (0x0x7f64e5686340) 0
- primary-for QDoubleValidator (0x0x7f64e56862d8)
- QObject (0x0x7f64e5645ba0) 0
- primary-for QValidator (0x0x7f64e5686340)
-
-Class QRegExpValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRegExpValidator::QPrivateSignal (0x0x7f64e5645d20) 0 empty
-
-Vtable for QRegExpValidator
-QRegExpValidator::_ZTV16QRegExpValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QRegExpValidator)
-16 (int (*)(...))QRegExpValidator::metaObject
-24 (int (*)(...))QRegExpValidator::qt_metacast
-32 (int (*)(...))QRegExpValidator::qt_metacall
-40 (int (*)(...))QRegExpValidator::~QRegExpValidator
-48 (int (*)(...))QRegExpValidator::~QRegExpValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QRegExpValidator::validate
-120 (int (*)(...))QValidator::fixup
-
-Class QRegExpValidator
- size=24 align=8
- base size=24 base align=8
-QRegExpValidator (0x0x7f64e56863a8) 0
- vptr=((& QRegExpValidator::_ZTV16QRegExpValidator) + 16u)
- QValidator (0x0x7f64e5686410) 0
- primary-for QRegExpValidator (0x0x7f64e56863a8)
- QObject (0x0x7f64e5645cc0) 0
- primary-for QValidator (0x0x7f64e5686410)
-
-Class QRegularExpressionValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRegularExpressionValidator::QPrivateSignal (0x0x7f64e5645de0) 0 empty
-
-Vtable for QRegularExpressionValidator
-QRegularExpressionValidator::_ZTV27QRegularExpressionValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QRegularExpressionValidator)
-16 (int (*)(...))QRegularExpressionValidator::metaObject
-24 (int (*)(...))QRegularExpressionValidator::qt_metacast
-32 (int (*)(...))QRegularExpressionValidator::qt_metacall
-40 (int (*)(...))QRegularExpressionValidator::~QRegularExpressionValidator
-48 (int (*)(...))QRegularExpressionValidator::~QRegularExpressionValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QRegularExpressionValidator::validate
-120 (int (*)(...))QValidator::fixup
-
-Class QRegularExpressionValidator
- size=16 align=8
- base size=16 base align=8
-QRegularExpressionValidator (0x0x7f64e5686478) 0
- vptr=((& QRegularExpressionValidator::_ZTV27QRegularExpressionValidator) + 16u)
- QValidator (0x0x7f64e56864e0) 0
- primary-for QRegularExpressionValidator (0x0x7f64e5686478)
- QObject (0x0x7f64e5645d80) 0
- primary-for QValidator (0x0x7f64e56864e0)
-
-Class QNetworkRequest
- size=8 align=8
- base size=8 base align=8
-QNetworkRequest (0x0x7f64e5645e40) 0
-
-Class QNetworkCacheMetaData
- size=8 align=8
- base size=8 base align=8
-QNetworkCacheMetaData (0x0x7f64e53393c0) 0
-
-Class QAbstractNetworkCache::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractNetworkCache::QPrivateSignal (0x0x7f64e5339a80) 0 empty
-
-Vtable for QAbstractNetworkCache
-QAbstractNetworkCache::_ZTV21QAbstractNetworkCache: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QAbstractNetworkCache)
-16 (int (*)(...))QAbstractNetworkCache::metaObject
-24 (int (*)(...))QAbstractNetworkCache::qt_metacast
-32 (int (*)(...))QAbstractNetworkCache::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractNetworkCache
- size=16 align=8
- base size=16 base align=8
-QAbstractNetworkCache (0x0x7f64e5686d00) 0
- vptr=((& QAbstractNetworkCache::_ZTV21QAbstractNetworkCache) + 16u)
- QObject (0x0x7f64e5339a20) 0
- primary-for QAbstractNetworkCache (0x0x7f64e5686d00)
-
-Class QAbstractSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractSocket::QPrivateSignal (0x0x7f64e5339b40) 0 empty
-
-Vtable for QAbstractSocket
-QAbstractSocket::_ZTV15QAbstractSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QAbstractSocket)
-16 (int (*)(...))QAbstractSocket::metaObject
-24 (int (*)(...))QAbstractSocket::qt_metacast
-32 (int (*)(...))QAbstractSocket::qt_metacall
-40 (int (*)(...))QAbstractSocket::~QAbstractSocket
-48 (int (*)(...))QAbstractSocket::~QAbstractSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QAbstractSocket
- size=16 align=8
- base size=16 base align=8
-QAbstractSocket (0x0x7f64e5686d68) 0
- vptr=((& QAbstractSocket::_ZTV15QAbstractSocket) + 16u)
- QIODevice (0x0x7f64e5686dd0) 0
- primary-for QAbstractSocket (0x0x7f64e5686d68)
- QObject (0x0x7f64e5339ae0) 0
- primary-for QIODevice (0x0x7f64e5686dd0)
-
-Class QAuthenticator
- size=8 align=8
- base size=8 base align=8
-QAuthenticator (0x0x7f64e542d120) 0
-
-Class QDnsDomainNameRecord
- size=8 align=8
- base size=8 base align=8
-QDnsDomainNameRecord (0x0x7f64e542d180) 0
-
-Class QDnsHostAddressRecord
- size=8 align=8
- base size=8 base align=8
-QDnsHostAddressRecord (0x0x7f64e542d480) 0
-
-Class QDnsMailExchangeRecord
- size=8 align=8
- base size=8 base align=8
-QDnsMailExchangeRecord (0x0x7f64e542d780) 0
-
-Class QDnsServiceRecord
- size=8 align=8
- base size=8 base align=8
-QDnsServiceRecord (0x0x7f64e542da80) 0
-
-Class QDnsTextRecord
- size=8 align=8
- base size=8 base align=8
-QDnsTextRecord (0x0x7f64e542dd80) 0
-
-Class QDnsLookup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDnsLookup::QPrivateSignal (0x0x7f64e54b8120) 0 empty
-
-Vtable for QDnsLookup
-QDnsLookup::_ZTV10QDnsLookup: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QDnsLookup)
-16 (int (*)(...))QDnsLookup::metaObject
-24 (int (*)(...))QDnsLookup::qt_metacast
-32 (int (*)(...))QDnsLookup::qt_metacall
-40 (int (*)(...))QDnsLookup::~QDnsLookup
-48 (int (*)(...))QDnsLookup::~QDnsLookup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDnsLookup
- size=16 align=8
- base size=16 base align=8
-QDnsLookup (0x0x7f64e5452820) 0
- vptr=((& QDnsLookup::_ZTV10QDnsLookup) + 16u)
- QObject (0x0x7f64e54b80c0) 0
- primary-for QDnsLookup (0x0x7f64e5452820)
-
-Class QIPv6Address
- size=16 align=1
- base size=16 base align=1
-QIPv6Address (0x0x7f64e54b8180) 0
-
-Class QHostAddress
- size=8 align=8
- base size=8 base align=8
-QHostAddress (0x0x7f64e54b81e0) 0
-
-Class QHostInfo
- size=8 align=8
- base size=8 base align=8
-QHostInfo (0x0x7f64e54b89c0) 0
-
-Class QHstsPolicy
- size=8 align=8
- base size=8 base align=8
-QHstsPolicy (0x0x7f64e54b8ea0) 0
-
-Class QHttpPart
- size=8 align=8
- base size=8 base align=8
-QHttpPart (0x0x7f64e51976c0) 0
-
-Class QHttpMultiPart::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QHttpMultiPart::QPrivateSignal (0x0x7f64e5197a20) 0 empty
-
-Vtable for QHttpMultiPart
-QHttpMultiPart::_ZTV14QHttpMultiPart: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QHttpMultiPart)
-16 (int (*)(...))QHttpMultiPart::metaObject
-24 (int (*)(...))QHttpMultiPart::qt_metacast
-32 (int (*)(...))QHttpMultiPart::qt_metacall
-40 (int (*)(...))QHttpMultiPart::~QHttpMultiPart
-48 (int (*)(...))QHttpMultiPart::~QHttpMultiPart
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QHttpMultiPart
- size=16 align=8
- base size=16 base align=8
-QHttpMultiPart (0x0x7f64e516ca90) 0
- vptr=((& QHttpMultiPart::_ZTV14QHttpMultiPart) + 16u)
- QObject (0x0x7f64e51979c0) 0
- primary-for QHttpMultiPart (0x0x7f64e516ca90)
-
-Class QLocalServer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLocalServer::QPrivateSignal (0x0x7f64e5197ae0) 0 empty
-
-Vtable for QLocalServer
-QLocalServer::_ZTV12QLocalServer: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QLocalServer)
-16 (int (*)(...))QLocalServer::metaObject
-24 (int (*)(...))QLocalServer::qt_metacast
-32 (int (*)(...))QLocalServer::qt_metacall
-40 (int (*)(...))QLocalServer::~QLocalServer
-48 (int (*)(...))QLocalServer::~QLocalServer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QLocalServer::hasPendingConnections
-120 (int (*)(...))QLocalServer::nextPendingConnection
-128 (int (*)(...))QLocalServer::incomingConnection
-
-Class QLocalServer
- size=16 align=8
- base size=16 base align=8
-QLocalServer (0x0x7f64e516caf8) 0
- vptr=((& QLocalServer::_ZTV12QLocalServer) + 16u)
- QObject (0x0x7f64e5197a80) 0
- primary-for QLocalServer (0x0x7f64e516caf8)
-
-Class QLocalSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLocalSocket::QPrivateSignal (0x0x7f64e5197d20) 0 empty
-
-Vtable for QLocalSocket
-QLocalSocket::_ZTV12QLocalSocket: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QLocalSocket)
-16 (int (*)(...))QLocalSocket::metaObject
-24 (int (*)(...))QLocalSocket::qt_metacast
-32 (int (*)(...))QLocalSocket::qt_metacall
-40 (int (*)(...))QLocalSocket::~QLocalSocket
-48 (int (*)(...))QLocalSocket::~QLocalSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QLocalSocket::isSequential
-120 (int (*)(...))QLocalSocket::open
-128 (int (*)(...))QLocalSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QLocalSocket::bytesAvailable
-184 (int (*)(...))QLocalSocket::bytesToWrite
-192 (int (*)(...))QLocalSocket::canReadLine
-200 (int (*)(...))QLocalSocket::waitForReadyRead
-208 (int (*)(...))QLocalSocket::waitForBytesWritten
-216 (int (*)(...))QLocalSocket::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QLocalSocket::writeData
-
-Class QLocalSocket
- size=16 align=8
- base size=16 base align=8
-QLocalSocket (0x0x7f64e516cc98) 0
- vptr=((& QLocalSocket::_ZTV12QLocalSocket) + 16u)
- QIODevice (0x0x7f64e516cd00) 0
- primary-for QLocalSocket (0x0x7f64e516cc98)
- QObject (0x0x7f64e5197cc0) 0
- primary-for QIODevice (0x0x7f64e516cd00)
-
-Class QTcpSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTcpSocket::QPrivateSignal (0x0x7f64e5197de0) 0 empty
-
-Vtable for QTcpSocket
-QTcpSocket::_ZTV10QTcpSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTcpSocket)
-16 (int (*)(...))QTcpSocket::metaObject
-24 (int (*)(...))QTcpSocket::qt_metacast
-32 (int (*)(...))QTcpSocket::qt_metacall
-40 (int (*)(...))QTcpSocket::~QTcpSocket
-48 (int (*)(...))QTcpSocket::~QTcpSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QTcpSocket
- size=16 align=8
- base size=16 base align=8
-QTcpSocket (0x0x7f64e516cd68) 0
- vptr=((& QTcpSocket::_ZTV10QTcpSocket) + 16u)
- QAbstractSocket (0x0x7f64e516cdd0) 0
- primary-for QTcpSocket (0x0x7f64e516cd68)
- QIODevice (0x0x7f64e516ce38) 0
- primary-for QAbstractSocket (0x0x7f64e516cdd0)
- QObject (0x0x7f64e5197d80) 0
- primary-for QIODevice (0x0x7f64e516ce38)
-
-Class QSslCertificate
- size=8 align=8
- base size=8 base align=8
-QSslCertificate (0x0x7f64e52ac000) 0
-
-Class QSslError
- size=8 align=8
- base size=8 base align=8
-QSslError (0x0x7f64e52ac420) 0
-
-Class QSslSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSslSocket::QPrivateSignal (0x0x7f64e52acd80) 0 empty
-
-Vtable for QSslSocket
-QSslSocket::_ZTV10QSslSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QSslSocket)
-16 (int (*)(...))QSslSocket::metaObject
-24 (int (*)(...))QSslSocket::qt_metacast
-32 (int (*)(...))QSslSocket::qt_metacall
-40 (int (*)(...))QSslSocket::~QSslSocket
-48 (int (*)(...))QSslSocket::~QSslSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QSslSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QSslSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QSslSocket::bytesAvailable
-184 (int (*)(...))QSslSocket::bytesToWrite
-192 (int (*)(...))QSslSocket::canReadLine
-200 (int (*)(...))QSslSocket::waitForReadyRead
-208 (int (*)(...))QSslSocket::waitForBytesWritten
-216 (int (*)(...))QSslSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QSslSocket::writeData
-240 (int (*)(...))QSslSocket::resume
-248 (int (*)(...))QSslSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QSslSocket::disconnectFromHost
-272 (int (*)(...))QSslSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QSslSocket::setSocketDescriptor
-296 (int (*)(...))QSslSocket::setSocketOption
-304 (int (*)(...))QSslSocket::socketOption
-312 (int (*)(...))QSslSocket::waitForConnected
-320 (int (*)(...))QSslSocket::waitForDisconnected
-
-Class QSslSocket
- size=16 align=8
- base size=16 base align=8
-QSslSocket (0x0x7f64e52d4820) 0
- vptr=((& QSslSocket::_ZTV10QSslSocket) + 16u)
- QTcpSocket (0x0x7f64e52d4888) 0
- primary-for QSslSocket (0x0x7f64e52d4820)
- QAbstractSocket (0x0x7f64e52d48f0) 0
- primary-for QTcpSocket (0x0x7f64e52d4888)
- QIODevice (0x0x7f64e52d4958) 0
- primary-for QAbstractSocket (0x0x7f64e52d48f0)
- QObject (0x0x7f64e52acd20) 0
- primary-for QIODevice (0x0x7f64e52d4958)
-
-Class QSslConfiguration
- size=8 align=8
- base size=8 base align=8
-QSslConfiguration (0x0x7f64e52acde0) 0
-
-Class QSslPreSharedKeyAuthenticator
- size=8 align=8
- base size=8 base align=8
-QSslPreSharedKeyAuthenticator (0x0x7f64e4fab600) 0
-
-Class QNetworkAccessManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkAccessManager::QPrivateSignal (0x0x7f64e4fabf00) 0 empty
-
-Vtable for QNetworkAccessManager
-QNetworkAccessManager::_ZTV21QNetworkAccessManager: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QNetworkAccessManager)
-16 (int (*)(...))QNetworkAccessManager::metaObject
-24 (int (*)(...))QNetworkAccessManager::qt_metacast
-32 (int (*)(...))QNetworkAccessManager::qt_metacall
-40 (int (*)(...))QNetworkAccessManager::~QNetworkAccessManager
-48 (int (*)(...))QNetworkAccessManager::~QNetworkAccessManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkAccessManager::createRequest
-
-Class QNetworkAccessManager
- size=16 align=8
- base size=16 base align=8
-QNetworkAccessManager (0x0x7f64e4fdb618) 0
- vptr=((& QNetworkAccessManager::_ZTV21QNetworkAccessManager) + 16u)
- QObject (0x0x7f64e4fabea0) 0
- primary-for QNetworkAccessManager (0x0x7f64e4fdb618)
-
-Class QNetworkConfiguration
- size=8 align=8
- base size=8 base align=8
-QNetworkConfiguration (0x0x7f64e4fabf60) 0
-
-Class QNetworkConfigurationManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkConfigurationManager::QPrivateSignal (0x0x7f64e5025420) 0 empty
-
-Vtable for QNetworkConfigurationManager
-QNetworkConfigurationManager::_ZTV28QNetworkConfigurationManager: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QNetworkConfigurationManager)
-16 (int (*)(...))QNetworkConfigurationManager::metaObject
-24 (int (*)(...))QNetworkConfigurationManager::qt_metacast
-32 (int (*)(...))QNetworkConfigurationManager::qt_metacall
-40 (int (*)(...))QNetworkConfigurationManager::~QNetworkConfigurationManager
-48 (int (*)(...))QNetworkConfigurationManager::~QNetworkConfigurationManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QNetworkConfigurationManager
- size=16 align=8
- base size=16 base align=8
-QNetworkConfigurationManager (0x0x7f64e4fdb820) 0
- vptr=((& QNetworkConfigurationManager::_ZTV28QNetworkConfigurationManager) + 16u)
- QObject (0x0x7f64e50253c0) 0
- primary-for QNetworkConfigurationManager (0x0x7f64e4fdb820)
-
-Class QNetworkCookie
- size=8 align=8
- base size=8 base align=8
-QNetworkCookie (0x0x7f64e5025780) 0
-
-Class QNetworkCookieJar::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkCookieJar::QPrivateSignal (0x0x7f64e5025f60) 0 empty
-
-Vtable for QNetworkCookieJar
-QNetworkCookieJar::_ZTV17QNetworkCookieJar: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QNetworkCookieJar)
-16 (int (*)(...))QNetworkCookieJar::metaObject
-24 (int (*)(...))QNetworkCookieJar::qt_metacast
-32 (int (*)(...))QNetworkCookieJar::qt_metacall
-40 (int (*)(...))QNetworkCookieJar::~QNetworkCookieJar
-48 (int (*)(...))QNetworkCookieJar::~QNetworkCookieJar
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkCookieJar::cookiesForUrl
-120 (int (*)(...))QNetworkCookieJar::setCookiesFromUrl
-128 (int (*)(...))QNetworkCookieJar::insertCookie
-136 (int (*)(...))QNetworkCookieJar::updateCookie
-144 (int (*)(...))QNetworkCookieJar::deleteCookie
-152 (int (*)(...))QNetworkCookieJar::validateCookie
-
-Class QNetworkCookieJar
- size=16 align=8
- base size=16 base align=8
-QNetworkCookieJar (0x0x7f64e50c7068) 0
- vptr=((& QNetworkCookieJar::_ZTV17QNetworkCookieJar) + 16u)
- QObject (0x0x7f64e5025f00) 0
- primary-for QNetworkCookieJar (0x0x7f64e50c7068)
-
-Class QNetworkDatagram
- size=8 align=8
- base size=8 base align=8
-QNetworkDatagram (0x0x7f64e50e1000) 0
-
-Class QNetworkDiskCache::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkDiskCache::QPrivateSignal (0x0x7f64e4d7e000) 0 empty
-
-Vtable for QNetworkDiskCache
-QNetworkDiskCache::_ZTV17QNetworkDiskCache: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QNetworkDiskCache)
-16 (int (*)(...))QNetworkDiskCache::metaObject
-24 (int (*)(...))QNetworkDiskCache::qt_metacast
-32 (int (*)(...))QNetworkDiskCache::qt_metacall
-40 (int (*)(...))QNetworkDiskCache::~QNetworkDiskCache
-48 (int (*)(...))QNetworkDiskCache::~QNetworkDiskCache
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkDiskCache::metaData
-120 (int (*)(...))QNetworkDiskCache::updateMetaData
-128 (int (*)(...))QNetworkDiskCache::data
-136 (int (*)(...))QNetworkDiskCache::remove
-144 (int (*)(...))QNetworkDiskCache::cacheSize
-152 (int (*)(...))QNetworkDiskCache::prepare
-160 (int (*)(...))QNetworkDiskCache::insert
-168 (int (*)(...))QNetworkDiskCache::clear
-176 (int (*)(...))QNetworkDiskCache::expire
-
-Class QNetworkDiskCache
- size=16 align=8
- base size=16 base align=8
-QNetworkDiskCache (0x0x7f64e4d5fa90) 0
- vptr=((& QNetworkDiskCache::_ZTV17QNetworkDiskCache) + 16u)
- QAbstractNetworkCache (0x0x7f64e4d5faf8) 0
- primary-for QNetworkDiskCache (0x0x7f64e4d5fa90)
- QObject (0x0x7f64e4d46f60) 0
- primary-for QAbstractNetworkCache (0x0x7f64e4d5faf8)
-
-Class QNetworkAddressEntry
- size=8 align=8
- base size=8 base align=8
-QNetworkAddressEntry (0x0x7f64e4d7e060) 0
-
-Class QNetworkInterface
- size=8 align=8
- base size=8 base align=8
-QNetworkInterface (0x0x7f64e4d7e720) 0
-
-Class QNetworkProxyQuery
- size=8 align=8
- base size=8 base align=8
-QNetworkProxyQuery (0x0x7f64e4d7ede0) 0
-
-Class QNetworkProxy
- size=8 align=8
- base size=8 base align=8
-QNetworkProxy (0x0x7f64e4e4a480) 0
-
-Vtable for QNetworkProxyFactory
-QNetworkProxyFactory::_ZTV20QNetworkProxyFactory: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QNetworkProxyFactory)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QNetworkProxyFactory
- size=8 align=8
- base size=8 base align=8
-QNetworkProxyFactory (0x0x7f64e4e4ac60) 0 nearly-empty
- vptr=((& QNetworkProxyFactory::_ZTV20QNetworkProxyFactory) + 16u)
-
-Class QNetworkReply::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkReply::QPrivateSignal (0x0x7f64e4e4ae40) 0 empty
-
-Vtable for QNetworkReply
-QNetworkReply::_ZTV13QNetworkReply: 36u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QNetworkReply)
-16 (int (*)(...))QNetworkReply::metaObject
-24 (int (*)(...))QNetworkReply::qt_metacast
-32 (int (*)(...))QNetworkReply::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkReply::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QNetworkReply::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))__cxa_pure_virtual
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QNetworkReply::writeData
-240 (int (*)(...))QNetworkReply::setReadBufferSize
-248 (int (*)(...))__cxa_pure_virtual
-256 (int (*)(...))QNetworkReply::ignoreSslErrors
-264 (int (*)(...))QNetworkReply::sslConfigurationImplementation
-272 (int (*)(...))QNetworkReply::setSslConfigurationImplementation
-280 (int (*)(...))QNetworkReply::ignoreSslErrorsImplementation
-
-Class QNetworkReply
- size=16 align=8
- base size=16 base align=8
-QNetworkReply (0x0x7f64e4e841a0) 0
- vptr=((& QNetworkReply::_ZTV13QNetworkReply) + 16u)
- QIODevice (0x0x7f64e4e84208) 0
- primary-for QNetworkReply (0x0x7f64e4e841a0)
- QObject (0x0x7f64e4e4ade0) 0
- primary-for QIODevice (0x0x7f64e4e84208)
-
-Class QNetworkSession::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkSession::QPrivateSignal (0x0x7f64e4eee060) 0 empty
-
-Vtable for QNetworkSession
-QNetworkSession::_ZTV15QNetworkSession: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QNetworkSession)
-16 (int (*)(...))QNetworkSession::metaObject
-24 (int (*)(...))QNetworkSession::qt_metacast
-32 (int (*)(...))QNetworkSession::qt_metacall
-40 (int (*)(...))QNetworkSession::~QNetworkSession
-48 (int (*)(...))QNetworkSession::~QNetworkSession
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QNetworkSession::connectNotify
-104 (int (*)(...))QNetworkSession::disconnectNotify
-
-Class QNetworkSession
- size=24 align=8
- base size=24 base align=8
-QNetworkSession (0x0x7f64e4e84270) 0
- vptr=((& QNetworkSession::_ZTV15QNetworkSession) + 16u)
- QObject (0x0x7f64e4eee000) 0
- primary-for QNetworkSession (0x0x7f64e4e84270)
-
-Class QTcpServer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTcpServer::QPrivateSignal (0x0x7f64e4eee600) 0 empty
-
-Vtable for QTcpServer
-QTcpServer::_ZTV10QTcpServer: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTcpServer)
-16 (int (*)(...))QTcpServer::metaObject
-24 (int (*)(...))QTcpServer::qt_metacast
-32 (int (*)(...))QTcpServer::qt_metacall
-40 (int (*)(...))QTcpServer::~QTcpServer
-48 (int (*)(...))QTcpServer::~QTcpServer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTcpServer::hasPendingConnections
-120 (int (*)(...))QTcpServer::nextPendingConnection
-128 (int (*)(...))QTcpServer::incomingConnection
-
-Class QTcpServer
- size=16 align=8
- base size=16 base align=8
-QTcpServer (0x0x7f64e4e843a8) 0
- vptr=((& QTcpServer::_ZTV10QTcpServer) + 16u)
- QObject (0x0x7f64e4eee5a0) 0
- primary-for QTcpServer (0x0x7f64e4e843a8)
-
-Class QSslCertificateExtension
- size=8 align=8
- base size=8 base align=8
-QSslCertificateExtension (0x0x7f64e4eee660) 0
-
-Class QSslCipher
- size=8 align=8
- base size=8 base align=8
-QSslCipher (0x0x7f64e4eee960) 0
-
-Class QSslDiffieHellmanParameters
- size=8 align=8
- base size=8 base align=8
-QSslDiffieHellmanParameters (0x0x7f64e4b8b180) 0
-
-Class QSslEllipticCurve
- size=4 align=4
- base size=4 base align=4
-QSslEllipticCurve (0x0x7f64e4bf9c60) 0
-
-Class QSslKey
- size=8 align=8
- base size=8 base align=8
-QSslKey (0x0x7f64e4c323c0) 0
-
-Class QUdpSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QUdpSocket::QPrivateSignal (0x0x7f64e4c32720) 0 empty
-
-Vtable for QUdpSocket
-QUdpSocket::_ZTV10QUdpSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QUdpSocket)
-16 (int (*)(...))QUdpSocket::metaObject
-24 (int (*)(...))QUdpSocket::qt_metacast
-32 (int (*)(...))QUdpSocket::qt_metacall
-40 (int (*)(...))QUdpSocket::~QUdpSocket
-48 (int (*)(...))QUdpSocket::~QUdpSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QUdpSocket
- size=16 align=8
- base size=16 base align=8
-QUdpSocket (0x0x7f64e4c19958) 0
- vptr=((& QUdpSocket::_ZTV10QUdpSocket) + 16u)
- QAbstractSocket (0x0x7f64e4c199c0) 0
- primary-for QUdpSocket (0x0x7f64e4c19958)
- QIODevice (0x0x7f64e4c19a28) 0
- primary-for QAbstractSocket (0x0x7f64e4c199c0)
- QObject (0x0x7f64e4c326c0) 0
- primary-for QIODevice (0x0x7f64e4c19a28)
-
-Class QJSValue
- size=8 align=8
- base size=8 base align=8
-QJSValue (0x0x7f64e4c32780) 0
-
-Class QQmlDebuggingEnabler
- size=1 align=1
- base size=0 base align=1
-QQmlDebuggingEnabler (0x0x7f64e4c32a20) 0 empty
-
-Class QJSEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QJSEngine::QPrivateSignal (0x0x7f64e4c32ae0) 0 empty
-
-Vtable for QJSEngine
-QJSEngine::_ZTV9QJSEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QJSEngine)
-16 (int (*)(...))QJSEngine::metaObject
-24 (int (*)(...))QJSEngine::qt_metacast
-32 (int (*)(...))QJSEngine::qt_metacall
-40 (int (*)(...))QJSEngine::~QJSEngine
-48 (int (*)(...))QJSEngine::~QJSEngine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QJSEngine
- size=24 align=8
- base size=24 base align=8
-QJSEngine (0x0x7f64e4c19b60) 0
- vptr=((& QJSEngine::_ZTV9QJSEngine) + 16u)
- QObject (0x0x7f64e4c32a80) 0
- primary-for QJSEngine (0x0x7f64e4c19b60)
-
-Class QJSValueIterator
- size=8 align=8
- base size=8 base align=8
-QJSValueIterator (0x0x7f64e4c32cc0) 0
-
-Class QQmlPrivate::RegisterType
- size=128 align=8
- base size=124 base align=8
-QQmlPrivate::RegisterType (0x0x7f64e49311e0) 0
-
-Class QQmlPrivate::RegisterInterface
- size=24 align=8
- base size=24 base align=8
-QQmlPrivate::RegisterInterface (0x0x7f64e4931240) 0
-
-Class QQmlPrivate::RegisterAutoParent
- size=16 align=8
- base size=16 base align=8
-QQmlPrivate::RegisterAutoParent (0x0x7f64e49312a0) 0
-
-Class QQmlPrivate::RegisterSingletonType
- size=64 align=8
- base size=64 base align=8
-QQmlPrivate::RegisterSingletonType (0x0x7f64e4931300) 0
-
-Class QQmlPrivate::RegisterCompositeType
- size=32 align=8
- base size=32 base align=8
-QQmlPrivate::RegisterCompositeType (0x0x7f64e4931360) 0
-
-Class QQmlPrivate::RegisterCompositeSingletonType
- size=32 align=8
- base size=32 base align=8
-QQmlPrivate::RegisterCompositeSingletonType (0x0x7f64e49313c0) 0
-
-Class QQmlPrivate::CachedQmlUnit
- size=24 align=8
- base size=24 base align=8
-QQmlPrivate::CachedQmlUnit (0x0x7f64e4931420) 0
-
-Class QQmlPrivate::RegisterQmlUnitCacheHook
- size=16 align=8
- base size=16 base align=8
-QQmlPrivate::RegisterQmlUnitCacheHook (0x0x7f64e4931480) 0
-
-Vtable for QQmlParserStatus
-QQmlParserStatus::_ZTV16QQmlParserStatus: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QQmlParserStatus)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlParserStatus
- size=16 align=8
- base size=16 base align=8
-QQmlParserStatus (0x0x7f64e49314e0) 0
- vptr=((& QQmlParserStatus::_ZTV16QQmlParserStatus) + 16u)
-
-Vtable for QQmlPropertyValueSource
-QQmlPropertyValueSource::_ZTV23QQmlPropertyValueSource: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QQmlPropertyValueSource)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlPropertyValueSource
- size=8 align=8
- base size=8 base align=8
-QQmlPropertyValueSource (0x0x7f64e49315a0) 0 nearly-empty
- vptr=((& QQmlPropertyValueSource::_ZTV23QQmlPropertyValueSource) + 16u)
-
-Class QQmlListReference
- size=8 align=8
- base size=8 base align=8
-QQmlListReference (0x0x7f64e49316c0) 0
-
-Vtable for QQmlAbstractUrlInterceptor
-QQmlAbstractUrlInterceptor::_ZTV26QQmlAbstractUrlInterceptor: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QQmlAbstractUrlInterceptor)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlAbstractUrlInterceptor
- size=8 align=8
- base size=8 base align=8
-QQmlAbstractUrlInterceptor (0x0x7f64e4931d20) 0 nearly-empty
- vptr=((& QQmlAbstractUrlInterceptor::_ZTV26QQmlAbstractUrlInterceptor) + 16u)
-
-Class QQmlError
- size=8 align=8
- base size=8 base align=8
-QQmlError (0x0x7f64e4931d80) 0
-
-Vtable for QQmlImageProviderBase
-QQmlImageProviderBase::_ZTV21QQmlImageProviderBase: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QQmlImageProviderBase)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlImageProviderBase
- size=8 align=8
- base size=8 base align=8
-QQmlImageProviderBase (0x0x7f64e4a4a060) 0 nearly-empty
- vptr=((& QQmlImageProviderBase::_ZTV21QQmlImageProviderBase) + 16u)
-
-Class QQmlEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlEngine::QPrivateSignal (0x0x7f64e4a4a2a0) 0 empty
-
-Vtable for QQmlEngine
-QQmlEngine::_ZTV10QQmlEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQmlEngine)
-16 (int (*)(...))QQmlEngine::metaObject
-24 (int (*)(...))QQmlEngine::qt_metacast
-32 (int (*)(...))QQmlEngine::qt_metacall
-40 (int (*)(...))QQmlEngine::~QQmlEngine
-48 (int (*)(...))QQmlEngine::~QQmlEngine
-56 (int (*)(...))QQmlEngine::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlEngine
- size=24 align=8
- base size=24 base align=8
-QQmlEngine (0x0x7f64e4a4c1a0) 0
- vptr=((& QQmlEngine::_ZTV10QQmlEngine) + 16u)
- QJSEngine (0x0x7f64e4a4c208) 0
- primary-for QQmlEngine (0x0x7f64e4a4c1a0)
- QObject (0x0x7f64e4a4a240) 0
- primary-for QJSEngine (0x0x7f64e4a4c208)
-
-Class QQmlApplicationEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlApplicationEngine::QPrivateSignal (0x0x7f64e4a4a360) 0 empty
-
-Vtable for QQmlApplicationEngine
-QQmlApplicationEngine::_ZTV21QQmlApplicationEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QQmlApplicationEngine)
-16 (int (*)(...))QQmlApplicationEngine::metaObject
-24 (int (*)(...))QQmlApplicationEngine::qt_metacast
-32 (int (*)(...))QQmlApplicationEngine::qt_metacall
-40 (int (*)(...))QQmlApplicationEngine::~QQmlApplicationEngine
-48 (int (*)(...))QQmlApplicationEngine::~QQmlApplicationEngine
-56 (int (*)(...))QQmlEngine::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlApplicationEngine
- size=24 align=8
- base size=24 base align=8
-QQmlApplicationEngine (0x0x7f64e4a4c270) 0
- vptr=((& QQmlApplicationEngine::_ZTV21QQmlApplicationEngine) + 16u)
- QQmlEngine (0x0x7f64e4a4c2d8) 0
- primary-for QQmlApplicationEngine (0x0x7f64e4a4c270)
- QJSEngine (0x0x7f64e4a4c340) 0
- primary-for QQmlEngine (0x0x7f64e4a4c2d8)
- QObject (0x0x7f64e4a4a300) 0
- primary-for QJSEngine (0x0x7f64e4a4c340)
-
-Class QQmlComponent::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlComponent::QPrivateSignal (0x0x7f64e4a4a420) 0 empty
-
-Vtable for QQmlComponent
-QQmlComponent::_ZTV13QQmlComponent: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QQmlComponent)
-16 (int (*)(...))QQmlComponent::metaObject
-24 (int (*)(...))QQmlComponent::qt_metacast
-32 (int (*)(...))QQmlComponent::qt_metacall
-40 (int (*)(...))QQmlComponent::~QQmlComponent
-48 (int (*)(...))QQmlComponent::~QQmlComponent
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQmlComponent::create
-120 (int (*)(...))QQmlComponent::beginCreate
-128 (int (*)(...))QQmlComponent::completeCreate
-
-Class QQmlComponent
- size=16 align=8
- base size=16 base align=8
-QQmlComponent (0x0x7f64e4a4c3a8) 0
- vptr=((& QQmlComponent::_ZTV13QQmlComponent) + 16u)
- QObject (0x0x7f64e4a4a3c0) 0
- primary-for QQmlComponent (0x0x7f64e4a4c3a8)
-
-Class QQmlContext::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlContext::QPrivateSignal (0x0x7f64e4a4ac60) 0 empty
-
-Class QQmlContext::PropertyPair
- size=24 align=8
- base size=24 base align=8
-QQmlContext::PropertyPair (0x0x7f64e4a4acc0) 0
-
-Vtable for QQmlContext
-QQmlContext::_ZTV11QQmlContext: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QQmlContext)
-16 (int (*)(...))QQmlContext::metaObject
-24 (int (*)(...))QQmlContext::qt_metacast
-32 (int (*)(...))QQmlContext::qt_metacall
-40 (int (*)(...))QQmlContext::~QQmlContext
-48 (int (*)(...))QQmlContext::~QQmlContext
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlContext
- size=16 align=8
- base size=16 base align=8
-QQmlContext (0x0x7f64e4a4c8f0) 0
- vptr=((& QQmlContext::_ZTV11QQmlContext) + 16u)
- QObject (0x0x7f64e4a4ac00) 0
- primary-for QQmlContext (0x0x7f64e4a4c8f0)
-
-Class QQmlScriptString
- size=8 align=8
- base size=8 base align=8
-QQmlScriptString (0x0x7f64e4a4ae40) 0
-
-Class QQmlExpression::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlExpression::QPrivateSignal (0x0x7f64e472a0c0) 0 empty
-
-Vtable for QQmlExpression
-QQmlExpression::_ZTV14QQmlExpression: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QQmlExpression)
-16 (int (*)(...))QQmlExpression::metaObject
-24 (int (*)(...))QQmlExpression::qt_metacast
-32 (int (*)(...))QQmlExpression::qt_metacall
-40 (int (*)(...))QQmlExpression::~QQmlExpression
-48 (int (*)(...))QQmlExpression::~QQmlExpression
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlExpression
- size=16 align=8
- base size=16 base align=8
-QQmlExpression (0x0x7f64e4a4c958) 0
- vptr=((& QQmlExpression::_ZTV14QQmlExpression) + 16u)
- QObject (0x0x7f64e472a060) 0
- primary-for QQmlExpression (0x0x7f64e4a4c958)
-
-Vtable for QQmlTypesExtensionInterface
-QQmlTypesExtensionInterface::_ZTV27QQmlTypesExtensionInterface: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QQmlTypesExtensionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlTypesExtensionInterface
- size=8 align=8
- base size=8 base align=8
-QQmlTypesExtensionInterface (0x0x7f64e472a120) 0 nearly-empty
- vptr=((& QQmlTypesExtensionInterface::_ZTV27QQmlTypesExtensionInterface) + 16u)
-
-Vtable for QQmlExtensionInterface
-QQmlExtensionInterface::_ZTV22QQmlExtensionInterface: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QQmlExtensionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlExtensionInterface
- size=8 align=8
- base size=8 base align=8
-QQmlExtensionInterface (0x0x7f64e4a4c9c0) 0 nearly-empty
- vptr=((& QQmlExtensionInterface::_ZTV22QQmlExtensionInterface) + 16u)
- QQmlTypesExtensionInterface (0x0x7f64e472a180) 0 nearly-empty
- primary-for QQmlExtensionInterface (0x0x7f64e4a4c9c0)
-
-Class QQmlExtensionPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlExtensionPlugin::QPrivateSignal (0x0x7f64e472a360) 0 empty
-
-Vtable for QQmlExtensionPlugin
-QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQmlExtensionPlugin)
-16 (int (*)(...))QQmlExtensionPlugin::metaObject
-24 (int (*)(...))QQmlExtensionPlugin::qt_metacast
-32 (int (*)(...))QQmlExtensionPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QQmlExtensionPlugin::initializeEngine
-128 (int (*)(...))-16
-136 (int (*)(...))(& _ZTI19QQmlExtensionPlugin)
-144 0u
-152 0u
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QQmlExtensionPlugin::_ZThn16_N19QQmlExtensionPlugin16initializeEngineEP10QQmlEnginePKc
-
-Class QQmlExtensionPlugin
- size=24 align=8
- base size=24 base align=8
-QQmlExtensionPlugin (0x0x7f64e4754150) 0
- vptr=((& QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin) + 16u)
- QObject (0x0x7f64e472a2a0) 0
- primary-for QQmlExtensionPlugin (0x0x7f64e4754150)
- QQmlExtensionInterface (0x0x7f64e4a4ca28) 16 nearly-empty
- vptr=((& QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin) + 144u)
- QQmlTypesExtensionInterface (0x0x7f64e472a300) 16 nearly-empty
- primary-for QQmlExtensionInterface (0x0x7f64e4a4ca28)
-
-Class QQmlFile
- size=8 align=8
- base size=8 base align=8
-QQmlFile (0x0x7f64e472a3c0) 0
-
-Class QQmlFileSelector::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlFileSelector::QPrivateSignal (0x0x7f64e472a480) 0 empty
-
-Vtable for QQmlFileSelector
-QQmlFileSelector::_ZTV16QQmlFileSelector: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QQmlFileSelector)
-16 (int (*)(...))QQmlFileSelector::metaObject
-24 (int (*)(...))QQmlFileSelector::qt_metacast
-32 (int (*)(...))QQmlFileSelector::qt_metacall
-40 (int (*)(...))QQmlFileSelector::~QQmlFileSelector
-48 (int (*)(...))QQmlFileSelector::~QQmlFileSelector
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlFileSelector
- size=16 align=8
- base size=16 base align=8
-QQmlFileSelector (0x0x7f64e4a4caf8) 0
- vptr=((& QQmlFileSelector::_ZTV16QQmlFileSelector) + 16u)
- QObject (0x0x7f64e472a420) 0
- primary-for QQmlFileSelector (0x0x7f64e4a4caf8)
-
-Vtable for QQmlIncubator
-QQmlIncubator::_ZTV13QQmlIncubator: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QQmlIncubator)
-16 (int (*)(...))QQmlIncubator::~QQmlIncubator
-24 (int (*)(...))QQmlIncubator::~QQmlIncubator
-32 (int (*)(...))QQmlIncubator::statusChanged
-40 (int (*)(...))QQmlIncubator::setInitialState
-
-Class QQmlIncubator
- size=16 align=8
- base size=16 base align=8
-QQmlIncubator (0x0x7f64e472a4e0) 0
- vptr=((& QQmlIncubator::_ZTV13QQmlIncubator) + 16u)
-
-Vtable for QQmlIncubationController
-QQmlIncubationController::_ZTV24QQmlIncubationController: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QQmlIncubationController)
-16 (int (*)(...))QQmlIncubationController::~QQmlIncubationController
-24 (int (*)(...))QQmlIncubationController::~QQmlIncubationController
-32 (int (*)(...))QQmlIncubationController::incubatingObjectCountChanged
-
-Class QQmlIncubationController
- size=16 align=8
- base size=16 base align=8
-QQmlIncubationController (0x0x7f64e472a540) 0
- vptr=((& QQmlIncubationController::_ZTV24QQmlIncubationController) + 16u)
-
-Class QQmlInfo
- size=16 align=8
- base size=16 base align=8
-QQmlInfo (0x0x7f64e4a4cb60) 0
- QDebug (0x0x7f64e472a5a0) 0
-
-Vtable for QQmlNetworkAccessManagerFactory
-QQmlNetworkAccessManagerFactory::_ZTV31QQmlNetworkAccessManagerFactory: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI31QQmlNetworkAccessManagerFactory)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlNetworkAccessManagerFactory
- size=8 align=8
- base size=8 base align=8
-QQmlNetworkAccessManagerFactory (0x0x7f64e480b480) 0 nearly-empty
- vptr=((& QQmlNetworkAccessManagerFactory::_ZTV31QQmlNetworkAccessManagerFactory) + 16u)
-
-Class QQmlProperty
- size=8 align=8
- base size=8 base align=8
-QQmlProperty (0x0x7f64e480b4e0) 0
-
-Class QQmlPropertyMap::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlPropertyMap::QPrivateSignal (0x0x7f64e4848060) 0 empty
-
-Vtable for QQmlPropertyMap
-QQmlPropertyMap::_ZTV15QQmlPropertyMap: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QQmlPropertyMap)
-16 (int (*)(...))QQmlPropertyMap::metaObject
-24 (int (*)(...))QQmlPropertyMap::qt_metacast
-32 (int (*)(...))QQmlPropertyMap::qt_metacall
-40 (int (*)(...))QQmlPropertyMap::~QQmlPropertyMap
-48 (int (*)(...))QQmlPropertyMap::~QQmlPropertyMap
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQmlPropertyMap::updateValue
-
-Class QQmlPropertyMap
- size=16 align=8
- base size=16 base align=8
-QQmlPropertyMap (0x0x7f64e48393a8) 0
- vptr=((& QQmlPropertyMap::_ZTV15QQmlPropertyMap) + 16u)
- QObject (0x0x7f64e4848000) 0
- primary-for QQmlPropertyMap (0x0x7f64e48393a8)
-
-Class QQuickTransform::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTransform::QPrivateSignal (0x0x7f64e4848120) 0 empty
-
-Vtable for QQuickTransform
-QQuickTransform::_ZTV15QQuickTransform: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QQuickTransform)
-16 (int (*)(...))QQuickTransform::metaObject
-24 (int (*)(...))QQuickTransform::qt_metacast
-32 (int (*)(...))QQuickTransform::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QQuickTransform
- size=16 align=8
- base size=16 base align=8
-QQuickTransform (0x0x7f64e4839410) 0
- vptr=((& QQuickTransform::_ZTV15QQuickTransform) + 16u)
- QObject (0x0x7f64e48480c0) 0
- primary-for QQuickTransform (0x0x7f64e4839410)
-
-Class QQuickItem::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickItem::QPrivateSignal (0x0x7f64e4848240) 0 empty
-
-Class QQuickItem::ItemChangeData
- size=8 align=8
- base size=8 base align=8
-QQuickItem::ItemChangeData (0x0x7f64e48482a0) 0
-
-Class QQuickItem::UpdatePaintNodeData
- size=8 align=8
- base size=8 base align=8
-QQuickItem::UpdatePaintNodeData (0x0x7f64e4848300) 0
-
-Vtable for QQuickItem
-QQuickItem::_ZTV10QQuickItem: 55u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQuickItem)
-16 (int (*)(...))QQuickItem::metaObject
-24 (int (*)(...))QQuickItem::qt_metacast
-32 (int (*)(...))QQuickItem::qt_metacall
-40 (int (*)(...))QQuickItem::~QQuickItem
-48 (int (*)(...))QQuickItem::~QQuickItem
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickItem::isTextureProvider
-152 (int (*)(...))QQuickItem::textureProvider
-160 (int (*)(...))QQuickItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickItem::geometryChanged
-368 (int (*)(...))QQuickItem::updatePaintNode
-376 (int (*)(...))QQuickItem::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))-16
-400 (int (*)(...))(& _ZTI10QQuickItem)
-408 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItemD1Ev
-416 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItemD0Ev
-424 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickItem
- size=32 align=8
- base size=32 base align=8
-QQuickItem (0x0x7f64e4842cb0) 0
- vptr=((& QQuickItem::_ZTV10QQuickItem) + 16u)
- QObject (0x0x7f64e4848180) 0
- primary-for QQuickItem (0x0x7f64e4842cb0)
- QQmlParserStatus (0x0x7f64e48481e0) 16
- vptr=((& QQuickItem::_ZTV10QQuickItem) + 408u)
-
-Class QQuickFramebufferObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickFramebufferObject::QPrivateSignal (0x0x7f64e4848ae0) 0 empty
-
-Vtable for QQuickFramebufferObject::Renderer
-QQuickFramebufferObject::Renderer::_ZTVN23QQuickFramebufferObject8RendererE: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN23QQuickFramebufferObject8RendererE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QQuickFramebufferObject::Renderer::createFramebufferObject
-48 (int (*)(...))QQuickFramebufferObject::Renderer::synchronize
-
-Class QQuickFramebufferObject::Renderer
- size=16 align=8
- base size=16 base align=8
-QQuickFramebufferObject::Renderer (0x0x7f64e4848b40) 0
- vptr=((& QQuickFramebufferObject::Renderer::_ZTVN23QQuickFramebufferObject8RendererE) + 16u)
-
-Vtable for QQuickFramebufferObject
-QQuickFramebufferObject::_ZTV23QQuickFramebufferObject: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QQuickFramebufferObject)
-16 (int (*)(...))QQuickFramebufferObject::metaObject
-24 (int (*)(...))QQuickFramebufferObject::qt_metacast
-32 (int (*)(...))QQuickFramebufferObject::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickFramebufferObject::isTextureProvider
-152 (int (*)(...))QQuickFramebufferObject::textureProvider
-160 (int (*)(...))QQuickItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickFramebufferObject::geometryChanged
-368 (int (*)(...))QQuickFramebufferObject::updatePaintNode
-376 (int (*)(...))QQuickFramebufferObject::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))-16
-408 (int (*)(...))(& _ZTI23QQuickFramebufferObject)
-416 0u
-424 0u
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-440 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickFramebufferObject
- size=32 align=8
- base size=32 base align=8
-QQuickFramebufferObject (0x0x7f64e4839548) 0
- vptr=((& QQuickFramebufferObject::_ZTV23QQuickFramebufferObject) + 16u)
- QQuickItem (0x0x7f64e49134d0) 0
- primary-for QQuickFramebufferObject (0x0x7f64e4839548)
- QObject (0x0x7f64e4848a20) 0
- primary-for QQuickItem (0x0x7f64e49134d0)
- QQmlParserStatus (0x0x7f64e4848a80) 16
- vptr=((& QQuickFramebufferObject::_ZTV23QQuickFramebufferObject) + 416u)
-
-Class QQuickTextureFactory::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTextureFactory::QPrivateSignal (0x0x7f64e4848c00) 0 empty
-
-Vtable for QQuickTextureFactory
-QQuickTextureFactory::_ZTV20QQuickTextureFactory: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QQuickTextureFactory)
-16 (int (*)(...))QQuickTextureFactory::metaObject
-24 (int (*)(...))QQuickTextureFactory::qt_metacast
-32 (int (*)(...))QQuickTextureFactory::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))QQuickTextureFactory::image
-
-Class QQuickTextureFactory
- size=16 align=8
- base size=16 base align=8
-QQuickTextureFactory (0x0x7f64e48395b0) 0
- vptr=((& QQuickTextureFactory::_ZTV20QQuickTextureFactory) + 16u)
- QObject (0x0x7f64e4848ba0) 0
- primary-for QQuickTextureFactory (0x0x7f64e48395b0)
-
-Class QQuickImageResponse::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickImageResponse::QPrivateSignal (0x0x7f64e4848cc0) 0 empty
-
-Vtable for QQuickImageResponse
-QQuickImageResponse::_ZTV19QQuickImageResponse: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickImageResponse)
-16 (int (*)(...))QQuickImageResponse::metaObject
-24 (int (*)(...))QQuickImageResponse::qt_metacast
-32 (int (*)(...))QQuickImageResponse::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QQuickImageResponse::errorString
-128 (int (*)(...))QQuickImageResponse::cancel
-
-Class QQuickImageResponse
- size=16 align=8
- base size=16 base align=8
-QQuickImageResponse (0x0x7f64e4839618) 0
- vptr=((& QQuickImageResponse::_ZTV19QQuickImageResponse) + 16u)
- QObject (0x0x7f64e4848c60) 0
- primary-for QQuickImageResponse (0x0x7f64e4839618)
-
-Vtable for QQuickImageProvider
-QQuickImageProvider::_ZTV19QQuickImageProvider: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickImageProvider)
-16 (int (*)(...))QQuickImageProvider::~QQuickImageProvider
-24 (int (*)(...))QQuickImageProvider::~QQuickImageProvider
-32 (int (*)(...))QQuickImageProvider::imageType
-40 (int (*)(...))QQuickImageProvider::flags
-48 (int (*)(...))QQuickImageProvider::requestImage
-56 (int (*)(...))QQuickImageProvider::requestPixmap
-64 (int (*)(...))QQuickImageProvider::requestTexture
-
-Class QQuickImageProvider
- size=16 align=8
- base size=16 base align=8
-QQuickImageProvider (0x0x7f64e4839680) 0
- vptr=((& QQuickImageProvider::_ZTV19QQuickImageProvider) + 16u)
- QQmlImageProviderBase (0x0x7f64e4848d20) 0 nearly-empty
- primary-for QQuickImageProvider (0x0x7f64e4839680)
-
-Vtable for QQuickAsyncImageProvider
-QQuickAsyncImageProvider::_ZTV24QQuickAsyncImageProvider: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QQuickAsyncImageProvider)
-16 0u
-24 0u
-32 (int (*)(...))QQuickImageProvider::imageType
-40 (int (*)(...))QQuickImageProvider::flags
-48 (int (*)(...))QQuickImageProvider::requestImage
-56 (int (*)(...))QQuickImageProvider::requestPixmap
-64 (int (*)(...))QQuickImageProvider::requestTexture
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QQuickAsyncImageProvider
- size=24 align=8
- base size=24 base align=8
-QQuickAsyncImageProvider (0x0x7f64e48396e8) 0
- vptr=((& QQuickAsyncImageProvider::_ZTV24QQuickAsyncImageProvider) + 16u)
- QQuickImageProvider (0x0x7f64e4839750) 0
- primary-for QQuickAsyncImageProvider (0x0x7f64e48396e8)
- QQmlImageProviderBase (0x0x7f64e4848d80) 0 nearly-empty
- primary-for QQuickImageProvider (0x0x7f64e4839750)
-
-Class QQuickItemGrabResult::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickItemGrabResult::QPrivateSignal (0x0x7f64e4848e40) 0 empty
-
-Vtable for QQuickItemGrabResult
-QQuickItemGrabResult::_ZTV20QQuickItemGrabResult: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QQuickItemGrabResult)
-16 (int (*)(...))QQuickItemGrabResult::metaObject
-24 (int (*)(...))QQuickItemGrabResult::qt_metacast
-32 (int (*)(...))QQuickItemGrabResult::qt_metacall
-40 (int (*)(...))QQuickItemGrabResult::~QQuickItemGrabResult
-48 (int (*)(...))QQuickItemGrabResult::~QQuickItemGrabResult
-56 (int (*)(...))QQuickItemGrabResult::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQuickItemGrabResult
- size=16 align=8
- base size=16 base align=8
-QQuickItemGrabResult (0x0x7f64e48397b8) 0
- vptr=((& QQuickItemGrabResult::_ZTV20QQuickItemGrabResult) + 16u)
- QObject (0x0x7f64e4848de0) 0
- primary-for QQuickItemGrabResult (0x0x7f64e48397b8)
-
-Class QQuickPaintedItem::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickPaintedItem::QPrivateSignal (0x0x7f64e4848f60) 0 empty
-
-Vtable for QQuickPaintedItem
-QQuickPaintedItem::_ZTV17QQuickPaintedItem: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QQuickPaintedItem)
-16 (int (*)(...))QQuickPaintedItem::metaObject
-24 (int (*)(...))QQuickPaintedItem::qt_metacast
-32 (int (*)(...))QQuickPaintedItem::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickPaintedItem::isTextureProvider
-152 (int (*)(...))QQuickPaintedItem::textureProvider
-160 (int (*)(...))QQuickPaintedItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickItem::geometryChanged
-368 (int (*)(...))QQuickPaintedItem::updatePaintNode
-376 (int (*)(...))QQuickPaintedItem::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))-16
-408 (int (*)(...))(& _ZTI17QQuickPaintedItem)
-416 0u
-424 0u
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-440 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickPaintedItem
- size=32 align=8
- base size=32 base align=8
-QQuickPaintedItem (0x0x7f64e4839820) 0
- vptr=((& QQuickPaintedItem::_ZTV17QQuickPaintedItem) + 16u)
- QQuickItem (0x0x7f64e455a2a0) 0
- primary-for QQuickPaintedItem (0x0x7f64e4839820)
- QObject (0x0x7f64e4848ea0) 0
- primary-for QQuickItem (0x0x7f64e455a2a0)
- QQmlParserStatus (0x0x7f64e4848f00) 16
- vptr=((& QQuickPaintedItem::_ZTV17QQuickPaintedItem) + 416u)
-
-Class QQuickRenderControl::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickRenderControl::QPrivateSignal (0x0x7f64e45861e0) 0 empty
-
-Vtable for QQuickRenderControl
-QQuickRenderControl::_ZTV19QQuickRenderControl: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickRenderControl)
-16 (int (*)(...))QQuickRenderControl::metaObject
-24 (int (*)(...))QQuickRenderControl::qt_metacast
-32 (int (*)(...))QQuickRenderControl::qt_metacall
-40 (int (*)(...))QQuickRenderControl::~QQuickRenderControl
-48 (int (*)(...))QQuickRenderControl::~QQuickRenderControl
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickRenderControl::renderWindow
-
-Class QQuickRenderControl
- size=16 align=8
- base size=16 base align=8
-QQuickRenderControl (0x0x7f64e48399c0) 0
- vptr=((& QQuickRenderControl::_ZTV19QQuickRenderControl) + 16u)
- QObject (0x0x7f64e4586180) 0
- primary-for QQuickRenderControl (0x0x7f64e48399c0)
-
-Class QQuickTextDocument::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTextDocument::QPrivateSignal (0x0x7f64e45862a0) 0 empty
-
-Vtable for QQuickTextDocument
-QQuickTextDocument::_ZTV18QQuickTextDocument: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QQuickTextDocument)
-16 (int (*)(...))QQuickTextDocument::metaObject
-24 (int (*)(...))QQuickTextDocument::qt_metacast
-32 (int (*)(...))QQuickTextDocument::qt_metacall
-40 (int (*)(...))QQuickTextDocument::~QQuickTextDocument
-48 (int (*)(...))QQuickTextDocument::~QQuickTextDocument
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQuickTextDocument
- size=16 align=8
- base size=16 base align=8
-QQuickTextDocument (0x0x7f64e4839a28) 0
- vptr=((& QQuickTextDocument::_ZTV18QQuickTextDocument) + 16u)
- QObject (0x0x7f64e4586240) 0
- primary-for QQuickTextDocument (0x0x7f64e4839a28)
-
-Class QSGGeometry::Attribute
- size=16 align=4
- base size=16 base align=4
-QSGGeometry::Attribute (0x0x7f64e4586600) 0
-
-Class QSGGeometry::AttributeSet
- size=16 align=8
- base size=16 base align=8
-QSGGeometry::AttributeSet (0x0x7f64e4586660) 0
-
-Class QSGGeometry::Point2D
- size=8 align=4
- base size=8 base align=4
-QSGGeometry::Point2D (0x0x7f64e45866c0) 0
-
-Class QSGGeometry::TexturedPoint2D
- size=16 align=4
- base size=16 base align=4
-QSGGeometry::TexturedPoint2D (0x0x7f64e4586720) 0
-
-Class QSGGeometry::ColoredPoint2D
- size=12 align=4
- base size=12 base align=4
-QSGGeometry::ColoredPoint2D (0x0x7f64e4586780) 0
-
-Vtable for QSGGeometry
-QSGGeometry::_ZTV11QSGGeometry: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGGeometry)
-16 (int (*)(...))QSGGeometry::~QSGGeometry
-24 (int (*)(...))QSGGeometry::~QSGGeometry
-
-Class QSGGeometry
- size=128 align=8
- base size=128 base align=8
-QSGGeometry (0x0x7f64e45865a0) 0
- vptr=((& QSGGeometry::_ZTV11QSGGeometry) + 16u)
-
-Vtable for QSGNode
-QSGNode::_ZTV7QSGNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QSGNode)
-16 (int (*)(...))QSGNode::~QSGNode
-24 (int (*)(...))QSGNode::~QSGNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGNode
- size=80 align=8
- base size=80 base align=8
-QSGNode (0x0x7f64e4586c60) 0
- vptr=((& QSGNode::_ZTV7QSGNode) + 16u)
-
-Vtable for QSGBasicGeometryNode
-QSGBasicGeometryNode::_ZTV20QSGBasicGeometryNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGBasicGeometryNode)
-16 (int (*)(...))QSGBasicGeometryNode::~QSGBasicGeometryNode
-24 (int (*)(...))QSGBasicGeometryNode::~QSGBasicGeometryNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGBasicGeometryNode
- size=112 align=8
- base size=112 base align=8
-QSGBasicGeometryNode (0x0x7f64e4692138) 0
- vptr=((& QSGBasicGeometryNode::_ZTV20QSGBasicGeometryNode) + 16u)
- QSGNode (0x0x7f64e46b7060) 0
- primary-for QSGBasicGeometryNode (0x0x7f64e4692138)
-
-Vtable for QSGGeometryNode
-QSGGeometryNode::_ZTV15QSGGeometryNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSGGeometryNode)
-16 (int (*)(...))QSGGeometryNode::~QSGGeometryNode
-24 (int (*)(...))QSGGeometryNode::~QSGGeometryNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGGeometryNode
- size=144 align=8
- base size=144 base align=8
-QSGGeometryNode (0x0x7f64e46921a0) 0
- vptr=((& QSGGeometryNode::_ZTV15QSGGeometryNode) + 16u)
- QSGBasicGeometryNode (0x0x7f64e4692208) 0
- primary-for QSGGeometryNode (0x0x7f64e46921a0)
- QSGNode (0x0x7f64e46b70c0) 0
- primary-for QSGBasicGeometryNode (0x0x7f64e4692208)
-
-Vtable for QSGClipNode
-QSGClipNode::_ZTV11QSGClipNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGClipNode)
-16 (int (*)(...))QSGClipNode::~QSGClipNode
-24 (int (*)(...))QSGClipNode::~QSGClipNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGClipNode
- size=152 align=8
- base size=152 base align=8
-QSGClipNode (0x0x7f64e4692270) 0
- vptr=((& QSGClipNode::_ZTV11QSGClipNode) + 16u)
- QSGBasicGeometryNode (0x0x7f64e46922d8) 0
- primary-for QSGClipNode (0x0x7f64e4692270)
- QSGNode (0x0x7f64e46b7120) 0
- primary-for QSGBasicGeometryNode (0x0x7f64e46922d8)
-
-Vtable for QSGTransformNode
-QSGTransformNode::_ZTV16QSGTransformNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGTransformNode)
-16 (int (*)(...))QSGTransformNode::~QSGTransformNode
-24 (int (*)(...))QSGTransformNode::~QSGTransformNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGTransformNode
- size=216 align=8
- base size=216 base align=8
-QSGTransformNode (0x0x7f64e4692340) 0
- vptr=((& QSGTransformNode::_ZTV16QSGTransformNode) + 16u)
- QSGNode (0x0x7f64e46b7180) 0
- primary-for QSGTransformNode (0x0x7f64e4692340)
-
-Vtable for QSGRootNode
-QSGRootNode::_ZTV11QSGRootNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGRootNode)
-16 (int (*)(...))QSGRootNode::~QSGRootNode
-24 (int (*)(...))QSGRootNode::~QSGRootNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGRootNode
- size=88 align=8
- base size=88 base align=8
-QSGRootNode (0x0x7f64e46923a8) 0
- vptr=((& QSGRootNode::_ZTV11QSGRootNode) + 16u)
- QSGNode (0x0x7f64e46b71e0) 0
- primary-for QSGRootNode (0x0x7f64e46923a8)
-
-Vtable for QSGOpacityNode
-QSGOpacityNode::_ZTV14QSGOpacityNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QSGOpacityNode)
-16 (int (*)(...))QSGOpacityNode::~QSGOpacityNode
-24 (int (*)(...))QSGOpacityNode::~QSGOpacityNode
-32 (int (*)(...))QSGOpacityNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGOpacityNode
- size=96 align=8
- base size=96 base align=8
-QSGOpacityNode (0x0x7f64e4692548) 0
- vptr=((& QSGOpacityNode::_ZTV14QSGOpacityNode) + 16u)
- QSGNode (0x0x7f64e46b7360) 0
- primary-for QSGOpacityNode (0x0x7f64e4692548)
-
-Vtable for QSGNodeVisitor
-QSGNodeVisitor::_ZTV14QSGNodeVisitor: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QSGNodeVisitor)
-16 (int (*)(...))QSGNodeVisitor::~QSGNodeVisitor
-24 (int (*)(...))QSGNodeVisitor::~QSGNodeVisitor
-32 (int (*)(...))QSGNodeVisitor::enterTransformNode
-40 (int (*)(...))QSGNodeVisitor::leaveTransformNode
-48 (int (*)(...))QSGNodeVisitor::enterClipNode
-56 (int (*)(...))QSGNodeVisitor::leaveClipNode
-64 (int (*)(...))QSGNodeVisitor::enterGeometryNode
-72 (int (*)(...))QSGNodeVisitor::leaveGeometryNode
-80 (int (*)(...))QSGNodeVisitor::enterOpacityNode
-88 (int (*)(...))QSGNodeVisitor::leaveOpacityNode
-96 (int (*)(...))QSGNodeVisitor::visitNode
-104 (int (*)(...))QSGNodeVisitor::visitChildren
-
-Class QSGNodeVisitor
- size=8 align=8
- base size=8 base align=8
-QSGNodeVisitor (0x0x7f64e46b73c0) 0 nearly-empty
- vptr=((& QSGNodeVisitor::_ZTV14QSGNodeVisitor) + 16u)
-
-Vtable for QSGRendererInterface
-QSGRendererInterface::_ZTV20QSGRendererInterface: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGRendererInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QSGRendererInterface::getResource
-48 (int (*)(...))QSGRendererInterface::getResource
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QSGRendererInterface
- size=8 align=8
- base size=8 base align=8
-QSGRendererInterface (0x0x7f64e46b7420) 0 nearly-empty
- vptr=((& QSGRendererInterface::_ZTV20QSGRendererInterface) + 16u)
-
-Class QQuickWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickWindow::QPrivateSignal (0x0x7f64e46b7840) 0 empty
-
-Vtable for QQuickWindow
-QQuickWindow::_ZTV12QQuickWindow: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QQuickWindow)
-16 (int (*)(...))QQuickWindow::metaObject
-24 (int (*)(...))QQuickWindow::qt_metacast
-32 (int (*)(...))QQuickWindow::qt_metacall
-40 (int (*)(...))QQuickWindow::~QQuickWindow
-48 (int (*)(...))QQuickWindow::~QQuickWindow
-56 (int (*)(...))QQuickWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QQuickWindow::accessibleRoot
-144 (int (*)(...))QQuickWindow::focusObject
-152 (int (*)(...))QQuickWindow::exposeEvent
-160 (int (*)(...))QQuickWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QQuickWindow::focusInEvent
-184 (int (*)(...))QQuickWindow::focusOutEvent
-192 (int (*)(...))QQuickWindow::showEvent
-200 (int (*)(...))QQuickWindow::hideEvent
-208 (int (*)(...))QQuickWindow::keyPressEvent
-216 (int (*)(...))QQuickWindow::keyReleaseEvent
-224 (int (*)(...))QQuickWindow::mousePressEvent
-232 (int (*)(...))QQuickWindow::mouseReleaseEvent
-240 (int (*)(...))QQuickWindow::mouseDoubleClickEvent
-248 (int (*)(...))QQuickWindow::mouseMoveEvent
-256 (int (*)(...))QQuickWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI12QQuickWindow)
-312 (int (*)(...))QQuickWindow::_ZThn16_N12QQuickWindowD1Ev
-320 (int (*)(...))QQuickWindow::_ZThn16_N12QQuickWindowD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QQuickWindow
- size=40 align=8
- base size=40 base align=8
-QQuickWindow (0x0x7f64e4692750) 0
- vptr=((& QQuickWindow::_ZTV12QQuickWindow) + 16u)
- QWindow (0x0x7f64e43a7930) 0
- primary-for QQuickWindow (0x0x7f64e4692750)
- QObject (0x0x7f64e46b7780) 0
- primary-for QWindow (0x0x7f64e43a7930)
- QSurface (0x0x7f64e46b77e0) 16
- vptr=((& QQuickWindow::_ZTV12QQuickWindow) + 312u)
-
-Class QQuickView::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickView::QPrivateSignal (0x0x7f64e46b7c00) 0 empty
-
-Vtable for QQuickView
-QQuickView::_ZTV10QQuickView: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQuickView)
-16 (int (*)(...))QQuickView::metaObject
-24 (int (*)(...))QQuickView::qt_metacast
-32 (int (*)(...))QQuickView::qt_metacall
-40 (int (*)(...))QQuickView::~QQuickView
-48 (int (*)(...))QQuickView::~QQuickView
-56 (int (*)(...))QQuickWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QQuickView::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QQuickWindow::accessibleRoot
-144 (int (*)(...))QQuickWindow::focusObject
-152 (int (*)(...))QQuickWindow::exposeEvent
-160 (int (*)(...))QQuickView::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QQuickWindow::focusInEvent
-184 (int (*)(...))QQuickWindow::focusOutEvent
-192 (int (*)(...))QQuickWindow::showEvent
-200 (int (*)(...))QQuickWindow::hideEvent
-208 (int (*)(...))QQuickView::keyPressEvent
-216 (int (*)(...))QQuickView::keyReleaseEvent
-224 (int (*)(...))QQuickView::mousePressEvent
-232 (int (*)(...))QQuickView::mouseReleaseEvent
-240 (int (*)(...))QQuickWindow::mouseDoubleClickEvent
-248 (int (*)(...))QQuickView::mouseMoveEvent
-256 (int (*)(...))QQuickWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI10QQuickView)
-312 (int (*)(...))QQuickView::_ZThn16_N10QQuickViewD1Ev
-320 (int (*)(...))QQuickView::_ZThn16_N10QQuickViewD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QQuickView
- size=40 align=8
- base size=40 base align=8
-QQuickView (0x0x7f64e4692888) 0
- vptr=((& QQuickView::_ZTV10QQuickView) + 16u)
- QQuickWindow (0x0x7f64e46928f0) 0
- primary-for QQuickView (0x0x7f64e4692888)
- QWindow (0x0x7f64e43e1bd0) 0
- primary-for QQuickWindow (0x0x7f64e46928f0)
- QObject (0x0x7f64e46b7b40) 0
- primary-for QWindow (0x0x7f64e43e1bd0)
- QSurface (0x0x7f64e46b7ba0) 16
- vptr=((& QQuickView::_ZTV10QQuickView) + 312u)
-
-Class QSGAbstractRenderer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGAbstractRenderer::QPrivateSignal (0x0x7f64e46b7cc0) 0 empty
-
-Vtable for QSGAbstractRenderer
-QSGAbstractRenderer::_ZTV19QSGAbstractRenderer: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QSGAbstractRenderer)
-16 (int (*)(...))QSGAbstractRenderer::metaObject
-24 (int (*)(...))QSGAbstractRenderer::qt_metacast
-32 (int (*)(...))QSGAbstractRenderer::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QSGAbstractRenderer
- size=16 align=8
- base size=16 base align=8
-QSGAbstractRenderer (0x0x7f64e4692958) 0
- vptr=((& QSGAbstractRenderer::_ZTV19QSGAbstractRenderer) + 16u)
- QObject (0x0x7f64e46b7c60) 0
- primary-for QSGAbstractRenderer (0x0x7f64e4692958)
-
-Class QSGEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGEngine::QPrivateSignal (0x0x7f64e46b7f00) 0 empty
-
-Vtable for QSGEngine
-QSGEngine::_ZTV9QSGEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSGEngine)
-16 (int (*)(...))QSGEngine::metaObject
-24 (int (*)(...))QSGEngine::qt_metacast
-32 (int (*)(...))QSGEngine::qt_metacall
-40 (int (*)(...))QSGEngine::~QSGEngine
-48 (int (*)(...))QSGEngine::~QSGEngine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSGEngine
- size=16 align=8
- base size=16 base align=8
-QSGEngine (0x0x7f64e4692a90) 0
- vptr=((& QSGEngine::_ZTV9QSGEngine) + 16u)
- QObject (0x0x7f64e46b7ea0) 0
- primary-for QSGEngine (0x0x7f64e4692a90)
-
-Class QSGMaterialShader::RenderState
- size=16 align=8
- base size=16 base align=8
-QSGMaterialShader::RenderState (0x0x7f64e44911e0) 0
-
-Vtable for QSGMaterialShader
-QSGMaterialShader::_ZTV17QSGMaterialShader: 12u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGMaterialShader)
-16 0u
-24 0u
-32 (int (*)(...))QSGMaterialShader::activate
-40 (int (*)(...))QSGMaterialShader::deactivate
-48 (int (*)(...))QSGMaterialShader::updateState
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))QSGMaterialShader::compile
-72 (int (*)(...))QSGMaterialShader::initialize
-80 (int (*)(...))QSGMaterialShader::vertexShader
-88 (int (*)(...))QSGMaterialShader::fragmentShader
-
-Class QSGMaterialShader
- size=32 align=8
- base size=32 base align=8
-QSGMaterialShader (0x0x7f64e4491180) 0
- vptr=((& QSGMaterialShader::_ZTV17QSGMaterialShader) + 16u)
-
-Class QSGMaterialType
- size=1 align=1
- base size=0 base align=1
-QSGMaterialType (0x0x7f64e4491480) 0 empty
-
-Vtable for QSGMaterial
-QSGMaterial::_ZTV11QSGMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGMaterial)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QSGMaterial::compare
-
-Class QSGMaterial
- size=24 align=8
- base size=24 base align=8
-QSGMaterial (0x0x7f64e44914e0) 0
- vptr=((& QSGMaterial::_ZTV11QSGMaterial) + 16u)
-
-Vtable for QSGFlatColorMaterial
-QSGFlatColorMaterial::_ZTV20QSGFlatColorMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGFlatColorMaterial)
-16 (int (*)(...))QSGFlatColorMaterial::~QSGFlatColorMaterial
-24 (int (*)(...))QSGFlatColorMaterial::~QSGFlatColorMaterial
-32 (int (*)(...))QSGFlatColorMaterial::type
-40 (int (*)(...))QSGFlatColorMaterial::createShader
-48 (int (*)(...))QSGFlatColorMaterial::compare
-
-Class QSGFlatColorMaterial
- size=40 align=8
- base size=40 base align=8
-QSGFlatColorMaterial (0x0x7f64e4692dd0) 0
- vptr=((& QSGFlatColorMaterial::_ZTV20QSGFlatColorMaterial) + 16u)
- QSGMaterial (0x0x7f64e44916c0) 0
- primary-for QSGFlatColorMaterial (0x0x7f64e4692dd0)
-
-Class QSGTexture::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGTexture::QPrivateSignal (0x0x7f64e4491780) 0 empty
-
-Vtable for QSGTexture
-QSGTexture::_ZTV10QSGTexture: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QSGTexture)
-16 (int (*)(...))QSGTexture::metaObject
-24 (int (*)(...))QSGTexture::qt_metacast
-32 (int (*)(...))QSGTexture::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QSGTexture::normalizedTextureSubRect
-152 (int (*)(...))QSGTexture::isAtlasTexture
-160 (int (*)(...))QSGTexture::removedFromAtlas
-168 (int (*)(...))__cxa_pure_virtual
-
-Class QSGTexture
- size=16 align=8
- base size=16 base align=8
-QSGTexture (0x0x7f64e4692e38) 0
- vptr=((& QSGTexture::_ZTV10QSGTexture) + 16u)
- QObject (0x0x7f64e4491720) 0
- primary-for QSGTexture (0x0x7f64e4692e38)
-
-Class QSGDynamicTexture::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGDynamicTexture::QPrivateSignal (0x0x7f64e4491840) 0 empty
-
-Vtable for QSGDynamicTexture
-QSGDynamicTexture::_ZTV17QSGDynamicTexture: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGDynamicTexture)
-16 (int (*)(...))QSGDynamicTexture::metaObject
-24 (int (*)(...))QSGDynamicTexture::qt_metacast
-32 (int (*)(...))QSGDynamicTexture::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QSGTexture::normalizedTextureSubRect
-152 (int (*)(...))QSGTexture::isAtlasTexture
-160 (int (*)(...))QSGTexture::removedFromAtlas
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-
-Class QSGDynamicTexture
- size=16 align=8
- base size=16 base align=8
-QSGDynamicTexture (0x0x7f64e4692ea0) 0
- vptr=((& QSGDynamicTexture::_ZTV17QSGDynamicTexture) + 16u)
- QSGTexture (0x0x7f64e4692f08) 0
- primary-for QSGDynamicTexture (0x0x7f64e4692ea0)
- QObject (0x0x7f64e44917e0) 0
- primary-for QSGTexture (0x0x7f64e4692f08)
-
-Vtable for QSGImageNode
-QSGImageNode::_ZTV12QSGImageNode: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QSGImageNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-
-Class QSGImageNode
- size=144 align=8
- base size=144 base align=8
-QSGImageNode (0x0x7f64e4692f70) 0
- vptr=((& QSGImageNode::_ZTV12QSGImageNode) + 16u)
- QSGGeometryNode (0x0x7f64e4168000) 0
- primary-for QSGImageNode (0x0x7f64e4692f70)
- QSGBasicGeometryNode (0x0x7f64e4168068) 0
- primary-for QSGGeometryNode (0x0x7f64e4168000)
- QSGNode (0x0x7f64e44918a0) 0
- primary-for QSGBasicGeometryNode (0x0x7f64e4168068)
-
-Vtable for QSGNinePatchNode
-QSGNinePatchNode::_ZTV16QSGNinePatchNode: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGNinePatchNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-
-Class QSGNinePatchNode
- size=144 align=8
- base size=144 base align=8
-QSGNinePatchNode (0x0x7f64e41681a0) 0
- vptr=((& QSGNinePatchNode::_ZTV16QSGNinePatchNode) + 16u)
- QSGGeometryNode (0x0x7f64e4168208) 0
- primary-for QSGNinePatchNode (0x0x7f64e41681a0)
- QSGBasicGeometryNode (0x0x7f64e4168270) 0
- primary-for QSGGeometryNode (0x0x7f64e4168208)
- QSGNode (0x0x7f64e4491a80) 0
- primary-for QSGBasicGeometryNode (0x0x7f64e4168270)
-
-Vtable for QSGRectangleNode
-QSGRectangleNode::_ZTV16QSGRectangleNode: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGRectangleNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QSGRectangleNode
- size=144 align=8
- base size=144 base align=8
-QSGRectangleNode (0x0x7f64e41682d8) 0
- vptr=((& QSGRectangleNode::_ZTV16QSGRectangleNode) + 16u)
- QSGGeometryNode (0x0x7f64e4168340) 0
- primary-for QSGRectangleNode (0x0x7f64e41682d8)
- QSGBasicGeometryNode (0x0x7f64e41683a8) 0
- primary-for QSGGeometryNode (0x0x7f64e4168340)
- QSGNode (0x0x7f64e4491ae0) 0
- primary-for QSGBasicGeometryNode (0x0x7f64e41683a8)
-
-Vtable for QSGRenderNode::RenderState
-QSGRenderNode::RenderState::_ZTVN13QSGRenderNode11RenderStateE: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QSGRenderNode11RenderStateE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))QSGRenderNode::RenderState::get
-
-Class QSGRenderNode::RenderState
- size=8 align=8
- base size=8 base align=8
-QSGRenderNode::RenderState (0x0x7f64e4491ba0) 0 nearly-empty
- vptr=((& QSGRenderNode::RenderState::_ZTVN13QSGRenderNode11RenderStateE) + 16u)
-
-Vtable for QSGRenderNode
-QSGRenderNode::_ZTV13QSGRenderNode: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSGRenderNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))QSGRenderNode::changedStates
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))QSGRenderNode::releaseResources
-72 (int (*)(...))QSGRenderNode::flags
-80 (int (*)(...))QSGRenderNode::rect
-
-Class QSGRenderNode
- size=88 align=8
- base size=88 base align=8
-QSGRenderNode (0x0x7f64e4168410) 0
- vptr=((& QSGRenderNode::_ZTV13QSGRenderNode) + 16u)
- QSGNode (0x0x7f64e4491b40) 0
- primary-for QSGRenderNode (0x0x7f64e4168410)
-
-Vtable for QSGSimpleRectNode
-QSGSimpleRectNode::_ZTV17QSGSimpleRectNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGSimpleRectNode)
-16 (int (*)(...))QSGSimpleRectNode::~QSGSimpleRectNode
-24 (int (*)(...))QSGSimpleRectNode::~QSGSimpleRectNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGSimpleRectNode
- size=320 align=8
- base size=320 base align=8
-QSGSimpleRectNode (0x0x7f64e4168888) 0
- vptr=((& QSGSimpleRectNode::_ZTV17QSGSimpleRectNode) + 16u)
- QSGGeometryNode (0x0x7f64e41688f0) 0
- primary-for QSGSimpleRectNode (0x0x7f64e4168888)
- QSGBasicGeometryNode (0x0x7f64e4168958) 0
- primary-for QSGGeometryNode (0x0x7f64e41688f0)
- QSGNode (0x0x7f64e424b1e0) 0
- primary-for QSGBasicGeometryNode (0x0x7f64e4168958)
-
-Vtable for QSGOpaqueTextureMaterial
-QSGOpaqueTextureMaterial::_ZTV24QSGOpaqueTextureMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QSGOpaqueTextureMaterial)
-16 (int (*)(...))QSGOpaqueTextureMaterial::~QSGOpaqueTextureMaterial
-24 (int (*)(...))QSGOpaqueTextureMaterial::~QSGOpaqueTextureMaterial
-32 (int (*)(...))QSGOpaqueTextureMaterial::type
-40 (int (*)(...))QSGOpaqueTextureMaterial::createShader
-48 (int (*)(...))QSGOpaqueTextureMaterial::compare
-
-Class QSGOpaqueTextureMaterial
- size=40 align=8
- base size=36 base align=8
-QSGOpaqueTextureMaterial (0x0x7f64e41689c0) 0
- vptr=((& QSGOpaqueTextureMaterial::_ZTV24QSGOpaqueTextureMaterial) + 16u)
- QSGMaterial (0x0x7f64e424b240) 0
- primary-for QSGOpaqueTextureMaterial (0x0x7f64e41689c0)
-
-Vtable for QSGTextureMaterial
-QSGTextureMaterial::_ZTV18QSGTextureMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSGTextureMaterial)
-16 (int (*)(...))QSGTextureMaterial::~QSGTextureMaterial
-24 (int (*)(...))QSGTextureMaterial::~QSGTextureMaterial
-32 (int (*)(...))QSGTextureMaterial::type
-40 (int (*)(...))QSGTextureMaterial::createShader
-48 (int (*)(...))QSGOpaqueTextureMaterial::compare
-
-Class QSGTextureMaterial
- size=40 align=8
- base size=36 base align=8
-QSGTextureMaterial (0x0x7f64e4168a28) 0
- vptr=((& QSGTextureMaterial::_ZTV18QSGTextureMaterial) + 16u)
- QSGOpaqueTextureMaterial (0x0x7f64e4168a90) 0
- primary-for QSGTextureMaterial (0x0x7f64e4168a28)
- QSGMaterial (0x0x7f64e424b2a0) 0
- primary-for QSGOpaqueTextureMaterial (0x0x7f64e4168a90)
-
-Vtable for QSGSimpleTextureNode
-QSGSimpleTextureNode::_ZTV20QSGSimpleTextureNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGSimpleTextureNode)
-16 (int (*)(...))QSGSimpleTextureNode::~QSGSimpleTextureNode
-24 (int (*)(...))QSGSimpleTextureNode::~QSGSimpleTextureNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGSimpleTextureNode
- size=384 align=8
- base size=384 base align=8
-QSGSimpleTextureNode (0x0x7f64e4168af8) 0
- vptr=((& QSGSimpleTextureNode::_ZTV20QSGSimpleTextureNode) + 16u)
- QSGGeometryNode (0x0x7f64e4168b60) 0
- primary-for QSGSimpleTextureNode (0x0x7f64e4168af8)
- QSGBasicGeometryNode (0x0x7f64e4168bc8) 0
- primary-for QSGGeometryNode (0x0x7f64e4168b60)
- QSGNode (0x0x7f64e424b300) 0
- primary-for QSGBasicGeometryNode (0x0x7f64e4168bc8)
-
-Class QSGTextureProvider::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGTextureProvider::QPrivateSignal (0x0x7f64e424b5a0) 0 empty
-
-Vtable for QSGTextureProvider
-QSGTextureProvider::_ZTV18QSGTextureProvider: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSGTextureProvider)
-16 (int (*)(...))QSGTextureProvider::metaObject
-24 (int (*)(...))QSGTextureProvider::qt_metacast
-32 (int (*)(...))QSGTextureProvider::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QSGTextureProvider
- size=16 align=8
- base size=16 base align=8
-QSGTextureProvider (0x0x7f64e4168d68) 0
- vptr=((& QSGTextureProvider::_ZTV18QSGTextureProvider) + 16u)
- QObject (0x0x7f64e424b540) 0
- primary-for QSGTextureProvider (0x0x7f64e4168d68)
-
-Vtable for QSGVertexColorMaterial
-QSGVertexColorMaterial::_ZTV22QSGVertexColorMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QSGVertexColorMaterial)
-16 (int (*)(...))QSGVertexColorMaterial::~QSGVertexColorMaterial
-24 (int (*)(...))QSGVertexColorMaterial::~QSGVertexColorMaterial
-32 (int (*)(...))QSGVertexColorMaterial::type
-40 (int (*)(...))QSGVertexColorMaterial::createShader
-48 (int (*)(...))QSGVertexColorMaterial::compare
-
-Class QSGVertexColorMaterial
- size=24 align=8
- base size=24 base align=8
-QSGVertexColorMaterial (0x0x7f64e4168dd0) 0
- vptr=((& QSGVertexColorMaterial::_ZTV22QSGVertexColorMaterial) + 16u)
- QSGMaterial (0x0x7f64e424b600) 0
- primary-for QSGVertexColorMaterial (0x0x7f64e4168dd0)
-
-Class QQuickStyle
- size=1 align=1
- base size=0 base align=1
-QQuickStyle (0x0x7f64e424b660) 0 empty
-
diff --git a/tests/auto/bic/data/QtQuickControls2.5.12.0.linux-gcc-amd64.txt b/tests/auto/bic/data/QtQuickControls2.5.12.0.linux-gcc-amd64.txt
deleted file mode 100644
index fdac69d6..00000000
--- a/tests/auto/bic/data/QtQuickControls2.5.12.0.linux-gcc-amd64.txt
+++ /dev/null
@@ -1,11123 +0,0 @@
-Class std::__failure_type
- size=1 align=1
- base size=0 base align=1
-std::__failure_type (0x0x7f5a2fe2c660) 0 empty
-
-Class std::__do_is_destructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_destructible_impl (0x0x7f5a2fa18de0) 0 empty
-
-Class std::__do_is_nt_destructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_nt_destructible_impl (0x0x7f5a2fa43060) 0 empty
-
-Class std::__do_is_default_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_default_constructible_impl (0x0x7f5a2fa432a0) 0 empty
-
-Class std::__do_is_static_castable_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_static_castable_impl (0x0x7f5a2fa434e0) 0 empty
-
-Class std::__do_is_direct_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_direct_constructible_impl (0x0x7f5a2fa43660) 0 empty
-
-Class std::__do_is_nary_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_nary_constructible_impl (0x0x7f5a2fa43a20) 0 empty
-
-Class std::__do_common_type_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_common_type_impl (0x0x7f5a2fafd1e0) 0 empty
-
-Class std::__do_member_type_wrapper
- size=1 align=1
- base size=0 base align=1
-std::__do_member_type_wrapper (0x0x7f5a2fafd2a0) 0 empty
-
-Class std::__result_of_memfun_ref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memfun_ref_impl (0x0x7f5a2fafd600) 0 empty
-
-Class std::__result_of_memfun_deref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memfun_deref_impl (0x0x7f5a2fafd6c0) 0 empty
-
-Class std::__result_of_memobj_ref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memobj_ref_impl (0x0x7f5a2fafd780) 0 empty
-
-Class std::__result_of_memobj_deref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memobj_deref_impl (0x0x7f5a2fafd840) 0 empty
-
-Class std::__result_of_other_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_other_impl (0x0x7f5a2fafdae0) 0 empty
-
-Class std::piecewise_construct_t
- size=1 align=1
- base size=0 base align=1
-std::piecewise_construct_t (0x0x7f5a2fafdcc0) 0 empty
-
-Class std::__true_type
- size=1 align=1
- base size=0 base align=1
-std::__true_type (0x0x7f5a2fb7d180) 0 empty
-
-Class std::__false_type
- size=1 align=1
- base size=0 base align=1
-std::__false_type (0x0x7f5a2fb7d1e0) 0 empty
-
-Class std::input_iterator_tag
- size=1 align=1
- base size=0 base align=1
-std::input_iterator_tag (0x0x7f5a2fbb7e40) 0 empty
-
-Class std::output_iterator_tag
- size=1 align=1
- base size=0 base align=1
-std::output_iterator_tag (0x0x7f5a2fbb7ea0) 0 empty
-
-Class std::forward_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::forward_iterator_tag (0x0x7f5a2fb06680) 0 empty
- std::input_iterator_tag (0x0x7f5a2fbb7f00) 0 empty
-
-Class std::bidirectional_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::bidirectional_iterator_tag (0x0x7f5a2fb066e8) 0 empty
- std::forward_iterator_tag (0x0x7f5a2fb06750) 0 empty
- std::input_iterator_tag (0x0x7f5a2fbb7f60) 0 empty
-
-Class std::random_access_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::random_access_iterator_tag (0x0x7f5a2fb067b8) 0 empty
- std::bidirectional_iterator_tag (0x0x7f5a2fb06820) 0 empty
- std::forward_iterator_tag (0x0x7f5a2fb06888) 0 empty
- std::input_iterator_tag (0x0x7f5a2fbe3000) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_less_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_less_iter (0x0x7f5a2fbe3c60) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_less_val
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_less_val (0x0x7f5a2fbe3cc0) 0 empty
-
-Class __gnu_cxx::__ops::_Val_less_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Val_less_iter (0x0x7f5a2fbe3d20) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_equal_to_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_equal_to_iter (0x0x7f5a2fbe3d80) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_equal_to_val
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_equal_to_val (0x0x7f5a2fbe3de0) 0 empty
-
-Class wait
- size=4 align=4
- base size=4 base align=4
-wait (0x0x7f5a2f8b4900) 0
-
-Class __locale_struct
- size=232 align=8
- base size=232 base align=8
-__locale_struct (0x0x7f5a2f8b4b40) 0
-
-Class timespec
- size=16 align=8
- base size=16 base align=8
-timespec (0x0x7f5a2f8b4c00) 0
-
-Class timeval
- size=16 align=8
- base size=16 base align=8
-timeval (0x0x7f5a2f8b4c60) 0
-
-Class pthread_attr_t
- size=56 align=8
- base size=56 base align=8
-pthread_attr_t (0x0x7f5a2f8b4d20) 0
-
-Class __pthread_internal_list
- size=16 align=8
- base size=16 base align=8
-__pthread_internal_list (0x0x7f5a2f8b4d80) 0
-
-Class random_data
- size=48 align=8
- base size=48 base align=8
-random_data (0x0x7f5a2f958240) 0
-
-Class drand48_data
- size=24 align=8
- base size=24 base align=8
-drand48_data (0x0x7f5a2f9582a0) 0
-
-Vtable for std::exception
-std::exception::_ZTVSt9exception: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9exception)
-16 (int (*)(...))std::exception::~exception
-24 (int (*)(...))std::exception::~exception
-32 (int (*)(...))std::exception::what
-
-Class std::exception
- size=8 align=8
- base size=8 base align=8
-std::exception (0x0x7f5a2f958300) 0 nearly-empty
- vptr=((& std::exception::_ZTVSt9exception) + 16u)
-
-Vtable for std::bad_exception
-std::bad_exception::_ZTVSt13bad_exception: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt13bad_exception)
-16 (int (*)(...))std::bad_exception::~bad_exception
-24 (int (*)(...))std::bad_exception::~bad_exception
-32 (int (*)(...))std::bad_exception::what
-
-Class std::bad_exception
- size=8 align=8
- base size=8 base align=8
-std::bad_exception (0x0x7f5a2fb06dd0) 0 nearly-empty
- vptr=((& std::bad_exception::_ZTVSt13bad_exception) + 16u)
- std::exception (0x0x7f5a2f958360) 0 nearly-empty
- primary-for std::bad_exception (0x0x7f5a2fb06dd0)
-
-Class std::__exception_ptr::exception_ptr
- size=8 align=8
- base size=8 base align=8
-std::__exception_ptr::exception_ptr (0x0x7f5a2f9583c0) 0
-
-Vtable for std::nested_exception
-std::nested_exception::_ZTVSt16nested_exception: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt16nested_exception)
-16 (int (*)(...))std::nested_exception::~nested_exception
-24 (int (*)(...))std::nested_exception::~nested_exception
-
-Class std::nested_exception
- size=16 align=8
- base size=16 base align=8
-std::nested_exception (0x0x7f5a2f958420) 0
- vptr=((& std::nested_exception::_ZTVSt16nested_exception) + 16u)
-
-Vtable for std::bad_alloc
-std::bad_alloc::_ZTVSt9bad_alloc: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9bad_alloc)
-16 (int (*)(...))std::bad_alloc::~bad_alloc
-24 (int (*)(...))std::bad_alloc::~bad_alloc
-32 (int (*)(...))std::bad_alloc::what
-
-Class std::bad_alloc
- size=8 align=8
- base size=8 base align=8
-std::bad_alloc (0x0x7f5a2f645000) 0 nearly-empty
- vptr=((& std::bad_alloc::_ZTVSt9bad_alloc) + 16u)
- std::exception (0x0x7f5a2f958840) 0 nearly-empty
- primary-for std::bad_alloc (0x0x7f5a2f645000)
-
-Vtable for std::bad_array_new_length
-std::bad_array_new_length::_ZTVSt20bad_array_new_length: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt20bad_array_new_length)
-16 (int (*)(...))std::bad_array_new_length::~bad_array_new_length
-24 (int (*)(...))std::bad_array_new_length::~bad_array_new_length
-32 (int (*)(...))std::bad_array_new_length::what
-
-Class std::bad_array_new_length
- size=8 align=8
- base size=8 base align=8
-std::bad_array_new_length (0x0x7f5a2f645068) 0 nearly-empty
- vptr=((& std::bad_array_new_length::_ZTVSt20bad_array_new_length) + 16u)
- std::bad_alloc (0x0x7f5a2f6450d0) 0 nearly-empty
- primary-for std::bad_array_new_length (0x0x7f5a2f645068)
- std::exception (0x0x7f5a2f9588a0) 0 nearly-empty
- primary-for std::bad_alloc (0x0x7f5a2f6450d0)
-
-Class std::nothrow_t
- size=1 align=1
- base size=0 base align=1
-std::nothrow_t (0x0x7f5a2f958900) 0 empty
-
-Class __exception
- size=40 align=8
- base size=40 base align=8
-__exception (0x0x7f5a2f6cc540) 0
-
-Class lconv
- size=96 align=8
- base size=96 base align=8
-lconv (0x0x7f5a2f4ec240) 0
-
-Vtable for __cxxabiv1::__forced_unwind
-__cxxabiv1::__forced_unwind::_ZTVN10__cxxabiv115__forced_unwindE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN10__cxxabiv115__forced_unwindE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class __cxxabiv1::__forced_unwind
- size=8 align=8
- base size=8 base align=8
-__cxxabiv1::__forced_unwind (0x0x7f5a2f4ec2a0) 0 nearly-empty
- vptr=((& __cxxabiv1::__forced_unwind::_ZTVN10__cxxabiv115__forced_unwindE) + 16u)
-
-Class sched_param
- size=4 align=4
- base size=4 base align=4
-sched_param (0x0x7f5a2f58f180) 0
-
-Class __sched_param
- size=4 align=4
- base size=4 base align=4
-__sched_param (0x0x7f5a2f58f1e0) 0
-
-Class timex
- size=208 align=8
- base size=208 base align=8
-timex (0x0x7f5a2f58f2a0) 0
-
-Class tm
- size=56 align=8
- base size=56 base align=8
-tm (0x0x7f5a2f58f300) 0
-
-Class itimerspec
- size=32 align=8
- base size=32 base align=8
-itimerspec (0x0x7f5a2f58f360) 0
-
-Class _pthread_cleanup_buffer
- size=32 align=8
- base size=32 base align=8
-_pthread_cleanup_buffer (0x0x7f5a2f58f3c0) 0
-
-Class __pthread_cleanup_frame
- size=24 align=8
- base size=24 base align=8
-__pthread_cleanup_frame (0x0x7f5a2f58f4e0) 0
-
-Class __pthread_cleanup_class
- size=24 align=8
- base size=24 base align=8
-__pthread_cleanup_class (0x0x7f5a2f58f540) 0
-
-Class _IO_marker
- size=24 align=8
- base size=24 base align=8
-_IO_marker (0x0x7f5a2f58f960) 0
-
-Class _IO_FILE
- size=216 align=8
- base size=216 base align=8
-_IO_FILE (0x0x7f5a2f58f9c0) 0
-
-Class std::_Hash_impl
- size=1 align=1
- base size=0 base align=1
-std::_Hash_impl (0x0x7f5a2f0b01e0) 0 empty
-
-Class std::_Fnv_hash_impl
- size=1 align=1
- base size=0 base align=1
-std::_Fnv_hash_impl (0x0x7f5a2f0b0240) 0 empty
-
-Class std::__numeric_limits_base
- size=1 align=1
- base size=0 base align=1
-std::__numeric_limits_base (0x0x7f5a2f18d1e0) 0 empty
-
-Class std::_Bit_reference
- size=16 align=8
- base size=16 base align=8
-std::_Bit_reference (0x0x7f5a2efa3000) 0
-
-Class std::_Bit_iterator_base
- size=16 align=8
- base size=12 base align=8
-std::_Bit_iterator_base (0x0x7f5a2f0aee38) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f5a2efa30c0) 0 empty
-
-Class std::_Bit_iterator
- size=16 align=8
- base size=12 base align=8
-std::_Bit_iterator (0x0x7f5a2f0aeea0) 0
- std::_Bit_iterator_base (0x0x7f5a2f0aef08) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f5a2efa3120) 0 empty
-
-Class std::_Bit_const_iterator
- size=16 align=8
- base size=12 base align=8
-std::_Bit_const_iterator (0x0x7f5a2f0aef70) 0
- std::_Bit_iterator_base (0x0x7f5a2f0ae618) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f5a2efa3180) 0 empty
-
-Class std::random_device
- size=5000 align=8
- base size=5000 base align=8
-std::random_device (0x0x7f5a2efa3f60) 0
-
-Class std::bernoulli_distribution::param_type
- size=8 align=8
- base size=8 base align=8
-std::bernoulli_distribution::param_type (0x0x7f5a2ed85d20) 0
-
-Class std::bernoulli_distribution
- size=8 align=8
- base size=8 base align=8
-std::bernoulli_distribution (0x0x7f5a2ed85cc0) 0
-
-Class std::seed_seq
- size=24 align=8
- base size=24 base align=8
-std::seed_seq (0x0x7f5a2eabacc0) 0
-
-Class qIsNull(double)::U
- size=8 align=8
- base size=8 base align=8
-qIsNull(double)::U (0x0x7f5a2d7187e0) 0
-
-Class qIsNull(float)::U
- size=4 align=4
- base size=4 base align=4
-qIsNull(float)::U (0x0x7f5a2d718840) 0
-
-Class QSysInfo
- size=1 align=1
- base size=0 base align=1
-QSysInfo (0x0x7f5a2d3fb300) 0 empty
-
-Class QMessageLogContext
- size=32 align=8
- base size=32 base align=8
-QMessageLogContext (0x0x7f5a2d3fb360) 0
-
-Class QMessageLogger
- size=32 align=8
- base size=32 base align=8
-QMessageLogger (0x0x7f5a2d3fb3c0) 0
-
-Class QFlag
- size=4 align=4
- base size=4 base align=4
-QFlag (0x0x7f5a2d3fb420) 0
-
-Class QIncompatibleFlag
- size=4 align=4
- base size=4 base align=4
-QIncompatibleFlag (0x0x7f5a2d3fb6c0) 0
-
-Class std::__atomic_flag_base
- size=1 align=1
- base size=1 base align=1
-std::__atomic_flag_base (0x0x7f5a2d3fbc00) 0
-
-Class std::atomic_flag
- size=1 align=1
- base size=1 base align=1
-std::atomic_flag (0x0x7f5a2d3e0d00) 0
- std::__atomic_flag_base (0x0x7f5a2d3fbc60) 0
-
-Class QAtomicInt
- size=4 align=4
- base size=4 base align=4
-QAtomicInt (0x0x7f5a2d277478) 0
- QAtomicInteger<int> (0x0x7f5a2d2774e0) 0
- QBasicAtomicInteger<int> (0x0x7f5a2cfb33c0) 0
-
-Class QInternal
- size=1 align=1
- base size=0 base align=1
-QInternal (0x0x7f5a2cede960) 0 empty
-
-Class QtPrivate::QSlotObjectBase
- size=16 align=8
- base size=16 base align=8
-QtPrivate::QSlotObjectBase (0x0x7f5a2cc82b40) 0
-
-Class QGenericArgument
- size=16 align=8
- base size=16 base align=8
-QGenericArgument (0x0x7f5a2cc82c60) 0
-
-Class QGenericReturnArgument
- size=16 align=8
- base size=16 base align=8
-QGenericReturnArgument (0x0x7f5a2ccd70d0) 0
- QGenericArgument (0x0x7f5a2cc82cc0) 0
-
-Class QMetaObject
- size=48 align=8
- base size=48 base align=8
-QMetaObject (0x0x7f5a2cc82e40) 0
-
-Class QMetaObject::Connection
- size=8 align=8
- base size=8 base align=8
-QMetaObject::Connection (0x0x7f5a2cc82f00) 0
-
-Class QLatin1Char
- size=1 align=1
- base size=1 base align=1
-QLatin1Char (0x0x7f5a2cd7bf60) 0
-
-Class QChar
- size=2 align=2
- base size=2 base align=2
-QChar (0x0x7f5a2c96a000) 0
-
-Class QtPrivate::RefCount
- size=4 align=4
- base size=4 base align=4
-QtPrivate::RefCount (0x0x7f5a2c96a2a0) 0
-
-Class QArrayData
- size=24 align=8
- base size=24 base align=8
-QArrayData (0x0x7f5a2c96a300) 0
-
-Class QtPrivate::QContainerImplHelper
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QContainerImplHelper (0x0x7f5a2c96a660) 0 empty
-
-Class std::locale
- size=8 align=8
- base size=8 base align=8
-std::locale (0x0x7f5a2c96a6c0) 0
-
-Vtable for std::locale::facet
-std::locale::facet::_ZTVNSt6locale5facetE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt6locale5facetE)
-16 (int (*)(...))std::locale::facet::~facet
-24 (int (*)(...))std::locale::facet::~facet
-
-Class std::locale::facet
- size=16 align=8
- base size=12 base align=8
-std::locale::facet (0x0x7f5a2c96a720) 0
- vptr=((& std::locale::facet::_ZTVNSt6locale5facetE) + 16u)
-
-Class std::locale::id
- size=8 align=8
- base size=8 base align=8
-std::locale::id (0x0x7f5a2c96a780) 0
-
-Class std::locale::_Impl
- size=40 align=8
- base size=40 base align=8
-std::locale::_Impl (0x0x7f5a2c96a7e0) 0
-
-Class std::__cow_string
- size=8 align=8
- base size=8 base align=8
-std::__cow_string (0x0x7f5a2c96aba0) 0
-
-Vtable for std::logic_error
-std::logic_error::_ZTVSt11logic_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt11logic_error)
-16 (int (*)(...))std::logic_error::~logic_error
-24 (int (*)(...))std::logic_error::~logic_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::logic_error
- size=16 align=8
- base size=16 base align=8
-std::logic_error (0x0x7f5a2ca756e8) 0
- vptr=((& std::logic_error::_ZTVSt11logic_error) + 16u)
- std::exception (0x0x7f5a2c96ac60) 0 nearly-empty
- primary-for std::logic_error (0x0x7f5a2ca756e8)
-
-Vtable for std::domain_error
-std::domain_error::_ZTVSt12domain_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12domain_error)
-16 (int (*)(...))std::domain_error::~domain_error
-24 (int (*)(...))std::domain_error::~domain_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::domain_error
- size=16 align=8
- base size=16 base align=8
-std::domain_error (0x0x7f5a2ca75750) 0
- vptr=((& std::domain_error::_ZTVSt12domain_error) + 16u)
- std::logic_error (0x0x7f5a2ca757b8) 0
- primary-for std::domain_error (0x0x7f5a2ca75750)
- std::exception (0x0x7f5a2c96acc0) 0 nearly-empty
- primary-for std::logic_error (0x0x7f5a2ca757b8)
-
-Vtable for std::invalid_argument
-std::invalid_argument::_ZTVSt16invalid_argument: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt16invalid_argument)
-16 (int (*)(...))std::invalid_argument::~invalid_argument
-24 (int (*)(...))std::invalid_argument::~invalid_argument
-32 (int (*)(...))std::logic_error::what
-
-Class std::invalid_argument
- size=16 align=8
- base size=16 base align=8
-std::invalid_argument (0x0x7f5a2ca75820) 0
- vptr=((& std::invalid_argument::_ZTVSt16invalid_argument) + 16u)
- std::logic_error (0x0x7f5a2ca75888) 0
- primary-for std::invalid_argument (0x0x7f5a2ca75820)
- std::exception (0x0x7f5a2c96ad20) 0 nearly-empty
- primary-for std::logic_error (0x0x7f5a2ca75888)
-
-Vtable for std::length_error
-std::length_error::_ZTVSt12length_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12length_error)
-16 (int (*)(...))std::length_error::~length_error
-24 (int (*)(...))std::length_error::~length_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::length_error
- size=16 align=8
- base size=16 base align=8
-std::length_error (0x0x7f5a2ca758f0) 0
- vptr=((& std::length_error::_ZTVSt12length_error) + 16u)
- std::logic_error (0x0x7f5a2ca75958) 0
- primary-for std::length_error (0x0x7f5a2ca758f0)
- std::exception (0x0x7f5a2c96ad80) 0 nearly-empty
- primary-for std::logic_error (0x0x7f5a2ca75958)
-
-Vtable for std::out_of_range
-std::out_of_range::_ZTVSt12out_of_range: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12out_of_range)
-16 (int (*)(...))std::out_of_range::~out_of_range
-24 (int (*)(...))std::out_of_range::~out_of_range
-32 (int (*)(...))std::logic_error::what
-
-Class std::out_of_range
- size=16 align=8
- base size=16 base align=8
-std::out_of_range (0x0x7f5a2ca759c0) 0
- vptr=((& std::out_of_range::_ZTVSt12out_of_range) + 16u)
- std::logic_error (0x0x7f5a2ca75a28) 0
- primary-for std::out_of_range (0x0x7f5a2ca759c0)
- std::exception (0x0x7f5a2c96ade0) 0 nearly-empty
- primary-for std::logic_error (0x0x7f5a2ca75a28)
-
-Vtable for std::runtime_error
-std::runtime_error::_ZTVSt13runtime_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt13runtime_error)
-16 (int (*)(...))std::runtime_error::~runtime_error
-24 (int (*)(...))std::runtime_error::~runtime_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::runtime_error
- size=16 align=8
- base size=16 base align=8
-std::runtime_error (0x0x7f5a2ca75a90) 0
- vptr=((& std::runtime_error::_ZTVSt13runtime_error) + 16u)
- std::exception (0x0x7f5a2c96ae40) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f5a2ca75a90)
-
-Vtable for std::range_error
-std::range_error::_ZTVSt11range_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt11range_error)
-16 (int (*)(...))std::range_error::~range_error
-24 (int (*)(...))std::range_error::~range_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::range_error
- size=16 align=8
- base size=16 base align=8
-std::range_error (0x0x7f5a2ca75af8) 0
- vptr=((& std::range_error::_ZTVSt11range_error) + 16u)
- std::runtime_error (0x0x7f5a2ca75b60) 0
- primary-for std::range_error (0x0x7f5a2ca75af8)
- std::exception (0x0x7f5a2c96aea0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f5a2ca75b60)
-
-Vtable for std::overflow_error
-std::overflow_error::_ZTVSt14overflow_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt14overflow_error)
-16 (int (*)(...))std::overflow_error::~overflow_error
-24 (int (*)(...))std::overflow_error::~overflow_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::overflow_error
- size=16 align=8
- base size=16 base align=8
-std::overflow_error (0x0x7f5a2ca75bc8) 0
- vptr=((& std::overflow_error::_ZTVSt14overflow_error) + 16u)
- std::runtime_error (0x0x7f5a2ca75c30) 0
- primary-for std::overflow_error (0x0x7f5a2ca75bc8)
- std::exception (0x0x7f5a2c96af00) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f5a2ca75c30)
-
-Vtable for std::underflow_error
-std::underflow_error::_ZTVSt15underflow_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt15underflow_error)
-16 (int (*)(...))std::underflow_error::~underflow_error
-24 (int (*)(...))std::underflow_error::~underflow_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::underflow_error
- size=16 align=8
- base size=16 base align=8
-std::underflow_error (0x0x7f5a2ca75c98) 0
- vptr=((& std::underflow_error::_ZTVSt15underflow_error) + 16u)
- std::runtime_error (0x0x7f5a2ca75d00) 0
- primary-for std::underflow_error (0x0x7f5a2ca75c98)
- std::exception (0x0x7f5a2c96af60) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f5a2ca75d00)
-
-Vtable for std::_V2::error_category
-std::_V2::error_category::_ZTVNSt3_V214error_categoryE: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt3_V214error_categoryE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))std::_V2::error_category::_M_message
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))std::_V2::error_category::default_error_condition
-64 (int (*)(...))std::_V2::error_category::equivalent
-72 (int (*)(...))std::_V2::error_category::equivalent
-
-Class std::_V2::error_category
- size=8 align=8
- base size=8 base align=8
-std::_V2::error_category (0x0x7f5a2cb2e120) 0 nearly-empty
- vptr=((& std::_V2::error_category::_ZTVNSt3_V214error_categoryE) + 16u)
-
-Class std::error_code
- size=16 align=8
- base size=16 base align=8
-std::error_code (0x0x7f5a2cb2e360) 0
-
-Class std::error_condition
- size=16 align=8
- base size=16 base align=8
-std::error_condition (0x0x7f5a2cb2e4e0) 0
-
-Vtable for std::system_error
-std::system_error::_ZTVSt12system_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12system_error)
-16 (int (*)(...))std::system_error::~system_error
-24 (int (*)(...))std::system_error::~system_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::system_error
- size=32 align=8
- base size=32 base align=8
-std::system_error (0x0x7f5a2c76e138) 0
- vptr=((& std::system_error::_ZTVSt12system_error) + 16u)
- std::runtime_error (0x0x7f5a2c76e1a0) 0
- primary-for std::system_error (0x0x7f5a2c76e138)
- std::exception (0x0x7f5a2cb2e720) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f5a2c76e1a0)
-
-Vtable for std::ios_base::failure
-std::ios_base::failure::_ZTVNSt8ios_base7failureB5cxx11E: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt8ios_base7failureB5cxx11E)
-16 (int (*)(...))std::ios_base::failure::~failure
-24 (int (*)(...))std::ios_base::failure::~failure
-32 (int (*)(...))std::ios_base::failure::what
-
-Class std::ios_base::failure
- size=32 align=8
- base size=32 base align=8
-std::ios_base::failure (0x0x7f5a2c76ed68) 0
- vptr=((& std::ios_base::failure::_ZTVNSt8ios_base7failureB5cxx11E) + 16u)
- std::system_error (0x0x7f5a2c76edd0) 0
- primary-for std::ios_base::failure (0x0x7f5a2c76ed68)
- std::runtime_error (0x0x7f5a2c76ee38) 0
- primary-for std::system_error (0x0x7f5a2c76edd0)
- std::exception (0x0x7f5a2cb2ea20) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f5a2c76ee38)
-
-Class std::ios_base::_Callback_list
- size=24 align=8
- base size=24 base align=8
-std::ios_base::_Callback_list (0x0x7f5a2cb2ea80) 0
-
-Class std::ios_base::_Words
- size=16 align=8
- base size=16 base align=8
-std::ios_base::_Words (0x0x7f5a2cb2eae0) 0
-
-Class std::ios_base::Init
- size=1 align=1
- base size=0 base align=1
-std::ios_base::Init (0x0x7f5a2cb2eb40) 0 empty
-
-Vtable for std::ios_base
-std::ios_base::_ZTVSt8ios_base: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt8ios_base)
-16 (int (*)(...))std::ios_base::~ios_base
-24 (int (*)(...))std::ios_base::~ios_base
-
-Class std::ios_base
- size=216 align=8
- base size=216 base align=8
-std::ios_base (0x0x7f5a2cb2e9c0) 0
- vptr=((& std::ios_base::_ZTVSt8ios_base) + 16u)
-
-Class std::ctype_base
- size=1 align=1
- base size=0 base align=1
-std::ctype_base (0x0x7f5a2c864300) 0 empty
-
-Class std::__num_base
- size=1 align=1
- base size=0 base align=1
-std::__num_base (0x0x7f5a2c8649c0) 0 empty
-
-VTT for std::basic_ostream<char>
-std::basic_ostream<char>::_ZTTSo: 2u entries
-0 ((& std::basic_ostream<char>::_ZTVSo) + 24u)
-8 ((& std::basic_ostream<char>::_ZTVSo) + 64u)
-
-VTT for std::basic_ostream<wchar_t>
-std::basic_ostream<wchar_t>::_ZTTSt13basic_ostreamIwSt11char_traitsIwEE: 2u entries
-0 ((& std::basic_ostream<wchar_t>::_ZTVSt13basic_ostreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_ostream<wchar_t>::_ZTVSt13basic_ostreamIwSt11char_traitsIwEE) + 64u)
-
-VTT for std::basic_istream<char>
-std::basic_istream<char>::_ZTTSi: 2u entries
-0 ((& std::basic_istream<char>::_ZTVSi) + 24u)
-8 ((& std::basic_istream<char>::_ZTVSi) + 64u)
-
-VTT for std::basic_istream<wchar_t>
-std::basic_istream<wchar_t>::_ZTTSt13basic_istreamIwSt11char_traitsIwEE: 2u entries
-0 ((& std::basic_istream<wchar_t>::_ZTVSt13basic_istreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_istream<wchar_t>::_ZTVSt13basic_istreamIwSt11char_traitsIwEE) + 64u)
-
-Construction vtable for std::basic_istream<char> (0x0x7f5a2c429750 instance) in std::basic_iostream<char>
-std::basic_iostream<char>::_ZTCSd0_Si: 10u entries
-0 24u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISi)
-24 0u
-32 0u
-40 18446744073709551592u
-48 (int (*)(...))-24
-56 (int (*)(...))(& _ZTISi)
-64 0u
-72 0u
-
-Construction vtable for std::basic_ostream<char> (0x0x7f5a2c429820 instance) in std::basic_iostream<char>
-std::basic_iostream<char>::_ZTCSd16_So: 10u entries
-0 8u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISo)
-24 0u
-32 0u
-40 18446744073709551608u
-48 (int (*)(...))-8
-56 (int (*)(...))(& _ZTISo)
-64 0u
-72 0u
-
-VTT for std::basic_iostream<char>
-std::basic_iostream<char>::_ZTTSd: 7u entries
-0 ((& std::basic_iostream<char>::_ZTVSd) + 24u)
-8 ((& std::basic_iostream<char>::_ZTCSd0_Si) + 24u)
-16 ((& std::basic_iostream<char>::_ZTCSd0_Si) + 64u)
-24 ((& std::basic_iostream<char>::_ZTCSd16_So) + 24u)
-32 ((& std::basic_iostream<char>::_ZTCSd16_So) + 64u)
-40 ((& std::basic_iostream<char>::_ZTVSd) + 104u)
-48 ((& std::basic_iostream<char>::_ZTVSd) + 64u)
-
-Construction vtable for std::basic_istream<wchar_t> (0x0x7f5a2c429bc8 instance) in std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E: 10u entries
-0 24u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISt13basic_istreamIwSt11char_traitsIwEE)
-24 0u
-32 0u
-40 18446744073709551592u
-48 (int (*)(...))-24
-56 (int (*)(...))(& _ZTISt13basic_istreamIwSt11char_traitsIwEE)
-64 0u
-72 0u
-
-Construction vtable for std::basic_ostream<wchar_t> (0x0x7f5a2c429c98 instance) in std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E: 10u entries
-0 8u
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISt13basic_ostreamIwSt11char_traitsIwEE)
-24 0u
-32 0u
-40 18446744073709551608u
-48 (int (*)(...))-8
-56 (int (*)(...))(& _ZTISt13basic_ostreamIwSt11char_traitsIwEE)
-64 0u
-72 0u
-
-VTT for std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTTSt14basic_iostreamIwSt11char_traitsIwEE: 7u entries
-0 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 24u)
-8 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E) + 24u)
-16 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E) + 64u)
-24 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E) + 24u)
-32 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E) + 64u)
-40 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 104u)
-48 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 64u)
-
-Class QByteArrayDataPtr
- size=8 align=8
- base size=8 base align=8
-QByteArrayDataPtr (0x0x7f5a2c486240) 0
-
-Class QByteArray
- size=8 align=8
- base size=8 base align=8
-QByteArray (0x0x7f5a2c4862a0) 0
-
-Class QByteRef
- size=16 align=8
- base size=12 base align=8
-QByteRef (0x0x7f5a2c1a9600) 0
-
-Class QStringDataPtr
- size=8 align=8
- base size=8 base align=8
-QStringDataPtr (0x0x7f5a2c1a9960) 0
-
-Class QStringView
- size=16 align=8
- base size=16 base align=8
-QStringView (0x0x7f5a2c1a9de0) 0
-
-Class QLatin1String
- size=16 align=8
- base size=16 base align=8
-QLatin1String (0x0x7f5a2c2dcc60) 0
-
-Class QString::Null
- size=1 align=1
- base size=0 base align=1
-QString::Null (0x0x7f5a2bf6d300) 0 empty
-
-Class QString
- size=8 align=8
- base size=8 base align=8
-QString (0x0x7f5a2bf6d2a0) 0
-
-Class QCharRef
- size=16 align=8
- base size=12 base align=8
-QCharRef (0x0x7f5a2c1163c0) 0
-
-Class QStringRef
- size=16 align=8
- base size=16 base align=8
-QStringRef (0x0x7f5a2bedf000) 0
-
-Class QtPrivate::QHashCombine
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QHashCombine (0x0x7f5a2bedfc60) 0 empty
-
-Class QtPrivate::QHashCombineCommutative
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QHashCombineCommutative (0x0x7f5a2bedfcc0) 0 empty
-
-Class std::__detail::_List_node_base
- size=16 align=8
- base size=16 base align=8
-std::__detail::_List_node_base (0x0x7f5a2bedfd20) 0
-
-Class QListData::NotArrayCompatibleLayout
- size=1 align=1
- base size=0 base align=1
-QListData::NotArrayCompatibleLayout (0x0x7f5a2bcf6120) 0 empty
-
-Class QListData::NotIndirectLayout
- size=1 align=1
- base size=0 base align=1
-QListData::NotIndirectLayout (0x0x7f5a2bcf6180) 0 empty
-
-Class QListData::ArrayCompatibleLayout
- size=1 align=1
- base size=1 base align=1
-QListData::ArrayCompatibleLayout (0x0x7f5a2bc736e8) 0 empty
- QListData::NotIndirectLayout (0x0x7f5a2bcf61e0) 0 empty
-
-Class QListData::InlineWithPaddingLayout
- size=1 align=1
- base size=1 base align=1
-QListData::InlineWithPaddingLayout (0x0x7f5a2b973f50) 0 empty
- QListData::NotArrayCompatibleLayout (0x0x7f5a2bcf6240) 0 empty
- QListData::NotIndirectLayout (0x0x7f5a2bcf62a0) 0 empty
-
-Class QListData::IndirectLayout
- size=1 align=1
- base size=1 base align=1
-QListData::IndirectLayout (0x0x7f5a2bc73750) 0 empty
- QListData::NotArrayCompatibleLayout (0x0x7f5a2bcf6300) 0 empty
-
-Class QListData::Data
- size=24 align=8
- base size=24 base align=8
-QListData::Data (0x0x7f5a2bcf6360) 0
-
-Class QListData
- size=8 align=8
- base size=8 base align=8
-QListData (0x0x7f5a2bcf60c0) 0
-
-Class QRegExp
- size=8 align=8
- base size=8 base align=8
-QRegExp (0x0x7f5a2bcf67e0) 0
-
-Class QStringMatcher::Data
- size=272 align=8
- base size=272 base align=8
-QStringMatcher::Data (0x0x7f5a2bb2ca20) 0
-
-Class QStringMatcher
- size=1048 align=8
- base size=1048 base align=8
-QStringMatcher (0x0x7f5a2bb2c9c0) 0
-
-Class QStringList
- size=8 align=8
- base size=8 base align=8
-QStringList (0x0x7f5a2bb3c1a0) 0
- QList<QString> (0x0x7f5a2bb3c208) 0
- QListSpecialMethods<QString> (0x0x7f5a2bb2cc00) 0 empty
-
-Class QScopedPointerPodDeleter
- size=1 align=1
- base size=0 base align=1
-QScopedPointerPodDeleter (0x0x7f5a2b7cf060) 0 empty
-
-Class std::_Rb_tree_node_base
- size=32 align=8
- base size=32 base align=8
-std::_Rb_tree_node_base (0x0x7f5a2b7cfc00) 0
-
-Class std::allocator_arg_t
- size=1 align=1
- base size=0 base align=1
-std::allocator_arg_t (0x0x7f5a2b5592a0) 0 empty
-
-Class std::__uses_alloc_base
- size=1 align=1
- base size=0 base align=1
-std::__uses_alloc_base (0x0x7f5a2b559420) 0 empty
-
-Class std::__uses_alloc0::_Sink
- size=1 align=1
- base size=0 base align=1
-std::__uses_alloc0::_Sink (0x0x7f5a2b5594e0) 0 empty
-
-Class std::__uses_alloc0
- size=1 align=1
- base size=1 base align=1
-std::__uses_alloc0 (0x0x7f5a2bb3caf8) 0
- std::__uses_alloc_base (0x0x7f5a2b559480) 0 empty
-
-Class std::_Swallow_assign
- size=1 align=1
- base size=0 base align=1
-std::_Swallow_assign (0x0x7f5a2b6d9540) 0 empty
-
-Class QtPrivate::AbstractDebugStreamFunction
- size=16 align=8
- base size=16 base align=8
-QtPrivate::AbstractDebugStreamFunction (0x0x7f5a2b6d9780) 0
-
-Class QtPrivate::AbstractComparatorFunction
- size=24 align=8
- base size=24 base align=8
-QtPrivate::AbstractComparatorFunction (0x0x7f5a2b6d9840) 0
-
-Class QtPrivate::AbstractConverterFunction
- size=8 align=8
- base size=8 base align=8
-QtPrivate::AbstractConverterFunction (0x0x7f5a2b6d9960) 0
-
-Class QMetaType
- size=80 align=8
- base size=80 base align=8
-QMetaType (0x0x7f5a2b6d9ae0) 0
-
-Class QtMetaTypePrivate::VariantData
- size=24 align=8
- base size=20 base align=8
-QtMetaTypePrivate::VariantData (0x0x7f5a2b6d9f00) 0
-
-Class QtMetaTypePrivate::VectorBoolElements
- size=1 align=1
- base size=0 base align=1
-QtMetaTypePrivate::VectorBoolElements (0x0x7f5a2b432060) 0 empty
-
-Class QtMetaTypePrivate::QSequentialIterableImpl
- size=104 align=8
- base size=104 base align=8
-QtMetaTypePrivate::QSequentialIterableImpl (0x0x7f5a2b4329c0) 0
-
-Class QtMetaTypePrivate::QAssociativeIterableImpl
- size=112 align=8
- base size=112 base align=8
-QtMetaTypePrivate::QAssociativeIterableImpl (0x0x7f5a2b432de0) 0
-
-Class QtMetaTypePrivate::QPairVariantInterfaceImpl
- size=40 align=8
- base size=40 base align=8
-QtMetaTypePrivate::QPairVariantInterfaceImpl (0x0x7f5a2b525120) 0
-
-Class std::chrono::_V2::system_clock
- size=1 align=1
- base size=0 base align=1
-std::chrono::_V2::system_clock (0x0x7f5a2b334ae0) 0 empty
-
-Class std::chrono::_V2::steady_clock
- size=1 align=1
- base size=0 base align=1
-std::chrono::_V2::steady_clock (0x0x7f5a2b090960) 0 empty
-
-Vtable for QObjectData
-QObjectData::_ZTV11QObjectData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QObjectData)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))__cxa_pure_virtual
-
-Class QObjectData
- size=48 align=8
- base size=48 base align=8
-QObjectData (0x0x7f5a2b0909c0) 0
- vptr=((& QObjectData::_ZTV11QObjectData) + 16u)
-
-Class QObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QObject::QPrivateSignal (0x0x7f5a2b090ba0) 0 empty
-
-Vtable for QObject
-QObject::_ZTV7QObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QObject)
-16 (int (*)(...))QObject::metaObject
-24 (int (*)(...))QObject::qt_metacast
-32 (int (*)(...))QObject::qt_metacall
-40 (int (*)(...))QObject::~QObject
-48 (int (*)(...))QObject::~QObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QObject
- size=16 align=8
- base size=16 base align=8
-QObject (0x0x7f5a2b090b40) 0
- vptr=((& QObject::_ZTV7QObject) + 16u)
-
-Vtable for QObjectUserData
-QObjectUserData::_ZTV15QObjectUserData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QObjectUserData)
-16 (int (*)(...))QObjectUserData::~QObjectUserData
-24 (int (*)(...))QObjectUserData::~QObjectUserData
-
-Class QObjectUserData
- size=8 align=8
- base size=8 base align=8
-QObjectUserData (0x0x7f5a2ad40e40) 0 nearly-empty
- vptr=((& QObjectUserData::_ZTV15QObjectUserData) + 16u)
-
-Class QSignalBlocker
- size=16 align=8
- base size=10 base align=8
-QSignalBlocker (0x0x7f5a2ad40ea0) 0
-
-Class QAbstractAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractAnimation::QPrivateSignal (0x0x7f5a2ad40f60) 0 empty
-
-Vtable for QAbstractAnimation
-QAbstractAnimation::_ZTV18QAbstractAnimation: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractAnimation)
-16 (int (*)(...))QAbstractAnimation::metaObject
-24 (int (*)(...))QAbstractAnimation::qt_metacast
-32 (int (*)(...))QAbstractAnimation::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QAbstractAnimation
- size=16 align=8
- base size=16 base align=8
-QAbstractAnimation (0x0x7f5a2ad5eea0) 0
- vptr=((& QAbstractAnimation::_ZTV18QAbstractAnimation) + 16u)
- QObject (0x0x7f5a2ad40f00) 0
- primary-for QAbstractAnimation (0x0x7f5a2ad5eea0)
-
-Class QAnimationDriver::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAnimationDriver::QPrivateSignal (0x0x7f5a2adcc060) 0 empty
-
-Vtable for QAnimationDriver
-QAnimationDriver::_ZTV16QAnimationDriver: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QAnimationDriver)
-16 (int (*)(...))QAnimationDriver::metaObject
-24 (int (*)(...))QAnimationDriver::qt_metacast
-32 (int (*)(...))QAnimationDriver::qt_metacall
-40 (int (*)(...))QAnimationDriver::~QAnimationDriver
-48 (int (*)(...))QAnimationDriver::~QAnimationDriver
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAnimationDriver::advance
-120 (int (*)(...))QAnimationDriver::elapsed
-128 (int (*)(...))QAnimationDriver::start
-136 (int (*)(...))QAnimationDriver::stop
-
-Class QAnimationDriver
- size=16 align=8
- base size=16 base align=8
-QAnimationDriver (0x0x7f5a2ad5ef08) 0
- vptr=((& QAnimationDriver::_ZTV16QAnimationDriver) + 16u)
- QObject (0x0x7f5a2adcc000) 0
- primary-for QAnimationDriver (0x0x7f5a2ad5ef08)
-
-Class QEventLoop::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QEventLoop::QPrivateSignal (0x0x7f5a2adcc120) 0 empty
-
-Vtable for QEventLoop
-QEventLoop::_ZTV10QEventLoop: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QEventLoop)
-16 (int (*)(...))QEventLoop::metaObject
-24 (int (*)(...))QEventLoop::qt_metacast
-32 (int (*)(...))QEventLoop::qt_metacall
-40 (int (*)(...))QEventLoop::~QEventLoop
-48 (int (*)(...))QEventLoop::~QEventLoop
-56 (int (*)(...))QEventLoop::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QEventLoop
- size=16 align=8
- base size=16 base align=8
-QEventLoop (0x0x7f5a2ad5ef70) 0
- vptr=((& QEventLoop::_ZTV10QEventLoop) + 16u)
- QObject (0x0x7f5a2adcc0c0) 0
- primary-for QEventLoop (0x0x7f5a2ad5ef70)
-
-Class QEventLoopLocker
- size=8 align=8
- base size=8 base align=8
-QEventLoopLocker (0x0x7f5a2adcc300) 0
-
-Class QAbstractEventDispatcher::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractEventDispatcher::QPrivateSignal (0x0x7f5a2adcc3c0) 0 empty
-
-Class QAbstractEventDispatcher::TimerInfo
- size=12 align=4
- base size=12 base align=4
-QAbstractEventDispatcher::TimerInfo (0x0x7f5a2adcc420) 0
-
-Vtable for QAbstractEventDispatcher
-QAbstractEventDispatcher::_ZTV24QAbstractEventDispatcher: 28u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAbstractEventDispatcher)
-16 (int (*)(...))QAbstractEventDispatcher::metaObject
-24 (int (*)(...))QAbstractEventDispatcher::qt_metacast
-32 (int (*)(...))QAbstractEventDispatcher::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-184 (int (*)(...))__cxa_pure_virtual
-192 (int (*)(...))__cxa_pure_virtual
-200 (int (*)(...))__cxa_pure_virtual
-208 (int (*)(...))QAbstractEventDispatcher::startingUp
-216 (int (*)(...))QAbstractEventDispatcher::closingDown
-
-Class QAbstractEventDispatcher
- size=16 align=8
- base size=16 base align=8
-QAbstractEventDispatcher (0x0x7f5a2ad5e2d8) 0
- vptr=((& QAbstractEventDispatcher::_ZTV24QAbstractEventDispatcher) + 16u)
- QObject (0x0x7f5a2adcc360) 0
- primary-for QAbstractEventDispatcher (0x0x7f5a2ad5e2d8)
-
-Vtable for std::type_info
-std::type_info::_ZTVSt9type_info: 8u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9type_info)
-16 (int (*)(...))std::type_info::~type_info
-24 (int (*)(...))std::type_info::~type_info
-32 (int (*)(...))std::type_info::__is_pointer_p
-40 (int (*)(...))std::type_info::__is_function_p
-48 (int (*)(...))std::type_info::__do_catch
-56 (int (*)(...))std::type_info::__do_upcast
-
-Class std::type_info
- size=16 align=8
- base size=16 base align=8
-std::type_info (0x0x7f5a2adcc6c0) 0
- vptr=((& std::type_info::_ZTVSt9type_info) + 16u)
-
-Vtable for std::bad_cast
-std::bad_cast::_ZTVSt8bad_cast: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt8bad_cast)
-16 (int (*)(...))std::bad_cast::~bad_cast
-24 (int (*)(...))std::bad_cast::~bad_cast
-32 (int (*)(...))std::bad_cast::what
-
-Class std::bad_cast
- size=8 align=8
- base size=8 base align=8
-std::bad_cast (0x0x7f5a2ae2f138) 0 nearly-empty
- vptr=((& std::bad_cast::_ZTVSt8bad_cast) + 16u)
- std::exception (0x0x7f5a2adcc720) 0 nearly-empty
- primary-for std::bad_cast (0x0x7f5a2ae2f138)
-
-Vtable for std::bad_typeid
-std::bad_typeid::_ZTVSt10bad_typeid: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt10bad_typeid)
-16 (int (*)(...))std::bad_typeid::~bad_typeid
-24 (int (*)(...))std::bad_typeid::~bad_typeid
-32 (int (*)(...))std::bad_typeid::what
-
-Class std::bad_typeid
- size=8 align=8
- base size=8 base align=8
-std::bad_typeid (0x0x7f5a2ae2f1a0) 0 nearly-empty
- vptr=((& std::bad_typeid::_ZTVSt10bad_typeid) + 16u)
- std::exception (0x0x7f5a2adcc780) 0 nearly-empty
- primary-for std::bad_typeid (0x0x7f5a2ae2f1a0)
-
-Vtable for std::bad_function_call
-std::bad_function_call::_ZTVSt17bad_function_call: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt17bad_function_call)
-16 (int (*)(...))std::bad_function_call::~bad_function_call
-24 (int (*)(...))std::bad_function_call::~bad_function_call
-32 (int (*)(...))std::bad_function_call::what
-
-Class std::bad_function_call
- size=8 align=8
- base size=8 base align=8
-std::bad_function_call (0x0x7f5a2ab9d410) 0 nearly-empty
- vptr=((& std::bad_function_call::_ZTVSt17bad_function_call) + 16u)
- std::exception (0x0x7f5a2ab53840) 0 nearly-empty
- primary-for std::bad_function_call (0x0x7f5a2ab9d410)
-
-Class std::_Nocopy_types
- size=16 align=8
- base size=16 base align=8
-std::_Nocopy_types (0x0x7f5a2ab53900) 0
-
-Class std::_Any_data
- size=16 align=8
- base size=16 base align=8
-std::_Any_data (0x0x7f5a2ab53960) 0
-
-Class std::_Function_base
- size=24 align=8
- base size=24 base align=8
-std::_Function_base (0x0x7f5a2ab53a80) 0
-
-Class QMapNodeBase
- size=24 align=8
- base size=24 base align=8
-QMapNodeBase (0x0x7f5a2ab53f60) 0
-
-Class QMapDataBase
- size=40 align=8
- base size=40 base align=8
-QMapDataBase (0x0x7f5a2ac514e0) 0
-
-Class QHashData::Node
- size=16 align=8
- base size=16 base align=8
-QHashData::Node (0x0x7f5a2ac518a0) 0
-
-Class QHashData
- size=48 align=8
- base size=44 base align=8
-QHashData (0x0x7f5a2ac51840) 0
-
-Class QHashDummyValue
- size=1 align=1
- base size=0 base align=1
-QHashDummyValue (0x0x7f5a2ac51900) 0 empty
-
-Class QVariant::PrivateShared
- size=16 align=8
- base size=12 base align=8
-QVariant::PrivateShared (0x0x7f5a2aa631e0) 0
-
-Class QVariant::Private::Data
- size=8 align=8
- base size=8 base align=8
-QVariant::Private::Data (0x0x7f5a2aa632a0) 0
-
-Class QVariant::Private
- size=16 align=8
- base size=12 base align=8
-QVariant::Private (0x0x7f5a2aa63240) 0
-
-Class QVariant::Handler
- size=72 align=8
- base size=72 base align=8
-QVariant::Handler (0x0x7f5a2aa63300) 0
-
-Class QVariant
- size=16 align=8
- base size=16 base align=8
-QVariant (0x0x7f5a2aa63180) 0
-
-Class QVariantComparisonHelper
- size=8 align=8
- base size=8 base align=8
-QVariantComparisonHelper (0x0x7f5a2a730de0) 0
-
-Class QSequentialIterable::const_iterator
- size=112 align=8
- base size=112 base align=8
-QSequentialIterable::const_iterator (0x0x7f5a2a7dd480) 0
-
-Class QSequentialIterable
- size=104 align=8
- base size=104 base align=8
-QSequentialIterable (0x0x7f5a2a7dd420) 0
-
-Class QAssociativeIterable::const_iterator
- size=120 align=8
- base size=120 base align=8
-QAssociativeIterable::const_iterator (0x0x7f5a2a7dd540) 0
-
-Class QAssociativeIterable
- size=112 align=8
- base size=112 base align=8
-QAssociativeIterable (0x0x7f5a2a7dd4e0) 0
-
-Class QModelIndex
- size=24 align=8
- base size=24 base align=8
-QModelIndex (0x0x7f5a2a901840) 0
-
-Class QPersistentModelIndex
- size=8 align=8
- base size=8 base align=8
-QPersistentModelIndex (0x0x7f5a2a901f00) 0
-
-Class QAbstractItemModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractItemModel::QPrivateSignal (0x0x7f5a2a6ec660) 0 empty
-
-Vtable for QAbstractItemModel
-QAbstractItemModel::_ZTV18QAbstractItemModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractItemModel)
-16 (int (*)(...))QAbstractItemModel::metaObject
-24 (int (*)(...))QAbstractItemModel::qt_metacast
-32 (int (*)(...))QAbstractItemModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractItemModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractItemModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractItemModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractItemModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractItemModel
- size=16 align=8
- base size=16 base align=8
-QAbstractItemModel (0x0x7f5a2a6f71a0) 0
- vptr=((& QAbstractItemModel::_ZTV18QAbstractItemModel) + 16u)
- QObject (0x0x7f5a2a6ec600) 0
- primary-for QAbstractItemModel (0x0x7f5a2a6f71a0)
-
-Class QAbstractTableModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTableModel::QPrivateSignal (0x0x7f5a2a6ecf00) 0 empty
-
-Vtable for QAbstractTableModel
-QAbstractTableModel::_ZTV19QAbstractTableModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractTableModel)
-16 (int (*)(...))QAbstractTableModel::metaObject
-24 (int (*)(...))QAbstractTableModel::qt_metacast
-32 (int (*)(...))QAbstractTableModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractTableModel::index
-120 (int (*)(...))QAbstractTableModel::parent
-128 (int (*)(...))QAbstractTableModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractTableModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractTableModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractTableModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractTableModel
- size=16 align=8
- base size=16 base align=8
-QAbstractTableModel (0x0x7f5a2a6f7888) 0
- vptr=((& QAbstractTableModel::_ZTV19QAbstractTableModel) + 16u)
- QAbstractItemModel (0x0x7f5a2a6f78f0) 0
- primary-for QAbstractTableModel (0x0x7f5a2a6f7888)
- QObject (0x0x7f5a2a6ecea0) 0
- primary-for QAbstractItemModel (0x0x7f5a2a6f78f0)
-
-Class QAbstractListModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractListModel::QPrivateSignal (0x0x7f5a2a3de000) 0 empty
-
-Vtable for QAbstractListModel
-QAbstractListModel::_ZTV18QAbstractListModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractListModel)
-16 (int (*)(...))QAbstractListModel::metaObject
-24 (int (*)(...))QAbstractListModel::qt_metacast
-32 (int (*)(...))QAbstractListModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractListModel::index
-120 (int (*)(...))QAbstractListModel::parent
-128 (int (*)(...))QAbstractListModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QAbstractListModel::columnCount
-152 (int (*)(...))QAbstractListModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractListModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractListModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractListModel
- size=16 align=8
- base size=16 base align=8
-QAbstractListModel (0x0x7f5a2a6f7958) 0
- vptr=((& QAbstractListModel::_ZTV18QAbstractListModel) + 16u)
- QAbstractItemModel (0x0x7f5a2a6f79c0) 0
- primary-for QAbstractListModel (0x0x7f5a2a6f7958)
- QObject (0x0x7f5a2a6ecf60) 0
- primary-for QAbstractItemModel (0x0x7f5a2a6f79c0)
-
-Vtable for QAbstractNativeEventFilter
-QAbstractNativeEventFilter::_ZTV26QAbstractNativeEventFilter: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAbstractNativeEventFilter)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractNativeEventFilter
- size=16 align=8
- base size=16 base align=8
-QAbstractNativeEventFilter (0x0x7f5a2a3de2a0) 0
- vptr=((& QAbstractNativeEventFilter::_ZTV26QAbstractNativeEventFilter) + 16u)
-
-Class QAbstractProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractProxyModel::QPrivateSignal (0x0x7f5a2a3de360) 0 empty
-
-Vtable for QAbstractProxyModel
-QAbstractProxyModel::_ZTV19QAbstractProxyModel: 53u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractProxyModel)
-16 (int (*)(...))QAbstractProxyModel::metaObject
-24 (int (*)(...))QAbstractProxyModel::qt_metacast
-32 (int (*)(...))QAbstractProxyModel::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractProxyModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QAbstractProxyModel::headerData
-184 (int (*)(...))QAbstractProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QAbstractProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QAbstractProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QAbstractProxyModel::setSourceModel
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))__cxa_pure_virtual
-408 (int (*)(...))QAbstractProxyModel::mapSelectionToSource
-416 (int (*)(...))QAbstractProxyModel::mapSelectionFromSource
-
-Class QAbstractProxyModel
- size=16 align=8
- base size=16 base align=8
-QAbstractProxyModel (0x0x7f5a2a6f7af8) 0
- vptr=((& QAbstractProxyModel::_ZTV19QAbstractProxyModel) + 16u)
- QAbstractItemModel (0x0x7f5a2a6f7b60) 0
- primary-for QAbstractProxyModel (0x0x7f5a2a6f7af8)
- QObject (0x0x7f5a2a3de300) 0
- primary-for QAbstractItemModel (0x0x7f5a2a6f7b60)
-
-Class QAbstractState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractState::QPrivateSignal (0x0x7f5a2a3de420) 0 empty
-
-Vtable for QAbstractState
-QAbstractState::_ZTV14QAbstractState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QAbstractState)
-16 (int (*)(...))QAbstractState::metaObject
-24 (int (*)(...))QAbstractState::qt_metacast
-32 (int (*)(...))QAbstractState::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractState
- size=16 align=8
- base size=16 base align=8
-QAbstractState (0x0x7f5a2a6f7bc8) 0
- vptr=((& QAbstractState::_ZTV14QAbstractState) + 16u)
- QObject (0x0x7f5a2a3de3c0) 0
- primary-for QAbstractState (0x0x7f5a2a6f7bc8)
-
-Class QAbstractTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTransition::QPrivateSignal (0x0x7f5a2a3de4e0) 0 empty
-
-Vtable for QAbstractTransition
-QAbstractTransition::_ZTV19QAbstractTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractTransition)
-16 (int (*)(...))QAbstractTransition::metaObject
-24 (int (*)(...))QAbstractTransition::qt_metacast
-32 (int (*)(...))QAbstractTransition::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAbstractTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractTransition
- size=16 align=8
- base size=16 base align=8
-QAbstractTransition (0x0x7f5a2a6f7c30) 0
- vptr=((& QAbstractTransition::_ZTV19QAbstractTransition) + 16u)
- QObject (0x0x7f5a2a3de480) 0
- primary-for QAbstractTransition (0x0x7f5a2a6f7c30)
-
-Class QAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAnimationGroup::QPrivateSignal (0x0x7f5a2a3de5a0) 0 empty
-
-Vtable for QAnimationGroup
-QAnimationGroup::_ZTV15QAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QAnimationGroup)
-16 (int (*)(...))QAnimationGroup::metaObject
-24 (int (*)(...))QAnimationGroup::qt_metacast
-32 (int (*)(...))QAnimationGroup::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QAnimationGroup (0x0x7f5a2a6f7c98) 0
- vptr=((& QAnimationGroup::_ZTV15QAnimationGroup) + 16u)
- QAbstractAnimation (0x0x7f5a2a6f7d00) 0
- primary-for QAnimationGroup (0x0x7f5a2a6f7c98)
- QObject (0x0x7f5a2a3de540) 0
- primary-for QAbstractAnimation (0x0x7f5a2a6f7d00)
-
-Class QBasicTimer
- size=4 align=4
- base size=4 base align=4
-QBasicTimer (0x0x7f5a2a4b7300) 0
-
-Class QBitArray
- size=8 align=8
- base size=8 base align=8
-QBitArray (0x0x7f5a2a4b75a0) 0
-
-Class QBitRef
- size=16 align=8
- base size=12 base align=8
-QBitRef (0x0x7f5a2a4b7660) 0
-
-Class QIODevice::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIODevice::QPrivateSignal (0x0x7f5a2a4b7960) 0 empty
-
-Vtable for QIODevice
-QIODevice::_ZTV9QIODevice: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QIODevice)
-16 (int (*)(...))QIODevice::metaObject
-24 (int (*)(...))QIODevice::qt_metacast
-32 (int (*)(...))QIODevice::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIODevice::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QIODevice::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))__cxa_pure_virtual
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))__cxa_pure_virtual
-
-Class QIODevice
- size=16 align=8
- base size=16 base align=8
-QIODevice (0x0x7f5a2a4e13a8) 0
- vptr=((& QIODevice::_ZTV9QIODevice) + 16u)
- QObject (0x0x7f5a2a4b7900) 0
- primary-for QIODevice (0x0x7f5a2a4e13a8)
-
-Class QBuffer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QBuffer::QPrivateSignal (0x0x7f5a2a4b7ba0) 0 empty
-
-Vtable for QBuffer
-QBuffer::_ZTV7QBuffer: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QBuffer)
-16 (int (*)(...))QBuffer::metaObject
-24 (int (*)(...))QBuffer::qt_metacast
-32 (int (*)(...))QBuffer::qt_metacall
-40 (int (*)(...))QBuffer::~QBuffer
-48 (int (*)(...))QBuffer::~QBuffer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QBuffer::connectNotify
-104 (int (*)(...))QBuffer::disconnectNotify
-112 (int (*)(...))QIODevice::isSequential
-120 (int (*)(...))QBuffer::open
-128 (int (*)(...))QBuffer::close
-136 (int (*)(...))QBuffer::pos
-144 (int (*)(...))QBuffer::size
-152 (int (*)(...))QBuffer::seek
-160 (int (*)(...))QBuffer::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QBuffer::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QBuffer::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QBuffer::writeData
-
-Class QBuffer
- size=16 align=8
- base size=16 base align=8
-QBuffer (0x0x7f5a2a4e14e0) 0
- vptr=((& QBuffer::_ZTV7QBuffer) + 16u)
- QIODevice (0x0x7f5a2a4e1548) 0
- primary-for QBuffer (0x0x7f5a2a4e14e0)
- QObject (0x0x7f5a2a4b7b40) 0
- primary-for QIODevice (0x0x7f5a2a4e1548)
-
-Class QByteArrayMatcher::Data
- size=272 align=8
- base size=272 base align=8
-QByteArrayMatcher::Data (0x0x7f5a2a4b7c60) 0
-
-Class QByteArrayMatcher
- size=1040 align=8
- base size=1040 base align=8
-QByteArrayMatcher (0x0x7f5a2a4b7c00) 0
-
-Class QStaticByteArrayMatcherBase::Skiptable
- size=256 align=1
- base size=256 base align=1
-QStaticByteArrayMatcherBase::Skiptable (0x0x7f5a2a4b7d80) 0
-
-Class QStaticByteArrayMatcherBase
- size=256 align=16
- base size=256 base align=16
-QStaticByteArrayMatcherBase (0x0x7f5a2a4b7d20) 0
-
-Class QSharedData
- size=4 align=4
- base size=4 base align=4
-QSharedData (0x0x7f5a2a4b7f60) 0
-
-Class QDate
- size=8 align=8
- base size=8 base align=8
-QDate (0x0x7f5a2a1e9180) 0
-
-Class QTime
- size=4 align=4
- base size=4 base align=4
-QTime (0x0x7f5a2a1e9420) 0
-
-Class QDateTime::ShortData
- size=8 align=8
- base size=8 base align=8
-QDateTime::ShortData (0x0x7f5a2a1e9ba0) 0
-
-Class QDateTime::Data
- size=8 align=8
- base size=8 base align=8
-QDateTime::Data (0x0x7f5a2a1e9c00) 0
-
-Class QDateTime
- size=8 align=8
- base size=8 base align=8
-QDateTime (0x0x7f5a2a1e9b40) 0
-
-Class QLocale
- size=8 align=8
- base size=8 base align=8
-QLocale (0x0x7f5a2a30bd20) 0
-
-Vtable for QTextStream
-QTextStream::_ZTV11QTextStream: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTextStream)
-16 (int (*)(...))QTextStream::~QTextStream
-24 (int (*)(...))QTextStream::~QTextStream
-
-Class QTextStream
- size=16 align=8
- base size=16 base align=8
-QTextStream (0x0x7f5a29fd4360) 0
- vptr=((& QTextStream::_ZTV11QTextStream) + 16u)
-
-Class QTextStreamManipulator
- size=40 align=8
- base size=38 base align=8
-QTextStreamManipulator (0x0x7f5a29fd4600) 0
-
-Class QContiguousCacheData
- size=24 align=4
- base size=24 base align=4
-QContiguousCacheData (0x0x7f5a29fd4840) 0
-
-Class QtSharedPointer::NormalDeleter
- size=1 align=1
- base size=0 base align=1
-QtSharedPointer::NormalDeleter (0x0x7f5a29fd4f00) 0 empty
-
-Class QtSharedPointer::ExternalRefCountData
- size=16 align=8
- base size=16 base align=8
-QtSharedPointer::ExternalRefCountData (0x0x7f5a29d060c0) 0
-
-Class QDebug::Stream
- size=80 align=8
- base size=76 base align=8
-QDebug::Stream (0x0x7f5a29d06600) 0
-
-Class QDebug
- size=8 align=8
- base size=8 base align=8
-QDebug (0x0x7f5a29d065a0) 0
-
-Class QDebugStateSaver
- size=8 align=8
- base size=8 base align=8
-QDebugStateSaver (0x0x7f5a29b15900) 0
-
-Class QNoDebug
- size=1 align=1
- base size=0 base align=1
-QNoDebug (0x0x7f5a29b159c0) 0 empty
-
-Class QCborError
- size=4 align=4
- base size=4 base align=4
-QCborError (0x0x7f5a29b93d20) 0
-
-Class QRegularExpression
- size=8 align=8
- base size=8 base align=8
-QRegularExpression (0x0x7f5a29b93ea0) 0
-
-Class QRegularExpressionMatch
- size=8 align=8
- base size=8 base align=8
-QRegularExpressionMatch (0x0x7f5a29bf94e0) 0
-
-Class QRegularExpressionMatchIterator
- size=8 align=8
- base size=8 base align=8
-QRegularExpressionMatchIterator (0x0x7f5a29bf97e0) 0
-
-Class QUrl
- size=8 align=8
- base size=8 base align=8
-QUrl (0x0x7f5a29bf9ba0) 0
-
-Class QUuid
- size=16 align=4
- base size=16 base align=4
-QUuid (0x0x7f5a299952a0) 0
-
-Class QCborParserError
- size=16 align=8
- base size=12 base align=8
-QCborParserError (0x0x7f5a299958a0) 0
-
-Class QCborValue
- size=24 align=8
- base size=20 base align=8
-QCborValue (0x0x7f5a29995900) 0
-
-Class QCborValueRef
- size=16 align=8
- base size=16 base align=8
-QCborValueRef (0x0x7f5a29851900) 0
-
-Class QCborArray::Iterator
- size=16 align=8
- base size=16 base align=8
-QCborArray::Iterator (0x0x7f5a29851ea0) 0
-
-Class QCborArray::ConstIterator
- size=16 align=8
- base size=16 base align=8
-QCborArray::ConstIterator (0x0x7f5a29851f00) 0
-
-Class QCborArray
- size=8 align=8
- base size=8 base align=8
-QCborArray (0x0x7f5a29851e40) 0
-
-Class QCborMap::Iterator
- size=16 align=8
- base size=16 base align=8
-QCborMap::Iterator (0x0x7f5a29581f60) 0
-
-Class QCborMap::ConstIterator
- size=16 align=8
- base size=16 base align=8
-QCborMap::ConstIterator (0x0x7f5a29620000) 0
-
-Class QCborMap
- size=8 align=8
- base size=8 base align=8
-QCborMap (0x0x7f5a29581f00) 0
-
-Class qfloat16
- size=2 align=2
- base size=2 base align=2
-qfloat16 (0x0x7f5a29333b40) 0
-
-Class QCborStreamWriter
- size=8 align=8
- base size=8 base align=8
-QCborStreamWriter (0x0x7f5a29333f00) 0
-
-Class QCborStreamReader
- size=24 align=8
- base size=20 base align=8
-QCborStreamReader (0x0x7f5a2949f900) 0
-
-Class QCollatorSortKey
- size=8 align=8
- base size=8 base align=8
-QCollatorSortKey (0x0x7f5a2949ff60) 0
-
-Class QCollator
- size=8 align=8
- base size=8 base align=8
-QCollator (0x0x7f5a29146060) 0
-
-Class QCommandLineOption
- size=8 align=8
- base size=8 base align=8
-QCommandLineOption (0x0x7f5a291df060) 0
-
-Vtable for QEvent
-QEvent::_ZTV6QEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QEvent)
-16 (int (*)(...))QEvent::~QEvent
-24 (int (*)(...))QEvent::~QEvent
-
-Class QEvent
- size=24 align=8
- base size=20 base align=8
-QEvent (0x0x7f5a291df4e0) 0
- vptr=((& QEvent::_ZTV6QEvent) + 16u)
-
-Vtable for QTimerEvent
-QTimerEvent::_ZTV11QTimerEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTimerEvent)
-16 (int (*)(...))QTimerEvent::~QTimerEvent
-24 (int (*)(...))QTimerEvent::~QTimerEvent
-
-Class QTimerEvent
- size=24 align=8
- base size=24 base align=8
-QTimerEvent (0x0x7f5a291d0af8) 0
- vptr=((& QTimerEvent::_ZTV11QTimerEvent) + 16u)
- QEvent (0x0x7f5a291df540) 0
- primary-for QTimerEvent (0x0x7f5a291d0af8)
-
-Vtable for QChildEvent
-QChildEvent::_ZTV11QChildEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QChildEvent)
-16 (int (*)(...))QChildEvent::~QChildEvent
-24 (int (*)(...))QChildEvent::~QChildEvent
-
-Class QChildEvent
- size=32 align=8
- base size=32 base align=8
-QChildEvent (0x0x7f5a291d0b60) 0
- vptr=((& QChildEvent::_ZTV11QChildEvent) + 16u)
- QEvent (0x0x7f5a291df5a0) 0
- primary-for QChildEvent (0x0x7f5a291d0b60)
-
-Vtable for QDynamicPropertyChangeEvent
-QDynamicPropertyChangeEvent::_ZTV27QDynamicPropertyChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QDynamicPropertyChangeEvent)
-16 (int (*)(...))QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent
-24 (int (*)(...))QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent
-
-Class QDynamicPropertyChangeEvent
- size=32 align=8
- base size=32 base align=8
-QDynamicPropertyChangeEvent (0x0x7f5a292570d0) 0
- vptr=((& QDynamicPropertyChangeEvent::_ZTV27QDynamicPropertyChangeEvent) + 16u)
- QEvent (0x0x7f5a291dfa80) 0
- primary-for QDynamicPropertyChangeEvent (0x0x7f5a292570d0)
-
-Vtable for QDeferredDeleteEvent
-QDeferredDeleteEvent::_ZTV20QDeferredDeleteEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QDeferredDeleteEvent)
-16 (int (*)(...))QDeferredDeleteEvent::~QDeferredDeleteEvent
-24 (int (*)(...))QDeferredDeleteEvent::~QDeferredDeleteEvent
-
-Class QDeferredDeleteEvent
- size=24 align=8
- base size=24 base align=8
-QDeferredDeleteEvent (0x0x7f5a29257138) 0
- vptr=((& QDeferredDeleteEvent::_ZTV20QDeferredDeleteEvent) + 16u)
- QEvent (0x0x7f5a291dfae0) 0
- primary-for QDeferredDeleteEvent (0x0x7f5a29257138)
-
-Class QCoreApplication::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QCoreApplication::QPrivateSignal (0x0x7f5a291dfba0) 0 empty
-
-Vtable for QCoreApplication
-QCoreApplication::_ZTV16QCoreApplication: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QCoreApplication)
-16 (int (*)(...))QCoreApplication::metaObject
-24 (int (*)(...))QCoreApplication::qt_metacast
-32 (int (*)(...))QCoreApplication::qt_metacall
-40 (int (*)(...))QCoreApplication::~QCoreApplication
-48 (int (*)(...))QCoreApplication::~QCoreApplication
-56 (int (*)(...))QCoreApplication::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QCoreApplication::notify
-120 (int (*)(...))QCoreApplication::compressEvent
-
-Class QCoreApplication
- size=16 align=8
- base size=16 base align=8
-QCoreApplication (0x0x7f5a292571a0) 0
- vptr=((& QCoreApplication::_ZTV16QCoreApplication) + 16u)
- QObject (0x0x7f5a291dfb40) 0
- primary-for QCoreApplication (0x0x7f5a292571a0)
-
-Class QCommandLineParser
- size=8 align=8
- base size=8 base align=8
-QCommandLineParser (0x0x7f5a291dfc00) 0
-
-Class QCryptographicHash
- size=8 align=8
- base size=8 base align=8
-QCryptographicHash (0x0x7f5a291dfc60) 0
-
-Class QDataStream
- size=32 align=8
- base size=32 base align=8
-QDataStream (0x0x7f5a291dfcc0) 0
-
-Class QtPrivate::StreamStateSaver
- size=16 align=8
- base size=12 base align=8
-QtPrivate::StreamStateSaver (0x0x7f5a291dfd80) 0
-
-Class QElapsedTimer
- size=16 align=8
- base size=16 base align=8
-QElapsedTimer (0x0x7f5a28eb02a0) 0
-
-Class QDeadlineTimer
- size=16 align=8
- base size=16 base align=8
-QDeadlineTimer (0x0x7f5a28eb0780) 0
-
-Class QFileDevice::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileDevice::QPrivateSignal (0x0x7f5a29019600) 0 empty
-
-Vtable for QFileDevice
-QFileDevice::_ZTV11QFileDevice: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFileDevice)
-16 (int (*)(...))QFileDevice::metaObject
-24 (int (*)(...))QFileDevice::qt_metacast
-32 (int (*)(...))QFileDevice::qt_metacall
-40 (int (*)(...))QFileDevice::~QFileDevice
-48 (int (*)(...))QFileDevice::~QFileDevice
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFileDevice::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QFileDevice::fileName
-248 (int (*)(...))QFileDevice::resize
-256 (int (*)(...))QFileDevice::permissions
-264 (int (*)(...))QFileDevice::setPermissions
-
-Class QFileDevice
- size=16 align=8
- base size=16 base align=8
-QFileDevice (0x0x7f5a2901a618) 0
- vptr=((& QFileDevice::_ZTV11QFileDevice) + 16u)
- QIODevice (0x0x7f5a2901a680) 0
- primary-for QFileDevice (0x0x7f5a2901a618)
- QObject (0x0x7f5a290195a0) 0
- primary-for QIODevice (0x0x7f5a2901a680)
-
-Class QFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFile::QPrivateSignal (0x0x7f5a29019840) 0 empty
-
-Vtable for QFile
-QFile::_ZTV5QFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QFile)
-16 (int (*)(...))QFile::metaObject
-24 (int (*)(...))QFile::qt_metacast
-32 (int (*)(...))QFile::qt_metacall
-40 (int (*)(...))QFile::~QFile
-48 (int (*)(...))QFile::~QFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QFile::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFile::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QFile::fileName
-248 (int (*)(...))QFile::resize
-256 (int (*)(...))QFile::permissions
-264 (int (*)(...))QFile::setPermissions
-
-Class QFile
- size=16 align=8
- base size=16 base align=8
-QFile (0x0x7f5a2901a7b8) 0
- vptr=((& QFile::_ZTV5QFile) + 16u)
- QFileDevice (0x0x7f5a2901a820) 0
- primary-for QFile (0x0x7f5a2901a7b8)
- QIODevice (0x0x7f5a2901a888) 0
- primary-for QFileDevice (0x0x7f5a2901a820)
- QObject (0x0x7f5a290197e0) 0
- primary-for QIODevice (0x0x7f5a2901a888)
-
-Class QFileInfo
- size=8 align=8
- base size=8 base align=8
-QFileInfo (0x0x7f5a29019a20) 0
-
-Class QDir
- size=8 align=8
- base size=8 base align=8
-QDir (0x0x7f5a29019e40) 0
-
-Class QDirIterator
- size=8 align=8
- base size=8 base align=8
-QDirIterator (0x0x7f5a28d09480) 0
-
-Class QEasingCurve
- size=8 align=8
- base size=8 base align=8
-QEasingCurve (0x0x7f5a28d096c0) 0
-
-Class QEventTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QEventTransition::QPrivateSignal (0x0x7f5a28e23ae0) 0 empty
-
-Vtable for QEventTransition
-QEventTransition::_ZTV16QEventTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QEventTransition)
-16 (int (*)(...))QEventTransition::metaObject
-24 (int (*)(...))QEventTransition::qt_metacast
-32 (int (*)(...))QEventTransition::qt_metacall
-40 (int (*)(...))QEventTransition::~QEventTransition
-48 (int (*)(...))QEventTransition::~QEventTransition
-56 (int (*)(...))QEventTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QEventTransition::eventTest
-120 (int (*)(...))QEventTransition::onTransition
-
-Class QEventTransition
- size=16 align=8
- base size=16 base align=8
-QEventTransition (0x0x7f5a28e26888) 0
- vptr=((& QEventTransition::_ZTV16QEventTransition) + 16u)
- QAbstractTransition (0x0x7f5a28e268f0) 0
- primary-for QEventTransition (0x0x7f5a28e26888)
- QObject (0x0x7f5a28e23a80) 0
- primary-for QAbstractTransition (0x0x7f5a28e268f0)
-
-Vtable for QException
-QException::_ZTV10QException: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QException)
-16 (int (*)(...))QException::~QException
-24 (int (*)(...))QException::~QException
-32 (int (*)(...))std::exception::what
-40 (int (*)(...))QException::raise
-48 (int (*)(...))QException::clone
-
-Class QException
- size=8 align=8
- base size=8 base align=8
-QException (0x0x7f5a28e26958) 0 nearly-empty
- vptr=((& QException::_ZTV10QException) + 16u)
- std::exception (0x0x7f5a28e23b40) 0 nearly-empty
- primary-for QException (0x0x7f5a28e26958)
-
-Vtable for QUnhandledException
-QUnhandledException::_ZTV19QUnhandledException: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QUnhandledException)
-16 (int (*)(...))QUnhandledException::~QUnhandledException
-24 (int (*)(...))QUnhandledException::~QUnhandledException
-32 (int (*)(...))std::exception::what
-40 (int (*)(...))QUnhandledException::raise
-48 (int (*)(...))QUnhandledException::clone
-
-Class QUnhandledException
- size=8 align=8
- base size=8 base align=8
-QUnhandledException (0x0x7f5a28e269c0) 0 nearly-empty
- vptr=((& QUnhandledException::_ZTV19QUnhandledException) + 16u)
- QException (0x0x7f5a28e26a28) 0 nearly-empty
- primary-for QUnhandledException (0x0x7f5a28e269c0)
- std::exception (0x0x7f5a28e23ba0) 0 nearly-empty
- primary-for QException (0x0x7f5a28e26a28)
-
-Class QtPrivate::ExceptionHolder
- size=8 align=8
- base size=8 base align=8
-QtPrivate::ExceptionHolder (0x0x7f5a28e23c00) 0
-
-Class QtPrivate::ExceptionStore
- size=8 align=8
- base size=8 base align=8
-QtPrivate::ExceptionStore (0x0x7f5a28e23cc0) 0
-
-Vtable for QFactoryInterface
-QFactoryInterface::_ZTV17QFactoryInterface: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QFactoryInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QFactoryInterface
- size=8 align=8
- base size=8 base align=8
-QFactoryInterface (0x0x7f5a28e23d20) 0 nearly-empty
- vptr=((& QFactoryInterface::_ZTV17QFactoryInterface) + 16u)
-
-Class QFileSelector::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileSelector::QPrivateSignal (0x0x7f5a28e23e40) 0 empty
-
-Vtable for QFileSelector
-QFileSelector::_ZTV13QFileSelector: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QFileSelector)
-16 (int (*)(...))QFileSelector::metaObject
-24 (int (*)(...))QFileSelector::qt_metacast
-32 (int (*)(...))QFileSelector::qt_metacall
-40 (int (*)(...))QFileSelector::~QFileSelector
-48 (int (*)(...))QFileSelector::~QFileSelector
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QFileSelector
- size=16 align=8
- base size=16 base align=8
-QFileSelector (0x0x7f5a28e26a90) 0
- vptr=((& QFileSelector::_ZTV13QFileSelector) + 16u)
- QObject (0x0x7f5a28e23de0) 0
- primary-for QFileSelector (0x0x7f5a28e26a90)
-
-Class QFileSystemWatcher::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileSystemWatcher::QPrivateSignal (0x0x7f5a28e23f00) 0 empty
-
-Vtable for QFileSystemWatcher
-QFileSystemWatcher::_ZTV18QFileSystemWatcher: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QFileSystemWatcher)
-16 (int (*)(...))QFileSystemWatcher::metaObject
-24 (int (*)(...))QFileSystemWatcher::qt_metacast
-32 (int (*)(...))QFileSystemWatcher::qt_metacall
-40 (int (*)(...))QFileSystemWatcher::~QFileSystemWatcher
-48 (int (*)(...))QFileSystemWatcher::~QFileSystemWatcher
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QFileSystemWatcher
- size=16 align=8
- base size=16 base align=8
-QFileSystemWatcher (0x0x7f5a28e26af8) 0
- vptr=((& QFileSystemWatcher::_ZTV18QFileSystemWatcher) + 16u)
- QObject (0x0x7f5a28e23ea0) 0
- primary-for QFileSystemWatcher (0x0x7f5a28e26af8)
-
-Class QFinalState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFinalState::QPrivateSignal (0x0x7f5a28ad8000) 0 empty
-
-Vtable for QFinalState
-QFinalState::_ZTV11QFinalState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFinalState)
-16 (int (*)(...))QFinalState::metaObject
-24 (int (*)(...))QFinalState::qt_metacast
-32 (int (*)(...))QFinalState::qt_metacall
-40 (int (*)(...))QFinalState::~QFinalState
-48 (int (*)(...))QFinalState::~QFinalState
-56 (int (*)(...))QFinalState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFinalState::onEntry
-120 (int (*)(...))QFinalState::onExit
-
-Class QFinalState
- size=16 align=8
- base size=16 base align=8
-QFinalState (0x0x7f5a28e26b60) 0
- vptr=((& QFinalState::_ZTV11QFinalState) + 16u)
- QAbstractState (0x0x7f5a28e26bc8) 0
- primary-for QFinalState (0x0x7f5a28e26b60)
- QObject (0x0x7f5a28e23f60) 0
- primary-for QAbstractState (0x0x7f5a28e26bc8)
-
-Vtable for QRunnable
-QRunnable::_ZTV9QRunnable: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QRunnable)
-16 (int (*)(...))__cxa_pure_virtual
-24 0u
-32 0u
-
-Class QRunnable
- size=16 align=8
- base size=12 base align=8
-QRunnable (0x0x7f5a28ad8060) 0
- vptr=((& QRunnable::_ZTV9QRunnable) + 16u)
-
-Class QBasicMutex
- size=8 align=8
- base size=8 base align=8
-QBasicMutex (0x0x7f5a28ad80c0) 0
-
-Class QMutex
- size=8 align=8
- base size=8 base align=8
-QMutex (0x0x7f5a28e26d00) 0
- QBasicMutex (0x0x7f5a28ad82a0) 0
-
-Class QMutexLocker
- size=8 align=8
- base size=8 base align=8
-QMutexLocker (0x0x7f5a28ad8300) 0
-
-Class QtPrivate::ResultItem
- size=16 align=8
- base size=16 base align=8
-QtPrivate::ResultItem (0x0x7f5a28ad8360) 0
-
-Class QtPrivate::ResultIteratorBase
- size=16 align=8
- base size=12 base align=8
-QtPrivate::ResultIteratorBase (0x0x7f5a28ad83c0) 0
-
-Vtable for QtPrivate::ResultStoreBase
-QtPrivate::ResultStoreBase::_ZTVN9QtPrivate15ResultStoreBaseE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9QtPrivate15ResultStoreBaseE)
-16 (int (*)(...))QtPrivate::ResultStoreBase::~ResultStoreBase
-24 (int (*)(...))QtPrivate::ResultStoreBase::~ResultStoreBase
-
-Class QtPrivate::ResultStoreBase
- size=48 align=8
- base size=44 base align=8
-QtPrivate::ResultStoreBase (0x0x7f5a28ad84e0) 0
- vptr=((& QtPrivate::ResultStoreBase::_ZTVN9QtPrivate15ResultStoreBaseE) + 16u)
-
-Vtable for QFutureInterfaceBase
-QFutureInterfaceBase::_ZTV20QFutureInterfaceBase: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QFutureInterfaceBase)
-16 (int (*)(...))QFutureInterfaceBase::~QFutureInterfaceBase
-24 (int (*)(...))QFutureInterfaceBase::~QFutureInterfaceBase
-
-Class QFutureInterfaceBase
- size=16 align=8
- base size=16 base align=8
-QFutureInterfaceBase (0x0x7f5a28ad8d20) 0
- vptr=((& QFutureInterfaceBase::_ZTV20QFutureInterfaceBase) + 16u)
-
-Class QFutureWatcherBase::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFutureWatcherBase::QPrivateSignal (0x0x7f5a28c54540) 0 empty
-
-Vtable for QFutureWatcherBase
-QFutureWatcherBase::_ZTV18QFutureWatcherBase: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QFutureWatcherBase)
-16 (int (*)(...))QFutureWatcherBase::metaObject
-24 (int (*)(...))QFutureWatcherBase::qt_metacast
-32 (int (*)(...))QFutureWatcherBase::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QFutureWatcherBase::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QFutureWatcherBase::connectNotify
-104 (int (*)(...))QFutureWatcherBase::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QFutureWatcherBase
- size=16 align=8
- base size=16 base align=8
-QFutureWatcherBase (0x0x7f5a28bcee38) 0
- vptr=((& QFutureWatcherBase::_ZTV18QFutureWatcherBase) + 16u)
- QObject (0x0x7f5a28c544e0) 0
- primary-for QFutureWatcherBase (0x0x7f5a28bcee38)
-
-Class QHistoryState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QHistoryState::QPrivateSignal (0x0x7f5a28c54b40) 0 empty
-
-Vtable for QHistoryState
-QHistoryState::_ZTV13QHistoryState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QHistoryState)
-16 (int (*)(...))QHistoryState::metaObject
-24 (int (*)(...))QHistoryState::qt_metacast
-32 (int (*)(...))QHistoryState::qt_metacall
-40 (int (*)(...))QHistoryState::~QHistoryState
-48 (int (*)(...))QHistoryState::~QHistoryState
-56 (int (*)(...))QHistoryState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QHistoryState::onEntry
-120 (int (*)(...))QHistoryState::onExit
-
-Class QHistoryState
- size=16 align=8
- base size=16 base align=8
-QHistoryState (0x0x7f5a28c98750) 0
- vptr=((& QHistoryState::_ZTV13QHistoryState) + 16u)
- QAbstractState (0x0x7f5a28c987b8) 0
- primary-for QHistoryState (0x0x7f5a28c98750)
- QObject (0x0x7f5a28c54ae0) 0
- primary-for QAbstractState (0x0x7f5a28c987b8)
-
-Class QIdentityProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIdentityProxyModel::QPrivateSignal (0x0x7f5a28c54c00) 0 empty
-
-Vtable for QIdentityProxyModel
-QIdentityProxyModel::_ZTV19QIdentityProxyModel: 53u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QIdentityProxyModel)
-16 (int (*)(...))QIdentityProxyModel::metaObject
-24 (int (*)(...))QIdentityProxyModel::qt_metacast
-32 (int (*)(...))QIdentityProxyModel::qt_metacall
-40 (int (*)(...))QIdentityProxyModel::~QIdentityProxyModel
-48 (int (*)(...))QIdentityProxyModel::~QIdentityProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIdentityProxyModel::index
-120 (int (*)(...))QIdentityProxyModel::parent
-128 (int (*)(...))QIdentityProxyModel::sibling
-136 (int (*)(...))QIdentityProxyModel::rowCount
-144 (int (*)(...))QIdentityProxyModel::columnCount
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QIdentityProxyModel::headerData
-184 (int (*)(...))QAbstractProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QIdentityProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QIdentityProxyModel::insertRows
-264 (int (*)(...))QIdentityProxyModel::insertColumns
-272 (int (*)(...))QIdentityProxyModel::removeRows
-280 (int (*)(...))QIdentityProxyModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QAbstractProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QIdentityProxyModel::match
-352 (int (*)(...))QAbstractProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QIdentityProxyModel::setSourceModel
-392 (int (*)(...))QIdentityProxyModel::mapToSource
-400 (int (*)(...))QIdentityProxyModel::mapFromSource
-408 (int (*)(...))QIdentityProxyModel::mapSelectionToSource
-416 (int (*)(...))QIdentityProxyModel::mapSelectionFromSource
-
-Class QIdentityProxyModel
- size=16 align=8
- base size=16 base align=8
-QIdentityProxyModel (0x0x7f5a28c98820) 0
- vptr=((& QIdentityProxyModel::_ZTV19QIdentityProxyModel) + 16u)
- QAbstractProxyModel (0x0x7f5a28c98888) 0
- primary-for QIdentityProxyModel (0x0x7f5a28c98820)
- QAbstractItemModel (0x0x7f5a28c988f0) 0
- primary-for QAbstractProxyModel (0x0x7f5a28c98888)
- QObject (0x0x7f5a28c54ba0) 0
- primary-for QAbstractItemModel (0x0x7f5a28c988f0)
-
-Class QItemSelectionRange
- size=16 align=8
- base size=16 base align=8
-QItemSelectionRange (0x0x7f5a28c54c60) 0
-
-Class QItemSelectionModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QItemSelectionModel::QPrivateSignal (0x0x7f5a28925360) 0 empty
-
-Vtable for QItemSelectionModel
-QItemSelectionModel::_ZTV19QItemSelectionModel: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QItemSelectionModel)
-16 (int (*)(...))QItemSelectionModel::metaObject
-24 (int (*)(...))QItemSelectionModel::qt_metacast
-32 (int (*)(...))QItemSelectionModel::qt_metacall
-40 (int (*)(...))QItemSelectionModel::~QItemSelectionModel
-48 (int (*)(...))QItemSelectionModel::~QItemSelectionModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QItemSelectionModel::setCurrentIndex
-120 (int (*)(...))QItemSelectionModel::select
-128 (int (*)(...))QItemSelectionModel::select
-136 (int (*)(...))QItemSelectionModel::clear
-144 (int (*)(...))QItemSelectionModel::reset
-152 (int (*)(...))QItemSelectionModel::clearCurrentIndex
-
-Class QItemSelectionModel
- size=16 align=8
- base size=16 base align=8
-QItemSelectionModel (0x0x7f5a28938138) 0
- vptr=((& QItemSelectionModel::_ZTV19QItemSelectionModel) + 16u)
- QObject (0x0x7f5a28925300) 0
- primary-for QItemSelectionModel (0x0x7f5a28938138)
-
-Class QItemSelection
- size=8 align=8
- base size=8 base align=8
-QItemSelection (0x0x7f5a28938340) 0
- QList<QItemSelectionRange> (0x0x7f5a289383a8) 0
- QListSpecialMethods<QItemSelectionRange> (0x0x7f5a28925660) 0 empty
-
-Class QJsonValue
- size=24 align=8
- base size=20 base align=8
-QJsonValue (0x0x7f5a28925b40) 0
-
-Class QJsonValueRef
- size=16 align=8
- base size=12 base align=8
-QJsonValueRef (0x0x7f5a287362a0) 0
-
-Class QJsonValuePtr
- size=24 align=8
- base size=24 base align=8
-QJsonValuePtr (0x0x7f5a287367e0) 0
-
-Class QJsonValueRefPtr
- size=16 align=8
- base size=16 base align=8
-QJsonValueRefPtr (0x0x7f5a28736840) 0
-
-Class QJsonArray::iterator
- size=16 align=8
- base size=12 base align=8
-QJsonArray::iterator (0x0x7f5a28736a20) 0
-
-Class QJsonArray::const_iterator
- size=16 align=8
- base size=12 base align=8
-QJsonArray::const_iterator (0x0x7f5a28736a80) 0
-
-Class QJsonArray
- size=16 align=8
- base size=16 base align=8
-QJsonArray (0x0x7f5a287369c0) 0
-
-Class QJsonParseError
- size=8 align=4
- base size=8 base align=4
-QJsonParseError (0x0x7f5a28846cc0) 0
-
-Class QJsonDocument
- size=8 align=8
- base size=8 base align=8
-QJsonDocument (0x0x7f5a28846d20) 0
-
-Class QJsonObject::iterator
- size=16 align=8
- base size=12 base align=8
-QJsonObject::iterator (0x0x7f5a284c13c0) 0
-
-Class QJsonObject::const_iterator
- size=16 align=8
- base size=12 base align=8
-QJsonObject::const_iterator (0x0x7f5a284c1420) 0
-
-Class QJsonObject
- size=16 align=8
- base size=16 base align=8
-QJsonObject (0x0x7f5a284c1360) 0
-
-Class QLibrary::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLibrary::QPrivateSignal (0x0x7f5a285786c0) 0 empty
-
-Vtable for QLibrary
-QLibrary::_ZTV8QLibrary: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QLibrary)
-16 (int (*)(...))QLibrary::metaObject
-24 (int (*)(...))QLibrary::qt_metacast
-32 (int (*)(...))QLibrary::qt_metacall
-40 (int (*)(...))QLibrary::~QLibrary
-48 (int (*)(...))QLibrary::~QLibrary
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QLibrary
- size=32 align=8
- base size=25 base align=8
-QLibrary (0x0x7f5a285806e8) 0
- vptr=((& QLibrary::_ZTV8QLibrary) + 16u)
- QObject (0x0x7f5a28578660) 0
- primary-for QLibrary (0x0x7f5a285806e8)
-
-Class QVersionNumber::SegmentStorage
- size=8 align=8
- base size=8 base align=8
-QVersionNumber::SegmentStorage (0x0x7f5a28578d80) 0
-
-Class QVersionNumber
- size=8 align=8
- base size=8 base align=8
-QVersionNumber (0x0x7f5a285788a0) 0
-
-Class QLibraryInfo
- size=1 align=1
- base size=0 base align=1
-QLibraryInfo (0x0x7f5a286672a0) 0 empty
-
-Class QPoint
- size=8 align=4
- base size=8 base align=4
-QPoint (0x0x7f5a28667300) 0
-
-Class QPointF
- size=16 align=8
- base size=16 base align=8
-QPointF (0x0x7f5a286675a0) 0
-
-Class QLine
- size=16 align=4
- base size=16 base align=4
-QLine (0x0x7f5a28667ba0) 0
-
-Class QLineF
- size=32 align=8
- base size=32 base align=8
-QLineF (0x0x7f5a2830c540) 0
-
-Class QLinkedListData
- size=32 align=8
- base size=25 base align=8
-QLinkedListData (0x0x7f5a2830cb40) 0
-
-Class QLockFile
- size=8 align=8
- base size=8 base align=8
-QLockFile (0x0x7f5a2830cea0) 0
-
-Class QLoggingCategory::AtomicBools
- size=4 align=1
- base size=4 base align=1
-QLoggingCategory::AtomicBools (0x0x7f5a28448060) 0
-
-Class QLoggingCategory
- size=24 align=8
- base size=24 base align=8
-QLoggingCategory (0x0x7f5a28448000) 0
-
-Class QMargins
- size=16 align=4
- base size=16 base align=4
-QMargins (0x0x7f5a284481e0) 0
-
-Class QMarginsF
- size=32 align=8
- base size=32 base align=8
-QMarginsF (0x0x7f5a28448480) 0
-
-Class QMessageAuthenticationCode
- size=8 align=8
- base size=8 base align=8
-QMessageAuthenticationCode (0x0x7f5a28448ae0) 0
-
-Class QMetaMethod
- size=16 align=8
- base size=12 base align=8
-QMetaMethod (0x0x7f5a28448b40) 0
-
-Class QMetaEnum
- size=16 align=8
- base size=12 base align=8
-QMetaEnum (0x0x7f5a2817f180) 0
-
-Class QMetaProperty
- size=32 align=8
- base size=32 base align=8
-QMetaProperty (0x0x7f5a2817f480) 0
-
-Class QMetaClassInfo
- size=16 align=8
- base size=12 base align=8
-QMetaClassInfo (0x0x7f5a2817f4e0) 0
-
-Class QMimeData::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QMimeData::QPrivateSignal (0x0x7f5a2817f7e0) 0 empty
-
-Vtable for QMimeData
-QMimeData::_ZTV9QMimeData: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QMimeData)
-16 (int (*)(...))QMimeData::metaObject
-24 (int (*)(...))QMimeData::qt_metacast
-32 (int (*)(...))QMimeData::qt_metacall
-40 (int (*)(...))QMimeData::~QMimeData
-48 (int (*)(...))QMimeData::~QMimeData
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QMimeData::hasFormat
-120 (int (*)(...))QMimeData::formats
-128 (int (*)(...))QMimeData::retrieveData
-
-Class QMimeData
- size=16 align=8
- base size=16 base align=8
-QMimeData (0x0x7f5a28176958) 0
- vptr=((& QMimeData::_ZTV9QMimeData) + 16u)
- QObject (0x0x7f5a2817f780) 0
- primary-for QMimeData (0x0x7f5a28176958)
-
-Class QMimeType
- size=8 align=8
- base size=8 base align=8
-QMimeType (0x0x7f5a2817f840) 0
-
-Class QMimeDatabase
- size=8 align=8
- base size=8 base align=8
-QMimeDatabase (0x0x7f5a2817fb40) 0
-
-Class QObjectCleanupHandler::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QObjectCleanupHandler::QPrivateSignal (0x0x7f5a2817fc00) 0 empty
-
-Vtable for QObjectCleanupHandler
-QObjectCleanupHandler::_ZTV21QObjectCleanupHandler: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QObjectCleanupHandler)
-16 (int (*)(...))QObjectCleanupHandler::metaObject
-24 (int (*)(...))QObjectCleanupHandler::qt_metacast
-32 (int (*)(...))QObjectCleanupHandler::qt_metacall
-40 (int (*)(...))QObjectCleanupHandler::~QObjectCleanupHandler
-48 (int (*)(...))QObjectCleanupHandler::~QObjectCleanupHandler
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QObjectCleanupHandler
- size=24 align=8
- base size=24 base align=8
-QObjectCleanupHandler (0x0x7f5a28176b60) 0
- vptr=((& QObjectCleanupHandler::_ZTV21QObjectCleanupHandler) + 16u)
- QObject (0x0x7f5a2817fba0) 0
- primary-for QObjectCleanupHandler (0x0x7f5a28176b60)
-
-Class QOperatingSystemVersion
- size=16 align=4
- base size=16 base align=4
-QOperatingSystemVersion (0x0x7f5a2817fc60) 0
-
-Class QParallelAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QParallelAnimationGroup::QPrivateSignal (0x0x7f5a2820a420) 0 empty
-
-Vtable for QParallelAnimationGroup
-QParallelAnimationGroup::_ZTV23QParallelAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QParallelAnimationGroup)
-16 (int (*)(...))QParallelAnimationGroup::metaObject
-24 (int (*)(...))QParallelAnimationGroup::qt_metacast
-32 (int (*)(...))QParallelAnimationGroup::qt_metacall
-40 (int (*)(...))QParallelAnimationGroup::~QParallelAnimationGroup
-48 (int (*)(...))QParallelAnimationGroup::~QParallelAnimationGroup
-56 (int (*)(...))QParallelAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QParallelAnimationGroup::duration
-120 (int (*)(...))QParallelAnimationGroup::updateCurrentTime
-128 (int (*)(...))QParallelAnimationGroup::updateState
-136 (int (*)(...))QParallelAnimationGroup::updateDirection
-
-Class QParallelAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QParallelAnimationGroup (0x0x7f5a2820e270) 0
- vptr=((& QParallelAnimationGroup::_ZTV23QParallelAnimationGroup) + 16u)
- QAnimationGroup (0x0x7f5a2820e2d8) 0
- primary-for QParallelAnimationGroup (0x0x7f5a2820e270)
- QAbstractAnimation (0x0x7f5a2820e340) 0
- primary-for QAnimationGroup (0x0x7f5a2820e2d8)
- QObject (0x0x7f5a2820a3c0) 0
- primary-for QAbstractAnimation (0x0x7f5a2820e340)
-
-Class QPauseAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPauseAnimation::QPrivateSignal (0x0x7f5a2820a4e0) 0 empty
-
-Vtable for QPauseAnimation
-QPauseAnimation::_ZTV15QPauseAnimation: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QPauseAnimation)
-16 (int (*)(...))QPauseAnimation::metaObject
-24 (int (*)(...))QPauseAnimation::qt_metacast
-32 (int (*)(...))QPauseAnimation::qt_metacall
-40 (int (*)(...))QPauseAnimation::~QPauseAnimation
-48 (int (*)(...))QPauseAnimation::~QPauseAnimation
-56 (int (*)(...))QPauseAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPauseAnimation::duration
-120 (int (*)(...))QPauseAnimation::updateCurrentTime
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QPauseAnimation
- size=16 align=8
- base size=16 base align=8
-QPauseAnimation (0x0x7f5a2820e3a8) 0
- vptr=((& QPauseAnimation::_ZTV15QPauseAnimation) + 16u)
- QAbstractAnimation (0x0x7f5a2820e410) 0
- primary-for QPauseAnimation (0x0x7f5a2820e3a8)
- QObject (0x0x7f5a2820a480) 0
- primary-for QAbstractAnimation (0x0x7f5a2820e410)
-
-Class QStaticPlugin
- size=16 align=8
- base size=16 base align=8
-QStaticPlugin (0x0x7f5a2820a6c0) 0
-
-Class QPluginLoader::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPluginLoader::QPrivateSignal (0x0x7f5a2820a9c0) 0 empty
-
-Vtable for QPluginLoader
-QPluginLoader::_ZTV13QPluginLoader: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QPluginLoader)
-16 (int (*)(...))QPluginLoader::metaObject
-24 (int (*)(...))QPluginLoader::qt_metacast
-32 (int (*)(...))QPluginLoader::qt_metacall
-40 (int (*)(...))QPluginLoader::~QPluginLoader
-48 (int (*)(...))QPluginLoader::~QPluginLoader
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QPluginLoader
- size=32 align=8
- base size=25 base align=8
-QPluginLoader (0x0x7f5a2820e618) 0
- vptr=((& QPluginLoader::_ZTV13QPluginLoader) + 16u)
- QObject (0x0x7f5a2820a960) 0
- primary-for QPluginLoader (0x0x7f5a2820e618)
-
-Class QProcessEnvironment
- size=8 align=8
- base size=8 base align=8
-QProcessEnvironment (0x0x7f5a2820aa20) 0
-
-Class QProcess::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QProcess::QPrivateSignal (0x0x7f5a28294120) 0 empty
-
-Vtable for QProcess
-QProcess::_ZTV8QProcess: 31u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QProcess)
-16 (int (*)(...))QProcess::metaObject
-24 (int (*)(...))QProcess::qt_metacast
-32 (int (*)(...))QProcess::qt_metacall
-40 (int (*)(...))QProcess::~QProcess
-48 (int (*)(...))QProcess::~QProcess
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QProcess::isSequential
-120 (int (*)(...))QProcess::open
-128 (int (*)(...))QProcess::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QProcess::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QProcess::bytesAvailable
-184 (int (*)(...))QProcess::bytesToWrite
-192 (int (*)(...))QProcess::canReadLine
-200 (int (*)(...))QProcess::waitForReadyRead
-208 (int (*)(...))QProcess::waitForBytesWritten
-216 (int (*)(...))QProcess::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QProcess::writeData
-240 (int (*)(...))QProcess::setupChildProcess
-
-Class QProcess
- size=16 align=8
- base size=16 base align=8
-QProcess (0x0x7f5a2820ec98) 0
- vptr=((& QProcess::_ZTV8QProcess) + 16u)
- QIODevice (0x0x7f5a2820ed00) 0
- primary-for QProcess (0x0x7f5a2820ec98)
- QObject (0x0x7f5a282940c0) 0
- primary-for QIODevice (0x0x7f5a2820ed00)
-
-Class QVariantAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QVariantAnimation::QPrivateSignal (0x0x7f5a282941e0) 0 empty
-
-Vtable for QVariantAnimation
-QVariantAnimation::_ZTV17QVariantAnimation: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QVariantAnimation)
-16 (int (*)(...))QVariantAnimation::metaObject
-24 (int (*)(...))QVariantAnimation::qt_metacast
-32 (int (*)(...))QVariantAnimation::qt_metacall
-40 (int (*)(...))QVariantAnimation::~QVariantAnimation
-48 (int (*)(...))QVariantAnimation::~QVariantAnimation
-56 (int (*)(...))QVariantAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QVariantAnimation::duration
-120 (int (*)(...))QVariantAnimation::updateCurrentTime
-128 (int (*)(...))QVariantAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-144 (int (*)(...))QVariantAnimation::updateCurrentValue
-152 (int (*)(...))QVariantAnimation::interpolated
-
-Class QVariantAnimation
- size=16 align=8
- base size=16 base align=8
-QVariantAnimation (0x0x7f5a2820ed68) 0
- vptr=((& QVariantAnimation::_ZTV17QVariantAnimation) + 16u)
- QAbstractAnimation (0x0x7f5a2820edd0) 0
- primary-for QVariantAnimation (0x0x7f5a2820ed68)
- QObject (0x0x7f5a28294180) 0
- primary-for QAbstractAnimation (0x0x7f5a2820edd0)
-
-Class QPropertyAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPropertyAnimation::QPrivateSignal (0x0x7f5a282942a0) 0 empty
-
-Vtable for QPropertyAnimation
-QPropertyAnimation::_ZTV18QPropertyAnimation: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QPropertyAnimation)
-16 (int (*)(...))QPropertyAnimation::metaObject
-24 (int (*)(...))QPropertyAnimation::qt_metacast
-32 (int (*)(...))QPropertyAnimation::qt_metacall
-40 (int (*)(...))QPropertyAnimation::~QPropertyAnimation
-48 (int (*)(...))QPropertyAnimation::~QPropertyAnimation
-56 (int (*)(...))QPropertyAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QVariantAnimation::duration
-120 (int (*)(...))QVariantAnimation::updateCurrentTime
-128 (int (*)(...))QPropertyAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-144 (int (*)(...))QPropertyAnimation::updateCurrentValue
-152 (int (*)(...))QVariantAnimation::interpolated
-
-Class QPropertyAnimation
- size=16 align=8
- base size=16 base align=8
-QPropertyAnimation (0x0x7f5a2820eea0) 0
- vptr=((& QPropertyAnimation::_ZTV18QPropertyAnimation) + 16u)
- QVariantAnimation (0x0x7f5a2820ef08) 0
- primary-for QPropertyAnimation (0x0x7f5a2820eea0)
- QAbstractAnimation (0x0x7f5a2820ef70) 0
- primary-for QVariantAnimation (0x0x7f5a2820ef08)
- QObject (0x0x7f5a28294240) 0
- primary-for QAbstractAnimation (0x0x7f5a2820ef70)
-
-Class QRandomGenerator::Storage
- size=2504 align=8
- base size=2504 base align=8
-QRandomGenerator::Storage (0x0x7f5a282943c0) 0
-
-Class QRandomGenerator
- size=2512 align=8
- base size=2512 base align=8
-QRandomGenerator (0x0x7f5a28294360) 0
-
-Class QRandomGenerator64
- size=2512 align=8
- base size=2512 base align=8
-QRandomGenerator64 (0x0x7f5a27e8c270) 0
- QRandomGenerator (0x0x7f5a27e87360) 0
-
-Class QReadWriteLock
- size=8 align=8
- base size=8 base align=8
-QReadWriteLock (0x0x7f5a27e87420) 0
-
-Class QReadLocker
- size=8 align=8
- base size=8 base align=8
-QReadLocker (0x0x7f5a27e876c0) 0
-
-Class QWriteLocker
- size=8 align=8
- base size=8 base align=8
-QWriteLocker (0x0x7f5a27e87780) 0
-
-Class QSize
- size=8 align=4
- base size=8 base align=4
-QSize (0x0x7f5a27e87840) 0
-
-Class QSizeF
- size=16 align=8
- base size=16 base align=8
-QSizeF (0x0x7f5a27e87ae0) 0
-
-Class QRect
- size=16 align=4
- base size=16 base align=4
-QRect (0x0x7f5a27e87d80) 0
-
-Class QRectF
- size=32 align=8
- base size=32 base align=8
-QRectF (0x0x7f5a27be5060) 0
-
-Class QResource
- size=8 align=8
- base size=8 base align=8
-QResource (0x0x7f5a27be5300) 0
-
-Class QSaveFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSaveFile::QPrivateSignal (0x0x7f5a27be5480) 0 empty
-
-Vtable for QSaveFile
-QSaveFile::_ZTV9QSaveFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSaveFile)
-16 (int (*)(...))QSaveFile::metaObject
-24 (int (*)(...))QSaveFile::qt_metacast
-32 (int (*)(...))QSaveFile::qt_metacall
-40 (int (*)(...))QSaveFile::~QSaveFile
-48 (int (*)(...))QSaveFile::~QSaveFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QSaveFile::open
-128 (int (*)(...))QSaveFile::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFileDevice::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QSaveFile::writeData
-240 (int (*)(...))QSaveFile::fileName
-248 (int (*)(...))QFileDevice::resize
-256 (int (*)(...))QFileDevice::permissions
-264 (int (*)(...))QFileDevice::setPermissions
-
-Class QSaveFile
- size=16 align=8
- base size=16 base align=8
-QSaveFile (0x0x7f5a27e8cdd0) 0
- vptr=((& QSaveFile::_ZTV9QSaveFile) + 16u)
- QFileDevice (0x0x7f5a27e8ce38) 0
- primary-for QSaveFile (0x0x7f5a27e8cdd0)
- QIODevice (0x0x7f5a27e8cea0) 0
- primary-for QFileDevice (0x0x7f5a27e8ce38)
- QObject (0x0x7f5a27be5420) 0
- primary-for QIODevice (0x0x7f5a27e8cea0)
-
-Class QSemaphore
- size=8 align=8
- base size=8 base align=8
-QSemaphore (0x0x7f5a27be55a0) 0
-
-Class QSemaphoreReleaser
- size=16 align=8
- base size=12 base align=8
-QSemaphoreReleaser (0x0x7f5a27be5720) 0
-
-Class QSequentialAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSequentialAnimationGroup::QPrivateSignal (0x0x7f5a27a2cd20) 0 empty
-
-Vtable for QSequentialAnimationGroup
-QSequentialAnimationGroup::_ZTV25QSequentialAnimationGroup: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QSequentialAnimationGroup)
-16 (int (*)(...))QSequentialAnimationGroup::metaObject
-24 (int (*)(...))QSequentialAnimationGroup::qt_metacast
-32 (int (*)(...))QSequentialAnimationGroup::qt_metacall
-40 (int (*)(...))QSequentialAnimationGroup::~QSequentialAnimationGroup
-48 (int (*)(...))QSequentialAnimationGroup::~QSequentialAnimationGroup
-56 (int (*)(...))QSequentialAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSequentialAnimationGroup::duration
-120 (int (*)(...))QSequentialAnimationGroup::updateCurrentTime
-128 (int (*)(...))QSequentialAnimationGroup::updateState
-136 (int (*)(...))QSequentialAnimationGroup::updateDirection
-
-Class QSequentialAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QSequentialAnimationGroup (0x0x7f5a27a41750) 0
- vptr=((& QSequentialAnimationGroup::_ZTV25QSequentialAnimationGroup) + 16u)
- QAnimationGroup (0x0x7f5a27a417b8) 0
- primary-for QSequentialAnimationGroup (0x0x7f5a27a41750)
- QAbstractAnimation (0x0x7f5a27a41820) 0
- primary-for QAnimationGroup (0x0x7f5a27a417b8)
- QObject (0x0x7f5a27a2ccc0) 0
- primary-for QAbstractAnimation (0x0x7f5a27a41820)
-
-Class QSettings::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSettings::QPrivateSignal (0x0x7f5a27a2cde0) 0 empty
-
-Vtable for QSettings
-QSettings::_ZTV9QSettings: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSettings)
-16 (int (*)(...))QSettings::metaObject
-24 (int (*)(...))QSettings::qt_metacast
-32 (int (*)(...))QSettings::qt_metacall
-40 (int (*)(...))QSettings::~QSettings
-48 (int (*)(...))QSettings::~QSettings
-56 (int (*)(...))QSettings::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSettings
- size=16 align=8
- base size=16 base align=8
-QSettings (0x0x7f5a27a41888) 0
- vptr=((& QSettings::_ZTV9QSettings) + 16u)
- QObject (0x0x7f5a27a2cd80) 0
- primary-for QSettings (0x0x7f5a27a41888)
-
-Class QSharedMemory::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSharedMemory::QPrivateSignal (0x0x7f5a27a2cea0) 0 empty
-
-Vtable for QSharedMemory
-QSharedMemory::_ZTV13QSharedMemory: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSharedMemory)
-16 (int (*)(...))QSharedMemory::metaObject
-24 (int (*)(...))QSharedMemory::qt_metacast
-32 (int (*)(...))QSharedMemory::qt_metacall
-40 (int (*)(...))QSharedMemory::~QSharedMemory
-48 (int (*)(...))QSharedMemory::~QSharedMemory
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSharedMemory
- size=16 align=8
- base size=16 base align=8
-QSharedMemory (0x0x7f5a27a418f0) 0
- vptr=((& QSharedMemory::_ZTV13QSharedMemory) + 16u)
- QObject (0x0x7f5a27a2ce40) 0
- primary-for QSharedMemory (0x0x7f5a27a418f0)
-
-Class QSignalMapper::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSignalMapper::QPrivateSignal (0x0x7f5a27a2cf60) 0 empty
-
-Vtable for QSignalMapper
-QSignalMapper::_ZTV13QSignalMapper: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSignalMapper)
-16 (int (*)(...))QSignalMapper::metaObject
-24 (int (*)(...))QSignalMapper::qt_metacast
-32 (int (*)(...))QSignalMapper::qt_metacall
-40 (int (*)(...))QSignalMapper::~QSignalMapper
-48 (int (*)(...))QSignalMapper::~QSignalMapper
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSignalMapper
- size=16 align=8
- base size=16 base align=8
-QSignalMapper (0x0x7f5a27a41958) 0
- vptr=((& QSignalMapper::_ZTV13QSignalMapper) + 16u)
- QObject (0x0x7f5a27a2cf00) 0
- primary-for QSignalMapper (0x0x7f5a27a41958)
-
-Class QSignalTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSignalTransition::QPrivateSignal (0x0x7f5a27aa7060) 0 empty
-
-Vtable for QSignalTransition
-QSignalTransition::_ZTV17QSignalTransition: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSignalTransition)
-16 (int (*)(...))QSignalTransition::metaObject
-24 (int (*)(...))QSignalTransition::qt_metacast
-32 (int (*)(...))QSignalTransition::qt_metacall
-40 (int (*)(...))QSignalTransition::~QSignalTransition
-48 (int (*)(...))QSignalTransition::~QSignalTransition
-56 (int (*)(...))QSignalTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSignalTransition::eventTest
-120 (int (*)(...))QSignalTransition::onTransition
-
-Class QSignalTransition
- size=16 align=8
- base size=16 base align=8
-QSignalTransition (0x0x7f5a27a419c0) 0
- vptr=((& QSignalTransition::_ZTV17QSignalTransition) + 16u)
- QAbstractTransition (0x0x7f5a27a41a28) 0
- primary-for QSignalTransition (0x0x7f5a27a419c0)
- QObject (0x0x7f5a27aa7000) 0
- primary-for QAbstractTransition (0x0x7f5a27a41a28)
-
-Class QSocketNotifier::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSocketNotifier::QPrivateSignal (0x0x7f5a27aa7120) 0 empty
-
-Vtable for QSocketNotifier
-QSocketNotifier::_ZTV15QSocketNotifier: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSocketNotifier)
-16 (int (*)(...))QSocketNotifier::metaObject
-24 (int (*)(...))QSocketNotifier::qt_metacast
-32 (int (*)(...))QSocketNotifier::qt_metacall
-40 (int (*)(...))QSocketNotifier::~QSocketNotifier
-48 (int (*)(...))QSocketNotifier::~QSocketNotifier
-56 (int (*)(...))QSocketNotifier::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSocketNotifier
- size=16 align=8
- base size=16 base align=8
-QSocketNotifier (0x0x7f5a27a41a90) 0
- vptr=((& QSocketNotifier::_ZTV15QSocketNotifier) + 16u)
- QObject (0x0x7f5a27aa70c0) 0
- primary-for QSocketNotifier (0x0x7f5a27a41a90)
-
-Class QSortFilterProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSortFilterProxyModel::QPrivateSignal (0x0x7f5a27aa71e0) 0 empty
-
-Vtable for QSortFilterProxyModel
-QSortFilterProxyModel::_ZTV21QSortFilterProxyModel: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QSortFilterProxyModel)
-16 (int (*)(...))QSortFilterProxyModel::metaObject
-24 (int (*)(...))QSortFilterProxyModel::qt_metacast
-32 (int (*)(...))QSortFilterProxyModel::qt_metacall
-40 (int (*)(...))QSortFilterProxyModel::~QSortFilterProxyModel
-48 (int (*)(...))QSortFilterProxyModel::~QSortFilterProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSortFilterProxyModel::index
-120 (int (*)(...))QSortFilterProxyModel::parent
-128 (int (*)(...))QSortFilterProxyModel::sibling
-136 (int (*)(...))QSortFilterProxyModel::rowCount
-144 (int (*)(...))QSortFilterProxyModel::columnCount
-152 (int (*)(...))QSortFilterProxyModel::hasChildren
-160 (int (*)(...))QSortFilterProxyModel::data
-168 (int (*)(...))QSortFilterProxyModel::setData
-176 (int (*)(...))QSortFilterProxyModel::headerData
-184 (int (*)(...))QSortFilterProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QSortFilterProxyModel::mimeTypes
-216 (int (*)(...))QSortFilterProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QSortFilterProxyModel::dropMimeData
-240 (int (*)(...))QSortFilterProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QSortFilterProxyModel::insertRows
-264 (int (*)(...))QSortFilterProxyModel::insertColumns
-272 (int (*)(...))QSortFilterProxyModel::removeRows
-280 (int (*)(...))QSortFilterProxyModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QSortFilterProxyModel::fetchMore
-312 (int (*)(...))QSortFilterProxyModel::canFetchMore
-320 (int (*)(...))QSortFilterProxyModel::flags
-328 (int (*)(...))QSortFilterProxyModel::sort
-336 (int (*)(...))QSortFilterProxyModel::buddy
-344 (int (*)(...))QSortFilterProxyModel::match
-352 (int (*)(...))QSortFilterProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QSortFilterProxyModel::setSourceModel
-392 (int (*)(...))QSortFilterProxyModel::mapToSource
-400 (int (*)(...))QSortFilterProxyModel::mapFromSource
-408 (int (*)(...))QSortFilterProxyModel::mapSelectionToSource
-416 (int (*)(...))QSortFilterProxyModel::mapSelectionFromSource
-424 (int (*)(...))QSortFilterProxyModel::filterAcceptsRow
-432 (int (*)(...))QSortFilterProxyModel::filterAcceptsColumn
-440 (int (*)(...))QSortFilterProxyModel::lessThan
-
-Class QSortFilterProxyModel
- size=16 align=8
- base size=16 base align=8
-QSortFilterProxyModel (0x0x7f5a27a41af8) 0
- vptr=((& QSortFilterProxyModel::_ZTV21QSortFilterProxyModel) + 16u)
- QAbstractProxyModel (0x0x7f5a27a41b60) 0
- primary-for QSortFilterProxyModel (0x0x7f5a27a41af8)
- QAbstractItemModel (0x0x7f5a27a41bc8) 0
- primary-for QAbstractProxyModel (0x0x7f5a27a41b60)
- QObject (0x0x7f5a27aa7180) 0
- primary-for QAbstractItemModel (0x0x7f5a27a41bc8)
-
-Class QStandardPaths
- size=1 align=1
- base size=0 base align=1
-QStandardPaths (0x0x7f5a27aa72a0) 0 empty
-
-Class QState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QState::QPrivateSignal (0x0x7f5a27aa74e0) 0 empty
-
-Vtable for QState
-QState::_ZTV6QState: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QState)
-16 (int (*)(...))QState::metaObject
-24 (int (*)(...))QState::qt_metacast
-32 (int (*)(...))QState::qt_metacall
-40 (int (*)(...))QState::~QState
-48 (int (*)(...))QState::~QState
-56 (int (*)(...))QState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QState::onEntry
-120 (int (*)(...))QState::onExit
-
-Class QState
- size=16 align=8
- base size=16 base align=8
-QState (0x0x7f5a27a41d68) 0
- vptr=((& QState::_ZTV6QState) + 16u)
- QAbstractState (0x0x7f5a27a41dd0) 0
- primary-for QState (0x0x7f5a27a41d68)
- QObject (0x0x7f5a27aa7480) 0
- primary-for QAbstractState (0x0x7f5a27a41dd0)
-
-Class QStateMachine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStateMachine::QPrivateSignal (0x0x7f5a27aa7600) 0 empty
-
-Vtable for QStateMachine::SignalEvent
-QStateMachine::SignalEvent::_ZTVN13QStateMachine11SignalEventE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QStateMachine11SignalEventE)
-16 (int (*)(...))QStateMachine::SignalEvent::~SignalEvent
-24 (int (*)(...))QStateMachine::SignalEvent::~SignalEvent
-
-Class QStateMachine::SignalEvent
- size=48 align=8
- base size=48 base align=8
-QStateMachine::SignalEvent (0x0x7f5a27a41f70) 0
- vptr=((& QStateMachine::SignalEvent::_ZTVN13QStateMachine11SignalEventE) + 16u)
- QEvent (0x0x7f5a27aa7660) 0
- primary-for QStateMachine::SignalEvent (0x0x7f5a27a41f70)
-
-Vtable for QStateMachine::WrappedEvent
-QStateMachine::WrappedEvent::_ZTVN13QStateMachine12WrappedEventE: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QStateMachine12WrappedEventE)
-16 (int (*)(...))QStateMachine::WrappedEvent::~WrappedEvent
-24 (int (*)(...))QStateMachine::WrappedEvent::~WrappedEvent
-
-Class QStateMachine::WrappedEvent
- size=40 align=8
- base size=40 base align=8
-QStateMachine::WrappedEvent (0x0x7f5a27b57000) 0
- vptr=((& QStateMachine::WrappedEvent::_ZTVN13QStateMachine12WrappedEventE) + 16u)
- QEvent (0x0x7f5a27aa76c0) 0
- primary-for QStateMachine::WrappedEvent (0x0x7f5a27b57000)
-
-Vtable for QStateMachine
-QStateMachine::_ZTV13QStateMachine: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QStateMachine)
-16 (int (*)(...))QStateMachine::metaObject
-24 (int (*)(...))QStateMachine::qt_metacast
-32 (int (*)(...))QStateMachine::qt_metacall
-40 (int (*)(...))QStateMachine::~QStateMachine
-48 (int (*)(...))QStateMachine::~QStateMachine
-56 (int (*)(...))QStateMachine::event
-64 (int (*)(...))QStateMachine::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QStateMachine::onEntry
-120 (int (*)(...))QStateMachine::onExit
-128 (int (*)(...))QStateMachine::beginSelectTransitions
-136 (int (*)(...))QStateMachine::endSelectTransitions
-144 (int (*)(...))QStateMachine::beginMicrostep
-152 (int (*)(...))QStateMachine::endMicrostep
-
-Class QStateMachine
- size=16 align=8
- base size=16 base align=8
-QStateMachine (0x0x7f5a27a41e38) 0
- vptr=((& QStateMachine::_ZTV13QStateMachine) + 16u)
- QState (0x0x7f5a27a41ea0) 0
- primary-for QStateMachine (0x0x7f5a27a41e38)
- QAbstractState (0x0x7f5a27a41f08) 0
- primary-for QState (0x0x7f5a27a41ea0)
- QObject (0x0x7f5a27aa75a0) 0
- primary-for QAbstractState (0x0x7f5a27a41f08)
-
-Class QStorageInfo
- size=8 align=8
- base size=8 base align=8
-QStorageInfo (0x0x7f5a27aa7720) 0
-
-Class QAbstractConcatenable
- size=1 align=1
- base size=0 base align=1
-QAbstractConcatenable (0x0x7f5a277ad660) 0 empty
-
-Class QStringListModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStringListModel::QPrivateSignal (0x0x7f5a27834a20) 0 empty
-
-Vtable for QStringListModel
-QStringListModel::_ZTV16QStringListModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QStringListModel)
-16 (int (*)(...))QStringListModel::metaObject
-24 (int (*)(...))QStringListModel::qt_metacast
-32 (int (*)(...))QStringListModel::qt_metacall
-40 (int (*)(...))QStringListModel::~QStringListModel
-48 (int (*)(...))QStringListModel::~QStringListModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractListModel::index
-120 (int (*)(...))QAbstractListModel::parent
-128 (int (*)(...))QStringListModel::sibling
-136 (int (*)(...))QStringListModel::rowCount
-144 (int (*)(...))QAbstractListModel::columnCount
-152 (int (*)(...))QAbstractListModel::hasChildren
-160 (int (*)(...))QStringListModel::data
-168 (int (*)(...))QStringListModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractListModel::dropMimeData
-240 (int (*)(...))QStringListModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QStringListModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QStringListModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QStringListModel::flags
-328 (int (*)(...))QStringListModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QStringListModel
- size=24 align=8
- base size=24 base align=8
-QStringListModel (0x0x7f5a27864000) 0
- vptr=((& QStringListModel::_ZTV16QStringListModel) + 16u)
- QAbstractListModel (0x0x7f5a27864068) 0
- primary-for QStringListModel (0x0x7f5a27864000)
- QAbstractItemModel (0x0x7f5a278640d0) 0
- primary-for QAbstractListModel (0x0x7f5a27864068)
- QObject (0x0x7f5a278349c0) 0
- primary-for QAbstractItemModel (0x0x7f5a278640d0)
-
-Class QSystemSemaphore
- size=8 align=8
- base size=8 base align=8
-QSystemSemaphore (0x0x7f5a27834a80) 0
-
-Class QTemporaryDir
- size=8 align=8
- base size=8 base align=8
-QTemporaryDir (0x0x7f5a27834b40) 0
-
-Class QTemporaryFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTemporaryFile::QPrivateSignal (0x0x7f5a27834c60) 0 empty
-
-Vtable for QTemporaryFile
-QTemporaryFile::_ZTV14QTemporaryFile: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QTemporaryFile)
-16 (int (*)(...))QTemporaryFile::metaObject
-24 (int (*)(...))QTemporaryFile::qt_metacast
-32 (int (*)(...))QTemporaryFile::qt_metacall
-40 (int (*)(...))QTemporaryFile::~QTemporaryFile
-48 (int (*)(...))QTemporaryFile::~QTemporaryFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QTemporaryFile::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFile::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QTemporaryFile::fileName
-248 (int (*)(...))QFile::resize
-256 (int (*)(...))QFile::permissions
-264 (int (*)(...))QFile::setPermissions
-
-Class QTemporaryFile
- size=16 align=8
- base size=16 base align=8
-QTemporaryFile (0x0x7f5a27864138) 0
- vptr=((& QTemporaryFile::_ZTV14QTemporaryFile) + 16u)
- QFile (0x0x7f5a278641a0) 0
- primary-for QTemporaryFile (0x0x7f5a27864138)
- QFileDevice (0x0x7f5a27864208) 0
- primary-for QFile (0x0x7f5a278641a0)
- QIODevice (0x0x7f5a27864270) 0
- primary-for QFileDevice (0x0x7f5a27864208)
- QObject (0x0x7f5a27834c00) 0
- primary-for QIODevice (0x0x7f5a27864270)
-
-Class QTextBoundaryFinder
- size=48 align=8
- base size=48 base align=8
-QTextBoundaryFinder (0x0x7f5a27834cc0) 0
-
-Class QTextCodec::ConverterState
- size=32 align=8
- base size=32 base align=8
-QTextCodec::ConverterState (0x0x7f5a27834f00) 0
-
-Vtable for QTextCodec
-QTextCodec::_ZTV10QTextCodec: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextCodec)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))QTextCodec::aliases
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 0u
-64 0u
-
-Class QTextCodec
- size=8 align=8
- base size=8 base align=8
-QTextCodec (0x0x7f5a27834ea0) 0 nearly-empty
- vptr=((& QTextCodec::_ZTV10QTextCodec) + 16u)
-
-Class QTextEncoder
- size=40 align=8
- base size=40 base align=8
-QTextEncoder (0x0x7f5a278e6120) 0
-
-Class QTextDecoder
- size=40 align=8
- base size=40 base align=8
-QTextDecoder (0x0x7f5a278e6180) 0
-
-Class std::__mutex_base
- size=40 align=8
- base size=40 base align=8
-std::__mutex_base (0x0x7f5a278e61e0) 0
-
-Class std::__recursive_mutex_base
- size=40 align=8
- base size=40 base align=8
-std::__recursive_mutex_base (0x0x7f5a278e6240) 0
-
-Class std::mutex
- size=40 align=8
- base size=40 base align=8
-std::mutex (0x0x7f5a27864478) 0
- std::__mutex_base (0x0x7f5a278e62a0) 0
-
-Class std::recursive_mutex
- size=40 align=8
- base size=40 base align=8
-std::recursive_mutex (0x0x7f5a278644e0) 0
- std::__recursive_mutex_base (0x0x7f5a278e6300) 0
-
-Class std::timed_mutex
- size=40 align=8
- base size=40 base align=8
-std::timed_mutex (0x0x7f5a27950070) 0
- std::__mutex_base (0x0x7f5a278e6420) 0
- std::__timed_mutex_impl<std::timed_mutex> (0x0x7f5a278e6480) 0 empty
-
-Class std::recursive_timed_mutex
- size=40 align=8
- base size=40 base align=8
-std::recursive_timed_mutex (0x0x7f5a27950a10) 0
- std::__recursive_mutex_base (0x0x7f5a278e6540) 0
- std::__timed_mutex_impl<std::recursive_timed_mutex> (0x0x7f5a278e65a0) 0 empty
-
-Class std::defer_lock_t
- size=1 align=1
- base size=0 base align=1
-std::defer_lock_t (0x0x7f5a278e6600) 0 empty
-
-Class std::try_to_lock_t
- size=1 align=1
- base size=0 base align=1
-std::try_to_lock_t (0x0x7f5a278e6660) 0 empty
-
-Class std::adopt_lock_t
- size=1 align=1
- base size=0 base align=1
-std::adopt_lock_t (0x0x7f5a278e66c0) 0 empty
-
-Class std::once_flag
- size=4 align=4
- base size=4 base align=4
-std::once_flag (0x0x7f5a278e6900) 0
-
-Vtable for __gnu_cxx::__concurrence_lock_error
-__gnu_cxx::__concurrence_lock_error::_ZTVN9__gnu_cxx24__concurrence_lock_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx24__concurrence_lock_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error
-24 (int (*)(...))__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error
-32 (int (*)(...))__gnu_cxx::__concurrence_lock_error::what
-
-Class __gnu_cxx::__concurrence_lock_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_lock_error (0x0x7f5a27864618) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_lock_error::_ZTVN9__gnu_cxx24__concurrence_lock_errorE) + 16u)
- std::exception (0x0x7f5a278e69c0) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_lock_error (0x0x7f5a27864618)
-
-Vtable for __gnu_cxx::__concurrence_unlock_error
-__gnu_cxx::__concurrence_unlock_error::_ZTVN9__gnu_cxx26__concurrence_unlock_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx26__concurrence_unlock_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error
-24 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error
-32 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::what
-
-Class __gnu_cxx::__concurrence_unlock_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_unlock_error (0x0x7f5a27864680) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_unlock_error::_ZTVN9__gnu_cxx26__concurrence_unlock_errorE) + 16u)
- std::exception (0x0x7f5a278e6a80) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_unlock_error (0x0x7f5a27864680)
-
-Vtable for __gnu_cxx::__concurrence_broadcast_error
-__gnu_cxx::__concurrence_broadcast_error::_ZTVN9__gnu_cxx29__concurrence_broadcast_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx29__concurrence_broadcast_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error
-24 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error
-32 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::what
-
-Class __gnu_cxx::__concurrence_broadcast_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_broadcast_error (0x0x7f5a278646e8) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_broadcast_error::_ZTVN9__gnu_cxx29__concurrence_broadcast_errorE) + 16u)
- std::exception (0x0x7f5a278e6b40) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_broadcast_error (0x0x7f5a278646e8)
-
-Vtable for __gnu_cxx::__concurrence_wait_error
-__gnu_cxx::__concurrence_wait_error::_ZTVN9__gnu_cxx24__concurrence_wait_errorE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx24__concurrence_wait_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error
-24 (int (*)(...))__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error
-32 (int (*)(...))__gnu_cxx::__concurrence_wait_error::what
-
-Class __gnu_cxx::__concurrence_wait_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_wait_error (0x0x7f5a278647b8) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_wait_error::_ZTVN9__gnu_cxx24__concurrence_wait_errorE) + 16u)
- std::exception (0x0x7f5a278e6c00) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_wait_error (0x0x7f5a278647b8)
-
-Class __gnu_cxx::__mutex
- size=40 align=8
- base size=40 base align=8
-__gnu_cxx::__mutex (0x0x7f5a278e6cc0) 0
-
-Class __gnu_cxx::__recursive_mutex
- size=40 align=8
- base size=40 base align=8
-__gnu_cxx::__recursive_mutex (0x0x7f5a278e6d20) 0
-
-Class __gnu_cxx::__scoped_lock
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__scoped_lock (0x0x7f5a278e6d80) 0
-
-Class __gnu_cxx::__cond
- size=48 align=8
- base size=48 base align=8
-__gnu_cxx::__cond (0x0x7f5a278e6de0) 0
-
-Vtable for std::bad_weak_ptr
-std::bad_weak_ptr::_ZTVSt12bad_weak_ptr: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12bad_weak_ptr)
-16 (int (*)(...))std::bad_weak_ptr::~bad_weak_ptr
-24 (int (*)(...))std::bad_weak_ptr::~bad_weak_ptr
-32 (int (*)(...))std::bad_weak_ptr::what
-
-Class std::bad_weak_ptr
- size=8 align=8
- base size=8 base align=8
-std::bad_weak_ptr (0x0x7f5a27864a90) 0 nearly-empty
- vptr=((& std::bad_weak_ptr::_ZTVSt12bad_weak_ptr) + 16u)
- std::exception (0x0x7f5a27632180) 0 nearly-empty
- primary-for std::bad_weak_ptr (0x0x7f5a27864a90)
-
-Class std::_Sp_make_shared_tag
- size=1 align=1
- base size=0 base align=1
-std::_Sp_make_shared_tag (0x0x7f5a276329c0) 0 empty
-
-Class std::_Sp_locker
- size=2 align=1
- base size=2 base align=1
-std::_Sp_locker (0x0x7f5a273e01e0) 0
-
-Class std::thread::id
- size=8 align=8
- base size=8 base align=8
-std::thread::id (0x0x7f5a273e03c0) 0
-
-Vtable for std::thread::_Impl_base
-std::thread::_Impl_base::_ZTVNSt6thread10_Impl_baseE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt6thread10_Impl_baseE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class std::thread::_Impl_base
- size=24 align=8
- base size=24 base align=8
-std::thread::_Impl_base (0x0x7f5a273e0420) 0
- vptr=((& std::thread::_Impl_base::_ZTVNSt6thread10_Impl_baseE) + 16u)
-
-Class std::thread
- size=8 align=8
- base size=8 base align=8
-std::thread (0x0x7f5a273e0360) 0
-
-Class std::condition_variable
- size=48 align=8
- base size=48 base align=8
-std::condition_variable (0x0x7f5a275a1060) 0
-
-Class std::__at_thread_exit_elt
- size=16 align=8
- base size=16 base align=8
-std::__at_thread_exit_elt (0x0x7f5a275a1120) 0
-
-Class std::_V2::condition_variable_any
- size=64 align=8
- base size=64 base align=8
-std::_V2::condition_variable_any (0x0x7f5a275a1180) 0
-
-Class std::__atomic_futex_unsigned_base
- size=1 align=1
- base size=0 base align=1
-std::__atomic_futex_unsigned_base (0x0x7f5a272537e0) 0 empty
-
-Vtable for std::future_error
-std::future_error::_ZTVSt12future_error: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12future_error)
-16 (int (*)(...))std::future_error::~future_error
-24 (int (*)(...))std::future_error::~future_error
-32 (int (*)(...))std::future_error::what
-
-Class std::future_error
- size=32 align=8
- base size=32 base align=8
-std::future_error (0x0x7f5a27248dd0) 0
- vptr=((& std::future_error::_ZTVSt12future_error) + 16u)
- std::logic_error (0x0x7f5a27248e38) 0
- primary-for std::future_error (0x0x7f5a27248dd0)
- std::exception (0x0x7f5a27253900) 0 nearly-empty
- primary-for std::logic_error (0x0x7f5a27248e38)
-
-Class std::__future_base::_Result_base::_Deleter
- size=1 align=1
- base size=0 base align=1
-std::__future_base::_Result_base::_Deleter (0x0x7f5a27253a20) 0 empty
-
-Vtable for std::__future_base::_Result_base
-std::__future_base::_Result_base::_ZTVNSt13__future_base12_Result_baseE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base12_Result_baseE)
-16 (int (*)(...))__cxa_pure_virtual
-24 0u
-32 0u
-
-Class std::__future_base::_Result_base
- size=16 align=8
- base size=16 base align=8
-std::__future_base::_Result_base (0x0x7f5a272539c0) 0
- vptr=((& std::__future_base::_Result_base::_ZTVNSt13__future_base12_Result_baseE) + 16u)
-
-Class std::__future_base::_State_baseV2::__exception_ptr_tag
- size=1 align=1
- base size=0 base align=1
-std::__future_base::_State_baseV2::__exception_ptr_tag (0x0x7f5a272ebf60) 0 empty
-
-Class std::__future_base::_State_baseV2::_Make_ready
- size=32 align=8
- base size=32 base align=8
-std::__future_base::_State_baseV2::_Make_ready (0x0x7f5a26fd5410) 0
- std::__at_thread_exit_elt (0x0x7f5a26ff9060) 0
-
-Vtable for std::__future_base::_State_baseV2
-std::__future_base::_State_baseV2::_ZTVNSt13__future_base13_State_baseV2E: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base13_State_baseV2E)
-16 (int (*)(...))std::__future_base::_State_baseV2::~_State_baseV2
-24 (int (*)(...))std::__future_base::_State_baseV2::~_State_baseV2
-32 (int (*)(...))std::__future_base::_State_baseV2::_M_complete_async
-40 (int (*)(...))std::__future_base::_State_baseV2::_M_is_deferred_future
-
-Class std::__future_base::_State_baseV2
- size=32 align=8
- base size=28 base align=8
-std::__future_base::_State_baseV2 (0x0x7f5a27253ba0) 0
- vptr=((& std::__future_base::_State_baseV2::_ZTVNSt13__future_base13_State_baseV2E) + 16u)
-
-Class std::__future_base
- size=1 align=1
- base size=0 base align=1
-std::__future_base (0x0x7f5a27253960) 0 empty
-
-Vtable for std::__future_base::_Async_state_commonV2
-std::__future_base::_Async_state_commonV2::_ZTVNSt13__future_base21_Async_state_commonV2E: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base21_Async_state_commonV2E)
-16 (int (*)(...))std::__future_base::_Async_state_commonV2::~_Async_state_commonV2
-24 (int (*)(...))std::__future_base::_Async_state_commonV2::~_Async_state_commonV2
-32 (int (*)(...))std::__future_base::_Async_state_commonV2::_M_complete_async
-40 (int (*)(...))std::__future_base::_State_baseV2::_M_is_deferred_future
-
-Class std::__future_base::_Async_state_commonV2
- size=48 align=8
- base size=44 base align=8
-std::__future_base::_Async_state_commonV2 (0x0x7f5a26d7c000) 0
- vptr=((& std::__future_base::_Async_state_commonV2::_ZTVNSt13__future_base21_Async_state_commonV2E) + 16u)
- std::__future_base::_State_baseV2 (0x0x7f5a26d1bf00) 0
- primary-for std::__future_base::_Async_state_commonV2 (0x0x7f5a26d7c000)
-
-Class QThread::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QThread::QPrivateSignal (0x0x7f5a26d84660) 0 empty
-
-Vtable for QThread
-QThread::_ZTV7QThread: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QThread)
-16 (int (*)(...))QThread::metaObject
-24 (int (*)(...))QThread::qt_metacast
-32 (int (*)(...))QThread::qt_metacall
-40 (int (*)(...))QThread::~QThread
-48 (int (*)(...))QThread::~QThread
-56 (int (*)(...))QThread::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QThread::run
-
-Class QThread
- size=16 align=8
- base size=16 base align=8
-QThread (0x0x7f5a26d7ca90) 0
- vptr=((& QThread::_ZTV7QThread) + 16u)
- QObject (0x0x7f5a26d84600) 0
- primary-for QThread (0x0x7f5a26d7ca90)
-
-Class QThreadPool::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QThreadPool::QPrivateSignal (0x0x7f5a26d84780) 0 empty
-
-Vtable for QThreadPool
-QThreadPool::_ZTV11QThreadPool: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QThreadPool)
-16 (int (*)(...))QThreadPool::metaObject
-24 (int (*)(...))QThreadPool::qt_metacast
-32 (int (*)(...))QThreadPool::qt_metacall
-40 (int (*)(...))QThreadPool::~QThreadPool
-48 (int (*)(...))QThreadPool::~QThreadPool
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QThreadPool
- size=16 align=8
- base size=16 base align=8
-QThreadPool (0x0x7f5a26d7caf8) 0
- vptr=((& QThreadPool::_ZTV11QThreadPool) + 16u)
- QObject (0x0x7f5a26d84720) 0
- primary-for QThreadPool (0x0x7f5a26d7caf8)
-
-Class QThreadStorageData
- size=4 align=4
- base size=4 base align=4
-QThreadStorageData (0x0x7f5a26d847e0) 0
-
-Class QTimeLine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTimeLine::QPrivateSignal (0x0x7f5a26d84900) 0 empty
-
-Vtable for QTimeLine
-QTimeLine::_ZTV9QTimeLine: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QTimeLine)
-16 (int (*)(...))QTimeLine::metaObject
-24 (int (*)(...))QTimeLine::qt_metacast
-32 (int (*)(...))QTimeLine::qt_metacall
-40 (int (*)(...))QTimeLine::~QTimeLine
-48 (int (*)(...))QTimeLine::~QTimeLine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QTimeLine::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTimeLine::valueForTime
-
-Class QTimeLine
- size=16 align=8
- base size=16 base align=8
-QTimeLine (0x0x7f5a26d7cb60) 0
- vptr=((& QTimeLine::_ZTV9QTimeLine) + 16u)
- QObject (0x0x7f5a26d848a0) 0
- primary-for QTimeLine (0x0x7f5a26d7cb60)
-
-Class QTimer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTimer::QPrivateSignal (0x0x7f5a26d849c0) 0 empty
-
-Vtable for QTimer
-QTimer::_ZTV6QTimer: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QTimer)
-16 (int (*)(...))QTimer::metaObject
-24 (int (*)(...))QTimer::qt_metacast
-32 (int (*)(...))QTimer::qt_metacall
-40 (int (*)(...))QTimer::~QTimer
-48 (int (*)(...))QTimer::~QTimer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QTimer::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTimer
- size=32 align=8
- base size=29 base align=8
-QTimer (0x0x7f5a26d7cbc8) 0
- vptr=((& QTimer::_ZTV6QTimer) + 16u)
- QObject (0x0x7f5a26d84960) 0
- primary-for QTimer (0x0x7f5a26d7cbc8)
-
-Class QTimeZone::OffsetData
- size=32 align=8
- base size=28 base align=8
-QTimeZone::OffsetData (0x0x7f5a26a4a120) 0
-
-Class QTimeZone
- size=8 align=8
- base size=8 base align=8
-QTimeZone (0x0x7f5a26a4a0c0) 0
-
-Class QTranslator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTranslator::QPrivateSignal (0x0x7f5a26a4a6c0) 0 empty
-
-Vtable for QTranslator
-QTranslator::_ZTV11QTranslator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTranslator)
-16 (int (*)(...))QTranslator::metaObject
-24 (int (*)(...))QTranslator::qt_metacast
-32 (int (*)(...))QTranslator::qt_metacall
-40 (int (*)(...))QTranslator::~QTranslator
-48 (int (*)(...))QTranslator::~QTranslator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTranslator::translate
-120 (int (*)(...))QTranslator::isEmpty
-
-Class QTranslator
- size=16 align=8
- base size=16 base align=8
-QTranslator (0x0x7f5a26a41750) 0
- vptr=((& QTranslator::_ZTV11QTranslator) + 16u)
- QObject (0x0x7f5a26a4a660) 0
- primary-for QTranslator (0x0x7f5a26a41750)
-
-Class QUrlQuery
- size=8 align=8
- base size=8 base align=8
-QUrlQuery (0x0x7f5a26a4a720) 0
-
-Class QWaitCondition
- size=8 align=8
- base size=8 base align=8
-QWaitCondition (0x0x7f5a26a4ad80) 0
-
-Class QXmlStreamStringRef
- size=16 align=8
- base size=16 base align=8
-QXmlStreamStringRef (0x0x7f5a26a4ade0) 0
-
-Class QXmlStreamAttribute
- size=80 align=8
- base size=73 base align=8
-QXmlStreamAttribute (0x0x7f5a26af70c0) 0
-
-Class QXmlStreamAttributes
- size=8 align=8
- base size=8 base align=8
-QXmlStreamAttributes (0x0x7f5a26b06478) 0
- QVector<QXmlStreamAttribute> (0x0x7f5a26af7480) 0
-
-Class QXmlStreamNamespaceDeclaration
- size=40 align=8
- base size=40 base align=8
-QXmlStreamNamespaceDeclaration (0x0x7f5a26af74e0) 0
-
-Class QXmlStreamNotationDeclaration
- size=56 align=8
- base size=56 base align=8
-QXmlStreamNotationDeclaration (0x0x7f5a26af7780) 0
-
-Class QXmlStreamEntityDeclaration
- size=88 align=8
- base size=88 base align=8
-QXmlStreamEntityDeclaration (0x0x7f5a26af7a20) 0
-
-Vtable for QXmlStreamEntityResolver
-QXmlStreamEntityResolver::_ZTV24QXmlStreamEntityResolver: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QXmlStreamEntityResolver)
-16 (int (*)(...))QXmlStreamEntityResolver::~QXmlStreamEntityResolver
-24 (int (*)(...))QXmlStreamEntityResolver::~QXmlStreamEntityResolver
-32 (int (*)(...))QXmlStreamEntityResolver::resolveEntity
-40 (int (*)(...))QXmlStreamEntityResolver::resolveUndeclaredEntity
-
-Class QXmlStreamEntityResolver
- size=8 align=8
- base size=8 base align=8
-QXmlStreamEntityResolver (0x0x7f5a26af7cc0) 0 nearly-empty
- vptr=((& QXmlStreamEntityResolver::_ZTV24QXmlStreamEntityResolver) + 16u)
-
-Class QXmlStreamReader
- size=8 align=8
- base size=8 base align=8
-QXmlStreamReader (0x0x7f5a26af7d20) 0
-
-Class QXmlStreamWriter
- size=8 align=8
- base size=8 base align=8
-QXmlStreamWriter (0x0x7f5a26802780) 0
-
-Class QRgba64
- size=8 align=8
- base size=8 base align=8
-QRgba64 (0x0x7f5a268028a0) 0
-
-Class QColor
- size=16 align=4
- base size=14 base align=4
-QColor (0x0x7f5a26802b40) 0
-
-Class QRegion::QRegionData
- size=16 align=8
- base size=16 base align=8
-QRegion::QRegionData (0x0x7f5a26926540) 0
-
-Class QRegion
- size=8 align=8
- base size=8 base align=8
-QRegion (0x0x7f5a269264e0) 0
-
-Class QKeySequence
- size=8 align=8
- base size=8 base align=8
-QKeySequence (0x0x7f5a265d78a0) 0
-
-Class QVector2D
- size=8 align=4
- base size=8 base align=4
-QVector2D (0x0x7f5a26688de0) 0
-
-Class QTouchDevice
- size=8 align=8
- base size=8 base align=8
-QTouchDevice (0x0x7f5a266d30c0) 0
-
-Vtable for QInputEvent
-QInputEvent::_ZTV11QInputEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QInputEvent)
-16 (int (*)(...))QInputEvent::~QInputEvent
-24 (int (*)(...))QInputEvent::~QInputEvent
-
-Class QInputEvent
- size=32 align=8
- base size=32 base align=8
-QInputEvent (0x0x7f5a266d1270) 0
- vptr=((& QInputEvent::_ZTV11QInputEvent) + 16u)
- QEvent (0x0x7f5a266d32a0) 0
- primary-for QInputEvent (0x0x7f5a266d1270)
-
-Vtable for QEnterEvent
-QEnterEvent::_ZTV11QEnterEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QEnterEvent)
-16 (int (*)(...))QEnterEvent::~QEnterEvent
-24 (int (*)(...))QEnterEvent::~QEnterEvent
-
-Class QEnterEvent
- size=72 align=8
- base size=72 base align=8
-QEnterEvent (0x0x7f5a266d12d8) 0
- vptr=((& QEnterEvent::_ZTV11QEnterEvent) + 16u)
- QEvent (0x0x7f5a266d3300) 0
- primary-for QEnterEvent (0x0x7f5a266d12d8)
-
-Vtable for QMouseEvent
-QMouseEvent::_ZTV11QMouseEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QMouseEvent)
-16 (int (*)(...))QMouseEvent::~QMouseEvent
-24 (int (*)(...))QMouseEvent::~QMouseEvent
-
-Class QMouseEvent
- size=104 align=8
- base size=100 base align=8
-QMouseEvent (0x0x7f5a266d1340) 0
- vptr=((& QMouseEvent::_ZTV11QMouseEvent) + 16u)
- QInputEvent (0x0x7f5a266d13a8) 0
- primary-for QMouseEvent (0x0x7f5a266d1340)
- QEvent (0x0x7f5a266d3360) 0
- primary-for QInputEvent (0x0x7f5a266d13a8)
-
-Vtable for QHoverEvent
-QHoverEvent::_ZTV11QHoverEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QHoverEvent)
-16 (int (*)(...))QHoverEvent::~QHoverEvent
-24 (int (*)(...))QHoverEvent::~QHoverEvent
-
-Class QHoverEvent
- size=64 align=8
- base size=64 base align=8
-QHoverEvent (0x0x7f5a266d1410) 0
- vptr=((& QHoverEvent::_ZTV11QHoverEvent) + 16u)
- QInputEvent (0x0x7f5a266d1478) 0
- primary-for QHoverEvent (0x0x7f5a266d1410)
- QEvent (0x0x7f5a266d33c0) 0
- primary-for QInputEvent (0x0x7f5a266d1478)
-
-Vtable for QWheelEvent
-QWheelEvent::_ZTV11QWheelEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QWheelEvent)
-16 (int (*)(...))QWheelEvent::~QWheelEvent
-24 (int (*)(...))QWheelEvent::~QWheelEvent
-
-Class QWheelEvent
- size=96 align=8
- base size=96 base align=8
-QWheelEvent (0x0x7f5a266d14e0) 0
- vptr=((& QWheelEvent::_ZTV11QWheelEvent) + 16u)
- QInputEvent (0x0x7f5a266d1548) 0
- primary-for QWheelEvent (0x0x7f5a266d14e0)
- QEvent (0x0x7f5a266d3420) 0
- primary-for QInputEvent (0x0x7f5a266d1548)
-
-Vtable for QTabletEvent
-QTabletEvent::_ZTV12QTabletEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QTabletEvent)
-16 (int (*)(...))QTabletEvent::~QTabletEvent
-24 (int (*)(...))QTabletEvent::~QTabletEvent
-
-Class QTabletEvent
- size=128 align=8
- base size=128 base align=8
-QTabletEvent (0x0x7f5a266d15b0) 0
- vptr=((& QTabletEvent::_ZTV12QTabletEvent) + 16u)
- QInputEvent (0x0x7f5a266d1618) 0
- primary-for QTabletEvent (0x0x7f5a266d15b0)
- QEvent (0x0x7f5a266d3480) 0
- primary-for QInputEvent (0x0x7f5a266d1618)
-
-Vtable for QNativeGestureEvent
-QNativeGestureEvent::_ZTV19QNativeGestureEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QNativeGestureEvent)
-16 (int (*)(...))QNativeGestureEvent::~QNativeGestureEvent
-24 (int (*)(...))QNativeGestureEvent::~QNativeGestureEvent
-
-Class QNativeGestureEvent
- size=112 align=8
- base size=112 base align=8
-QNativeGestureEvent (0x0x7f5a266d1680) 0
- vptr=((& QNativeGestureEvent::_ZTV19QNativeGestureEvent) + 16u)
- QInputEvent (0x0x7f5a266d16e8) 0
- primary-for QNativeGestureEvent (0x0x7f5a266d1680)
- QEvent (0x0x7f5a266d34e0) 0
- primary-for QInputEvent (0x0x7f5a266d16e8)
-
-Vtable for QKeyEvent
-QKeyEvent::_ZTV9QKeyEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QKeyEvent)
-16 (int (*)(...))QKeyEvent::~QKeyEvent
-24 (int (*)(...))QKeyEvent::~QKeyEvent
-
-Class QKeyEvent
- size=64 align=8
- base size=59 base align=8
-QKeyEvent (0x0x7f5a266d1750) 0
- vptr=((& QKeyEvent::_ZTV9QKeyEvent) + 16u)
- QInputEvent (0x0x7f5a266d17b8) 0
- primary-for QKeyEvent (0x0x7f5a266d1750)
- QEvent (0x0x7f5a266d3540) 0
- primary-for QInputEvent (0x0x7f5a266d17b8)
-
-Vtable for QFocusEvent
-QFocusEvent::_ZTV11QFocusEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFocusEvent)
-16 (int (*)(...))QFocusEvent::~QFocusEvent
-24 (int (*)(...))QFocusEvent::~QFocusEvent
-
-Class QFocusEvent
- size=24 align=8
- base size=24 base align=8
-QFocusEvent (0x0x7f5a266d1820) 0
- vptr=((& QFocusEvent::_ZTV11QFocusEvent) + 16u)
- QEvent (0x0x7f5a266d35a0) 0
- primary-for QFocusEvent (0x0x7f5a266d1820)
-
-Vtable for QPaintEvent
-QPaintEvent::_ZTV11QPaintEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QPaintEvent)
-16 (int (*)(...))QPaintEvent::~QPaintEvent
-24 (int (*)(...))QPaintEvent::~QPaintEvent
-
-Class QPaintEvent
- size=56 align=8
- base size=49 base align=8
-QPaintEvent (0x0x7f5a266d1888) 0
- vptr=((& QPaintEvent::_ZTV11QPaintEvent) + 16u)
- QEvent (0x0x7f5a266d3600) 0
- primary-for QPaintEvent (0x0x7f5a266d1888)
-
-Vtable for QMoveEvent
-QMoveEvent::_ZTV10QMoveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QMoveEvent)
-16 (int (*)(...))QMoveEvent::~QMoveEvent
-24 (int (*)(...))QMoveEvent::~QMoveEvent
-
-Class QMoveEvent
- size=40 align=8
- base size=36 base align=8
-QMoveEvent (0x0x7f5a266d18f0) 0
- vptr=((& QMoveEvent::_ZTV10QMoveEvent) + 16u)
- QEvent (0x0x7f5a266d3660) 0
- primary-for QMoveEvent (0x0x7f5a266d18f0)
-
-Vtable for QExposeEvent
-QExposeEvent::_ZTV12QExposeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QExposeEvent)
-16 (int (*)(...))QExposeEvent::~QExposeEvent
-24 (int (*)(...))QExposeEvent::~QExposeEvent
-
-Class QExposeEvent
- size=32 align=8
- base size=32 base align=8
-QExposeEvent (0x0x7f5a266d1958) 0
- vptr=((& QExposeEvent::_ZTV12QExposeEvent) + 16u)
- QEvent (0x0x7f5a266d36c0) 0
- primary-for QExposeEvent (0x0x7f5a266d1958)
-
-Vtable for QPlatformSurfaceEvent
-QPlatformSurfaceEvent::_ZTV21QPlatformSurfaceEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QPlatformSurfaceEvent)
-16 (int (*)(...))QPlatformSurfaceEvent::~QPlatformSurfaceEvent
-24 (int (*)(...))QPlatformSurfaceEvent::~QPlatformSurfaceEvent
-
-Class QPlatformSurfaceEvent
- size=24 align=8
- base size=24 base align=8
-QPlatformSurfaceEvent (0x0x7f5a266d19c0) 0
- vptr=((& QPlatformSurfaceEvent::_ZTV21QPlatformSurfaceEvent) + 16u)
- QEvent (0x0x7f5a266d3720) 0
- primary-for QPlatformSurfaceEvent (0x0x7f5a266d19c0)
-
-Vtable for QResizeEvent
-QResizeEvent::_ZTV12QResizeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QResizeEvent)
-16 (int (*)(...))QResizeEvent::~QResizeEvent
-24 (int (*)(...))QResizeEvent::~QResizeEvent
-
-Class QResizeEvent
- size=40 align=8
- base size=36 base align=8
-QResizeEvent (0x0x7f5a266d1a28) 0
- vptr=((& QResizeEvent::_ZTV12QResizeEvent) + 16u)
- QEvent (0x0x7f5a266d3780) 0
- primary-for QResizeEvent (0x0x7f5a266d1a28)
-
-Vtable for QCloseEvent
-QCloseEvent::_ZTV11QCloseEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QCloseEvent)
-16 (int (*)(...))QCloseEvent::~QCloseEvent
-24 (int (*)(...))QCloseEvent::~QCloseEvent
-
-Class QCloseEvent
- size=24 align=8
- base size=20 base align=8
-QCloseEvent (0x0x7f5a266d1a90) 0
- vptr=((& QCloseEvent::_ZTV11QCloseEvent) + 16u)
- QEvent (0x0x7f5a266d37e0) 0
- primary-for QCloseEvent (0x0x7f5a266d1a90)
-
-Vtable for QIconDragEvent
-QIconDragEvent::_ZTV14QIconDragEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QIconDragEvent)
-16 (int (*)(...))QIconDragEvent::~QIconDragEvent
-24 (int (*)(...))QIconDragEvent::~QIconDragEvent
-
-Class QIconDragEvent
- size=24 align=8
- base size=20 base align=8
-QIconDragEvent (0x0x7f5a266d1af8) 0
- vptr=((& QIconDragEvent::_ZTV14QIconDragEvent) + 16u)
- QEvent (0x0x7f5a266d3840) 0
- primary-for QIconDragEvent (0x0x7f5a266d1af8)
-
-Vtable for QShowEvent
-QShowEvent::_ZTV10QShowEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QShowEvent)
-16 (int (*)(...))QShowEvent::~QShowEvent
-24 (int (*)(...))QShowEvent::~QShowEvent
-
-Class QShowEvent
- size=24 align=8
- base size=20 base align=8
-QShowEvent (0x0x7f5a266d1b60) 0
- vptr=((& QShowEvent::_ZTV10QShowEvent) + 16u)
- QEvent (0x0x7f5a266d38a0) 0
- primary-for QShowEvent (0x0x7f5a266d1b60)
-
-Vtable for QHideEvent
-QHideEvent::_ZTV10QHideEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QHideEvent)
-16 (int (*)(...))QHideEvent::~QHideEvent
-24 (int (*)(...))QHideEvent::~QHideEvent
-
-Class QHideEvent
- size=24 align=8
- base size=20 base align=8
-QHideEvent (0x0x7f5a266d1bc8) 0
- vptr=((& QHideEvent::_ZTV10QHideEvent) + 16u)
- QEvent (0x0x7f5a266d3900) 0
- primary-for QHideEvent (0x0x7f5a266d1bc8)
-
-Vtable for QContextMenuEvent
-QContextMenuEvent::_ZTV17QContextMenuEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QContextMenuEvent)
-16 (int (*)(...))QContextMenuEvent::~QContextMenuEvent
-24 (int (*)(...))QContextMenuEvent::~QContextMenuEvent
-
-Class QContextMenuEvent
- size=56 align=8
- base size=49 base align=8
-QContextMenuEvent (0x0x7f5a266d1c30) 0
- vptr=((& QContextMenuEvent::_ZTV17QContextMenuEvent) + 16u)
- QInputEvent (0x0x7f5a266d1c98) 0
- primary-for QContextMenuEvent (0x0x7f5a266d1c30)
- QEvent (0x0x7f5a266d3960) 0
- primary-for QInputEvent (0x0x7f5a266d1c98)
-
-Class QInputMethodEvent::Attribute
- size=32 align=8
- base size=32 base align=8
-QInputMethodEvent::Attribute (0x0x7f5a266d3a20) 0
-
-Vtable for QInputMethodEvent
-QInputMethodEvent::_ZTV17QInputMethodEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QInputMethodEvent)
-16 (int (*)(...))QInputMethodEvent::~QInputMethodEvent
-24 (int (*)(...))QInputMethodEvent::~QInputMethodEvent
-
-Class QInputMethodEvent
- size=56 align=8
- base size=56 base align=8
-QInputMethodEvent (0x0x7f5a266d1d00) 0
- vptr=((& QInputMethodEvent::_ZTV17QInputMethodEvent) + 16u)
- QEvent (0x0x7f5a266d39c0) 0
- primary-for QInputMethodEvent (0x0x7f5a266d1d00)
-
-Class QInputMethodQueryEvent::QueryPair
- size=24 align=8
- base size=24 base align=8
-QInputMethodQueryEvent::QueryPair (0x0x7f5a266d3ea0) 0
-
-Vtable for QInputMethodQueryEvent
-QInputMethodQueryEvent::_ZTV22QInputMethodQueryEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QInputMethodQueryEvent)
-16 (int (*)(...))QInputMethodQueryEvent::~QInputMethodQueryEvent
-24 (int (*)(...))QInputMethodQueryEvent::~QInputMethodQueryEvent
-
-Class QInputMethodQueryEvent
- size=32 align=8
- base size=32 base align=8
-QInputMethodQueryEvent (0x0x7f5a26447068) 0
- vptr=((& QInputMethodQueryEvent::_ZTV22QInputMethodQueryEvent) + 16u)
- QEvent (0x0x7f5a266d3e40) 0
- primary-for QInputMethodQueryEvent (0x0x7f5a26447068)
-
-Vtable for QDropEvent
-QDropEvent::_ZTV10QDropEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QDropEvent)
-16 (int (*)(...))QDropEvent::~QDropEvent
-24 (int (*)(...))QDropEvent::~QDropEvent
-
-Class QDropEvent
- size=72 align=8
- base size=72 base align=8
-QDropEvent (0x0x7f5a26447340) 0
- vptr=((& QDropEvent::_ZTV10QDropEvent) + 16u)
- QEvent (0x0x7f5a2647e240) 0
- primary-for QDropEvent (0x0x7f5a26447340)
-
-Vtable for QDragMoveEvent
-QDragMoveEvent::_ZTV14QDragMoveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QDragMoveEvent)
-16 (int (*)(...))QDragMoveEvent::~QDragMoveEvent
-24 (int (*)(...))QDragMoveEvent::~QDragMoveEvent
-
-Class QDragMoveEvent
- size=88 align=8
- base size=88 base align=8
-QDragMoveEvent (0x0x7f5a264473a8) 0
- vptr=((& QDragMoveEvent::_ZTV14QDragMoveEvent) + 16u)
- QDropEvent (0x0x7f5a26447410) 0
- primary-for QDragMoveEvent (0x0x7f5a264473a8)
- QEvent (0x0x7f5a2647e2a0) 0
- primary-for QDropEvent (0x0x7f5a26447410)
-
-Vtable for QDragEnterEvent
-QDragEnterEvent::_ZTV15QDragEnterEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QDragEnterEvent)
-16 (int (*)(...))QDragEnterEvent::~QDragEnterEvent
-24 (int (*)(...))QDragEnterEvent::~QDragEnterEvent
-
-Class QDragEnterEvent
- size=88 align=8
- base size=88 base align=8
-QDragEnterEvent (0x0x7f5a26447478) 0
- vptr=((& QDragEnterEvent::_ZTV15QDragEnterEvent) + 16u)
- QDragMoveEvent (0x0x7f5a264474e0) 0
- primary-for QDragEnterEvent (0x0x7f5a26447478)
- QDropEvent (0x0x7f5a26447548) 0
- primary-for QDragMoveEvent (0x0x7f5a264474e0)
- QEvent (0x0x7f5a2647e300) 0
- primary-for QDropEvent (0x0x7f5a26447548)
-
-Vtable for QDragLeaveEvent
-QDragLeaveEvent::_ZTV15QDragLeaveEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QDragLeaveEvent)
-16 (int (*)(...))QDragLeaveEvent::~QDragLeaveEvent
-24 (int (*)(...))QDragLeaveEvent::~QDragLeaveEvent
-
-Class QDragLeaveEvent
- size=24 align=8
- base size=20 base align=8
-QDragLeaveEvent (0x0x7f5a264475b0) 0
- vptr=((& QDragLeaveEvent::_ZTV15QDragLeaveEvent) + 16u)
- QEvent (0x0x7f5a2647e360) 0
- primary-for QDragLeaveEvent (0x0x7f5a264475b0)
-
-Vtable for QHelpEvent
-QHelpEvent::_ZTV10QHelpEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QHelpEvent)
-16 (int (*)(...))QHelpEvent::~QHelpEvent
-24 (int (*)(...))QHelpEvent::~QHelpEvent
-
-Class QHelpEvent
- size=40 align=8
- base size=36 base align=8
-QHelpEvent (0x0x7f5a26447618) 0
- vptr=((& QHelpEvent::_ZTV10QHelpEvent) + 16u)
- QEvent (0x0x7f5a2647e3c0) 0
- primary-for QHelpEvent (0x0x7f5a26447618)
-
-Vtable for QStatusTipEvent
-QStatusTipEvent::_ZTV15QStatusTipEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QStatusTipEvent)
-16 (int (*)(...))QStatusTipEvent::~QStatusTipEvent
-24 (int (*)(...))QStatusTipEvent::~QStatusTipEvent
-
-Class QStatusTipEvent
- size=32 align=8
- base size=32 base align=8
-QStatusTipEvent (0x0x7f5a26447680) 0
- vptr=((& QStatusTipEvent::_ZTV15QStatusTipEvent) + 16u)
- QEvent (0x0x7f5a2647e420) 0
- primary-for QStatusTipEvent (0x0x7f5a26447680)
-
-Vtable for QWhatsThisClickedEvent
-QWhatsThisClickedEvent::_ZTV22QWhatsThisClickedEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QWhatsThisClickedEvent)
-16 (int (*)(...))QWhatsThisClickedEvent::~QWhatsThisClickedEvent
-24 (int (*)(...))QWhatsThisClickedEvent::~QWhatsThisClickedEvent
-
-Class QWhatsThisClickedEvent
- size=32 align=8
- base size=32 base align=8
-QWhatsThisClickedEvent (0x0x7f5a264476e8) 0
- vptr=((& QWhatsThisClickedEvent::_ZTV22QWhatsThisClickedEvent) + 16u)
- QEvent (0x0x7f5a2647e480) 0
- primary-for QWhatsThisClickedEvent (0x0x7f5a264476e8)
-
-Vtable for QActionEvent
-QActionEvent::_ZTV12QActionEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QActionEvent)
-16 (int (*)(...))QActionEvent::~QActionEvent
-24 (int (*)(...))QActionEvent::~QActionEvent
-
-Class QActionEvent
- size=40 align=8
- base size=40 base align=8
-QActionEvent (0x0x7f5a26447750) 0
- vptr=((& QActionEvent::_ZTV12QActionEvent) + 16u)
- QEvent (0x0x7f5a2647e4e0) 0
- primary-for QActionEvent (0x0x7f5a26447750)
-
-Vtable for QFileOpenEvent
-QFileOpenEvent::_ZTV14QFileOpenEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QFileOpenEvent)
-16 (int (*)(...))QFileOpenEvent::~QFileOpenEvent
-24 (int (*)(...))QFileOpenEvent::~QFileOpenEvent
-
-Class QFileOpenEvent
- size=40 align=8
- base size=40 base align=8
-QFileOpenEvent (0x0x7f5a264477b8) 0
- vptr=((& QFileOpenEvent::_ZTV14QFileOpenEvent) + 16u)
- QEvent (0x0x7f5a2647e540) 0
- primary-for QFileOpenEvent (0x0x7f5a264477b8)
-
-Vtable for QToolBarChangeEvent
-QToolBarChangeEvent::_ZTV19QToolBarChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QToolBarChangeEvent)
-16 (int (*)(...))QToolBarChangeEvent::~QToolBarChangeEvent
-24 (int (*)(...))QToolBarChangeEvent::~QToolBarChangeEvent
-
-Class QToolBarChangeEvent
- size=24 align=8
- base size=21 base align=8
-QToolBarChangeEvent (0x0x7f5a26447820) 0
- vptr=((& QToolBarChangeEvent::_ZTV19QToolBarChangeEvent) + 16u)
- QEvent (0x0x7f5a2647e5a0) 0
- primary-for QToolBarChangeEvent (0x0x7f5a26447820)
-
-Vtable for QShortcutEvent
-QShortcutEvent::_ZTV14QShortcutEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QShortcutEvent)
-16 (int (*)(...))QShortcutEvent::~QShortcutEvent
-24 (int (*)(...))QShortcutEvent::~QShortcutEvent
-
-Class QShortcutEvent
- size=40 align=8
- base size=40 base align=8
-QShortcutEvent (0x0x7f5a26447888) 0
- vptr=((& QShortcutEvent::_ZTV14QShortcutEvent) + 16u)
- QEvent (0x0x7f5a2647e600) 0
- primary-for QShortcutEvent (0x0x7f5a26447888)
-
-Vtable for QWindowStateChangeEvent
-QWindowStateChangeEvent::_ZTV23QWindowStateChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QWindowStateChangeEvent)
-16 (int (*)(...))QWindowStateChangeEvent::~QWindowStateChangeEvent
-24 (int (*)(...))QWindowStateChangeEvent::~QWindowStateChangeEvent
-
-Class QWindowStateChangeEvent
- size=32 align=8
- base size=25 base align=8
-QWindowStateChangeEvent (0x0x7f5a264478f0) 0
- vptr=((& QWindowStateChangeEvent::_ZTV23QWindowStateChangeEvent) + 16u)
- QEvent (0x0x7f5a2647e660) 0
- primary-for QWindowStateChangeEvent (0x0x7f5a264478f0)
-
-Class QPointingDeviceUniqueId
- size=8 align=8
- base size=8 base align=8
-QPointingDeviceUniqueId (0x0x7f5a2647e6c0) 0
-
-Class QTouchEvent::TouchPoint
- size=8 align=8
- base size=8 base align=8
-QTouchEvent::TouchPoint (0x0x7f5a2647ed80) 0
-
-Vtable for QTouchEvent
-QTouchEvent::_ZTV11QTouchEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTouchEvent)
-16 (int (*)(...))QTouchEvent::~QTouchEvent
-24 (int (*)(...))QTouchEvent::~QTouchEvent
-
-Class QTouchEvent
- size=72 align=8
- base size=72 base align=8
-QTouchEvent (0x0x7f5a26447f70) 0
- vptr=((& QTouchEvent::_ZTV11QTouchEvent) + 16u)
- QInputEvent (0x0x7f5a264ed000) 0
- primary-for QTouchEvent (0x0x7f5a26447f70)
- QEvent (0x0x7f5a2647ed20) 0
- primary-for QInputEvent (0x0x7f5a264ed000)
-
-Vtable for QScrollPrepareEvent
-QScrollPrepareEvent::_ZTV19QScrollPrepareEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QScrollPrepareEvent)
-16 (int (*)(...))QScrollPrepareEvent::~QScrollPrepareEvent
-24 (int (*)(...))QScrollPrepareEvent::~QScrollPrepareEvent
-
-Class QScrollPrepareEvent
- size=112 align=8
- base size=112 base align=8
-QScrollPrepareEvent (0x0x7f5a261ac820) 0
- vptr=((& QScrollPrepareEvent::_ZTV19QScrollPrepareEvent) + 16u)
- QEvent (0x0x7f5a261b0420) 0
- primary-for QScrollPrepareEvent (0x0x7f5a261ac820)
-
-Vtable for QScrollEvent
-QScrollEvent::_ZTV12QScrollEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QScrollEvent)
-16 (int (*)(...))QScrollEvent::~QScrollEvent
-24 (int (*)(...))QScrollEvent::~QScrollEvent
-
-Class QScrollEvent
- size=64 align=8
- base size=60 base align=8
-QScrollEvent (0x0x7f5a261ac888) 0
- vptr=((& QScrollEvent::_ZTV12QScrollEvent) + 16u)
- QEvent (0x0x7f5a261b0480) 0
- primary-for QScrollEvent (0x0x7f5a261ac888)
-
-Vtable for QScreenOrientationChangeEvent
-QScreenOrientationChangeEvent::_ZTV29QScreenOrientationChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QScreenOrientationChangeEvent)
-16 (int (*)(...))QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent
-24 (int (*)(...))QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent
-
-Class QScreenOrientationChangeEvent
- size=40 align=8
- base size=36 base align=8
-QScreenOrientationChangeEvent (0x0x7f5a261ac8f0) 0
- vptr=((& QScreenOrientationChangeEvent::_ZTV29QScreenOrientationChangeEvent) + 16u)
- QEvent (0x0x7f5a261b04e0) 0
- primary-for QScreenOrientationChangeEvent (0x0x7f5a261ac8f0)
-
-Vtable for QApplicationStateChangeEvent
-QApplicationStateChangeEvent::_ZTV28QApplicationStateChangeEvent: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QApplicationStateChangeEvent)
-16 (int (*)(...))QApplicationStateChangeEvent::~QApplicationStateChangeEvent
-24 (int (*)(...))QApplicationStateChangeEvent::~QApplicationStateChangeEvent
-
-Class QApplicationStateChangeEvent
- size=24 align=8
- base size=24 base align=8
-QApplicationStateChangeEvent (0x0x7f5a261ac958) 0
- vptr=((& QApplicationStateChangeEvent::_ZTV28QApplicationStateChangeEvent) + 16u)
- QEvent (0x0x7f5a261b0540) 0
- primary-for QApplicationStateChangeEvent (0x0x7f5a261ac958)
-
-Class QFont
- size=16 align=8
- base size=12 base align=8
-QFont (0x0x7f5a261b05a0) 0
-
-Class QPolygon
- size=8 align=8
- base size=8 base align=8
-QPolygon (0x0x7f5a262646e8) 0
- QVector<QPoint> (0x0x7f5a2626f2a0) 0
-
-Class QPolygonF
- size=8 align=8
- base size=8 base align=8
-QPolygonF (0x0x7f5a26264a90) 0
- QVector<QPointF> (0x0x7f5a2626f720) 0
-
-Class QMatrix
- size=48 align=8
- base size=48 base align=8
-QMatrix (0x0x7f5a2626fae0) 0
-
-Class QPainterPath::Element
- size=24 align=8
- base size=24 base align=8
-QPainterPath::Element (0x0x7f5a2626fde0) 0
-
-Class QPainterPath
- size=8 align=8
- base size=8 base align=8
-QPainterPath (0x0x7f5a2626fd80) 0
-
-Class QPainterPathStroker
- size=8 align=8
- base size=8 base align=8
-QPainterPathStroker (0x0x7f5a25fb77e0) 0
-
-Class QTransform
- size=88 align=8
- base size=88 base align=8
-QTransform (0x0x7f5a25fb7900) 0
-
-Vtable for QPaintDevice
-QPaintDevice::_ZTV12QPaintDevice: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QPaintDevice)
-16 0u
-24 0u
-32 (int (*)(...))QPaintDevice::devType
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPaintDevice
- size=24 align=8
- base size=24 base align=8
-QPaintDevice (0x0x7f5a26055060) 0
- vptr=((& QPaintDevice::_ZTV12QPaintDevice) + 16u)
-
-Class QPixelFormat
- size=8 align=8
- base size=8 base align=8
-QPixelFormat (0x0x7f5a260550c0) 0
-
-Vtable for QImage
-QImage::_ZTV6QImage: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QImage)
-16 (int (*)(...))QImage::~QImage
-24 (int (*)(...))QImage::~QImage
-32 (int (*)(...))QImage::devType
-40 (int (*)(...))QImage::paintEngine
-48 (int (*)(...))QImage::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QImage
- size=32 align=8
- base size=32 base align=8
-QImage (0x0x7f5a26108958) 0
- vptr=((& QImage::_ZTV6QImage) + 16u)
- QPaintDevice (0x0x7f5a26055b40) 0
- primary-for QImage (0x0x7f5a26108958)
-
-Vtable for QPixmap
-QPixmap::_ZTV7QPixmap: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QPixmap)
-16 (int (*)(...))QPixmap::~QPixmap
-24 (int (*)(...))QPixmap::~QPixmap
-32 (int (*)(...))QPixmap::devType
-40 (int (*)(...))QPixmap::paintEngine
-48 (int (*)(...))QPixmap::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPixmap
- size=32 align=8
- base size=32 base align=8
-QPixmap (0x0x7f5a25df04e0) 0
- vptr=((& QPixmap::_ZTV7QPixmap) + 16u)
- QPaintDevice (0x0x7f5a25ddfae0) 0
- primary-for QPixmap (0x0x7f5a25df04e0)
-
-Class QBrush
- size=8 align=8
- base size=8 base align=8
-QBrush (0x0x7f5a25ddfde0) 0
-
-Class QBrushData
- size=112 align=8
- base size=112 base align=8
-QBrushData (0x0x7f5a25e775a0) 0
-
-Class QGradient
- size=64 align=8
- base size=64 base align=8
-QGradient (0x0x7f5a25e77600) 0
-
-Class QLinearGradient
- size=64 align=8
- base size=64 base align=8
-QLinearGradient (0x0x7f5a25df0e38) 0
- QGradient (0x0x7f5a25e778a0) 0
-
-Class QRadialGradient
- size=64 align=8
- base size=64 base align=8
-QRadialGradient (0x0x7f5a25df0ea0) 0
- QGradient (0x0x7f5a25e77900) 0
-
-Class QConicalGradient
- size=64 align=8
- base size=64 base align=8
-QConicalGradient (0x0x7f5a25df0f08) 0
- QGradient (0x0x7f5a25e77960) 0
-
-Class QPen
- size=8 align=8
- base size=8 base align=8
-QPen (0x0x7f5a25e779c0) 0
-
-Class QTextOption::Tab
- size=16 align=8
- base size=14 base align=8
-QTextOption::Tab (0x0x7f5a25f70c00) 0
-
-Class QTextOption
- size=32 align=8
- base size=32 base align=8
-QTextOption (0x0x7f5a25f70ba0) 0
-
-Class QTextLength
- size=16 align=8
- base size=16 base align=8
-QTextLength (0x0x7f5a25ba93c0) 0
-
-Class QTextFormat
- size=16 align=8
- base size=12 base align=8
-QTextFormat (0x0x7f5a25ba9ae0) 0
-
-Class QTextCharFormat
- size=16 align=8
- base size=12 base align=8
-QTextCharFormat (0x0x7f5a25c167b8) 0
- QTextFormat (0x0x7f5a25c59960) 0
-
-Class QTextBlockFormat
- size=16 align=8
- base size=12 base align=8
-QTextBlockFormat (0x0x7f5a25d4a068) 0
- QTextFormat (0x0x7f5a25c59c00) 0
-
-Class QTextListFormat
- size=16 align=8
- base size=12 base align=8
-QTextListFormat (0x0x7f5a25d4a2d8) 0
- QTextFormat (0x0x7f5a25c59ea0) 0
-
-Class QTextImageFormat
- size=16 align=8
- base size=12 base align=8
-QTextImageFormat (0x0x7f5a25d4a4e0) 0
- QTextCharFormat (0x0x7f5a25d4a548) 0
- QTextFormat (0x0x7f5a25d87180) 0
-
-Class QTextFrameFormat
- size=16 align=8
- base size=12 base align=8
-QTextFrameFormat (0x0x7f5a25d4a750) 0
- QTextFormat (0x0x7f5a25d87420) 0
-
-Class QTextTableFormat
- size=16 align=8
- base size=12 base align=8
-QTextTableFormat (0x0x7f5a25d4a958) 0
- QTextFrameFormat (0x0x7f5a25d4a9c0) 0
- QTextFormat (0x0x7f5a25d876c0) 0
-
-Class QTextTableCellFormat
- size=16 align=8
- base size=12 base align=8
-QTextTableCellFormat (0x0x7f5a25d4abc8) 0
- QTextCharFormat (0x0x7f5a25d4ac30) 0
- QTextFormat (0x0x7f5a25d879c0) 0
-
-Class QFontDatabase
- size=8 align=8
- base size=8 base align=8
-QFontDatabase (0x0x7f5a25d87c60) 0
-
-Class QRawFont
- size=8 align=8
- base size=8 base align=8
-QRawFont (0x0x7f5a25d87cc0) 0
-
-Class QGlyphRun
- size=8 align=8
- base size=8 base align=8
-QGlyphRun (0x0x7f5a25a481e0) 0
-
-Class QTextCursor
- size=8 align=8
- base size=8 base align=8
-QTextCursor (0x0x7f5a25a484e0) 0
-
-Class QTextInlineObject
- size=16 align=8
- base size=16 base align=8
-QTextInlineObject (0x0x7f5a25a487e0) 0
-
-Class QTextLayout::FormatRange
- size=24 align=8
- base size=24 base align=8
-QTextLayout::FormatRange (0x0x7f5a25a488a0) 0
-
-Class QTextLayout
- size=8 align=8
- base size=8 base align=8
-QTextLayout (0x0x7f5a25a48840) 0
-
-Class QTextLine
- size=16 align=8
- base size=16 base align=8
-QTextLine (0x0x7f5a25b36300) 0
-
-Vtable for QAbstractUndoItem
-QAbstractUndoItem::_ZTV17QAbstractUndoItem: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAbstractUndoItem)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))__cxa_pure_virtual
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractUndoItem
- size=8 align=8
- base size=8 base align=8
-QAbstractUndoItem (0x0x7f5a25b36360) 0 nearly-empty
- vptr=((& QAbstractUndoItem::_ZTV17QAbstractUndoItem) + 16u)
-
-Class QTextDocument::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextDocument::QPrivateSignal (0x0x7f5a25b36420) 0 empty
-
-Vtable for QTextDocument
-QTextDocument::_ZTV13QTextDocument: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QTextDocument)
-16 (int (*)(...))QTextDocument::metaObject
-24 (int (*)(...))QTextDocument::qt_metacast
-32 (int (*)(...))QTextDocument::qt_metacall
-40 (int (*)(...))QTextDocument::~QTextDocument
-48 (int (*)(...))QTextDocument::~QTextDocument
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextDocument::clear
-120 (int (*)(...))QTextDocument::createObject
-128 (int (*)(...))QTextDocument::loadResource
-
-Class QTextDocument
- size=16 align=8
- base size=16 base align=8
-QTextDocument (0x0x7f5a25a4c478) 0
- vptr=((& QTextDocument::_ZTV13QTextDocument) + 16u)
- QObject (0x0x7f5a25b363c0) 0
- primary-for QTextDocument (0x0x7f5a25a4c478)
-
-Class QPalette::Data
- size=4 align=4
- base size=4 base align=4
-QPalette::Data (0x0x7f5a25b36660) 0
-
-Class QPalette
- size=16 align=8
- base size=12 base align=8
-QPalette (0x0x7f5a25b36600) 0
-
-Class QAbstractTextDocumentLayout::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTextDocumentLayout::QPrivateSignal (0x0x7f5a25854720) 0 empty
-
-Class QAbstractTextDocumentLayout::Selection
- size=24 align=8
- base size=24 base align=8
-QAbstractTextDocumentLayout::Selection (0x0x7f5a25854780) 0
-
-Class QAbstractTextDocumentLayout::PaintContext
- size=64 align=8
- base size=64 base align=8
-QAbstractTextDocumentLayout::PaintContext (0x0x7f5a258547e0) 0
-
-Vtable for QAbstractTextDocumentLayout
-QAbstractTextDocumentLayout::_ZTV27QAbstractTextDocumentLayout: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAbstractTextDocumentLayout)
-16 (int (*)(...))QAbstractTextDocumentLayout::metaObject
-24 (int (*)(...))QAbstractTextDocumentLayout::qt_metacast
-32 (int (*)(...))QAbstractTextDocumentLayout::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractTextDocumentLayout::resizeInlineObject
-176 (int (*)(...))QAbstractTextDocumentLayout::positionInlineObject
-184 (int (*)(...))QAbstractTextDocumentLayout::drawInlineObject
-
-Class QAbstractTextDocumentLayout
- size=16 align=8
- base size=16 base align=8
-QAbstractTextDocumentLayout (0x0x7f5a25851c98) 0
- vptr=((& QAbstractTextDocumentLayout::_ZTV27QAbstractTextDocumentLayout) + 16u)
- QObject (0x0x7f5a258546c0) 0
- primary-for QAbstractTextDocumentLayout (0x0x7f5a25851c98)
-
-Vtable for QTextObjectInterface
-QTextObjectInterface::_ZTV20QTextObjectInterface: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTextObjectInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QTextObjectInterface
- size=8 align=8
- base size=8 base align=8
-QTextObjectInterface (0x0x7f5a25854d80) 0 nearly-empty
- vptr=((& QTextObjectInterface::_ZTV20QTextObjectInterface) + 16u)
-
-Class QAccessible::State
- size=8 align=8
- base size=5 base align=8
-QAccessible::State (0x0x7f5a25854ea0) 0
-
-Vtable for QAccessible::ActivationObserver
-QAccessible::ActivationObserver::_ZTVN11QAccessible18ActivationObserverE: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN11QAccessible18ActivationObserverE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessible::ActivationObserver
- size=8 align=8
- base size=8 base align=8
-QAccessible::ActivationObserver (0x0x7f5a25854f00) 0 nearly-empty
- vptr=((& QAccessible::ActivationObserver::_ZTVN11QAccessible18ActivationObserverE) + 16u)
-
-Class QAccessible
- size=1 align=1
- base size=0 base align=1
-QAccessible (0x0x7f5a25854e40) 0 empty
-
-Vtable for QAccessibleInterface
-QAccessibleInterface::_ZTV20QAccessibleInterface: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QAccessibleInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QAccessibleInterface::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleInterface::focusChild
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleInterface (0x0x7f5a25909120) 0 nearly-empty
- vptr=((& QAccessibleInterface::_ZTV20QAccessibleInterface) + 16u)
-
-Vtable for QAccessibleTextInterface
-QAccessibleTextInterface::_ZTV24QAccessibleTextInterface: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAccessibleTextInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))QAccessibleTextInterface::textBeforeOffset
-104 (int (*)(...))QAccessibleTextInterface::textAfterOffset
-112 (int (*)(...))QAccessibleTextInterface::textAtOffset
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTextInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTextInterface (0x0x7f5a25909180) 0 nearly-empty
- vptr=((& QAccessibleTextInterface::_ZTV24QAccessibleTextInterface) + 16u)
-
-Vtable for QAccessibleEditableTextInterface
-QAccessibleEditableTextInterface::_ZTV32QAccessibleEditableTextInterface: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI32QAccessibleEditableTextInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleEditableTextInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleEditableTextInterface (0x0x7f5a259091e0) 0 nearly-empty
- vptr=((& QAccessibleEditableTextInterface::_ZTV32QAccessibleEditableTextInterface) + 16u)
-
-Vtable for QAccessibleValueInterface
-QAccessibleValueInterface::_ZTV25QAccessibleValueInterface: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleValueInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleValueInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleValueInterface (0x0x7f5a25909240) 0 nearly-empty
- vptr=((& QAccessibleValueInterface::_ZTV25QAccessibleValueInterface) + 16u)
-
-Vtable for QAccessibleTableCellInterface
-QAccessibleTableCellInterface::_ZTV29QAccessibleTableCellInterface: 12u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QAccessibleTableCellInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTableCellInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTableCellInterface (0x0x7f5a259092a0) 0 nearly-empty
- vptr=((& QAccessibleTableCellInterface::_ZTV29QAccessibleTableCellInterface) + 16u)
-
-Vtable for QAccessibleTableInterface
-QAccessibleTableInterface::_ZTV25QAccessibleTableInterface: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleTableInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-184 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTableInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTableInterface (0x0x7f5a25909300) 0 nearly-empty
- vptr=((& QAccessibleTableInterface::_ZTV25QAccessibleTableInterface) + 16u)
-
-Vtable for QAccessibleActionInterface
-QAccessibleActionInterface::_ZTV26QAccessibleActionInterface: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleActionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QAccessibleActionInterface::localizedActionName
-48 (int (*)(...))QAccessibleActionInterface::localizedActionDescription
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleActionInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleActionInterface (0x0x7f5a25909360) 0 nearly-empty
- vptr=((& QAccessibleActionInterface::_ZTV26QAccessibleActionInterface) + 16u)
-
-Vtable for QAccessibleImageInterface
-QAccessibleImageInterface::_ZTV25QAccessibleImageInterface: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleImageInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleImageInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleImageInterface (0x0x7f5a259093c0) 0 nearly-empty
- vptr=((& QAccessibleImageInterface::_ZTV25QAccessibleImageInterface) + 16u)
-
-Vtable for QAccessibleEvent
-QAccessibleEvent::_ZTV16QAccessibleEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QAccessibleEvent)
-16 (int (*)(...))QAccessibleEvent::~QAccessibleEvent
-24 (int (*)(...))QAccessibleEvent::~QAccessibleEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleEvent
- size=32 align=8
- base size=28 base align=8
-QAccessibleEvent (0x0x7f5a25909420) 0
- vptr=((& QAccessibleEvent::_ZTV16QAccessibleEvent) + 16u)
-
-Vtable for QAccessibleStateChangeEvent
-QAccessibleStateChangeEvent::_ZTV27QAccessibleStateChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAccessibleStateChangeEvent)
-16 (int (*)(...))QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent
-24 (int (*)(...))QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleStateChangeEvent
- size=40 align=8
- base size=40 base align=8
-QAccessibleStateChangeEvent (0x0x7f5a258d56e8) 0
- vptr=((& QAccessibleStateChangeEvent::_ZTV27QAccessibleStateChangeEvent) + 16u)
- QAccessibleEvent (0x0x7f5a25909960) 0
- primary-for QAccessibleStateChangeEvent (0x0x7f5a258d56e8)
-
-Vtable for QAccessibleTextCursorEvent
-QAccessibleTextCursorEvent::_ZTV26QAccessibleTextCursorEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextCursorEvent)
-16 (int (*)(...))QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent
-24 (int (*)(...))QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextCursorEvent
- size=32 align=8
- base size=32 base align=8
-QAccessibleTextCursorEvent (0x0x7f5a258d5750) 0
- vptr=((& QAccessibleTextCursorEvent::_ZTV26QAccessibleTextCursorEvent) + 16u)
- QAccessibleEvent (0x0x7f5a259099c0) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f5a258d5750)
-
-Vtable for QAccessibleTextSelectionEvent
-QAccessibleTextSelectionEvent::_ZTV29QAccessibleTextSelectionEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QAccessibleTextSelectionEvent)
-16 (int (*)(...))QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent
-24 (int (*)(...))QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextSelectionEvent
- size=40 align=8
- base size=40 base align=8
-QAccessibleTextSelectionEvent (0x0x7f5a258d57b8) 0
- vptr=((& QAccessibleTextSelectionEvent::_ZTV29QAccessibleTextSelectionEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7f5a258d5820) 0
- primary-for QAccessibleTextSelectionEvent (0x0x7f5a258d57b8)
- QAccessibleEvent (0x0x7f5a25909a20) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f5a258d5820)
-
-Vtable for QAccessibleTextInsertEvent
-QAccessibleTextInsertEvent::_ZTV26QAccessibleTextInsertEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextInsertEvent)
-16 (int (*)(...))QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent
-24 (int (*)(...))QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextInsertEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTextInsertEvent (0x0x7f5a258d5888) 0
- vptr=((& QAccessibleTextInsertEvent::_ZTV26QAccessibleTextInsertEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7f5a258d58f0) 0
- primary-for QAccessibleTextInsertEvent (0x0x7f5a258d5888)
- QAccessibleEvent (0x0x7f5a25909a80) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f5a258d58f0)
-
-Vtable for QAccessibleTextRemoveEvent
-QAccessibleTextRemoveEvent::_ZTV26QAccessibleTextRemoveEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextRemoveEvent)
-16 (int (*)(...))QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent
-24 (int (*)(...))QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextRemoveEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTextRemoveEvent (0x0x7f5a258d5958) 0
- vptr=((& QAccessibleTextRemoveEvent::_ZTV26QAccessibleTextRemoveEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7f5a258d59c0) 0
- primary-for QAccessibleTextRemoveEvent (0x0x7f5a258d5958)
- QAccessibleEvent (0x0x7f5a25909ae0) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f5a258d59c0)
-
-Vtable for QAccessibleTextUpdateEvent
-QAccessibleTextUpdateEvent::_ZTV26QAccessibleTextUpdateEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextUpdateEvent)
-16 (int (*)(...))QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent
-24 (int (*)(...))QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextUpdateEvent
- size=56 align=8
- base size=56 base align=8
-QAccessibleTextUpdateEvent (0x0x7f5a258d5a28) 0
- vptr=((& QAccessibleTextUpdateEvent::_ZTV26QAccessibleTextUpdateEvent) + 16u)
- QAccessibleTextCursorEvent (0x0x7f5a258d5a90) 0
- primary-for QAccessibleTextUpdateEvent (0x0x7f5a258d5a28)
- QAccessibleEvent (0x0x7f5a25909b40) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f5a258d5a90)
-
-Vtable for QAccessibleValueChangeEvent
-QAccessibleValueChangeEvent::_ZTV27QAccessibleValueChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAccessibleValueChangeEvent)
-16 (int (*)(...))QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent
-24 (int (*)(...))QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleValueChangeEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleValueChangeEvent (0x0x7f5a258d5af8) 0
- vptr=((& QAccessibleValueChangeEvent::_ZTV27QAccessibleValueChangeEvent) + 16u)
- QAccessibleEvent (0x0x7f5a25909ba0) 0
- primary-for QAccessibleValueChangeEvent (0x0x7f5a258d5af8)
-
-Vtable for QAccessibleTableModelChangeEvent
-QAccessibleTableModelChangeEvent::_ZTV32QAccessibleTableModelChangeEvent: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI32QAccessibleTableModelChangeEvent)
-16 (int (*)(...))QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent
-24 (int (*)(...))QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTableModelChangeEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTableModelChangeEvent (0x0x7f5a258d5b60) 0
- vptr=((& QAccessibleTableModelChangeEvent::_ZTV32QAccessibleTableModelChangeEvent) + 16u)
- QAccessibleEvent (0x0x7f5a25909c00) 0
- primary-for QAccessibleTableModelChangeEvent (0x0x7f5a258d5b60)
-
-Vtable for QAccessibleBridge
-QAccessibleBridge::_ZTV17QAccessibleBridge: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessibleBridge)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleBridge
- size=8 align=8
- base size=8 base align=8
-QAccessibleBridge (0x0x7f5a25909cc0) 0 nearly-empty
- vptr=((& QAccessibleBridge::_ZTV17QAccessibleBridge) + 16u)
-
-Class QAccessibleBridgePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAccessibleBridgePlugin::QPrivateSignal (0x0x7f5a25909d80) 0 empty
-
-Vtable for QAccessibleBridgePlugin
-QAccessibleBridgePlugin::_ZTV23QAccessibleBridgePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QAccessibleBridgePlugin)
-16 (int (*)(...))QAccessibleBridgePlugin::metaObject
-24 (int (*)(...))QAccessibleBridgePlugin::qt_metacast
-32 (int (*)(...))QAccessibleBridgePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleBridgePlugin
- size=16 align=8
- base size=16 base align=8
-QAccessibleBridgePlugin (0x0x7f5a258d5bc8) 0
- vptr=((& QAccessibleBridgePlugin::_ZTV23QAccessibleBridgePlugin) + 16u)
- QObject (0x0x7f5a25909d20) 0
- primary-for QAccessibleBridgePlugin (0x0x7f5a258d5bc8)
-
-Vtable for QAccessibleObject
-QAccessibleObject::_ZTV17QAccessibleObject: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessibleObject)
-16 0u
-24 0u
-32 (int (*)(...))QAccessibleObject::isValid
-40 (int (*)(...))QAccessibleObject::object
-48 (int (*)(...))QAccessibleInterface::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleInterface::focusChild
-72 (int (*)(...))QAccessibleObject::childAt
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QAccessibleObject::setText
-128 (int (*)(...))QAccessibleObject::rect
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleObject
- size=16 align=8
- base size=16 base align=8
-QAccessibleObject (0x0x7f5a258d5c30) 0
- vptr=((& QAccessibleObject::_ZTV17QAccessibleObject) + 16u)
- QAccessibleInterface (0x0x7f5a25909de0) 0 nearly-empty
- primary-for QAccessibleObject (0x0x7f5a258d5c30)
-
-Vtable for QAccessibleApplication
-QAccessibleApplication::_ZTV22QAccessibleApplication: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QAccessibleApplication)
-16 (int (*)(...))QAccessibleApplication::~QAccessibleApplication
-24 (int (*)(...))QAccessibleApplication::~QAccessibleApplication
-32 (int (*)(...))QAccessibleObject::isValid
-40 (int (*)(...))QAccessibleObject::object
-48 (int (*)(...))QAccessibleApplication::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleApplication::focusChild
-72 (int (*)(...))QAccessibleObject::childAt
-80 (int (*)(...))QAccessibleApplication::parent
-88 (int (*)(...))QAccessibleApplication::child
-96 (int (*)(...))QAccessibleApplication::childCount
-104 (int (*)(...))QAccessibleApplication::indexOfChild
-112 (int (*)(...))QAccessibleApplication::text
-120 (int (*)(...))QAccessibleObject::setText
-128 (int (*)(...))QAccessibleObject::rect
-136 (int (*)(...))QAccessibleApplication::role
-144 (int (*)(...))QAccessibleApplication::state
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleApplication
- size=16 align=8
- base size=16 base align=8
-QAccessibleApplication (0x0x7f5a258d5c98) 0
- vptr=((& QAccessibleApplication::_ZTV22QAccessibleApplication) + 16u)
- QAccessibleObject (0x0x7f5a258d5d00) 0
- primary-for QAccessibleApplication (0x0x7f5a258d5c98)
- QAccessibleInterface (0x0x7f5a25909e40) 0 nearly-empty
- primary-for QAccessibleObject (0x0x7f5a258d5d00)
-
-Class QAccessiblePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAccessiblePlugin::QPrivateSignal (0x0x7f5a25909f00) 0 empty
-
-Vtable for QAccessiblePlugin
-QAccessiblePlugin::_ZTV17QAccessiblePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessiblePlugin)
-16 (int (*)(...))QAccessiblePlugin::metaObject
-24 (int (*)(...))QAccessiblePlugin::qt_metacast
-32 (int (*)(...))QAccessiblePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessiblePlugin
- size=16 align=8
- base size=16 base align=8
-QAccessiblePlugin (0x0x7f5a258d5d68) 0
- vptr=((& QAccessiblePlugin::_ZTV17QAccessiblePlugin) + 16u)
- QObject (0x0x7f5a25909ea0) 0
- primary-for QAccessiblePlugin (0x0x7f5a258d5d68)
-
-Class QSurfaceFormat
- size=8 align=8
- base size=8 base align=8
-QSurfaceFormat (0x0x7f5a25909f60) 0
-
-Vtable for QSurface
-QSurface::_ZTV8QSurface: 8u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QSurface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-
-Class QSurface
- size=24 align=8
- base size=24 base align=8
-QSurface (0x0x7f5a25693180) 0
- vptr=((& QSurface::_ZTV8QSurface) + 16u)
-
-Class QIcon
- size=8 align=8
- base size=8 base align=8
-QIcon (0x0x7f5a25693300) 0
-
-Class QCursor
- size=8 align=8
- base size=8 base align=8
-QCursor (0x0x7f5a2575c6c0) 0
-
-Class QWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QWindow::QPrivateSignal (0x0x7f5a253e7cc0) 0 empty
-
-Vtable for QWindow
-QWindow::_ZTV7QWindow: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QWindow)
-16 (int (*)(...))QWindow::metaObject
-24 (int (*)(...))QWindow::qt_metacast
-32 (int (*)(...))QWindow::qt_metacall
-40 (int (*)(...))QWindow::~QWindow
-48 (int (*)(...))QWindow::~QWindow
-56 (int (*)(...))QWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI7QWindow)
-312 (int (*)(...))QWindow::_ZThn16_N7QWindowD1Ev
-320 (int (*)(...))QWindow::_ZThn16_N7QWindowD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QWindow
- size=40 align=8
- base size=40 base align=8
-QWindow (0x0x7f5a253ff380) 0
- vptr=((& QWindow::_ZTV7QWindow) + 16u)
- QObject (0x0x7f5a253e7c00) 0
- primary-for QWindow (0x0x7f5a253ff380)
- QSurface (0x0x7f5a253e7c60) 16
- vptr=((& QWindow::_ZTV7QWindow) + 312u)
-
-Class QBackingStore
- size=8 align=8
- base size=8 base align=8
-QBackingStore (0x0x7f5a253e7de0) 0
-
-Vtable for QBitmap
-QBitmap::_ZTV7QBitmap: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QBitmap)
-16 (int (*)(...))QBitmap::~QBitmap
-24 (int (*)(...))QBitmap::~QBitmap
-32 (int (*)(...))QPixmap::devType
-40 (int (*)(...))QPixmap::paintEngine
-48 (int (*)(...))QPixmap::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QBitmap
- size=32 align=8
- base size=32 base align=8
-QBitmap (0x0x7f5a253eadd0) 0
- vptr=((& QBitmap::_ZTV7QBitmap) + 16u)
- QPixmap (0x0x7f5a253eae38) 0
- primary-for QBitmap (0x0x7f5a253eadd0)
- QPaintDevice (0x0x7f5a253e7ea0) 0
- primary-for QPixmap (0x0x7f5a253eae38)
-
-Class QClipboard::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QClipboard::QPrivateSignal (0x0x7f5a25479240) 0 empty
-
-Vtable for QClipboard
-QClipboard::_ZTV10QClipboard: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QClipboard)
-16 (int (*)(...))QClipboard::metaObject
-24 (int (*)(...))QClipboard::qt_metacast
-32 (int (*)(...))QClipboard::qt_metacall
-40 (int (*)(...))QClipboard::~QClipboard
-48 (int (*)(...))QClipboard::~QClipboard
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QClipboard
- size=16 align=8
- base size=16 base align=8
-QClipboard (0x0x7f5a2547d0d0) 0
- vptr=((& QClipboard::_ZTV10QClipboard) + 16u)
- QObject (0x0x7f5a254791e0) 0
- primary-for QClipboard (0x0x7f5a2547d0d0)
-
-Class QDesktopServices
- size=1 align=1
- base size=0 base align=1
-QDesktopServices (0x0x7f5a254792a0) 0 empty
-
-Class QDrag::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDrag::QPrivateSignal (0x0x7f5a25479360) 0 empty
-
-Vtable for QDrag
-QDrag::_ZTV5QDrag: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QDrag)
-16 (int (*)(...))QDrag::metaObject
-24 (int (*)(...))QDrag::qt_metacast
-32 (int (*)(...))QDrag::qt_metacall
-40 (int (*)(...))QDrag::~QDrag
-48 (int (*)(...))QDrag::~QDrag
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDrag
- size=16 align=8
- base size=16 base align=8
-QDrag (0x0x7f5a2547d138) 0
- vptr=((& QDrag::_ZTV5QDrag) + 16u)
- QObject (0x0x7f5a25479300) 0
- primary-for QDrag (0x0x7f5a2547d138)
-
-Class QFontInfo
- size=8 align=8
- base size=8 base align=8
-QFontInfo (0x0x7f5a254793c0) 0
-
-Class QFontMetrics
- size=8 align=8
- base size=8 base align=8
-QFontMetrics (0x0x7f5a25479660) 0
-
-Class QFontMetricsF
- size=8 align=8
- base size=8 base align=8
-QFontMetricsF (0x0x7f5a25479960) 0
-
-Class QGenericPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QGenericPlugin::QPrivateSignal (0x0x7f5a2554ee40) 0 empty
-
-Vtable for QGenericPlugin
-QGenericPlugin::_ZTV14QGenericPlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QGenericPlugin)
-16 (int (*)(...))QGenericPlugin::metaObject
-24 (int (*)(...))QGenericPlugin::qt_metacast
-32 (int (*)(...))QGenericPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QGenericPlugin
- size=16 align=8
- base size=16 base align=8
-QGenericPlugin (0x0x7f5a2547d9c0) 0
- vptr=((& QGenericPlugin::_ZTV14QGenericPlugin) + 16u)
- QObject (0x0x7f5a2554ede0) 0
- primary-for QGenericPlugin (0x0x7f5a2547d9c0)
-
-Class QGenericPluginFactory
- size=1 align=1
- base size=0 base align=1
-QGenericPluginFactory (0x0x7f5a2554eea0) 0 empty
-
-Class QInputMethod::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QInputMethod::QPrivateSignal (0x0x7f5a2554ef60) 0 empty
-
-Vtable for QInputMethod
-QInputMethod::_ZTV12QInputMethod: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QInputMethod)
-16 (int (*)(...))QInputMethod::metaObject
-24 (int (*)(...))QInputMethod::qt_metacast
-32 (int (*)(...))QInputMethod::qt_metacall
-40 (int (*)(...))QInputMethod::~QInputMethod
-48 (int (*)(...))QInputMethod::~QInputMethod
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QInputMethod
- size=16 align=8
- base size=16 base align=8
-QInputMethod (0x0x7f5a2547da28) 0
- vptr=((& QInputMethod::_ZTV12QInputMethod) + 16u)
- QObject (0x0x7f5a2554ef00) 0
- primary-for QInputMethod (0x0x7f5a2547da28)
-
-Class QGuiApplication::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QGuiApplication::QPrivateSignal (0x0x7f5a2525f060) 0 empty
-
-Vtable for QGuiApplication
-QGuiApplication::_ZTV15QGuiApplication: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QGuiApplication)
-16 (int (*)(...))QGuiApplication::metaObject
-24 (int (*)(...))QGuiApplication::qt_metacast
-32 (int (*)(...))QGuiApplication::qt_metacall
-40 (int (*)(...))QGuiApplication::~QGuiApplication
-48 (int (*)(...))QGuiApplication::~QGuiApplication
-56 (int (*)(...))QGuiApplication::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QGuiApplication::notify
-120 (int (*)(...))QGuiApplication::compressEvent
-
-Class QGuiApplication
- size=16 align=8
- base size=16 base align=8
-QGuiApplication (0x0x7f5a2547da90) 0
- vptr=((& QGuiApplication::_ZTV15QGuiApplication) + 16u)
- QCoreApplication (0x0x7f5a2547daf8) 0
- primary-for QGuiApplication (0x0x7f5a2547da90)
- QObject (0x0x7f5a2525f000) 0
- primary-for QCoreApplication (0x0x7f5a2547daf8)
-
-Class QIconEngine::AvailableSizesArgument
- size=16 align=8
- base size=16 base align=8
-QIconEngine::AvailableSizesArgument (0x0x7f5a2525f5a0) 0
-
-Class QIconEngine::ScaledPixmapArgument
- size=56 align=8
- base size=56 base align=8
-QIconEngine::ScaledPixmapArgument (0x0x7f5a2525f720) 0
-
-Vtable for QIconEngine
-QIconEngine::_ZTV11QIconEngine: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QIconEngine)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QIconEngine::actualSize
-48 (int (*)(...))QIconEngine::pixmap
-56 (int (*)(...))QIconEngine::addPixmap
-64 (int (*)(...))QIconEngine::addFile
-72 (int (*)(...))QIconEngine::key
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))QIconEngine::read
-96 (int (*)(...))QIconEngine::write
-104 (int (*)(...))QIconEngine::availableSizes
-112 (int (*)(...))QIconEngine::iconName
-120 (int (*)(...))QIconEngine::virtual_hook
-
-Class QIconEngine
- size=8 align=8
- base size=8 base align=8
-QIconEngine (0x0x7f5a2525f540) 0 nearly-empty
- vptr=((& QIconEngine::_ZTV11QIconEngine) + 16u)
-
-Class QIconEnginePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIconEnginePlugin::QPrivateSignal (0x0x7f5a2525f7e0) 0 empty
-
-Vtable for QIconEnginePlugin
-QIconEnginePlugin::_ZTV17QIconEnginePlugin: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QIconEnginePlugin)
-16 (int (*)(...))QIconEnginePlugin::metaObject
-24 (int (*)(...))QIconEnginePlugin::qt_metacast
-32 (int (*)(...))QIconEnginePlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QIconEnginePlugin
- size=16 align=8
- base size=16 base align=8
-QIconEnginePlugin (0x0x7f5a25294068) 0
- vptr=((& QIconEnginePlugin::_ZTV17QIconEnginePlugin) + 16u)
- QObject (0x0x7f5a2525f780) 0
- primary-for QIconEnginePlugin (0x0x7f5a25294068)
-
-Vtable for QImageIOHandler
-QImageIOHandler::_ZTV15QImageIOHandler: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QImageIOHandler)
-16 0u
-24 0u
-32 (int (*)(...))QImageIOHandler::name
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))QImageIOHandler::write
-64 (int (*)(...))QImageIOHandler::option
-72 (int (*)(...))QImageIOHandler::setOption
-80 (int (*)(...))QImageIOHandler::supportsOption
-88 (int (*)(...))QImageIOHandler::jumpToNextImage
-96 (int (*)(...))QImageIOHandler::jumpToImage
-104 (int (*)(...))QImageIOHandler::loopCount
-112 (int (*)(...))QImageIOHandler::imageCount
-120 (int (*)(...))QImageIOHandler::nextImageDelay
-128 (int (*)(...))QImageIOHandler::currentImageNumber
-136 (int (*)(...))QImageIOHandler::currentImageRect
-
-Class QImageIOHandler
- size=16 align=8
- base size=16 base align=8
-QImageIOHandler (0x0x7f5a2525f840) 0
- vptr=((& QImageIOHandler::_ZTV15QImageIOHandler) + 16u)
-
-Class QImageIOPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QImageIOPlugin::QPrivateSignal (0x0x7f5a2525f9c0) 0 empty
-
-Vtable for QImageIOPlugin
-QImageIOPlugin::_ZTV14QImageIOPlugin: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QImageIOPlugin)
-16 (int (*)(...))QImageIOPlugin::metaObject
-24 (int (*)(...))QImageIOPlugin::qt_metacast
-32 (int (*)(...))QImageIOPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QImageIOPlugin
- size=16 align=8
- base size=16 base align=8
-QImageIOPlugin (0x0x7f5a252940d0) 0
- vptr=((& QImageIOPlugin::_ZTV14QImageIOPlugin) + 16u)
- QObject (0x0x7f5a2525f960) 0
- primary-for QImageIOPlugin (0x0x7f5a252940d0)
-
-Class QImageReader
- size=8 align=8
- base size=8 base align=8
-QImageReader (0x0x7f5a2525fba0) 0
-
-Class QImageWriter
- size=8 align=8
- base size=8 base align=8
-QImageWriter (0x0x7f5a2525fc00) 0
-
-Class QVector3D
- size=12 align=4
- base size=12 base align=4
-QVector3D (0x0x7f5a2525fc60) 0
-
-Class QVector4D
- size=16 align=4
- base size=16 base align=4
-QVector4D (0x0x7f5a2525ff00) 0
-
-Class QQuaternion
- size=16 align=4
- base size=16 base align=4
-QQuaternion (0x0x7f5a24fac1e0) 0
-
-Class QMatrix4x4
- size=68 align=4
- base size=68 base align=4
-QMatrix4x4 (0x0x7f5a24fac7e0) 0
-
-Class QMovie::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QMovie::QPrivateSignal (0x0x7f5a24facf60) 0 empty
-
-Vtable for QMovie
-QMovie::_ZTV6QMovie: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QMovie)
-16 (int (*)(...))QMovie::metaObject
-24 (int (*)(...))QMovie::qt_metacast
-32 (int (*)(...))QMovie::qt_metacall
-40 (int (*)(...))QMovie::~QMovie
-48 (int (*)(...))QMovie::~QMovie
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QMovie
- size=16 align=8
- base size=16 base align=8
-QMovie (0x0x7f5a250b42d8) 0
- vptr=((& QMovie::_ZTV6QMovie) + 16u)
- QObject (0x0x7f5a24facf00) 0
- primary-for QMovie (0x0x7f5a250b42d8)
-
-Class QOffscreenSurface::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOffscreenSurface::QPrivateSignal (0x0x7f5a24db60c0) 0 empty
-
-Vtable for QOffscreenSurface
-QOffscreenSurface::_ZTV17QOffscreenSurface: 26u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QOffscreenSurface)
-16 (int (*)(...))QOffscreenSurface::metaObject
-24 (int (*)(...))QOffscreenSurface::qt_metacast
-32 (int (*)(...))QOffscreenSurface::qt_metacall
-40 (int (*)(...))QOffscreenSurface::~QOffscreenSurface
-48 (int (*)(...))QOffscreenSurface::~QOffscreenSurface
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QOffscreenSurface::surfaceType
-120 (int (*)(...))QOffscreenSurface::format
-128 (int (*)(...))QOffscreenSurface::size
-136 (int (*)(...))QOffscreenSurface::surfaceHandle
-144 (int (*)(...))-16
-152 (int (*)(...))(& _ZTI17QOffscreenSurface)
-160 (int (*)(...))QOffscreenSurface::_ZThn16_N17QOffscreenSurfaceD1Ev
-168 (int (*)(...))QOffscreenSurface::_ZThn16_N17QOffscreenSurfaceD0Ev
-176 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface6formatEv
-184 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface13surfaceHandleEv
-192 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface11surfaceTypeEv
-200 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface4sizeEv
-
-Class QOffscreenSurface
- size=40 align=8
- base size=40 base align=8
-QOffscreenSurface (0x0x7f5a25175b60) 0
- vptr=((& QOffscreenSurface::_ZTV17QOffscreenSurface) + 16u)
- QObject (0x0x7f5a24db6000) 0
- primary-for QOffscreenSurface (0x0x7f5a25175b60)
- QSurface (0x0x7f5a24db6060) 16
- vptr=((& QOffscreenSurface::_ZTV17QOffscreenSurface) + 160u)
-
-Class QOpenGLBuffer
- size=8 align=8
- base size=8 base align=8
-QOpenGLBuffer (0x0x7f5a24db6180) 0
-
-Class QOpenGLVersionStatus
- size=12 align=4
- base size=12 base align=4
-QOpenGLVersionStatus (0x0x7f5a24db6360) 0
-
-Class QOpenGLVersionFunctionsBackend
- size=16 align=8
- base size=12 base align=8
-QOpenGLVersionFunctionsBackend (0x0x7f5a24b1be40) 0
-
-Class QOpenGLVersionFunctionsStorage
- size=8 align=8
- base size=8 base align=8
-QOpenGLVersionFunctionsStorage (0x0x7f5a24b1bea0) 0
-
-Class QAbstractOpenGLFunctionsPrivate
- size=16 align=8
- base size=9 base align=8
-QAbstractOpenGLFunctionsPrivate (0x0x7f5a24b1bf00) 0
-
-Vtable for QAbstractOpenGLFunctions
-QAbstractOpenGLFunctions::_ZTV24QAbstractOpenGLFunctions: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAbstractOpenGLFunctions)
-16 (int (*)(...))QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions
-24 (int (*)(...))QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions
-32 (int (*)(...))QAbstractOpenGLFunctions::initializeOpenGLFunctions
-
-Class QAbstractOpenGLFunctions
- size=16 align=8
- base size=16 base align=8
-QAbstractOpenGLFunctions (0x0x7f5a24b1bf60) 0
- vptr=((& QAbstractOpenGLFunctions::_ZTV24QAbstractOpenGLFunctions) + 16u)
-
-Class QOpenGLFunctions_1_0_CoreBackend::Functions
- size=384 align=8
- base size=384 base align=8
-QOpenGLFunctions_1_0_CoreBackend::Functions (0x0x7f5a24b67060) 0
-
-Class QOpenGLFunctions_1_0_CoreBackend
- size=400 align=8
- base size=400 base align=8
-QOpenGLFunctions_1_0_CoreBackend (0x0x7f5a24b3f548) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67000) 0
-
-Class QOpenGLFunctions_1_1_CoreBackend::Functions
- size=128 align=8
- base size=128 base align=8
-QOpenGLFunctions_1_1_CoreBackend::Functions (0x0x7f5a24b67180) 0
-
-Class QOpenGLFunctions_1_1_CoreBackend
- size=144 align=8
- base size=144 base align=8
-QOpenGLFunctions_1_1_CoreBackend (0x0x7f5a24b3f5b0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67120) 0
-
-Class QOpenGLFunctions_1_2_CoreBackend::Functions
- size=48 align=8
- base size=48 base align=8
-QOpenGLFunctions_1_2_CoreBackend::Functions (0x0x7f5a24b672a0) 0
-
-Class QOpenGLFunctions_1_2_CoreBackend
- size=64 align=8
- base size=64 base align=8
-QOpenGLFunctions_1_2_CoreBackend (0x0x7f5a24b3f618) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67240) 0
-
-Class QOpenGLFunctions_1_3_CoreBackend::Functions
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_1_3_CoreBackend::Functions (0x0x7f5a24b673c0) 0
-
-Class QOpenGLFunctions_1_3_CoreBackend
- size=88 align=8
- base size=88 base align=8
-QOpenGLFunctions_1_3_CoreBackend (0x0x7f5a24b3f680) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67360) 0
-
-Class QOpenGLFunctions_1_4_CoreBackend::Functions
- size=56 align=8
- base size=56 base align=8
-QOpenGLFunctions_1_4_CoreBackend::Functions (0x0x7f5a24b67540) 0
-
-Class QOpenGLFunctions_1_4_CoreBackend
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_1_4_CoreBackend (0x0x7f5a24b3f6e8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b674e0) 0
-
-Class QOpenGLFunctions_1_5_CoreBackend::Functions
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_1_5_CoreBackend::Functions (0x0x7f5a24b67660) 0
-
-Class QOpenGLFunctions_1_5_CoreBackend
- size=168 align=8
- base size=168 base align=8
-QOpenGLFunctions_1_5_CoreBackend (0x0x7f5a24b3f750) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67600) 0
-
-Class QOpenGLFunctions_2_0_CoreBackend::Functions
- size=744 align=8
- base size=744 base align=8
-QOpenGLFunctions_2_0_CoreBackend::Functions (0x0x7f5a24b67780) 0
-
-Class QOpenGLFunctions_2_0_CoreBackend
- size=760 align=8
- base size=760 base align=8
-QOpenGLFunctions_2_0_CoreBackend (0x0x7f5a24b3f7b8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67720) 0
-
-Class QOpenGLFunctions_2_1_CoreBackend::Functions
- size=48 align=8
- base size=48 base align=8
-QOpenGLFunctions_2_1_CoreBackend::Functions (0x0x7f5a24b678a0) 0
-
-Class QOpenGLFunctions_2_1_CoreBackend
- size=64 align=8
- base size=64 base align=8
-QOpenGLFunctions_2_1_CoreBackend (0x0x7f5a24b3f820) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67840) 0
-
-Class QOpenGLFunctions_3_0_CoreBackend::Functions
- size=672 align=8
- base size=672 base align=8
-QOpenGLFunctions_3_0_CoreBackend::Functions (0x0x7f5a24b679c0) 0
-
-Class QOpenGLFunctions_3_0_CoreBackend
- size=688 align=8
- base size=688 base align=8
-QOpenGLFunctions_3_0_CoreBackend (0x0x7f5a24b3f888) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67960) 0
-
-Class QOpenGLFunctions_3_1_CoreBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_3_1_CoreBackend::Functions (0x0x7f5a24b67ae0) 0
-
-Class QOpenGLFunctions_3_1_CoreBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_3_1_CoreBackend (0x0x7f5a24b3f8f0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67a80) 0
-
-Class QOpenGLFunctions_3_2_CoreBackend::Functions
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_3_2_CoreBackend::Functions (0x0x7f5a24b67c00) 0
-
-Class QOpenGLFunctions_3_2_CoreBackend
- size=168 align=8
- base size=168 base align=8
-QOpenGLFunctions_3_2_CoreBackend (0x0x7f5a24b3f958) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67ba0) 0
-
-Class QOpenGLFunctions_3_3_CoreBackend::Functions
- size=464 align=8
- base size=464 base align=8
-QOpenGLFunctions_3_3_CoreBackend::Functions (0x0x7f5a24b67d20) 0
-
-Class QOpenGLFunctions_3_3_CoreBackend
- size=480 align=8
- base size=480 base align=8
-QOpenGLFunctions_3_3_CoreBackend (0x0x7f5a24b3f9c0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67cc0) 0
-
-Class QOpenGLFunctions_4_0_CoreBackend::Functions
- size=368 align=8
- base size=368 base align=8
-QOpenGLFunctions_4_0_CoreBackend::Functions (0x0x7f5a24b67e40) 0
-
-Class QOpenGLFunctions_4_0_CoreBackend
- size=384 align=8
- base size=384 base align=8
-QOpenGLFunctions_4_0_CoreBackend (0x0x7f5a24b3fa28) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67de0) 0
-
-Class QOpenGLFunctions_4_1_CoreBackend::Functions
- size=704 align=8
- base size=704 base align=8
-QOpenGLFunctions_4_1_CoreBackend::Functions (0x0x7f5a24b67f60) 0
-
-Class QOpenGLFunctions_4_1_CoreBackend
- size=720 align=8
- base size=720 base align=8
-QOpenGLFunctions_4_1_CoreBackend (0x0x7f5a24b3fa90) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a24b67f00) 0
-
-Class QOpenGLFunctions_4_2_CoreBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_4_2_CoreBackend::Functions (0x0x7f5a2485e0c0) 0
-
-Class QOpenGLFunctions_4_2_CoreBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_4_2_CoreBackend (0x0x7f5a24b3faf8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e060) 0
-
-Class QOpenGLFunctions_4_3_CoreBackend::Functions
- size=344 align=8
- base size=344 base align=8
-QOpenGLFunctions_4_3_CoreBackend::Functions (0x0x7f5a2485e1e0) 0
-
-Class QOpenGLFunctions_4_3_CoreBackend
- size=360 align=8
- base size=360 base align=8
-QOpenGLFunctions_4_3_CoreBackend (0x0x7f5a24b3fb60) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e180) 0
-
-Class QOpenGLFunctions_4_4_CoreBackend::Functions
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_4_4_CoreBackend::Functions (0x0x7f5a2485e300) 0
-
-Class QOpenGLFunctions_4_4_CoreBackend
- size=88 align=8
- base size=88 base align=8
-QOpenGLFunctions_4_4_CoreBackend (0x0x7f5a24b3fbc8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e2a0) 0
-
-Class QOpenGLFunctions_4_5_CoreBackend::Functions
- size=848 align=8
- base size=848 base align=8
-QOpenGLFunctions_4_5_CoreBackend::Functions (0x0x7f5a2485e480) 0
-
-Class QOpenGLFunctions_4_5_CoreBackend
- size=864 align=8
- base size=864 base align=8
-QOpenGLFunctions_4_5_CoreBackend (0x0x7f5a24b3fc30) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e420) 0
-
-Class QOpenGLFunctions_1_0_DeprecatedBackend::Functions
- size=2064 align=8
- base size=2064 base align=8
-QOpenGLFunctions_1_0_DeprecatedBackend::Functions (0x0x7f5a2485e5a0) 0
-
-Class QOpenGLFunctions_1_0_DeprecatedBackend
- size=2080 align=8
- base size=2080 base align=8
-QOpenGLFunctions_1_0_DeprecatedBackend (0x0x7f5a24b3fc98) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e540) 0
-
-Class QOpenGLFunctions_1_1_DeprecatedBackend::Functions
- size=136 align=8
- base size=136 base align=8
-QOpenGLFunctions_1_1_DeprecatedBackend::Functions (0x0x7f5a2485e6c0) 0
-
-Class QOpenGLFunctions_1_1_DeprecatedBackend
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_1_1_DeprecatedBackend (0x0x7f5a24b3fd00) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e660) 0
-
-Class QOpenGLFunctions_1_2_DeprecatedBackend::Functions
- size=256 align=8
- base size=256 base align=8
-QOpenGLFunctions_1_2_DeprecatedBackend::Functions (0x0x7f5a2485e7e0) 0
-
-Class QOpenGLFunctions_1_2_DeprecatedBackend
- size=272 align=8
- base size=272 base align=8
-QOpenGLFunctions_1_2_DeprecatedBackend (0x0x7f5a24b3fd68) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e780) 0
-
-Class QOpenGLFunctions_1_3_DeprecatedBackend::Functions
- size=296 align=8
- base size=296 base align=8
-QOpenGLFunctions_1_3_DeprecatedBackend::Functions (0x0x7f5a2485e900) 0
-
-Class QOpenGLFunctions_1_3_DeprecatedBackend
- size=312 align=8
- base size=312 base align=8
-QOpenGLFunctions_1_3_DeprecatedBackend (0x0x7f5a24b3fdd0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e8a0) 0
-
-Class QOpenGLFunctions_1_4_DeprecatedBackend::Functions
- size=304 align=8
- base size=304 base align=8
-QOpenGLFunctions_1_4_DeprecatedBackend::Functions (0x0x7f5a2485ea20) 0
-
-Class QOpenGLFunctions_1_4_DeprecatedBackend
- size=320 align=8
- base size=320 base align=8
-QOpenGLFunctions_1_4_DeprecatedBackend (0x0x7f5a24b3fe38) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485e9c0) 0
-
-Class QOpenGLFunctions_2_0_DeprecatedBackend::Functions
- size=288 align=8
- base size=288 base align=8
-QOpenGLFunctions_2_0_DeprecatedBackend::Functions (0x0x7f5a2485eb40) 0
-
-Class QOpenGLFunctions_2_0_DeprecatedBackend
- size=304 align=8
- base size=304 base align=8
-QOpenGLFunctions_2_0_DeprecatedBackend (0x0x7f5a24b3fea0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485eae0) 0
-
-Class QOpenGLFunctions_3_0_DeprecatedBackend::Functions
- size=160 align=8
- base size=160 base align=8
-QOpenGLFunctions_3_0_DeprecatedBackend::Functions (0x0x7f5a2485ec60) 0
-
-Class QOpenGLFunctions_3_0_DeprecatedBackend
- size=176 align=8
- base size=176 base align=8
-QOpenGLFunctions_3_0_DeprecatedBackend (0x0x7f5a24b3ff08) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485ec00) 0
-
-Class QOpenGLFunctions_3_3_DeprecatedBackend::Functions
- size=240 align=8
- base size=240 base align=8
-QOpenGLFunctions_3_3_DeprecatedBackend::Functions (0x0x7f5a2485ed80) 0
-
-Class QOpenGLFunctions_3_3_DeprecatedBackend
- size=256 align=8
- base size=256 base align=8
-QOpenGLFunctions_3_3_DeprecatedBackend (0x0x7f5a24b3ff70) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485ed20) 0
-
-Class QOpenGLFunctions_4_5_DeprecatedBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_4_5_DeprecatedBackend::Functions (0x0x7f5a2485eea0) 0
-
-Class QOpenGLFunctions_4_5_DeprecatedBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_4_5_DeprecatedBackend (0x0x7f5a24972000) 0
- QOpenGLVersionFunctionsBackend (0x0x7f5a2485ee40) 0
-
-Class QOpenGLVersionProfile
- size=8 align=8
- base size=8 base align=8
-QOpenGLVersionProfile (0x0x7f5a2485ef60) 0
-
-Class QOpenGLContextGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLContextGroup::QPrivateSignal (0x0x7f5a2498c960) 0 empty
-
-Vtable for QOpenGLContextGroup
-QOpenGLContextGroup::_ZTV19QOpenGLContextGroup: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QOpenGLContextGroup)
-16 (int (*)(...))QOpenGLContextGroup::metaObject
-24 (int (*)(...))QOpenGLContextGroup::qt_metacast
-32 (int (*)(...))QOpenGLContextGroup::qt_metacall
-40 (int (*)(...))QOpenGLContextGroup::~QOpenGLContextGroup
-48 (int (*)(...))QOpenGLContextGroup::~QOpenGLContextGroup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLContextGroup
- size=16 align=8
- base size=16 base align=8
-QOpenGLContextGroup (0x0x7f5a24972a28) 0
- vptr=((& QOpenGLContextGroup::_ZTV19QOpenGLContextGroup) + 16u)
- QObject (0x0x7f5a2498c900) 0
- primary-for QOpenGLContextGroup (0x0x7f5a24972a28)
-
-Class QOpenGLContext::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLContext::QPrivateSignal (0x0x7f5a2498ca20) 0 empty
-
-Vtable for QOpenGLContext
-QOpenGLContext::_ZTV14QOpenGLContext: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QOpenGLContext)
-16 (int (*)(...))QOpenGLContext::metaObject
-24 (int (*)(...))QOpenGLContext::qt_metacast
-32 (int (*)(...))QOpenGLContext::qt_metacall
-40 (int (*)(...))QOpenGLContext::~QOpenGLContext
-48 (int (*)(...))QOpenGLContext::~QOpenGLContext
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLContext
- size=16 align=8
- base size=16 base align=8
-QOpenGLContext (0x0x7f5a24972a90) 0
- vptr=((& QOpenGLContext::_ZTV14QOpenGLContext) + 16u)
- QObject (0x0x7f5a2498c9c0) 0
- primary-for QOpenGLContext (0x0x7f5a24972a90)
-
-Class QOpenGLDebugMessage
- size=8 align=8
- base size=8 base align=8
-QOpenGLDebugMessage (0x0x7f5a2498ca80) 0
-
-Class QOpenGLDebugLogger::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLDebugLogger::QPrivateSignal (0x0x7f5a2461d2a0) 0 empty
-
-Vtable for QOpenGLDebugLogger
-QOpenGLDebugLogger::_ZTV18QOpenGLDebugLogger: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLDebugLogger)
-16 (int (*)(...))QOpenGLDebugLogger::metaObject
-24 (int (*)(...))QOpenGLDebugLogger::qt_metacast
-32 (int (*)(...))QOpenGLDebugLogger::qt_metacall
-40 (int (*)(...))QOpenGLDebugLogger::~QOpenGLDebugLogger
-48 (int (*)(...))QOpenGLDebugLogger::~QOpenGLDebugLogger
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLDebugLogger
- size=16 align=8
- base size=16 base align=8
-QOpenGLDebugLogger (0x0x7f5a24972f08) 0
- vptr=((& QOpenGLDebugLogger::_ZTV18QOpenGLDebugLogger) + 16u)
- QObject (0x0x7f5a2461d240) 0
- primary-for QOpenGLDebugLogger (0x0x7f5a24972f08)
-
-Class QOpenGLFunctions
- size=8 align=8
- base size=8 base align=8
-QOpenGLFunctions (0x0x7f5a2461d420) 0
-
-Class QOpenGLFunctionsPrivate::Functions
- size=1152 align=8
- base size=1152 base align=8
-QOpenGLFunctionsPrivate::Functions (0x0x7f5a2461d660) 0
-
-Class QOpenGLFunctionsPrivate
- size=1152 align=8
- base size=1152 base align=8
-QOpenGLFunctionsPrivate (0x0x7f5a2461d600) 0
-
-Class QOpenGLExtraFunctions
- size=8 align=8
- base size=8 base align=8
-QOpenGLExtraFunctions (0x0x7f5a246e61a0) 0
- QOpenGLFunctions (0x0x7f5a243efd80) 0
-
-Class QOpenGLExtraFunctionsPrivate::Functions
- size=1728 align=8
- base size=1728 base align=8
-QOpenGLExtraFunctionsPrivate::Functions (0x0x7f5a243efe40) 0
-
-Class QOpenGLExtraFunctionsPrivate
- size=2880 align=8
- base size=2880 base align=8
-QOpenGLExtraFunctionsPrivate (0x0x7f5a246e6208) 0
- QOpenGLFunctionsPrivate (0x0x7f5a243efde0) 0
-
-Vtable for QOpenGLFramebufferObject
-QOpenGLFramebufferObject::_ZTV24QOpenGLFramebufferObject: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QOpenGLFramebufferObject)
-16 (int (*)(...))QOpenGLFramebufferObject::~QOpenGLFramebufferObject
-24 (int (*)(...))QOpenGLFramebufferObject::~QOpenGLFramebufferObject
-
-Class QOpenGLFramebufferObject
- size=16 align=8
- base size=16 base align=8
-QOpenGLFramebufferObject (0x0x7f5a2425a540) 0
- vptr=((& QOpenGLFramebufferObject::_ZTV24QOpenGLFramebufferObject) + 16u)
-
-Class QOpenGLFramebufferObjectFormat
- size=8 align=8
- base size=8 base align=8
-QOpenGLFramebufferObjectFormat (0x0x7f5a2425a660) 0
-
-Vtable for QOpenGLPaintDevice
-QOpenGLPaintDevice::_ZTV18QOpenGLPaintDevice: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLPaintDevice)
-16 (int (*)(...))QOpenGLPaintDevice::~QOpenGLPaintDevice
-24 (int (*)(...))QOpenGLPaintDevice::~QOpenGLPaintDevice
-32 (int (*)(...))QOpenGLPaintDevice::devType
-40 (int (*)(...))QOpenGLPaintDevice::paintEngine
-48 (int (*)(...))QOpenGLPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))QOpenGLPaintDevice::ensureActiveTarget
-
-Class QOpenGLPaintDevice
- size=32 align=8
- base size=32 base align=8
-QOpenGLPaintDevice (0x0x7f5a246e64e0) 0
- vptr=((& QOpenGLPaintDevice::_ZTV18QOpenGLPaintDevice) + 16u)
- QPaintDevice (0x0x7f5a2425a6c0) 0
- primary-for QOpenGLPaintDevice (0x0x7f5a246e64e0)
-
-Class QOpenGLPixelTransferOptions
- size=8 align=8
- base size=8 base align=8
-QOpenGLPixelTransferOptions (0x0x7f5a2425a7e0) 0
-
-Class QOpenGLShader::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLShader::QPrivateSignal (0x0x7f5a2425ab40) 0 empty
-
-Vtable for QOpenGLShader
-QOpenGLShader::_ZTV13QOpenGLShader: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QOpenGLShader)
-16 (int (*)(...))QOpenGLShader::metaObject
-24 (int (*)(...))QOpenGLShader::qt_metacast
-32 (int (*)(...))QOpenGLShader::qt_metacall
-40 (int (*)(...))QOpenGLShader::~QOpenGLShader
-48 (int (*)(...))QOpenGLShader::~QOpenGLShader
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLShader
- size=16 align=8
- base size=16 base align=8
-QOpenGLShader (0x0x7f5a246e66e8) 0
- vptr=((& QOpenGLShader::_ZTV13QOpenGLShader) + 16u)
- QObject (0x0x7f5a2425aae0) 0
- primary-for QOpenGLShader (0x0x7f5a246e66e8)
-
-Class QOpenGLShaderProgram::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLShaderProgram::QPrivateSignal (0x0x7f5a2425ad80) 0 empty
-
-Vtable for QOpenGLShaderProgram
-QOpenGLShaderProgram::_ZTV20QOpenGLShaderProgram: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QOpenGLShaderProgram)
-16 (int (*)(...))QOpenGLShaderProgram::metaObject
-24 (int (*)(...))QOpenGLShaderProgram::qt_metacast
-32 (int (*)(...))QOpenGLShaderProgram::qt_metacall
-40 (int (*)(...))QOpenGLShaderProgram::~QOpenGLShaderProgram
-48 (int (*)(...))QOpenGLShaderProgram::~QOpenGLShaderProgram
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QOpenGLShaderProgram::link
-
-Class QOpenGLShaderProgram
- size=16 align=8
- base size=16 base align=8
-QOpenGLShaderProgram (0x0x7f5a246e6820) 0
- vptr=((& QOpenGLShaderProgram::_ZTV20QOpenGLShaderProgram) + 16u)
- QObject (0x0x7f5a2425ad20) 0
- primary-for QOpenGLShaderProgram (0x0x7f5a246e6820)
-
-Class QOpenGLTexture
- size=8 align=8
- base size=8 base align=8
-QOpenGLTexture (0x0x7f5a2425ade0) 0
-
-Class QOpenGLTextureBlitter
- size=8 align=8
- base size=8 base align=8
-QOpenGLTextureBlitter (0x0x7f5a23fce0c0) 0
-
-Class QOpenGLTimerQuery::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLTimerQuery::QPrivateSignal (0x0x7f5a23fce240) 0 empty
-
-Vtable for QOpenGLTimerQuery
-QOpenGLTimerQuery::_ZTV17QOpenGLTimerQuery: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QOpenGLTimerQuery)
-16 (int (*)(...))QOpenGLTimerQuery::metaObject
-24 (int (*)(...))QOpenGLTimerQuery::qt_metacast
-32 (int (*)(...))QOpenGLTimerQuery::qt_metacall
-40 (int (*)(...))QOpenGLTimerQuery::~QOpenGLTimerQuery
-48 (int (*)(...))QOpenGLTimerQuery::~QOpenGLTimerQuery
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLTimerQuery
- size=16 align=8
- base size=16 base align=8
-QOpenGLTimerQuery (0x0x7f5a246e6958) 0
- vptr=((& QOpenGLTimerQuery::_ZTV17QOpenGLTimerQuery) + 16u)
- QObject (0x0x7f5a23fce1e0) 0
- primary-for QOpenGLTimerQuery (0x0x7f5a246e6958)
-
-Class QOpenGLTimeMonitor::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLTimeMonitor::QPrivateSignal (0x0x7f5a23fce300) 0 empty
-
-Vtable for QOpenGLTimeMonitor
-QOpenGLTimeMonitor::_ZTV18QOpenGLTimeMonitor: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLTimeMonitor)
-16 (int (*)(...))QOpenGLTimeMonitor::metaObject
-24 (int (*)(...))QOpenGLTimeMonitor::qt_metacast
-32 (int (*)(...))QOpenGLTimeMonitor::qt_metacall
-40 (int (*)(...))QOpenGLTimeMonitor::~QOpenGLTimeMonitor
-48 (int (*)(...))QOpenGLTimeMonitor::~QOpenGLTimeMonitor
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLTimeMonitor
- size=16 align=8
- base size=16 base align=8
-QOpenGLTimeMonitor (0x0x7f5a246e69c0) 0
- vptr=((& QOpenGLTimeMonitor::_ZTV18QOpenGLTimeMonitor) + 16u)
- QObject (0x0x7f5a23fce2a0) 0
- primary-for QOpenGLTimeMonitor (0x0x7f5a246e69c0)
-
-Class QOpenGLVertexArrayObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLVertexArrayObject::QPrivateSignal (0x0x7f5a23fce3c0) 0 empty
-
-Class QOpenGLVertexArrayObject::Binder
- size=8 align=8
- base size=8 base align=8
-QOpenGLVertexArrayObject::Binder (0x0x7f5a23fce420) 0
-
-Vtable for QOpenGLVertexArrayObject
-QOpenGLVertexArrayObject::_ZTV24QOpenGLVertexArrayObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QOpenGLVertexArrayObject)
-16 (int (*)(...))QOpenGLVertexArrayObject::metaObject
-24 (int (*)(...))QOpenGLVertexArrayObject::qt_metacast
-32 (int (*)(...))QOpenGLVertexArrayObject::qt_metacall
-40 (int (*)(...))QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject
-48 (int (*)(...))QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLVertexArrayObject
- size=16 align=8
- base size=16 base align=8
-QOpenGLVertexArrayObject (0x0x7f5a246e6a28) 0
- vptr=((& QOpenGLVertexArrayObject::_ZTV24QOpenGLVertexArrayObject) + 16u)
- QObject (0x0x7f5a23fce360) 0
- primary-for QOpenGLVertexArrayObject (0x0x7f5a246e6a28)
-
-Class QPaintDeviceWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPaintDeviceWindow::QPrivateSignal (0x0x7f5a23fce5a0) 0 empty
-
-Vtable for QPaintDeviceWindow
-QPaintDeviceWindow::_ZTV18QPaintDeviceWindow: 58u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-16 (int (*)(...))QPaintDeviceWindow::metaObject
-24 (int (*)(...))QPaintDeviceWindow::qt_metacast
-32 (int (*)(...))QPaintDeviceWindow::qt_metacall
-40 (int (*)(...))QPaintDeviceWindow::~QPaintDeviceWindow
-48 (int (*)(...))QPaintDeviceWindow::~QPaintDeviceWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QPaintDeviceWindow::paintEvent
-304 (int (*)(...))QPaintDeviceWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))-16
-328 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-336 (int (*)(...))QPaintDeviceWindow::_ZThn16_N18QPaintDeviceWindowD1Ev
-344 (int (*)(...))QPaintDeviceWindow::_ZThn16_N18QPaintDeviceWindowD0Ev
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-360 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-368 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-376 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-384 (int (*)(...))-40
-392 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-400 (int (*)(...))QPaintDeviceWindow::_ZThn40_N18QPaintDeviceWindowD1Ev
-408 (int (*)(...))QPaintDeviceWindow::_ZThn40_N18QPaintDeviceWindowD0Ev
-416 (int (*)(...))QPaintDevice::devType
-424 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-432 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-440 (int (*)(...))QPaintDevice::initPainter
-448 (int (*)(...))QPaintDevice::redirected
-456 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPaintDeviceWindow
- size=64 align=8
- base size=64 base align=8
-QPaintDeviceWindow (0x0x7f5a24036a80) 0
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 16u)
- QWindow (0x0x7f5a24036af0) 0
- primary-for QPaintDeviceWindow (0x0x7f5a24036a80)
- QObject (0x0x7f5a23fce480) 0
- primary-for QWindow (0x0x7f5a24036af0)
- QSurface (0x0x7f5a23fce4e0) 16
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 336u)
- QPaintDevice (0x0x7f5a23fce540) 40
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 400u)
-
-Class QOpenGLWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLWindow::QPrivateSignal (0x0x7f5a23fce720) 0 empty
-
-Vtable for QOpenGLWindow
-QOpenGLWindow::_ZTV13QOpenGLWindow: 64u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QOpenGLWindow)
-16 (int (*)(...))QOpenGLWindow::metaObject
-24 (int (*)(...))QOpenGLWindow::qt_metacast
-32 (int (*)(...))QOpenGLWindow::qt_metacall
-40 (int (*)(...))QOpenGLWindow::~QOpenGLWindow
-48 (int (*)(...))QOpenGLWindow::~QOpenGLWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QOpenGLWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QOpenGLWindow::paintEvent
-304 (int (*)(...))QOpenGLWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))QOpenGLWindow::initializeGL
-328 (int (*)(...))QOpenGLWindow::resizeGL
-336 (int (*)(...))QOpenGLWindow::paintGL
-344 (int (*)(...))QOpenGLWindow::paintUnderGL
-352 (int (*)(...))QOpenGLWindow::paintOverGL
-360 (int (*)(...))QOpenGLWindow::redirected
-368 (int (*)(...))-16
-376 (int (*)(...))(& _ZTI13QOpenGLWindow)
-384 (int (*)(...))QOpenGLWindow::_ZThn16_N13QOpenGLWindowD1Ev
-392 (int (*)(...))QOpenGLWindow::_ZThn16_N13QOpenGLWindowD0Ev
-400 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-408 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-416 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-424 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-432 (int (*)(...))-40
-440 (int (*)(...))(& _ZTI13QOpenGLWindow)
-448 (int (*)(...))QOpenGLWindow::_ZThn40_N13QOpenGLWindowD1Ev
-456 (int (*)(...))QOpenGLWindow::_ZThn40_N13QOpenGLWindowD0Ev
-464 (int (*)(...))QPaintDevice::devType
-472 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-480 (int (*)(...))QOpenGLWindow::_ZThn40_NK13QOpenGLWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-488 (int (*)(...))QPaintDevice::initPainter
-496 (int (*)(...))QOpenGLWindow::_ZThn40_NK13QOpenGLWindow10redirectedEP6QPoint
-504 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QOpenGLWindow
- size=64 align=8
- base size=64 base align=8
-QOpenGLWindow (0x0x7f5a246e6af8) 0
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 16u)
- QPaintDeviceWindow (0x0x7f5a24036e70) 0
- primary-for QOpenGLWindow (0x0x7f5a246e6af8)
- QWindow (0x0x7f5a24036ee0) 0
- primary-for QPaintDeviceWindow (0x0x7f5a24036e70)
- QObject (0x0x7f5a23fce600) 0
- primary-for QWindow (0x0x7f5a24036ee0)
- QSurface (0x0x7f5a23fce660) 16
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 384u)
- QPaintDevice (0x0x7f5a23fce6c0) 40
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 448u)
-
-Class QPageSize
- size=8 align=8
- base size=8 base align=8
-QPageSize (0x0x7f5a23fce780) 0
-
-Class QPageLayout
- size=8 align=8
- base size=8 base align=8
-QPageLayout (0x0x7f5a240b3180) 0
-
-Class QPagedPaintDevice::Margins
- size=32 align=8
- base size=32 base align=8
-QPagedPaintDevice::Margins (0x0x7f5a240b3ba0) 0
-
-Vtable for QPagedPaintDevice
-QPagedPaintDevice::_ZTV17QPagedPaintDevice: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QPagedPaintDevice)
-16 0u
-24 0u
-32 (int (*)(...))QPaintDevice::devType
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))QPagedPaintDevice::setPageSize
-96 (int (*)(...))QPagedPaintDevice::setPageSizeMM
-104 (int (*)(...))QPagedPaintDevice::setMargins
-
-Class QPagedPaintDevice
- size=32 align=8
- base size=32 base align=8
-QPagedPaintDevice (0x0x7f5a240a0820) 0
- vptr=((& QPagedPaintDevice::_ZTV17QPagedPaintDevice) + 16u)
- QPaintDevice (0x0x7f5a240b3b40) 0
- primary-for QPagedPaintDevice (0x0x7f5a240a0820)
-
-Class QPainter::PixmapFragment
- size=80 align=8
- base size=80 base align=8
-QPainter::PixmapFragment (0x0x7f5a240b3c60) 0
-
-Class QPainter
- size=8 align=8
- base size=8 base align=8
-QPainter (0x0x7f5a240b3c00) 0
-
-Class QTextItem
- size=1 align=1
- base size=0 base align=1
-QTextItem (0x0x7f5a23da7a80) 0 empty
-
-Vtable for QPaintEngine
-QPaintEngine::_ZTV12QPaintEngine: 24u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QPaintEngine)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))QPaintEngine::drawRects
-64 (int (*)(...))QPaintEngine::drawRects
-72 (int (*)(...))QPaintEngine::drawLines
-80 (int (*)(...))QPaintEngine::drawLines
-88 (int (*)(...))QPaintEngine::drawEllipse
-96 (int (*)(...))QPaintEngine::drawEllipse
-104 (int (*)(...))QPaintEngine::drawPath
-112 (int (*)(...))QPaintEngine::drawPoints
-120 (int (*)(...))QPaintEngine::drawPoints
-128 (int (*)(...))QPaintEngine::drawPolygon
-136 (int (*)(...))QPaintEngine::drawPolygon
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QPaintEngine::drawTextItem
-160 (int (*)(...))QPaintEngine::drawTiledPixmap
-168 (int (*)(...))QPaintEngine::drawImage
-176 (int (*)(...))QPaintEngine::coordinateOffset
-184 (int (*)(...))__cxa_pure_virtual
-
-Class QPaintEngine
- size=32 align=8
- base size=32 base align=8
-QPaintEngine (0x0x7f5a23da7d20) 0
- vptr=((& QPaintEngine::_ZTV12QPaintEngine) + 16u)
-
-Class QPaintEngineState
- size=4 align=4
- base size=4 base align=4
-QPaintEngineState (0x0x7f5a23f73000) 0
-
-Class QPdfWriter::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPdfWriter::QPrivateSignal (0x0x7f5a23f73420) 0 empty
-
-Vtable for QPdfWriter
-QPdfWriter::_ZTV10QPdfWriter: 34u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QPdfWriter)
-16 (int (*)(...))QPdfWriter::metaObject
-24 (int (*)(...))QPdfWriter::qt_metacast
-32 (int (*)(...))QPdfWriter::qt_metacall
-40 (int (*)(...))QPdfWriter::~QPdfWriter
-48 (int (*)(...))QPdfWriter::~QPdfWriter
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPdfWriter::newPage
-120 (int (*)(...))QPdfWriter::setPageSize
-128 (int (*)(...))QPdfWriter::setPageSizeMM
-136 (int (*)(...))QPdfWriter::setMargins
-144 (int (*)(...))QPdfWriter::paintEngine
-152 (int (*)(...))QPdfWriter::metric
-160 (int (*)(...))-16
-168 (int (*)(...))(& _ZTI10QPdfWriter)
-176 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriterD1Ev
-184 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriterD0Ev
-192 (int (*)(...))QPaintDevice::devType
-200 (int (*)(...))QPdfWriter::_ZThn16_NK10QPdfWriter11paintEngineEv
-208 (int (*)(...))QPdfWriter::_ZThn16_NK10QPdfWriter6metricEN12QPaintDevice17PaintDeviceMetricE
-216 (int (*)(...))QPaintDevice::initPainter
-224 (int (*)(...))QPaintDevice::redirected
-232 (int (*)(...))QPaintDevice::sharedPainter
-240 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter7newPageEv
-248 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter11setPageSizeEN17QPagedPaintDevice8PageSizeE
-256 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter13setPageSizeMMERK6QSizeF
-264 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter10setMarginsERKN17QPagedPaintDevice7MarginsE
-
-Class QPdfWriter
- size=48 align=8
- base size=48 base align=8
-QPdfWriter (0x0x7f5a23bb3e00) 0
- vptr=((& QPdfWriter::_ZTV10QPdfWriter) + 16u)
- QObject (0x0x7f5a23f73360) 0
- primary-for QPdfWriter (0x0x7f5a23bb3e00)
- QPagedPaintDevice (0x0x7f5a23f02888) 16
- vptr=((& QPdfWriter::_ZTV10QPdfWriter) + 176u)
- QPaintDevice (0x0x7f5a23f733c0) 16
- primary-for QPagedPaintDevice (0x0x7f5a23f02888)
-
-Vtable for QPicture
-QPicture::_ZTV8QPicture: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QPicture)
-16 (int (*)(...))QPicture::~QPicture
-24 (int (*)(...))QPicture::~QPicture
-32 (int (*)(...))QPicture::devType
-40 (int (*)(...))QPicture::paintEngine
-48 (int (*)(...))QPicture::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))QPicture::setData
-
-Class QPicture
- size=32 align=8
- base size=32 base align=8
-QPicture (0x0x7f5a23f028f0) 0
- vptr=((& QPicture::_ZTV8QPicture) + 16u)
- QPaintDevice (0x0x7f5a23f735a0) 0
- primary-for QPicture (0x0x7f5a23f028f0)
-
-Class QPictureIO
- size=8 align=8
- base size=8 base align=8
-QPictureIO (0x0x7f5a23f738a0) 0
-
-Class QPictureFormatPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPictureFormatPlugin::QPrivateSignal (0x0x7f5a23f73960) 0 empty
-
-Vtable for QPictureFormatPlugin
-QPictureFormatPlugin::_ZTV20QPictureFormatPlugin: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QPictureFormatPlugin)
-16 (int (*)(...))QPictureFormatPlugin::metaObject
-24 (int (*)(...))QPictureFormatPlugin::qt_metacast
-32 (int (*)(...))QPictureFormatPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPictureFormatPlugin::loadPicture
-120 (int (*)(...))QPictureFormatPlugin::savePicture
-128 (int (*)(...))__cxa_pure_virtual
-
-Class QPictureFormatPlugin
- size=16 align=8
- base size=16 base align=8
-QPictureFormatPlugin (0x0x7f5a23f02af8) 0
- vptr=((& QPictureFormatPlugin::_ZTV20QPictureFormatPlugin) + 16u)
- QObject (0x0x7f5a23f73900) 0
- primary-for QPictureFormatPlugin (0x0x7f5a23f02af8)
-
-Class QPixmapCache::Key
- size=8 align=8
- base size=8 base align=8
-QPixmapCache::Key (0x0x7f5a23f73a20) 0
-
-Class QPixmapCache
- size=1 align=1
- base size=0 base align=1
-QPixmapCache (0x0x7f5a23f739c0) 0 empty
-
-Class QRasterWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRasterWindow::QPrivateSignal (0x0x7f5a23cb4ba0) 0 empty
-
-Vtable for QRasterWindow
-QRasterWindow::_ZTV13QRasterWindow: 59u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QRasterWindow)
-16 (int (*)(...))QRasterWindow::metaObject
-24 (int (*)(...))QRasterWindow::qt_metacast
-32 (int (*)(...))QRasterWindow::qt_metacall
-40 (int (*)(...))QRasterWindow::~QRasterWindow
-48 (int (*)(...))QRasterWindow::~QRasterWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QPaintDeviceWindow::paintEvent
-304 (int (*)(...))QRasterWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))QRasterWindow::redirected
-328 (int (*)(...))-16
-336 (int (*)(...))(& _ZTI13QRasterWindow)
-344 (int (*)(...))QRasterWindow::_ZThn16_N13QRasterWindowD1Ev
-352 (int (*)(...))QRasterWindow::_ZThn16_N13QRasterWindowD0Ev
-360 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-368 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-376 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-384 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-392 (int (*)(...))-40
-400 (int (*)(...))(& _ZTI13QRasterWindow)
-408 (int (*)(...))QRasterWindow::_ZThn40_N13QRasterWindowD1Ev
-416 (int (*)(...))QRasterWindow::_ZThn40_N13QRasterWindowD0Ev
-424 (int (*)(...))QPaintDevice::devType
-432 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-440 (int (*)(...))QRasterWindow::_ZThn40_NK13QRasterWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-448 (int (*)(...))QPaintDevice::initPainter
-456 (int (*)(...))QRasterWindow::_ZThn40_NK13QRasterWindow10redirectedEP6QPoint
-464 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QRasterWindow
- size=64 align=8
- base size=64 base align=8
-QRasterWindow (0x0x7f5a23cc1208) 0
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 16u)
- QPaintDeviceWindow (0x0x7f5a23cbbbd0) 0
- primary-for QRasterWindow (0x0x7f5a23cc1208)
- QWindow (0x0x7f5a23cbbc40) 0
- primary-for QPaintDeviceWindow (0x0x7f5a23cbbbd0)
- QObject (0x0x7f5a23cb4a80) 0
- primary-for QWindow (0x0x7f5a23cbbc40)
- QSurface (0x0x7f5a23cb4ae0) 16
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 344u)
- QPaintDevice (0x0x7f5a23cb4b40) 40
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 408u)
-
-Class QScreen::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QScreen::QPrivateSignal (0x0x7f5a23cb4c60) 0 empty
-
-Vtable for QScreen
-QScreen::_ZTV7QScreen: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QScreen)
-16 (int (*)(...))QScreen::metaObject
-24 (int (*)(...))QScreen::qt_metacast
-32 (int (*)(...))QScreen::qt_metacall
-40 (int (*)(...))QScreen::~QScreen
-48 (int (*)(...))QScreen::~QScreen
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QScreen
- size=16 align=8
- base size=16 base align=8
-QScreen (0x0x7f5a23cc12d8) 0
- vptr=((& QScreen::_ZTV7QScreen) + 16u)
- QObject (0x0x7f5a23cb4c00) 0
- primary-for QScreen (0x0x7f5a23cc12d8)
-
-Class QSessionManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSessionManager::QPrivateSignal (0x0x7f5a23cb4d20) 0 empty
-
-Vtable for QSessionManager
-QSessionManager::_ZTV15QSessionManager: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSessionManager)
-16 (int (*)(...))QSessionManager::metaObject
-24 (int (*)(...))QSessionManager::qt_metacast
-32 (int (*)(...))QSessionManager::qt_metacall
-40 (int (*)(...))QSessionManager::~QSessionManager
-48 (int (*)(...))QSessionManager::~QSessionManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSessionManager
- size=16 align=8
- base size=16 base align=8
-QSessionManager (0x0x7f5a23cc1340) 0
- vptr=((& QSessionManager::_ZTV15QSessionManager) + 16u)
- QObject (0x0x7f5a23cb4cc0) 0
- primary-for QSessionManager (0x0x7f5a23cc1340)
-
-Vtable for QStandardItem
-QStandardItem::_ZTV13QStandardItem: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QStandardItem)
-16 (int (*)(...))QStandardItem::~QStandardItem
-24 (int (*)(...))QStandardItem::~QStandardItem
-32 (int (*)(...))QStandardItem::data
-40 (int (*)(...))QStandardItem::setData
-48 (int (*)(...))QStandardItem::clone
-56 (int (*)(...))QStandardItem::type
-64 (int (*)(...))QStandardItem::read
-72 (int (*)(...))QStandardItem::write
-80 (int (*)(...))QStandardItem::operator<
-
-Class QStandardItem
- size=16 align=8
- base size=16 base align=8
-QStandardItem (0x0x7f5a23cb4d80) 0
- vptr=((& QStandardItem::_ZTV13QStandardItem) + 16u)
-
-Class QStandardItemModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStandardItemModel::QPrivateSignal (0x0x7f5a23d524e0) 0 empty
-
-Vtable for QStandardItemModel
-QStandardItemModel::_ZTV18QStandardItemModel: 48u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QStandardItemModel)
-16 (int (*)(...))QStandardItemModel::metaObject
-24 (int (*)(...))QStandardItemModel::qt_metacast
-32 (int (*)(...))QStandardItemModel::qt_metacall
-40 (int (*)(...))QStandardItemModel::~QStandardItemModel
-48 (int (*)(...))QStandardItemModel::~QStandardItemModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QStandardItemModel::index
-120 (int (*)(...))QStandardItemModel::parent
-128 (int (*)(...))QStandardItemModel::sibling
-136 (int (*)(...))QStandardItemModel::rowCount
-144 (int (*)(...))QStandardItemModel::columnCount
-152 (int (*)(...))QStandardItemModel::hasChildren
-160 (int (*)(...))QStandardItemModel::data
-168 (int (*)(...))QStandardItemModel::setData
-176 (int (*)(...))QStandardItemModel::headerData
-184 (int (*)(...))QStandardItemModel::setHeaderData
-192 (int (*)(...))QStandardItemModel::itemData
-200 (int (*)(...))QStandardItemModel::setItemData
-208 (int (*)(...))QStandardItemModel::mimeTypes
-216 (int (*)(...))QStandardItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QStandardItemModel::dropMimeData
-240 (int (*)(...))QStandardItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QStandardItemModel::insertRows
-264 (int (*)(...))QStandardItemModel::insertColumns
-272 (int (*)(...))QStandardItemModel::removeRows
-280 (int (*)(...))QStandardItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QStandardItemModel::flags
-328 (int (*)(...))QStandardItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QStandardItemModel
- size=16 align=8
- base size=16 base align=8
-QStandardItemModel (0x0x7f5a23cc19c0) 0
- vptr=((& QStandardItemModel::_ZTV18QStandardItemModel) + 16u)
- QAbstractItemModel (0x0x7f5a23cc1a28) 0
- primary-for QStandardItemModel (0x0x7f5a23cc19c0)
- QObject (0x0x7f5a23d52480) 0
- primary-for QAbstractItemModel (0x0x7f5a23cc1a28)
-
-Class QStaticText
- size=8 align=8
- base size=8 base align=8
-QStaticText (0x0x7f5a23d52540) 0
-
-Class QStyleHints::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStyleHints::QPrivateSignal (0x0x7f5a23d529c0) 0 empty
-
-Vtable for QStyleHints
-QStyleHints::_ZTV11QStyleHints: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QStyleHints)
-16 (int (*)(...))QStyleHints::metaObject
-24 (int (*)(...))QStyleHints::qt_metacast
-32 (int (*)(...))QStyleHints::qt_metacall
-40 (int (*)(...))QStyleHints::~QStyleHints
-48 (int (*)(...))QStyleHints::~QStyleHints
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QStyleHints
- size=16 align=8
- base size=16 base align=8
-QStyleHints (0x0x7f5a23cc1c30) 0
- vptr=((& QStyleHints::_ZTV11QStyleHints) + 16u)
- QObject (0x0x7f5a23d52960) 0
- primary-for QStyleHints (0x0x7f5a23cc1c30)
-
-Class QTextObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextObject::QPrivateSignal (0x0x7f5a23d52a80) 0 empty
-
-Vtable for QTextObject
-QTextObject::_ZTV11QTextObject: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTextObject)
-16 (int (*)(...))QTextObject::metaObject
-24 (int (*)(...))QTextObject::qt_metacast
-32 (int (*)(...))QTextObject::qt_metacall
-40 (int (*)(...))QTextObject::~QTextObject
-48 (int (*)(...))QTextObject::~QTextObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextObject
- size=16 align=8
- base size=16 base align=8
-QTextObject (0x0x7f5a23cc1c98) 0
- vptr=((& QTextObject::_ZTV11QTextObject) + 16u)
- QObject (0x0x7f5a23d52a20) 0
- primary-for QTextObject (0x0x7f5a23cc1c98)
-
-Class QTextBlockGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextBlockGroup::QPrivateSignal (0x0x7f5a23d52b40) 0 empty
-
-Vtable for QTextBlockGroup
-QTextBlockGroup::_ZTV15QTextBlockGroup: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QTextBlockGroup)
-16 (int (*)(...))QTextBlockGroup::metaObject
-24 (int (*)(...))QTextBlockGroup::qt_metacast
-32 (int (*)(...))QTextBlockGroup::qt_metacall
-40 (int (*)(...))QTextBlockGroup::~QTextBlockGroup
-48 (int (*)(...))QTextBlockGroup::~QTextBlockGroup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextBlockGroup::blockInserted
-120 (int (*)(...))QTextBlockGroup::blockRemoved
-128 (int (*)(...))QTextBlockGroup::blockFormatChanged
-
-Class QTextBlockGroup
- size=16 align=8
- base size=16 base align=8
-QTextBlockGroup (0x0x7f5a23cc1d00) 0
- vptr=((& QTextBlockGroup::_ZTV15QTextBlockGroup) + 16u)
- QTextObject (0x0x7f5a23cc1d68) 0
- primary-for QTextBlockGroup (0x0x7f5a23cc1d00)
- QObject (0x0x7f5a23d52ae0) 0
- primary-for QTextObject (0x0x7f5a23cc1d68)
-
-Vtable for QTextFrameLayoutData
-QTextFrameLayoutData::_ZTV20QTextFrameLayoutData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTextFrameLayoutData)
-16 (int (*)(...))QTextFrameLayoutData::~QTextFrameLayoutData
-24 (int (*)(...))QTextFrameLayoutData::~QTextFrameLayoutData
-
-Class QTextFrameLayoutData
- size=8 align=8
- base size=8 base align=8
-QTextFrameLayoutData (0x0x7f5a23d52ba0) 0 nearly-empty
- vptr=((& QTextFrameLayoutData::_ZTV20QTextFrameLayoutData) + 16u)
-
-Class QTextFrame::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextFrame::QPrivateSignal (0x0x7f5a23d52c60) 0 empty
-
-Class QTextFrame::iterator
- size=32 align=8
- base size=28 base align=8
-QTextFrame::iterator (0x0x7f5a23d52cc0) 0
-
-Vtable for QTextFrame
-QTextFrame::_ZTV10QTextFrame: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextFrame)
-16 (int (*)(...))QTextFrame::metaObject
-24 (int (*)(...))QTextFrame::qt_metacast
-32 (int (*)(...))QTextFrame::qt_metacall
-40 (int (*)(...))QTextFrame::~QTextFrame
-48 (int (*)(...))QTextFrame::~QTextFrame
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextFrame
- size=16 align=8
- base size=16 base align=8
-QTextFrame (0x0x7f5a23cc1dd0) 0
- vptr=((& QTextFrame::_ZTV10QTextFrame) + 16u)
- QTextObject (0x0x7f5a23cc1e38) 0
- primary-for QTextFrame (0x0x7f5a23cc1dd0)
- QObject (0x0x7f5a23d52c00) 0
- primary-for QTextObject (0x0x7f5a23cc1e38)
-
-Vtable for QTextBlockUserData
-QTextBlockUserData::_ZTV18QTextBlockUserData: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QTextBlockUserData)
-16 (int (*)(...))QTextBlockUserData::~QTextBlockUserData
-24 (int (*)(...))QTextBlockUserData::~QTextBlockUserData
-
-Class QTextBlockUserData
- size=8 align=8
- base size=8 base align=8
-QTextBlockUserData (0x0x7f5a23d52f60) 0 nearly-empty
- vptr=((& QTextBlockUserData::_ZTV18QTextBlockUserData) + 16u)
-
-Class QTextBlock::iterator
- size=24 align=8
- base size=20 base align=8
-QTextBlock::iterator (0x0x7f5a23a9d060) 0
-
-Class QTextBlock
- size=16 align=8
- base size=12 base align=8
-QTextBlock (0x0x7f5a23a9d000) 0
-
-Class QTextFragment
- size=16 align=8
- base size=16 base align=8
-QTextFragment (0x0x7f5a23a9d540) 0
-
-Class QSyntaxHighlighter::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSyntaxHighlighter::QPrivateSignal (0x0x7f5a23a9d840) 0 empty
-
-Vtable for QSyntaxHighlighter
-QSyntaxHighlighter::_ZTV18QSyntaxHighlighter: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSyntaxHighlighter)
-16 (int (*)(...))QSyntaxHighlighter::metaObject
-24 (int (*)(...))QSyntaxHighlighter::qt_metacast
-32 (int (*)(...))QSyntaxHighlighter::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QSyntaxHighlighter
- size=16 align=8
- base size=16 base align=8
-QSyntaxHighlighter (0x0x7f5a23a97548) 0
- vptr=((& QSyntaxHighlighter::_ZTV18QSyntaxHighlighter) + 16u)
- QObject (0x0x7f5a23a9d7e0) 0
- primary-for QSyntaxHighlighter (0x0x7f5a23a97548)
-
-Class QTextDocumentFragment
- size=8 align=8
- base size=8 base align=8
-QTextDocumentFragment (0x0x7f5a23a9d8a0) 0
-
-Class QTextDocumentWriter
- size=8 align=8
- base size=8 base align=8
-QTextDocumentWriter (0x0x7f5a23a9d900) 0
-
-Class QTextList::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextList::QPrivateSignal (0x0x7f5a23a9d9c0) 0 empty
-
-Vtable for QTextList
-QTextList::_ZTV9QTextList: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QTextList)
-16 (int (*)(...))QTextList::metaObject
-24 (int (*)(...))QTextList::qt_metacast
-32 (int (*)(...))QTextList::qt_metacall
-40 (int (*)(...))QTextList::~QTextList
-48 (int (*)(...))QTextList::~QTextList
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextBlockGroup::blockInserted
-120 (int (*)(...))QTextBlockGroup::blockRemoved
-128 (int (*)(...))QTextBlockGroup::blockFormatChanged
-
-Class QTextList
- size=16 align=8
- base size=16 base align=8
-QTextList (0x0x7f5a23a975b0) 0
- vptr=((& QTextList::_ZTV9QTextList) + 16u)
- QTextBlockGroup (0x0x7f5a23a97618) 0
- primary-for QTextList (0x0x7f5a23a975b0)
- QTextObject (0x0x7f5a23a97680) 0
- primary-for QTextBlockGroup (0x0x7f5a23a97618)
- QObject (0x0x7f5a23a9d960) 0
- primary-for QTextObject (0x0x7f5a23a97680)
-
-Class QTextTableCell
- size=16 align=8
- base size=12 base align=8
-QTextTableCell (0x0x7f5a23a9da20) 0
-
-Class QTextTable::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextTable::QPrivateSignal (0x0x7f5a23a9dae0) 0 empty
-
-Vtable for QTextTable
-QTextTable::_ZTV10QTextTable: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextTable)
-16 (int (*)(...))QTextTable::metaObject
-24 (int (*)(...))QTextTable::qt_metacast
-32 (int (*)(...))QTextTable::qt_metacall
-40 (int (*)(...))QTextTable::~QTextTable
-48 (int (*)(...))QTextTable::~QTextTable
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextTable
- size=16 align=8
- base size=16 base align=8
-QTextTable (0x0x7f5a23a976e8) 0
- vptr=((& QTextTable::_ZTV10QTextTable) + 16u)
- QTextFrame (0x0x7f5a23a97750) 0
- primary-for QTextTable (0x0x7f5a23a976e8)
- QTextObject (0x0x7f5a23a977b8) 0
- primary-for QTextFrame (0x0x7f5a23a97750)
- QObject (0x0x7f5a23a9da80) 0
- primary-for QTextObject (0x0x7f5a23a977b8)
-
-Class QValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QValidator::QPrivateSignal (0x0x7f5a23a9dba0) 0 empty
-
-Vtable for QValidator
-QValidator::_ZTV10QValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QValidator)
-16 (int (*)(...))QValidator::metaObject
-24 (int (*)(...))QValidator::qt_metacast
-32 (int (*)(...))QValidator::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QValidator::fixup
-
-Class QValidator
- size=16 align=8
- base size=16 base align=8
-QValidator (0x0x7f5a23a97820) 0
- vptr=((& QValidator::_ZTV10QValidator) + 16u)
- QObject (0x0x7f5a23a9db40) 0
- primary-for QValidator (0x0x7f5a23a97820)
-
-Class QIntValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIntValidator::QPrivateSignal (0x0x7f5a23a9dc60) 0 empty
-
-Vtable for QIntValidator
-QIntValidator::_ZTV13QIntValidator: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QIntValidator)
-16 (int (*)(...))QIntValidator::metaObject
-24 (int (*)(...))QIntValidator::qt_metacast
-32 (int (*)(...))QIntValidator::qt_metacall
-40 (int (*)(...))QIntValidator::~QIntValidator
-48 (int (*)(...))QIntValidator::~QIntValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIntValidator::validate
-120 (int (*)(...))QIntValidator::fixup
-128 (int (*)(...))QIntValidator::setRange
-
-Class QIntValidator
- size=24 align=8
- base size=24 base align=8
-QIntValidator (0x0x7f5a23a97888) 0
- vptr=((& QIntValidator::_ZTV13QIntValidator) + 16u)
- QValidator (0x0x7f5a23a978f0) 0
- primary-for QIntValidator (0x0x7f5a23a97888)
- QObject (0x0x7f5a23a9dc00) 0
- primary-for QValidator (0x0x7f5a23a978f0)
-
-Class QDoubleValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDoubleValidator::QPrivateSignal (0x0x7f5a23a9dd20) 0 empty
-
-Vtable for QDoubleValidator
-QDoubleValidator::_ZTV16QDoubleValidator: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QDoubleValidator)
-16 (int (*)(...))QDoubleValidator::metaObject
-24 (int (*)(...))QDoubleValidator::qt_metacast
-32 (int (*)(...))QDoubleValidator::qt_metacall
-40 (int (*)(...))QDoubleValidator::~QDoubleValidator
-48 (int (*)(...))QDoubleValidator::~QDoubleValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QDoubleValidator::validate
-120 (int (*)(...))QValidator::fixup
-128 (int (*)(...))QDoubleValidator::setRange
-
-Class QDoubleValidator
- size=40 align=8
- base size=36 base align=8
-QDoubleValidator (0x0x7f5a23a97958) 0
- vptr=((& QDoubleValidator::_ZTV16QDoubleValidator) + 16u)
- QValidator (0x0x7f5a23a979c0) 0
- primary-for QDoubleValidator (0x0x7f5a23a97958)
- QObject (0x0x7f5a23a9dcc0) 0
- primary-for QValidator (0x0x7f5a23a979c0)
-
-Class QRegExpValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRegExpValidator::QPrivateSignal (0x0x7f5a23a9de40) 0 empty
-
-Vtable for QRegExpValidator
-QRegExpValidator::_ZTV16QRegExpValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QRegExpValidator)
-16 (int (*)(...))QRegExpValidator::metaObject
-24 (int (*)(...))QRegExpValidator::qt_metacast
-32 (int (*)(...))QRegExpValidator::qt_metacall
-40 (int (*)(...))QRegExpValidator::~QRegExpValidator
-48 (int (*)(...))QRegExpValidator::~QRegExpValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QRegExpValidator::validate
-120 (int (*)(...))QValidator::fixup
-
-Class QRegExpValidator
- size=24 align=8
- base size=24 base align=8
-QRegExpValidator (0x0x7f5a23a97a28) 0
- vptr=((& QRegExpValidator::_ZTV16QRegExpValidator) + 16u)
- QValidator (0x0x7f5a23a97a90) 0
- primary-for QRegExpValidator (0x0x7f5a23a97a28)
- QObject (0x0x7f5a23a9dde0) 0
- primary-for QValidator (0x0x7f5a23a97a90)
-
-Class QRegularExpressionValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRegularExpressionValidator::QPrivateSignal (0x0x7f5a23a9df00) 0 empty
-
-Vtable for QRegularExpressionValidator
-QRegularExpressionValidator::_ZTV27QRegularExpressionValidator: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QRegularExpressionValidator)
-16 (int (*)(...))QRegularExpressionValidator::metaObject
-24 (int (*)(...))QRegularExpressionValidator::qt_metacast
-32 (int (*)(...))QRegularExpressionValidator::qt_metacall
-40 (int (*)(...))QRegularExpressionValidator::~QRegularExpressionValidator
-48 (int (*)(...))QRegularExpressionValidator::~QRegularExpressionValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QRegularExpressionValidator::validate
-120 (int (*)(...))QValidator::fixup
-
-Class QRegularExpressionValidator
- size=16 align=8
- base size=16 base align=8
-QRegularExpressionValidator (0x0x7f5a23a97af8) 0
- vptr=((& QRegularExpressionValidator::_ZTV27QRegularExpressionValidator) + 16u)
- QValidator (0x0x7f5a23a97b60) 0
- primary-for QRegularExpressionValidator (0x0x7f5a23a97af8)
- QObject (0x0x7f5a23a9dea0) 0
- primary-for QValidator (0x0x7f5a23a97b60)
-
-Class QNetworkRequest
- size=8 align=8
- base size=8 base align=8
-QNetworkRequest (0x0x7f5a23a9df60) 0
-
-Class QNetworkCacheMetaData
- size=8 align=8
- base size=8 base align=8
-QNetworkCacheMetaData (0x0x7f5a237a94e0) 0
-
-Class QAbstractNetworkCache::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractNetworkCache::QPrivateSignal (0x0x7f5a237a9ba0) 0 empty
-
-Vtable for QAbstractNetworkCache
-QAbstractNetworkCache::_ZTV21QAbstractNetworkCache: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QAbstractNetworkCache)
-16 (int (*)(...))QAbstractNetworkCache::metaObject
-24 (int (*)(...))QAbstractNetworkCache::qt_metacast
-32 (int (*)(...))QAbstractNetworkCache::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractNetworkCache
- size=16 align=8
- base size=16 base align=8
-QAbstractNetworkCache (0x0x7f5a237ee3a8) 0
- vptr=((& QAbstractNetworkCache::_ZTV21QAbstractNetworkCache) + 16u)
- QObject (0x0x7f5a237a9b40) 0
- primary-for QAbstractNetworkCache (0x0x7f5a237ee3a8)
-
-Class QAbstractSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractSocket::QPrivateSignal (0x0x7f5a237a9c60) 0 empty
-
-Vtable for QAbstractSocket
-QAbstractSocket::_ZTV15QAbstractSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QAbstractSocket)
-16 (int (*)(...))QAbstractSocket::metaObject
-24 (int (*)(...))QAbstractSocket::qt_metacast
-32 (int (*)(...))QAbstractSocket::qt_metacall
-40 (int (*)(...))QAbstractSocket::~QAbstractSocket
-48 (int (*)(...))QAbstractSocket::~QAbstractSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QAbstractSocket
- size=16 align=8
- base size=16 base align=8
-QAbstractSocket (0x0x7f5a237ee410) 0
- vptr=((& QAbstractSocket::_ZTV15QAbstractSocket) + 16u)
- QIODevice (0x0x7f5a237ee478) 0
- primary-for QAbstractSocket (0x0x7f5a237ee410)
- QObject (0x0x7f5a237a9c00) 0
- primary-for QIODevice (0x0x7f5a237ee478)
-
-Class QAuthenticator
- size=8 align=8
- base size=8 base align=8
-QAuthenticator (0x0x7f5a2389d240) 0
-
-Class QDnsDomainNameRecord
- size=8 align=8
- base size=8 base align=8
-QDnsDomainNameRecord (0x0x7f5a2389d2a0) 0
-
-Class QDnsHostAddressRecord
- size=8 align=8
- base size=8 base align=8
-QDnsHostAddressRecord (0x0x7f5a2389d5a0) 0
-
-Class QDnsMailExchangeRecord
- size=8 align=8
- base size=8 base align=8
-QDnsMailExchangeRecord (0x0x7f5a2389d8a0) 0
-
-Class QDnsServiceRecord
- size=8 align=8
- base size=8 base align=8
-QDnsServiceRecord (0x0x7f5a2389dba0) 0
-
-Class QDnsTextRecord
- size=8 align=8
- base size=8 base align=8
-QDnsTextRecord (0x0x7f5a2389dea0) 0
-
-Class QDnsLookup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDnsLookup::QPrivateSignal (0x0x7f5a2392f240) 0 empty
-
-Vtable for QDnsLookup
-QDnsLookup::_ZTV10QDnsLookup: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QDnsLookup)
-16 (int (*)(...))QDnsLookup::metaObject
-24 (int (*)(...))QDnsLookup::qt_metacast
-32 (int (*)(...))QDnsLookup::qt_metacall
-40 (int (*)(...))QDnsLookup::~QDnsLookup
-48 (int (*)(...))QDnsLookup::~QDnsLookup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDnsLookup
- size=16 align=8
- base size=16 base align=8
-QDnsLookup (0x0x7f5a237eeea0) 0
- vptr=((& QDnsLookup::_ZTV10QDnsLookup) + 16u)
- QObject (0x0x7f5a2392f1e0) 0
- primary-for QDnsLookup (0x0x7f5a237eeea0)
-
-Class QTcpSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTcpSocket::QPrivateSignal (0x0x7f5a2392f300) 0 empty
-
-Vtable for QTcpSocket
-QTcpSocket::_ZTV10QTcpSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTcpSocket)
-16 (int (*)(...))QTcpSocket::metaObject
-24 (int (*)(...))QTcpSocket::qt_metacast
-32 (int (*)(...))QTcpSocket::qt_metacall
-40 (int (*)(...))QTcpSocket::~QTcpSocket
-48 (int (*)(...))QTcpSocket::~QTcpSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QTcpSocket
- size=16 align=8
- base size=16 base align=8
-QTcpSocket (0x0x7f5a237eef08) 0
- vptr=((& QTcpSocket::_ZTV10QTcpSocket) + 16u)
- QAbstractSocket (0x0x7f5a237eef70) 0
- primary-for QTcpSocket (0x0x7f5a237eef08)
- QIODevice (0x0x7f5a2394e000) 0
- primary-for QAbstractSocket (0x0x7f5a237eef70)
- QObject (0x0x7f5a2392f2a0) 0
- primary-for QIODevice (0x0x7f5a2394e000)
-
-Class QSslCertificate
- size=8 align=8
- base size=8 base align=8
-QSslCertificate (0x0x7f5a2392f4e0) 0
-
-Class QSslError
- size=8 align=8
- base size=8 base align=8
-QSslError (0x0x7f5a2392f900) 0
-
-Class QSslSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSslSocket::QPrivateSignal (0x0x7f5a235f72a0) 0 empty
-
-Vtable for QSslSocket
-QSslSocket::_ZTV10QSslSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QSslSocket)
-16 (int (*)(...))QSslSocket::metaObject
-24 (int (*)(...))QSslSocket::qt_metacast
-32 (int (*)(...))QSslSocket::qt_metacall
-40 (int (*)(...))QSslSocket::~QSslSocket
-48 (int (*)(...))QSslSocket::~QSslSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QSslSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QSslSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QSslSocket::bytesAvailable
-184 (int (*)(...))QSslSocket::bytesToWrite
-192 (int (*)(...))QSslSocket::canReadLine
-200 (int (*)(...))QSslSocket::waitForReadyRead
-208 (int (*)(...))QSslSocket::waitForBytesWritten
-216 (int (*)(...))QSslSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QSslSocket::writeData
-240 (int (*)(...))QSslSocket::resume
-248 (int (*)(...))QSslSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QSslSocket::disconnectFromHost
-272 (int (*)(...))QSslSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QSslSocket::setSocketDescriptor
-296 (int (*)(...))QSslSocket::setSocketOption
-304 (int (*)(...))QSslSocket::socketOption
-312 (int (*)(...))QSslSocket::waitForConnected
-320 (int (*)(...))QSslSocket::waitForDisconnected
-
-Class QSslSocket
- size=16 align=8
- base size=16 base align=8
-QSslSocket (0x0x7f5a2394e9c0) 0
- vptr=((& QSslSocket::_ZTV10QSslSocket) + 16u)
- QTcpSocket (0x0x7f5a2394ea28) 0
- primary-for QSslSocket (0x0x7f5a2394e9c0)
- QAbstractSocket (0x0x7f5a2394ea90) 0
- primary-for QTcpSocket (0x0x7f5a2394ea28)
- QIODevice (0x0x7f5a2394eaf8) 0
- primary-for QAbstractSocket (0x0x7f5a2394ea90)
- QObject (0x0x7f5a235f7240) 0
- primary-for QIODevice (0x0x7f5a2394eaf8)
-
-Class QDtlsClientVerifier::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDtlsClientVerifier::QPrivateSignal (0x0x7f5a235f7360) 0 empty
-
-Class QDtlsClientVerifier::GeneratorParameters
- size=16 align=8
- base size=16 base align=8
-QDtlsClientVerifier::GeneratorParameters (0x0x7f5a235f73c0) 0
-
-Vtable for QDtlsClientVerifier
-QDtlsClientVerifier::_ZTV19QDtlsClientVerifier: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QDtlsClientVerifier)
-16 (int (*)(...))QDtlsClientVerifier::metaObject
-24 (int (*)(...))QDtlsClientVerifier::qt_metacast
-32 (int (*)(...))QDtlsClientVerifier::qt_metacall
-40 (int (*)(...))QDtlsClientVerifier::~QDtlsClientVerifier
-48 (int (*)(...))QDtlsClientVerifier::~QDtlsClientVerifier
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDtlsClientVerifier
- size=16 align=8
- base size=16 base align=8
-QDtlsClientVerifier (0x0x7f5a2394eb60) 0
- vptr=((& QDtlsClientVerifier::_ZTV19QDtlsClientVerifier) + 16u)
- QObject (0x0x7f5a235f7300) 0
- primary-for QDtlsClientVerifier (0x0x7f5a2394eb60)
-
-Class QDtls::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDtls::QPrivateSignal (0x0x7f5a235f7480) 0 empty
-
-Vtable for QDtls
-QDtls::_ZTV5QDtls: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QDtls)
-16 (int (*)(...))QDtls::metaObject
-24 (int (*)(...))QDtls::qt_metacast
-32 (int (*)(...))QDtls::qt_metacall
-40 (int (*)(...))QDtls::~QDtls
-48 (int (*)(...))QDtls::~QDtls
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDtls
- size=16 align=8
- base size=16 base align=8
-QDtls (0x0x7f5a2394ebc8) 0
- vptr=((& QDtls::_ZTV5QDtls) + 16u)
- QObject (0x0x7f5a235f7420) 0
- primary-for QDtls (0x0x7f5a2394ebc8)
-
-Class QIPv6Address
- size=16 align=1
- base size=16 base align=1
-QIPv6Address (0x0x7f5a235f7540) 0
-
-Class QHostAddress
- size=8 align=8
- base size=8 base align=8
-QHostAddress (0x0x7f5a235f75a0) 0
-
-Class QHostInfo
- size=8 align=8
- base size=8 base align=8
-QHostInfo (0x0x7f5a235f7d80) 0
-
-Class QHstsPolicy
- size=8 align=8
- base size=8 base align=8
-QHstsPolicy (0x0x7f5a237132a0) 0
-
-Class QHttpPart
- size=8 align=8
- base size=8 base align=8
-QHttpPart (0x0x7f5a23713a80) 0
-
-Class QHttpMultiPart::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QHttpMultiPart::QPrivateSignal (0x0x7f5a23713de0) 0 empty
-
-Vtable for QHttpMultiPart
-QHttpMultiPart::_ZTV14QHttpMultiPart: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QHttpMultiPart)
-16 (int (*)(...))QHttpMultiPart::metaObject
-24 (int (*)(...))QHttpMultiPart::qt_metacast
-32 (int (*)(...))QHttpMultiPart::qt_metacall
-40 (int (*)(...))QHttpMultiPart::~QHttpMultiPart
-48 (int (*)(...))QHttpMultiPart::~QHttpMultiPart
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QHttpMultiPart
- size=16 align=8
- base size=16 base align=8
-QHttpMultiPart (0x0x7f5a236dae38) 0
- vptr=((& QHttpMultiPart::_ZTV14QHttpMultiPart) + 16u)
- QObject (0x0x7f5a23713d80) 0
- primary-for QHttpMultiPart (0x0x7f5a236dae38)
-
-Class QLocalServer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLocalServer::QPrivateSignal (0x0x7f5a23713ea0) 0 empty
-
-Vtable for QLocalServer
-QLocalServer::_ZTV12QLocalServer: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QLocalServer)
-16 (int (*)(...))QLocalServer::metaObject
-24 (int (*)(...))QLocalServer::qt_metacast
-32 (int (*)(...))QLocalServer::qt_metacall
-40 (int (*)(...))QLocalServer::~QLocalServer
-48 (int (*)(...))QLocalServer::~QLocalServer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QLocalServer::hasPendingConnections
-120 (int (*)(...))QLocalServer::nextPendingConnection
-128 (int (*)(...))QLocalServer::incomingConnection
-
-Class QLocalServer
- size=16 align=8
- base size=16 base align=8
-QLocalServer (0x0x7f5a236daea0) 0
- vptr=((& QLocalServer::_ZTV12QLocalServer) + 16u)
- QObject (0x0x7f5a23713e40) 0
- primary-for QLocalServer (0x0x7f5a236daea0)
-
-Class QLocalSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLocalSocket::QPrivateSignal (0x0x7f5a233ba120) 0 empty
-
-Vtable for QLocalSocket
-QLocalSocket::_ZTV12QLocalSocket: 30u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QLocalSocket)
-16 (int (*)(...))QLocalSocket::metaObject
-24 (int (*)(...))QLocalSocket::qt_metacast
-32 (int (*)(...))QLocalSocket::qt_metacall
-40 (int (*)(...))QLocalSocket::~QLocalSocket
-48 (int (*)(...))QLocalSocket::~QLocalSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QLocalSocket::isSequential
-120 (int (*)(...))QLocalSocket::open
-128 (int (*)(...))QLocalSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QLocalSocket::bytesAvailable
-184 (int (*)(...))QLocalSocket::bytesToWrite
-192 (int (*)(...))QLocalSocket::canReadLine
-200 (int (*)(...))QLocalSocket::waitForReadyRead
-208 (int (*)(...))QLocalSocket::waitForBytesWritten
-216 (int (*)(...))QLocalSocket::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QLocalSocket::writeData
-
-Class QLocalSocket
- size=16 align=8
- base size=16 base align=8
-QLocalSocket (0x0x7f5a233bb068) 0
- vptr=((& QLocalSocket::_ZTV12QLocalSocket) + 16u)
- QIODevice (0x0x7f5a233bb0d0) 0
- primary-for QLocalSocket (0x0x7f5a233bb068)
- QObject (0x0x7f5a233ba0c0) 0
- primary-for QIODevice (0x0x7f5a233bb0d0)
-
-Class QSslConfiguration
- size=8 align=8
- base size=8 base align=8
-QSslConfiguration (0x0x7f5a233ba180) 0
-
-Class QSslPreSharedKeyAuthenticator
- size=8 align=8
- base size=8 base align=8
-QSslPreSharedKeyAuthenticator (0x0x7f5a233ba960) 0
-
-Class QNetworkAccessManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkAccessManager::QPrivateSignal (0x0x7f5a2347e2a0) 0 empty
-
-Vtable for QNetworkAccessManager
-QNetworkAccessManager::_ZTV21QNetworkAccessManager: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QNetworkAccessManager)
-16 (int (*)(...))QNetworkAccessManager::metaObject
-24 (int (*)(...))QNetworkAccessManager::qt_metacast
-32 (int (*)(...))QNetworkAccessManager::qt_metacall
-40 (int (*)(...))QNetworkAccessManager::~QNetworkAccessManager
-48 (int (*)(...))QNetworkAccessManager::~QNetworkAccessManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkAccessManager::createRequest
-
-Class QNetworkAccessManager
- size=16 align=8
- base size=16 base align=8
-QNetworkAccessManager (0x0x7f5a233bbd68) 0
- vptr=((& QNetworkAccessManager::_ZTV21QNetworkAccessManager) + 16u)
- QObject (0x0x7f5a2347e240) 0
- primary-for QNetworkAccessManager (0x0x7f5a233bbd68)
-
-Class QNetworkConfiguration
- size=8 align=8
- base size=8 base align=8
-QNetworkConfiguration (0x0x7f5a2347e300) 0
-
-Class QNetworkConfigurationManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkConfigurationManager::QPrivateSignal (0x0x7f5a2347e780) 0 empty
-
-Vtable for QNetworkConfigurationManager
-QNetworkConfigurationManager::_ZTV28QNetworkConfigurationManager: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QNetworkConfigurationManager)
-16 (int (*)(...))QNetworkConfigurationManager::metaObject
-24 (int (*)(...))QNetworkConfigurationManager::qt_metacast
-32 (int (*)(...))QNetworkConfigurationManager::qt_metacall
-40 (int (*)(...))QNetworkConfigurationManager::~QNetworkConfigurationManager
-48 (int (*)(...))QNetworkConfigurationManager::~QNetworkConfigurationManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QNetworkConfigurationManager
- size=16 align=8
- base size=16 base align=8
-QNetworkConfigurationManager (0x0x7f5a233bbf70) 0
- vptr=((& QNetworkConfigurationManager::_ZTV28QNetworkConfigurationManager) + 16u)
- QObject (0x0x7f5a2347e720) 0
- primary-for QNetworkConfigurationManager (0x0x7f5a233bbf70)
-
-Class QNetworkCookie
- size=8 align=8
- base size=8 base align=8
-QNetworkCookie (0x0x7f5a2347eae0) 0
-
-Class QNetworkCookieJar::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkCookieJar::QPrivateSignal (0x0x7f5a23556300) 0 empty
-
-Vtable for QNetworkCookieJar
-QNetworkCookieJar::_ZTV17QNetworkCookieJar: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QNetworkCookieJar)
-16 (int (*)(...))QNetworkCookieJar::metaObject
-24 (int (*)(...))QNetworkCookieJar::qt_metacast
-32 (int (*)(...))QNetworkCookieJar::qt_metacall
-40 (int (*)(...))QNetworkCookieJar::~QNetworkCookieJar
-48 (int (*)(...))QNetworkCookieJar::~QNetworkCookieJar
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkCookieJar::cookiesForUrl
-120 (int (*)(...))QNetworkCookieJar::setCookiesFromUrl
-128 (int (*)(...))QNetworkCookieJar::insertCookie
-136 (int (*)(...))QNetworkCookieJar::updateCookie
-144 (int (*)(...))QNetworkCookieJar::deleteCookie
-152 (int (*)(...))QNetworkCookieJar::validateCookie
-
-Class QNetworkCookieJar
- size=16 align=8
- base size=16 base align=8
-QNetworkCookieJar (0x0x7f5a234ec7b8) 0
- vptr=((& QNetworkCookieJar::_ZTV17QNetworkCookieJar) + 16u)
- QObject (0x0x7f5a235562a0) 0
- primary-for QNetworkCookieJar (0x0x7f5a234ec7b8)
-
-Class QNetworkDatagram
- size=8 align=8
- base size=8 base align=8
-QNetworkDatagram (0x0x7f5a23556360) 0
-
-Class QNetworkDiskCache::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkDiskCache::QPrivateSignal (0x0x7f5a23202360) 0 empty
-
-Vtable for QNetworkDiskCache
-QNetworkDiskCache::_ZTV17QNetworkDiskCache: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QNetworkDiskCache)
-16 (int (*)(...))QNetworkDiskCache::metaObject
-24 (int (*)(...))QNetworkDiskCache::qt_metacast
-32 (int (*)(...))QNetworkDiskCache::qt_metacall
-40 (int (*)(...))QNetworkDiskCache::~QNetworkDiskCache
-48 (int (*)(...))QNetworkDiskCache::~QNetworkDiskCache
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkDiskCache::metaData
-120 (int (*)(...))QNetworkDiskCache::updateMetaData
-128 (int (*)(...))QNetworkDiskCache::data
-136 (int (*)(...))QNetworkDiskCache::remove
-144 (int (*)(...))QNetworkDiskCache::cacheSize
-152 (int (*)(...))QNetworkDiskCache::prepare
-160 (int (*)(...))QNetworkDiskCache::insert
-168 (int (*)(...))QNetworkDiskCache::clear
-176 (int (*)(...))QNetworkDiskCache::expire
-
-Class QNetworkDiskCache
- size=16 align=8
- base size=16 base align=8
-QNetworkDiskCache (0x0x7f5a231fc208) 0
- vptr=((& QNetworkDiskCache::_ZTV17QNetworkDiskCache) + 16u)
- QAbstractNetworkCache (0x0x7f5a231fc270) 0
- primary-for QNetworkDiskCache (0x0x7f5a231fc208)
- QObject (0x0x7f5a23202300) 0
- primary-for QAbstractNetworkCache (0x0x7f5a231fc270)
-
-Class QNetworkAddressEntry
- size=8 align=8
- base size=8 base align=8
-QNetworkAddressEntry (0x0x7f5a232023c0) 0
-
-Class QNetworkInterface
- size=8 align=8
- base size=8 base align=8
-QNetworkInterface (0x0x7f5a23202a80) 0
-
-Class QNetworkProxyQuery
- size=8 align=8
- base size=8 base align=8
-QNetworkProxyQuery (0x0x7f5a232ac180) 0
-
-Class QNetworkProxy
- size=8 align=8
- base size=8 base align=8
-QNetworkProxy (0x0x7f5a232ac7e0) 0
-
-Vtable for QNetworkProxyFactory
-QNetworkProxyFactory::_ZTV20QNetworkProxyFactory: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QNetworkProxyFactory)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QNetworkProxyFactory
- size=8 align=8
- base size=8 base align=8
-QNetworkProxyFactory (0x0x7f5a23345000) 0 nearly-empty
- vptr=((& QNetworkProxyFactory::_ZTV20QNetworkProxyFactory) + 16u)
-
-Class QNetworkReply::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkReply::QPrivateSignal (0x0x7f5a233451e0) 0 empty
-
-Vtable for QNetworkReply
-QNetworkReply::_ZTV13QNetworkReply: 36u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QNetworkReply)
-16 (int (*)(...))QNetworkReply::metaObject
-24 (int (*)(...))QNetworkReply::qt_metacast
-32 (int (*)(...))QNetworkReply::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkReply::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QNetworkReply::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))__cxa_pure_virtual
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QNetworkReply::writeData
-240 (int (*)(...))QNetworkReply::setReadBufferSize
-248 (int (*)(...))__cxa_pure_virtual
-256 (int (*)(...))QNetworkReply::ignoreSslErrors
-264 (int (*)(...))QNetworkReply::sslConfigurationImplementation
-272 (int (*)(...))QNetworkReply::setSslConfigurationImplementation
-280 (int (*)(...))QNetworkReply::ignoreSslErrorsImplementation
-
-Class QNetworkReply
- size=16 align=8
- base size=16 base align=8
-QNetworkReply (0x0x7f5a232e18f0) 0
- vptr=((& QNetworkReply::_ZTV13QNetworkReply) + 16u)
- QIODevice (0x0x7f5a232e1958) 0
- primary-for QNetworkReply (0x0x7f5a232e18f0)
- QObject (0x0x7f5a23345180) 0
- primary-for QIODevice (0x0x7f5a232e1958)
-
-Class QNetworkSession::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkSession::QPrivateSignal (0x0x7f5a233453c0) 0 empty
-
-Vtable for QNetworkSession
-QNetworkSession::_ZTV15QNetworkSession: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QNetworkSession)
-16 (int (*)(...))QNetworkSession::metaObject
-24 (int (*)(...))QNetworkSession::qt_metacast
-32 (int (*)(...))QNetworkSession::qt_metacall
-40 (int (*)(...))QNetworkSession::~QNetworkSession
-48 (int (*)(...))QNetworkSession::~QNetworkSession
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QNetworkSession::connectNotify
-104 (int (*)(...))QNetworkSession::disconnectNotify
-
-Class QNetworkSession
- size=24 align=8
- base size=24 base align=8
-QNetworkSession (0x0x7f5a232e19c0) 0
- vptr=((& QNetworkSession::_ZTV15QNetworkSession) + 16u)
- QObject (0x0x7f5a23345360) 0
- primary-for QNetworkSession (0x0x7f5a232e19c0)
-
-Class QTcpServer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTcpServer::QPrivateSignal (0x0x7f5a23345960) 0 empty
-
-Vtable for QTcpServer
-QTcpServer::_ZTV10QTcpServer: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTcpServer)
-16 (int (*)(...))QTcpServer::metaObject
-24 (int (*)(...))QTcpServer::qt_metacast
-32 (int (*)(...))QTcpServer::qt_metacall
-40 (int (*)(...))QTcpServer::~QTcpServer
-48 (int (*)(...))QTcpServer::~QTcpServer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTcpServer::hasPendingConnections
-120 (int (*)(...))QTcpServer::nextPendingConnection
-128 (int (*)(...))QTcpServer::incomingConnection
-
-Class QTcpServer
- size=16 align=8
- base size=16 base align=8
-QTcpServer (0x0x7f5a232e1af8) 0
- vptr=((& QTcpServer::_ZTV10QTcpServer) + 16u)
- QObject (0x0x7f5a23345900) 0
- primary-for QTcpServer (0x0x7f5a232e1af8)
-
-Class QSslCertificateExtension
- size=8 align=8
- base size=8 base align=8
-QSslCertificateExtension (0x0x7f5a233459c0) 0
-
-Class QSslCipher
- size=8 align=8
- base size=8 base align=8
-QSslCipher (0x0x7f5a23345cc0) 0
-
-Class QSslDiffieHellmanParameters
- size=8 align=8
- base size=8 base align=8
-QSslDiffieHellmanParameters (0x0x7f5a230104e0) 0
-
-Class QSslEllipticCurve
- size=4 align=4
- base size=4 base align=4
-QSslEllipticCurve (0x0x7f5a230af000) 0
-
-Class QSslKey
- size=8 align=8
- base size=8 base align=8
-QSslKey (0x0x7f5a230af720) 0
-
-Class QUdpSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QUdpSocket::QPrivateSignal (0x0x7f5a230afa80) 0 empty
-
-Vtable for QUdpSocket
-QUdpSocket::_ZTV10QUdpSocket: 41u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QUdpSocket)
-16 (int (*)(...))QUdpSocket::metaObject
-24 (int (*)(...))QUdpSocket::qt_metacast
-32 (int (*)(...))QUdpSocket::qt_metacall
-40 (int (*)(...))QUdpSocket::~QUdpSocket
-48 (int (*)(...))QUdpSocket::~QUdpSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QUdpSocket
- size=16 align=8
- base size=16 base align=8
-QUdpSocket (0x0x7f5a230f00d0) 0
- vptr=((& QUdpSocket::_ZTV10QUdpSocket) + 16u)
- QAbstractSocket (0x0x7f5a230f0138) 0
- primary-for QUdpSocket (0x0x7f5a230f00d0)
- QIODevice (0x0x7f5a230f01a0) 0
- primary-for QAbstractSocket (0x0x7f5a230f0138)
- QObject (0x0x7f5a230afa20) 0
- primary-for QIODevice (0x0x7f5a230f01a0)
-
-Class QJSValue
- size=8 align=8
- base size=8 base align=8
-QJSValue (0x0x7f5a230afae0) 0
-
-Class QQmlDebuggingEnabler
- size=1 align=1
- base size=0 base align=1
-QQmlDebuggingEnabler (0x0x7f5a230afd80) 0 empty
-
-Class QJSEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QJSEngine::QPrivateSignal (0x0x7f5a230afe40) 0 empty
-
-Vtable for QJSEngine
-QJSEngine::_ZTV9QJSEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QJSEngine)
-16 (int (*)(...))QJSEngine::metaObject
-24 (int (*)(...))QJSEngine::qt_metacast
-32 (int (*)(...))QJSEngine::qt_metacall
-40 (int (*)(...))QJSEngine::~QJSEngine
-48 (int (*)(...))QJSEngine::~QJSEngine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QJSEngine
- size=24 align=8
- base size=24 base align=8
-QJSEngine (0x0x7f5a230f02d8) 0
- vptr=((& QJSEngine::_ZTV9QJSEngine) + 16u)
- QObject (0x0x7f5a230afde0) 0
- primary-for QJSEngine (0x0x7f5a230f02d8)
-
-Class QJSValueIterator
- size=8 align=8
- base size=8 base align=8
-QJSValueIterator (0x0x7f5a23182060) 0
-
-Class QQmlPrivate::RegisterType
- size=128 align=8
- base size=124 base align=8
-QQmlPrivate::RegisterType (0x0x7f5a23182540) 0
-
-Class QQmlPrivate::RegisterInterface
- size=24 align=8
- base size=24 base align=8
-QQmlPrivate::RegisterInterface (0x0x7f5a231825a0) 0
-
-Class QQmlPrivate::RegisterAutoParent
- size=16 align=8
- base size=16 base align=8
-QQmlPrivate::RegisterAutoParent (0x0x7f5a23182600) 0
-
-Class QQmlPrivate::RegisterSingletonType
- size=64 align=8
- base size=64 base align=8
-QQmlPrivate::RegisterSingletonType (0x0x7f5a23182660) 0
-
-Class QQmlPrivate::RegisterCompositeType
- size=32 align=8
- base size=32 base align=8
-QQmlPrivate::RegisterCompositeType (0x0x7f5a231826c0) 0
-
-Class QQmlPrivate::RegisterCompositeSingletonType
- size=32 align=8
- base size=32 base align=8
-QQmlPrivate::RegisterCompositeSingletonType (0x0x7f5a23182720) 0
-
-Class QQmlPrivate::CachedQmlUnit
- size=24 align=8
- base size=24 base align=8
-QQmlPrivate::CachedQmlUnit (0x0x7f5a23182780) 0
-
-Class QQmlPrivate::RegisterQmlUnitCacheHook
- size=16 align=8
- base size=16 base align=8
-QQmlPrivate::RegisterQmlUnitCacheHook (0x0x7f5a231827e0) 0
-
-Vtable for QQmlParserStatus
-QQmlParserStatus::_ZTV16QQmlParserStatus: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QQmlParserStatus)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlParserStatus
- size=16 align=8
- base size=16 base align=8
-QQmlParserStatus (0x0x7f5a23182840) 0
- vptr=((& QQmlParserStatus::_ZTV16QQmlParserStatus) + 16u)
-
-Vtable for QQmlPropertyValueSource
-QQmlPropertyValueSource::_ZTV23QQmlPropertyValueSource: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QQmlPropertyValueSource)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlPropertyValueSource
- size=8 align=8
- base size=8 base align=8
-QQmlPropertyValueSource (0x0x7f5a23182900) 0 nearly-empty
- vptr=((& QQmlPropertyValueSource::_ZTV23QQmlPropertyValueSource) + 16u)
-
-Class QQmlListReference
- size=8 align=8
- base size=8 base align=8
-QQmlListReference (0x0x7f5a23182a20) 0
-
-Vtable for QQmlAbstractUrlInterceptor
-QQmlAbstractUrlInterceptor::_ZTV26QQmlAbstractUrlInterceptor: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QQmlAbstractUrlInterceptor)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlAbstractUrlInterceptor
- size=8 align=8
- base size=8 base align=8
-QQmlAbstractUrlInterceptor (0x0x7f5a22e880c0) 0 nearly-empty
- vptr=((& QQmlAbstractUrlInterceptor::_ZTV26QQmlAbstractUrlInterceptor) + 16u)
-
-Class QQmlError
- size=8 align=8
- base size=8 base align=8
-QQmlError (0x0x7f5a22e88120) 0
-
-Vtable for QQmlImageProviderBase
-QQmlImageProviderBase::_ZTV21QQmlImageProviderBase: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QQmlImageProviderBase)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlImageProviderBase
- size=8 align=8
- base size=8 base align=8
-QQmlImageProviderBase (0x0x7f5a22e883c0) 0 nearly-empty
- vptr=((& QQmlImageProviderBase::_ZTV21QQmlImageProviderBase) + 16u)
-
-Class QQmlEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlEngine::QPrivateSignal (0x0x7f5a22e88600) 0 empty
-
-Vtable for QQmlEngine
-QQmlEngine::_ZTV10QQmlEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQmlEngine)
-16 (int (*)(...))QQmlEngine::metaObject
-24 (int (*)(...))QQmlEngine::qt_metacast
-32 (int (*)(...))QQmlEngine::qt_metacall
-40 (int (*)(...))QQmlEngine::~QQmlEngine
-48 (int (*)(...))QQmlEngine::~QQmlEngine
-56 (int (*)(...))QQmlEngine::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlEngine
- size=24 align=8
- base size=24 base align=8
-QQmlEngine (0x0x7f5a230f08f0) 0
- vptr=((& QQmlEngine::_ZTV10QQmlEngine) + 16u)
- QJSEngine (0x0x7f5a230f0958) 0
- primary-for QQmlEngine (0x0x7f5a230f08f0)
- QObject (0x0x7f5a22e885a0) 0
- primary-for QJSEngine (0x0x7f5a230f0958)
-
-Class QQmlApplicationEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlApplicationEngine::QPrivateSignal (0x0x7f5a22e886c0) 0 empty
-
-Vtable for QQmlApplicationEngine
-QQmlApplicationEngine::_ZTV21QQmlApplicationEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QQmlApplicationEngine)
-16 (int (*)(...))QQmlApplicationEngine::metaObject
-24 (int (*)(...))QQmlApplicationEngine::qt_metacast
-32 (int (*)(...))QQmlApplicationEngine::qt_metacall
-40 (int (*)(...))QQmlApplicationEngine::~QQmlApplicationEngine
-48 (int (*)(...))QQmlApplicationEngine::~QQmlApplicationEngine
-56 (int (*)(...))QQmlEngine::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlApplicationEngine
- size=24 align=8
- base size=24 base align=8
-QQmlApplicationEngine (0x0x7f5a230f0a28) 0
- vptr=((& QQmlApplicationEngine::_ZTV21QQmlApplicationEngine) + 16u)
- QQmlEngine (0x0x7f5a230f0a90) 0
- primary-for QQmlApplicationEngine (0x0x7f5a230f0a28)
- QJSEngine (0x0x7f5a230f0af8) 0
- primary-for QQmlEngine (0x0x7f5a230f0a90)
- QObject (0x0x7f5a22e88660) 0
- primary-for QJSEngine (0x0x7f5a230f0af8)
-
-Class QQmlComponent::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlComponent::QPrivateSignal (0x0x7f5a22e88780) 0 empty
-
-Vtable for QQmlComponent
-QQmlComponent::_ZTV13QQmlComponent: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QQmlComponent)
-16 (int (*)(...))QQmlComponent::metaObject
-24 (int (*)(...))QQmlComponent::qt_metacast
-32 (int (*)(...))QQmlComponent::qt_metacall
-40 (int (*)(...))QQmlComponent::~QQmlComponent
-48 (int (*)(...))QQmlComponent::~QQmlComponent
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQmlComponent::create
-120 (int (*)(...))QQmlComponent::beginCreate
-128 (int (*)(...))QQmlComponent::completeCreate
-
-Class QQmlComponent
- size=16 align=8
- base size=16 base align=8
-QQmlComponent (0x0x7f5a230f0b60) 0
- vptr=((& QQmlComponent::_ZTV13QQmlComponent) + 16u)
- QObject (0x0x7f5a22e88720) 0
- primary-for QQmlComponent (0x0x7f5a230f0b60)
-
-Class QQmlContext::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlContext::QPrivateSignal (0x0x7f5a22f51000) 0 empty
-
-Class QQmlContext::PropertyPair
- size=24 align=8
- base size=24 base align=8
-QQmlContext::PropertyPair (0x0x7f5a22f51060) 0
-
-Vtable for QQmlContext
-QQmlContext::_ZTV11QQmlContext: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QQmlContext)
-16 (int (*)(...))QQmlContext::metaObject
-24 (int (*)(...))QQmlContext::qt_metacast
-32 (int (*)(...))QQmlContext::qt_metacall
-40 (int (*)(...))QQmlContext::~QQmlContext
-48 (int (*)(...))QQmlContext::~QQmlContext
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlContext
- size=16 align=8
- base size=16 base align=8
-QQmlContext (0x0x7f5a22f490d0) 0
- vptr=((& QQmlContext::_ZTV11QQmlContext) + 16u)
- QObject (0x0x7f5a22e88f60) 0
- primary-for QQmlContext (0x0x7f5a22f490d0)
-
-Class QQmlScriptString
- size=8 align=8
- base size=8 base align=8
-QQmlScriptString (0x0x7f5a22f511e0) 0
-
-Class QQmlExpression::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlExpression::QPrivateSignal (0x0x7f5a22f51420) 0 empty
-
-Vtable for QQmlExpression
-QQmlExpression::_ZTV14QQmlExpression: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QQmlExpression)
-16 (int (*)(...))QQmlExpression::metaObject
-24 (int (*)(...))QQmlExpression::qt_metacast
-32 (int (*)(...))QQmlExpression::qt_metacall
-40 (int (*)(...))QQmlExpression::~QQmlExpression
-48 (int (*)(...))QQmlExpression::~QQmlExpression
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlExpression
- size=16 align=8
- base size=16 base align=8
-QQmlExpression (0x0x7f5a22f49138) 0
- vptr=((& QQmlExpression::_ZTV14QQmlExpression) + 16u)
- QObject (0x0x7f5a22f513c0) 0
- primary-for QQmlExpression (0x0x7f5a22f49138)
-
-Vtable for QQmlTypesExtensionInterface
-QQmlTypesExtensionInterface::_ZTV27QQmlTypesExtensionInterface: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QQmlTypesExtensionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlTypesExtensionInterface
- size=8 align=8
- base size=8 base align=8
-QQmlTypesExtensionInterface (0x0x7f5a22f51480) 0 nearly-empty
- vptr=((& QQmlTypesExtensionInterface::_ZTV27QQmlTypesExtensionInterface) + 16u)
-
-Vtable for QQmlExtensionInterface
-QQmlExtensionInterface::_ZTV22QQmlExtensionInterface: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QQmlExtensionInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlExtensionInterface
- size=8 align=8
- base size=8 base align=8
-QQmlExtensionInterface (0x0x7f5a22f491a0) 0 nearly-empty
- vptr=((& QQmlExtensionInterface::_ZTV22QQmlExtensionInterface) + 16u)
- QQmlTypesExtensionInterface (0x0x7f5a22f514e0) 0 nearly-empty
- primary-for QQmlExtensionInterface (0x0x7f5a22f491a0)
-
-Class QQmlExtensionPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlExtensionPlugin::QPrivateSignal (0x0x7f5a22f516c0) 0 empty
-
-Vtable for QQmlExtensionPlugin
-QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQmlExtensionPlugin)
-16 (int (*)(...))QQmlExtensionPlugin::metaObject
-24 (int (*)(...))QQmlExtensionPlugin::qt_metacast
-32 (int (*)(...))QQmlExtensionPlugin::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QQmlExtensionPlugin::initializeEngine
-128 (int (*)(...))-16
-136 (int (*)(...))(& _ZTI19QQmlExtensionPlugin)
-144 0u
-152 0u
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QQmlExtensionPlugin::_ZThn16_N19QQmlExtensionPlugin16initializeEngineEP10QQmlEnginePKc
-
-Class QQmlExtensionPlugin
- size=24 align=8
- base size=24 base align=8
-QQmlExtensionPlugin (0x0x7f5a22ba8540) 0
- vptr=((& QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin) + 16u)
- QObject (0x0x7f5a22f51600) 0
- primary-for QQmlExtensionPlugin (0x0x7f5a22ba8540)
- QQmlExtensionInterface (0x0x7f5a22f49208) 16 nearly-empty
- vptr=((& QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin) + 144u)
- QQmlTypesExtensionInterface (0x0x7f5a22f51660) 16 nearly-empty
- primary-for QQmlExtensionInterface (0x0x7f5a22f49208)
-
-Class QQmlFile
- size=8 align=8
- base size=8 base align=8
-QQmlFile (0x0x7f5a22f51720) 0
-
-Class QQmlFileSelector::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlFileSelector::QPrivateSignal (0x0x7f5a22f517e0) 0 empty
-
-Vtable for QQmlFileSelector
-QQmlFileSelector::_ZTV16QQmlFileSelector: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QQmlFileSelector)
-16 (int (*)(...))QQmlFileSelector::metaObject
-24 (int (*)(...))QQmlFileSelector::qt_metacast
-32 (int (*)(...))QQmlFileSelector::qt_metacall
-40 (int (*)(...))QQmlFileSelector::~QQmlFileSelector
-48 (int (*)(...))QQmlFileSelector::~QQmlFileSelector
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlFileSelector
- size=16 align=8
- base size=16 base align=8
-QQmlFileSelector (0x0x7f5a22f492d8) 0
- vptr=((& QQmlFileSelector::_ZTV16QQmlFileSelector) + 16u)
- QObject (0x0x7f5a22f51780) 0
- primary-for QQmlFileSelector (0x0x7f5a22f492d8)
-
-Vtable for QQmlIncubator
-QQmlIncubator::_ZTV13QQmlIncubator: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QQmlIncubator)
-16 (int (*)(...))QQmlIncubator::~QQmlIncubator
-24 (int (*)(...))QQmlIncubator::~QQmlIncubator
-32 (int (*)(...))QQmlIncubator::statusChanged
-40 (int (*)(...))QQmlIncubator::setInitialState
-
-Class QQmlIncubator
- size=16 align=8
- base size=16 base align=8
-QQmlIncubator (0x0x7f5a22f51840) 0
- vptr=((& QQmlIncubator::_ZTV13QQmlIncubator) + 16u)
-
-Vtable for QQmlIncubationController
-QQmlIncubationController::_ZTV24QQmlIncubationController: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QQmlIncubationController)
-16 (int (*)(...))QQmlIncubationController::~QQmlIncubationController
-24 (int (*)(...))QQmlIncubationController::~QQmlIncubationController
-32 (int (*)(...))QQmlIncubationController::incubatingObjectCountChanged
-
-Class QQmlIncubationController
- size=16 align=8
- base size=16 base align=8
-QQmlIncubationController (0x0x7f5a22f518a0) 0
- vptr=((& QQmlIncubationController::_ZTV24QQmlIncubationController) + 16u)
-
-Class QQmlInfo
- size=16 align=8
- base size=16 base align=8
-QQmlInfo (0x0x7f5a22f49340) 0
- QDebug (0x0x7f5a22f51900) 0
-
-Vtable for QQmlNetworkAccessManagerFactory
-QQmlNetworkAccessManagerFactory::_ZTV31QQmlNetworkAccessManagerFactory: 5u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI31QQmlNetworkAccessManagerFactory)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlNetworkAccessManagerFactory
- size=8 align=8
- base size=8 base align=8
-QQmlNetworkAccessManagerFactory (0x0x7f5a22c2c120) 0 nearly-empty
- vptr=((& QQmlNetworkAccessManagerFactory::_ZTV31QQmlNetworkAccessManagerFactory) + 16u)
-
-Class QQmlProperty
- size=8 align=8
- base size=8 base align=8
-QQmlProperty (0x0x7f5a22c2c180) 0
-
-Class QQmlPropertyMap::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlPropertyMap::QPrivateSignal (0x0x7f5a22c2ccc0) 0 empty
-
-Vtable for QQmlPropertyMap
-QQmlPropertyMap::_ZTV15QQmlPropertyMap: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QQmlPropertyMap)
-16 (int (*)(...))QQmlPropertyMap::metaObject
-24 (int (*)(...))QQmlPropertyMap::qt_metacast
-32 (int (*)(...))QQmlPropertyMap::qt_metacall
-40 (int (*)(...))QQmlPropertyMap::~QQmlPropertyMap
-48 (int (*)(...))QQmlPropertyMap::~QQmlPropertyMap
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQmlPropertyMap::updateValue
-
-Class QQmlPropertyMap
- size=16 align=8
- base size=16 base align=8
-QQmlPropertyMap (0x0x7f5a22c4e8f0) 0
- vptr=((& QQmlPropertyMap::_ZTV15QQmlPropertyMap) + 16u)
- QObject (0x0x7f5a22c2cc60) 0
- primary-for QQmlPropertyMap (0x0x7f5a22c4e8f0)
-
-Class QQuickTransform::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTransform::QPrivateSignal (0x0x7f5a22c2cd80) 0 empty
-
-Vtable for QQuickTransform
-QQuickTransform::_ZTV15QQuickTransform: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QQuickTransform)
-16 (int (*)(...))QQuickTransform::metaObject
-24 (int (*)(...))QQuickTransform::qt_metacast
-32 (int (*)(...))QQuickTransform::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QQuickTransform
- size=16 align=8
- base size=16 base align=8
-QQuickTransform (0x0x7f5a22c4e958) 0
- vptr=((& QQuickTransform::_ZTV15QQuickTransform) + 16u)
- QObject (0x0x7f5a22c2cd20) 0
- primary-for QQuickTransform (0x0x7f5a22c4e958)
-
-Class QQuickItem::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickItem::QPrivateSignal (0x0x7f5a22c2cea0) 0 empty
-
-Class QQuickItem::ItemChangeData
- size=8 align=8
- base size=8 base align=8
-QQuickItem::ItemChangeData (0x0x7f5a22c2cf00) 0
-
-Class QQuickItem::UpdatePaintNodeData
- size=8 align=8
- base size=8 base align=8
-QQuickItem::UpdatePaintNodeData (0x0x7f5a22c2cf60) 0
-
-Vtable for QQuickItem
-QQuickItem::_ZTV10QQuickItem: 55u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQuickItem)
-16 (int (*)(...))QQuickItem::metaObject
-24 (int (*)(...))QQuickItem::qt_metacast
-32 (int (*)(...))QQuickItem::qt_metacall
-40 (int (*)(...))QQuickItem::~QQuickItem
-48 (int (*)(...))QQuickItem::~QQuickItem
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickItem::isTextureProvider
-152 (int (*)(...))QQuickItem::textureProvider
-160 (int (*)(...))QQuickItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickItem::geometryChanged
-368 (int (*)(...))QQuickItem::updatePaintNode
-376 (int (*)(...))QQuickItem::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))-16
-400 (int (*)(...))(& _ZTI10QQuickItem)
-408 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItemD1Ev
-416 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItemD0Ev
-424 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickItem
- size=32 align=8
- base size=32 base align=8
-QQuickItem (0x0x7f5a22c6e380) 0
- vptr=((& QQuickItem::_ZTV10QQuickItem) + 16u)
- QObject (0x0x7f5a22c2cde0) 0
- primary-for QQuickItem (0x0x7f5a22c6e380)
- QQmlParserStatus (0x0x7f5a22c2ce40) 16
- vptr=((& QQuickItem::_ZTV10QQuickItem) + 408u)
-
-Class QQuickFramebufferObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickFramebufferObject::QPrivateSignal (0x0x7f5a22ccc780) 0 empty
-
-Vtable for QQuickFramebufferObject::Renderer
-QQuickFramebufferObject::Renderer::_ZTVN23QQuickFramebufferObject8RendererE: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN23QQuickFramebufferObject8RendererE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QQuickFramebufferObject::Renderer::createFramebufferObject
-48 (int (*)(...))QQuickFramebufferObject::Renderer::synchronize
-
-Class QQuickFramebufferObject::Renderer
- size=16 align=8
- base size=16 base align=8
-QQuickFramebufferObject::Renderer (0x0x7f5a22ccc7e0) 0
- vptr=((& QQuickFramebufferObject::Renderer::_ZTVN23QQuickFramebufferObject8RendererE) + 16u)
-
-Vtable for QQuickFramebufferObject
-QQuickFramebufferObject::_ZTV23QQuickFramebufferObject: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QQuickFramebufferObject)
-16 (int (*)(...))QQuickFramebufferObject::metaObject
-24 (int (*)(...))QQuickFramebufferObject::qt_metacast
-32 (int (*)(...))QQuickFramebufferObject::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickFramebufferObject::isTextureProvider
-152 (int (*)(...))QQuickFramebufferObject::textureProvider
-160 (int (*)(...))QQuickItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickFramebufferObject::geometryChanged
-368 (int (*)(...))QQuickFramebufferObject::updatePaintNode
-376 (int (*)(...))QQuickFramebufferObject::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))-16
-408 (int (*)(...))(& _ZTI23QQuickFramebufferObject)
-416 0u
-424 0u
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-440 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickFramebufferObject
- size=32 align=8
- base size=32 base align=8
-QQuickFramebufferObject (0x0x7f5a22c4ea90) 0
- vptr=((& QQuickFramebufferObject::_ZTV23QQuickFramebufferObject) + 16u)
- QQuickItem (0x0x7f5a22d11c40) 0
- primary-for QQuickFramebufferObject (0x0x7f5a22c4ea90)
- QObject (0x0x7f5a22ccc6c0) 0
- primary-for QQuickItem (0x0x7f5a22d11c40)
- QQmlParserStatus (0x0x7f5a22ccc720) 16
- vptr=((& QQuickFramebufferObject::_ZTV23QQuickFramebufferObject) + 416u)
-
-Class QQuickTextureFactory::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTextureFactory::QPrivateSignal (0x0x7f5a22ccc8a0) 0 empty
-
-Vtable for QQuickTextureFactory
-QQuickTextureFactory::_ZTV20QQuickTextureFactory: 18u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QQuickTextureFactory)
-16 (int (*)(...))QQuickTextureFactory::metaObject
-24 (int (*)(...))QQuickTextureFactory::qt_metacast
-32 (int (*)(...))QQuickTextureFactory::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))QQuickTextureFactory::image
-
-Class QQuickTextureFactory
- size=16 align=8
- base size=16 base align=8
-QQuickTextureFactory (0x0x7f5a22c4eaf8) 0
- vptr=((& QQuickTextureFactory::_ZTV20QQuickTextureFactory) + 16u)
- QObject (0x0x7f5a22ccc840) 0
- primary-for QQuickTextureFactory (0x0x7f5a22c4eaf8)
-
-Class QQuickImageResponse::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickImageResponse::QPrivateSignal (0x0x7f5a22ccc960) 0 empty
-
-Vtable for QQuickImageResponse
-QQuickImageResponse::_ZTV19QQuickImageResponse: 17u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickImageResponse)
-16 (int (*)(...))QQuickImageResponse::metaObject
-24 (int (*)(...))QQuickImageResponse::qt_metacast
-32 (int (*)(...))QQuickImageResponse::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QQuickImageResponse::errorString
-128 (int (*)(...))QQuickImageResponse::cancel
-
-Class QQuickImageResponse
- size=16 align=8
- base size=16 base align=8
-QQuickImageResponse (0x0x7f5a22c4eb60) 0
- vptr=((& QQuickImageResponse::_ZTV19QQuickImageResponse) + 16u)
- QObject (0x0x7f5a22ccc900) 0
- primary-for QQuickImageResponse (0x0x7f5a22c4eb60)
-
-Vtable for QQuickImageProvider
-QQuickImageProvider::_ZTV19QQuickImageProvider: 9u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickImageProvider)
-16 (int (*)(...))QQuickImageProvider::~QQuickImageProvider
-24 (int (*)(...))QQuickImageProvider::~QQuickImageProvider
-32 (int (*)(...))QQuickImageProvider::imageType
-40 (int (*)(...))QQuickImageProvider::flags
-48 (int (*)(...))QQuickImageProvider::requestImage
-56 (int (*)(...))QQuickImageProvider::requestPixmap
-64 (int (*)(...))QQuickImageProvider::requestTexture
-
-Class QQuickImageProvider
- size=16 align=8
- base size=16 base align=8
-QQuickImageProvider (0x0x7f5a22c4ebc8) 0
- vptr=((& QQuickImageProvider::_ZTV19QQuickImageProvider) + 16u)
- QQmlImageProviderBase (0x0x7f5a22ccc9c0) 0 nearly-empty
- primary-for QQuickImageProvider (0x0x7f5a22c4ebc8)
-
-Vtable for QQuickAsyncImageProvider
-QQuickAsyncImageProvider::_ZTV24QQuickAsyncImageProvider: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QQuickAsyncImageProvider)
-16 0u
-24 0u
-32 (int (*)(...))QQuickImageProvider::imageType
-40 (int (*)(...))QQuickImageProvider::flags
-48 (int (*)(...))QQuickImageProvider::requestImage
-56 (int (*)(...))QQuickImageProvider::requestPixmap
-64 (int (*)(...))QQuickImageProvider::requestTexture
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QQuickAsyncImageProvider
- size=24 align=8
- base size=24 base align=8
-QQuickAsyncImageProvider (0x0x7f5a22c4ec30) 0
- vptr=((& QQuickAsyncImageProvider::_ZTV24QQuickAsyncImageProvider) + 16u)
- QQuickImageProvider (0x0x7f5a22c4ec98) 0
- primary-for QQuickAsyncImageProvider (0x0x7f5a22c4ec30)
- QQmlImageProviderBase (0x0x7f5a22ccca20) 0 nearly-empty
- primary-for QQuickImageProvider (0x0x7f5a22c4ec98)
-
-Class QQuickItemGrabResult::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickItemGrabResult::QPrivateSignal (0x0x7f5a22cccae0) 0 empty
-
-Vtable for QQuickItemGrabResult
-QQuickItemGrabResult::_ZTV20QQuickItemGrabResult: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QQuickItemGrabResult)
-16 (int (*)(...))QQuickItemGrabResult::metaObject
-24 (int (*)(...))QQuickItemGrabResult::qt_metacast
-32 (int (*)(...))QQuickItemGrabResult::qt_metacall
-40 (int (*)(...))QQuickItemGrabResult::~QQuickItemGrabResult
-48 (int (*)(...))QQuickItemGrabResult::~QQuickItemGrabResult
-56 (int (*)(...))QQuickItemGrabResult::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQuickItemGrabResult
- size=16 align=8
- base size=16 base align=8
-QQuickItemGrabResult (0x0x7f5a22c4ed00) 0
- vptr=((& QQuickItemGrabResult::_ZTV20QQuickItemGrabResult) + 16u)
- QObject (0x0x7f5a22ccca80) 0
- primary-for QQuickItemGrabResult (0x0x7f5a22c4ed00)
-
-Class QQuickPaintedItem::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickPaintedItem::QPrivateSignal (0x0x7f5a22cccc00) 0 empty
-
-Vtable for QQuickPaintedItem
-QQuickPaintedItem::_ZTV17QQuickPaintedItem: 56u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QQuickPaintedItem)
-16 (int (*)(...))QQuickPaintedItem::metaObject
-24 (int (*)(...))QQuickPaintedItem::qt_metacast
-32 (int (*)(...))QQuickPaintedItem::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickPaintedItem::isTextureProvider
-152 (int (*)(...))QQuickPaintedItem::textureProvider
-160 (int (*)(...))QQuickPaintedItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickItem::geometryChanged
-368 (int (*)(...))QQuickPaintedItem::updatePaintNode
-376 (int (*)(...))QQuickPaintedItem::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))-16
-408 (int (*)(...))(& _ZTI17QQuickPaintedItem)
-416 0u
-424 0u
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-440 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickPaintedItem
- size=32 align=8
- base size=32 base align=8
-QQuickPaintedItem (0x0x7f5a22c4ed68) 0
- vptr=((& QQuickPaintedItem::_ZTV17QQuickPaintedItem) + 16u)
- QQuickItem (0x0x7f5a22d4caf0) 0
- primary-for QQuickPaintedItem (0x0x7f5a22c4ed68)
- QObject (0x0x7f5a22cccb40) 0
- primary-for QQuickItem (0x0x7f5a22d4caf0)
- QQmlParserStatus (0x0x7f5a22cccba0) 16
- vptr=((& QQuickPaintedItem::_ZTV17QQuickPaintedItem) + 416u)
-
-Class QQuickRenderControl::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickRenderControl::QPrivateSignal (0x0x7f5a22ccce40) 0 empty
-
-Vtable for QQuickRenderControl
-QQuickRenderControl::_ZTV19QQuickRenderControl: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickRenderControl)
-16 (int (*)(...))QQuickRenderControl::metaObject
-24 (int (*)(...))QQuickRenderControl::qt_metacast
-32 (int (*)(...))QQuickRenderControl::qt_metacall
-40 (int (*)(...))QQuickRenderControl::~QQuickRenderControl
-48 (int (*)(...))QQuickRenderControl::~QQuickRenderControl
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickRenderControl::renderWindow
-
-Class QQuickRenderControl
- size=16 align=8
- base size=16 base align=8
-QQuickRenderControl (0x0x7f5a22c4ef08) 0
- vptr=((& QQuickRenderControl::_ZTV19QQuickRenderControl) + 16u)
- QObject (0x0x7f5a22cccde0) 0
- primary-for QQuickRenderControl (0x0x7f5a22c4ef08)
-
-Class QQuickTextDocument::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTextDocument::QPrivateSignal (0x0x7f5a22cccf00) 0 empty
-
-Vtable for QQuickTextDocument
-QQuickTextDocument::_ZTV18QQuickTextDocument: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QQuickTextDocument)
-16 (int (*)(...))QQuickTextDocument::metaObject
-24 (int (*)(...))QQuickTextDocument::qt_metacast
-32 (int (*)(...))QQuickTextDocument::qt_metacall
-40 (int (*)(...))QQuickTextDocument::~QQuickTextDocument
-48 (int (*)(...))QQuickTextDocument::~QQuickTextDocument
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQuickTextDocument
- size=16 align=8
- base size=16 base align=8
-QQuickTextDocument (0x0x7f5a22c4ef70) 0
- vptr=((& QQuickTextDocument::_ZTV18QQuickTextDocument) + 16u)
- QObject (0x0x7f5a22cccea0) 0
- primary-for QQuickTextDocument (0x0x7f5a22c4ef70)
-
-Class QSGGeometry::Attribute
- size=16 align=4
- base size=16 base align=4
-QSGGeometry::Attribute (0x0x7f5a347c6060) 0
-
-Class QSGGeometry::AttributeSet
- size=16 align=8
- base size=16 base align=8
-QSGGeometry::AttributeSet (0x0x7f5a347c60c0) 0
-
-Class QSGGeometry::Point2D
- size=8 align=4
- base size=8 base align=4
-QSGGeometry::Point2D (0x0x7f5a347c6120) 0
-
-Class QSGGeometry::TexturedPoint2D
- size=16 align=4
- base size=16 base align=4
-QSGGeometry::TexturedPoint2D (0x0x7f5a347c6180) 0
-
-Class QSGGeometry::ColoredPoint2D
- size=12 align=4
- base size=12 base align=4
-QSGGeometry::ColoredPoint2D (0x0x7f5a347c6660) 0
-
-Vtable for QSGGeometry
-QSGGeometry::_ZTV11QSGGeometry: 4u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGGeometry)
-16 (int (*)(...))QSGGeometry::~QSGGeometry
-24 (int (*)(...))QSGGeometry::~QSGGeometry
-
-Class QSGGeometry
- size=128 align=8
- base size=128 base align=8
-QSGGeometry (0x0x7f5a34750660) 0
- vptr=((& QSGGeometry::_ZTV11QSGGeometry) + 16u)
-
-Vtable for QSGNode
-QSGNode::_ZTV7QSGNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QSGNode)
-16 (int (*)(...))QSGNode::~QSGNode
-24 (int (*)(...))QSGNode::~QSGNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGNode
- size=80 align=8
- base size=80 base align=8
-QSGNode (0x0x7f5a2cd3a120) 0
- vptr=((& QSGNode::_ZTV7QSGNode) + 16u)
-
-Vtable for QSGBasicGeometryNode
-QSGBasicGeometryNode::_ZTV20QSGBasicGeometryNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGBasicGeometryNode)
-16 (int (*)(...))QSGBasicGeometryNode::~QSGBasicGeometryNode
-24 (int (*)(...))QSGBasicGeometryNode::~QSGBasicGeometryNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGBasicGeometryNode
- size=112 align=8
- base size=112 base align=8
-QSGBasicGeometryNode (0x0x7f5a2daabd00) 0
- vptr=((& QSGBasicGeometryNode::_ZTV20QSGBasicGeometryNode) + 16u)
- QSGNode (0x0x7f5a2cd5cae0) 0
- primary-for QSGBasicGeometryNode (0x0x7f5a2daabd00)
-
-Vtable for QSGGeometryNode
-QSGGeometryNode::_ZTV15QSGGeometryNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSGGeometryNode)
-16 (int (*)(...))QSGGeometryNode::~QSGGeometryNode
-24 (int (*)(...))QSGGeometryNode::~QSGGeometryNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGGeometryNode
- size=144 align=8
- base size=144 base align=8
-QSGGeometryNode (0x0x7f5a2daabd68) 0
- vptr=((& QSGGeometryNode::_ZTV15QSGGeometryNode) + 16u)
- QSGBasicGeometryNode (0x0x7f5a2d2777b8) 0
- primary-for QSGGeometryNode (0x0x7f5a2daabd68)
- QSGNode (0x0x7f5a2cd5cb40) 0
- primary-for QSGBasicGeometryNode (0x0x7f5a2d2777b8)
-
-Vtable for QSGClipNode
-QSGClipNode::_ZTV11QSGClipNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGClipNode)
-16 (int (*)(...))QSGClipNode::~QSGClipNode
-24 (int (*)(...))QSGClipNode::~QSGClipNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGClipNode
- size=152 align=8
- base size=152 base align=8
-QSGClipNode (0x0x7f5a2d277820) 0
- vptr=((& QSGClipNode::_ZTV11QSGClipNode) + 16u)
- QSGBasicGeometryNode (0x0x7f5a2ccd7af8) 0
- primary-for QSGClipNode (0x0x7f5a2d277820)
- QSGNode (0x0x7f5a2cd5cea0) 0
- primary-for QSGBasicGeometryNode (0x0x7f5a2ccd7af8)
-
-Vtable for QSGTransformNode
-QSGTransformNode::_ZTV16QSGTransformNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGTransformNode)
-16 (int (*)(...))QSGTransformNode::~QSGTransformNode
-24 (int (*)(...))QSGTransformNode::~QSGTransformNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGTransformNode
- size=216 align=8
- base size=216 base align=8
-QSGTransformNode (0x0x7f5a2ccd7b60) 0
- vptr=((& QSGTransformNode::_ZTV16QSGTransformNode) + 16u)
- QSGNode (0x0x7f5a2cd5cf00) 0
- primary-for QSGTransformNode (0x0x7f5a2ccd7b60)
-
-Vtable for QSGRootNode
-QSGRootNode::_ZTV11QSGRootNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGRootNode)
-16 (int (*)(...))QSGRootNode::~QSGRootNode
-24 (int (*)(...))QSGRootNode::~QSGRootNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGRootNode
- size=88 align=8
- base size=88 base align=8
-QSGRootNode (0x0x7f5a2cd51068) 0
- vptr=((& QSGRootNode::_ZTV11QSGRootNode) + 16u)
- QSGNode (0x0x7f5a2cd7b600) 0
- primary-for QSGRootNode (0x0x7f5a2cd51068)
-
-Vtable for QSGOpacityNode
-QSGOpacityNode::_ZTV14QSGOpacityNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QSGOpacityNode)
-16 (int (*)(...))QSGOpacityNode::~QSGOpacityNode
-24 (int (*)(...))QSGOpacityNode::~QSGOpacityNode
-32 (int (*)(...))QSGOpacityNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGOpacityNode
- size=96 align=8
- base size=96 base align=8
-QSGOpacityNode (0x0x7f5a2cd74888) 0
- vptr=((& QSGOpacityNode::_ZTV14QSGOpacityNode) + 16u)
- QSGNode (0x0x7f5a2cb2e1e0) 0
- primary-for QSGOpacityNode (0x0x7f5a2cd74888)
-
-Vtable for QSGNodeVisitor
-QSGNodeVisitor::_ZTV14QSGNodeVisitor: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QSGNodeVisitor)
-16 (int (*)(...))QSGNodeVisitor::~QSGNodeVisitor
-24 (int (*)(...))QSGNodeVisitor::~QSGNodeVisitor
-32 (int (*)(...))QSGNodeVisitor::enterTransformNode
-40 (int (*)(...))QSGNodeVisitor::leaveTransformNode
-48 (int (*)(...))QSGNodeVisitor::enterClipNode
-56 (int (*)(...))QSGNodeVisitor::leaveClipNode
-64 (int (*)(...))QSGNodeVisitor::enterGeometryNode
-72 (int (*)(...))QSGNodeVisitor::leaveGeometryNode
-80 (int (*)(...))QSGNodeVisitor::enterOpacityNode
-88 (int (*)(...))QSGNodeVisitor::leaveOpacityNode
-96 (int (*)(...))QSGNodeVisitor::visitNode
-104 (int (*)(...))QSGNodeVisitor::visitChildren
-
-Class QSGNodeVisitor
- size=8 align=8
- base size=8 base align=8
-QSGNodeVisitor (0x0x7f5a2cb2e240) 0 nearly-empty
- vptr=((& QSGNodeVisitor::_ZTV14QSGNodeVisitor) + 16u)
-
-Vtable for QSGRendererInterface
-QSGRendererInterface::_ZTV20QSGRendererInterface: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGRendererInterface)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QSGRendererInterface::getResource
-48 (int (*)(...))QSGRendererInterface::getResource
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QSGRendererInterface
- size=8 align=8
- base size=8 base align=8
-QSGRendererInterface (0x0x7f5a2cb2e300) 0 nearly-empty
- vptr=((& QSGRendererInterface::_ZTV20QSGRendererInterface) + 16u)
-
-Class QQuickWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickWindow::QPrivateSignal (0x0x7f5a2c8640c0) 0 empty
-
-Vtable for QQuickWindow
-QQuickWindow::_ZTV12QQuickWindow: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QQuickWindow)
-16 (int (*)(...))QQuickWindow::metaObject
-24 (int (*)(...))QQuickWindow::qt_metacast
-32 (int (*)(...))QQuickWindow::qt_metacall
-40 (int (*)(...))QQuickWindow::~QQuickWindow
-48 (int (*)(...))QQuickWindow::~QQuickWindow
-56 (int (*)(...))QQuickWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QQuickWindow::accessibleRoot
-144 (int (*)(...))QQuickWindow::focusObject
-152 (int (*)(...))QQuickWindow::exposeEvent
-160 (int (*)(...))QQuickWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QQuickWindow::focusInEvent
-184 (int (*)(...))QQuickWindow::focusOutEvent
-192 (int (*)(...))QQuickWindow::showEvent
-200 (int (*)(...))QQuickWindow::hideEvent
-208 (int (*)(...))QQuickWindow::keyPressEvent
-216 (int (*)(...))QQuickWindow::keyReleaseEvent
-224 (int (*)(...))QQuickWindow::mousePressEvent
-232 (int (*)(...))QQuickWindow::mouseReleaseEvent
-240 (int (*)(...))QQuickWindow::mouseDoubleClickEvent
-248 (int (*)(...))QQuickWindow::mouseMoveEvent
-256 (int (*)(...))QQuickWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI12QQuickWindow)
-312 (int (*)(...))QQuickWindow::_ZThn16_N12QQuickWindowD1Ev
-320 (int (*)(...))QQuickWindow::_ZThn16_N12QQuickWindowD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QQuickWindow
- size=40 align=8
- base size=40 base align=8
-QQuickWindow (0x0x7f5a2c9575b0) 0
- vptr=((& QQuickWindow::_ZTV12QQuickWindow) + 16u)
- QWindow (0x0x7f5a2faed380) 0
- primary-for QQuickWindow (0x0x7f5a2c9575b0)
- QObject (0x0x7f5a2c864000) 0
- primary-for QWindow (0x0x7f5a2faed380)
- QSurface (0x0x7f5a2c864060) 16
- vptr=((& QQuickWindow::_ZTV12QQuickWindow) + 312u)
-
-Class QQuickView::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickView::QPrivateSignal (0x0x7f5a2c5f67e0) 0 empty
-
-Vtable for QQuickView
-QQuickView::_ZTV10QQuickView: 45u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQuickView)
-16 (int (*)(...))QQuickView::metaObject
-24 (int (*)(...))QQuickView::qt_metacast
-32 (int (*)(...))QQuickView::qt_metacall
-40 (int (*)(...))QQuickView::~QQuickView
-48 (int (*)(...))QQuickView::~QQuickView
-56 (int (*)(...))QQuickWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QQuickView::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QQuickWindow::accessibleRoot
-144 (int (*)(...))QQuickWindow::focusObject
-152 (int (*)(...))QQuickWindow::exposeEvent
-160 (int (*)(...))QQuickView::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QQuickWindow::focusInEvent
-184 (int (*)(...))QQuickWindow::focusOutEvent
-192 (int (*)(...))QQuickWindow::showEvent
-200 (int (*)(...))QQuickWindow::hideEvent
-208 (int (*)(...))QQuickView::keyPressEvent
-216 (int (*)(...))QQuickView::keyReleaseEvent
-224 (int (*)(...))QQuickView::mousePressEvent
-232 (int (*)(...))QQuickView::mouseReleaseEvent
-240 (int (*)(...))QQuickWindow::mouseDoubleClickEvent
-248 (int (*)(...))QQuickView::mouseMoveEvent
-256 (int (*)(...))QQuickWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI10QQuickView)
-312 (int (*)(...))QQuickView::_ZThn16_N10QQuickViewD1Ev
-320 (int (*)(...))QQuickView::_ZThn16_N10QQuickViewD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QQuickView
- size=40 align=8
- base size=40 base align=8
-QQuickView (0x0x7f5a2c76e2d8) 0
- vptr=((& QQuickView::_ZTV10QQuickView) + 16u)
- QQuickWindow (0x0x7f5a2c76e340) 0
- primary-for QQuickView (0x0x7f5a2c76e2d8)
- QWindow (0x0x7f5a2fb0a9a0) 0
- primary-for QQuickWindow (0x0x7f5a2c76e340)
- QObject (0x0x7f5a2c5f66c0) 0
- primary-for QWindow (0x0x7f5a2fb0a9a0)
- QSurface (0x0x7f5a2c5f6720) 16
- vptr=((& QQuickView::_ZTV10QQuickView) + 312u)
-
-Class QSGAbstractRenderer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGAbstractRenderer::QPrivateSignal (0x0x7f5a2c4868a0) 0 empty
-
-Vtable for QSGAbstractRenderer
-QSGAbstractRenderer::_ZTV19QSGAbstractRenderer: 16u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QSGAbstractRenderer)
-16 (int (*)(...))QSGAbstractRenderer::metaObject
-24 (int (*)(...))QSGAbstractRenderer::qt_metacast
-32 (int (*)(...))QSGAbstractRenderer::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QSGAbstractRenderer
- size=16 align=8
- base size=16 base align=8
-QSGAbstractRenderer (0x0x7f5a2c76e3a8) 0
- vptr=((& QSGAbstractRenderer::_ZTV19QSGAbstractRenderer) + 16u)
- QObject (0x0x7f5a2c5f6840) 0
- primary-for QSGAbstractRenderer (0x0x7f5a2c76e3a8)
-
-Class QSGEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGEngine::QPrivateSignal (0x0x7f5a2c1587e0) 0 empty
-
-Vtable for QSGEngine
-QSGEngine::_ZTV9QSGEngine: 14u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSGEngine)
-16 (int (*)(...))QSGEngine::metaObject
-24 (int (*)(...))QSGEngine::qt_metacast
-32 (int (*)(...))QSGEngine::qt_metacall
-40 (int (*)(...))QSGEngine::~QSGEngine
-48 (int (*)(...))QSGEngine::~QSGEngine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSGEngine
- size=16 align=8
- base size=16 base align=8
-QSGEngine (0x0x7f5a2c76e4e0) 0
- vptr=((& QSGEngine::_ZTV9QSGEngine) + 16u)
- QObject (0x0x7f5a2c158780) 0
- primary-for QSGEngine (0x0x7f5a2c76e4e0)
-
-Class QSGMaterialShader::RenderState
- size=16 align=8
- base size=16 base align=8
-QSGMaterialShader::RenderState (0x0x7f5a2c1a9300) 0
-
-Vtable for QSGMaterialShader
-QSGMaterialShader::_ZTV17QSGMaterialShader: 12u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGMaterialShader)
-16 0u
-24 0u
-32 (int (*)(...))QSGMaterialShader::activate
-40 (int (*)(...))QSGMaterialShader::deactivate
-48 (int (*)(...))QSGMaterialShader::updateState
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))QSGMaterialShader::compile
-72 (int (*)(...))QSGMaterialShader::initialize
-80 (int (*)(...))QSGMaterialShader::vertexShader
-88 (int (*)(...))QSGMaterialShader::fragmentShader
-
-Class QSGMaterialShader
- size=32 align=8
- base size=32 base align=8
-QSGMaterialShader (0x0x7f5a2c180ae0) 0
- vptr=((& QSGMaterialShader::_ZTV17QSGMaterialShader) + 16u)
-
-Class QSGMaterialType
- size=1 align=1
- base size=0 base align=1
-QSGMaterialType (0x0x7f5a2bcf6ba0) 0 empty
-
-Vtable for QSGMaterial
-QSGMaterial::_ZTV11QSGMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGMaterial)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QSGMaterial::compare
-
-Class QSGMaterial
- size=24 align=8
- base size=24 base align=8
-QSGMaterial (0x0x7f5a2bad8000) 0
- vptr=((& QSGMaterial::_ZTV11QSGMaterial) + 16u)
-
-Vtable for QSGFlatColorMaterial
-QSGFlatColorMaterial::_ZTV20QSGFlatColorMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGFlatColorMaterial)
-16 (int (*)(...))QSGFlatColorMaterial::~QSGFlatColorMaterial
-24 (int (*)(...))QSGFlatColorMaterial::~QSGFlatColorMaterial
-32 (int (*)(...))QSGFlatColorMaterial::type
-40 (int (*)(...))QSGFlatColorMaterial::createShader
-48 (int (*)(...))QSGFlatColorMaterial::compare
-
-Class QSGFlatColorMaterial
- size=40 align=8
- base size=40 base align=8
-QSGFlatColorMaterial (0x0x7f5a2c76e820) 0
- vptr=((& QSGFlatColorMaterial::_ZTV20QSGFlatColorMaterial) + 16u)
- QSGMaterial (0x0x7f5a2bad85a0) 0
- primary-for QSGFlatColorMaterial (0x0x7f5a2c76e820)
-
-Class QSGTexture::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGTexture::QPrivateSignal (0x0x7f5a2bad8720) 0 empty
-
-Vtable for QSGTexture
-QSGTexture::_ZTV10QSGTexture: 22u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QSGTexture)
-16 (int (*)(...))QSGTexture::metaObject
-24 (int (*)(...))QSGTexture::qt_metacast
-32 (int (*)(...))QSGTexture::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QSGTexture::normalizedTextureSubRect
-152 (int (*)(...))QSGTexture::isAtlasTexture
-160 (int (*)(...))QSGTexture::removedFromAtlas
-168 (int (*)(...))__cxa_pure_virtual
-
-Class QSGTexture
- size=16 align=8
- base size=16 base align=8
-QSGTexture (0x0x7f5a2c76e888) 0
- vptr=((& QSGTexture::_ZTV10QSGTexture) + 16u)
- QObject (0x0x7f5a2bad8660) 0
- primary-for QSGTexture (0x0x7f5a2c76e888)
-
-Class QSGDynamicTexture::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGDynamicTexture::QPrivateSignal (0x0x7f5a2bafd360) 0 empty
-
-Vtable for QSGDynamicTexture
-QSGDynamicTexture::_ZTV17QSGDynamicTexture: 23u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGDynamicTexture)
-16 (int (*)(...))QSGDynamicTexture::metaObject
-24 (int (*)(...))QSGDynamicTexture::qt_metacast
-32 (int (*)(...))QSGDynamicTexture::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QSGTexture::normalizedTextureSubRect
-152 (int (*)(...))QSGTexture::isAtlasTexture
-160 (int (*)(...))QSGTexture::removedFromAtlas
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-
-Class QSGDynamicTexture
- size=16 align=8
- base size=16 base align=8
-QSGDynamicTexture (0x0x7f5a2c76e8f0) 0
- vptr=((& QSGDynamicTexture::_ZTV17QSGDynamicTexture) + 16u)
- QSGTexture (0x0x7f5a2c76e958) 0
- primary-for QSGDynamicTexture (0x0x7f5a2c76e8f0)
- QObject (0x0x7f5a2bad8780) 0
- primary-for QSGTexture (0x0x7f5a2c76e958)
-
-Vtable for QSGImageNode
-QSGImageNode::_ZTV12QSGImageNode: 20u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QSGImageNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-
-Class QSGImageNode
- size=144 align=8
- base size=144 base align=8
-QSGImageNode (0x0x7f5a2c76e9c0) 0
- vptr=((& QSGImageNode::_ZTV12QSGImageNode) + 16u)
- QSGGeometryNode (0x0x7f5a2c76ea28) 0
- primary-for QSGImageNode (0x0x7f5a2c76e9c0)
- QSGBasicGeometryNode (0x0x7f5a2c76ea90) 0
- primary-for QSGGeometryNode (0x0x7f5a2c76ea28)
- QSGNode (0x0x7f5a2bafd3c0) 0
- primary-for QSGBasicGeometryNode (0x0x7f5a2c76ea90)
-
-Vtable for QSGNinePatchNode
-QSGNinePatchNode::_ZTV16QSGNinePatchNode: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGNinePatchNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-
-Class QSGNinePatchNode
- size=144 align=8
- base size=144 base align=8
-QSGNinePatchNode (0x0x7f5a2c863000) 0
- vptr=((& QSGNinePatchNode::_ZTV16QSGNinePatchNode) + 16u)
- QSGGeometryNode (0x0x7f5a2c8630d0) 0
- primary-for QSGNinePatchNode (0x0x7f5a2c863000)
- QSGBasicGeometryNode (0x0x7f5a2c863138) 0
- primary-for QSGGeometryNode (0x0x7f5a2c8630d0)
- QSGNode (0x0x7f5a2afbe4e0) 0
- primary-for QSGBasicGeometryNode (0x0x7f5a2c863138)
-
-Vtable for QSGRectangleNode
-QSGRectangleNode::_ZTV16QSGRectangleNode: 10u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGRectangleNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QSGRectangleNode
- size=144 align=8
- base size=144 base align=8
-QSGRectangleNode (0x0x7f5a2c8631a0) 0
- vptr=((& QSGRectangleNode::_ZTV16QSGRectangleNode) + 16u)
- QSGGeometryNode (0x0x7f5a2c863208) 0
- primary-for QSGRectangleNode (0x0x7f5a2c8631a0)
- QSGBasicGeometryNode (0x0x7f5a2c863270) 0
- primary-for QSGGeometryNode (0x0x7f5a2c863208)
- QSGNode (0x0x7f5a2afbe540) 0
- primary-for QSGBasicGeometryNode (0x0x7f5a2c863270)
-
-Vtable for QSGRenderNode::RenderState
-QSGRenderNode::RenderState::_ZTVN13QSGRenderNode11RenderStateE: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QSGRenderNode11RenderStateE)
-16 0u
-24 0u
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))QSGRenderNode::RenderState::get
-
-Class QSGRenderNode::RenderState
- size=8 align=8
- base size=8 base align=8
-QSGRenderNode::RenderState (0x0x7f5a2afbe9c0) 0 nearly-empty
- vptr=((& QSGRenderNode::RenderState::_ZTVN13QSGRenderNode11RenderStateE) + 16u)
-
-Vtable for QSGRenderNode
-QSGRenderNode::_ZTV13QSGRenderNode: 11u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSGRenderNode)
-16 0u
-24 0u
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))QSGRenderNode::changedStates
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))QSGRenderNode::releaseResources
-72 (int (*)(...))QSGRenderNode::flags
-80 (int (*)(...))QSGRenderNode::rect
-
-Class QSGRenderNode
- size=88 align=8
- base size=88 base align=8
-QSGRenderNode (0x0x7f5a2c8632d8) 0
- vptr=((& QSGRenderNode::_ZTV13QSGRenderNode) + 16u)
- QSGNode (0x0x7f5a2afbe960) 0
- primary-for QSGRenderNode (0x0x7f5a2c8632d8)
-
-Vtable for QSGSimpleRectNode
-QSGSimpleRectNode::_ZTV17QSGSimpleRectNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGSimpleRectNode)
-16 (int (*)(...))QSGSimpleRectNode::~QSGSimpleRectNode
-24 (int (*)(...))QSGSimpleRectNode::~QSGSimpleRectNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGSimpleRectNode
- size=320 align=8
- base size=320 base align=8
-QSGSimpleRectNode (0x0x7f5a2c729680) 0
- vptr=((& QSGSimpleRectNode::_ZTV17QSGSimpleRectNode) + 16u)
- QSGGeometryNode (0x0x7f5a2c729958) 0
- primary-for QSGSimpleRectNode (0x0x7f5a2c729680)
- QSGBasicGeometryNode (0x0x7f5a2c7299c0) 0
- primary-for QSGGeometryNode (0x0x7f5a2c729958)
- QSGNode (0x0x7f5a2b090660) 0
- primary-for QSGBasicGeometryNode (0x0x7f5a2c7299c0)
-
-Vtable for QSGOpaqueTextureMaterial
-QSGOpaqueTextureMaterial::_ZTV24QSGOpaqueTextureMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QSGOpaqueTextureMaterial)
-16 (int (*)(...))QSGOpaqueTextureMaterial::~QSGOpaqueTextureMaterial
-24 (int (*)(...))QSGOpaqueTextureMaterial::~QSGOpaqueTextureMaterial
-32 (int (*)(...))QSGOpaqueTextureMaterial::type
-40 (int (*)(...))QSGOpaqueTextureMaterial::createShader
-48 (int (*)(...))QSGOpaqueTextureMaterial::compare
-
-Class QSGOpaqueTextureMaterial
- size=40 align=8
- base size=36 base align=8
-QSGOpaqueTextureMaterial (0x0x7f5a2c729bc8) 0
- vptr=((& QSGOpaqueTextureMaterial::_ZTV24QSGOpaqueTextureMaterial) + 16u)
- QSGMaterial (0x0x7f5a2b0906c0) 0
- primary-for QSGOpaqueTextureMaterial (0x0x7f5a2c729bc8)
-
-Vtable for QSGTextureMaterial
-QSGTextureMaterial::_ZTV18QSGTextureMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSGTextureMaterial)
-16 (int (*)(...))QSGTextureMaterial::~QSGTextureMaterial
-24 (int (*)(...))QSGTextureMaterial::~QSGTextureMaterial
-32 (int (*)(...))QSGTextureMaterial::type
-40 (int (*)(...))QSGTextureMaterial::createShader
-48 (int (*)(...))QSGOpaqueTextureMaterial::compare
-
-Class QSGTextureMaterial
- size=40 align=8
- base size=36 base align=8
-QSGTextureMaterial (0x0x7f5a2c729c30) 0
- vptr=((& QSGTextureMaterial::_ZTV18QSGTextureMaterial) + 16u)
- QSGOpaqueTextureMaterial (0x0x7f5a2c729c98) 0
- primary-for QSGTextureMaterial (0x0x7f5a2c729c30)
- QSGMaterial (0x0x7f5a2ad40840) 0
- primary-for QSGOpaqueTextureMaterial (0x0x7f5a2c729c98)
-
-Vtable for QSGSimpleTextureNode
-QSGSimpleTextureNode::_ZTV20QSGSimpleTextureNode: 6u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGSimpleTextureNode)
-16 (int (*)(...))QSGSimpleTextureNode::~QSGSimpleTextureNode
-24 (int (*)(...))QSGSimpleTextureNode::~QSGSimpleTextureNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGSimpleTextureNode
- size=384 align=8
- base size=384 base align=8
-QSGSimpleTextureNode (0x0x7f5a2c729d00) 0
- vptr=((& QSGSimpleTextureNode::_ZTV20QSGSimpleTextureNode) + 16u)
- QSGGeometryNode (0x0x7f5a2c429e38) 0
- primary-for QSGSimpleTextureNode (0x0x7f5a2c729d00)
- QSGBasicGeometryNode (0x0x7f5a2c429ea0) 0
- primary-for QSGGeometryNode (0x0x7f5a2c429e38)
- QSGNode (0x0x7f5a2ad408a0) 0
- primary-for QSGBasicGeometryNode (0x0x7f5a2c429ea0)
-
-Class QSGTextureProvider::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGTextureProvider::QPrivateSignal (0x0x7f5a2aa63720) 0 empty
-
-Vtable for QSGTextureProvider
-QSGTextureProvider::_ZTV18QSGTextureProvider: 15u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSGTextureProvider)
-16 (int (*)(...))QSGTextureProvider::metaObject
-24 (int (*)(...))QSGTextureProvider::qt_metacast
-32 (int (*)(...))QSGTextureProvider::qt_metacall
-40 0u
-48 0u
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QSGTextureProvider
- size=16 align=8
- base size=16 base align=8
-QSGTextureProvider (0x0x7f5a2c429958) 0
- vptr=((& QSGTextureProvider::_ZTV18QSGTextureProvider) + 16u)
- QObject (0x0x7f5a2aa636c0) 0
- primary-for QSGTextureProvider (0x0x7f5a2c429958)
-
-Vtable for QSGVertexColorMaterial
-QSGVertexColorMaterial::_ZTV22QSGVertexColorMaterial: 7u entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QSGVertexColorMaterial)
-16 (int (*)(...))QSGVertexColorMaterial::~QSGVertexColorMaterial
-24 (int (*)(...))QSGVertexColorMaterial::~QSGVertexColorMaterial
-32 (int (*)(...))QSGVertexColorMaterial::type
-40 (int (*)(...))QSGVertexColorMaterial::createShader
-48 (int (*)(...))QSGVertexColorMaterial::compare
-
-Class QSGVertexColorMaterial
- size=24 align=8
- base size=24 base align=8
-QSGVertexColorMaterial (0x0x7f5a2c4299c0) 0
- vptr=((& QSGVertexColorMaterial::_ZTV22QSGVertexColorMaterial) + 16u)
- QSGMaterial (0x0x7f5a2aaec240) 0
- primary-for QSGVertexColorMaterial (0x0x7f5a2c4299c0)
-
-Class QQuickStyle
- size=1 align=1
- base size=0 base align=1
-QQuickStyle (0x0x7f5a2aaec2a0) 0 empty
-
diff --git a/tests/auto/bic/data/QtQuickControls2.5.13.0.linux-gcc-amd64.txt b/tests/auto/bic/data/QtQuickControls2.5.13.0.linux-gcc-amd64.txt
deleted file mode 100644
index 07ba810c..00000000
--- a/tests/auto/bic/data/QtQuickControls2.5.13.0.linux-gcc-amd64.txt
+++ /dev/null
@@ -1,11498 +0,0 @@
-Class std::__failure_type
- size=1 align=1
- base size=0 base align=1
-std::__failure_type (0x0x7f22c330aae0) 0 empty
-
-Class std::__do_is_destructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_destructible_impl (0x0x7f22c33982a0) 0 empty
-
-Class std::__do_is_nt_destructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_nt_destructible_impl (0x0x7f22c33984e0) 0 empty
-
-Class std::__do_is_default_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_default_constructible_impl (0x0x7f22c3398720) 0 empty
-
-Class std::__do_is_static_castable_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_static_castable_impl (0x0x7f22c3398960) 0 empty
-
-Class std::__do_is_direct_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_direct_constructible_impl (0x0x7f22c3398ae0) 0 empty
-
-Class std::__do_is_nary_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_nary_constructible_impl (0x0x7f22c3398ea0) 0 empty
-
-Class std::__do_is_implicitly_default_constructible_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_is_implicitly_default_constructible_impl (0x0x7f22c3403000) 0 empty
-
-Class std::__do_common_type_impl
- size=1 align=1
- base size=0 base align=1
-std::__do_common_type_impl (0x0x7f22c30586c0) 0 empty
-
-Class std::__do_member_type_wrapper
- size=1 align=1
- base size=0 base align=1
-std::__do_member_type_wrapper (0x0x7f22c3058780) 0 empty
-
-Class std::__invoke_memfun_ref
- size=1 align=1
- base size=0 base align=1
-std::__invoke_memfun_ref (0x0x7f22c3058b40) 0 empty
-
-Class std::__invoke_memfun_deref
- size=1 align=1
- base size=0 base align=1
-std::__invoke_memfun_deref (0x0x7f22c3058ba0) 0 empty
-
-Class std::__invoke_memobj_ref
- size=1 align=1
- base size=0 base align=1
-std::__invoke_memobj_ref (0x0x7f22c3058c00) 0 empty
-
-Class std::__invoke_memobj_deref
- size=1 align=1
- base size=0 base align=1
-std::__invoke_memobj_deref (0x0x7f22c3058c60) 0 empty
-
-Class std::__invoke_other
- size=1 align=1
- base size=0 base align=1
-std::__invoke_other (0x0x7f22c3058cc0) 0 empty
-
-Class std::__result_of_memfun_ref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memfun_ref_impl (0x0x7f22c3058d80) 0 empty
-
-Class std::__result_of_memfun_deref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memfun_deref_impl (0x0x7f22c3058e40) 0 empty
-
-Class std::__result_of_memobj_ref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memobj_ref_impl (0x0x7f22c3058f00) 0 empty
-
-Class std::__result_of_memobj_deref_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_memobj_deref_impl (0x0x7f22c308a000) 0 empty
-
-Class std::__result_of_other_impl
- size=1 align=1
- base size=0 base align=1
-std::__result_of_other_impl (0x0x7f22c308a360) 0 empty
-
-Class std::__swappable_details::__do_is_swappable_impl
- size=1 align=1
- base size=0 base align=1
-std::__swappable_details::__do_is_swappable_impl (0x0x7f22c308a6c0) 0 empty
-
-Class std::__swappable_details::__do_is_nothrow_swappable_impl
- size=1 align=1
- base size=0 base align=1
-std::__swappable_details::__do_is_nothrow_swappable_impl (0x0x7f22c308a720) 0 empty
-
-Class std::__nonesuch
- size=1 align=1
- base size=0 base align=1
-std::__nonesuch (0x0x7f22c308acc0) 0 empty
-
-Class std::piecewise_construct_t
- size=1 align=1
- base size=0 base align=1
-std::piecewise_construct_t (0x0x7f22c30d3360) 0 empty
-
-Class std::__nonesuch_no_braces
- size=1 align=1
- base size=1 base align=1
-std::__nonesuch_no_braces (0x0x7f22c30f6000) 0 empty
- std::__nonesuch (0x0x7f22c30d3840) 0 empty
-
-Class std::__true_type
- size=1 align=1
- base size=0 base align=1
-std::__true_type (0x0x7f22c31551e0) 0 empty
-
-Class std::__false_type
- size=1 align=1
- base size=0 base align=1
-std::__false_type (0x0x7f22c3155240) 0 empty
-
-Class std::input_iterator_tag
- size=1 align=1
- base size=0 base align=1
-std::input_iterator_tag (0x0x7f22c3188f00) 0 empty
-
-Class std::output_iterator_tag
- size=1 align=1
- base size=0 base align=1
-std::output_iterator_tag (0x0x7f22c3188f60) 0 empty
-
-Class std::forward_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::forward_iterator_tag (0x0x7f22c30f64e0) 0 empty
- std::input_iterator_tag (0x0x7f22c31b2000) 0 empty
-
-Class std::bidirectional_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::bidirectional_iterator_tag (0x0x7f22c30f6548) 0 empty
- std::forward_iterator_tag (0x0x7f22c30f65b0) 0 empty
- std::input_iterator_tag (0x0x7f22c31b2060) 0 empty
-
-Class std::random_access_iterator_tag
- size=1 align=1
- base size=1 base align=1
-std::random_access_iterator_tag (0x0x7f22c30f6618) 0 empty
- std::bidirectional_iterator_tag (0x0x7f22c30f6680) 0 empty
- std::forward_iterator_tag (0x0x7f22c30f66e8) 0 empty
- std::input_iterator_tag (0x0x7f22c31b20c0) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_less_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_less_iter (0x0x7f22c323eba0) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_less_val
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_less_val (0x0x7f22c323ecc0) 0 empty
-
-Class __gnu_cxx::__ops::_Val_less_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Val_less_iter (0x0x7f22c2e63000) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_equal_to_iter
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_equal_to_iter (0x0x7f22c2e63300) 0 empty
-
-Class __gnu_cxx::__ops::_Iter_equal_to_val
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__ops::_Iter_equal_to_val (0x0x7f22c2e63420) 0 empty
-
-Class __locale_struct
- size=232 align=8
- base size=232 base align=8
-__locale_struct (0x0x7f22c2ef3720) 0
-
-Class timeval
- size=16 align=8
- base size=16 base align=8
-timeval (0x0x7f22c2ef3a20) 0
-
-Class timespec
- size=16 align=8
- base size=16 base align=8
-timespec (0x0x7f22c2ef3a80) 0
-
-Class __pthread_rwlock_arch_t
- size=56 align=8
- base size=56 base align=8
-__pthread_rwlock_arch_t (0x0x7f22c2ef3b40) 0
-
-Class __pthread_internal_list
- size=16 align=8
- base size=16 base align=8
-__pthread_internal_list (0x0x7f22c2ef3ba0) 0
-
-Class __pthread_mutex_s
- size=40 align=8
- base size=40 base align=8
-__pthread_mutex_s (0x0x7f22c2ef3c00) 0
-
-Class __pthread_cond_s
- size=48 align=8
- base size=48 base align=8
-__pthread_cond_s (0x0x7f22c2ef3c60) 0
-
-Class pthread_attr_t
- size=56 align=8
- base size=56 base align=8
-pthread_attr_t (0x0x7f22c2ef3f00) 0
-
-Class random_data
- size=48 align=8
- base size=48 base align=8
-random_data (0x0x7f22c2f311e0) 0
-
-Class drand48_data
- size=24 align=8
- base size=24 base align=8
-drand48_data (0x0x7f22c2f31240) 0
-
-Vtable for std::exception
-std::exception::_ZTVSt9exception: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9exception)
-16 (int (*)(...))std::exception::~exception
-24 (int (*)(...))std::exception::~exception
-32 (int (*)(...))std::exception::what
-
-Class std::exception
- size=8 align=8
- base size=8 base align=8
-std::exception (0x0x7f22c2feb000) 0 nearly-empty
- vptr=((& std::exception::_ZTVSt9exception) + 16)
-
-Vtable for std::bad_exception
-std::bad_exception::_ZTVSt13bad_exception: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt13bad_exception)
-16 (int (*)(...))std::bad_exception::~bad_exception
-24 (int (*)(...))std::bad_exception::~bad_exception
-32 (int (*)(...))std::bad_exception::what
-
-Class std::bad_exception
- size=8 align=8
- base size=8 base align=8
-std::bad_exception (0x0x7f22c30f6a28) 0 nearly-empty
- vptr=((& std::bad_exception::_ZTVSt13bad_exception) + 16)
- std::exception (0x0x7f22c2feb1e0) 0 nearly-empty
- primary-for std::bad_exception (0x0x7f22c30f6a28)
-
-Vtable for std::type_info
-std::type_info::_ZTVSt9type_info: 8 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9type_info)
-16 (int (*)(...))std::type_info::~type_info
-24 (int (*)(...))std::type_info::~type_info
-32 (int (*)(...))std::type_info::__is_pointer_p
-40 (int (*)(...))std::type_info::__is_function_p
-48 (int (*)(...))std::type_info::__do_catch
-56 (int (*)(...))std::type_info::__do_upcast
-
-Class std::type_info
- size=16 align=8
- base size=16 base align=8
-std::type_info (0x0x7f22c2feb3c0) 0
- vptr=((& std::type_info::_ZTVSt9type_info) + 16)
-
-Vtable for std::bad_cast
-std::bad_cast::_ZTVSt8bad_cast: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt8bad_cast)
-16 (int (*)(...))std::bad_cast::~bad_cast
-24 (int (*)(...))std::bad_cast::~bad_cast
-32 (int (*)(...))std::bad_cast::what
-
-Class std::bad_cast
- size=8 align=8
- base size=8 base align=8
-std::bad_cast (0x0x7f22c30f6a90) 0 nearly-empty
- vptr=((& std::bad_cast::_ZTVSt8bad_cast) + 16)
- std::exception (0x0x7f22c2feb780) 0 nearly-empty
- primary-for std::bad_cast (0x0x7f22c30f6a90)
-
-Vtable for std::bad_typeid
-std::bad_typeid::_ZTVSt10bad_typeid: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt10bad_typeid)
-16 (int (*)(...))std::bad_typeid::~bad_typeid
-24 (int (*)(...))std::bad_typeid::~bad_typeid
-32 (int (*)(...))std::bad_typeid::what
-
-Class std::bad_typeid
- size=8 align=8
- base size=8 base align=8
-std::bad_typeid (0x0x7f22c30f6af8) 0 nearly-empty
- vptr=((& std::bad_typeid::_ZTVSt10bad_typeid) + 16)
- std::exception (0x0x7f22c2feb960) 0 nearly-empty
- primary-for std::bad_typeid (0x0x7f22c30f6af8)
-
-Class std::__exception_ptr::exception_ptr
- size=8 align=8
- base size=8 base align=8
-std::__exception_ptr::exception_ptr (0x0x7f22c2febb40) 0
-
-Vtable for std::nested_exception
-std::nested_exception::_ZTVSt16nested_exception: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt16nested_exception)
-16 (int (*)(...))std::nested_exception::~nested_exception
-24 (int (*)(...))std::nested_exception::~nested_exception
-
-Class std::nested_exception
- size=16 align=8
- base size=16 base align=8
-std::nested_exception (0x0x7f22c3022120) 0
- vptr=((& std::nested_exception::_ZTVSt16nested_exception) + 16)
-
-Vtable for std::bad_alloc
-std::bad_alloc::_ZTVSt9bad_alloc: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt9bad_alloc)
-16 (int (*)(...))std::bad_alloc::~bad_alloc
-24 (int (*)(...))std::bad_alloc::~bad_alloc
-32 (int (*)(...))std::bad_alloc::what
-
-Class std::bad_alloc
- size=8 align=8
- base size=8 base align=8
-std::bad_alloc (0x0x7f22c30f6b60) 0 nearly-empty
- vptr=((& std::bad_alloc::_ZTVSt9bad_alloc) + 16)
- std::exception (0x0x7f22c30227e0) 0 nearly-empty
- primary-for std::bad_alloc (0x0x7f22c30f6b60)
-
-Vtable for std::bad_array_new_length
-std::bad_array_new_length::_ZTVSt20bad_array_new_length: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt20bad_array_new_length)
-16 (int (*)(...))std::bad_array_new_length::~bad_array_new_length
-24 (int (*)(...))std::bad_array_new_length::~bad_array_new_length
-32 (int (*)(...))std::bad_array_new_length::what
-
-Class std::bad_array_new_length
- size=8 align=8
- base size=8 base align=8
-std::bad_array_new_length (0x0x7f22c30f6bc8) 0 nearly-empty
- vptr=((& std::bad_array_new_length::_ZTVSt20bad_array_new_length) + 16)
- std::bad_alloc (0x0x7f22c30f6c30) 0 nearly-empty
- primary-for std::bad_array_new_length (0x0x7f22c30f6bc8)
- std::exception (0x0x7f22c30229c0) 0 nearly-empty
- primary-for std::bad_alloc (0x0x7f22c30f6c30)
-
-Class std::nothrow_t
- size=1 align=1
- base size=0 base align=1
-std::nothrow_t (0x0x7f22c3022ba0) 0 empty
-
-Class std::__allocator_traits_base
- size=1 align=1
- base size=0 base align=1
-std::__allocator_traits_base (0x0x7f22c3022d80) 0 empty
-
-Class std::__numeric_limits_base
- size=1 align=1
- base size=0 base align=1
-std::__numeric_limits_base (0x0x7f22c2cc92a0) 0 empty
-
-Class qIsNull(double)::U
- size=8 align=8
- base size=8 base align=8
-qIsNull(double)::U (0x0x7f22c2a7fd20) 0
-
-Class qIsNull(float)::U
- size=4 align=4
- base size=4 base align=4
-qIsNull(float)::U (0x0x7f22c2a7fde0) 0
-
-Class QSysInfo
- size=1 align=1
- base size=0 base align=1
-QSysInfo (0x0x7f22c2941780) 0 empty
-
-Class QMessageLogContext
- size=32 align=8
- base size=32 base align=8
-QMessageLogContext (0x0x7f22c29418a0) 0
-
-Class QMessageLogger
- size=32 align=8
- base size=32 base align=8
-QMessageLogger (0x0x7f22c2941c00) 0
-
-Class QFlag
- size=4 align=4
- base size=4 base align=4
-QFlag (0x0x7f22c297f180) 0
-
-Class QIncompatibleFlag
- size=4 align=4
- base size=4 base align=4
-QIncompatibleFlag (0x0x7f22c29c0900) 0
-
-Class std::__atomic_flag_base
- size=1 align=1
- base size=1 base align=1
-std::__atomic_flag_base (0x0x7f22c2652d20) 0
-
-Class std::atomic_flag
- size=1 align=1
- base size=1 base align=1
-std::atomic_flag (0x0x7f22c29fea90) 0
- std::__atomic_flag_base (0x0x7f22c2652d80) 0
-
-Class QAtomicInt
- size=4 align=4
- base size=4 base align=4
-QAtomicInt (0x0x7f22c24b7208) 0
- QAtomicInteger<int> (0x0x7f22c24b7270) 0
- QBasicAtomicInteger<int> (0x0x7f22c258ad20) 0
-
-Class QInternal
- size=1 align=1
- base size=0 base align=1
-QInternal (0x0x7f22c21bc060) 0 empty
-
-Class QtPrivate::QSlotObjectBase
- size=16 align=8
- base size=16 base align=8
-QtPrivate::QSlotObjectBase (0x0x7f22c2201600) 0
-
-Class QGenericArgument
- size=16 align=8
- base size=16 base align=8
-QGenericArgument (0x0x7f22c2201d20) 0
-
-Class QGenericReturnArgument
- size=16 align=8
- base size=16 base align=8
-QGenericReturnArgument (0x0x7f22c23aadd0) 0
- QGenericArgument (0x0x7f22c223f000) 0
-
-Class QMetaObject
- size=48 align=8
- base size=48 base align=8
-QMetaObject (0x0x7f22c223f420) 0
-
-Class QMetaObject::Connection
- size=8 align=8
- base size=8 base align=8
-QMetaObject::Connection (0x0x7f22c223f840) 0
-
-Class QLatin1Char
- size=1 align=1
- base size=1 base align=1
-QLatin1Char (0x0x7f22c1ef3360) 0
-
-Class QChar
- size=2 align=2
- base size=2 base align=2
-QChar (0x0x7f22c1ef3600) 0
-
-Class QtPrivate::RefCount
- size=4 align=4
- base size=4 base align=4
-QtPrivate::RefCount (0x0x7f22c1fbe420) 0
-
-Class QArrayData
- size=24 align=8
- base size=24 base align=8
-QArrayData (0x0x7f22c1fbe780) 0
-
-Class QtPrivate::QContainerImplHelper
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QContainerImplHelper (0x0x7f22c2021a80) 0 empty
-
-Class lconv
- size=96 align=8
- base size=96 base align=8
-lconv (0x0x7f22c1d18300) 0
-
-Vtable for __cxxabiv1::__forced_unwind
-__cxxabiv1::__forced_unwind::_ZTVN10__cxxabiv115__forced_unwindE: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN10__cxxabiv115__forced_unwindE)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class __cxxabiv1::__forced_unwind
- size=8 align=8
- base size=8 base align=8
-__cxxabiv1::__forced_unwind (0x0x7f22c1d183c0) 0 nearly-empty
- vptr=((& __cxxabiv1::__forced_unwind::_ZTVN10__cxxabiv115__forced_unwindE) + 16)
-
-Class sched_param
- size=4 align=4
- base size=4 base align=4
-sched_param (0x0x7f22c1dcb4e0) 0
-
-Class timex
- size=208 align=8
- base size=208 base align=8
-timex (0x0x7f22c1dcb5a0) 0
-
-Class tm
- size=56 align=8
- base size=56 base align=8
-tm (0x0x7f22c1dcb600) 0
-
-Class itimerspec
- size=32 align=8
- base size=32 base align=8
-itimerspec (0x0x7f22c1dcb660) 0
-
-Class _pthread_cleanup_buffer
- size=32 align=8
- base size=32 base align=8
-_pthread_cleanup_buffer (0x0x7f22c1dcb6c0) 0
-
-Class __pthread_cleanup_frame
- size=24 align=8
- base size=24 base align=8
-__pthread_cleanup_frame (0x0x7f22c1dcb7e0) 0
-
-Class __pthread_cleanup_class
- size=24 align=8
- base size=24 base align=8
-__pthread_cleanup_class (0x0x7f22c1dcb840) 0
-
-Class _IO_marker
- size=24 align=8
- base size=24 base align=8
-_IO_marker (0x0x7f22c1b0c7e0) 0
-
-Class _IO_FILE
- size=216 align=8
- base size=216 base align=8
-_IO_FILE (0x0x7f22c1b0c840) 0
-
-Class std::_Hash_impl
- size=1 align=1
- base size=0 base align=1
-std::_Hash_impl (0x0x7f22c18c18a0) 0 empty
-
-Class std::_Fnv_hash_impl
- size=1 align=1
- base size=0 base align=1
-std::_Fnv_hash_impl (0x0x7f22c18c1a20) 0 empty
-
-Class std::locale
- size=8 align=8
- base size=8 base align=8
-std::locale (0x0x7f22c1a39ba0) 0
-
-Vtable for std::locale::facet
-std::locale::facet::_ZTVNSt6locale5facetE: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt6locale5facetE)
-16 (int (*)(...))std::locale::facet::~facet
-24 (int (*)(...))std::locale::facet::~facet
-
-Class std::locale::facet
- size=16 align=8
- base size=12 base align=8
-std::locale::facet (0x0x7f22c1a39f60) 0
- vptr=((& std::locale::facet::_ZTVNSt6locale5facetE) + 16)
-
-Class std::locale::id
- size=8 align=8
- base size=8 base align=8
-std::locale::id (0x0x7f22c168a240) 0
-
-Class std::locale::_Impl
- size=40 align=8
- base size=40 base align=8
-std::locale::_Impl (0x0x7f22c168a420) 0
-
-Class std::__cow_string
- size=8 align=8
- base size=8 base align=8
-std::__cow_string (0x0x7f22c16d1420) 0
-
-Vtable for std::logic_error
-std::logic_error::_ZTVSt11logic_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt11logic_error)
-16 (int (*)(...))std::logic_error::~logic_error
-24 (int (*)(...))std::logic_error::~logic_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::logic_error
- size=16 align=8
- base size=16 base align=8
-std::logic_error (0x0x7f22c18def08) 0
- vptr=((& std::logic_error::_ZTVSt11logic_error) + 16)
- std::exception (0x0x7f22c16d14e0) 0 nearly-empty
- primary-for std::logic_error (0x0x7f22c18def08)
-
-Vtable for std::domain_error
-std::domain_error::_ZTVSt12domain_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12domain_error)
-16 (int (*)(...))std::domain_error::~domain_error
-24 (int (*)(...))std::domain_error::~domain_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::domain_error
- size=16 align=8
- base size=16 base align=8
-std::domain_error (0x0x7f22c18def70) 0
- vptr=((& std::domain_error::_ZTVSt12domain_error) + 16)
- std::logic_error (0x0x7f22c18de410) 0
- primary-for std::domain_error (0x0x7f22c18def70)
- std::exception (0x0x7f22c16d1540) 0 nearly-empty
- primary-for std::logic_error (0x0x7f22c18de410)
-
-Vtable for std::invalid_argument
-std::invalid_argument::_ZTVSt16invalid_argument: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt16invalid_argument)
-16 (int (*)(...))std::invalid_argument::~invalid_argument
-24 (int (*)(...))std::invalid_argument::~invalid_argument
-32 (int (*)(...))std::logic_error::what
-
-Class std::invalid_argument
- size=16 align=8
- base size=16 base align=8
-std::invalid_argument (0x0x7f22c18de478) 0
- vptr=((& std::invalid_argument::_ZTVSt16invalid_argument) + 16)
- std::logic_error (0x0x7f22c18de7b8) 0
- primary-for std::invalid_argument (0x0x7f22c18de478)
- std::exception (0x0x7f22c16d15a0) 0 nearly-empty
- primary-for std::logic_error (0x0x7f22c18de7b8)
-
-Vtable for std::length_error
-std::length_error::_ZTVSt12length_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12length_error)
-16 (int (*)(...))std::length_error::~length_error
-24 (int (*)(...))std::length_error::~length_error
-32 (int (*)(...))std::logic_error::what
-
-Class std::length_error
- size=16 align=8
- base size=16 base align=8
-std::length_error (0x0x7f22c18de820) 0
- vptr=((& std::length_error::_ZTVSt12length_error) + 16)
- std::logic_error (0x0x7f22c16f9000) 0
- primary-for std::length_error (0x0x7f22c18de820)
- std::exception (0x0x7f22c16d1600) 0 nearly-empty
- primary-for std::logic_error (0x0x7f22c16f9000)
-
-Vtable for std::out_of_range
-std::out_of_range::_ZTVSt12out_of_range: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12out_of_range)
-16 (int (*)(...))std::out_of_range::~out_of_range
-24 (int (*)(...))std::out_of_range::~out_of_range
-32 (int (*)(...))std::logic_error::what
-
-Class std::out_of_range
- size=16 align=8
- base size=16 base align=8
-std::out_of_range (0x0x7f22c16f9068) 0
- vptr=((& std::out_of_range::_ZTVSt12out_of_range) + 16)
- std::logic_error (0x0x7f22c16f90d0) 0
- primary-for std::out_of_range (0x0x7f22c16f9068)
- std::exception (0x0x7f22c16d1660) 0 nearly-empty
- primary-for std::logic_error (0x0x7f22c16f90d0)
-
-Vtable for std::runtime_error
-std::runtime_error::_ZTVSt13runtime_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt13runtime_error)
-16 (int (*)(...))std::runtime_error::~runtime_error
-24 (int (*)(...))std::runtime_error::~runtime_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::runtime_error
- size=16 align=8
- base size=16 base align=8
-std::runtime_error (0x0x7f22c16f9138) 0
- vptr=((& std::runtime_error::_ZTVSt13runtime_error) + 16)
- std::exception (0x0x7f22c16d16c0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f22c16f9138)
-
-Vtable for std::range_error
-std::range_error::_ZTVSt11range_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt11range_error)
-16 (int (*)(...))std::range_error::~range_error
-24 (int (*)(...))std::range_error::~range_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::range_error
- size=16 align=8
- base size=16 base align=8
-std::range_error (0x0x7f22c16f91a0) 0
- vptr=((& std::range_error::_ZTVSt11range_error) + 16)
- std::runtime_error (0x0x7f22c16f9208) 0
- primary-for std::range_error (0x0x7f22c16f91a0)
- std::exception (0x0x7f22c16d1720) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f22c16f9208)
-
-Vtable for std::overflow_error
-std::overflow_error::_ZTVSt14overflow_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt14overflow_error)
-16 (int (*)(...))std::overflow_error::~overflow_error
-24 (int (*)(...))std::overflow_error::~overflow_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::overflow_error
- size=16 align=8
- base size=16 base align=8
-std::overflow_error (0x0x7f22c16f9270) 0
- vptr=((& std::overflow_error::_ZTVSt14overflow_error) + 16)
- std::runtime_error (0x0x7f22c16f92d8) 0
- primary-for std::overflow_error (0x0x7f22c16f9270)
- std::exception (0x0x7f22c16d1780) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f22c16f92d8)
-
-Vtable for std::underflow_error
-std::underflow_error::_ZTVSt15underflow_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt15underflow_error)
-16 (int (*)(...))std::underflow_error::~underflow_error
-24 (int (*)(...))std::underflow_error::~underflow_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::underflow_error
- size=16 align=8
- base size=16 base align=8
-std::underflow_error (0x0x7f22c16f9340) 0
- vptr=((& std::underflow_error::_ZTVSt15underflow_error) + 16)
- std::runtime_error (0x0x7f22c16f93a8) 0
- primary-for std::underflow_error (0x0x7f22c16f9340)
- std::exception (0x0x7f22c16d17e0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f22c16f93a8)
-
-Vtable for std::_V2::error_category
-std::_V2::error_category::_ZTVNSt3_V214error_categoryE: 10 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt3_V214error_categoryE)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))std::_V2::error_category::_M_message
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))std::_V2::error_category::default_error_condition
-64 (int (*)(...))std::_V2::error_category::equivalent
-72 (int (*)(...))std::_V2::error_category::equivalent
-
-Class std::_V2::error_category
- size=8 align=8
- base size=8 base align=8
-std::_V2::error_category (0x0x7f22c16d1960) 0 nearly-empty
- vptr=((& std::_V2::error_category::_ZTVNSt3_V214error_categoryE) + 16)
-
-Class std::error_code
- size=16 align=8
- base size=16 base align=8
-std::error_code (0x0x7f22c16d1cc0) 0
-
-Class std::error_condition
- size=16 align=8
- base size=16 base align=8
-std::error_condition (0x0x7f22c172d540) 0
-
-Vtable for std::system_error
-std::system_error::_ZTVSt12system_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12system_error)
-16 (int (*)(...))std::system_error::~system_error
-24 (int (*)(...))std::system_error::~system_error
-32 (int (*)(...))std::runtime_error::what
-
-Class std::system_error
- size=32 align=8
- base size=32 base align=8
-std::system_error (0x0x7f22c16f97b8) 0
- vptr=((& std::system_error::_ZTVSt12system_error) + 16)
- std::runtime_error (0x0x7f22c16f9820) 0
- primary-for std::system_error (0x0x7f22c16f97b8)
- std::exception (0x0x7f22c1758120) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f22c16f9820)
-
-Vtable for std::ios_base::failure
-std::ios_base::failure::_ZTVNSt8ios_base7failureB5cxx11E: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt8ios_base7failureB5cxx11E)
-16 (int (*)(...))std::ios_base::failure::~failure
-24 (int (*)(...))std::ios_base::failure::~failure
-32 (int (*)(...))std::ios_base::failure::what
-
-Class std::ios_base::failure
- size=32 align=8
- base size=32 base align=8
-std::ios_base::failure (0x0x7f22c16f9a90) 0
- vptr=((& std::ios_base::failure::_ZTVNSt8ios_base7failureB5cxx11E) + 16)
- std::system_error (0x0x7f22c16f9af8) 0
- primary-for std::ios_base::failure (0x0x7f22c16f9a90)
- std::runtime_error (0x0x7f22c16f9b60) 0
- primary-for std::system_error (0x0x7f22c16f9af8)
- std::exception (0x0x7f22c17886c0) 0 nearly-empty
- primary-for std::runtime_error (0x0x7f22c16f9b60)
-
-Class std::ios_base::_Callback_list
- size=24 align=8
- base size=24 base align=8
-std::ios_base::_Callback_list (0x0x7f22c1788720) 0
-
-Class std::ios_base::_Words
- size=16 align=8
- base size=16 base align=8
-std::ios_base::_Words (0x0x7f22c1788780) 0
-
-Class std::ios_base::Init
- size=1 align=1
- base size=0 base align=1
-std::ios_base::Init (0x0x7f22c17887e0) 0 empty
-
-Vtable for std::ios_base
-std::ios_base::_ZTVSt8ios_base: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt8ios_base)
-16 (int (*)(...))std::ios_base::~ios_base
-24 (int (*)(...))std::ios_base::~ios_base
-
-Class std::ios_base
- size=216 align=8
- base size=216 base align=8
-std::ios_base (0x0x7f22c1788660) 0
- vptr=((& std::ios_base::_ZTVSt8ios_base) + 16)
-
-Class std::ctype_base
- size=1 align=1
- base size=0 base align=1
-std::ctype_base (0x0x7f22c147a120) 0 empty
-
-Class std::__num_base
- size=1 align=1
- base size=0 base align=1
-std::__num_base (0x0x7f22c1554300) 0 empty
-
-VTT for std::basic_ostream<char>
-std::basic_ostream<char>::_ZTTSo: 2 entries
-0 ((& std::basic_ostream<char>::_ZTVSo) + 24)
-8 ((& std::basic_ostream<char>::_ZTVSo) + 64)
-
-VTT for std::basic_ostream<wchar_t>
-std::basic_ostream<wchar_t>::_ZTTSt13basic_ostreamIwSt11char_traitsIwEE: 2 entries
-0 ((& std::basic_ostream<wchar_t>::_ZTVSt13basic_ostreamIwSt11char_traitsIwEE) + 24)
-8 ((& std::basic_ostream<wchar_t>::_ZTVSt13basic_ostreamIwSt11char_traitsIwEE) + 64)
-
-VTT for std::basic_istream<char>
-std::basic_istream<char>::_ZTTSi: 2 entries
-0 ((& std::basic_istream<char>::_ZTVSi) + 24)
-8 ((& std::basic_istream<char>::_ZTVSi) + 64)
-
-VTT for std::basic_istream<wchar_t>
-std::basic_istream<wchar_t>::_ZTTSt13basic_istreamIwSt11char_traitsIwEE: 2 entries
-0 ((& std::basic_istream<wchar_t>::_ZTVSt13basic_istreamIwSt11char_traitsIwEE) + 24)
-8 ((& std::basic_istream<wchar_t>::_ZTVSt13basic_istreamIwSt11char_traitsIwEE) + 64)
-
-Construction vtable for std::basic_istream<char> (0x0x7f22c10e4270 instance) in std::basic_iostream<char>
-std::basic_iostream<char>::_ZTCSd0_Si: 10 entries
-0 24
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISi)
-24 0
-32 0
-40 18446744073709551592
-48 (int (*)(...))-24
-56 (int (*)(...))(& _ZTISi)
-64 0
-72 0
-
-Construction vtable for std::basic_ostream<char> (0x0x7f22c10e4340 instance) in std::basic_iostream<char>
-std::basic_iostream<char>::_ZTCSd16_So: 10 entries
-0 8
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISo)
-24 0
-32 0
-40 18446744073709551608
-48 (int (*)(...))-8
-56 (int (*)(...))(& _ZTISo)
-64 0
-72 0
-
-VTT for std::basic_iostream<char>
-std::basic_iostream<char>::_ZTTSd: 7 entries
-0 ((& std::basic_iostream<char>::_ZTVSd) + 24)
-8 ((& std::basic_iostream<char>::_ZTCSd0_Si) + 24)
-16 ((& std::basic_iostream<char>::_ZTCSd0_Si) + 64)
-24 ((& std::basic_iostream<char>::_ZTCSd16_So) + 24)
-32 ((& std::basic_iostream<char>::_ZTCSd16_So) + 64)
-40 ((& std::basic_iostream<char>::_ZTVSd) + 104)
-48 ((& std::basic_iostream<char>::_ZTVSd) + 64)
-
-Construction vtable for std::basic_istream<wchar_t> (0x0x7f22c1131000 instance) in std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E: 10 entries
-0 24
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISt13basic_istreamIwSt11char_traitsIwEE)
-24 0
-32 0
-40 18446744073709551592
-48 (int (*)(...))-24
-56 (int (*)(...))(& _ZTISt13basic_istreamIwSt11char_traitsIwEE)
-64 0
-72 0
-
-Construction vtable for std::basic_ostream<wchar_t> (0x0x7f22c11310d0 instance) in std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E: 10 entries
-0 8
-8 (int (*)(...))0
-16 (int (*)(...))(& _ZTISt13basic_ostreamIwSt11char_traitsIwEE)
-24 0
-32 0
-40 18446744073709551608
-48 (int (*)(...))-8
-56 (int (*)(...))(& _ZTISt13basic_ostreamIwSt11char_traitsIwEE)
-64 0
-72 0
-
-VTT for std::basic_iostream<wchar_t>
-std::basic_iostream<wchar_t>::_ZTTSt14basic_iostreamIwSt11char_traitsIwEE: 7 entries
-0 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 24)
-8 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E) + 24)
-16 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE0_St13basic_istreamIwS1_E) + 64)
-24 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E) + 24)
-32 ((& std::basic_iostream<wchar_t>::_ZTCSt14basic_iostreamIwSt11char_traitsIwEE16_St13basic_ostreamIwS1_E) + 64)
-40 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 104)
-48 ((& std::basic_iostream<wchar_t>::_ZTVSt14basic_iostreamIwSt11char_traitsIwEE) + 64)
-
-Class QByteArrayDataPtr
- size=8 align=8
- base size=8 base align=8
-QByteArrayDataPtr (0x0x7f22c1121c60) 0
-
-Class QByteArray
- size=8 align=8
- base size=8 base align=8
-QByteArray (0x0x7f22c1121cc0) 0
-
-Class QByteRef
- size=16 align=8
- base size=12 base align=8
-QByteRef (0x0x7f22c0e8c0c0) 0
-
-Class QStringDataPtr
- size=8 align=8
- base size=8 base align=8
-QStringDataPtr (0x0x7f22c0f08f00) 0
-
-Class QStringView
- size=16 align=8
- base size=16 base align=8
-QStringView (0x0x7f22c0f333c0) 0
-
-Class QLatin1String
- size=16 align=8
- base size=16 base align=8
-QLatin1String (0x0x7f22c0ffc180) 0
-
-Class QString::Null
- size=1 align=1
- base size=0 base align=1
-QString::Null (0x0x7f22c0c7cba0) 0 empty
-
-Class QString
- size=8 align=8
- base size=8 base align=8
-QString (0x0x7f22c0c7cb40) 0
-
-Class QCharRef
- size=16 align=8
- base size=12 base align=8
-QCharRef (0x0x7f22c0a5dd20) 0
-
-Class QStringRef
- size=16 align=8
- base size=16 base align=8
-QStringRef (0x0x7f22c0bf95a0) 0
-
-Class QtPrivate::QHashCombine
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QHashCombine (0x0x7f22c0a118a0) 0 empty
-
-Class QtPrivate::QHashCombineCommutative
- size=1 align=1
- base size=0 base align=1
-QtPrivate::QHashCombineCommutative (0x0x7f22c0a11960) 0 empty
-
-Class std::_Bit_reference
- size=16 align=8
- base size=16 base align=8
-std::_Bit_reference (0x0x7f22c06dae40) 0
-
-Class std::_Bit_iterator_base
- size=16 align=8
- base size=12 base align=8
-std::_Bit_iterator_base (0x0x7f22c0a24410) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f22c06f85a0) 0 empty
-
-Class std::_Bit_iterator
- size=16 align=8
- base size=12 base align=8
-std::_Bit_iterator (0x0x7f22c0a24548) 0
- std::_Bit_iterator_base (0x0x7f22c0a245b0) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f22c06f8c00) 0 empty
-
-Class std::_Bit_const_iterator
- size=16 align=8
- base size=12 base align=8
-std::_Bit_const_iterator (0x0x7f22c0a24618) 0
- std::_Bit_iterator_base (0x0x7f22c0a24680) 0
- std::iterator<std::random_access_iterator_tag, bool> (0x0x7f22c0729420) 0 empty
-
-Class std::__detail::_List_node_base
- size=16 align=8
- base size=16 base align=8
-std::__detail::_List_node_base (0x0x7f22c04dea80) 0
-
-Class QListData::NotArrayCompatibleLayout
- size=1 align=1
- base size=0 base align=1
-QListData::NotArrayCompatibleLayout (0x0x7f22c05dd840) 0 empty
-
-Class QListData::NotIndirectLayout
- size=1 align=1
- base size=0 base align=1
-QListData::NotIndirectLayout (0x0x7f22c05dd8a0) 0 empty
-
-Class QListData::ArrayCompatibleLayout
- size=1 align=1
- base size=1 base align=1
-QListData::ArrayCompatibleLayout (0x0x7f22c05470d0) 0 empty
- QListData::NotIndirectLayout (0x0x7f22c05dd900) 0 empty
-
-Class QListData::InlineWithPaddingLayout
- size=1 align=1
- base size=1 base align=1
-QListData::InlineWithPaddingLayout (0x0x7f22c0492cb0) 0 empty
- QListData::NotArrayCompatibleLayout (0x0x7f22c05dd960) 0 empty
- QListData::NotIndirectLayout (0x0x7f22c05dd9c0) 0 empty
-
-Class QListData::IndirectLayout
- size=1 align=1
- base size=1 base align=1
-QListData::IndirectLayout (0x0x7f22c0547138) 0 empty
- QListData::NotArrayCompatibleLayout (0x0x7f22c05dda20) 0 empty
-
-Class QListData::Data
- size=24 align=8
- base size=24 base align=8
-QListData::Data (0x0x7f22c05dda80) 0
-
-Class QListData
- size=8 align=8
- base size=8 base align=8
-QListData (0x0x7f22c05dd7e0) 0
-
-Class QRegExp
- size=8 align=8
- base size=8 base align=8
-QRegExp (0x0x7f22c02cac60) 0
-
-Class QStringMatcher::Data
- size=272 align=8
- base size=272 base align=8
-QStringMatcher::Data (0x0x7f22c03c7300) 0
-
-Class QStringMatcher
- size=1048 align=8
- base size=1048 base align=8
-QStringMatcher (0x0x7f22c03c72a0) 0
-
-Class QStringList
- size=8 align=8
- base size=8 base align=8
-QStringList (0x0x7f22c03b4e38) 0
- QList<QString> (0x0x7f22c03b4ea0) 0
- QListSpecialMethods<QString> (0x0x7f22c03c7540) 0 empty
-
-Class QScopedPointerPodDeleter
- size=1 align=1
- base size=0 base align=1
-QScopedPointerPodDeleter (0x0x7f22c00950c0) 0 empty
-
-Class std::_Rb_tree_node_base
- size=32 align=8
- base size=32 base align=8
-std::_Rb_tree_node_base (0x0x7f22c01191e0) 0
-
-Class std::_Rb_tree_header
- size=40 align=8
- base size=40 base align=8
-std::_Rb_tree_header (0x0x7f22c0119540) 0
-
-Class std::__erased_type
- size=1 align=1
- base size=0 base align=1
-std::__erased_type (0x0x7f22bfefcae0) 0 empty
-
-Class std::allocator_arg_t
- size=1 align=1
- base size=0 base align=1
-std::allocator_arg_t (0x0x7f22bfefcb40) 0 empty
-
-Class std::__uses_alloc_base
- size=1 align=1
- base size=0 base align=1
-std::__uses_alloc_base (0x0x7f22bfefccc0) 0 empty
-
-Class std::__uses_alloc0::_Sink
- size=1 align=1
- base size=0 base align=1
-std::__uses_alloc0::_Sink (0x0x7f22bfefcd80) 0 empty
-
-Class std::__uses_alloc0
- size=1 align=1
- base size=1 base align=1
-std::__uses_alloc0 (0x0x7f22bff0c208) 0
- std::__uses_alloc_base (0x0x7f22bfefcd20) 0 empty
-
-Class std::_Swallow_assign
- size=1 align=1
- base size=0 base align=1
-std::_Swallow_assign (0x0x7f22bfc8f120) 0 empty
-
-Class QtPrivate::AbstractDebugStreamFunction
- size=16 align=8
- base size=16 base align=8
-QtPrivate::AbstractDebugStreamFunction (0x0x7f22bfd1e5a0) 0
-
-Class QtPrivate::AbstractComparatorFunction
- size=24 align=8
- base size=24 base align=8
-QtPrivate::AbstractComparatorFunction (0x0x7f22bfd1e900) 0
-
-Class QtPrivate::AbstractConverterFunction
- size=8 align=8
- base size=8 base align=8
-QtPrivate::AbstractConverterFunction (0x0x7f22bfd1ee40) 0
-
-Class QMetaType
- size=80 align=8
- base size=80 base align=8
-QMetaType (0x0x7f22bfd453c0) 0
-
-Class QtMetaTypePrivate::VariantData
- size=24 align=8
- base size=20 base align=8
-QtMetaTypePrivate::VariantData (0x0x7f22bfdb05a0) 0
-
-Class QtMetaTypePrivate::VectorBoolElements
- size=1 align=1
- base size=0 base align=1
-QtMetaTypePrivate::VectorBoolElements (0x0x7f22bfdb0c60) 0 empty
-
-Class QtMetaTypePrivate::QSequentialIterableImpl
- size=104 align=8
- base size=104 base align=8
-QtMetaTypePrivate::QSequentialIterableImpl (0x0x7f22bfdfeae0) 0
-
-Class QtMetaTypePrivate::QAssociativeIterableImpl
- size=112 align=8
- base size=112 base align=8
-QtMetaTypePrivate::QAssociativeIterableImpl (0x0x7f22bfabc1e0) 0
-
-Class QtMetaTypePrivate::QPairVariantInterfaceImpl
- size=40 align=8
- base size=40 base align=8
-QtMetaTypePrivate::QPairVariantInterfaceImpl (0x0x7f22bfb15720) 0
-
-Class std::chrono::_V2::system_clock
- size=1 align=1
- base size=0 base align=1
-std::chrono::_V2::system_clock (0x0x7f22bf9da540) 0 empty
-
-Class std::chrono::_V2::steady_clock
- size=1 align=1
- base size=0 base align=1
-std::chrono::_V2::steady_clock (0x0x7f22bf709000) 0 empty
-
-Vtable for QObjectData
-QObjectData::_ZTV11QObjectData: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QObjectData)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))__cxa_pure_virtual
-
-Class QObjectData
- size=48 align=8
- base size=48 base align=8
-QObjectData (0x0x7f22bf709060) 0
- vptr=((& QObjectData::_ZTV11QObjectData) + 16)
-
-Class QObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QObject::QPrivateSignal (0x0x7f22bf709240) 0 empty
-
-Vtable for QObject
-QObject::_ZTV7QObject: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QObject)
-16 (int (*)(...))QObject::metaObject
-24 (int (*)(...))QObject::qt_metacast
-32 (int (*)(...))QObject::qt_metacall
-40 (int (*)(...))QObject::~QObject
-48 (int (*)(...))QObject::~QObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QObject
- size=16 align=8
- base size=16 base align=8
-QObject (0x0x7f22bf7091e0) 0
- vptr=((& QObject::_ZTV7QObject) + 16)
-
-Vtable for QObjectUserData
-QObjectUserData::_ZTV15QObjectUserData: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QObjectUserData)
-16 (int (*)(...))QObjectUserData::~QObjectUserData
-24 (int (*)(...))QObjectUserData::~QObjectUserData
-
-Class QObjectUserData
- size=8 align=8
- base size=8 base align=8
-QObjectUserData (0x0x7f22bf7d4060) 0 nearly-empty
- vptr=((& QObjectUserData::_ZTV15QObjectUserData) + 16)
-
-Class QSignalBlocker
- size=16 align=8
- base size=10 base align=8
-QSignalBlocker (0x0x7f22bf7d41e0) 0
-
-Class QAbstractAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractAnimation::QPrivateSignal (0x0x7f22bf7d4a80) 0 empty
-
-Vtable for QAbstractAnimation
-QAbstractAnimation::_ZTV18QAbstractAnimation: 18 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractAnimation)
-16 (int (*)(...))QAbstractAnimation::metaObject
-24 (int (*)(...))QAbstractAnimation::qt_metacast
-32 (int (*)(...))QAbstractAnimation::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QAbstractAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QAbstractAnimation
- size=16 align=8
- base size=16 base align=8
-QAbstractAnimation (0x0x7f22bf7cc410) 0
- vptr=((& QAbstractAnimation::_ZTV18QAbstractAnimation) + 16)
- QObject (0x0x7f22bf7d4a20) 0
- primary-for QAbstractAnimation (0x0x7f22bf7cc410)
-
-Class QAnimationDriver::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAnimationDriver::QPrivateSignal (0x0x7f22bf7d4e40) 0 empty
-
-Vtable for QAnimationDriver
-QAnimationDriver::_ZTV16QAnimationDriver: 18 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QAnimationDriver)
-16 (int (*)(...))QAnimationDriver::metaObject
-24 (int (*)(...))QAnimationDriver::qt_metacast
-32 (int (*)(...))QAnimationDriver::qt_metacall
-40 (int (*)(...))QAnimationDriver::~QAnimationDriver
-48 (int (*)(...))QAnimationDriver::~QAnimationDriver
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAnimationDriver::advance
-120 (int (*)(...))QAnimationDriver::elapsed
-128 (int (*)(...))QAnimationDriver::start
-136 (int (*)(...))QAnimationDriver::stop
-
-Class QAnimationDriver
- size=16 align=8
- base size=16 base align=8
-QAnimationDriver (0x0x7f22bf7cc478) 0
- vptr=((& QAnimationDriver::_ZTV16QAnimationDriver) + 16)
- QObject (0x0x7f22bf7d4de0) 0
- primary-for QAnimationDriver (0x0x7f22bf7cc478)
-
-Class QEventLoop::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QEventLoop::QPrivateSignal (0x0x7f22bf8140c0) 0 empty
-
-Vtable for QEventLoop
-QEventLoop::_ZTV10QEventLoop: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QEventLoop)
-16 (int (*)(...))QEventLoop::metaObject
-24 (int (*)(...))QEventLoop::qt_metacast
-32 (int (*)(...))QEventLoop::qt_metacall
-40 (int (*)(...))QEventLoop::~QEventLoop
-48 (int (*)(...))QEventLoop::~QEventLoop
-56 (int (*)(...))QEventLoop::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QEventLoop
- size=16 align=8
- base size=16 base align=8
-QEventLoop (0x0x7f22bf7cc4e0) 0
- vptr=((& QEventLoop::_ZTV10QEventLoop) + 16)
- QObject (0x0x7f22bf814060) 0
- primary-for QEventLoop (0x0x7f22bf7cc4e0)
-
-Class QEventLoopLocker
- size=8 align=8
- base size=8 base align=8
-QEventLoopLocker (0x0x7f22bf814960) 0
-
-Class QAbstractEventDispatcher::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractEventDispatcher::QPrivateSignal (0x0x7f22bf814a20) 0 empty
-
-Class QAbstractEventDispatcher::TimerInfo
- size=12 align=4
- base size=12 base align=4
-QAbstractEventDispatcher::TimerInfo (0x0x7f22bf814a80) 0
-
-Vtable for QAbstractEventDispatcher
-QAbstractEventDispatcher::_ZTV24QAbstractEventDispatcher: 28 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAbstractEventDispatcher)
-16 (int (*)(...))QAbstractEventDispatcher::metaObject
-24 (int (*)(...))QAbstractEventDispatcher::qt_metacast
-32 (int (*)(...))QAbstractEventDispatcher::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-184 (int (*)(...))__cxa_pure_virtual
-192 (int (*)(...))__cxa_pure_virtual
-200 (int (*)(...))__cxa_pure_virtual
-208 (int (*)(...))QAbstractEventDispatcher::startingUp
-216 (int (*)(...))QAbstractEventDispatcher::closingDown
-
-Class QAbstractEventDispatcher
- size=16 align=8
- base size=16 base align=8
-QAbstractEventDispatcher (0x0x7f22bf7cc618) 0
- vptr=((& QAbstractEventDispatcher::_ZTV24QAbstractEventDispatcher) + 16)
- QObject (0x0x7f22bf8149c0) 0
- primary-for QAbstractEventDispatcher (0x0x7f22bf7cc618)
-
-Vtable for std::bad_function_call
-std::bad_function_call::_ZTVSt17bad_function_call: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt17bad_function_call)
-16 (int (*)(...))std::bad_function_call::~bad_function_call
-24 (int (*)(...))std::bad_function_call::~bad_function_call
-32 (int (*)(...))std::bad_function_call::what
-
-Class std::bad_function_call
- size=8 align=8
- base size=8 base align=8
-std::bad_function_call (0x0x7f22bf497f70) 0 nearly-empty
- vptr=((& std::bad_function_call::_ZTVSt17bad_function_call) + 16)
- std::exception (0x0x7f22bf4ed120) 0 nearly-empty
- primary-for std::bad_function_call (0x0x7f22bf497f70)
-
-Class std::_Nocopy_types
- size=16 align=8
- base size=16 base align=8
-std::_Nocopy_types (0x0x7f22bf4ed1e0) 0
-
-Class std::_Any_data
- size=16 align=8
- base size=16 base align=8
-std::_Any_data (0x0x7f22bf4ed240) 0
-
-Class std::_Function_base
- size=24 align=8
- base size=24 base align=8
-std::_Function_base (0x0x7f22bf4ed540) 0
-
-Class QMapNodeBase
- size=24 align=8
- base size=24 base align=8
-QMapNodeBase (0x0x7f22bf2e24e0) 0
-
-Class QMapDataBase
- size=40 align=8
- base size=40 base align=8
-QMapDataBase (0x0x7f22bf31a180) 0
-
-Class QHashData::Node
- size=16 align=8
- base size=16 base align=8
-QHashData::Node (0x0x7f22bf3e7ae0) 0
-
-Class QHashData
- size=48 align=8
- base size=44 base align=8
-QHashData (0x0x7f22bf3e7a80) 0
-
-Class QHashDummyValue
- size=1 align=1
- base size=0 base align=1
-QHashDummyValue (0x0x7f22bf3e7d80) 0 empty
-
-Class QVariant::PrivateShared
- size=16 align=8
- base size=12 base align=8
-QVariant::PrivateShared (0x0x7f22bf10f360) 0
-
-Class QVariant::Private::Data
- size=8 align=8
- base size=8 base align=8
-QVariant::Private::Data (0x0x7f22bf10f420) 0
-
-Class QVariant::Private
- size=16 align=8
- base size=12 base align=8
-QVariant::Private (0x0x7f22bf10f3c0) 0
-
-Class QVariant::Handler
- size=72 align=8
- base size=72 base align=8
-QVariant::Handler (0x0x7f22bf10f480) 0
-
-Class QVariant
- size=16 align=8
- base size=16 base align=8
-QVariant (0x0x7f22bf10f300) 0
-
-Class QVariantComparisonHelper
- size=8 align=8
- base size=8 base align=8
-QVariantComparisonHelper (0x0x7f22bee67720) 0
-
-Class QSequentialIterable::const_iterator
- size=112 align=8
- base size=112 base align=8
-QSequentialIterable::const_iterator (0x0x7f22beeabd80) 0
-
-Class QSequentialIterable
- size=104 align=8
- base size=104 base align=8
-QSequentialIterable (0x0x7f22beeabd20) 0
-
-Class QAssociativeIterable::const_iterator
- size=120 align=8
- base size=120 base align=8
-QAssociativeIterable::const_iterator (0x0x7f22beeabea0) 0
-
-Class QAssociativeIterable
- size=112 align=8
- base size=112 base align=8
-QAssociativeIterable (0x0x7f22beeabe40) 0
-
-Class QModelIndex
- size=24 align=8
- base size=24 base align=8
-QModelIndex (0x0x7f22bef98060) 0
-
-Class QPersistentModelIndex
- size=8 align=8
- base size=8 base align=8
-QPersistentModelIndex (0x0x7f22befe5c60) 0
-
-Class QAbstractItemModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractItemModel::QPrivateSignal (0x0x7f22becb9a80) 0 empty
-
-Vtable for QAbstractItemModel
-QAbstractItemModel::_ZTV18QAbstractItemModel: 48 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractItemModel)
-16 (int (*)(...))QAbstractItemModel::metaObject
-24 (int (*)(...))QAbstractItemModel::qt_metacast
-32 (int (*)(...))QAbstractItemModel::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractItemModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractItemModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractItemModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractItemModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractItemModel
- size=16 align=8
- base size=16 base align=8
-QAbstractItemModel (0x0x7f22becb8b60) 0
- vptr=((& QAbstractItemModel::_ZTV18QAbstractItemModel) + 16)
- QObject (0x0x7f22becb9a20) 0
- primary-for QAbstractItemModel (0x0x7f22becb8b60)
-
-Class QAbstractTableModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTableModel::QPrivateSignal (0x0x7f22bed1de40) 0 empty
-
-Vtable for QAbstractTableModel
-QAbstractTableModel::_ZTV19QAbstractTableModel: 48 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractTableModel)
-16 (int (*)(...))QAbstractTableModel::metaObject
-24 (int (*)(...))QAbstractTableModel::qt_metacast
-32 (int (*)(...))QAbstractTableModel::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractTableModel::index
-120 (int (*)(...))QAbstractTableModel::parent
-128 (int (*)(...))QAbstractTableModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractTableModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractTableModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractTableModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractTableModel
- size=16 align=8
- base size=16 base align=8
-QAbstractTableModel (0x0x7f22bed071a0) 0
- vptr=((& QAbstractTableModel::_ZTV19QAbstractTableModel) + 16)
- QAbstractItemModel (0x0x7f22bed07208) 0
- primary-for QAbstractTableModel (0x0x7f22bed071a0)
- QObject (0x0x7f22bed1dde0) 0
- primary-for QAbstractItemModel (0x0x7f22bed07208)
-
-Class QAbstractListModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractListModel::QPrivateSignal (0x0x7f22beda5000) 0 empty
-
-Vtable for QAbstractListModel
-QAbstractListModel::_ZTV18QAbstractListModel: 48 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QAbstractListModel)
-16 (int (*)(...))QAbstractListModel::metaObject
-24 (int (*)(...))QAbstractListModel::qt_metacast
-32 (int (*)(...))QAbstractListModel::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractListModel::index
-120 (int (*)(...))QAbstractListModel::parent
-128 (int (*)(...))QAbstractListModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QAbstractListModel::columnCount
-152 (int (*)(...))QAbstractListModel::hasChildren
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractItemModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QAbstractItemModel::itemData
-200 (int (*)(...))QAbstractItemModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractListModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QAbstractListModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QAbstractListModel
- size=16 align=8
- base size=16 base align=8
-QAbstractListModel (0x0x7f22bed07270) 0
- vptr=((& QAbstractListModel::_ZTV18QAbstractListModel) + 16)
- QAbstractItemModel (0x0x7f22bed072d8) 0
- primary-for QAbstractListModel (0x0x7f22bed07270)
- QObject (0x0x7f22bed1df60) 0
- primary-for QAbstractItemModel (0x0x7f22bed072d8)
-
-Vtable for QAbstractNativeEventFilter
-QAbstractNativeEventFilter::_ZTV26QAbstractNativeEventFilter: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAbstractNativeEventFilter)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractNativeEventFilter
- size=16 align=8
- base size=16 base align=8
-QAbstractNativeEventFilter (0x0x7f22beda5720) 0
- vptr=((& QAbstractNativeEventFilter::_ZTV26QAbstractNativeEventFilter) + 16)
-
-Class QAbstractProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractProxyModel::QPrivateSignal (0x0x7f22beda57e0) 0 empty
-
-Vtable for QAbstractProxyModel
-QAbstractProxyModel::_ZTV19QAbstractProxyModel: 53 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractProxyModel)
-16 (int (*)(...))QAbstractProxyModel::metaObject
-24 (int (*)(...))QAbstractProxyModel::qt_metacast
-32 (int (*)(...))QAbstractProxyModel::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractProxyModel::sibling
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QAbstractProxyModel::headerData
-184 (int (*)(...))QAbstractProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QAbstractProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QAbstractProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QAbstractProxyModel::setSourceModel
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))__cxa_pure_virtual
-408 (int (*)(...))QAbstractProxyModel::mapSelectionToSource
-416 (int (*)(...))QAbstractProxyModel::mapSelectionFromSource
-
-Class QAbstractProxyModel
- size=16 align=8
- base size=16 base align=8
-QAbstractProxyModel (0x0x7f22bed073a8) 0
- vptr=((& QAbstractProxyModel::_ZTV19QAbstractProxyModel) + 16)
- QAbstractItemModel (0x0x7f22bed07410) 0
- primary-for QAbstractProxyModel (0x0x7f22bed073a8)
- QObject (0x0x7f22beda5780) 0
- primary-for QAbstractItemModel (0x0x7f22bed07410)
-
-Class QAbstractState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractState::QPrivateSignal (0x0x7f22beda5a20) 0 empty
-
-Vtable for QAbstractState
-QAbstractState::_ZTV14QAbstractState: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QAbstractState)
-16 (int (*)(...))QAbstractState::metaObject
-24 (int (*)(...))QAbstractState::qt_metacast
-32 (int (*)(...))QAbstractState::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QAbstractState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractState
- size=16 align=8
- base size=16 base align=8
-QAbstractState (0x0x7f22bed07478) 0
- vptr=((& QAbstractState::_ZTV14QAbstractState) + 16)
- QObject (0x0x7f22beda59c0) 0
- primary-for QAbstractState (0x0x7f22bed07478)
-
-Class QAbstractTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTransition::QPrivateSignal (0x0x7f22beda5c60) 0 empty
-
-Vtable for QAbstractTransition
-QAbstractTransition::_ZTV19QAbstractTransition: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QAbstractTransition)
-16 (int (*)(...))QAbstractTransition::metaObject
-24 (int (*)(...))QAbstractTransition::qt_metacast
-32 (int (*)(...))QAbstractTransition::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QAbstractTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractTransition
- size=16 align=8
- base size=16 base align=8
-QAbstractTransition (0x0x7f22bed074e0) 0
- vptr=((& QAbstractTransition::_ZTV19QAbstractTransition) + 16)
- QObject (0x0x7f22beda5c00) 0
- primary-for QAbstractTransition (0x0x7f22bed074e0)
-
-Class QAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAnimationGroup::QPrivateSignal (0x0x7f22beda5f60) 0 empty
-
-Vtable for QAnimationGroup
-QAnimationGroup::_ZTV15QAnimationGroup: 18 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QAnimationGroup)
-16 (int (*)(...))QAnimationGroup::metaObject
-24 (int (*)(...))QAnimationGroup::qt_metacast
-32 (int (*)(...))QAnimationGroup::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QAnimationGroup (0x0x7f22bed07548) 0
- vptr=((& QAnimationGroup::_ZTV15QAnimationGroup) + 16)
- QAbstractAnimation (0x0x7f22bed075b0) 0
- primary-for QAnimationGroup (0x0x7f22bed07548)
- QObject (0x0x7f22beda5f00) 0
- primary-for QAbstractAnimation (0x0x7f22bed075b0)
-
-Class QBasicTimer
- size=4 align=4
- base size=4 base align=4
-QBasicTimer (0x0x7f22bea82300) 0
-
-Class QBitArray
- size=8 align=8
- base size=8 base align=8
-QBitArray (0x0x7f22beabf6c0) 0
-
-Class QBitRef
- size=16 align=8
- base size=12 base align=8
-QBitRef (0x0x7f22beb14b40) 0
-
-Class QIODevice::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIODevice::QPrivateSignal (0x0x7f22beb68f00) 0 empty
-
-Vtable for QIODevice
-QIODevice::_ZTV9QIODevice: 30 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QIODevice)
-16 (int (*)(...))QIODevice::metaObject
-24 (int (*)(...))QIODevice::qt_metacast
-32 (int (*)(...))QIODevice::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIODevice::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QIODevice::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))__cxa_pure_virtual
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))__cxa_pure_virtual
-
-Class QIODevice
- size=16 align=8
- base size=16 base align=8
-QIODevice (0x0x7f22beb71af8) 0
- vptr=((& QIODevice::_ZTV9QIODevice) + 16)
- QObject (0x0x7f22beb68ea0) 0
- primary-for QIODevice (0x0x7f22beb71af8)
-
-Class QBuffer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QBuffer::QPrivateSignal (0x0x7f22beb9e8a0) 0 empty
-
-Vtable for QBuffer
-QBuffer::_ZTV7QBuffer: 30 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QBuffer)
-16 (int (*)(...))QBuffer::metaObject
-24 (int (*)(...))QBuffer::qt_metacast
-32 (int (*)(...))QBuffer::qt_metacall
-40 (int (*)(...))QBuffer::~QBuffer
-48 (int (*)(...))QBuffer::~QBuffer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QBuffer::connectNotify
-104 (int (*)(...))QBuffer::disconnectNotify
-112 (int (*)(...))QIODevice::isSequential
-120 (int (*)(...))QBuffer::open
-128 (int (*)(...))QBuffer::close
-136 (int (*)(...))QBuffer::pos
-144 (int (*)(...))QBuffer::size
-152 (int (*)(...))QBuffer::seek
-160 (int (*)(...))QBuffer::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QBuffer::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QBuffer::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QBuffer::writeData
-
-Class QBuffer
- size=16 align=8
- base size=16 base align=8
-QBuffer (0x0x7f22beb71c30) 0
- vptr=((& QBuffer::_ZTV7QBuffer) + 16)
- QIODevice (0x0x7f22beb71c98) 0
- primary-for QBuffer (0x0x7f22beb71c30)
- QObject (0x0x7f22beb9e840) 0
- primary-for QIODevice (0x0x7f22beb71c98)
-
-Class QByteArrayMatcher::Data
- size=272 align=8
- base size=272 base align=8
-QByteArrayMatcher::Data (0x0x7f22beb9eb40) 0
-
-Class QByteArrayMatcher
- size=1040 align=8
- base size=1040 base align=8
-QByteArrayMatcher (0x0x7f22beb9eae0) 0
-
-Class QStaticByteArrayMatcherBase::Skiptable
- size=256 align=1
- base size=256 base align=1
-QStaticByteArrayMatcherBase::Skiptable (0x0x7f22beb9ecc0) 0
-
-Class QStaticByteArrayMatcherBase
- size=256 align=16
- base size=256 base align=16
-QStaticByteArrayMatcherBase (0x0x7f22beb9ec60) 0
-
-Class QSharedData
- size=4 align=4
- base size=4 base align=4
-QSharedData (0x0x7f22bebfaba0) 0
-
-Class QDate
- size=8 align=8
- base size=8 base align=8
-QDate (0x0x7f22bec44b40) 0
-
-Class QTime
- size=4 align=4
- base size=4 base align=4
-QTime (0x0x7f22be8b3420) 0
-
-Class QDateTime::ShortData
- size=8 align=8
- base size=8 base align=8
-QDateTime::ShortData (0x0x7f22be91c0c0) 0
-
-Class QDateTime::Data
- size=8 align=8
- base size=8 base align=8
-QDateTime::Data (0x0x7f22be91c120) 0
-
-Class QDateTime
- size=8 align=8
- base size=8 base align=8
-QDateTime (0x0x7f22be91c060) 0
-
-Class QLocale
- size=8 align=8
- base size=8 base align=8
-QLocale (0x0x7f22be9f37e0) 0
-
-Vtable for QTextStream
-QTextStream::_ZTV11QTextStream: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTextStream)
-16 (int (*)(...))QTextStream::~QTextStream
-24 (int (*)(...))QTextStream::~QTextStream
-
-Class QTextStream
- size=16 align=8
- base size=16 base align=8
-QTextStream (0x0x7f22be6dbd80) 0
- vptr=((& QTextStream::_ZTV11QTextStream) + 16)
-
-Class QTextStreamManipulator
- size=40 align=8
- base size=38 base align=8
-QTextStreamManipulator (0x0x7f22be740660) 0
-
-Class QContiguousCacheData
- size=24 align=4
- base size=24 base align=4
-QContiguousCacheData (0x0x7f22be7e7180) 0
-
-Class QtSharedPointer::NormalDeleter
- size=1 align=1
- base size=0 base align=1
-QtSharedPointer::NormalDeleter (0x0x7f22be813de0) 0 empty
-
-Class QtSharedPointer::ExternalRefCountData
- size=16 align=8
- base size=16 base align=8
-QtSharedPointer::ExternalRefCountData (0x0x7f22be813f60) 0
-
-Class QDebug::Stream
- size=80 align=8
- base size=76 base align=8
-QDebug::Stream (0x0x7f22be4c2ba0) 0
-
-Class QDebug
- size=8 align=8
- base size=8 base align=8
-QDebug (0x0x7f22be4c2b40) 0
-
-Class QDebugStateSaver
- size=8 align=8
- base size=8 base align=8
-QDebugStateSaver (0x0x7f22be26cc00) 0
-
-Class QNoDebug
- size=1 align=1
- base size=0 base align=1
-QNoDebug (0x0x7f22be26ccc0) 0 empty
-
-Class QCborError
- size=4 align=4
- base size=4 base align=4
-QCborError (0x0x7f22be319000) 0
-
-Class QRegularExpression
- size=8 align=8
- base size=8 base align=8
-QRegularExpression (0x0x7f22be319780) 0
-
-Class QRegularExpressionMatch
- size=8 align=8
- base size=8 base align=8
-QRegularExpressionMatch (0x0x7f22be3c8660) 0
-
-Class QRegularExpressionMatchIterator
- size=8 align=8
- base size=8 base align=8
-QRegularExpressionMatchIterator (0x0x7f22be42f420) 0
-
-Class QUrl
- size=8 align=8
- base size=8 base align=8
-QUrl (0x0x7f22be086e40) 0
-
-Class QUuid
- size=16 align=4
- base size=16 base align=4
-QUuid (0x0x7f22be1cade0) 0
-
-Class QCborParserError
- size=16 align=8
- base size=12 base align=8
-QCborParserError (0x0x7f22bde5c960) 0
-
-Class QCborValue
- size=24 align=8
- base size=20 base align=8
-QCborValue (0x0x7f22bde5ca20) 0
-
-Class QCborValueRef
- size=16 align=8
- base size=16 base align=8
-QCborValueRef (0x0x7f22bdcd1a20) 0
-
-Class QCborArray::Iterator
- size=16 align=8
- base size=16 base align=8
-QCborArray::Iterator (0x0x7f22bdd6d480) 0
-
-Class QCborArray::ConstIterator
- size=16 align=8
- base size=16 base align=8
-QCborArray::ConstIterator (0x0x7f22bdd6d4e0) 0
-
-Class QCborArray
- size=8 align=8
- base size=8 base align=8
-QCborArray (0x0x7f22bdd6d420) 0
-
-Class QCborMap::Iterator
- size=16 align=8
- base size=16 base align=8
-QCborMap::Iterator (0x0x7f22bda5bea0) 0
-
-Class QCborMap::ConstIterator
- size=16 align=8
- base size=16 base align=8
-QCborMap::ConstIterator (0x0x7f22bda5bf00) 0
-
-Class QCborMap
- size=8 align=8
- base size=8 base align=8
-QCborMap (0x0x7f22bda5be40) 0
-
-Class qfloat16
- size=2 align=2
- base size=2 base align=2
-qfloat16 (0x0x7f22bd872660) 0
-
-Class QCborStreamWriter
- size=8 align=8
- base size=8 base align=8
-QCborStreamWriter (0x0x7f22bd92d600) 0
-
-Class QCborStreamReader
- size=24 align=8
- base size=20 base align=8
-QCborStreamReader (0x0x7f22bd962360) 0
-
-Class QCollatorSortKey
- size=8 align=8
- base size=8 base align=8
-QCollatorSortKey (0x0x7f22bd9e4480) 0
-
-Class QCollator
- size=8 align=8
- base size=8 base align=8
-QCollator (0x0x7f22bd9e4660) 0
-
-Class QCommandLineOption
- size=8 align=8
- base size=8 base align=8
-QCommandLineOption (0x0x7f22bd6dac00) 0
-
-Vtable for QEvent
-QEvent::_ZTV6QEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QEvent)
-16 (int (*)(...))QEvent::~QEvent
-24 (int (*)(...))QEvent::~QEvent
-
-Class QEvent
- size=24 align=8
- base size=20 base align=8
-QEvent (0x0x7f22bd766360) 0
- vptr=((& QEvent::_ZTV6QEvent) + 16)
-
-Vtable for QTimerEvent
-QTimerEvent::_ZTV11QTimerEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTimerEvent)
-16 (int (*)(...))QTimerEvent::~QTimerEvent
-24 (int (*)(...))QTimerEvent::~QTimerEvent
-
-Class QTimerEvent
- size=24 align=8
- base size=24 base align=8
-QTimerEvent (0x0x7f22bd731e38) 0
- vptr=((& QTimerEvent::_ZTV11QTimerEvent) + 16)
- QEvent (0x0x7f22bd766720) 0
- primary-for QTimerEvent (0x0x7f22bd731e38)
-
-Vtable for QChildEvent
-QChildEvent::_ZTV11QChildEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QChildEvent)
-16 (int (*)(...))QChildEvent::~QChildEvent
-24 (int (*)(...))QChildEvent::~QChildEvent
-
-Class QChildEvent
- size=32 align=8
- base size=32 base align=8
-QChildEvent (0x0x7f22bd731ea0) 0
- vptr=((& QChildEvent::_ZTV11QChildEvent) + 16)
- QEvent (0x0x7f22bd7667e0) 0
- primary-for QChildEvent (0x0x7f22bd731ea0)
-
-Vtable for QDynamicPropertyChangeEvent
-QDynamicPropertyChangeEvent::_ZTV27QDynamicPropertyChangeEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QDynamicPropertyChangeEvent)
-16 (int (*)(...))QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent
-24 (int (*)(...))QDynamicPropertyChangeEvent::~QDynamicPropertyChangeEvent
-
-Class QDynamicPropertyChangeEvent
- size=32 align=8
- base size=32 base align=8
-QDynamicPropertyChangeEvent (0x0x7f22bd791410) 0
- vptr=((& QDynamicPropertyChangeEvent::_ZTV27QDynamicPropertyChangeEvent) + 16)
- QEvent (0x0x7f22bd766e40) 0
- primary-for QDynamicPropertyChangeEvent (0x0x7f22bd791410)
-
-Vtable for QDeferredDeleteEvent
-QDeferredDeleteEvent::_ZTV20QDeferredDeleteEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QDeferredDeleteEvent)
-16 (int (*)(...))QDeferredDeleteEvent::~QDeferredDeleteEvent
-24 (int (*)(...))QDeferredDeleteEvent::~QDeferredDeleteEvent
-
-Class QDeferredDeleteEvent
- size=24 align=8
- base size=24 base align=8
-QDeferredDeleteEvent (0x0x7f22bd791478) 0
- vptr=((& QDeferredDeleteEvent::_ZTV20QDeferredDeleteEvent) + 16)
- QEvent (0x0x7f22bd766f00) 0
- primary-for QDeferredDeleteEvent (0x0x7f22bd791478)
-
-Class QCoreApplication::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QCoreApplication::QPrivateSignal (0x0x7f22bd7a9060) 0 empty
-
-Vtable for QCoreApplication
-QCoreApplication::_ZTV16QCoreApplication: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QCoreApplication)
-16 (int (*)(...))QCoreApplication::metaObject
-24 (int (*)(...))QCoreApplication::qt_metacast
-32 (int (*)(...))QCoreApplication::qt_metacall
-40 (int (*)(...))QCoreApplication::~QCoreApplication
-48 (int (*)(...))QCoreApplication::~QCoreApplication
-56 (int (*)(...))QCoreApplication::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QCoreApplication::notify
-120 (int (*)(...))QCoreApplication::compressEvent
-
-Class QCoreApplication
- size=16 align=8
- base size=16 base align=8
-QCoreApplication (0x0x7f22bd7914e0) 0
- vptr=((& QCoreApplication::_ZTV16QCoreApplication) + 16)
- QObject (0x0x7f22bd7a9000) 0
- primary-for QCoreApplication (0x0x7f22bd7914e0)
-
-Class QCommandLineParser
- size=8 align=8
- base size=8 base align=8
-QCommandLineParser (0x0x7f22bd7a92a0) 0
-
-Class QConcatenateTablesProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QConcatenateTablesProxyModel::QPrivateSignal (0x0x7f22bd7a9420) 0 empty
-
-Vtable for QConcatenateTablesProxyModel
-QConcatenateTablesProxyModel::_ZTV28QConcatenateTablesProxyModel: 48 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QConcatenateTablesProxyModel)
-16 (int (*)(...))QConcatenateTablesProxyModel::metaObject
-24 (int (*)(...))QConcatenateTablesProxyModel::qt_metacast
-32 (int (*)(...))QConcatenateTablesProxyModel::qt_metacall
-40 (int (*)(...))QConcatenateTablesProxyModel::~QConcatenateTablesProxyModel
-48 (int (*)(...))QConcatenateTablesProxyModel::~QConcatenateTablesProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QConcatenateTablesProxyModel::index
-120 (int (*)(...))QConcatenateTablesProxyModel::parent
-128 (int (*)(...))QAbstractItemModel::sibling
-136 (int (*)(...))QConcatenateTablesProxyModel::rowCount
-144 (int (*)(...))QConcatenateTablesProxyModel::columnCount
-152 (int (*)(...))QAbstractItemModel::hasChildren
-160 (int (*)(...))QConcatenateTablesProxyModel::data
-168 (int (*)(...))QConcatenateTablesProxyModel::setData
-176 (int (*)(...))QConcatenateTablesProxyModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QConcatenateTablesProxyModel::itemData
-200 (int (*)(...))QConcatenateTablesProxyModel::setItemData
-208 (int (*)(...))QConcatenateTablesProxyModel::mimeTypes
-216 (int (*)(...))QConcatenateTablesProxyModel::mimeData
-224 (int (*)(...))QConcatenateTablesProxyModel::canDropMimeData
-232 (int (*)(...))QConcatenateTablesProxyModel::dropMimeData
-240 (int (*)(...))QAbstractItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QAbstractItemModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QAbstractItemModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QConcatenateTablesProxyModel::flags
-328 (int (*)(...))QAbstractItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QConcatenateTablesProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QConcatenateTablesProxyModel
- size=16 align=8
- base size=16 base align=8
-QConcatenateTablesProxyModel (0x0x7f22bd791548) 0
- vptr=((& QConcatenateTablesProxyModel::_ZTV28QConcatenateTablesProxyModel) + 16)
- QAbstractItemModel (0x0x7f22bd7915b0) 0
- primary-for QConcatenateTablesProxyModel (0x0x7f22bd791548)
- QObject (0x0x7f22bd7a93c0) 0
- primary-for QAbstractItemModel (0x0x7f22bd7915b0)
-
-Class QCryptographicHash
- size=8 align=8
- base size=8 base align=8
-QCryptographicHash (0x0x7f22bd7a9600) 0
-
-Class QDataStream
- size=32 align=8
- base size=32 base align=8
-QDataStream (0x0x7f22bd7a9720) 0
-
-Class QtPrivate::StreamStateSaver
- size=16 align=8
- base size=12 base align=8
-QtPrivate::StreamStateSaver (0x0x7f22bd7a98a0) 0
-
-Class QElapsedTimer
- size=16 align=8
- base size=16 base align=8
-QElapsedTimer (0x0x7f22bd465000) 0
-
-Class QDeadlineTimer
- size=16 align=8
- base size=16 base align=8
-QDeadlineTimer (0x0x7f22bd465720) 0
-
-Class QFileDevice::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileDevice::QPrivateSignal (0x0x7f22bd5a7480) 0 empty
-
-Vtable for QFileDevice
-QFileDevice::_ZTV11QFileDevice: 34 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFileDevice)
-16 (int (*)(...))QFileDevice::metaObject
-24 (int (*)(...))QFileDevice::qt_metacast
-32 (int (*)(...))QFileDevice::qt_metacall
-40 (int (*)(...))QFileDevice::~QFileDevice
-48 (int (*)(...))QFileDevice::~QFileDevice
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFileDevice::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QFileDevice::fileName
-248 (int (*)(...))QFileDevice::resize
-256 (int (*)(...))QFileDevice::permissions
-264 (int (*)(...))QFileDevice::setPermissions
-
-Class QFileDevice
- size=16 align=8
- base size=16 base align=8
-QFileDevice (0x0x7f22bd59f7b8) 0
- vptr=((& QFileDevice::_ZTV11QFileDevice) + 16)
- QIODevice (0x0x7f22bd59f820) 0
- primary-for QFileDevice (0x0x7f22bd59f7b8)
- QObject (0x0x7f22bd5a7420) 0
- primary-for QIODevice (0x0x7f22bd59f820)
-
-Class QFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFile::QPrivateSignal (0x0x7f22bd5a7d80) 0 empty
-
-Vtable for QFile
-QFile::_ZTV5QFile: 34 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QFile)
-16 (int (*)(...))QFile::metaObject
-24 (int (*)(...))QFile::qt_metacast
-32 (int (*)(...))QFile::qt_metacall
-40 (int (*)(...))QFile::~QFile
-48 (int (*)(...))QFile::~QFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QFile::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFile::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QFile::fileName
-248 (int (*)(...))QFile::resize
-256 (int (*)(...))QFile::permissions
-264 (int (*)(...))QFile::setPermissions
-
-Class QFile
- size=16 align=8
- base size=16 base align=8
-QFile (0x0x7f22bd59f958) 0
- vptr=((& QFile::_ZTV5QFile) + 16)
- QFileDevice (0x0x7f22bd59f9c0) 0
- primary-for QFile (0x0x7f22bd59f958)
- QIODevice (0x0x7f22bd59fa28) 0
- primary-for QFileDevice (0x0x7f22bd59f9c0)
- QObject (0x0x7f22bd5a7d20) 0
- primary-for QIODevice (0x0x7f22bd59fa28)
-
-Class QFileInfo
- size=8 align=8
- base size=8 base align=8
-QFileInfo (0x0x7f22bd61d420) 0
-
-Class QDir
- size=8 align=8
- base size=8 base align=8
-QDir (0x0x7f22bd2747e0) 0
-
-Class QDirIterator
- size=8 align=8
- base size=8 base align=8
-QDirIterator (0x0x7f22bd322b40) 0
-
-Class QEasingCurve
- size=8 align=8
- base size=8 base align=8
-QEasingCurve (0x0x7f22bd37a300) 0
-
-Class QEventTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QEventTransition::QPrivateSignal (0x0x7f22bd07b420) 0 empty
-
-Vtable for QEventTransition
-QEventTransition::_ZTV16QEventTransition: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QEventTransition)
-16 (int (*)(...))QEventTransition::metaObject
-24 (int (*)(...))QEventTransition::qt_metacast
-32 (int (*)(...))QEventTransition::qt_metacall
-40 (int (*)(...))QEventTransition::~QEventTransition
-48 (int (*)(...))QEventTransition::~QEventTransition
-56 (int (*)(...))QEventTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QEventTransition::eventTest
-120 (int (*)(...))QEventTransition::onTransition
-
-Class QEventTransition
- size=16 align=8
- base size=16 base align=8
-QEventTransition (0x0x7f22bd42ec98) 0
- vptr=((& QEventTransition::_ZTV16QEventTransition) + 16)
- QAbstractTransition (0x0x7f22bd42ed00) 0
- primary-for QEventTransition (0x0x7f22bd42ec98)
- QObject (0x0x7f22bd07b3c0) 0
- primary-for QAbstractTransition (0x0x7f22bd42ed00)
-
-Vtable for QException
-QException::_ZTV10QException: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QException)
-16 (int (*)(...))QException::~QException
-24 (int (*)(...))QException::~QException
-32 (int (*)(...))std::exception::what
-40 (int (*)(...))QException::raise
-48 (int (*)(...))QException::clone
-
-Class QException
- size=8 align=8
- base size=8 base align=8
-QException (0x0x7f22bd42ed68) 0 nearly-empty
- vptr=((& QException::_ZTV10QException) + 16)
- std::exception (0x0x7f22bd07b600) 0 nearly-empty
- primary-for QException (0x0x7f22bd42ed68)
-
-Vtable for QUnhandledException
-QUnhandledException::_ZTV19QUnhandledException: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QUnhandledException)
-16 (int (*)(...))QUnhandledException::~QUnhandledException
-24 (int (*)(...))QUnhandledException::~QUnhandledException
-32 (int (*)(...))std::exception::what
-40 (int (*)(...))QUnhandledException::raise
-48 (int (*)(...))QUnhandledException::clone
-
-Class QUnhandledException
- size=8 align=8
- base size=8 base align=8
-QUnhandledException (0x0x7f22bd42edd0) 0 nearly-empty
- vptr=((& QUnhandledException::_ZTV19QUnhandledException) + 16)
- QException (0x0x7f22bd42ee38) 0 nearly-empty
- primary-for QUnhandledException (0x0x7f22bd42edd0)
- std::exception (0x0x7f22bd07b660) 0 nearly-empty
- primary-for QException (0x0x7f22bd42ee38)
-
-Class QtPrivate::ExceptionHolder
- size=8 align=8
- base size=8 base align=8
-QtPrivate::ExceptionHolder (0x0x7f22bd07b6c0) 0
-
-Class QtPrivate::ExceptionStore
- size=8 align=8
- base size=8 base align=8
-QtPrivate::ExceptionStore (0x0x7f22bd07b780) 0
-
-Vtable for QFactoryInterface
-QFactoryInterface::_ZTV17QFactoryInterface: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QFactoryInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QFactoryInterface
- size=8 align=8
- base size=8 base align=8
-QFactoryInterface (0x0x7f22bd07b7e0) 0 nearly-empty
- vptr=((& QFactoryInterface::_ZTV17QFactoryInterface) + 16)
-
-Class QFileSelector::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileSelector::QPrivateSignal (0x0x7f22bd07ba20) 0 empty
-
-Vtable for QFileSelector
-QFileSelector::_ZTV13QFileSelector: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QFileSelector)
-16 (int (*)(...))QFileSelector::metaObject
-24 (int (*)(...))QFileSelector::qt_metacast
-32 (int (*)(...))QFileSelector::qt_metacall
-40 (int (*)(...))QFileSelector::~QFileSelector
-48 (int (*)(...))QFileSelector::~QFileSelector
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QFileSelector
- size=16 align=8
- base size=16 base align=8
-QFileSelector (0x0x7f22bd42eea0) 0
- vptr=((& QFileSelector::_ZTV13QFileSelector) + 16)
- QObject (0x0x7f22bd07b9c0) 0
- primary-for QFileSelector (0x0x7f22bd42eea0)
-
-Class QFileSystemWatcher::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFileSystemWatcher::QPrivateSignal (0x0x7f22bd07bc60) 0 empty
-
-Vtable for QFileSystemWatcher
-QFileSystemWatcher::_ZTV18QFileSystemWatcher: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QFileSystemWatcher)
-16 (int (*)(...))QFileSystemWatcher::metaObject
-24 (int (*)(...))QFileSystemWatcher::qt_metacast
-32 (int (*)(...))QFileSystemWatcher::qt_metacall
-40 (int (*)(...))QFileSystemWatcher::~QFileSystemWatcher
-48 (int (*)(...))QFileSystemWatcher::~QFileSystemWatcher
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QFileSystemWatcher
- size=16 align=8
- base size=16 base align=8
-QFileSystemWatcher (0x0x7f22bd42ef08) 0
- vptr=((& QFileSystemWatcher::_ZTV18QFileSystemWatcher) + 16)
- QObject (0x0x7f22bd07bc00) 0
- primary-for QFileSystemWatcher (0x0x7f22bd42ef08)
-
-Class QFinalState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFinalState::QPrivateSignal (0x0x7f22bd07bea0) 0 empty
-
-Vtable for QFinalState
-QFinalState::_ZTV11QFinalState: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFinalState)
-16 (int (*)(...))QFinalState::metaObject
-24 (int (*)(...))QFinalState::qt_metacast
-32 (int (*)(...))QFinalState::qt_metacall
-40 (int (*)(...))QFinalState::~QFinalState
-48 (int (*)(...))QFinalState::~QFinalState
-56 (int (*)(...))QFinalState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFinalState::onEntry
-120 (int (*)(...))QFinalState::onExit
-
-Class QFinalState
- size=16 align=8
- base size=16 base align=8
-QFinalState (0x0x7f22bd42ef70) 0
- vptr=((& QFinalState::_ZTV11QFinalState) + 16)
- QAbstractState (0x0x7f22bd0ce000) 0
- primary-for QFinalState (0x0x7f22bd42ef70)
- QObject (0x0x7f22bd07be40) 0
- primary-for QAbstractState (0x0x7f22bd0ce000)
-
-Vtable for QRunnable
-QRunnable::_ZTV9QRunnable: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QRunnable)
-16 (int (*)(...))__cxa_pure_virtual
-24 0
-32 0
-
-Class QRunnable
- size=16 align=8
- base size=12 base align=8
-QRunnable (0x0x7f22bd0d70c0) 0
- vptr=((& QRunnable::_ZTV9QRunnable) + 16)
-
-Class QBasicMutex
- size=8 align=8
- base size=8 base align=8
-QBasicMutex (0x0x7f22bd0d7360) 0
-
-Class QMutex
- size=8 align=8
- base size=8 base align=8
-QMutex (0x0x7f22bd0ce0d0) 0
- QBasicMutex (0x0x7f22bd154000) 0
-
-Class QMutexLocker
- size=8 align=8
- base size=8 base align=8
-QMutexLocker (0x0x7f22bd154240) 0
-
-Class QtPrivate::ResultItem
- size=16 align=8
- base size=16 base align=8
-QtPrivate::ResultItem (0x0x7f22bd1546c0) 0
-
-Class QtPrivate::ResultIteratorBase
- size=16 align=8
- base size=12 base align=8
-QtPrivate::ResultIteratorBase (0x0x7f22bd154cc0) 0
-
-Vtable for QtPrivate::ResultStoreBase
-QtPrivate::ResultStoreBase::_ZTVN9QtPrivate15ResultStoreBaseE: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9QtPrivate15ResultStoreBaseE)
-16 (int (*)(...))QtPrivate::ResultStoreBase::~ResultStoreBase
-24 (int (*)(...))QtPrivate::ResultStoreBase::~ResultStoreBase
-
-Class QtPrivate::ResultStoreBase
- size=48 align=8
- base size=44 base align=8
-QtPrivate::ResultStoreBase (0x0x7f22bd154ea0) 0
- vptr=((& QtPrivate::ResultStoreBase::_ZTVN9QtPrivate15ResultStoreBaseE) + 16)
-
-Vtable for QFutureInterfaceBase
-QFutureInterfaceBase::_ZTV20QFutureInterfaceBase: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QFutureInterfaceBase)
-16 (int (*)(...))QFutureInterfaceBase::~QFutureInterfaceBase
-24 (int (*)(...))QFutureInterfaceBase::~QFutureInterfaceBase
-
-Class QFutureInterfaceBase
- size=16 align=8
- base size=16 base align=8
-QFutureInterfaceBase (0x0x7f22bd1f66c0) 0
- vptr=((& QFutureInterfaceBase::_ZTV20QFutureInterfaceBase) + 16)
-
-Class QFutureWatcherBase::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QFutureWatcherBase::QPrivateSignal (0x0x7f22bce999c0) 0 empty
-
-Vtable for QFutureWatcherBase
-QFutureWatcherBase::_ZTV18QFutureWatcherBase: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QFutureWatcherBase)
-16 (int (*)(...))QFutureWatcherBase::metaObject
-24 (int (*)(...))QFutureWatcherBase::qt_metacast
-32 (int (*)(...))QFutureWatcherBase::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QFutureWatcherBase::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QFutureWatcherBase::connectNotify
-104 (int (*)(...))QFutureWatcherBase::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QFutureWatcherBase
- size=16 align=8
- base size=16 base align=8
-QFutureWatcherBase (0x0x7f22bd2306e8) 0
- vptr=((& QFutureWatcherBase::_ZTV18QFutureWatcherBase) + 16)
- QObject (0x0x7f22bce99960) 0
- primary-for QFutureWatcherBase (0x0x7f22bd2306e8)
-
-Class QHistoryState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QHistoryState::QPrivateSignal (0x0x7f22bcec4d20) 0 empty
-
-Vtable for QHistoryState
-QHistoryState::_ZTV13QHistoryState: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QHistoryState)
-16 (int (*)(...))QHistoryState::metaObject
-24 (int (*)(...))QHistoryState::qt_metacast
-32 (int (*)(...))QHistoryState::qt_metacall
-40 (int (*)(...))QHistoryState::~QHistoryState
-48 (int (*)(...))QHistoryState::~QHistoryState
-56 (int (*)(...))QHistoryState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QHistoryState::onEntry
-120 (int (*)(...))QHistoryState::onExit
-
-Class QHistoryState
- size=16 align=8
- base size=16 base align=8
-QHistoryState (0x0x7f22bd230f08) 0
- vptr=((& QHistoryState::_ZTV13QHistoryState) + 16)
- QAbstractState (0x0x7f22bd230f70) 0
- primary-for QHistoryState (0x0x7f22bd230f08)
- QObject (0x0x7f22bcec4cc0) 0
- primary-for QAbstractState (0x0x7f22bd230f70)
-
-Class QIdentityProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIdentityProxyModel::QPrivateSignal (0x0x7f22bceef060) 0 empty
-
-Vtable for QIdentityProxyModel
-QIdentityProxyModel::_ZTV19QIdentityProxyModel: 53 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QIdentityProxyModel)
-16 (int (*)(...))QIdentityProxyModel::metaObject
-24 (int (*)(...))QIdentityProxyModel::qt_metacast
-32 (int (*)(...))QIdentityProxyModel::qt_metacall
-40 (int (*)(...))QIdentityProxyModel::~QIdentityProxyModel
-48 (int (*)(...))QIdentityProxyModel::~QIdentityProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIdentityProxyModel::index
-120 (int (*)(...))QIdentityProxyModel::parent
-128 (int (*)(...))QIdentityProxyModel::sibling
-136 (int (*)(...))QIdentityProxyModel::rowCount
-144 (int (*)(...))QIdentityProxyModel::columnCount
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QIdentityProxyModel::headerData
-184 (int (*)(...))QAbstractProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QIdentityProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QIdentityProxyModel::insertRows
-264 (int (*)(...))QIdentityProxyModel::insertColumns
-272 (int (*)(...))QIdentityProxyModel::removeRows
-280 (int (*)(...))QIdentityProxyModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QAbstractProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QIdentityProxyModel::match
-352 (int (*)(...))QAbstractProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QIdentityProxyModel::setSourceModel
-392 (int (*)(...))QIdentityProxyModel::mapToSource
-400 (int (*)(...))QIdentityProxyModel::mapFromSource
-408 (int (*)(...))QIdentityProxyModel::mapSelectionToSource
-416 (int (*)(...))QIdentityProxyModel::mapSelectionFromSource
-
-Class QIdentityProxyModel
- size=16 align=8
- base size=16 base align=8
-QIdentityProxyModel (0x0x7f22bceee000) 0
- vptr=((& QIdentityProxyModel::_ZTV19QIdentityProxyModel) + 16)
- QAbstractProxyModel (0x0x7f22bceee068) 0
- primary-for QIdentityProxyModel (0x0x7f22bceee000)
- QAbstractItemModel (0x0x7f22bceee0d0) 0
- primary-for QAbstractProxyModel (0x0x7f22bceee068)
- QObject (0x0x7f22bceef000) 0
- primary-for QAbstractItemModel (0x0x7f22bceee0d0)
-
-Class QItemSelectionRange
- size=16 align=8
- base size=16 base align=8
-QItemSelectionRange (0x0x7f22bceef240) 0
-
-Class QItemSelectionModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QItemSelectionModel::QPrivateSignal (0x0x7f22bcfafb40) 0 empty
-
-Vtable for QItemSelectionModel
-QItemSelectionModel::_ZTV19QItemSelectionModel: 20 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QItemSelectionModel)
-16 (int (*)(...))QItemSelectionModel::metaObject
-24 (int (*)(...))QItemSelectionModel::qt_metacast
-32 (int (*)(...))QItemSelectionModel::qt_metacall
-40 (int (*)(...))QItemSelectionModel::~QItemSelectionModel
-48 (int (*)(...))QItemSelectionModel::~QItemSelectionModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QItemSelectionModel::setCurrentIndex
-120 (int (*)(...))QItemSelectionModel::select
-128 (int (*)(...))QItemSelectionModel::select
-136 (int (*)(...))QItemSelectionModel::clear
-144 (int (*)(...))QItemSelectionModel::reset
-152 (int (*)(...))QItemSelectionModel::clearCurrentIndex
-
-Class QItemSelectionModel
- size=16 align=8
- base size=16 base align=8
-QItemSelectionModel (0x0x7f22bcfb1a28) 0
- vptr=((& QItemSelectionModel::_ZTV19QItemSelectionModel) + 16)
- QObject (0x0x7f22bcfafae0) 0
- primary-for QItemSelectionModel (0x0x7f22bcfb1a28)
-
-Class QItemSelection
- size=8 align=8
- base size=8 base align=8
-QItemSelection (0x0x7f22bcfb1bc8) 0
- QList<QItemSelectionRange> (0x0x7f22bcfb1c30) 0
- QListSpecialMethods<QItemSelectionRange> (0x0x7f22bcfef660) 0 empty
-
-Class QJsonValue
- size=24 align=8
- base size=20 base align=8
-QJsonValue (0x0x7f22bcc56f60) 0
-
-Class QJsonValueRef
- size=16 align=8
- base size=12 base align=8
-QJsonValueRef (0x0x7f22bcdde180) 0
-
-Class QJsonValuePtr
- size=24 align=8
- base size=24 base align=8
-QJsonValuePtr (0x0x7f22bce19120) 0
-
-Class QJsonValueRefPtr
- size=16 align=8
- base size=16 base align=8
-QJsonValueRefPtr (0x0x7f22bce193c0) 0
-
-Class QJsonArray::iterator
- size=16 align=8
- base size=12 base align=8
-QJsonArray::iterator (0x0x7f22bca5e720) 0
-
-Class QJsonArray::const_iterator
- size=16 align=8
- base size=12 base align=8
-QJsonArray::const_iterator (0x0x7f22bca5e780) 0
-
-Class QJsonArray
- size=16 align=8
- base size=16 base align=8
-QJsonArray (0x0x7f22bca5e6c0) 0
-
-Class QJsonParseError
- size=8 align=4
- base size=8 base align=4
-QJsonParseError (0x0x7f22bcb8e660) 0
-
-Class QJsonDocument
- size=8 align=8
- base size=8 base align=8
-QJsonDocument (0x0x7f22bcb8e6c0) 0
-
-Class QJsonObject::iterator
- size=16 align=8
- base size=12 base align=8
-QJsonObject::iterator (0x0x7f22bcbdbea0) 0
-
-Class QJsonObject::const_iterator
- size=16 align=8
- base size=12 base align=8
-QJsonObject::const_iterator (0x0x7f22bcbdbf00) 0
-
-Class QJsonObject
- size=16 align=8
- base size=16 base align=8
-QJsonObject (0x0x7f22bcbdbe40) 0
-
-Class QLibrary::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLibrary::QPrivateSignal (0x0x7f22c350a2a0) 0 empty
-
-Vtable for QLibrary
-QLibrary::_ZTV8QLibrary: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QLibrary)
-16 (int (*)(...))QLibrary::metaObject
-24 (int (*)(...))QLibrary::qt_metacast
-32 (int (*)(...))QLibrary::qt_metacall
-40 (int (*)(...))QLibrary::~QLibrary
-48 (int (*)(...))QLibrary::~QLibrary
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QLibrary
- size=32 align=8
- base size=25 base align=8
-QLibrary (0x0x7f22c34f6c98) 0
- vptr=((& QLibrary::_ZTV8QLibrary) + 16)
- QObject (0x0x7f22c350a240) 0
- primary-for QLibrary (0x0x7f22c34f6c98)
-
-Class QVersionNumber::SegmentStorage
- size=8 align=8
- base size=8 base align=8
-QVersionNumber::SegmentStorage (0x0x7f22c3556120) 0
-
-Class QVersionNumber
- size=8 align=8
- base size=8 base align=8
-QVersionNumber (0x0x7f22c350ac00) 0
-
-Class QLibraryInfo
- size=1 align=1
- base size=0 base align=1
-QLibraryInfo (0x0x7f22c35ea840) 0 empty
-
-Class QPoint
- size=8 align=4
- base size=8 base align=4
-QPoint (0x0x7f22c35ea8a0) 0
-
-Class QPointF
- size=16 align=8
- base size=16 base align=8
-QPointF (0x0x7f22bc45d6c0) 0
-
-Class QLine
- size=16 align=4
- base size=16 base align=4
-QLine (0x0x7f22bc4cd840) 0
-
-Class QLineF
- size=32 align=8
- base size=32 base align=8
-QLineF (0x0x7f22bc53cc00) 0
-
-Class QLinkedListData
- size=32 align=8
- base size=25 base align=8
-QLinkedListData (0x0x7f22bc5b6ea0) 0
-
-Class QLockFile
- size=8 align=8
- base size=8 base align=8
-QLockFile (0x0x7f22bc27b060) 0
-
-Class QLoggingCategory::AtomicBools
- size=4 align=1
- base size=4 base align=1
-QLoggingCategory::AtomicBools (0x0x7f22bc27b2a0) 0
-
-Class QLoggingCategory
- size=24 align=8
- base size=24 base align=8
-QLoggingCategory (0x0x7f22bc27b240) 0
-
-Class QMargins
- size=16 align=4
- base size=16 base align=4
-QMargins (0x0x7f22bc27b6c0) 0
-
-Class QMarginsF
- size=32 align=8
- base size=32 base align=8
-QMarginsF (0x0x7f22bc337600) 0
-
-Class QMessageAuthenticationCode
- size=8 align=8
- base size=8 base align=8
-QMessageAuthenticationCode (0x0x7f22bc17ade0) 0
-
-Class QMetaMethod
- size=16 align=8
- base size=12 base align=8
-QMetaMethod (0x0x7f22bc17ae40) 0
-
-Class QMetaEnum
- size=16 align=8
- base size=12 base align=8
-QMetaEnum (0x0x7f22bc2066c0) 0
-
-Class QMetaProperty
- size=32 align=8
- base size=32 base align=8
-QMetaProperty (0x0x7f22bc248900) 0
-
-Class QMetaClassInfo
- size=16 align=8
- base size=12 base align=8
-QMetaClassInfo (0x0x7f22bc248a20) 0
-
-Class QMimeData::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QMimeData::QPrivateSignal (0x0x7f22bbea7000) 0 empty
-
-Vtable for QMimeData
-QMimeData::_ZTV9QMimeData: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QMimeData)
-16 (int (*)(...))QMimeData::metaObject
-24 (int (*)(...))QMimeData::qt_metacast
-32 (int (*)(...))QMimeData::qt_metacall
-40 (int (*)(...))QMimeData::~QMimeData
-48 (int (*)(...))QMimeData::~QMimeData
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QMimeData::hasFormat
-120 (int (*)(...))QMimeData::formats
-128 (int (*)(...))QMimeData::retrieveData
-
-Class QMimeData
- size=16 align=8
- base size=16 base align=8
-QMimeData (0x0x7f22bbe968f0) 0
- vptr=((& QMimeData::_ZTV9QMimeData) + 16)
- QObject (0x0x7f22bbe88f60) 0
- primary-for QMimeData (0x0x7f22bbe968f0)
-
-Class QMimeType
- size=8 align=8
- base size=8 base align=8
-QMimeType (0x0x7f22bbea71e0) 0
-
-Class QMimeDatabase
- size=8 align=8
- base size=8 base align=8
-QMimeDatabase (0x0x7f22bbf06300) 0
-
-Class QObjectCleanupHandler::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QObjectCleanupHandler::QPrivateSignal (0x0x7f22bbf063c0) 0 empty
-
-Vtable for QObjectCleanupHandler
-QObjectCleanupHandler::_ZTV21QObjectCleanupHandler: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QObjectCleanupHandler)
-16 (int (*)(...))QObjectCleanupHandler::metaObject
-24 (int (*)(...))QObjectCleanupHandler::qt_metacast
-32 (int (*)(...))QObjectCleanupHandler::qt_metacall
-40 (int (*)(...))QObjectCleanupHandler::~QObjectCleanupHandler
-48 (int (*)(...))QObjectCleanupHandler::~QObjectCleanupHandler
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QObjectCleanupHandler
- size=24 align=8
- base size=24 base align=8
-QObjectCleanupHandler (0x0x7f22bbef4c30) 0
- vptr=((& QObjectCleanupHandler::_ZTV21QObjectCleanupHandler) + 16)
- QObject (0x0x7f22bbf06360) 0
- primary-for QObjectCleanupHandler (0x0x7f22bbef4c30)
-
-Class QOperatingSystemVersion
- size=16 align=4
- base size=16 base align=4
-QOperatingSystemVersion (0x0x7f22bbf064e0) 0
-
-Class QParallelAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QParallelAnimationGroup::QPrivateSignal (0x0x7f22bbf6fc60) 0 empty
-
-Vtable for QParallelAnimationGroup
-QParallelAnimationGroup::_ZTV23QParallelAnimationGroup: 18 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QParallelAnimationGroup)
-16 (int (*)(...))QParallelAnimationGroup::metaObject
-24 (int (*)(...))QParallelAnimationGroup::qt_metacast
-32 (int (*)(...))QParallelAnimationGroup::qt_metacall
-40 (int (*)(...))QParallelAnimationGroup::~QParallelAnimationGroup
-48 (int (*)(...))QParallelAnimationGroup::~QParallelAnimationGroup
-56 (int (*)(...))QParallelAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QParallelAnimationGroup::duration
-120 (int (*)(...))QParallelAnimationGroup::updateCurrentTime
-128 (int (*)(...))QParallelAnimationGroup::updateState
-136 (int (*)(...))QParallelAnimationGroup::updateDirection
-
-Class QParallelAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QParallelAnimationGroup (0x0x7f22bbf7f4e0) 0
- vptr=((& QParallelAnimationGroup::_ZTV23QParallelAnimationGroup) + 16)
- QAnimationGroup (0x0x7f22bbf7f548) 0
- primary-for QParallelAnimationGroup (0x0x7f22bbf7f4e0)
- QAbstractAnimation (0x0x7f22bbf7f5b0) 0
- primary-for QAnimationGroup (0x0x7f22bbf7f548)
- QObject (0x0x7f22bbf6fc00) 0
- primary-for QAbstractAnimation (0x0x7f22bbf7f5b0)
-
-Class QPauseAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPauseAnimation::QPrivateSignal (0x0x7f22bbf6fea0) 0 empty
-
-Vtable for QPauseAnimation
-QPauseAnimation::_ZTV15QPauseAnimation: 18 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QPauseAnimation)
-16 (int (*)(...))QPauseAnimation::metaObject
-24 (int (*)(...))QPauseAnimation::qt_metacast
-32 (int (*)(...))QPauseAnimation::qt_metacall
-40 (int (*)(...))QPauseAnimation::~QPauseAnimation
-48 (int (*)(...))QPauseAnimation::~QPauseAnimation
-56 (int (*)(...))QPauseAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPauseAnimation::duration
-120 (int (*)(...))QPauseAnimation::updateCurrentTime
-128 (int (*)(...))QAbstractAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-
-Class QPauseAnimation
- size=16 align=8
- base size=16 base align=8
-QPauseAnimation (0x0x7f22bbf7f618) 0
- vptr=((& QPauseAnimation::_ZTV15QPauseAnimation) + 16)
- QAbstractAnimation (0x0x7f22bbf7f680) 0
- primary-for QPauseAnimation (0x0x7f22bbf7f618)
- QObject (0x0x7f22bbf6fe40) 0
- primary-for QAbstractAnimation (0x0x7f22bbf7f680)
-
-Class QStaticPlugin
- size=16 align=8
- base size=16 base align=8
-QStaticPlugin (0x0x7f22bbfa5ae0) 0
-
-Class QPluginLoader::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPluginLoader::QPrivateSignal (0x0x7f22bbfe7c60) 0 empty
-
-Vtable for QPluginLoader
-QPluginLoader::_ZTV13QPluginLoader: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QPluginLoader)
-16 (int (*)(...))QPluginLoader::metaObject
-24 (int (*)(...))QPluginLoader::qt_metacast
-32 (int (*)(...))QPluginLoader::qt_metacall
-40 (int (*)(...))QPluginLoader::~QPluginLoader
-48 (int (*)(...))QPluginLoader::~QPluginLoader
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QPluginLoader
- size=32 align=8
- base size=25 base align=8
-QPluginLoader (0x0x7f22bbfef9c0) 0
- vptr=((& QPluginLoader::_ZTV13QPluginLoader) + 16)
- QObject (0x0x7f22bbfe7c00) 0
- primary-for QPluginLoader (0x0x7f22bbfef9c0)
-
-Class QProcessEnvironment
- size=8 align=8
- base size=8 base align=8
-QProcessEnvironment (0x0x7f22bbfe7d80) 0
-
-Class QProcess::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QProcess::QPrivateSignal (0x0x7f22bbc60420) 0 empty
-
-Vtable for QProcess
-QProcess::_ZTV8QProcess: 31 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QProcess)
-16 (int (*)(...))QProcess::metaObject
-24 (int (*)(...))QProcess::qt_metacast
-32 (int (*)(...))QProcess::qt_metacall
-40 (int (*)(...))QProcess::~QProcess
-48 (int (*)(...))QProcess::~QProcess
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QProcess::isSequential
-120 (int (*)(...))QProcess::open
-128 (int (*)(...))QProcess::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QProcess::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QProcess::bytesAvailable
-184 (int (*)(...))QProcess::bytesToWrite
-192 (int (*)(...))QProcess::canReadLine
-200 (int (*)(...))QProcess::waitForReadyRead
-208 (int (*)(...))QProcess::waitForBytesWritten
-216 (int (*)(...))QProcess::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QProcess::writeData
-240 (int (*)(...))QProcess::setupChildProcess
-
-Class QProcess
- size=16 align=8
- base size=16 base align=8
-QProcess (0x0x7f22bbc5c618) 0
- vptr=((& QProcess::_ZTV8QProcess) + 16)
- QIODevice (0x0x7f22bbc5c680) 0
- primary-for QProcess (0x0x7f22bbc5c618)
- QObject (0x0x7f22bbc603c0) 0
- primary-for QIODevice (0x0x7f22bbc5c680)
-
-Class QVariantAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QVariantAnimation::QPrivateSignal (0x0x7f22bbc60ae0) 0 empty
-
-Vtable for QVariantAnimation
-QVariantAnimation::_ZTV17QVariantAnimation: 20 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QVariantAnimation)
-16 (int (*)(...))QVariantAnimation::metaObject
-24 (int (*)(...))QVariantAnimation::qt_metacast
-32 (int (*)(...))QVariantAnimation::qt_metacall
-40 (int (*)(...))QVariantAnimation::~QVariantAnimation
-48 (int (*)(...))QVariantAnimation::~QVariantAnimation
-56 (int (*)(...))QVariantAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QVariantAnimation::duration
-120 (int (*)(...))QVariantAnimation::updateCurrentTime
-128 (int (*)(...))QVariantAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-144 (int (*)(...))QVariantAnimation::updateCurrentValue
-152 (int (*)(...))QVariantAnimation::interpolated
-
-Class QVariantAnimation
- size=16 align=8
- base size=16 base align=8
-QVariantAnimation (0x0x7f22bbc5c6e8) 0
- vptr=((& QVariantAnimation::_ZTV17QVariantAnimation) + 16)
- QAbstractAnimation (0x0x7f22bbc5c750) 0
- primary-for QVariantAnimation (0x0x7f22bbc5c6e8)
- QObject (0x0x7f22bbc60a80) 0
- primary-for QAbstractAnimation (0x0x7f22bbc5c750)
-
-Class QPropertyAnimation::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPropertyAnimation::QPrivateSignal (0x0x7f22bbc60d80) 0 empty
-
-Vtable for QPropertyAnimation
-QPropertyAnimation::_ZTV18QPropertyAnimation: 20 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QPropertyAnimation)
-16 (int (*)(...))QPropertyAnimation::metaObject
-24 (int (*)(...))QPropertyAnimation::qt_metacast
-32 (int (*)(...))QPropertyAnimation::qt_metacall
-40 (int (*)(...))QPropertyAnimation::~QPropertyAnimation
-48 (int (*)(...))QPropertyAnimation::~QPropertyAnimation
-56 (int (*)(...))QPropertyAnimation::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QVariantAnimation::duration
-120 (int (*)(...))QVariantAnimation::updateCurrentTime
-128 (int (*)(...))QPropertyAnimation::updateState
-136 (int (*)(...))QAbstractAnimation::updateDirection
-144 (int (*)(...))QPropertyAnimation::updateCurrentValue
-152 (int (*)(...))QVariantAnimation::interpolated
-
-Class QPropertyAnimation
- size=16 align=8
- base size=16 base align=8
-QPropertyAnimation (0x0x7f22bbc5c820) 0
- vptr=((& QPropertyAnimation::_ZTV18QPropertyAnimation) + 16)
- QVariantAnimation (0x0x7f22bbc5c888) 0
- primary-for QPropertyAnimation (0x0x7f22bbc5c820)
- QAbstractAnimation (0x0x7f22bbc5c8f0) 0
- primary-for QVariantAnimation (0x0x7f22bbc5c888)
- QObject (0x0x7f22bbc60d20) 0
- primary-for QAbstractAnimation (0x0x7f22bbc5c8f0)
-
-Class std::random_device
- size=5000 align=8
- base size=5000 base align=8
-std::random_device (0x0x7f22bbd314e0) 0
-
-Class std::bernoulli_distribution::param_type
- size=8 align=8
- base size=8 base align=8
-std::bernoulli_distribution::param_type (0x0x7f22bbe2e240) 0
-
-Class std::bernoulli_distribution
- size=8 align=8
- base size=8 base align=8
-std::bernoulli_distribution (0x0x7f22bbe2e1e0) 0
-
-Class std::seed_seq
- size=24 align=8
- base size=24 base align=8
-std::seed_seq (0x0x7f22bbbf5f60) 0
-
-Class QRandomGenerator::Storage
- size=2504 align=8
- base size=2504 base align=8
-QRandomGenerator::Storage (0x0x7f22bba2ac00) 0
-
-Class QRandomGenerator
- size=2512 align=8
- base size=2512 base align=8
-QRandomGenerator (0x0x7f22bba2aba0) 0
-
-Class QRandomGenerator64
- size=2512 align=8
- base size=2512 base align=8
-QRandomGenerator64 (0x0x7f22bb6bb5b0) 0
- QRandomGenerator (0x0x7f22bb6d3720) 0
-
-Class QReadWriteLock
- size=8 align=8
- base size=8 base align=8
-QReadWriteLock (0x0x7f22bb6f1300) 0
-
-Class QReadLocker
- size=8 align=8
- base size=8 base align=8
-QReadLocker (0x0x7f22bb6f15a0) 0
-
-Class QWriteLocker
- size=8 align=8
- base size=8 base align=8
-QWriteLocker (0x0x7f22bb6f1a80) 0
-
-Class QSize
- size=8 align=4
- base size=8 base align=4
-QSize (0x0x7f22bb6f1f60) 0
-
-Class QSizeF
- size=16 align=8
- base size=16 base align=8
-QSizeF (0x0x7f22bb7c6d80) 0
-
-Class QRect
- size=16 align=4
- base size=16 base align=4
-QRect (0x0x7f22bb83fd20) 0
-
-Class QRectF
- size=32 align=8
- base size=32 base align=8
-QRectF (0x0x7f22bb4e9d80) 0
-
-Class QResource
- size=8 align=8
- base size=8 base align=8
-QResource (0x0x7f22bb5acea0) 0
-
-Class QSaveFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSaveFile::QPrivateSignal (0x0x7f22bb5fb180) 0 empty
-
-Vtable for QSaveFile
-QSaveFile::_ZTV9QSaveFile: 34 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSaveFile)
-16 (int (*)(...))QSaveFile::metaObject
-24 (int (*)(...))QSaveFile::qt_metacast
-32 (int (*)(...))QSaveFile::qt_metacall
-40 (int (*)(...))QSaveFile::~QSaveFile
-48 (int (*)(...))QSaveFile::~QSaveFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QSaveFile::open
-128 (int (*)(...))QSaveFile::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFileDevice::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QSaveFile::writeData
-240 (int (*)(...))QSaveFile::fileName
-248 (int (*)(...))QFileDevice::resize
-256 (int (*)(...))QFileDevice::permissions
-264 (int (*)(...))QFileDevice::setPermissions
-
-Class QSaveFile
- size=16 align=8
- base size=16 base align=8
-QSaveFile (0x0x7f22bb572f70) 0
- vptr=((& QSaveFile::_ZTV9QSaveFile) + 16)
- QFileDevice (0x0x7f22bb5fd000) 0
- primary-for QSaveFile (0x0x7f22bb572f70)
- QIODevice (0x0x7f22bb5fd068) 0
- primary-for QFileDevice (0x0x7f22bb5fd000)
- QObject (0x0x7f22bb5fb120) 0
- primary-for QIODevice (0x0x7f22bb5fd068)
-
-Class QSemaphore
- size=8 align=8
- base size=8 base align=8
-QSemaphore (0x0x7f22bb5fb780) 0
-
-Class QSemaphoreReleaser
- size=16 align=8
- base size=12 base align=8
-QSemaphoreReleaser (0x0x7f22bb5fb900) 0
-
-Class QSequentialAnimationGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSequentialAnimationGroup::QPrivateSignal (0x0x7f22bb31aba0) 0 empty
-
-Vtable for QSequentialAnimationGroup
-QSequentialAnimationGroup::_ZTV25QSequentialAnimationGroup: 18 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QSequentialAnimationGroup)
-16 (int (*)(...))QSequentialAnimationGroup::metaObject
-24 (int (*)(...))QSequentialAnimationGroup::qt_metacast
-32 (int (*)(...))QSequentialAnimationGroup::qt_metacall
-40 (int (*)(...))QSequentialAnimationGroup::~QSequentialAnimationGroup
-48 (int (*)(...))QSequentialAnimationGroup::~QSequentialAnimationGroup
-56 (int (*)(...))QSequentialAnimationGroup::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSequentialAnimationGroup::duration
-120 (int (*)(...))QSequentialAnimationGroup::updateCurrentTime
-128 (int (*)(...))QSequentialAnimationGroup::updateState
-136 (int (*)(...))QSequentialAnimationGroup::updateDirection
-
-Class QSequentialAnimationGroup
- size=16 align=8
- base size=16 base align=8
-QSequentialAnimationGroup (0x0x7f22bb31dd68) 0
- vptr=((& QSequentialAnimationGroup::_ZTV25QSequentialAnimationGroup) + 16)
- QAnimationGroup (0x0x7f22bb31ddd0) 0
- primary-for QSequentialAnimationGroup (0x0x7f22bb31dd68)
- QAbstractAnimation (0x0x7f22bb31de38) 0
- primary-for QAnimationGroup (0x0x7f22bb31ddd0)
- QObject (0x0x7f22bb31ab40) 0
- primary-for QAbstractAnimation (0x0x7f22bb31de38)
-
-Class QSettings::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSettings::QPrivateSignal (0x0x7f22bb31ade0) 0 empty
-
-Vtable for QSettings
-QSettings::_ZTV9QSettings: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSettings)
-16 (int (*)(...))QSettings::metaObject
-24 (int (*)(...))QSettings::qt_metacast
-32 (int (*)(...))QSettings::qt_metacall
-40 (int (*)(...))QSettings::~QSettings
-48 (int (*)(...))QSettings::~QSettings
-56 (int (*)(...))QSettings::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSettings
- size=16 align=8
- base size=16 base align=8
-QSettings (0x0x7f22bb31dea0) 0
- vptr=((& QSettings::_ZTV9QSettings) + 16)
- QObject (0x0x7f22bb31ad80) 0
- primary-for QSettings (0x0x7f22bb31dea0)
-
-Class QSharedMemory::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSharedMemory::QPrivateSignal (0x0x7f22bb3582a0) 0 empty
-
-Vtable for QSharedMemory
-QSharedMemory::_ZTV13QSharedMemory: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSharedMemory)
-16 (int (*)(...))QSharedMemory::metaObject
-24 (int (*)(...))QSharedMemory::qt_metacast
-32 (int (*)(...))QSharedMemory::qt_metacall
-40 (int (*)(...))QSharedMemory::~QSharedMemory
-48 (int (*)(...))QSharedMemory::~QSharedMemory
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSharedMemory
- size=16 align=8
- base size=16 base align=8
-QSharedMemory (0x0x7f22bb31df08) 0
- vptr=((& QSharedMemory::_ZTV13QSharedMemory) + 16)
- QObject (0x0x7f22bb358240) 0
- primary-for QSharedMemory (0x0x7f22bb31df08)
-
-Class QSignalMapper::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSignalMapper::QPrivateSignal (0x0x7f22bb3584e0) 0 empty
-
-Vtable for QSignalMapper
-QSignalMapper::_ZTV13QSignalMapper: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSignalMapper)
-16 (int (*)(...))QSignalMapper::metaObject
-24 (int (*)(...))QSignalMapper::qt_metacast
-32 (int (*)(...))QSignalMapper::qt_metacall
-40 (int (*)(...))QSignalMapper::~QSignalMapper
-48 (int (*)(...))QSignalMapper::~QSignalMapper
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSignalMapper
- size=16 align=8
- base size=16 base align=8
-QSignalMapper (0x0x7f22bb31df70) 0
- vptr=((& QSignalMapper::_ZTV13QSignalMapper) + 16)
- QObject (0x0x7f22bb358480) 0
- primary-for QSignalMapper (0x0x7f22bb31df70)
-
-Class QSignalTransition::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSignalTransition::QPrivateSignal (0x0x7f22bb358720) 0 empty
-
-Vtable for QSignalTransition
-QSignalTransition::_ZTV17QSignalTransition: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSignalTransition)
-16 (int (*)(...))QSignalTransition::metaObject
-24 (int (*)(...))QSignalTransition::qt_metacast
-32 (int (*)(...))QSignalTransition::qt_metacall
-40 (int (*)(...))QSignalTransition::~QSignalTransition
-48 (int (*)(...))QSignalTransition::~QSignalTransition
-56 (int (*)(...))QSignalTransition::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSignalTransition::eventTest
-120 (int (*)(...))QSignalTransition::onTransition
-
-Class QSignalTransition
- size=16 align=8
- base size=16 base align=8
-QSignalTransition (0x0x7f22bb37a000) 0
- vptr=((& QSignalTransition::_ZTV17QSignalTransition) + 16)
- QAbstractTransition (0x0x7f22bb37a068) 0
- primary-for QSignalTransition (0x0x7f22bb37a000)
- QObject (0x0x7f22bb3586c0) 0
- primary-for QAbstractTransition (0x0x7f22bb37a068)
-
-Class QSocketNotifier::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSocketNotifier::QPrivateSignal (0x0x7f22bb3589c0) 0 empty
-
-Vtable for QSocketNotifier
-QSocketNotifier::_ZTV15QSocketNotifier: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSocketNotifier)
-16 (int (*)(...))QSocketNotifier::metaObject
-24 (int (*)(...))QSocketNotifier::qt_metacast
-32 (int (*)(...))QSocketNotifier::qt_metacall
-40 (int (*)(...))QSocketNotifier::~QSocketNotifier
-48 (int (*)(...))QSocketNotifier::~QSocketNotifier
-56 (int (*)(...))QSocketNotifier::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSocketNotifier
- size=16 align=8
- base size=16 base align=8
-QSocketNotifier (0x0x7f22bb37a0d0) 0
- vptr=((& QSocketNotifier::_ZTV15QSocketNotifier) + 16)
- QObject (0x0x7f22bb358960) 0
- primary-for QSocketNotifier (0x0x7f22bb37a0d0)
-
-Class QSortFilterProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSortFilterProxyModel::QPrivateSignal (0x0x7f22bb358c00) 0 empty
-
-Vtable for QSortFilterProxyModel
-QSortFilterProxyModel::_ZTV21QSortFilterProxyModel: 56 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QSortFilterProxyModel)
-16 (int (*)(...))QSortFilterProxyModel::metaObject
-24 (int (*)(...))QSortFilterProxyModel::qt_metacast
-32 (int (*)(...))QSortFilterProxyModel::qt_metacall
-40 (int (*)(...))QSortFilterProxyModel::~QSortFilterProxyModel
-48 (int (*)(...))QSortFilterProxyModel::~QSortFilterProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QSortFilterProxyModel::index
-120 (int (*)(...))QSortFilterProxyModel::parent
-128 (int (*)(...))QSortFilterProxyModel::sibling
-136 (int (*)(...))QSortFilterProxyModel::rowCount
-144 (int (*)(...))QSortFilterProxyModel::columnCount
-152 (int (*)(...))QSortFilterProxyModel::hasChildren
-160 (int (*)(...))QSortFilterProxyModel::data
-168 (int (*)(...))QSortFilterProxyModel::setData
-176 (int (*)(...))QSortFilterProxyModel::headerData
-184 (int (*)(...))QSortFilterProxyModel::setHeaderData
-192 (int (*)(...))QAbstractProxyModel::itemData
-200 (int (*)(...))QAbstractProxyModel::setItemData
-208 (int (*)(...))QSortFilterProxyModel::mimeTypes
-216 (int (*)(...))QSortFilterProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QSortFilterProxyModel::dropMimeData
-240 (int (*)(...))QSortFilterProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QSortFilterProxyModel::insertRows
-264 (int (*)(...))QSortFilterProxyModel::insertColumns
-272 (int (*)(...))QSortFilterProxyModel::removeRows
-280 (int (*)(...))QSortFilterProxyModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QSortFilterProxyModel::fetchMore
-312 (int (*)(...))QSortFilterProxyModel::canFetchMore
-320 (int (*)(...))QSortFilterProxyModel::flags
-328 (int (*)(...))QSortFilterProxyModel::sort
-336 (int (*)(...))QSortFilterProxyModel::buddy
-344 (int (*)(...))QSortFilterProxyModel::match
-352 (int (*)(...))QSortFilterProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QSortFilterProxyModel::setSourceModel
-392 (int (*)(...))QSortFilterProxyModel::mapToSource
-400 (int (*)(...))QSortFilterProxyModel::mapFromSource
-408 (int (*)(...))QSortFilterProxyModel::mapSelectionToSource
-416 (int (*)(...))QSortFilterProxyModel::mapSelectionFromSource
-424 (int (*)(...))QSortFilterProxyModel::filterAcceptsRow
-432 (int (*)(...))QSortFilterProxyModel::filterAcceptsColumn
-440 (int (*)(...))QSortFilterProxyModel::lessThan
-
-Class QSortFilterProxyModel
- size=16 align=8
- base size=16 base align=8
-QSortFilterProxyModel (0x0x7f22bb37a138) 0
- vptr=((& QSortFilterProxyModel::_ZTV21QSortFilterProxyModel) + 16)
- QAbstractProxyModel (0x0x7f22bb37a1a0) 0
- primary-for QSortFilterProxyModel (0x0x7f22bb37a138)
- QAbstractItemModel (0x0x7f22bb37a208) 0
- primary-for QAbstractProxyModel (0x0x7f22bb37a1a0)
- QObject (0x0x7f22bb358ba0) 0
- primary-for QAbstractItemModel (0x0x7f22bb37a208)
-
-Class QStandardPaths
- size=1 align=1
- base size=0 base align=1
-QStandardPaths (0x0x7f22bb3c2060) 0 empty
-
-Class QState::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QState::QPrivateSignal (0x0x7f22bb3c2960) 0 empty
-
-Vtable for QState
-QState::_ZTV6QState: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QState)
-16 (int (*)(...))QState::metaObject
-24 (int (*)(...))QState::qt_metacast
-32 (int (*)(...))QState::qt_metacall
-40 (int (*)(...))QState::~QState
-48 (int (*)(...))QState::~QState
-56 (int (*)(...))QState::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QState::onEntry
-120 (int (*)(...))QState::onExit
-
-Class QState
- size=16 align=8
- base size=16 base align=8
-QState (0x0x7f22bb37a3a8) 0
- vptr=((& QState::_ZTV6QState) + 16)
- QAbstractState (0x0x7f22bb37a410) 0
- primary-for QState (0x0x7f22bb37a3a8)
- QObject (0x0x7f22bb3c2900) 0
- primary-for QAbstractState (0x0x7f22bb37a410)
-
-Class QStateMachine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStateMachine::QPrivateSignal (0x0x7f22bb3c2de0) 0 empty
-
-Vtable for QStateMachine::SignalEvent
-QStateMachine::SignalEvent::_ZTVN13QStateMachine11SignalEventE: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QStateMachine11SignalEventE)
-16 (int (*)(...))QStateMachine::SignalEvent::~SignalEvent
-24 (int (*)(...))QStateMachine::SignalEvent::~SignalEvent
-
-Class QStateMachine::SignalEvent
- size=48 align=8
- base size=48 base align=8
-QStateMachine::SignalEvent (0x0x7f22bb37a5b0) 0
- vptr=((& QStateMachine::SignalEvent::_ZTVN13QStateMachine11SignalEventE) + 16)
- QEvent (0x0x7f22bb3c2e40) 0
- primary-for QStateMachine::SignalEvent (0x0x7f22bb37a5b0)
-
-Vtable for QStateMachine::WrappedEvent
-QStateMachine::WrappedEvent::_ZTVN13QStateMachine12WrappedEventE: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QStateMachine12WrappedEventE)
-16 (int (*)(...))QStateMachine::WrappedEvent::~WrappedEvent
-24 (int (*)(...))QStateMachine::WrappedEvent::~WrappedEvent
-
-Class QStateMachine::WrappedEvent
- size=40 align=8
- base size=40 base align=8
-QStateMachine::WrappedEvent (0x0x7f22bb37a618) 0
- vptr=((& QStateMachine::WrappedEvent::_ZTVN13QStateMachine12WrappedEventE) + 16)
- QEvent (0x0x7f22bb3c2ea0) 0
- primary-for QStateMachine::WrappedEvent (0x0x7f22bb37a618)
-
-Vtable for QStateMachine
-QStateMachine::_ZTV13QStateMachine: 20 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QStateMachine)
-16 (int (*)(...))QStateMachine::metaObject
-24 (int (*)(...))QStateMachine::qt_metacast
-32 (int (*)(...))QStateMachine::qt_metacall
-40 (int (*)(...))QStateMachine::~QStateMachine
-48 (int (*)(...))QStateMachine::~QStateMachine
-56 (int (*)(...))QStateMachine::event
-64 (int (*)(...))QStateMachine::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QStateMachine::onEntry
-120 (int (*)(...))QStateMachine::onExit
-128 (int (*)(...))QStateMachine::beginSelectTransitions
-136 (int (*)(...))QStateMachine::endSelectTransitions
-144 (int (*)(...))QStateMachine::beginMicrostep
-152 (int (*)(...))QStateMachine::endMicrostep
-
-Class QStateMachine
- size=16 align=8
- base size=16 base align=8
-QStateMachine (0x0x7f22bb37a478) 0
- vptr=((& QStateMachine::_ZTV13QStateMachine) + 16)
- QState (0x0x7f22bb37a4e0) 0
- primary-for QStateMachine (0x0x7f22bb37a478)
- QAbstractState (0x0x7f22bb37a548) 0
- primary-for QState (0x0x7f22bb37a4e0)
- QObject (0x0x7f22bb3c2d80) 0
- primary-for QAbstractState (0x0x7f22bb37a548)
-
-Class QStorageInfo
- size=8 align=8
- base size=8 base align=8
-QStorageInfo (0x0x7f22bb4312a0) 0
-
-Class QAbstractConcatenable
- size=1 align=1
- base size=0 base align=1
-QAbstractConcatenable (0x0x7f22bb0b62a0) 0 empty
-
-Class QStringListModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStringListModel::QPrivateSignal (0x0x7f22bb13e600) 0 empty
-
-Vtable for QStringListModel
-QStringListModel::_ZTV16QStringListModel: 48 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QStringListModel)
-16 (int (*)(...))QStringListModel::metaObject
-24 (int (*)(...))QStringListModel::qt_metacast
-32 (int (*)(...))QStringListModel::qt_metacall
-40 (int (*)(...))QStringListModel::~QStringListModel
-48 (int (*)(...))QStringListModel::~QStringListModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractListModel::index
-120 (int (*)(...))QAbstractListModel::parent
-128 (int (*)(...))QStringListModel::sibling
-136 (int (*)(...))QStringListModel::rowCount
-144 (int (*)(...))QAbstractListModel::columnCount
-152 (int (*)(...))QAbstractListModel::hasChildren
-160 (int (*)(...))QStringListModel::data
-168 (int (*)(...))QStringListModel::setData
-176 (int (*)(...))QAbstractItemModel::headerData
-184 (int (*)(...))QAbstractItemModel::setHeaderData
-192 (int (*)(...))QStringListModel::itemData
-200 (int (*)(...))QStringListModel::setItemData
-208 (int (*)(...))QAbstractItemModel::mimeTypes
-216 (int (*)(...))QAbstractItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QAbstractListModel::dropMimeData
-240 (int (*)(...))QStringListModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QStringListModel::insertRows
-264 (int (*)(...))QAbstractItemModel::insertColumns
-272 (int (*)(...))QStringListModel::removeRows
-280 (int (*)(...))QAbstractItemModel::removeColumns
-288 (int (*)(...))QStringListModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QStringListModel::flags
-328 (int (*)(...))QStringListModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QStringListModel
- size=24 align=8
- base size=24 base align=8
-QStringListModel (0x0x7f22bb134750) 0
- vptr=((& QStringListModel::_ZTV16QStringListModel) + 16)
- QAbstractListModel (0x0x7f22bb1347b8) 0
- primary-for QStringListModel (0x0x7f22bb134750)
- QAbstractItemModel (0x0x7f22bb134820) 0
- primary-for QAbstractListModel (0x0x7f22bb1347b8)
- QObject (0x0x7f22bb13e5a0) 0
- primary-for QAbstractItemModel (0x0x7f22bb134820)
-
-Class QSystemSemaphore
- size=8 align=8
- base size=8 base align=8
-QSystemSemaphore (0x0x7f22bb13e720) 0
-
-Class QTemporaryDir
- size=8 align=8
- base size=8 base align=8
-QTemporaryDir (0x0x7f22bb13e7e0) 0
-
-Class QTemporaryFile::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTemporaryFile::QPrivateSignal (0x0x7f22bb13e900) 0 empty
-
-Vtable for QTemporaryFile
-QTemporaryFile::_ZTV14QTemporaryFile: 34 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QTemporaryFile)
-16 (int (*)(...))QTemporaryFile::metaObject
-24 (int (*)(...))QTemporaryFile::qt_metacast
-32 (int (*)(...))QTemporaryFile::qt_metacall
-40 (int (*)(...))QTemporaryFile::~QTemporaryFile
-48 (int (*)(...))QTemporaryFile::~QTemporaryFile
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QFileDevice::isSequential
-120 (int (*)(...))QTemporaryFile::open
-128 (int (*)(...))QFileDevice::close
-136 (int (*)(...))QFileDevice::pos
-144 (int (*)(...))QFile::size
-152 (int (*)(...))QFileDevice::seek
-160 (int (*)(...))QFileDevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))QFileDevice::readData
-224 (int (*)(...))QFileDevice::readLineData
-232 (int (*)(...))QFileDevice::writeData
-240 (int (*)(...))QTemporaryFile::fileName
-248 (int (*)(...))QFile::resize
-256 (int (*)(...))QFile::permissions
-264 (int (*)(...))QFile::setPermissions
-
-Class QTemporaryFile
- size=16 align=8
- base size=16 base align=8
-QTemporaryFile (0x0x7f22bb134888) 0
- vptr=((& QTemporaryFile::_ZTV14QTemporaryFile) + 16)
- QFile (0x0x7f22bb1348f0) 0
- primary-for QTemporaryFile (0x0x7f22bb134888)
- QFileDevice (0x0x7f22bb134958) 0
- primary-for QFile (0x0x7f22bb1348f0)
- QIODevice (0x0x7f22bb1349c0) 0
- primary-for QFileDevice (0x0x7f22bb134958)
- QObject (0x0x7f22bb13e8a0) 0
- primary-for QIODevice (0x0x7f22bb1349c0)
-
-Class QTextBoundaryFinder
- size=48 align=8
- base size=48 base align=8
-QTextBoundaryFinder (0x0x7f22bb13ec60) 0
-
-Class QTextCodec::ConverterState
- size=32 align=8
- base size=32 base align=8
-QTextCodec::ConverterState (0x0x7f22bb1be4e0) 0
-
-Vtable for QTextCodec
-QTextCodec::_ZTV10QTextCodec: 9 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextCodec)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))QTextCodec::aliases
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 0
-64 0
-
-Class QTextCodec
- size=8 align=8
- base size=8 base align=8
-QTextCodec (0x0x7f22bb1be480) 0 nearly-empty
- vptr=((& QTextCodec::_ZTV10QTextCodec) + 16)
-
-Class QTextEncoder
- size=40 align=8
- base size=40 base align=8
-QTextEncoder (0x0x7f22bb1beea0) 0
-
-Class QTextDecoder
- size=40 align=8
- base size=40 base align=8
-QTextDecoder (0x0x7f22bb2120c0) 0
-
-Class std::__mutex_base
- size=40 align=8
- base size=40 base align=8
-std::__mutex_base (0x0x7f22bb2122a0) 0
-
-Class std::mutex
- size=40 align=8
- base size=40 base align=8
-std::mutex (0x0x7f22bb134bc8) 0
- std::__mutex_base (0x0x7f22bb212300) 0
-
-Class std::defer_lock_t
- size=1 align=1
- base size=0 base align=1
-std::defer_lock_t (0x0x7f22bb2124e0) 0 empty
-
-Class std::try_to_lock_t
- size=1 align=1
- base size=0 base align=1
-std::try_to_lock_t (0x0x7f22bb212540) 0 empty
-
-Class std::adopt_lock_t
- size=1 align=1
- base size=0 base align=1
-std::adopt_lock_t (0x0x7f22bb2125a0) 0 empty
-
-Class std::__recursive_mutex_base
- size=40 align=8
- base size=40 base align=8
-std::__recursive_mutex_base (0x0x7f22bae51000) 0
-
-Class std::recursive_mutex
- size=40 align=8
- base size=40 base align=8
-std::recursive_mutex (0x0x7f22bb134c30) 0
- std::__recursive_mutex_base (0x0x7f22bae51060) 0
-
-Class std::timed_mutex
- size=40 align=8
- base size=40 base align=8
-std::timed_mutex (0x0x7f22bb226af0) 0
- std::__mutex_base (0x0x7f22bae51420) 0
- std::__timed_mutex_impl<std::timed_mutex> (0x0x7f22bae51480) 0 empty
-
-Class std::recursive_timed_mutex
- size=40 align=8
- base size=40 base align=8
-std::recursive_timed_mutex (0x0x7f22bb226e70) 0
- std::__recursive_mutex_base (0x0x7f22bae517e0) 0
- std::__timed_mutex_impl<std::recursive_timed_mutex> (0x0x7f22bae51840) 0 empty
-
-Class std::once_flag
- size=4 align=4
- base size=4 base align=4
-std::once_flag (0x0x7f22bae51f60) 0
-
-Vtable for __gnu_cxx::__concurrence_lock_error
-__gnu_cxx::__concurrence_lock_error::_ZTVN9__gnu_cxx24__concurrence_lock_errorE: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx24__concurrence_lock_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error
-24 (int (*)(...))__gnu_cxx::__concurrence_lock_error::~__concurrence_lock_error
-32 (int (*)(...))__gnu_cxx::__concurrence_lock_error::what
-
-Class __gnu_cxx::__concurrence_lock_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_lock_error (0x0x7f22bb134d68) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_lock_error::_ZTVN9__gnu_cxx24__concurrence_lock_errorE) + 16)
- std::exception (0x0x7f22bae9b4e0) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_lock_error (0x0x7f22bb134d68)
-
-Vtable for __gnu_cxx::__concurrence_unlock_error
-__gnu_cxx::__concurrence_unlock_error::_ZTVN9__gnu_cxx26__concurrence_unlock_errorE: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx26__concurrence_unlock_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error
-24 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::~__concurrence_unlock_error
-32 (int (*)(...))__gnu_cxx::__concurrence_unlock_error::what
-
-Class __gnu_cxx::__concurrence_unlock_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_unlock_error (0x0x7f22bb134dd0) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_unlock_error::_ZTVN9__gnu_cxx26__concurrence_unlock_errorE) + 16)
- std::exception (0x0x7f22bae9b600) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_unlock_error (0x0x7f22bb134dd0)
-
-Vtable for __gnu_cxx::__concurrence_broadcast_error
-__gnu_cxx::__concurrence_broadcast_error::_ZTVN9__gnu_cxx29__concurrence_broadcast_errorE: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx29__concurrence_broadcast_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error
-24 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::~__concurrence_broadcast_error
-32 (int (*)(...))__gnu_cxx::__concurrence_broadcast_error::what
-
-Class __gnu_cxx::__concurrence_broadcast_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_broadcast_error (0x0x7f22bb134e38) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_broadcast_error::_ZTVN9__gnu_cxx29__concurrence_broadcast_errorE) + 16)
- std::exception (0x0x7f22bae9b720) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_broadcast_error (0x0x7f22bb134e38)
-
-Vtable for __gnu_cxx::__concurrence_wait_error
-__gnu_cxx::__concurrence_wait_error::_ZTVN9__gnu_cxx24__concurrence_wait_errorE: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN9__gnu_cxx24__concurrence_wait_errorE)
-16 (int (*)(...))__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error
-24 (int (*)(...))__gnu_cxx::__concurrence_wait_error::~__concurrence_wait_error
-32 (int (*)(...))__gnu_cxx::__concurrence_wait_error::what
-
-Class __gnu_cxx::__concurrence_wait_error
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__concurrence_wait_error (0x0x7f22bb134f08) 0 nearly-empty
- vptr=((& __gnu_cxx::__concurrence_wait_error::_ZTVN9__gnu_cxx24__concurrence_wait_errorE) + 16)
- std::exception (0x0x7f22bae9b840) 0 nearly-empty
- primary-for __gnu_cxx::__concurrence_wait_error (0x0x7f22bb134f08)
-
-Class __gnu_cxx::__mutex
- size=40 align=8
- base size=40 base align=8
-__gnu_cxx::__mutex (0x0x7f22baec38a0) 0
-
-Class __gnu_cxx::__recursive_mutex
- size=40 align=8
- base size=40 base align=8
-__gnu_cxx::__recursive_mutex (0x0x7f22baec3ba0) 0
-
-Class __gnu_cxx::__scoped_lock
- size=8 align=8
- base size=8 base align=8
-__gnu_cxx::__scoped_lock (0x0x7f22baec3ea0) 0
-
-Class __gnu_cxx::__cond
- size=48 align=8
- base size=48 base align=8
-__gnu_cxx::__cond (0x0x7f22baee7240) 0
-
-Vtable for std::bad_weak_ptr
-std::bad_weak_ptr::_ZTVSt12bad_weak_ptr: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12bad_weak_ptr)
-16 (int (*)(...))std::bad_weak_ptr::~bad_weak_ptr
-24 (int (*)(...))std::bad_weak_ptr::~bad_weak_ptr
-32 (int (*)(...))std::bad_weak_ptr::what
-
-Class std::bad_weak_ptr
- size=8 align=8
- base size=8 base align=8
-std::bad_weak_ptr (0x0x7f22bb134f70) 0 nearly-empty
- vptr=((& std::bad_weak_ptr::_ZTVSt12bad_weak_ptr) + 16)
- std::exception (0x0x7f22baf63420) 0 nearly-empty
- primary-for std::bad_weak_ptr (0x0x7f22bb134f70)
-
-Class std::_Sp_make_shared_tag
- size=1 align=1
- base size=0 base align=1
-std::_Sp_make_shared_tag (0x0x7f22bafce3c0) 0 empty
-
-Class std::__sp_array_delete
- size=1 align=1
- base size=0 base align=1
-std::__sp_array_delete (0x0x7f22bafce7e0) 0 empty
-
-Class std::_Sp_locker
- size=2 align=1
- base size=2 base align=1
-std::_Sp_locker (0x0x7f22bad17660) 0
-
-Vtable for std::thread::_State
-std::thread::_State::_ZTVNSt6thread6_StateE: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt6thread6_StateE)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class std::thread::_State
- size=8 align=8
- base size=8 base align=8
-std::thread::_State (0x0x7f22bad44ae0) 0 nearly-empty
- vptr=((& std::thread::_State::_ZTVNSt6thread6_StateE) + 16)
-
-Class std::thread::id
- size=8 align=8
- base size=8 base align=8
-std::thread::id (0x0x7f22bad44b40) 0
-
-Class std::thread
- size=8 align=8
- base size=8 base align=8
-std::thread (0x0x7f22bad44a80) 0
-
-Class std::condition_variable
- size=48 align=8
- base size=48 base align=8
-std::condition_variable (0x0x7f22babdaf00) 0
-
-Class std::__at_thread_exit_elt
- size=16 align=8
- base size=16 base align=8
-std::__at_thread_exit_elt (0x0x7f22bac10300) 0
-
-Class std::_V2::condition_variable_any
- size=64 align=8
- base size=64 base align=8
-std::_V2::condition_variable_any (0x0x7f22bac10360) 0
-
-Class std::__atomic_futex_unsigned_base
- size=1 align=1
- base size=0 base align=1
-std::__atomic_futex_unsigned_base (0x0x7f22ba98c660) 0 empty
-
-Vtable for std::future_error
-std::future_error::_ZTVSt12future_error: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTISt12future_error)
-16 (int (*)(...))std::future_error::~future_error
-24 (int (*)(...))std::future_error::~future_error
-32 (int (*)(...))std::future_error::what
-
-Class std::future_error
- size=32 align=8
- base size=32 base align=8
-std::future_error (0x0x7f22ba983820) 0
- vptr=((& std::future_error::_ZTVSt12future_error) + 16)
- std::logic_error (0x0x7f22ba983888) 0
- primary-for std::future_error (0x0x7f22ba983820)
- std::exception (0x0x7f22ba98cd80) 0 nearly-empty
- primary-for std::logic_error (0x0x7f22ba983888)
-
-Class std::__future_base::_Result_base::_Deleter
- size=1 align=1
- base size=0 base align=1
-std::__future_base::_Result_base::_Deleter (0x0x7f22ba9ba4e0) 0 empty
-
-Vtable for std::__future_base::_Result_base
-std::__future_base::_Result_base::_ZTVNSt13__future_base12_Result_baseE: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base12_Result_baseE)
-16 (int (*)(...))__cxa_pure_virtual
-24 0
-32 0
-
-Class std::__future_base::_Result_base
- size=16 align=8
- base size=16 base align=8
-std::__future_base::_Result_base (0x0x7f22ba9ba480) 0
- vptr=((& std::__future_base::_Result_base::_ZTVNSt13__future_base12_Result_baseE) + 16)
-
-Class std::__future_base::_State_baseV2::__exception_ptr_tag
- size=1 align=1
- base size=0 base align=1
-std::__future_base::_State_baseV2::__exception_ptr_tag (0x0x7f22ba77cc00) 0 empty
-
-Class std::__future_base::_State_baseV2::_Make_ready
- size=32 align=8
- base size=32 base align=8
-std::__future_base::_State_baseV2::_Make_ready (0x0x7f22ba7aa0d0) 0
- std::__at_thread_exit_elt (0x0x7f22ba77ccc0) 0
-
-Vtable for std::__future_base::_State_baseV2
-std::__future_base::_State_baseV2::_ZTVNSt13__future_base13_State_baseV2E: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base13_State_baseV2E)
-16 (int (*)(...))std::__future_base::_State_baseV2::~_State_baseV2
-24 (int (*)(...))std::__future_base::_State_baseV2::~_State_baseV2
-32 (int (*)(...))std::__future_base::_State_baseV2::_M_complete_async
-40 (int (*)(...))std::__future_base::_State_baseV2::_M_is_deferred_future
-
-Class std::__future_base::_State_baseV2
- size=32 align=8
- base size=28 base align=8
-std::__future_base::_State_baseV2 (0x0x7f22ba9ba660) 0
- vptr=((& std::__future_base::_State_baseV2::_ZTVNSt13__future_base13_State_baseV2E) + 16)
-
-Class std::__future_base
- size=1 align=1
- base size=0 base align=1
-std::__future_base (0x0x7f22ba9ba420) 0 empty
-
-Vtable for std::__future_base::_Async_state_commonV2
-std::__future_base::_Async_state_commonV2::_ZTVNSt13__future_base21_Async_state_commonV2E: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTINSt13__future_base21_Async_state_commonV2E)
-16 (int (*)(...))std::__future_base::_Async_state_commonV2::~_Async_state_commonV2
-24 (int (*)(...))std::__future_base::_Async_state_commonV2::~_Async_state_commonV2
-32 (int (*)(...))std::__future_base::_Async_state_commonV2::_M_complete_async
-40 (int (*)(...))std::__future_base::_State_baseV2::_M_is_deferred_future
-
-Class std::__future_base::_Async_state_commonV2
- size=48 align=8
- base size=44 base align=8
-std::__future_base::_Async_state_commonV2 (0x0x7f22b9f10dd0) 0
- vptr=((& std::__future_base::_Async_state_commonV2::_ZTVNSt13__future_base21_Async_state_commonV2E) + 16)
- std::__future_base::_State_baseV2 (0x0x7f22b9f3acc0) 0
- primary-for std::__future_base::_Async_state_commonV2 (0x0x7f22b9f10dd0)
-
-Class QThread::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QThread::QPrivateSignal (0x0x7f22b9f745a0) 0 empty
-
-Vtable for QThread
-QThread::_ZTV7QThread: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QThread)
-16 (int (*)(...))QThread::metaObject
-24 (int (*)(...))QThread::qt_metacast
-32 (int (*)(...))QThread::qt_metacall
-40 (int (*)(...))QThread::~QThread
-48 (int (*)(...))QThread::~QThread
-56 (int (*)(...))QThread::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QThread::run
-
-Class QThread
- size=16 align=8
- base size=16 base align=8
-QThread (0x0x7f22b9f7b138) 0
- vptr=((& QThread::_ZTV7QThread) + 16)
- QObject (0x0x7f22b9f74540) 0
- primary-for QThread (0x0x7f22b9f7b138)
-
-Class QThreadPool::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QThreadPool::QPrivateSignal (0x0x7f22b9f74960) 0 empty
-
-Vtable for QThreadPool
-QThreadPool::_ZTV11QThreadPool: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QThreadPool)
-16 (int (*)(...))QThreadPool::metaObject
-24 (int (*)(...))QThreadPool::qt_metacast
-32 (int (*)(...))QThreadPool::qt_metacall
-40 (int (*)(...))QThreadPool::~QThreadPool
-48 (int (*)(...))QThreadPool::~QThreadPool
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QThreadPool
- size=16 align=8
- base size=16 base align=8
-QThreadPool (0x0x7f22b9f7b1a0) 0
- vptr=((& QThreadPool::_ZTV11QThreadPool) + 16)
- QObject (0x0x7f22b9f74900) 0
- primary-for QThreadPool (0x0x7f22b9f7b1a0)
-
-Class QThreadStorageData
- size=4 align=4
- base size=4 base align=4
-QThreadStorageData (0x0x7f22b9f74b40) 0
-
-Class QTimeLine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTimeLine::QPrivateSignal (0x0x7f22b9fb9240) 0 empty
-
-Vtable for QTimeLine
-QTimeLine::_ZTV9QTimeLine: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QTimeLine)
-16 (int (*)(...))QTimeLine::metaObject
-24 (int (*)(...))QTimeLine::qt_metacast
-32 (int (*)(...))QTimeLine::qt_metacall
-40 (int (*)(...))QTimeLine::~QTimeLine
-48 (int (*)(...))QTimeLine::~QTimeLine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QTimeLine::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTimeLine::valueForTime
-
-Class QTimeLine
- size=16 align=8
- base size=16 base align=8
-QTimeLine (0x0x7f22b9f7b208) 0
- vptr=((& QTimeLine::_ZTV9QTimeLine) + 16)
- QObject (0x0x7f22b9fb91e0) 0
- primary-for QTimeLine (0x0x7f22b9f7b208)
-
-Class QTimer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTimer::QPrivateSignal (0x0x7f22b9fb9480) 0 empty
-
-Vtable for QTimer
-QTimer::_ZTV6QTimer: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QTimer)
-16 (int (*)(...))QTimer::metaObject
-24 (int (*)(...))QTimer::qt_metacast
-32 (int (*)(...))QTimer::qt_metacall
-40 (int (*)(...))QTimer::~QTimer
-48 (int (*)(...))QTimer::~QTimer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QTimer::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTimer
- size=32 align=8
- base size=29 base align=8
-QTimer (0x0x7f22b9f7b270) 0
- vptr=((& QTimer::_ZTV6QTimer) + 16)
- QObject (0x0x7f22b9fb9420) 0
- primary-for QTimer (0x0x7f22b9f7b270)
-
-Class QTimeZone::OffsetData
- size=32 align=8
- base size=28 base align=8
-QTimeZone::OffsetData (0x0x7f22ba002de0) 0
-
-Class QTimeZone
- size=8 align=8
- base size=8 base align=8
-QTimeZone (0x0x7f22ba002d80) 0
-
-Class QTranslator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTranslator::QPrivateSignal (0x0x7f22b9ca3ea0) 0 empty
-
-Vtable for QTranslator
-QTranslator::_ZTV11QTranslator: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTranslator)
-16 (int (*)(...))QTranslator::metaObject
-24 (int (*)(...))QTranslator::qt_metacast
-32 (int (*)(...))QTranslator::qt_metacall
-40 (int (*)(...))QTranslator::~QTranslator
-48 (int (*)(...))QTranslator::~QTranslator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTranslator::translate
-120 (int (*)(...))QTranslator::isEmpty
-
-Class QTranslator
- size=16 align=8
- base size=16 base align=8
-QTranslator (0x0x7f22b9cae958) 0
- vptr=((& QTranslator::_ZTV11QTranslator) + 16)
- QObject (0x0x7f22b9ca3e40) 0
- primary-for QTranslator (0x0x7f22b9cae958)
-
-Class QTransposeProxyModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTransposeProxyModel::QPrivateSignal (0x0x7f22b9cca120) 0 empty
-
-Vtable for QTransposeProxyModel
-QTransposeProxyModel::_ZTV20QTransposeProxyModel: 53 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTransposeProxyModel)
-16 (int (*)(...))QTransposeProxyModel::metaObject
-24 (int (*)(...))QTransposeProxyModel::qt_metacast
-32 (int (*)(...))QTransposeProxyModel::qt_metacall
-40 (int (*)(...))QTransposeProxyModel::~QTransposeProxyModel
-48 (int (*)(...))QTransposeProxyModel::~QTransposeProxyModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTransposeProxyModel::index
-120 (int (*)(...))QTransposeProxyModel::parent
-128 (int (*)(...))QAbstractProxyModel::sibling
-136 (int (*)(...))QTransposeProxyModel::rowCount
-144 (int (*)(...))QTransposeProxyModel::columnCount
-152 (int (*)(...))QAbstractProxyModel::hasChildren
-160 (int (*)(...))QAbstractProxyModel::data
-168 (int (*)(...))QAbstractProxyModel::setData
-176 (int (*)(...))QTransposeProxyModel::headerData
-184 (int (*)(...))QTransposeProxyModel::setHeaderData
-192 (int (*)(...))QTransposeProxyModel::itemData
-200 (int (*)(...))QTransposeProxyModel::setItemData
-208 (int (*)(...))QAbstractProxyModel::mimeTypes
-216 (int (*)(...))QAbstractProxyModel::mimeData
-224 (int (*)(...))QAbstractProxyModel::canDropMimeData
-232 (int (*)(...))QAbstractProxyModel::dropMimeData
-240 (int (*)(...))QAbstractProxyModel::supportedDropActions
-248 (int (*)(...))QAbstractProxyModel::supportedDragActions
-256 (int (*)(...))QTransposeProxyModel::insertRows
-264 (int (*)(...))QTransposeProxyModel::insertColumns
-272 (int (*)(...))QTransposeProxyModel::removeRows
-280 (int (*)(...))QTransposeProxyModel::removeColumns
-288 (int (*)(...))QTransposeProxyModel::moveRows
-296 (int (*)(...))QTransposeProxyModel::moveColumns
-304 (int (*)(...))QAbstractProxyModel::fetchMore
-312 (int (*)(...))QAbstractProxyModel::canFetchMore
-320 (int (*)(...))QAbstractProxyModel::flags
-328 (int (*)(...))QTransposeProxyModel::sort
-336 (int (*)(...))QAbstractProxyModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QTransposeProxyModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractProxyModel::submit
-376 (int (*)(...))QAbstractProxyModel::revert
-384 (int (*)(...))QTransposeProxyModel::setSourceModel
-392 (int (*)(...))QTransposeProxyModel::mapToSource
-400 (int (*)(...))QTransposeProxyModel::mapFromSource
-408 (int (*)(...))QAbstractProxyModel::mapSelectionToSource
-416 (int (*)(...))QAbstractProxyModel::mapSelectionFromSource
-
-Class QTransposeProxyModel
- size=16 align=8
- base size=16 base align=8
-QTransposeProxyModel (0x0x7f22b9cae9c0) 0
- vptr=((& QTransposeProxyModel::_ZTV20QTransposeProxyModel) + 16)
- QAbstractProxyModel (0x0x7f22b9caea28) 0
- primary-for QTransposeProxyModel (0x0x7f22b9cae9c0)
- QAbstractItemModel (0x0x7f22b9caea90) 0
- primary-for QAbstractProxyModel (0x0x7f22b9caea28)
- QObject (0x0x7f22b9cca0c0) 0
- primary-for QAbstractItemModel (0x0x7f22b9caea90)
-
-Class QUrlQuery
- size=8 align=8
- base size=8 base align=8
-QUrlQuery (0x0x7f22b9cca300) 0
-
-Class QWaitCondition
- size=8 align=8
- base size=8 base align=8
-QWaitCondition (0x0x7f22b9d44cc0) 0
-
-Class QXmlStreamStringRef
- size=16 align=8
- base size=16 base align=8
-QXmlStreamStringRef (0x0x7f22b9d44de0) 0
-
-Class QXmlStreamAttribute
- size=80 align=8
- base size=73 base align=8
-QXmlStreamAttribute (0x0x7f22b9def1e0) 0
-
-Class QXmlStreamAttributes
- size=8 align=8
- base size=8 base align=8
-QXmlStreamAttributes (0x0x7f22b9a5f138) 0
- QVector<QXmlStreamAttribute> (0x0x7f22b9a55900) 0
-
-Class QXmlStreamNamespaceDeclaration
- size=40 align=8
- base size=40 base align=8
-QXmlStreamNamespaceDeclaration (0x0x7f22b9a55c00) 0
-
-Class QXmlStreamNotationDeclaration
- size=56 align=8
- base size=56 base align=8
-QXmlStreamNotationDeclaration (0x0x7f22b9ad3ba0) 0
-
-Class QXmlStreamEntityDeclaration
- size=88 align=8
- base size=88 base align=8
-QXmlStreamEntityDeclaration (0x0x7f22b9b31ba0) 0
-
-Vtable for QXmlStreamEntityResolver
-QXmlStreamEntityResolver::_ZTV24QXmlStreamEntityResolver: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QXmlStreamEntityResolver)
-16 (int (*)(...))QXmlStreamEntityResolver::~QXmlStreamEntityResolver
-24 (int (*)(...))QXmlStreamEntityResolver::~QXmlStreamEntityResolver
-32 (int (*)(...))QXmlStreamEntityResolver::resolveEntity
-40 (int (*)(...))QXmlStreamEntityResolver::resolveUndeclaredEntity
-
-Class QXmlStreamEntityResolver
- size=8 align=8
- base size=8 base align=8
-QXmlStreamEntityResolver (0x0x7f22b9b9cc60) 0 nearly-empty
- vptr=((& QXmlStreamEntityResolver::_ZTV24QXmlStreamEntityResolver) + 16)
-
-Class QXmlStreamReader
- size=8 align=8
- base size=8 base align=8
-QXmlStreamReader (0x0x7f22b9b9ccc0) 0
-
-Class QXmlStreamWriter
- size=8 align=8
- base size=8 base align=8
-QXmlStreamWriter (0x0x7f22b9bdaba0) 0
-
-Class QRgba64
- size=8 align=8
- base size=8 base align=8
-QRgba64 (0x0x7f22b9c2c1e0) 0
-
-Class QColor
- size=16 align=4
- base size=14 base align=4
-QColor (0x0x7f22b98c7240) 0
-
-Class QRegion::QRegionData
- size=16 align=8
- base size=16 base align=8
-QRegion::QRegionData (0x0x7f22b99626c0) 0
-
-Class QRegion
- size=8 align=8
- base size=8 base align=8
-QRegion (0x0x7f22b9962660) 0
-
-Class QKeySequence
- size=8 align=8
- base size=8 base align=8
-QKeySequence (0x0x7f22b964f300) 0
-
-Class QVector2D
- size=8 align=4
- base size=8 base align=4
-QVector2D (0x0x7f22b971be40) 0
-
-Class QTouchDevice
- size=8 align=8
- base size=8 base align=8
-QTouchDevice (0x0x7f22b978df00) 0
-
-Vtable for QInputEvent
-QInputEvent::_ZTV11QInputEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QInputEvent)
-16 (int (*)(...))QInputEvent::~QInputEvent
-24 (int (*)(...))QInputEvent::~QInputEvent
-
-Class QInputEvent
- size=32 align=8
- base size=32 base align=8
-QInputEvent (0x0x7f22b97843a8) 0
- vptr=((& QInputEvent::_ZTV11QInputEvent) + 16)
- QEvent (0x0x7f22b97be7e0) 0
- primary-for QInputEvent (0x0x7f22b97843a8)
-
-Vtable for QEnterEvent
-QEnterEvent::_ZTV11QEnterEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QEnterEvent)
-16 (int (*)(...))QEnterEvent::~QEnterEvent
-24 (int (*)(...))QEnterEvent::~QEnterEvent
-
-Class QEnterEvent
- size=72 align=8
- base size=72 base align=8
-QEnterEvent (0x0x7f22b9784410) 0
- vptr=((& QEnterEvent::_ZTV11QEnterEvent) + 16)
- QEvent (0x0x7f22b97be9c0) 0
- primary-for QEnterEvent (0x0x7f22b9784410)
-
-Vtable for QMouseEvent
-QMouseEvent::_ZTV11QMouseEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QMouseEvent)
-16 (int (*)(...))QMouseEvent::~QMouseEvent
-24 (int (*)(...))QMouseEvent::~QMouseEvent
-
-Class QMouseEvent
- size=104 align=8
- base size=100 base align=8
-QMouseEvent (0x0x7f22b9784478) 0
- vptr=((& QMouseEvent::_ZTV11QMouseEvent) + 16)
- QInputEvent (0x0x7f22b97844e0) 0
- primary-for QMouseEvent (0x0x7f22b9784478)
- QEvent (0x0x7f22b97bed80) 0
- primary-for QInputEvent (0x0x7f22b97844e0)
-
-Vtable for QHoverEvent
-QHoverEvent::_ZTV11QHoverEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QHoverEvent)
-16 (int (*)(...))QHoverEvent::~QHoverEvent
-24 (int (*)(...))QHoverEvent::~QHoverEvent
-
-Class QHoverEvent
- size=64 align=8
- base size=64 base align=8
-QHoverEvent (0x0x7f22b9784548) 0
- vptr=((& QHoverEvent::_ZTV11QHoverEvent) + 16)
- QInputEvent (0x0x7f22b97845b0) 0
- primary-for QHoverEvent (0x0x7f22b9784548)
- QEvent (0x0x7f22b980b2a0) 0
- primary-for QInputEvent (0x0x7f22b97845b0)
-
-Vtable for QWheelEvent
-QWheelEvent::_ZTV11QWheelEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QWheelEvent)
-16 (int (*)(...))QWheelEvent::~QWheelEvent
-24 (int (*)(...))QWheelEvent::~QWheelEvent
-
-Class QWheelEvent
- size=96 align=8
- base size=96 base align=8
-QWheelEvent (0x0x7f22b9784618) 0
- vptr=((& QWheelEvent::_ZTV11QWheelEvent) + 16)
- QInputEvent (0x0x7f22b9784680) 0
- primary-for QWheelEvent (0x0x7f22b9784618)
- QEvent (0x0x7f22b980b480) 0
- primary-for QInputEvent (0x0x7f22b9784680)
-
-Vtable for QTabletEvent
-QTabletEvent::_ZTV12QTabletEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QTabletEvent)
-16 (int (*)(...))QTabletEvent::~QTabletEvent
-24 (int (*)(...))QTabletEvent::~QTabletEvent
-
-Class QTabletEvent
- size=128 align=8
- base size=128 base align=8
-QTabletEvent (0x0x7f22b97846e8) 0
- vptr=((& QTabletEvent::_ZTV12QTabletEvent) + 16)
- QInputEvent (0x0x7f22b9784750) 0
- primary-for QTabletEvent (0x0x7f22b97846e8)
- QEvent (0x0x7f22b980bae0) 0
- primary-for QInputEvent (0x0x7f22b9784750)
-
-Vtable for QNativeGestureEvent
-QNativeGestureEvent::_ZTV19QNativeGestureEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QNativeGestureEvent)
-16 (int (*)(...))QNativeGestureEvent::~QNativeGestureEvent
-24 (int (*)(...))QNativeGestureEvent::~QNativeGestureEvent
-
-Class QNativeGestureEvent
- size=112 align=8
- base size=112 base align=8
-QNativeGestureEvent (0x0x7f22b97847b8) 0
- vptr=((& QNativeGestureEvent::_ZTV19QNativeGestureEvent) + 16)
- QInputEvent (0x0x7f22b9784820) 0
- primary-for QNativeGestureEvent (0x0x7f22b97847b8)
- QEvent (0x0x7f22b944d420) 0
- primary-for QInputEvent (0x0x7f22b9784820)
-
-Vtable for QKeyEvent
-QKeyEvent::_ZTV9QKeyEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QKeyEvent)
-16 (int (*)(...))QKeyEvent::~QKeyEvent
-24 (int (*)(...))QKeyEvent::~QKeyEvent
-
-Class QKeyEvent
- size=64 align=8
- base size=59 base align=8
-QKeyEvent (0x0x7f22b9784888) 0
- vptr=((& QKeyEvent::_ZTV9QKeyEvent) + 16)
- QInputEvent (0x0x7f22b97848f0) 0
- primary-for QKeyEvent (0x0x7f22b9784888)
- QEvent (0x0x7f22b944d720) 0
- primary-for QInputEvent (0x0x7f22b97848f0)
-
-Vtable for QFocusEvent
-QFocusEvent::_ZTV11QFocusEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QFocusEvent)
-16 (int (*)(...))QFocusEvent::~QFocusEvent
-24 (int (*)(...))QFocusEvent::~QFocusEvent
-
-Class QFocusEvent
- size=24 align=8
- base size=24 base align=8
-QFocusEvent (0x0x7f22b9784958) 0
- vptr=((& QFocusEvent::_ZTV11QFocusEvent) + 16)
- QEvent (0x0x7f22b944da20) 0
- primary-for QFocusEvent (0x0x7f22b9784958)
-
-Vtable for QPaintEvent
-QPaintEvent::_ZTV11QPaintEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QPaintEvent)
-16 (int (*)(...))QPaintEvent::~QPaintEvent
-24 (int (*)(...))QPaintEvent::~QPaintEvent
-
-Class QPaintEvent
- size=56 align=8
- base size=49 base align=8
-QPaintEvent (0x0x7f22b97849c0) 0
- vptr=((& QPaintEvent::_ZTV11QPaintEvent) + 16)
- QEvent (0x0x7f22b944db40) 0
- primary-for QPaintEvent (0x0x7f22b97849c0)
-
-Vtable for QMoveEvent
-QMoveEvent::_ZTV10QMoveEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QMoveEvent)
-16 (int (*)(...))QMoveEvent::~QMoveEvent
-24 (int (*)(...))QMoveEvent::~QMoveEvent
-
-Class QMoveEvent
- size=40 align=8
- base size=36 base align=8
-QMoveEvent (0x0x7f22b9784a28) 0
- vptr=((& QMoveEvent::_ZTV10QMoveEvent) + 16)
- QEvent (0x0x7f22b944dc60) 0
- primary-for QMoveEvent (0x0x7f22b9784a28)
-
-Vtable for QExposeEvent
-QExposeEvent::_ZTV12QExposeEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QExposeEvent)
-16 (int (*)(...))QExposeEvent::~QExposeEvent
-24 (int (*)(...))QExposeEvent::~QExposeEvent
-
-Class QExposeEvent
- size=32 align=8
- base size=32 base align=8
-QExposeEvent (0x0x7f22b9784a90) 0
- vptr=((& QExposeEvent::_ZTV12QExposeEvent) + 16)
- QEvent (0x0x7f22b944dd80) 0
- primary-for QExposeEvent (0x0x7f22b9784a90)
-
-Vtable for QPlatformSurfaceEvent
-QPlatformSurfaceEvent::_ZTV21QPlatformSurfaceEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QPlatformSurfaceEvent)
-16 (int (*)(...))QPlatformSurfaceEvent::~QPlatformSurfaceEvent
-24 (int (*)(...))QPlatformSurfaceEvent::~QPlatformSurfaceEvent
-
-Class QPlatformSurfaceEvent
- size=24 align=8
- base size=24 base align=8
-QPlatformSurfaceEvent (0x0x7f22b9784af8) 0
- vptr=((& QPlatformSurfaceEvent::_ZTV21QPlatformSurfaceEvent) + 16)
- QEvent (0x0x7f22b944de40) 0
- primary-for QPlatformSurfaceEvent (0x0x7f22b9784af8)
-
-Vtable for QResizeEvent
-QResizeEvent::_ZTV12QResizeEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QResizeEvent)
-16 (int (*)(...))QResizeEvent::~QResizeEvent
-24 (int (*)(...))QResizeEvent::~QResizeEvent
-
-Class QResizeEvent
- size=40 align=8
- base size=36 base align=8
-QResizeEvent (0x0x7f22b9784b60) 0
- vptr=((& QResizeEvent::_ZTV12QResizeEvent) + 16)
- QEvent (0x0x7f22b944df00) 0
- primary-for QResizeEvent (0x0x7f22b9784b60)
-
-Vtable for QCloseEvent
-QCloseEvent::_ZTV11QCloseEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QCloseEvent)
-16 (int (*)(...))QCloseEvent::~QCloseEvent
-24 (int (*)(...))QCloseEvent::~QCloseEvent
-
-Class QCloseEvent
- size=24 align=8
- base size=20 base align=8
-QCloseEvent (0x0x7f22b9784bc8) 0
- vptr=((& QCloseEvent::_ZTV11QCloseEvent) + 16)
- QEvent (0x0x7f22b9491060) 0
- primary-for QCloseEvent (0x0x7f22b9784bc8)
-
-Vtable for QIconDragEvent
-QIconDragEvent::_ZTV14QIconDragEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QIconDragEvent)
-16 (int (*)(...))QIconDragEvent::~QIconDragEvent
-24 (int (*)(...))QIconDragEvent::~QIconDragEvent
-
-Class QIconDragEvent
- size=24 align=8
- base size=20 base align=8
-QIconDragEvent (0x0x7f22b9784c30) 0
- vptr=((& QIconDragEvent::_ZTV14QIconDragEvent) + 16)
- QEvent (0x0x7f22b94910c0) 0
- primary-for QIconDragEvent (0x0x7f22b9784c30)
-
-Vtable for QShowEvent
-QShowEvent::_ZTV10QShowEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QShowEvent)
-16 (int (*)(...))QShowEvent::~QShowEvent
-24 (int (*)(...))QShowEvent::~QShowEvent
-
-Class QShowEvent
- size=24 align=8
- base size=20 base align=8
-QShowEvent (0x0x7f22b9784c98) 0
- vptr=((& QShowEvent::_ZTV10QShowEvent) + 16)
- QEvent (0x0x7f22b9491120) 0
- primary-for QShowEvent (0x0x7f22b9784c98)
-
-Vtable for QHideEvent
-QHideEvent::_ZTV10QHideEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QHideEvent)
-16 (int (*)(...))QHideEvent::~QHideEvent
-24 (int (*)(...))QHideEvent::~QHideEvent
-
-Class QHideEvent
- size=24 align=8
- base size=20 base align=8
-QHideEvent (0x0x7f22b9784d00) 0
- vptr=((& QHideEvent::_ZTV10QHideEvent) + 16)
- QEvent (0x0x7f22b9491180) 0
- primary-for QHideEvent (0x0x7f22b9784d00)
-
-Vtable for QContextMenuEvent
-QContextMenuEvent::_ZTV17QContextMenuEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QContextMenuEvent)
-16 (int (*)(...))QContextMenuEvent::~QContextMenuEvent
-24 (int (*)(...))QContextMenuEvent::~QContextMenuEvent
-
-Class QContextMenuEvent
- size=56 align=8
- base size=49 base align=8
-QContextMenuEvent (0x0x7f22b9784d68) 0
- vptr=((& QContextMenuEvent::_ZTV17QContextMenuEvent) + 16)
- QInputEvent (0x0x7f22b9784dd0) 0
- primary-for QContextMenuEvent (0x0x7f22b9784d68)
- QEvent (0x0x7f22b94911e0) 0
- primary-for QInputEvent (0x0x7f22b9784dd0)
-
-Class QInputMethodEvent::Attribute
- size=32 align=8
- base size=32 base align=8
-QInputMethodEvent::Attribute (0x0x7f22b9491540) 0
-
-Vtable for QInputMethodEvent
-QInputMethodEvent::_ZTV17QInputMethodEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QInputMethodEvent)
-16 (int (*)(...))QInputMethodEvent::~QInputMethodEvent
-24 (int (*)(...))QInputMethodEvent::~QInputMethodEvent
-
-Class QInputMethodEvent
- size=56 align=8
- base size=56 base align=8
-QInputMethodEvent (0x0x7f22b9784e38) 0
- vptr=((& QInputMethodEvent::_ZTV17QInputMethodEvent) + 16)
- QEvent (0x0x7f22b94914e0) 0
- primary-for QInputMethodEvent (0x0x7f22b9784e38)
-
-Class QInputMethodQueryEvent::QueryPair
- size=24 align=8
- base size=24 base align=8
-QInputMethodQueryEvent::QueryPair (0x0x7f22b95168a0) 0
-
-Vtable for QInputMethodQueryEvent
-QInputMethodQueryEvent::_ZTV22QInputMethodQueryEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QInputMethodQueryEvent)
-16 (int (*)(...))QInputMethodQueryEvent::~QInputMethodQueryEvent
-24 (int (*)(...))QInputMethodQueryEvent::~QInputMethodQueryEvent
-
-Class QInputMethodQueryEvent
- size=32 align=8
- base size=32 base align=8
-QInputMethodQueryEvent (0x0x7f22b9527068) 0
- vptr=((& QInputMethodQueryEvent::_ZTV22QInputMethodQueryEvent) + 16)
- QEvent (0x0x7f22b9516840) 0
- primary-for QInputMethodQueryEvent (0x0x7f22b9527068)
-
-Vtable for QDropEvent
-QDropEvent::_ZTV10QDropEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QDropEvent)
-16 (int (*)(...))QDropEvent::~QDropEvent
-24 (int (*)(...))QDropEvent::~QDropEvent
-
-Class QDropEvent
- size=72 align=8
- base size=72 base align=8
-QDropEvent (0x0x7f22b9598138) 0
- vptr=((& QDropEvent::_ZTV10QDropEvent) + 16)
- QEvent (0x0x7f22b9590600) 0
- primary-for QDropEvent (0x0x7f22b9598138)
-
-Vtable for QDragMoveEvent
-QDragMoveEvent::_ZTV14QDragMoveEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QDragMoveEvent)
-16 (int (*)(...))QDragMoveEvent::~QDragMoveEvent
-24 (int (*)(...))QDragMoveEvent::~QDragMoveEvent
-
-Class QDragMoveEvent
- size=88 align=8
- base size=88 base align=8
-QDragMoveEvent (0x0x7f22b95981a0) 0
- vptr=((& QDragMoveEvent::_ZTV14QDragMoveEvent) + 16)
- QDropEvent (0x0x7f22b9598208) 0
- primary-for QDragMoveEvent (0x0x7f22b95981a0)
- QEvent (0x0x7f22b95909c0) 0
- primary-for QDropEvent (0x0x7f22b9598208)
-
-Vtable for QDragEnterEvent
-QDragEnterEvent::_ZTV15QDragEnterEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QDragEnterEvent)
-16 (int (*)(...))QDragEnterEvent::~QDragEnterEvent
-24 (int (*)(...))QDragEnterEvent::~QDragEnterEvent
-
-Class QDragEnterEvent
- size=88 align=8
- base size=88 base align=8
-QDragEnterEvent (0x0x7f22b9598270) 0
- vptr=((& QDragEnterEvent::_ZTV15QDragEnterEvent) + 16)
- QDragMoveEvent (0x0x7f22b95982d8) 0
- primary-for QDragEnterEvent (0x0x7f22b9598270)
- QDropEvent (0x0x7f22b9598340) 0
- primary-for QDragMoveEvent (0x0x7f22b95982d8)
- QEvent (0x0x7f22b9590c00) 0
- primary-for QDropEvent (0x0x7f22b9598340)
-
-Vtable for QDragLeaveEvent
-QDragLeaveEvent::_ZTV15QDragLeaveEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QDragLeaveEvent)
-16 (int (*)(...))QDragLeaveEvent::~QDragLeaveEvent
-24 (int (*)(...))QDragLeaveEvent::~QDragLeaveEvent
-
-Class QDragLeaveEvent
- size=24 align=8
- base size=20 base align=8
-QDragLeaveEvent (0x0x7f22b95983a8) 0
- vptr=((& QDragLeaveEvent::_ZTV15QDragLeaveEvent) + 16)
- QEvent (0x0x7f22b9590c60) 0
- primary-for QDragLeaveEvent (0x0x7f22b95983a8)
-
-Vtable for QHelpEvent
-QHelpEvent::_ZTV10QHelpEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QHelpEvent)
-16 (int (*)(...))QHelpEvent::~QHelpEvent
-24 (int (*)(...))QHelpEvent::~QHelpEvent
-
-Class QHelpEvent
- size=40 align=8
- base size=36 base align=8
-QHelpEvent (0x0x7f22b9598410) 0
- vptr=((& QHelpEvent::_ZTV10QHelpEvent) + 16)
- QEvent (0x0x7f22b9590cc0) 0
- primary-for QHelpEvent (0x0x7f22b9598410)
-
-Vtable for QStatusTipEvent
-QStatusTipEvent::_ZTV15QStatusTipEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QStatusTipEvent)
-16 (int (*)(...))QStatusTipEvent::~QStatusTipEvent
-24 (int (*)(...))QStatusTipEvent::~QStatusTipEvent
-
-Class QStatusTipEvent
- size=32 align=8
- base size=32 base align=8
-QStatusTipEvent (0x0x7f22b9598478) 0
- vptr=((& QStatusTipEvent::_ZTV15QStatusTipEvent) + 16)
- QEvent (0x0x7f22b9590f60) 0
- primary-for QStatusTipEvent (0x0x7f22b9598478)
-
-Vtable for QWhatsThisClickedEvent
-QWhatsThisClickedEvent::_ZTV22QWhatsThisClickedEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QWhatsThisClickedEvent)
-16 (int (*)(...))QWhatsThisClickedEvent::~QWhatsThisClickedEvent
-24 (int (*)(...))QWhatsThisClickedEvent::~QWhatsThisClickedEvent
-
-Class QWhatsThisClickedEvent
- size=32 align=8
- base size=32 base align=8
-QWhatsThisClickedEvent (0x0x7f22b95984e0) 0
- vptr=((& QWhatsThisClickedEvent::_ZTV22QWhatsThisClickedEvent) + 16)
- QEvent (0x0x7f22b95c3060) 0
- primary-for QWhatsThisClickedEvent (0x0x7f22b95984e0)
-
-Vtable for QActionEvent
-QActionEvent::_ZTV12QActionEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QActionEvent)
-16 (int (*)(...))QActionEvent::~QActionEvent
-24 (int (*)(...))QActionEvent::~QActionEvent
-
-Class QActionEvent
- size=40 align=8
- base size=40 base align=8
-QActionEvent (0x0x7f22b9598548) 0
- vptr=((& QActionEvent::_ZTV12QActionEvent) + 16)
- QEvent (0x0x7f22b95c3120) 0
- primary-for QActionEvent (0x0x7f22b9598548)
-
-Vtable for QFileOpenEvent
-QFileOpenEvent::_ZTV14QFileOpenEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QFileOpenEvent)
-16 (int (*)(...))QFileOpenEvent::~QFileOpenEvent
-24 (int (*)(...))QFileOpenEvent::~QFileOpenEvent
-
-Class QFileOpenEvent
- size=40 align=8
- base size=40 base align=8
-QFileOpenEvent (0x0x7f22b95985b0) 0
- vptr=((& QFileOpenEvent::_ZTV14QFileOpenEvent) + 16)
- QEvent (0x0x7f22b95c3240) 0
- primary-for QFileOpenEvent (0x0x7f22b95985b0)
-
-Vtable for QToolBarChangeEvent
-QToolBarChangeEvent::_ZTV19QToolBarChangeEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QToolBarChangeEvent)
-16 (int (*)(...))QToolBarChangeEvent::~QToolBarChangeEvent
-24 (int (*)(...))QToolBarChangeEvent::~QToolBarChangeEvent
-
-Class QToolBarChangeEvent
- size=24 align=8
- base size=21 base align=8
-QToolBarChangeEvent (0x0x7f22b9598618) 0
- vptr=((& QToolBarChangeEvent::_ZTV19QToolBarChangeEvent) + 16)
- QEvent (0x0x7f22b95c3360) 0
- primary-for QToolBarChangeEvent (0x0x7f22b9598618)
-
-Vtable for QShortcutEvent
-QShortcutEvent::_ZTV14QShortcutEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QShortcutEvent)
-16 (int (*)(...))QShortcutEvent::~QShortcutEvent
-24 (int (*)(...))QShortcutEvent::~QShortcutEvent
-
-Class QShortcutEvent
- size=40 align=8
- base size=40 base align=8
-QShortcutEvent (0x0x7f22b9598680) 0
- vptr=((& QShortcutEvent::_ZTV14QShortcutEvent) + 16)
- QEvent (0x0x7f22b95c3420) 0
- primary-for QShortcutEvent (0x0x7f22b9598680)
-
-Vtable for QWindowStateChangeEvent
-QWindowStateChangeEvent::_ZTV23QWindowStateChangeEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QWindowStateChangeEvent)
-16 (int (*)(...))QWindowStateChangeEvent::~QWindowStateChangeEvent
-24 (int (*)(...))QWindowStateChangeEvent::~QWindowStateChangeEvent
-
-Class QWindowStateChangeEvent
- size=32 align=8
- base size=25 base align=8
-QWindowStateChangeEvent (0x0x7f22b95986e8) 0
- vptr=((& QWindowStateChangeEvent::_ZTV23QWindowStateChangeEvent) + 16)
- QEvent (0x0x7f22b95c35a0) 0
- primary-for QWindowStateChangeEvent (0x0x7f22b95986e8)
-
-Class QPointingDeviceUniqueId
- size=8 align=8
- base size=8 base align=8
-QPointingDeviceUniqueId (0x0x7f22b95c3720) 0
-
-Class QTouchEvent::TouchPoint
- size=8 align=8
- base size=8 base align=8
-QTouchEvent::TouchPoint (0x0x7f22b961dae0) 0
-
-Vtable for QTouchEvent
-QTouchEvent::_ZTV11QTouchEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTouchEvent)
-16 (int (*)(...))QTouchEvent::~QTouchEvent
-24 (int (*)(...))QTouchEvent::~QTouchEvent
-
-Class QTouchEvent
- size=72 align=8
- base size=72 base align=8
-QTouchEvent (0x0x7f22b9618f08) 0
- vptr=((& QTouchEvent::_ZTV11QTouchEvent) + 16)
- QInputEvent (0x0x7f22b9618f70) 0
- primary-for QTouchEvent (0x0x7f22b9618f08)
- QEvent (0x0x7f22b961da80) 0
- primary-for QInputEvent (0x0x7f22b9618f70)
-
-Vtable for QScrollPrepareEvent
-QScrollPrepareEvent::_ZTV19QScrollPrepareEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QScrollPrepareEvent)
-16 (int (*)(...))QScrollPrepareEvent::~QScrollPrepareEvent
-24 (int (*)(...))QScrollPrepareEvent::~QScrollPrepareEvent
-
-Class QScrollPrepareEvent
- size=112 align=8
- base size=112 base align=8
-QScrollPrepareEvent (0x0x7f22b932dc30) 0
- vptr=((& QScrollPrepareEvent::_ZTV19QScrollPrepareEvent) + 16)
- QEvent (0x0x7f22b93610c0) 0
- primary-for QScrollPrepareEvent (0x0x7f22b932dc30)
-
-Vtable for QScrollEvent
-QScrollEvent::_ZTV12QScrollEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QScrollEvent)
-16 (int (*)(...))QScrollEvent::~QScrollEvent
-24 (int (*)(...))QScrollEvent::~QScrollEvent
-
-Class QScrollEvent
- size=64 align=8
- base size=60 base align=8
-QScrollEvent (0x0x7f22b932dc98) 0
- vptr=((& QScrollEvent::_ZTV12QScrollEvent) + 16)
- QEvent (0x0x7f22b9361120) 0
- primary-for QScrollEvent (0x0x7f22b932dc98)
-
-Vtable for QScreenOrientationChangeEvent
-QScreenOrientationChangeEvent::_ZTV29QScreenOrientationChangeEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QScreenOrientationChangeEvent)
-16 (int (*)(...))QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent
-24 (int (*)(...))QScreenOrientationChangeEvent::~QScreenOrientationChangeEvent
-
-Class QScreenOrientationChangeEvent
- size=40 align=8
- base size=36 base align=8
-QScreenOrientationChangeEvent (0x0x7f22b932dd00) 0
- vptr=((& QScreenOrientationChangeEvent::_ZTV29QScreenOrientationChangeEvent) + 16)
- QEvent (0x0x7f22b9361180) 0
- primary-for QScreenOrientationChangeEvent (0x0x7f22b932dd00)
-
-Vtable for QApplicationStateChangeEvent
-QApplicationStateChangeEvent::_ZTV28QApplicationStateChangeEvent: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QApplicationStateChangeEvent)
-16 (int (*)(...))QApplicationStateChangeEvent::~QApplicationStateChangeEvent
-24 (int (*)(...))QApplicationStateChangeEvent::~QApplicationStateChangeEvent
-
-Class QApplicationStateChangeEvent
- size=24 align=8
- base size=24 base align=8
-QApplicationStateChangeEvent (0x0x7f22b932dd68) 0
- vptr=((& QApplicationStateChangeEvent::_ZTV28QApplicationStateChangeEvent) + 16)
- QEvent (0x0x7f22b93611e0) 0
- primary-for QApplicationStateChangeEvent (0x0x7f22b932dd68)
-
-Class QFont
- size=16 align=8
- base size=12 base align=8
-QFont (0x0x7f22b9361240) 0
-
-Class QPolygon
- size=8 align=8
- base size=8 base align=8
-QPolygon (0x0x7f22b93fb9c0) 0
- QVector<QPoint> (0x0x7f22b94006c0) 0
-
-Class QPolygonF
- size=8 align=8
- base size=8 base align=8
-QPolygonF (0x0x7f22b908cd00) 0
- QVector<QPointF> (0x0x7f22b909e780) 0
-
-Class QMatrix
- size=48 align=8
- base size=48 base align=8
-QMatrix (0x0x7f22b9139600) 0
-
-Class QPainterPath::Element
- size=24 align=8
- base size=24 base align=8
-QPainterPath::Element (0x0x7f22b91a3420) 0
-
-Class QPainterPath
- size=8 align=8
- base size=8 base align=8
-QPainterPath (0x0x7f22b91a33c0) 0
-
-Class QPainterPathStroker
- size=8 align=8
- base size=8 base align=8
-QPainterPathStroker (0x0x7f22b8ede780) 0
-
-Class QTransform
- size=88 align=8
- base size=88 base align=8
-QTransform (0x0x7f22b8edee40) 0
-
-Vtable for QPaintDevice
-QPaintDevice::_ZTV12QPaintDevice: 10 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QPaintDevice)
-16 0
-24 0
-32 (int (*)(...))QPaintDevice::devType
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPaintDevice
- size=24 align=8
- base size=24 base align=8
-QPaintDevice (0x0x7f22b8f9d900) 0
- vptr=((& QPaintDevice::_ZTV12QPaintDevice) + 16)
-
-Class QPixelFormat
- size=8 align=8
- base size=8 base align=8
-QPixelFormat (0x0x7f22b8f9df00) 0
-
-Vtable for QImage
-QImage::_ZTV6QImage: 10 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QImage)
-16 (int (*)(...))QImage::~QImage
-24 (int (*)(...))QImage::~QImage
-32 (int (*)(...))QImage::devType
-40 (int (*)(...))QImage::paintEngine
-48 (int (*)(...))QImage::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QImage
- size=32 align=8
- base size=32 base align=8
-QImage (0x0x7f22b8c64b60) 0
- vptr=((& QImage::_ZTV6QImage) + 16)
- QPaintDevice (0x0x7f22b8c73840) 0
- primary-for QImage (0x0x7f22b8c64b60)
-
-Vtable for QPixmap
-QPixmap::_ZTV7QPixmap: 10 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QPixmap)
-16 (int (*)(...))QPixmap::~QPixmap
-24 (int (*)(...))QPixmap::~QPixmap
-32 (int (*)(...))QPixmap::devType
-40 (int (*)(...))QPixmap::paintEngine
-48 (int (*)(...))QPixmap::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPixmap
- size=32 align=8
- base size=32 base align=8
-QPixmap (0x0x7f22b8d825b0) 0
- vptr=((& QPixmap::_ZTV7QPixmap) + 16)
- QPaintDevice (0x0x7f22b8d84600) 0
- primary-for QPixmap (0x0x7f22b8d825b0)
-
-Class QBrush
- size=8 align=8
- base size=8 base align=8
-QBrush (0x0x7f22b8df7ae0) 0
-
-Class QBrushData
- size=112 align=8
- base size=112 base align=8
-QBrushData (0x0x7f22b8ad5060) 0
-
-Class QGradient
- size=64 align=8
- base size=64 base align=8
-QGradient (0x0x7f22b8ad52a0) 0
-
-Class QLinearGradient
- size=64 align=8
- base size=64 base align=8
-QLinearGradient (0x0x7f22b8ac9750) 0
- QGradient (0x0x7f22b8ad59c0) 0
-
-Class QRadialGradient
- size=64 align=8
- base size=64 base align=8
-QRadialGradient (0x0x7f22b8ac97b8) 0
- QGradient (0x0x7f22b8ad5ae0) 0
-
-Class QConicalGradient
- size=64 align=8
- base size=64 base align=8
-QConicalGradient (0x0x7f22b8ac9820) 0
- QGradient (0x0x7f22b8ad5c00) 0
-
-Class QPen
- size=8 align=8
- base size=8 base align=8
-QPen (0x0x7f22b8ad5cc0) 0
-
-Class QTextOption::Tab
- size=16 align=8
- base size=14 base align=8
-QTextOption::Tab (0x0x7f22b8bf1660) 0
-
-Class QTextOption
- size=32 align=8
- base size=32 base align=8
-QTextOption (0x0x7f22b8bf1600) 0
-
-Class QTextLength
- size=16 align=8
- base size=16 base align=8
-QTextLength (0x0x7f22b8c29d80) 0
-
-Class QTextFormat
- size=16 align=8
- base size=12 base align=8
-QTextFormat (0x0x7f22b88b4720) 0
-
-Class QTextCharFormat
- size=16 align=8
- base size=12 base align=8
-QTextCharFormat (0x0x7f22b89a28f0) 0
- QTextFormat (0x0x7f22b89ce300) 0
-
-Class QTextBlockFormat
- size=16 align=8
- base size=12 base align=8
-QTextBlockFormat (0x0x7f22b8a40d00) 0
- QTextFormat (0x0x7f22b8a46cc0) 0
-
-Class QTextListFormat
- size=16 align=8
- base size=12 base align=8
-QTextListFormat (0x0x7f22b86b2270) 0
- QTextFormat (0x0x7f22b86a99c0) 0
-
-Class QTextImageFormat
- size=16 align=8
- base size=12 base align=8
-QTextImageFormat (0x0x7f22b86f8680) 0
- QTextCharFormat (0x0x7f22b86f86e8) 0
- QTextFormat (0x0x7f22b8702180) 0
-
-Class QTextFrameFormat
- size=16 align=8
- base size=12 base align=8
-QTextFrameFormat (0x0x7f22b8736c30) 0
- QTextFormat (0x0x7f22b873f7e0) 0
-
-Class QTextTableFormat
- size=16 align=8
- base size=12 base align=8
-QTextTableFormat (0x0x7f22b87a11a0) 0
- QTextFrameFormat (0x0x7f22b87a1208) 0
- QTextFormat (0x0x7f22b87a6420) 0
-
-Class QTextTableCellFormat
- size=16 align=8
- base size=12 base align=8
-QTextTableCellFormat (0x0x7f22b87f5750) 0
- QTextCharFormat (0x0x7f22b87f57b8) 0
- QTextFormat (0x0x7f22b87eacc0) 0
-
-Class QFontDatabase
- size=8 align=8
- base size=8 base align=8
-QFontDatabase (0x0x7f22b844e120) 0
-
-Class QRawFont
- size=8 align=8
- base size=8 base align=8
-QRawFont (0x0x7f22b844e300) 0
-
-Class QGlyphRun
- size=8 align=8
- base size=8 base align=8
-QGlyphRun (0x0x7f22b84bccc0) 0
-
-Class QTextCursor
- size=8 align=8
- base size=8 base align=8
-QTextCursor (0x0x7f22b8532de0) 0
-
-Class QTextInlineObject
- size=16 align=8
- base size=16 base align=8
-QTextInlineObject (0x0x7f22b859af60) 0
-
-Class QTextLayout::FormatRange
- size=24 align=8
- base size=24 base align=8
-QTextLayout::FormatRange (0x0x7f22b85bc3c0) 0
-
-Class QTextLayout
- size=8 align=8
- base size=8 base align=8
-QTextLayout (0x0x7f22b85bc360) 0
-
-Class QTextLine
- size=16 align=8
- base size=16 base align=8
-QTextLine (0x0x7f22b8645a80) 0
-
-Vtable for QAbstractUndoItem
-QAbstractUndoItem::_ZTV17QAbstractUndoItem: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAbstractUndoItem)
-16 (int (*)(...))__cxa_pure_virtual
-24 (int (*)(...))__cxa_pure_virtual
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractUndoItem
- size=8 align=8
- base size=8 base align=8
-QAbstractUndoItem (0x0x7f22b8645f00) 0 nearly-empty
- vptr=((& QAbstractUndoItem::_ZTV17QAbstractUndoItem) + 16)
-
-Class QTextDocument::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextDocument::QPrivateSignal (0x0x7f22b82721e0) 0 empty
-
-Vtable for QTextDocument
-QTextDocument::_ZTV13QTextDocument: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QTextDocument)
-16 (int (*)(...))QTextDocument::metaObject
-24 (int (*)(...))QTextDocument::qt_metacast
-32 (int (*)(...))QTextDocument::qt_metacall
-40 (int (*)(...))QTextDocument::~QTextDocument
-48 (int (*)(...))QTextDocument::~QTextDocument
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextDocument::clear
-120 (int (*)(...))QTextDocument::createObject
-128 (int (*)(...))QTextDocument::loadResource
-
-Class QTextDocument
- size=16 align=8
- base size=16 base align=8
-QTextDocument (0x0x7f22b825b2d8) 0
- vptr=((& QTextDocument::_ZTV13QTextDocument) + 16)
- QObject (0x0x7f22b8272180) 0
- primary-for QTextDocument (0x0x7f22b825b2d8)
-
-Class QPalette::Data
- size=4 align=4
- base size=4 base align=4
-QPalette::Data (0x0x7f22b8272cc0) 0
-
-Class QPalette
- size=16 align=8
- base size=12 base align=8
-QPalette (0x0x7f22b8272c60) 0
-
-Class QAbstractTextDocumentLayout::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractTextDocumentLayout::QPrivateSignal (0x0x7f22b83be0c0) 0 empty
-
-Class QAbstractTextDocumentLayout::Selection
- size=24 align=8
- base size=24 base align=8
-QAbstractTextDocumentLayout::Selection (0x0x7f22b83be120) 0
-
-Class QAbstractTextDocumentLayout::PaintContext
- size=64 align=8
- base size=64 base align=8
-QAbstractTextDocumentLayout::PaintContext (0x0x7f22b83be180) 0
-
-Vtable for QAbstractTextDocumentLayout
-QAbstractTextDocumentLayout::_ZTV27QAbstractTextDocumentLayout: 24 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAbstractTextDocumentLayout)
-16 (int (*)(...))QAbstractTextDocumentLayout::metaObject
-24 (int (*)(...))QAbstractTextDocumentLayout::qt_metacast
-32 (int (*)(...))QAbstractTextDocumentLayout::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QAbstractTextDocumentLayout::resizeInlineObject
-176 (int (*)(...))QAbstractTextDocumentLayout::positionInlineObject
-184 (int (*)(...))QAbstractTextDocumentLayout::drawInlineObject
-
-Class QAbstractTextDocumentLayout
- size=16 align=8
- base size=16 base align=8
-QAbstractTextDocumentLayout (0x0x7f22b83c0000) 0
- vptr=((& QAbstractTextDocumentLayout::_ZTV27QAbstractTextDocumentLayout) + 16)
- QObject (0x0x7f22b83be060) 0
- primary-for QAbstractTextDocumentLayout (0x0x7f22b83c0000)
-
-Vtable for QTextObjectInterface
-QTextObjectInterface::_ZTV20QTextObjectInterface: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTextObjectInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QTextObjectInterface
- size=8 align=8
- base size=8 base align=8
-QTextObjectInterface (0x0x7f22b8068d20) 0 nearly-empty
- vptr=((& QTextObjectInterface::_ZTV20QTextObjectInterface) + 16)
-
-Class QAccessible::State
- size=8 align=8
- base size=5 base align=8
-QAccessible::State (0x0x7f22b8068f60) 0
-
-Vtable for QAccessible::ActivationObserver
-QAccessible::ActivationObserver::_ZTVN11QAccessible18ActivationObserverE: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN11QAccessible18ActivationObserverE)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessible::ActivationObserver
- size=8 align=8
- base size=8 base align=8
-QAccessible::ActivationObserver (0x0x7f22b80a6000) 0 nearly-empty
- vptr=((& QAccessible::ActivationObserver::_ZTVN11QAccessible18ActivationObserverE) + 16)
-
-Class QAccessible
- size=1 align=1
- base size=0 base align=1
-QAccessible (0x0x7f22b8068f00) 0 empty
-
-Vtable for QAccessibleInterface
-QAccessibleInterface::_ZTV20QAccessibleInterface: 23 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QAccessibleInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QAccessibleInterface::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleInterface::focusChild
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleInterface (0x0x7f22b80a6ba0) 0 nearly-empty
- vptr=((& QAccessibleInterface::_ZTV20QAccessibleInterface) + 16)
-
-Vtable for QAccessibleTextInterface
-QAccessibleTextInterface::_ZTV24QAccessibleTextInterface: 20 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAccessibleTextInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))QAccessibleTextInterface::textBeforeOffset
-104 (int (*)(...))QAccessibleTextInterface::textAfterOffset
-112 (int (*)(...))QAccessibleTextInterface::textAtOffset
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTextInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTextInterface (0x0x7f22b80a6f00) 0 nearly-empty
- vptr=((& QAccessibleTextInterface::_ZTV24QAccessibleTextInterface) + 16)
-
-Vtable for QAccessibleEditableTextInterface
-QAccessibleEditableTextInterface::_ZTV32QAccessibleEditableTextInterface: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI32QAccessibleEditableTextInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleEditableTextInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleEditableTextInterface (0x0x7f22b80a6f60) 0 nearly-empty
- vptr=((& QAccessibleEditableTextInterface::_ZTV32QAccessibleEditableTextInterface) + 16)
-
-Vtable for QAccessibleValueInterface
-QAccessibleValueInterface::_ZTV25QAccessibleValueInterface: 9 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleValueInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleValueInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleValueInterface (0x0x7f22b80f9000) 0 nearly-empty
- vptr=((& QAccessibleValueInterface::_ZTV25QAccessibleValueInterface) + 16)
-
-Vtable for QAccessibleTableCellInterface
-QAccessibleTableCellInterface::_ZTV29QAccessibleTableCellInterface: 12 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QAccessibleTableCellInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTableCellInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTableCellInterface (0x0x7f22b80f9060) 0 nearly-empty
- vptr=((& QAccessibleTableCellInterface::_ZTV29QAccessibleTableCellInterface) + 16)
-
-Vtable for QAccessibleTableInterface
-QAccessibleTableInterface::_ZTV25QAccessibleTableInterface: 24 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleTableInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-184 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleTableInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleTableInterface (0x0x7f22b80f90c0) 0 nearly-empty
- vptr=((& QAccessibleTableInterface::_ZTV25QAccessibleTableInterface) + 16)
-
-Vtable for QAccessibleActionInterface
-QAccessibleActionInterface::_ZTV26QAccessibleActionInterface: 9 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleActionInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QAccessibleActionInterface::localizedActionName
-48 (int (*)(...))QAccessibleActionInterface::localizedActionDescription
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleActionInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleActionInterface (0x0x7f22b80f9120) 0 nearly-empty
- vptr=((& QAccessibleActionInterface::_ZTV26QAccessibleActionInterface) + 16)
-
-Vtable for QAccessibleImageInterface
-QAccessibleImageInterface::_ZTV25QAccessibleImageInterface: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI25QAccessibleImageInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleImageInterface
- size=8 align=8
- base size=8 base align=8
-QAccessibleImageInterface (0x0x7f22b80f9240) 0 nearly-empty
- vptr=((& QAccessibleImageInterface::_ZTV25QAccessibleImageInterface) + 16)
-
-Vtable for QAccessibleEvent
-QAccessibleEvent::_ZTV16QAccessibleEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QAccessibleEvent)
-16 (int (*)(...))QAccessibleEvent::~QAccessibleEvent
-24 (int (*)(...))QAccessibleEvent::~QAccessibleEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleEvent
- size=32 align=8
- base size=28 base align=8
-QAccessibleEvent (0x0x7f22b80f92a0) 0
- vptr=((& QAccessibleEvent::_ZTV16QAccessibleEvent) + 16)
-
-Vtable for QAccessibleStateChangeEvent
-QAccessibleStateChangeEvent::_ZTV27QAccessibleStateChangeEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAccessibleStateChangeEvent)
-16 (int (*)(...))QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent
-24 (int (*)(...))QAccessibleStateChangeEvent::~QAccessibleStateChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleStateChangeEvent
- size=40 align=8
- base size=40 base align=8
-QAccessibleStateChangeEvent (0x0x7f22b8087618) 0
- vptr=((& QAccessibleStateChangeEvent::_ZTV27QAccessibleStateChangeEvent) + 16)
- QAccessibleEvent (0x0x7f22b80f9c60) 0
- primary-for QAccessibleStateChangeEvent (0x0x7f22b8087618)
-
-Vtable for QAccessibleTextCursorEvent
-QAccessibleTextCursorEvent::_ZTV26QAccessibleTextCursorEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextCursorEvent)
-16 (int (*)(...))QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent
-24 (int (*)(...))QAccessibleTextCursorEvent::~QAccessibleTextCursorEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextCursorEvent
- size=32 align=8
- base size=32 base align=8
-QAccessibleTextCursorEvent (0x0x7f22b8087680) 0
- vptr=((& QAccessibleTextCursorEvent::_ZTV26QAccessibleTextCursorEvent) + 16)
- QAccessibleEvent (0x0x7f22b8175060) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f22b8087680)
-
-Vtable for QAccessibleTextSelectionEvent
-QAccessibleTextSelectionEvent::_ZTV29QAccessibleTextSelectionEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI29QAccessibleTextSelectionEvent)
-16 (int (*)(...))QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent
-24 (int (*)(...))QAccessibleTextSelectionEvent::~QAccessibleTextSelectionEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextSelectionEvent
- size=40 align=8
- base size=40 base align=8
-QAccessibleTextSelectionEvent (0x0x7f22b80876e8) 0
- vptr=((& QAccessibleTextSelectionEvent::_ZTV29QAccessibleTextSelectionEvent) + 16)
- QAccessibleTextCursorEvent (0x0x7f22b8087750) 0
- primary-for QAccessibleTextSelectionEvent (0x0x7f22b80876e8)
- QAccessibleEvent (0x0x7f22b8175480) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f22b8087750)
-
-Vtable for QAccessibleTextInsertEvent
-QAccessibleTextInsertEvent::_ZTV26QAccessibleTextInsertEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextInsertEvent)
-16 (int (*)(...))QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent
-24 (int (*)(...))QAccessibleTextInsertEvent::~QAccessibleTextInsertEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextInsertEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTextInsertEvent (0x0x7f22b80877b8) 0
- vptr=((& QAccessibleTextInsertEvent::_ZTV26QAccessibleTextInsertEvent) + 16)
- QAccessibleTextCursorEvent (0x0x7f22b8087820) 0
- primary-for QAccessibleTextInsertEvent (0x0x7f22b80877b8)
- QAccessibleEvent (0x0x7f22b8175900) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f22b8087820)
-
-Vtable for QAccessibleTextRemoveEvent
-QAccessibleTextRemoveEvent::_ZTV26QAccessibleTextRemoveEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextRemoveEvent)
-16 (int (*)(...))QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent
-24 (int (*)(...))QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextRemoveEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTextRemoveEvent (0x0x7f22b8087888) 0
- vptr=((& QAccessibleTextRemoveEvent::_ZTV26QAccessibleTextRemoveEvent) + 16)
- QAccessibleTextCursorEvent (0x0x7f22b80878f0) 0
- primary-for QAccessibleTextRemoveEvent (0x0x7f22b8087888)
- QAccessibleEvent (0x0x7f22b8175d20) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f22b80878f0)
-
-Vtable for QAccessibleTextUpdateEvent
-QAccessibleTextUpdateEvent::_ZTV26QAccessibleTextUpdateEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QAccessibleTextUpdateEvent)
-16 (int (*)(...))QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent
-24 (int (*)(...))QAccessibleTextUpdateEvent::~QAccessibleTextUpdateEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTextUpdateEvent
- size=56 align=8
- base size=56 base align=8
-QAccessibleTextUpdateEvent (0x0x7f22b8087958) 0
- vptr=((& QAccessibleTextUpdateEvent::_ZTV26QAccessibleTextUpdateEvent) + 16)
- QAccessibleTextCursorEvent (0x0x7f22b80879c0) 0
- primary-for QAccessibleTextUpdateEvent (0x0x7f22b8087958)
- QAccessibleEvent (0x0x7f22b81a2180) 0
- primary-for QAccessibleTextCursorEvent (0x0x7f22b80879c0)
-
-Vtable for QAccessibleValueChangeEvent
-QAccessibleValueChangeEvent::_ZTV27QAccessibleValueChangeEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QAccessibleValueChangeEvent)
-16 (int (*)(...))QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent
-24 (int (*)(...))QAccessibleValueChangeEvent::~QAccessibleValueChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleValueChangeEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleValueChangeEvent (0x0x7f22b8087a28) 0
- vptr=((& QAccessibleValueChangeEvent::_ZTV27QAccessibleValueChangeEvent) + 16)
- QAccessibleEvent (0x0x7f22b81a2600) 0
- primary-for QAccessibleValueChangeEvent (0x0x7f22b8087a28)
-
-Vtable for QAccessibleTableModelChangeEvent
-QAccessibleTableModelChangeEvent::_ZTV32QAccessibleTableModelChangeEvent: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI32QAccessibleTableModelChangeEvent)
-16 (int (*)(...))QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent
-24 (int (*)(...))QAccessibleTableModelChangeEvent::~QAccessibleTableModelChangeEvent
-32 (int (*)(...))QAccessibleEvent::accessibleInterface
-
-Class QAccessibleTableModelChangeEvent
- size=48 align=8
- base size=48 base align=8
-QAccessibleTableModelChangeEvent (0x0x7f22b8087a90) 0
- vptr=((& QAccessibleTableModelChangeEvent::_ZTV32QAccessibleTableModelChangeEvent) + 16)
- QAccessibleEvent (0x0x7f22b81a2a20) 0
- primary-for QAccessibleTableModelChangeEvent (0x0x7f22b8087a90)
-
-Vtable for QAccessibleBridge
-QAccessibleBridge::_ZTV17QAccessibleBridge: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessibleBridge)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleBridge
- size=8 align=8
- base size=8 base align=8
-QAccessibleBridge (0x0x7f22b81d5300) 0 nearly-empty
- vptr=((& QAccessibleBridge::_ZTV17QAccessibleBridge) + 16)
-
-Class QAccessibleBridgePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAccessibleBridgePlugin::QPrivateSignal (0x0x7f22b81d55a0) 0 empty
-
-Vtable for QAccessibleBridgePlugin
-QAccessibleBridgePlugin::_ZTV23QAccessibleBridgePlugin: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QAccessibleBridgePlugin)
-16 (int (*)(...))QAccessibleBridgePlugin::metaObject
-24 (int (*)(...))QAccessibleBridgePlugin::qt_metacast
-32 (int (*)(...))QAccessibleBridgePlugin::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessibleBridgePlugin
- size=16 align=8
- base size=16 base align=8
-QAccessibleBridgePlugin (0x0x7f22b8087af8) 0
- vptr=((& QAccessibleBridgePlugin::_ZTV23QAccessibleBridgePlugin) + 16)
- QObject (0x0x7f22b81d5540) 0
- primary-for QAccessibleBridgePlugin (0x0x7f22b8087af8)
-
-Vtable for QAccessibleObject
-QAccessibleObject::_ZTV17QAccessibleObject: 23 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessibleObject)
-16 0
-24 0
-32 (int (*)(...))QAccessibleObject::isValid
-40 (int (*)(...))QAccessibleObject::object
-48 (int (*)(...))QAccessibleInterface::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleInterface::focusChild
-72 (int (*)(...))QAccessibleObject::childAt
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QAccessibleObject::setText
-128 (int (*)(...))QAccessibleObject::rect
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleObject
- size=16 align=8
- base size=16 base align=8
-QAccessibleObject (0x0x7f22b8087b60) 0
- vptr=((& QAccessibleObject::_ZTV17QAccessibleObject) + 16)
- QAccessibleInterface (0x0x7f22b81d56c0) 0 nearly-empty
- primary-for QAccessibleObject (0x0x7f22b8087b60)
-
-Vtable for QAccessibleApplication
-QAccessibleApplication::_ZTV22QAccessibleApplication: 23 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QAccessibleApplication)
-16 (int (*)(...))QAccessibleApplication::~QAccessibleApplication
-24 (int (*)(...))QAccessibleApplication::~QAccessibleApplication
-32 (int (*)(...))QAccessibleObject::isValid
-40 (int (*)(...))QAccessibleObject::object
-48 (int (*)(...))QAccessibleApplication::window
-56 (int (*)(...))QAccessibleInterface::relations
-64 (int (*)(...))QAccessibleApplication::focusChild
-72 (int (*)(...))QAccessibleObject::childAt
-80 (int (*)(...))QAccessibleApplication::parent
-88 (int (*)(...))QAccessibleApplication::child
-96 (int (*)(...))QAccessibleApplication::childCount
-104 (int (*)(...))QAccessibleApplication::indexOfChild
-112 (int (*)(...))QAccessibleApplication::text
-120 (int (*)(...))QAccessibleObject::setText
-128 (int (*)(...))QAccessibleObject::rect
-136 (int (*)(...))QAccessibleApplication::role
-144 (int (*)(...))QAccessibleApplication::state
-152 (int (*)(...))QAccessibleInterface::foregroundColor
-160 (int (*)(...))QAccessibleInterface::backgroundColor
-168 (int (*)(...))QAccessibleInterface::virtual_hook
-176 (int (*)(...))QAccessibleInterface::interface_cast
-
-Class QAccessibleApplication
- size=16 align=8
- base size=16 base align=8
-QAccessibleApplication (0x0x7f22b8087bc8) 0
- vptr=((& QAccessibleApplication::_ZTV22QAccessibleApplication) + 16)
- QAccessibleObject (0x0x7f22b8087c30) 0
- primary-for QAccessibleApplication (0x0x7f22b8087bc8)
- QAccessibleInterface (0x0x7f22b81d5720) 0 nearly-empty
- primary-for QAccessibleObject (0x0x7f22b8087c30)
-
-Class QAccessiblePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAccessiblePlugin::QPrivateSignal (0x0x7f22b81d57e0) 0 empty
-
-Vtable for QAccessiblePlugin
-QAccessiblePlugin::_ZTV17QAccessiblePlugin: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QAccessiblePlugin)
-16 (int (*)(...))QAccessiblePlugin::metaObject
-24 (int (*)(...))QAccessiblePlugin::qt_metacast
-32 (int (*)(...))QAccessiblePlugin::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QAccessiblePlugin
- size=16 align=8
- base size=16 base align=8
-QAccessiblePlugin (0x0x7f22b8087c98) 0
- vptr=((& QAccessiblePlugin::_ZTV17QAccessiblePlugin) + 16)
- QObject (0x0x7f22b81d5780) 0
- primary-for QAccessiblePlugin (0x0x7f22b8087c98)
-
-Class QSurfaceFormat
- size=8 align=8
- base size=8 base align=8
-QSurfaceFormat (0x0x7f22b81d5900) 0
-
-Vtable for QSurface
-QSurface::_ZTV8QSurface: 8 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QSurface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-
-Class QSurface
- size=24 align=8
- base size=24 base align=8
-QSurface (0x0x7f22b823d480) 0
- vptr=((& QSurface::_ZTV8QSurface) + 16)
-
-Class QIcon
- size=8 align=8
- base size=8 base align=8
-QIcon (0x0x7f22b823d840) 0
-
-Class QCursor
- size=8 align=8
- base size=8 base align=8
-QCursor (0x0x7f22b7f203c0) 0
-
-Class QWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QWindow::QPrivateSignal (0x0x7f22b7fed180) 0 empty
-
-Vtable for QWindow
-QWindow::_ZTV7QWindow: 45 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QWindow)
-16 (int (*)(...))QWindow::metaObject
-24 (int (*)(...))QWindow::qt_metacast
-32 (int (*)(...))QWindow::qt_metacall
-40 (int (*)(...))QWindow::~QWindow
-48 (int (*)(...))QWindow::~QWindow
-56 (int (*)(...))QWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI7QWindow)
-312 (int (*)(...))QWindow::_ZThn16_N7QWindowD1Ev
-320 (int (*)(...))QWindow::_ZThn16_N7QWindowD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QWindow
- size=40 align=8
- base size=40 base align=8
-QWindow (0x0x7f22b7fdea10) 0
- vptr=((& QWindow::_ZTV7QWindow) + 16)
- QObject (0x0x7f22b7fed0c0) 0
- primary-for QWindow (0x0x7f22b7fdea10)
- QSurface (0x0x7f22b7fed120) 16
- vptr=((& QWindow::_ZTV7QWindow) + 312)
-
-Class QBackingStore
- size=8 align=8
- base size=8 base align=8
-QBackingStore (0x0x7f22b7feda20) 0
-
-Vtable for QBitmap
-QBitmap::_ZTV7QBitmap: 10 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QBitmap)
-16 (int (*)(...))QBitmap::~QBitmap
-24 (int (*)(...))QBitmap::~QBitmap
-32 (int (*)(...))QPixmap::devType
-40 (int (*)(...))QPixmap::paintEngine
-48 (int (*)(...))QPixmap::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QBitmap
- size=32 align=8
- base size=32 base align=8
-QBitmap (0x0x7f22b7fcdf70) 0
- vptr=((& QBitmap::_ZTV7QBitmap) + 16)
- QPixmap (0x0x7f22b8041000) 0
- primary-for QBitmap (0x0x7f22b7fcdf70)
- QPaintDevice (0x0x7f22b7fedae0) 0
- primary-for QPixmap (0x0x7f22b8041000)
-
-Class QClipboard::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QClipboard::QPrivateSignal (0x0x7f22b7c90060) 0 empty
-
-Vtable for QClipboard
-QClipboard::_ZTV10QClipboard: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QClipboard)
-16 (int (*)(...))QClipboard::metaObject
-24 (int (*)(...))QClipboard::qt_metacast
-32 (int (*)(...))QClipboard::qt_metacall
-40 (int (*)(...))QClipboard::~QClipboard
-48 (int (*)(...))QClipboard::~QClipboard
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QClipboard
- size=16 align=8
- base size=16 base align=8
-QClipboard (0x0x7f22b7c8a2d8) 0
- vptr=((& QClipboard::_ZTV10QClipboard) + 16)
- QObject (0x0x7f22b7c90000) 0
- primary-for QClipboard (0x0x7f22b7c8a2d8)
-
-Class QDesktopServices
- size=1 align=1
- base size=0 base align=1
-QDesktopServices (0x0x7f22b7c90180) 0 empty
-
-Class QDrag::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDrag::QPrivateSignal (0x0x7f22b7c90240) 0 empty
-
-Vtable for QDrag
-QDrag::_ZTV5QDrag: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QDrag)
-16 (int (*)(...))QDrag::metaObject
-24 (int (*)(...))QDrag::qt_metacast
-32 (int (*)(...))QDrag::qt_metacall
-40 (int (*)(...))QDrag::~QDrag
-48 (int (*)(...))QDrag::~QDrag
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDrag
- size=16 align=8
- base size=16 base align=8
-QDrag (0x0x7f22b7c8a340) 0
- vptr=((& QDrag::_ZTV5QDrag) + 16)
- QObject (0x0x7f22b7c901e0) 0
- primary-for QDrag (0x0x7f22b7c8a340)
-
-Class QFontInfo
- size=8 align=8
- base size=8 base align=8
-QFontInfo (0x0x7f22b7c90420) 0
-
-Class QFontMetrics
- size=8 align=8
- base size=8 base align=8
-QFontMetrics (0x0x7f22b7cf8480) 0
-
-Class QFontMetricsF
- size=8 align=8
- base size=8 base align=8
-QFontMetricsF (0x0x7f22b7d427e0) 0
-
-Class QGenericPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QGenericPlugin::QPrivateSignal (0x0x7f22b7a6e8a0) 0 empty
-
-Vtable for QGenericPlugin
-QGenericPlugin::_ZTV14QGenericPlugin: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QGenericPlugin)
-16 (int (*)(...))QGenericPlugin::metaObject
-24 (int (*)(...))QGenericPlugin::qt_metacast
-32 (int (*)(...))QGenericPlugin::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QGenericPlugin
- size=16 align=8
- base size=16 base align=8
-QGenericPlugin (0x0x7f22b7d88ea0) 0
- vptr=((& QGenericPlugin::_ZTV14QGenericPlugin) + 16)
- QObject (0x0x7f22b7a6e840) 0
- primary-for QGenericPlugin (0x0x7f22b7d88ea0)
-
-Class QGenericPluginFactory
- size=1 align=1
- base size=0 base align=1
-QGenericPluginFactory (0x0x7f22b7a6e9c0) 0 empty
-
-Class QInputMethod::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QInputMethod::QPrivateSignal (0x0x7f22b7a6ea80) 0 empty
-
-Vtable for QInputMethod
-QInputMethod::_ZTV12QInputMethod: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QInputMethod)
-16 (int (*)(...))QInputMethod::metaObject
-24 (int (*)(...))QInputMethod::qt_metacast
-32 (int (*)(...))QInputMethod::qt_metacall
-40 (int (*)(...))QInputMethod::~QInputMethod
-48 (int (*)(...))QInputMethod::~QInputMethod
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QInputMethod
- size=16 align=8
- base size=16 base align=8
-QInputMethod (0x0x7f22b7d88f08) 0
- vptr=((& QInputMethod::_ZTV12QInputMethod) + 16)
- QObject (0x0x7f22b7a6ea20) 0
- primary-for QInputMethod (0x0x7f22b7d88f08)
-
-Class QGuiApplication::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QGuiApplication::QPrivateSignal (0x0x7f22b7a6ed80) 0 empty
-
-Vtable for QGuiApplication
-QGuiApplication::_ZTV15QGuiApplication: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QGuiApplication)
-16 (int (*)(...))QGuiApplication::metaObject
-24 (int (*)(...))QGuiApplication::qt_metacast
-32 (int (*)(...))QGuiApplication::qt_metacall
-40 (int (*)(...))QGuiApplication::~QGuiApplication
-48 (int (*)(...))QGuiApplication::~QGuiApplication
-56 (int (*)(...))QGuiApplication::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QGuiApplication::notify
-120 (int (*)(...))QGuiApplication::compressEvent
-
-Class QGuiApplication
- size=16 align=8
- base size=16 base align=8
-QGuiApplication (0x0x7f22b7d88f70) 0
- vptr=((& QGuiApplication::_ZTV15QGuiApplication) + 16)
- QCoreApplication (0x0x7f22b7ae8000) 0
- primary-for QGuiApplication (0x0x7f22b7d88f70)
- QObject (0x0x7f22b7a6ed20) 0
- primary-for QCoreApplication (0x0x7f22b7ae8000)
-
-Class QIconEngine::AvailableSizesArgument
- size=16 align=8
- base size=16 base align=8
-QIconEngine::AvailableSizesArgument (0x0x7f22b7b02540) 0
-
-Class QIconEngine::ScaledPixmapArgument
- size=56 align=8
- base size=56 base align=8
-QIconEngine::ScaledPixmapArgument (0x0x7f22b7b026c0) 0
-
-Vtable for QIconEngine
-QIconEngine::_ZTV11QIconEngine: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QIconEngine)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QIconEngine::actualSize
-48 (int (*)(...))QIconEngine::pixmap
-56 (int (*)(...))QIconEngine::addPixmap
-64 (int (*)(...))QIconEngine::addFile
-72 (int (*)(...))QIconEngine::key
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))QIconEngine::read
-96 (int (*)(...))QIconEngine::write
-104 (int (*)(...))QIconEngine::availableSizes
-112 (int (*)(...))QIconEngine::iconName
-120 (int (*)(...))QIconEngine::virtual_hook
-
-Class QIconEngine
- size=8 align=8
- base size=8 base align=8
-QIconEngine (0x0x7f22b7b024e0) 0 nearly-empty
- vptr=((& QIconEngine::_ZTV11QIconEngine) + 16)
-
-Class QIconEnginePlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIconEnginePlugin::QPrivateSignal (0x0x7f22b7b02780) 0 empty
-
-Vtable for QIconEnginePlugin
-QIconEnginePlugin::_ZTV17QIconEnginePlugin: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QIconEnginePlugin)
-16 (int (*)(...))QIconEnginePlugin::metaObject
-24 (int (*)(...))QIconEnginePlugin::qt_metacast
-32 (int (*)(...))QIconEnginePlugin::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QIconEnginePlugin
- size=16 align=8
- base size=16 base align=8
-QIconEnginePlugin (0x0x7f22b7ae85b0) 0
- vptr=((& QIconEnginePlugin::_ZTV17QIconEnginePlugin) + 16)
- QObject (0x0x7f22b7b02720) 0
- primary-for QIconEnginePlugin (0x0x7f22b7ae85b0)
-
-Vtable for QImageIOHandler
-QImageIOHandler::_ZTV15QImageIOHandler: 18 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QImageIOHandler)
-16 0
-24 0
-32 (int (*)(...))QImageIOHandler::name
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))QImageIOHandler::write
-64 (int (*)(...))QImageIOHandler::option
-72 (int (*)(...))QImageIOHandler::setOption
-80 (int (*)(...))QImageIOHandler::supportsOption
-88 (int (*)(...))QImageIOHandler::jumpToNextImage
-96 (int (*)(...))QImageIOHandler::jumpToImage
-104 (int (*)(...))QImageIOHandler::loopCount
-112 (int (*)(...))QImageIOHandler::imageCount
-120 (int (*)(...))QImageIOHandler::nextImageDelay
-128 (int (*)(...))QImageIOHandler::currentImageNumber
-136 (int (*)(...))QImageIOHandler::currentImageRect
-
-Class QImageIOHandler
- size=16 align=8
- base size=16 base align=8
-QImageIOHandler (0x0x7f22b7b028a0) 0
- vptr=((& QImageIOHandler::_ZTV15QImageIOHandler) + 16)
-
-Class QImageIOPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QImageIOPlugin::QPrivateSignal (0x0x7f22b7b02ae0) 0 empty
-
-Vtable for QImageIOPlugin
-QImageIOPlugin::_ZTV14QImageIOPlugin: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QImageIOPlugin)
-16 (int (*)(...))QImageIOPlugin::metaObject
-24 (int (*)(...))QImageIOPlugin::qt_metacast
-32 (int (*)(...))QImageIOPlugin::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QImageIOPlugin
- size=16 align=8
- base size=16 base align=8
-QImageIOPlugin (0x0x7f22b7ae8618) 0
- vptr=((& QImageIOPlugin::_ZTV14QImageIOPlugin) + 16)
- QObject (0x0x7f22b7b02a80) 0
- primary-for QImageIOPlugin (0x0x7f22b7ae8618)
-
-Class QImageReader
- size=8 align=8
- base size=8 base align=8
-QImageReader (0x0x7f22b7b91300) 0
-
-Class QImageWriter
- size=8 align=8
- base size=8 base align=8
-QImageWriter (0x0x7f22b7b91420) 0
-
-Class QVector3D
- size=12 align=4
- base size=12 base align=4
-QVector3D (0x0x7f22b7b91540) 0
-
-Class QVector4D
- size=16 align=4
- base size=16 base align=4
-QVector4D (0x0x7f22b7c236c0) 0
-
-Class QQuaternion
- size=16 align=4
- base size=16 base align=4
-QQuaternion (0x0x7f22b78a7900) 0
-
-Class QMatrix4x4
- size=68 align=4
- base size=68 base align=4
-QMatrix4x4 (0x0x7f22b7971240) 0
-
-Class QMovie::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QMovie::QPrivateSignal (0x0x7f22b76ee0c0) 0 empty
-
-Vtable for QMovie
-QMovie::_ZTV6QMovie: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI6QMovie)
-16 (int (*)(...))QMovie::metaObject
-24 (int (*)(...))QMovie::qt_metacast
-32 (int (*)(...))QMovie::qt_metacall
-40 (int (*)(...))QMovie::~QMovie
-48 (int (*)(...))QMovie::~QMovie
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QMovie
- size=16 align=8
- base size=16 base align=8
-QMovie (0x0x7f22b79d8d68) 0
- vptr=((& QMovie::_ZTV6QMovie) + 16)
- QObject (0x0x7f22b76ee060) 0
- primary-for QMovie (0x0x7f22b79d8d68)
-
-Class QOffscreenSurface::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOffscreenSurface::QPrivateSignal (0x0x7f22b76ee4e0) 0 empty
-
-Vtable for QOffscreenSurface
-QOffscreenSurface::_ZTV17QOffscreenSurface: 26 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QOffscreenSurface)
-16 (int (*)(...))QOffscreenSurface::metaObject
-24 (int (*)(...))QOffscreenSurface::qt_metacast
-32 (int (*)(...))QOffscreenSurface::qt_metacall
-40 (int (*)(...))QOffscreenSurface::~QOffscreenSurface
-48 (int (*)(...))QOffscreenSurface::~QOffscreenSurface
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QOffscreenSurface::surfaceType
-120 (int (*)(...))QOffscreenSurface::format
-128 (int (*)(...))QOffscreenSurface::size
-136 (int (*)(...))QOffscreenSurface::surfaceHandle
-144 (int (*)(...))-16
-152 (int (*)(...))(& _ZTI17QOffscreenSurface)
-160 (int (*)(...))QOffscreenSurface::_ZThn16_N17QOffscreenSurfaceD1Ev
-168 (int (*)(...))QOffscreenSurface::_ZThn16_N17QOffscreenSurfaceD0Ev
-176 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface6formatEv
-184 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface13surfaceHandleEv
-192 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface11surfaceTypeEv
-200 (int (*)(...))QOffscreenSurface::_ZThn16_NK17QOffscreenSurface4sizeEv
-
-Class QOffscreenSurface
- size=40 align=8
- base size=40 base align=8
-QOffscreenSurface (0x0x7f22b79ef850) 0
- vptr=((& QOffscreenSurface::_ZTV17QOffscreenSurface) + 16)
- QObject (0x0x7f22b76ee420) 0
- primary-for QOffscreenSurface (0x0x7f22b79ef850)
- QSurface (0x0x7f22b76ee480) 16
- vptr=((& QOffscreenSurface::_ZTV17QOffscreenSurface) + 160)
-
-Class QOpenGLBuffer
- size=8 align=8
- base size=8 base align=8
-QOpenGLBuffer (0x0x7f22b76ee720) 0
-
-Class QOpenGLVersionStatus
- size=12 align=4
- base size=12 base align=4
-QOpenGLVersionStatus (0x0x7f22b76eef60) 0
-
-Class QOpenGLVersionFunctionsBackend
- size=16 align=8
- base size=12 base align=8
-QOpenGLVersionFunctionsBackend (0x0x7f22b739db40) 0
-
-Class QOpenGLVersionFunctionsStorage
- size=8 align=8
- base size=8 base align=8
-QOpenGLVersionFunctionsStorage (0x0x7f22b739dd20) 0
-
-Class QAbstractOpenGLFunctionsPrivate
- size=16 align=8
- base size=9 base align=8
-QAbstractOpenGLFunctionsPrivate (0x0x7f22b739dd80) 0
-
-Vtable for QAbstractOpenGLFunctions
-QAbstractOpenGLFunctions::_ZTV24QAbstractOpenGLFunctions: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QAbstractOpenGLFunctions)
-16 (int (*)(...))QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions
-24 (int (*)(...))QAbstractOpenGLFunctions::~QAbstractOpenGLFunctions
-32 (int (*)(...))QAbstractOpenGLFunctions::initializeOpenGLFunctions
-
-Class QAbstractOpenGLFunctions
- size=16 align=8
- base size=16 base align=8
-QAbstractOpenGLFunctions (0x0x7f22b739df60) 0
- vptr=((& QAbstractOpenGLFunctions::_ZTV24QAbstractOpenGLFunctions) + 16)
-
-Class QOpenGLFunctions_1_0_CoreBackend::Functions
- size=384 align=8
- base size=384 base align=8
-QOpenGLFunctions_1_0_CoreBackend::Functions (0x0x7f22b73cb180) 0
-
-Class QOpenGLFunctions_1_0_CoreBackend
- size=400 align=8
- base size=400 base align=8
-QOpenGLFunctions_1_0_CoreBackend (0x0x7f22b739cc30) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b73cb120) 0
-
-Class QOpenGLFunctions_1_1_CoreBackend::Functions
- size=128 align=8
- base size=128 base align=8
-QOpenGLFunctions_1_1_CoreBackend::Functions (0x0x7f22b73cb480) 0
-
-Class QOpenGLFunctions_1_1_CoreBackend
- size=144 align=8
- base size=144 base align=8
-QOpenGLFunctions_1_1_CoreBackend (0x0x7f22b739cc98) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b73cb420) 0
-
-Class QOpenGLFunctions_1_2_CoreBackend::Functions
- size=48 align=8
- base size=48 base align=8
-QOpenGLFunctions_1_2_CoreBackend::Functions (0x0x7f22b73cb780) 0
-
-Class QOpenGLFunctions_1_2_CoreBackend
- size=64 align=8
- base size=64 base align=8
-QOpenGLFunctions_1_2_CoreBackend (0x0x7f22b739cd00) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b73cb720) 0
-
-Class QOpenGLFunctions_1_3_CoreBackend::Functions
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_1_3_CoreBackend::Functions (0x0x7f22b73cba80) 0
-
-Class QOpenGLFunctions_1_3_CoreBackend
- size=88 align=8
- base size=88 base align=8
-QOpenGLFunctions_1_3_CoreBackend (0x0x7f22b739cd68) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b73cba20) 0
-
-Class QOpenGLFunctions_1_4_CoreBackend::Functions
- size=56 align=8
- base size=56 base align=8
-QOpenGLFunctions_1_4_CoreBackend::Functions (0x0x7f22b73cbde0) 0
-
-Class QOpenGLFunctions_1_4_CoreBackend
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_1_4_CoreBackend (0x0x7f22b739cdd0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b73cbd80) 0
-
-Class QOpenGLFunctions_1_5_CoreBackend::Functions
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_1_5_CoreBackend::Functions (0x0x7f22b7400120) 0
-
-Class QOpenGLFunctions_1_5_CoreBackend
- size=168 align=8
- base size=168 base align=8
-QOpenGLFunctions_1_5_CoreBackend (0x0x7f22b739ce38) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b74000c0) 0
-
-Class QOpenGLFunctions_2_0_CoreBackend::Functions
- size=744 align=8
- base size=744 base align=8
-QOpenGLFunctions_2_0_CoreBackend::Functions (0x0x7f22b7400420) 0
-
-Class QOpenGLFunctions_2_0_CoreBackend
- size=760 align=8
- base size=760 base align=8
-QOpenGLFunctions_2_0_CoreBackend (0x0x7f22b739cea0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b74003c0) 0
-
-Class QOpenGLFunctions_2_1_CoreBackend::Functions
- size=48 align=8
- base size=48 base align=8
-QOpenGLFunctions_2_1_CoreBackend::Functions (0x0x7f22b7400720) 0
-
-Class QOpenGLFunctions_2_1_CoreBackend
- size=64 align=8
- base size=64 base align=8
-QOpenGLFunctions_2_1_CoreBackend (0x0x7f22b739cf08) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b74006c0) 0
-
-Class QOpenGLFunctions_3_0_CoreBackend::Functions
- size=672 align=8
- base size=672 base align=8
-QOpenGLFunctions_3_0_CoreBackend::Functions (0x0x7f22b7400a20) 0
-
-Class QOpenGLFunctions_3_0_CoreBackend
- size=688 align=8
- base size=688 base align=8
-QOpenGLFunctions_3_0_CoreBackend (0x0x7f22b739cf70) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b74009c0) 0
-
-Class QOpenGLFunctions_3_1_CoreBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_3_1_CoreBackend::Functions (0x0x7f22b7400d20) 0
-
-Class QOpenGLFunctions_3_1_CoreBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_3_1_CoreBackend (0x0x7f22b7446000) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b7400cc0) 0
-
-Class QOpenGLFunctions_3_2_CoreBackend::Functions
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_3_2_CoreBackend::Functions (0x0x7f22b704f060) 0
-
-Class QOpenGLFunctions_3_2_CoreBackend
- size=168 align=8
- base size=168 base align=8
-QOpenGLFunctions_3_2_CoreBackend (0x0x7f22b7446068) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b704f000) 0
-
-Class QOpenGLFunctions_3_3_CoreBackend::Functions
- size=464 align=8
- base size=464 base align=8
-QOpenGLFunctions_3_3_CoreBackend::Functions (0x0x7f22b704f360) 0
-
-Class QOpenGLFunctions_3_3_CoreBackend
- size=480 align=8
- base size=480 base align=8
-QOpenGLFunctions_3_3_CoreBackend (0x0x7f22b74460d0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b704f300) 0
-
-Class QOpenGLFunctions_4_0_CoreBackend::Functions
- size=368 align=8
- base size=368 base align=8
-QOpenGLFunctions_4_0_CoreBackend::Functions (0x0x7f22b704f660) 0
-
-Class QOpenGLFunctions_4_0_CoreBackend
- size=384 align=8
- base size=384 base align=8
-QOpenGLFunctions_4_0_CoreBackend (0x0x7f22b7446138) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b704f600) 0
-
-Class QOpenGLFunctions_4_1_CoreBackend::Functions
- size=704 align=8
- base size=704 base align=8
-QOpenGLFunctions_4_1_CoreBackend::Functions (0x0x7f22b704f960) 0
-
-Class QOpenGLFunctions_4_1_CoreBackend
- size=720 align=8
- base size=720 base align=8
-QOpenGLFunctions_4_1_CoreBackend (0x0x7f22b74461a0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b704f900) 0
-
-Class QOpenGLFunctions_4_2_CoreBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_4_2_CoreBackend::Functions (0x0x7f22b704fc60) 0
-
-Class QOpenGLFunctions_4_2_CoreBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_4_2_CoreBackend (0x0x7f22b7446208) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b704fc00) 0
-
-Class QOpenGLFunctions_4_3_CoreBackend::Functions
- size=344 align=8
- base size=344 base align=8
-QOpenGLFunctions_4_3_CoreBackend::Functions (0x0x7f22b704ff60) 0
-
-Class QOpenGLFunctions_4_3_CoreBackend
- size=360 align=8
- base size=360 base align=8
-QOpenGLFunctions_4_3_CoreBackend (0x0x7f22b7446270) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b704ff00) 0
-
-Class QOpenGLFunctions_4_4_CoreBackend::Functions
- size=72 align=8
- base size=72 base align=8
-QOpenGLFunctions_4_4_CoreBackend::Functions (0x0x7f22b70b92a0) 0
-
-Class QOpenGLFunctions_4_4_CoreBackend
- size=88 align=8
- base size=88 base align=8
-QOpenGLFunctions_4_4_CoreBackend (0x0x7f22b74462d8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b70b9240) 0
-
-Class QOpenGLFunctions_4_5_CoreBackend::Functions
- size=848 align=8
- base size=848 base align=8
-QOpenGLFunctions_4_5_CoreBackend::Functions (0x0x7f22b70b9600) 0
-
-Class QOpenGLFunctions_4_5_CoreBackend
- size=864 align=8
- base size=864 base align=8
-QOpenGLFunctions_4_5_CoreBackend (0x0x7f22b7446340) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b70b95a0) 0
-
-Class QOpenGLFunctions_1_0_DeprecatedBackend::Functions
- size=2064 align=8
- base size=2064 base align=8
-QOpenGLFunctions_1_0_DeprecatedBackend::Functions (0x0x7f22b70b9900) 0
-
-Class QOpenGLFunctions_1_0_DeprecatedBackend
- size=2080 align=8
- base size=2080 base align=8
-QOpenGLFunctions_1_0_DeprecatedBackend (0x0x7f22b74463a8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b70b98a0) 0
-
-Class QOpenGLFunctions_1_1_DeprecatedBackend::Functions
- size=136 align=8
- base size=136 base align=8
-QOpenGLFunctions_1_1_DeprecatedBackend::Functions (0x0x7f22b70b9c00) 0
-
-Class QOpenGLFunctions_1_1_DeprecatedBackend
- size=152 align=8
- base size=152 base align=8
-QOpenGLFunctions_1_1_DeprecatedBackend (0x0x7f22b7446410) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b70b9ba0) 0
-
-Class QOpenGLFunctions_1_2_DeprecatedBackend::Functions
- size=256 align=8
- base size=256 base align=8
-QOpenGLFunctions_1_2_DeprecatedBackend::Functions (0x0x7f22b70b9f00) 0
-
-Class QOpenGLFunctions_1_2_DeprecatedBackend
- size=272 align=8
- base size=272 base align=8
-QOpenGLFunctions_1_2_DeprecatedBackend (0x0x7f22b7446478) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b70b9ea0) 0
-
-Class QOpenGLFunctions_1_3_DeprecatedBackend::Functions
- size=296 align=8
- base size=296 base align=8
-QOpenGLFunctions_1_3_DeprecatedBackend::Functions (0x0x7f22b7142240) 0
-
-Class QOpenGLFunctions_1_3_DeprecatedBackend
- size=312 align=8
- base size=312 base align=8
-QOpenGLFunctions_1_3_DeprecatedBackend (0x0x7f22b74464e0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b71421e0) 0
-
-Class QOpenGLFunctions_1_4_DeprecatedBackend::Functions
- size=304 align=8
- base size=304 base align=8
-QOpenGLFunctions_1_4_DeprecatedBackend::Functions (0x0x7f22b7142540) 0
-
-Class QOpenGLFunctions_1_4_DeprecatedBackend
- size=320 align=8
- base size=320 base align=8
-QOpenGLFunctions_1_4_DeprecatedBackend (0x0x7f22b7446548) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b71424e0) 0
-
-Class QOpenGLFunctions_2_0_DeprecatedBackend::Functions
- size=288 align=8
- base size=288 base align=8
-QOpenGLFunctions_2_0_DeprecatedBackend::Functions (0x0x7f22b7142840) 0
-
-Class QOpenGLFunctions_2_0_DeprecatedBackend
- size=304 align=8
- base size=304 base align=8
-QOpenGLFunctions_2_0_DeprecatedBackend (0x0x7f22b74465b0) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b71427e0) 0
-
-Class QOpenGLFunctions_3_0_DeprecatedBackend::Functions
- size=160 align=8
- base size=160 base align=8
-QOpenGLFunctions_3_0_DeprecatedBackend::Functions (0x0x7f22b7142b40) 0
-
-Class QOpenGLFunctions_3_0_DeprecatedBackend
- size=176 align=8
- base size=176 base align=8
-QOpenGLFunctions_3_0_DeprecatedBackend (0x0x7f22b7446618) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b7142ae0) 0
-
-Class QOpenGLFunctions_3_3_DeprecatedBackend::Functions
- size=240 align=8
- base size=240 base align=8
-QOpenGLFunctions_3_3_DeprecatedBackend::Functions (0x0x7f22b7142e40) 0
-
-Class QOpenGLFunctions_3_3_DeprecatedBackend
- size=256 align=8
- base size=256 base align=8
-QOpenGLFunctions_3_3_DeprecatedBackend (0x0x7f22b7446680) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b7142de0) 0
-
-Class QOpenGLFunctions_4_5_DeprecatedBackend::Functions
- size=96 align=8
- base size=96 base align=8
-QOpenGLFunctions_4_5_DeprecatedBackend::Functions (0x0x7f22b717d180) 0
-
-Class QOpenGLFunctions_4_5_DeprecatedBackend
- size=112 align=8
- base size=112 base align=8
-QOpenGLFunctions_4_5_DeprecatedBackend (0x0x7f22b74466e8) 0
- QOpenGLVersionFunctionsBackend (0x0x7f22b717d120) 0
-
-Class QOpenGLVersionProfile
- size=8 align=8
- base size=8 base align=8
-QOpenGLVersionProfile (0x0x7f22b717d420) 0
-
-Class QOpenGLContextGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLContextGroup::QPrivateSignal (0x0x7f22b717df00) 0 empty
-
-Vtable for QOpenGLContextGroup
-QOpenGLContextGroup::_ZTV19QOpenGLContextGroup: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QOpenGLContextGroup)
-16 (int (*)(...))QOpenGLContextGroup::metaObject
-24 (int (*)(...))QOpenGLContextGroup::qt_metacast
-32 (int (*)(...))QOpenGLContextGroup::qt_metacall
-40 (int (*)(...))QOpenGLContextGroup::~QOpenGLContextGroup
-48 (int (*)(...))QOpenGLContextGroup::~QOpenGLContextGroup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLContextGroup
- size=16 align=8
- base size=16 base align=8
-QOpenGLContextGroup (0x0x7f22b71ac138) 0
- vptr=((& QOpenGLContextGroup::_ZTV19QOpenGLContextGroup) + 16)
- QObject (0x0x7f22b717dea0) 0
- primary-for QOpenGLContextGroup (0x0x7f22b71ac138)
-
-Class QOpenGLContext::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLContext::QPrivateSignal (0x0x7f22b71b9180) 0 empty
-
-Vtable for QOpenGLContext
-QOpenGLContext::_ZTV14QOpenGLContext: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QOpenGLContext)
-16 (int (*)(...))QOpenGLContext::metaObject
-24 (int (*)(...))QOpenGLContext::qt_metacast
-32 (int (*)(...))QOpenGLContext::qt_metacall
-40 (int (*)(...))QOpenGLContext::~QOpenGLContext
-48 (int (*)(...))QOpenGLContext::~QOpenGLContext
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLContext
- size=16 align=8
- base size=16 base align=8
-QOpenGLContext (0x0x7f22b71ac1a0) 0
- vptr=((& QOpenGLContext::_ZTV14QOpenGLContext) + 16)
- QObject (0x0x7f22b71b9120) 0
- primary-for QOpenGLContext (0x0x7f22b71ac1a0)
-
-Class QOpenGLDebugMessage
- size=8 align=8
- base size=8 base align=8
-QOpenGLDebugMessage (0x0x7f22b71b93c0) 0
-
-Class QOpenGLDebugLogger::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLDebugLogger::QPrivateSignal (0x0x7f22b6e70b40) 0 empty
-
-Vtable for QOpenGLDebugLogger
-QOpenGLDebugLogger::_ZTV18QOpenGLDebugLogger: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLDebugLogger)
-16 (int (*)(...))QOpenGLDebugLogger::metaObject
-24 (int (*)(...))QOpenGLDebugLogger::qt_metacast
-32 (int (*)(...))QOpenGLDebugLogger::qt_metacall
-40 (int (*)(...))QOpenGLDebugLogger::~QOpenGLDebugLogger
-48 (int (*)(...))QOpenGLDebugLogger::~QOpenGLDebugLogger
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLDebugLogger
- size=16 align=8
- base size=16 base align=8
-QOpenGLDebugLogger (0x0x7f22b721dbc8) 0
- vptr=((& QOpenGLDebugLogger::_ZTV18QOpenGLDebugLogger) + 16)
- QObject (0x0x7f22b6e70ae0) 0
- primary-for QOpenGLDebugLogger (0x0x7f22b721dbc8)
-
-Class QOpenGLFunctions
- size=8 align=8
- base size=8 base align=8
-QOpenGLFunctions (0x0x7f22b6ec7000) 0
-
-Class QOpenGLFunctionsPrivate::Functions
- size=1152 align=8
- base size=1152 base align=8
-QOpenGLFunctionsPrivate::Functions (0x0x7f22b6ec7960) 0
-
-Class QOpenGLFunctionsPrivate
- size=1152 align=8
- base size=1152 base align=8
-QOpenGLFunctionsPrivate (0x0x7f22b6ec7900) 0
-
-Class QOpenGLExtraFunctions
- size=8 align=8
- base size=8 base align=8
-QOpenGLExtraFunctions (0x0x7f22b721df70) 0
- QOpenGLFunctions (0x0x7f22b7015720) 0
-
-Class QOpenGLExtraFunctionsPrivate::Functions
- size=1728 align=8
- base size=1728 base align=8
-QOpenGLExtraFunctionsPrivate::Functions (0x0x7f22b7015a80) 0
-
-Class QOpenGLExtraFunctionsPrivate
- size=2880 align=8
- base size=2880 base align=8
-QOpenGLExtraFunctionsPrivate (0x0x7f22b6c8b000) 0
- QOpenGLFunctionsPrivate (0x0x7f22b7015a20) 0
-
-Vtable for QOpenGLFramebufferObject
-QOpenGLFramebufferObject::_ZTV24QOpenGLFramebufferObject: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QOpenGLFramebufferObject)
-16 (int (*)(...))QOpenGLFramebufferObject::~QOpenGLFramebufferObject
-24 (int (*)(...))QOpenGLFramebufferObject::~QOpenGLFramebufferObject
-
-Class QOpenGLFramebufferObject
- size=16 align=8
- base size=16 base align=8
-QOpenGLFramebufferObject (0x0x7f22b6df3540) 0
- vptr=((& QOpenGLFramebufferObject::_ZTV24QOpenGLFramebufferObject) + 16)
-
-Class QOpenGLFramebufferObjectFormat
- size=8 align=8
- base size=8 base align=8
-QOpenGLFramebufferObjectFormat (0x0x7f22b6df37e0) 0
-
-Vtable for QOpenGLPaintDevice
-QOpenGLPaintDevice::_ZTV18QOpenGLPaintDevice: 11 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLPaintDevice)
-16 (int (*)(...))QOpenGLPaintDevice::~QOpenGLPaintDevice
-24 (int (*)(...))QOpenGLPaintDevice::~QOpenGLPaintDevice
-32 (int (*)(...))QOpenGLPaintDevice::devType
-40 (int (*)(...))QOpenGLPaintDevice::paintEngine
-48 (int (*)(...))QOpenGLPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))QOpenGLPaintDevice::ensureActiveTarget
-
-Class QOpenGLPaintDevice
- size=32 align=8
- base size=32 base align=8
-QOpenGLPaintDevice (0x0x7f22b6ddbd68) 0
- vptr=((& QOpenGLPaintDevice::_ZTV18QOpenGLPaintDevice) + 16)
- QPaintDevice (0x0x7f22b6df3840) 0
- primary-for QOpenGLPaintDevice (0x0x7f22b6ddbd68)
-
-Class QOpenGLPixelTransferOptions
- size=8 align=8
- base size=8 base align=8
-QOpenGLPixelTransferOptions (0x0x7f22b6df3a80) 0
-
-Class QOpenGLShader::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLShader::QPrivateSignal (0x0x7f22b6a848a0) 0 empty
-
-Vtable for QOpenGLShader
-QOpenGLShader::_ZTV13QOpenGLShader: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QOpenGLShader)
-16 (int (*)(...))QOpenGLShader::metaObject
-24 (int (*)(...))QOpenGLShader::qt_metacast
-32 (int (*)(...))QOpenGLShader::qt_metacall
-40 (int (*)(...))QOpenGLShader::~QOpenGLShader
-48 (int (*)(...))QOpenGLShader::~QOpenGLShader
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLShader
- size=16 align=8
- base size=16 base align=8
-QOpenGLShader (0x0x7f22b6a75ea0) 0
- vptr=((& QOpenGLShader::_ZTV13QOpenGLShader) + 16)
- QObject (0x0x7f22b6a84840) 0
- primary-for QOpenGLShader (0x0x7f22b6a75ea0)
-
-Class QOpenGLShaderProgram::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLShaderProgram::QPrivateSignal (0x0x7f22b6ac11e0) 0 empty
-
-Vtable for QOpenGLShaderProgram
-QOpenGLShaderProgram::_ZTV20QOpenGLShaderProgram: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QOpenGLShaderProgram)
-16 (int (*)(...))QOpenGLShaderProgram::metaObject
-24 (int (*)(...))QOpenGLShaderProgram::qt_metacast
-32 (int (*)(...))QOpenGLShaderProgram::qt_metacall
-40 (int (*)(...))QOpenGLShaderProgram::~QOpenGLShaderProgram
-48 (int (*)(...))QOpenGLShaderProgram::~QOpenGLShaderProgram
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QOpenGLShaderProgram::link
-
-Class QOpenGLShaderProgram
- size=16 align=8
- base size=16 base align=8
-QOpenGLShaderProgram (0x0x7f22b6aca000) 0
- vptr=((& QOpenGLShaderProgram::_ZTV20QOpenGLShaderProgram) + 16)
- QObject (0x0x7f22b6ac1180) 0
- primary-for QOpenGLShaderProgram (0x0x7f22b6aca000)
-
-Class QOpenGLTexture
- size=8 align=8
- base size=8 base align=8
-QOpenGLTexture (0x0x7f22b6ac13c0) 0
-
-Class QOpenGLTextureBlitter
- size=8 align=8
- base size=8 base align=8
-QOpenGLTextureBlitter (0x0x7f22b6b7a8a0) 0
-
-Class QOpenGLTimerQuery::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLTimerQuery::QPrivateSignal (0x0x7f22b6b7aae0) 0 empty
-
-Vtable for QOpenGLTimerQuery
-QOpenGLTimerQuery::_ZTV17QOpenGLTimerQuery: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QOpenGLTimerQuery)
-16 (int (*)(...))QOpenGLTimerQuery::metaObject
-24 (int (*)(...))QOpenGLTimerQuery::qt_metacast
-32 (int (*)(...))QOpenGLTimerQuery::qt_metacall
-40 (int (*)(...))QOpenGLTimerQuery::~QOpenGLTimerQuery
-48 (int (*)(...))QOpenGLTimerQuery::~QOpenGLTimerQuery
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLTimerQuery
- size=16 align=8
- base size=16 base align=8
-QOpenGLTimerQuery (0x0x7f22b6aca138) 0
- vptr=((& QOpenGLTimerQuery::_ZTV17QOpenGLTimerQuery) + 16)
- QObject (0x0x7f22b6b7aa80) 0
- primary-for QOpenGLTimerQuery (0x0x7f22b6aca138)
-
-Class QOpenGLTimeMonitor::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLTimeMonitor::QPrivateSignal (0x0x7f22b6b7ad20) 0 empty
-
-Vtable for QOpenGLTimeMonitor
-QOpenGLTimeMonitor::_ZTV18QOpenGLTimeMonitor: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QOpenGLTimeMonitor)
-16 (int (*)(...))QOpenGLTimeMonitor::metaObject
-24 (int (*)(...))QOpenGLTimeMonitor::qt_metacast
-32 (int (*)(...))QOpenGLTimeMonitor::qt_metacall
-40 (int (*)(...))QOpenGLTimeMonitor::~QOpenGLTimeMonitor
-48 (int (*)(...))QOpenGLTimeMonitor::~QOpenGLTimeMonitor
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLTimeMonitor
- size=16 align=8
- base size=16 base align=8
-QOpenGLTimeMonitor (0x0x7f22b6aca1a0) 0
- vptr=((& QOpenGLTimeMonitor::_ZTV18QOpenGLTimeMonitor) + 16)
- QObject (0x0x7f22b6b7acc0) 0
- primary-for QOpenGLTimeMonitor (0x0x7f22b6aca1a0)
-
-Class QOpenGLVertexArrayObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLVertexArrayObject::QPrivateSignal (0x0x7f22b6b7af60) 0 empty
-
-Class QOpenGLVertexArrayObject::Binder
- size=8 align=8
- base size=8 base align=8
-QOpenGLVertexArrayObject::Binder (0x0x7f22b6bdb000) 0
-
-Vtable for QOpenGLVertexArrayObject
-QOpenGLVertexArrayObject::_ZTV24QOpenGLVertexArrayObject: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QOpenGLVertexArrayObject)
-16 (int (*)(...))QOpenGLVertexArrayObject::metaObject
-24 (int (*)(...))QOpenGLVertexArrayObject::qt_metacast
-32 (int (*)(...))QOpenGLVertexArrayObject::qt_metacall
-40 (int (*)(...))QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject
-48 (int (*)(...))QOpenGLVertexArrayObject::~QOpenGLVertexArrayObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QOpenGLVertexArrayObject
- size=16 align=8
- base size=16 base align=8
-QOpenGLVertexArrayObject (0x0x7f22b6aca208) 0
- vptr=((& QOpenGLVertexArrayObject::_ZTV24QOpenGLVertexArrayObject) + 16)
- QObject (0x0x7f22b6b7af00) 0
- primary-for QOpenGLVertexArrayObject (0x0x7f22b6aca208)
-
-Class QPaintDeviceWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPaintDeviceWindow::QPrivateSignal (0x0x7f22b6bdb6c0) 0 empty
-
-Vtable for QPaintDeviceWindow
-QPaintDeviceWindow::_ZTV18QPaintDeviceWindow: 58 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-16 (int (*)(...))QPaintDeviceWindow::metaObject
-24 (int (*)(...))QPaintDeviceWindow::qt_metacast
-32 (int (*)(...))QPaintDeviceWindow::qt_metacall
-40 (int (*)(...))QPaintDeviceWindow::~QPaintDeviceWindow
-48 (int (*)(...))QPaintDeviceWindow::~QPaintDeviceWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QPaintDeviceWindow::paintEvent
-304 (int (*)(...))QPaintDeviceWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))-16
-328 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-336 (int (*)(...))QPaintDeviceWindow::_ZThn16_N18QPaintDeviceWindowD1Ev
-344 (int (*)(...))QPaintDeviceWindow::_ZThn16_N18QPaintDeviceWindowD0Ev
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-360 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-368 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-376 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-384 (int (*)(...))-40
-392 (int (*)(...))(& _ZTI18QPaintDeviceWindow)
-400 (int (*)(...))QPaintDeviceWindow::_ZThn40_N18QPaintDeviceWindowD1Ev
-408 (int (*)(...))QPaintDeviceWindow::_ZThn40_N18QPaintDeviceWindowD0Ev
-416 (int (*)(...))QPaintDevice::devType
-424 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-432 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-440 (int (*)(...))QPaintDevice::initPainter
-448 (int (*)(...))QPaintDevice::redirected
-456 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QPaintDeviceWindow
- size=64 align=8
- base size=64 base align=8
-QPaintDeviceWindow (0x0x7f22b6b93e70) 0
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 16)
- QWindow (0x0x7f22b6b93ee0) 0
- primary-for QPaintDeviceWindow (0x0x7f22b6b93e70)
- QObject (0x0x7f22b6bdb5a0) 0
- primary-for QWindow (0x0x7f22b6b93ee0)
- QSurface (0x0x7f22b6bdb600) 16
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 336)
- QPaintDevice (0x0x7f22b6bdb660) 40
- vptr=((& QPaintDeviceWindow::_ZTV18QPaintDeviceWindow) + 400)
-
-Class QOpenGLWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QOpenGLWindow::QPrivateSignal (0x0x7f22b6bdb9c0) 0 empty
-
-Vtable for QOpenGLWindow
-QOpenGLWindow::_ZTV13QOpenGLWindow: 64 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QOpenGLWindow)
-16 (int (*)(...))QOpenGLWindow::metaObject
-24 (int (*)(...))QOpenGLWindow::qt_metacast
-32 (int (*)(...))QOpenGLWindow::qt_metacall
-40 (int (*)(...))QOpenGLWindow::~QOpenGLWindow
-48 (int (*)(...))QOpenGLWindow::~QOpenGLWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QOpenGLWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QOpenGLWindow::paintEvent
-304 (int (*)(...))QOpenGLWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))QOpenGLWindow::initializeGL
-328 (int (*)(...))QOpenGLWindow::resizeGL
-336 (int (*)(...))QOpenGLWindow::paintGL
-344 (int (*)(...))QOpenGLWindow::paintUnderGL
-352 (int (*)(...))QOpenGLWindow::paintOverGL
-360 (int (*)(...))QOpenGLWindow::redirected
-368 (int (*)(...))-16
-376 (int (*)(...))(& _ZTI13QOpenGLWindow)
-384 (int (*)(...))QOpenGLWindow::_ZThn16_N13QOpenGLWindowD1Ev
-392 (int (*)(...))QOpenGLWindow::_ZThn16_N13QOpenGLWindowD0Ev
-400 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-408 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-416 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-424 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-432 (int (*)(...))-40
-440 (int (*)(...))(& _ZTI13QOpenGLWindow)
-448 (int (*)(...))QOpenGLWindow::_ZThn40_N13QOpenGLWindowD1Ev
-456 (int (*)(...))QOpenGLWindow::_ZThn40_N13QOpenGLWindowD0Ev
-464 (int (*)(...))QPaintDevice::devType
-472 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-480 (int (*)(...))QOpenGLWindow::_ZThn40_NK13QOpenGLWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-488 (int (*)(...))QPaintDevice::initPainter
-496 (int (*)(...))QOpenGLWindow::_ZThn40_NK13QOpenGLWindow10redirectedEP6QPoint
-504 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QOpenGLWindow
- size=64 align=8
- base size=64 base align=8
-QOpenGLWindow (0x0x7f22b6aca2d8) 0
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 16)
- QPaintDeviceWindow (0x0x7f22b6bfd0e0) 0
- primary-for QOpenGLWindow (0x0x7f22b6aca2d8)
- QWindow (0x0x7f22b6bfd150) 0
- primary-for QPaintDeviceWindow (0x0x7f22b6bfd0e0)
- QObject (0x0x7f22b6bdb8a0) 0
- primary-for QWindow (0x0x7f22b6bfd150)
- QSurface (0x0x7f22b6bdb900) 16
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 384)
- QPaintDevice (0x0x7f22b6bdb960) 40
- vptr=((& QOpenGLWindow::_ZTV13QOpenGLWindow) + 448)
-
-Class QPageSize
- size=8 align=8
- base size=8 base align=8
-QPageSize (0x0x7f22b6bdbba0) 0
-
-Class QPageLayout
- size=8 align=8
- base size=8 base align=8
-QPageLayout (0x0x7f22b6882600) 0
-
-Class QPagedPaintDevice::Margins
- size=32 align=8
- base size=32 base align=8
-QPagedPaintDevice::Margins (0x0x7f22b6916180) 0
-
-Vtable for QPagedPaintDevice
-QPagedPaintDevice::_ZTV17QPagedPaintDevice: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QPagedPaintDevice)
-16 0
-24 0
-32 (int (*)(...))QPaintDevice::devType
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QPaintDevice::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))QPagedPaintDevice::setPageSize
-96 (int (*)(...))QPagedPaintDevice::setPageSizeMM
-104 (int (*)(...))QPagedPaintDevice::setMargins
-
-Class QPagedPaintDevice
- size=32 align=8
- base size=32 base align=8
-QPagedPaintDevice (0x0x7f22b68fe270) 0
- vptr=((& QPagedPaintDevice::_ZTV17QPagedPaintDevice) + 16)
- QPaintDevice (0x0x7f22b6916120) 0
- primary-for QPagedPaintDevice (0x0x7f22b68fe270)
-
-Class QPainter::PixmapFragment
- size=80 align=8
- base size=80 base align=8
-QPainter::PixmapFragment (0x0x7f22b6916240) 0
-
-Class QPainter
- size=8 align=8
- base size=8 base align=8
-QPainter (0x0x7f22b69161e0) 0
-
-Class QTextItem
- size=1 align=1
- base size=0 base align=1
-QTextItem (0x0x7f22b67385a0) 0 empty
-
-Vtable for QPaintEngine
-QPaintEngine::_ZTV12QPaintEngine: 24 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QPaintEngine)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))QPaintEngine::drawRects
-64 (int (*)(...))QPaintEngine::drawRects
-72 (int (*)(...))QPaintEngine::drawLines
-80 (int (*)(...))QPaintEngine::drawLines
-88 (int (*)(...))QPaintEngine::drawEllipse
-96 (int (*)(...))QPaintEngine::drawEllipse
-104 (int (*)(...))QPaintEngine::drawPath
-112 (int (*)(...))QPaintEngine::drawPoints
-120 (int (*)(...))QPaintEngine::drawPoints
-128 (int (*)(...))QPaintEngine::drawPolygon
-136 (int (*)(...))QPaintEngine::drawPolygon
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))QPaintEngine::drawTextItem
-160 (int (*)(...))QPaintEngine::drawTiledPixmap
-168 (int (*)(...))QPaintEngine::drawImage
-176 (int (*)(...))QPaintEngine::coordinateOffset
-184 (int (*)(...))__cxa_pure_virtual
-
-Class QPaintEngine
- size=32 align=8
- base size=32 base align=8
-QPaintEngine (0x0x7f22b677f4e0) 0
- vptr=((& QPaintEngine::_ZTV12QPaintEngine) + 16)
-
-Class QPaintEngineState
- size=4 align=4
- base size=4 base align=4
-QPaintEngineState (0x0x7f22b677fcc0) 0
-
-Class QPdfWriter::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPdfWriter::QPrivateSignal (0x0x7f22b6837480) 0 empty
-
-Vtable for QPdfWriter
-QPdfWriter::_ZTV10QPdfWriter: 34 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QPdfWriter)
-16 (int (*)(...))QPdfWriter::metaObject
-24 (int (*)(...))QPdfWriter::qt_metacast
-32 (int (*)(...))QPdfWriter::qt_metacall
-40 (int (*)(...))QPdfWriter::~QPdfWriter
-48 (int (*)(...))QPdfWriter::~QPdfWriter
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPdfWriter::newPage
-120 (int (*)(...))QPdfWriter::setPageSize
-128 (int (*)(...))QPdfWriter::setPageSizeMM
-136 (int (*)(...))QPdfWriter::setMargins
-144 (int (*)(...))QPdfWriter::paintEngine
-152 (int (*)(...))QPdfWriter::metric
-160 (int (*)(...))-16
-168 (int (*)(...))(& _ZTI10QPdfWriter)
-176 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriterD1Ev
-184 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriterD0Ev
-192 (int (*)(...))QPaintDevice::devType
-200 (int (*)(...))QPdfWriter::_ZThn16_NK10QPdfWriter11paintEngineEv
-208 (int (*)(...))QPdfWriter::_ZThn16_NK10QPdfWriter6metricEN12QPaintDevice17PaintDeviceMetricE
-216 (int (*)(...))QPaintDevice::initPainter
-224 (int (*)(...))QPaintDevice::redirected
-232 (int (*)(...))QPaintDevice::sharedPainter
-240 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter7newPageEv
-248 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter11setPageSizeEN17QPagedPaintDevice8PageSizeE
-256 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter13setPageSizeMMERK6QSizeF
-264 (int (*)(...))QPdfWriter::_ZThn16_N10QPdfWriter10setMarginsERKN17QPagedPaintDevice7MarginsE
-
-Class QPdfWriter
- size=48 align=8
- base size=48 base align=8
-QPdfWriter (0x0x7f22b683b1c0) 0
- vptr=((& QPdfWriter::_ZTV10QPdfWriter) + 16)
- QObject (0x0x7f22b68373c0) 0
- primary-for QPdfWriter (0x0x7f22b683b1c0)
- QPagedPaintDevice (0x0x7f22b6781618) 16
- vptr=((& QPdfWriter::_ZTV10QPdfWriter) + 176)
- QPaintDevice (0x0x7f22b6837420) 16
- primary-for QPagedPaintDevice (0x0x7f22b6781618)
-
-Vtable for QPicture
-QPicture::_ZTV8QPicture: 11 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI8QPicture)
-16 (int (*)(...))QPicture::~QPicture
-24 (int (*)(...))QPicture::~QPicture
-32 (int (*)(...))QPicture::devType
-40 (int (*)(...))QPicture::paintEngine
-48 (int (*)(...))QPicture::metric
-56 (int (*)(...))QPaintDevice::initPainter
-64 (int (*)(...))QPaintDevice::redirected
-72 (int (*)(...))QPaintDevice::sharedPainter
-80 (int (*)(...))QPicture::setData
-
-Class QPicture
- size=32 align=8
- base size=32 base align=8
-QPicture (0x0x7f22b6781680) 0
- vptr=((& QPicture::_ZTV8QPicture) + 16)
- QPaintDevice (0x0x7f22b6837780) 0
- primary-for QPicture (0x0x7f22b6781680)
-
-Class QPictureIO
- size=8 align=8
- base size=8 base align=8
-QPictureIO (0x0x7f22b64a1a20) 0
-
-Class QPictureFormatPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QPictureFormatPlugin::QPrivateSignal (0x0x7f22b64a1ae0) 0 empty
-
-Vtable for QPictureFormatPlugin
-QPictureFormatPlugin::_ZTV20QPictureFormatPlugin: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QPictureFormatPlugin)
-16 (int (*)(...))QPictureFormatPlugin::metaObject
-24 (int (*)(...))QPictureFormatPlugin::qt_metacast
-32 (int (*)(...))QPictureFormatPlugin::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QPictureFormatPlugin::loadPicture
-120 (int (*)(...))QPictureFormatPlugin::savePicture
-128 (int (*)(...))__cxa_pure_virtual
-
-Class QPictureFormatPlugin
- size=16 align=8
- base size=16 base align=8
-QPictureFormatPlugin (0x0x7f22b64a7820) 0
- vptr=((& QPictureFormatPlugin::_ZTV20QPictureFormatPlugin) + 16)
- QObject (0x0x7f22b64a1a80) 0
- primary-for QPictureFormatPlugin (0x0x7f22b64a7820)
-
-Class QPixmapCache::Key
- size=8 align=8
- base size=8 base align=8
-QPixmapCache::Key (0x0x7f22b64a1c60) 0
-
-Class QPixmapCache
- size=1 align=1
- base size=0 base align=1
-QPixmapCache (0x0x7f22b64a1c00) 0 empty
-
-Class QRasterWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRasterWindow::QPrivateSignal (0x0x7f22b657c420) 0 empty
-
-Vtable for QRasterWindow
-QRasterWindow::_ZTV13QRasterWindow: 59 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QRasterWindow)
-16 (int (*)(...))QRasterWindow::metaObject
-24 (int (*)(...))QRasterWindow::qt_metacast
-32 (int (*)(...))QRasterWindow::qt_metacall
-40 (int (*)(...))QRasterWindow::~QRasterWindow
-48 (int (*)(...))QRasterWindow::~QRasterWindow
-56 (int (*)(...))QPaintDeviceWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QWindow::accessibleRoot
-144 (int (*)(...))QWindow::focusObject
-152 (int (*)(...))QPaintDeviceWindow::exposeEvent
-160 (int (*)(...))QWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QWindow::focusInEvent
-184 (int (*)(...))QWindow::focusOutEvent
-192 (int (*)(...))QWindow::showEvent
-200 (int (*)(...))QWindow::hideEvent
-208 (int (*)(...))QWindow::keyPressEvent
-216 (int (*)(...))QWindow::keyReleaseEvent
-224 (int (*)(...))QWindow::mousePressEvent
-232 (int (*)(...))QWindow::mouseReleaseEvent
-240 (int (*)(...))QWindow::mouseDoubleClickEvent
-248 (int (*)(...))QWindow::mouseMoveEvent
-256 (int (*)(...))QWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))QPaintDeviceWindow::paintEvent
-304 (int (*)(...))QRasterWindow::metric
-312 (int (*)(...))QPaintDeviceWindow::paintEngine
-320 (int (*)(...))QRasterWindow::redirected
-328 (int (*)(...))-16
-336 (int (*)(...))(& _ZTI13QRasterWindow)
-344 (int (*)(...))QRasterWindow::_ZThn16_N13QRasterWindowD1Ev
-352 (int (*)(...))QRasterWindow::_ZThn16_N13QRasterWindowD0Ev
-360 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-368 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-376 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-384 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-392 (int (*)(...))-40
-400 (int (*)(...))(& _ZTI13QRasterWindow)
-408 (int (*)(...))QRasterWindow::_ZThn40_N13QRasterWindowD1Ev
-416 (int (*)(...))QRasterWindow::_ZThn40_N13QRasterWindowD0Ev
-424 (int (*)(...))QPaintDevice::devType
-432 (int (*)(...))QPaintDeviceWindow::_ZThn40_NK18QPaintDeviceWindow11paintEngineEv
-440 (int (*)(...))QRasterWindow::_ZThn40_NK13QRasterWindow6metricEN12QPaintDevice17PaintDeviceMetricE
-448 (int (*)(...))QPaintDevice::initPainter
-456 (int (*)(...))QRasterWindow::_ZThn40_NK13QRasterWindow10redirectedEP6QPoint
-464 (int (*)(...))QPaintDevice::sharedPainter
-
-Class QRasterWindow
- size=64 align=8
- base size=64 base align=8
-QRasterWindow (0x0x7f22b6577478) 0
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 16)
- QPaintDeviceWindow (0x0x7f22b6585000) 0
- primary-for QRasterWindow (0x0x7f22b6577478)
- QWindow (0x0x7f22b6585070) 0
- primary-for QPaintDeviceWindow (0x0x7f22b6585000)
- QObject (0x0x7f22b657c300) 0
- primary-for QWindow (0x0x7f22b6585070)
- QSurface (0x0x7f22b657c360) 16
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 344)
- QPaintDevice (0x0x7f22b657c3c0) 40
- vptr=((& QRasterWindow::_ZTV13QRasterWindow) + 408)
-
-Class QScreen::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QScreen::QPrivateSignal (0x0x7f22b657c660) 0 empty
-
-Vtable for QScreen
-QScreen::_ZTV7QScreen: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QScreen)
-16 (int (*)(...))QScreen::metaObject
-24 (int (*)(...))QScreen::qt_metacast
-32 (int (*)(...))QScreen::qt_metacall
-40 (int (*)(...))QScreen::~QScreen
-48 (int (*)(...))QScreen::~QScreen
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QScreen
- size=16 align=8
- base size=16 base align=8
-QScreen (0x0x7f22b6577548) 0
- vptr=((& QScreen::_ZTV7QScreen) + 16)
- QObject (0x0x7f22b657c600) 0
- primary-for QScreen (0x0x7f22b6577548)
-
-Class QSessionManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSessionManager::QPrivateSignal (0x0x7f22b657c8a0) 0 empty
-
-Vtable for QSessionManager
-QSessionManager::_ZTV15QSessionManager: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSessionManager)
-16 (int (*)(...))QSessionManager::metaObject
-24 (int (*)(...))QSessionManager::qt_metacast
-32 (int (*)(...))QSessionManager::qt_metacall
-40 (int (*)(...))QSessionManager::~QSessionManager
-48 (int (*)(...))QSessionManager::~QSessionManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSessionManager
- size=16 align=8
- base size=16 base align=8
-QSessionManager (0x0x7f22b65775b0) 0
- vptr=((& QSessionManager::_ZTV15QSessionManager) + 16)
- QObject (0x0x7f22b657c840) 0
- primary-for QSessionManager (0x0x7f22b65775b0)
-
-Vtable for QStandardItem
-QStandardItem::_ZTV13QStandardItem: 11 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QStandardItem)
-16 (int (*)(...))QStandardItem::~QStandardItem
-24 (int (*)(...))QStandardItem::~QStandardItem
-32 (int (*)(...))QStandardItem::data
-40 (int (*)(...))QStandardItem::setData
-48 (int (*)(...))QStandardItem::clone
-56 (int (*)(...))QStandardItem::type
-64 (int (*)(...))QStandardItem::read
-72 (int (*)(...))QStandardItem::write
-80 (int (*)(...))QStandardItem::operator<
-
-Class QStandardItem
- size=16 align=8
- base size=16 base align=8
-QStandardItem (0x0x7f22b657ca80) 0
- vptr=((& QStandardItem::_ZTV13QStandardItem) + 16)
-
-Class QStandardItemModel::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStandardItemModel::QPrivateSignal (0x0x7f22b6276240) 0 empty
-
-Vtable for QStandardItemModel
-QStandardItemModel::_ZTV18QStandardItemModel: 48 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QStandardItemModel)
-16 (int (*)(...))QStandardItemModel::metaObject
-24 (int (*)(...))QStandardItemModel::qt_metacast
-32 (int (*)(...))QStandardItemModel::qt_metacall
-40 (int (*)(...))QStandardItemModel::~QStandardItemModel
-48 (int (*)(...))QStandardItemModel::~QStandardItemModel
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QStandardItemModel::index
-120 (int (*)(...))QStandardItemModel::parent
-128 (int (*)(...))QStandardItemModel::sibling
-136 (int (*)(...))QStandardItemModel::rowCount
-144 (int (*)(...))QStandardItemModel::columnCount
-152 (int (*)(...))QStandardItemModel::hasChildren
-160 (int (*)(...))QStandardItemModel::data
-168 (int (*)(...))QStandardItemModel::setData
-176 (int (*)(...))QStandardItemModel::headerData
-184 (int (*)(...))QStandardItemModel::setHeaderData
-192 (int (*)(...))QStandardItemModel::itemData
-200 (int (*)(...))QStandardItemModel::setItemData
-208 (int (*)(...))QStandardItemModel::mimeTypes
-216 (int (*)(...))QStandardItemModel::mimeData
-224 (int (*)(...))QAbstractItemModel::canDropMimeData
-232 (int (*)(...))QStandardItemModel::dropMimeData
-240 (int (*)(...))QStandardItemModel::supportedDropActions
-248 (int (*)(...))QAbstractItemModel::supportedDragActions
-256 (int (*)(...))QStandardItemModel::insertRows
-264 (int (*)(...))QStandardItemModel::insertColumns
-272 (int (*)(...))QStandardItemModel::removeRows
-280 (int (*)(...))QStandardItemModel::removeColumns
-288 (int (*)(...))QAbstractItemModel::moveRows
-296 (int (*)(...))QAbstractItemModel::moveColumns
-304 (int (*)(...))QAbstractItemModel::fetchMore
-312 (int (*)(...))QAbstractItemModel::canFetchMore
-320 (int (*)(...))QStandardItemModel::flags
-328 (int (*)(...))QStandardItemModel::sort
-336 (int (*)(...))QAbstractItemModel::buddy
-344 (int (*)(...))QAbstractItemModel::match
-352 (int (*)(...))QAbstractItemModel::span
-360 (int (*)(...))QAbstractItemModel::roleNames
-368 (int (*)(...))QAbstractItemModel::submit
-376 (int (*)(...))QAbstractItemModel::revert
-
-Class QStandardItemModel
- size=16 align=8
- base size=16 base align=8
-QStandardItemModel (0x0x7f22b6577b60) 0
- vptr=((& QStandardItemModel::_ZTV18QStandardItemModel) + 16)
- QAbstractItemModel (0x0x7f22b6577bc8) 0
- primary-for QStandardItemModel (0x0x7f22b6577b60)
- QObject (0x0x7f22b62761e0) 0
- primary-for QAbstractItemModel (0x0x7f22b6577bc8)
-
-Class QStaticText
- size=8 align=8
- base size=8 base align=8
-QStaticText (0x0x7f22b6276600) 0
-
-Class QStyleHints::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QStyleHints::QPrivateSignal (0x0x7f22b62f99c0) 0 empty
-
-Vtable for QStyleHints
-QStyleHints::_ZTV11QStyleHints: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QStyleHints)
-16 (int (*)(...))QStyleHints::metaObject
-24 (int (*)(...))QStyleHints::qt_metacast
-32 (int (*)(...))QStyleHints::qt_metacall
-40 (int (*)(...))QStyleHints::~QStyleHints
-48 (int (*)(...))QStyleHints::~QStyleHints
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QStyleHints
- size=16 align=8
- base size=16 base align=8
-QStyleHints (0x0x7f22b62edf08) 0
- vptr=((& QStyleHints::_ZTV11QStyleHints) + 16)
- QObject (0x0x7f22b62f9960) 0
- primary-for QStyleHints (0x0x7f22b62edf08)
-
-Class QTextObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextObject::QPrivateSignal (0x0x7f22b62f9c00) 0 empty
-
-Vtable for QTextObject
-QTextObject::_ZTV11QTextObject: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QTextObject)
-16 (int (*)(...))QTextObject::metaObject
-24 (int (*)(...))QTextObject::qt_metacast
-32 (int (*)(...))QTextObject::qt_metacall
-40 (int (*)(...))QTextObject::~QTextObject
-48 (int (*)(...))QTextObject::~QTextObject
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextObject
- size=16 align=8
- base size=16 base align=8
-QTextObject (0x0x7f22b62edf70) 0
- vptr=((& QTextObject::_ZTV11QTextObject) + 16)
- QObject (0x0x7f22b62f9ba0) 0
- primary-for QTextObject (0x0x7f22b62edf70)
-
-Class QTextBlockGroup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextBlockGroup::QPrivateSignal (0x0x7f22b62f9e40) 0 empty
-
-Vtable for QTextBlockGroup
-QTextBlockGroup::_ZTV15QTextBlockGroup: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QTextBlockGroup)
-16 (int (*)(...))QTextBlockGroup::metaObject
-24 (int (*)(...))QTextBlockGroup::qt_metacast
-32 (int (*)(...))QTextBlockGroup::qt_metacall
-40 (int (*)(...))QTextBlockGroup::~QTextBlockGroup
-48 (int (*)(...))QTextBlockGroup::~QTextBlockGroup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextBlockGroup::blockInserted
-120 (int (*)(...))QTextBlockGroup::blockRemoved
-128 (int (*)(...))QTextBlockGroup::blockFormatChanged
-
-Class QTextBlockGroup
- size=16 align=8
- base size=16 base align=8
-QTextBlockGroup (0x0x7f22b6328000) 0
- vptr=((& QTextBlockGroup::_ZTV15QTextBlockGroup) + 16)
- QTextObject (0x0x7f22b6328068) 0
- primary-for QTextBlockGroup (0x0x7f22b6328000)
- QObject (0x0x7f22b62f9de0) 0
- primary-for QTextObject (0x0x7f22b6328068)
-
-Vtable for QTextFrameLayoutData
-QTextFrameLayoutData::_ZTV20QTextFrameLayoutData: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QTextFrameLayoutData)
-16 (int (*)(...))QTextFrameLayoutData::~QTextFrameLayoutData
-24 (int (*)(...))QTextFrameLayoutData::~QTextFrameLayoutData
-
-Class QTextFrameLayoutData
- size=8 align=8
- base size=8 base align=8
-QTextFrameLayoutData (0x0x7f22b6337060) 0 nearly-empty
- vptr=((& QTextFrameLayoutData::_ZTV20QTextFrameLayoutData) + 16)
-
-Class QTextFrame::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextFrame::QPrivateSignal (0x0x7f22b6337120) 0 empty
-
-Class QTextFrame::iterator
- size=32 align=8
- base size=28 base align=8
-QTextFrame::iterator (0x0x7f22b6337180) 0
-
-Vtable for QTextFrame
-QTextFrame::_ZTV10QTextFrame: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextFrame)
-16 (int (*)(...))QTextFrame::metaObject
-24 (int (*)(...))QTextFrame::qt_metacast
-32 (int (*)(...))QTextFrame::qt_metacall
-40 (int (*)(...))QTextFrame::~QTextFrame
-48 (int (*)(...))QTextFrame::~QTextFrame
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextFrame
- size=16 align=8
- base size=16 base align=8
-QTextFrame (0x0x7f22b63280d0) 0
- vptr=((& QTextFrame::_ZTV10QTextFrame) + 16)
- QTextObject (0x0x7f22b6328138) 0
- primary-for QTextFrame (0x0x7f22b63280d0)
- QObject (0x0x7f22b63370c0) 0
- primary-for QTextObject (0x0x7f22b6328138)
-
-Vtable for QTextBlockUserData
-QTextBlockUserData::_ZTV18QTextBlockUserData: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QTextBlockUserData)
-16 (int (*)(...))QTextBlockUserData::~QTextBlockUserData
-24 (int (*)(...))QTextBlockUserData::~QTextBlockUserData
-
-Class QTextBlockUserData
- size=8 align=8
- base size=8 base align=8
-QTextBlockUserData (0x0x7f22b6391ae0) 0 nearly-empty
- vptr=((& QTextBlockUserData::_ZTV18QTextBlockUserData) + 16)
-
-Class QTextBlock::iterator
- size=24 align=8
- base size=20 base align=8
-QTextBlock::iterator (0x0x7f22b6391ba0) 0
-
-Class QTextBlock
- size=16 align=8
- base size=12 base align=8
-QTextBlock (0x0x7f22b6391b40) 0
-
-Class QTextFragment
- size=16 align=8
- base size=16 base align=8
-QTextFragment (0x0x7f22b64378a0) 0
-
-Class QSyntaxHighlighter::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSyntaxHighlighter::QPrivateSignal (0x0x7f22b60910c0) 0 empty
-
-Vtable for QSyntaxHighlighter
-QSyntaxHighlighter::_ZTV18QSyntaxHighlighter: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSyntaxHighlighter)
-16 (int (*)(...))QSyntaxHighlighter::metaObject
-24 (int (*)(...))QSyntaxHighlighter::qt_metacast
-32 (int (*)(...))QSyntaxHighlighter::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QSyntaxHighlighter
- size=16 align=8
- base size=16 base align=8
-QSyntaxHighlighter (0x0x7f22b608c3a8) 0
- vptr=((& QSyntaxHighlighter::_ZTV18QSyntaxHighlighter) + 16)
- QObject (0x0x7f22b6091060) 0
- primary-for QSyntaxHighlighter (0x0x7f22b608c3a8)
-
-Class QTextDocumentFragment
- size=8 align=8
- base size=8 base align=8
-QTextDocumentFragment (0x0x7f22b60912a0) 0
-
-Class QTextDocumentWriter
- size=8 align=8
- base size=8 base align=8
-QTextDocumentWriter (0x0x7f22b6091300) 0
-
-Class QTextList::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextList::QPrivateSignal (0x0x7f22b60913c0) 0 empty
-
-Vtable for QTextList
-QTextList::_ZTV9QTextList: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QTextList)
-16 (int (*)(...))QTextList::metaObject
-24 (int (*)(...))QTextList::qt_metacast
-32 (int (*)(...))QTextList::qt_metacall
-40 (int (*)(...))QTextList::~QTextList
-48 (int (*)(...))QTextList::~QTextList
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTextBlockGroup::blockInserted
-120 (int (*)(...))QTextBlockGroup::blockRemoved
-128 (int (*)(...))QTextBlockGroup::blockFormatChanged
-
-Class QTextList
- size=16 align=8
- base size=16 base align=8
-QTextList (0x0x7f22b608c410) 0
- vptr=((& QTextList::_ZTV9QTextList) + 16)
- QTextBlockGroup (0x0x7f22b608c478) 0
- primary-for QTextList (0x0x7f22b608c410)
- QTextObject (0x0x7f22b608c4e0) 0
- primary-for QTextBlockGroup (0x0x7f22b608c478)
- QObject (0x0x7f22b6091360) 0
- primary-for QTextObject (0x0x7f22b608c4e0)
-
-Class QTextTableCell
- size=16 align=8
- base size=12 base align=8
-QTextTableCell (0x0x7f22b60919c0) 0
-
-Class QTextTable::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTextTable::QPrivateSignal (0x0x7f22b60d2240) 0 empty
-
-Vtable for QTextTable
-QTextTable::_ZTV10QTextTable: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTextTable)
-16 (int (*)(...))QTextTable::metaObject
-24 (int (*)(...))QTextTable::qt_metacast
-32 (int (*)(...))QTextTable::qt_metacall
-40 (int (*)(...))QTextTable::~QTextTable
-48 (int (*)(...))QTextTable::~QTextTable
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QTextTable
- size=16 align=8
- base size=16 base align=8
-QTextTable (0x0x7f22b608c548) 0
- vptr=((& QTextTable::_ZTV10QTextTable) + 16)
- QTextFrame (0x0x7f22b608c5b0) 0
- primary-for QTextTable (0x0x7f22b608c548)
- QTextObject (0x0x7f22b608c618) 0
- primary-for QTextFrame (0x0x7f22b608c5b0)
- QObject (0x0x7f22b60d21e0) 0
- primary-for QTextObject (0x0x7f22b608c618)
-
-Class QValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QValidator::QPrivateSignal (0x0x7f22b60d27e0) 0 empty
-
-Vtable for QValidator
-QValidator::_ZTV10QValidator: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QValidator)
-16 (int (*)(...))QValidator::metaObject
-24 (int (*)(...))QValidator::qt_metacast
-32 (int (*)(...))QValidator::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QValidator::fixup
-
-Class QValidator
- size=16 align=8
- base size=16 base align=8
-QValidator (0x0x7f22b608c680) 0
- vptr=((& QValidator::_ZTV10QValidator) + 16)
- QObject (0x0x7f22b60d2780) 0
- primary-for QValidator (0x0x7f22b608c680)
-
-Class QIntValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QIntValidator::QPrivateSignal (0x0x7f22b60d2a20) 0 empty
-
-Vtable for QIntValidator
-QIntValidator::_ZTV13QIntValidator: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QIntValidator)
-16 (int (*)(...))QIntValidator::metaObject
-24 (int (*)(...))QIntValidator::qt_metacast
-32 (int (*)(...))QIntValidator::qt_metacall
-40 (int (*)(...))QIntValidator::~QIntValidator
-48 (int (*)(...))QIntValidator::~QIntValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QIntValidator::validate
-120 (int (*)(...))QIntValidator::fixup
-128 (int (*)(...))QIntValidator::setRange
-
-Class QIntValidator
- size=24 align=8
- base size=24 base align=8
-QIntValidator (0x0x7f22b608c6e8) 0
- vptr=((& QIntValidator::_ZTV13QIntValidator) + 16)
- QValidator (0x0x7f22b608c750) 0
- primary-for QIntValidator (0x0x7f22b608c6e8)
- QObject (0x0x7f22b60d29c0) 0
- primary-for QValidator (0x0x7f22b608c750)
-
-Class QDoubleValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDoubleValidator::QPrivateSignal (0x0x7f22b60d2c60) 0 empty
-
-Vtable for QDoubleValidator
-QDoubleValidator::_ZTV16QDoubleValidator: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QDoubleValidator)
-16 (int (*)(...))QDoubleValidator::metaObject
-24 (int (*)(...))QDoubleValidator::qt_metacast
-32 (int (*)(...))QDoubleValidator::qt_metacall
-40 (int (*)(...))QDoubleValidator::~QDoubleValidator
-48 (int (*)(...))QDoubleValidator::~QDoubleValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QDoubleValidator::validate
-120 (int (*)(...))QValidator::fixup
-128 (int (*)(...))QDoubleValidator::setRange
-
-Class QDoubleValidator
- size=40 align=8
- base size=36 base align=8
-QDoubleValidator (0x0x7f22b608c7b8) 0
- vptr=((& QDoubleValidator::_ZTV16QDoubleValidator) + 16)
- QValidator (0x0x7f22b608c820) 0
- primary-for QDoubleValidator (0x0x7f22b608c7b8)
- QObject (0x0x7f22b60d2c00) 0
- primary-for QValidator (0x0x7f22b608c820)
-
-Class QRegExpValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRegExpValidator::QPrivateSignal (0x0x7f22b611b120) 0 empty
-
-Vtable for QRegExpValidator
-QRegExpValidator::_ZTV16QRegExpValidator: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QRegExpValidator)
-16 (int (*)(...))QRegExpValidator::metaObject
-24 (int (*)(...))QRegExpValidator::qt_metacast
-32 (int (*)(...))QRegExpValidator::qt_metacall
-40 (int (*)(...))QRegExpValidator::~QRegExpValidator
-48 (int (*)(...))QRegExpValidator::~QRegExpValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QRegExpValidator::validate
-120 (int (*)(...))QValidator::fixup
-
-Class QRegExpValidator
- size=24 align=8
- base size=24 base align=8
-QRegExpValidator (0x0x7f22b608c888) 0
- vptr=((& QRegExpValidator::_ZTV16QRegExpValidator) + 16)
- QValidator (0x0x7f22b608c8f0) 0
- primary-for QRegExpValidator (0x0x7f22b608c888)
- QObject (0x0x7f22b611b0c0) 0
- primary-for QValidator (0x0x7f22b608c8f0)
-
-Class QRegularExpressionValidator::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QRegularExpressionValidator::QPrivateSignal (0x0x7f22b611b300) 0 empty
-
-Vtable for QRegularExpressionValidator
-QRegularExpressionValidator::_ZTV27QRegularExpressionValidator: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QRegularExpressionValidator)
-16 (int (*)(...))QRegularExpressionValidator::metaObject
-24 (int (*)(...))QRegularExpressionValidator::qt_metacast
-32 (int (*)(...))QRegularExpressionValidator::qt_metacall
-40 (int (*)(...))QRegularExpressionValidator::~QRegularExpressionValidator
-48 (int (*)(...))QRegularExpressionValidator::~QRegularExpressionValidator
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QRegularExpressionValidator::validate
-120 (int (*)(...))QValidator::fixup
-
-Class QRegularExpressionValidator
- size=16 align=8
- base size=16 base align=8
-QRegularExpressionValidator (0x0x7f22b608c958) 0
- vptr=((& QRegularExpressionValidator::_ZTV27QRegularExpressionValidator) + 16)
- QValidator (0x0x7f22b608c9c0) 0
- primary-for QRegularExpressionValidator (0x0x7f22b608c958)
- QObject (0x0x7f22b611b2a0) 0
- primary-for QValidator (0x0x7f22b608c9c0)
-
-Class QNetworkRequest
- size=8 align=8
- base size=8 base align=8
-QNetworkRequest (0x0x7f22b611b4e0) 0
-
-Class QNetworkCacheMetaData
- size=8 align=8
- base size=8 base align=8
-QNetworkCacheMetaData (0x0x7f22b6186e40) 0
-
-Class QAbstractNetworkCache::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractNetworkCache::QPrivateSignal (0x0x7f22b61fa420) 0 empty
-
-Vtable for QAbstractNetworkCache
-QAbstractNetworkCache::_ZTV21QAbstractNetworkCache: 22 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QAbstractNetworkCache)
-16 (int (*)(...))QAbstractNetworkCache::metaObject
-24 (int (*)(...))QAbstractNetworkCache::qt_metacast
-32 (int (*)(...))QAbstractNetworkCache::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))__cxa_pure_virtual
-
-Class QAbstractNetworkCache
- size=16 align=8
- base size=16 base align=8
-QAbstractNetworkCache (0x0x7f22b61f4618) 0
- vptr=((& QAbstractNetworkCache::_ZTV21QAbstractNetworkCache) + 16)
- QObject (0x0x7f22b61fa3c0) 0
- primary-for QAbstractNetworkCache (0x0x7f22b61f4618)
-
-Class QAbstractSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QAbstractSocket::QPrivateSignal (0x0x7f22b61fa660) 0 empty
-
-Vtable for QAbstractSocket
-QAbstractSocket::_ZTV15QAbstractSocket: 41 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QAbstractSocket)
-16 (int (*)(...))QAbstractSocket::metaObject
-24 (int (*)(...))QAbstractSocket::qt_metacast
-32 (int (*)(...))QAbstractSocket::qt_metacall
-40 (int (*)(...))QAbstractSocket::~QAbstractSocket
-48 (int (*)(...))QAbstractSocket::~QAbstractSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QAbstractSocket
- size=16 align=8
- base size=16 base align=8
-QAbstractSocket (0x0x7f22b61f4680) 0
- vptr=((& QAbstractSocket::_ZTV15QAbstractSocket) + 16)
- QIODevice (0x0x7f22b61f46e8) 0
- primary-for QAbstractSocket (0x0x7f22b61f4680)
- QObject (0x0x7f22b61fa600) 0
- primary-for QIODevice (0x0x7f22b61f46e8)
-
-Class QAuthenticator
- size=8 align=8
- base size=8 base align=8
-QAuthenticator (0x0x7f22b5e64d80) 0
-
-Class QDnsDomainNameRecord
- size=8 align=8
- base size=8 base align=8
-QDnsDomainNameRecord (0x0x7f22b5e64e40) 0
-
-Class QDnsHostAddressRecord
- size=8 align=8
- base size=8 base align=8
-QDnsHostAddressRecord (0x0x7f22b5f01000) 0
-
-Class QDnsMailExchangeRecord
- size=8 align=8
- base size=8 base align=8
-QDnsMailExchangeRecord (0x0x7f22b5f4d180) 0
-
-Class QDnsServiceRecord
- size=8 align=8
- base size=8 base align=8
-QDnsServiceRecord (0x0x7f22b5f9c240) 0
-
-Class QDnsTextRecord
- size=8 align=8
- base size=8 base align=8
-QDnsTextRecord (0x0x7f22b5fe44e0) 0
-
-Class QDnsLookup::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDnsLookup::QPrivateSignal (0x0x7f22b602da20) 0 empty
-
-Vtable for QDnsLookup
-QDnsLookup::_ZTV10QDnsLookup: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QDnsLookup)
-16 (int (*)(...))QDnsLookup::metaObject
-24 (int (*)(...))QDnsLookup::qt_metacast
-32 (int (*)(...))QDnsLookup::qt_metacall
-40 (int (*)(...))QDnsLookup::~QDnsLookup
-48 (int (*)(...))QDnsLookup::~QDnsLookup
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDnsLookup
- size=16 align=8
- base size=16 base align=8
-QDnsLookup (0x0x7f22b6024c98) 0
- vptr=((& QDnsLookup::_ZTV10QDnsLookup) + 16)
- QObject (0x0x7f22b602d9c0) 0
- primary-for QDnsLookup (0x0x7f22b6024c98)
-
-Class QTcpSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTcpSocket::QPrivateSignal (0x0x7f22b602dde0) 0 empty
-
-Vtable for QTcpSocket
-QTcpSocket::_ZTV10QTcpSocket: 41 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTcpSocket)
-16 (int (*)(...))QTcpSocket::metaObject
-24 (int (*)(...))QTcpSocket::qt_metacast
-32 (int (*)(...))QTcpSocket::qt_metacall
-40 (int (*)(...))QTcpSocket::~QTcpSocket
-48 (int (*)(...))QTcpSocket::~QTcpSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QTcpSocket
- size=16 align=8
- base size=16 base align=8
-QTcpSocket (0x0x7f22b6024d00) 0
- vptr=((& QTcpSocket::_ZTV10QTcpSocket) + 16)
- QAbstractSocket (0x0x7f22b6024d68) 0
- primary-for QTcpSocket (0x0x7f22b6024d00)
- QIODevice (0x0x7f22b6024dd0) 0
- primary-for QAbstractSocket (0x0x7f22b6024d68)
- QObject (0x0x7f22b602dd80) 0
- primary-for QIODevice (0x0x7f22b6024dd0)
-
-Class QSslCertificate
- size=8 align=8
- base size=8 base align=8
-QSslCertificate (0x0x7f22b5c676c0) 0
-
-Class QSslError
- size=8 align=8
- base size=8 base align=8
-QSslError (0x0x7f22b5cdfe40) 0
-
-Class QSslSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSslSocket::QPrivateSignal (0x0x7f22b5df4060) 0 empty
-
-Vtable for QSslSocket
-QSslSocket::_ZTV10QSslSocket: 41 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QSslSocket)
-16 (int (*)(...))QSslSocket::metaObject
-24 (int (*)(...))QSslSocket::qt_metacast
-32 (int (*)(...))QSslSocket::qt_metacall
-40 (int (*)(...))QSslSocket::~QSslSocket
-48 (int (*)(...))QSslSocket::~QSslSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QSslSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QSslSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QSslSocket::bytesAvailable
-184 (int (*)(...))QSslSocket::bytesToWrite
-192 (int (*)(...))QSslSocket::canReadLine
-200 (int (*)(...))QSslSocket::waitForReadyRead
-208 (int (*)(...))QSslSocket::waitForBytesWritten
-216 (int (*)(...))QSslSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QSslSocket::writeData
-240 (int (*)(...))QSslSocket::resume
-248 (int (*)(...))QSslSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QSslSocket::disconnectFromHost
-272 (int (*)(...))QSslSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QSslSocket::setSocketDescriptor
-296 (int (*)(...))QSslSocket::setSocketOption
-304 (int (*)(...))QSslSocket::socketOption
-312 (int (*)(...))QSslSocket::waitForConnected
-320 (int (*)(...))QSslSocket::waitForDisconnected
-
-Class QSslSocket
- size=16 align=8
- base size=16 base align=8
-QSslSocket (0x0x7f22b5dbd138) 0
- vptr=((& QSslSocket::_ZTV10QSslSocket) + 16)
- QTcpSocket (0x0x7f22b5dbd1a0) 0
- primary-for QSslSocket (0x0x7f22b5dbd138)
- QAbstractSocket (0x0x7f22b5dbd208) 0
- primary-for QTcpSocket (0x0x7f22b5dbd1a0)
- QIODevice (0x0x7f22b5dbd270) 0
- primary-for QAbstractSocket (0x0x7f22b5dbd208)
- QObject (0x0x7f22b5df4000) 0
- primary-for QIODevice (0x0x7f22b5dbd270)
-
-Class QDtlsClientVerifier::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDtlsClientVerifier::QPrivateSignal (0x0x7f22b5df42a0) 0 empty
-
-Class QDtlsClientVerifier::GeneratorParameters
- size=16 align=8
- base size=16 base align=8
-QDtlsClientVerifier::GeneratorParameters (0x0x7f22b5df4300) 0
-
-Vtable for QDtlsClientVerifier
-QDtlsClientVerifier::_ZTV19QDtlsClientVerifier: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QDtlsClientVerifier)
-16 (int (*)(...))QDtlsClientVerifier::metaObject
-24 (int (*)(...))QDtlsClientVerifier::qt_metacast
-32 (int (*)(...))QDtlsClientVerifier::qt_metacall
-40 (int (*)(...))QDtlsClientVerifier::~QDtlsClientVerifier
-48 (int (*)(...))QDtlsClientVerifier::~QDtlsClientVerifier
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDtlsClientVerifier
- size=16 align=8
- base size=16 base align=8
-QDtlsClientVerifier (0x0x7f22b5dbd2d8) 0
- vptr=((& QDtlsClientVerifier::_ZTV19QDtlsClientVerifier) + 16)
- QObject (0x0x7f22b5df4240) 0
- primary-for QDtlsClientVerifier (0x0x7f22b5dbd2d8)
-
-Class QDtls::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QDtls::QPrivateSignal (0x0x7f22b5df4540) 0 empty
-
-Vtable for QDtls
-QDtls::_ZTV5QDtls: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI5QDtls)
-16 (int (*)(...))QDtls::metaObject
-24 (int (*)(...))QDtls::qt_metacast
-32 (int (*)(...))QDtls::qt_metacall
-40 (int (*)(...))QDtls::~QDtls
-48 (int (*)(...))QDtls::~QDtls
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QDtls
- size=16 align=8
- base size=16 base align=8
-QDtls (0x0x7f22b5dbd340) 0
- vptr=((& QDtls::_ZTV5QDtls) + 16)
- QObject (0x0x7f22b5df44e0) 0
- primary-for QDtls (0x0x7f22b5dbd340)
-
-Class QIPv6Address
- size=16 align=1
- base size=16 base align=1
-QIPv6Address (0x0x7f22b5df4780) 0
-
-Class QHostAddress
- size=8 align=8
- base size=8 base align=8
-QHostAddress (0x0x7f22b5df48a0) 0
-
-Class QHostInfo
- size=8 align=8
- base size=8 base align=8
-QHostInfo (0x0x7f22b5a4e660) 0
-
-Class QHstsPolicy
- size=8 align=8
- base size=8 base align=8
-QHstsPolicy (0x0x7f22b5b29480) 0
-
-Class QHttpPart
- size=8 align=8
- base size=8 base align=8
-QHttpPart (0x0x7f22b5bbb0c0) 0
-
-Class QHttpMultiPart::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QHttpMultiPart::QPrivateSignal (0x0x7f22b580c240) 0 empty
-
-Vtable for QHttpMultiPart
-QHttpMultiPart::_ZTV14QHttpMultiPart: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QHttpMultiPart)
-16 (int (*)(...))QHttpMultiPart::metaObject
-24 (int (*)(...))QHttpMultiPart::qt_metacast
-32 (int (*)(...))QHttpMultiPart::qt_metacall
-40 (int (*)(...))QHttpMultiPart::~QHttpMultiPart
-48 (int (*)(...))QHttpMultiPart::~QHttpMultiPart
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QHttpMultiPart
- size=16 align=8
- base size=16 base align=8
-QHttpMultiPart (0x0x7f22b580d138) 0
- vptr=((& QHttpMultiPart::_ZTV14QHttpMultiPart) + 16)
- QObject (0x0x7f22b580c1e0) 0
- primary-for QHttpMultiPart (0x0x7f22b580d138)
-
-Class QLocalServer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLocalServer::QPrivateSignal (0x0x7f22c6235f00) 0 empty
-
-Vtable for QLocalServer
-QLocalServer::_ZTV12QLocalServer: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QLocalServer)
-16 (int (*)(...))QLocalServer::metaObject
-24 (int (*)(...))QLocalServer::qt_metacast
-32 (int (*)(...))QLocalServer::qt_metacall
-40 (int (*)(...))QLocalServer::~QLocalServer
-48 (int (*)(...))QLocalServer::~QLocalServer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QLocalServer::hasPendingConnections
-120 (int (*)(...))QLocalServer::nextPendingConnection
-128 (int (*)(...))QLocalServer::incomingConnection
-
-Class QLocalServer
- size=16 align=8
- base size=16 base align=8
-QLocalServer (0x0x7f22ba1a3270) 0
- vptr=((& QLocalServer::_ZTV12QLocalServer) + 16)
- QObject (0x0x7f22c6235d80) 0
- primary-for QLocalServer (0x0x7f22ba1a3270)
-
-Class QLocalSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QLocalSocket::QPrivateSignal (0x0x7f22c2b5ad80) 0 empty
-
-Vtable for QLocalSocket
-QLocalSocket::_ZTV12QLocalSocket: 30 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QLocalSocket)
-16 (int (*)(...))QLocalSocket::metaObject
-24 (int (*)(...))QLocalSocket::qt_metacast
-32 (int (*)(...))QLocalSocket::qt_metacall
-40 (int (*)(...))QLocalSocket::~QLocalSocket
-48 (int (*)(...))QLocalSocket::~QLocalSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QLocalSocket::isSequential
-120 (int (*)(...))QLocalSocket::open
-128 (int (*)(...))QLocalSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QLocalSocket::bytesAvailable
-184 (int (*)(...))QLocalSocket::bytesToWrite
-192 (int (*)(...))QLocalSocket::canReadLine
-200 (int (*)(...))QLocalSocket::waitForReadyRead
-208 (int (*)(...))QLocalSocket::waitForBytesWritten
-216 (int (*)(...))QLocalSocket::readData
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QLocalSocket::writeData
-
-Class QLocalSocket
- size=16 align=8
- base size=16 base align=8
-QLocalSocket (0x0x7f22ba1a3ea0) 0
- vptr=((& QLocalSocket::_ZTV12QLocalSocket) + 16)
- QIODevice (0x0x7f22ba1a3f08) 0
- primary-for QLocalSocket (0x0x7f22ba1a3ea0)
- QObject (0x0x7f22c2b5ad20) 0
- primary-for QIODevice (0x0x7f22ba1a3f08)
-
-Class QSslConfiguration
- size=8 align=8
- base size=8 base align=8
-QSslConfiguration (0x0x7f22c2b972a0) 0
-
-Class QSslPreSharedKeyAuthenticator
- size=8 align=8
- base size=8 base align=8
-QSslPreSharedKeyAuthenticator (0x0x7f22c29f88a0) 0
-
-Class QNetworkAccessManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkAccessManager::QPrivateSignal (0x0x7f22c0f08540) 0 empty
-
-Vtable for QNetworkAccessManager
-QNetworkAccessManager::_ZTV21QNetworkAccessManager: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QNetworkAccessManager)
-16 (int (*)(...))QNetworkAccessManager::metaObject
-24 (int (*)(...))QNetworkAccessManager::qt_metacast
-32 (int (*)(...))QNetworkAccessManager::qt_metacall
-40 (int (*)(...))QNetworkAccessManager::~QNetworkAccessManager
-48 (int (*)(...))QNetworkAccessManager::~QNetworkAccessManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkAccessManager::createRequest
-
-Class QNetworkAccessManager
- size=16 align=8
- base size=16 base align=8
-QNetworkAccessManager (0x0x7f22c0dda8f0) 0
- vptr=((& QNetworkAccessManager::_ZTV21QNetworkAccessManager) + 16)
- QObject (0x0x7f22c0eecf00) 0
- primary-for QNetworkAccessManager (0x0x7f22c0dda8f0)
-
-Class QNetworkConfiguration
- size=8 align=8
- base size=8 base align=8
-QNetworkConfiguration (0x0x7f22c0fc1600) 0
-
-Class QNetworkConfigurationManager::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkConfigurationManager::QPrivateSignal (0x0x7f22bf9dac60) 0 empty
-
-Vtable for QNetworkConfigurationManager
-QNetworkConfigurationManager::_ZTV28QNetworkConfigurationManager: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI28QNetworkConfigurationManager)
-16 (int (*)(...))QNetworkConfigurationManager::metaObject
-24 (int (*)(...))QNetworkConfigurationManager::qt_metacast
-32 (int (*)(...))QNetworkConfigurationManager::qt_metacall
-40 (int (*)(...))QNetworkConfigurationManager::~QNetworkConfigurationManager
-48 (int (*)(...))QNetworkConfigurationManager::~QNetworkConfigurationManager
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QNetworkConfigurationManager
- size=16 align=8
- base size=16 base align=8
-QNetworkConfigurationManager (0x0x7f22bf594f08) 0
- vptr=((& QNetworkConfigurationManager::_ZTV28QNetworkConfigurationManager) + 16)
- QObject (0x0x7f22c0069300) 0
- primary-for QNetworkConfigurationManager (0x0x7f22bf594f08)
-
-Class QNetworkCookie
- size=8 align=8
- base size=8 base align=8
-QNetworkCookie (0x0x7f22bf7a3b40) 0
-
-Class QNetworkCookieJar::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkCookieJar::QPrivateSignal (0x0x7f22bf1a2240) 0 empty
-
-Vtable for QNetworkCookieJar
-QNetworkCookieJar::_ZTV17QNetworkCookieJar: 20 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QNetworkCookieJar)
-16 (int (*)(...))QNetworkCookieJar::metaObject
-24 (int (*)(...))QNetworkCookieJar::qt_metacast
-32 (int (*)(...))QNetworkCookieJar::qt_metacall
-40 (int (*)(...))QNetworkCookieJar::~QNetworkCookieJar
-48 (int (*)(...))QNetworkCookieJar::~QNetworkCookieJar
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkCookieJar::cookiesForUrl
-120 (int (*)(...))QNetworkCookieJar::setCookiesFromUrl
-128 (int (*)(...))QNetworkCookieJar::insertCookie
-136 (int (*)(...))QNetworkCookieJar::updateCookie
-144 (int (*)(...))QNetworkCookieJar::deleteCookie
-152 (int (*)(...))QNetworkCookieJar::validateCookie
-
-Class QNetworkCookieJar
- size=16 align=8
- base size=16 base align=8
-QNetworkCookieJar (0x0x7f22bec58478) 0
- vptr=((& QNetworkCookieJar::_ZTV17QNetworkCookieJar) + 16)
- QObject (0x0x7f22bf1a2180) 0
- primary-for QNetworkCookieJar (0x0x7f22bec58478)
-
-Class QNetworkDatagram
- size=8 align=8
- base size=8 base align=8
-QNetworkDatagram (0x0x7f22bee8e3c0) 0
-
-Class QNetworkDiskCache::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkDiskCache::QPrivateSignal (0x0x7f22bdfd6540) 0 empty
-
-Vtable for QNetworkDiskCache
-QNetworkDiskCache::_ZTV17QNetworkDiskCache: 23 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QNetworkDiskCache)
-16 (int (*)(...))QNetworkDiskCache::metaObject
-24 (int (*)(...))QNetworkDiskCache::qt_metacast
-32 (int (*)(...))QNetworkDiskCache::qt_metacall
-40 (int (*)(...))QNetworkDiskCache::~QNetworkDiskCache
-48 (int (*)(...))QNetworkDiskCache::~QNetworkDiskCache
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkDiskCache::metaData
-120 (int (*)(...))QNetworkDiskCache::updateMetaData
-128 (int (*)(...))QNetworkDiskCache::data
-136 (int (*)(...))QNetworkDiskCache::remove
-144 (int (*)(...))QNetworkDiskCache::cacheSize
-152 (int (*)(...))QNetworkDiskCache::prepare
-160 (int (*)(...))QNetworkDiskCache::insert
-168 (int (*)(...))QNetworkDiskCache::clear
-176 (int (*)(...))QNetworkDiskCache::expire
-
-Class QNetworkDiskCache
- size=16 align=8
- base size=16 base align=8
-QNetworkDiskCache (0x0x7f22bd6d1f70) 0
- vptr=((& QNetworkDiskCache::_ZTV17QNetworkDiskCache) + 16)
- QAbstractNetworkCache (0x0x7f22bd6e7888) 0
- primary-for QNetworkDiskCache (0x0x7f22bd6d1f70)
- QObject (0x0x7f22bdfb29c0) 0
- primary-for QAbstractNetworkCache (0x0x7f22bd6e7888)
-
-Class QNetworkAddressEntry
- size=8 align=8
- base size=8 base align=8
-QNetworkAddressEntry (0x0x7f22bdff4600) 0
-
-Class QNetworkInterface
- size=8 align=8
- base size=8 base align=8
-QNetworkInterface (0x0x7f22bd1d6f00) 0
-
-Class QNetworkProxyQuery
- size=8 align=8
- base size=8 base align=8
-QNetworkProxyQuery (0x0x7f22bcbc0420) 0
-
-Class QNetworkProxy
- size=8 align=8
- base size=8 base align=8
-QNetworkProxy (0x0x7f22bc59aae0) 0
-
-Vtable for QNetworkProxyFactory
-QNetworkProxyFactory::_ZTV20QNetworkProxyFactory: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QNetworkProxyFactory)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QNetworkProxyFactory
- size=8 align=8
- base size=8 base align=8
-QNetworkProxyFactory (0x0x7f22bb801660) 0 nearly-empty
- vptr=((& QNetworkProxyFactory::_ZTV20QNetworkProxyFactory) + 16)
-
-Class QNetworkReply::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkReply::QPrivateSignal (0x0x7f22bb820ba0) 0 empty
-
-Vtable for QNetworkReply
-QNetworkReply::_ZTV13QNetworkReply: 36 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QNetworkReply)
-16 (int (*)(...))QNetworkReply::metaObject
-24 (int (*)(...))QNetworkReply::qt_metacast
-32 (int (*)(...))QNetworkReply::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QNetworkReply::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QNetworkReply::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QIODevice::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QIODevice::bytesAvailable
-184 (int (*)(...))QIODevice::bytesToWrite
-192 (int (*)(...))QIODevice::canReadLine
-200 (int (*)(...))QIODevice::waitForReadyRead
-208 (int (*)(...))QIODevice::waitForBytesWritten
-216 (int (*)(...))__cxa_pure_virtual
-224 (int (*)(...))QIODevice::readLineData
-232 (int (*)(...))QNetworkReply::writeData
-240 (int (*)(...))QNetworkReply::setReadBufferSize
-248 (int (*)(...))__cxa_pure_virtual
-256 (int (*)(...))QNetworkReply::ignoreSslErrors
-264 (int (*)(...))QNetworkReply::sslConfigurationImplementation
-272 (int (*)(...))QNetworkReply::setSslConfigurationImplementation
-280 (int (*)(...))QNetworkReply::ignoreSslErrorsImplementation
-
-Class QNetworkReply
- size=16 align=8
- base size=16 base align=8
-QNetworkReply (0x0x7f22ba217958) 0
- vptr=((& QNetworkReply::_ZTV13QNetworkReply) + 16)
- QIODevice (0x0x7f22ba2179c0) 0
- primary-for QNetworkReply (0x0x7f22ba217958)
- QObject (0x0x7f22bb820b40) 0
- primary-for QIODevice (0x0x7f22ba2179c0)
-
-Class QNetworkSession::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QNetworkSession::QPrivateSignal (0x0x7f22bb542900) 0 empty
-
-Vtable for QNetworkSession
-QNetworkSession::_ZTV15QNetworkSession: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QNetworkSession)
-16 (int (*)(...))QNetworkSession::metaObject
-24 (int (*)(...))QNetworkSession::qt_metacast
-32 (int (*)(...))QNetworkSession::qt_metacall
-40 (int (*)(...))QNetworkSession::~QNetworkSession
-48 (int (*)(...))QNetworkSession::~QNetworkSession
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QNetworkSession::connectNotify
-104 (int (*)(...))QNetworkSession::disconnectNotify
-
-Class QNetworkSession
- size=24 align=8
- base size=24 base align=8
-QNetworkSession (0x0x7f22ba22e0d0) 0
- vptr=((& QNetworkSession::_ZTV15QNetworkSession) + 16)
- QObject (0x0x7f22bb49ed80) 0
- primary-for QNetworkSession (0x0x7f22ba22e0d0)
-
-Class QOcspResponse
- size=8 align=8
- base size=8 base align=8
-QOcspResponse (0x0x7f22bb2b0cc0) 0
-
-Class QTcpServer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QTcpServer::QPrivateSignal (0x0x7f22ba91cf00) 0 empty
-
-Vtable for QTcpServer
-QTcpServer::_ZTV10QTcpServer: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QTcpServer)
-16 (int (*)(...))QTcpServer::metaObject
-24 (int (*)(...))QTcpServer::qt_metacast
-32 (int (*)(...))QTcpServer::qt_metacall
-40 (int (*)(...))QTcpServer::~QTcpServer
-48 (int (*)(...))QTcpServer::~QTcpServer
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QTcpServer::hasPendingConnections
-120 (int (*)(...))QTcpServer::nextPendingConnection
-128 (int (*)(...))QTcpServer::incomingConnection
-
-Class QTcpServer
- size=16 align=8
- base size=16 base align=8
-QTcpServer (0x0x7f22b98ad478) 0
- vptr=((& QTcpServer::_ZTV10QTcpServer) + 16)
- QObject (0x0x7f22ba91cae0) 0
- primary-for QTcpServer (0x0x7f22b98ad478)
-
-Class QSslCertificateExtension
- size=8 align=8
- base size=8 base align=8
-QSslCertificateExtension (0x0x7f22ba9f7480) 0
-
-Class QSslCipher
- size=8 align=8
- base size=8 base align=8
-QSslCipher (0x0x7f22ba1c8420) 0
-
-Class QSslDiffieHellmanParameters
- size=8 align=8
- base size=8 base align=8
-QSslDiffieHellmanParameters (0x0x7f22b905f9c0) 0
-
-Class QSslEllipticCurve
- size=4 align=4
- base size=4 base align=4
-QSslEllipticCurve (0x0x7f22b8bd7cc0) 0
-
-Class QSslKey
- size=8 align=8
- base size=8 base align=8
-QSslKey (0x0x7f22b87893c0) 0
-
-Class QUdpSocket::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QUdpSocket::QPrivateSignal (0x0x7f22b7e89ae0) 0 empty
-
-Vtable for QUdpSocket
-QUdpSocket::_ZTV10QUdpSocket: 41 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QUdpSocket)
-16 (int (*)(...))QUdpSocket::metaObject
-24 (int (*)(...))QUdpSocket::qt_metacast
-32 (int (*)(...))QUdpSocket::qt_metacall
-40 (int (*)(...))QUdpSocket::~QUdpSocket
-48 (int (*)(...))QUdpSocket::~QUdpSocket
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QAbstractSocket::isSequential
-120 (int (*)(...))QIODevice::open
-128 (int (*)(...))QAbstractSocket::close
-136 (int (*)(...))QIODevice::pos
-144 (int (*)(...))QIODevice::size
-152 (int (*)(...))QIODevice::seek
-160 (int (*)(...))QAbstractSocket::atEnd
-168 (int (*)(...))QIODevice::reset
-176 (int (*)(...))QAbstractSocket::bytesAvailable
-184 (int (*)(...))QAbstractSocket::bytesToWrite
-192 (int (*)(...))QAbstractSocket::canReadLine
-200 (int (*)(...))QAbstractSocket::waitForReadyRead
-208 (int (*)(...))QAbstractSocket::waitForBytesWritten
-216 (int (*)(...))QAbstractSocket::readData
-224 (int (*)(...))QAbstractSocket::readLineData
-232 (int (*)(...))QAbstractSocket::writeData
-240 (int (*)(...))QAbstractSocket::resume
-248 (int (*)(...))QAbstractSocket::connectToHost
-256 (int (*)(...))QAbstractSocket::connectToHost
-264 (int (*)(...))QAbstractSocket::disconnectFromHost
-272 (int (*)(...))QAbstractSocket::setReadBufferSize
-280 (int (*)(...))QAbstractSocket::socketDescriptor
-288 (int (*)(...))QAbstractSocket::setSocketDescriptor
-296 (int (*)(...))QAbstractSocket::setSocketOption
-304 (int (*)(...))QAbstractSocket::socketOption
-312 (int (*)(...))QAbstractSocket::waitForConnected
-320 (int (*)(...))QAbstractSocket::waitForDisconnected
-
-Class QUdpSocket
- size=16 align=8
- base size=16 base align=8
-QUdpSocket (0x0x7f22c0c0c208) 0
- vptr=((& QUdpSocket::_ZTV10QUdpSocket) + 16)
- QAbstractSocket (0x0x7f22c0c0c270) 0
- primary-for QUdpSocket (0x0x7f22c0c0c208)
- QIODevice (0x0x7f22c0c0c2d8) 0
- primary-for QAbstractSocket (0x0x7f22c0c0c270)
- QObject (0x0x7f22b7e89a80) 0
- primary-for QIODevice (0x0x7f22c0c0c2d8)
-
-Class QJSValue
- size=8 align=8
- base size=8 base align=8
-QJSValue (0x0x7f22b7eca1e0) 0
-
-Class QQmlDebuggingEnabler
- size=1 align=1
- base size=0 base align=1
-QQmlDebuggingEnabler (0x0x7f22b7f015a0) 0 empty
-
-Class QJSEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QJSEngine::QPrivateSignal (0x0x7f22b7f01720) 0 empty
-
-Vtable for QJSEngine
-QJSEngine::_ZTV9QJSEngine: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QJSEngine)
-16 (int (*)(...))QJSEngine::metaObject
-24 (int (*)(...))QJSEngine::qt_metacast
-32 (int (*)(...))QJSEngine::qt_metacall
-40 (int (*)(...))QJSEngine::~QJSEngine
-48 (int (*)(...))QJSEngine::~QJSEngine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QJSEngine
- size=24 align=8
- base size=24 base align=8
-QJSEngine (0x0x7f22c0c0c3a8) 0
- vptr=((& QJSEngine::_ZTV9QJSEngine) + 16)
- QObject (0x0x7f22b7f01660) 0
- primary-for QJSEngine (0x0x7f22c0c0c3a8)
-
-Class QJSValueIterator
- size=8 align=8
- base size=8 base align=8
-QJSValueIterator (0x0x7f22b7fb2d20) 0
-
-Class QQmlPrivate::RegisterType
- size=128 align=8
- base size=124 base align=8
-QQmlPrivate::RegisterType (0x0x7f22b7d25120) 0
-
-Class QQmlPrivate::RegisterInterface
- size=24 align=8
- base size=24 base align=8
-QQmlPrivate::RegisterInterface (0x0x7f22b7d25180) 0
-
-Class QQmlPrivate::RegisterAutoParent
- size=16 align=8
- base size=16 base align=8
-QQmlPrivate::RegisterAutoParent (0x0x7f22b7d253c0) 0
-
-Class QQmlPrivate::RegisterSingletonType
- size=64 align=8
- base size=64 base align=8
-QQmlPrivate::RegisterSingletonType (0x0x7f22b7d25420) 0
-
-Class QQmlPrivate::RegisterCompositeType
- size=32 align=8
- base size=32 base align=8
-QQmlPrivate::RegisterCompositeType (0x0x7f22b7d25f00) 0
-
-Class QQmlPrivate::RegisterCompositeSingletonType
- size=32 align=8
- base size=32 base align=8
-QQmlPrivate::RegisterCompositeSingletonType (0x0x7f22b7d25f60) 0
-
-Class QQmlPrivate::CachedQmlUnit
- size=24 align=8
- base size=24 base align=8
-QQmlPrivate::CachedQmlUnit (0x0x7f22b7d422a0) 0
-
-Class QQmlPrivate::RegisterQmlUnitCacheHook
- size=16 align=8
- base size=16 base align=8
-QQmlPrivate::RegisterQmlUnitCacheHook (0x0x7f22b7d42300) 0
-
-Vtable for QQmlParserStatus
-QQmlParserStatus::_ZTV16QQmlParserStatus: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QQmlParserStatus)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlParserStatus
- size=16 align=8
- base size=16 base align=8
-QQmlParserStatus (0x0x7f22b7d6f060) 0
- vptr=((& QQmlParserStatus::_ZTV16QQmlParserStatus) + 16)
-
-Vtable for QQmlPropertyValueSource
-QQmlPropertyValueSource::_ZTV23QQmlPropertyValueSource: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QQmlPropertyValueSource)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlPropertyValueSource
- size=8 align=8
- base size=8 base align=8
-QQmlPropertyValueSource (0x0x7f22b7d6f4e0) 0 nearly-empty
- vptr=((& QQmlPropertyValueSource::_ZTV23QQmlPropertyValueSource) + 16)
-
-Class QQmlListReference
- size=8 align=8
- base size=8 base align=8
-QQmlListReference (0x0x7f22b7c095a0) 0
-
-Vtable for QQmlAbstractUrlInterceptor
-QQmlAbstractUrlInterceptor::_ZTV26QQmlAbstractUrlInterceptor: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI26QQmlAbstractUrlInterceptor)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlAbstractUrlInterceptor
- size=8 align=8
- base size=8 base align=8
-QQmlAbstractUrlInterceptor (0x0x7f22b6d8bf60) 0 nearly-empty
- vptr=((& QQmlAbstractUrlInterceptor::_ZTV26QQmlAbstractUrlInterceptor) + 16)
-
-Class QQmlError
- size=8 align=8
- base size=8 base align=8
-QQmlError (0x0x7f22b6dbf600) 0
-
-Vtable for QQmlImageProviderBase
-QQmlImageProviderBase::_ZTV21QQmlImageProviderBase: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QQmlImageProviderBase)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlImageProviderBase
- size=8 align=8
- base size=8 base align=8
-QQmlImageProviderBase (0x0x7f22b6391300) 0 nearly-empty
- vptr=((& QQmlImageProviderBase::_ZTV21QQmlImageProviderBase) + 16)
-
-Class QQmlEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlEngine::QPrivateSignal (0x0x7f22b6437120) 0 empty
-
-Vtable for QQmlEngine
-QQmlEngine::_ZTV10QQmlEngine: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQmlEngine)
-16 (int (*)(...))QQmlEngine::metaObject
-24 (int (*)(...))QQmlEngine::qt_metacast
-32 (int (*)(...))QQmlEngine::qt_metacall
-40 (int (*)(...))QQmlEngine::~QQmlEngine
-48 (int (*)(...))QQmlEngine::~QQmlEngine
-56 (int (*)(...))QQmlEngine::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlEngine
- size=24 align=8
- base size=24 base align=8
-QQmlEngine (0x0x7f22bea17a90) 0
- vptr=((& QQmlEngine::_ZTV10QQmlEngine) + 16)
- QJSEngine (0x0x7f22bea17af8) 0
- primary-for QQmlEngine (0x0x7f22bea17a90)
- QObject (0x0x7f22b6437060) 0
- primary-for QJSEngine (0x0x7f22bea17af8)
-
-Class QQmlApplicationEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlApplicationEngine::QPrivateSignal (0x0x7f22b6057660) 0 empty
-
-Vtable for QQmlApplicationEngine
-QQmlApplicationEngine::_ZTV21QQmlApplicationEngine: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI21QQmlApplicationEngine)
-16 (int (*)(...))QQmlApplicationEngine::metaObject
-24 (int (*)(...))QQmlApplicationEngine::qt_metacast
-32 (int (*)(...))QQmlApplicationEngine::qt_metacall
-40 (int (*)(...))QQmlApplicationEngine::~QQmlApplicationEngine
-48 (int (*)(...))QQmlApplicationEngine::~QQmlApplicationEngine
-56 (int (*)(...))QQmlEngine::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlApplicationEngine
- size=24 align=8
- base size=24 base align=8
-QQmlApplicationEngine (0x0x7f22bea17bc8) 0
- vptr=((& QQmlApplicationEngine::_ZTV21QQmlApplicationEngine) + 16)
- QQmlEngine (0x0x7f22bea17c30) 0
- primary-for QQmlApplicationEngine (0x0x7f22bea17bc8)
- QJSEngine (0x0x7f22bea17c98) 0
- primary-for QQmlEngine (0x0x7f22bea17c30)
- QObject (0x0x7f22b6057600) 0
- primary-for QJSEngine (0x0x7f22bea17c98)
-
-Class QQmlComponent::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlComponent::QPrivateSignal (0x0x7f22b6073720) 0 empty
-
-Vtable for QQmlComponent
-QQmlComponent::_ZTV13QQmlComponent: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QQmlComponent)
-16 (int (*)(...))QQmlComponent::metaObject
-24 (int (*)(...))QQmlComponent::qt_metacast
-32 (int (*)(...))QQmlComponent::qt_metacall
-40 (int (*)(...))QQmlComponent::~QQmlComponent
-48 (int (*)(...))QQmlComponent::~QQmlComponent
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQmlComponent::create
-120 (int (*)(...))QQmlComponent::beginCreate
-128 (int (*)(...))QQmlComponent::completeCreate
-
-Class QQmlComponent
- size=16 align=8
- base size=16 base align=8
-QQmlComponent (0x0x7f22bea17d00) 0
- vptr=((& QQmlComponent::_ZTV13QQmlComponent) + 16)
- QObject (0x0x7f22b6057ae0) 0
- primary-for QQmlComponent (0x0x7f22bea17d00)
-
-Class QQmlContext::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlContext::QPrivateSignal (0x0x7f22b61fa180) 0 empty
-
-Class QQmlContext::PropertyPair
- size=24 align=8
- base size=24 base align=8
-QQmlContext::PropertyPair (0x0x7f22b61fa240) 0
-
-Vtable for QQmlContext
-QQmlContext::_ZTV11QQmlContext: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QQmlContext)
-16 (int (*)(...))QQmlContext::metaObject
-24 (int (*)(...))QQmlContext::qt_metacast
-32 (int (*)(...))QQmlContext::qt_metacall
-40 (int (*)(...))QQmlContext::~QQmlContext
-48 (int (*)(...))QQmlContext::~QQmlContext
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlContext
- size=16 align=8
- base size=16 base align=8
-QQmlContext (0x0x7f22bda81270) 0
- vptr=((& QQmlContext::_ZTV11QQmlContext) + 16)
- QObject (0x0x7f22b61fa120) 0
- primary-for QQmlContext (0x0x7f22bda81270)
-
-Class QQmlScriptString
- size=8 align=8
- base size=8 base align=8
-QQmlScriptString (0x0x7f22b5ee6e40) 0
-
-Class QQmlExpression::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlExpression::QPrivateSignal (0x0x7f22b5f31ea0) 0 empty
-
-Vtable for QQmlExpression
-QQmlExpression::_ZTV14QQmlExpression: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QQmlExpression)
-16 (int (*)(...))QQmlExpression::metaObject
-24 (int (*)(...))QQmlExpression::qt_metacast
-32 (int (*)(...))QQmlExpression::qt_metacall
-40 (int (*)(...))QQmlExpression::~QQmlExpression
-48 (int (*)(...))QQmlExpression::~QQmlExpression
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlExpression
- size=16 align=8
- base size=16 base align=8
-QQmlExpression (0x0x7f22bda812d8) 0
- vptr=((& QQmlExpression::_ZTV14QQmlExpression) + 16)
- QObject (0x0x7f22b5f31ba0) 0
- primary-for QQmlExpression (0x0x7f22bda812d8)
-
-Vtable for QQmlTypesExtensionInterface
-QQmlTypesExtensionInterface::_ZTV27QQmlTypesExtensionInterface: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI27QQmlTypesExtensionInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlTypesExtensionInterface
- size=8 align=8
- base size=8 base align=8
-QQmlTypesExtensionInterface (0x0x7f22b5f7e9c0) 0 nearly-empty
- vptr=((& QQmlTypesExtensionInterface::_ZTV27QQmlTypesExtensionInterface) + 16)
-
-Vtable for QQmlExtensionInterface
-QQmlExtensionInterface::_ZTV22QQmlExtensionInterface: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QQmlExtensionInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlExtensionInterface
- size=8 align=8
- base size=8 base align=8
-QQmlExtensionInterface (0x0x7f22bda81340) 0 nearly-empty
- vptr=((& QQmlExtensionInterface::_ZTV22QQmlExtensionInterface) + 16)
- QQmlTypesExtensionInterface (0x0x7f22b5f7ea20) 0 nearly-empty
- primary-for QQmlExtensionInterface (0x0x7f22bda81340)
-
-Class QQmlExtensionPlugin::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlExtensionPlugin::QPrivateSignal (0x0x7f22b5fca660) 0 empty
-
-Vtable for QQmlExtensionPlugin
-QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin: 22 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQmlExtensionPlugin)
-16 (int (*)(...))QQmlExtensionPlugin::metaObject
-24 (int (*)(...))QQmlExtensionPlugin::qt_metacast
-32 (int (*)(...))QQmlExtensionPlugin::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QQmlExtensionPlugin::initializeEngine
-128 (int (*)(...))-16
-136 (int (*)(...))(& _ZTI19QQmlExtensionPlugin)
-144 0
-152 0
-160 (int (*)(...))__cxa_pure_virtual
-168 (int (*)(...))QQmlExtensionPlugin::_ZThn16_N19QQmlExtensionPlugin16initializeEngineEP10QQmlEnginePKc
-
-Class QQmlExtensionPlugin
- size=24 align=8
- base size=24 base align=8
-QQmlExtensionPlugin (0x0x7f22c10e87e0) 0
- vptr=((& QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin) + 16)
- QObject (0x0x7f22b5fca0c0) 0
- primary-for QQmlExtensionPlugin (0x0x7f22c10e87e0)
- QQmlExtensionInterface (0x0x7f22bda813a8) 16 nearly-empty
- vptr=((& QQmlExtensionPlugin::_ZTV19QQmlExtensionPlugin) + 144)
- QQmlTypesExtensionInterface (0x0x7f22b5fca600) 16 nearly-empty
- primary-for QQmlExtensionInterface (0x0x7f22bda813a8)
-
-Class QQmlFile
- size=8 align=8
- base size=8 base align=8
-QQmlFile (0x0x7f22b5fe42a0) 0
-
-Class QQmlFileSelector::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlFileSelector::QPrivateSignal (0x0x7f22b5fe4b40) 0 empty
-
-Vtable for QQmlFileSelector
-QQmlFileSelector::_ZTV16QQmlFileSelector: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QQmlFileSelector)
-16 (int (*)(...))QQmlFileSelector::metaObject
-24 (int (*)(...))QQmlFileSelector::qt_metacast
-32 (int (*)(...))QQmlFileSelector::qt_metacall
-40 (int (*)(...))QQmlFileSelector::~QQmlFileSelector
-48 (int (*)(...))QQmlFileSelector::~QQmlFileSelector
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQmlFileSelector
- size=16 align=8
- base size=16 base align=8
-QQmlFileSelector (0x0x7f22bda81478) 0
- vptr=((& QQmlFileSelector::_ZTV16QQmlFileSelector) + 16)
- QObject (0x0x7f22b5fe4360) 0
- primary-for QQmlFileSelector (0x0x7f22bda81478)
-
-Vtable for QQmlIncubator
-QQmlIncubator::_ZTV13QQmlIncubator: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QQmlIncubator)
-16 (int (*)(...))QQmlIncubator::~QQmlIncubator
-24 (int (*)(...))QQmlIncubator::~QQmlIncubator
-32 (int (*)(...))QQmlIncubator::statusChanged
-40 (int (*)(...))QQmlIncubator::setInitialState
-
-Class QQmlIncubator
- size=16 align=8
- base size=16 base align=8
-QQmlIncubator (0x0x7f22b5fe4f00) 0
- vptr=((& QQmlIncubator::_ZTV13QQmlIncubator) + 16)
-
-Vtable for QQmlIncubationController
-QQmlIncubationController::_ZTV24QQmlIncubationController: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QQmlIncubationController)
-16 (int (*)(...))QQmlIncubationController::~QQmlIncubationController
-24 (int (*)(...))QQmlIncubationController::~QQmlIncubationController
-32 (int (*)(...))QQmlIncubationController::incubatingObjectCountChanged
-
-Class QQmlIncubationController
- size=16 align=8
- base size=16 base align=8
-QQmlIncubationController (0x0x7f22b6010120) 0
- vptr=((& QQmlIncubationController::_ZTV24QQmlIncubationController) + 16)
-
-Class QQmlInfo
- size=16 align=8
- base size=16 base align=8
-QQmlInfo (0x0x7f22bda814e0) 0
- QDebug (0x0x7f22b6010180) 0
-
-Vtable for QQmlNetworkAccessManagerFactory
-QQmlNetworkAccessManagerFactory::_ZTV31QQmlNetworkAccessManagerFactory: 5 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI31QQmlNetworkAccessManagerFactory)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-
-Class QQmlNetworkAccessManagerFactory
- size=8 align=8
- base size=8 base align=8
-QQmlNetworkAccessManagerFactory (0x0x7f22b5a0c8a0) 0 nearly-empty
- vptr=((& QQmlNetworkAccessManagerFactory::_ZTV31QQmlNetworkAccessManagerFactory) + 16)
-
-Class QQmlProperty
- size=8 align=8
- base size=8 base align=8
-QQmlProperty (0x0x7f22b5a0c960) 0
-
-Class QQmlPropertyMap::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQmlPropertyMap::QPrivateSignal (0x0x7f22b9665f00) 0 empty
-
-Vtable for QQmlPropertyMap
-QQmlPropertyMap::_ZTV15QQmlPropertyMap: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QQmlPropertyMap)
-16 (int (*)(...))QQmlPropertyMap::metaObject
-24 (int (*)(...))QQmlPropertyMap::qt_metacast
-32 (int (*)(...))QQmlPropertyMap::qt_metacall
-40 (int (*)(...))QQmlPropertyMap::~QQmlPropertyMap
-48 (int (*)(...))QQmlPropertyMap::~QQmlPropertyMap
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQmlPropertyMap::updateValue
-
-Class QQmlPropertyMap
- size=16 align=8
- base size=16 base align=8
-QQmlPropertyMap (0x0x7f22b973db60) 0
- vptr=((& QQmlPropertyMap::_ZTV15QQmlPropertyMap) + 16)
- QObject (0x0x7f22b9665ea0) 0
- primary-for QQmlPropertyMap (0x0x7f22b973db60)
-
-Class QQuickTransform::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTransform::QPrivateSignal (0x0x7f22b91461e0) 0 empty
-
-Vtable for QQuickTransform
-QQuickTransform::_ZTV15QQuickTransform: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QQuickTransform)
-16 (int (*)(...))QQuickTransform::metaObject
-24 (int (*)(...))QQuickTransform::qt_metacast
-32 (int (*)(...))QQuickTransform::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QQuickTransform
- size=16 align=8
- base size=16 base align=8
-QQuickTransform (0x0x7f22b973dbc8) 0
- vptr=((& QQuickTransform::_ZTV15QQuickTransform) + 16)
- QObject (0x0x7f22b9146180) 0
- primary-for QQuickTransform (0x0x7f22b973dbc8)
-
-Class QQuickItem::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickItem::QPrivateSignal (0x0x7f22b9146480) 0 empty
-
-Class QQuickItem::ItemChangeData
- size=8 align=8
- base size=8 base align=8
-QQuickItem::ItemChangeData (0x0x7f22b91464e0) 0
-
-Class QQuickItem::UpdatePaintNodeData
- size=8 align=8
- base size=8 base align=8
-QQuickItem::UpdatePaintNodeData (0x0x7f22b9146540) 0
-
-Vtable for QQuickItem
-QQuickItem::_ZTV10QQuickItem: 55 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQuickItem)
-16 (int (*)(...))QQuickItem::metaObject
-24 (int (*)(...))QQuickItem::qt_metacast
-32 (int (*)(...))QQuickItem::qt_metacall
-40 (int (*)(...))QQuickItem::~QQuickItem
-48 (int (*)(...))QQuickItem::~QQuickItem
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickItem::isTextureProvider
-152 (int (*)(...))QQuickItem::textureProvider
-160 (int (*)(...))QQuickItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickItem::geometryChanged
-368 (int (*)(...))QQuickItem::updatePaintNode
-376 (int (*)(...))QQuickItem::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))-16
-400 (int (*)(...))(& _ZTI10QQuickItem)
-408 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItemD1Ev
-416 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItemD0Ev
-424 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickItem
- size=32 align=8
- base size=32 base align=8
-QQuickItem (0x0x7f22c0f1aa80) 0
- vptr=((& QQuickItem::_ZTV10QQuickItem) + 16)
- QObject (0x0x7f22b91463c0) 0
- primary-for QQuickItem (0x0x7f22c0f1aa80)
- QQmlParserStatus (0x0x7f22b9146420) 16
- vptr=((& QQuickItem::_ZTV10QQuickItem) + 408)
-
-Class QQuickFramebufferObject::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickFramebufferObject::QPrivateSignal (0x0x7f22b8125ea0) 0 empty
-
-Vtable for QQuickFramebufferObject::Renderer
-QQuickFramebufferObject::Renderer::_ZTVN23QQuickFramebufferObject8RendererE: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN23QQuickFramebufferObject8RendererE)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QQuickFramebufferObject::Renderer::createFramebufferObject
-48 (int (*)(...))QQuickFramebufferObject::Renderer::synchronize
-
-Class QQuickFramebufferObject::Renderer
- size=16 align=8
- base size=16 base align=8
-QQuickFramebufferObject::Renderer (0x0x7f22b8125f00) 0
- vptr=((& QQuickFramebufferObject::Renderer::_ZTVN23QQuickFramebufferObject8RendererE) + 16)
-
-Vtable for QQuickFramebufferObject
-QQuickFramebufferObject::_ZTV23QQuickFramebufferObject: 56 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI23QQuickFramebufferObject)
-16 (int (*)(...))QQuickFramebufferObject::metaObject
-24 (int (*)(...))QQuickFramebufferObject::qt_metacast
-32 (int (*)(...))QQuickFramebufferObject::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickFramebufferObject::isTextureProvider
-152 (int (*)(...))QQuickFramebufferObject::textureProvider
-160 (int (*)(...))QQuickItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickFramebufferObject::geometryChanged
-368 (int (*)(...))QQuickFramebufferObject::updatePaintNode
-376 (int (*)(...))QQuickFramebufferObject::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))-16
-408 (int (*)(...))(& _ZTI23QQuickFramebufferObject)
-416 0
-424 0
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-440 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickFramebufferObject
- size=32 align=8
- base size=32 base align=8
-QQuickFramebufferObject (0x0x7f22b973dd00) 0
- vptr=((& QQuickFramebufferObject::_ZTV23QQuickFramebufferObject) + 16)
- QQuickItem (0x0x7f22c0ff9d20) 0
- primary-for QQuickFramebufferObject (0x0x7f22b973dd00)
- QObject (0x0x7f22b8125de0) 0
- primary-for QQuickItem (0x0x7f22c0ff9d20)
- QQmlParserStatus (0x0x7f22b8125e40) 16
- vptr=((& QQuickFramebufferObject::_ZTV23QQuickFramebufferObject) + 416)
-
-Class QQuickTextureFactory::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTextureFactory::QPrivateSignal (0x0x7f22b7bc1180) 0 empty
-
-Vtable for QQuickTextureFactory
-QQuickTextureFactory::_ZTV20QQuickTextureFactory: 18 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QQuickTextureFactory)
-16 (int (*)(...))QQuickTextureFactory::metaObject
-24 (int (*)(...))QQuickTextureFactory::qt_metacast
-32 (int (*)(...))QQuickTextureFactory::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))QQuickTextureFactory::image
-
-Class QQuickTextureFactory
- size=16 align=8
- base size=16 base align=8
-QQuickTextureFactory (0x0x7f22b973dd68) 0
- vptr=((& QQuickTextureFactory::_ZTV20QQuickTextureFactory) + 16)
- QObject (0x0x7f22b7bc1120) 0
- primary-for QQuickTextureFactory (0x0x7f22b973dd68)
-
-Class QQuickImageResponse::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickImageResponse::QPrivateSignal (0x0x7f22b7bc1300) 0 empty
-
-Vtable for QQuickImageResponse
-QQuickImageResponse::_ZTV19QQuickImageResponse: 17 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickImageResponse)
-16 (int (*)(...))QQuickImageResponse::metaObject
-24 (int (*)(...))QQuickImageResponse::qt_metacast
-32 (int (*)(...))QQuickImageResponse::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))QQuickImageResponse::errorString
-128 (int (*)(...))QQuickImageResponse::cancel
-
-Class QQuickImageResponse
- size=16 align=8
- base size=16 base align=8
-QQuickImageResponse (0x0x7f22b973ddd0) 0
- vptr=((& QQuickImageResponse::_ZTV19QQuickImageResponse) + 16)
- QObject (0x0x7f22b7bc12a0) 0
- primary-for QQuickImageResponse (0x0x7f22b973ddd0)
-
-Vtable for QQuickImageProvider
-QQuickImageProvider::_ZTV19QQuickImageProvider: 9 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickImageProvider)
-16 (int (*)(...))QQuickImageProvider::~QQuickImageProvider
-24 (int (*)(...))QQuickImageProvider::~QQuickImageProvider
-32 (int (*)(...))QQuickImageProvider::imageType
-40 (int (*)(...))QQuickImageProvider::flags
-48 (int (*)(...))QQuickImageProvider::requestImage
-56 (int (*)(...))QQuickImageProvider::requestPixmap
-64 (int (*)(...))QQuickImageProvider::requestTexture
-
-Class QQuickImageProvider
- size=16 align=8
- base size=16 base align=8
-QQuickImageProvider (0x0x7f22b973de38) 0
- vptr=((& QQuickImageProvider::_ZTV19QQuickImageProvider) + 16)
- QQmlImageProviderBase (0x0x7f22b7bc14e0) 0 nearly-empty
- primary-for QQuickImageProvider (0x0x7f22b973de38)
-
-Vtable for QQuickAsyncImageProvider
-QQuickAsyncImageProvider::_ZTV24QQuickAsyncImageProvider: 10 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QQuickAsyncImageProvider)
-16 0
-24 0
-32 (int (*)(...))QQuickImageProvider::imageType
-40 (int (*)(...))QQuickImageProvider::flags
-48 (int (*)(...))QQuickImageProvider::requestImage
-56 (int (*)(...))QQuickImageProvider::requestPixmap
-64 (int (*)(...))QQuickImageProvider::requestTexture
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QQuickAsyncImageProvider
- size=24 align=8
- base size=24 base align=8
-QQuickAsyncImageProvider (0x0x7f22b973dea0) 0
- vptr=((& QQuickAsyncImageProvider::_ZTV24QQuickAsyncImageProvider) + 16)
- QQuickImageProvider (0x0x7f22b973df08) 0
- primary-for QQuickAsyncImageProvider (0x0x7f22b973dea0)
- QQmlImageProviderBase (0x0x7f22b7bc1720) 0 nearly-empty
- primary-for QQuickImageProvider (0x0x7f22b973df08)
-
-Class QQuickItemGrabResult::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickItemGrabResult::QPrivateSignal (0x0x7f22b7bc17e0) 0 empty
-
-Vtable for QQuickItemGrabResult
-QQuickItemGrabResult::_ZTV20QQuickItemGrabResult: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QQuickItemGrabResult)
-16 (int (*)(...))QQuickItemGrabResult::metaObject
-24 (int (*)(...))QQuickItemGrabResult::qt_metacast
-32 (int (*)(...))QQuickItemGrabResult::qt_metacall
-40 (int (*)(...))QQuickItemGrabResult::~QQuickItemGrabResult
-48 (int (*)(...))QQuickItemGrabResult::~QQuickItemGrabResult
-56 (int (*)(...))QQuickItemGrabResult::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQuickItemGrabResult
- size=16 align=8
- base size=16 base align=8
-QQuickItemGrabResult (0x0x7f22b973df70) 0
- vptr=((& QQuickItemGrabResult::_ZTV20QQuickItemGrabResult) + 16)
- QObject (0x0x7f22b7bc1780) 0
- primary-for QQuickItemGrabResult (0x0x7f22b973df70)
-
-Class QQuickPaintedItem::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickPaintedItem::QPrivateSignal (0x0x7f22b7bc1a80) 0 empty
-
-Vtable for QQuickPaintedItem
-QQuickPaintedItem::_ZTV17QQuickPaintedItem: 56 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QQuickPaintedItem)
-16 (int (*)(...))QQuickPaintedItem::metaObject
-24 (int (*)(...))QQuickPaintedItem::qt_metacast
-32 (int (*)(...))QQuickPaintedItem::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QQuickItem::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickItem::boundingRect
-120 (int (*)(...))QQuickItem::clipRect
-128 (int (*)(...))QQuickItem::contains
-136 (int (*)(...))QQuickItem::inputMethodQuery
-144 (int (*)(...))QQuickPaintedItem::isTextureProvider
-152 (int (*)(...))QQuickPaintedItem::textureProvider
-160 (int (*)(...))QQuickPaintedItem::itemChange
-168 (int (*)(...))QQuickItem::classBegin
-176 (int (*)(...))QQuickItem::componentComplete
-184 (int (*)(...))QQuickItem::keyPressEvent
-192 (int (*)(...))QQuickItem::keyReleaseEvent
-200 (int (*)(...))QQuickItem::inputMethodEvent
-208 (int (*)(...))QQuickItem::focusInEvent
-216 (int (*)(...))QQuickItem::focusOutEvent
-224 (int (*)(...))QQuickItem::mousePressEvent
-232 (int (*)(...))QQuickItem::mouseMoveEvent
-240 (int (*)(...))QQuickItem::mouseReleaseEvent
-248 (int (*)(...))QQuickItem::mouseDoubleClickEvent
-256 (int (*)(...))QQuickItem::mouseUngrabEvent
-264 (int (*)(...))QQuickItem::touchUngrabEvent
-272 (int (*)(...))QQuickItem::wheelEvent
-280 (int (*)(...))QQuickItem::touchEvent
-288 (int (*)(...))QQuickItem::hoverEnterEvent
-296 (int (*)(...))QQuickItem::hoverMoveEvent
-304 (int (*)(...))QQuickItem::hoverLeaveEvent
-312 (int (*)(...))QQuickItem::dragEnterEvent
-320 (int (*)(...))QQuickItem::dragMoveEvent
-328 (int (*)(...))QQuickItem::dragLeaveEvent
-336 (int (*)(...))QQuickItem::dropEvent
-344 (int (*)(...))QQuickItem::childMouseEventFilter
-352 (int (*)(...))QQuickItem::windowDeactivateEvent
-360 (int (*)(...))QQuickItem::geometryChanged
-368 (int (*)(...))QQuickPaintedItem::updatePaintNode
-376 (int (*)(...))QQuickPaintedItem::releaseResources
-384 (int (*)(...))QQuickItem::updatePolish
-392 (int (*)(...))__cxa_pure_virtual
-400 (int (*)(...))-16
-408 (int (*)(...))(& _ZTI17QQuickPaintedItem)
-416 0
-424 0
-432 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem10classBeginEv
-440 (int (*)(...))QQuickItem::_ZThn16_N10QQuickItem17componentCompleteEv
-
-Class QQuickPaintedItem
- size=32 align=8
- base size=32 base align=8
-QQuickPaintedItem (0x0x7f22b79fd000) 0
- vptr=((& QQuickPaintedItem::_ZTV17QQuickPaintedItem) + 16)
- QQuickItem (0x0x7f22c102d3f0) 0
- primary-for QQuickPaintedItem (0x0x7f22b79fd000)
- QObject (0x0x7f22b7bc19c0) 0
- primary-for QQuickItem (0x0x7f22c102d3f0)
- QQmlParserStatus (0x0x7f22b7bc1a20) 16
- vptr=((& QQuickPaintedItem::_ZTV17QQuickPaintedItem) + 416)
-
-Class QQuickRenderControl::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickRenderControl::QPrivateSignal (0x0x7f22b7a2e540) 0 empty
-
-Vtable for QQuickRenderControl
-QQuickRenderControl::_ZTV19QQuickRenderControl: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QQuickRenderControl)
-16 (int (*)(...))QQuickRenderControl::metaObject
-24 (int (*)(...))QQuickRenderControl::qt_metacast
-32 (int (*)(...))QQuickRenderControl::qt_metacall
-40 (int (*)(...))QQuickRenderControl::~QQuickRenderControl
-48 (int (*)(...))QQuickRenderControl::~QQuickRenderControl
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QQuickRenderControl::renderWindow
-
-Class QQuickRenderControl
- size=16 align=8
- base size=16 base align=8
-QQuickRenderControl (0x0x7f22b79fd1a0) 0
- vptr=((& QQuickRenderControl::_ZTV19QQuickRenderControl) + 16)
- QObject (0x0x7f22b7a2e4e0) 0
- primary-for QQuickRenderControl (0x0x7f22b79fd1a0)
-
-Class QQuickTextDocument::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickTextDocument::QPrivateSignal (0x0x7f22b7a2e7e0) 0 empty
-
-Vtable for QQuickTextDocument
-QQuickTextDocument::_ZTV18QQuickTextDocument: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QQuickTextDocument)
-16 (int (*)(...))QQuickTextDocument::metaObject
-24 (int (*)(...))QQuickTextDocument::qt_metacast
-32 (int (*)(...))QQuickTextDocument::qt_metacall
-40 (int (*)(...))QQuickTextDocument::~QQuickTextDocument
-48 (int (*)(...))QQuickTextDocument::~QQuickTextDocument
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QQuickTextDocument
- size=16 align=8
- base size=16 base align=8
-QQuickTextDocument (0x0x7f22b79fd208) 0
- vptr=((& QQuickTextDocument::_ZTV18QQuickTextDocument) + 16)
- QObject (0x0x7f22b7a2e780) 0
- primary-for QQuickTextDocument (0x0x7f22b79fd208)
-
-Class QSGGeometry::Attribute
- size=16 align=4
- base size=16 base align=4
-QSGGeometry::Attribute (0x0x7f22b7a2ee40) 0
-
-Class QSGGeometry::AttributeSet
- size=16 align=8
- base size=16 base align=8
-QSGGeometry::AttributeSet (0x0x7f22b7a2eea0) 0
-
-Class QSGGeometry::Point2D
- size=8 align=4
- base size=8 base align=4
-QSGGeometry::Point2D (0x0x7f22b7a2ef00) 0
-
-Class QSGGeometry::TexturedPoint2D
- size=16 align=4
- base size=16 base align=4
-QSGGeometry::TexturedPoint2D (0x0x7f22b7a2ef60) 0
-
-Class QSGGeometry::ColoredPoint2D
- size=12 align=4
- base size=12 base align=4
-QSGGeometry::ColoredPoint2D (0x0x7f22b691d000) 0
-
-Vtable for QSGGeometry
-QSGGeometry::_ZTV11QSGGeometry: 4 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGGeometry)
-16 (int (*)(...))QSGGeometry::~QSGGeometry
-24 (int (*)(...))QSGGeometry::~QSGGeometry
-
-Class QSGGeometry
- size=128 align=8
- base size=128 base align=8
-QSGGeometry (0x0x7f22b7a2ede0) 0
- vptr=((& QSGGeometry::_ZTV11QSGGeometry) + 16)
-
-Vtable for QSGNode
-QSGNode::_ZTV7QSGNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI7QSGNode)
-16 (int (*)(...))QSGNode::~QSGNode
-24 (int (*)(...))QSGNode::~QSGNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGNode
- size=80 align=8
- base size=80 base align=8
-QSGNode (0x0x7f22bb8cf000) 0
- vptr=((& QSGNode::_ZTV7QSGNode) + 16)
-
-Vtable for QSGBasicGeometryNode
-QSGBasicGeometryNode::_ZTV20QSGBasicGeometryNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGBasicGeometryNode)
-16 (int (*)(...))QSGBasicGeometryNode::~QSGBasicGeometryNode
-24 (int (*)(...))QSGBasicGeometryNode::~QSGBasicGeometryNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGBasicGeometryNode
- size=112 align=8
- base size=112 base align=8
-QSGBasicGeometryNode (0x0x7f22b79fd8f0) 0
- vptr=((& QSGBasicGeometryNode::_ZTV20QSGBasicGeometryNode) + 16)
- QSGNode (0x0x7f22bb8cf960) 0
- primary-for QSGBasicGeometryNode (0x0x7f22b79fd8f0)
-
-Vtable for QSGGeometryNode
-QSGGeometryNode::_ZTV15QSGGeometryNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI15QSGGeometryNode)
-16 (int (*)(...))QSGGeometryNode::~QSGGeometryNode
-24 (int (*)(...))QSGGeometryNode::~QSGGeometryNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGGeometryNode
- size=144 align=8
- base size=144 base align=8
-QSGGeometryNode (0x0x7f22b79fd958) 0
- vptr=((& QSGGeometryNode::_ZTV15QSGGeometryNode) + 16)
- QSGBasicGeometryNode (0x0x7f22b79fd9c0) 0
- primary-for QSGGeometryNode (0x0x7f22b79fd958)
- QSGNode (0x0x7f22bb8cfc00) 0
- primary-for QSGBasicGeometryNode (0x0x7f22b79fd9c0)
-
-Vtable for QSGClipNode
-QSGClipNode::_ZTV11QSGClipNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGClipNode)
-16 (int (*)(...))QSGClipNode::~QSGClipNode
-24 (int (*)(...))QSGClipNode::~QSGClipNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGClipNode
- size=152 align=8
- base size=152 base align=8
-QSGClipNode (0x0x7f22b79fda28) 0
- vptr=((& QSGClipNode::_ZTV11QSGClipNode) + 16)
- QSGBasicGeometryNode (0x0x7f22b79fda90) 0
- primary-for QSGClipNode (0x0x7f22b79fda28)
- QSGNode (0x0x7f22bb8cfde0) 0
- primary-for QSGBasicGeometryNode (0x0x7f22b79fda90)
-
-Vtable for QSGTransformNode
-QSGTransformNode::_ZTV16QSGTransformNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGTransformNode)
-16 (int (*)(...))QSGTransformNode::~QSGTransformNode
-24 (int (*)(...))QSGTransformNode::~QSGTransformNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGTransformNode
- size=216 align=8
- base size=216 base align=8
-QSGTransformNode (0x0x7f22b79fdaf8) 0
- vptr=((& QSGTransformNode::_ZTV16QSGTransformNode) + 16)
- QSGNode (0x0x7f22bb8cff00) 0
- primary-for QSGTransformNode (0x0x7f22b79fdaf8)
-
-Vtable for QSGRootNode
-QSGRootNode::_ZTV11QSGRootNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGRootNode)
-16 (int (*)(...))QSGRootNode::~QSGRootNode
-24 (int (*)(...))QSGRootNode::~QSGRootNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGRootNode
- size=88 align=8
- base size=88 base align=8
-QSGRootNode (0x0x7f22b79fdb60) 0
- vptr=((& QSGRootNode::_ZTV11QSGRootNode) + 16)
- QSGNode (0x0x7f22b77ff060) 0
- primary-for QSGRootNode (0x0x7f22b79fdb60)
-
-Vtable for QSGOpacityNode
-QSGOpacityNode::_ZTV14QSGOpacityNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QSGOpacityNode)
-16 (int (*)(...))QSGOpacityNode::~QSGOpacityNode
-24 (int (*)(...))QSGOpacityNode::~QSGOpacityNode
-32 (int (*)(...))QSGOpacityNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGOpacityNode
- size=96 align=8
- base size=96 base align=8
-QSGOpacityNode (0x0x7f22b79fdc30) 0
- vptr=((& QSGOpacityNode::_ZTV14QSGOpacityNode) + 16)
- QSGNode (0x0x7f22b77ff1e0) 0
- primary-for QSGOpacityNode (0x0x7f22b79fdc30)
-
-Vtable for QSGNodeVisitor
-QSGNodeVisitor::_ZTV14QSGNodeVisitor: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI14QSGNodeVisitor)
-16 (int (*)(...))QSGNodeVisitor::~QSGNodeVisitor
-24 (int (*)(...))QSGNodeVisitor::~QSGNodeVisitor
-32 (int (*)(...))QSGNodeVisitor::enterTransformNode
-40 (int (*)(...))QSGNodeVisitor::leaveTransformNode
-48 (int (*)(...))QSGNodeVisitor::enterClipNode
-56 (int (*)(...))QSGNodeVisitor::leaveClipNode
-64 (int (*)(...))QSGNodeVisitor::enterGeometryNode
-72 (int (*)(...))QSGNodeVisitor::leaveGeometryNode
-80 (int (*)(...))QSGNodeVisitor::enterOpacityNode
-88 (int (*)(...))QSGNodeVisitor::leaveOpacityNode
-96 (int (*)(...))QSGNodeVisitor::visitNode
-104 (int (*)(...))QSGNodeVisitor::visitChildren
-
-Class QSGNodeVisitor
- size=8 align=8
- base size=8 base align=8
-QSGNodeVisitor (0x0x7f22b77ff300) 0 nearly-empty
- vptr=((& QSGNodeVisitor::_ZTV14QSGNodeVisitor) + 16)
-
-Vtable for QSGRendererInterface
-QSGRendererInterface::_ZTV20QSGRendererInterface: 10 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGRendererInterface)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))QSGRendererInterface::getResource
-48 (int (*)(...))QSGRendererInterface::getResource
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QSGRendererInterface
- size=8 align=8
- base size=8 base align=8
-QSGRendererInterface (0x0x7f22b7846120) 0 nearly-empty
- vptr=((& QSGRendererInterface::_ZTV20QSGRendererInterface) + 16)
-
-Class QQuickWindow::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickWindow::QPrivateSignal (0x0x7f22b747d000) 0 empty
-
-Vtable for QQuickWindow
-QQuickWindow::_ZTV12QQuickWindow: 45 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QQuickWindow)
-16 (int (*)(...))QQuickWindow::metaObject
-24 (int (*)(...))QQuickWindow::qt_metacast
-32 (int (*)(...))QQuickWindow::qt_metacall
-40 (int (*)(...))QQuickWindow::~QQuickWindow
-48 (int (*)(...))QQuickWindow::~QQuickWindow
-56 (int (*)(...))QQuickWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QQuickWindow::accessibleRoot
-144 (int (*)(...))QQuickWindow::focusObject
-152 (int (*)(...))QQuickWindow::exposeEvent
-160 (int (*)(...))QQuickWindow::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QQuickWindow::focusInEvent
-184 (int (*)(...))QQuickWindow::focusOutEvent
-192 (int (*)(...))QQuickWindow::showEvent
-200 (int (*)(...))QQuickWindow::hideEvent
-208 (int (*)(...))QQuickWindow::keyPressEvent
-216 (int (*)(...))QQuickWindow::keyReleaseEvent
-224 (int (*)(...))QQuickWindow::mousePressEvent
-232 (int (*)(...))QQuickWindow::mouseReleaseEvent
-240 (int (*)(...))QQuickWindow::mouseDoubleClickEvent
-248 (int (*)(...))QQuickWindow::mouseMoveEvent
-256 (int (*)(...))QQuickWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI12QQuickWindow)
-312 (int (*)(...))QQuickWindow::_ZThn16_N12QQuickWindowD1Ev
-320 (int (*)(...))QQuickWindow::_ZThn16_N12QQuickWindowD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QQuickWindow
- size=40 align=8
- base size=40 base align=8
-QQuickWindow (0x0x7f22b79fde38) 0
- vptr=((& QQuickWindow::_ZTV12QQuickWindow) + 16)
- QWindow (0x0x7f22c0beb0e0) 0
- primary-for QQuickWindow (0x0x7f22b79fde38)
- QObject (0x0x7f22b7846f00) 0
- primary-for QWindow (0x0x7f22c0beb0e0)
- QSurface (0x0x7f22b7846f60) 16
- vptr=((& QQuickWindow::_ZTV12QQuickWindow) + 312)
-
-Class QQuickView::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QQuickView::QPrivateSignal (0x0x7f22b747da20) 0 empty
-
-Vtable for QQuickView
-QQuickView::_ZTV10QQuickView: 45 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QQuickView)
-16 (int (*)(...))QQuickView::metaObject
-24 (int (*)(...))QQuickView::qt_metacast
-32 (int (*)(...))QQuickView::qt_metacall
-40 (int (*)(...))QQuickView::~QQuickView
-48 (int (*)(...))QQuickView::~QQuickView
-56 (int (*)(...))QQuickWindow::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QQuickView::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))QWindow::surfaceType
-120 (int (*)(...))QWindow::format
-128 (int (*)(...))QWindow::size
-136 (int (*)(...))QQuickWindow::accessibleRoot
-144 (int (*)(...))QQuickWindow::focusObject
-152 (int (*)(...))QQuickWindow::exposeEvent
-160 (int (*)(...))QQuickView::resizeEvent
-168 (int (*)(...))QWindow::moveEvent
-176 (int (*)(...))QQuickWindow::focusInEvent
-184 (int (*)(...))QQuickWindow::focusOutEvent
-192 (int (*)(...))QQuickWindow::showEvent
-200 (int (*)(...))QQuickWindow::hideEvent
-208 (int (*)(...))QQuickView::keyPressEvent
-216 (int (*)(...))QQuickView::keyReleaseEvent
-224 (int (*)(...))QQuickView::mousePressEvent
-232 (int (*)(...))QQuickView::mouseReleaseEvent
-240 (int (*)(...))QQuickWindow::mouseDoubleClickEvent
-248 (int (*)(...))QQuickView::mouseMoveEvent
-256 (int (*)(...))QQuickWindow::wheelEvent
-264 (int (*)(...))QWindow::touchEvent
-272 (int (*)(...))QWindow::tabletEvent
-280 (int (*)(...))QWindow::nativeEvent
-288 (int (*)(...))QWindow::surfaceHandle
-296 (int (*)(...))-16
-304 (int (*)(...))(& _ZTI10QQuickView)
-312 (int (*)(...))QQuickView::_ZThn16_N10QQuickViewD1Ev
-320 (int (*)(...))QQuickView::_ZThn16_N10QQuickViewD0Ev
-328 (int (*)(...))QWindow::_ZThn16_NK7QWindow6formatEv
-336 (int (*)(...))QWindow::_ZThn16_NK7QWindow13surfaceHandleEv
-344 (int (*)(...))QWindow::_ZThn16_NK7QWindow11surfaceTypeEv
-352 (int (*)(...))QWindow::_ZThn16_NK7QWindow4sizeEv
-
-Class QQuickView
- size=40 align=8
- base size=40 base align=8
-QQuickView (0x0x7f22b79fdf70) 0
- vptr=((& QQuickView::_ZTV10QQuickView) + 16)
- QQuickWindow (0x0x7f22b74b5000) 0
- primary-for QQuickView (0x0x7f22b79fdf70)
- QWindow (0x0x7f22c0c04310) 0
- primary-for QQuickWindow (0x0x7f22b74b5000)
- QObject (0x0x7f22b747d960) 0
- primary-for QWindow (0x0x7f22c0c04310)
- QSurface (0x0x7f22b747d9c0) 16
- vptr=((& QQuickView::_ZTV10QQuickView) + 312)
-
-Class QSGAbstractRenderer::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGAbstractRenderer::QPrivateSignal (0x0x7f22b747dde0) 0 empty
-
-Vtable for QSGAbstractRenderer
-QSGAbstractRenderer::_ZTV19QSGAbstractRenderer: 16 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI19QSGAbstractRenderer)
-16 (int (*)(...))QSGAbstractRenderer::metaObject
-24 (int (*)(...))QSGAbstractRenderer::qt_metacast
-32 (int (*)(...))QSGAbstractRenderer::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-
-Class QSGAbstractRenderer
- size=16 align=8
- base size=16 base align=8
-QSGAbstractRenderer (0x0x7f22b74b5068) 0
- vptr=((& QSGAbstractRenderer::_ZTV19QSGAbstractRenderer) + 16)
- QObject (0x0x7f22b747dd80) 0
- primary-for QSGAbstractRenderer (0x0x7f22b74b5068)
-
-Class QSGEngine::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGEngine::QPrivateSignal (0x0x7f22b74de8a0) 0 empty
-
-Vtable for QSGEngine
-QSGEngine::_ZTV9QSGEngine: 14 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI9QSGEngine)
-16 (int (*)(...))QSGEngine::metaObject
-24 (int (*)(...))QSGEngine::qt_metacast
-32 (int (*)(...))QSGEngine::qt_metacall
-40 (int (*)(...))QSGEngine::~QSGEngine
-48 (int (*)(...))QSGEngine::~QSGEngine
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-
-Class QSGEngine
- size=16 align=8
- base size=16 base align=8
-QSGEngine (0x0x7f22b74b51a0) 0
- vptr=((& QSGEngine::_ZTV9QSGEngine) + 16)
- QObject (0x0x7f22b74de840) 0
- primary-for QSGEngine (0x0x7f22b74b51a0)
-
-Class QSGMaterialShader::RenderState
- size=16 align=8
- base size=16 base align=8
-QSGMaterialShader::RenderState (0x0x7f22b74def60) 0
-
-Vtable for QSGMaterialShader
-QSGMaterialShader::_ZTV17QSGMaterialShader: 12 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGMaterialShader)
-16 0
-24 0
-32 (int (*)(...))QSGMaterialShader::activate
-40 (int (*)(...))QSGMaterialShader::deactivate
-48 (int (*)(...))QSGMaterialShader::updateState
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))QSGMaterialShader::compile
-72 (int (*)(...))QSGMaterialShader::initialize
-80 (int (*)(...))QSGMaterialShader::vertexShader
-88 (int (*)(...))QSGMaterialShader::fragmentShader
-
-Class QSGMaterialShader
- size=32 align=8
- base size=32 base align=8
-QSGMaterialShader (0x0x7f22b74def00) 0
- vptr=((& QSGMaterialShader::_ZTV17QSGMaterialShader) + 16)
-
-Class QSGMaterialType
- size=1 align=1
- base size=0 base align=1
-QSGMaterialType (0x0x7f22b7517540) 0 empty
-
-Vtable for QSGMaterial
-QSGMaterial::_ZTV11QSGMaterial: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI11QSGMaterial)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))QSGMaterial::compare
-
-Class QSGMaterial
- size=24 align=8
- base size=24 base align=8
-QSGMaterial (0x0x7f22b75175a0) 0
- vptr=((& QSGMaterial::_ZTV11QSGMaterial) + 16)
-
-Vtable for QSGFlatColorMaterial
-QSGFlatColorMaterial::_ZTV20QSGFlatColorMaterial: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGFlatColorMaterial)
-16 (int (*)(...))QSGFlatColorMaterial::~QSGFlatColorMaterial
-24 (int (*)(...))QSGFlatColorMaterial::~QSGFlatColorMaterial
-32 (int (*)(...))QSGFlatColorMaterial::type
-40 (int (*)(...))QSGFlatColorMaterial::createShader
-48 (int (*)(...))QSGFlatColorMaterial::compare
-
-Class QSGFlatColorMaterial
- size=40 align=8
- base size=40 base align=8
-QSGFlatColorMaterial (0x0x7f22b74b54e0) 0
- vptr=((& QSGFlatColorMaterial::_ZTV20QSGFlatColorMaterial) + 16)
- QSGMaterial (0x0x7f22b75582a0) 0
- primary-for QSGFlatColorMaterial (0x0x7f22b74b54e0)
-
-Class QSGTexture::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGTexture::QPrivateSignal (0x0x7f22b75583c0) 0 empty
-
-Vtable for QSGTexture
-QSGTexture::_ZTV10QSGTexture: 22 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI10QSGTexture)
-16 (int (*)(...))QSGTexture::metaObject
-24 (int (*)(...))QSGTexture::qt_metacast
-32 (int (*)(...))QSGTexture::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QSGTexture::normalizedTextureSubRect
-152 (int (*)(...))QSGTexture::isAtlasTexture
-160 (int (*)(...))QSGTexture::removedFromAtlas
-168 (int (*)(...))__cxa_pure_virtual
-
-Class QSGTexture
- size=16 align=8
- base size=16 base align=8
-QSGTexture (0x0x7f22b74b5548) 0
- vptr=((& QSGTexture::_ZTV10QSGTexture) + 16)
- QObject (0x0x7f22b7558360) 0
- primary-for QSGTexture (0x0x7f22b74b5548)
-
-Class QSGDynamicTexture::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGDynamicTexture::QPrivateSignal (0x0x7f22b7558660) 0 empty
-
-Vtable for QSGDynamicTexture
-QSGDynamicTexture::_ZTV17QSGDynamicTexture: 23 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGDynamicTexture)
-16 (int (*)(...))QSGDynamicTexture::metaObject
-24 (int (*)(...))QSGDynamicTexture::qt_metacast
-32 (int (*)(...))QSGDynamicTexture::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))QSGTexture::normalizedTextureSubRect
-152 (int (*)(...))QSGTexture::isAtlasTexture
-160 (int (*)(...))QSGTexture::removedFromAtlas
-168 (int (*)(...))__cxa_pure_virtual
-176 (int (*)(...))__cxa_pure_virtual
-
-Class QSGDynamicTexture
- size=16 align=8
- base size=16 base align=8
-QSGDynamicTexture (0x0x7f22b74b55b0) 0
- vptr=((& QSGDynamicTexture::_ZTV17QSGDynamicTexture) + 16)
- QSGTexture (0x0x7f22b74b5618) 0
- primary-for QSGDynamicTexture (0x0x7f22b74b55b0)
- QObject (0x0x7f22b7558600) 0
- primary-for QSGTexture (0x0x7f22b74b5618)
-
-Vtable for QSGImageNode
-QSGImageNode::_ZTV12QSGImageNode: 20 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI12QSGImageNode)
-16 0
-24 0
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-88 (int (*)(...))__cxa_pure_virtual
-96 (int (*)(...))__cxa_pure_virtual
-104 (int (*)(...))__cxa_pure_virtual
-112 (int (*)(...))__cxa_pure_virtual
-120 (int (*)(...))__cxa_pure_virtual
-128 (int (*)(...))__cxa_pure_virtual
-136 (int (*)(...))__cxa_pure_virtual
-144 (int (*)(...))__cxa_pure_virtual
-152 (int (*)(...))__cxa_pure_virtual
-
-Class QSGImageNode
- size=144 align=8
- base size=144 base align=8
-QSGImageNode (0x0x7f22b74b5680) 0
- vptr=((& QSGImageNode::_ZTV12QSGImageNode) + 16)
- QSGGeometryNode (0x0x7f22b74b56e8) 0
- primary-for QSGImageNode (0x0x7f22b74b5680)
- QSGBasicGeometryNode (0x0x7f22b74b5750) 0
- primary-for QSGGeometryNode (0x0x7f22b74b56e8)
- QSGNode (0x0x7f22b7558780) 0
- primary-for QSGBasicGeometryNode (0x0x7f22b74b5750)
-
-Vtable for QSGNinePatchNode
-QSGNinePatchNode::_ZTV16QSGNinePatchNode: 11 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGNinePatchNode)
-16 0
-24 0
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))__cxa_pure_virtual
-
-Class QSGNinePatchNode
- size=144 align=8
- base size=144 base align=8
-QSGNinePatchNode (0x0x7f22b74b5888) 0
- vptr=((& QSGNinePatchNode::_ZTV16QSGNinePatchNode) + 16)
- QSGGeometryNode (0x0x7f22b74b58f0) 0
- primary-for QSGNinePatchNode (0x0x7f22b74b5888)
- QSGBasicGeometryNode (0x0x7f22b74b5958) 0
- primary-for QSGGeometryNode (0x0x7f22b74b58f0)
- QSGNode (0x0x7f22b7558f60) 0
- primary-for QSGBasicGeometryNode (0x0x7f22b74b5958)
-
-Vtable for QSGRectangleNode
-QSGRectangleNode::_ZTV16QSGRectangleNode: 10 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI16QSGRectangleNode)
-16 0
-24 0
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-
-Class QSGRectangleNode
- size=144 align=8
- base size=144 base align=8
-QSGRectangleNode (0x0x7f22b74b59c0) 0
- vptr=((& QSGRectangleNode::_ZTV16QSGRectangleNode) + 16)
- QSGGeometryNode (0x0x7f22b74b5a28) 0
- primary-for QSGRectangleNode (0x0x7f22b74b59c0)
- QSGBasicGeometryNode (0x0x7f22b74b5a90) 0
- primary-for QSGGeometryNode (0x0x7f22b74b5a28)
- QSGNode (0x0x7f22b7596000) 0
- primary-for QSGBasicGeometryNode (0x0x7f22b74b5a90)
-
-Vtable for QSGRenderNode::RenderState
-QSGRenderNode::RenderState::_ZTVN13QSGRenderNode11RenderStateE: 11 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTIN13QSGRenderNode11RenderStateE)
-16 0
-24 0
-32 (int (*)(...))__cxa_pure_virtual
-40 (int (*)(...))__cxa_pure_virtual
-48 (int (*)(...))__cxa_pure_virtual
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))__cxa_pure_virtual
-72 (int (*)(...))__cxa_pure_virtual
-80 (int (*)(...))QSGRenderNode::RenderState::get
-
-Class QSGRenderNode::RenderState
- size=8 align=8
- base size=8 base align=8
-QSGRenderNode::RenderState (0x0x7f22b7596120) 0 nearly-empty
- vptr=((& QSGRenderNode::RenderState::_ZTVN13QSGRenderNode11RenderStateE) + 16)
-
-Vtable for QSGRenderNode
-QSGRenderNode::_ZTV13QSGRenderNode: 11 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI13QSGRenderNode)
-16 0
-24 0
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-48 (int (*)(...))QSGRenderNode::changedStates
-56 (int (*)(...))__cxa_pure_virtual
-64 (int (*)(...))QSGRenderNode::releaseResources
-72 (int (*)(...))QSGRenderNode::flags
-80 (int (*)(...))QSGRenderNode::rect
-
-Class QSGRenderNode
- size=88 align=8
- base size=88 base align=8
-QSGRenderNode (0x0x7f22b74b5af8) 0
- vptr=((& QSGRenderNode::_ZTV13QSGRenderNode) + 16)
- QSGNode (0x0x7f22b75960c0) 0
- primary-for QSGRenderNode (0x0x7f22b74b5af8)
-
-Vtable for QSGSimpleRectNode
-QSGSimpleRectNode::_ZTV17QSGSimpleRectNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI17QSGSimpleRectNode)
-16 (int (*)(...))QSGSimpleRectNode::~QSGSimpleRectNode
-24 (int (*)(...))QSGSimpleRectNode::~QSGSimpleRectNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGSimpleRectNode
- size=320 align=8
- base size=320 base align=8
-QSGSimpleRectNode (0x0x7f22b74b5f70) 0
- vptr=((& QSGSimpleRectNode::_ZTV17QSGSimpleRectNode) + 16)
- QSGGeometryNode (0x0x7f22b75f6000) 0
- primary-for QSGSimpleRectNode (0x0x7f22b74b5f70)
- QSGBasicGeometryNode (0x0x7f22b75f6068) 0
- primary-for QSGGeometryNode (0x0x7f22b75f6000)
- QSGNode (0x0x7f22b75d3840) 0
- primary-for QSGBasicGeometryNode (0x0x7f22b75f6068)
-
-Vtable for QSGOpaqueTextureMaterial
-QSGOpaqueTextureMaterial::_ZTV24QSGOpaqueTextureMaterial: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI24QSGOpaqueTextureMaterial)
-16 (int (*)(...))QSGOpaqueTextureMaterial::~QSGOpaqueTextureMaterial
-24 (int (*)(...))QSGOpaqueTextureMaterial::~QSGOpaqueTextureMaterial
-32 (int (*)(...))QSGOpaqueTextureMaterial::type
-40 (int (*)(...))QSGOpaqueTextureMaterial::createShader
-48 (int (*)(...))QSGOpaqueTextureMaterial::compare
-
-Class QSGOpaqueTextureMaterial
- size=40 align=8
- base size=36 base align=8
-QSGOpaqueTextureMaterial (0x0x7f22b75f60d0) 0
- vptr=((& QSGOpaqueTextureMaterial::_ZTV24QSGOpaqueTextureMaterial) + 16)
- QSGMaterial (0x0x7f22b75d3900) 0
- primary-for QSGOpaqueTextureMaterial (0x0x7f22b75f60d0)
-
-Vtable for QSGTextureMaterial
-QSGTextureMaterial::_ZTV18QSGTextureMaterial: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSGTextureMaterial)
-16 (int (*)(...))QSGTextureMaterial::~QSGTextureMaterial
-24 (int (*)(...))QSGTextureMaterial::~QSGTextureMaterial
-32 (int (*)(...))QSGTextureMaterial::type
-40 (int (*)(...))QSGTextureMaterial::createShader
-48 (int (*)(...))QSGOpaqueTextureMaterial::compare
-
-Class QSGTextureMaterial
- size=40 align=8
- base size=36 base align=8
-QSGTextureMaterial (0x0x7f22b75f6138) 0
- vptr=((& QSGTextureMaterial::_ZTV18QSGTextureMaterial) + 16)
- QSGOpaqueTextureMaterial (0x0x7f22b75f61a0) 0
- primary-for QSGTextureMaterial (0x0x7f22b75f6138)
- QSGMaterial (0x0x7f22b75d3d80) 0
- primary-for QSGOpaqueTextureMaterial (0x0x7f22b75f61a0)
-
-Vtable for QSGSimpleTextureNode
-QSGSimpleTextureNode::_ZTV20QSGSimpleTextureNode: 6 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI20QSGSimpleTextureNode)
-16 (int (*)(...))QSGSimpleTextureNode::~QSGSimpleTextureNode
-24 (int (*)(...))QSGSimpleTextureNode::~QSGSimpleTextureNode
-32 (int (*)(...))QSGNode::isSubtreeBlocked
-40 (int (*)(...))QSGNode::preprocess
-
-Class QSGSimpleTextureNode
- size=384 align=8
- base size=384 base align=8
-QSGSimpleTextureNode (0x0x7f22b75f6208) 0
- vptr=((& QSGSimpleTextureNode::_ZTV20QSGSimpleTextureNode) + 16)
- QSGGeometryNode (0x0x7f22b75f6270) 0
- primary-for QSGSimpleTextureNode (0x0x7f22b75f6208)
- QSGBasicGeometryNode (0x0x7f22b75f62d8) 0
- primary-for QSGGeometryNode (0x0x7f22b75f6270)
- QSGNode (0x0x7f22b75d3de0) 0
- primary-for QSGBasicGeometryNode (0x0x7f22b75f62d8)
-
-Class QSGTextureProvider::QPrivateSignal
- size=1 align=1
- base size=0 base align=1
-QSGTextureProvider::QPrivateSignal (0x0x7f22b7614780) 0 empty
-
-Vtable for QSGTextureProvider
-QSGTextureProvider::_ZTV18QSGTextureProvider: 15 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI18QSGTextureProvider)
-16 (int (*)(...))QSGTextureProvider::metaObject
-24 (int (*)(...))QSGTextureProvider::qt_metacast
-32 (int (*)(...))QSGTextureProvider::qt_metacall
-40 0
-48 0
-56 (int (*)(...))QObject::event
-64 (int (*)(...))QObject::eventFilter
-72 (int (*)(...))QObject::timerEvent
-80 (int (*)(...))QObject::childEvent
-88 (int (*)(...))QObject::customEvent
-96 (int (*)(...))QObject::connectNotify
-104 (int (*)(...))QObject::disconnectNotify
-112 (int (*)(...))__cxa_pure_virtual
-
-Class QSGTextureProvider
- size=16 align=8
- base size=16 base align=8
-QSGTextureProvider (0x0x7f22b75f6478) 0
- vptr=((& QSGTextureProvider::_ZTV18QSGTextureProvider) + 16)
- QObject (0x0x7f22b7614720) 0
- primary-for QSGTextureProvider (0x0x7f22b75f6478)
-
-Vtable for QSGVertexColorMaterial
-QSGVertexColorMaterial::_ZTV22QSGVertexColorMaterial: 7 entries
-0 (int (*)(...))0
-8 (int (*)(...))(& _ZTI22QSGVertexColorMaterial)
-16 (int (*)(...))QSGVertexColorMaterial::~QSGVertexColorMaterial
-24 (int (*)(...))QSGVertexColorMaterial::~QSGVertexColorMaterial
-32 (int (*)(...))QSGVertexColorMaterial::type
-40 (int (*)(...))QSGVertexColorMaterial::createShader
-48 (int (*)(...))QSGVertexColorMaterial::compare
-
-Class QSGVertexColorMaterial
- size=24 align=8
- base size=24 base align=8
-QSGVertexColorMaterial (0x0x7f22b75f64e0) 0
- vptr=((& QSGVertexColorMaterial::_ZTV22QSGVertexColorMaterial) + 16)
- QSGMaterial (0x0x7f22b76148a0) 0
- primary-for QSGVertexColorMaterial (0x0x7f22b75f64e0)
-
-Class QQuickStyle
- size=1 align=1
- base size=0 base align=1
-QQuickStyle (0x0x7f22b7614900) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b7250c00) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b7250f60) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = long int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = long int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b7270180) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = long int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = long int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b72704e0) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long unsigned int; _Ret = long unsigned int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long unsigned int; _Ret = long unsigned int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b72706c0) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long unsigned int; _Ret = long unsigned int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long unsigned int; _Ret = long unsigned int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b7270a20) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long int; _Ret = long long int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long int; _Ret = long long int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b7270c00) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long int; _Ret = long long int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long int; _Ret = long long int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b7270f60) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long unsigned int; _Ret = long long unsigned int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long unsigned int; _Ret = long long unsigned int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b729c180) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long unsigned int; _Ret = long long unsigned int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long unsigned int; _Ret = long long unsigned int; _CharT = char; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b729c4e0) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = float; _Ret = float; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = float; _Ret = float; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b729c6c0) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = float; _Ret = float; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = float; _Ret = float; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b729ca20) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = double; _Ret = double; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = double; _Ret = double; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b729cc00) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = double; _Ret = double; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = double; _Ret = double; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b729cf60) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long double; _Ret = long double; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long double; _Ret = long double; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b72c3180) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long double; _Ret = long double; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long double; _Ret = long double; _CharT = char; _Base = {}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b72c34e0) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b72da9c0) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b72dad20) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = long int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = long int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b72daea0) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = long int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long int; _Ret = long int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b72f7240) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long unsigned int; _Ret = long unsigned int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long unsigned int; _Ret = long unsigned int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b72f73c0) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long unsigned int; _Ret = long unsigned int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long unsigned int; _Ret = long unsigned int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b72f7720) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long int; _Ret = long long int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long int; _Ret = long long int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b72f78a0) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long int; _Ret = long long int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long int; _Ret = long long int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b72f7c00) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long unsigned int; _Ret = long long unsigned int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long unsigned int; _Ret = long long unsigned int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b72f7d80) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long unsigned int; _Ret = long long unsigned int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long long unsigned int; _Ret = long long unsigned int; _CharT = wchar_t; _Base = {int}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b731a120) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = float; _Ret = float; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = float; _Ret = float; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b731a2a0) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = float; _Ret = float; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = float; _Ret = float; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b731a600) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = double; _Ret = double; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = double; _Ret = double; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b731a780) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = double; _Ret = double; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = double; _Ret = double; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b731aae0) 0 empty
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long double; _Ret = long double; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Save_errno
- size=4 align=4
- base size=4 base align=4
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long double; _Ret = long double; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Save_errno (0x0x7f22b731ac60) 0
-
-Class __gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long double; _Ret = long double; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Range_chk
- size=1 align=1
- base size=0 base align=1
-__gnu_cxx::__stoa(_TRet (*)(const _CharT*, _CharT**, _Base ...), const char*, const _CharT*, std::size_t*, _Base ...) [with _TRet = long double; _Ret = long double; _CharT = wchar_t; _Base = {}; std::size_t = long unsigned int]::_Range_chk (0x0x7f22b73f3000) 0 empty
-
diff --git a/tests/auto/calendar/calendar.pro b/tests/auto/calendar/calendar.pro
deleted file mode 100644
index 9fdf20ad..00000000
--- a/tests/auto/calendar/calendar.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-TARGET = tst_calendar
-CONFIG += qmltestcase
-
-SOURCES += \
- $$PWD/tst_calendar.cpp
-
-OTHER_FILES += \
- $$PWD/data/*.qml
-
-TESTDATA += \
- $$PWD/data/tst_*
diff --git a/tests/auto/calendar/data/tst_calendarmodel.qml b/tests/auto/calendar/data/tst_calendarmodel.qml
deleted file mode 100644
index ccadd488..00000000
--- a/tests/auto/calendar/data/tst_calendarmodel.qml
+++ /dev/null
@@ -1,125 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQml 2.2
-import Qt.labs.calendar 1.0
-
-TestCase {
- id: testCase
- name: "CalendarModel"
-
- Component {
- id: calendarModel
- CalendarModel { }
- }
-
- Component {
- id: instantiator
- Instantiator {
- model: CalendarModel {
- from: new Date(2016, 0, 1)
- to: new Date(2016, 11, 31)
- }
- QtObject {
- readonly property int month: model.month
- readonly property int year: model.year
- }
- }
- }
-
- function test_indices_data() {
- return [
- { tag: "2013", from: "2013-01-01", to: "2013-12-31", count: 12 },
- { tag: "2016", from: "2016-01-01", to: "2016-03-31", count: 3 }
- ]
- }
-
- function test_indices(data) {
- var model = calendarModel.createObject(testCase, {from: data.from, to: data.to})
- verify(model)
-
- compare(model.count, data.count)
-
- var y = parseInt(data.tag)
- for (var m = 0; m < 12; ++m) {
- compare(model.yearAt(m), y)
- compare(model.indexOf(y, m), m)
- compare(model.indexOf(new Date(y, m, 1)), m)
- compare(model.monthAt(m), m)
- }
-
- model.destroy()
- }
-
- function test_invalid() {
- var model = calendarModel.createObject(testCase)
- verify(model)
-
- compare(model.indexOf(-1, -1), -1)
- compare(model.indexOf(new Date(-1, -1, -1)), -1)
-
- model.destroy()
- }
-
- function test_instantiator() {
- var inst = instantiator.createObject(testCase)
- verify(inst)
-
- compare(inst.count, 12)
- for (var m = 0; m < inst.count; ++m) {
- compare(inst.objectAt(m).month, m)
- compare(inst.objectAt(m).year, 2016)
- }
-
- inst.destroy()
- }
-}
diff --git a/tests/auto/calendar/data/tst_dayofweekrow.qml b/tests/auto/calendar/data/tst_dayofweekrow.qml
deleted file mode 100644
index f6615f78..00000000
--- a/tests/auto/calendar/data/tst_dayofweekrow.qml
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.calendar 1.0
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "DayOfWeekRow"
-
- Component {
- id: component
- DayOfWeekRow { }
- }
-
- function test_locale() {
- var control = component.createObject(testCase)
-
- verify(control.contentItem.children[0])
-
- control.locale = Qt.locale("en_US")
- compare(control.contentItem.children[0].text, "Sun")
-
- control.locale = Qt.locale("no_NO")
- compare(control.contentItem.children[0].text, "man.")
-
- control.locale = Qt.locale("fi_FI")
- compare(control.contentItem.children[0].text, "ma")
-
- control.destroy()
- }
-
- function test_font() {
- var control = component.createObject(testCase)
-
- verify(control.contentItem.children[0])
-
- control.font.pixelSize = 123
- compare(control.contentItem.children[0].font.pixelSize, 123)
-
- control.destroy()
- }
-}
diff --git a/tests/auto/calendar/data/tst_monthgrid.qml b/tests/auto/calendar/data/tst_monthgrid.qml
deleted file mode 100644
index 6d125712..00000000
--- a/tests/auto/calendar/data/tst_monthgrid.qml
+++ /dev/null
@@ -1,284 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.calendar 1.0
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "MonthGrid"
-
- Component {
- id: defaultGrid
- MonthGrid { }
- }
-
- Component {
- id: delegateGrid
- MonthGrid {
- delegate: Item {
- readonly property date date: model.date
- readonly property int day: model.day
- readonly property bool today: model.today
- readonly property int weekNumber: model.weekNumber
- readonly property int month: model.month
- readonly property int year: model.year
- }
- }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_locale() {
- var control = delegateGrid.createObject(testCase, {month: 0, year: 2013})
-
- compare(control.contentItem.children.length, 6 * 7 + 1)
-
- // January 2013
- compare(control.month, 0)
- compare(control.year, 2013)
-
- // en_GB
- control.locale = Qt.locale("en_GB")
- compare(control.locale.name, "en_GB")
-
- // M T W T F S S
- var en_GB = ["2012-12-31", "2013-01-01", "2013-01-02", "2013-01-03", "2013-01-04", "2013-01-05", "2013-01-06",
- "2013-01-07", "2013-01-08", "2013-01-09", "2013-01-10", "2013-01-11", "2013-01-12", "2013-01-13",
- "2013-01-14", "2013-01-15", "2013-01-16", "2013-01-17", "2013-01-18", "2013-01-19", "2013-01-20",
- "2013-01-21", "2013-01-22", "2013-01-23", "2013-01-24", "2013-01-25", "2013-01-26", "2013-01-27",
- "2013-01-28", "2013-01-29", "2013-01-30", "2013-01-31", "2013-02-01", "2013-02-02", "2013-02-03",
- "2013-02-04", "2013-02-05", "2013-02-06", "2013-02-07", "2013-02-08", "2013-02-09", "2013-02-10"]
-
- for (var i = 0; i < 42; ++i) {
- var cellDate = new Date(en_GB[i])
- compare(control.contentItem.children[i].date.getFullYear(), cellDate.getUTCFullYear())
- compare(control.contentItem.children[i].date.getMonth(), cellDate.getUTCMonth())
- compare(control.contentItem.children[i].date.getDate(), cellDate.getUTCDate())
- compare(control.contentItem.children[i].day, cellDate.getUTCDate())
- compare(control.contentItem.children[i].today, cellDate === new Date())
- compare(control.contentItem.children[i].month, cellDate.getUTCMonth())
- compare(control.contentItem.children[i].year, cellDate.getUTCFullYear())
- }
-
- // en_US
- control.locale = Qt.locale("en_US")
- compare(control.locale.name, "en_US")
-
- // S M T W T F S
- var en_US = ["2012-12-30", "2012-12-31", "2013-01-01", "2013-01-02", "2013-01-03", "2013-01-04", "2013-01-05",
- "2013-01-06", "2013-01-07", "2013-01-08", "2013-01-09", "2013-01-10", "2013-01-11", "2013-01-12",
- "2013-01-13", "2013-01-14", "2013-01-15", "2013-01-16", "2013-01-17", "2013-01-18", "2013-01-19",
- "2013-01-20", "2013-01-21", "2013-01-22", "2013-01-23", "2013-01-24", "2013-01-25", "2013-01-26",
- "2013-01-27", "2013-01-28", "2013-01-29", "2013-01-30", "2013-01-31", "2013-02-01", "2013-02-02",
- "2013-02-03", "2013-02-04", "2013-02-05", "2013-02-06", "2013-02-07", "2013-02-08", "2013-02-09"]
-
- for (var j = 0; j < 42; ++j) {
- cellDate = new Date(en_US[j])
- compare(control.contentItem.children[j].date.getFullYear(), cellDate.getUTCFullYear())
- compare(control.contentItem.children[j].date.getMonth(), cellDate.getUTCMonth())
- compare(control.contentItem.children[j].date.getDate(), cellDate.getUTCDate())
- compare(control.contentItem.children[j].day, cellDate.getUTCDate())
- compare(control.contentItem.children[j].today, cellDate === new Date())
- compare(control.contentItem.children[j].month, cellDate.getUTCMonth())
- compare(control.contentItem.children[j].year, cellDate.getUTCFullYear())
- }
-
- control.destroy()
- }
-
- function test_range() {
- var control = defaultGrid.createObject(testCase)
-
- control.month = 0
- compare(control.month, 0)
-
-
- ignoreWarning(/tst_monthgrid.qml:65:9: QML (Abstract)?MonthGrid: month -1 is out of range \[0...11\]$/)
- control.month = -1
- compare(control.month, 0)
-
- control.month = 11
- compare(control.month, 11)
-
- ignoreWarning(/tst_monthgrid.qml:65:9: QML (Abstract)?MonthGrid: month 12 is out of range \[0...11\]$/)
- control.month = 12
- compare(control.month, 11)
-
- control.year = -271820
- compare(control.year, -271820)
-
- ignoreWarning(/tst_monthgrid.qml:65:9: QML (Abstract)?MonthGrid: year -271821 is out of range \[-271820...275759\]$/)
- control.year = -271821
- compare(control.year, -271820)
-
- control.year = 275759
- compare(control.year, 275759)
-
- ignoreWarning(/tst_monthgrid.qml:65:9: QML (Abstract)?MonthGrid: year 275760 is out of range \[-271820...275759\]$/)
- control.year = 275760
- compare(control.year, 275759)
-
- control.destroy()
- }
-
- function test_bce() {
- var control = defaultGrid.createObject(testCase)
-
- compare(control.contentItem.children.length, 6 * 7 + 1)
-
- // fi_FI
- control.locale = Qt.locale("fi_FI")
- compare(control.locale.name, "fi_FI")
-
- // January 1 BCE
- control.month = 0
- compare(control.month, 0)
- control.year = -1
- compare(control.year, -1)
-
- // M T W T F S S
- var jan1bce = [27, 28, 29, 30, 31, 1, 2,
- 3, 4, 5, 6, 7, 8, 9,
- 10, 11, 12, 13, 14, 15, 16,
- 17, 18, 19, 20, 21, 22, 23,
- 24, 25, 26, 27, 28, 29, 30,
- 31, 1, 2, 3, 4, 5, 6]
-
- for (var i = 0; i < 42; ++i)
- compare(control.contentItem.children[i].text, jan1bce[i].toString())
-
- // February 1 BCE
- control.month = 1
- compare(control.month, 1)
- control.year = -1
- compare(control.year, -1)
-
- // M T W T F S S
- var feb1bce = [31, 1, 2, 3, 4, 5, 6,
- 7, 8, 9, 10, 11, 12, 13,
- 14, 15, 16, 17, 18, 19, 20,
- 21, 22, 23, 24, 25, 26, 27,
- 28, 29, 1, 2, 3, 4, 5,
- 6, 7, 8, 9, 10, 11, 12]
-
- for (var j = 0; j < 42; ++j)
- compare(control.contentItem.children[j].text, feb1bce[j].toString())
-
- control.destroy()
- }
-
- function test_font() {
- var control = defaultGrid.createObject(testCase)
-
- verify(control.contentItem.children[0])
-
- control.font.pixelSize = 123
- compare(control.contentItem.children[0].font.pixelSize, 123)
-
- control.destroy()
- }
-
- function test_clicked_data() {
- return [
- { tag: "mouse", touch: false },
- { tag: "touch", touch: true }
- ]
- }
-
- function test_clicked(data) {
- var control = createTemporaryObject(defaultGrid, testCase)
- verify(control)
-
- compare(control.contentItem.children.length, 6 * 7 + 1)
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressed"})
- verify(pressedSpy.valid)
-
- var releasedSpy = signalSpy.createObject(control, {target: control, signalName: "released"})
- verify(releasedSpy.valid)
-
- var clickedSpy = signalSpy.createObject(control, {target: control, signalName: "clicked"})
- verify(clickedSpy.valid)
-
- var touch = touchEvent(control)
-
- for (var i = 0; i < 42; ++i) {
- var cell = control.contentItem.children[i]
- verify(cell)
-
- if (data.touch)
- touch.press(0, cell).commit()
- else
- mousePress(cell)
-
- compare(pressedSpy.count, i + 1)
- compare(releasedSpy.count, i)
- compare(clickedSpy.count, i)
-
- if (data.touch)
- touch.release(0, cell).commit()
- else
- mouseRelease(cell)
-
- compare(pressedSpy.count, i + 1)
- compare(releasedSpy.count, i + 1)
- compare(clickedSpy.count, i + 1)
- }
- }
-}
diff --git a/tests/auto/calendar/data/tst_weeknumbercolumn.qml b/tests/auto/calendar/data/tst_weeknumbercolumn.qml
deleted file mode 100644
index d1b50339..00000000
--- a/tests/auto/calendar/data/tst_weeknumbercolumn.qml
+++ /dev/null
@@ -1,134 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.calendar 1.0
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "WeekNumberColumn"
-
- Component {
- id: component
- WeekNumberColumn { }
- }
-
- function test_locale() {
- var control = component.createObject(testCase)
-
- compare(control.contentItem.children.length, 6 + 1)
-
- control.month = 11
- control.year = 2015
-
- // en_US: [48...53]
- control.locale = Qt.locale("en_US")
- for (var i = 0; i < 6; ++i)
- compare(control.contentItem.children[i].text, (i + 48).toString())
-
- // no_NO: [49...1]
- control.locale = Qt.locale("no_NO")
- for (var j = 0; j < 5; ++j)
- compare(control.contentItem.children[j].text, (j + 49).toString())
- compare(control.contentItem.children[5].text, "1")
-
- control.destroy()
- }
-
- function test_range() {
- var control = component.createObject(testCase)
-
- control.month = 0
- compare(control.month, 0)
-
- ignoreWarning(/tst_weeknumbercolumn.qml:65:9: QML (Abstract)?WeekNumberColumn: month -1 is out of range \[0...11\]$/)
- control.month = -1
- compare(control.month, 0)
-
- control.month = 11
- compare(control.month, 11)
-
- ignoreWarning(/tst_weeknumbercolumn.qml:65:9: QML (Abstract)?WeekNumberColumn: month 12 is out of range \[0...11\]$/)
- control.month = 12
- compare(control.month, 11)
-
- control.year = -271820
- compare(control.year, -271820)
-
- ignoreWarning(/tst_weeknumbercolumn.qml:65:9: QML (Abstract)?WeekNumberColumn: year -271821 is out of range \[-271820...275759\]$/)
- control.year = -271821
- compare(control.year, -271820)
-
- control.year = 275759
- compare(control.year, 275759)
-
- ignoreWarning(/tst_weeknumbercolumn.qml:65:9: QML (Abstract)?WeekNumberColumn: year 275760 is out of range \[-271820...275759\]$/)
- control.year = 275760
- compare(control.year, 275759)
-
- control.destroy()
- }
-
- function test_font() {
- var control = component.createObject(testCase)
-
- verify(control.contentItem.children[0])
-
- control.font.pixelSize = 123
- compare(control.contentItem.children[0].font.pixelSize, 123)
-
- control.destroy()
- }
-}
diff --git a/tests/auto/calendar/tst_calendar.cpp b/tests/auto/calendar/tst_calendar.cpp
deleted file mode 100644
index 0194be62..00000000
--- a/tests/auto/calendar/tst_calendar.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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_calendar)
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt
deleted file mode 100644
index 0c6723dc..00000000
--- a/tests/auto/cmake/CMakeLists.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-cmake_minimum_required(VERSION 2.8)
-
-project(qmake_cmake_files)
-
-enable_testing()
-
-find_package(Qt5Core REQUIRED)
-
-include("${_Qt5CTestMacros}")
-
-test_module_includes(
- QuickControls2 QQuickStyle
-)
diff --git a/tests/auto/cmake/cmake.pro b/tests/auto/cmake/cmake.pro
deleted file mode 100644
index 0a5e7e75..00000000
--- a/tests/auto/cmake/cmake.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-
-# Cause make to do nothing.
-TEMPLATE = subdirs
-
-CMAKE_QT_MODULES_UNDER_TEST = quick qml
-
-CONFIG += ctest_testcase
diff --git a/tests/auto/controls/controls.pro b/tests/auto/controls/controls.pro
deleted file mode 100644
index fd852c4b..00000000
--- a/tests/auto/controls/controls.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- default \
- fusion \
- imagine \
- material \
- universal
diff --git a/tests/auto/controls/data/SignalSequenceSpy.qml b/tests/auto/controls/data/SignalSequenceSpy.qml
deleted file mode 100644
index 531a7f68..00000000
--- a/tests/auto/controls/data/SignalSequenceSpy.qml
+++ /dev/null
@@ -1,147 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-QtObject {
- property QtObject target: null
- // We could just listen to all signals (try { signal.connect(/*...*/) } catch (e))
- // if it weren't for the fact the spy is often declared as a property of the control,
- // which creates a "spyChanged" signal, which leads to an unexpected spyChanged signal
- // emission. However, we don't know what the property will be called, so the signals
- // have to be listed explicitly.
- property var signals: []
- property var expectedSequence: []
- property int sequenceIndex: 0
- property bool sequenceFailure: false
- readonly property bool success: !sequenceFailure && sequenceIndex === expectedSequence.length
-
- function reset() {
- sequenceIndex = 0
- sequenceFailure = false
- }
-
- property QtObject __oldTarget: null
- property var __connections: []
-
- onExpectedSequenceChanged: reset()
-
- // We may call __setup from onTargetChanged and as we would read the signals property
- // inside __setup, we may be initializing the binding for signals for the first time, which
- // will write the value to the property and trigger onSignalsChanged and call __setup
- // again. One easy way to protect against it is to evaluate those two dependencies upfront
- onTargetChanged: __setup(target, signals)
- onSignalsChanged: __setup(target, signals)
-
- function __setup(target, signals) {
- if (__oldTarget) {
- __connections.forEach(function (cx) {
- __oldTarget[cx.name].disconnect(cx.method)
- })
- __oldTarget = null
- }
-
- __connections = []
-
- if (!!target && !!signals && signals.length > 0) {
- signals.forEach(function (signalName) {
- var handlerName = "on" + signalName.substr(0, 1).toUpperCase() + signalName.substr(1)
- var method = function() { __checkSignal(signalName, arguments) }
- target[handlerName].connect(method)
- __connections.push({ "name": handlerName, "method": method })
- })
- __oldTarget = target
- }
- }
-
- function __checkSignal(signalName, signalArgs) {
- if (sequenceFailure)
- return;
-
- if (sequenceIndex >= expectedSequence.length) {
- console.warn("SignalSequenceSpy: Received unexpected signal '" + signalName + "' (none expected).")
- sequenceFailure = true
- return
- }
-
- var expectedSignal = expectedSequence[sequenceIndex]
- if (typeof expectedSignal === "string") {
- if (expectedSignal === signalName) {
- sequenceIndex++
- return
- }
- } else if (typeof expectedSignal === "object") {
- var expectedSignalData = expectedSignal
- expectedSignal = expectedSignalData[0]
- if (expectedSignal === signalName) {
- var expectedValues = expectedSignalData[1]
- for (var p in expectedValues) {
- if (target[p] != expectedValues[p]) {
- console.warn("SignalSequenceSpy: Value mismatch for property '" + p + "' after '" + signalName + "' signal." +
- __mismatchValuesFormat(target[p], expectedValues[p]))
- sequenceFailure = true
- return
- }
- }
- sequenceIndex++
- return
- }
- }
- console.warn("SignalSequenceSpy: Received unexpected signal (is \"" + expectedSignal + "\" listed in the signals array?)" +
- __mismatchValuesFormat(signalName, expectedSignal))
- sequenceFailure = true
- }
-
- function __mismatchValuesFormat(actual, expected) {
- return "\n Actual : " + actual +
- "\n Expected : " + expected +
- "\n Sequence index: " + sequenceIndex
- }
-}
diff --git a/tests/auto/controls/data/TestItem.qml b/tests/auto/controls/data/TestItem.qml
deleted file mode 100644
index 6bd42bac..00000000
--- a/tests/auto/controls/data/TestItem.qml
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: item
- property var createdCallback
- property var destroyedCallback
- Component.onCompleted: if (createdCallback) createdCallback(item)
- Component.onDestruction: if (destroyedCallback) destroyedCallback(item)
-}
diff --git a/tests/auto/controls/data/TumblerDatePicker.qml b/tests/auto/controls/data/TumblerDatePicker.qml
deleted file mode 100644
index 01ff2c03..00000000
--- a/tests/auto/controls/data/TumblerDatePicker.qml
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Row {
- id: datePicker
-
- readonly property var days: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
-
- property alias dayTumbler: dayTumbler
- property alias monthTumbler: monthTumbler
- property alias yearTumbler: yearTumbler
-
- Tumbler {
- id: dayTumbler
- objectName: "dayTumbler"
-
- Component.onCompleted: updateModel()
-
- function updateModel() {
- var previousIndex = dayTumbler.currentIndex;
- var array = [];
- var newDays = datePicker.days[monthTumbler.currentIndex];
- for (var i = 0; i < newDays; ++i) {
- array.push(i + 1);
- }
- dayTumbler.model = array;
- dayTumbler.currentIndex = Math.min(newDays - 1, previousIndex);
- }
- }
- Tumbler {
- id: monthTumbler
- objectName: "monthTumbler"
- model: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
- onCurrentIndexChanged: dayTumbler.updateModel()
- }
- Tumbler {
- id: yearTumbler
- objectName: "yearTumbler"
- model: ListModel {
- objectName: "yearTumblerListModel"
- Component.onCompleted: {
- for (var i = 2000; i < 2100; ++i) {
- append({value: i.toString()});
- }
- }
- }
- }
-}
diff --git a/tests/auto/controls/data/TumblerListView.qml b/tests/auto/controls/data/TumblerListView.qml
deleted file mode 100644
index affaa6cd..00000000
--- a/tests/auto/controls/data/TumblerListView.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ListView {
- anchors.fill: parent
- snapMode: ListView.SnapToItem
- highlightRangeMode: ListView.StrictlyEnforceRange
- preferredHighlightBegin: height / 2 - (height / parent.visibleItemCount / 2)
- preferredHighlightEnd: height / 2 + (height / parent.visibleItemCount / 2)
- clip: true
- model: parent.model
- delegate: Text {
- objectName: text
- text: "Custom" + modelData
- opacity: 1.0 - Math.abs(Tumbler.displacement) / (Tumbler.tumbler.visibleItemCount / 2)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-}
diff --git a/tests/auto/controls/data/TumblerPathView.qml b/tests/auto/controls/data/TumblerPathView.qml
deleted file mode 100644
index 8ea86eae..00000000
--- a/tests/auto/controls/data/TumblerPathView.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-PathView {
- id: pathView
- clip: true
- pathItemCount: parent.visibleItemCount + 1
- preferredHighlightBegin: 0.5
- preferredHighlightEnd: 0.5
- dragMargin: width / 2
- model: parent.model
- delegate: Text {
- objectName: text
- text: "Custom" + modelData
- opacity: 1.0 - Math.abs(Tumbler.displacement) / (Tumbler.tumbler.visibleItemCount / 2)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-
- path: Path {
- startX: pathView.width / 2
- startY: -pathView.delegateHeight / 2
- PathLine {
- x: pathView.width / 2
- y: pathView.pathItemCount * pathView.delegateHeight - pathView.delegateHeight / 2
- }
- }
-
- property real delegateHeight: parent.availableHeight / parent.visibleItemCount
-}
diff --git a/tests/auto/controls/data/splitview/fillItemInMiddle.qml b/tests/auto/controls/data/splitview/fillItemInMiddle.qml
deleted file mode 100644
index 174b6a2a..00000000
--- a/tests/auto/controls/data/splitview/fillItemInMiddle.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Controls 2.13
-
-SplitView {
- anchors.fill: parent
-
- Rectangle {
- objectName: "salmon"
- color: objectName
- implicitWidth: 25
- implicitHeight: 25
- }
- Rectangle {
- objectName: "navajowhite"
- color: objectName
- implicitWidth: 100
- implicitHeight: 100
-
- SplitView.fillWidth: true
- }
- Rectangle {
- objectName: "steelblue"
- color: objectName
- implicitWidth: 200
- implicitHeight: 200
- }
-}
diff --git a/tests/auto/controls/data/splitview/fillItemOnLeft.qml b/tests/auto/controls/data/splitview/fillItemOnLeft.qml
deleted file mode 100644
index dee68eac..00000000
--- a/tests/auto/controls/data/splitview/fillItemOnLeft.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Controls 2.13
-
-SplitView {
- anchors.fill: parent
-
- Rectangle {
- objectName: "salmon"
- color: objectName
- implicitWidth: 25
- implicitHeight: 25
-
- SplitView.fillWidth: true
- }
- Rectangle {
- objectName: "navajowhite"
- color: objectName
- implicitWidth: 200
- implicitHeight: 200
- }
- Rectangle {
- objectName: "steelblue"
- color: objectName
- implicitWidth: 200
- implicitHeight: 200
- }
-}
diff --git a/tests/auto/controls/data/splitview/fillItemOnTop.qml b/tests/auto/controls/data/splitview/fillItemOnTop.qml
deleted file mode 100644
index 2fc6f4d0..00000000
--- a/tests/auto/controls/data/splitview/fillItemOnTop.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Controls 2.13
-
-SplitView {
- anchors.fill: parent
- orientation: Qt.Vertical
-
- Rectangle {
- objectName: "salmon"
- color: objectName
- implicitWidth: 25
- implicitHeight: 25
-
- SplitView.fillHeight: true
- }
- Rectangle {
- objectName: "navajowhite"
- color: objectName
- implicitWidth: 200
- implicitHeight: 200
- }
- Rectangle {
- objectName: "steelblue"
- color: objectName
- implicitWidth: 200
- implicitHeight: 200
- }
-}
diff --git a/tests/auto/controls/data/tst_abstractbutton.qml b/tests/auto/controls/data/tst_abstractbutton.qml
deleted file mode 100644
index ee26a6d6..00000000
--- a/tests/auto/controls/data/tst_abstractbutton.qml
+++ /dev/null
@@ -1,890 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "AbstractButton"
-
- Component {
- id: button
- AbstractButton {}
- }
-
- Component {
- id: item
- Item { }
- }
-
- Component {
- id: action
- Action { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_text() {
- var control = createTemporaryObject(button, testCase);
- verify(control);
-
- compare(control.text, "");
- control.text = "Button";
- compare(control.text, "Button");
- control.text = "";
- compare(control.text, "");
- }
-
- function test_baseline() {
- var control = createTemporaryObject(button, testCase, {padding: 6})
- verify(control)
- compare(control.baselineOffset, 0)
- control.contentItem = item.createObject(control, {baselineOffset: 12})
- compare(control.baselineOffset, 18)
- }
-
- function test_implicitSize() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
-
- compare(control.implicitWidth, 0)
- compare(control.implicitHeight, 0)
-
- control.contentItem = item.createObject(control, {implicitWidth: 10, implicitHeight: 20})
- compare(control.implicitWidth, 10)
- compare(control.implicitHeight, 20)
-
- control.background = item.createObject(control, {implicitWidth: 20, implicitHeight: 30})
- compare(control.implicitWidth, 20)
- compare(control.implicitHeight, 30)
-
- control.padding = 100
- compare(control.implicitWidth, 210)
- compare(control.implicitHeight, 220)
- }
-
- function test_pressPoint_data() {
- return [
- { tag: "mouse", mouse: true },
- { tag: "touch", touch: true }
- ]
- }
-
- function test_pressPoint(data) {
- var control = createTemporaryObject(button, testCase, {width: 100, height: 40})
- verify(control)
-
- var pressXChanges = 0
- var pressYChanges = 0
-
- var pressXSpy = signalSpy.createObject(control, {target: control, signalName: "pressXChanged"})
- verify(pressXSpy.valid)
-
- var pressYSpy = signalSpy.createObject(control, {target: control, signalName: "pressYChanged"})
- verify(pressYSpy.valid)
-
- compare(control.pressX, 0)
- compare(control.pressY, 0)
-
- var touch = data.touch ? touchEvent(control) : null
-
- if (data.touch)
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- else
- mousePress(control, control.width / 2, control.height / 2)
- compare(control.pressX, control.width / 2)
- compare(control.pressY, control.height / 2)
- compare(pressXSpy.count, ++pressXChanges)
- compare(pressYSpy.count, ++pressYChanges)
-
- if (data.touch)
- touch.move(0, control, control.width / 2, control.height / 2).commit()
- else
- mouseMove(control, control.width / 2, control.height / 2)
- compare(control.pressX, control.width / 2)
- compare(control.pressY, control.height / 2)
- compare(pressXSpy.count, pressXChanges)
- compare(pressYSpy.count, pressYChanges)
-
- if (data.touch)
- touch.move(0, control, control.width / 4, control.height / 4).commit()
- else
- mouseMove(control, control.width / 4, control.height / 4)
- compare(control.pressX, control.width / 4)
- compare(control.pressY, control.height / 4)
- compare(pressXSpy.count, ++pressXChanges)
- compare(pressYSpy.count, ++pressYChanges)
-
- if (data.touch)
- touch.move(0, control, 0, 0).commit()
- else
- mouseMove(control, 0, 0)
- compare(control.pressX, 0)
- compare(control.pressY, 0)
- compare(pressXSpy.count, ++pressXChanges)
- compare(pressYSpy.count, ++pressYChanges)
-
- if (data.touch)
- touch.move(0, control, -control.width / 2, -control.height / 2).commit()
- else
- mouseMove(control, -control.width / 2, -control.height / 2)
- compare(control.pressX, -control.width / 2)
- compare(control.pressY, -control.height / 2)
- compare(pressXSpy.count, ++pressXChanges)
- compare(pressYSpy.count, ++pressYChanges)
-
- if (data.touch)
- touch.release(0, control, -control.width / 2, -control.height / 2).commit()
- else
- mouseRelease(control, -control.width / 2, -control.height / 2)
- compare(control.pressX, -control.width / 2)
- compare(control.pressY, -control.height / 2)
- compare(pressXSpy.count, pressXChanges)
- compare(pressYSpy.count, pressYChanges)
-
- if (data.touch)
- touch.press(0, control, control.width - 1, control.height - 1).commit()
- else
- mousePress(control, control.width - 1, control.height - 1)
- compare(control.pressX, control.width - 1)
- compare(control.pressY, control.height - 1)
- compare(pressXSpy.count, ++pressXChanges)
- compare(pressYSpy.count, ++pressYChanges)
-
- if (data.touch)
- touch.move(0, control, control.width + 1, control.height + 1).commit()
- else
- mousePress(control, control.width + 1, control.height + 1)
- compare(control.pressX, control.width + 1)
- compare(control.pressY, control.height + 1)
- compare(pressXSpy.count, ++pressXChanges)
- compare(pressYSpy.count, ++pressYChanges)
-
- if (data.touch)
- touch.release(0, control, control.width + 2, control.height + 2).commit()
- else
- mouseRelease(control, control.width + 2, control.height + 2)
- compare(control.pressX, control.width + 2)
- compare(control.pressY, control.height + 2)
- compare(pressXSpy.count, ++pressXChanges)
- compare(pressYSpy.count, ++pressYChanges)
- }
-
- function test_pressAndHold() {
- var control = createTemporaryObject(button, testCase, {checkable: true})
- verify(control)
-
- var pressAndHoldSpy = signalSpy.createObject(control, {target: control, signalName: "pressAndHold"})
- verify(pressAndHoldSpy.valid)
-
- mousePress(control)
- pressAndHoldSpy.wait()
- compare(control.checked, false)
-
- mouseRelease(control)
- compare(control.checked, false)
- }
-
- Component {
- id: keyCatcher
- Item {
- property int lastKeyPress: -1
- property int lastKeyRelease: -1
- Keys.onPressed: lastKeyPress = event.key
- Keys.onReleased: lastKeyRelease = event.key
- }
- }
-
- function test_keyEvents_data() {
- return [
- { tag: "space", key: Qt.Key_Space, result: -1 },
- { tag: "backspace", key: Qt.Key_Backspace, result: Qt.Key_Backspace }
- ]
- }
-
- function test_keyEvents(data) {
- var container = createTemporaryObject(keyCatcher, testCase)
- verify(container)
-
- var control = button.createObject(container)
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- keyPress(data.key)
- compare(container.lastKeyPress, data.result)
-
- keyRelease(data.key)
- compare(container.lastKeyRelease, data.result)
- }
-
- function test_icon() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
- compare(control.icon.name, "")
- compare(control.icon.source, "")
- compare(control.icon.width, 0)
- compare(control.icon.height, 0)
- compare(control.icon.color, "#00000000")
-
- var iconSpy = signalSpy.createObject(control, { target: control, signalName: "iconChanged"} )
- verify(iconSpy.valid)
-
- control.icon.name = "test-name"
- compare(control.icon.name, "test-name")
- compare(iconSpy.count, 1)
-
- control.icon.source = "qrc:/test-source"
- compare(control.icon.source, "qrc:/test-source")
- compare(iconSpy.count, 2)
-
- control.icon.width = 32
- compare(control.icon.width, 32)
- compare(iconSpy.count, 3)
-
- control.icon.height = 32
- compare(control.icon.height, 32)
- compare(iconSpy.count, 4)
-
- control.icon.color = "#ff0000"
- compare(control.icon.color, "#ff0000")
- compare(iconSpy.count, 5)
- }
-
- function test_action_data() {
- return [
- { tag: "implicit text", property: "text",
- initButton: undefined, initAction: "Action",
- assignExpected: "Action", assignChanged: true,
- resetExpected: "", resetChanged: true },
- { tag: "explicit text", property: "text",
- initButton: "Button", initAction: "Action",
- assignExpected: "Button", assignChanged: false,
- resetExpected: "Button", resetChanged: false },
- { tag: "empty button text", property: "text",
- initButton: "", initAction: "Action",
- assignExpected: "", assignChanged: false,
- resetExpected: "", resetChanged: false },
- { tag: "empty action text", property: "text",
- initButton: "Button", initAction: "",
- assignExpected: "Button", assignChanged: false,
- resetExpected: "Button", resetChanged: false },
- { tag: "empty both text", property: "text",
- initButton: undefined, initAction: "",
- assignExpected: "", assignChanged: false,
- resetExpected: "", resetChanged: false },
-
- { tag: "modify button text", property: "text",
- initButton: undefined, initAction: "Action",
- assignExpected: "Action", assignChanged: true,
- modifyButton: "Button2",
- modifyButtonExpected: "Button2", modifyButtonChanged: true,
- resetExpected: "Button2", resetChanged: false },
- { tag: "modify implicit action text", property: "text",
- initButton: undefined, initAction: "Action",
- assignExpected: "Action", assignChanged: true,
- modifyAction: "Action2",
- modifyActionExpected: "Action2", modifyActionChanged: true,
- resetExpected: "", resetChanged: true },
- { tag: "modify explicit action text", property: "text",
- initButton: "Button", initAction: "Action",
- assignExpected: "Button", assignChanged: false,
- modifyAction: "Action2",
- modifyActionExpected: "Button", modifyActionChanged: false,
- resetExpected: "Button", resetChanged: false },
- ]
- }
-
- function test_action(data) {
- var control = createTemporaryObject(button, testCase)
- verify(control)
- control[data.property] = data.initButton
-
- var act = action.createObject(control)
- act[data.property] = data.initAction
-
- var spy = signalSpy.createObject(control, {target: control, signalName: data.property + "Changed"})
- verify(spy.valid)
-
- // assign action
- spy.clear()
- control.action = act
- compare(control[data.property], data.assignExpected)
- compare(spy.count, data.assignChanged ? 1 : 0)
-
- // modify button
- if (data.hasOwnProperty("modifyButton")) {
- spy.clear()
- control[data.property] = data.modifyButton
- compare(control[data.property], data.modifyButtonExpected)
- compare(spy.count, data.modifyButtonChanged ? 1 : 0)
- }
-
- // modify action
- if (data.hasOwnProperty("modifyAction")) {
- spy.clear()
- act[data.property] = data.modifyAction
- compare(control[data.property], data.modifyActionExpected)
- compare(spy.count, data.modifyActionChanged ? 1 : 0)
- }
-
- // reset action
- spy.clear()
- control.action = null
- compare(control[data.property], data.resetExpected)
- compare(spy.count, data.resetChanged ? 1 : 0)
- }
-
- function test_actionIcon_data() {
- var data = []
-
- // Save duplicating the rows by reusing them with different properties of the same type.
- // This means that the first loop will test icon.name and the second one will test icon.source.
- var stringPropertyValueSuffixes = [
- { propertyName: "name", valueSuffix: "IconName" },
- { propertyName: "source", valueSuffix: "IconSource" }
- ]
-
- for (var i = 0; i < stringPropertyValueSuffixes.length; ++i) {
- var propertyName = stringPropertyValueSuffixes[i].propertyName
- var valueSuffix = stringPropertyValueSuffixes[i].valueSuffix
-
- var buttonPropertyValue = "Button" + valueSuffix
- var buttonPropertyValue2 = "Button" + valueSuffix + "2"
- var actionPropertyValue = "Action" + valueSuffix
- var actionPropertyValue2 = "Action" + valueSuffix + "2"
-
- data.push({ tag: "implicit " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- resetExpected: "", resetChanged: true })
- data.push({ tag: "explicit " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: actionPropertyValue,
- assignExpected: buttonPropertyValue, assignChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
- data.push({ tag: "empty button " + propertyName, property: propertyName,
- initButton: "", initAction: actionPropertyValue,
- assignExpected: "", assignChanged: false,
- resetExpected: "", resetChanged: false })
- data.push({ tag: "empty action " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: "",
- assignExpected: buttonPropertyValue, assignChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
- data.push({ tag: "empty both " + propertyName, property: propertyName,
- initButton: undefined, initAction: "",
- assignExpected: "", assignChanged: false,
- resetExpected: "", resetChanged: false })
- data.push({ tag: "modify button " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- modifyButton: buttonPropertyValue2,
- modifyButtonExpected: buttonPropertyValue2, modifyButtonChanged: true,
- resetExpected: buttonPropertyValue2, resetChanged: false })
- data.push({ tag: "modify implicit action " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- modifyAction: actionPropertyValue2,
- modifyActionExpected: actionPropertyValue2, modifyActionChanged: true,
- resetExpected: "", resetChanged: true })
- data.push({ tag: "modify explicit action " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: actionPropertyValue,
- assignExpected: buttonPropertyValue, assignChanged: false,
- modifyAction: actionPropertyValue2,
- modifyActionExpected: buttonPropertyValue, modifyActionChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
- }
-
- var intPropertyNames = [
- "width",
- "height",
- ]
-
- for (i = 0; i < intPropertyNames.length; ++i) {
- propertyName = intPropertyNames[i]
-
- buttonPropertyValue = 20
- buttonPropertyValue2 = 21
- actionPropertyValue = 40
- actionPropertyValue2 = 41
- var defaultValue = 0
-
- data.push({ tag: "implicit " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- resetExpected: defaultValue, resetChanged: true })
- data.push({ tag: "explicit " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: actionPropertyValue,
- assignExpected: buttonPropertyValue, assignChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
- data.push({ tag: "default button " + propertyName, property: propertyName,
- initButton: defaultValue, initAction: actionPropertyValue,
- assignExpected: defaultValue, assignChanged: false,
- resetExpected: defaultValue, resetChanged: false })
- data.push({ tag: "default action " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: defaultValue,
- assignExpected: buttonPropertyValue, assignChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
- data.push({ tag: "default both " + propertyName, property: propertyName,
- initButton: undefined, initAction: defaultValue,
- assignExpected: defaultValue, assignChanged: false,
- resetExpected: defaultValue, resetChanged: false })
- data.push({ tag: "modify button " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- modifyButton: buttonPropertyValue2,
- modifyButtonExpected: buttonPropertyValue2, modifyButtonChanged: true,
- resetExpected: buttonPropertyValue2, resetChanged: false })
- data.push({ tag: "modify implicit action " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- modifyAction: actionPropertyValue2,
- modifyActionExpected: actionPropertyValue2, modifyActionChanged: true,
- resetExpected: defaultValue, resetChanged: true })
- data.push({ tag: "modify explicit action " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: actionPropertyValue,
- assignExpected: buttonPropertyValue, assignChanged: false,
- modifyAction: actionPropertyValue2,
- modifyActionExpected: buttonPropertyValue, modifyActionChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
- }
-
- propertyName = "color"
- buttonPropertyValue = "#aa0000"
- buttonPropertyValue2 = "#ff0000"
- actionPropertyValue = "#0000aa"
- actionPropertyValue2 = "#0000ff"
- defaultValue = "#00000000"
-
- data.push({ tag: "implicit " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- resetExpected: defaultValue, resetChanged: true })
- data.push({ tag: "explicit " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: actionPropertyValue,
- assignExpected: buttonPropertyValue, assignChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
- data.push({ tag: "default button " + propertyName, property: propertyName,
- initButton: defaultValue, initAction: actionPropertyValue,
- assignExpected: defaultValue, assignChanged: false,
- resetExpected: defaultValue, resetChanged: false })
- data.push({ tag: "default action " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: defaultValue,
- assignExpected: buttonPropertyValue, assignChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
- data.push({ tag: "default both " + propertyName, property: propertyName,
- initButton: undefined, initAction: defaultValue,
- assignExpected: defaultValue, assignChanged: false,
- resetExpected: defaultValue, resetChanged: false })
- data.push({ tag: "modify button " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- modifyButton: buttonPropertyValue2,
- modifyButtonExpected: buttonPropertyValue2, modifyButtonChanged: true,
- resetExpected: buttonPropertyValue2, resetChanged: false })
- data.push({ tag: "modify implicit action " + propertyName, property: propertyName,
- initButton: undefined, initAction: actionPropertyValue,
- assignExpected: actionPropertyValue, assignChanged: true,
- modifyAction: actionPropertyValue2,
- modifyActionExpected: actionPropertyValue2, modifyActionChanged: true,
- resetExpected: defaultValue, resetChanged: true })
- data.push({ tag: "modify explicit action " + propertyName, property: propertyName,
- initButton: buttonPropertyValue, initAction: actionPropertyValue,
- assignExpected: buttonPropertyValue, assignChanged: false,
- modifyAction: actionPropertyValue2,
- modifyActionExpected: buttonPropertyValue, modifyActionChanged: false,
- resetExpected: buttonPropertyValue, resetChanged: false })
-
- return data;
- }
-
- function test_actionIcon(data) {
- var control = createTemporaryObject(button, testCase)
- verify(control)
- control.icon[data.property] = data.initButton
-
- var act = action.createObject(control)
- act.icon[data.property] = data.initAction
-
- var spy = signalSpy.createObject(control, {target: control, signalName: "iconChanged"})
- verify(spy.valid)
-
- // assign action
- spy.clear()
- control.action = act
- compare(control.icon[data.property], data.assignExpected)
- compare(spy.count, data.assignChanged ? 1 : 0)
-
- // modify button
- if (data.hasOwnProperty("modifyButton")) {
- spy.clear()
- control.icon[data.property] = data.modifyButton
- compare(control.icon[data.property], data.modifyButtonExpected)
- compare(spy.count, data.modifyButtonChanged ? 1 : 0)
- }
-
- // modify action
- if (data.hasOwnProperty("modifyAction")) {
- spy.clear()
- act.icon[data.property] = data.modifyAction
- compare(control.icon[data.property], data.modifyActionExpected)
- compare(spy.count, data.modifyActionChanged ? 1 : 0)
- }
-
- // reset action
- spy.clear()
- control.action = null
- compare(control.icon[data.property], data.resetExpected)
- compare(spy.count, data.resetChanged ? 1 : 0)
- }
-
- Component {
- id: actionButton
- AbstractButton {
- action: Action {
- text: "Default"
- icon.name: checked ? "checked" : "unchecked"
- icon.source: "qrc:/icons/default.png"
- checkable: true
- checked: true
- enabled: false
- }
- }
- }
-
- function test_actionButton() {
- var control = createTemporaryObject(actionButton, testCase)
- verify(control)
-
- // initial values
- compare(control.text, "Default")
- compare(control.checkable, true)
- compare(control.checked, true)
- compare(control.enabled, false)
- compare(control.icon.name, "checked")
-
- var textSpy = signalSpy.createObject(control, { target: control, signalName: "textChanged" })
- verify(textSpy.valid)
-
- // changes via action
- control.action.text = "Action"
- control.action.checkable = false
- control.action.checked = false
- control.action.enabled = true
- compare(control.text, "Action") // propagates
- compare(control.checkable, false) // propagates
- compare(control.checked, false) // propagates
- compare(control.enabled, true) // propagates
- compare(control.icon.name, "unchecked") // propagates
- compare(textSpy.count, 1)
-
- // changes via button
- control.text = "Button"
- control.checkable = true
- control.checked = true
- control.enabled = false
- control.icon.name = "default"
- compare(control.text, "Button")
- compare(control.checkable, true)
- compare(control.checked, true)
- compare(control.enabled, false)
- compare(control.icon.name, "default")
- compare(control.action.text, "Action") // does NOT propagate
- compare(control.action.checkable, true) // propagates
- compare(control.action.checked, true) // propagates
- compare(control.action.enabled, true) // does NOT propagate
- compare(control.action.icon.name, control.action.checked ? "checked" : "unchecked") // does NOT propagate
- compare(textSpy.count, 2)
-
- // remove the action so that only the button's properties are left
- control.action = null
- compare(control.text, "Button")
- compare(control.icon.name, "default")
- compare(textSpy.count, 2)
-
- // setting an action while button has a particular property set
- // shouldn't cause a change in the button's effective property value
- var secondAction = createTemporaryObject(action, testCase)
- verify(secondAction)
- secondAction.text = "SecondAction"
- control.action = secondAction
- compare(control.text, "Button")
- compare(textSpy.count, 2)
-
- // test setting an action whose properties aren't set
- var thirdAction = createTemporaryObject(action, testCase)
- verify(thirdAction)
- control.action = thirdAction
- compare(control.text, "Button")
- compare(textSpy.count, 2)
- }
-
- Component {
- id: checkableButton
- AbstractButton {
- checkable: true
- action: Action {}
- }
- }
-
- function test_checkable_button() {
- var control = createTemporaryObject(checkableButton, testCase)
- verify(control)
- control.checked = false
- control.forceActiveFocus()
- verify(control.activeFocus)
- verify(!control.checked)
- verify(!control.action.checked)
-
- keyPress(Qt.Key_Space)
- keyRelease(Qt.Key_Space)
-
- compare(control.action.checked, true)
- compare(control.checked, true)
-
- keyPress(Qt.Key_Space)
-
- compare(control.action.checked, true)
- compare(control.checked, true)
-
- keyRelease(Qt.Key_Space)
-
- compare(control.action.checked, false)
- compare(control.checked, false)
-
- var checkedSpy = signalSpy.createObject(control, {target: control.action, signalName: "checkedChanged"})
- var toggledSpy = signalSpy.createObject(control, {target: control, signalName: "toggled"})
- var actionToggledSpy = signalSpy.createObject(control, {target: control.action, signalName: "toggled"})
-
- verify(checkedSpy.valid)
- verify(toggledSpy.valid)
- verify(actionToggledSpy.valid)
-
- mousePress(control)
-
- compare(control.action.checked, false)
- compare(control.checked, false)
-
- mouseRelease(control)
-
- checkedSpy.wait()
- compare(checkedSpy.count, 1)
- compare(actionToggledSpy.count, 1)
- compare(toggledSpy.count, 1)
-
- compare(control.action.checked, true)
- compare(control.checked, true)
-
- mousePress(control)
- mouseRelease(control)
-
- compare(control.checked, false)
- compare(control.action.checked, false)
- }
-
- function test_trigger_data() {
- return [
- {tag: "click", click: true, button: true, action: true, clicked: true, triggered: true},
- {tag: "click disabled button", click: true, button: false, action: true, clicked: false, triggered: false},
- {tag: "click disabled action", click: true, button: true, action: false, clicked: true, triggered: false},
- {tag: "trigger", trigger: true, button: true, action: true, clicked: true, triggered: true},
- {tag: "trigger disabled button", trigger: true, button: false, action: true, clicked: false, triggered: true},
- {tag: "trigger disabled action", trigger: true, button: true, action: false, clicked: false, triggered: false}
- ]
- }
-
- function test_trigger(data) {
- var control = createTemporaryObject(actionButton, testCase, {"action.enabled": data.action, "enabled": data.button})
- verify(control)
-
- compare(control.enabled, data.button)
- compare(control.action.enabled, data.action)
-
- var buttonSpy = signalSpy.createObject(control, {target: control, signalName: "clicked"})
- verify(buttonSpy.valid)
-
- var actionSpy = signalSpy.createObject(control, {target: control.action, signalName: "triggered"})
- verify(actionSpy.valid)
-
- if (data.click)
- mouseClick(control)
- else if (data.trigger)
- control.action.trigger()
-
- compare(buttonSpy.count, data.clicked ? 1 : 0)
- compare(actionSpy.count, data.triggered ? 1 : 0)
- }
-
- function test_mnemonic() {
- if (Qt.platform.os === "osx" || Qt.platform.os === "macos")
- skip("Mnemonics are not used on macOS")
-
- var control = createTemporaryObject(button, testCase)
- verify(control)
-
- control.text = "&Hello"
- compare(control.text, "&Hello")
-
- var clickSpy = signalSpy.createObject(control, {target: control, signalName: "clicked"})
- verify(clickSpy.valid)
-
- keyClick(Qt.Key_H, Qt.AltModifier)
- compare(clickSpy.count, 1)
-
- control.visible = false
- keyClick(Qt.Key_H, Qt.AltModifier)
- compare(clickSpy.count, 1)
-
- control.visible = true
- keyClick(Qt.Key_H, Qt.AltModifier)
- compare(clickSpy.count, 2)
-
- control.text = "Te&st"
- compare(control.text, "Te&st")
-
- keyClick(Qt.Key_H, Qt.AltModifier)
- compare(clickSpy.count, 2)
-
- keyClick(Qt.Key_S, Qt.AltModifier)
- compare(clickSpy.count, 3)
-
- control.visible = false
- control.text = "&Hidden"
- keyClick(Qt.Key_H, Qt.AltModifier)
- compare(clickSpy.count, 3)
-
- control.visible = true
- keyClick(Qt.Key_H, Qt.AltModifier)
- compare(clickSpy.count, 4)
-
- control.text = undefined
- control.action = action.createObject(control, {text: "&Action"})
-
- var actionSpy = signalSpy.createObject(control, {target: control.action, signalName: "triggered"})
- verify(actionSpy.valid)
-
- keyClick(Qt.Key_A, Qt.AltModifier)
- compare(actionSpy.count, 1)
- compare(clickSpy.count, 5)
-
- // ungrab on destruction (don't crash)
- control.Component.onDestruction.connect(function() { control = null })
- control.destroy()
- wait(0)
- verify(!control)
- keyClick(Qt.Key_H, Qt.AltModifier)
- }
-
- Component {
- id: actionGroup
- ActionGroup {
- Action { id: action1; checkable: true; checked: true }
- Action { id: action2; checkable: true }
- Action { id: action3; checkable: true }
- }
- }
-
- function test_actionGroup() {
- var group = createTemporaryObject(actionGroup, testCase)
- verify(group)
-
- var button1 = createTemporaryObject(button, testCase, {action: group.actions[0], width: 10, height: 10})
- var button2 = createTemporaryObject(button, testCase, {action: group.actions[1], width: 10, height: 10, y: 10})
- var button3 = createTemporaryObject(button, testCase, {action: group.actions[2], width: 10, height: 10, y: 20})
-
- verify(button1)
- compare(button1.checked, true)
- compare(button1.action.checked, true)
-
- verify(button2)
- compare(button2.checked, false)
- compare(button2.action.checked, false)
-
- verify(button3)
- compare(button3.checked, false)
- compare(button3.action.checked, false)
-
- mouseClick(button2)
-
- compare(button1.checked, false)
- compare(button1.action.checked, false)
-
- compare(button2.checked, true)
- compare(button2.action.checked, true)
-
- compare(button3.checked, false)
- compare(button3.action.checked, false)
- }
-
- function test_clickedAfterLongPress() {
- var control = createTemporaryObject(button, testCase, { text: "Hello" })
- verify(control)
-
- var clickedSpy = signalSpy.createObject(control, { target: control, signalName: "clicked" })
- verify(clickedSpy.valid)
-
- mousePress(control)
- // Ensure that clicked is emitted when no handler is defined for the pressAndHold() signal.
- // Note that even though signal spies aren't considered in QObject::isSignalConnected(),
- // we can't use one here to check for pressAndHold(), because otherwise clicked() won't be emitted.
- wait(Qt.styleHints.mousePressAndHoldInterval + 100)
- mouseRelease(control)
- compare(clickedSpy.count, 1)
- }
-}
diff --git a/tests/auto/controls/data/tst_action.qml b/tests/auto/controls/data/tst_action.qml
deleted file mode 100644
index 0e41b7f3..00000000
--- a/tests/auto/controls/data/tst_action.qml
+++ /dev/null
@@ -1,197 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Action"
-
- Component {
- id: component
- Action { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_enabled() {
- var action = createTemporaryObject(component, testCase)
- verify(action)
-
- var spy = createTemporaryObject(signalSpy, testCase, {target: action, signalName: "triggered"})
- verify(spy.valid)
-
- action.trigger()
- compare(spy.count, 1)
-
- action.enabled = false
- action.trigger()
- compare(spy.count, 1)
-
- action.enabled = undefined // reset
- action.trigger()
- compare(spy.count, 2)
- }
-
- Component {
- id: buttonAndMenu
- Item {
- property alias button: button
- property alias menu: menu
- property alias menuItem: menuItem
- property alias action: sharedAction
- property var lastSource
- Action {
- id: sharedAction
- text: "Shared"
- shortcut: "Ctrl+B"
- onTriggered: lastSource = source
- }
- Button {
- id: button
- action: sharedAction
- Menu {
- id: menu
- MenuItem {
- id: menuItem
- action: sharedAction
- }
- }
- }
- }
- }
-
- function test_shared() {
- var container = createTemporaryObject(buttonAndMenu, testCase)
- verify(container)
-
- keyClick(Qt.Key_B, Qt.ControlModifier)
- compare(container.lastSource, container.button)
-
- container.menu.open()
- keyClick(Qt.Key_B, Qt.ControlModifier)
- compare(container.lastSource, container.menuItem)
-
- tryVerify(function() { return !container.menu.visible })
- keyClick(Qt.Key_B, Qt.ControlModifier)
- compare(container.lastSource, container.button)
-
- container.button.visible = false
- keyClick(Qt.Key_B, Qt.ControlModifier)
- compare(container.lastSource, container.action)
- }
-
- Component {
- id: actionAndRepeater
- Item {
- property alias action: testAction
- Action {
- id: testAction
- shortcut: "Ctrl+A"
- }
- Repeater {
- model: 1
- Button {
- action: testAction
- }
- }
- }
- }
-
- function test_repeater() {
- var container = createTemporaryObject(actionAndRepeater, testCase)
- verify(container)
-
- var spy = signalSpy.createObject(container, {target: container.action, signalName: "triggered"})
- verify(spy.valid)
-
- keyClick(Qt.Key_A, Qt.ControlModifier)
- compare(spy.count, 1)
- }
-
- Component {
- id: shortcutBinding
- Item {
- Action {
- id: action
- shortcut: StandardKey.Copy
- }
-
- Shortcut {
- id: indirectShortcut
- sequence: action.shortcut
- }
-
- Shortcut {
- id: directShortcut
- sequence: StandardKey.Copy
- }
-
- property alias indirect: indirectShortcut;
- property alias direct: directShortcut
- }
- }
-
- function test_shortcutBinding() {
- var container = createTemporaryObject(shortcutBinding, testCase);
- verify(container)
- compare(container.indirect.nativeText, container.direct.nativeText);
- }
-}
diff --git a/tests/auto/controls/data/tst_actiongroup.qml b/tests/auto/controls/data/tst_actiongroup.qml
deleted file mode 100644
index 6c8ea5c4..00000000
--- a/tests/auto/controls/data/tst_actiongroup.qml
+++ /dev/null
@@ -1,400 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "ActionGroup"
-
- Component {
- id: actionGroup
- ActionGroup { }
- }
-
- Component {
- id: nonExclusiveGroup
- ActionGroup { exclusive: false }
- }
-
- Component {
- id: declarativeGroup
- ActionGroup {
- Action { text: "First" }
- Action { text: "Second" }
- Action { text: "Third" }
- }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_null() {
- var group = createTemporaryObject(actionGroup, testCase)
- verify(group)
-
- group.addAction(null)
- group.removeAction(null)
- }
-
- Component {
- id: action
- Action { }
- }
-
- function test_defaults() {
- var group = createTemporaryObject(actionGroup, testCase)
- verify(group)
- compare(group.actions.length, 0)
- compare(group.checkedAction, null)
- compare(group.exclusive, true)
- }
-
- function test_current() {
- var group = createTemporaryObject(actionGroup, testCase)
- verify(group)
-
- var checkedActionSpy = createTemporaryObject(signalSpy, testCase, {target: group, signalName: "checkedActionChanged"})
- verify(checkedActionSpy.valid)
- verify(!group.checkedAction)
-
- var action1 = createTemporaryObject(action, testCase, {checked: true})
- var action2 = createTemporaryObject(action, testCase, {checked: false})
- var action3 = createTemporaryObject(action, testCase, {checked: true, objectName: "3"})
-
- // add checked
- group.addAction(action1)
- compare(group.checkedAction, action1)
- compare(action1.checked, true)
- compare(action2.checked, false)
- compare(action3.checked, true)
- compare(checkedActionSpy.count, 1)
-
- // add non-checked
- group.addAction(action2)
- compare(group.checkedAction, action1)
- compare(action1.checked, true)
- compare(action2.checked, false)
- compare(action3.checked, true)
- compare(checkedActionSpy.count, 1)
-
- // add checked
- group.addAction(action3)
- compare(group.checkedAction, action3)
- compare(action1.checked, false)
- compare(action2.checked, false)
- compare(action3.checked, true)
- compare(checkedActionSpy.count, 2)
-
- // change current
- group.checkedAction = action2
- compare(group.checkedAction, action2)
- compare(action1.checked, false)
- compare(action2.checked, true)
- compare(action3.checked, false)
- compare(checkedActionSpy.count, 3)
-
- // check
- action1.checked = true
- compare(group.checkedAction, action1)
- compare(action1.checked, true)
- compare(action2.checked, false)
- compare(action3.checked, false)
- compare(checkedActionSpy.count, 4)
-
- // remove non-checked
- group.removeAction(action2)
- compare(group.checkedAction, action1)
- compare(action1.checked, true)
- compare(action2.checked, false)
- compare(action3.checked, false)
- compare(checkedActionSpy.count, 4)
-
- // remove checked
- group.removeAction(action1)
- verify(!group.checkedAction)
- compare(action1.checked, false)
- compare(action2.checked, false)
- compare(action3.checked, false)
- compare(checkedActionSpy.count, 5)
- }
-
- function test_actions() {
- var group = createTemporaryObject(actionGroup, testCase)
- verify(group)
-
- var actionsSpy = createTemporaryObject(signalSpy, testCase, {target: group, signalName: "actionsChanged"})
- verify(actionsSpy.valid)
-
- compare(group.actions.length, 0)
- compare(group.checkedAction, null)
-
- var action1 = createTemporaryObject(action, testCase, {checked: true})
- var action2 = createTemporaryObject(action, testCase, {checked: false})
-
- group.actions = [action1, action2]
- compare(group.actions.length, 2)
- compare(group.actions[0], action1)
- compare(group.actions[1], action2)
- compare(group.checkedAction, action1)
- compare(actionsSpy.count, 2)
-
- var action3 = createTemporaryObject(action, testCase, {checked: true})
-
- group.addAction(action3)
- compare(group.actions.length, 3)
- compare(group.actions[0], action1)
- compare(group.actions[1], action2)
- compare(group.actions[2], action3)
- compare(group.checkedAction, action3)
- compare(actionsSpy.count, 3)
-
- group.removeAction(action1)
- compare(group.actions.length, 2)
- compare(group.actions[0], action2)
- compare(group.actions[1], action3)
- compare(group.checkedAction, action3)
- compare(actionsSpy.count, 4)
-
- group.actions = []
- compare(group.actions.length, 0)
- tryCompare(group, "checkedAction", null)
- compare(actionsSpy.count, 5)
- }
-
- function test_declarative() {
- var group = createTemporaryObject(declarativeGroup, testCase)
- verify(group)
-
- compare(group.actions.length, 3)
- compare(group.actions[0].text, "First")
- compare(group.actions[1].text, "Second")
- compare(group.actions[2].text, "Third")
- }
-
- function test_triggered_data() {
- return [
- {tag: "exclusive", exclusive: true},
- {tag: "non-exclusive", exclusive: false}
- ]
- }
-
- function test_triggered(data) {
- var group = createTemporaryObject(actionGroup, testCase, {exclusive: data.exclusive})
- verify(group)
-
- var triggeredSpy = createTemporaryObject(signalSpy, testCase, {target: group, signalName: "triggered"})
- verify(triggeredSpy.valid)
-
- var action1 = createTemporaryObject(action, testCase)
- var action2 = createTemporaryObject(action, testCase)
-
- group.addAction(action1)
- group.addAction(action2)
-
- action1.triggered()
- compare(triggeredSpy.count, 1)
- compare(triggeredSpy.signalArguments[0][0], action1)
-
- action2.triggered()
- compare(triggeredSpy.count, 2)
- compare(triggeredSpy.signalArguments[1][0], action2)
- }
-
- Component {
- id: attachedGroup
- Item {
- property ActionGroup group: ActionGroup { id: group }
- property Action action1: Action { ActionGroup.group: group }
- property Action action2: Action { ActionGroup.group: group }
- property Action action3: Action { ActionGroup.group: group }
- }
- }
-
- function test_attached() {
- var container = createTemporaryObject(attachedGroup, testCase)
- verify(container)
-
- verify(!container.group.checkedAction)
-
- container.action1.checked = true
- compare(container.group.checkedAction, container.action1)
- compare(container.action1.checked, true)
- compare(container.action2.checked, false)
- compare(container.action3.checked, false)
-
- container.action2.checked = true
- compare(container.group.checkedAction, container.action2)
- compare(container.action1.checked, false)
- compare(container.action2.checked, true)
- compare(container.action3.checked, false)
-
- container.action3.checked = true
- compare(container.group.checkedAction, container.action3)
- compare(container.action1.checked, false)
- compare(container.action2.checked, false)
- compare(container.action3.checked, true)
- }
-
- function test_actionDestroyed() {
- var group = createTemporaryObject(actionGroup, testCase)
- verify(group)
-
- var actionsSpy = createTemporaryObject(signalSpy, testCase, {target: group, signalName: "actionsChanged"})
- verify(actionsSpy.valid)
-
- var action1 = createTemporaryObject(action, testCase, {objectName: "action1", checked: true})
-
- group.addAction(action1)
- compare(group.actions.length, 1)
- compare(group.actions[0], action1)
- compare(group.checkedAction, action1)
- compare(actionsSpy.count, 1)
-
- action1.destroy()
- wait(0)
- compare(group.actions.length, 0)
- compare(group.checkedAction, null)
- compare(actionsSpy.count, 2)
- }
-
- function test_nonExclusive() {
- var group = createTemporaryObject(nonExclusiveGroup, testCase)
- verify(group)
-
- var action1 = createTemporaryObject(action, testCase, {checked: true})
- group.addAction(action1)
- compare(action1.checked, true)
- compare(group.checkedAction, null)
-
- var action2 = createTemporaryObject(action, testCase, {checked: true})
- group.addAction(action2)
- compare(action1.checked, true)
- compare(action2.checked, true)
- compare(group.checkedAction, null)
-
- action1.checked = false
- compare(action1.checked, false)
- compare(action2.checked, true)
- compare(group.checkedAction, null)
-
- action2.checked = false
- compare(action1.checked, false)
- compare(action2.checked, false)
- compare(group.checkedAction, null)
-
- action1.checked = true
- compare(action1.checked, true)
- compare(action2.checked, false)
- compare(group.checkedAction, null)
-
- action2.checked = true
- compare(action1.checked, true)
- compare(action2.checked, true)
- compare(group.checkedAction, null)
- }
-
- function test_enabled() {
- var group = createTemporaryObject(actionGroup, testCase)
- verify(group)
-
- compare(group.enabled, true)
-
- var action1 = createTemporaryObject(action, testCase)
- var action2 = createTemporaryObject(action, testCase)
- compare(action1.enabled, true)
- compare(action2.enabled, true)
-
- var action1Spy = createTemporaryObject(signalSpy, testCase, {target: action1, signalName: "enabledChanged"})
- var action2Spy = createTemporaryObject(signalSpy, testCase, {target: action2, signalName: "enabledChanged"})
- verify(action1Spy.valid && action2Spy.valid)
-
- group.addAction(action1)
- compare(action1.enabled, true)
- compare(action2.enabled, true)
- compare(action1Spy.count, 0)
- compare(action2Spy.count, 0)
-
- group.enabled = false
- compare(action1.enabled, false)
- compare(action2.enabled, true)
- compare(action1Spy.count, 1)
- compare(action1Spy.signalArguments[0][0], false)
- compare(action2Spy.count, 0)
-
- group.addAction(action2)
- compare(action1.enabled, false)
- compare(action2.enabled, false)
- compare(action1Spy.count, 1)
- compare(action2Spy.count, 1)
- compare(action2Spy.signalArguments[0][0], false)
-
- action1.enabled = false
- compare(action1.enabled, false)
- compare(action1Spy.count, 2)
- compare(action1Spy.signalArguments[1][0], false)
- compare(action2Spy.count, 1)
-
- group.enabled = true
- compare(action1.enabled, false)
- compare(action2.enabled, true)
- compare(action1Spy.count, 2)
- compare(action2Spy.count, 2)
- compare(action2Spy.signalArguments[1][0], true)
- }
-}
diff --git a/tests/auto/controls/data/tst_busyindicator.qml b/tests/auto/controls/data/tst_busyindicator.qml
deleted file mode 100644
index 7801cdab..00000000
--- a/tests/auto/controls/data/tst_busyindicator.qml
+++ /dev/null
@@ -1,103 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "BusyIndicator"
-
- Component {
- id: busyIndicator
- BusyIndicator { }
- }
-
- Component {
- id: mouseArea
- MouseArea { }
- }
-
- function test_running() {
- var control = createTemporaryObject(busyIndicator, testCase)
- verify(control)
-
- compare(control.running, true)
- control.running = false
- compare(control.running, false)
- }
-
- // QTBUG-61785
- function test_mouseArea() {
- var ma = createTemporaryObject(mouseArea, testCase, {width: testCase.width, height: testCase.height})
- verify(ma)
-
- var control = busyIndicator.createObject(ma, {width: testCase.width, height: testCase.height})
- verify(control)
-
- mousePress(control)
- verify(ma.pressed)
-
- mouseRelease(control)
- verify(!ma.pressed)
-
- var touch = touchEvent(control)
- touch.press(0, control).commit()
- verify(ma.pressed)
-
- touch.release(0, control).commit()
- verify(!ma.pressed)
- }
-}
diff --git a/tests/auto/controls/data/tst_button.qml b/tests/auto/controls/data/tst_button.qml
deleted file mode 100644
index bd4fe80e..00000000
--- a/tests/auto/controls/data/tst_button.qml
+++ /dev/null
@@ -1,512 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "Button"
-
- Component {
- id: button
- Button { }
- }
-
- Component {
- id: signalSequenceSpy
- SignalSequenceSpy {
- signals: ["pressed", "released", "canceled", "clicked", "toggled", "doubleClicked", "pressedChanged", "downChanged", "checkedChanged"]
- }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_text() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
-
- compare(control.text, "")
- control.text = "Button"
- compare(control.text, "Button")
- control.text = ""
- compare(control.text, "")
- }
-
- function test_mouse() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // click
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // release outside
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }]]
- mouseMove(control, control.width * 2, control.height * 2, 0)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["canceled", { "pressed": false }]]
- mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftButton)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // right button
- sequenceSpy.expectedSequence = []
- mousePress(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.pressed, false)
-
- mouseRelease(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // double click
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked",
- ["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- "doubleClicked",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- mouseDoubleClickSequence(control, control.width / 2, control.height / 2, Qt.LeftButton)
- verify(sequenceSpy.success)
- }
-
- function test_touch() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
-
- var touch = touchEvent(control)
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // click
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // release outside
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }]]
- touch.move(0, control, control.width * 2, control.height * 2).commit()
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["canceled", { "pressed": false }]]
- touch.release(0, control, control.width * 2, control.height * 2).commit()
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- }
-
- function test_multiTouch() {
- var control1 = createTemporaryObject(button, testCase)
- verify(control1)
-
- var pressedCount1 = 0
-
- var pressedSpy1 = signalSpy.createObject(control1, {target: control1, signalName: "pressedChanged"})
- verify(pressedSpy1.valid)
-
- var touch = touchEvent(control1)
- touch.press(0, control1, 0, 0).commit().move(0, control1, control1.width, control1.height).commit()
-
- compare(pressedSpy1.count, ++pressedCount1)
- compare(control1.pressed, true)
-
- // second touch point on the same control is ignored
- touch.stationary(0).press(1, control1, 0, 0).commit()
- touch.stationary(0).move(1, control1).commit()
- touch.stationary(0).release(1).commit()
-
- compare(pressedSpy1.count, pressedCount1)
- compare(control1.pressed, true)
-
- var control2 = createTemporaryObject(button, testCase, {y: control1.height})
- verify(control2)
-
- var pressedCount2 = 0
-
- var pressedSpy2 = signalSpy.createObject(control2, {target: control2, signalName: "pressedChanged"})
- verify(pressedSpy2.valid)
-
- // press the second button
- touch.stationary(0).press(2, control2, 0, 0).commit()
-
- compare(pressedSpy2.count, ++pressedCount2)
- compare(control2.pressed, true)
-
- compare(pressedSpy1.count, pressedCount1)
- compare(control1.pressed, true)
-
- // release both buttons
- touch.release(0, control1).release(2, control2).commit()
-
- compare(pressedSpy2.count, ++pressedCount2)
- compare(control2.pressed, false)
-
- compare(pressedSpy1.count, ++pressedCount1)
- compare(control1.pressed, false)
- }
-
- function test_keys() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // click
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- verify(sequenceSpy.success)
-
- // no change
- sequenceSpy.expectedSequence = []
- var keys = [Qt.Key_Enter, Qt.Key_Return, Qt.Key_Escape, Qt.Key_Tab]
- for (var i = 0; i < keys.length; ++i) {
- sequenceSpy.reset()
- keyClick(keys[i])
- verify(sequenceSpy.success)
- }
- }
-
- function eventErrorMessage(actual, expected) {
- return "actual event:" + JSON.stringify(actual) + ", expected event:" + JSON.stringify(expected)
- }
-
- function test_autoRepeat() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
-
- compare(control.autoRepeat, false)
- control.autoRepeat = true
- compare(control.autoRepeat, true)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- var clickSpy = signalSpy.createObject(control, {target: control, signalName: "clicked"})
- verify(clickSpy.valid)
- var pressSpy = signalSpy.createObject(control, {target: control, signalName: "pressed"})
- verify(pressSpy.valid)
- var releaseSpy = signalSpy.createObject(control, {target: control, signalName: "released"})
- verify(releaseSpy.valid)
-
- // auto-repeat mouse click
- mousePress(control)
- compare(control.pressed, true)
- clickSpy.wait()
- clickSpy.wait()
- compare(pressSpy.count, clickSpy.count + 1)
- compare(releaseSpy.count, clickSpy.count)
- mouseRelease(control)
- compare(control.pressed, false)
- compare(clickSpy.count, pressSpy.count)
- compare(releaseSpy.count, pressSpy.count)
-
- clickSpy.clear()
- pressSpy.clear()
- releaseSpy.clear()
-
- // auto-repeat key click
- keyPress(Qt.Key_Space)
- compare(control.pressed, true)
- clickSpy.wait()
- clickSpy.wait()
- compare(pressSpy.count, clickSpy.count + 1)
- compare(releaseSpy.count, clickSpy.count)
- keyRelease(Qt.Key_Space)
- compare(control.pressed, false)
- compare(clickSpy.count, pressSpy.count)
- compare(releaseSpy.count, pressSpy.count)
-
- clickSpy.clear()
- pressSpy.clear()
- releaseSpy.clear()
-
- mousePress(control)
- compare(control.pressed, true)
- clickSpy.wait()
- compare(pressSpy.count, clickSpy.count + 1)
- compare(releaseSpy.count, clickSpy.count)
-
- // move inside during repeat -> continue repeat
- mouseMove(control, control.width / 4, control.height / 4)
- clickSpy.wait()
- compare(pressSpy.count, clickSpy.count + 1)
- compare(releaseSpy.count, clickSpy.count)
-
- clickSpy.clear()
- pressSpy.clear()
- releaseSpy.clear()
-
- // move outside during repeat -> stop repeat
- mouseMove(control, -1, -1)
- // NOTE: The following wait() is NOT a reliable way to test that the
- // auto-repeat timer is not running, but there's no way dig into the
- // private APIs from QML. If this test ever fails in the future, it
- // indicates that the auto-repeat timer logic is broken.
- wait(125)
- compare(clickSpy.count, 0)
- compare(pressSpy.count, 0)
- compare(releaseSpy.count, 0)
-
- mouseRelease(control, -1, -1)
- compare(control.pressed, false)
- compare(clickSpy.count, 0)
- compare(pressSpy.count, 0)
- compare(releaseSpy.count, 0)
- }
-
- function test_baseline() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- function test_checkable() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
- verify(control.hasOwnProperty("checkable"))
- verify(!control.checkable)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- mouseClick(control)
- verify(!control.checked)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- ["checkedChanged", { "checked": true }],
- "toggled",
- "released",
- "clicked"]
- control.checkable = true
- mouseClick(control)
- verify(control.checked)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- ["checkedChanged", { "checked": false }],
- "toggled",
- "released",
- "clicked"]
- mouseClick(control)
- verify(!control.checked)
- verify(sequenceSpy.success)
- }
-
- function test_highlighted() {
- var control = createTemporaryObject(button, testCase)
- verify(control)
- verify(!control.highlighted)
-
- control.highlighted = true
- verify(control.highlighted)
- }
-
- function test_spacing() {
- var control = createTemporaryObject(button, testCase, { text: "Some long, long, long text" })
- verify(control)
- verify(control.contentItem.implicitWidth + control.leftPadding + control.rightPadding > control.background.implicitWidth)
-
- var textLabel = findChild(control.contentItem, "label")
- verify(textLabel)
-
- // The implicitWidth of the IconLabel that all buttons use as their contentItem
- // should be equal to the implicitWidth of the Text while no icon is set.
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // That means that spacing shouldn't affect it.
- control.spacing += 100
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // The implicitWidth of the Button itself should, therefore, also never include spacing while no icon is set.
- compare(control.implicitWidth, textLabel.implicitWidth + control.leftPadding + control.rightPadding)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: Button.IconOnly },
- { "tag": "TextOnly", display: Button.TextOnly },
- { "tag": "TextUnderIcon", display: Button.TextUnderIcon },
- { "tag": "TextBesideIcon", display: Button.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: Button.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: Button.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: Button.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: Button.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(button, testCase, {
- text: "Button",
- display: data.display,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- switch (control.display) {
- case Button.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case Button.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case Button.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case Button.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_buttongroup.qml b/tests/auto/controls/data/tst_buttongroup.qml
deleted file mode 100644
index 1abb9795..00000000
--- a/tests/auto/controls/data/tst_buttongroup.qml
+++ /dev/null
@@ -1,465 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "ButtonGroup"
-
- Component {
- id: buttonGroup
- ButtonGroup { }
- }
-
- Component {
- id: nonExclusiveGroup
- ButtonGroup { exclusive: false }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_null() {
- var group = createTemporaryObject(buttonGroup, testCase)
- verify(group)
-
- group.addButton(null)
- group.removeButton(null)
- }
-
- Component {
- id: button
- Button { }
- }
-
- Component {
- id: nonCheckable
- QtObject { }
- }
-
- function test_defaults() {
- var group = createTemporaryObject(buttonGroup, testCase)
- verify(group)
- compare(group.buttons.length, 0)
- compare(group.checkedButton, null)
- compare(group.exclusive, true)
- compare(group.checkState, Qt.Unchecked)
- }
-
- function test_current() {
- var group = createTemporaryObject(buttonGroup, testCase)
- verify(group)
-
- var checkedButtonSpy = createTemporaryObject(signalSpy, testCase, {target: group, signalName: "checkedButtonChanged"})
- verify(checkedButtonSpy.valid)
- verify(!group.checkedButton)
-
- var button1 = createTemporaryObject(button, testCase, {checked: true})
- var button2 = createTemporaryObject(button, testCase, {checked: false})
- var button3 = createTemporaryObject(button, testCase, {checked: true, objectName: "3"})
-
- // add checked
- group.addButton(button1)
- compare(group.checkedButton, button1)
- compare(button1.checked, true)
- compare(button2.checked, false)
- compare(button3.checked, true)
- compare(checkedButtonSpy.count, 1)
-
- // add non-checked
- group.addButton(button2)
- compare(group.checkedButton, button1)
- compare(button1.checked, true)
- compare(button2.checked, false)
- compare(button3.checked, true)
- compare(checkedButtonSpy.count, 1)
-
- // add checked
- group.addButton(button3)
- compare(group.checkedButton, button3)
- compare(button1.checked, false)
- compare(button2.checked, false)
- compare(button3.checked, true)
- compare(checkedButtonSpy.count, 2)
-
- // change current
- group.checkedButton = button2
- compare(group.checkedButton, button2)
- compare(button1.checked, false)
- compare(button2.checked, true)
- compare(button3.checked, false)
- compare(checkedButtonSpy.count, 3)
-
- // check
- button1.checked = true
- compare(group.checkedButton, button1)
- compare(button1.checked, true)
- compare(button2.checked, false)
- compare(button3.checked, false)
- compare(checkedButtonSpy.count, 4)
-
- // remove non-checked
- group.removeButton(button2)
- compare(group.checkedButton, button1)
- compare(button1.checked, true)
- compare(button2.checked, false)
- compare(button3.checked, false)
- compare(checkedButtonSpy.count, 4)
-
- // remove checked
- group.removeButton(button1)
- verify(!group.checkedButton)
- compare(button1.checked, false)
- compare(button2.checked, false)
- compare(button3.checked, false)
- compare(checkedButtonSpy.count, 5)
- }
-
- function test_buttons() {
- var group = createTemporaryObject(buttonGroup, testCase)
- verify(group)
-
- var buttonsSpy = createTemporaryObject(signalSpy, testCase, {target: group, signalName: "buttonsChanged"})
- verify(buttonsSpy.valid)
-
- compare(group.buttons.length, 0)
- compare(group.checkedButton, null)
-
- var button1 = createTemporaryObject(button, testCase, {checked: true})
- var button2 = createTemporaryObject(button, testCase, {checked: false})
-
- group.buttons = [button1, button2]
- compare(group.buttons.length, 2)
- compare(group.buttons[0], button1)
- compare(group.buttons[1], button2)
- compare(group.checkedButton, button1)
- compare(buttonsSpy.count, 2)
-
- var button3 = createTemporaryObject(button, testCase, {checked: true})
-
- group.addButton(button3)
- compare(group.buttons.length, 3)
- compare(group.buttons[0], button1)
- compare(group.buttons[1], button2)
- compare(group.buttons[2], button3)
- compare(group.checkedButton, button3)
- compare(buttonsSpy.count, 3)
-
- group.removeButton(button1)
- compare(group.buttons.length, 2)
- compare(group.buttons[0], button2)
- compare(group.buttons[1], button3)
- compare(group.checkedButton, button3)
- compare(buttonsSpy.count, 4)
-
- group.buttons = []
- compare(group.buttons.length, 0)
- tryCompare(group, "checkedButton", null)
- compare(buttonsSpy.count, 5)
- }
-
- function test_clicked_data() {
- return [
- {tag: "exclusive", exclusive: true},
- {tag: "non-exclusive", exclusive: false}
- ]
- }
-
- function test_clicked(data) {
- var group = createTemporaryObject(buttonGroup, testCase, {exclusive: data.exclusive})
- verify(group)
-
- var clickedSpy = createTemporaryObject(signalSpy, testCase, {target: group, signalName: "clicked"})
- verify(clickedSpy.valid)
-
- var button1 = createTemporaryObject(button, testCase)
- var button2 = createTemporaryObject(button, testCase)
-
- group.addButton(button1)
- group.addButton(button2)
-
- button1.clicked()
- compare(clickedSpy.count, 1)
- compare(clickedSpy.signalArguments[0][0], button1)
-
- button2.clicked()
- compare(clickedSpy.count, 2)
- compare(clickedSpy.signalArguments[1][0], button2)
- }
-
- Component {
- id: checkBoxes
- Item {
- property ButtonGroup group: ButtonGroup { id: group }
- property CheckBox control1: CheckBox { ButtonGroup.group: group }
- property CheckBox control2: CheckBox { ButtonGroup.group: group }
- property CheckBox control3: CheckBox { ButtonGroup.group: group }
- }
- }
-
- Component {
- id: radioButtons
- Item {
- property ButtonGroup group: ButtonGroup { id: group }
- property RadioButton control1: RadioButton { ButtonGroup.group: group }
- property RadioButton control2: RadioButton { ButtonGroup.group: group }
- property RadioButton control3: RadioButton { ButtonGroup.group: group }
- }
- }
-
- Component {
- id: switches
- Item {
- property ButtonGroup group: ButtonGroup { id: group }
- property Switch control1: Switch { ButtonGroup.group: group }
- property Switch control2: Switch { ButtonGroup.group: group }
- property Switch control3: Switch { ButtonGroup.group: group }
- }
- }
-
- Component {
- id: childControls
- Item {
- id: container
- property ButtonGroup group: ButtonGroup { id: group; buttons: container.children }
- property alias control1: control1
- property alias control2: control2
- property alias control3: control3
- CheckBox { id: control1 }
- RadioButton { id: control2 }
- Switch { id: control3 }
- }
- }
-
- function test_controls_data() {
- return [
- { tag: "CheckBox", component: checkBoxes },
- { tag: "RadioButton", component: radioButtons },
- { tag: "Switch", component: switches },
- { tag: "Children", component: childControls }
- ]
- }
-
- function test_controls(data) {
- var container = createTemporaryObject(data.component, testCase)
- verify(container)
-
- verify(!container.group.checkedButton)
-
- container.control1.checked = true
- compare(container.group.checkedButton, container.control1)
- compare(container.control1.checked, true)
- compare(container.control2.checked, false)
- compare(container.control3.checked, false)
-
- container.control2.checked = true
- compare(container.group.checkedButton, container.control2)
- compare(container.control1.checked, false)
- compare(container.control2.checked, true)
- compare(container.control3.checked, false)
-
- container.control3.checked = true
- compare(container.group.checkedButton, container.control3)
- compare(container.control1.checked, false)
- compare(container.control2.checked, false)
- compare(container.control3.checked, true)
- }
-
- function test_buttonDestroyed() {
- var group = createTemporaryObject(buttonGroup, testCase)
- verify(group)
-
- var buttonsSpy = createTemporaryObject(signalSpy, testCase, {target: group, signalName: "buttonsChanged"})
- verify(buttonsSpy.valid)
-
- var button1 = createTemporaryObject(button, testCase, {objectName: "button1", checked: true})
-
- group.addButton(button1)
- compare(group.buttons.length, 1)
- compare(group.buttons[0], button1)
- compare(group.checkedButton, button1)
- compare(buttonsSpy.count, 1)
-
- button1.destroy()
- wait(0)
- compare(group.buttons.length, 0)
- compare(group.checkedButton, null)
- compare(buttonsSpy.count, 2)
- }
-
- Component {
- id: repeater
- Column {
- id: column
- property ButtonGroup group: ButtonGroup { buttons: column.children }
- property alias repeater: r
- Repeater {
- id: r
- model: 3
- delegate: RadioDelegate {
- checked: index == 0
- objectName: index
- }
- }
- }
- }
-
- function test_repeater() {
- var container = createTemporaryObject(repeater, testCase)
- verify(container)
-
- verify(container.group.checkedButton)
- compare(container.group.checkedButton.objectName, "0")
- }
-
- function test_nonExclusive() {
- var group = createTemporaryObject(nonExclusiveGroup, testCase)
- verify(group)
-
- compare(group.checkState, Qt.Unchecked)
-
- var button1 = createTemporaryObject(button, testCase, {checked: true})
- group.addButton(button1)
- compare(button1.checked, true)
- compare(group.checkedButton, null)
- compare(group.checkState, Qt.Checked)
-
- var button2 = createTemporaryObject(button, testCase, {checked: true})
- group.addButton(button2)
- compare(button1.checked, true)
- compare(button2.checked, true)
- compare(group.checkedButton, null)
- compare(group.checkState, Qt.Checked)
-
- var button3 = createTemporaryObject(button, testCase, {checked: false})
- group.addButton(button3)
- compare(button1.checked, true)
- compare(button2.checked, true)
- compare(button3.checked, false)
- compare(group.checkedButton, null)
- compare(group.checkState, Qt.PartiallyChecked)
-
- button1.checked = false
- compare(button1.checked, false)
- compare(button2.checked, true)
- compare(button3.checked, false)
- compare(group.checkedButton, null)
- compare(group.checkState, Qt.PartiallyChecked)
-
- button2.checked = false
- compare(button1.checked, false)
- compare(button2.checked, false)
- compare(button3.checked, false)
- compare(group.checkedButton, null)
- compare(group.checkState, Qt.Unchecked)
-
- button1.checked = true
- compare(button1.checked, true)
- compare(button2.checked, false)
- compare(button3.checked, false)
- compare(group.checkedButton, null)
- compare(group.checkState, Qt.PartiallyChecked)
-
- button2.checked = true
- compare(button1.checked, true)
- compare(button2.checked, true)
- compare(button3.checked, false)
- compare(group.checkedButton, null)
- compare(group.checkState, Qt.PartiallyChecked)
-
- button3.checked = true
- compare(button1.checked, true)
- compare(button2.checked, true)
- compare(button3.checked, true)
- compare(group.checkedButton, null)
- compare(group.checkState, Qt.Checked)
- }
-
- Component {
- id: checkedButtonColumn
- Column {
- id: column
- ButtonGroup { buttons: column.children }
- Repeater {
- id: repeater
- delegate: Button {
- checkable: true
- text: modelData
- onClicked: listModel.remove(index)
- }
- model: ListModel {
- id: listModel
- Component.onCompleted: {
- for (var i = 0; i < 10; ++i)
- append({text: i})
- }
- }
- }
- }
- }
-
- function test_checkedButtonDestroyed() {
- var column = createTemporaryObject(checkedButtonColumn, testCase)
- verify(column)
-
- waitForRendering(column)
- mouseClick(column.children[0])
- wait(0) // don't crash (QTBUG-62946, QTBUG-63470)
- }
-}
diff --git a/tests/auto/controls/data/tst_checkbox.qml b/tests/auto/controls/data/tst_checkbox.qml
deleted file mode 100644
index 1f00294f..00000000
--- a/tests/auto/controls/data/tst_checkbox.qml
+++ /dev/null
@@ -1,544 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "CheckBox"
-
- Component {
- id: checkBox
- CheckBox { }
- }
-
- Component {
- id: signalSequenceSpy
- SignalSequenceSpy {
- signals: ["pressed", "released", "canceled", "clicked", "toggled", "pressedChanged", "checkedChanged", "checkStateChanged"]
- }
- }
-
- function test_text() {
- var control = createTemporaryObject(checkBox, testCase)
- verify(control)
-
- compare(control.text, "")
- control.text = "CheckBox"
- compare(control.text, "CheckBox")
- control.text = ""
- compare(control.text, "")
- }
-
- function test_checked() {
- var control = createTemporaryObject(checkBox, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- sequenceSpy.expectedSequence = []
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["checkStateChanged", { "checked": true, "checkState": Qt.Checked }],
- ["checkedChanged", { "checked": true, "checkState": Qt.Checked }]]
- control.checked = true
- compare(control.checked, true)
- compare(control.checkState, Qt.Checked)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["checkStateChanged", { "checked": false, "checkState": Qt.Unchecked }],
- ["checkedChanged", { "checked": false, "checkState": Qt.Unchecked }]]
- control.checked = false
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- verify(sequenceSpy.success)
- }
-
- function test_checkState() {
- var control = createTemporaryObject(checkBox, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- sequenceSpy.expectedSequence = []
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["checkStateChanged", { "checked": true, "checkState": Qt.Checked }],
- ["checkedChanged", { "checked": true, "checkState": Qt.Checked }]]
- control.checkState = Qt.Checked
- compare(control.checked, true)
- compare(control.checkState, Qt.Checked)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["checkStateChanged", { "checked": false, "checkState": Qt.Unchecked }],
- ["checkedChanged", { "checked": false, "checkState": Qt.Unchecked }]]
- control.checkState = Qt.Unchecked
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- verify(sequenceSpy.success)
- }
-
- function test_mouse() {
- var control = createTemporaryObject(checkBox, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.Unchecked }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkStateChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, true)
- compare(control.checkState, Qt.Checked)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true, "checkState": Qt.Checked }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkStateChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // release outside
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.Unchecked }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }]]
- mouseMove(control, control.width * 2, control.height * 2, 0)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["canceled", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }]]
- mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftButton)
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // right button
- sequenceSpy.expectedSequence = []
- mousePress(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.pressed, false)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- }
-
- function test_touch() {
- var control = createTemporaryObject(checkBox, testCase)
- verify(control)
-
- var touch = touchEvent(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.Unchecked }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkStateChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, true)
- compare(control.checkState, Qt.Checked)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true, "checkState": Qt.Checked }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkStateChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // release outside
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.Unchecked }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }]]
- touch.move(0, control, control.width * 2, control.height * 2).commit()
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["canceled", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }]]
- touch.release(0, control, control.width * 2, control.height * 2).commit()
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- }
-
- function test_keys() {
- var control = createTemporaryObject(checkBox, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- sequenceSpy.expectedSequence = []
- control.forceActiveFocus()
- verify(control.activeFocus)
- verify(sequenceSpy.success)
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.Unchecked }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkStateChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- "toggled",
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, true)
- compare(control.checkState, Qt.Checked)
- verify(sequenceSpy.success)
-
- // uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true, "checkState": Qt.Checked }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkStateChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- "toggled",
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- verify(sequenceSpy.success)
-
- // no change
- sequenceSpy.expectedSequence = []
- var keys = [Qt.Key_Enter, Qt.Key_Return, Qt.Key_Escape, Qt.Key_Tab]
- for (var i = 0; i < keys.length; ++i) {
- sequenceSpy.reset()
- keyClick(keys[i])
- compare(control.checked, false)
- verify(sequenceSpy.success)
- }
- }
-
- Component {
- id: checkedBoundBoxes
- Item {
- property CheckBox cb1: CheckBox { id: cb1 }
- property CheckBox cb2: CheckBox { id: cb2; checked: cb1.checked; enabled: false }
- }
- }
-
- function test_checked_binding() {
- var container = createTemporaryObject(checkedBoundBoxes, testCase)
- verify(container)
-
- compare(container.cb1.checked, false)
- compare(container.cb1.checkState, Qt.Unchecked)
- compare(container.cb2.checked, false)
- compare(container.cb2.checkState, Qt.Unchecked)
-
- container.cb1.checked = true
- compare(container.cb1.checked, true)
- compare(container.cb1.checkState, Qt.Checked)
- compare(container.cb2.checked, true)
- compare(container.cb2.checkState, Qt.Checked)
-
- container.cb1.checked = false
- compare(container.cb1.checked, false)
- compare(container.cb1.checkState, Qt.Unchecked)
- compare(container.cb2.checked, false)
- compare(container.cb2.checkState, Qt.Unchecked)
- }
-
- Component {
- id: checkStateBoundBoxes
- Item {
- property CheckBox cb1: CheckBox { id: cb1 }
- property CheckBox cb2: CheckBox { id: cb2; checkState: cb1.checkState; enabled: false }
- }
- }
-
- function test_checkState_binding() {
- var container = createTemporaryObject(checkStateBoundBoxes, testCase)
- verify(container)
-
- compare(container.cb1.checked, false)
- compare(container.cb1.checkState, Qt.Unchecked)
- compare(container.cb2.checked, false)
- compare(container.cb2.checkState, Qt.Unchecked)
-
- container.cb1.checkState = Qt.Checked
- compare(container.cb1.checked, true)
- compare(container.cb1.checkState, Qt.Checked)
- compare(container.cb2.checked, true)
- compare(container.cb2.checkState, Qt.Checked)
-
- container.cb1.checkState = Qt.Unchecked
- compare(container.cb1.checked, false)
- compare(container.cb1.checkState, Qt.Unchecked)
- compare(container.cb2.checked, false)
- compare(container.cb2.checkState, Qt.Unchecked)
-
- compare(container.cb1.tristate, false)
- compare(container.cb2.tristate, false)
-
- container.cb1.checkState = Qt.PartiallyChecked
- compare(container.cb1.checked, false)
- compare(container.cb1.checkState, Qt.PartiallyChecked)
- compare(container.cb2.checked, false)
- compare(container.cb2.checkState, Qt.PartiallyChecked)
-
- // note: since Qt Quick Controls 2.4 (Qt 5.11), CheckBox does not
- // force tristate when checkState is set to Qt.PartiallyChecked
- compare(container.cb1.tristate, false)
- compare(container.cb2.tristate, false)
- }
-
- function test_tristate() {
- var control = createTemporaryObject(checkBox, testCase, {tristate: true})
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- sequenceSpy.expectedSequence = []
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- compare(control.tristate, true)
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
-
- sequenceSpy.expectedSequence = [["checkStateChanged", { "pressed": false, "checked": false, "checkState": Qt.PartiallyChecked }]]
- control.checkState = Qt.PartiallyChecked
- compare(control.checked, false)
- compare(control.checkState, Qt.PartiallyChecked)
- verify(sequenceSpy.success)
-
- // key: partial -> checked
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.PartiallyChecked }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.PartiallyChecked }],
- ["checkStateChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, true)
- compare(control.checkState, Qt.Checked)
- verify(sequenceSpy.success)
-
- // key: checked -> unchecked
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true, "checkState": Qt.Checked }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkStateChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- verify(sequenceSpy.success)
-
- // key: unchecked -> partial
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.Unchecked }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkStateChanged", { "pressed": false, "checked": false, "checkState": Qt.PartiallyChecked }],
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, false)
- compare(control.checkState, Qt.PartiallyChecked)
- verify(sequenceSpy.success)
-
- // mouse: partial -> checked
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.PartiallyChecked }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.PartiallyChecked }],
- ["checkStateChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- "released",
- "clicked"]
- mouseClick(control)
- compare(control.checked, true)
- compare(control.checkState, Qt.Checked)
- verify(sequenceSpy.success)
-
- // mouse: checked -> unchecked
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true, "checkState": Qt.Checked }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": true, "checkState": Qt.Checked }],
- ["checkStateChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- "released",
- "clicked"]
- mouseClick(control)
- compare(control.checked, false)
- compare(control.checkState, Qt.Unchecked)
- verify(sequenceSpy.success)
-
- // mouse: unchecked -> partial
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false, "checkState": Qt.Unchecked }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": false, "checkState": Qt.Unchecked }],
- ["checkStateChanged", { "pressed": false, "checked": false, "checkState": Qt.PartiallyChecked }],
- "released",
- "clicked"]
- mouseClick(control)
- compare(control.checked, false)
- compare(control.checkState, Qt.PartiallyChecked)
- verify(sequenceSpy.success)
- }
-
- function test_baseline() {
- var control = createTemporaryObject(checkBox, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- Component {
- id: nextCheckStateBox
- CheckBox {
- tristate: true
- nextCheckState: function() {
- if (checkState === Qt.Checked)
- return Qt.Unchecked
- else
- return Qt.Checked
- }
- }
- }
-
- function test_nextCheckState_data() {
- return [
- { tag: "unchecked", checkState: Qt.Unchecked, expectedState: Qt.Checked },
- { tag: "partially-checked", checkState: Qt.PartiallyChecked, expectedState: Qt.Checked },
- { tag: "checked", checkState: Qt.Checked, expectedState: Qt.Unchecked }
- ]
- }
-
- function test_nextCheckState(data) {
- var control = createTemporaryObject(nextCheckStateBox, testCase)
- verify(control)
-
- // mouse
- control.checkState = data.checkState
- compare(control.checkState, data.checkState)
- mouseClick(control)
- compare(control.checkState, data.expectedState)
-
- // touch
- control.checkState = data.checkState
- compare(control.checkState, data.checkState)
- var touch = touchEvent(control)
- touch.press(0, control).commit().release(0, control).commit()
- compare(control.checkState, data.expectedState)
-
- // keyboard
- control.forceActiveFocus()
- tryCompare(control, "activeFocus", true)
- control.checkState = data.checkState
- compare(control.checkState, data.checkState)
- keyClick(Qt.Key_Space)
- compare(control.checkState, data.expectedState)
- }
-}
diff --git a/tests/auto/controls/data/tst_checkdelegate.qml b/tests/auto/controls/data/tst_checkdelegate.qml
deleted file mode 100644
index 0c0565f1..00000000
--- a/tests/auto/controls/data/tst_checkdelegate.qml
+++ /dev/null
@@ -1,220 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "CheckDelegate"
-
- Component {
- id: checkDelegate
- CheckDelegate {}
- }
-
- // TODO: data-fy tst_checkbox (rename to tst_check?) so we don't duplicate its tests here?
-
- function test_defaults() {
- var control = createTemporaryObject(checkDelegate, testCase);
- verify(control);
- verify(!control.checked);
- }
-
- function test_checked() {
- var control = createTemporaryObject(checkDelegate, testCase);
- verify(control);
-
- mouseClick(control);
- verify(control.checked);
-
- mouseClick(control);
- verify(!control.checked);
- }
-
- function test_baseline() {
- var control = createTemporaryObject(checkDelegate, testCase);
- verify(control);
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset);
- }
-
- function test_spacing() {
- var control = createTemporaryObject(checkDelegate, testCase, { text: "Some long, long, long text" })
- verify(control)
- verify(control.contentItem.implicitWidth + control.leftPadding + control.rightPadding > control.background.implicitWidth)
-
- var textLabel = findChild(control.contentItem, "label")
- verify(textLabel)
-
- // The implicitWidth of the IconLabel that all buttons use as their contentItem should be
- // equal to the implicitWidth of the Text and the check indicator + spacing while no icon is set.
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing)
-
- control.spacing += 100
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing)
-
- compare(control.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing + control.leftPadding + control.rightPadding)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: CheckDelegate.IconOnly },
- { "tag": "TextOnly", display: CheckDelegate.TextOnly },
- { "tag": "TextUnderIcon", display: CheckDelegate.TextUnderIcon },
- { "tag": "TextBesideIcon", display: CheckDelegate.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: CheckDelegate.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: CheckDelegate.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: CheckDelegate.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: CheckDelegate.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(checkDelegate, testCase, {
- text: "CheckDelegate",
- display: data.display,
- width: 400,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- var availableWidth = control.availableWidth - control.indicator.width - control.spacing
- var indicatorOffset = control.mirrored ? control.indicator.width + control.spacing : 0
-
- switch (control.display) {
- case CheckDelegate.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, indicatorOffset + (availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case CheckDelegate.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, control.mirrored ? control.availableWidth - textLabel.width : 0)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case CheckDelegate.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, indicatorOffset + (availableWidth - iconImage.width) / 2)
- compare(textLabel.x, indicatorOffset + (availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case CheckDelegate.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-
- Component {
- id: nextCheckStateDelegate
- CheckDelegate {
- tristate: true
- nextCheckState: function() {
- if (checkState === Qt.Checked)
- return Qt.Unchecked
- else
- return Qt.Checked
- }
- }
- }
-
- function test_nextCheckState_data() {
- return [
- { tag: "unchecked", checkState: Qt.Unchecked, expectedState: Qt.Checked },
- { tag: "partially-checked", checkState: Qt.PartiallyChecked, expectedState: Qt.Checked },
- { tag: "checked", checkState: Qt.Checked, expectedState: Qt.Unchecked }
- ]
- }
-
- function test_nextCheckState(data) {
- var control = createTemporaryObject(nextCheckStateDelegate, testCase)
- verify(control)
-
- // mouse
- control.checkState = data.checkState
- compare(control.checkState, data.checkState)
- mouseClick(control)
- compare(control.checkState, data.expectedState)
-
- // touch
- control.checkState = data.checkState
- compare(control.checkState, data.checkState)
- var touch = touchEvent(control)
- touch.press(0, control).commit().release(0, control).commit()
- compare(control.checkState, data.expectedState)
-
- // keyboard
- control.forceActiveFocus()
- tryCompare(control, "activeFocus", true)
- control.checkState = data.checkState
- compare(control.checkState, data.checkState)
- keyClick(Qt.Key_Space)
- compare(control.checkState, data.expectedState)
- }
-}
diff --git a/tests/auto/controls/data/tst_combobox.qml b/tests/auto/controls/data/tst_combobox.qml
deleted file mode 100644
index 2cf71f73..00000000
--- a/tests/auto/controls/data/tst_combobox.qml
+++ /dev/null
@@ -1,1856 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "ComboBox"
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- Component {
- id: comboBox
- ComboBox { }
- }
-
- Component {
- id: emptyBox
- ComboBox {
- delegate: ItemDelegate {
- width: parent.width
- }
- }
- }
-
- Component {
- id: mouseArea
- MouseArea { }
- }
-
- Component {
- id: customPopup
- Popup {
- width: 100
- implicitHeight: contentItem.implicitHeight
- contentItem: TextInput {
- anchors.fill: parent
- }
- }
- }
-
- Component {
- id: comboBoxWithShaderEffect
- ComboBox {
- delegate: Rectangle {
- Text {
- id: txt
- anchors.centerIn: parent
- text: "item" + index
- font.pixelSize: 20
- color: "red"
- }
- id: rect
- objectName: "rect"
- width: parent.width
- height: txt.implicitHeight
- gradient: Gradient {
- GradientStop { color: "lightsteelblue"; position: 0.0 }
- GradientStop { color: "blue"; position: 1.0 }
- }
- layer.enabled: true
- layer.effect: ShaderEffect {
- objectName: "ShaderFX"
- width: rect.width
- height: rect.height
- fragmentShader: "
- uniform lowp sampler2D source; // this item
- uniform lowp float qt_Opacity; // inherited opacity of this item
- varying highp vec2 qt_TexCoord0;
- void main() {
- lowp vec4 p = texture2D(source, qt_TexCoord0);
- lowp float g = dot(p.xyz, vec3(0.344, 0.5, 0.156));
- gl_FragColor = vec4(g, g, g, p.a) * qt_Opacity;
- }"
-
- }
- }
- }
- }
-
- function init() {
- // QTBUG-61225: Move the mouse away to avoid QQuickWindowPrivate::flushFrameSynchronousEvents()
- // delivering interfering hover events based on the last mouse position from earlier tests. For
- // example, ComboBox::test_activation() kept receiving hover events for the last mouse position
- // from CheckDelegate::test_checked().
- mouseMove(testCase, testCase.width - 1, testCase.height - 1)
- }
-
- function test_defaults() {
- var control = createTemporaryObject(comboBox, testCase)
- verify(control)
-
- compare(control.count, 0)
- compare(control.model, undefined)
- compare(control.flat, false)
- compare(control.pressed, false)
- compare(control.currentIndex, -1)
- compare(control.highlightedIndex, -1)
- compare(control.currentText, "")
- verify(control.delegate)
- verify(control.indicator)
- verify(control.popup)
- }
-
- function test_array() {
- var control = createTemporaryObject(comboBox, testCase)
- verify(control)
-
- var items = [ "Banana", "Apple", "Coconut" ]
-
- control.model = items
- compare(control.model, items)
-
- compare(control.count, 3)
- compare(control.currentIndex, 0)
- compare(control.currentText, "Banana")
-
- control.currentIndex = 2
- compare(control.currentIndex, 2)
- compare(control.currentText, "Coconut")
-
- control.model = null
- compare(control.model, null)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentText, "")
- }
-
- function test_objects() {
- var control = createTemporaryObject(emptyBox, testCase)
- verify(control)
-
- var items = [
- { text: "Apple" },
- { text: "Orange" },
- { text: "Banana" }
- ]
-
- control.model = items
- compare(control.model, items)
-
- compare(control.count, 3)
- compare(control.currentIndex, 0)
- compare(control.currentText, "Apple")
-
- control.currentIndex = 2
- compare(control.currentIndex, 2)
- compare(control.currentText, "Banana")
-
- control.model = null
- compare(control.model, null)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentText, "")
- }
-
- function test_qobjects() {
- var control = createTemporaryObject(emptyBox, testCase, {textRole: "text"})
- verify(control)
-
- var obj1 = Qt.createQmlObject("import QtQml 2.0; QtObject { property string text: 'one' }", control)
- var obj2 = Qt.createQmlObject("import QtQml 2.0; QtObject { property string text: 'two' }", control)
- var obj3 = Qt.createQmlObject("import QtQml 2.0; QtObject { property string text: 'three' }", control)
-
- control.model = [obj1, obj2, obj3]
-
- compare(control.count, 3)
- compare(control.currentIndex, 0)
- compare(control.currentText, "one")
-
- control.currentIndex = 2
- compare(control.currentIndex, 2)
- compare(control.currentText, "three")
-
- control.model = null
- compare(control.model, null)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentText, "")
- }
-
- function test_number() {
- var control = createTemporaryObject(comboBox, testCase)
- verify(control)
-
- control.model = 10
- compare(control.model, 10)
-
- compare(control.count, 10)
- compare(control.currentIndex, 0)
- compare(control.currentText, "0")
-
- control.currentIndex = 9
- compare(control.currentIndex, 9)
- compare(control.currentText, "9")
-
- control.model = 0
- compare(control.model, 0)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentText, "")
- }
-
- ListModel {
- id: listmodel
- ListElement { text: "First" }
- ListElement { text: "Second" }
- ListElement { text: "Third" }
- ListElement { text: "Fourth" }
- ListElement { text: "Fifth" }
- }
-
- function test_listModel() {
- var control = createTemporaryObject(comboBox, testCase)
- verify(control)
-
- control.model = listmodel
- compare(control.model, listmodel)
-
- compare(control.count, 5)
- compare(control.currentIndex, 0)
- compare(control.currentText, "First")
-
- control.currentIndex = 2
- compare(control.currentIndex, 2)
- compare(control.currentText, "Third")
-
- control.model = undefined
- compare(control.model, undefined)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentText, "")
- }
-
- ListModel {
- id: fruitmodel
- ListElement { name: "Apple"; color: "red" }
- ListElement { name: "Orange"; color: "orange" }
- ListElement { name: "Banana"; color: "yellow" }
- }
-
- property var fruitarray: [
- { name: "Apple", color: "red" },
- { name: "Orange", color: "orange" },
- { name: "Banana", color: "yellow" }
- ]
-
- function test_textRole_data() {
- return [
- { tag: "ListModel", model: fruitmodel },
- { tag: "ObjectArray", model: fruitarray }
- ]
- }
-
- function test_textRole(data) {
- var control = createTemporaryObject(emptyBox, testCase)
- verify(control)
-
- control.model = data.model
- compare(control.count, 3)
- compare(control.currentIndex, 0)
- compare(control.currentText, "")
-
- control.textRole = "name"
- compare(control.currentText, "Apple")
-
- control.textRole = "color"
- compare(control.currentText, "red")
-
- control.currentIndex = 1
- compare(control.currentIndex, 1)
- compare(control.currentText, "orange")
-
- control.textRole = "name"
- compare(control.currentText, "Orange")
-
- control.textRole = ""
- compare(control.currentText, "")
- }
-
- function test_textAt() {
- var control = createTemporaryObject(comboBox, testCase)
- verify(control)
-
- control.model = ["Apple", "Orange", "Banana"]
- compare(control.textAt(0), "Apple")
- compare(control.textAt(1), "Orange")
- compare(control.textAt(2), "Banana")
- compare(control.textAt(-1), "") // TODO: null?
- compare(control.textAt(5), "") // TODO: null?
- }
-
- function test_find_data() {
- return [
- { tag: "Banana (MatchExactly)", term: "Banana", flags: Qt.MatchExactly, index: 0 },
- { tag: "banana (MatchExactly)", term: "banana", flags: Qt.MatchExactly, index: 1 },
- { tag: "bananas (MatchExactly)", term: "bananas", flags: Qt.MatchExactly, index: -1 },
- { tag: "Cocomuffin (MatchExactly)", term: "Cocomuffin", flags: Qt.MatchExactly, index: 4 },
-
- { tag: "b(an)+a (MatchRegExp)", term: "B(an)+a", flags: Qt.MatchRegExp, index: 0 },
- { tag: "b(an)+a (MatchRegExp|MatchCaseSensitive)", term: "b(an)+a", flags: Qt.MatchRegExp | Qt.MatchCaseSensitive, index: 1 },
- { tag: "[coc]+\\w+ (MatchRegExp)", term: "[coc]+\\w+", flags: Qt.MatchRegExp, index: 2 },
-
- { tag: "?pp* (MatchWildcard)", term: "?pp*", flags: Qt.MatchWildcard, index: 3 },
- { tag: "app* (MatchWildcard|MatchCaseSensitive)", term: "app*", flags: Qt.MatchWildcard | Qt.MatchCaseSensitive, index: -1 },
-
- { tag: "Banana (MatchFixedString)", term: "Banana", flags: Qt.MatchFixedString, index: 0 },
- { tag: "banana (MatchFixedString|MatchCaseSensitive)", term: "banana", flags: Qt.MatchFixedString | Qt.MatchCaseSensitive, index: 1 },
-
- { tag: "coco (MatchStartsWith)", term: "coco", flags: Qt.MatchStartsWith, index: 2 },
- { tag: "coco (MatchStartsWith|MatchCaseSensitive)", term: "coco", flags: Qt.StartsWith | Qt.MatchCaseSensitive, index: -1 },
-
- { tag: "MUFFIN (MatchEndsWith)", term: "MUFFIN", flags: Qt.MatchEndsWith, index: 4 },
- { tag: "MUFFIN (MatchEndsWith|MatchCaseSensitive)", term: "MUFFIN", flags: Qt.MatchEndsWith | Qt.MatchCaseSensitive, index: -1 },
-
- { tag: "Con (MatchContains)", term: "Con", flags: Qt.MatchContains, index: 2 },
- { tag: "Con (MatchContains|MatchCaseSensitive)", term: "Con", flags: Qt.MatchContains | Qt.MatchCaseSensitive, index: -1 },
- ]
- }
-
- function test_find(data) {
- var control = createTemporaryObject(comboBox, testCase)
- verify(control)
-
- control.model = ["Banana", "banana", "Coconut", "Apple", "Cocomuffin"]
-
- compare(control.find(data.term, data.flags), data.index)
- }
-
- function test_valueRole_data() {
- return [
- { tag: "ListModel", model: fruitmodel },
- { tag: "ObjectArray", model: fruitarray }
- ]
- }
-
- function test_valueRole(data) {
- var control = createTemporaryObject(emptyBox, testCase,
- { model: data.model, valueRole: "color" })
- verify(control)
- compare(control.count, 3)
- compare(control.currentIndex, 0)
- compare(control.currentValue, "red")
-
- control.valueRole = "name"
- compare(control.currentValue, "Apple")
-
- control.currentIndex = 1
- compare(control.currentIndex, 1)
- compare(control.currentValue, "Orange")
-
- control.valueRole = "color"
- compare(control.currentValue, "orange")
-
- control.model = null
- compare(control.currentIndex, -1)
- // An invalid QVariant is represented as undefined.
- compare(control.currentValue, undefined)
-
- control.valueRole = ""
- compare(control.currentValue, undefined)
- }
-
- function test_valueAt() {
- var control = createTemporaryObject(comboBox, testCase,
- { model: fruitmodel, textRole: "name", valueRole: "color" })
- verify(control)
-
- compare(control.valueAt(0), "red")
- compare(control.valueAt(1), "orange")
- compare(control.valueAt(2), "yellow")
- compare(control.valueAt(-1), undefined)
- compare(control.valueAt(5), undefined)
- }
-
- function test_indexOfValue_data() {
- return [
- { tag: "red", expectedIndex: 0 },
- { tag: "orange", expectedIndex: 1 },
- { tag: "yellow", expectedIndex: 2 },
- { tag: "brown", expectedIndex: -1 },
- ]
- }
-
- function test_indexOfValue(data) {
- var control = createTemporaryObject(comboBox, testCase,
- { model: fruitmodel, textRole: "name", valueRole: "color" })
- verify(control)
-
- compare(control.indexOfValue(data.tag), data.expectedIndex)
- }
-
-
- function test_arrowKeys() {
- var control = createTemporaryObject(comboBox, testCase,
- { model: fruitmodel, textRole: "name", valueRole: "color" })
- verify(control)
-
- var activatedSpy = signalSpy.createObject(control, {target: control, signalName: "activated"})
- verify(activatedSpy.valid)
-
- var highlightedSpy = signalSpy.createObject(control, {target: control, signalName: "highlighted"})
- verify(highlightedSpy.valid)
-
- var openedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "opened"})
- verify(openedSpy.valid)
-
- var closedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "closed"})
- verify(closedSpy.valid)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, -1)
-
- keyClick(Qt.Key_Down)
- compare(control.currentIndex, 1)
- compare(control.highlightedIndex, -1)
- compare(highlightedSpy.count, 0)
- compare(activatedSpy.count, 1)
- compare(activatedSpy.signalArguments[0][0], 1)
- activatedSpy.clear()
-
- keyClick(Qt.Key_Down)
- compare(control.currentIndex, 2)
- compare(control.highlightedIndex, -1)
- compare(highlightedSpy.count, 0)
- compare(activatedSpy.count, 1)
- compare(activatedSpy.signalArguments[0][0], 2)
- activatedSpy.clear()
-
- keyClick(Qt.Key_Down)
- compare(control.currentIndex, 2)
- compare(control.highlightedIndex, -1)
- compare(highlightedSpy.count, 0)
- compare(activatedSpy.count, 0)
-
- keyClick(Qt.Key_Up)
- compare(control.currentIndex, 1)
- compare(control.highlightedIndex, -1)
- compare(highlightedSpy.count, 0)
- compare(activatedSpy.count, 1)
- compare(activatedSpy.signalArguments[0][0], 1)
- activatedSpy.clear()
-
- keyClick(Qt.Key_Up)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, -1)
- compare(highlightedSpy.count, 0)
- compare(activatedSpy.count, 1)
- compare(activatedSpy.signalArguments[0][0], 0)
- activatedSpy.clear()
-
- keyClick(Qt.Key_Up)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, -1)
- compare(highlightedSpy.count, 0)
- compare(activatedSpy.count, 0)
-
- // show popup
- keyClick(Qt.Key_Space)
- openedSpy.wait()
- compare(openedSpy.count, 1)
-
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 0)
-
- keyClick(Qt.Key_Down)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 1)
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 1)
- compare(highlightedSpy.signalArguments[0][0], 1)
- highlightedSpy.clear()
-
- keyClick(Qt.Key_Down)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 2)
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 1)
- compare(highlightedSpy.signalArguments[0][0], 2)
- highlightedSpy.clear()
-
- keyClick(Qt.Key_Down)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 2)
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 0)
-
- keyClick(Qt.Key_Up)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 1)
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 1)
- compare(highlightedSpy.signalArguments[0][0], 1)
- highlightedSpy.clear()
-
- keyClick(Qt.Key_Up)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 0)
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 1)
- compare(highlightedSpy.signalArguments[0][0], 0)
- highlightedSpy.clear()
-
- keyClick(Qt.Key_Up)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 0)
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 0)
-
- keyClick(Qt.Key_Down)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 1)
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 1)
- compare(highlightedSpy.signalArguments[0][0], 1)
- highlightedSpy.clear()
-
- // hide popup
- keyClick(Qt.Key_Space)
- closedSpy.wait()
- compare(closedSpy.count, 1)
-
- compare(control.currentIndex, 1)
- compare(control.highlightedIndex, -1)
- }
-
- function test_keys_space_enter_escape_data() {
- return [
- { tag: "space-space", key1: Qt.Key_Space, key2: Qt.Key_Space, showPopup: true, showPress: true, hidePopup: true, hidePress: true },
- { tag: "space-enter", key1: Qt.Key_Space, key2: Qt.Key_Enter, showPopup: true, showPress: true, hidePopup: true, hidePress: true },
- { tag: "space-return", key1: Qt.Key_Space, key2: Qt.Key_Return, showPopup: true, showPress: true, hidePopup: true, hidePress: true },
- { tag: "space-escape", key1: Qt.Key_Space, key2: Qt.Key_Escape, showPopup: true, showPress: true, hidePopup: true, hidePress: false },
- { tag: "space-0", key1: Qt.Key_Space, key2: Qt.Key_0, showPopup: true, showPress: true, hidePopup: false, hidePress: false },
- { tag: "enter-enter", key1: Qt.Key_Enter, key2: Qt.Key_Enter, showPopup: false, showPress: false, hidePopup: true, hidePress: false },
- { tag: "return-return", key1: Qt.Key_Return, key2: Qt.Key_Return, showPopup: false, showPress: false, hidePopup: true, hidePress: false },
- { tag: "escape-escape", key1: Qt.Key_Escape, key2: Qt.Key_Escape, showPopup: false, showPress: false, hidePopup: true, hidePress: false }
- ]
- }
-
- function test_keys_space_enter_escape(data) {
- var control = createTemporaryObject(comboBox, testCase, {model: 3})
- verify(control)
-
- var openedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "opened"})
- verify(openedSpy.valid)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- compare(control.pressed, false)
- compare(control.popup.visible, false)
-
- // show popup
- keyPress(data.key1)
- compare(control.pressed, data.showPress)
- compare(control.popup.visible, false)
- keyRelease(data.key1)
- compare(control.pressed, false)
- compare(control.popup.visible, data.showPopup)
- if (data.showPopup)
- openedSpy.wait()
-
- // hide popup
- keyPress(data.key2)
- compare(control.pressed, data.hidePress)
- keyRelease(data.key2)
- compare(control.pressed, false)
- tryCompare(control.popup, "visible", !data.hidePopup)
- }
-
- function test_keys_home_end() {
- var control = createTemporaryObject(comboBox, testCase, {model: 5})
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, -1)
-
- var activatedCount = 0
- var activatedSpy = signalSpy.createObject(control, {target: control, signalName: "activated"})
- verify(activatedSpy.valid)
-
- var highlightedCount = 0
- var highlightedSpy = signalSpy.createObject(control, {target: control, signalName: "highlighted"})
- verify(highlightedSpy.valid)
-
- var currentIndexCount = 0
- var currentIndexSpy = signalSpy.createObject(control, {target: control, signalName: "currentIndexChanged"})
- verify(currentIndexSpy.valid)
-
- var highlightedIndexCount = 0
- var highlightedIndexSpy = signalSpy.createObject(control, {target: control, signalName: "highlightedIndexChanged"})
- verify(highlightedIndexSpy.valid)
-
- // end (popup closed)
- keyClick(Qt.Key_End)
- compare(control.currentIndex, 4)
- compare(currentIndexSpy.count, ++currentIndexCount)
-
- compare(control.highlightedIndex, -1)
- compare(highlightedIndexSpy.count, highlightedIndexCount)
-
- compare(activatedSpy.count, ++activatedCount)
- compare(activatedSpy.signalArguments[activatedCount-1][0], 4)
-
- compare(highlightedSpy.count, highlightedCount)
-
- // repeat (no changes/signals)
- keyClick(Qt.Key_End)
- compare(currentIndexSpy.count, currentIndexCount)
- compare(highlightedIndexSpy.count, highlightedIndexCount)
- compare(activatedSpy.count, activatedCount)
- compare(highlightedSpy.count, highlightedCount)
-
- // home (popup closed)
- keyClick(Qt.Key_Home)
- compare(control.currentIndex, 0)
- compare(currentIndexSpy.count, ++currentIndexCount)
-
- compare(control.highlightedIndex, -1)
- compare(highlightedIndexSpy.count, highlightedIndexCount)
-
- compare(activatedSpy.count, ++activatedCount)
- compare(activatedSpy.signalArguments[activatedCount-1][0], 0)
-
- compare(highlightedSpy.count, highlightedCount)
-
- // repeat (no changes/signals)
- keyClick(Qt.Key_Home)
- compare(currentIndexSpy.count, currentIndexCount)
- compare(highlightedIndexSpy.count, highlightedIndexCount)
- compare(activatedSpy.count, activatedCount)
- compare(highlightedSpy.count, highlightedCount)
-
- control.popup.open()
- compare(control.highlightedIndex, 0)
- compare(highlightedIndexSpy.count, ++highlightedIndexCount)
- compare(highlightedSpy.count, highlightedCount)
-
- // end (popup open)
- keyClick(Qt.Key_End)
- compare(control.currentIndex, 0)
- compare(currentIndexSpy.count, currentIndexCount)
-
- compare(control.highlightedIndex, 4)
- compare(highlightedIndexSpy.count, ++highlightedIndexCount)
-
- compare(activatedSpy.count, activatedCount)
-
- compare(highlightedSpy.count, ++highlightedCount)
- compare(highlightedSpy.signalArguments[highlightedCount-1][0], 4)
-
- // repeat (no changes/signals)
- keyClick(Qt.Key_End)
- compare(currentIndexSpy.count, currentIndexCount)
- compare(highlightedIndexSpy.count, highlightedIndexCount)
- compare(activatedSpy.count, activatedCount)
- compare(highlightedSpy.count, highlightedCount)
-
- // home (popup open)
- keyClick(Qt.Key_Home)
- compare(control.currentIndex, 0)
- compare(currentIndexSpy.count, currentIndexCount)
-
- compare(control.highlightedIndex, 0)
- compare(highlightedIndexSpy.count, ++highlightedIndexCount)
-
- compare(activatedSpy.count, activatedCount)
-
- compare(highlightedSpy.count, ++highlightedCount)
- compare(highlightedSpy.signalArguments[highlightedCount-1][0], 0)
-
- // repeat (no changes/signals)
- keyClick(Qt.Key_Home)
- compare(currentIndexSpy.count, currentIndexCount)
- compare(highlightedIndexSpy.count, highlightedIndexCount)
- compare(activatedSpy.count, activatedCount)
- compare(highlightedSpy.count, highlightedCount)
- }
-
- function test_keySearch() {
- var control = createTemporaryObject(comboBox, testCase, {model: ["Banana", "Coco", "Coconut", "Apple", "Cocomuffin"]})
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- compare(control.currentIndex, 0)
- compare(control.currentText, "Banana")
- compare(control.highlightedIndex, -1)
-
- keyPress(Qt.Key_C)
- compare(control.currentIndex, 1)
- compare(control.currentText, "Coco")
- compare(control.highlightedIndex, -1)
-
- // no match
- keyPress(Qt.Key_N)
- compare(control.currentIndex, 1)
- compare(control.currentText, "Coco")
- compare(control.highlightedIndex, -1)
-
- keyPress(Qt.Key_C)
- compare(control.currentIndex, 2)
- compare(control.currentText, "Coconut")
- compare(control.highlightedIndex, -1)
-
- keyPress(Qt.Key_C)
- compare(control.currentIndex, 4)
- compare(control.currentText, "Cocomuffin")
- compare(control.highlightedIndex, -1)
-
- // wrap
- keyPress(Qt.Key_C)
- compare(control.currentIndex, 1)
- compare(control.currentText, "Coco")
- compare(control.highlightedIndex, -1)
-
- keyPress(Qt.Key_A)
- compare(control.currentIndex, 3)
- compare(control.currentText, "Apple")
- compare(control.highlightedIndex, -1)
-
- keyPress(Qt.Key_B)
- compare(control.currentIndex, 0)
- compare(control.currentText, "Banana")
- compare(control.highlightedIndex, -1)
-
- // popup
- control.popup.open()
- tryCompare(control.popup, "opened", true)
-
- compare(control.currentIndex, 0)
- compare(control.highlightedIndex, 0)
-
- keyClick(Qt.Key_C)
- compare(control.highlightedIndex, 1) // "Coco"
- compare(control.currentIndex, 0)
-
- // no match
- keyClick(Qt.Key_N)
- compare(control.highlightedIndex, 1)
- compare(control.currentIndex, 0)
-
- keyClick(Qt.Key_C)
- compare(control.highlightedIndex, 2) // "Coconut"
- compare(control.currentIndex, 0)
-
- keyClick(Qt.Key_C)
- compare(control.highlightedIndex, 4) // "Cocomuffin"
- compare(control.currentIndex, 0)
-
- // wrap
- keyClick(Qt.Key_C)
- compare(control.highlightedIndex, 1) // "Coco"
- compare(control.currentIndex, 0)
-
- keyClick(Qt.Key_B)
- compare(control.highlightedIndex, 0) // "Banana"
- compare(control.currentIndex, 0)
-
- keyClick(Qt.Key_A)
- compare(control.highlightedIndex, 3) // "Apple"
- compare(control.currentIndex, 0)
-
- verify(control.popup.visible)
-
- // accept
- keyClick(Qt.Key_Return)
- tryCompare(control.popup, "visible", false)
- compare(control.currentIndex, 3)
- compare(control.currentText, "Apple")
- compare(control.highlightedIndex, -1)
- }
-
- function test_popup() {
- var control = createTemporaryObject(comboBox, testCase, {model: 3})
- verify(control)
-
- // show below
- mousePress(control)
- compare(control.pressed, true)
- compare(control.popup.visible, false)
- mouseRelease(control)
- compare(control.pressed, false)
- compare(control.popup.visible, true)
- verify(control.popup.contentItem.y >= control.y)
-
- // hide
- mouseClick(control)
- compare(control.pressed, false)
- tryCompare(control.popup, "visible", false)
-
- // show above
- control.y = control.Window.height - control.height
- mousePress(control)
- compare(control.pressed, true)
- compare(control.popup.visible, false)
- mouseRelease(control)
- compare(control.pressed, false)
- compare(control.popup.visible, true)
- verify(control.popup.contentItem.y < control.y)
-
- // follow the control outside the horizontal window bounds
- control.x = -control.width / 2
- compare(control.x, -control.width / 2)
- compare(control.popup.contentItem.parent.x, -control.width / 2)
- control.x = testCase.width - control.width / 2
- compare(control.x, testCase.width - control.width / 2)
- compare(control.popup.contentItem.parent.x, testCase.width - control.width / 2)
-
- // close the popup when hidden (QTBUG-67684)
- control.popup.open()
- tryCompare(control.popup, "opened", true)
- control.visible = false
- tryCompare(control.popup, "visible", false)
- }
-
- function test_mouse() {
- var control = createTemporaryObject(comboBox, testCase, {model: 3, hoverEnabled: false})
- verify(control)
-
- var activatedSpy = signalSpy.createObject(control, {target: control, signalName: "activated"})
- verify(activatedSpy.valid)
-
- mouseClick(control)
- compare(control.popup.visible, true)
-
- var content = control.popup.contentItem
- waitForRendering(content)
-
- // press - move - release outside - not activated - not closed
- mousePress(content)
- compare(activatedSpy.count, 0)
- mouseMove(content, content.width * 2)
- compare(activatedSpy.count, 0)
- mouseRelease(content, content.width * 2)
- compare(activatedSpy.count, 0)
- compare(control.popup.visible, true)
-
- // press - move - release inside - activated - closed
- mousePress(content)
- compare(activatedSpy.count, 0)
- mouseMove(content, content.width / 2 + 1, content.height / 2 + 1)
- compare(activatedSpy.count, 0)
- mouseRelease(content)
- compare(activatedSpy.count, 1)
- tryCompare(control.popup, "visible", false)
- }
-
- function test_touch() {
- var control = createTemporaryObject(comboBox, testCase, {model: 3})
- verify(control)
-
- var touch = touchEvent(control)
-
- var activatedSpy = signalSpy.createObject(control, {target: control, signalName: "activated"})
- verify(activatedSpy.valid)
-
- var highlightedSpy = signalSpy.createObject(control, {target: control, signalName: "highlighted"})
- verify(highlightedSpy.valid)
-
- touch.press(0, control).commit()
- touch.release(0, control).commit()
- compare(control.popup.visible, true)
-
- var content = control.popup.contentItem
- waitForRendering(content)
-
- // press - move - release outside - not activated - not closed
- touch.press(0, control).commit()
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 0)
- touch.move(0, control, control.width * 2, control.height / 2).commit()
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 0)
- touch.release(0, control, control.width * 2, control.height / 2).commit()
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 0)
- compare(control.popup.visible, true)
-
- // press - move - release inside - activated - closed
- touch.press(0, content).commit()
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 0)
- touch.move(0, content, content.width / 2 + 1, content.height / 2 + 1).commit()
- compare(activatedSpy.count, 0)
- compare(highlightedSpy.count, 0)
- touch.release(0, content).commit()
- compare(activatedSpy.count, 1)
- compare(highlightedSpy.count, 1)
- tryCompare(control.popup, "visible", false)
- }
-
- function test_down() {
- var control = createTemporaryObject(comboBox, testCase, {model: 3})
- verify(control)
-
- // some styles position the popup over the combo button. move it out
- // of the way to avoid stealing mouse presses. we want to test the
- // combinations of the button being pressed and the popup being visible.
- control.popup.y = control.height
-
- var downSpy = signalSpy.createObject(control, {target: control, signalName: "downChanged"})
- verify(downSpy.valid)
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- mousePress(control)
- compare(control.popup.visible, false)
- compare(control.pressed, true)
- compare(control.down, true)
- compare(downSpy.count, 1)
- compare(pressedSpy.count, 1)
-
- mouseRelease(control)
- compare(control.popup.visible, true)
- compare(control.pressed, false)
- compare(control.down, true)
- compare(downSpy.count, 3)
- compare(pressedSpy.count, 2)
-
- compare(control.popup.y, control.height)
-
- control.down = false
- compare(control.down, false)
- compare(downSpy.count, 4)
-
- mousePress(control)
- compare(control.popup.visible, true)
- compare(control.pressed, true)
- compare(control.down, false) // explicit false
- compare(downSpy.count, 4)
- compare(pressedSpy.count, 3)
-
- control.down = undefined
- compare(control.down, true)
- compare(downSpy.count, 5)
-
- mouseRelease(control)
- tryCompare(control.popup, "visible", false)
- compare(control.pressed, false)
- compare(control.down, false)
- compare(downSpy.count, 6)
- compare(pressedSpy.count, 4)
-
- control.popup.open()
- compare(control.popup.visible, true)
- compare(control.pressed, false)
- compare(control.down, true)
- compare(downSpy.count, 7)
- compare(pressedSpy.count, 4)
-
- control.popup.close()
- tryCompare(control.popup, "visible", false)
- compare(control.pressed, false)
- compare(control.down, false)
- compare(downSpy.count, 8)
- compare(pressedSpy.count, 4)
- }
-
- function test_focus() {
- var control = createTemporaryObject(comboBox, testCase, {model: 3})
- verify(control)
-
- var openedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "opened"})
- verify(openedSpy.valid)
-
- var closedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "closed"})
- verify(openedSpy.valid)
-
- // click - gain focus - show popup
- mouseClick(control)
- verify(control.activeFocus)
- openedSpy.wait()
- compare(openedSpy.count, 1)
- compare(control.popup.visible, true)
-
- // lose focus - hide popup
- control.focus = false
- verify(!control.activeFocus)
- closedSpy.wait()
- compare(closedSpy.count, 1)
- compare(control.popup.visible, false)
- }
-
- function test_baseline() {
- var control = createTemporaryObject(comboBox, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- Component {
- id: displayBox
- ComboBox {
- textRole: "key"
- model: ListModel {
- ListElement { key: "First"; value: 123 }
- ListElement { key: "Second"; value: 456 }
- ListElement { key: "Third"; value: 789 }
- }
- }
- }
-
- function test_displayText() {
- var control = createTemporaryObject(displayBox, testCase)
- verify(control)
-
- compare(control.displayText, "First")
- control.currentIndex = 1
- compare(control.displayText, "Second")
- control.textRole = "value"
- compare(control.displayText, "456")
- control.displayText = "Display"
- compare(control.displayText, "Display")
- control.currentIndex = 2
- compare(control.displayText, "Display")
- control.displayText = undefined
- compare(control.displayText, "789")
- }
-
- Component {
- id: component
- Pane {
- id: panel
- property alias button: _button;
- property alias combobox: _combobox;
- font.pixelSize: 30
- Column {
- Button {
- id: _button
- text: "Button"
- font.pixelSize: 20
- }
- ComboBox {
- id: _combobox
- model: ["ComboBox", "With"]
- delegate: ItemDelegate {
- width: _combobox.width
- text: _combobox.textRole ? (Array.isArray(_combobox.model) ? modelData[_combobox.textRole] : model[_combobox.textRole]) : modelData
- objectName: "delegate"
- autoExclusive: true
- checked: _combobox.currentIndex === index
- highlighted: _combobox.highlightedIndex === index
- }
- }
- }
- }
- }
-
- function getChild(control, objname, idx) {
- var index = idx
- for (var i = index+1; i < control.children.length; i++)
- {
- if (control.children[i].objectName === objname) {
- index = i
- break
- }
- }
- return index
- }
-
- function test_font() { // QTBUG_50984, QTBUG-51696
- var control = createTemporaryObject(component, testCase)
- verify(control)
- verify(control.button)
- verify(control.combobox)
-
- compare(control.font.pixelSize, 30)
- compare(control.button.font.pixelSize, 20)
- compare(control.combobox.font.pixelSize, 30)
-
-// verify(control.combobox.popup)
-// var popup = control.combobox.popup
-// popup.open()
-
-// verify(popup.contentItem)
-
-// var listview = popup.contentItem
-// verify(listview.contentItem)
-// waitForRendering(listview)
-
-// var idx1 = getChild(listview.contentItem, "delegate", -1)
-// compare(listview.contentItem.children[idx1].font.pixelSize, 25)
-// var idx2 = getChild(listview.contentItem, "delegate", idx1)
-// compare(listview.contentItem.children[idx2].font.pixelSize, 25)
-
-// compare(listview.contentItem.children[idx1].font.pixelSize, 25)
-// compare(listview.contentItem.children[idx2].font.pixelSize, 25)
-
- control.font.pixelSize = control.font.pixelSize + 10
- compare(control.combobox.font.pixelSize, 40)
-// waitForRendering(listview)
-// compare(listview.contentItem.children[idx1].font.pixelSize, 25)
-// compare(listview.contentItem.children[idx2].font.pixelSize, 25)
-
- control.combobox.font.pixelSize = control.combobox.font.pixelSize + 5
- compare(control.combobox.font.pixelSize, 45)
-// waitForRendering(listview)
-
-// idx1 = getChild(listview.contentItem, "delegate", -1)
-// compare(listview.contentItem.children[idx1].font.pixelSize, 25)
-// idx2 = getChild(listview.contentItem, "delegate", idx1)
-// compare(listview.contentItem.children[idx2].font.pixelSize, 25)
- }
-
- function test_wheel() {
- var ma = createTemporaryObject(mouseArea, testCase, {width: 100, height: 100})
- verify(ma)
-
- var control = comboBox.createObject(ma, {model: 2, wheelEnabled: true})
- verify(control)
-
- var delta = 120
-
- var spy = signalSpy.createObject(ma, {target: ma, signalName: "wheel"})
- verify(spy.valid)
-
- mouseWheel(control, control.width / 2, control.height / 2, -delta, -delta)
- compare(control.currentIndex, 1)
- compare(spy.count, 0) // no propagation
-
- // reached bounds -> no change
- mouseWheel(control, control.width / 2, control.height / 2, -delta, -delta)
- compare(control.currentIndex, 1)
- compare(spy.count, 0) // no propagation
-
- mouseWheel(control, control.width / 2, control.height / 2, delta, delta)
- compare(control.currentIndex, 0)
- compare(spy.count, 0) // no propagation
-
- // reached bounds -> no change
- mouseWheel(control, control.width / 2, control.height / 2, delta, delta)
- compare(control.currentIndex, 0)
- compare(spy.count, 0) // no propagation
- }
-
- function test_activation_data() {
- return [
- { tag: "open:enter", key: Qt.Key_Enter, open: true },
- { tag: "open:return", key: Qt.Key_Return, open: true },
- { tag: "closed:enter", key: Qt.Key_Enter, open: false },
- { tag: "closed:return", key: Qt.Key_Return, open: false }
- ]
- }
-
- // QTBUG-51645
- function test_activation(data) {
- var control = createTemporaryObject(comboBox, testCase, {currentIndex: 1, model: ["Apple", "Orange", "Banana"]})
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- if (data.open) {
- var openedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "opened"})
- verify(openedSpy.valid)
-
- keyClick(Qt.Key_Space)
- openedSpy.wait()
- compare(openedSpy.count, 1)
- }
- compare(control.popup.visible, data.open)
-
- compare(control.currentIndex, 1)
- compare(control.currentText, "Orange")
- compare(control.displayText, "Orange")
-
- keyClick(data.key)
-
- compare(control.currentIndex, 1)
- compare(control.currentText, "Orange")
- compare(control.displayText, "Orange")
- }
-
- Component {
- id: asyncLoader
- Loader {
- active: false
- asynchronous: true
- sourceComponent: ComboBox {
- model: ["First", "Second", "Third"]
- }
- }
- }
-
- // QTBUG-51972
- function test_async() {
- var loader = createTemporaryObject(asyncLoader, testCase)
- verify(loader)
-
- loader.active = true
- tryCompare(loader, "status", Loader.Ready)
- verify(loader.item)
- compare(loader.item.currentText, "First")
- compare(loader.item.displayText, "First")
- }
-
- // QTBUG-52615
- function test_currentIndex() {
- var control = createTemporaryObject(comboBox, testCase, {currentIndex: -1, model: 3})
- verify(control)
-
- compare(control.currentIndex, -1)
- }
-
- ListModel {
- id: resetmodel
- ListElement { text: "First" }
- ListElement { text: "Second" }
- ListElement { text: "Third" }
- }
-
- // QTBUG-54573
- function test_modelReset() {
- var control = createTemporaryObject(comboBox, testCase, {model: resetmodel})
- verify(control)
- control.popup.open()
-
- var listview = control.popup.contentItem
- verify(listview)
-
- tryCompare(listview.contentItem.children, "length", resetmodel.count + 1) // + highlight item
-
- resetmodel.clear()
- resetmodel.append({text: "Fourth"})
- resetmodel.append({text: "Fifth"})
-
- tryCompare(listview.contentItem.children, "length", resetmodel.count + 1) // + highlight item
- }
-
- // QTBUG-55118
- function test_currentText() {
- var control = createTemporaryObject(comboBox, testCase, {model: listmodel})
- verify(control)
-
- compare(control.currentIndex, 0)
- compare(control.currentText, "First")
-
- listmodel.setProperty(0, "text", "1st")
- compare(control.currentText, "1st")
-
- control.currentIndex = 1
- compare(control.currentText, "Second")
-
- listmodel.setProperty(0, "text", "First")
- compare(control.currentText, "Second")
- }
-
- // QTBUG-55030
- function test_highlightRange() {
- var control = createTemporaryObject(comboBox, testCase, {model: 100})
- verify(control)
-
- control.currentIndex = 50
- compare(control.currentIndex, 50)
- compare(control.highlightedIndex, -1)
-
- var openedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "opened"})
- verify(openedSpy.valid)
-
- control.popup.open()
- compare(control.highlightedIndex, 50)
- tryCompare(openedSpy, "count", 1)
-
- var listview = control.popup.contentItem
- verify(listview)
-
- var first = listview.itemAt(0, listview.contentY)
- verify(first)
- compare(first.text, "50")
-
- var closedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "closed"})
- verify(closedSpy.valid)
-
- control.popup.close()
- tryCompare(closedSpy, "count", 1)
- compare(control.highlightedIndex, -1)
-
- control.currentIndex = 99
- compare(control.currentIndex, 99)
- compare(control.highlightedIndex, -1)
-
- control.popup.open()
- compare(control.highlightedIndex, 99)
- tryCompare(openedSpy, "count", 2)
- tryVerify(function() { return listview.height > 0 })
-
- var last = listview.itemAt(0, listview.contentY + listview.height - 1)
- verify(last)
- compare(last.text, "99")
-
- openedSpy.target = null
- closedSpy.target = null
- }
-
- function test_mouseHighlight() {
- if ((Qt.platform.pluginName === "offscreen")
- || (Qt.platform.pluginName === "minimal"))
- skip("Mouse highlight not functional on offscreen/minimal platforms")
- var control = createTemporaryObject(comboBox, testCase, {model: 20})
- verify(control)
-
- compare(control.highlightedIndex, -1)
-
- var openedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "opened"})
- verify(openedSpy.valid)
-
- control.popup.open()
- compare(control.highlightedIndex, 0)
- tryCompare(openedSpy, "count", 1)
-
- var listview = control.popup.contentItem
- verify(listview)
- waitForRendering(listview)
-
- // hover-highlight through all visible list items one by one
- var hoverIndex = -1
- var prevHoverItem = null
- for (var y = 0; y < listview.height; ++y) {
- var hoverItem = listview.itemAt(0, listview.contentY + y)
- if (!hoverItem || !hoverItem.visible || hoverItem === prevHoverItem)
- continue
- mouseMove(hoverItem, 0, 0)
- tryCompare(control, "highlightedIndex", ++hoverIndex)
- prevHoverItem = hoverItem
- }
-
- mouseMove(listview, listview.width / 2, listview.height / 2)
-
- // wheel-highlight the rest of the items
- var delta = 120
- var prevWheelItem = null
- while (!listview.atYEnd) {
- var prevContentY = listview.contentY
- mouseWheel(listview, listview.width / 2, listview.height / 2, -delta, -delta)
- tryCompare(listview, "moving", false)
- verify(listview.contentY > prevContentY)
-
- var wheelItem = listview.itemAt(listview.width / 2, listview.contentY + listview.height / 2)
- if (!wheelItem || !wheelItem.visible || wheelItem === prevWheelItem)
- continue
-
- tryCompare(control, "highlightedIndex", parseInt(wheelItem.text))
- prevWheelItem = wheelItem
- }
- }
-
- RegExpValidator {
- id: regExpValidator
- regExp: /(red|blue|green)?/
- }
-
- function test_validator() {
- var control = createTemporaryObject(comboBox, testCase, {editable: true, validator: regExpValidator})
-
- control.editText = "blu"
- compare(control.acceptableInput, false)
- control.editText = "blue"
- compare(control.acceptableInput, true)
- control.editText = "bluee"
- compare(control.acceptableInput, false)
- control.editText = ""
- compare(control.acceptableInput, true)
- control.editText = ""
- control.forceActiveFocus()
- keyPress(Qt.Key_A)
- compare(control.editText, "")
- keyPress(Qt.Key_A)
- compare(control.editText, "")
- keyPress(Qt.Key_R)
- compare(control.editText, "r")
- keyPress(Qt.Key_A)
- compare(control.editText, "r")
- compare(control.acceptableInput, false)
- keyPress(Qt.Key_E)
- compare(control.editText, "re")
- compare(control.acceptableInput, false)
- keyPress(Qt.Key_D)
- compare(control.editText, "red")
- compare(control.acceptableInput, true)
- }
-
- Component {
- id: appendFindBox
- ComboBox {
- editable: true
- model: ListModel {
- ListElement { text:"first" }
- }
- onAccepted: {
- if (find(editText) === -1)
- model.append({text: editText})
- }
- }
- }
-
- function test_append_find() {
- var control = createTemporaryObject(appendFindBox, testCase)
-
- compare(control.currentIndex, 0)
- compare(control.currentText, "first")
- control.forceActiveFocus()
- compare(control.activeFocus, true)
-
- control.selectAll()
- keyPress(Qt.Key_T)
- keyPress(Qt.Key_H)
- keyPress(Qt.Key_I)
- keyPress(Qt.Key_R)
- keyPress(Qt.Key_D)
- compare(control.count, 1)
- compare(control.currentText, "first")
- compare(control.editText, "third")
-
- keyPress(Qt.Key_Enter)
- compare(control.count, 2)
- compare(control.currentIndex, 1)
- compare(control.currentText, "third")
- }
-
- function test_editable() {
- var control = createTemporaryObject(comboBox, testCase, {editable: true, model: ["Banana", "Coco", "Coconut", "Apple", "Cocomuffin"]})
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- var acceptCount = 0
-
- var acceptSpy = signalSpy.createObject(control, {target: control, signalName: "accepted"})
- verify(acceptSpy.valid)
-
- compare(control.editText, "Banana")
- compare(control.currentText, "Banana")
- compare(control.currentIndex, 0)
- compare(acceptSpy.count, 0)
- control.editText = ""
-
- keyPress(Qt.Key_C)
- compare(control.editText, "coco")
- compare(control.currentText, "Banana")
- compare(control.currentIndex, 0)
-
- keyPress(Qt.Key_Right)
- keyPress(Qt.Key_N)
- compare(control.editText, "coconut")
- compare(control.currentText, "Banana")
- compare(control.currentIndex, 0)
-
- keyPress(Qt.Key_Enter) // Accept
- compare(control.editText, "Coconut")
- compare(control.currentText, "Coconut")
- compare(control.currentIndex, 2)
- compare(acceptSpy.count, ++acceptCount)
-
- keyPress(Qt.Key_Backspace)
- keyPress(Qt.Key_Backspace)
- keyPress(Qt.Key_Backspace)
- keyPress(Qt.Key_M)
- compare(control.editText, "Cocomuffin")
- compare(control.currentText, "Coconut")
- compare(control.currentIndex, 2)
-
- keyPress(Qt.Key_Enter) // Accept
- compare(control.editText, "Cocomuffin")
- compare(control.currentText, "Cocomuffin")
- compare(control.currentIndex, 4)
- compare(acceptSpy.count, ++acceptCount)
-
- keyPress(Qt.Key_Return) // Accept
- compare(control.editText, "Cocomuffin")
- compare(control.currentText, "Cocomuffin")
- compare(control.currentIndex, 4)
- compare(acceptSpy.count, ++acceptCount)
-
- control.editText = ""
- compare(control.editText, "")
- compare(control.currentText, "Cocomuffin")
- compare(control.currentIndex, 4)
-
- keyPress(Qt.Key_A)
- compare(control.editText, "apple")
- compare(control.currentText, "Cocomuffin")
- compare(control.currentIndex, 4)
-
- keyPress(Qt.Key_Return) // Accept
- compare(control.editText, "Apple")
- compare(control.currentText, "Apple")
- compare(control.currentIndex, 3)
- compare(acceptSpy.count, ++acceptCount)
-
- control.editText = ""
- keyPress(Qt.Key_A)
- keyPress(Qt.Key_B)
- compare(control.editText, "ab")
- compare(control.currentText, "Apple")
- compare(control.currentIndex, 3)
-
- keyPress(Qt.Key_Return) // Accept
- compare(control.editText, "ab")
- compare(control.currentText, "")
- compare(control.currentIndex, -1)
- compare(acceptSpy.count, ++acceptCount)
-
- control.editText = ""
- compare(control.editText, "")
- compare(control.currentText, "")
- compare(control.currentIndex, -1)
-
- keyPress(Qt.Key_C)
- keyPress(Qt.Key_Return) // Accept
- compare(control.editText, "Coco")
- compare(control.currentText, "Coco")
- compare(control.currentIndex, 1)
- compare(acceptSpy.count, ++acceptCount)
-
- keyPress(Qt.Key_Down)
- compare(control.editText, "Coconut")
- compare(control.currentText, "Coconut")
- compare(control.currentIndex, 2)
-
- keyPress(Qt.Key_Up)
- compare(control.editText, "Coco")
- compare(control.currentText, "Coco")
- compare(control.currentIndex, 1)
-
- control.editText = ""
- compare(control.editText, "")
- compare(control.currentText, "Coco")
- compare(control.currentIndex, 1)
-
- keyPress(Qt.Key_C)
- keyPress(Qt.Key_O)
- keyPress(Qt.Key_C) // autocompletes "coco"
- keyPress(Qt.Key_Backspace)
- keyPress(Qt.Key_Return) // Accept "coc"
- compare(control.editText, "coc")
- compare(control.currentText, "")
- compare(control.currentIndex, -1)
- compare(acceptSpy.count, ++acceptCount)
-
- control.editText = ""
- compare(control.editText, "")
- compare(control.currentText, "")
- compare(control.currentIndex, -1)
-
- keyPress(Qt.Key_C)
- keyPress(Qt.Key_O)
- keyPress(Qt.Key_C) // autocompletes "coc"
- keyPress(Qt.Key_Space)
- keyPress(Qt.Key_Return) // Accept "coc "
- compare(control.editText, "coc ")
- compare(control.currentText, "")
- compare(control.currentIndex, -1)
- compare(acceptSpy.count, ++acceptCount)
- }
-
- Component {
- id: keysAttachedBox
- ComboBox {
- editable: true
- property bool gotit: false
- Keys.onPressed: {
- if (!gotit && event.key === Qt.Key_B) {
- gotit = true
- event.accepted = true
- }
- }
- }
- }
-
- function test_keys_attached() {
- var control = createTemporaryObject(keysAttachedBox, testCase)
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- verify(!control.gotit)
- compare(control.editText, "")
-
- keyPress(Qt.Key_A)
- verify(control.activeFocus)
- verify(!control.gotit)
- compare(control.editText, "a")
-
- keyPress(Qt.Key_B)
- verify(control.activeFocus)
- verify(control.gotit)
- compare(control.editText, "a")
-
- keyPress(Qt.Key_B)
- verify(control.activeFocus)
- verify(control.gotit)
- compare(control.editText, "ab")
- }
-
- function test_minusOneIndexResetsSelection_QTBUG_35794_data() {
- return [
- { tag: "editable", editable: true },
- { tag: "non-editable", editable: false }
- ]
- }
-
- function test_minusOneIndexResetsSelection_QTBUG_35794(data) {
- var control = createTemporaryObject(comboBox, testCase, {editable: data.editable, model: ["A", "B", "C"]})
- verify(control)
-
- compare(control.currentIndex, 0)
- compare(control.currentText, "A")
- control.currentIndex = -1
- compare(control.currentIndex, -1)
- compare(control.currentText, "")
- control.currentIndex = 1
- compare(control.currentIndex, 1)
- compare(control.currentText, "B")
- }
-
- function test_minusOneToZeroSelection_QTBUG_38036() {
- var control = createTemporaryObject(comboBox, testCase, {model: ["A", "B", "C"]})
- verify(control)
-
- compare(control.currentIndex, 0)
- compare(control.currentText, "A")
- control.currentIndex = -1
- compare(control.currentIndex, -1)
- compare(control.currentText, "")
- control.currentIndex = 0
- compare(control.currentIndex, 0)
- compare(control.currentText, "A")
- }
-
- function test_emptyPopupAfterModelCleared() {
- var control = createTemporaryObject(comboBox, testCase, { model: 1 })
- verify(control)
- compare(control.popup.implicitHeight, 0)
-
- // Ensure that it's open so that the popup's implicitHeight changes when we increase the model count.
- control.popup.open()
- tryCompare(control.popup, "visible", true)
-
- // Add lots of items to the model. The popup should take up the entire height of the window.
- control.model = 100
- compare(control.popup.height, control.Window.height - control.popup.topMargin - control.popup.bottomMargin)
-
- control.popup.close()
-
- // Clearing the model should result in a zero height.
- control.model = 0
- control.popup.open()
- tryCompare(control.popup, "visible", true)
- compare(control.popup.height, control.popup.topPadding + control.popup.bottomPadding)
- }
-
- Component {
- id: keysMonitor
- Item {
- property int pressedKeys: 0
- property int releasedKeys: 0
- property int lastPressedKey: 0
- property int lastReleasedKey: 0
- property alias comboBox: comboBox
-
- width: 200
- height: 200
-
- Keys.onPressed: { ++pressedKeys; lastPressedKey = event.key }
- Keys.onReleased: { ++releasedKeys; lastReleasedKey = event.key }
-
- ComboBox {
- id: comboBox
- }
- }
- }
-
- function test_keyClose_data() {
- return [
- { tag: "Escape", key: Qt.Key_Escape },
- { tag: "Back", key: Qt.Key_Back }
- ]
- }
-
- function test_keyClose(data) {
- var container = createTemporaryObject(keysMonitor, testCase)
- verify(container)
-
- var control = comboBox.createObject(container)
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- var pressedKeys = 0
- var releasedKeys = 0
-
- // popup not visible -> propagates
- keyPress(data.key)
- compare(container.pressedKeys, ++pressedKeys)
- compare(container.lastPressedKey, data.key)
-
- keyRelease(data.key)
- compare(container.releasedKeys, ++releasedKeys)
- compare(container.lastReleasedKey, data.key)
-
- verify(control.activeFocus)
-
- // popup visible -> handled -> does not propagate
- control.popup.open()
- tryCompare(control.popup, "opened", true)
-
- keyPress(data.key)
- compare(container.pressedKeys, pressedKeys)
-
- keyRelease(data.key)
- // Popup receives the key release event if it has an exit transition, but
- // not if it has been immediately closed on press, without a transition.
- // ### TODO: Should Popup somehow always block the key release event?
- if (!control.popup.exit)
- ++releasedKeys
- compare(container.releasedKeys, releasedKeys)
-
- tryCompare(control.popup, "visible", false)
- verify(control.activeFocus)
-
- // popup not visible -> propagates
- keyPress(data.key)
- compare(container.pressedKeys, ++pressedKeys)
- compare(container.lastPressedKey, data.key)
-
- keyRelease(data.key)
- compare(container.releasedKeys, ++releasedKeys)
- compare(container.lastReleasedKey, data.key)
- }
-
- function test_popupFocus_QTBUG_74661() {
- var control = createTemporaryObject(comboBox, testCase)
- verify(control)
-
- var popup = createTemporaryObject(customPopup, testCase)
- verify(popup)
-
- control.popup = popup
-
- var openedSpy = signalSpy.createObject(control, {target: popup, signalName: "opened"})
- verify(openedSpy.valid)
-
- var closedSpy = signalSpy.createObject(control, {target: popup, signalName: "closed"})
- verify(closedSpy.valid)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- // show popup
- keyClick(Qt.Key_Space)
- openedSpy.wait()
- compare(openedSpy.count, 1)
-
- popup.contentItem.forceActiveFocus()
- verify(popup.contentItem.activeFocus)
-
- // type something in the text field
- keyClick(Qt.Key_Space)
- keyClick(Qt.Key_H)
- keyClick(Qt.Key_I)
- compare(popup.contentItem.text, " hi")
-
- compare(closedSpy.count, 0)
-
- // hide popup
- keyClick(Qt.Key_Escape)
- closedSpy.wait()
- compare(closedSpy.count, 1)
- }
-
- function test_comboBoxWithShaderEffect() {
- var control = createTemporaryObject(comboBoxWithShaderEffect, testCase, {model: 9})
- verify(control)
- waitForRendering(control)
- control.forceActiveFocus()
- var openedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "opened"})
- verify(openedSpy.valid)
-
- var closedSpy = signalSpy.createObject(control, {target: control.popup, signalName: "closed"})
- verify(closedSpy.valid)
-
- control.popup.open()
- openedSpy.wait()
- compare(openedSpy.count, 1)
- control.popup.close()
- closedSpy.wait()
- compare(closedSpy.count, 1)
- }
-}
diff --git a/tests/auto/controls/data/tst_container.qml b/tests/auto/controls/data/tst_container.qml
deleted file mode 100644
index 134dbb38..00000000
--- a/tests/auto/controls/data/tst_container.qml
+++ /dev/null
@@ -1,222 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Container"
-
- Component {
- id: container
- Container { }
- }
-
- Component {
- id: rectangle
- Rectangle { }
- }
-
- function test_implicitSize() {
- var control = createTemporaryObject(container, testCase)
- verify(control)
-
- compare(control.implicitWidth, 0)
- compare(control.implicitHeight, 0)
-
- control.contentItem = rectangle.createObject(control, {implicitWidth: 10, implicitHeight: 20})
- compare(control.implicitWidth, 10)
- compare(control.implicitHeight, 20)
-
- control.background = rectangle.createObject(control, {implicitWidth: 20, implicitHeight: 30})
- compare(control.implicitWidth, 20)
- compare(control.implicitHeight, 30)
-
- control.padding = 100
- compare(control.implicitWidth, 210)
- compare(control.implicitHeight, 220)
- }
-
- function test_currentIndex() {
- var control1 = createTemporaryObject(container, testCase)
- verify(control1)
-
- var control2 = createTemporaryObject(container, testCase)
- verify(control2)
-
- compare(control1.currentIndex, -1)
- compare(control2.currentIndex, -1)
-
- for (var i = 0; i < 3; ++i) {
- control1.addItem(rectangle.createObject(control1))
- control2.addItem(rectangle.createObject(control2))
- }
-
- compare(control1.count, 3)
- compare(control2.count, 3)
- compare(control1.currentIndex, 0)
- compare(control2.currentIndex, 0)
-
- control1.currentIndex = Qt.binding(function() { return control2.currentIndex })
- control2.currentIndex = Qt.binding(function() { return control1.currentIndex })
-
- control1.setCurrentIndex(1)
- compare(control1.currentIndex, 1)
- compare(control2.currentIndex, 1)
-
- control1.incrementCurrentIndex()
- compare(control1.currentIndex, 2)
- compare(control2.currentIndex, 2)
-
- control2.decrementCurrentIndex()
- compare(control1.currentIndex, 1)
- compare(control2.currentIndex, 1)
- }
-
- Component {
- id: repeaterContainer1
- Container {
- id: container
- Item { objectName: "0" }
- Item { objectName: "1" }
- Item { objectName: "2" }
- Item { objectName: "3" }
- contentItem: Row {
- Repeater {
- model: container.contentModel
- }
- }
- }
- }
-
- Component {
- id: repeaterContainer2
- Container {
- id: container
- contentItem: Item {
- Repeater {
- model: container.contentModel
- }
- Rectangle { objectName: "extra" }
- }
- Rectangle { objectName: "0" }
- Rectangle { objectName: "1" }
- Rectangle { objectName: "2" }
- Rectangle { objectName: "3" }
- }
- }
-
- function test_repeater_data() {
- return [
- { tag: "1", component: repeaterContainer1 },
- { tag: "2", component: repeaterContainer2 }
- ]
- }
-
- // don't crash (QTBUG-61310)
- function test_repeater(data) {
- var control = createTemporaryObject(data.component)
- verify(control)
-
- compare(control.itemAt(0).objectName, "0")
- compare(control.itemAt(1).objectName, "1")
- compare(control.itemAt(2).objectName, "2")
- compare(control.itemAt(3).objectName, "3")
- }
-
- function test_removeTakeItem() {
- var control = createTemporaryObject(container, testCase)
- verify(control)
-
- var item1 = rectangle.createObject(control)
- var item2 = rectangle.createObject(control)
- var item3 = rectangle.createObject(control)
-
- item1.Component.onDestruction.connect(function() { item1 = null })
- item2.Component.onDestruction.connect(function() { item2 = null })
- item3.Component.onDestruction.connect(function() { item3 = null })
-
- control.addItem(item1)
- control.addItem(item2)
- control.addItem(item3)
- compare(control.count, 3)
-
- // takeItem(int) does not destroy
- compare(control.takeItem(1), item2)
- compare(control.count, 2)
- wait(1)
- verify(item2)
-
- // removeItem(Item) destroys
- control.removeItem(item1)
- compare(control.count, 1)
- wait(1)
- verify(!item1)
-
- // removeItem(null) must not call removeItem(0)
- control.removeItem(null)
- compare(control.count, 1)
- wait(1)
- verify(item3)
-
- // deprecated removeItem(int) does not destroy
- control.removeItem(0)
- compare(control.count, 0)
- wait(1)
- verify(item3)
- }
-}
diff --git a/tests/auto/controls/data/tst_control.qml b/tests/auto/controls/data/tst_control.qml
deleted file mode 100644
index 3c416546..00000000
--- a/tests/auto/controls/data/tst_control.qml
+++ /dev/null
@@ -1,1417 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Control"
-
- Component {
- id: component
- Control { }
- }
-
- Component {
- id: rectangle
- Rectangle { }
- }
-
- Component {
- id: button
- T.Button { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_padding() {
- var control = createTemporaryObject(component, testCase)
- verify(control)
-
- var paddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "paddingChanged"})
- verify(paddingSpy.valid)
-
- var topPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "topPaddingChanged"})
- verify(topPaddingSpy.valid)
-
- var leftPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "leftPaddingChanged"})
- verify(leftPaddingSpy.valid)
-
- var rightPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "rightPaddingChanged"})
- verify(rightPaddingSpy.valid)
-
- var bottomPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "bottomPaddingChanged"})
- verify(bottomPaddingSpy.valid)
-
- var horizontalPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "horizontalPaddingChanged"})
- verify(horizontalPaddingSpy.valid)
-
- var verticalPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "verticalPaddingChanged"})
- verify(verticalPaddingSpy.valid)
-
- var paddingChanges = 0
- var topPaddingChanges = 0
- var leftPaddingChanges = 0
- var rightPaddingChanges = 0
- var bottomPaddingChanges = 0
- var horizontalPaddingChanges = 0
- var verticalPaddingChanges = 0
-
- compare(control.padding, 0)
- compare(control.topPadding, 0)
- compare(control.leftPadding, 0)
- compare(control.rightPadding, 0)
- compare(control.bottomPadding, 0)
- compare(control.horizontalPadding, 0)
- compare(control.verticalPadding, 0)
- compare(control.availableWidth, 0)
- compare(control.availableHeight, 0)
-
- control.width = 100
- control.height = 100
-
- control.padding = 10
- compare(control.padding, 10)
- compare(control.topPadding, 10)
- compare(control.leftPadding, 10)
- compare(control.rightPadding, 10)
- compare(control.bottomPadding, 10)
- compare(control.horizontalPadding, 10)
- compare(control.verticalPadding, 10)
- compare(paddingSpy.count, ++paddingChanges)
- compare(topPaddingSpy.count, ++topPaddingChanges)
- compare(leftPaddingSpy.count, ++leftPaddingChanges)
- compare(rightPaddingSpy.count, ++rightPaddingChanges)
- compare(bottomPaddingSpy.count, ++bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, ++horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, ++verticalPaddingChanges)
-
- control.topPadding = 20
- compare(control.padding, 10)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 10)
- compare(control.rightPadding, 10)
- compare(control.bottomPadding, 10)
- compare(control.horizontalPadding, 10)
- compare(control.verticalPadding, 10)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, ++topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.leftPadding = 30
- compare(control.padding, 10)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 10)
- compare(control.bottomPadding, 10)
- compare(control.horizontalPadding, 10)
- compare(control.verticalPadding, 10)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, ++leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.rightPadding = 40
- compare(control.padding, 10)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 10)
- compare(control.horizontalPadding, 10)
- compare(control.verticalPadding, 10)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, ++rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.bottomPadding = 50
- compare(control.padding, 10)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 50)
- compare(control.horizontalPadding, 10)
- compare(control.verticalPadding, 10)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, ++bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.padding = 60
- compare(control.padding, 60)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 50)
- compare(control.horizontalPadding, 60)
- compare(control.verticalPadding, 60)
- compare(paddingSpy.count, ++paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, ++horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, ++verticalPaddingChanges)
-
- control.horizontalPadding = 80
- compare(control.padding, 60)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 50)
- compare(control.horizontalPadding, 80)
- compare(control.verticalPadding, 60)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, ++horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.verticalPadding = 90
- compare(control.padding, 60)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 50)
- compare(control.horizontalPadding, 80)
- compare(control.verticalPadding, 90)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, ++verticalPaddingChanges)
-
- control.leftPadding = undefined
- compare(control.padding, 60)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 80)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 50)
- compare(control.horizontalPadding, 80)
- compare(control.verticalPadding, 90)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, ++leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.rightPadding = undefined
- compare(control.padding, 60)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 80)
- compare(control.rightPadding, 80)
- compare(control.bottomPadding, 50)
- compare(control.horizontalPadding, 80)
- compare(control.verticalPadding, 90)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, ++rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.topPadding = undefined
- compare(control.padding, 60)
- compare(control.topPadding, 90)
- compare(control.leftPadding, 80)
- compare(control.rightPadding, 80)
- compare(control.bottomPadding, 50)
- compare(control.horizontalPadding, 80)
- compare(control.verticalPadding, 90)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, ++topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.bottomPadding = undefined
- compare(control.padding, 60)
- compare(control.topPadding, 90)
- compare(control.leftPadding, 80)
- compare(control.rightPadding, 80)
- compare(control.bottomPadding, 90)
- compare(control.horizontalPadding, 80)
- compare(control.verticalPadding, 90)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, ++bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.horizontalPadding = undefined
- compare(control.padding, 60)
- compare(control.topPadding, 90)
- compare(control.leftPadding, 60)
- compare(control.rightPadding, 60)
- compare(control.bottomPadding, 90)
- compare(control.horizontalPadding, 60)
- compare(control.verticalPadding, 90)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, ++leftPaddingChanges)
- compare(rightPaddingSpy.count, ++rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, ++horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, verticalPaddingChanges)
-
- control.verticalPadding = undefined
- compare(control.padding, 60)
- compare(control.topPadding, 60)
- compare(control.leftPadding, 60)
- compare(control.rightPadding, 60)
- compare(control.bottomPadding, 60)
- compare(control.horizontalPadding, 60)
- compare(control.verticalPadding, 60)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, ++topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, ++bottomPaddingChanges)
- compare(horizontalPaddingSpy.count, horizontalPaddingChanges)
- compare(verticalPaddingSpy.count, ++verticalPaddingChanges)
- }
-
- function test_availableSize() {
- var control = createTemporaryObject(component, testCase)
- verify(control)
-
- var availableWidthSpy = signalSpy.createObject(control, {target: control, signalName: "availableWidthChanged"})
- verify(availableWidthSpy.valid)
-
- var availableHeightSpy = signalSpy.createObject(control, {target: control, signalName: "availableHeightChanged"})
- verify(availableHeightSpy.valid)
-
- var availableWidthChanges = 0
- var availableHeightChanges = 0
-
- control.width = 100
- compare(control.availableWidth, 100)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.height = 100
- compare(control.availableHeight, 100)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
-
- control.padding = 10
- compare(control.availableWidth, 80)
- compare(control.availableHeight, 80)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
-
- control.topPadding = 20
- compare(control.availableWidth, 80)
- compare(control.availableHeight, 70)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
-
- control.leftPadding = 30
- compare(control.availableWidth, 60)
- compare(control.availableHeight, 70)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.rightPadding = 40
- compare(control.availableWidth, 30)
- compare(control.availableHeight, 70)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.bottomPadding = 50
- compare(control.availableWidth, 30)
- compare(control.availableHeight, 30)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
-
- control.padding = 60
- compare(control.availableWidth, 30)
- compare(control.availableHeight, 30)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.width = 0
- compare(control.availableWidth, 0)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.height = 0
- compare(control.availableHeight, 0)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
- }
-
- function test_mirrored() {
- var control = createTemporaryObject(component, testCase)
- verify(control)
-
- var mirroredSpy = signalSpy.createObject(control, {target: control, signalName: "mirroredChanged"})
- verify(mirroredSpy.valid)
-
- control.locale = Qt.locale("en_US")
- compare(control.locale.name, "en_US")
- verify(!control.LayoutMirroring.enabled)
- compare(control.mirrored, false)
-
- control.locale = Qt.locale("ar_EG")
- compare(control.mirrored, true)
- compare(mirroredSpy.count, 1)
-
- control.LayoutMirroring.enabled = true
- compare(control.mirrored, true)
- compare(mirroredSpy.count, 1)
-
- control.locale = Qt.locale("en_US")
- compare(control.mirrored, true)
- compare(mirroredSpy.count, 1)
-
- control.LayoutMirroring.enabled = false
- compare(control.mirrored, false)
- compare(mirroredSpy.count, 2)
- }
-
- function test_background() {
- var control = createTemporaryObject(component, testCase)
- verify(control)
-
- control.background = component.createObject(control)
-
- // background has no x or width set, so its width follows control's width
- control.width = 320
- compare(control.background.width, control.width)
-
- // background has no y or height set, so its height follows control's height
- compare(control.background.height, control.height)
- control.height = 240
-
- // change implicit size (QTBUG-66455)
- control.background.implicitWidth = 160
- control.background.implicitHeight = 120
- compare(control.background.width, control.width)
- compare(control.background.height, control.height)
-
- // has width => width does not follow
- control.background.width /= 2
- control.width += 20
- verify(control.background.width !== control.width)
-
- // reset width => width follows again
- control.background.width = undefined
- control.width += 20
- compare(control.background.width, control.width)
-
- // has x => width does not follow
- control.background.x = 10
- control.width += 20
- verify(control.background.width !== control.width)
-
- // has height => height does not follow
- control.background.height /= 2
- control.height -= 20
- verify(control.background.height !== control.height)
-
- // reset height => height follows again
- control.background.height = undefined
- control.height -= 20
- compare(control.background.height, control.height)
-
- // has y => height does not follow
- control.background.y = 10
- control.height -= 20
- verify(control.background.height !== control.height)
- }
-
- Component {
- id: component2
- T.Control {
- id: item2
- objectName: "item2"
- property alias item2_2: _item2_2;
- property alias item2_3: _item2_3;
- property alias item2_4: _item2_4;
- property alias item2_5: _item2_5;
- property alias item2_6: _item2_6;
- font.family: "Arial"
- T.Control {
- id: _item2_2
- objectName: "_item2_2"
- T.Control {
- id: _item2_3
- objectName: "_item2_3"
- }
- }
- T.TextArea {
- id: _item2_4
- objectName: "_item2_4"
- text: "Text Area"
- }
- T.TextField {
- id: _item2_5
- objectName: "_item2_5"
- text: "Text Field"
- }
- T.Label {
- id: _item2_6
- objectName: "_item2_6"
- text: "Label"
- }
- }
- }
-
- function test_font() {
- var control2 = createTemporaryObject(component2, testCase)
- verify(control2)
- verify(control2.item2_2)
- verify(control2.item2_3)
- verify(control2.item2_4)
- verify(control2.item2_5)
- verify(control2.item2_6)
-
- compare(control2.font.family, "Arial")
- compare(control2.item2_2.font.family, control2.font.family)
- compare(control2.item2_3.font.family, control2.font.family)
- compare(control2.item2_4.font.family, control2.font.family)
- compare(control2.item2_5.font.family, control2.font.family)
- compare(control2.item2_6.font.family, control2.font.family)
-
- control2.font.pointSize = 48
- compare(control2.item2_2.font.pointSize, 48)
- compare(control2.item2_3.font.pointSize, 48)
- compare(control2.item2_4.font.pointSize, 48)
- compare(control2.item2_5.font.pointSize, 48)
-
- control2.font.bold = true
- compare(control2.item2_2.font.weight, Font.Bold)
- compare(control2.item2_3.font.weight, Font.Bold)
- compare(control2.item2_4.font.weight, Font.Bold)
- compare(control2.item2_5.font.weight, Font.Bold)
-
- control2.item2_2.font.pointSize = 36
- compare(control2.item2_2.font.pointSize, 36)
- compare(control2.item2_3.font.pointSize, 36)
-
- control2.item2_2.font.weight = Font.Light
- compare(control2.item2_2.font.pointSize, 36)
- compare(control2.item2_3.font.pointSize, 36)
-
- compare(control2.item2_3.font.family, control2.item2_2.font.family)
- compare(control2.item2_3.font.pointSize, control2.item2_2.font.pointSize)
- compare(control2.item2_3.font.weight, control2.item2_2.font.weight)
-
- control2.font.pointSize = 50
- compare(control2.item2_2.font.pointSize, 36)
- compare(control2.item2_3.font.pointSize, 36)
- compare(control2.item2_4.font.pointSize, 50)
- compare(control2.item2_5.font.pointSize, 50)
- compare(control2.item2_6.font.pointSize, 50)
-
- control2.item2_3.font.pointSize = 60
- compare(control2.item2_3.font.pointSize, 60)
-
- control2.item2_3.font.weight = Font.Normal
- compare(control2.item2_3.font.weight, Font.Normal)
-
- control2.item2_4.font.pointSize = 16
- compare(control2.item2_4.font.pointSize, 16)
-
- control2.item2_4.font.weight = Font.Normal
- compare(control2.item2_4.font.weight, Font.Normal)
-
- control2.item2_5.font.pointSize = 32
- compare(control2.item2_5.font.pointSize, 32)
-
- control2.item2_5.font.weight = Font.DemiBold
- compare(control2.item2_5.font.weight, Font.DemiBold)
-
- control2.item2_6.font.pointSize = 36
- compare(control2.item2_6.font.pointSize, 36)
-
- control2.item2_6.font.weight = Font.Black
- compare(control2.item2_6.font.weight, Font.Black)
-
- compare(control2.font.family, "Arial")
- compare(control2.font.pointSize, 50)
- compare(control2.font.weight, Font.Bold)
-
- compare(control2.item2_2.font.family, "Arial")
- compare(control2.item2_2.font.pointSize, 36)
- compare(control2.item2_2.font.weight, Font.Light)
-
- compare(control2.item2_3.font.family, "Arial")
- compare(control2.item2_3.font.pointSize, 60)
- compare(control2.item2_3.font.weight, Font.Normal)
-
- compare(control2.item2_4.font.family, "Arial")
- compare(control2.item2_4.font.pointSize, 16)
- compare(control2.item2_4.font.weight, Font.Normal)
-
- compare(control2.item2_5.font.family, "Arial")
- compare(control2.item2_5.font.pointSize, 32)
- compare(control2.item2_5.font.weight, Font.DemiBold)
-
- compare(control2.item2_6.font.family, "Arial")
- compare(control2.item2_6.font.pointSize, 36)
- compare(control2.item2_6.font.weight, Font.Black)
- }
-
- Component {
- id: component3
- T.Control {
- id: item3
- objectName: "item3"
- property alias item3_2: _item3_2;
- property alias item3_3: _item3_3;
- property alias item3_4: _item3_4;
- property alias item3_5: _item3_5;
- property alias item3_6: _item3_6;
- property alias item3_7: _item3_7;
- property alias item3_8: _item3_8;
- font.family: "Arial"
- Item {
- id: _item3_2
- objectName: "_item3_2"
- T.Control {
- id: _item3_3
- objectName: "_item3_3"
- Item {
- id: _item3_6
- objectName: "_item3_6"
- T.Control {
- id: _item3_7
- objectName: "_item3_7"
- }
- }
- }
- T.TextArea {
- id: _item3_4
- objectName: "_item3_4"
- text: "Text Area"
- }
- T.TextField {
- id: _item3_5
- objectName: "_item3_5"
- text: "Text Field"
- }
- T.Label {
- id: _item3_8
- objectName: "_item3_8"
- text: "Label"
- }
- }
- }
- }
-
- function test_font_2() {
- var control3 = createTemporaryObject(component3, testCase)
- verify(control3)
- verify(control3.item3_2)
- verify(control3.item3_3)
- verify(control3.item3_4)
- verify(control3.item3_5)
- verify(control3.item3_6)
- verify(control3.item3_7)
- verify(control3.item3_8)
-
- compare(control3.font.family, "Arial")
- compare(control3.item3_3.font.family, control3.font.family)
- compare(control3.item3_4.font.family, control3.font.family)
- compare(control3.item3_5.font.family, control3.font.family)
- compare(control3.item3_7.font.family, control3.font.family)
- compare(control3.item3_8.font.family, control3.font.family)
-
- control3.font.pointSize = 48
- compare(control3.item3_3.font.pointSize, 48)
- compare(control3.item3_4.font.pointSize, 48)
- compare(control3.item3_5.font.pointSize, 48)
-
- control3.font.bold = true
- compare(control3.item3_3.font.weight, Font.Bold)
- compare(control3.item3_4.font.weight, Font.Bold)
- compare(control3.item3_5.font.weight, Font.Bold)
-
- compare(control3.item3_3.font.family, control3.font.family)
- compare(control3.item3_3.font.pointSize, control3.font.pointSize)
- compare(control3.item3_3.font.weight, control3.font.weight)
- compare(control3.item3_7.font.family, control3.font.family)
- compare(control3.item3_7.font.pointSize, control3.font.pointSize)
- compare(control3.item3_7.font.weight, control3.font.weight)
-
- control3.item3_3.font.pointSize = 60
- compare(control3.item3_3.font.pointSize, 60)
-
- control3.item3_3.font.weight = Font.Normal
- compare(control3.item3_3.font.weight, Font.Normal)
-
- control3.item3_4.font.pointSize = 16
- compare(control3.item3_4.font.pointSize, 16)
-
- control3.item3_4.font.weight = Font.Normal
- compare(control3.item3_4.font.weight, Font.Normal)
-
- control3.item3_5.font.pointSize = 32
- compare(control3.item3_5.font.pointSize, 32)
-
- control3.item3_5.font.weight = Font.DemiBold
- compare(control3.item3_5.font.weight, Font.DemiBold)
-
- control3.item3_8.font.pointSize = 36
- compare(control3.item3_8.font.pointSize, 36)
-
- control3.item3_8.font.weight = Font.Black
- compare(control3.item3_8.font.weight, Font.Black)
-
- control3.font.pointSize = 100
- compare(control3.font.pointSize, 100)
- compare(control3.item3_3.font.pointSize, 60)
- compare(control3.item3_4.font.pointSize, 16)
- compare(control3.item3_5.font.pointSize, 32)
- compare(control3.item3_8.font.pointSize, 36)
-
- compare(control3.font.family, "Arial")
- compare(control3.font.pointSize, 100)
- compare(control3.font.weight, Font.Bold)
-
- compare(control3.item3_3.font.family, "Arial")
- compare(control3.item3_3.font.pointSize, 60)
- compare(control3.item3_3.font.weight, Font.Normal)
- compare(control3.item3_7.font.family, control3.item3_3.font.family)
- compare(control3.item3_7.font.pointSize, control3.item3_3.font.pointSize)
- compare(control3.item3_7.font.weight, control3.item3_3.font.weight)
-
- compare(control3.item3_4.font.family, "Arial")
- compare(control3.item3_4.font.pointSize, 16)
- compare(control3.item3_4.font.weight, Font.Normal)
-
- compare(control3.item3_5.font.family, "Arial")
- compare(control3.item3_5.font.pointSize, 32)
- compare(control3.item3_5.font.weight, Font.DemiBold)
-
- compare(control3.item3_8.font.family, "Arial")
- compare(control3.item3_8.font.pointSize, 36)
- compare(control3.item3_8.font.weight, Font.Black)
- }
-
- Component {
- id: component4
- T.Control {
- id: item4
- objectName: "item4"
- property alias item4_2: _item4_2;
- property alias item4_3: _item4_3;
- property alias item4_4: _item4_4;
- T.Control {
- id: _item4_2
- objectName: "_item4_2"
- font.pixelSize: item4.font.pixelSize + 10
- T.Control {
- id: _item4_3
- objectName: "_item4_3"
- font.pixelSize: item4.font.pixelSize - 1
- }
- T.Control {
- id: _item4_4
- objectName: "_item4_4"
- }
- }
- }
- }
-
- function test_font_3() {
- var control4 = createTemporaryObject(component4, testCase)
- verify(control4)
- verify(control4.item4_2)
- verify(control4.item4_3)
- verify(control4.item4_4)
-
- var family = control4.font.family
- var ps = control4.font.pixelSize
-
- compare(control4.item4_2.font.family, control4.font.family)
- compare(control4.item4_3.font.family, control4.font.family)
- compare(control4.item4_4.font.family, control4.font.family)
-
- compare(control4.item4_2.font.pixelSize, control4.font.pixelSize + 10)
- compare(control4.item4_3.font.pixelSize, control4.font.pixelSize - 1)
- compare(control4.item4_4.font.pixelSize, control4.font.pixelSize + 10)
-
- control4.item4_2.font.pixelSize = control4.font.pixelSize + 15
- compare(control4.item4_2.font.pixelSize, control4.font.pixelSize + 15)
- compare(control4.item4_3.font.pixelSize, control4.font.pixelSize - 1)
- compare(control4.item4_4.font.pixelSize, control4.font.pixelSize + 15)
- }
-
- function test_font_explicit_attributes_data() {
- return [
- {tag: "bold", value: true},
- {tag: "capitalization", value: Font.Capitalize},
- {tag: "family", value: "Courier"},
- {tag: "italic", value: true},
- {tag: "strikeout", value: true},
- {tag: "underline", value: true},
- {tag: "weight", value: Font.Black},
- {tag: "wordSpacing", value: 55}
- ]
- }
-
- function test_font_explicit_attributes(data) {
- var control = createTemporaryObject(component, testCase)
- verify(control)
-
- var child = component.createObject(control)
- verify(child)
-
- var controlSpy = signalSpy.createObject(control, {target: control, signalName: "fontChanged"})
- verify(controlSpy.valid)
-
- var childSpy = signalSpy.createObject(child, {target: child, signalName: "fontChanged"})
- verify(childSpy.valid)
-
- var defaultValue = control.font[data.tag]
- child.font[data.tag] = defaultValue
-
- compare(child.font[data.tag], defaultValue)
- compare(childSpy.count, 0)
-
- control.font[data.tag] = data.value
-
- compare(control.font[data.tag], data.value)
- compare(controlSpy.count, 1)
-
- compare(child.font[data.tag], defaultValue)
- compare(childSpy.count, 0)
- }
-
- function test_locale() {
- var control = createTemporaryObject(component, testCase)
- verify(control)
-
- control.locale = Qt.locale("en_US")
- compare(control.locale.name, "en_US")
-
- control.locale = Qt.locale("nb_NO")
- compare(control.locale.name, "nb_NO")
- }
-
- Component {
- id: component5
- T.Control {
- id: item2
- objectName: "item2"
- property alias localespy: _lspy;
- property alias mirroredspy: _mspy;
- property alias localespy_2: _lspy_2;
- property alias mirroredspy_2: _mspy_2;
- property alias localespy_3: _lspy_3;
- property alias mirroredspy_3: _mspy_3;
- property alias item2_2: _item2_2;
- property alias item2_3: _item2_3;
- T.Control {
- id: _item2_2
- objectName: "_item2_2"
- T.Control {
- id: _item2_3
- objectName: "_item2_3"
-
- SignalSpy {
- id: _lspy_3
- target: item2_3
- signalName: "localeChanged"
- }
-
- SignalSpy {
- id: _mspy_3
- target: item2_3
- signalName: "mirroredChanged"
- }
- }
-
- SignalSpy {
- id: _lspy_2
- target: item2_2
- signalName: "localeChanged"
- }
-
- SignalSpy {
- id: _mspy_2
- target: item2_2
- signalName: "mirroredChanged"
- }
- }
-
- SignalSpy {
- id: _lspy
- target: item2
- signalName: "localeChanged"
- }
-
- SignalSpy {
- id: _mspy
- target: item2
- signalName: "mirroredChanged"
- }
- }
- }
-
- function test_locale_2() {
- var control = createTemporaryObject(component5, testCase)
- verify(control)
- verify(control.item2_2)
- verify(control.item2_3)
-
- var defaultLocale = Qt.locale()
-
- compare(control.locale.name, defaultLocale.name)
- compare(control.item2_2.locale.name, defaultLocale.name)
- compare(control.item2_3.locale.name, defaultLocale.name)
-
- control.locale = Qt.locale("nb_NO")
- control.localespy.wait()
- compare(control.localespy.count, 1)
- compare(control.mirroredspy.count, 0)
- compare(control.locale.name, "nb_NO")
- compare(control.item2_2.locale.name, "nb_NO")
- compare(control.item2_3.locale.name, "nb_NO")
- compare(control.localespy_2.count, 1)
- compare(control.mirroredspy_2.count, 0)
- compare(control.localespy_3.count, 1)
- compare(control.mirroredspy_3.count, 0)
-
- control.locale = Qt.locale("ar_EG")
- control.localespy.wait()
- compare(control.localespy.count, 2)
- compare(control.mirroredspy.count, 1)
- compare(control.locale.name, "ar_EG")
- compare(control.item2_2.locale.name, "ar_EG")
- compare(control.item2_3.locale.name, "ar_EG")
- compare(control.localespy_2.count, 2)
- compare(control.mirroredspy_2.count, 1)
- compare(control.localespy_3.count, 2)
- compare(control.mirroredspy_3.count, 1)
- }
-
- Component {
- id: component6
- T.Control {
- id: item6
- objectName: "item6"
- property alias localespy: _lspy;
- property alias mirroredspy: _mspy;
- property alias localespy_5: _lspy_5;
- property alias mirroredspy_5: _mspy_5;
- property alias item6_2: _item6_2;
- property alias item6_3: _item6_3;
- property alias item6_4: _item6_4;
- property alias item6_5: _item6_5;
- Item {
- id: _item6_2
- objectName: "_item6_2"
- T.Control {
- id: _item6_3
- objectName: "_item6_3"
- Item {
- id: _item6_4
- objectName: "_item6_4"
- T.Control {
- id: _item6_5
- objectName: "_item6_5"
-
- SignalSpy {
- id: _lspy_5
- target: _item6_5
- signalName: "localeChanged"
- }
-
- SignalSpy {
- id: _mspy_5
- target: _item6_5
- signalName: "mirroredChanged"
- }
- }
- }
- }
- }
-
- SignalSpy {
- id: _lspy
- target: item6
- signalName: "localeChanged"
- }
-
- SignalSpy {
- id: _mspy
- target: item6
- signalName: "mirroredChanged"
- }
- }
- }
-
- function test_locale_3() {
- var control = createTemporaryObject(component6, testCase)
- verify(control)
- verify(control.item6_2)
- verify(control.item6_3)
- verify(control.item6_4)
- verify(control.item6_5)
-
- var defaultLocale = Qt.locale()
-
- compare(control.locale.name, defaultLocale.name)
- compare(control.item6_5.locale.name, defaultLocale.name)
-
- control.locale = Qt.locale("nb_NO")
- control.localespy.wait()
- compare(control.localespy.count, 1)
- compare(control.mirroredspy.count, 0)
- compare(control.locale.name, "nb_NO")
- compare(control.item6_5.locale.name, "nb_NO")
- compare(control.localespy_5.count, 1)
- compare(control.mirroredspy_5.count, 0)
-
- control.locale = Qt.locale("ar_EG")
- control.localespy.wait()
- compare(control.localespy.count, 2)
- compare(control.mirroredspy.count, 1)
- compare(control.locale.name, "ar_EG")
- compare(control.item6_5.locale.name, "ar_EG")
- compare(control.localespy_5.count, 2)
- compare(control.mirroredspy_5.count, 1)
- }
-
- function test_hover_data() {
- return [
- { tag: "normal", target: component, pressed: false },
- { tag: "pressed", target: button, pressed: true }
- ]
- }
-
- function test_hover(data) {
- var control = createTemporaryObject(data.target, testCase, {width: 100, height: 100})
- verify(control)
-
- compare(control.hovered, false)
- compare(control.hoverEnabled, Qt.styleHints.useHoverEffects)
-
- control.hoverEnabled = false
-
- mouseMove(control, control.width / 2, control.height / 2)
- compare(control.hovered, false)
-
- control.hoverEnabled = true
-
- mouseMove(control, control.width / 2, control.height / 2)
- compare(control.hovered, true)
-
- if (data.pressed) {
- mousePress(control, control.width / 2, control.height / 2)
- compare(control.hovered, true)
- }
-
- mouseMove(control, -10, -10)
- compare(control.hovered, false)
-
- if (data.pressed) {
- mouseRelease(control, -10, control.height / 2)
- compare(control.hovered, false)
- }
-
- mouseMove(control, control.width / 2, control.height / 2)
- compare(control.hovered, true)
-
- control.visible = false
- compare(control.hovered, false)
- }
-
- function test_hoverEnabled() {
- var control = createTemporaryObject(component, testCase)
- compare(control.hoverEnabled, Qt.styleHints.useHoverEffects)
-
- var child = component.createObject(control)
- var grandChild = component.createObject(child)
-
- var childExplicitHoverEnabled = component.createObject(control, {hoverEnabled: true})
- var grandChildExplicitHoverDisabled = component.createObject(childExplicitHoverEnabled, {hoverEnabled: false})
-
- var childExplicitHoverDisabled = component.createObject(control, {hoverEnabled: false})
- var grandChildExplicitHoverEnabled = component.createObject(childExplicitHoverDisabled, {hoverEnabled: true})
-
- control.hoverEnabled = false
- compare(control.hoverEnabled, false)
- compare(grandChild.hoverEnabled, false)
-
- compare(childExplicitHoverEnabled.hoverEnabled, true)
- compare(grandChildExplicitHoverDisabled.hoverEnabled, false)
-
- compare(childExplicitHoverDisabled.hoverEnabled, false)
- compare(grandChildExplicitHoverEnabled.hoverEnabled, true)
-
- control.hoverEnabled = true
- compare(control.hoverEnabled, true)
- compare(grandChild.hoverEnabled, true)
-
- compare(childExplicitHoverEnabled.hoverEnabled, true)
- compare(grandChildExplicitHoverDisabled.hoverEnabled, false)
-
- compare(childExplicitHoverDisabled.hoverEnabled, false)
- compare(grandChildExplicitHoverEnabled.hoverEnabled, true)
- }
-
- function test_implicitSize() {
- var control = createTemporaryObject(component, testCase)
- verify(control)
-
- var implicitWidthSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitWidthChanged"})
- verify(implicitWidthSpy.valid)
-
- var implicitHeightSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitHeightChanged"})
- verify(implicitHeightSpy.valid)
-
- var implicitContentWidthSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitContentWidthChanged"})
- verify(implicitContentWidthSpy.valid)
-
- var implicitContentHeightSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitContentHeightChanged"})
- verify(implicitContentHeightSpy.valid)
-
- var implicitBackgroundWidthSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitBackgroundWidthChanged"})
- verify(implicitBackgroundWidthSpy.valid)
-
- var implicitBackgroundHeightSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitBackgroundHeightChanged"})
- verify(implicitBackgroundHeightSpy.valid)
-
- var implicitWidthChanges = 0
- var implicitHeightChanges = 0
- var implicitContentWidthChanges = 0
- var implicitContentHeightChanges = 0
- var implicitBackgroundWidthChanges = 0
- var implicitBackgroundHeightChanges = 0
-
- compare(control.implicitWidth, 0)
- compare(control.implicitHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
-
- control.contentItem = rectangle.createObject(control, {implicitWidth: 10, implicitHeight: 20})
- compare(control.implicitWidth, 10)
- compare(control.implicitHeight, 20)
- compare(control.implicitContentWidth, 10)
- compare(control.implicitContentHeight, 20)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, ++implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, implicitBackgroundHeightChanges)
- compare(implicitContentWidthSpy.count, ++implicitContentWidthChanges)
- compare(implicitContentHeightSpy.count, ++implicitContentHeightChanges)
-
- control.contentItem.implicitWidth += 1
- control.contentItem.implicitHeight += 1
- compare(control.implicitWidth, 11)
- compare(control.implicitHeight, 21)
- compare(control.implicitContentWidth, 11)
- compare(control.implicitContentHeight, 21)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, ++implicitHeightChanges)
- compare(implicitContentWidthSpy.count, ++implicitContentWidthChanges)
- compare(implicitContentHeightSpy.count, ++implicitContentHeightChanges)
- compare(implicitBackgroundWidthSpy.count, implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, implicitBackgroundHeightChanges)
-
- control.background = rectangle.createObject(control, {implicitWidth: 20, implicitHeight: 30})
- compare(control.implicitWidth, 20)
- compare(control.implicitHeight, 30)
- compare(control.implicitContentWidth,11)
- compare(control.implicitContentHeight, 21)
- compare(control.implicitBackgroundWidth, 20)
- compare(control.implicitBackgroundHeight, 30)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, ++implicitHeightChanges)
- compare(implicitContentWidthSpy.count, implicitContentWidthChanges)
- compare(implicitContentHeightSpy.count, implicitContentHeightChanges)
- compare(implicitBackgroundWidthSpy.count, ++implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, ++implicitBackgroundHeightChanges)
-
- control.background.implicitWidth += 1
- control.background.implicitHeight += 1
- compare(control.implicitWidth, 21)
- compare(control.implicitHeight, 31)
- compare(control.implicitContentWidth, 11)
- compare(control.implicitContentHeight, 21)
- compare(control.implicitBackgroundWidth, 21)
- compare(control.implicitBackgroundHeight, 31)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, ++implicitHeightChanges)
- compare(implicitContentWidthSpy.count, implicitContentWidthChanges)
- compare(implicitContentHeightSpy.count, implicitContentHeightChanges)
- compare(implicitBackgroundWidthSpy.count, ++implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, ++implicitBackgroundHeightChanges)
- }
-
- function test_baseline() {
- var control = createTemporaryObject(component, testCase)
- verify(control)
-
- compare(control.baselineOffset, 0)
-
- var baselineSpy = signalSpy.createObject(control, {target: control, signalName: "baselineOffsetChanged"})
- verify(baselineSpy.valid)
-
- control.contentItem = rectangle.createObject(control, {baselineOffset: 12})
- compare(control.baselineOffset, 12)
- compare(baselineSpy.count, 1)
-
- control.padding = 6
- compare(control.baselineOffset, 18)
- compare(baselineSpy.count, 2)
-
- control.baselineOffset = 3
- compare(control.baselineOffset, 3)
- compare(baselineSpy.count, 3)
-
- control.padding = 9
- compare(control.baselineOffset, 3)
- compare(baselineSpy.count, 3)
-
- control.baselineOffset = undefined
- compare(control.baselineOffset, 21)
- compare(baselineSpy.count, 4)
-
- control.contentItem.baselineOffset = 3
- compare(control.baselineOffset, 12)
- compare(baselineSpy.count, 5)
-
- control.contentItem = null
- compare(control.baselineOffset, 0)
- compare(baselineSpy.count, 6)
- }
-
- function test_inset() {
- var control = createTemporaryObject(component, testCase, {background: rectangle.createObject(control)})
- verify(control)
-
- var topInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "topInsetChanged"})
- verify(topInsetSpy.valid)
-
- var leftInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "leftInsetChanged"})
- verify(leftInsetSpy.valid)
-
- var rightInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "rightInsetChanged"})
- verify(rightInsetSpy.valid)
-
- var bottomInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "bottomInsetChanged"})
- verify(bottomInsetSpy.valid)
-
- var topInsetChanges = 0
- var leftInsetChanges = 0
- var rightInsetChanges = 0
- var bottomInsetChanges = 0
-
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
-
- control.width = 100
- control.height = 100
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 100)
-
- control.topInset = 10
- compare(control.topInset, 10)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, ++topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 10)
- compare(control.background.width, 100)
- compare(control.background.height, 90)
-
- control.leftInset = 20
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, ++leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 80)
- compare(control.background.height, 90)
-
- control.rightInset = 30
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, ++rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 50)
- compare(control.background.height, 90)
-
- control.bottomInset = 40
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, ++bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 50)
- compare(control.background.height, 50)
-
- control.topInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, ++topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 0)
- compare(control.background.width, 50)
- compare(control.background.height, 60)
-
- control.leftInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, ++leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 70)
- compare(control.background.height, 60)
-
- control.rightInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, ++rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 60)
-
- control.bottomInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, ++bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 100)
- }
-}
diff --git a/tests/auto/controls/data/tst_delaybutton.qml b/tests/auto/controls/data/tst_delaybutton.qml
deleted file mode 100644
index 2560177d..00000000
--- a/tests/auto/controls/data/tst_delaybutton.qml
+++ /dev/null
@@ -1,333 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "DelayButton"
-
- Component {
- id: delayButton
- DelayButton {
- delay: 200
- }
- }
-
- Component {
- id: signalSequenceSpy
- SignalSequenceSpy {
- signals: ["pressed", "released", "canceled", "clicked", "toggled", "doubleClicked", "pressedChanged", "downChanged", "checkedChanged", "activated"]
- }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_mouse() {
- var control = createTemporaryObject(delayButton, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // click
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- mouseClick(control)
- verify(sequenceSpy.success)
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- "activated"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- tryVerify(function() { return sequenceSpy.success})
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- ["checkedChanged", { "checked": true }],
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- ["checkedChanged", { "checked": false }],
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // release outside
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }]]
- mouseMove(control, control.width * 2, control.height * 2, 0)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["canceled", { "pressed": false }]]
- mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftButton)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // right button
- sequenceSpy.expectedSequence = []
- mousePress(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.pressed, false)
-
- mouseRelease(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // double click
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked",
- ["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- "doubleClicked",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- mouseDoubleClickSequence(control, control.width / 2, control.height / 2, Qt.LeftButton)
- verify(sequenceSpy.success)
- }
-
- function test_touch() {
- var control = createTemporaryObject(delayButton, testCase)
- verify(control)
-
- var touch = touchEvent(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // click
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- touch.press(0, control).commit()
- touch.release(0, control).commit()
- verify(sequenceSpy.success)
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- "activated"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- tryVerify(function() { return sequenceSpy.success})
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- ["checkedChanged", { "checked": true }],
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- ["checkedChanged", { "checked": false }],
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // release outside
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }]]
- touch.move(0, control, control.width * 2, control.height * 2).commit()
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = [["canceled", { "pressed": false }]]
- touch.release(0, control, control.width * 2, control.height * 2).commit()
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- }
-
- function test_keys() {
- var control = createTemporaryObject(delayButton, testCase)
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // click
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- verify(sequenceSpy.success)
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- "activated"]
- keyPress(Qt.Key_Space)
- tryVerify(function() { return sequenceSpy.success})
-
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- ["checkedChanged", { "checked": true }],
- "released",
- "clicked"]
- keyRelease(Qt.Key_Space)
- verify(sequenceSpy.success)
-
- // uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }],
- ["downChanged", { "down": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- ["downChanged", { "down": false }],
- ["checkedChanged", { "checked": false }],
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- verify(sequenceSpy.success)
-
- // no change
- sequenceSpy.expectedSequence = []
- var keys = [Qt.Key_Enter, Qt.Key_Return, Qt.Key_Escape, Qt.Key_Tab]
- for (var i = 0; i < keys.length; ++i) {
- sequenceSpy.reset()
- keyClick(keys[i])
- verify(sequenceSpy.success)
- }
- }
-
- function test_progress() {
- var control = createTemporaryObject(delayButton, testCase)
- verify(control)
-
- var progressSpy = signalSpy.createObject(control, {target: control, signalName: "progressChanged"})
- verify(progressSpy.valid)
-
- compare(control.progress, 0.0)
- mousePress(control)
- tryCompare(control, "progress", 1.0)
- verify(progressSpy.count > 0)
- }
-
- function test_baseline() {
- var control = createTemporaryObject(delayButton, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-}
diff --git a/tests/auto/controls/data/tst_dial.qml b/tests/auto/controls/data/tst_dial.qml
deleted file mode 100644
index 86999594..00000000
--- a/tests/auto/controls/data/tst_dial.qml
+++ /dev/null
@@ -1,688 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 450
- height: 450
- visible: true
- when: windowShown
- name: "Dial"
-
- Component {
- id: dialComponent
- Dial {
- width: 100
- height: 100
- anchors.centerIn: parent
- }
- }
-
- Component {
- id: signalSpy
- SignalSpy {}
- }
-
- function test_instance() {
- var dial = createTemporaryObject(dialComponent, testCase);
- verify(dial);
- compare(dial.value, 0.0);
- compare(dial.from, 0.0);
- compare(dial.to, 1.0);
- compare(dial.stepSize, 0.0);
- verify(dial.activeFocusOnTab);
- verify(!dial.pressed);
- }
-
- function test_value() {
- var dial = createTemporaryObject(dialComponent, testCase);
- verify(dial);
- compare(dial.value, 0.0);
-
- dial.value = 0.5;
- compare(dial.value, 0.5);
-
- dial.value = 1.0;
- compare(dial.value, 1.0);
-
- dial.value = -1.0;
- compare(dial.value, 0.0);
-
- dial.value = 2.0;
- compare(dial.value, 1.0);
- }
-
- function test_range() {
- var dial = createTemporaryObject(dialComponent, testCase);
- verify(dial);
-
- dial.from = 0;
- dial.to = 100;
- dial.value = 50;
- compare(dial.from, 0);
- compare(dial.to, 100);
- compare(dial.value, 50);
- compare(dial.position, 0.5);
-
- dial.value = 1000
- compare(dial.value, 100);
- compare(dial.position, 1);
-
- dial.value = -1
- compare(dial.value, 0);
- compare(dial.position, 0);
-
- dial.from = 25
- compare(dial.from, 25);
- compare(dial.value, 25);
- compare(dial.position, 0);
-
- dial.to = 75
- compare(dial.to, 75);
- compare(dial.value, 25);
- compare(dial.position, 0);
-
- dial.value = 50
- compare(dial.value, 50);
- compare(dial.position, 0.5);
- }
-
- function test_inverted() {
- var dial = createTemporaryObject(dialComponent, testCase, { from: 1.0, to: -1.0 });
- verify(dial);
- compare(dial.from, 1.0);
- compare(dial.to, -1.0);
- compare(dial.value, 0.0);
- compare(dial.position, 0.5);
-
- dial.value = 2.0;
- compare(dial.value, 1.0);
- compare(dial.position, 0.0);
-
- dial.value = -2.0;
- compare(dial.value, -1.0);
- compare(dial.position, 1.0);
-
- dial.value = 0.0;
- compare(dial.value, 0.0);
- compare(dial.position, 0.5);
- }
-
- SignalSpy {
- id: pressSpy
- signalName: "pressedChanged"
- }
-
- function test_pressed() {
- var dial = createTemporaryObject(dialComponent, testCase);
- verify(dial);
-
- pressSpy.target = dial;
- verify(pressSpy.valid);
- verify(!dial.pressed);
-
- mousePress(dial, dial.width / 2, dial.height / 2);
- verify(dial.pressed);
- compare(pressSpy.count, 1);
-
- mouseRelease(dial, dial.width / 2, dial.height / 2);
- verify(!dial.pressed);
- compare(pressSpy.count, 2);
-
- var touch = touchEvent(dial);
- touch.press(0).commit();
- verify(dial.pressed);
- compare(pressSpy.count, 3);
-
- touch.release(0).commit();
- verify(!dial.pressed);
- compare(pressSpy.count, 4);
- }
-
- SignalSpy {
- id: valueSpy
- signalName: "valueChanged"
- }
-
- function test_dragging_data() {
- return [
- { tag: "default", from: 0, to: 1, leftValue: 0.20, topValue: 0.5, rightValue: 0.8, bottomValue: 1.0, live: false },
- { tag: "scaled2", from: 0, to: 2, leftValue: 0.4, topValue: 1.0, rightValue: 1.6, bottomValue: 2.0, live: false },
- { tag: "scaled1", from: -1, to: 0, leftValue: -0.8, topValue: -0.5, rightValue: -0.2, bottomValue: 0.0, live: false },
- { tag: "live", from: 0, to: 1, leftValue: 0.20, topValue: 0.5, rightValue: 0.8, bottomValue: 1.0, live: true }
- ]
- }
-
- function test_dragging(data) {
- var dial = createTemporaryObject(dialComponent, testCase);
- verify(dial);
-
- dial.wrap = true;
- verify(dial.wrap);
- dial.from = data.from;
- dial.to = data.to;
- dial.live = data.live;
-
- valueSpy.target = dial;
- verify(valueSpy.valid);
-
- var moveSpy = createTemporaryObject(signalSpy, testCase, {target: dial, signalName: "moved"});
- verify(moveSpy.valid);
-
- var minimumExpectedValueCount = data.live ? 2 : 1;
-
- // drag to the left
- mouseDrag(dial, dial.width / 2, dial.height / 2, -dial.width / 2, 0, Qt.LeftButton);
- fuzzyCompare(dial.value, data.leftValue, 0.1);
- verify(valueSpy.count >= minimumExpectedValueCount);
- valueSpy.clear();
- verify(moveSpy.count > 0);
- moveSpy.clear();
-
- // drag to the top
- mouseDrag(dial, dial.width / 2, dial.height / 2, 0, -dial.height / 2, Qt.LeftButton);
- fuzzyCompare(dial.value, data.topValue, 0.1);
- verify(valueSpy.count >= minimumExpectedValueCount);
- valueSpy.clear();
- verify(moveSpy.count > 0);
- moveSpy.clear();
-
- // drag to the right
- mouseDrag(dial, dial.width / 2, dial.height / 2, dial.width / 2, 0, Qt.LeftButton);
- fuzzyCompare(dial.value, data.rightValue, 0.1);
- verify(valueSpy.count >= minimumExpectedValueCount);
- valueSpy.clear();
- verify(moveSpy.count > 0);
- moveSpy.clear();
-
- // drag to the bottom (* 0.6 to ensure we don't go over to the minimum position)
- mouseDrag(dial, dial.width / 2, dial.height / 2, 10, dial.height / 2, Qt.LeftButton);
- fuzzyCompare(dial.value, data.bottomValue, 0.1);
- verify(valueSpy.count >= minimumExpectedValueCount);
- valueSpy.clear();
- verify(moveSpy.count > 0);
- moveSpy.clear();
- }
-
- function test_nonWrapping() {
- var dial = createTemporaryObject(dialComponent, testCase);
- verify(dial);
-
- compare(dial.wrap, false);
- dial.value = 0;
-
- // Ensure that dragging from bottom left to bottom right doesn't work.
- var yPos = dial.height * 0.75;
- mousePress(dial, dial.width * 0.25, yPos, Qt.LeftButton);
- var positionAtPress = dial.position;
- mouseMove(dial, dial.width * 0.5, yPos);
- compare(dial.position, positionAtPress);
- mouseMove(dial, dial.width * 0.75, yPos);
- compare(dial.position, positionAtPress);
- mouseRelease(dial, dial.width * 0.75, yPos, Qt.LeftButton);
- compare(dial.position, positionAtPress);
-
- // Try the same thing, but a bit higher.
- yPos = dial.height * 0.6;
- mousePress(dial, dial.width * 0.25, yPos, Qt.LeftButton);
- positionAtPress = dial.position;
- mouseMove(dial, dial.width * 0.5, yPos);
- compare(dial.position, positionAtPress);
- mouseMove(dial, dial.width * 0.75, yPos);
- compare(dial.position, positionAtPress);
- mouseRelease(dial, dial.width * 0.75, yPos, Qt.LeftButton);
- compare(dial.position, positionAtPress);
-
- // Going from below the center of the dial to above it should work (once it gets above the center).
- mousePress(dial, dial.width * 0.25, dial.height * 0.75, Qt.LeftButton);
- positionAtPress = dial.position;
- mouseMove(dial, dial.width * 0.5, dial.height * 0.6);
- compare(dial.position, positionAtPress);
- mouseMove(dial, dial.width * 0.75, dial.height * 0.4);
- verify(dial.position > positionAtPress);
- mouseRelease(dial, dial.width * 0.75, dial.height * 0.3, Qt.LeftButton);
- verify(dial.position > positionAtPress);
- }
-
- function test_touch() {
- var dial = createTemporaryObject(dialComponent, testCase);
- verify(dial);
-
- var touch = touchEvent(dial);
-
- // Ensure that dragging from bottom left to bottom right doesn't work.
- var yPos = dial.height * 0.75;
- touch.press(0, dial, dial.width * 0.25, yPos).commit();
- var positionAtPress = dial.position;
- touch.move(0, dial, dial.width * 0.5, yPos).commit();
- compare(dial.position, positionAtPress);
- touch.move(0, dial, dial.width * 0.75, yPos).commit();
- compare(dial.position, positionAtPress);
- touch.release(0, dial, dial.width * 0.75, yPos).commit();
- compare(dial.position, positionAtPress);
-
- // Try the same thing, but a bit higher.
- yPos = dial.height * 0.6;
- touch.press(0, dial, dial.width * 0.25, yPos).commit();
- positionAtPress = dial.position;
- touch.move(0, dial, dial.width * 0.5, yPos).commit();
- compare(dial.position, positionAtPress);
- touch.move(0, dial, dial.width * 0.75, yPos).commit();
- compare(dial.position, positionAtPress);
- touch.release(0, dial, dial.width * 0.75, yPos).commit();
- compare(dial.position, positionAtPress);
-
- // Going from below the center of the dial to above it should work (once it gets above the center).
- touch.press(0, dial, dial.width * 0.25, dial.height * 0.75).commit();
- positionAtPress = dial.position;
- touch.move(0, dial, dial.width * 0.5, dial.height * 0.6).commit();
- compare(dial.position, positionAtPress);
- touch.move(0, dial, dial.width * 0.75, dial.height * 0.4).commit();
- verify(dial.position > positionAtPress);
- touch.release(0, dial, dial.width * 0.75, dial.height * 0.3).commit();
- verify(dial.position > positionAtPress);
- }
-
- function test_multiTouch() {
- var dial1 = createTemporaryObject(dialComponent, testCase);
- verify(dial1);
-
- var touch = touchEvent(dial1);
- touch.press(0, dial1).commit().move(0, dial1, dial1.width / 4, dial1.height / 4).commit();
- compare(dial1.pressed, true);
- verify(dial1.position > 0.0);
-
- var pos1Before = dial1.position;
-
- // second touch point on the same control is ignored
- touch.stationary(0).press(1, dial1, 0, 0).commit()
- touch.stationary(0).move(1, dial1).commit()
- touch.stationary(0).release(1).commit()
- compare(dial1.pressed, true);
- compare(dial1.position, pos1Before);
-
- var dial2 = createTemporaryObject(dialComponent, testCase, {y: dial1.height});
- verify(dial2);
-
- // press the second dial
- touch.stationary(0).press(2, dial2, 0, 0).commit();
- compare(dial2.pressed, true);
- compare(dial2.position, 0.0);
-
- pos1Before = dial1.position;
- var pos2Before = dial2.position;
-
- // move both dials
- touch.move(0, dial1).move(2, dial2, dial2.width / 4, dial2.height / 4).commit();
- compare(dial1.pressed, true);
- verify(dial1.position !== pos1Before);
- compare(dial2.pressed, true);
- verify(dial2.position !== pos2Before);
-
- // release both dials
- touch.release(0, dial1).release(2, dial2).commit();
- compare(dial1.pressed, false);
- compare(dial1.value, dial1.position);
- compare(dial2.pressed, false);
- compare(dial2.value, dial2.position);
- }
-
- property Component focusTest: Component {
- FocusScope {
- signal receivedKeyPress
-
- Component.onCompleted: forceActiveFocus()
- anchors.fill: parent
- Keys.onPressed: receivedKeyPress()
- }
- }
-
- SignalSpy {
- id: parentEventSpy
- }
-
- function test_keyboardNavigation() {
- var dial = createTemporaryObject(dialComponent, testCase);
- verify(dial);
-
- var focusScope = createTemporaryObject(focusTest, testCase);
- verify(focusScope);
-
- var moveCount = 0;
-
- // Tests that we've accepted events that we're interested in.
- parentEventSpy.target = focusScope;
- parentEventSpy.signalName = "receivedKeyPress";
-
- var moveSpy = createTemporaryObject(signalSpy, testCase, {target: dial, signalName: "moved"});
- verify(moveSpy.valid);
-
- dial.parent = focusScope;
- compare(dial.activeFocusOnTab, true);
- compare(dial.value, 0);
-
- dial.focus = true;
- compare(dial.activeFocus, true);
- dial.stepSize = 0.1;
-
- keyClick(Qt.Key_Left);
- compare(parentEventSpy.count, 0);
- compare(moveSpy.count, moveCount);
- compare(dial.value, 0);
-
- var oldValue = 0.0;
- var keyPairs = [[Qt.Key_Left, Qt.Key_Right], [Qt.Key_Down, Qt.Key_Up]];
- for (var keyPairIndex = 0; keyPairIndex < 2; ++keyPairIndex) {
- for (var i = 1; i <= 10; ++i) {
- oldValue = dial.value;
- keyClick(keyPairs[keyPairIndex][1]);
- compare(parentEventSpy.count, 0);
- if (oldValue !== dial.value)
- compare(moveSpy.count, ++moveCount);
- compare(dial.value, dial.stepSize * i);
- }
-
- compare(dial.value, dial.to);
-
- for (i = 10; i > 0; --i) {
- oldValue = dial.value;
- keyClick(keyPairs[keyPairIndex][0]);
- compare(parentEventSpy.count, 0);
- if (oldValue !== dial.value)
- compare(moveSpy.count, ++moveCount);
- compare(dial.value, dial.stepSize * (i - 1));
- }
- }
-
- dial.value = 0.5;
-
- keyClick(Qt.Key_Home);
- compare(parentEventSpy.count, 0);
- compare(moveSpy.count, ++moveCount);
- compare(dial.value, dial.from);
-
- keyClick(Qt.Key_Home);
- compare(parentEventSpy.count, 0);
- compare(moveSpy.count, moveCount);
- compare(dial.value, dial.from);
-
- keyClick(Qt.Key_End);
- compare(parentEventSpy.count, 0);
- compare(moveSpy.count, ++moveCount);
- compare(dial.value, dial.to);
-
- keyClick(Qt.Key_End);
- compare(parentEventSpy.count, 0);
- compare(moveSpy.count, moveCount);
- compare(dial.value, dial.to);
- }
-
- function test_snapMode_data(immediate) {
- return [
- { tag: "NoSnap", snapMode: Dial.NoSnap, from: 0, to: 2, values: [0, 0, 1], positions: [0, 0.5, 0.5] },
- { tag: "SnapAlways (0..2)", snapMode: Dial.SnapAlways, from: 0, to: 2, values: [0.0, 0.0, 1.0], positions: [0.0, 0.5, 0.5] },
- { tag: "SnapAlways (1..3)", snapMode: Dial.SnapAlways, from: 1, to: 3, values: [1.0, 1.0, 2.0], positions: [0.0, 0.5, 0.5] },
- { tag: "SnapAlways (-1..1)", snapMode: Dial.SnapAlways, from: -1, to: 1, values: [0.0, 0.0, 0.0], positions: [0.5, 0.5, 0.5] },
- { tag: "SnapAlways (1..-1)", snapMode: Dial.SnapAlways, from: 1, to: -1, values: [1.0, 1.0, 0.0], positions: [0.0, 0.5, 0.5] },
- { tag: "SnapOnRelease (0..2)", snapMode: Dial.SnapOnRelease, from: 0, to: 2, values: [0.0, 0.0, 1.0], positions: [0.0, 0.5, 0.5] },
- { tag: "SnapOnRelease (1..3)", snapMode: Dial.SnapOnRelease, from: 1, to: 3, values: [1.0, 1.0, 2.0], positions: [0.0, 0.5, 0.5] },
- { tag: "SnapOnRelease (-1..1)", snapMode: Dial.SnapOnRelease, from: -1, to: 1, values: [0.0, 0.0, 0.0], positions: [immediate ? 0.0 : 0.5, 0.5, 0.5] },
- { tag: "SnapOnRelease (1..-1)", snapMode: Dial.SnapOnRelease, from: 1, to: -1, values: [1.0, 1.0, 0.0], positions: [0.0, 0.5, 0.5] }
- ]
- }
-
- function test_snapMode_mouse_data() {
- return test_snapMode_data(true)
- }
-
- function test_snapMode_mouse(data) {
- var dial = createTemporaryObject(dialComponent, testCase, {live: false});
- verify(dial);
-
- dial.snapMode = data.snapMode;
- dial.from = data.from;
- dial.to = data.to;
- dial.stepSize = 0.2;
-
- var fuzz = 0.055;
-
- mousePress(dial, dial.width * 0.25, dial.height * 0.75);
- fuzzyCompare(dial.value, data.values[0], fuzz);
- fuzzyCompare(dial.position, data.positions[0], fuzz);
-
- mouseMove(dial, dial.width * 0.5, dial.height * 0.25);
- fuzzyCompare(dial.value, data.values[1], fuzz);
- fuzzyCompare(dial.position, data.positions[1], fuzz);
-
- mouseRelease(dial, dial.width * 0.5, dial.height * 0.25);
- fuzzyCompare(dial.value, data.values[2], fuzz);
- fuzzyCompare(dial.position, data.positions[2], fuzz);
- }
-
- function test_snapMode_touch_data() {
- return test_snapMode_data(false)
- }
-
- function test_snapMode_touch(data) {
- var dial = createTemporaryObject(dialComponent, testCase, {live: false});
- verify(dial);
-
- dial.snapMode = data.snapMode;
- dial.from = data.from;
- dial.to = data.to;
- dial.stepSize = 0.2;
-
- var fuzz = 0.05;
-
- var touch = touchEvent(dial);
- touch.press(0, dial, dial.width * 0.25, dial.height * 0.75).commit()
- compare(dial.value, data.values[0]);
- compare(dial.position, data.positions[0]);
-
- touch.move(0, dial, dial.width * 0.5, dial.height * 0.25).commit();
- fuzzyCompare(dial.value, data.values[1], fuzz);
- fuzzyCompare(dial.position, data.positions[1], fuzz);
-
- touch.release(0, dial, dial.width * 0.5, dial.height * 0.25).commit();
- fuzzyCompare(dial.value, data.values[2], fuzz);
- fuzzyCompare(dial.position, data.positions[2], fuzz);
- }
-
- function test_wheel_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, dx: 120, dy: 0 },
- { tag: "vertical", orientation: Qt.Vertical, dx: 0, dy: 120 }
- ]
- }
-
- function test_wheel(data) {
- var control = createTemporaryObject(dialComponent, testCase, {wheelEnabled: true, orientation: data.orientation})
- verify(control)
-
- compare(control.value, 0.0)
-
- mouseWheel(control, control.width / 2, control.height / 2, data.dx, data.dy)
- compare(control.value, 0.1)
- compare(control.position, 0.1)
-
- control.stepSize = 0.2
-
- mouseWheel(control, control.width / 2, control.height / 2, data.dx, data.dy)
- compare(control.value, 0.3)
- compare(control.position, 0.3)
-
- control.stepSize = 10.0
-
- mouseWheel(control, control.width / 2, control.height / 2, -data.dx, -data.dy)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
-
- control.to = 10.0
- control.stepSize = 5.0
-
- mouseWheel(control, control.width / 2, control.height / 2, data.dx, data.dy)
- compare(control.value, 5.0)
- compare(control.position, 0.5)
-
- mouseWheel(control, control.width / 2, control.height / 2, 0.5 * data.dx, 0.5 * data.dy)
- compare(control.value, 7.5)
- compare(control.position, 0.75)
-
- mouseWheel(control, control.width / 2, control.height / 2, -data.dx, -data.dy)
- compare(control.value, 2.5)
- compare(control.position, 0.25)
- }
-
- function test_nullHandle() {
- var control = createTemporaryObject(dialComponent, testCase)
- verify(control)
-
- control.handle = null
-
- mousePress(control)
- verify(control.pressed, true)
-
- mouseRelease(control)
- compare(control.pressed, false)
- }
-
- function move(inputEventType, control, x, y) {
- if (inputEventType === "mouseInput") {
- mouseMove(control, x, y);
- } else {
- var touch = touchEvent(control);
- touch.move(0, control, x, y).commit();
- }
- }
-
- function press(inputEventType, control, x, y) {
- if (inputEventType === "mouseInput") {
- mousePress(control, x, y);
- } else {
- var touch = touchEvent(control);
- touch.press(0, control, x, y).commit();
- }
- }
-
- function release(inputEventType, control, x, y) {
- if (inputEventType === "mouseInput") {
- mouseRelease(control, x, y);
- } else {
- var touch = touchEvent(control);
- touch.release(0, control, x, y).commit();
- }
- }
-
- function test_horizontalAndVertical_data() {
- var data = [
- { eventType: "mouseInput", inputMode: Dial.Vertical, moveToX: 0.5, moveToY: 0.25, expectedPosition: 0.125 },
- // Horizontal movement should have no effect on a vertical dial.
- { eventType: "mouseInput", inputMode: Dial.Vertical, moveToX: 2.0, moveToY: 0.25, expectedPosition: 0.125 },
- { eventType: "mouseInput", inputMode: Dial.Vertical, moveToX: 0.5, moveToY: 0.0, expectedPosition: 0.25 },
- { eventType: "mouseInput", inputMode: Dial.Vertical, moveToX: 0.5, moveToY: -1.5, expectedPosition: 1.0 },
- // Going above the drag area shouldn't make the position higher than 1.0.
- { eventType: "mouseInput", inputMode: Dial.Vertical, moveToX: 0.5, moveToY: -2.0, expectedPosition: 1.0 },
- // Try to decrease the position by moving the mouse down.
- // The dial's position is 0 before the press event, so nothing should happen.
- { eventType: "mouseInput", inputMode: Dial.Vertical, moveToX: 0.5, moveToY: 1.25, expectedPosition: 0.0 },
-
- { eventType: "mouseInput", inputMode: Dial.Horizontal, moveToX: 0.75, moveToY: 0.5, expectedPosition: 0.125 },
- // Vertical movement should have no effect on a horizontal dial.
- { eventType: "mouseInput", inputMode: Dial.Horizontal, moveToX: 0.75, moveToY: 2.0, expectedPosition: 0.125 },
- { eventType: "mouseInput", inputMode: Dial.Horizontal, moveToX: 1.0, moveToY: 0.5, expectedPosition: 0.25 },
- { eventType: "mouseInput", inputMode: Dial.Horizontal, moveToX: 1.5, moveToY: 0.5, expectedPosition: 0.5 },
- { eventType: "mouseInput", inputMode: Dial.Horizontal, moveToX: 2.5, moveToY: 0.5, expectedPosition: 1.0 },
- // Going above the drag area shouldn't make the position higher than 1.0.
- { eventType: "mouseInput", inputMode: Dial.Horizontal, moveToX: 2.525, moveToY: 0.5, expectedPosition: 1.0 },
- // Try to decrease the position by moving the mouse to the left.
- // The dial's position is 0 before the press event, so nothing should happen.
- { eventType: "mouseInput", inputMode: Dial.Vertical, moveToX: 0.25, moveToY: 0.5, expectedPosition: 0.0 }
- ];
-
- // Do the same tests for touch by copying the mouse tests and adding them to the end of the array.
- var mouseTestCount = data.length;
- for (var i = mouseTestCount; i < mouseTestCount * 2; ++i) {
- // Shallow-copy the object.
- data[i] = JSON.parse(JSON.stringify(data[i - mouseTestCount]));
- data[i].eventType = "touchInput";
- }
-
- for (i = 0; i < data.length; ++i) {
- var row = data[i];
- row.tag = "eventType=" + row.eventType + ", "
- + "inputMode=" + (row.inputMode === Dial.Vertical ? "Vertical" : "Horizontal") + ", "
- + "moveToX=" + row.moveToX + ", moveToY=" + row.moveToY + ", "
- + "expectedPosition=" + row.expectedPosition;
- }
-
- return data;
- }
-
- function test_horizontalAndVertical(data) {
- var control = createTemporaryObject(dialComponent, testCase, { inputMode: data.inputMode });
- verify(control);
-
- press(data.eventType, control);
- compare(control.pressed, true);
- // The position shouldn't change until the mouse has actually moved.
- compare(control.position, 0);
-
- move(data.eventType, control, control.width * data.moveToX, control.width * data.moveToY);
- compare(control.position, data.expectedPosition);
-
- release(data.eventType, control, control.width * data.moveToX, control.width * data.moveToY);
- compare(control.pressed, false);
- compare(control.position, data.expectedPosition);
- }
-}
diff --git a/tests/auto/controls/data/tst_dialog.qml b/tests/auto/controls/data/tst_dialog.qml
deleted file mode 100644
index 1bfffc1d..00000000
--- a/tests/auto/controls/data/tst_dialog.qml
+++ /dev/null
@@ -1,414 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Dialog"
-
- Component {
- id: dialog
- Dialog { }
- }
-
- Component {
- id: qtbug71444
- Dialog {
- header: null
- footer: null
- }
- }
-
- Component {
- id: buttonBox
- DialogButtonBox { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_defaults() {
- var control = createTemporaryObject(dialog, testCase)
- verify(control)
- verify(control.header)
- verify(control.footer)
- compare(control.standardButtons, 0)
- }
-
- function test_accept() {
- var control = createTemporaryObject(dialog, testCase)
-
- var openedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "opened"})
- verify(openedSpy.valid)
-
- control.open()
- openedSpy.wait()
- compare(openedSpy.count, 1)
- verify(control.visible)
-
- var acceptedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "accepted"})
- verify(acceptedSpy.valid)
- control.accept()
- compare(acceptedSpy.count, 1)
- compare(control.result, Dialog.Accepted)
-
- tryCompare(control, "visible", false)
- }
-
- function test_reject() {
- skip("QTBUG-62549, QTBUG-62628")
-
- var control = createTemporaryObject(dialog, testCase)
-
- var openedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "opened"})
- verify(openedSpy.valid)
-
- control.open()
- openedSpy.wait()
- compare(openedSpy.count, 1)
- verify(control.visible)
-
- var rejectedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "rejected"})
- verify(rejectedSpy.valid)
- control.reject()
- compare(rejectedSpy.count, 1)
- compare(control.result, Dialog.Rejected)
-
- tryCompare(control, "visible", false)
-
- // Check that rejected() is emitted when CloseOnEscape is triggered.
- control.x = 10
- control.y = 10
- control.width = 100
- control.height = 100
- control.closePolicy = Popup.CloseOnEscape
- control.open()
- verify(control.visible)
-
- keyPress(Qt.Key_Escape)
- compare(rejectedSpy.count, 2)
- tryCompare(control, "visible", false)
-
- keyRelease(Qt.Key_Escape)
- compare(rejectedSpy.count, 2)
-
- // Check that rejected() is emitted when CloseOnPressOutside is triggered.
- control.closePolicy = Popup.CloseOnPressOutside
- control.open()
- verify(control.visible)
-
- mousePress(testCase, 1, 1)
- compare(rejectedSpy.count, 3)
- tryCompare(control, "visible", false)
-
- mouseRelease(testCase, 1, 1)
- compare(rejectedSpy.count, 3)
-
- // Check that rejected() is emitted when CloseOnReleaseOutside is triggered.
- // For this, we need to make the dialog modal, because the overlay won't accept
- // the press event because it doesn't want to block the press.
- control.modal = true
- control.closePolicy = Popup.CloseOnReleaseOutside
- control.open()
- verify(control.visible)
-
- mousePress(testCase, 1, 1)
- compare(rejectedSpy.count, 3)
- verify(control.visible)
-
- mouseRelease(testCase, 1, 1)
- compare(rejectedSpy.count, 4)
- tryCompare(control, "visible", false)
- }
-
- function test_buttonBox_data() {
- return [
- { tag: "default" },
- { tag: "custom", custom: true }
- ]
- }
-
- function test_buttonBox(data) {
- var control = createTemporaryObject(dialog, testCase)
-
- if (data.custom)
- control.footer = buttonBox.createObject(testCase)
- control.standardButtons = Dialog.Ok | Dialog.Cancel
- var box = control.footer
- verify(box)
- compare(box.standardButtons, Dialog.Ok | Dialog.Cancel)
-
- var acceptedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "accepted"})
- verify(acceptedSpy.valid)
- box.accepted()
- compare(acceptedSpy.count, 1)
-
- var rejectedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "rejected"})
- verify(rejectedSpy.valid)
- box.rejected()
- compare(rejectedSpy.count, 1)
- }
-
- function test_qtbug71444() {
- var control = createTemporaryObject(qtbug71444, testCase)
- verify(control)
- }
-
- function test_standardButtons() {
- var control = createTemporaryObject(dialog, testCase)
-
- control.standardButtons = Dialog.Ok
-
- var box = control.footer ? control.footer : control.header
- verify(box)
- compare(box.count, 1)
- var okButton = box.itemAt(0)
- verify(okButton)
- compare(okButton.text.toUpperCase(), "OK")
-
- control.standardButtons = Dialog.Cancel
- compare(box.count, 1)
- var cancelButton = control.footer.itemAt(0)
- verify(cancelButton)
- compare(cancelButton.text.toUpperCase(), "CANCEL")
-
- control.standardButtons = Dialog.Ok | Dialog.Cancel
- compare(box.count, 2)
- if (box.itemAt(0).text.toUpperCase() === "OK") {
- okButton = box.itemAt(0)
- cancelButton = box.itemAt(1)
- } else {
- okButton = box.itemAt(1)
- cancelButton = box.itemAt(0)
- }
- verify(okButton)
- verify(cancelButton)
- compare(okButton.text.toUpperCase(), "OK")
- compare(cancelButton.text.toUpperCase(), "CANCEL")
-
- control.standardButtons = 0
- compare(box.count, 0)
- }
-
- function test_layout() {
- var control = createTemporaryObject(dialog, testCase, {width: 100, height: 100})
- verify(control)
-
- var openedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "opened"})
- verify(openedSpy.valid)
-
- control.open()
- openedSpy.wait()
- compare(openedSpy.count, 1)
- verify(control.visible)
-
- compare(control.width, 100)
- compare(control.height, 100)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight)
-
- control.header = buttonBox.createObject(control.contentItem)
- compare(control.header.width, control.width)
- verify(control.header.height > 0)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight - control.header.height)
-
- control.footer = buttonBox.createObject(control.contentItem)
- compare(control.footer.width, control.width)
- verify(control.footer.height > 0)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight - control.header.height - control.footer.height)
-
- control.topPadding = 9
- control.leftPadding = 2
- control.rightPadding = 6
- control.bottomPadding = 7
-
- compare(control.header.x, 0)
- compare(control.header.y, 0)
- compare(control.header.width, control.width)
- verify(control.header.height > 0)
-
- compare(control.footer.x, 0)
- compare(control.footer.y, control.height - control.footer.height)
- compare(control.footer.width, control.width)
- verify(control.footer.height > 0)
-
- compare(control.contentItem.x, control.leftPadding)
- compare(control.contentItem.y, control.topPadding + control.header.height)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight - control.header.height - control.footer.height)
-
- control.header.visible = false
- compare(control.contentItem.x, control.leftPadding)
- compare(control.contentItem.y, control.topPadding)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight - control.footer.height)
-
- control.footer.visible = false
- compare(control.contentItem.x, control.leftPadding)
- compare(control.contentItem.y, control.topPadding)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight)
-
- control.contentItem.implicitWidth = 50
- control.contentItem.implicitHeight = 60
- compare(control.implicitWidth, control.contentItem.implicitWidth + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentItem.implicitHeight + control.topPadding + control.bottomPadding)
-
- control.header.visible = true
- compare(control.implicitHeight, control.contentItem.implicitHeight + control.topPadding + control.bottomPadding
- + control.header.implicitHeight)
-
- control.footer.visible = true
- compare(control.implicitHeight, control.contentItem.implicitHeight + control.topPadding + control.bottomPadding
- + control.header.implicitHeight + control.footer.implicitHeight)
-
- control.header.implicitWidth = 150
- compare(control.implicitWidth, control.header.implicitWidth)
-
- control.footer.implicitWidth = 160
- compare(control.implicitWidth, control.footer.implicitWidth)
- }
-
- function test_spacing_data() {
- return [
- { tag: "content", header: false, content: true, footer: false },
- { tag: "header,content", header: true, content: true, footer: false },
- { tag: "content,footer", header: false, content: true, footer: true },
- { tag: "header,content,footer", header: true, content: true, footer: true },
- { tag: "header,footer", header: true, content: false, footer: true },
- { tag: "header", header: true, content: false, footer: false },
- { tag: "footer", header: false, content: false, footer: true },
- ]
- }
-
- function test_spacing(data) {
- var control = createTemporaryObject(dialog, testCase, {spacing: 20, width: 100, height: 100})
- verify(control)
-
- var openedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "opened"})
- verify(openedSpy.valid)
-
- control.open()
- openedSpy.wait()
- compare(openedSpy.count, 1)
- verify(control.visible)
-
- control.contentItem.visible = data.content
- control.header = buttonBox.createObject(control.contentItem, {visible: data.header})
- control.footer = buttonBox.createObject(control.contentItem, {visible: data.footer})
-
- compare(control.header.x, 0)
- compare(control.header.y, 0)
- compare(control.header.width, control.width)
- verify(control.header.height > 0)
-
- compare(control.footer.x, 0)
- compare(control.footer.y, control.height - control.footer.height)
- compare(control.footer.width, control.width)
- verify(control.footer.height > 0)
-
- compare(control.contentItem.x, control.leftPadding)
- compare(control.contentItem.y, control.topPadding + (data.header ? control.header.height + control.spacing : 0))
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight
- - (data.header ? control.header.height + control.spacing : 0)
- - (data.footer ? control.footer.height + control.spacing : 0))
- }
-
- function test_signals_data() {
- return [
- { tag: "Ok", standardButton: Dialog.Ok, signalName: "accepted" },
- { tag: "Open", standardButton: Dialog.Open, signalName: "accepted" },
- { tag: "Save", standardButton: Dialog.Save, signalName: "accepted" },
- { tag: "Cancel", standardButton: Dialog.Cancel, signalName: "rejected" },
- { tag: "Close", standardButton: Dialog.Close, signalName: "rejected" },
- { tag: "Discard", standardButton: Dialog.Discard, signalName: "discarded" },
- { tag: "Apply", standardButton: Dialog.Apply, signalName: "applied" },
- { tag: "Reset", standardButton: Dialog.Reset, signalName: "reset" },
- { tag: "RestoreDefaults", standardButton: Dialog.RestoreDefaults, signalName: "reset" },
- { tag: "Help", standardButton: Dialog.Help, signalName: "helpRequested" },
- { tag: "SaveAll", standardButton: Dialog.SaveAll, signalName: "accepted" },
- { tag: "Yes", standardButton: Dialog.Yes, signalName: "accepted" },
- { tag: "YesToAll", standardButton: Dialog.YesToAll, signalName: "accepted" },
- { tag: "No", standardButton: Dialog.No, signalName: "rejected" },
- { tag: "NoToAll", standardButton: Dialog.NoToAll, signalName: "rejected" },
- { tag: "Abort", standardButton: Dialog.Abort, signalName: "rejected" },
- { tag: "Retry", standardButton: Dialog.Retry, signalName: "accepted" },
- { tag: "Ignore", standardButton: Dialog.Ignore, signalName: "accepted" }
- ]
- }
-
- function test_signals(data) {
- var control = createTemporaryObject(dialog, testCase)
- verify(control)
-
- control.standardButtons = data.standardButton
- var button = control.standardButton(data.standardButton)
- verify(button)
-
- var buttonSpy = signalSpy.createObject(control.contentItem, {target: control, signalName: data.signalName})
- verify(buttonSpy.valid)
-
- button.clicked()
- compare(buttonSpy.count, 1)
- }
-}
diff --git a/tests/auto/controls/data/tst_dialogbuttonbox.qml b/tests/auto/controls/data/tst_dialogbuttonbox.qml
deleted file mode 100644
index a651713a..00000000
--- a/tests/auto/controls/data/tst_dialogbuttonbox.qml
+++ /dev/null
@@ -1,447 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 600
- height: 400
- visible: true
- when: windowShown
- name: "DialogButtonBox"
-
- Component {
- id: buttonBox
- DialogButtonBox { }
- }
-
- Component {
- id: button
- Button { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_defaults() {
- var control = createTemporaryObject(buttonBox, testCase)
- verify(control)
- compare(control.count, 0)
- verify(control.delegate)
- compare(control.standardButtons, 0)
- }
-
- function test_standardButtons() {
- var control = createTemporaryObject(buttonBox, testCase)
- verify(control)
- compare(control.count, 0)
-
- control.standardButtons = DialogButtonBox.Ok
- compare(control.count, 1)
- var okButton = control.itemAt(0)
- verify(okButton)
- compare(okButton.text.toUpperCase(), "OK")
-
- control.standardButtons = DialogButtonBox.Cancel
- compare(control.count, 1)
- var cancelButton = control.itemAt(0)
- verify(cancelButton)
- compare(cancelButton.text.toUpperCase(), "CANCEL")
-
- control.standardButtons = DialogButtonBox.Ok | DialogButtonBox.Cancel
- compare(control.count, 2)
- if (control.itemAt(0).text.toUpperCase() === "OK") {
- okButton = control.itemAt(0)
- cancelButton = control.itemAt(1)
- } else {
- okButton = control.itemAt(1)
- cancelButton = control.itemAt(0)
- }
- verify(okButton)
- verify(cancelButton)
- compare(okButton.text.toUpperCase(), "OK")
- compare(cancelButton.text.toUpperCase(), "CANCEL")
- compare(control.standardButton(DialogButtonBox.Ok), okButton)
- compare(control.standardButton(DialogButtonBox.Cancel), cancelButton)
-
- control.standardButtons = 0
- compare(control.count, 0)
-
- compare(control.standardButton(DialogButtonBox.Ok), null)
- compare(control.standardButton(DialogButtonBox.Cancel), null)
- }
-
- function test_attached() {
- var control = createTemporaryObject(buttonBox, testCase)
- verify(control)
-
- control.standardButtons = DialogButtonBox.Ok
- var okButton = control.itemAt(0)
- compare(okButton.DialogButtonBox.buttonBox, control)
- compare(okButton.DialogButtonBox.buttonRole, DialogButtonBox.AcceptRole)
-
- var saveButton = button.createObject(control, {text: "Save"})
- compare(saveButton.DialogButtonBox.buttonBox, control)
- compare(saveButton.DialogButtonBox.buttonRole, DialogButtonBox.InvalidRole)
- saveButton.DialogButtonBox.buttonRole = DialogButtonBox.AcceptRole
- compare(saveButton.DialogButtonBox.buttonRole, DialogButtonBox.AcceptRole)
-
- var closeButton = createTemporaryObject(button, null, {text: "Save"})
- compare(closeButton.DialogButtonBox.buttonBox, null)
- compare(closeButton.DialogButtonBox.buttonRole, DialogButtonBox.InvalidRole)
- closeButton.DialogButtonBox.buttonRole = DialogButtonBox.DestructiveRole
- compare(closeButton.DialogButtonBox.buttonRole, DialogButtonBox.DestructiveRole)
- control.addItem(closeButton)
- compare(closeButton.DialogButtonBox.buttonBox, control)
-
- control.contentModel.clear()
- compare(okButton.DialogButtonBox.buttonBox, null)
- compare(saveButton.DialogButtonBox.buttonBox, null)
- compare(closeButton.DialogButtonBox.buttonBox, null)
- }
-
- function test_signals_data() {
- return [
- { tag: "Ok", standardButton: DialogButtonBox.Ok, buttonRole: DialogButtonBox.AcceptRole, signalName: "accepted" },
- { tag: "Open", standardButton: DialogButtonBox.Open, buttonRole: DialogButtonBox.AcceptRole, signalName: "accepted" },
- { tag: "Save", standardButton: DialogButtonBox.Save, buttonRole: DialogButtonBox.AcceptRole, signalName: "accepted" },
- { tag: "Cancel", standardButton: DialogButtonBox.Cancel, buttonRole: DialogButtonBox.RejectRole, signalName: "rejected" },
- { tag: "Close", standardButton: DialogButtonBox.Close, buttonRole: DialogButtonBox.RejectRole, signalName: "rejected" },
- { tag: "Discard", standardButton: DialogButtonBox.Discard, buttonRole: DialogButtonBox.DestructiveRole, signalName: "discarded" },
- { tag: "Apply", standardButton: DialogButtonBox.Apply, buttonRole: DialogButtonBox.ApplyRole, signalName: "applied" },
- { tag: "Reset", standardButton: DialogButtonBox.Reset, buttonRole: DialogButtonBox.ResetRole, signalName: "reset" },
- { tag: "RestoreDefaults", standardButton: DialogButtonBox.RestoreDefaults, buttonRole: DialogButtonBox.ResetRole, signalName: "reset" },
- { tag: "Help", standardButton: DialogButtonBox.Help, buttonRole: DialogButtonBox.HelpRole, signalName: "helpRequested" },
- { tag: "SaveAll", standardButton: DialogButtonBox.SaveAll, buttonRole: DialogButtonBox.AcceptRole, signalName: "accepted" },
- { tag: "Yes", standardButton: DialogButtonBox.Yes, buttonRole: DialogButtonBox.YesRole, signalName: "accepted" },
- { tag: "YesToAll", standardButton: DialogButtonBox.YesToAll, buttonRole: DialogButtonBox.YesRole, signalName: "accepted" },
- { tag: "No", standardButton: DialogButtonBox.No, buttonRole: DialogButtonBox.NoRole, signalName: "rejected" },
- { tag: "NoToAll", standardButton: DialogButtonBox.NoToAll, buttonRole: DialogButtonBox.NoRole, signalName: "rejected" },
- { tag: "Abort", standardButton: DialogButtonBox.Abort, buttonRole: DialogButtonBox.RejectRole, signalName: "rejected" },
- { tag: "Retry", standardButton: DialogButtonBox.Retry, buttonRole: DialogButtonBox.AcceptRole, signalName: "accepted" },
- { tag: "Ignore", standardButton: DialogButtonBox.Ignore, buttonRole: DialogButtonBox.AcceptRole, signalName: "accepted" }
- ]
- }
-
- function test_signals(data) {
- var control = createTemporaryObject(buttonBox, testCase)
- verify(control)
-
- control.standardButtons = data.standardButton
- compare(control.count, 1)
- var button = control.itemAt(0)
- verify(button)
- compare(button.DialogButtonBox.buttonRole, data.buttonRole)
-
- var clickedSpy = signalSpy.createObject(control, {target: control, signalName: "clicked"})
- verify(clickedSpy.valid)
- var roleSpy = signalSpy.createObject(control, {target: control, signalName: data.signalName})
- verify(roleSpy.valid)
-
- button.clicked()
- compare(clickedSpy.count, 1)
- compare(clickedSpy.signalArguments[0][0], button)
- compare(roleSpy.count, 1)
- }
-
- function test_buttonLayout_data() {
- return [
- { tag: "WinLayout", buttonLayout: DialogButtonBox.WinLayout, button1Role: DialogButtonBox.AcceptRole, button2Role: DialogButtonBox.RejectRole },
- { tag: "MacLayout", buttonLayout: DialogButtonBox.MacLayout, button1Role: DialogButtonBox.RejectRole, button2Role: DialogButtonBox.AcceptRole },
- { tag: "KdeLayout", buttonLayout: DialogButtonBox.KdeLayout, button1Role: DialogButtonBox.AcceptRole, button2Role: DialogButtonBox.RejectRole },
- { tag: "GnomeLayout", buttonLayout: DialogButtonBox.GnomeLayout, button1Role: DialogButtonBox.RejectRole, button2Role: DialogButtonBox.AcceptRole },
- { tag: "AndroidLayout", buttonLayout: DialogButtonBox.AndroidLayout, button1Role: DialogButtonBox.RejectRole, button2Role: DialogButtonBox.AcceptRole }
- ]
- }
-
- function test_buttonLayout(data) {
- var control = createTemporaryObject(buttonBox, testCase, {buttonLayout: data.buttonLayout, standardButtons: DialogButtonBox.Ok|DialogButtonBox.Cancel})
- verify(control)
-
- compare(control.count, 2)
-
- var button1 = control.itemAt(0)
- verify(button1)
- compare(button1.DialogButtonBox.buttonRole, data.button1Role)
-
- var button2 = control.itemAt(1)
- verify(button2)
- compare(button2.DialogButtonBox.buttonRole, data.button2Role)
- }
-
- function test_implicitSize_data() {
- return [
- { tag: "Ok", standardButtons: DialogButtonBox.Ok },
- { tag: "Yes|No", standardButtons: DialogButtonBox.Yes | DialogButtonBox.No }
- ]
- }
-
- // QTBUG-59719
- function test_implicitSize(data) {
- var control = createTemporaryObject(buttonBox, testCase, {standardButtons: data.standardButtons})
- verify(control)
-
- var listView = control.contentItem
- verify(listView && listView.hasOwnProperty("contentWidth"))
- waitForRendering(listView)
-
- var implicitContentWidth = control.leftPadding + control.rightPadding
- for (var i = 0; i < listView.contentItem.children.length; ++i) {
- var button = listView.contentItem.children[i]
- if (!button.hasOwnProperty("text"))
- continue
- implicitContentWidth += button.implicitWidth
- }
-
- verify(implicitContentWidth > control.leftPadding + control.rightPadding)
- verify(control.implicitWidth >= implicitContentWidth, qsTr("implicit width (%1) is less than content width (%2)").arg(control.implicitWidth).arg(implicitContentWidth))
- }
-
- Component {
- id: okCancelBox
- DialogButtonBox {
- Button {
- text: qsTr("OK")
- }
- Button {
- text: qsTr("Cancel")
- }
- }
- }
-
- function test_buttonSize() {
- var control = createTemporaryObject(okCancelBox, testCase)
- verify(control)
-
- var okButton = control.itemAt(0)
- verify(okButton)
- verify(okButton.width > 0)
-
- var cancelButton = control.itemAt(1)
- verify(cancelButton)
- verify(cancelButton.width > 0)
-
- compare(okButton.width + cancelButton.width, control.availableWidth - control.spacing)
- }
-
- function test_oneButtonInFixedWidthBox() {
- var control = createTemporaryObject(buttonBox, testCase,
- { width: 400, standardButtons: Dialog.Close })
- verify(control)
-
- var listView = control.contentItem
- waitForRendering(listView)
-
- var button = control.itemAt(0)
- verify(button)
-
- // The button should never go outside of the box.
- tryVerify(function() { return button.mapToItem(control, 0, 0).x >= 0 },
- 1000, "Expected left edge of button to be within left edge of DialogButtonBox (i.e. greater than or equal to 0)" +
- ", but it's " + button.mapToItem(control, 0, 0).x)
- tryVerify(function() { return button.mapToItem(control, 0, 0).x + button.width <= control.width },
- 1000, "Expected right edge of button to be within right edge of DialogButtonBox (i.e. less than or equal to " +
- control.width + "), but it's " + (button.mapToItem(control, 0, 0).x + button.width))
- }
-
- Component {
- id: dialogComponent
- // Based on the Default style, where a single button fills
- // half the dialog's width and is aligned to the right.
- Dialog {
- id: control
- standardButtons: Dialog.Ok
- visible: true
-
- footer: DialogButtonBox {
- id: box
- visible: count > 0
- alignment: count === 1 ? Qt.AlignRight : undefined
-
- implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
- (count === 1 ? implicitContentWidth * 2 : implicitContentWidth) + leftPadding + rightPadding)
- implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,
- implicitContentHeight + topPadding + bottomPadding)
- contentWidth: contentItem.contentWidth
-
- delegate: Button {
- width: box.count === 1 ? box.availableWidth / 2 : undefined
- }
- }
- }
- }
-
- // QTBUG-73860
- function test_oneButtonAlignedRightInImplicitWidthBox() {
- var dialog = createTemporaryObject(dialogComponent, testCase)
- verify(dialog)
-
- var box = dialog.footer
- var listView = box.contentItem
- waitForRendering(listView)
-
- var button = box.itemAt(0)
- verify(button)
-
- // The button should never go outside of the box.
- tryVerify(function() { return button.mapToItem(box, 0, 0).x >= 0 },
- 1000, "Expected left edge of button to be within left edge of DialogButtonBox (i.e. greater than or equal to 0)" +
- ", but it's " + button.mapToItem(box, 0, 0).x)
- tryVerify(function() { return button.mapToItem(box, 0, 0).x + button.width <= box.width },
- 1000, "Expected right edge of button to be within right edge of DialogButtonBox (i.e. less than or equal to " +
- box.width + "), but it's " + (button.mapToItem(box, 0, 0).x + button.width))
- compare(box.width, dialog.width)
- // There's a single button and we align it to the right.
- compare(box.contentItem.width, button.width)
- compare(box.contentItem.x, box.width - box.rightPadding - box.contentItem.width)
- }
-
- Component {
- id: customButtonBox
-
- DialogButtonBox {
- objectName: "customButtonBox"
- alignment: Qt.AlignRight
-
- property alias okButton: okButton
-
- Button {
- id: okButton
- text: "OK"
-
- DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
- }
- }
- }
-
- Component {
- id: customButtonBoxTwoButtons
-
- DialogButtonBox {
- objectName: "customButtonBoxTwoButtons"
- alignment: Qt.AlignRight
-
- property alias okButton: okButton
-
- Button {
- id: okButton
- text: "OK"
-
- DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
- }
- Button {
- text: "Cancel"
-
- DialogButtonBox.buttonRole: DialogButtonBox.RejectRole
- }
- }
- }
-
- function test_changeCustomButtonText_data() {
- return [
- { tag: "oneButton", component: customButtonBox },
- { tag: "twoButtons", component: customButtonBoxTwoButtons },
- ]
- }
-
- // QTBUG-72886
- function test_changeCustomButtonText(data) {
- var control = createTemporaryObject(customButtonBox, testCase, {})
- verify(control)
-
- var listView = control.contentItem
- waitForRendering(listView)
-
- var button = control.okButton
- verify(button)
- button.text = "some longer text";
-
- // The button should never go outside of the box.
- tryVerify(function() { return button.mapToItem(control, 0, 0).x >= 0 },
- 1000, "Expected left edge of button to be within left edge of DialogButtonBox (i.e. greater than or equal to 0)" +
- ", but it's " + button.mapToItem(control, 0, 0).x)
- tryVerify(function() { return button.mapToItem(control, 0, 0).x + button.width <= control.width },
- 1000, "Expected right edge of button to be within right edge of DialogButtonBox (i.e. less than or equal to " +
- control.width + "), but it's " + (button.mapToItem(control, 0, 0).x + button.width))
- }
-
- Component {
- id: noRolesDialog
-
- Dialog {
- footer: DialogButtonBox {
- Button { text: "A" }
- Button { text: "B" }
- Button { text: "C" }
- }
- }
- }
-
- function test_orderWithNoRoles() {
- for (var i = 0; i < 10; ++i) {
- var control = createTemporaryObject(noRolesDialog, testCase)
- verify(control)
-
- control.open()
- tryCompare(control, "opened", true)
- var footer = control.footer
- verify(footer)
- waitForRendering(footer)
- compare(footer.itemAt(0).text, "A")
- compare(footer.itemAt(1).text, "B")
- compare(footer.itemAt(2).text, "C")
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_frame.qml b/tests/auto/controls/data/tst_frame.qml
deleted file mode 100644
index a5236b71..00000000
--- a/tests/auto/controls/data/tst_frame.qml
+++ /dev/null
@@ -1,148 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Frame"
-
- Component {
- id: frame
- Frame { }
- }
-
- Component {
- id: oneChildFrame
- Frame {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- Component {
- id: twoChildrenFrame
- Frame {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- Item {
- implicitWidth: 200
- implicitHeight: 60
- }
- }
- }
-
- Component {
- id: contentFrame
- Frame {
- contentItem: Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- function test_empty() {
- var control = createTemporaryObject(frame, testCase)
- verify(control)
-
- verify(control.contentItem)
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- }
-
- function test_oneChild() {
- var control = createTemporaryObject(oneChildFrame, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- verify(control.implicitWidth > 100)
- verify(control.implicitHeight > 30)
- }
-
- function test_twoChildren() {
- var control = createTemporaryObject(twoChildrenFrame, testCase)
- verify(control)
-
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- verify(control.implicitWidth > 0)
- verify(control.implicitHeight > 0)
- }
-
- function test_contentItem() {
- var control = createTemporaryObject(contentFrame, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- verify(control.implicitWidth > 100)
- verify(control.implicitHeight > 30)
- }
-}
diff --git a/tests/auto/controls/data/tst_groupbox.qml b/tests/auto/controls/data/tst_groupbox.qml
deleted file mode 100644
index a4f1b5f3..00000000
--- a/tests/auto/controls/data/tst_groupbox.qml
+++ /dev/null
@@ -1,148 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "GroupBox"
-
- Component {
- id: groupBox
- GroupBox { }
- }
-
- Component {
- id: oneChildBox
- GroupBox {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- Component {
- id: twoChildrenBox
- GroupBox {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- Item {
- implicitWidth: 200
- implicitHeight: 60
- }
- }
- }
-
- Component {
- id: contentBox
- GroupBox {
- contentItem: Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- function test_empty() {
- var control = createTemporaryObject(groupBox, testCase)
- verify(control)
-
- verify(control.contentItem)
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- }
-
- function test_oneChild() {
- var control = createTemporaryObject(oneChildBox, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- verify(control.implicitWidth > 100)
- verify(control.implicitHeight > 30)
- }
-
- function test_twoChildren() {
- var control = createTemporaryObject(twoChildrenBox, testCase)
- verify(control)
-
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- verify(control.implicitWidth > 0)
- verify(control.implicitHeight > 0)
- }
-
- function test_contentItem() {
- var control = createTemporaryObject(contentBox, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- verify(control.implicitWidth > 100)
- verify(control.implicitHeight > 30)
- }
-}
diff --git a/tests/auto/controls/data/tst_itemdelegate.qml b/tests/auto/controls/data/tst_itemdelegate.qml
deleted file mode 100644
index 1c236361..00000000
--- a/tests/auto/controls/data/tst_itemdelegate.qml
+++ /dev/null
@@ -1,162 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "ItemDelegate"
-
- Component {
- id: itemDelegate
- ItemDelegate { }
- }
-
- function test_baseline() {
- var control = createTemporaryObject(itemDelegate, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- function test_highlighted() {
- var control = createTemporaryObject(itemDelegate, testCase)
- verify(control)
- verify(!control.highlighted)
-
- control.highlighted = true
- verify(control.highlighted)
- }
-
- function test_spacing() {
- var control = createTemporaryObject(itemDelegate, testCase, { text: "Some long, long, long text" })
- verify(control)
- verify(control.contentItem.implicitWidth + control.leftPadding + control.rightPadding > control.background.implicitWidth)
-
- var textLabel = findChild(control.contentItem, "label")
- verify(textLabel)
-
- // The implicitWidth of the IconLabel that all buttons use as their contentItem
- // should be equal to the implicitWidth of the Text while no icon is set.
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // That means that spacing shouldn't affect it.
- control.spacing += 100
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // The implicitWidth of the ItemDelegate itself should, therefore, also never include spacing while no icon is set.
- compare(control.implicitWidth, textLabel.implicitWidth + control.leftPadding + control.rightPadding)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: ItemDelegate.IconOnly },
- { "tag": "TextOnly", display: ItemDelegate.TextOnly },
- { "tag": "TextUnderIcon", display: ItemDelegate.TextUnderIcon },
- { "tag": "TextBesideIcon", display: ItemDelegate.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: ItemDelegate.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: ItemDelegate.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: ItemDelegate.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: ItemDelegate.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(itemDelegate, testCase, {
- text: "ItemDelegate",
- display: data.display,
- width: 400,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- switch (control.display) {
- case ItemDelegate.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case ItemDelegate.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, control.mirrored ? control.availableWidth - textLabel.width : 0)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case ItemDelegate.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case ItemDelegate.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_label.qml b/tests/auto/controls/data/tst_label.qml
deleted file mode 100644
index 8384e932..00000000
--- a/tests/auto/controls/data/tst_label.qml
+++ /dev/null
@@ -1,294 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Label"
-
- Component {
- id: label
- Label { }
- }
-
- Component {
- id: backgroundLabel
- Label {
- background: Rectangle { }
- }
- }
-
- Component {
- id: rectangle
- Rectangle { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_creation() {
- var control = createTemporaryObject(label, testCase)
- verify(control)
- }
-
- function test_font_explicit_attributes_data() {
- return [
- {tag: "bold", value: true},
- {tag: "capitalization", value: Font.Capitalize},
- {tag: "family", value: "Courier"},
- {tag: "italic", value: true},
- {tag: "strikeout", value: true},
- {tag: "underline", value: true},
- {tag: "weight", value: Font.Black},
- {tag: "wordSpacing", value: 55}
- ]
- }
-
- function test_font_explicit_attributes(data) {
- var control = createTemporaryObject(label, testCase)
- verify(control)
-
- var child = label.createObject(control)
- verify(child)
-
- var controlSpy = signalSpy.createObject(control, {target: control, signalName: "fontChanged"})
- verify(controlSpy.valid)
-
- var childSpy = signalSpy.createObject(child, {target: child, signalName: "fontChanged"})
- verify(childSpy.valid)
-
- var defaultValue = control.font[data.tag]
- child.font[data.tag] = defaultValue
-
- compare(child.font[data.tag], defaultValue)
- compare(childSpy.count, 0)
-
- control.font[data.tag] = data.value
-
- compare(control.font[data.tag], data.value)
- compare(controlSpy.count, 1)
-
- compare(child.font[data.tag], defaultValue)
- compare(childSpy.count, 0)
- }
-
- function test_background() {
- var control = createTemporaryObject(backgroundLabel, testCase, {text: "Label"})
- verify(control)
-
- compare(control.background.width, control.width)
- compare(control.background.height, control.height)
-
- control.background = rectangle.createObject(control)
- compare(control.background.width, control.width)
- compare(control.background.height, control.height)
-
- // change implicit size (QTBUG-66455)
- control.background.implicitWidth = 160
- control.background.implicitHeight = 120
- compare(control.background.width, control.width)
- compare(control.background.height, control.height)
- }
-
- function test_inset() {
- var control = createTemporaryObject(label, testCase, {background: rectangle.createObject(control)})
- verify(control)
-
- var topInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "topInsetChanged"})
- verify(topInsetSpy.valid)
-
- var leftInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "leftInsetChanged"})
- verify(leftInsetSpy.valid)
-
- var rightInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "rightInsetChanged"})
- verify(rightInsetSpy.valid)
-
- var bottomInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "bottomInsetChanged"})
- verify(bottomInsetSpy.valid)
-
- var topInsetChanges = 0
- var leftInsetChanges = 0
- var rightInsetChanges = 0
- var bottomInsetChanges = 0
-
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
-
- control.width = 100
- control.height = 100
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 100)
-
- control.topInset = 10
- compare(control.topInset, 10)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, ++topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 10)
- compare(control.background.width, 100)
- compare(control.background.height, 90)
-
- control.leftInset = 20
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, ++leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 80)
- compare(control.background.height, 90)
-
- control.rightInset = 30
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, ++rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 50)
- compare(control.background.height, 90)
-
- control.bottomInset = 40
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, ++bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 50)
- compare(control.background.height, 50)
-
- control.topInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, ++topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 0)
- compare(control.background.width, 50)
- compare(control.background.height, 60)
-
- control.leftInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, ++leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 70)
- compare(control.background.height, 60)
-
- control.rightInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, ++rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 60)
-
- control.bottomInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, ++bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 100)
- }
-}
diff --git a/tests/auto/controls/data/tst_menuitem.qml b/tests/auto/controls/data/tst_menuitem.qml
deleted file mode 100644
index 27c23ae5..00000000
--- a/tests/auto/controls/data/tst_menuitem.qml
+++ /dev/null
@@ -1,193 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "MenuItem"
-
- Component {
- id: menuItem
- MenuItem { }
- }
-
- Component {
- id: menu
- Menu { }
- }
-
- function test_baseline() {
- var control = createTemporaryObject(menuItem, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- function test_checkable() {
- var control = createTemporaryObject(menuItem, testCase)
- verify(control)
- verify(control.hasOwnProperty("checkable"))
- verify(!control.checkable)
-
- mouseClick(control)
- verify(!control.checked)
-
- control.checkable = true
- mouseClick(control)
- verify(control.checked)
-
- mouseClick(control)
- verify(!control.checked)
- }
-
- function test_highlighted() {
- var control = createTemporaryObject(menuItem, testCase)
- verify(control)
- verify(!control.highlighted)
-
- control.highlighted = true
- verify(control.highlighted)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: MenuItem.IconOnly },
- { "tag": "TextOnly", display: MenuItem.TextOnly },
- { "tag": "TextUnderIcon", display: MenuItem.TextUnderIcon },
- { "tag": "TextBesideIcon", display: MenuItem.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: MenuItem.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: MenuItem.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: MenuItem.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: MenuItem.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(menuItem, testCase, {
- text: "MenuItem",
- display: data.display,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var padding = data.mirrored ? control.contentItem.rightPadding : control.contentItem.leftPadding
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- switch (control.display) {
- case MenuItem.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, control.mirrored ? control.availableWidth - iconImage.width - padding : padding)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case MenuItem.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, control.mirrored ? control.availableWidth - textLabel.width - padding : padding)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case MenuItem.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, control.mirrored ? control.availableWidth - iconImage.width - (textLabel.width - iconImage.width) / 2 - padding : (textLabel.width - iconImage.width) / 2 + padding)
- compare(textLabel.x, control.mirrored ? control.availableWidth - textLabel.width - padding : padding)
- verify(iconImage.y < textLabel.y)
- break;
- case MenuItem.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-
- function test_menu() {
- var control = createTemporaryObject(menu, testCase)
- verify(control)
-
- var item1 = createTemporaryObject(menuItem, testCase)
- verify(item1)
- compare(item1.menu, null)
-
- var item2 = createTemporaryObject(menuItem, testCase)
- verify(item2)
- compare(item2.menu, null)
-
- control.addItem(item1)
- compare(item1.menu, control)
- compare(item2.menu, null)
-
- control.insertItem(1, item2)
- compare(item1.menu, control)
- compare(item2.menu, control)
-
- control.removeItem(1)
- compare(item1.menu, control)
- compare(item2.menu, null)
-
- control.removeItem(0)
- compare(item1.menu, null)
- compare(item2.menu, null)
- }
-}
diff --git a/tests/auto/controls/data/tst_page.qml b/tests/auto/controls/data/tst_page.qml
deleted file mode 100644
index 252c6ebf..00000000
--- a/tests/auto/controls/data/tst_page.qml
+++ /dev/null
@@ -1,315 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Page"
-
- Component {
- id: page
- Page { }
- }
-
- Component {
- id: oneChildPage
- Page {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- Component {
- id: twoChildrenPage
- Page {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- Item {
- implicitWidth: 200
- implicitHeight: 60
- }
- }
- }
-
- Component {
- id: contentPage
- Page {
- contentItem: Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- Component {
- id: headerFooterPage
- Page {
- header: ToolBar { }
- footer: ToolBar { }
- contentItem: Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- Component {
- id: toolBar
- ToolBar { }
- }
-
- function test_defaults() {
- var control = createTemporaryObject(page, testCase)
- verify(control)
-
- verify(control.contentItem)
- compare(control.header, null)
- compare(control.footer, null)
- }
-
- function test_empty() {
- var control = createTemporaryObject(page, testCase)
- verify(control)
-
- verify(control.contentItem)
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- }
-
- function test_oneChild() {
- var control = createTemporaryObject(oneChildPage, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- compare(control.implicitWidth, 100 + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, 30 + control.topPadding + control.bottomPadding)
- }
-
- function test_twoChildren() {
- var control = createTemporaryObject(twoChildrenPage, testCase)
- verify(control)
-
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- compare(control.implicitWidth, Math.max(control.leftPadding + control.rightPadding,
- control.background ? control.background.implicitWidth : 0))
- compare(control.implicitHeight, Math.max(control.topPadding + control.bottomPadding,
- control.background ? control.background.implicitHeight : 0))
- }
-
- function test_contentItem() {
- var control = createTemporaryObject(contentPage, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- compare(control.implicitWidth, 100 + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, 30 + control.topPadding + control.bottomPadding)
- }
-
- function test_layout() {
- var control = createTemporaryObject(page, testCase, {width: 100, height: 100})
- verify(control)
-
- compare(control.width, 100)
- compare(control.height, 100)
- compare(control.contentItem.width, control.width)
- compare(control.contentItem.height, control.height)
-
- control.header = toolBar.createObject(control)
- compare(control.header.width, control.width)
- verify(control.header.height > 0)
- compare(control.contentItem.width, control.width)
- compare(control.contentItem.height, control.height - control.header.height)
-
- control.footer = toolBar.createObject(control)
- compare(control.footer.width, control.width)
- verify(control.footer.height > 0)
- compare(control.contentItem.width, control.width)
- compare(control.contentItem.height, control.height - control.header.height - control.footer.height)
-
- control.topPadding = 9
- control.leftPadding = 2
- control.rightPadding = 6
- control.bottomPadding = 7
-
- compare(control.header.x, 0)
- compare(control.header.y, 0)
- compare(control.header.width, control.width)
- verify(control.header.height > 0)
-
- compare(control.footer.x, 0)
- compare(control.footer.y, control.height - control.footer.height)
- compare(control.footer.width, control.width)
- verify(control.footer.height > 0)
-
- compare(control.contentItem.x, control.leftPadding)
- compare(control.contentItem.y, control.topPadding + control.header.height)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight - control.header.height - control.footer.height)
-
- control.header.visible = false
- compare(control.contentItem.x, control.leftPadding)
- compare(control.contentItem.y, control.topPadding)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight - control.footer.height)
-
- control.footer.visible = false
- compare(control.contentItem.x, control.leftPadding)
- compare(control.contentItem.y, control.topPadding)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight)
-
- control.contentItem.implicitWidth = 50
- control.contentItem.implicitHeight = 60
- compare(control.implicitWidth, control.contentItem.implicitWidth + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentItem.implicitHeight + control.topPadding + control.bottomPadding)
-
- control.header.visible = true
- compare(control.implicitHeight, control.contentItem.implicitHeight + control.topPadding + control.bottomPadding
- + control.header.implicitHeight + control.spacing)
-
- control.footer.visible = true
- compare(control.implicitHeight, control.contentItem.implicitHeight + control.topPadding + control.bottomPadding
- + control.header.implicitHeight + control.footer.implicitHeight + 2 * control.spacing)
-
- control.header.implicitWidth = 150
- compare(control.implicitWidth, control.header.implicitWidth)
-
- control.footer.implicitWidth = 160
- compare(control.implicitWidth, control.footer.implicitWidth)
-
- control.contentItem.implicitWidth = 170
- compare(control.implicitWidth, control.contentItem.implicitWidth + control.leftPadding + control.rightPadding)
- }
-
- function test_spacing_data() {
- return [
- { tag: "content", header: false, content: true, footer: false },
- { tag: "header,content", header: true, content: true, footer: false },
- { tag: "content,footer", header: false, content: true, footer: true },
- { tag: "header,content,footer", header: true, content: true, footer: true },
- { tag: "header,footer", header: true, content: false, footer: true },
- { tag: "header", header: true, content: false, footer: false },
- { tag: "footer", header: false, content: false, footer: true },
- ]
- }
-
- function test_spacing(data) {
- var control = createTemporaryObject(page, testCase, {spacing: 20, width: 100, height: 100})
- verify(control)
-
- control.contentItem.visible = data.content
- control.header = toolBar.createObject(control.contentItem, {visible: data.header})
- control.footer = toolBar.createObject(control.contentItem, {visible: data.footer})
-
- compare(control.header.x, 0)
- compare(control.header.y, 0)
- compare(control.header.width, control.width)
- verify(control.header.height > 0)
-
- compare(control.footer.x, 0)
- compare(control.footer.y, control.height - control.footer.height)
- compare(control.footer.width, control.width)
- verify(control.footer.height > 0)
-
- compare(control.contentItem.x, control.leftPadding)
- compare(control.contentItem.y, control.topPadding + (data.header ? control.header.height + control.spacing : 0))
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight
- - (data.header ? control.header.height + control.spacing : 0)
- - (data.footer ? control.footer.height + control.spacing : 0))
- }
-
- function test_headerFooter() {
- var control = createTemporaryObject(headerFooterPage, testCase, {width: 100, height: 100})
- verify(control)
-
- compare(control.width, 100)
- compare(control.height, 100)
-
- verify(control.header)
- compare(control.header.x, 0)
- compare(control.header.y, 0)
- compare(control.header.width, control.width)
- verify(control.header.height > 0)
-
- verify(control.footer)
- compare(control.footer.x, 0)
- compare(control.footer.y, control.height - control.footer.height)
- compare(control.footer.width, control.width)
- verify(control.footer.height > 0)
-
- compare(control.contentItem.x, 0)
- compare(control.contentItem.y, control.header.height)
- compare(control.contentItem.width, control.width)
- compare(control.contentItem.height, control.height - control.header.height - control.footer.height)
- }
-}
diff --git a/tests/auto/controls/data/tst_pageindicator.qml b/tests/auto/controls/data/tst_pageindicator.qml
deleted file mode 100644
index 0f68b5d8..00000000
--- a/tests/auto/controls/data/tst_pageindicator.qml
+++ /dev/null
@@ -1,183 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "PageIndicator"
-
- Component {
- id: pageIndicator
- PageIndicator { }
- }
-
- Component {
- id: mouseArea
- MouseArea { }
- }
-
- function test_count() {
- var control = createTemporaryObject(pageIndicator, testCase)
- verify(control)
-
- compare(control.count, 0)
- control.count = 3
- compare(control.count, 3)
- }
-
- function test_currentIndex() {
- var control = createTemporaryObject(pageIndicator, testCase)
- verify(control)
-
- compare(control.currentIndex, 0)
- control.currentIndex = 5
- compare(control.currentIndex, 5)
- }
-
- function test_interactive_data() {
- return [
- { tag: "mouse", touch: false },
- { tag: "touch", touch: true }
- ]
- }
-
- function test_interactive(data) {
- var control = createTemporaryObject(pageIndicator, testCase, {count: 5, spacing: 10, topPadding: 10, leftPadding: 10, rightPadding: 10, bottomPadding: 10})
- verify(control)
-
- verify(!control.interactive)
- compare(control.currentIndex, 0)
-
- var touch = touchEvent(control)
-
- if (data.touch)
- touch.press(0, control).commit().release(0, control).commit()
- else
- mouseClick(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.currentIndex, 0)
-
- control.interactive = true
- verify(control.interactive)
-
- if (data.touch)
- touch.press(0, control).commit().release(0, control).commit()
- else
- mouseClick(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.currentIndex, 2)
-
- // test also clicking outside delegates => the nearest should be selected
- for (var i = 0; i < control.count; ++i) {
- var child = control.contentItem.children[i]
-
- var points = [
- Qt.point(child.width / 2, -2), // top
- Qt.point(-2, child.height / 2), // left
- Qt.point(child.width + 2, child.height / 2), // right
- Qt.point(child.width / 2, child.height + 2), // bottom
-
- Qt.point(-2, -2), // top-left
- Qt.point(child.width + 2, -2), // top-right
- Qt.point(-2, child.height + 2), // bottom-left
- Qt.point(child.width + 2, child.height + 2), // bottom-right
- ]
-
- for (var j = 0; j < points.length; ++j) {
- control.currentIndex = -1
- compare(control.currentIndex, -1)
-
- var point = points[j]
- var pos = control.mapFromItem(child, x, y)
- if (data.touch)
- touch.press(0, control, pos.x, pos.y).commit().release(0, control, pos.x, pos.y).commit()
- else
- mouseClick(control, pos.x, pos.y, Qt.LeftButton)
- compare(control.currentIndex, i)
- }
- }
- }
-
- function test_mouseArea_data() {
- return [
- { tag: "interactive", interactive: true },
- { tag: "non-interactive", interactive: false }
- ]
- }
-
- // QTBUG-61785
- function test_mouseArea(data) {
- var ma = createTemporaryObject(mouseArea, testCase, {width: testCase.width, height: testCase.height})
- verify(ma)
-
- var control = pageIndicator.createObject(ma, {count: 5, interactive: data.interactive, width: testCase.width, height: testCase.height})
- verify(control)
-
- compare(control.interactive, data.interactive)
-
- mousePress(control)
- compare(ma.pressed, !data.interactive)
-
- mouseRelease(control)
- verify(!ma.pressed)
-
- var touch = touchEvent(control)
- touch.press(0, control).commit()
- compare(ma.pressed, !data.interactive)
-
- touch.release(0, control).commit()
- verify(!ma.pressed)
- }
-}
diff --git a/tests/auto/controls/data/tst_pane.qml b/tests/auto/controls/data/tst_pane.qml
deleted file mode 100644
index 4006474b..00000000
--- a/tests/auto/controls/data/tst_pane.qml
+++ /dev/null
@@ -1,195 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Pane"
-
- Component {
- id: pane
- Pane { }
- }
-
- Component {
- id: oneChildPane
- Pane {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- Component {
- id: twoChildrenPane
- Pane {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- Item {
- implicitWidth: 200
- implicitHeight: 60
- }
- }
- }
-
- Component {
- id: contentPane
- Pane {
- contentItem: Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- Component {
- id: pressPane
- MouseArea {
- width: 200
- height: 200
- property int pressCount
- onPressed: ++pressCount
- Pane {
- anchors.fill: parent
- }
- }
- }
-
- function test_empty() {
- var control = createTemporaryObject(pane, testCase)
- verify(control)
-
- verify(control.contentItem)
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- }
-
- function test_oneChild() {
- var control = createTemporaryObject(oneChildPane, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- verify(control.implicitWidth > 100)
- verify(control.implicitHeight > 30)
-
- compare(control.contentChildren.length, 1)
- control.contentChildren[0].implicitWidth = 200
- control.contentChildren[0].implicitHeight = 40
-
- compare(control.contentWidth, 200)
- compare(control.contentHeight, 40)
- compare(control.implicitContentWidth, 200)
- compare(control.implicitContentHeight, 40)
- verify(control.implicitWidth > 200)
- verify(control.implicitHeight > 40)
- }
-
- function test_twoChildren() {
- var control = createTemporaryObject(twoChildrenPane, testCase)
- verify(control)
-
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- verify(control.implicitWidth > 0)
- verify(control.implicitHeight > 0)
- }
-
- function test_contentItem() {
- var control = createTemporaryObject(contentPane, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- verify(control.implicitWidth > 100)
- verify(control.implicitHeight > 30)
- }
-
- function test_implicitContentItem() {
- var control = createTemporaryObject(pane, testCase, {width: 100, height: 100})
- verify(control)
-
- compare(control.width, 100)
- compare(control.height, 100)
- compare(control.contentItem.width, control.availableWidth)
- compare(control.contentItem.height, control.availableHeight)
- }
-
- function test_press() {
- var control = createTemporaryObject(pressPane, testCase)
- verify(control)
-
- compare(control.pressCount, 0)
- mouseClick(control)
- compare(control.pressCount, 0)
-
- control.children[0].enabled = false
- mouseClick(control)
- compare(control.pressCount, 1)
- }
-}
diff --git a/tests/auto/controls/data/tst_popup.qml b/tests/auto/controls/data/tst_popup.qml
deleted file mode 100644
index 27043d1c..00000000
--- a/tests/auto/controls/data/tst_popup.qml
+++ /dev/null
@@ -1,1390 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Popup"
-
- ApplicationWindow {
- id: applicationWindow
- width: 480
- height: 360
- }
-
- Component {
- id: popupTemplate
- T.Popup { }
- }
-
- Component {
- id: popupControl
- Popup { }
- }
-
- Component {
- id: rect
- Rectangle { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_padding() {
- var control = createTemporaryObject(popupTemplate, testCase)
- verify(control)
-
- var paddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "paddingChanged"})
- verify(paddingSpy.valid)
-
- var topPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "topPaddingChanged"})
- verify(topPaddingSpy.valid)
-
- var leftPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "leftPaddingChanged"})
- verify(leftPaddingSpy.valid)
-
- var rightPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "rightPaddingChanged"})
- verify(rightPaddingSpy.valid)
-
- var bottomPaddingSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "bottomPaddingChanged"})
- verify(bottomPaddingSpy.valid)
-
- var paddingChanges = 0
- var topPaddingChanges = 0
- var leftPaddingChanges = 0
- var rightPaddingChanges = 0
- var bottomPaddingChanges = 0
-
- compare(control.padding, 0)
- compare(control.topPadding, 0)
- compare(control.leftPadding, 0)
- compare(control.rightPadding, 0)
- compare(control.bottomPadding, 0)
- compare(control.availableWidth, 0)
- compare(control.availableHeight, 0)
-
- control.width = 100
- control.height = 100
-
- control.padding = 10
- compare(control.padding, 10)
- compare(control.topPadding, 10)
- compare(control.leftPadding, 10)
- compare(control.rightPadding, 10)
- compare(control.bottomPadding, 10)
- compare(paddingSpy.count, ++paddingChanges)
- compare(topPaddingSpy.count, ++topPaddingChanges)
- compare(leftPaddingSpy.count, ++leftPaddingChanges)
- compare(rightPaddingSpy.count, ++rightPaddingChanges)
- compare(bottomPaddingSpy.count, ++bottomPaddingChanges)
-
- control.topPadding = 20
- compare(control.padding, 10)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 10)
- compare(control.rightPadding, 10)
- compare(control.bottomPadding, 10)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, ++topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
-
- control.leftPadding = 30
- compare(control.padding, 10)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 10)
- compare(control.bottomPadding, 10)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, ++leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
-
- control.rightPadding = 40
- compare(control.padding, 10)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 10)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, ++rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
-
- control.bottomPadding = 50
- compare(control.padding, 10)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 50)
- compare(paddingSpy.count, paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, ++bottomPaddingChanges)
-
- control.padding = 60
- compare(control.padding, 60)
- compare(control.topPadding, 20)
- compare(control.leftPadding, 30)
- compare(control.rightPadding, 40)
- compare(control.bottomPadding, 50)
- compare(paddingSpy.count, ++paddingChanges)
- compare(topPaddingSpy.count, topPaddingChanges)
- compare(leftPaddingSpy.count, leftPaddingChanges)
- compare(rightPaddingSpy.count, rightPaddingChanges)
- compare(bottomPaddingSpy.count, bottomPaddingChanges)
- }
-
- function test_availableSize() {
- var control = createTemporaryObject(popupTemplate, testCase)
- verify(control)
-
- var availableWidthSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "availableWidthChanged"})
- verify(availableWidthSpy.valid)
-
- var availableHeightSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "availableHeightChanged"})
- verify(availableHeightSpy.valid)
-
- var availableWidthChanges = 0
- var availableHeightChanges = 0
-
- control.width = 100
- compare(control.availableWidth, 100)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.height = 100
- compare(control.availableHeight, 100)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
-
- control.padding = 10
- compare(control.availableWidth, 80)
- compare(control.availableHeight, 80)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
-
- control.topPadding = 20
- compare(control.availableWidth, 80)
- compare(control.availableHeight, 70)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
-
- control.leftPadding = 30
- compare(control.availableWidth, 60)
- compare(control.availableHeight, 70)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.rightPadding = 40
- compare(control.availableWidth, 30)
- compare(control.availableHeight, 70)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.bottomPadding = 50
- compare(control.availableWidth, 30)
- compare(control.availableHeight, 30)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
-
- control.padding = 60
- compare(control.availableWidth, 30)
- compare(control.availableHeight, 30)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.width = 0
- compare(control.availableWidth, 0)
- compare(availableWidthSpy.count, ++availableWidthChanges)
- compare(availableHeightSpy.count, availableHeightChanges)
-
- control.height = 0
- compare(control.availableHeight, 0)
- compare(availableWidthSpy.count, availableWidthChanges)
- compare(availableHeightSpy.count, ++availableHeightChanges)
- }
-
- function test_position() {
- var control = createTemporaryObject(popupControl, testCase, {visible: true, leftMargin: 10, topMargin: 20, width: 100, height: 100})
- verify(control)
- verify(control.visible)
-
- var xSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "xChanged"})
- verify(xSpy.valid)
-
- var ySpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "yChanged"})
- verify(ySpy.valid)
-
- // moving outside margins does not trigger change notifiers
- control.x = -100
- compare(control.x, 10)
- compare(control.y, 20)
- compare(xSpy.count, 0)
- compare(ySpy.count, 0)
-
- control.y = -200
- compare(control.x, 10)
- compare(control.y, 20)
- compare(xSpy.count, 0)
- compare(ySpy.count, 0)
-
- // moving within margins triggers change notifiers
- control.x = 30
- compare(control.x, 30)
- compare(control.y, 20)
- compare(xSpy.count, 1)
- compare(ySpy.count, 0)
-
- control.y = 40
- compare(control.x, 30)
- compare(control.y, 40)
- compare(xSpy.count, 1)
- compare(ySpy.count, 1)
-
- // re-parent and reset the position
- control.parent = createTemporaryObject(rect, testCase, {color: "red", width: 100, height: 100})
- control.x = 0
- control.y = 0
- compare(xSpy.count, 2)
- compare(ySpy.count, 2)
-
- // moving parent outside margins triggers change notifiers
- control.parent.x = -50
- compare(control.x, 50 + control.leftMargin)
- compare(xSpy.count, 3)
- compare(ySpy.count, 2)
-
- control.parent.y = -60
- compare(control.y, 60 + control.topMargin)
- compare(xSpy.count, 3)
- compare(ySpy.count, 3)
- }
-
- function test_resetSize() {
- var control = createTemporaryObject(popupControl, testCase, {visible: true, margins: 0})
- verify(control)
-
- control.width = control.implicitWidth = testCase.width + 10
- control.height = control.implicitHeight = testCase.height + 10
-
- compare(control.width, testCase.width + 10)
- compare(control.height, testCase.height + 10)
-
- control.width = undefined
- control.height = undefined
- compare(control.width, testCase.width)
- compare(control.height, testCase.height)
- }
-
- function test_negativeMargins() {
- var control = createTemporaryObject(popupControl, testCase, {implicitWidth: testCase.width, implicitHeight: testCase.height})
- verify(control)
-
- control.open()
- verify(control.visible)
-
- compare(control.x, 0)
- compare(control.y, 0)
-
- compare(control.margins, -1)
- compare(control.topMargin, -1)
- compare(control.leftMargin, -1)
- compare(control.rightMargin, -1)
- compare(control.bottomMargin, -1)
-
- control.x = -10
- control.y = -10
- compare(control.x, 0)
- compare(control.y, 0)
- }
-
- function test_margins() {
- var control = createTemporaryObject(popupTemplate, testCase, {width: 100, height: 100})
- verify(control)
-
- control.open()
- verify(control.visible)
-
- control.margins = 10
- compare(control.margins, 10)
- compare(control.topMargin, 10)
- compare(control.leftMargin, 10)
- compare(control.rightMargin, 10)
- compare(control.bottomMargin, 10)
- compare(control.contentItem.parent.x, 10)
- compare(control.contentItem.parent.y, 10)
-
- control.topMargin = 20
- compare(control.margins, 10)
- compare(control.topMargin, 20)
- compare(control.leftMargin, 10)
- compare(control.rightMargin, 10)
- compare(control.bottomMargin, 10)
- compare(control.contentItem.parent.x, 10)
- compare(control.contentItem.parent.y, 20)
-
- control.leftMargin = 20
- compare(control.margins, 10)
- compare(control.topMargin, 20)
- compare(control.leftMargin, 20)
- compare(control.rightMargin, 10)
- compare(control.bottomMargin, 10)
- compare(control.contentItem.parent.x, 20)
- compare(control.contentItem.parent.y, 20)
-
- control.x = testCase.width
- control.y = testCase.height
- compare(control.contentItem.parent.x, testCase.width - control.width - 10)
- compare(control.contentItem.parent.y, testCase.height - control.height - 10)
-
- control.rightMargin = 20
- compare(control.margins, 10)
- compare(control.topMargin, 20)
- compare(control.leftMargin, 20)
- compare(control.rightMargin, 20)
- compare(control.bottomMargin, 10)
- compare(control.contentItem.parent.x, testCase.width - control.width - 20)
- compare(control.contentItem.parent.y, testCase.height - control.height - 10)
-
- control.bottomMargin = 20
- compare(control.margins, 10)
- compare(control.topMargin, 20)
- compare(control.leftMargin, 20)
- compare(control.rightMargin, 20)
- compare(control.bottomMargin, 20)
- compare(control.contentItem.parent.x, testCase.width - control.width - 20)
- compare(control.contentItem.parent.y, testCase.height - control.height - 20)
-
- control.margins = undefined
- compare(control.margins, -1)
-
- control.bottomMargin = undefined
- compare(control.bottomMargin, -1)
- compare(control.contentItem.parent.x, testCase.width - control.width - 20)
- compare(control.contentItem.parent.y, testCase.height)
-
- control.rightMargin = undefined
- compare(control.rightMargin, -1)
- compare(control.contentItem.parent.x, testCase.width)
- compare(control.contentItem.parent.y, testCase.height)
-
- control.x = -testCase.width
- control.y = -testCase.height
- compare(control.contentItem.parent.x, 20)
- compare(control.contentItem.parent.y, 20)
-
- control.topMargin = undefined
- compare(control.topMargin, -1)
- compare(control.contentItem.parent.x, 20)
- compare(control.contentItem.parent.y, -testCase.height)
-
- control.leftMargin = undefined
- compare(control.leftMargin, -1)
- compare(control.contentItem.parent.x, -testCase.width)
- compare(control.contentItem.parent.y, -testCase.height)
- }
-
- function test_background() {
- var control = createTemporaryObject(popupTemplate, testCase)
- verify(control)
-
- control.background = rect.createObject(testCase)
-
- // background has no x or width set, so its width follows control's width
- control.width = 320
- compare(control.background.width, control.width)
-
- // background has no y or height set, so its height follows control's height
- compare(control.background.height, control.height)
- control.height = 240
-
- // has width => width does not follow
- control.background.width /= 2
- control.width += 20
- verify(control.background.width !== control.width)
-
- // reset width => width follows again
- control.background.width = undefined
- control.width += 20
- compare(control.background.width, control.width)
-
- // has x => width does not follow
- control.background.x = 10
- control.width += 20
- verify(control.background.width !== control.width)
-
- // has height => height does not follow
- control.background.height /= 2
- control.height -= 20
- verify(control.background.height !== control.height)
-
- // reset height => height follows again
- control.background.height = undefined
- control.height -= 20
- compare(control.background.height, control.height)
-
- // has y => height does not follow
- control.background.y = 10
- control.height -= 20
- verify(control.background.height !== control.height)
- }
-
- function getChild(control, objname, idx) {
- var index = idx
- for (var i = index+1; i < control.children.length; i++)
- {
- if (control.children[i].objectName === objname) {
- index = i
- break
- }
- }
- return index
- }
-
- Component {
- id: component
- ApplicationWindow {
- id: _window
- width: 400
- height: 400
- visible: true
- font.pixelSize: 40
- property alias pane: _pane
- property alias popup: _popup
- property SignalSpy fontspy: SignalSpy { target: _window; signalName: "fontChanged" }
- Pane {
- id: _pane
- property alias button: _button
- font.pixelSize: 30
- property SignalSpy fontspy: SignalSpy { target: _pane; signalName: "fontChanged" }
- Column {
- Button {
- id: _button
- text: "Button"
- font.pixelSize: 20
- property SignalSpy fontspy: SignalSpy { target: _button; signalName: "fontChanged" }
- Popup {
- id: _popup
- property alias button: _button2
- property alias listview: _listview
- y: _button.height
- implicitHeight: Math.min(396, _listview.contentHeight)
- property SignalSpy fontspy: SignalSpy { target: _popup; signalName: "fontChanged" }
- contentItem: Column {
- Button {
- id: _button2
- text: "Button"
- property SignalSpy fontspy: SignalSpy { target: _button2; signalName: "fontChanged" }
- }
- ListView {
- id: _listview
- height: _button.height * 20
- model: 2
- delegate: Button {
- id: _button3
- objectName: "delegate"
- width: _button.width
- height: _button.height
- text: "N: " + index
- checkable: true
- autoExclusive: true
- property SignalSpy fontspy: SignalSpy { target: _button3; signalName: "fontChanged" }
- }
- }
- }
- }
- }
- }
- }
- }
- }
-
- function test_font() { // QTBUG_50984, QTBUG-51696
- var window = createTemporaryObject(component, testCase)
- verify(window)
-
- compare(window.font.pixelSize, 40)
- compare(window.pane.font.pixelSize, 30)
- compare(window.pane.button.font.pixelSize, 20)
- compare(window.popup.font.pixelSize, 40)
- compare(window.popup.button.font.pixelSize, 40)
-
- var idx1 = getChild(window.popup.listview.contentItem, "delegate", -1)
- compare(window.popup.listview.contentItem.children[idx1].font.pixelSize, 40)
- var idx2 = getChild(window.popup.listview.contentItem, "delegate", idx1)
- compare(window.popup.listview.contentItem.children[idx2].font.pixelSize, 40)
-
- window.pane.button.font.pixelSize = 30
- compare(window.font.pixelSize, 40)
- compare(window.fontspy.count, 0)
- compare(window.pane.font.pixelSize, 30)
- compare(window.pane.fontspy.count, 0)
- compare(window.pane.button.font.pixelSize, 30)
- compare(window.pane.button.fontspy.count, 1)
- compare(window.popup.font.pixelSize, 40)
- compare(window.popup.fontspy.count, 0)
- compare(window.popup.button.font.pixelSize, 40)
- compare(window.popup.button.fontspy.count, 0)
- compare(window.popup.listview.contentItem.children[idx1].font.pixelSize, 40)
- compare(window.popup.listview.contentItem.children[idx1].fontspy.count, 0)
- compare(window.popup.listview.contentItem.children[idx2].font.pixelSize, 40)
- compare(window.popup.listview.contentItem.children[idx2].fontspy.count, 0)
-
- window.font.pixelSize = 50
- compare(window.font.pixelSize, 50)
- compare(window.fontspy.count, 1)
- compare(window.pane.font.pixelSize, 30)
- compare(window.pane.fontspy.count, 0)
- compare(window.pane.button.font.pixelSize, 30)
- compare(window.pane.button.fontspy.count, 1)
- compare(window.popup.font.pixelSize, 50)
- compare(window.popup.fontspy.count, 1)
- compare(window.popup.button.font.pixelSize, 50)
- compare(window.popup.button.fontspy.count, 1)
- compare(window.popup.listview.contentItem.children[idx1].font.pixelSize, 50)
- compare(window.popup.listview.contentItem.children[idx1].fontspy.count, 1)
- compare(window.popup.listview.contentItem.children[idx2].font.pixelSize, 50)
- compare(window.popup.listview.contentItem.children[idx2].fontspy.count, 1)
-
- window.popup.button.font.pixelSize = 10
- compare(window.font.pixelSize, 50)
- compare(window.fontspy.count, 1)
- compare(window.pane.font.pixelSize, 30)
- compare(window.pane.fontspy.count, 0)
- compare(window.pane.button.font.pixelSize, 30)
- compare(window.pane.button.fontspy.count, 1)
- compare(window.popup.font.pixelSize, 50)
- compare(window.popup.fontspy.count, 1)
- compare(window.popup.button.font.pixelSize, 10)
- compare(window.popup.button.fontspy.count, 2)
- compare(window.popup.listview.contentItem.children[idx1].font.pixelSize, 50)
- compare(window.popup.listview.contentItem.children[idx1].fontspy.count, 1)
- compare(window.popup.listview.contentItem.children[idx2].font.pixelSize, 50)
- compare(window.popup.listview.contentItem.children[idx2].fontspy.count, 1)
-
- window.popup.font.pixelSize = 60
- compare(window.font.pixelSize, 50)
- compare(window.fontspy.count, 1)
- compare(window.pane.font.pixelSize, 30)
- compare(window.pane.fontspy.count, 0)
- compare(window.pane.button.font.pixelSize, 30)
- compare(window.pane.button.fontspy.count, 1)
- compare(window.popup.font.pixelSize, 60)
- compare(window.popup.fontspy.count, 2)
- compare(window.popup.button.font.pixelSize, 10)
- compare(window.popup.button.fontspy.count, 2)
- compare(window.popup.listview.contentItem.children[idx1].font.pixelSize, 60)
- compare(window.popup.listview.contentItem.children[idx1].fontspy.count, 2)
- compare(window.popup.listview.contentItem.children[idx2].font.pixelSize, 60)
- compare(window.popup.listview.contentItem.children[idx2].fontspy.count, 2)
- }
-
- Component {
- id: localeComponent
- Pane {
- property alias button: _button
- property alias popup: _popup
- locale: Qt.locale("en_US")
- Column {
- Button {
- id: _button
- text: "Button"
- locale: Qt.locale("nb_NO")
- Popup {
- id: _popup
- property alias button1: _button1
- property alias button2: _button2
- y: _button.height
- locale: Qt.locale("fi_FI")
- implicitHeight: Math.min(396, _column.contentHeight)
- contentItem: Column {
- id: _column
- Button {
- id: _button1
- text: "Button 1"
- objectName: "1"
- }
- Button {
- id: _button2
- text: "Button 2"
- locale: Qt.locale("nb_NO")
- objectName: "2"
- }
- }
- }
- }
- }
- }
- }
-
- function test_locale() { // QTBUG_50984
- // test looking up natural locale from ancestors
- var control = createTemporaryObject(localeComponent, applicationWindow.contentItem)
- verify(control)
-
- compare(control.locale.name, "en_US")
- compare(control.button.locale.name, "nb_NO")
- compare(control.popup.locale.name, "fi_FI")
- compare(control.popup.button1.locale.name, "fi_FI")
- compare(control.popup.button2.locale.name, "nb_NO")
-
- control.ApplicationWindow.window.locale = undefined
- }
-
- Component {
- id: localeChangeComponent
- Pane {
- id: _pane
- property alias button: _button
- property alias popup: _popup
- property SignalSpy localespy: SignalSpy {
- target: _pane
- signalName: "localeChanged"
- }
- property SignalSpy mirrorspy: SignalSpy {
- target: _pane
- signalName: "mirroredChanged"
- }
- Column {
- Button {
- id: _button
- text: "Button"
- property SignalSpy localespy: SignalSpy {
- target: _button
- signalName: "localeChanged"
- }
- property SignalSpy mirrorspy: SignalSpy {
- target: _button
- signalName: "mirroredChanged"
- }
- Popup {
- id: _popup
- property alias button1: _button1
- property alias button2: _button2
- y: _button.height
- implicitHeight: Math.min(396, _column.contentHeight)
- property SignalSpy localespy: SignalSpy {
- target: _popup
- signalName: "localeChanged"
- }
- contentItem: Column {
- id: _column
- Button {
- id: _button1
- text: "Button 1"
- property SignalSpy localespy: SignalSpy {
- target: _button1
- signalName: "localeChanged"
- }
- property SignalSpy mirrorspy: SignalSpy {
- target: _button1
- signalName: "mirroredChanged"
- }
- }
- Button {
- id: _button2
- text: "Button 2"
- property SignalSpy localespy: SignalSpy {
- target: _button2
- signalName: "localeChanged"
- }
- property SignalSpy mirrorspy: SignalSpy {
- target: _button2
- signalName: "mirroredChanged"
- }
- }
- }
- }
- }
- }
- }
- }
-
- function test_locale_changes() { // QTBUG_50984
- // test default locale and locale inheritance
- var control = createTemporaryObject(localeChangeComponent, applicationWindow.contentItem)
- verify(control)
-
- var defaultLocale = Qt.locale()
- compare(control.ApplicationWindow.window.locale.name, defaultLocale.name)
- compare(control.locale.name, defaultLocale.name)
- compare(control.button.locale.name, defaultLocale.name)
- compare(control.popup.locale.name, defaultLocale.name)
- compare(control.popup.button1.locale.name, defaultLocale.name)
- compare(control.popup.button2.locale.name, defaultLocale.name)
-
- control.ApplicationWindow.window.locale = Qt.locale("nb_NO")
- compare(control.ApplicationWindow.window.locale.name, "nb_NO")
- compare(control.locale.name, "nb_NO")
- compare(control.button.locale.name, "nb_NO")
- compare(control.popup.locale.name, "nb_NO")
- compare(control.popup.button1.locale.name, "nb_NO")
- compare(control.popup.button2.locale.name, "nb_NO")
- compare(control.localespy.count, 1)
- compare(control.button.localespy.count, 1)
- compare(control.popup.localespy.count, 1)
- compare(control.popup.button1.localespy.count, 1)
- compare(control.popup.button2.localespy.count, 1)
-
- control.ApplicationWindow.window.locale = undefined
- compare(control.ApplicationWindow.window.locale.name, defaultLocale.name)
- compare(control.locale.name, defaultLocale.name)
- compare(control.button.locale.name, defaultLocale.name)
- compare(control.popup.locale.name, defaultLocale.name)
- compare(control.popup.button1.locale.name, defaultLocale.name)
- compare(control.popup.button2.locale.name, defaultLocale.name)
- compare(control.localespy.count, 2)
- compare(control.button.localespy.count, 2)
- compare(control.popup.localespy.count, 2)
- compare(control.popup.button1.localespy.count, 2)
- compare(control.popup.button2.localespy.count, 2)
-
- control.locale = Qt.locale("ar_EG")
- compare(control.ApplicationWindow.window.locale.name, defaultLocale.name)
- compare(control.locale.name, "ar_EG")
- compare(control.button.locale.name, "ar_EG")
- compare(control.popup.locale.name, defaultLocale.name)
- compare(control.popup.button1.locale.name, defaultLocale.name)
- compare(control.popup.button2.locale.name, defaultLocale.name)
- compare(control.localespy.count, 3)
- compare(control.mirrorspy.count, 1)
- compare(control.button.localespy.count, 3)
- compare(control.button.mirrorspy.count, 1)
- compare(control.popup.localespy.count, 2)
- compare(control.popup.button1.localespy.count, 2)
- compare(control.popup.button2.localespy.count, 2)
-
- control.ApplicationWindow.window.locale = Qt.locale("ar_EG")
- compare(control.ApplicationWindow.window.locale.name, "ar_EG")
- compare(control.locale.name, "ar_EG")
- compare(control.button.locale.name, "ar_EG")
- compare(control.popup.locale.name, "ar_EG")
- compare(control.popup.button1.locale.name, "ar_EG")
- compare(control.popup.button2.locale.name, "ar_EG")
- compare(control.localespy.count, 3)
- compare(control.mirrorspy.count, 1)
- compare(control.button.localespy.count, 3)
- compare(control.button.mirrorspy.count, 1)
- compare(control.popup.localespy.count, 3)
- compare(control.popup.button1.localespy.count, 3)
- compare(control.popup.button1.mirrorspy.count, 1)
- compare(control.popup.button2.localespy.count, 3)
- compare(control.popup.button2.mirrorspy.count, 1)
-
- control.button.locale = Qt.locale("nb_NO")
- compare(control.ApplicationWindow.window.locale.name, "ar_EG")
- compare(control.locale.name, "ar_EG")
- compare(control.button.locale.name, "nb_NO")
- compare(control.popup.locale.name, "ar_EG")
- compare(control.popup.button1.locale.name, "ar_EG")
- compare(control.popup.button2.locale.name, "ar_EG")
- compare(control.localespy.count, 3)
- compare(control.mirrorspy.count, 1)
- compare(control.button.localespy.count, 4)
- compare(control.button.mirrorspy.count, 2)
- compare(control.popup.localespy.count, 3)
- compare(control.popup.button1.localespy.count, 3)
- compare(control.popup.button2.localespy.count, 3)
-
- control.locale = undefined
- compare(control.ApplicationWindow.window.locale.name, "ar_EG")
- compare(control.locale.name, "ar_EG")
- compare(control.button.locale.name, "nb_NO")
- compare(control.popup.locale.name, "ar_EG")
- compare(control.popup.button1.locale.name, "ar_EG")
- compare(control.popup.button2.locale.name, "ar_EG")
- compare(control.localespy.count, 3)
- compare(control.mirrorspy.count, 1)
- compare(control.button.localespy.count, 4)
- compare(control.button.mirrorspy.count, 2)
- compare(control.popup.localespy.count, 3)
- compare(control.popup.button1.localespy.count, 3)
- compare(control.popup.button2.localespy.count, 3)
-
- control.popup.button1.locale = Qt.locale("nb_NO")
- compare(control.ApplicationWindow.window.locale.name, "ar_EG")
- compare(control.locale.name, "ar_EG")
- compare(control.button.locale.name, "nb_NO")
- compare(control.popup.locale.name, "ar_EG")
- compare(control.popup.button1.locale.name, "nb_NO")
- compare(control.popup.button2.locale.name, "ar_EG")
- compare(control.localespy.count, 3)
- compare(control.mirrorspy.count, 1)
- compare(control.button.localespy.count, 4)
- compare(control.button.mirrorspy.count, 2)
- compare(control.popup.localespy.count, 3)
- compare(control.popup.button1.localespy.count, 4)
- compare(control.popup.button1.mirrorspy.count, 2)
- compare(control.popup.button2.localespy.count, 3)
- compare(control.popup.button2.mirrorspy.count, 1)
-
- control.popup.locale = Qt.locale("fi_FI")
- compare(control.ApplicationWindow.window.locale.name, "ar_EG")
- compare(control.locale.name, "ar_EG")
- compare(control.button.locale.name, "nb_NO")
- compare(control.popup.locale.name, "fi_FI")
- compare(control.popup.button1.locale.name, "nb_NO")
- compare(control.popup.button2.locale.name, "fi_FI")
- compare(control.localespy.count, 3)
- compare(control.mirrorspy.count, 1)
- compare(control.button.localespy.count, 4)
- compare(control.button.mirrorspy.count, 2)
- compare(control.popup.localespy.count, 4)
- compare(control.popup.button1.localespy.count, 4)
- compare(control.popup.button1.mirrorspy.count, 2)
- compare(control.popup.button2.localespy.count, 4)
- compare(control.popup.button2.mirrorspy.count, 2)
-
- control.ApplicationWindow.window.locale = undefined
- compare(control.ApplicationWindow.window.locale.name, defaultLocale.name)
- compare(control.locale.name, defaultLocale.name)
- compare(control.button.locale.name, "nb_NO")
- compare(control.popup.locale.name, "fi_FI")
- compare(control.popup.button1.locale.name, "nb_NO")
- compare(control.popup.button2.locale.name, "fi_FI")
- compare(control.localespy.count, 4)
- compare(control.mirrorspy.count, 2)
- compare(control.button.localespy.count, 4)
- compare(control.button.mirrorspy.count, 2)
- compare(control.popup.localespy.count, 4)
- compare(control.popup.button1.localespy.count, 4)
- compare(control.popup.button1.mirrorspy.count, 2)
- compare(control.popup.button2.localespy.count, 4)
- compare(control.popup.button2.mirrorspy.count, 2)
-
- control.popup.locale = undefined
- compare(control.ApplicationWindow.window.locale.name, defaultLocale.name)
- compare(control.locale.name, defaultLocale.name)
- compare(control.button.locale.name, "nb_NO")
- compare(control.popup.locale.name, defaultLocale.name)
- compare(control.popup.button1.locale.name, "nb_NO")
- compare(control.popup.button2.locale.name, defaultLocale.name)
- compare(control.localespy.count, 4)
- compare(control.mirrorspy.count, 2)
- compare(control.button.localespy.count, 4)
- compare(control.button.mirrorspy.count, 2)
- compare(control.popup.localespy.count, 5)
- compare(control.popup.button1.localespy.count, 4)
- compare(control.popup.button1.mirrorspy.count, 2)
- compare(control.popup.button2.localespy.count, 5)
- compare(control.popup.button2.mirrorspy.count, 2)
- }
-
- function test_size() {
- var control = createTemporaryObject(popupControl, testCase)
- verify(control)
-
- var openedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "opened"})
- verify(openedSpy.valid)
-
- control.open()
- openedSpy.wait()
- compare(openedSpy.count, 1)
- verify(control.visible)
-
- // remove the background so that it won't affect the implicit size of the popup,
- // so the implicit sizes tested below are entirely based on the content size
- control.background = null
-
- // implicit size of the content
- control.contentItem.implicitWidth = 10
- compare(control.implicitWidth, 10 + control.leftPadding + control.rightPadding)
- compare(control.width, control.implicitWidth)
- compare(control.contentItem.width, control.width - control.leftPadding - control.rightPadding)
-
- control.contentItem.implicitHeight = 20
- compare(control.implicitHeight, 20 + control.topPadding + control.bottomPadding)
- compare(control.height, control.implicitHeight)
- compare(control.contentItem.height, control.height - control.topPadding - control.bottomPadding)
-
- // implicit size of the popup
- control.implicitWidth = 30
- compare(control.implicitWidth, 30)
- compare(control.width, 30)
- compare(control.contentItem.width, control.width - control.leftPadding - control.rightPadding)
-
- control.implicitHeight = 40
- compare(control.implicitHeight, 40)
- compare(control.height, 40)
- compare(control.contentItem.height, control.height - control.topPadding - control.bottomPadding)
-
- // set explicit size
- control.width = 50
- compare(control.implicitWidth, 30)
- compare(control.width, 50)
- compare(control.contentItem.width, control.width - control.leftPadding - control.rightPadding)
-
- control.height = 60
- compare(control.implicitHeight, 40)
- compare(control.height, 60)
- compare(control.contentItem.height, control.height - control.topPadding - control.bottomPadding)
-
- // reset explicit size
- control.width = undefined
- compare(control.implicitWidth, 30)
- compare(control.width, 30)
- compare(control.contentItem.width, control.width - control.leftPadding - control.rightPadding)
-
- control.height = undefined
- compare(control.implicitHeight, 40)
- compare(control.height, 40)
- compare(control.contentItem.height, control.height - control.topPadding - control.bottomPadding)
- }
-
- function test_visible() {
- var control = createTemporaryObject(popupTemplate, testCase, {visible: true})
- verify(control)
-
- // QTBUG-51989
- tryCompare(control, "visible", true)
-
- // QTBUG-55347
- control.parent = null
- verify(!control.visible)
- }
-
- Component {
- id: overlayTest
- ApplicationWindow {
- property alias firstDrawer: firstDrawer
- property alias secondDrawer: secondDrawer
- property alias modalPopup: modalPopup
- property alias modelessPopup: modelessPopup
- property alias plainPopup: plainPopup
- property alias modalPopupWithoutDim: modalPopupWithoutDim
- visible: true
- Drawer {
- z: 0
- id: firstDrawer
- }
- Drawer {
- z: 1
- id: secondDrawer
- }
- Popup {
- id: modalPopup
- z: 2
- modal: true
- exit: Transition { PauseAnimation { duration: 200 } }
- }
- Popup {
- id: modelessPopup
- z: 3
- dim: true
- exit: Transition { PauseAnimation { duration: 200 } }
- }
- Popup {
- id: plainPopup
- z: 4
- enter: Transition { PauseAnimation { duration: 200 } }
- exit: Transition { PauseAnimation { duration: 200 } }
- }
- Popup {
- id: modalPopupWithoutDim
- z: 5
- dim: false
- modal: true
- exit: Transition { PauseAnimation { duration: 200 } }
- }
- }
- }
-
- function indexOf(array, item) {
- for (var idx = 0; idx < array.length; ++idx) {
- if (item === array[idx])
- return idx;
- }
- return -1
- }
-
- function findOverlay(window, popup) {
- var item = popup.contentItem.parent
- var idx = indexOf(window.overlay.children, item)
- return window.overlay.children[idx - 1]
- }
-
- function test_overlay() {
- var window = createTemporaryObject(overlayTest, testCase)
- verify(window)
-
- window.requestActivate()
- tryCompare(window, "active", true)
-
- compare(window.overlay.children.length, 0)
- compare(window.overlay, window.Overlay.overlay)
-
- var firstOverlay = findOverlay(window, window.firstDrawer)
- verify(!firstOverlay)
- window.firstDrawer.open()
- compare(window.overlay.children.length, 2) // 1 drawer + 1 overlay
- firstOverlay = findOverlay(window, window.firstDrawer)
- verify(firstOverlay)
- compare(firstOverlay.z, window.firstDrawer.z)
- compare(indexOf(window.overlay.children, firstOverlay),
- indexOf(window.overlay.children, window.firstDrawer.contentItem.parent) - 1)
- tryCompare(firstOverlay, "opacity", 1.0)
-
- var secondOverlay = findOverlay(window, window.secondDrawer)
- verify(!secondOverlay)
- window.secondDrawer.open()
- compare(window.overlay.children.length, 4) // 2 drawers + 2 overlays
- secondOverlay = findOverlay(window, window.secondDrawer)
- verify(secondOverlay)
- compare(secondOverlay.z, window.secondDrawer.z)
- compare(indexOf(window.overlay.children, secondOverlay),
- indexOf(window.overlay.children, window.secondDrawer.contentItem.parent) - 1)
- tryCompare(secondOverlay, "opacity", 1.0)
-
- window.firstDrawer.close()
- tryCompare(window.firstDrawer, "visible", false)
- firstOverlay = findOverlay(window, window.firstDrawer)
- verify(!firstOverlay)
- compare(window.overlay.children.length, 2) // 1 drawer + 1 overlay
-
- window.secondDrawer.close()
- tryCompare(window.secondDrawer, "visible", false)
- secondOverlay = findOverlay(window, window.secondDrawer)
- verify(!secondOverlay)
- compare(window.overlay.children.length, 0)
-
- var modalOverlay = findOverlay(window, window.modalPopup)
- verify(!modalOverlay)
- window.modalPopup.open()
- modalOverlay = findOverlay(window, window.modalPopup)
- verify(modalOverlay)
- compare(modalOverlay.z, window.modalPopup.z)
- compare(window.modalPopup.visible, true)
- tryCompare(modalOverlay, "opacity", 1.0)
- compare(window.overlay.children.length, 2) // 1 popup + 1 overlay
-
- var modelessOverlay = findOverlay(window, window.modelessPopup)
- verify(!modelessOverlay)
- window.modelessPopup.open()
- modelessOverlay = findOverlay(window, window.modelessPopup)
- verify(modelessOverlay)
- compare(modelessOverlay.z, window.modelessPopup.z)
- compare(window.modelessPopup.visible, true)
- tryCompare(modelessOverlay, "opacity", 1.0)
- compare(window.overlay.children.length, 4) // 2 popups + 2 overlays
-
- window.modelessPopup.close()
- tryCompare(window.modelessPopup, "visible", false)
- modelessOverlay = findOverlay(window, window.modelessPopup)
- verify(!modelessOverlay)
- compare(window.overlay.children.length, 2) // 1 popup + 1 overlay
-
- compare(window.modalPopup.visible, true)
- compare(modalOverlay.opacity, 1.0)
-
- window.modalPopup.close()
- tryCompare(window.modalPopup, "visible", false)
- modalOverlay = findOverlay(window, window.modalPopup)
- verify(!modalOverlay)
- compare(window.overlay.children.length, 0)
-
- window.plainPopup.open()
- tryCompare(window.plainPopup, "visible", true)
- compare(window.overlay.children.length, 1) // only popup added, no overlays involved
-
- window.plainPopup.modal = true
- compare(window.overlay.children.length, 2) // overlay added
-
- window.plainPopup.close()
- tryCompare(window.plainPopup, "visible", false)
- compare(window.overlay.children.length, 0) // popup + overlay removed
-
- window.modalPopupWithoutDim.open()
- tryCompare(window.modalPopupWithoutDim, "visible", true)
- compare(window.overlay.children.length, 1) // only popup added, no overlays involved
-
- window.modalPopupWithoutDim.dim = true
- compare(window.overlay.children.length, 2) // overlay added
-
- window.modalPopupWithoutDim.close()
- tryCompare(window.modalPopupWithoutDim, "visible", false)
- compare(window.overlay.children.length, 0) // popup + overlay removed
- }
-
- function test_attached_applicationwindow() {
- var control = createTemporaryObject(popupControl, applicationWindow.contentItem)
- verify(control)
-
- var child = rect.createObject(control.contentItem)
-
- compare(control.ApplicationWindow.window, applicationWindow)
- compare(control.contentItem.ApplicationWindow.window, applicationWindow)
- compare(child.ApplicationWindow.window, applicationWindow)
-
- control.parent = null
- compare(control.ApplicationWindow.window, null)
- compare(control.contentItem.ApplicationWindow.window, null)
- compare(child.ApplicationWindow.window, null)
- }
-
- Component {
- id: pausePopup
- Popup {
- enter: Transition { PauseAnimation { duration: 200 } }
- exit: Transition { PauseAnimation { duration: 200 } }
- }
- }
-
- function test_openedClosed() {
- var control = createTemporaryObject(pausePopup, testCase)
- verify(control)
-
- var openedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "opened"})
- verify(openedSpy.valid)
- var closedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "closed"})
- verify(closedSpy.valid)
- var openedChangeSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "openedChanged"})
- verify(openedChangeSpy.valid)
-
- control.open()
- compare(control.visible, true)
- compare(control.opened, false)
- compare(openedChangeSpy.count, 0)
- compare(openedSpy.count, 0)
- tryCompare(openedSpy, "count", 1)
- compare(control.opened, true)
- compare(openedChangeSpy.count, 1)
- compare(closedSpy.count, 0)
-
- control.close()
- compare(control.visible, true)
- compare(control.opened, false)
- compare(openedChangeSpy.count, 2)
- compare(openedSpy.count, 1)
- compare(closedSpy.count, 0)
- tryCompare(closedSpy, "count", 1)
- compare(control.opened, false)
- compare(openedChangeSpy.count, 2)
- compare(control.visible, false)
- }
-
- Component {
- id: xyBindingLoop
- ApplicationWindow {
- id: window
- width: 360
- height: 360
- visible: true
- property alias popup: popup
-
- Popup {
- id: popup
- visible: true
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- Label {
- text: "Content"
- anchors.fill: parent
- }
- }
- }
- }
-
- function test_xyBindingLoop() {
- var window = createTemporaryObject(xyBindingLoop, testCase)
- var control = window.popup
- waitForRendering(control.contentItem)
- compare(control.x, (control.parent.width - control.width) / 2)
- compare(control.y, (control.parent.height - control.height) / 2)
- }
-
- function test_windowParent() {
- var control = createTemporaryObject(popupControl, applicationWindow, {width: 100, height: 100})
- verify(control)
-
- control.open()
- verify(control.visible)
- }
-
- function test_deferredBackgroundSize() {
- var control = createTemporaryObject(popupControl, testCase, {width: 200, height: 100})
- verify(control)
-
- compare(control.background.width, 200 + (control.background.leftInset || 0) + (control.background.rightInset || 0))
- compare(control.background.height, 100 + (control.background.topInset || 0) + (control.background.bottomInset || 0))
- }
-
- function test_anchors() {
- var control = createTemporaryObject(popupControl, applicationWindow.contentItem.Overlay.overlay,
- { visible: true, width: 100, height: 100 })
- verify(control)
- verify(control.visible)
- compare(control.parent, control.Overlay.overlay)
- compare(control.x, 0)
- compare(control.y, 0)
-
- var overlay = control.Overlay.overlay
- verify(overlay)
-
- var centerInSpy = createTemporaryObject(signalSpy, testCase, { target: control.anchors, signalName: "centerInChanged" })
- verify(centerInSpy.valid)
-
- applicationWindow.visible = true
- verify(waitForRendering(applicationWindow.contentItem))
- verify(overlay.width > 0)
- verify(overlay.height > 0)
-
- // Center the popup in the window via the overlay.
- control.anchors.centerIn = Qt.binding(function() { return control.parent; })
- compare(centerInSpy.count, 1)
- compare(control.x, (overlay.width - control.width) / 2)
- compare(control.y, (overlay.height - control.height) / 2)
-
- // Ensure that it warns when trying to set it to an item that's not its parent.
- var anotherItem = createTemporaryObject(rect, applicationWindow.contentItem, { x: 100, y: 100, width: 50, height: 50 })
- verify(anotherItem)
-
- ignoreWarning(Qt.resolvedUrl("tst_popup.qml") + ":77:9: QML Popup: Popup can only be centered within its immediate parent or Overlay.overlay")
- control.anchors.centerIn = anotherItem
- // The property will change, because we can't be sure that the parent
- // in QQuickPopupAnchors::setCenterIn() is the final parent, as some reparenting can happen.
- // We still expect the warning from QQuickPopupPositioner::reposition() though.
- compare(centerInSpy.count, 2)
- compare(control.anchors.centerIn, anotherItem)
-
- // The binding to the popup's parent was broken above, so restore it.
- control.anchors.centerIn = Qt.binding(function() { return control.parent; })
- compare(centerInSpy.count, 3)
-
- // Change the popup's parent and ensure that it's anchored accordingly.
- control.parent = Qt.binding(function() { return anotherItem; })
- compare(control.parent, anotherItem)
- compare(control.anchors.centerIn, anotherItem)
- compare(centerInSpy.count, 4)
- compare(control.x, (anotherItem.width - control.width) / 2)
- compare(control.y, (anotherItem.height - control.height) / 2)
-
- // Check that anchors.centerIn beats x and y coordinates as it does in QQuickItem.
- control.x = 33;
- control.y = 44;
- compare(control.x, (anotherItem.width - control.width) / 2)
- compare(control.y, (anotherItem.height - control.height) / 2)
-
- // Check that the popup's x and y coordinates are restored when it's no longer centered.
- control.anchors.centerIn = undefined
- compare(centerInSpy.count, 5)
- compare(control.x, 33)
- compare(control.y, 44)
-
- // Test centering in the overlay while having a different parent (anotherItem).
- control.anchors.centerIn = overlay
- compare(centerInSpy.count, 6)
- compare(control.x, (overlay.width - control.width) / 2)
- compare(control.y, (overlay.height - control.height) / 2)
-
- // TODO: do this properly by creating a component or something
- applicationWindow.visible = false
- }
-
- Component {
- id: shortcutWindowComponent
- ApplicationWindow {
- id: window
- width: 360
- height: 360
- visible: true
-
- property alias popup: popup
- property alias shortcut: shortcut
-
- Popup {
- id: popup
-
- Shortcut {
- id: shortcut
- sequence: "A"
- onActivated: popup.visible = !popup.visible
- }
- }
- }
- }
-
- function test_shortcut() {
- // Tests that a Shortcut with Qt.WindowShortcut context
- // that is declared within a Popup is activated.
- var window = createTemporaryObject(shortcutWindowComponent, testCase)
- var control = window.popup
-
- window.requestActivate()
- tryCompare(window, "active", true)
-
- var shortcutActivatedSpy = createTemporaryObject(signalSpy, testCase,
- { target: window.shortcut, signalName: "activated"} )
- verify(shortcutActivatedSpy.valid)
-
- waitForRendering(window.contentItem)
- keyClick(Qt.Key_A)
- compare(shortcutActivatedSpy.count, 1)
- tryCompare(control, "visible", true)
-
- keyClick(Qt.Key_A)
- compare(shortcutActivatedSpy.count, 2)
- tryCompare(control, "visible", false)
- }
-}
diff --git a/tests/auto/controls/data/tst_progressbar.qml b/tests/auto/controls/data/tst_progressbar.qml
deleted file mode 100644
index 74840551..00000000
--- a/tests/auto/controls/data/tst_progressbar.qml
+++ /dev/null
@@ -1,196 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "ProgressBar"
-
- Component {
- id: progressBar
- ProgressBar { }
- }
-
- function test_value() {
- var control = createTemporaryObject(progressBar, testCase)
- verify(control)
-
- compare(control.value, 0.0)
- control.value = 0.5
- compare(control.value, 0.5)
- control.value = 1.0
- compare(control.value, 1.0)
- control.value = -1.0
- compare(control.value, 0.0)
- control.value = 2.0
- compare(control.value, 1.0)
- }
-
- function test_range() {
- var control = createTemporaryObject(progressBar, testCase, {from: 0, to: 100, value: 50})
- verify(control)
-
- compare(control.from, 0)
- compare(control.to, 100)
- compare(control.value, 50)
- compare(control.position, 0.5)
-
- control.value = 1000
- compare(control.value, 100)
- compare(control.position, 1)
-
- control.value = -1
- compare(control.value, 0)
- compare(control.position, 0)
-
- control.from = 25
- compare(control.from, 25)
- compare(control.value, 25)
- compare(control.position, 0)
-
- control.to = 75
- compare(control.to, 75)
- compare(control.value, 25)
- compare(control.position, 0)
-
- control.value = 50
- compare(control.value, 50)
- compare(control.position, 0.5)
- }
-
- function test_inverted() {
- var control = createTemporaryObject(progressBar, testCase, {from: 1.0, to: -1.0})
- verify(control)
-
- compare(control.from, 1.0)
- compare(control.to, -1.0)
- compare(control.value, 0.0)
- compare(control.position, 0.5)
-
- control.value = 2.0
- compare(control.value, 1.0)
- compare(control.position, 0.0)
-
- control.value = -2.0
- compare(control.value, -1.0)
- compare(control.position, 1.0)
-
- control.value = 0.0
- compare(control.value, 0.0)
- compare(control.position, 0.5)
- }
-
- function test_position() {
- var control = createTemporaryObject(progressBar, testCase)
- verify(control)
-
- compare(control.value, 0)
- compare(control.position, 0)
-
- control.value = 0.25
- compare(control.value, 0.25)
- compare(control.position, 0.25)
-
- control.value = 0.75
- compare(control.value, 0.75)
- compare(control.position, 0.75)
- }
-
- function test_visualPosition() {
- var control = createTemporaryObject(progressBar, testCase)
- verify(control)
-
- compare(control.value, 0)
- compare(control.visualPosition, 0)
-
- control.value = 0.25
- compare(control.value, 0.25)
- compare(control.visualPosition, 0.25)
-
- // RTL locale
- control.locale = Qt.locale("ar_EG")
- compare(control.visualPosition, 0.75)
-
- // RTL locale + LayoutMirroring
- control.LayoutMirroring.enabled = true
- compare(control.visualPosition, 0.75)
-
- // LTR locale + LayoutMirroring
- control.locale = Qt.locale("en_US")
- compare(control.visualPosition, 0.75)
-
- // LTR locale
- control.LayoutMirroring.enabled = false
- compare(control.visualPosition, 0.25)
-
- // LayoutMirroring
- control.LayoutMirroring.enabled = true
- compare(control.visualPosition, 0.75)
- }
-
- function test_indeterminate() {
- var control = createTemporaryObject(progressBar, testCase)
- verify(control)
- compare(control.indeterminate, false)
-
- wait(100)
- control.indeterminate = true
- wait(100)
- // Shouldn't crash...
- control.indeterminate = false
- }
-}
diff --git a/tests/auto/controls/data/tst_radiobutton.qml b/tests/auto/controls/data/tst_radiobutton.qml
deleted file mode 100644
index c16f615c..00000000
--- a/tests/auto/controls/data/tst_radiobutton.qml
+++ /dev/null
@@ -1,377 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "RadioButton"
-
- Component {
- id: radioButton
- RadioButton { }
- }
-
- Component {
- id: signalSequenceSpy
- SignalSequenceSpy {
- signals: ["pressed", "released", "canceled", "clicked", "toggled", "pressedChanged", "checkedChanged"]
- }
- }
-
- function test_text() {
- var control = createTemporaryObject(radioButton, testCase)
- verify(control)
-
- compare(control.text, "")
- control.text = "RadioButton"
- compare(control.text, "RadioButton")
- control.text = ""
- compare(control.text, "")
- }
-
- function test_checked() {
- var control = createTemporaryObject(radioButton, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- sequenceSpy.expectedSequence = [] // No change expected
- compare(control.checked, false)
- verify(sequenceSpy.success)
-
- sequenceSpy.expectedSequence = ["checkedChanged"]
- control.checked = true
- compare(control.checked, true)
- verify(sequenceSpy.success)
-
- sequenceSpy.reset()
- control.checked = false
- compare(control.checked, false)
- verify(sequenceSpy.success)
- }
-
- function test_mouse() {
- var control = createTemporaryObject(radioButton, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // attempt uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // release outside
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }]]
- mouseMove(control, control.width * 2, control.height * 2, 0)
- compare(control.pressed, false)
- sequenceSpy.expectedSequence = [["canceled", { "pressed": false, "checked": true }]]
- mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftButton)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // right button
- sequenceSpy.expectedSequence = []
- mousePress(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- }
-
- function test_touch() {
- var control = createTemporaryObject(radioButton, testCase)
- verify(control)
-
- var touch = touchEvent(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // attempt uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
-
- // release outside
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(sequenceSpy.success)
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }]]
- touch.move(0, control, control.width * 2, control.height * 2).commit()
- compare(control.pressed, false)
- sequenceSpy.expectedSequence = [["canceled", { "pressed": false, "checked": true }]]
- touch.release(0, control, control.width * 2, control.height * 2).commit()
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(sequenceSpy.success)
- }
-
- function test_keys() {
- var control = createTemporaryObject(radioButton, testCase)
- verify(control)
-
- var sequenceSpy = signalSequenceSpy.createObject(control, {target: control})
-
- sequenceSpy.expectedSequence = []
- control.forceActiveFocus()
- verify(control.activeFocus)
- verify(sequenceSpy.success)
-
- // check
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, true)
- verify(sequenceSpy.success)
-
- // attempt uncheck
- sequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": true }],
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, true)
- verify(sequenceSpy.success)
-
- // no change
- sequenceSpy.expectedSequence = []
- var keys = [Qt.Key_Enter, Qt.Key_Return, Qt.Key_Escape, Qt.Key_Tab]
- for (var i = 0; i < keys.length; ++i) {
- sequenceSpy.reset()
- keyClick(keys[i])
- compare(control.checked, true)
- verify(sequenceSpy.success)
- }
- }
-
- Component {
- id: twoRadioButtons
- Item {
- property RadioButton rb1: RadioButton { id: rb1 }
- property RadioButton rb2: RadioButton { id: rb2; checked: rb1.checked; enabled: false }
- }
- }
-
- function test_binding() {
- var container = createTemporaryObject(twoRadioButtons, testCase)
- verify(container)
-
- compare(container.rb1.checked, false)
- compare(container.rb2.checked, false)
-
- container.rb1.checked = true
- compare(container.rb1.checked, true)
- compare(container.rb2.checked, true)
-
- container.rb1.checked = false
- compare(container.rb1.checked, false)
- compare(container.rb2.checked, false)
- }
-
- Component {
- id: radioButtonGroup
- Column {
- // auto-exclusive buttons behave as if they were in their own exclusive group
- RadioButton { }
- RadioButton { }
-
- // explicitly grouped buttons are only exclusive with each other, not with
- // auto-exclusive buttons, and the autoExclusive property is ignored
- ButtonGroup { id: eg }
- RadioButton { ButtonGroup.group: eg }
- RadioButton { ButtonGroup.group: eg; autoExclusive: false }
-
- ButtonGroup { id: eg2 }
- RadioButton { id: rb1; Component.onCompleted: eg2.addButton(rb1) }
- RadioButton { id: rb2; Component.onCompleted: eg2.addButton(rb2) }
-
- // non-exclusive buttons don't affect the others
- RadioButton { autoExclusive: false }
- RadioButton { autoExclusive: false }
- }
- }
-
- function test_autoExclusive() {
- var container = createTemporaryObject(radioButtonGroup, testCase)
- compare(container.children.length, 8)
-
- var checkStates = [false, false, false, false, false, false, false, false]
- for (var i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[0].checked = true
- checkStates[0] = true
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[1].checked = true
- checkStates[0] = false
- checkStates[1] = true
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[2].checked = true
- checkStates[2] = true
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[3].checked = true
- checkStates[2] = false
- checkStates[3] = true
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[4].checked = true
- checkStates[4] = true
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[5].checked = true
- checkStates[4] = false
- checkStates[5] = true
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[6].checked = true
- checkStates[6] = true
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[7].checked = true
- checkStates[7] = true
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
-
- container.children[0].checked = true
- checkStates[0] = true
- checkStates[1] = false
- for (i = 0; i < 8; ++i)
- compare(container.children[i].checked, checkStates[i])
- }
-
- function test_baseline() {
- var control = createTemporaryObject(radioButton, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-}
diff --git a/tests/auto/controls/data/tst_radiodelegate.qml b/tests/auto/controls/data/tst_radiodelegate.qml
deleted file mode 100644
index ff11fffb..00000000
--- a/tests/auto/controls/data/tst_radiodelegate.qml
+++ /dev/null
@@ -1,173 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "RadioDelegate"
-
- Component {
- id: radioDelegate
- RadioDelegate {}
- }
-
- // TODO: data-fy tst_radiobutton (rename to tst_radio?) so we don't duplicate its tests here?
-
- function test_defaults() {
- var control = createTemporaryObject(radioDelegate, testCase);
- verify(control);
- verify(!control.checked);
- }
-
- function test_checked() {
- var control = createTemporaryObject(radioDelegate, testCase);
- verify(control);
-
- mouseClick(control);
- verify(control.checked);
-
- mouseClick(control);
- verify(control.checked);
- }
-
- function test_baseline() {
- var control = createTemporaryObject(radioDelegate, testCase);
- verify(control);
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset);
- }
-
- function test_spacing() {
- var control = createTemporaryObject(radioDelegate, testCase, { text: "Some long, long, long text" })
- verify(control)
- verify(control.contentItem.implicitWidth + control.leftPadding + control.rightPadding > control.background.implicitWidth)
-
- var textLabel = findChild(control.contentItem, "label")
- verify(textLabel)
-
- // The implicitWidth of the IconLabel that all buttons use as their contentItem should be
- // equal to the implicitWidth of the Text and the radio indicator + spacing while no icon is set.
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing)
-
- control.spacing += 100
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing)
-
- compare(control.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing + control.leftPadding + control.rightPadding)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: RadioDelegate.IconOnly },
- { "tag": "TextOnly", display: RadioDelegate.TextOnly },
- { "tag": "TextUnderIcon", display: RadioDelegate.TextUnderIcon },
- { "tag": "TextBesideIcon", display: RadioDelegate.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: RadioDelegate.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: RadioDelegate.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: RadioDelegate.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: RadioDelegate.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(radioDelegate, testCase, {
- text: "RadioDelegate",
- display: data.display,
- width: 400,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- var availableWidth = control.availableWidth - control.indicator.width - control.spacing
- var indicatorOffset = control.mirrored ? control.indicator.width + control.spacing : 0
-
- switch (control.display) {
- case RadioDelegate.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, indicatorOffset + (availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case RadioDelegate.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, control.mirrored ? control.availableWidth - textLabel.width : 0)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case RadioDelegate.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, indicatorOffset + (availableWidth - iconImage.width) / 2)
- compare(textLabel.x, indicatorOffset + (availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case RadioDelegate.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_rangeslider.qml b/tests/auto/controls/data/tst_rangeslider.qml
deleted file mode 100644
index 24f8a207..00000000
--- a/tests/auto/controls/data/tst_rangeslider.qml
+++ /dev/null
@@ -1,1085 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "RangeSlider"
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- Component {
- id: sliderComponent
- RangeSlider {
- id: slider
-
- Component.onCompleted: {
- first.handle.objectName = "firstHandle"
- second.handle.objectName = "secondHandle"
- }
-
- Text {
- text: "1"
- parent: slider.first.handle
- anchors.centerIn: parent
- }
-
- Text {
- text: "2"
- parent: slider.second.handle
- anchors.centerIn: parent
- }
- }
- }
-
- function test_defaults() {
- var control = createTemporaryObject(sliderComponent, testCase)
- verify(control)
-
- compare(control.stepSize, 0)
- compare(control.snapMode, RangeSlider.NoSnap)
- compare(control.orientation, Qt.Horizontal)
- compare(control.horizontal, true)
- compare(control.vertical, false)
- }
-
- function test_values() {
- var control = createTemporaryObject(sliderComponent, testCase)
- verify(control)
-
- compare(control.first.value, 0.0)
- compare(control.second.value, 1.0)
- control.first.value = 0.5
- compare(control.first.value, 0.5)
- control.first.value = 1.0
- compare(control.first.value, 1.0)
- control.first.value = -1.0
- compare(control.first.value, 0.0)
- control.first.value = 2.0
- compare(control.first.value, 1.0)
-
- control.first.value = 0
- compare(control.first.value, 0.0)
- control.second.value = 0.5
- compare(control.second.value, 0.5)
- control.first.value = 1
- compare(control.first.value, 0.5)
- control.second.value = 0
- compare(control.second.value, 0.5)
- }
-
- function test_range() {
- var control = createTemporaryObject(sliderComponent, testCase, { from: 0, to: 100, "first.value": 50, "second.value": 100 })
- verify(control)
-
- compare(control.from, 0)
- compare(control.to, 100)
- compare(control.first.value, 50)
- compare(control.second.value, 100)
- compare(control.first.position, 0.5)
- compare(control.second.position, 1.0)
-
- control.first.value = 1000
- compare(control.first.value, 100)
- compare(control.first.position, 1.0)
-
- control.first.value = -1
- compare(control.first.value, 0)
- compare(control.first.position, 0)
-
- control.from = 25
- compare(control.from, 25)
- compare(control.first.value, 25)
- compare(control.first.position, 0)
-
- control.to = 75
- compare(control.to, 75)
- compare(control.second.value, 75)
- compare(control.second.position, 1.0)
-
- control.first.value = 50
- compare(control.first.value, 50)
- compare(control.first.position, 0.5)
- }
-
- function test_setValues() {
- var control = createTemporaryObject(sliderComponent, testCase)
- verify(control)
-
- compare(control.from, 0)
- compare(control.to, 1)
- compare(control.first.value, 0)
- compare(control.second.value, 1)
- compare(control.first.position, 0.0)
- compare(control.second.position, 1.0)
-
- control.setValues(100, 200)
- compare(control.first.value, 1)
- compare(control.second.value, 1)
- compare(control.first.position, 1.0)
- compare(control.second.position, 1.0)
-
- control.to = 300;
- control.setValues(100, 200)
- compare(control.first.value, 100)
- compare(control.second.value, 200)
- compare(control.first.position, 0.333333)
- compare(control.second.position, 0.666666)
- }
-
- function test_inverted() {
- var control = createTemporaryObject(sliderComponent, testCase, { from: 1.0, to: -1.0 })
- verify(control)
-
- compare(control.from, 1.0)
- compare(control.to, -1.0)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.5)
- compare(control.second.value, 0.0);
- compare(control.second.position, 0.5);
-
- control.first.value = 2.0
- compare(control.first.value, 1.0)
- compare(control.first.position, 0.0)
- compare(control.second.value, 0.0);
- compare(control.second.position, 0.5);
-
- control.first.value = -2.0
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.5)
- compare(control.second.value, 0.0);
- compare(control.second.position, 0.5);
-
- control.first.value = 0.0
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.5)
- compare(control.second.value, 0.0);
- compare(control.second.position, 0.5);
- }
-
- function test_visualPosition() {
- var control = createTemporaryObject(sliderComponent, testCase)
- verify(control)
-
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.first.visualPosition, 0.0)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
- compare(control.second.visualPosition, 1.0)
-
- control.first.value = 0.25
- compare(control.first.value, 0.25)
- compare(control.first.position, 0.25)
- compare(control.first.visualPosition, 0.25)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
- compare(control.second.visualPosition, 1.0)
-
- // RTL locale
- control.locale = Qt.locale("ar_EG")
- compare(control.first.visualPosition, 0.75)
- compare(control.second.visualPosition, 0.0)
-
- // RTL locale + LayoutMirroring
- control.LayoutMirroring.enabled = true
- compare(control.first.visualPosition, 0.75)
- compare(control.second.visualPosition, 0.0)
-
- // LTR locale + LayoutMirroring
- control.locale = Qt.locale("en_US")
- compare(control.first.visualPosition, 0.75)
- compare(control.second.visualPosition, 0.0)
-
- // LTR locale
- control.LayoutMirroring.enabled = false
- compare(control.first.visualPosition, 0.25)
- compare(control.second.visualPosition, 1.0)
-
- // LayoutMirroring
- control.LayoutMirroring.enabled = true
- compare(control.first.visualPosition, 0.75)
- compare(control.second.visualPosition, 0.0)
- }
-
- function test_orientation() {
- var control = createTemporaryObject(sliderComponent, testCase)
- verify(control)
-
- compare(control.orientation, Qt.Horizontal)
- compare(control.horizontal, true)
- compare(control.vertical, false)
- verify(control.width > control.height)
-
- control.orientation = Qt.Vertical
- compare(control.orientation, Qt.Vertical)
- compare(control.horizontal, false)
- compare(control.vertical, true)
- verify(control.width < control.height)
- }
-
- function test_mouse_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, live: false },
- { tag: "vertical", orientation: Qt.Vertical, live: false },
- { tag: "horizontal:live", orientation: Qt.Horizontal, live: true },
- { tag: "vertical:live", orientation: Qt.Vertical, live: true }
- ]
- }
-
- function test_mouse(data) {
- var control = createTemporaryObject(sliderComponent, testCase, { orientation: data.orientation, live: data.live })
- verify(control)
-
- var firstPressedSpy = signalSpy.createObject(control, {target: control.first, signalName: "pressedChanged"})
- verify(firstPressedSpy.valid)
-
- var firstMovedSpy = signalSpy.createObject(control, {target: control.first, signalName: "moved"})
- verify(firstMovedSpy.valid)
-
- var secondPressedSpy = signalSpy.createObject(control, {target: control.second, signalName: "pressedChanged"})
- verify(secondPressedSpy.valid)
-
- var secondMovedSpy = signalSpy.createObject(control, {target: control.second, signalName: "moved"})
- verify(secondMovedSpy.valid)
-
- // Press and release the first handle without moving it.
- mousePress(control, control.leftPadding, control.height - control.bottomPadding, Qt.LeftButton)
- compare(firstPressedSpy.count, 1)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 0)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- mouseRelease(control, control.leftPadding, control.height - control.bottomPadding, Qt.LeftButton)
- compare(firstPressedSpy.count, 2)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 0)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- // Press and release the second handle without moving it.
- mousePress(control, control.width - control.rightPadding, control.topPadding, Qt.LeftButton)
- compare(firstPressedSpy.count, 2)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 1)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, true)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- mouseRelease(control, control.width - control.rightPadding, control.topPadding, Qt.LeftButton)
- compare(firstPressedSpy.count, 2)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 2)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- // Press and release on the bottom left corner of the control without moving the handle.
- mousePress(control, 0, control.height, Qt.LeftButton)
- compare(firstPressedSpy.count, 3)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 2)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- mouseRelease(control, 0, control.height, Qt.LeftButton)
- compare(firstPressedSpy.count, 4)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 2)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- // Drag the first handle.
- mousePress(control, control.leftPadding, control.height - control.bottomPadding, Qt.LeftButton)
- compare(firstPressedSpy.count, 5)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 2)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- var horizontal = control.orientation === Qt.Horizontal
- var toX = horizontal ? control.width * 0.5 : control.first.handle.x
- var toY = horizontal ? control.first.handle.y : control.height * 0.5
- mouseMove(control, toX, toY)
- compare(firstPressedSpy.count, 5)
- compare(firstMovedSpy.count, 1)
- compare(secondPressedSpy.count, 2)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, true)
- compare(control.first.value, data.live ? 0.5 : 0.0)
- compare(control.first.position, 0.5)
- compare(control.first.visualPosition, 0.5)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
- compare(control.second.visualPosition, horizontal ? 1.0 : 0.0)
-
- mouseRelease(control, toX, toY, Qt.LeftButton)
- compare(firstPressedSpy.count, 6)
- compare(firstMovedSpy.count, 1)
- compare(secondPressedSpy.count, 2)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.5)
- compare(control.first.position, 0.5)
- compare(control.first.visualPosition, 0.5)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
- compare(control.second.visualPosition, horizontal ? 1.0 : 0.0)
- }
-
- function test_touch_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, live: false },
- { tag: "vertical", orientation: Qt.Vertical, live: false },
- { tag: "horizontal:live", orientation: Qt.Horizontal, live: true },
- { tag: "vertical:live", orientation: Qt.Vertical, live: true }
- ]
- }
-
- function test_touch(data) {
- var control = createTemporaryObject(sliderComponent, testCase, { orientation: data.orientation, live: data.live })
- verify(control)
-
- var firstPressedSpy = signalSpy.createObject(control, {target: control.first, signalName: "pressedChanged"})
- verify(firstPressedSpy.valid)
-
- var firstMovedSpy = signalSpy.createObject(control, {target: control.first, signalName: "moved"})
- verify(firstMovedSpy.valid)
-
- var secondPressedSpy = signalSpy.createObject(control, {target: control.second, signalName: "pressedChanged"})
- verify(secondPressedSpy.valid)
-
- var secondMovedSpy = signalSpy.createObject(control, {target: control.second, signalName: "moved"})
- verify(secondMovedSpy.valid)
-
- // Press and release the first handle without moving it.
- var touch = touchEvent(control)
- touch.press(0, control, control.width * 0.25, control.height * 0.75).commit()
- compare(firstPressedSpy.count, 1)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 0)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- touch.release(0, control, control.width * 0.25, control.height * 0.75).commit()
- compare(firstPressedSpy.count, 2)
- compare(firstMovedSpy.count, 0)
- compare(secondPressedSpy.count, 0)
- compare(secondMovedSpy.count, 0)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- // Press and release the second handle without moving it.
- touch.press(0, control, control.width * 0.75, control.height * 0.25).commit()
- compare(firstPressedSpy.count, 2)
- compare(secondPressedSpy.count, 1)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, true)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- touch.release(0, control, control.width * 0.75, control.height * 0.25).commit()
- compare(firstPressedSpy.count, 2)
- compare(secondPressedSpy.count, 2)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- // Press and release on the bottom left corner of the control without moving the handle.
- touch.press(0, control, 0, control.height).commit()
- compare(firstPressedSpy.count, 3)
- compare(secondPressedSpy.count, 2)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- touch.release(0, control, 0, control.height).commit()
- compare(firstPressedSpy.count, 4)
- compare(secondPressedSpy.count, 2)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- touch.press(0, control, control.first.handle.x, control.first.handle.y).commit()
- compare(firstPressedSpy.count, 5)
- compare(secondPressedSpy.count, 2)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
-
- // Drag the first handle.
- var horizontal = control.orientation === Qt.Horizontal
- var toX = horizontal ? control.width * 0.5 : control.first.handle.x
- var toY = horizontal ? control.first.handle.y : control.height * 0.5
- touch.move(0, control, toX, toY).commit()
- compare(firstPressedSpy.count, 5)
- compare(secondPressedSpy.count, 2)
- compare(control.first.pressed, true)
- compare(control.first.value, data.live ? 0.5 : 0.0)
- compare(control.first.position, 0.5)
- compare(control.first.visualPosition, 0.5)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
- compare(control.second.visualPosition, horizontal ? 1.0 : 0.0)
-
- touch.release(0, control, toX, toY).commit()
- compare(firstPressedSpy.count, 6)
- compare(secondPressedSpy.count, 2)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.5)
- compare(control.first.position, 0.5)
- compare(control.first.visualPosition, 0.5)
- compare(control.second.pressed, false)
- compare(control.second.value, 1.0)
- compare(control.second.position, 1.0)
- compare(control.second.visualPosition, horizontal ? 1.0 : 0.0)
- }
-
- function test_multiTouch() {
- var control1 = createTemporaryObject(sliderComponent, testCase)
- verify(control1)
-
- // press and move the first handle of the first slider
- var touch = touchEvent(control1)
- touch.press(0, control1, 0, 0).commit().move(0, control1, control1.width / 2, control1.height / 2).commit()
- compare(control1.first.pressed, true)
- compare(control1.first.position, 0.5)
- compare(control1.second.pressed, false)
- compare(control1.second.position, 1.0)
-
- // press and move the second handle of the first slider
- touch.stationary(0).press(1, control1, control1.width, control1.height).commit()
- touch.stationary(0).move(1, control1, control1.width / 2, control1.height / 2).commit()
- compare(control1.first.pressed, true)
- compare(control1.first.position, 0.5)
- compare(control1.second.pressed, true)
- compare(control1.second.position, 0.5)
-
- var control2 = createTemporaryObject(sliderComponent, testCase, {y: control1.height})
- verify(control2)
-
- // press and move the first handle of the second slider
- touch.stationary(0).stationary(1).press(2, control2, 0, 0).commit()
- touch.stationary(0).stationary(1).move(2, control2, control2.width / 2, control2.height / 2).commit()
- compare(control1.first.pressed, true)
- compare(control1.first.position, 0.5)
- compare(control1.second.pressed, true)
- compare(control1.second.position, 0.5)
- compare(control2.first.pressed, true)
- compare(control2.first.position, 0.5)
- compare(control2.second.pressed, false)
- compare(control2.second.position, 1.0)
-
- // press and move the second handle of the second slider
- touch.stationary(0).stationary(1).stationary(2).press(3, control2, control2.width, control2.height).commit()
- touch.stationary(0).stationary(1).stationary(2).move(3, control2, control2.width / 2, control2.height / 2).commit()
- compare(control1.first.pressed, true)
- compare(control1.first.position, 0.5)
- compare(control1.second.pressed, true)
- compare(control1.second.position, 0.5)
- compare(control2.first.pressed, true)
- compare(control2.first.position, 0.5)
- compare(control2.second.pressed, true)
- compare(control2.second.position, 0.5)
-
- // release the both handles of the both sliders
- touch.release(0, control1).release(1, control1).release(2, control2).release(3, control2).commit()
- compare(control1.first.pressed, false)
- compare(control1.first.position, 0.5)
- compare(control1.second.pressed, false)
- compare(control1.second.position, 0.5)
- compare(control2.first.pressed, false)
- compare(control2.first.position, 0.5)
- compare(control2.second.pressed, false)
- compare(control2.second.position, 0.5)
- }
-
- function test_overlappingHandles() {
- var control = createTemporaryObject(sliderComponent, testCase, { orientation: data.orientation })
- verify(control)
-
- // By default, we force the second handle to be after the first in
- // terms of stacking order *and* z value.
- compare(control.second.handle.z, 1)
- compare(control.first.handle.z, 0)
- control.first.value = 0
- control.second.value = 0
-
- // Both are at the same position, so it doesn't matter whose coordinates we use.
- mousePress(control, control.first.handle.x, control.first.handle.y, Qt.LeftButton)
- verify(control.second.pressed)
- compare(control.second.handle.z, 1)
- compare(control.first.handle.z, 0)
-
- // Move the second handle out of the way.
- mouseMove(control, control.width, control.first.handle.y)
- mouseRelease(control, control.width, control.first.handle.y, Qt.LeftButton)
- verify(!control.second.pressed)
- compare(control.second.value, 1.0)
- compare(control.second.handle.z, 1)
- compare(control.first.handle.z, 0)
-
- // Move the first handle on top of the second.
- mousePress(control, control.first.handle.x, control.first.handle.y, Qt.LeftButton)
- verify(control.first.pressed)
- compare(control.first.handle.z, 1)
- compare(control.second.handle.z, 0)
-
- mouseMove(control, control.width, control.first.handle.y)
- mouseRelease(control, control.width, control.first.handle.y, Qt.LeftButton)
- verify(!control.first.pressed)
- compare(control.first.handle.z, 1)
- compare(control.second.handle.z, 0)
-
- // The most recently pressed handle (the first) should have the higher z value.
- mousePress(control, control.first.handle.x, control.first.handle.y, Qt.LeftButton)
- verify(control.first.pressed)
- compare(control.first.handle.z, 1)
- compare(control.second.handle.z, 0)
-
- mouseRelease(control, control.first.handle.x, control.first.handle.y, Qt.LeftButton)
- verify(!control.first.pressed)
- compare(control.first.handle.z, 1)
- compare(control.second.handle.z, 0)
- }
-
- function test_keys_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, decrease: Qt.Key_Left, increase: Qt.Key_Right },
- { tag: "vertical", orientation: Qt.Vertical, decrease: Qt.Key_Down, increase: Qt.Key_Up }
- ]
- }
-
- function test_keys(data) {
- var control = createTemporaryObject(sliderComponent, testCase, { orientation: data.orientation })
- verify(control)
-
- var pressedCount = 0
-
- var firstPressedSpy = signalSpy.createObject(control, {target: control.first, signalName: "pressedChanged"})
- verify(firstPressedSpy.valid)
-
- control.first.handle.forceActiveFocus()
- verify(control.first.handle.activeFocus)
-
- control.first.value = 0.5
-
- for (var d1 = 1; d1 <= 10; ++d1) {
- keyPress(data.decrease)
- compare(control.first.pressed, true)
- compare(firstPressedSpy.count, ++pressedCount)
-
- compare(control.first.value, Math.max(0.0, 0.5 - d1 * 0.1))
- compare(control.first.value, control.first.position)
-
- keyRelease(data.decrease)
- compare(control.first.pressed, false)
- compare(firstPressedSpy.count, ++pressedCount)
- }
-
- for (var i1 = 1; i1 <= 20; ++i1) {
- keyPress(data.increase)
- compare(control.first.pressed, true)
- compare(firstPressedSpy.count, ++pressedCount)
-
- compare(control.first.value, Math.min(1.0, 0.0 + i1 * 0.1))
- compare(control.first.value, control.first.position)
-
- keyRelease(data.increase)
- compare(control.first.pressed, false)
- compare(firstPressedSpy.count, ++pressedCount)
- }
-
- control.first.value = 0;
- control.stepSize = 0.25
-
- pressedCount = 0;
- var secondPressedSpy = signalSpy.createObject(control, {target: control.second, signalName: "pressedChanged"})
- verify(secondPressedSpy.valid)
-
- control.second.handle.forceActiveFocus()
- verify(control.second.handle.activeFocus)
-
- for (var d2 = 1; d2 <= 10; ++d2) {
- keyPress(data.decrease)
- compare(control.second.pressed, true)
- compare(secondPressedSpy.count, ++pressedCount)
-
- compare(control.second.value, Math.max(0.0, 1.0 - d2 * 0.25))
- compare(control.second.value, control.second.position)
-
- keyRelease(data.decrease)
- compare(control.second.pressed, false)
- compare(secondPressedSpy.count, ++pressedCount)
- }
-
- for (var i2 = 1; i2 <= 10; ++i2) {
- keyPress(data.increase)
- compare(control.second.pressed, true)
- compare(secondPressedSpy.count, ++pressedCount)
-
- compare(control.second.value, Math.min(1.0, 0.0 + i2 * 0.25))
- compare(control.second.value, control.second.position)
-
- keyRelease(data.increase)
- compare(control.second.pressed, false)
- compare(secondPressedSpy.count, ++pressedCount)
- }
- }
-
- function test_padding() {
- // test with "unbalanced" paddings (left padding != right padding) to ensure
- // that the slider position calculation is done taking padding into account
- // ==> the position is _not_ 0.5 in the middle of the control
- var control = createTemporaryObject(sliderComponent, testCase, { leftPadding: 10, rightPadding: 20, live: false })
- verify(control)
-
- var firstPressedSpy = signalSpy.createObject(control, {target: control.first, signalName: "pressedChanged"})
- verify(firstPressedSpy.valid)
-
- mousePress(control, control.first.handle.x, control.first.handle.y, Qt.LeftButton)
- compare(firstPressedSpy.count, 1)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.first.visualPosition, 0.0)
-
- mouseMove(control, control.leftPadding + control.availableWidth * 0.5, control.height * 0.5, 0)
- compare(firstPressedSpy.count, 1)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.5)
- compare(control.first.visualPosition, 0.5)
-
- mouseMove(control, control.width * 0.5, control.height * 0.5, 0)
- compare(firstPressedSpy.count, 1)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- verify(control.first.position > 0.5)
- verify(control.first.visualPosition > 0.5)
-
- mouseRelease(control, control.leftPadding + control.availableWidth * 0.5, control.height * 0.5, Qt.LeftButton)
- compare(firstPressedSpy.count, 2)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.5)
- compare(control.first.position, 0.5)
- compare(control.first.visualPosition, 0.5)
-
- // RTL
- control.first.value = 0
- control.locale = Qt.locale("ar_EG")
-
- mousePress(control, control.first.handle.x + control.first.handle.width / 2,
- control.first.handle.y + control.first.handle.height / 2, Qt.LeftButton)
- compare(firstPressedSpy.count, 3)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.0)
- compare(control.first.visualPosition, 1.0)
-
- mouseMove(control, control.leftPadding + control.availableWidth * 0.5, control.height * 0.5, 0)
- compare(firstPressedSpy.count, 3)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- compare(control.first.position, 0.5)
- compare(control.first.visualPosition, 0.5)
-
- mouseMove(control, control.width * 0.5, control.height * 0.5, 0)
- compare(firstPressedSpy.count, 3)
- compare(control.first.pressed, true)
- compare(control.first.value, 0.0)
- verify(control.first.position < 0.5)
- verify(control.first.visualPosition > 0.5)
-
- mouseRelease(control, control.leftPadding + control.availableWidth * 0.5, control.height * 0.5, Qt.LeftButton)
- compare(firstPressedSpy.count, 4)
- compare(control.first.pressed, false)
- compare(control.first.value, 0.5)
- compare(control.first.position, 0.5)
- compare(control.first.visualPosition, 0.5)
- }
-
- function test_snapMode_data(immediate) {
- return [
- { tag: "NoSnap", snapMode: RangeSlider.NoSnap, from: 0, to: 2, values: [0, 0, 0.25], positions: [0, 0.1, 0.1] },
- { tag: "SnapAlways (0..2)", snapMode: RangeSlider.SnapAlways, from: 0, to: 2, values: [0.0, 0.0, 0.2], positions: [0.0, 0.1, 0.1] },
- { tag: "SnapAlways (1..3)", snapMode: RangeSlider.SnapAlways, from: 1, to: 3, values: [1.0, 1.0, 1.2], positions: [0.0, 0.1, 0.1] },
- { tag: "SnapAlways (-1..1)", snapMode: RangeSlider.SnapAlways, from: -1, to: 1, values: [0.0, 0.0, -0.8], positions: [immediate ? 0.0 : 0.5, 0.1, 0.1] },
- { tag: "SnapAlways (1..-1)", snapMode: RangeSlider.SnapAlways, from: 1, to: -1, values: [0.0, 0.0, 0.8], positions: [immediate ? 0.0 : 0.5, 0.1, 0.1] },
- { tag: "SnapOnRelease (0..2)", snapMode: RangeSlider.SnapOnRelease, from: 0, to: 2, values: [0.0, 0.0, 0.2], positions: [0.0, 0.1, 0.1] },
- { tag: "SnapOnRelease (1..3)", snapMode: RangeSlider.SnapOnRelease, from: 1, to: 3, values: [1.0, 1.0, 1.2], positions: [0.0, 0.1, 0.1] },
- { tag: "SnapOnRelease (-1..1)", snapMode: RangeSlider.SnapOnRelease, from: -1, to: 1, values: [0.0, 0.0, -0.8], positions: [immediate ? 0.0 : 0.5, 0.1, 0.1] },
- { tag: "SnapOnRelease (1..-1)", snapMode: RangeSlider.SnapOnRelease, from: 1, to: -1, values: [0.0, 0.0, 0.8], positions: [immediate ? 0.0 : 0.5, 0.1, 0.1] }
- ]
- }
-
- function test_snapMode_mouse_data() {
- return test_snapMode_data(true)
- }
-
- function test_snapMode_mouse(data) {
- var control = createTemporaryObject(sliderComponent, testCase, {snapMode: data.snapMode, from: data.from, to: data.to, stepSize: 0.2, live: false})
- verify(control)
-
- control.first.value = 0
- control.second.value = data.to
-
- var fuzz = 0.05
-
- mousePress(control, control.leftPadding)
- compare(control.first.pressed, true)
- compare(control.first.value, data.values[0])
- compare(control.first.position, data.positions[0])
-
- mouseMove(control, control.leftPadding + 0.15 * (control.availableWidth + control.first.handle.width / 2))
- compare(control.first.pressed, true)
- fuzzyCompare(control.first.value, data.values[1], fuzz)
- fuzzyCompare(control.first.position, data.positions[1], fuzz)
-
- mouseRelease(control, control.leftPadding + 0.15 * (control.availableWidth + control.first.handle.width / 2))
- compare(control.first.pressed, false)
- fuzzyCompare(control.first.value, data.values[2], fuzz)
- fuzzyCompare(control.first.position, data.positions[2], fuzz)
- }
-
- function test_snapMode_touch_data() {
- return test_snapMode_data(false)
- }
-
- function test_snapMode_touch(data) {
- var control = createTemporaryObject(sliderComponent, testCase, {snapMode: data.snapMode, from: data.from, to: data.to, stepSize: 0.2, live: false})
- verify(control)
-
- control.first.value = 0
- control.second.value = data.to
-
- var fuzz = 0.05
-
- var touch = touchEvent(control)
- touch.press(0, control, control.first.handle.x, control.first.handle.y).commit()
- compare(control.first.pressed, true)
- compare(control.first.value, data.values[0])
- compare(control.first.position, data.positions[0])
-
- touch.move(0, control, control.leftPadding + 0.15 * (control.availableWidth + control.first.handle.width / 2)).commit()
- compare(control.first.pressed, true)
- fuzzyCompare(control.first.value, data.values[1], fuzz)
- fuzzyCompare(control.first.position, data.positions[1], fuzz)
-
- touch.release(0, control, control.leftPadding + 0.15 * (control.availableWidth + control.first.handle.width / 2)).commit()
- compare(control.first.pressed, false)
- fuzzyCompare(control.first.value, data.values[2], fuzz)
- fuzzyCompare(control.first.position, data.positions[2], fuzz)
- }
-
- function test_focus() {
- var control = createTemporaryObject(sliderComponent, testCase)
- verify(control)
-
- compare(control.activeFocus, false)
-
- // focus is forwarded to the first handle
- control.forceActiveFocus()
- compare(control.activeFocus, true)
- compare(control.first.handle.activeFocus, true)
- compare(control.second.handle.activeFocus, false)
-
- // move focus to the second handle
- control.second.handle.forceActiveFocus()
- compare(control.activeFocus, true)
- compare(control.first.handle.activeFocus, false)
- compare(control.second.handle.activeFocus, true)
-
- // clear focus
- control.focus = false
- compare(control.activeFocus, false)
- compare(control.first.handle.activeFocus, false)
- compare(control.second.handle.activeFocus, false)
-
- // focus is forwarded to the second handle (where it previously was in the focus scope)
- control.forceActiveFocus()
- compare(control.activeFocus, true)
- compare(control.first.handle.activeFocus, false)
- compare(control.second.handle.activeFocus, true)
- }
-
- function test_hover_data() {
- return [
- { tag: "first:true", node: "first", hoverEnabled: true },
- { tag: "first:false", node: "first", hoverEnabled: false },
- { tag: "second:true", node: "second", hoverEnabled: true },
- { tag: "second:false", node: "second", hoverEnabled: false }
- ]
- }
-
- function test_hover(data) {
- var control = createTemporaryObject(sliderComponent, testCase, {hoverEnabled: data.hoverEnabled})
- verify(control)
-
- var node = control[data.node]
- compare(control.hovered, false)
- compare(node.hovered, false)
-
- mouseMove(control, node.handle.x + node.handle.width / 2, node.handle.y + node.handle.height / 2)
- compare(control.hovered, data.hoverEnabled)
- compare(node.hovered, data.hoverEnabled && node.handle.enabled)
-
- mouseMove(control, node.handle.x - 1, node.handle.y - 1)
- compare(node.hovered, false)
- }
-
- function test_nullHandles() {
- var control = createTemporaryObject(sliderComponent, testCase, {"second.value": 1})
- verify(control)
-
- verify(control.first.handle)
- verify(control.second.handle)
-
- control.first.handle = null
- control.second.handle = null
-
- mousePress(control, control.leftPadding, control.height / 2)
- verify(control.first.pressed, true)
- compare(control.second.pressed, false)
-
- mouseRelease(control, control.leftPadding, control.height / 2)
- compare(control.first.pressed, false)
- compare(control.second.pressed, false)
-
- mousePress(control, control.width - control.rightPadding, control.height / 2)
- compare(control.first.pressed, false)
- compare(control.second.pressed, true)
-
- mouseRelease(control, control.width - control.rightPadding, control.height / 2)
- compare(control.first.pressed, false)
- compare(control.second.pressed, false)
- }
-
- function test_touchDragThreshold_data() {
- var d1 = 3; var d2 = 7;
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, dx1: d1, dy1: 0, dx2: d2, dy2: 0 },
- { tag: "vertical", orientation: Qt.Vertical, dx1: 0, dy1: -d1, dx2: 0, dy2: -d2 },
- { tag: "horizontal2", orientation: Qt.Horizontal, dx1: -d1, dy1: 0, dx2: -d2, dy2: 0 },
- { tag: "vertical2", orientation: Qt.Vertical, dx1: 0, dy1: d1, dx2: 0, dy2: d2 },
- ]
- }
-
- function test_touchDragThreshold(data) {
- var control = createTemporaryObject(sliderComponent, testCase, {touchDragThreshold: 10, live: true, orientation: data.orientation, first: {value: 0}, second: {value: 1}})
- verify(control)
- compare(control.touchDragThreshold, 10)
-
- var valueChangedCount = 0
- var valueChangedSpy = signalSpy.createObject(control, {target: control, signalName: "touchDragThresholdChanged"})
- verify(valueChangedSpy.valid)
-
- control.touchDragThreshold = undefined
- compare(control.touchDragThreshold, -1) // reset to -1
- compare(valueChangedSpy.count, ++valueChangedCount)
-
- var t = 5
- control.touchDragThreshold = t
- compare(control.touchDragThreshold, t)
- compare(valueChangedSpy.count, ++valueChangedCount)
-
- control.touchDragThreshold = t
- compare(control.touchDragThreshold, t)
- compare(valueChangedSpy.count, valueChangedCount)
-
- var pressedCount = 0
- var pressedCount2 = 0
- var visualPositionCount = 0
- var visualPositionCount2 = 0
-
- var pressedSpy = signalSpy.createObject(control, {target: control.first, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
- var pressedSpy2 = signalSpy.createObject(control, {target: control.second, signalName: "pressedChanged"})
- verify(pressedSpy2.valid)
-
- var visualPositionSpy = signalSpy.createObject(control, {target: control.first, signalName: "visualPositionChanged"})
- verify(visualPositionSpy.valid)
- var visualPositionSpy2 = signalSpy.createObject(control, {target: control.second, signalName: "visualPositionChanged"})
- verify(visualPositionSpy2.valid)
-
- var touch = touchEvent(control)
- control.first.value = 0.4
- control.second.value = 1
- var x0 = control.first.handle.x + control.first.handle.width * 0.5
- var y0 = control.first.handle.y + control.first.handle.height * 0.5
- touch.press(0, control, x0, y0).commit()
- compare(pressedSpy.count, ++pressedCount)
- compare(control.first.pressed, true)
- compare(visualPositionSpy.count, ++visualPositionCount)
-
- touch.move(0, control, x0 + data.dx1, y0 + data.dy1).commit()
- compare(pressedSpy.count, pressedCount)
- compare(control.first.pressed, true)
- compare(visualPositionSpy.count, visualPositionCount)
-
- touch.move(0, control, x0 + data.dx2, y0 + data.dy2).commit()
- compare(pressedSpy.count, pressedCount)
- compare(control.first.pressed, true)
- compare(visualPositionSpy.count, ++visualPositionCount)
-
- touch.release(0, control, x0 + data.dx2, y0 + data.dy2).commit()
-
- control.first.value = 0
- control.second.value = 0.6
- x0 = control.second.handle.x + control.second.handle.width * 0.5
- y0 = control.second.handle.y + control.second.handle.height * 0.5
- touch.press(0, control, x0, y0).commit()
- compare(pressedSpy2.count, ++pressedCount2)
- compare(control.second.pressed, true)
- compare(visualPositionSpy2.count, ++visualPositionCount2)
-
- touch.move(0, control, x0 + data.dx1, y0 + data.dy1).commit()
- compare(pressedSpy2.count, pressedCount2)
- compare(control.second.pressed, true)
- compare(visualPositionSpy2.count, visualPositionCount2)
-
- touch.move(0, control, x0 + data.dx2, y0 + data.dy2).commit()
- compare(pressedSpy2.count, pressedCount2)
- compare(control.second.pressed, true)
- compare(visualPositionSpy2.count, ++visualPositionCount2)
- touch.release(0, control, x0 + data.dx2, y0 + data.dy2).commit()
- }
-
- function test_valueAt_data() {
- return [
- { tag: "0.0..1.0", from: 0.0, to: 1.0, values: [0.0, 0.2, 0.5, 1.0] },
- { tag: "0..100", from: 0, to: 100, values: [0, 20, 50, 100] },
- { tag: "100..-100", from: 100, to: -100, values: [100, 60, 0, -100] },
- { tag: "-7..7", from: -7, to: 7, stepSize: 1.0, values: [-7.0, -4.0, 0.0, 7.0] },
- { tag: "-3..7", from: -3, to: 7, stepSize: 5.0, values: [-3.0, -3.0, 2.0, 7.0] },
- ]
- }
-
- function test_valueAt(data) {
- var control = createTemporaryObject(sliderComponent, testCase,
- { from: data.from, to: data.to, stepSize: data.stepSize })
- verify(control)
-
- compare(control.valueAt(0.0), data.values[0])
- compare(control.valueAt(0.2), data.values[1])
- compare(control.valueAt(0.5), data.values[2])
- compare(control.valueAt(1.0), data.values[3])
- }
-}
diff --git a/tests/auto/controls/data/tst_roundbutton.qml b/tests/auto/controls/data/tst_roundbutton.qml
deleted file mode 100644
index 5f4cc5fa..00000000
--- a/tests/auto/controls/data/tst_roundbutton.qml
+++ /dev/null
@@ -1,166 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "RoundButton"
-
- Component {
- id: roundButton
- RoundButton { }
- }
-
- function test_radius() {
- var control = createTemporaryObject(roundButton, testCase);
- verify(control);
-
- var implicitRadius = control.radius;
- compare(implicitRadius, Math.min(control.width, control.height) / 2);
-
- control.radius = 10;
- compare(control.radius, 10);
-
- control.radius = undefined;
- compare(control.radius, implicitRadius);
-
- control.width = -1;
- compare(control.radius, 0);
-
- control.width = 10;
- compare(control.radius, 5);
- }
-
- function test_spacing() {
- var control = createTemporaryObject(roundButton, testCase, { text: "Some long, long, long text" })
- verify(control)
- verify(control.contentItem.implicitWidth + control.leftPadding + control.rightPadding > control.background.implicitWidth)
-
- var textLabel = findChild(control.contentItem, "label")
- verify(textLabel)
-
- // The implicitWidth of the IconLabel that all buttons use as their contentItem
- // should be equal to the implicitWidth of the Text while no icon is set.
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // That means that spacing shouldn't affect it.
- control.spacing += 100
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // The implicitWidth of the Button itself should, therefore, also never include spacing while no icon is set.
- compare(control.implicitWidth, textLabel.implicitWidth + control.leftPadding + control.rightPadding)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: RoundButton.IconOnly },
- { "tag": "TextOnly", display: RoundButton.TextOnly },
- { "tag": "TextUnderIcon", display: RoundButton.TextUnderIcon },
- { "tag": "TextBesideIcon", display: RoundButton.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: RoundButton.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: RoundButton.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: RoundButton.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: RoundButton.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(roundButton, testCase, {
- text: "RoundButton",
- display: data.display,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- switch (control.display) {
- case RoundButton.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case RoundButton.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case RoundButton.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case RoundButton.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_scrollbar.qml b/tests/auto/controls/data/tst_scrollbar.qml
deleted file mode 100644
index 9d21fa8b..00000000
--- a/tests/auto/controls/data/tst_scrollbar.qml
+++ /dev/null
@@ -1,842 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "ScrollBar"
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- Component {
- id: scrollBar
- ScrollBar {
- padding: 0
- minimumSize: 0
- }
- }
-
- Component {
- id: flickable
- Flickable {
- width: 100
- height: 100
- contentWidth: 200
- contentHeight: 200
- boundsBehavior: Flickable.StopAtBounds
- flickableDirection: Flickable.HorizontalAndVerticalFlick
- }
- }
-
- function test_attach() {
- var container = createTemporaryObject(flickable, testCase)
- verify(container)
- waitForRendering(container)
-
- var vertical = scrollBar.createObject()
- verify(!vertical.parent)
- compare(vertical.size, 0.0)
- compare(vertical.position, 0.0)
- compare(vertical.active, false)
- compare(vertical.orientation, Qt.Vertical)
- compare(vertical.x, 0)
- compare(vertical.y, 0)
- verify(vertical.width > 0)
- verify(vertical.height > 0)
-
- container.ScrollBar.vertical = vertical
- compare(vertical.parent, container)
- compare(vertical.orientation, Qt.Vertical)
- compare(vertical.size, container.visibleArea.heightRatio)
- compare(vertical.position, container.visibleArea.yPosition)
- compare(vertical.x, container.width - vertical.width)
- compare(vertical.y, 0)
- verify(vertical.width > 0)
- compare(vertical.height, container.height)
- // vertical scroll bar follows flickable's width
- container.width += 10
- compare(vertical.x, container.width - vertical.width)
- vertical.implicitWidth -= 2
- compare(vertical.x, container.width - vertical.width)
- // ...unless explicitly positioned
- vertical.x = 123
- container.width += 10
- compare(vertical.x, 123)
-
- var horizontal = createTemporaryObject(scrollBar, null)
- verify(!horizontal.parent)
- compare(horizontal.size, 0.0)
- compare(horizontal.position, 0.0)
- compare(horizontal.active, false)
- compare(horizontal.orientation, Qt.Vertical)
- compare(horizontal.x, 0)
- compare(horizontal.y, 0)
- verify(horizontal.width > 0)
- verify(horizontal.height > 0)
-
- container.ScrollBar.horizontal = horizontal
- compare(horizontal.parent, container)
- compare(horizontal.orientation, Qt.Horizontal)
- compare(horizontal.size, container.visibleArea.widthRatio)
- compare(horizontal.position, container.visibleArea.xPosition)
- compare(horizontal.x, 0)
- compare(horizontal.y, container.height - horizontal.height)
- compare(horizontal.width, container.width)
- verify(horizontal.height > 0)
- // horizontal scroll bar follows flickable's height
- container.height += 10
- compare(horizontal.y, container.height - horizontal.height)
- horizontal.implicitHeight -= 2
- compare(horizontal.y, container.height - horizontal.height)
- // ...unless explicitly positioned
- horizontal.y = 123
- container.height += 10
- compare(horizontal.y, 123)
-
- var velocity = container.maximumFlickVelocity
-
- compare(container.flicking, false)
- container.flick(-velocity, -velocity)
- compare(container.flicking, true)
- tryCompare(container, "flicking", false)
-
- compare(vertical.size, container.visibleArea.heightRatio)
- compare(vertical.position, container.visibleArea.yPosition)
- compare(horizontal.size, container.visibleArea.widthRatio)
- compare(horizontal.position, container.visibleArea.xPosition)
-
- compare(container.flicking, false)
- container.flick(velocity, velocity)
- compare(container.flicking, true)
- tryCompare(container, "flicking", false)
-
- compare(vertical.size, container.visibleArea.heightRatio)
- compare(vertical.position, container.visibleArea.yPosition)
- compare(horizontal.size, container.visibleArea.widthRatio)
- compare(horizontal.position, container.visibleArea.xPosition)
-
- var oldY = vertical.y
- var oldHeight = vertical.height
- vertical.parent = testCase
- vertical.y -= 10
- container.height += 10
- compare(vertical.y, oldY - 10)
- compare(vertical.height, oldHeight)
-
- var oldX = horizontal.x
- var oldWidth = horizontal.width
- horizontal.parent = testCase
- horizontal.x -= 10
- container.width += 10
- compare(horizontal.x, oldX - 10)
- compare(horizontal.width, oldWidth)
- }
-
- function test_mouse_data() {
- return [
- { tag: "horizontal", properties: { visible: true, orientation: Qt.Horizontal, width: testCase.width } },
- { tag: "vertical", properties: { visible: true, orientation: Qt.Vertical, height: testCase.height } }
- ]
- }
-
- function test_mouse(data) {
- var control = createTemporaryObject(scrollBar, testCase, data.properties)
- verify(control)
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- mousePress(control, 0, 0, Qt.LeftButton)
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- compare(control.position, 0.0)
-
- mouseMove(control, -control.width, -control.height, 0)
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- compare(control.position, 0.0)
-
- mouseMove(control, control.width * 0.5, control.height * 0.5, 0)
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- verify(control.position, 0.5)
-
- mouseRelease(control, control.width * 0.5, control.height * 0.5, Qt.LeftButton)
- compare(pressedSpy.count, 2)
- compare(control.pressed, false)
- compare(control.position, 0.5)
-
- mousePress(control, control.width, control.height, Qt.LeftButton)
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.position, 1.0)
-
- mouseMove(control, control.width * 2, control.height * 2, 0)
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.position, 1.0)
-
- mouseMove(control, control.width * 0.75, control.height * 0.75, 0)
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.position, 0.75)
-
- mouseRelease(control, control.width * 0.25, control.height * 0.25, Qt.LeftButton)
- compare(pressedSpy.count, 4)
- compare(control.pressed, false)
- compare(control.position, 0.25)
- }
-
- function test_touch_data() {
- return [
- { tag: "horizontal", properties: { visible: true, orientation: Qt.Horizontal, width: testCase.width } },
- { tag: "vertical", properties: { visible: true, orientation: Qt.Vertical, height: testCase.height } }
- ]
- }
-
- function test_touch(data) {
- var control = createTemporaryObject(scrollBar, testCase, data.properties)
- verify(control)
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- var touch = touchEvent(control)
-
- touch.press(0, control, 0, 0).commit()
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- compare(control.position, 0.0)
-
- touch.move(0, control, -control.width, -control.height).commit()
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- compare(control.position, 0.0)
-
- touch.move(0, control, control.width * 0.5, control.height * 0.5).commit()
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- verify(control.position, 0.5)
-
- touch.release(0, control, control.width * 0.5, control.height * 0.5).commit()
- compare(pressedSpy.count, 2)
- compare(control.pressed, false)
- compare(control.position, 0.5)
-
- touch.press(0, control, control.width, control.height).commit()
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.position, 0.5)
-
- touch.move(0, control, control.width * 2, control.height * 2).commit()
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.position, 1.0)
-
- touch.move(0, control, control.width * 0.75, control.height * 0.75).commit()
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.position, 0.75)
-
- touch.release(0, control, control.width * 0.25, control.height * 0.25).commit()
- compare(pressedSpy.count, 4)
- compare(control.pressed, false)
- compare(control.position, 0.25)
- }
-
- function test_multiTouch() {
- var control1 = createTemporaryObject(scrollBar, testCase)
- verify(control1)
-
- var pressedCount1 = 0
- var movedCount1 = 0
-
- var pressedSpy1 = signalSpy.createObject(control1, {target: control1, signalName: "pressedChanged"})
- verify(pressedSpy1.valid)
-
- var positionSpy1 = signalSpy.createObject(control1, {target: control1, signalName: "positionChanged"})
- verify(positionSpy1.valid)
-
- var touch = touchEvent(control1)
- touch.press(0, control1, 0, 0).commit().move(0, control1, control1.width, control1.height).commit()
-
- compare(pressedSpy1.count, ++pressedCount1)
- compare(positionSpy1.count, ++movedCount1)
- compare(control1.pressed, true)
- compare(control1.position, 1.0)
-
- // second touch point on the same control is ignored
- touch.stationary(0).press(1, control1, 0, 0).commit()
- touch.stationary(0).move(1, control1).commit()
- touch.stationary(0).release(1).commit()
-
- compare(pressedSpy1.count, pressedCount1)
- compare(positionSpy1.count, movedCount1)
- compare(control1.pressed, true)
- compare(control1.position, 1.0)
-
- var control2 = createTemporaryObject(scrollBar, testCase, {y: control1.height})
- verify(control2)
-
- var pressedCount2 = 0
- var movedCount2 = 0
-
- var pressedSpy2 = signalSpy.createObject(control2, {target: control2, signalName: "pressedChanged"})
- verify(pressedSpy2.valid)
-
- var positionSpy2 = signalSpy.createObject(control2, {target: control2, signalName: "positionChanged"})
- verify(positionSpy2.valid)
-
- // press the second scrollbar
- touch.stationary(0).press(2, control2, 0, 0).commit()
-
- compare(pressedSpy2.count, ++pressedCount2)
- compare(positionSpy2.count, movedCount2)
- compare(control2.pressed, true)
- compare(control2.position, 0.0)
-
- compare(pressedSpy1.count, pressedCount1)
- compare(positionSpy1.count, movedCount1)
- compare(control1.pressed, true)
- compare(control1.position, 1.0)
-
- // move both scrollbars
- touch.move(0, control1).move(2, control2).commit()
-
- compare(pressedSpy2.count, pressedCount2)
- compare(positionSpy2.count, ++movedCount2)
- compare(control2.pressed, true)
- compare(control2.position, 0.5)
-
- compare(pressedSpy1.count, pressedCount1)
- compare(positionSpy1.count, ++movedCount1)
- compare(control1.pressed, true)
- compare(control1.position, 0.5)
-
- // release both scrollbars
- touch.release(0, control1).release(2, control2).commit()
-
- compare(pressedSpy2.count, ++pressedCount2)
- compare(positionSpy2.count, movedCount2)
- compare(control2.pressed, false)
- compare(control2.position, 0.5)
-
- compare(pressedSpy1.count, ++pressedCount1)
- compare(positionSpy1.count, movedCount1)
- compare(control1.pressed, false)
- compare(control1.position, 0.5)
- }
-
- function test_increase_decrease_data() {
- return [
- { tag: "increase:active", increase: true, active: true },
- { tag: "decrease:active", increase: false, active: true },
- { tag: "increase:inactive", increase: true, active: false },
- { tag: "decrease:inactive", increase: false, active: false }
- ]
- }
-
- function test_increase_decrease(data) {
- var control = createTemporaryObject(scrollBar, testCase, {position: 0.5, active: data.active})
- verify(control)
-
- if (data.increase) {
- control.increase()
- compare(control.position, 0.6)
- } else {
- control.decrease()
- compare(control.position, 0.4)
- }
- compare(control.active, data.active)
- }
-
- function test_stepSize_data() {
- return [
- { tag: "0.0", stepSize: 0.0 },
- { tag: "0.1", stepSize: 0.1 },
- { tag: "0.5", stepSize: 0.5 }
- ]
- }
-
- function test_stepSize(data) {
- var control = createTemporaryObject(scrollBar, testCase, {stepSize: data.stepSize})
- verify(control)
-
- compare(control.stepSize, data.stepSize)
- compare(control.position, 0.0)
-
- var count = 10
- if (data.stepSize !== 0.0)
- count = 1.0 / data.stepSize
-
- // increase until 1.0
- for (var i = 1; i <= count; ++i) {
- control.increase()
- compare(control.position, i / count)
- }
- control.increase()
- compare(control.position, 1.0)
-
- // decrease until 0.0
- for (var d = count - 1; d >= 0; --d) {
- control.decrease()
- compare(control.position, d / count)
- }
- control.decrease()
- compare(control.position, 0.0)
- }
-
- function test_padding_data() {
- return [
- { tag: "horizontal", properties: { visible: true, orientation: Qt.Horizontal, width: testCase.width, leftPadding: testCase.width * 0.1 } },
- { tag: "vertical", properties: { visible: true, orientation: Qt.Vertical, height: testCase.height, topPadding: testCase.height * 0.1 } }
- ]
- }
-
- function test_padding(data) {
- var control = createTemporaryObject(scrollBar, testCase, data.properties)
-
- mousePress(control, control.leftPadding + control.availableWidth * 0.5, control.topPadding + control.availableHeight * 0.5, Qt.LeftButton)
- mouseRelease(control, control.leftPadding + control.availableWidth * 0.5, control.topPadding + control.availableHeight * 0.5, Qt.LeftButton)
-
- compare(control.position, 0.5)
- }
-
- function test_warning() {
- ignoreWarning(Qt.resolvedUrl("tst_scrollbar.qml") + ":55:1: QML TestCase: ScrollBar must be attached to a Flickable or ScrollView")
- testCase.ScrollBar.vertical = null
- }
-
- function test_mirrored() {
- var container = createTemporaryObject(flickable, testCase)
- verify(container)
- waitForRendering(container)
-
- container.ScrollBar.vertical = scrollBar.createObject(container)
- compare(container.ScrollBar.vertical.x, container.width - container.ScrollBar.vertical.width)
- container.ScrollBar.vertical.locale = Qt.locale("ar_EG")
- compare(container.ScrollBar.vertical.x, 0)
- }
-
- function test_hover_data() {
- return [
- { tag: "enabled", hoverEnabled: true, interactive: true },
- { tag: "disabled", hoverEnabled: false, interactive: true },
- { tag: "non-interactive", hoverEnabled: true, interactive: false }
- ]
- }
-
- function test_hover(data) {
- var control = createTemporaryObject(scrollBar, testCase, {hoverEnabled: data.hoverEnabled, interactive: data.interactive})
- verify(control)
-
- compare(control.hovered, false)
-
- mouseMove(control)
- compare(control.hovered, data.hoverEnabled)
- compare(control.active, data.hoverEnabled && data.interactive)
-
- mouseMove(control, -1, -1)
- compare(control.hovered, false)
- compare(control.active, false)
- }
-
- function test_snapMode_data() {
- return [
- { tag: "NoSnap", snapMode: ScrollBar.NoSnap, stepSize: 0.1, size: 0.2, width: 100, steps: 80 }, /* 0.8*100 */
- { tag: "NoSnap2", snapMode: ScrollBar.NoSnap, stepSize: 0.2, size: 0.1, width: 200, steps: 180 }, /* 0.9*200 */
-
- { tag: "SnapAlways", snapMode: ScrollBar.SnapAlways, stepSize: 0.1, size: 0.2, width: 100, steps: 10 },
- { tag: "SnapAlways2", snapMode: ScrollBar.SnapAlways, stepSize: 0.2, size: 0.1, width: 200, steps: 5 },
-
- { tag: "SnapOnRelease", snapMode: ScrollBar.SnapOnRelease, stepSize: 0.1, size: 0.2, width: 100, steps: 80 }, /* 0.8*100 */
- { tag: "SnapOnRelease2", snapMode: ScrollBar.SnapOnRelease, stepSize: 0.2, size: 0.1, width: 200, steps: 180 }, /* 0.9*200 */
- ]
- }
-
- function test_snapMode_mouse_data() {
- return test_snapMode_data()
- }
-
- function test_snapMode_mouse(data) {
- var control = createTemporaryObject(scrollBar, testCase, {snapMode: data.snapMode, orientation: Qt.Horizontal, stepSize: data.stepSize, size: data.size, width: data.width})
- verify(control)
-
- function snappedPosition(pos) {
- var effectiveStep = control.stepSize * (1.0 - control.size)
- return Math.round(pos / effectiveStep) * effectiveStep
- }
-
- function boundPosition(pos) {
- return Math.max(0, Math.min(pos, 1.0 - control.size))
- }
-
- mousePress(control, 0, 0)
- compare(control.position, 0)
-
- mouseMove(control, control.width * 0.3, 0)
- var expectedMovePos = 0.3
- if (control.snapMode === ScrollBar.SnapAlways) {
- expectedMovePos = snappedPosition(expectedMovePos)
- verify(expectedMovePos !== 0.3)
- }
- compare(control.position, expectedMovePos)
-
- mouseRelease(control, control.width * 0.75, 0)
- var expectedReleasePos = 0.75
- if (control.snapMode !== ScrollBar.NoSnap) {
- expectedReleasePos = snappedPosition(expectedReleasePos)
- verify(expectedReleasePos !== 0.75)
- }
- compare(control.position, expectedReleasePos)
-
- control.position = 0
- mousePress(control, 0, 0)
-
- var steps = 0
- var prevPos = 0
-
- for (var x = 0; x < control.width; ++x) {
- mouseMove(control, x, 0)
- expectedMovePos = boundPosition(x / control.width)
- if (control.snapMode === ScrollBar.SnapAlways)
- expectedMovePos = snappedPosition(expectedMovePos)
- compare(control.position, expectedMovePos)
-
- if (control.position !== prevPos)
- ++steps
- prevPos = control.position
- }
- compare(steps, data.steps)
-
- mouseRelease(control, control.width - 1, 0)
- }
-
- function test_snapMode_touch_data() {
- return test_snapMode_data()
- }
-
- function test_snapMode_touch(data) {
- var control = createTemporaryObject(scrollBar, testCase, {snapMode: data.snapMode, orientation: Qt.Horizontal, stepSize: data.stepSize, size: data.size, width: data.width})
- verify(control)
-
- function snappedPosition(pos) {
- var effectiveStep = control.stepSize * (1.0 - control.size)
- return Math.round(pos / effectiveStep) * effectiveStep
- }
-
- function boundPosition(pos) {
- return Math.max(0, Math.min(pos, 1.0 - control.size))
- }
-
- var touch = touchEvent(control)
-
- touch.press(0, control, 0, 0).commit()
- compare(control.position, 0)
-
- touch.move(0, control, control.width * 0.3, 0).commit()
- var expectedMovePos = 0.3
- if (control.snapMode === ScrollBar.SnapAlways) {
- expectedMovePos = snappedPosition(expectedMovePos)
- verify(expectedMovePos !== 0.3)
- }
- compare(control.position, expectedMovePos)
-
- touch.release(0, control, control.width * 0.75, 0).commit()
- var expectedReleasePos = 0.75
- if (control.snapMode !== ScrollBar.NoSnap) {
- expectedReleasePos = snappedPosition(expectedReleasePos)
- verify(expectedReleasePos !== 0.75)
- }
- compare(control.position, expectedReleasePos)
-
- control.position = 0
- touch.press(0, control, 0, 0).commit()
-
- var steps = 0
- var prevPos = 0
-
- for (var x = 0; x < control.width; ++x) {
- touch.move(0, control, x, 0).commit()
- expectedMovePos = boundPosition(x / control.width)
- if (control.snapMode === ScrollBar.SnapAlways)
- expectedMovePos = snappedPosition(expectedMovePos)
- compare(control.position, expectedMovePos)
-
- if (control.position !== prevPos)
- ++steps
- prevPos = control.position
- }
- compare(steps, data.steps)
-
- touch.release(0, control, control.width - 1).commit()
- }
-
- function test_interactive_data() {
- return [
- { tag: "true", interactive: true },
- { tag: "false", interactive: false }
- ]
- }
-
- function test_interactive(data) {
- var control = createTemporaryObject(scrollBar, testCase, {interactive: data.interactive})
- verify(control)
-
- compare(control.interactive, data.interactive)
-
- // press-move-release
- mousePress(control, 0, 0, Qt.LeftButton)
- compare(control.pressed, data.interactive)
-
- mouseMove(control, control.width / 2, control.height / 2)
- compare(control.position, data.interactive ? 0.5 : 0.0)
-
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, false)
-
- // change to non-interactive while pressed
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, data.interactive)
-
- mouseMove(control, control.width, control.height)
- compare(control.position, data.interactive ? 1.0 : 0.0)
-
- control.interactive = false
- compare(control.interactive, false)
- compare(control.pressed, false)
-
- mouseMove(control, control.width / 2, control.height / 2)
- compare(control.position, data.interactive ? 1.0 : 0.0)
-
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, false)
-
- // change back to interactive & try press-move-release again
- control.interactive = true
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
-
- mouseMove(control, 0, 0)
- compare(control.position, 0.0)
-
- mouseRelease(control, 0, 0, Qt.LeftButton)
- compare(control.pressed, false)
- }
-
- function test_policy() {
- var control = createTemporaryObject(scrollBar, testCase, {active: true})
- verify(control)
-
- compare(ScrollBar.AsNeeded, Qt.ScrollBarAsNeeded)
- compare(ScrollBar.AlwaysOff, Qt.ScrollBarAlwaysOff)
- compare(ScrollBar.AlwaysOn, Qt.ScrollBarAlwaysOn)
-
- compare(control.visible, true)
- compare(control.policy, ScrollBar.AsNeeded)
-
- control.size = 0.5
- verify(control.state === "active" || control.contentItem.state === "active")
-
- control.size = 1.0
- verify(control.state !== "active" && control.contentItem.state !== "active")
-
- control.policy = ScrollBar.AlwaysOff
- compare(control.visible, false)
-
- control.policy = ScrollBar.AlwaysOn
- compare(control.visible, true)
- verify(control.state === "active" || control.contentItem.state === "active")
- }
-
- function test_overshoot() {
- var container = createTemporaryObject(flickable, testCase)
- verify(container)
- waitForRendering(container)
-
- var vertical = scrollBar.createObject(container, {size: 0.5})
- container.ScrollBar.vertical = vertical
-
- var horizontal = scrollBar.createObject(container, {size: 0.5})
- container.ScrollBar.horizontal = horizontal
-
- // negative vertical overshoot (pos < 0)
- vertical.position = -0.1
- compare(vertical.contentItem.y, vertical.topPadding)
- compare(vertical.contentItem.height, 0.4 * vertical.availableHeight)
-
- // positive vertical overshoot (pos + size > 1)
- vertical.position = 0.8
- compare(vertical.contentItem.y, vertical.topPadding + 0.8 * vertical.availableHeight)
- compare(vertical.contentItem.height, 0.2 * vertical.availableHeight)
-
- // negative horizontal overshoot (pos < 0)
- horizontal.position = -0.1
- compare(horizontal.contentItem.x, horizontal.leftPadding)
- compare(horizontal.contentItem.width, 0.4 * horizontal.availableWidth)
-
- // positive horizontal overshoot (pos + size > 1)
- horizontal.position = 0.8
- compare(horizontal.contentItem.x, horizontal.leftPadding + 0.8 * horizontal.availableWidth)
- compare(horizontal.contentItem.width, 0.2 * horizontal.availableWidth)
- }
-
- function test_orientation() {
- var control = createTemporaryObject(scrollBar, testCase)
- verify(control)
-
- compare(control.orientation, Qt.Vertical)
- compare(control.horizontal, false)
- compare(control.vertical, true)
-
- control.orientation = Qt.Horizontal
- compare(control.orientation, Qt.Horizontal)
- compare(control.horizontal, true)
- compare(control.vertical, false)
- }
-
- function test_flashing() {
- var control = createTemporaryObject(scrollBar, testCase, {size: 0.2})
- verify(control)
-
- var activeSpy = signalSpy.createObject(control, {target: control, signalName: "activeChanged"})
- verify(activeSpy.valid)
-
- compare(control.active, false)
- if (control.contentItem)
- compare(control.contentItem.opacity, 0)
- if (control.background)
- compare(control.background.opacity, 0)
-
- control.increase()
- compare(control.position, 0.1)
- compare(control.active, false)
- compare(activeSpy.count, 2)
- if (control.contentItem)
- verify(control.contentItem.opacity > 0)
- if (control.background)
- verify(control.background.opacity > 0)
- if (control.contentItem)
- tryCompare(control.contentItem, "opacity", 0)
- if (control.background)
- tryCompare(control.background, "opacity", 0)
-
- control.decrease()
- compare(control.position, 0.0)
- compare(control.active, false)
- compare(activeSpy.count, 4)
- if (control.contentItem)
- verify(control.contentItem.opacity > 0)
- if (control.background)
- verify(control.background.opacity > 0)
- if (control.contentItem)
- tryCompare(control.contentItem, "opacity", 0)
- if (control.background)
- tryCompare(control.background, "opacity", 0)
- }
-
- function test_minimumSize() {
- var container = createTemporaryObject(flickable, testCase)
- verify(container)
- waitForRendering(container)
-
- var vertical = scrollBar.createObject(container, {minimumSize: 0.1})
- container.ScrollBar.vertical = vertical
-
- compare(container.visibleArea.heightRatio, 0.5)
- compare(vertical.size, 0.5)
- compare(vertical.visualSize, 0.5)
- compare(vertical.contentItem.height, 0.5 * vertical.availableHeight)
-
- container.contentHeight = 2000
-
- compare(container.visibleArea.heightRatio, 0.05)
- compare(vertical.size, 0.05)
- compare(vertical.visualSize, 0.1)
- compare(vertical.contentItem.height, 0.1 * vertical.availableHeight)
-
- verify(container.atYBeginning)
- compare(container.visibleArea.yPosition, 0.0)
- compare(vertical.position, 0.0)
- compare(vertical.visualPosition, 0.0)
- compare(vertical.contentItem.y, vertical.topPadding)
-
- container.contentY = 1900
-
- verify(container.atYEnd)
- compare(container.visibleArea.yPosition, 0.95)
- compare(vertical.position, 0.95)
- compare(vertical.visualPosition, 0.9)
- compare(vertical.contentItem.y, vertical.topPadding + 0.9 * vertical.availableHeight)
-
- container.contentHeight = 125
-
- compare(container.visibleArea.heightRatio, 0.8)
- compare(vertical.size, 0.8)
- compare(vertical.visualSize, 0.8)
- compare(vertical.contentItem.height, 0.8 * vertical.availableHeight)
-
- verify(container.atYEnd)
- compare(container.visibleArea.yPosition, 0.2)
- compare(vertical.position, 0.2)
- compare(vertical.visualPosition, 0.2)
- compare(vertical.contentItem.y, vertical.topPadding + 0.2 * vertical.availableHeight)
- }
-}
diff --git a/tests/auto/controls/data/tst_scrollindicator.qml b/tests/auto/controls/data/tst_scrollindicator.qml
deleted file mode 100644
index c23bf3e5..00000000
--- a/tests/auto/controls/data/tst_scrollindicator.qml
+++ /dev/null
@@ -1,309 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "ScrollIndicator"
-
- Component {
- id: scrollIndicator
- ScrollIndicator { }
- }
-
- Component {
- id: mouseArea
- MouseArea { }
- }
-
- Component {
- id: flickable
- Flickable {
- width: 100
- height: 100
- contentWidth: 200
- contentHeight: 200
- boundsBehavior: Flickable.StopAtBounds
- flickableDirection: Flickable.HorizontalAndVerticalFlick
- }
- }
-
- function test_attach() {
- var container = createTemporaryObject(flickable, testCase)
- verify(container)
- waitForRendering(container)
-
- var vertical = createTemporaryObject(scrollIndicator, null)
- verify(!vertical.parent)
- compare(vertical.size, 0.0)
- compare(vertical.position, 0.0)
- compare(vertical.active, false)
- compare(vertical.orientation, Qt.Vertical)
- compare(vertical.x, 0)
- compare(vertical.y, 0)
- verify(vertical.width > 0)
- verify(vertical.height > 0)
-
- container.ScrollIndicator.vertical = vertical
- compare(vertical.parent, container)
- compare(vertical.orientation, Qt.Vertical)
- compare(vertical.size, container.visibleArea.heightRatio)
- compare(vertical.position, container.visibleArea.yPosition)
- compare(vertical.x, container.width - vertical.width)
- compare(vertical.y, 0)
- verify(vertical.width > 0)
- compare(vertical.height, container.height)
- // vertical scroll indicator follows flickable's width
- container.width += 10
- compare(vertical.x, container.width - vertical.width)
- vertical.implicitWidth -= 1
- compare(vertical.x, container.width - vertical.width)
- // ...unless explicitly positioned
- vertical.x = 123
- container.width += 10
- compare(vertical.x, 123)
-
- var horizontal = createTemporaryObject(scrollIndicator, null)
- verify(!horizontal.parent)
- compare(horizontal.size, 0.0)
- compare(horizontal.position, 0.0)
- compare(horizontal.active, false)
- compare(horizontal.orientation, Qt.Vertical)
- compare(horizontal.x, 0)
- compare(horizontal.y, 0)
- verify(horizontal.width > 0)
- verify(horizontal.height > 0)
-
- container.ScrollIndicator.horizontal = horizontal
- compare(horizontal.parent, container)
- compare(horizontal.orientation, Qt.Horizontal)
- compare(horizontal.size, container.visibleArea.widthRatio)
- compare(horizontal.position, container.visibleArea.xPosition)
- compare(horizontal.x, 0)
- compare(horizontal.y, container.height - horizontal.height)
- compare(horizontal.width, container.width)
- verify(horizontal.height > 0)
- // horizontal scroll indicator follows flickable's height
- container.height += 10
- compare(horizontal.y, container.height - horizontal.height)
- horizontal.implicitHeight -= 1
- compare(horizontal.y, container.height - horizontal.height)
- // ...unless explicitly positioned
- horizontal.y = 123
- container.height += 10
- compare(horizontal.y, 123)
-
- var velocity = container.maximumFlickVelocity
-
- compare(container.flicking, false)
- container.flick(-velocity, -velocity)
- compare(container.flicking, true)
- tryCompare(container, "flicking", false)
-
- compare(vertical.size, container.visibleArea.heightRatio)
- compare(vertical.position, container.visibleArea.yPosition)
- compare(horizontal.size, container.visibleArea.widthRatio)
- compare(horizontal.position, container.visibleArea.xPosition)
-
- compare(container.flicking, false)
- container.flick(velocity, velocity)
- compare(container.flicking, true)
- tryCompare(container, "flicking", false)
-
- compare(vertical.size, container.visibleArea.heightRatio)
- compare(vertical.position, container.visibleArea.yPosition)
- compare(horizontal.size, container.visibleArea.widthRatio)
- compare(horizontal.position, container.visibleArea.xPosition)
-
- var oldY = vertical.y
- var oldHeight = vertical.height
- vertical.parent = testCase
- vertical.y -= 10
- container.height += 10
- compare(vertical.y, oldY - 10)
- compare(vertical.height, oldHeight)
-
- var oldX = horizontal.x
- var oldWidth = horizontal.width
- horizontal.parent = testCase
- horizontal.x -= 10
- container.width += 10
- compare(horizontal.x, oldX - 10)
- compare(horizontal.width, oldWidth)
- }
-
- function test_warning() {
- ignoreWarning(Qt.resolvedUrl("tst_scrollindicator.qml") + ":55:1: QML TestCase: ScrollIndicator must be attached to a Flickable")
- testCase.ScrollIndicator.vertical = null
- }
-
- function test_overshoot() {
- var container = createTemporaryObject(flickable, testCase)
- verify(container)
- waitForRendering(container)
-
- var vertical = scrollIndicator.createObject(container, {size: 0.5})
- container.ScrollIndicator.vertical = vertical
-
- var horizontal = scrollIndicator.createObject(container, {size: 0.5})
- container.ScrollIndicator.horizontal = horizontal
-
- // negative vertical overshoot (pos < 0)
- vertical.position = -0.1
- compare(vertical.contentItem.y, vertical.topPadding)
- compare(vertical.contentItem.height, 0.4 * vertical.availableHeight)
-
- // positive vertical overshoot (pos + size > 1)
- vertical.position = 0.8
- compare(vertical.contentItem.y, vertical.topPadding + 0.8 * vertical.availableHeight)
- compare(vertical.contentItem.height, 0.2 * vertical.availableHeight)
-
- // negative horizontal overshoot (pos < 0)
- horizontal.position = -0.1
- compare(horizontal.contentItem.x, horizontal.leftPadding)
- compare(horizontal.contentItem.width, 0.4 * horizontal.availableWidth)
-
- // positive horizontal overshoot (pos + size > 1)
- horizontal.position = 0.8
- compare(horizontal.contentItem.x, horizontal.leftPadding + 0.8 * horizontal.availableWidth)
- compare(horizontal.contentItem.width, 0.2 * horizontal.availableWidth)
- }
-
- function test_orientation() {
- var control = createTemporaryObject(scrollIndicator, testCase)
- verify(control)
-
- compare(control.orientation, Qt.Vertical)
- compare(control.horizontal, false)
- compare(control.vertical, true)
-
- control.orientation = Qt.Horizontal
- compare(control.orientation, Qt.Horizontal)
- compare(control.horizontal, true)
- compare(control.vertical, false)
- }
-
- // QTBUG-61785
- function test_mouseArea() {
- var ma = createTemporaryObject(mouseArea, testCase, {width: testCase.width, height: testCase.height})
- verify(ma)
-
- var control = scrollIndicator.createObject(ma, {active: true, size: 0.9, width: testCase.width, height: testCase.height})
- verify(control)
-
- mousePress(control)
- verify(ma.pressed)
-
- mouseRelease(control)
- verify(!ma.pressed)
-
- var touch = touchEvent(control)
- touch.press(0, control).commit()
- verify(ma.pressed)
-
- touch.release(0, control).commit()
- verify(!ma.pressed)
- }
-
- function test_minimumSize() {
- var container = createTemporaryObject(flickable, testCase)
- verify(container)
- waitForRendering(container)
-
- var vertical = scrollIndicator.createObject(container, {minimumSize: 0.1})
- container.ScrollIndicator.vertical = vertical
-
- compare(container.visibleArea.heightRatio, 0.5)
- compare(vertical.size, 0.5)
- compare(vertical.visualSize, 0.5)
- compare(vertical.contentItem.height, 0.5 * vertical.availableHeight)
-
- container.contentHeight = 2000
-
- compare(container.visibleArea.heightRatio, 0.05)
- compare(vertical.size, 0.05)
- compare(vertical.visualSize, 0.1)
- compare(vertical.contentItem.height, 0.1 * vertical.availableHeight)
-
- verify(container.atYBeginning)
- compare(container.visibleArea.yPosition, 0.0)
- compare(vertical.position, 0.0)
- compare(vertical.visualPosition, 0.0)
- compare(vertical.contentItem.y, vertical.topPadding)
-
- container.contentY = 1900
-
- verify(container.atYEnd)
- compare(container.visibleArea.yPosition, 0.95)
- compare(vertical.position, 0.95)
- compare(vertical.visualPosition, 0.9)
- compare(vertical.contentItem.y, vertical.topPadding + 0.9 * vertical.availableHeight)
-
- container.contentHeight = 125
-
- compare(container.visibleArea.heightRatio, 0.8)
- compare(vertical.size, 0.8)
- compare(vertical.visualSize, 0.8)
- compare(vertical.contentItem.height, 0.8 * vertical.availableHeight)
-
- verify(container.atYEnd)
- compare(container.visibleArea.yPosition, 0.2)
- compare(vertical.position, 0.2)
- compare(vertical.visualPosition, 0.2)
- compare(vertical.contentItem.y, vertical.topPadding + 0.2 * vertical.availableHeight)
- }
-}
diff --git a/tests/auto/controls/data/tst_scrollview.qml b/tests/auto/controls/data/tst_scrollview.qml
deleted file mode 100644
index 87c39509..00000000
--- a/tests/auto/controls/data/tst_scrollview.qml
+++ /dev/null
@@ -1,505 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "ScrollView"
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- Component {
- id: scrollView
- ScrollView { }
- }
-
- Component {
- id: scrollableLabel
- ScrollView {
- Label {
- text: "ABC"
- font.pixelSize: 512
- }
- }
- }
-
- Component {
- id: scrollableLabels
- ScrollView {
- contentHeight: label1.implicitHeight + label2.implicitHeight + label3.implicitHeight
- Label {
- id: label1
- text: "First"
- font.pixelSize: 96
- }
- Label {
- id: label2
- text: "Second"
- font.pixelSize: 96
- }
- Label {
- id: label3
- text: "Third"
- font.pixelSize: 96
- }
- }
- }
-
- Component {
- id: flickableLabel
- ScrollView {
- Flickable {
- contentWidth: label.implicitWidth
- contentHeight: label.implicitHeight
- Label {
- id: label
- text: "ABC"
- font.pixelSize: 512
- }
- }
- }
- }
-
- Component {
- id: emptyFlickable
- ScrollView {
- Flickable {
- }
- }
- }
-
- Component {
- id: labelComponent
- Label {
- text: "ABC"
- font.pixelSize: 512
- }
- }
-
- Component {
- id: scrollableListView
- ScrollView {
- ListView {
- model: 3
- delegate: Label {
- text: modelData
- }
- }
- }
- }
-
- Component {
- id: scrollableFlickable
- ScrollView {
- Flickable {
- Item {
- width: 100
- height: 100
- }
- }
- }
- }
-
- Component {
- id: scrollableWithContentSize
- ScrollView {
- contentWidth: 1000
- contentHeight: 1000
- Flickable {
- }
- }
- }
-
- Component {
- id: scrollableAndFlicableWithContentSize
- ScrollView {
- contentWidth: 1000
- contentHeight: 1000
- Flickable {
- contentWidth: 200
- contentHeight: 200
- }
- }
- }
-
- Component {
- id: scrollableTextArea
- ScrollView {
- TextArea {
- text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas id dignissim ipsum. Nam molestie nisl turpis."
- wrapMode: TextArea.WordWrap
- }
- }
- }
-
- function test_scrollBars() {
- var control = createTemporaryObject(scrollView, testCase, {width: 200, height: 200})
- verify(control)
-
- var vertical = control.ScrollBar.vertical
- verify(vertical)
-
- var horizontal = control.ScrollBar.horizontal
- verify(horizontal)
-
- control.contentHeight = 400
- verify(vertical.size > 0)
- compare(control.contentItem.visibleArea.heightRatio, vertical.size)
-
- control.contentWidth = 400
- verify(horizontal.size > 0)
- compare(control.contentItem.visibleArea.widthRatio, horizontal.size)
-
- vertical.increase()
- verify(vertical.position > 0)
- compare(control.contentItem.visibleArea.yPosition, vertical.position)
-
- horizontal.increase()
- verify(horizontal.position > 0)
- compare(control.contentItem.visibleArea.xPosition, horizontal.position)
- }
-
- function test_oneChild_data() {
- return [
- { tag: "label", component: scrollableLabel },
- { tag: "flickable", component: flickableLabel }
- ]
- }
-
- function test_oneChild(data) {
- var control = createTemporaryObject(data.component, testCase)
- verify(control)
-
- var flickable = control.contentItem
- verify(flickable.hasOwnProperty("contentX"))
- verify(flickable.hasOwnProperty("contentY"))
-
- var label = flickable.contentItem.children[0]
- compare(label.text, "ABC")
-
- compare(control.implicitWidth, label.implicitWidth)
- compare(control.implicitHeight, label.implicitHeight)
-
- compare(control.contentWidth, label.implicitWidth)
- compare(control.contentHeight, label.implicitHeight)
-
- compare(flickable.contentWidth, label.implicitWidth)
- compare(flickable.contentHeight, label.implicitHeight)
-
- control.contentWidth = 200
- compare(control.implicitWidth, 200)
- compare(control.contentWidth, 200)
- compare(flickable.contentWidth, 200)
-
- control.contentHeight = 100
- compare(control.implicitHeight, 100)
- compare(control.contentHeight, 100)
- compare(flickable.contentHeight, 100)
- }
-
- function test_multipleChildren() {
- var control = createTemporaryObject(scrollableLabels, testCase)
- verify(control)
-
- var flickable = control.contentItem
- verify(flickable.hasOwnProperty("contentX"))
- verify(flickable.hasOwnProperty("contentY"))
-
- compare(control.contentChildren, flickable.contentItem.children)
-
- var label1 = control.contentChildren[0]
- compare(label1.text, "First")
-
- var label2 = control.contentChildren[1]
- compare(label2.text, "Second")
-
- var label3 = control.contentChildren[2]
- compare(label3.text, "Third")
-
- var expectedContentHeight = label1.implicitHeight + label2.implicitHeight + label3.implicitHeight
- compare(control.contentHeight, expectedContentHeight)
- compare(flickable.contentHeight, expectedContentHeight)
- }
-
- function test_listView() {
- var control = createTemporaryObject(scrollableListView, testCase)
- verify(control)
-
- var listview = control.contentItem
- verify(listview.hasOwnProperty("contentX"))
- verify(listview.hasOwnProperty("contentY"))
- verify(listview.hasOwnProperty("model"))
-
- compare(control.contentWidth, listview.contentWidth)
- compare(control.contentHeight, listview.contentHeight)
- }
-
- function test_scrollableFlickable() {
- // Check that if the application adds a flickable as a child of a
- // scrollview, the scrollview doesn't try to calculate and change
- // the flickables contentWidth/Height based on the flickables
- // children, even if the flickable has an empty or negative content
- // size. Some flickables (e.g ListView) sets a negative
- // contentWidth on purpose, which should be respected.
- var scrollview = createTemporaryObject(scrollableFlickable, testCase)
- verify(scrollview)
-
- var flickable = scrollview.contentItem
- verify(flickable.hasOwnProperty("contentX"))
- verify(flickable.hasOwnProperty("contentY"))
-
- compare(flickable.contentWidth, -1)
- compare(flickable.contentHeight, -1)
- compare(scrollview.contentWidth, -1)
- compare(scrollview.contentHeight, -1)
- }
-
- function test_scrollableWithContentSize() {
- // Check that if the scrollview has contentWidth/Height set, but
- // not the flickable, then those values will be forwarded and used
- // by the flickable (rather than trying to calculate the content size
- // based on the flickables children).
- var scrollview = createTemporaryObject(scrollableWithContentSize, testCase)
- verify(scrollview)
-
- var flickable = scrollview.contentItem
- verify(flickable.hasOwnProperty("contentX"))
- verify(flickable.hasOwnProperty("contentY"))
-
- compare(flickable.contentWidth, 1000)
- compare(flickable.contentHeight, 1000)
- compare(scrollview.contentWidth, 1000)
- compare(scrollview.contentHeight, 1000)
- }
-
- function test_scrollableAndFlickableWithContentSize() {
- // Check that if both the scrollview and the flickable has
- // contentWidth/Height set (which is an inconsistency/fault
- // by the app), the content size of the scrollview wins.
- var scrollview = createTemporaryObject(scrollableAndFlicableWithContentSize, testCase)
- verify(scrollview)
-
- var flickable = scrollview.contentItem
- verify(flickable.hasOwnProperty("contentX"))
- verify(flickable.hasOwnProperty("contentY"))
-
- compare(flickable.contentWidth, 1000)
- compare(flickable.contentHeight, 1000)
- compare(scrollview.contentWidth, 1000)
- compare(scrollview.contentHeight, 1000)
- }
-
- function test_flickableWithExplicitContentSize() {
- var control = createTemporaryObject(emptyFlickable, testCase)
- verify(control)
-
- var flickable = control.contentItem
- verify(flickable.hasOwnProperty("contentX"))
- verify(flickable.hasOwnProperty("contentY"))
-
- var flickableContentSize = 1000;
- flickable.contentWidth = flickableContentSize;
- flickable.contentHeight = flickableContentSize;
-
- compare(flickable.contentWidth, flickableContentSize)
- compare(flickable.contentHeight, flickableContentSize)
- compare(control.implicitWidth, flickableContentSize)
- compare(control.implicitHeight, flickableContentSize)
- compare(control.contentWidth, flickableContentSize)
- compare(control.contentHeight, flickableContentSize)
-
- // Add a single child to the flickable. This should not
- // trick ScrollView into taking the implicit size of
- // the child as content size, since the flickable
- // already has an explicit content size.
- labelComponent.createObject(flickable);
-
- compare(flickable.contentWidth, flickableContentSize)
- compare(flickable.contentHeight, flickableContentSize)
- compare(control.implicitWidth, flickableContentSize)
- compare(control.implicitHeight, flickableContentSize)
- compare(control.contentWidth, flickableContentSize)
- compare(control.contentHeight, flickableContentSize)
- }
-
- function test_mouse() {
- var control = createTemporaryObject(scrollView, testCase, {width: 200, height: 200, contentHeight: 400})
- verify(control)
-
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.contentItem.contentY, 0)
-
- for (var y = control.height / 2; y >= 0; --y) {
- mouseMove(control, control.width / 2, y, 10)
- compare(control.contentItem.contentY, 0)
- }
-
- mouseRelease(control, control.width / 2, 0, Qt.LeftButton)
- compare(control.contentItem.contentY, 0)
- }
-
- function test_hover() {
- var control = createTemporaryObject(scrollView, testCase, {width: 200, height: 200, contentHeight: 400})
- verify(control)
-
- var vertical = control.ScrollBar.vertical
- verify(vertical)
- vertical.hoverEnabled = true
-
- mouseMove(vertical, vertical.width / 2, vertical.height / 2)
- compare(vertical.visible, true)
- compare(vertical.hovered, true)
- compare(vertical.active, true)
- compare(vertical.interactive, true)
- }
-
- function test_wheel() {
- var control = createTemporaryObject(scrollView, testCase, {width: 200, height: 200, contentHeight: 400})
- verify(control)
-
- var vertical = control.ScrollBar.vertical
- verify(vertical)
-
- mouseWheel(control, control.width / 2, control.height / 2, 0, -120)
- compare(vertical.visible, true)
- compare(vertical.active, true)
- compare(vertical.interactive, true)
- }
-
- function test_touch() {
- var control = createTemporaryObject(scrollView, testCase, {width: 200, height: 200, contentHeight: 400})
- verify(control)
-
- var vertical = control.ScrollBar.vertical
- verify(vertical)
-
- var touch = touchEvent(control)
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.contentItem.contentY, 0)
-
- compare(vertical.active, false)
- compare(vertical.interactive, false)
-
- var maxContentY = 0
- for (var y = control.height / 2; y >= 0; --y) {
- touch.move(0, control, control.width / 2, y).commit()
- maxContentY = Math.max(maxContentY, control.contentItem.contentY)
- }
- verify(maxContentY > 0)
-
- compare(vertical.active, true)
- compare(vertical.interactive, false)
-
- touch.release(0, control, control.width / 2, 0).commit()
- }
-
- function test_keys() {
- var control = createTemporaryObject(scrollView, testCase, {width: 200, height: 200, contentWidth: 400, contentHeight: 400})
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- var vertical = control.ScrollBar.vertical
- verify(vertical)
-
- compare(vertical.position, 0.0)
- for (var i = 1; i <= 10; ++i) {
- keyClick(Qt.Key_Down)
- compare(vertical.position, Math.min(0.5, i * 0.1))
- }
- compare(vertical.position, 0.5)
- for (i = 1; i <= 10; ++i) {
- keyClick(Qt.Key_Up)
- compare(vertical.position, Math.max(0.0, 0.5 - i * 0.1))
- }
- compare(vertical.position, 0.0)
-
- var horizontal = control.ScrollBar.horizontal
- verify(horizontal)
-
- compare(horizontal.position, 0.0)
- for (i = 1; i <= 10; ++i) {
- keyClick(Qt.Key_Right)
- compare(horizontal.position, Math.min(0.5, i * 0.1))
- }
- compare(horizontal.position, 0.5)
- for (i = 1; i <= 10; ++i) {
- keyClick(Qt.Key_Left)
- compare(horizontal.position, Math.max(0.0, 0.5 - i * 0.1))
- }
- compare(horizontal.position, 0.0)
- }
-
- function test_textArea() {
- // TODO: verify no binding loop warnings (QTBUG-62325)
- var control = createTemporaryObject(scrollableTextArea, testCase)
- verify(control)
-
- var flickable = control.contentItem
- verify(flickable && flickable.hasOwnProperty("contentX"))
-
- var textArea = flickable.contentItem.children[0]
- verify(textArea && textArea.hasOwnProperty("text"))
-
- compare(control.contentWidth, flickable.contentWidth)
- compare(control.contentHeight, flickable.contentHeight)
- }
-}
diff --git a/tests/auto/controls/data/tst_slider.qml b/tests/auto/controls/data/tst_slider.qml
deleted file mode 100644
index 280138c5..00000000
--- a/tests/auto/controls/data/tst_slider.qml
+++ /dev/null
@@ -1,926 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "Slider"
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- Component {
- id: slider
- Slider { }
- }
-
- function test_defaults() {
- var control = createTemporaryObject(slider, testCase)
- verify(control)
-
- compare(control.stepSize, 0)
- compare(control.snapMode, Slider.NoSnap)
- compare(control.orientation, Qt.Horizontal)
- compare(control.horizontal, true)
- compare(control.vertical, false)
- }
-
- function test_value() {
- var control = createTemporaryObject(slider, testCase)
- verify(control)
-
- compare(control.value, 0.0)
- control.value = 0.5
- compare(control.value, 0.5)
- control.value = 1.0
- compare(control.value, 1.0)
- control.value = -1.0
- compare(control.value, 0.0)
- control.value = 2.0
- compare(control.value, 1.0)
- }
-
- function test_range() {
- var control = createTemporaryObject(slider, testCase, {from: 0, to: 100, value: 50})
- verify(control)
-
- compare(control.from, 0)
- compare(control.to, 100)
- compare(control.value, 50)
- compare(control.position, 0.5)
-
- control.value = 1000
- compare(control.value, 100)
- compare(control.position, 1)
-
- control.value = -1
- compare(control.value, 0)
- compare(control.position, 0)
-
- control.from = 25
- compare(control.from, 25)
- compare(control.value, 25)
- compare(control.position, 0)
-
- control.to = 75
- compare(control.to, 75)
- compare(control.value, 25)
- compare(control.position, 0)
-
- control.value = 50
- compare(control.value, 50)
- compare(control.position, 0.5)
- }
-
- function test_inverted() {
- var control = createTemporaryObject(slider, testCase, {from: 1.0, to: -1.0})
- verify(control)
-
- compare(control.from, 1.0)
- compare(control.to, -1.0)
- compare(control.value, 0.0)
- compare(control.position, 0.5)
-
- control.value = 2.0
- compare(control.value, 1.0)
- compare(control.position, 0.0)
-
- control.value = -2.0
- compare(control.value, -1.0)
- compare(control.position, 1.0)
-
- control.value = 0.0
- compare(control.value, 0.0)
- compare(control.position, 0.5)
- }
-
- function test_position() {
- var control = createTemporaryObject(slider, testCase)
- verify(control)
-
- compare(control.value, 0.0)
- compare(control.position, 0.0)
-
- control.value = 0.25
- compare(control.value, 0.25)
- compare(control.position, 0.25)
-
- control.value = 0.75
- compare(control.value, 0.75)
- compare(control.position, 0.75)
- }
-
- function test_visualPosition() {
- var control = createTemporaryObject(slider, testCase)
- verify(control)
-
- compare(control.value, 0.0)
- compare(control.visualPosition, 0.0)
-
- control.value = 0.25
- compare(control.value, 0.25)
- compare(control.visualPosition, 0.25)
-
- // RTL locale
- control.locale = Qt.locale("ar_EG")
- compare(control.visualPosition, 0.75)
-
- // RTL locale + LayoutMirroring
- control.LayoutMirroring.enabled = true
- compare(control.visualPosition, 0.75)
-
- // LTR locale + LayoutMirroring
- control.locale = Qt.locale("en_US")
- compare(control.visualPosition, 0.75)
-
- // LTR locale
- control.LayoutMirroring.enabled = false
- compare(control.visualPosition, 0.25)
-
- // LayoutMirroring
- control.LayoutMirroring.enabled = true
- compare(control.visualPosition, 0.75)
- }
-
- function test_orientation() {
- var control = createTemporaryObject(slider, testCase)
- verify(control)
-
- compare(control.orientation, Qt.Horizontal)
- compare(control.horizontal, true)
- compare(control.vertical, false)
- verify(control.width > control.height)
-
- control.orientation = Qt.Vertical
- compare(control.orientation, Qt.Vertical)
- compare(control.horizontal, false)
- compare(control.vertical, true)
- verify(control.width < control.height)
- }
-
- function test_mouse_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, live: false },
- { tag: "vertical", orientation: Qt.Vertical, live: false },
- { tag: "horizontal:live", orientation: Qt.Horizontal, live: true },
- { tag: "vertical:live", orientation: Qt.Vertical, live: true }
- ]
- }
-
- function test_mouse(data) {
- var control = createTemporaryObject(slider, testCase, {orientation: data.orientation, live: data.live})
- verify(control)
-
- var pressedCount = 0
- var movedCount = 0
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- var movedSpy = signalSpy.createObject(control, {target: control, signalName: "moved"})
- verify(movedSpy.valid)
-
- mousePress(control, 0, control.height, Qt.LeftButton)
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
-
- // mininum on the left in horizontal vs. at the bottom in vertical
- mouseMove(control, -control.width, 2 * control.height, 0)
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
-
- mouseMove(control, control.width * 0.5, control.height * 0.5, 0)
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, true)
- compare(control.value, data.live ? 0.5 : 0.0)
- compare(control.position, 0.5)
-
- mouseRelease(control, control.width * 0.5, control.height * 0.5, Qt.LeftButton)
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, false)
- compare(control.value, 0.5)
- compare(control.position, 0.5)
-
- mousePress(control, control.width, 0, Qt.LeftButton)
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, true)
- compare(control.value, data.live ? 1.0 : 0.5)
- compare(control.position, 1.0)
-
- // maximum on the right in horizontal vs. at the top in vertical
- mouseMove(control, control.width * 2, -control.height, 0)
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, true)
- compare(control.value, data.live ? 1.0 : 0.5)
- compare(control.position, 1.0)
-
- mouseMove(control, control.width * 0.75, control.height * 0.25, 0)
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, true)
- compare(control.value, data.live ? control.position : 0.5)
- verify(control.position >= 0.75)
-
- mouseRelease(control, control.width * 0.25, control.height * 0.75, Qt.LeftButton)
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, false)
- compare(control.value, control.position)
- verify(control.value <= 0.25 && control.value >= 0.0)
- verify(control.position <= 0.25 && control.position >= 0.0)
-
- // QTBUG-53846
- mouseClick(control, control.width * 0.5, control.height * 0.5, Qt.LeftButton)
- compare(movedSpy.count, ++movedCount)
- compare(pressedSpy.count, pressedCount += 2)
- compare(control.value, 0.5)
- compare(control.position, 0.5)
- }
-
- function test_touch_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, live: false },
- { tag: "vertical", orientation: Qt.Vertical, live: false },
- { tag: "horizontal:live", orientation: Qt.Horizontal, live: true },
- { tag: "vertical:live", orientation: Qt.Vertical, live: true }
- ]
- }
-
- function test_touch(data) {
- var control = createTemporaryObject(slider, testCase, {orientation: data.orientation, live: data.live})
- verify(control)
-
- var pressedCount = 0
- var movedCount = 0
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- var movedSpy = signalSpy.createObject(control, {target: control, signalName: "moved"})
- verify(movedSpy.valid)
-
- var touch = touchEvent(control)
- touch.press(0, control, 0, 0).commit()
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
-
- // mininum on the left in horizontal vs. at the bottom in vertical
- touch.move(0, control, -control.width, 2 * control.height, 0).commit()
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
-
- touch.move(0, control, control.width * 0.5, control.height * 0.5, 0).commit()
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, true)
- compare(control.value, data.live ? 0.5 : 0.0)
- compare(control.position, 0.5)
-
- touch.release(0, control, control.width * 0.5, control.height * 0.5).commit()
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, false)
- compare(control.value, 0.5)
- compare(control.position, 0.5)
-
- touch.press(0, control, control.width, control.height).commit()
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, true)
- compare(control.value, 0.5)
- compare(control.position, 0.5)
-
- // maximum on the right in horizontal vs. at the top in vertical
- touch.move(0, control, control.width * 2, -control.height, 0).commit()
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, true)
- compare(control.value, data.live ? 1.0 : 0.5)
- compare(control.position, 1.0)
-
- touch.move(0, control, control.width * 0.75, control.height * 0.25, 0).commit()
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, true)
- compare(control.value, data.live ? control.position : 0.5)
- verify(control.position >= 0.75)
-
- touch.release(0, control, control.width * 0.25, control.height * 0.75).commit()
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, false)
- compare(control.value, control.position)
- verify(control.value <= 0.25 && control.value >= 0.0)
- verify(control.position <= 0.25 && control.position >= 0.0)
-
- // QTBUG-53846
- touch.press(0, control).commit().release(0, control).commit()
- compare(movedSpy.count, ++movedCount)
- compare(pressedSpy.count, pressedCount += 2)
- compare(control.value, 0.5)
- compare(control.position, 0.5)
- }
-
- function test_multiTouch() {
- var control1 = createTemporaryObject(slider, testCase, {live: false})
- verify(control1)
-
- var pressedCount1 = 0
- var movedCount1 = 0
-
- var pressedSpy1 = signalSpy.createObject(control1, {target: control1, signalName: "pressedChanged"})
- verify(pressedSpy1.valid)
-
- var movedSpy1 = signalSpy.createObject(control1, {target: control1, signalName: "moved"})
- verify(movedSpy1.valid)
-
- var touch = touchEvent(control1)
- touch.press(0, control1, 0, 0).commit().move(0, control1, control1.width, control1.height).commit()
-
- compare(pressedSpy1.count, ++pressedCount1)
- compare(movedSpy1.count, ++movedCount1)
- compare(control1.pressed, true)
- compare(control1.position, 1.0)
-
- // second touch point on the same control is ignored
- touch.stationary(0).press(1, control1, 0, 0).commit()
- touch.stationary(0).move(1, control1).commit()
- touch.stationary(0).release(1).commit()
-
- compare(pressedSpy1.count, pressedCount1)
- compare(movedSpy1.count, movedCount1)
- compare(control1.pressed, true)
- compare(control1.position, 1.0)
-
- var control2 = createTemporaryObject(slider, testCase, {y: control1.height, live: false})
- verify(control2)
-
- var pressedCount2 = 0
- var movedCount2 = 0
-
- var pressedSpy2 = signalSpy.createObject(control2, {target: control2, signalName: "pressedChanged"})
- verify(pressedSpy2.valid)
-
- var movedSpy2 = signalSpy.createObject(control2, {target: control2, signalName: "moved"})
- verify(movedSpy2.valid)
-
- // press the second slider
- touch.stationary(0).press(2, control2, 0, 0).commit()
-
- compare(pressedSpy2.count, ++pressedCount2)
- compare(movedSpy2.count, movedCount2)
- compare(control2.pressed, true)
- compare(control2.position, 0.0)
-
- compare(pressedSpy1.count, pressedCount1)
- compare(movedSpy1.count, movedCount1)
- compare(control1.pressed, true)
- compare(control1.position, 1.0)
-
- // move both sliders
- touch.move(0, control1).move(2, control2).commit()
-
- compare(pressedSpy2.count, pressedCount2)
- compare(movedSpy2.count, ++movedCount2)
- compare(control2.pressed, true)
- compare(control2.position, 0.5)
- compare(control2.value, 0.0)
-
- compare(pressedSpy1.count, pressedCount1)
- compare(movedSpy1.count, ++movedCount1)
- compare(control1.pressed, true)
- compare(control1.position, 0.5)
- compare(control1.value, 0.0)
-
- // release both sliders
- touch.release(0, control1).release(2, control2).commit()
-
- compare(pressedSpy2.count, ++pressedCount2)
- compare(movedSpy2.count, movedCount2)
- compare(control2.pressed, false)
- compare(control2.position, 0.5)
- compare(control2.value, 0.5)
-
- compare(pressedSpy1.count, ++pressedCount1)
- compare(movedSpy1.count, movedCount1)
- compare(control1.pressed, false)
- compare(control1.position, 0.5)
- compare(control1.value, 0.5)
- }
-
- function test_keys_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, decrease: Qt.Key_Left, increase: Qt.Key_Right },
- { tag: "vertical", orientation: Qt.Vertical, decrease: Qt.Key_Down, increase: Qt.Key_Up }
- ]
- }
-
- function test_keys(data) {
- var control = createTemporaryObject(slider, testCase, {orientation: data.orientation})
- verify(control)
-
- var pressedCount = 0
- var movedCount = 0
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- var movedSpy = signalSpy.createObject(control, {target: control, signalName: "moved"})
- verify(movedSpy.valid)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- var oldValue = 0.0
- control.value = 0.5
-
- for (var d1 = 1; d1 <= 10; ++d1) {
- oldValue = control.value
- keyPress(data.decrease)
- compare(control.pressed, true)
- compare(pressedSpy.count, ++pressedCount)
- if (oldValue !== control.value)
- compare(movedSpy.count, ++movedCount)
-
- compare(control.value, Math.max(0.0, 0.5 - d1 * 0.1))
- compare(control.value, control.position)
-
- keyRelease(data.decrease)
- compare(control.pressed, false)
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- }
-
- for (var i1 = 1; i1 <= 20; ++i1) {
- oldValue = control.value
- keyPress(data.increase)
- compare(control.pressed, true)
- compare(pressedSpy.count, ++pressedCount)
- if (oldValue !== control.value)
- compare(movedSpy.count, ++movedCount)
-
- compare(control.value, Math.min(1.0, 0.0 + i1 * 0.1))
- compare(control.value, control.position)
-
- keyRelease(data.increase)
- compare(control.pressed, false)
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- }
-
- control.stepSize = 0.25
-
- for (var d2 = 1; d2 <= 10; ++d2) {
- oldValue = control.value
- keyPress(data.decrease)
- compare(control.pressed, true)
- compare(pressedSpy.count, ++pressedCount)
- if (oldValue !== control.value)
- compare(movedSpy.count, ++movedCount)
-
- compare(control.value, Math.max(0.0, 1.0 - d2 * 0.25))
- compare(control.value, control.position)
-
- keyRelease(data.decrease)
- compare(control.pressed, false)
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- }
-
- for (var i2 = 1; i2 <= 10; ++i2) {
- oldValue = control.value
- keyPress(data.increase)
- compare(control.pressed, true)
- compare(pressedSpy.count, ++pressedCount)
- if (oldValue !== control.value)
- compare(movedSpy.count, ++movedCount)
-
- compare(control.value, Math.min(1.0, 0.0 + i2 * 0.25))
- compare(control.value, control.position)
-
- keyRelease(data.increase)
- compare(control.pressed, false)
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- }
- }
-
- function test_padding() {
- // test with "unbalanced" paddings (left padding != right padding) to ensure
- // that the slider position calculation is done taking padding into account
- // ==> the position is _not_ 0.5 in the middle of the control
- var control = createTemporaryObject(slider, testCase, {leftPadding: 10, rightPadding: 20, live: false})
- verify(control)
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- mousePress(control, 0, 0, Qt.LeftButton)
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
- compare(control.visualPosition, 0.0)
-
- mouseMove(control, control.leftPadding + control.availableWidth * 0.5, control.height * 0.5, 0)
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- compare(control.position, 0.5)
- compare(control.visualPosition, 0.5)
-
- mouseMove(control, control.width * 0.5, control.height * 0.5, 0)
- compare(pressedSpy.count, 1)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- verify(control.position > 0.5)
- verify(control.visualPosition > 0.5)
-
- mouseRelease(control, control.leftPadding + control.availableWidth * 0.5, control.height * 0.5, Qt.LeftButton)
- compare(pressedSpy.count, 2)
- compare(control.pressed, false)
- compare(control.value, 0.5)
- compare(control.position, 0.5)
- compare(control.visualPosition, 0.5)
-
- // RTL
- control.value = 0
- control.locale = Qt.locale("ar_EG")
-
- mousePress(control, 0, 0, Qt.LeftButton)
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- compare(control.position, 1.0)
- compare(control.visualPosition, 0.0)
-
- mouseMove(control, control.leftPadding + control.availableWidth * 0.5, control.height * 0.5, 0)
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- compare(control.position, 0.5)
- compare(control.visualPosition, 0.5)
-
- mouseMove(control, control.width * 0.5, control.height * 0.5, 0)
- compare(pressedSpy.count, 3)
- compare(control.pressed, true)
- compare(control.value, 0.0)
- verify(control.position < 0.5)
- verify(control.visualPosition > 0.5)
-
- mouseRelease(control, control.leftPadding + control.availableWidth * 0.5, control.height * 0.5, Qt.LeftButton)
- compare(pressedSpy.count, 4)
- compare(control.pressed, false)
- compare(control.value, 0.5)
- compare(control.position, 0.5)
- compare(control.visualPosition, 0.5)
- }
-
- function test_snapMode_data(immediate) {
- return [
- { tag: "NoSnap", snapMode: Slider.NoSnap, from: 0, to: 2, values: [0, 0, 0.25], positions: [0, 0.1, 0.1] },
- { tag: "SnapAlways (0..2)", snapMode: Slider.SnapAlways, from: 0, to: 2, values: [0.0, 0.0, 0.2], positions: [0.0, 0.1, 0.1] },
- { tag: "SnapAlways (1..3)", snapMode: Slider.SnapAlways, from: 1, to: 3, values: [1.0, 1.0, 1.2], positions: [0.0, 0.1, 0.1] },
- { tag: "SnapAlways (-1..1)", snapMode: Slider.SnapAlways, from: -1, to: 1, values: [0.0, 0.0, -0.8], positions: [immediate ? 0.0 : 0.5, 0.1, 0.1] },
- { tag: "SnapAlways (1..-1)", snapMode: Slider.SnapAlways, from: 1, to: -1, values: [0.0, 0.0, 0.8], positions: [immediate ? 0.0 : 0.5, 0.1, 0.1] },
- { tag: "SnapOnRelease (0..2)", snapMode: Slider.SnapOnRelease, from: 0, to: 2, values: [0.0, 0.0, 0.2], positions: [0.0, 0.1, 0.1] },
- { tag: "SnapOnRelease (1..3)", snapMode: Slider.SnapOnRelease, from: 1, to: 3, values: [1.0, 1.0, 1.2], positions: [0.0, 0.1, 0.1] },
- { tag: "SnapOnRelease (-1..1)", snapMode: Slider.SnapOnRelease, from: -1, to: 1, values: [0.0, 0.0, -0.8], positions: [immediate ? 0.0 : 0.5, 0.1, 0.1] },
- { tag: "SnapOnRelease (1..-1)", snapMode: Slider.SnapOnRelease, from: 1, to: -1, values: [0.0, 0.0, 0.8], positions: [immediate ? 0.0 : 0.5, 0.1, 0.1] }
- ]
- }
-
- function test_snapMode_mouse_data() {
- return test_snapMode_data(true)
- }
-
- function test_snapMode_mouse(data) {
- var control = createTemporaryObject(slider, testCase, {live: false, snapMode: data.snapMode, from: data.from, to: data.to, stepSize: 0.2})
- verify(control)
-
- var fuzz = 0.05
-
- mousePress(control, control.leftPadding)
- compare(control.value, data.values[0])
- compare(control.position, data.positions[0])
-
- mouseMove(control, control.leftPadding + 0.15 * (control.availableWidth + control.handle.width / 2))
-
- fuzzyCompare(control.value, data.values[1], fuzz)
- fuzzyCompare(control.position, data.positions[1], fuzz)
-
- mouseRelease(control, control.leftPadding + 0.15 * (control.availableWidth + control.handle.width / 2))
- fuzzyCompare(control.value, data.values[2], fuzz)
- fuzzyCompare(control.position, data.positions[2], fuzz)
- }
-
- function test_snapMode_touch_data() {
- return test_snapMode_data(false)
- }
-
- function test_snapMode_touch(data) {
- var control = createTemporaryObject(slider, testCase, {live: false, snapMode: data.snapMode, from: data.from, to: data.to, stepSize: 0.2})
- verify(control)
-
- var fuzz = 0.05
-
- var touch = touchEvent(control)
- touch.press(0, control, control.leftPadding).commit()
- compare(control.value, data.values[0])
- compare(control.position, data.positions[0])
-
- touch.move(0, control, control.leftPadding + 0.15 * (control.availableWidth + control.handle.width / 2)).commit()
-
- fuzzyCompare(control.value, data.values[1], fuzz)
- fuzzyCompare(control.position, data.positions[1], fuzz)
-
- touch.release(0, control, control.leftPadding + 0.15 * (control.availableWidth + control.handle.width / 2)).commit()
- fuzzyCompare(control.value, data.values[2], fuzz)
- fuzzyCompare(control.position, data.positions[2], fuzz)
- }
-
- function test_wheel_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, dx: 120, dy: 0 },
- { tag: "vertical", orientation: Qt.Vertical, dx: 0, dy: 120 }
- ]
- }
-
- function test_wheel(data) {
- var control = createTemporaryObject(slider, testCase, {wheelEnabled: true, orientation: data.orientation})
- verify(control)
-
- var movedCount = 0
- var movedSpy = signalSpy.createObject(control, {target: control, signalName: "moved"})
- verify(movedSpy.valid)
-
- compare(control.value, 0.0)
-
- mouseWheel(control, control.width / 2, control.height / 2, data.dx, data.dy)
- compare(movedSpy.count, ++movedCount)
- compare(control.value, 0.1)
- compare(control.position, 0.1)
-
- control.stepSize = 0.2
-
- mouseWheel(control, control.width / 2, control.height / 2, data.dx, data.dy)
- compare(movedSpy.count, ++movedCount)
- compare(control.value, 0.3)
- compare(control.position, 0.3)
-
- control.stepSize = 10.0
-
- mouseWheel(control, control.width / 2, control.height / 2, -data.dx, -data.dy)
- compare(movedSpy.count, ++movedCount)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
-
- // no change
- mouseWheel(control, control.width / 2, control.height / 2, -data.dx, -data.dy)
- compare(movedSpy.count, movedCount)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
-
- control.to = 10.0
- control.stepSize = 5.0
-
- mouseWheel(control, control.width / 2, control.height / 2, data.dx, data.dy)
- compare(movedSpy.count, ++movedCount)
- compare(control.value, 5.0)
- compare(control.position, 0.5)
-
- mouseWheel(control, control.width / 2, control.height / 2, 0.5 * data.dx, 0.5 * data.dy)
- compare(movedSpy.count, ++movedCount)
- compare(control.value, 7.5)
- compare(control.position, 0.75)
-
- mouseWheel(control, control.width / 2, control.height / 2, -data.dx, -data.dy)
- compare(movedSpy.count, ++movedCount)
- compare(control.value, 2.5)
- compare(control.position, 0.25)
- }
-
- function test_wheelPropagation_data() {
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, dx: 120, dy: 0 },
- { tag: "vertical", orientation: Qt.Vertical, dx: 0, dy: 120 }
- ]
- }
-
- Component {
- id: mouseAreaComponent
- MouseArea {}
- }
-
- function test_wheelPropagation(data) {
- var mouseArea = createTemporaryObject(mouseAreaComponent, testCase, { width: parent.width, height: parent.height })
- verify(mouseArea)
-
- var mouseAreaWheelSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "wheel" })
- verify(mouseAreaWheelSpy.valid)
-
- var control = createTemporaryObject(slider, mouseArea,
- { wheelEnabled: true, orientation: data.orientation, stepSize: 1 })
- verify(control)
- compare(control.value, 0.0)
-
- var movedCount = 0
- var movedSpy = signalSpy.createObject(control, { target: control, signalName: "moved" })
- verify(movedSpy.valid)
-
- // Scroll the handle to the edge.
- mouseWheel(control, control.width / 2, control.height / 2, data.dx, data.dy)
- compare(control.value, 1.0)
- compare(control.position, 1.0)
- compare(movedSpy.count, ++movedCount)
- compare(mouseAreaWheelSpy.count, 0)
-
- // Scroll again; the wheel event shouldn't go through to the MouseArea parent.
- mouseWheel(control, control.width / 2, control.height / 2, data.dx, data.dy)
- compare(control.value, 1.0)
- compare(control.position, 1.0)
- compare(movedSpy.count, movedCount)
- compare(mouseAreaWheelSpy.count, 0)
-
- // Scroll the handle to the other edge.
- mouseWheel(control, control.width / 2, control.height / 2, -data.dx, -data.dy)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
- compare(movedSpy.count, ++movedCount)
- compare(mouseAreaWheelSpy.count, 0)
-
- // Scroll again; the wheel event shouldn't go through to the MouseArea parent.
- mouseWheel(control, control.width / 2, control.height / 2, -data.dx, -data.dy)
- compare(control.value, 0.0)
- compare(control.position, 0.0)
- compare(movedSpy.count, movedCount)
- compare(mouseAreaWheelSpy.count, 0)
- }
-
- function test_valueAt_data() {
- return [
- { tag: "0.0..1.0", from: 0.0, to: 1.0, values: [0.0, 0.2, 0.5, 1.0] },
- { tag: "0..100", from: 0, to: 100, values: [0, 20, 50, 100] },
- { tag: "100..-100", from: 100, to: -100, values: [100, 60, 0, -100] },
- { tag: "-7..7", from: -7, to: 7, stepSize: 1.0, values: [-7.0, -4.0, 0.0, 7.0] },
- { tag: "-3..7", from: -3, to: 7, stepSize: 5.0, values: [-3.0, -3.0, 2.0, 7.0] },
- ]
- }
-
- function test_valueAt(data) {
- var control = createTemporaryObject(slider, testCase, {from: data.from, to: data.to, stepSize: data.stepSize})
- verify(control)
-
- compare(control.valueAt(0.0), data.values[0])
- compare(control.valueAt(0.2), data.values[1])
- compare(control.valueAt(0.5), data.values[2])
- compare(control.valueAt(1.0), data.values[3])
- }
-
- function test_nullHandle() {
- var control = createTemporaryObject(slider, testCase)
- verify(control)
-
- control.handle = null
-
- mousePress(control)
- verify(control.pressed, true)
-
- mouseRelease(control)
- compare(control.pressed, false)
- }
-
- function test_touchDragThreshold_data() {
- var d1 = 3; var d2 = 7;
- return [
- { tag: "horizontal", orientation: Qt.Horizontal, dx1: d1, dy1: 0, dx2: d2, dy2: 0 },
- { tag: "vertical", orientation: Qt.Vertical, dx1: 0, dy1: -d1, dx2: 0, dy2: -d2 },
- { tag: "horizontal2", orientation: Qt.Horizontal, dx1: -d1, dy1: 0, dx2: -d2, dy2: 0 },
- { tag: "vertical2", orientation: Qt.Vertical, dx1: 0, dy1: d1, dx2: 0, dy2: d2 }
- ]
- }
-
- function test_touchDragThreshold(data) {
- var control = createTemporaryObject(slider, testCase, {touchDragThreshold: 10, live: true, orientation: data.orientation, value: 0.5})
- verify(control)
- compare(control.touchDragThreshold, 10)
-
- var valueChangedCount = 0
- var valueChangedSpy = signalSpy.createObject(control, {target: control, signalName: "touchDragThresholdChanged"})
- verify(valueChangedSpy.valid)
-
- control.touchDragThreshold = undefined
- compare(control.touchDragThreshold, -1) // reset to -1
- compare(valueChangedSpy.count, ++valueChangedCount)
-
- var t = 5
- control.touchDragThreshold = t
- compare(control.touchDragThreshold, t)
- compare(valueChangedSpy.count, ++valueChangedCount)
-
- control.touchDragThreshold = t
- compare(control.touchDragThreshold, t)
- compare(valueChangedSpy.count, valueChangedCount)
-
- var pressedCount = 0
- var movedCount = 0
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- var movedSpy = signalSpy.createObject(control, {target: control, signalName: "moved"})
- verify(movedSpy.valid)
-
- var touch = touchEvent(control)
- var x0 = control.handle.x + control.handle.width * 0.5
- var y0 = control.handle.y + control.handle.height * 0.5
- touch.press(0, control, x0, y0).commit()
- compare(pressedSpy.count, ++pressedCount)
- compare(movedSpy.count, movedCount)
- compare(control.pressed, true)
-
- touch.move(0, control, x0 + data.dx1, y0 + data.dy1).commit()
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, movedCount) // shouldn't move
- compare(control.pressed, true)
-
- touch.move(0, control, x0 + data.dx2, y0 + data.dy2).commit()
- compare(pressedSpy.count, pressedCount)
- compare(movedSpy.count, ++movedCount)
- compare(control.pressed, true)
-
- touch.release(0, control, x0 + data.dx2, y0 + data.dy2).commit()
- }
-}
diff --git a/tests/auto/controls/data/tst_spinbox.qml b/tests/auto/controls/data/tst_spinbox.qml
deleted file mode 100644
index d3a0d8bb..00000000
--- a/tests/auto/controls/data/tst_spinbox.qml
+++ /dev/null
@@ -1,661 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "SpinBox"
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- Component {
- id: spinBox
- SpinBox { }
- }
-
- Component {
- id: mouseArea
- MouseArea { }
- }
-
- function test_defaults() {
- var control = createTemporaryObject(spinBox, testCase)
- verify(control)
-
- compare(control.from, 0)
- compare(control.to, 99)
- compare(control.value, 0)
- compare(control.stepSize, 1)
- compare(control.editable, false)
- compare(control.up.pressed, false)
- compare(control.up.indicator.enabled, true)
- compare(control.down.pressed, false)
- compare(control.down.indicator.enabled, false)
- }
-
- function test_value() {
- var control = createTemporaryObject(spinBox, testCase)
- verify(control)
-
- compare(control.value, 0)
- control.value = 50
- compare(control.value, 50)
- control.value = 99
- compare(control.value, 99)
- control.value = -99
- compare(control.value, 0)
- control.value = 100
- compare(control.value, 99)
- }
-
- function test_range() {
- var control = createTemporaryObject(spinBox, testCase, {from: 0, to: 100, value: 50})
- verify(control)
-
- compare(control.from, 0)
- compare(control.to, 100)
- compare(control.value, 50)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, true)
-
- control.value = 1000
- compare(control.value, 100)
- compare(control.up.indicator.enabled, false)
- compare(control.down.indicator.enabled, true)
-
- control.wrap = true
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, true)
-
- control.value = -1
- compare(control.value, 0)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, true)
-
- control.from = 25
- compare(control.from, 25)
- compare(control.value, 25)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, true)
-
- control.wrap = false
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, false)
-
- control.value = 30
- compare(control.from, 25)
- compare(control.value, 30)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, true)
-
- control.from = 30
- compare(control.from, 30)
- compare(control.value, 30)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, false)
-
- control.to = 75
- compare(control.to, 75)
- compare(control.value, 30)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, false)
-
- control.value = 50
- compare(control.value, 50)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, true)
-
- control.to = 50
- compare(control.to, 50)
- compare(control.value, 50)
- compare(control.up.indicator.enabled, false)
- compare(control.down.indicator.enabled, true)
-
- control.to = 40
- compare(control.to, 40)
- compare(control.value, 40)
- compare(control.up.indicator.enabled, false)
- compare(control.down.indicator.enabled, true)
- }
-
- function test_inverted() {
- var control = createTemporaryObject(spinBox, testCase, {from: 100, to: -100})
- verify(control)
-
- compare(control.from, 100)
- compare(control.to, -100)
- compare(control.value, 0)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, true)
-
- control.value = 200
- compare(control.value, 100)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, false)
-
- control.value = -200
- compare(control.value, -100)
- compare(control.up.indicator.enabled, false)
- compare(control.down.indicator.enabled, true)
-
- control.value = 0
- compare(control.value, 0)
- compare(control.up.indicator.enabled, true)
- compare(control.down.indicator.enabled, true)
- }
-
- function test_mouse_data() {
- return [
- { tag: "up", button: "up", value: 50, enabled: true, hold: false, modified: 1, expected: 51 },
- { tag: "down", button: "down", value: 50, enabled: true, hold: false, modified: 1, expected: 49 },
- { tag: "up:disabled", button: "up", value: 99, enabled: false, hold: false, modified: 0, expected: 99 },
- { tag: "down:disabled", button: "down", value: 0, enabled: false, hold: false, modified: 0, expected: 0 },
- { tag: "up:hold", button: "up", value: 95, enabled: true, hold: true, modified: 4, expected: 99 },
- { tag: "down:hold", button: "down", value: 5, enabled: true, hold: true, modified: 5, expected: 0 }
- ]
- }
-
- function test_mouse(data) {
- var control = createTemporaryObject(spinBox, testCase, {value: data.value})
- verify(control)
-
- var button = control[data.button]
- verify(button)
-
- var pressedSpy = signalSpy.createObject(control, {target: button, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- var valueModifiedSpy = signalSpy.createObject(control, {target: control, signalName: "valueModified"})
- verify(valueModifiedSpy.valid)
-
- mousePress(button.indicator)
- compare(pressedSpy.count, data.enabled ? 1 : 0)
- compare(button.pressed, data.enabled)
- compare(control.value, data.value)
- compare(valueModifiedSpy.count, 0)
-
- if (data.hold)
- tryCompare(control, "value", data.expected)
-
- mouseRelease(button.indicator)
- compare(pressedSpy.count, data.enabled ? 2 : 0)
- compare(button.pressed, false)
- compare(control.value, data.expected)
- compare(valueModifiedSpy.count, data.modified)
- }
-
- function test_keys_data() {
- return [
- { tag: "1", from: 1, to: 10, value: 1, stepSize: 1, upSteps: [2,3,4], downSteps: [3,2,1,1] },
- { tag: "2", from: 1, to: 10, value: 10, stepSize: 2, upSteps: [10,10], downSteps: [8,6,4] },
- { tag: "25", from: 0, to: 100, value: 50, stepSize: 25, upSteps: [75,100,100], downSteps: [75,50,25,0,0] },
- { tag: "wrap1", wrap: true, from: 1, to: 10, value: 1, stepSize: 1, upSteps: [2,3], downSteps: [2,1,10,9] },
- { tag: "wrap2", wrap: true, from: 1, to: 10, value: 10, stepSize: 2, upSteps: [1,3,5], downSteps: [3,1,10,8,6] },
- { tag: "wrap25", wrap: true, from: 0, to: 100, value: 50, stepSize: 25, upSteps: [75,100,0,25], downSteps: [0,100,75] }
- ]
- }
-
- function test_keys(data) {
- var control = createTemporaryObject(spinBox, testCase, {wrap: data.wrap, from: data.from, to: data.to, value: data.value, stepSize: data.stepSize})
- verify(control)
-
- var upPressedCount = 0
- var downPressedCount = 0
- var valueModifiedCount = 0
-
- var upPressedSpy = signalSpy.createObject(control, {target: control.up, signalName: "pressedChanged"})
- verify(upPressedSpy.valid)
-
- var downPressedSpy = signalSpy.createObject(control, {target: control.down, signalName: "pressedChanged"})
- verify(downPressedSpy.valid)
-
- var valueModifiedSpy = signalSpy.createObject(control, {target: control, signalName: "valueModified"})
- verify(valueModifiedSpy.valid)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- for (var u = 0; u < data.upSteps.length; ++u) {
- var wasUpEnabled = control.wrap || control.value < control.to
- keyPress(Qt.Key_Up)
- compare(control.up.pressed, wasUpEnabled)
- compare(control.down.pressed, false)
- if (wasUpEnabled) {
- ++upPressedCount
- ++valueModifiedCount
- }
- compare(upPressedSpy.count, upPressedCount)
- compare(valueModifiedSpy.count, valueModifiedCount)
-
- compare(control.value, data.upSteps[u])
-
- keyRelease(Qt.Key_Up)
- compare(control.down.pressed, false)
- compare(control.up.pressed, false)
- if (wasUpEnabled)
- ++upPressedCount
- compare(upPressedSpy.count, upPressedCount)
- compare(valueModifiedSpy.count, valueModifiedCount)
- }
-
- for (var d = 0; d < data.downSteps.length; ++d) {
- var wasDownEnabled = control.wrap || control.value > control.from
- keyPress(Qt.Key_Down)
- compare(control.down.pressed, wasDownEnabled)
- compare(control.up.pressed, false)
- if (wasDownEnabled) {
- ++downPressedCount
- ++valueModifiedCount
- }
- compare(downPressedSpy.count, downPressedCount)
- compare(valueModifiedSpy.count, valueModifiedCount)
-
- compare(control.value, data.downSteps[d])
-
- keyRelease(Qt.Key_Down)
- compare(control.down.pressed, false)
- compare(control.up.pressed, false)
- if (wasDownEnabled)
- ++downPressedCount
- compare(downPressedSpy.count, downPressedCount)
- compare(valueModifiedSpy.count, valueModifiedCount)
- }
- }
-
- function test_locale() {
- var control = createTemporaryObject(spinBox, testCase)
- verify(control)
-
- control.locale = Qt.locale("ar_EG") // Arabic, Egypt
-
- var numbers = ["٠", "١", "٢", "٣", "٤", "٥", "٦", "٧", "٨", "٩"]
- for (var i = 0; i < 10; ++i) {
- control.value = i
- compare(control.contentItem.text, numbers[i])
- }
- }
-
- function test_baseline() {
- var control = createTemporaryObject(spinBox, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- function test_focus() {
- var control = createTemporaryObject(spinBox, testCase, {from: 10, to: 1000, value: 100, focus: true})
- verify(control)
-
- control.forceActiveFocus()
- compare(control.activeFocus, true)
-
- compare(control.from, 10)
- compare(control.to, 1000)
- compare(control.value, 100)
-
- control.focus = false
- compare(control.activeFocus, false)
-
- compare(control.from, 10)
- compare(control.to, 1000)
- compare(control.value, 100)
- }
-
- function test_initialFocus() {
- var window = testCase.Window.window
- verify(window)
- compare(window.activeFocusItem, window.contentItem)
-
- var control = createTemporaryObject(spinBox, testCase, { editable: true, focus: true })
- verify(control)
- tryCompare(control.contentItem, "activeFocus", true)
- }
-
- function test_editable() {
- var control = createTemporaryObject(spinBox, testCase)
- verify(control)
-
- var valueModifiedSpy = signalSpy.createObject(control, {target: control, signalName: "valueModified"})
- verify(valueModifiedSpy.valid)
-
- control.contentItem.forceActiveFocus()
- compare(control.contentItem.activeFocus, true)
-
- compare(control.editable, false)
- control.contentItem.selectAll()
- keyClick(Qt.Key_5)
- keyClick(Qt.Key_Return)
- compare(control.value, 0)
- compare(valueModifiedSpy.count, 0)
-
- control.editable = true
- compare(control.editable, true)
- control.contentItem.selectAll()
- keyClick(Qt.Key_5)
- keyClick(Qt.Key_Return)
- compare(control.value, 5)
- compare(valueModifiedSpy.count, 1)
- }
-
- function test_wheel_data() {
- return [
- { tag: "1", from: 1, to: 10, value: 1, stepSize: 1, upSteps: [2,3,4], downSteps: [3,2,1,1] },
- { tag: "2", from: 1, to: 10, value: 10, stepSize: 2, upSteps: [10,10], downSteps: [8,6,4] },
- { tag: "25", from: 0, to: 100, value: 50, stepSize: 25, upSteps: [75,100,100], downSteps: [75,50,25,0,0] },
- { tag: "wrap1", wrap: true, from: 1, to: 10, value: 1, stepSize: 1, upSteps: [2,3], downSteps: [2,1,10,9] },
- { tag: "wrap2", wrap: true, from: 1, to: 10, value: 10, stepSize: 2, upSteps: [1,3,5], downSteps: [3,1,10,8,6] },
- { tag: "wrap25", wrap: true, from: 0, to: 100, value: 50, stepSize: 25, upSteps: [75,100,0,25], downSteps: [0,100,75] }
- ]
- }
-
- function test_wheel(data) {
- var ma = createTemporaryObject(mouseArea, testCase, {width: 100, height: 100})
- verify(ma)
-
- var control = spinBox.createObject(ma, {wrap: data.wrap, from: data.from, to: data.to, value: data.value, stepSize: data.stepSize, wheelEnabled: true})
- verify(control)
-
- var valueModifiedCount = 0
- var valueModifiedSpy = signalSpy.createObject(control, {target: control, signalName: "valueModified"})
- verify(valueModifiedSpy.valid)
-
- var delta = 120
-
- var spy = signalSpy.createObject(ma, {target: ma, signalName: "wheel"})
- verify(spy.valid)
-
- for (var u = 0; u < data.upSteps.length; ++u) {
- var wasUpEnabled = control.wrap || control.value < control.to
- mouseWheel(control, control.width / 2, control.height / 2, delta, delta)
- if (wasUpEnabled)
- ++valueModifiedCount
- compare(valueModifiedSpy.count, valueModifiedCount)
- compare(spy.count, 0) // no propagation
- compare(control.value, data.upSteps[u])
- }
-
- for (var d = 0; d < data.downSteps.length; ++d) {
- var wasDownEnabled = control.wrap || control.value > control.from
- mouseWheel(control, control.width / 2, control.height / 2, -delta, -delta)
- if (wasDownEnabled)
- ++valueModifiedCount
- compare(valueModifiedSpy.count, valueModifiedCount)
- compare(spy.count, 0) // no propagation
- compare(control.value, data.downSteps[d])
- }
- }
-
- function test_initiallyDisabledIndicators_data() {
- return [
- { tag: "down disabled", from: 0, value: 0, to: 99, upEnabled: true, downEnabled: false },
- { tag: "up disabled", from: 0, value: 99, to: 99, upEnabled: false, downEnabled: true },
- { tag: "inverted, down disabled", from: 99, value: 99, to: 0, upEnabled: true, downEnabled: false },
- { tag: "inverted, up disabled", from: 99, value: 0, to: 0, upEnabled: false, downEnabled: true }
- ]
- }
-
- function test_initiallyDisabledIndicators(data) {
- var control = createTemporaryObject(spinBox, testCase, { from: data.from, value: data.value, to: data.to })
- verify(control)
-
- compare(control.up.indicator.enabled, data.upEnabled)
- compare(control.down.indicator.enabled, data.downEnabled)
- }
-
- function test_hover_data() {
- return [
- { tag: "up:true", button: "up", hoverEnabled: true, value: 50 },
- { tag: "up:false", button: "up", hoverEnabled: false, value: 50 },
- { tag: "up:max", button: "up", hoverEnabled: true, value: 99 },
- { tag: "down:true", button: "down", hoverEnabled: true, value: 50 },
- { tag: "down:false", button: "down", hoverEnabled: false, value: 50 },
- { tag: "down:min", button: "down", hoverEnabled: true, value: 0 }
- ]
- }
-
- function test_hover(data) {
- var control = createTemporaryObject(spinBox, testCase, {hoverEnabled: data.hoverEnabled, value: data.value})
- verify(control)
-
- var button = control[data.button]
- compare(control.hovered, false)
- compare(button.hovered, false)
-
- mouseMove(control, button.indicator.x + button.indicator.width / 2, button.indicator.y + button.indicator.height / 2)
- compare(control.hovered, data.hoverEnabled)
- compare(button.hovered, data.hoverEnabled && button.indicator.enabled)
-
- mouseMove(control, button.indicator.x - 1, button.indicator.y - 1)
- compare(button.hovered, false)
- }
-
- function test_hoverWhilePressed_data() {
- return [
- { tag: "up" },
- { tag: "down" },
- ]
- }
-
- // QTBUG-74688
- function test_hoverWhilePressed(data) {
- var control = createTemporaryObject(spinBox, testCase, { hoverEnabled: true, value: 50 })
- verify(control)
-
- var button = control[data.tag]
- compare(control.hovered, false)
- compare(button.hovered, false)
-
- // Hover over the indicator. It should be hovered.
- var buttonXCenter = button.indicator.x + button.indicator.width / 2
- var buttonYCenter = button.indicator.y + button.indicator.height / 2
- mouseMove(control, buttonXCenter, buttonYCenter)
- compare(button.hovered, true)
-
- // Press on the indicator and then move the mouse outside of it.
- mousePress(control, buttonXCenter, buttonYCenter)
- compare(button.hovered, true)
- mouseMove(control, buttonXCenter - button.indicator.width, buttonYCenter - button.indicator.height)
- // It should not be pressed or hovered.
- compare(button.pressed, false)
- compare(button.hovered, false)
-
- mouseRelease(control)
- }
-
- function test_valueFromText_data() {
- return [
- { tag: "editable", editable: true },
- { tag: "non-editable", editable: false }
- ]
- }
-
- function test_valueFromText(data) {
- var control = createTemporaryObject(spinBox, testCase, {editable: data.editable})
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- var valueFromTextCalls = 0
- control.valueFromText = function(text, locale) {
- ++valueFromTextCalls
- return Number.fromLocaleString(locale, text);
- }
-
- keyClick(Qt.Key_Enter)
- compare(valueFromTextCalls, data.editable ? 1 : 0)
-
- keyClick(Qt.Key_Return)
- compare(valueFromTextCalls, data.editable ? 2 : 0)
-
- control.focus = false
- compare(valueFromTextCalls, data.editable ? 3 : 0)
- }
-
- function test_autoRepeat() {
- var control = createTemporaryObject(spinBox, testCase)
- verify(control)
-
- compare(control.value, 0)
-
- var valueSpy = signalSpy.createObject(control, {target: control, signalName: "valueChanged"})
- verify(valueSpy.valid)
-
- var countBefore = 0
-
- // repeat up
- mousePress(control.up.indicator)
- verify(control.up.pressed)
- compare(valueSpy.count, 0)
- valueSpy.wait()
- valueSpy.wait()
- countBefore = valueSpy.count
- mouseRelease(control.up.indicator)
- verify(!control.up.pressed)
- compare(valueSpy.count, countBefore)
-
- valueSpy.clear()
-
- // repeat down
- mousePress(control.down.indicator)
- verify(control.down.pressed)
- compare(valueSpy.count, 0)
- valueSpy.wait()
- valueSpy.wait()
- countBefore = valueSpy.count
- mouseRelease(control.down.indicator)
- verify(!control.down.pressed)
- compare(valueSpy.count, countBefore)
-
- mousePress(control.up.indicator)
- verify(control.up.pressed)
- valueSpy.wait()
-
- // move inside during repeat -> continue repeat (QTBUG-57085)
- mouseMove(control.up.indicator, control.up.indicator.width / 4, control.up.indicator.height / 4)
- verify(control.up.pressed)
- valueSpy.wait()
-
- valueSpy.clear()
-
- // move outside during repeat -> stop repeat
- mouseMove(control.up.indicator, -1, -1)
- verify(!control.up.pressed)
- // NOTE: The following wait() is NOT a reliable way to test that the
- // auto-repeat timer is not running, but there's no way dig into the
- // private APIs from QML. If this test ever fails in the future, it
- // indicates that the auto-repeat timer logic is broken.
- wait(125)
- compare(valueSpy.count, 0)
-
- mouseRelease(control.up.indicator, -1, -1)
- verify(!control.up.pressed)
- }
-
- function test_initialValue() {
- var control = createTemporaryObject(spinBox, testCase, {from: 1000, to: 10000})
- verify(control)
- compare(control.value, 1000)
- }
-
- Component {
- id: sizeBox
- SpinBox {
- from: 0
- to: items.length - 1
-
- property var items: ["Small", "Medium", "Large"]
-
- validator: RegExpValidator {
- regExp: new RegExp("(Small|Medium|Large)", "i")
- }
-
- textFromValue: function(value) {
- return items[value];
- }
-
- valueFromText: function(text) {
- for (var i = 0; i < items.length; ++i) {
- if (items[i].toLowerCase().indexOf(text.toLowerCase()) === 0)
- return i
- }
- return sb.value
- }
- }
- }
-
- function test_textFromValue_data() {
- return [
- { tag: "default", component: spinBox, values: [0, 10, 99], displayTexts: ["0", "10", "99"] },
- { tag: "custom", component: sizeBox, values: [0, 1, 2], displayTexts: ["Small", "Medium", "Large"] }
- ]
- }
-
- function test_textFromValue(data) {
- var control = createTemporaryObject(data.component, testCase)
- verify(control)
-
- for (var i = 0; i < data.values.length; ++i) {
- control.value = data.values[i]
- compare(control.value, data.values[i])
- compare(control.displayText, data.displayTexts[i])
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_splitview.qml b/tests/auto/controls/data/tst_splitview.qml
deleted file mode 100644
index a03c09a0..00000000
--- a/tests/auto/controls/data/tst_splitview.qml
+++ /dev/null
@@ -1,1961 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Controls 2.13
-import QtQuick.Window 2.13
-import QtTest 1.13
-import Qt.labs.settings 1.0
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "SplitView"
-
- function initTestCase() {
- // For the serialization tests.
- Qt.application.name = "qtquickcontrols2-splitview-auto-test"
- Qt.application.domain = "org.qt-project"
- Qt.application.organization = "Qt Project"
- }
-
- function findHandles(splitView) {
- var handles = []
- for (var i = 0; i < splitView.children.length; ++i) {
- var child = splitView.children[i]
- if (child.objectName.toLowerCase().indexOf("handle") !== -1)
- handles.push(child)
- }
- return handles
- }
-
- function compareSizes(control, expectedGeometries, context) {
- if (context === undefined)
- context = ""
- else
- context = " (" + context + ")"
-
- compare(control.count, Math.floor(expectedGeometries.length / 2) + 1,
- "Mismatch in actual vs expected number of split items" + context)
-
- var handles = findHandles(control)
- compare(handles.length, Math.floor(expectedGeometries.length / 2),
- "Mismatch in actual vs expected number of handle items" + context)
-
- for (var i = 0, splitItemIndex = 0, handleItemIndex = 0; i < expectedGeometries.length; ++i) {
- var item = null
- var itemType = ""
- var typeSpecificIndex = -1
- if (i % 2 == 0) {
- item = control.itemAt(splitItemIndex)
- itemType = "split item"
- typeSpecificIndex = splitItemIndex
- ++splitItemIndex
- } else {
- item = handles[handleItemIndex]
- itemType = "handle item"
- typeSpecificIndex = handleItemIndex
- ++handleItemIndex
- }
-
- verify(item, itemType + " at index " + typeSpecificIndex + " should not be null" + context)
-
- var expectedGeometry = expectedGeometries[i]
- if (expectedGeometry.hasOwnProperty("hidden")) {
- // It's geometry doesn't matter because it's hidden.
- verify(!item.visible, itemType + " at index " + typeSpecificIndex + " should be hidden" + context)
- continue
- }
-
- // Note that the indices mentioned here account for handles; they do not
- // match the indices reported by QQuickSplitView's logging categories.
- compare(item.x, expectedGeometry.x, "Mismatch in actual vs expected x value of "
- + itemType + " at index " + typeSpecificIndex + context)
- compare(item.y, expectedGeometry.y, "Mismatch in actual vs expected y value of "
- + itemType + " at index " + typeSpecificIndex + context)
- compare(item.width, expectedGeometry.width, "Mismatch in actual vs expected width value of "
- + itemType + " at index " + typeSpecificIndex + context)
- compare(item.height, expectedGeometry.height, "Mismatch in actual vs expected height value of "
- + itemType + " at index " + typeSpecificIndex + context)
- }
- }
-
- property real defaultHorizontalHandleWidth: 10
- property real defaultVerticalHandleHeight: 10
-
-
- Component {
- id: signalSpyComponent
- SignalSpy {}
- }
-
- Component {
- id: handleComponent
- Rectangle {
- objectName: "handle"
- implicitWidth: defaultHorizontalHandleWidth
- implicitHeight: defaultVerticalHandleHeight
- color: "#444"
- }
- }
-
- SplitView {
- id: dummyHorizontalSplitView
- handle: handleComponent
-
- Item { objectName: "dummyItem" }
- Item { objectName: "dummyItem" }
- }
-
- SplitView {
- id: dummyVerticalSplitView
- orientation: Qt.Vertical
- handle: handleComponent
-
- Item { objectName: "dummyItem" }
- Item { objectName: "dummyItem" }
- }
-
- Component {
- id: splitViewComponent
-
- SplitView {
- anchors.fill: parent
- handle: handleComponent
- }
- }
-
- Component {
- id: rectangleComponent
-
- Rectangle {}
- }
-
- function test_addItemsAfterCompletion() {
- var control = createTemporaryObject(splitViewComponent, testCase)
- verify(control)
-
- var item0 = rectangleComponent.createObject(control, { implicitWidth: 25, color: "salmon" })
- verify(item0)
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- // The last item fills the width by default, and since there is only one item...
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, testCase.width)
- compare(item0.height, testCase.height)
-
- var item1 = rectangleComponent.createObject(control, { implicitWidth: 25, color: "steelblue" })
- verify(item1)
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- // Now that a second item has been added, the first item goes back to its preferred (implicit) width.
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, item0.implicitWidth)
- compare(item0.height, testCase.height)
- var handles = findHandles(control)
- var handle0 = handles[0]
- compare(handle0.x, item0.implicitWidth)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
- compare(item1.x, item0.implicitWidth + defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, testCase.width - item0.implicitWidth - defaultHorizontalHandleWidth)
- compare(item1.height, testCase.height)
- }
-
- function test_addItemsWithNoSizeAfterCompletion() {
- var control = createTemporaryObject(splitViewComponent, testCase)
- verify(control)
-
- var item0 = rectangleComponent.createObject(control, { color: "salmon" })
- verify(item0)
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, testCase.width)
- compare(item0.height, testCase.height)
-
- var item1 = rectangleComponent.createObject(control, { color: "steelblue" })
- verify(item1)
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, 0)
- compare(item0.height, testCase.height)
- var handles = findHandles(control)
- var handle0 = handles[0]
- compare(handle0.x, 0)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
- compare(item1.x, defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, testCase.width - defaultHorizontalHandleWidth)
- compare(item1.height, testCase.height)
- }
-
- Component {
- id: threeZeroSizedItemsComponent
-
- SplitView {
- anchors.fill: parent
- handle: handleComponent
-
- Rectangle {
- objectName: "salmon"
- color: objectName
- }
- Rectangle {
- objectName: "navajowhite"
- color: objectName
- }
- Rectangle {
- objectName: "steelblue"
- color: objectName
- }
- }
- }
-
- function test_changeAttachedPropertiesAfterCompletion() {
- var control = createTemporaryObject(threeZeroSizedItemsComponent, testCase)
- verify(control)
-
- var item0 = control.itemAt(0)
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, 0)
- compare(item0.height, testCase.height)
-
- var handles = findHandles(control)
- var handle0 = handles[0]
- compare(handle0.x, 0)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
-
- var item1 = control.itemAt(1)
- compare(item1.x, defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, 0)
- compare(item1.height, testCase.height)
-
- var handle1 = handles[1]
- compare(handle1.x, defaultHorizontalHandleWidth)
- compare(handle1.y, 0)
- compare(handle1.width, defaultHorizontalHandleWidth)
- compare(handle1.height, testCase.height)
-
- var item2 = control.itemAt(2)
- compare(item2.x, defaultHorizontalHandleWidth * 2)
- compare(item2.y, 0)
- compare(item2.width, testCase.width - item2.x)
- compare(item2.height, testCase.height)
-
- item0.SplitView.preferredWidth = 25
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, 25)
- compare(item0.height, testCase.height)
- compare(handle0.x, item0.width)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
- compare(item1.x, 25 + defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, 0)
- compare(item1.height, testCase.height)
- compare(handle1.x, item1.x + item1.width)
- compare(handle1.y, 0)
- compare(handle1.width, defaultHorizontalHandleWidth)
- compare(handle1.height, testCase.height)
- compare(item2.x, item1.x + item1.width + defaultHorizontalHandleWidth)
- compare(item2.y, 0)
- compare(item2.width, testCase.width - item2.x)
- compare(item2.height, testCase.height)
-
- item0.SplitView.minimumWidth = 50
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, 50)
- compare(item0.height, testCase.height)
- compare(handle0.x, item0.width)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
- compare(item1.x, 50 + defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, 0)
- compare(item1.height, testCase.height)
- compare(handle1.x, item1.x + item1.width)
- compare(handle1.y, 0)
- compare(handle1.width, defaultHorizontalHandleWidth)
- compare(handle1.height, testCase.height)
- compare(item2.x, item1.x + item1.width + defaultHorizontalHandleWidth)
- compare(item2.y, 0)
- compare(item2.width, testCase.width - item2.x)
- compare(item2.height, testCase.height)
-
- item0.SplitView.preferredWidth = 100
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, 100)
- compare(item0.height, testCase.height)
- compare(handle0.x, item0.width)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
- compare(item1.x, 100 + defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, 0)
- compare(item1.height, testCase.height)
- compare(handle1.x, item1.x + item1.width)
- compare(handle1.y, 0)
- compare(handle1.width, defaultHorizontalHandleWidth)
- compare(handle1.height, testCase.height)
- compare(item2.x, item1.x + item1.width + defaultHorizontalHandleWidth)
- compare(item2.y, 0)
- compare(item2.width, testCase.width - item2.x)
- compare(item2.height, testCase.height)
-
- item0.SplitView.maximumWidth = 75
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, 75)
- compare(item0.height, testCase.height)
- compare(handle0.x, item0.width)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
- compare(item1.x, 75 + defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, 0)
- compare(item1.height, testCase.height)
- compare(handle1.x, item1.x + item1.width)
- compare(handle1.y, 0)
- compare(handle1.width, defaultHorizontalHandleWidth)
- compare(handle1.height, testCase.height)
- compare(item2.x, item1.x + item1.width + defaultHorizontalHandleWidth)
- compare(item2.y, 0)
- compare(item2.width, testCase.width - item2.x)
- compare(item2.height, testCase.height)
-
- item1.SplitView.fillWidth = true
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, 75)
- compare(item0.height, testCase.height)
- compare(handle0.x, item0.width)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
- compare(item1.x, 75 + defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, testCase.width - 75 - defaultHorizontalHandleWidth * 2)
- compare(item1.height, testCase.height)
- compare(handle1.x, item1.x + item1.width)
- compare(handle1.y, 0)
- compare(handle1.width, defaultHorizontalHandleWidth)
- compare(handle1.height, testCase.height)
- compare(item2.x, testCase.width)
- compare(item2.y, 0)
- compare(item2.width, 0)
- compare(item2.height, testCase.height)
- }
-
- Component {
- id: itemComponent
- Item {}
- }
-
- Component {
- id: objectComponent
- QtObject {}
- }
-
- function test_useAttachedPropertiesIncorrectly_data() {
- var properties = [ "fillWidth", "fillHeight", "minimumWidth", "minimumHeight",
- "preferredWidth", "preferredHeight", "maximumWidth", "maximumHeight" ]
-
- var data = []
-
- for (var i = 0; i < properties.length; ++i) {
- var property = properties[i]
- data.push({ tag: "Item," + property, component: itemComponent, property: property,
- expectedWarning: /.*SplitView: attached properties must be accessed through a direct child of SplitView/ })
- }
-
- for (i = 0; i < properties.length; ++i) {
- property = properties[i]
- data.push({ tag: "QtObject," + property, component: objectComponent, property: property,
- expectedWarning: /.*SplitView: attached properties can only be used on Items/ })
- }
-
- return data
- }
-
- function test_useAttachedPropertiesIncorrectly(data) {
- // The object (whatever it may be) is not managed by a SplitView.
- var object = createTemporaryObject(data.component, testCase, { objectName: data.tag })
- verify(object)
-
- ignoreWarning(data.expectedWarning)
- // Should warn, but not crash.
- object.SplitView[data.property] = 1;
- }
-
- function test_sizes_data() {
- var splitViewWidth = testCase.width
- var splitViewHeight = testCase.height
- var data = [
- {
- // When the combined size of items is too large, the non-fill items should just exceed
- // the size of the SplitView, exactly as they would were they in a RowLayout, for example.
- tag: "fillItemOnLeft",
- expectedGeometries: [
- // We're the fill item, but since the combined implicitWidths
- // of the other two items take up all the space, we get none.
- { x: 0, y: 0, width: 0, height: splitViewHeight },
- // First handle.
- { x: 0, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The second item does not fill, so its width should be unchanged.
- { x: defaultHorizontalHandleWidth, y: 0, width: 200, height: splitViewHeight },
- // Second handle.
- { x: 200 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: splitViewHeight },
- // The third item also gets its implicitWidth.
- { x: 200 + defaultHorizontalHandleWidth * 2, y: 0, width: 200, height: splitViewHeight }
- ]
- },
- {
- // Same as above except vertical.
- tag: "fillItemOnTop",
- expectedGeometries: [
- // We're the fill item, but since the combined implicitHeights
- // of the other two items take up all the space, we get none.
- { x: 0, y: 0, width: splitViewWidth, height: 0 },
- // First handle.
- { x: 0, y: 0, width: splitViewWidth, height: defaultVerticalHandleHeight },
- // The second item does not fill, so its height should be unchanged.
- { x: 0, y: defaultVerticalHandleHeight, width: splitViewWidth, height: 200 },
- // Second handle.
- { x: 0, y: 200 + defaultVerticalHandleHeight, width: splitViewWidth,
- height: defaultVerticalHandleHeight },
- // The third item also gets its implicitHeight.
- { x: 0, y: 200 + defaultVerticalHandleHeight * 2, width: splitViewWidth, height: 200 }
- ]
- },
- {
- tag: "fillItemInMiddle",
- expectedGeometries: [
- // Our size is fixed.
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- // First handle.
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The second item fills.
- { x: 25 + defaultHorizontalHandleWidth, y: 0,
- width: splitViewWidth - 25 - 200 - defaultHorizontalHandleWidth * 2, height: splitViewHeight },
- // Second handle.
- { x: splitViewWidth - 200 - defaultHorizontalHandleWidth, y: 0,
- width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The third item's size is also fixed.
- { x: splitViewWidth - 200, y: 0, width: 200, height: splitViewHeight }
- ]
- }
- ]
- return data
- }
-
- function test_sizes(data) {
- var component = Qt.createComponent("splitview/" + data.tag + ".qml")
- compare(component.status, Component.Ready, component.errorString());
- var control = createTemporaryObject(component, testCase, { "handle": handleComponent })
- verify(control)
-
- compareSizes(control, data.expectedGeometries)
- }
-
- Component {
- id: threeSizedItemsComponent
-
- SplitView {
- anchors.fill: parent
- handle: handleComponent
-
- Rectangle {
- objectName: "salmon"
- color: objectName
- implicitWidth: 25
- implicitHeight: 25
- }
- Rectangle {
- objectName: "navajowhite"
- color: objectName
- implicitWidth: 100
- implicitHeight: 100
- }
- Rectangle {
- objectName: "steelblue"
- color: objectName
- implicitWidth: 200
- implicitHeight: 200
- }
- }
- }
-
- function test_resetAttachedProperties_data() {
- var splitViewWidth = testCase.width
- var splitViewHeight = testCase.height
- var data = [
- {
- tag: "resetMinimumWidth",
- orientation: Qt.Horizontal,
- // Set the minimumWidth to 50. It should be used instead of implicitWidth since it's greater than 25.
- splitItemIndex: 0,
- propertyName: "minimumWidth",
- propertyValue: 50,
- expectedGeometriesBefore: [
- { x: 0, y: 0, width: 50, height: splitViewHeight },
- { x: 50, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 50 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 50 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: splitViewHeight },
- { x: 50 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 50 - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ],
- // minimumWidth is now undefined, so implicitWidth should be used instead.
- expectedGeometriesAfter: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 25 - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ]
- },
- {
- tag: "resetMinimumHeight",
- orientation: Qt.Vertical,
- // Set the minimumHeight to 50. It should be used instead of implicitHeight since it's greater than 25.
- splitItemIndex: 0,
- propertyName: "minimumHeight",
- propertyValue: 50,
- expectedGeometriesBefore: [
- { x: 0, y: 0, width: splitViewWidth, height: 50 },
- { x: 0, y: 50, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 50 + defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 50 + 100 + defaultVerticalHandleHeight, width: splitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 50 + 100 + defaultVerticalHandleHeight * 2, width: splitViewWidth,
- height: splitViewHeight - 50 - 100 - defaultVerticalHandleHeight * 2 }
- ],
- // preferredHeight is now undefined, so implicitHeight should be used instead.
- expectedGeometriesAfter: [
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- { x: 0, y: 25, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight, width: splitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight * 2, width: splitViewWidth,
- height: splitViewHeight - 25 - 100 - defaultVerticalHandleHeight * 2 }
- ]
- },
- {
- tag: "resetPreferredWidth",
- orientation: Qt.Horizontal,
- // Set the preferredWidth to 50; it should be used instead of implicitWidth.
- splitItemIndex: 0,
- propertyName: "preferredWidth",
- propertyValue: 50,
- expectedGeometriesBefore: [
- { x: 0, y: 0, width: 50, height: splitViewHeight },
- { x: 50, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 50 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 50 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: splitViewHeight },
- { x: 50 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 50 - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ],
- // preferredWidth is now undefined, so implicitWidth should be used instead.
- expectedGeometriesAfter: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 25 - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ]
- },
- {
- tag: "resetPreferredHeight",
- orientation: Qt.Vertical,
- // Set the preferredHeight to 50; it should be used instead of implicitHeight.
- splitItemIndex: 0,
- propertyName: "preferredHeight",
- propertyValue: 50,
- expectedGeometriesBefore: [
- { x: 0, y: 0, width: splitViewWidth, height: 50 },
- { x: 0, y: 50, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 50 + defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 50 + 100 + defaultVerticalHandleHeight, width: splitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 50 + 100 + defaultVerticalHandleHeight * 2, width: splitViewWidth,
- height: splitViewHeight - 50 - 100 - defaultVerticalHandleHeight * 2 }
- ],
- // preferredHeight is now undefined, so implicitHeight should be used instead.
- expectedGeometriesAfter: [
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- { x: 0, y: 25, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight, width: splitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight * 2, width: splitViewWidth,
- height: splitViewHeight - 25 - 100 - defaultVerticalHandleHeight * 2 }
- ]
- },
- {
- tag: "resetMaximumWidth",
- orientation: Qt.Horizontal,
- // Set the maximumWidth to 15. It should be used instead of implicitWidth since it's less than 25.
- splitItemIndex: 0,
- propertyName: "maximumWidth",
- propertyValue: 15,
- expectedGeometriesBefore: [
- { x: 0, y: 0, width: 15, height: splitViewHeight },
- { x: 15, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 15 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 15 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: splitViewHeight },
- { x: 15 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 15 - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ],
- // maximumWidth is now undefined, so implicitWidth should be used instead.
- expectedGeometriesAfter: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 25 - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ]
- },
- {
- tag: "resetMaximumHeight",
- orientation: Qt.Vertical,
- // Set the preferredHeight to 15. It should be used instead of implicitHeight if it's not undefined.
- splitItemIndex: 0,
- propertyName: "maximumHeight",
- propertyValue: 15,
- expectedGeometriesBefore: [
- { x: 0, y: 0, width: splitViewWidth, height: 15 },
- { x: 0, y: 15, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 15 + defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 15 + 100 + defaultVerticalHandleHeight, width: splitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 15 + 100 + defaultVerticalHandleHeight * 2, width: splitViewWidth,
- height: splitViewHeight - 15 - 100 - defaultVerticalHandleHeight * 2 }
- ],
- // preferredHeight is now undefined, so implicitHeight should be used instead.
- expectedGeometriesAfter: [
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- { x: 0, y: 25, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight, width: splitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight * 2, width: splitViewWidth,
- height: splitViewHeight - 25 - 100 - defaultVerticalHandleHeight * 2 }
- ]
- },
- ]
- return data;
- }
-
- function test_resetAttachedProperties(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase,
- { "orientation": data.orientation })
- verify(control)
-
- var splitItem = control.itemAt(data.splitItemIndex)
- splitItem.SplitView[data.propertyName] = data.propertyValue
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometriesBefore, "after setting attached property")
-
- splitItem.SplitView[data.propertyName] = undefined
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometriesAfter, "after resetting attached property")
- }
-
- function test_orientation() {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase)
- verify(control)
-
- var item0 = control.itemAt(0)
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, item0.implicitWidth)
- compare(item0.height, testCase.height)
-
- var handles = findHandles(control)
- var handle0 = handles[0]
- compare(handle0.x, item0.implicitWidth)
- compare(handle0.y, 0)
- compare(handle0.width, defaultHorizontalHandleWidth)
- compare(handle0.height, testCase.height)
-
- var item1 = control.itemAt(1)
- compare(item1.x, item0.width + defaultHorizontalHandleWidth)
- compare(item1.y, 0)
- compare(item1.width, item1.implicitWidth)
- compare(item1.height, testCase.height)
-
- var handle1 = handles[1]
- compare(handle1.x, item1.x + item1.width)
- compare(handle1.y, 0)
- compare(handle1.width, defaultHorizontalHandleWidth)
- compare(handle1.height, testCase.height)
-
- var item2 = control.itemAt(2)
- compare(item2.x, item0.width + item1.width + defaultHorizontalHandleWidth * 2)
- compare(item2.y, 0)
- compare(item2.width, testCase.width - item2.x)
- compare(item2.height, testCase.height)
-
- control.orientation = Qt.Vertical
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(item0.x, 0)
- compare(item0.y, 0)
- compare(item0.width, testCase.width)
- compare(item0.height, item0.implicitHeight)
- handles = findHandles(control)
- handle0 = handles[0]
- compare(handle0.x, 0)
- compare(handle0.y, item0.implicitHeight)
- compare(handle0.width, testCase.width)
- compare(handle0.height, defaultVerticalHandleHeight)
- compare(item1.x, 0)
- compare(item1.y, item0.height + defaultVerticalHandleHeight)
- compare(item1.width, testCase.width)
- compare(item1.height, item1.implicitHeight)
- handle1 = handles[1]
- compare(handle1.x, 0)
- compare(handle1.y, item1.y + item1.height)
- compare(handle1.width, testCase.width)
- compare(handle1.height, defaultVerticalHandleHeight)
- compare(item2.x, 0)
- compare(item2.y, item0.height + item1.height + defaultVerticalHandleHeight * 2)
- compare(item2.width, testCase.width)
- compare(item2.height, testCase.height - item2.y)
- }
-
- readonly property int splitViewMargins: 50
-
- Component {
- id: threeItemsMinSizeAndFillComponent
-
- SplitView {
- anchors.fill: parent
- handle: handleComponent
-
- Rectangle {
- objectName: "salmon"
- color: objectName
- implicitWidth: 25
- implicitHeight: 25
- SplitView.minimumWidth: 25
- SplitView.minimumHeight: 25
- SplitView.fillWidth: true
- SplitView.fillHeight: true
- }
- Rectangle {
- objectName: "navajowhite"
- color: objectName
- implicitWidth: 100
- implicitHeight: 100
- }
- Rectangle {
- objectName: "steelblue"
- color: objectName
- implicitWidth: 200
- implicitHeight: 200
- }
- }
- }
-
- function test_dragHandle_data() {
- var splitViewWidth = testCase.width - splitViewMargins * 2
- var splitViewHeight = testCase.height - splitViewMargins * 2
- var data = [
- {
- tag: "fillThirdItemAndDragFirstHandlePastRightSide",
- component: threeSizedItemsComponent,
- orientation: Qt.Horizontal,
- // The index of the item that will fill.
- fillIndex: 2,
- // The index of the handle to be dragged.
- handleIndex: 0,
- // The position where the center of the handle will be.
- newHandlePos: Qt.point(testCase.width + 20, testCase.height / 2),
- // The expected geometry of each item managed by the SplitView before dragging the handle.
- expectedGeometriesBeforeDrag: [
- // First item.
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- // First handle.
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // Second item.
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- // Second handle.
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // Third item (fills).
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 25 - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ],
- // The expected geometry of each item managed by the SplitView after dragging the handle.
- expectedGeometriesAfterDrag: [
- // The fill item is to the right of the handle at index 0, so the handle belongs
- // to the left item: us. We should consume all of the fill item's width.
- { x: 0, y: 0, width: splitViewWidth - 100 - defaultHorizontalHandleWidth * 2,
- height: splitViewHeight },
- // First handle.
- { x: splitViewWidth - defaultHorizontalHandleWidth * 2 - 100,
- y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The second item does not fill, so its width should be unchanged.
- { x: splitViewWidth - 100 - defaultHorizontalHandleWidth,
- y: 0, width: 100, height: splitViewHeight },
- // Second handle.
- { x: splitViewWidth - defaultHorizontalHandleWidth,
- y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The last item does fill, so it should lose all of its width.
- { x: splitViewWidth, y: 0, width: 0, height: splitViewHeight }
- ]
- },
- {
- tag: "fillThirdItemAndDragFirstHandlePastBottomSide",
- component: threeSizedItemsComponent,
- orientation: Qt.Vertical,
- fillIndex: 2,
- handleIndex: 0,
- newHandlePos: Qt.point(testCase.width / 2, testCase.height + 20),
- expectedGeometriesBeforeDrag: [
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- { x: 0, y: 25, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight * 2,
- width: splitViewWidth, height: splitViewHeight - 25 - 100 - defaultVerticalHandleHeight * 2 }
- ],
- // The expected geometry of each item managed by the SplitView after dragging the handle.
- expectedGeometriesAfterDrag: [
- // The fill item is to the bottom of the handle at index 0, so the handle belongs
- // to the top item: us. We should consume all of the fill item's width.
- { x: 0, y: 0, width: splitViewWidth,
- height: splitViewHeight - 100 - defaultVerticalHandleHeight * 2 },
- // First handle.
- { x: 0, y: splitViewHeight - defaultVerticalHandleHeight * 2 - 100,
- width: splitViewWidth, height: defaultVerticalHandleHeight },
- // The second item does not fill, so its height should be unchanged.
- { x: 0, y: splitViewWidth - 100 - defaultVerticalHandleHeight,
- width: splitViewWidth, height: 100 },
- // Second handle.
- { x: 0, y: splitViewHeight - defaultVerticalHandleHeight,
- width: splitViewWidth, height: defaultVerticalHandleHeight },
- // The last item does fill, so it should lose all of its width.
- { x: 0, y: splitViewHeight, width: splitViewWidth, height: 0 }
- ]
- },
- {
- tag: "fillThirdItemAndDragSecondHandlePastLeftSide",
- component: threeSizedItemsComponent,
- orientation: Qt.Horizontal,
- fillIndex: 2,
- handleIndex: 1,
- newHandlePos: Qt.point(-20, testCase.height / 2),
- expectedGeometriesBeforeDrag: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 25 - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ],
- expectedGeometriesAfterDrag: [
- // The fill item is to the right of the handle at index 1, so the handle belongs
- // to the second item; our width should be unchanged.
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- // First handle.
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The second item is the one being resized, and since we're dragging its handle
- // to the left, its width should decrease.
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 0, height: splitViewHeight },
- // Second handle.
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: splitViewHeight },
- // The last item fills, so it should get the second item's lost width.
- { x: 25 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 25 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ]
- },
- {
- tag: "fillThirdItemAndDragSecondHandlePastTopSide",
- component: threeSizedItemsComponent,
- orientation: Qt.Vertical,
- fillIndex: 2,
- handleIndex: 1,
- newHandlePos: Qt.point(testCase.width / 2, -20),
- expectedGeometriesBeforeDrag: [
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- { x: 0, y: 25, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight * 2,
- width: splitViewWidth, height: splitViewHeight - 25 - 100 - defaultVerticalHandleHeight * 2 }
- ],
- expectedGeometriesAfterDrag: [
- // The fill item is to the bottom of the handle at index 1, so the handle belongs
- // to the second item; our height should be unchanged.
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- // First handle.
- { x: 0, y: 25, width: splitViewWidth, height: defaultVerticalHandleHeight },
- // The second item is the one being resized, and since we're dragging its handle
- // to the top, its height should decrease.
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: splitViewWidth, height: 0 },
- // Second handle.
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: splitViewWidth,
- height: defaultVerticalHandleHeight },
- // The last item fills, so it should get the second item's lost height.
- { x: 0, y: 25 + defaultVerticalHandleHeight * 2,
- width: splitViewWidth, height: splitViewHeight - 25 - defaultVerticalHandleHeight * 2 }
- ]
- },
- {
- // First item should start off empty and then eventually take up all of 3rd item's space
- // as the handle is dragged past the right side.
- tag: "fillFirstItemAndDragSecondHandlePastRightSide",
- component: threeSizedItemsComponent,
- orientation: Qt.Horizontal,
- fillIndex: 0,
- handleIndex: 1,
- newHandlePos: Qt.point(testCase.width + 20, testCase.height / 2),
- expectedGeometriesBeforeDrag: [
- { x: 0, y: 0, width: 0, height: splitViewHeight },
- { x: 0, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 100 + defaultHorizontalHandleWidth * 2, y: 0, width: 200, height: splitViewHeight }
- ],
- expectedGeometriesAfterDrag: [
- // The fill item is to the left of the handle at index 1, so the handle belongs
- // to the third item. Since we're moving the handle to the right side of the
- // SplitView, our width should grow as we consume the width of the third item.
- { x: 0, y: 0, width: splitViewWidth - 100 - defaultHorizontalHandleWidth * 2, height: splitViewHeight },
- // First handle.
- { x: splitViewWidth - 100 - defaultHorizontalHandleWidth * 2, y: 0,
- width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The second item's width remains unchanged.
- { x: splitViewWidth - 100 - defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- // Second handle.
- { x: splitViewWidth - defaultHorizontalHandleWidth, y: 0,
- width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The last item loses its width.
- { x: splitViewWidth, y: 0, width: 0, height: splitViewHeight }
- ]
- },
- {
- // First item should start off empty and then eventually take up all of 3rd item's space
- // as the handle is dragged past the bottom side.
- tag: "fillFirstItemAndDragSecondHandlePastBottomSide",
- component: threeSizedItemsComponent,
- orientation: Qt.Vertical,
- fillIndex: 0,
- handleIndex: 1,
- newHandlePos: Qt.point(testCase.width / 2, testCase.height + 20),
- expectedGeometriesBeforeDrag: [
- { x: 0, y: 0, width: splitViewWidth, height: 0 },
- { x: 0, y: 0, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- { x: 0, y: 100 + defaultVerticalHandleHeight, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 100 + defaultVerticalHandleHeight * 2, width: splitViewWidth, height: 200 }
- ],
- expectedGeometriesAfterDrag: [
- // The fill item is to the top of the handle at index 1, so the handle belongs
- // to the third item. Since we're moving the handle to the bottom side of the
- // SplitView, our height should grow as we consume the height of the third item.
- { x: 0, y: 0, width: splitViewWidth, height: splitViewHeight - 100 - defaultVerticalHandleHeight * 2 },
- // First handle.
- { x: 0, y: splitViewHeight - 100 - defaultVerticalHandleHeight * 2,
- width: splitViewWidth, height: defaultVerticalHandleHeight },
- // The second item's width remains unchanged.
- { x: 0, y: splitViewHeight - 100 - defaultVerticalHandleHeight, width: splitViewWidth, height: 100 },
- // Second handle.
- { x: 0, y: splitViewHeight - defaultVerticalHandleHeight,
- width: splitViewWidth, height: defaultVerticalHandleHeight },
- // The last item loses its width.
- { x: 0, y: splitViewHeight, width: splitViewHeight, height: 0 }
- ]
- },
- {
- tag: "fillFirstItemAndDragFirstHandlePastLeftSide",
- component: threeSizedItemsComponent,
- orientation: Qt.Horizontal,
- fillIndex: 0,
- handleIndex: 0,
- newHandlePos: Qt.point(-20, testCase.height / 2),
- expectedGeometriesBeforeDrag: [
- { x: 0, y: 0, width: 0, height: splitViewHeight },
- { x: 0, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // The second item's implicitWidth is 100, and ours is 200. The available width is 300,
- // so both items get their implicit widths.
- { x: 100 + defaultHorizontalHandleWidth * 2, y: 0, width: splitViewWidth - 100, height: splitViewHeight }
- ],
- // Should be unchanged.
- expectedGeometriesAfterDrag: [
- { x: 0, y: 0, width: 0, height: splitViewHeight },
- { x: 0, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 100 + defaultHorizontalHandleWidth * 2, y: 0, width: splitViewWidth - 100, height: splitViewHeight }
- ]
- },
- {
- tag: "fillFirstItemWithMinWidthAndDragFirstHandlePastLeftSide",
- component: threeItemsMinSizeAndFillComponent,
- orientation: Qt.Horizontal,
- fillIndex: 0,
- handleIndex: 0,
- newHandlePos: Qt.point(-20, testCase.height / 2),
- expectedGeometriesBeforeDrag: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0, width: splitViewWidth - 100, height: splitViewHeight }
- ],
- // Should be unchanged.
- expectedGeometriesAfterDrag: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0, width: splitViewWidth - 100, height: splitViewHeight }
- ]
- }
- ]
- return data
- }
-
- function test_dragHandle(data) {
- var control = createTemporaryObject(data.component, testCase)
- verify(control)
-
- control.orientation = data.orientation
-
- // Ensure that there is space to drag outside of the SplitView.
- control.anchors.margins = splitViewMargins
-
- var fillItem = control.itemAt(data.fillIndex)
- if (control.orientation === Qt.Horizontal)
- fillItem.SplitView.fillWidth = true
- else
- fillItem.SplitView.fillHeight = true
-
- // Check the sizes of the items before the drag.
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometriesBeforeDrag, "before drag")
-
- // Drag the handle.
- var handles = findHandles(control)
- var targetHandle = handles[data.handleIndex]
- mousePress(targetHandle)
- verify(control.resizing)
- var localPos = testCase.mapToItem(targetHandle, data.newHandlePos.x, data.newHandlePos.y)
- mouseMove(targetHandle, localPos.x - targetHandle.width / 2, localPos.y - targetHandle.height / 2)
- verify(control.resizing)
- compareSizes(control, data.expectedGeometriesAfterDrag, "after drag move")
-
- // The geometries should remain unchanged after releasing.
- mouseRelease(targetHandle, localPos.x - targetHandle.width / 2, localPos.y - targetHandle.height / 2, Qt.LeftButton)
- verify(!control.resizing)
- compareSizes(control, data.expectedGeometriesAfterDrag, "after drag release")
- }
-
- function test_splitViewGeometryChanges_data() {
- var defaultSplitViewWidth = testCase.width
- var defaultSplitViewHeight = testCase.height
-
- var data = [
- {
- tag: "growWidth",
- orientation: Qt.Horizontal,
- splitViewWidth: 800,
- expectedGeometries: [
- { x: 0, y: 0, width: 25, height: defaultSplitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: defaultSplitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: defaultSplitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: defaultSplitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: 800 - 25 - 100 - defaultHorizontalHandleWidth * 2, height: defaultSplitViewHeight }
- ]
- },
- {
- // Same as above except vertical.
- tag: "growHeight",
- orientation: Qt.Vertical,
- splitViewHeight: 800,
- expectedGeometries: [
- { x: 0, y: 0, width: defaultSplitViewWidth, height: 25 },
- { x: 0, y: 25, width: defaultSplitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: defaultSplitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight, width: defaultSplitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight * 2, width: defaultSplitViewWidth,
- height: 800 - 25 - 100 - defaultVerticalHandleHeight * 2 }
- ]
- },
- {
- tag: "shrinkWidth",
- orientation: Qt.Horizontal,
- splitViewWidth: 200,
- expectedGeometries: [
- { x: 0, y: 0, width: 25, height: defaultSplitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: defaultSplitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: defaultSplitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: defaultSplitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: 200 - 25 - 100 - defaultHorizontalHandleWidth * 2, height: defaultSplitViewHeight }
- ]
- },
- {
- // Same as above except vertical.
- tag: "shrinkHeight",
- orientation: Qt.Vertical,
- splitViewHeight: 200,
- expectedGeometries: [
- { x: 0, y: 0, width: defaultSplitViewWidth, height: 25 },
- { x: 0, y: 25, width: defaultSplitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + defaultVerticalHandleHeight, width: defaultSplitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight, width: defaultSplitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + 100 + defaultVerticalHandleHeight * 2, width: defaultSplitViewWidth,
- height: 200 - 25 - 100 - defaultVerticalHandleHeight * 2 }
- ]
- },
- ]
- return data
- }
-
- function test_splitViewGeometryChanges(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase,
- { "handle": handleComponent, "anchors.fill": undefined, "orientation": data.orientation })
- verify(control)
-
- if (data.hasOwnProperty("splitViewWidth"))
- control.width = data.splitViewWidth
- else
- control.width = testCase.width
-
- if (data.hasOwnProperty("splitViewHeight"))
- control.height = data.splitViewHeight
- else
- control.height = testCase.height
-
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometries)
- }
-
- function test_splitItemImplicitSizeChanges_data() {
- var defaultSplitViewWidth = testCase.width
- var defaultSplitViewHeight = testCase.height
-
- var data = [
- {
- tag: "growImplicitWidth",
- orientation: Qt.Horizontal,
- splitItemImplicitWidth: 50,
- expectedGeometries: [
- { x: 0, y: 0, width: 50, height: defaultSplitViewHeight },
- { x: 50, y: 0, width: defaultHorizontalHandleWidth, height: defaultSplitViewHeight },
- { x: 50 + defaultHorizontalHandleWidth, y: 0, width: 100, height: defaultSplitViewHeight },
- { x: 50 + 100 + defaultHorizontalHandleWidth, y: 0, width: defaultHorizontalHandleWidth,
- height: defaultSplitViewHeight },
- { x: 50 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: defaultSplitViewWidth - 50 - 100 - defaultHorizontalHandleWidth * 2, height: defaultSplitViewHeight }
- ]
- },
- {
- tag: "growImplicitHeight",
- orientation: Qt.Vertical,
- splitItemImplicitHeight: 50,
- expectedGeometries: [
- { x: 0, y: 0, width: defaultSplitViewWidth, height: 50 },
- { x: 0, y: 50, width: defaultSplitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 50 + defaultVerticalHandleHeight, width: defaultSplitViewWidth, height: 100 },
- { x: 0, y: 50 + 100 + defaultVerticalHandleHeight, width: defaultSplitViewWidth,
- height: defaultVerticalHandleHeight },
- { x: 0, y: 50 + 100 + defaultVerticalHandleHeight * 2, width: defaultSplitViewWidth,
- height: defaultSplitViewHeight - 50 - 100 - defaultVerticalHandleHeight * 2 }
- ]
- }
- ]
- return data
- }
-
- // Tests that implicitWidth/Height changes in items are noticed by SplitView.
- function test_splitItemImplicitSizeChanges(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase,
- { "handle": handleComponent, "orientation": data.orientation })
- verify(control)
-
- var firstItem = control.itemAt(0)
-
- if (data.hasOwnProperty("splitItemImplicitWidth"))
- firstItem.implicitWidth = data.splitItemImplicitWidth
-
- if (data.hasOwnProperty("splitItemImplicitHeight"))
- firstItem.implicitHeight = data.splitItemImplicitHeight
-
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometries)
- }
-
- Component {
- id: largerHandle
- Rectangle {
- objectName: "largerHandle"
- implicitWidth: 20
- implicitHeight: 20
- color: "#444"
- }
- }
-
- Component {
- id: smallerHandle
- Rectangle {
- objectName: "smallerHandle"
- implicitWidth: 5
- implicitHeight: 5
- color: "#444"
- }
- }
-
- function test_handleChanges_data() {
- var splitViewWidth = testCase.width
- var splitViewHeight = testCase.height
-
- var data = [
- {
- tag: "growHandleWidth",
- orientation: Qt.Horizontal,
- handleComponent: largerHandle,
- expectedGeometries: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: 20, height: splitViewHeight },
- { x: 25 + 20, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + 20, y: 0, width: 20, height: splitViewHeight },
- { x: 25 + 100 + 20 * 2, y: 0, width: splitViewWidth - 25 - 100 - 20 * 2,
- height: splitViewHeight }
- ]
- },
- {
- // Same as above except vertical.
- tag: "growHandleHeight",
- orientation: Qt.Vertical,
- handleComponent: largerHandle,
- expectedGeometries: [
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- { x: 0, y: 25, width: splitViewWidth, height: 20 },
- { x: 0, y: 25 + 20, width: splitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + 20, width: splitViewWidth, height: 20 },
- { x: 0, y: 25 + 100 + 20 * 2, width: splitViewWidth,
- height: splitViewHeight - 25 - 100 - 20 * 2 }
- ]
- },
- {
- tag: "shrinkHandleWidth",
- orientation: Qt.Horizontal,
- handleComponent: smallerHandle,
- expectedGeometries: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: 5, height: splitViewHeight },
- { x: 25 + 5, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + 5, y: 0, width: 5, height: splitViewHeight },
- { x: 25 + 100 + 5 * 2, y: 0, width: splitViewWidth - 25 - 100 - 5 * 2,
- height: splitViewHeight }
- ]
- },
- {
- // Same as above except vertical.
- tag: "shrinkHandleHeight",
- orientation: Qt.Vertical,
- handleComponent: smallerHandle,
- expectedGeometries: [
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- { x: 0, y: 25, width: splitViewWidth, height: 5 },
- { x: 0, y: 25 + 5, width: splitViewWidth, height: 100 },
- { x: 0, y: 25 + 100 + 5, width: splitViewWidth, height: 5 },
- { x: 0, y: 25 + 100 + 5 * 2, width: splitViewWidth,
- height: splitViewHeight - 25 - 100 - 5 * 2 }
- ]
- }
- ]
- return data
- }
-
- function test_handleChanges(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase,
- { "orientation": data.orientation })
- verify(control)
-
- control.handle = data.handleComponent
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometries)
- }
-
- function test_insertRemoveItems_data() {
- var splitViewWidth = testCase.width
- var splitViewHeight = testCase.height
-
- var data = [
- {
- tag: "insertItemAtHorizontalEnd",
- orientation: Qt.Horizontal,
- insertItemAtIndex: 3,
- expectedGeometries: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 100, height: splitViewHeight },
- { x: 25 + 100 + defaultHorizontalHandleWidth, y: 0,
- width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // This was the fill item originally, but since no fill item is explicitly
- // specified, and we added an item to the right of it, it is no longer the fill item
- // because it's no longer last.
- { x: 25 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: 200, height: splitViewHeight },
- // Handle for newly added item.
- { x: 25 + 100 + 200 + defaultHorizontalHandleWidth * 2, y: 0,
- width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // Newly added item.
- { x: 25 + 100 + 200 + defaultHorizontalHandleWidth * 3, y: 0,
- width: splitViewWidth - 25 - 100 - 200 - defaultHorizontalHandleWidth * 3,
- height: splitViewHeight },
- ]
- },
- {
- tag: "insertItemAtHorizontalBeginning",
- orientation: Qt.Horizontal,
- insertItemAtIndex: 0,
- expectedGeometries: [
- // Newly added item.
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0, width: 25, height: splitViewHeight },
- { x: 25 * 2 + defaultHorizontalHandleWidth, y: 0,
- width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 * 2 + defaultHorizontalHandleWidth * 2, y: 0, width: 100, height: splitViewHeight },
- { x: 25 * 2 + 100 + defaultHorizontalHandleWidth * 2, y: 0,
- width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // Fill item doesn't change.
- { x: 25 * 2 + 100 + defaultHorizontalHandleWidth * 3, y: 0,
- width: splitViewWidth - 25 * 2 - 100 - defaultHorizontalHandleWidth * 3,
- height: splitViewHeight },
- ]
- },
- {
- tag: "removeItemFromHorizontalEnd",
- orientation: Qt.Horizontal,
- removeItemAtIndex: 2,
- expectedGeometries: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0,
- width: splitViewWidth - 25 - defaultHorizontalHandleWidth, height: splitViewHeight },
- ]
- },
- {
- tag: "removeItemFromHorizontalBeginning",
- orientation: Qt.Horizontal,
- removeItemAtIndex: 0,
- expectedGeometries: [
- { x: 0, y: 0, width: 100, height: splitViewHeight },
- { x: 100, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 100 + defaultHorizontalHandleWidth, y: 0,
- width: splitViewWidth - 100 - defaultHorizontalHandleWidth, height: splitViewHeight },
- ]
- }
- ]
- return data
- }
-
- Component {
- id: smallRectComponent
-
- Rectangle {
- objectName: "darkseagreen"
- color: objectName
- implicitWidth: 25
- implicitHeight: 25
- }
- }
-
- function test_insertRemoveItems(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase,
- { "orientation": data.orientation })
- verify(control)
-
- if (data.hasOwnProperty("removeItemAtIndex")) {
- var itemToRemove = control.itemAt(data.removeItemAtIndex)
- verify(itemToRemove)
-
- control.removeItem(itemToRemove)
- } else if (data.hasOwnProperty("insertItemAtIndex")) {
- var itemToAdd = smallRectComponent.createObject(control)
- control.insertItem(data.insertItemAtIndex, itemToAdd)
- }
-
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometries)
- }
-
- function test_removeAllItems() {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase)
- verify(control)
-
- while (control.count > 0)
- var itemToRemove = control.removeItem(0)
- // Shouldn't crash.
- }
-
- function test_hideItems_data() {
- var splitViewWidth = testCase.width
- var splitViewHeight = testCase.height
-
- var data = [
- {
- tag: "hideItemAtHorizontalEnd",
- orientation: Qt.Horizontal,
- hideIndices: [2],
- expectedGeometries: [
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0,
- width: splitViewWidth - 25 - defaultHorizontalHandleWidth, height: splitViewHeight },
- { hidden: true }, // Handle for second item should be hidden.
- { hidden: true } // Last item should be hidden.
- ]
- },
- {
- tag: "hideItemAtHorizontalBeginning",
- orientation: Qt.Horizontal,
- hideIndices: [0],
- expectedGeometries: [
- { hidden: true }, // First item should be hidden.
- { hidden: true }, // Handle for first item should be hidden.
- { x: 0, y: 0, width: 100, height: splitViewHeight },
- { x: 100, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 100 + defaultHorizontalHandleWidth, y: 0,
- width: splitViewWidth - 100 - defaultHorizontalHandleWidth, height: splitViewHeight }
- ]
- },
- {
- tag: "hideItemAtVerticalEnd",
- orientation: Qt.Vertical,
- hideIndices: [2],
- expectedGeometries: [
- { x: 0, y: 0, width: splitViewWidth, height: 25 },
- { x: 0, y: 25, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 25 + defaultVerticalHandleHeight,
- width: splitViewWidth, height: splitViewHeight - 25 - defaultVerticalHandleHeight },
- { hidden: true }, // Handle for second item should be hidden.
- { hidden: true } // Last item should be hidden.
- ]
- },
- {
- tag: "hideItemAtVerticalBeginning",
- orientation: Qt.Vertical,
- hideIndices: [0],
- expectedGeometries: [
- { hidden: true }, // First item should be hidden.
- { hidden: true }, // Handle for first item should be hidden.
- { x: 0, y: 0, width: splitViewWidth, height: 100 },
- { x: 0, y: 100, width: splitViewWidth, height: defaultVerticalHandleHeight },
- { x: 0, y: 100 + defaultVerticalHandleHeight,
- width: splitViewWidth, height: splitViewHeight - 100 - defaultVerticalHandleHeight }
- ]
- },
- {
- // No handles should be visible when there's only one item.
- tag: "hideLastTwoHorizontalItems",
- orientation: Qt.Horizontal,
- hideIndices: [1, 2],
- expectedGeometries: [
- { x: 0, y: 0, width: splitViewWidth, height: splitViewHeight },
- { hidden: true }, // Handle for first item should be hidden.
- { hidden: true }, // Second item should be hidden.
- { hidden: true }, // Handle for second item should be hidden.
- { hidden: true } // Third item should be hidden.
- ]
- }
- ]
- return data
- }
-
- function test_hideItems(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase,
- { "orientation": data.orientation })
- verify(control)
-
- for (var i = 0; i < data.hideIndices.length; ++i) {
- var itemToHide = control.itemAt(data.hideIndices[i])
- verify(itemToHide)
- itemToHide.visible = false
- }
-
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometries)
- }
-
- function test_hideAndShowItems_data() {
- var splitViewWidth = testCase.width
- var splitViewHeight = testCase.height
-
- var data = [
- {
- tag: "hideLastTwoHorizontalItems",
- orientation: Qt.Horizontal,
- hideIndices: [1, 2],
- expectedGeometriesAfterHiding: [
- { x: 0, y: 0, width: splitViewWidth, height: splitViewHeight },
- { hidden: true }, // Handle for first item should be hidden.
- { hidden: true }, // Second item should be hidden.
- { hidden: true }, // Handle for second item should be hidden.
- { hidden: true } // Third item should be hidden.
- ],
- showIndices: [1],
- expectedGeometriesAfterShowing: [
- // First item should be visible with its implicit size.
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- // Handle for first item should be visible.
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // Second item should be visible and fill.
- { x: 25 + defaultHorizontalHandleWidth, y: 0,
- width: splitViewWidth - 25 - defaultHorizontalHandleWidth, height: splitViewHeight },
- { hidden: true }, // Handle for second item should be hidden.
- { hidden: true } // Third item should be hidden.
- ]
- }
- ]
- return data
- }
-
- function test_hideAndShowItems(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase,
- { "orientation": data.orientation })
- verify(control)
-
- for (var i = 0; i < data.hideIndices.length; ++i) {
- var itemToHide = control.itemAt(data.hideIndices[i])
- verify(itemToHide)
- itemToHide.visible = false
- }
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometriesAfterHiding, "after hiding")
-
- for (i = 0; i < data.showIndices.length; ++i) {
- var itemToShow = control.itemAt(data.showIndices[i])
- verify(itemToShow)
- itemToShow.visible = true
- }
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometriesAfterShowing, "after showing")
- }
-
- function test_moveHiddenItems_data() {
- var splitViewWidth = testCase.width
- var splitViewHeight = testCase.height
-
- var data = [
- {
- tag: "hideSecondItemAndMoveItToFirst",
- orientation: Qt.Horizontal,
- hideIndices: [1],
- moveFromIndex: 1,
- moveToIndex: 0,
- expectedGeometriesAfterMoving: [
- { hidden: true }, // First item (was second) should be hidden.
- { hidden: true }, // Handle for first item should be hidden.
- // Second item (was first) should get its implicit size.
- { x: 0, y: 0, width: 25, height: splitViewHeight },
- { x: 25, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 25 + defaultHorizontalHandleWidth, y: 0,
- width: splitViewWidth - 25 - defaultHorizontalHandleWidth, height: splitViewHeight },
- ],
- showIndices: [0],
- expectedGeometriesAfterShowing: [
- // First item (was second) should be visible with its implicit size.
- { x: 0, y: 0, width: 100, height: splitViewHeight },
- // Handle for first item (was second) should be visible.
- { x: 100, y: 0, width: defaultHorizontalHandleWidth, height: splitViewHeight },
- // Second item (was first) should be visible with its implicit size.
- { x: 100 + defaultHorizontalHandleWidth, y: 0,
- width: 25, height: splitViewHeight },
- { x: 100 + 25 + defaultHorizontalHandleWidth, y: 0,
- width: defaultHorizontalHandleWidth, height: splitViewHeight },
- { x: 100 + 25 + defaultHorizontalHandleWidth * 2, y: 0,
- width: splitViewWidth - 100 - 25 - defaultHorizontalHandleWidth * 2, height: splitViewHeight }
- ]
- }
- ]
- return data
- }
-
- function test_moveHiddenItems(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase,
- { "orientation": data.orientation })
- verify(control)
-
- for (var i = 0; i < data.hideIndices.length; ++i) {
- var itemToHide = control.itemAt(data.hideIndices[i])
- verify(itemToHide)
- itemToHide.visible = false
- }
-
- control.moveItem(data.moveFromIndex, data.moveToIndex)
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometriesAfterMoving, "after moving")
-
- for (i = 0; i < data.showIndices.length; ++i) {
- var itemToShow = control.itemAt(data.showIndices[i])
- verify(itemToShow)
- itemToShow.visible = true
- }
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compareSizes(control, data.expectedGeometriesAfterShowing, "after showing")
- }
-
- Component {
- id: flickableComponent
-
- Flickable {
- anchors.fill: parent
- anchors.margins: 100
- }
- }
-
- function test_draggingHandleInFlickable() {
- var flickable = createTemporaryObject(flickableComponent, testCase)
- verify(flickable)
-
- var control = threeSizedItemsComponent.createObject(flickable.contentItem,
- { "orientation": data.orientation })
- verify(control)
-
- control.anchors.fill = undefined
- control.width = 400
- control.height = control.parent.height - 100
- flickable.contentWidth = control.width
- flickable.contentHeight = control.height
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
-
- var contentXSpy = signalSpyComponent.createObject(flickable,
- { target: flickable, signalName: "contentXChanged" })
- verify(contentXSpy.valid)
- var contentYSpy = signalSpyComponent.createObject(flickable,
- { target: flickable, signalName: "contentYChanged" })
- verify(contentYSpy.valid)
-
- // Drag the first handle to the right;
- // the flickable's contentX and contentY shouldn't change.
- var firstItem = control.itemAt(0)
- var firstItemOriginalWidth = firstItem.width
- var handles = findHandles(control)
- var firstHandle = handles[0]
- // Add some vertical movement in there as well.
- mouseDrag(firstHandle, firstHandle.width / 2, firstHandle.height / 2, 100, 50)
- compare(contentXSpy.count, 0)
- compare(contentYSpy.count, 0)
- verify(firstItem.width > firstItemOriginalWidth)
-
- // Now do the same except vertically.
- control.orientation = Qt.Vertical
- control.width = control.parent.width - 100
- control.height = 400
- var firstItemOriginalHeight = firstItem.height
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
-
- // Add some horizontal movement in there as well.
- mouseDrag(firstHandle, firstHandle.width / 2, firstHandle.height / 2, 50, 100)
- compare(contentXSpy.count, 0)
- compare(contentYSpy.count, 0)
- verify(firstItem.height > firstItemOriginalHeight)
- }
-
- function test_hoveredPressed() {
- if ((Qt.platform.pluginName === "offscreen") || (Qt.platform.pluginName === "minimal"))
- skip("Mouse hovering not functional on offscreen/minimal platforms")
-
- var control = createTemporaryObject(threeSizedItemsComponent, testCase)
- verify(control)
- control.anchors.margins = 50
-
- var handles = findHandles(control)
- var firstHandle = handles[0]
-
- var handleCenter = control.mapFromItem(firstHandle, firstHandle.width / 2, firstHandle.height / 2)
- // Test fails if we don't do two moves for some reason...
- mouseMove(control, handleCenter.x, handleCenter.y)
- mouseMove(control, handleCenter.x, handleCenter.y)
- verify(firstHandle.SplitHandle.hovered)
- verify(!firstHandle.SplitHandle.pressed)
-
- mousePress(control, handleCenter.x, handleCenter.y)
- verify(firstHandle.SplitHandle.hovered)
- verify(firstHandle.SplitHandle.pressed)
-
- mouseRelease(control, handleCenter.x, handleCenter.y)
- verify(firstHandle.SplitHandle.hovered)
- verify(!firstHandle.SplitHandle.pressed)
-
- mouseMove(control, 0, 0)
- verify(!firstHandle.SplitHandle.hovered)
- verify(!firstHandle.SplitHandle.pressed)
- }
-
- // Tests removing/adding/moving an item while it's pressed.
- function test_modifyWhileHoveredPressed() {
- if ((Qt.platform.pluginName === "offscreen") || (Qt.platform.pluginName === "minimal"))
- skip("Mouse hovering not functional on offscreen/minimal platforms")
-
- var control = createTemporaryObject(threeSizedItemsComponent, testCase)
- verify(control)
- control.anchors.margins = 50
-
- var handles = findHandles(control)
- var firstHandle = handles[0]
-
- // First, ensure that the handle is hovered + pressed.
- var handleCenter = control.mapFromItem(firstHandle, firstHandle.width / 2, firstHandle.height / 2)
- // Test fails if we don't do two moves for some reason...
- mouseMove(control, handleCenter.x, handleCenter.y)
- mouseMove(control, handleCenter.x, handleCenter.y)
- verify(firstHandle.SplitHandle.hovered)
- verify(!firstHandle.SplitHandle.pressed)
-
- mousePress(control, handleCenter.x, handleCenter.y)
- verify(firstHandle.SplitHandle.hovered)
- verify(firstHandle.SplitHandle.pressed)
-
- // Then, remove it by removing the first item.
- control.removeItem(0)
- handles = findHandles(control)
- firstHandle = null
- compare(handles.length, 1)
-
- // No handles should be hovered/pressed.
- for (var i = 0; i < handles.length; ++i) {
- var handle = handles[i]
- verify(!handle.SplitHandle.hovered, "handle at index " + i + " should not be hovered")
- verify(!handle.SplitHandle.pressed, "handle at index " + i + " should not be hovered")
- }
-
- mouseRelease(control, handleCenter.x, handleCenter.y)
- }
-
- Component {
- id: settingsComponent
- Settings {
- id: settings
- }
- }
-
- function test_saveAndRestoreState_data() {
- return [
- { tag: "Horizontal", orientation: Qt.Horizontal, propertyName: "preferredWidth", propertyValue: 123 },
- { tag: "Vertical", orientation: Qt.Vertical, propertyName: "preferredHeight", propertyValue: 234 }
- ]
- }
-
- function test_saveAndRestoreState(data) {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase, { orientation: data.orientation })
- verify(control)
- compare(control.orientation, data.orientation)
-
- var lastItem = control.itemAt(2)
- verify(lastItem)
- lastItem.SplitView[data.propertyName] = data.propertyValue
-
- // Save the state.
- var settings = createTemporaryObject(settingsComponent, testCase)
- verify(settings)
- settings.setValue("splitView", control.saveState())
-
- // Recreate the item to restore it to its "default" values.
- control = createTemporaryObject(threeSizedItemsComponent, testCase)
- lastItem = control.itemAt(2)
- verify(lastItem)
- compare(lastItem.SplitView[data.propertyName], -1)
-
- settings = createTemporaryObject(settingsComponent, testCase)
- verify(settings)
-
- // Restore the state.
- control.restoreState(settings.value("splitView"))
- compare(lastItem.SplitView[data.propertyName], data.propertyValue)
- }
-
- function test_changePreferredSizeDuringLayout() {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase)
- verify(control)
-
- var firstItem = control.itemAt(0)
- var secondItem = control.itemAt(1)
- secondItem.widthChanged.connect(function() {
- if (secondItem.width < 10)
- firstItem.SplitView.preferredWidth = 50
- })
-
- // Change the size of the item so that a layout happens, but
- // make the size small enough that the item's onWidthChanged handler gets triggered.
- // The onWidthChanged handler will set the preferredWidth of another item during the
- // layout, so we need to make sure the assignment isn't lost since we return early in that case.
- secondItem.implicitWidth = 5
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(secondItem.width, 5)
- compare(firstItem.width, 50)
-
- // Now do the same for height.
- control.orientation = Qt.Vertical
- secondItem.heightChanged.connect(function() {
- if (secondItem.height < 10)
- firstItem.SplitView.preferredHeight = 50
- })
- // Get the polishes for the orientation out of the way so that they
- // don't intefere with our results.
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
-
- secondItem.implicitHeight = 5
- verify(isPolishScheduled(control))
- verify(waitForItemPolished(control))
- compare(secondItem.height, 5)
- compare(firstItem.height, 50)
- }
-
- // When the user drags a handle, we internally set preferredWidth/Height
- // to reflect the new value. However, we also have to make sure that when
- // we do so, it doesn't trigger a delayed layout. This is why we have
- // m_ignoreNextDelayedLayoutRequest. This test checks that
- // m_ignoreNextDelayedLayoutRequest doesn't interfere with any action from
- // the user that results in a delayed layout.
- function test_changePreferredSizeDuringLayoutWhileDraggingHandle() {
- var control = createTemporaryObject(threeSizedItemsComponent, testCase)
- verify(control)
-
- var firstItem = control.itemAt(0)
- var secondItem = control.itemAt(1)
- firstItem.widthChanged.connect(function() {
- if (firstItem.width === 0)
- secondItem.SplitView.preferredWidth = 50
- })
-
- // Start dragging the handle.
- var handles = findHandles(control)
- var targetHandle = handles[0]
- mousePress(targetHandle)
- verify(control.resizing)
- var localPos = testCase.mapToItem(targetHandle, 15, testCase.height / 2)
-
- // Move the handle to the very left, so that the item's width becomes zero.
- mouseMove(targetHandle, -100, targetHandle.height / 2)
- verify(control.resizing)
- compare(firstItem.width, 0)
- compare(secondItem.SplitView.preferredWidth, 50)
- compare(secondItem.width, 50)
- mouseRelease(targetHandle, -100, targetHandle.height / 2, Qt.LeftButton)
- verify(!control.resizing)
- }
-}
diff --git a/tests/auto/controls/data/tst_stackview.qml b/tests/auto/controls/data/tst_stackview.qml
deleted file mode 100644
index a9fbf874..00000000
--- a/tests/auto/controls/data/tst_stackview.qml
+++ /dev/null
@@ -1,1248 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "StackView"
-
- Item { id: item }
- Component { id: textField; TextField { } }
- Component { id: component; Item { } }
-
- Component {
- id: stackView
- StackView { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_initialItem() {
- var control1 = createTemporaryObject(stackView, testCase)
- verify(control1)
- compare(control1.currentItem, null)
- control1.destroy()
-
- var control2 = createTemporaryObject(stackView, testCase, {initialItem: item})
- verify(control2)
- compare(control2.currentItem, item)
- control2.destroy()
-
- var control3 = createTemporaryObject(stackView, testCase, {initialItem: component})
- verify(control3)
- verify(control3.currentItem)
- control3.destroy()
- }
-
- function test_currentItem() {
- var control = createTemporaryObject(stackView, testCase, {initialItem: item})
- verify(control)
- compare(control.currentItem, item)
- control.push(component)
- verify(control.currentItem !== item)
- control.pop(StackView.Immediate)
- compare(control.currentItem, item)
- }
-
- function test_busy() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
- compare(control.busy, false)
-
- var busyCount = 0
- var busySpy = signalSpy.createObject(control, {target: control, signalName: "busyChanged"})
- verify(busySpy.valid)
-
- control.push(component)
- compare(control.busy, false)
- compare(busySpy.count, busyCount)
-
- control.push(component)
- compare(control.busy, true)
- compare(busySpy.count, ++busyCount)
- tryCompare(control, "busy", false)
- compare(busySpy.count, ++busyCount)
-
- control.replace(component)
- compare(control.busy, true)
- compare(busySpy.count, ++busyCount)
- tryCompare(control, "busy", false)
- compare(busySpy.count, ++busyCount)
-
- control.pop()
- compare(control.busy, true)
- compare(busySpy.count, ++busyCount)
- tryCompare(control, "busy", false)
- compare(busySpy.count, ++busyCount)
-
- control.pushEnter = null
- control.pushExit = null
-
- control.push(component)
- compare(control.busy, false)
- compare(busySpy.count, busyCount)
-
- control.replaceEnter = null
- control.replaceExit = null
-
- control.replace(component)
- compare(control.busy, false)
- compare(busySpy.count, busyCount)
-
- control.popEnter = null
- control.popExit = null
-
- control.pop()
- compare(control.busy, false)
- compare(busySpy.count, busyCount)
- }
-
- function test_status() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var item1 = component.createObject(control)
- compare(item1.StackView.status, StackView.Inactive)
- control.push(item1)
- compare(item1.StackView.status, StackView.Active)
-
- var item2 = component.createObject(control)
- compare(item2.StackView.status, StackView.Inactive)
- control.push(item2)
- compare(item2.StackView.status, StackView.Activating)
- compare(item1.StackView.status, StackView.Deactivating)
- tryCompare(item2.StackView, "status", StackView.Active)
- tryCompare(item1.StackView, "status", StackView.Inactive)
-
- control.pop()
- compare(item2.StackView.status, StackView.Deactivating)
- compare(item1.StackView.status, StackView.Activating)
- tryCompare(item2.StackView, "status", StackView.Inactive)
- tryCompare(item1.StackView, "status", StackView.Active)
- }
-
- function test_index() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var item1 = component.createObject(control)
- compare(item1.StackView.index, -1)
- control.push(item1, StackView.Immediate)
- compare(item1.StackView.index, 0)
-
- var item2 = component.createObject(control)
- compare(item2.StackView.index, -1)
- control.push(item2, StackView.Immediate)
- compare(item2.StackView.index, 1)
- compare(item1.StackView.index, 0)
-
- control.pop(StackView.Immediate)
- compare(item2.StackView.index, -1)
- compare(item1.StackView.index, 0)
- }
-
- function test_view() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var item1 = component.createObject(control)
- compare(item1.StackView.view, null)
- control.push(item1, StackView.Immediate)
- compare(item1.StackView.view, control)
-
- var item2 = component.createObject(control)
- compare(item2.StackView.view, null)
- control.push(item2, StackView.Immediate)
- compare(item2.StackView.view, control)
- compare(item1.StackView.view, control)
-
- control.pop(StackView.Immediate)
- compare(item2.StackView.view, null)
- compare(item1.StackView.view, control)
- }
-
- function test_depth() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var depthChanges = 0
- var emptyChanges = 0
- var depthSpy = signalSpy.createObject(control, {target: control, signalName: "depthChanged"})
- var emptySpy = signalSpy.createObject(control, {target: control, signalName: "emptyChanged"})
- verify(depthSpy.valid)
- verify(emptySpy.valid)
- compare(control.depth, 0)
- compare(control.empty, true)
-
- control.push(item, StackView.Immediate)
- compare(control.depth, 1)
- compare(depthSpy.count, ++depthChanges)
- compare(control.empty, false)
- compare(emptySpy.count, ++emptyChanges)
-
- control.clear()
- compare(control.depth, 0)
- compare(depthSpy.count, ++depthChanges)
- compare(control.empty, true)
- compare(emptySpy.count, ++emptyChanges)
-
- control.push(component, StackView.Immediate)
- compare(control.depth, 1)
- compare(depthSpy.count, ++depthChanges)
- compare(control.empty, false)
- compare(emptySpy.count, ++emptyChanges)
-
- control.push(component, StackView.Immediate)
- compare(control.depth, 2)
- compare(depthSpy.count, ++depthChanges)
- compare(control.empty, false)
- compare(emptySpy.count, emptyChanges)
-
- control.replace(component, StackView.Immediate)
- compare(control.depth, 2)
- compare(depthSpy.count, depthChanges)
- compare(control.empty, false)
- compare(emptySpy.count, emptyChanges)
-
- control.replace([component, component], StackView.Immediate)
- compare(control.depth, 3)
- compare(depthSpy.count, ++depthChanges)
- compare(control.empty, false)
- compare(emptySpy.count, emptyChanges)
-
- control.pop(null, StackView.Immediate)
- compare(control.depth, 1)
- compare(depthSpy.count, ++depthChanges)
- compare(control.empty, false)
- compare(emptySpy.count, emptyChanges)
-
- control.pop(StackView.Immediate) // ignored
- compare(control.depth, 1)
- compare(depthSpy.count, depthChanges)
- compare(control.empty, false)
- compare(emptySpy.count, emptyChanges)
-
- control.clear()
- compare(control.depth, 0)
- compare(depthSpy.count, ++depthChanges)
- compare(control.empty, true)
- compare(emptySpy.count, ++emptyChanges)
-
- control.clear()
- compare(control.depth, 0)
- compare(depthSpy.count, depthChanges)
- compare(control.empty, true)
- compare(emptySpy.count, emptyChanges)
- }
-
- function test_size() {
- var container = createTemporaryObject(component, testCase, {width: 200, height: 200})
- verify(container)
- var control = stackView.createObject(container, {width: 100, height: 100})
- verify(control)
-
- container.width += 10
- container.height += 20
- compare(control.width, 100)
- compare(control.height, 100)
-
- control.push(item, StackView.Immediate)
- compare(item.width, control.width)
- compare(item.height, control.height)
-
- control.width = 200
- control.height = 200
- compare(item.width, control.width)
- compare(item.height, control.height)
-
- control.clear()
- control.width += 10
- control.height += 20
- verify(item.width !== control.width)
- verify(item.height !== control.height)
-
- control.push(item, StackView.Immediate)
- compare(item.width, control.width)
- compare(item.height, control.height)
- }
-
- function test_focus_data() {
- return [
- { tag: "true", focus: true, forceActiveFocus: false },
- { tag: "false", focus: false, forceActiveFocus: false },
- { tag: "forceActiveFocus()", focus: false, forceActiveFocus: true },
- ]
- }
-
- function test_focus(data) {
- var control = createTemporaryObject(stackView, testCase, {initialItem: item, width: 200, height: 200})
- verify(control)
-
- if (data.focus)
- control.focus = true
- if (data.forceActiveFocus)
- control.forceActiveFocus()
- compare(control.activeFocus, data.focus || data.forceActiveFocus)
-
- var page = control.push(textField, StackView.Immediate)
- verify(page)
- compare(control.currentItem, page)
- compare(page.activeFocus, control.activeFocus)
-
- control.pop(StackView.Immediate)
- compare(control.currentItem, item)
- compare(item.activeFocus, data.focus || data.forceActiveFocus)
- verify(!page.activeFocus)
- }
-
- function test_find() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var item1 = component.createObject(control, {objectName: "1"})
- var item2 = component.createObject(control, {objectName: "2"})
- var item3 = component.createObject(control, {objectName: "3"})
-
- control.push(item1, StackView.Immediate)
- control.push(item2, StackView.Immediate)
- control.push(item3, StackView.Immediate)
-
- compare(control.find(function(item, index) { return index === 0 }), item1)
- compare(control.find(function(item) { return item.objectName === "1" }), item1)
-
- compare(control.find(function(item, index) { return index === 1 }), item2)
- compare(control.find(function(item) { return item.objectName === "2" }), item2)
-
- compare(control.find(function(item, index) { return index === 2 }), item3)
- compare(control.find(function(item) { return item.objectName === "3" }), item3)
-
- compare(control.find(function() { return false }), null)
- compare(control.find(function() { return true }), item3)
- }
-
- function test_get() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- control.push([item, component, component], StackView.Immediate)
-
- verify(control.get(0, StackView.DontLoad))
- compare(control.get(0, StackView.ForceLoad), item)
-
- verify(!control.get(1, StackView.DontLoad))
-
- verify(control.get(2, StackView.DontLoad))
- verify(control.get(2, StackView.ForceLoad))
- }
-
- function test_push() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- // missing arguments
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: push: missing arguments")
- compare(control.push(), null)
-
- // nothing to push
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: push: nothing to push")
- compare(control.push(StackView.Immediate), null)
-
- // unsupported type
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: push: QtObject is not supported. Must be Item or Component.")
- control.push(Qt.createQmlObject('import QtQml 2.0; QtObject { }', control))
-
- // push(item)
- var item1 = component.createObject(control, {objectName:"1"})
- compare(control.push(item1, StackView.Immediate), item1)
- compare(control.depth, 1)
- compare(control.currentItem, item1)
-
- // push([item])
- var item2 = component.createObject(control, {objectName:"2"})
- compare(control.push([item2], StackView.Immediate), item2)
- compare(control.depth, 2)
- compare(control.currentItem, item2)
-
- // push(item, {properties})
- var item3 = component.createObject(control)
- compare(control.push(item3, {objectName:"3"}, StackView.Immediate), item3)
- compare(item3.objectName, "3")
- compare(control.depth, 3)
- compare(control.currentItem, item3)
-
- // push([item, {properties}])
- var item4 = component.createObject(control)
- compare(control.push([item4, {objectName:"4"}], StackView.Immediate), item4)
- compare(item4.objectName, "4")
- compare(control.depth, 4)
- compare(control.currentItem, item4)
-
- // push(component, {properties})
- var item5 = control.push(component, {objectName:"5"}, StackView.Immediate)
- compare(item5.objectName, "5")
- compare(control.depth, 5)
- compare(control.currentItem, item5)
-
- // push([component, {properties}])
- var item6 = control.push([component, {objectName:"6"}], StackView.Immediate)
- compare(item6.objectName, "6")
- compare(control.depth, 6)
- compare(control.currentItem, item6)
- }
-
- function test_pop() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var items = []
- for (var i = 0; i < 7; ++i)
- items.push(component.createObject(control, {objectName:i}))
-
- control.push(items, StackView.Immediate)
-
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: pop: too many arguments")
- compare(control.pop(1, 2, 3), null)
-
- // pop the top most item
- compare(control.pop(StackView.Immediate), items[6])
- compare(control.depth, 6)
- compare(control.currentItem, items[5])
-
- // pop down to the current item
- compare(control.pop(control.currentItem, StackView.Immediate), null)
- compare(control.depth, 6)
- compare(control.currentItem, items[5])
-
- // pop down to (but not including) the Nth item
- compare(control.pop(items[3], StackView.Immediate), items[5])
- compare(control.depth, 4)
- compare(control.currentItem, items[3])
-
- // pop the top most item
- compare(control.pop(undefined, StackView.Immediate), items[3])
- compare(control.depth, 3)
- compare(control.currentItem, items[2])
-
- // don't pop non-existent item
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: pop: unknown argument: " + testCase)
- compare(control.pop(testCase, StackView.Immediate), null)
- compare(control.depth, 3)
- compare(control.currentItem, items[2])
-
- // pop all items down to (but not including) the 1st item
- control.pop(null, StackView.Immediate)
- compare(control.depth, 1)
- compare(control.currentItem, items[0])
- }
-
- function test_replace() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- // missing arguments
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: replace: missing arguments")
- compare(control.replace(), null)
-
- // nothing to push
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: replace: nothing to push")
- compare(control.replace(StackView.Immediate), null)
-
- // unsupported type
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: replace: QtObject is not supported. Must be Item or Component.")
- compare(control.replace(Qt.createQmlObject('import QtQml 2.0; QtObject { }', control)), null)
-
- // replace(item)
- var item1 = component.createObject(control, {objectName:"1"})
- compare(control.replace(item1, StackView.Immediate), item1)
- compare(control.depth, 1)
- compare(control.currentItem, item1)
-
- // replace([item])
- var item2 = component.createObject(control, {objectName:"2"})
- compare(control.replace([item2], StackView.Immediate), item2)
- compare(control.depth, 1)
- compare(control.currentItem, item2)
-
- // replace(item, {properties})
- var item3 = component.createObject(control)
- compare(control.replace(item3, {objectName:"3"}, StackView.Immediate), item3)
- compare(item3.objectName, "3")
- compare(control.depth, 1)
- compare(control.currentItem, item3)
-
- // replace([item, {properties}])
- var item4 = component.createObject(control)
- compare(control.replace([item4, {objectName:"4"}], StackView.Immediate), item4)
- compare(item4.objectName, "4")
- compare(control.depth, 1)
- compare(control.currentItem, item4)
-
- // replace(component, {properties})
- var item5 = control.replace(component, {objectName:"5"}, StackView.Immediate)
- compare(item5.objectName, "5")
- compare(control.depth, 1)
- compare(control.currentItem, item5)
-
- // replace([component, {properties}])
- var item6 = control.replace([component, {objectName:"6"}], StackView.Immediate)
- compare(item6.objectName, "6")
- compare(control.depth, 1)
- compare(control.currentItem, item6)
-
- // replace the topmost item
- control.push(component)
- compare(control.depth, 2)
- var item7 = control.replace(control.get(1), component, StackView.Immediate)
- compare(control.depth, 2)
- compare(control.currentItem, item7)
-
- // replace the item in the middle
- control.push(component)
- control.push(component)
- control.push(component)
- compare(control.depth, 5)
- var item8 = control.replace(control.get(2), component, StackView.Immediate)
- compare(control.depth, 3)
- compare(control.currentItem, item8)
- }
-
- function test_clear() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- control.push(component, StackView.Immediate)
-
- control.clear()
- compare(control.depth, 0)
- compare(control.busy, false)
-
- control.push(component, StackView.Immediate)
-
- control.clear(StackView.PopTransition)
- compare(control.depth, 0)
- compare(control.busy, true)
- tryCompare(control, "busy", false)
- }
-
- function test_visibility_data() {
- return [
- {tag:"default transitions", properties: {}},
- {tag:"null transitions", properties: {pushEnter: null, pushExit: null, popEnter: null, popExit: null}}
- ]
- }
-
- function test_visibility(data) {
- var control = createTemporaryObject(stackView, testCase, data.properties)
- verify(control)
-
- var item1 = component.createObject(control)
- control.push(item1, StackView.Immediate)
- verify(item1.visible)
-
- var item2 = component.createObject(control)
- control.push(item2)
- tryCompare(item1, "visible", false)
- verify(item2.visible)
-
- control.pop()
- verify(item1.visible)
- tryCompare(item2, "visible", false)
- }
-
- Component {
- id: transitionView
- StackView {
- property int popEnterRuns
- property int popExitRuns
- property int pushEnterRuns
- property int pushExitRuns
- property int replaceEnterRuns
- property int replaceExitRuns
- popEnter: Transition {
- PauseAnimation { duration: 1 }
- onRunningChanged: if (!running) ++popEnterRuns
- }
- popExit: Transition {
- PauseAnimation { duration: 1 }
- onRunningChanged: if (!running) ++popExitRuns
- }
- pushEnter: Transition {
- PauseAnimation { duration: 1 }
- onRunningChanged: if (!running) ++pushEnterRuns
- }
- pushExit: Transition {
- PauseAnimation { duration: 1 }
- onRunningChanged: if (!running) ++pushExitRuns
- }
- replaceEnter: Transition {
- PauseAnimation { duration: 1 }
- onRunningChanged: if (!running) ++replaceEnterRuns
- }
- replaceExit: Transition {
- PauseAnimation { duration: 1 }
- onRunningChanged: if (!running) ++replaceExitRuns
- }
- }
- }
-
- function test_transitions_data() {
- return [
- { tag: "undefined", operation: undefined,
- pushEnterRuns: [0,1,1,1], pushExitRuns: [0,1,1,1], replaceEnterRuns: [0,0,1,1], replaceExitRuns: [0,0,1,1], popEnterRuns: [0,0,0,1], popExitRuns: [0,0,0,1] },
- { tag: "immediate", operation: StackView.Immediate,
- pushEnterRuns: [0,0,0,0], pushExitRuns: [0,0,0,0], replaceEnterRuns: [0,0,0,0], replaceExitRuns: [0,0,0,0], popEnterRuns: [0,0,0,0], popExitRuns: [0,0,0,0] },
- { tag: "push", operation: StackView.PushTransition,
- pushEnterRuns: [1,2,3,4], pushExitRuns: [0,1,2,3], replaceEnterRuns: [0,0,0,0], replaceExitRuns: [0,0,0,0], popEnterRuns: [0,0,0,0], popExitRuns: [0,0,0,0] },
- { tag: "pop", operation: StackView.PopTransition,
- pushEnterRuns: [0,0,0,0], pushExitRuns: [0,0,0,0], replaceEnterRuns: [0,0,0,0], replaceExitRuns: [0,0,0,0], popEnterRuns: [1,2,3,4], popExitRuns: [0,1,2,3] },
- { tag: "replace", operation: StackView.ReplaceTransition,
- pushEnterRuns: [0,0,0,0], pushExitRuns: [0,0,0,0], replaceEnterRuns: [1,2,3,4], replaceExitRuns: [0,1,2,3], popEnterRuns: [0,0,0,0], popExitRuns: [0,0,0,0] },
- ]
- }
-
- function test_transitions(data) {
- var control = createTemporaryObject(transitionView, testCase)
- verify(control)
-
- control.push(component, data.operation)
- tryCompare(control, "busy", false)
- compare(control.pushEnterRuns, data.pushEnterRuns[0])
- compare(control.pushExitRuns, data.pushExitRuns[0])
- compare(control.replaceEnterRuns, data.replaceEnterRuns[0])
- compare(control.replaceExitRuns, data.replaceExitRuns[0])
- compare(control.popEnterRuns, data.popEnterRuns[0])
- compare(control.popExitRuns, data.popExitRuns[0])
-
- control.push(component, data.operation)
- tryCompare(control, "busy", false)
- compare(control.pushEnterRuns, data.pushEnterRuns[1])
- compare(control.pushExitRuns, data.pushExitRuns[1])
- compare(control.replaceEnterRuns, data.replaceEnterRuns[1])
- compare(control.replaceExitRuns, data.replaceExitRuns[1])
- compare(control.popEnterRuns, data.popEnterRuns[1])
- compare(control.popExitRuns, data.popExitRuns[1])
-
- control.replace(component, data.operation)
- tryCompare(control, "busy", false)
- compare(control.pushEnterRuns, data.pushEnterRuns[2])
- compare(control.pushExitRuns, data.pushExitRuns[2])
- compare(control.replaceEnterRuns, data.replaceEnterRuns[2])
- compare(control.replaceExitRuns, data.replaceExitRuns[2])
- compare(control.popEnterRuns, data.popEnterRuns[2])
- compare(control.popExitRuns, data.popExitRuns[2])
-
- control.pop(data.operation)
- tryCompare(control, "busy", false)
- compare(control.pushEnterRuns, data.pushEnterRuns[3])
- compare(control.pushExitRuns, data.pushExitRuns[3])
- compare(control.replaceEnterRuns, data.replaceEnterRuns[3])
- compare(control.replaceExitRuns, data.replaceExitRuns[3])
- compare(control.popEnterRuns, data.popEnterRuns[3])
- compare(control.popExitRuns, data.popExitRuns[3])
- }
-
- TestItem {
- id: indestructibleItem
- }
-
- Component {
- id: destructibleComponent
- TestItem { }
- }
-
- function test_ownership_data() {
- return [
- {tag:"item, transition", arg: indestructibleItem, operation: StackView.Transition, destroyed: false},
- {tag:"item, immediate", arg: indestructibleItem, operation: StackView.Immediate, destroyed: false},
- {tag:"component, transition", arg: destructibleComponent, operation: StackView.Transition, destroyed: true},
- {tag:"component, immediate", arg: destructibleComponent, operation: StackView.Immediate, destroyed: true},
- {tag:"url, transition", arg: Qt.resolvedUrl("TestItem.qml"), operation: StackView.Transition, destroyed: true},
- {tag:"url, immediate", arg: Qt.resolvedUrl("TestItem.qml"), operation: StackView.Immediate, destroyed: true}
- ]
- }
-
- function test_ownership(data) {
- var control = createTemporaryObject(transitionView, testCase, {initialItem: component})
- verify(control)
-
- // push-pop
- control.push(data.arg, StackView.Immediate)
- verify(control.currentItem)
- verify(control.currentItem.hasOwnProperty("destroyedCallback"))
- var destroyed = false
- control.currentItem.destroyedCallback = function() { destroyed = true }
- control.pop(data.operation)
- tryCompare(control, "busy", false)
- wait(0) // deferred delete
- compare(destroyed, data.destroyed)
-
- // push-replace
- control.push(data.arg, StackView.Immediate)
- verify(control.currentItem)
- verify(control.currentItem.hasOwnProperty("destroyedCallback"))
- destroyed = false
- control.currentItem.destroyedCallback = function() { destroyed = true }
- control.replace(component, data.operation)
- tryCompare(control, "busy", false)
- wait(0) // deferred delete
- compare(destroyed, data.destroyed)
- }
-
- Component {
- id: removeComponent
-
- Item {
- objectName: "removeItem"
- StackView.onRemoved: destroy()
- }
- }
-
- function test_destroyOnRemoved() {
- var control = createTemporaryObject(stackView, testCase, { initialItem: component })
- verify(control)
-
- var item = removeComponent.createObject(control)
- verify(item)
-
- var removedSpy = signalSpy.createObject(control, { target: item.StackView, signalName: "removed" })
- verify(removedSpy)
- verify(removedSpy.valid)
-
- var destructionSpy = signalSpy.createObject(control, { target: item.Component, signalName: "destruction" })
- verify(destructionSpy)
- verify(destructionSpy.valid)
-
- // push-pop
- control.push(item, StackView.Immediate)
- compare(control.currentItem, item)
- control.pop(StackView.Transition)
- item = null
- tryCompare(removedSpy, "count", 1)
- tryCompare(destructionSpy, "count", 1)
- compare(control.busy, false)
-
- item = removeComponent.createObject(control)
- verify(item)
-
- removedSpy.target = item.StackView
- verify(removedSpy.valid)
-
- destructionSpy.target = item.Component
- verify(destructionSpy.valid)
-
- // push-replace
- control.push(item, StackView.Immediate)
- compare(control.currentItem, item)
- control.replace(component, StackView.Transition)
- item = null
- tryCompare(removedSpy, "count", 2)
- tryCompare(destructionSpy, "count", 2)
- compare(control.busy, false)
- }
-
- function test_pushOnRemoved() {
- var control = createTemporaryObject(stackView, testCase, { initialItem: component })
- verify(control)
-
- var item = control.push(component, StackView.Immediate)
- verify(item)
-
- item.StackView.onRemoved.connect(function() { control.push(component, StackView.Immediate) } )
-
- // don't crash (QTBUG-62153)
- control.pop(StackView.Immediate)
- }
-
- Component {
- id: attachedItem
- Item {
- property int index: StackView.index
- property StackView view: StackView.view
- property int status: StackView.status
- }
- }
-
- function test_attached() {
- var control = createTemporaryObject(stackView, testCase, {initialItem: attachedItem})
-
- compare(control.get(0).index, 0)
- compare(control.get(0).view, control)
- compare(control.get(0).status, StackView.Active)
-
- control.push(attachedItem, StackView.Immediate)
-
- compare(control.get(0).index, 0)
- compare(control.get(0).view, control)
- compare(control.get(0).status, StackView.Inactive)
-
- compare(control.get(1).index, 1)
- compare(control.get(1).view, control)
- compare(control.get(1).status, StackView.Active)
-
- control.pop(StackView.Immediate)
-
- compare(control.get(0).index, 0)
- compare(control.get(0).view, control)
- compare(control.get(0).status, StackView.Active)
- }
-
- Component {
- id: testButton
- Button {
- property int clicks: 0
- onClicked: ++clicks
- }
- }
-
- function test_interaction() {
- var control = createTemporaryObject(stackView, testCase, {initialItem: testButton, width: testCase.width, height: testCase.height})
- verify(control)
-
- var firstButton = control.currentItem
- verify(firstButton)
-
- var firstClicks = 0
- var secondClicks = 0
- var thirdClicks = 0
-
- // push - default transition
- var secondButton = control.push(testButton)
- compare(control.busy, true)
- mouseClick(firstButton) // filtered while busy
- mouseClick(secondButton) // filtered while busy
- compare(firstButton.clicks, firstClicks)
- compare(secondButton.clicks, secondClicks)
- tryCompare(control, "busy", false)
- mouseClick(secondButton)
- compare(secondButton.clicks, ++secondClicks)
-
- // replace - default transition
- var thirdButton = control.replace(testButton)
- compare(control.busy, true)
- mouseClick(secondButton) // filtered while busy
- mouseClick(thirdButton) // filtered while busy
- compare(secondButton.clicks, secondClicks)
- compare(thirdButton.clicks, thirdClicks)
- tryCompare(control, "busy", false)
- secondButton = null
- secondClicks = 0
- mouseClick(thirdButton)
- compare(thirdButton.clicks, ++thirdClicks)
-
- // pop - default transition
- control.pop()
- compare(control.busy, true)
- mouseClick(firstButton) // filtered while busy
- mouseClick(thirdButton) // filtered while busy
- compare(firstButton.clicks, firstClicks)
- compare(thirdButton.clicks, thirdClicks)
- tryCompare(control, "busy", false)
- thirdButton = null
- thirdClicks = 0
- mouseClick(firstButton)
- compare(firstButton.clicks, ++firstClicks)
-
- // push - immediate operation
- secondButton = control.push(testButton, StackView.Immediate)
- compare(control.busy, false)
- mouseClick(secondButton)
- compare(secondButton.clicks, ++secondClicks)
-
- // replace - immediate operation
- thirdButton = control.replace(testButton, StackView.Immediate)
- compare(control.busy, false)
- secondButton = null
- secondClicks = 0
- mouseClick(thirdButton)
- compare(thirdButton.clicks, ++thirdClicks)
-
- // pop - immediate operation
- control.pop(StackView.Immediate)
- compare(control.busy, false)
- thirdButton = null
- thirdClicks = 0
- mouseClick(firstButton)
- compare(firstButton.clicks, ++firstClicks)
-
- // push - null transition
- control.pushEnter = null
- control.pushExit = null
- secondButton = control.push(testButton)
- compare(control.busy, false)
- mouseClick(secondButton)
- compare(secondButton.clicks, ++secondClicks)
-
- // replace - null transition
- control.replaceEnter = null
- control.replaceExit = null
- thirdButton = control.replace(testButton)
- compare(control.busy, false)
- secondButton = null
- secondClicks = 0
- mouseClick(thirdButton)
- compare(thirdButton.clicks, ++thirdClicks)
-
- // pop - null transition
- control.popEnter = null
- control.popExit = null
- control.pop()
- compare(control.busy, false)
- thirdButton = null
- thirdClicks = 0
- mouseClick(firstButton)
- compare(firstButton.clicks, ++firstClicks)
- }
-
- Component {
- id: mouseArea
- MouseArea {
- property int presses: 0
- property int releases: 0
- property int clicks: 0
- property int doubleClicks: 0
- property int cancels: 0
- onPressed: ++presses
- onReleased: ++releases
- onClicked: ++clicks
- onDoubleClicked: ++doubleClicks
- onCanceled: ++cancels
- }
- }
-
- // QTBUG-50305
- function test_events() {
- var control = createTemporaryObject(stackView, testCase, {initialItem: mouseArea, width: testCase.width, height: testCase.height})
- verify(control)
-
- var testItem = control.currentItem
- verify(testItem)
-
- testItem.doubleClicked.connect(function() {
- control.push(mouseArea) // ungrab -> cancel
- })
-
- mouseDoubleClickSequence(testItem)
- compare(testItem.presses, 2)
- compare(testItem.releases, 2)
- compare(testItem.clicks, 1)
- compare(testItem.doubleClicks, 1)
- compare(testItem.pressed, false)
- compare(testItem.cancels, 0)
- }
-
- function test_ungrab() {
- var control = createTemporaryObject(stackView, testCase, {initialItem: mouseArea, width: testCase.width, height: testCase.height})
- verify(control)
-
- var testItem = control.currentItem
- verify(testItem)
-
- mousePress(testItem)
- control.push(mouseArea)
- tryCompare(control, "busy", false)
- mouseRelease(testItem)
-
- compare(testItem.presses, 1)
- compare(testItem.releases, 0)
- compare(testItem.clicks, 0)
- compare(testItem.doubleClicks, 0)
- compare(testItem.pressed, false)
- compare(testItem.cancels, 1)
- }
-
- function test_failures() {
- var control = createTemporaryObject(stackView, testCase, {initialItem: component})
- verify(control)
-
- var error = Qt.resolvedUrl("non-existent.qml") + ":-1 No such file or directory"
-
- ignoreWarning("QQmlComponent: Component is not ready")
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: push: " + error)
- control.push(Qt.resolvedUrl("non-existent.qml"))
-
- ignoreWarning("QQmlComponent: Component is not ready")
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: replace: " + error)
- control.replace(Qt.resolvedUrl("non-existent.qml"))
-
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: push: invalid url: x://[v]")
- control.push("x://[v]")
-
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: replace: invalid url: x://[v]")
- control.replace("x://[v]")
-
- control.pop()
- }
-
- Component {
- id: rectangle
- Rectangle {
- property color initialColor
- Component.onCompleted: initialColor = color
- }
- }
-
- function test_properties() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var rect = control.push(rectangle, {color: "#ff0000"})
- compare(rect.color, "#ff0000")
- compare(rect.initialColor, "#ff0000")
- }
-
- Component {
- id: signalTest
- Control {
- id: ctrl
- property SignalSpy activatedSpy: SignalSpy { target: ctrl.StackView; signalName: "activated" }
- property SignalSpy activatingSpy: SignalSpy { target: ctrl.StackView; signalName: "activating" }
- property SignalSpy deactivatedSpy: SignalSpy { target: ctrl.StackView; signalName: "deactivated" }
- property SignalSpy deactivatingSpy: SignalSpy { target: ctrl.StackView; signalName: "deactivating" }
- }
- }
-
- function test_signals() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var item1 = signalTest.createObject(control)
- compare(item1.StackView.status, StackView.Inactive)
- control.push(item1)
- compare(item1.StackView.status, StackView.Active)
- compare(item1.activatedSpy.count, 1)
- compare(item1.activatingSpy.count, 1)
- compare(item1.deactivatedSpy.count, 0)
- compare(item1.deactivatingSpy.count, 0)
-
- var item2 = signalTest.createObject(control)
- compare(item2.StackView.status, StackView.Inactive)
- control.push(item2)
- compare(item2.StackView.status, StackView.Activating)
- compare(item2.activatedSpy.count, 0)
- compare(item2.activatingSpy.count, 1)
- compare(item2.deactivatedSpy.count, 0)
- compare(item2.deactivatingSpy.count, 0)
- compare(item1.StackView.status, StackView.Deactivating)
- compare(item1.activatedSpy.count, 1)
- compare(item1.activatingSpy.count, 1)
- compare(item1.deactivatedSpy.count, 0)
- compare(item1.deactivatingSpy.count, 1)
- tryCompare(item2.activatedSpy, "count", 1)
- tryCompare(item1.deactivatedSpy, "count", 1)
-
- control.pop()
- compare(item2.StackView.status, StackView.Deactivating)
- compare(item2.activatedSpy.count, 1)
- compare(item2.activatingSpy.count, 1)
- compare(item2.deactivatedSpy.count, 0)
- compare(item2.deactivatingSpy.count, 1)
- compare(item1.StackView.status, StackView.Activating)
- compare(item1.activatedSpy.count, 1)
- compare(item1.activatingSpy.count, 2)
- compare(item1.deactivatedSpy.count, 1)
- compare(item1.deactivatingSpy.count, 1)
- tryCompare(item1.activatedSpy, "count", 2)
- }
-
- // QTBUG-56158
- function test_repeatedPop() {
- var control = createTemporaryObject(stackView, testCase, {initialItem: component, width: testCase.width, height: testCase.height})
- verify(control)
-
- for (var i = 0; i < 12; ++i)
- control.push(component)
- tryCompare(control, "busy", false)
-
- while (control.depth > 1) {
- control.pop()
- wait(50)
- }
- tryCompare(control, "busy", false)
- }
-
- function test_pushSameItem() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- control.push(item, StackView.Immediate)
- compare(control.currentItem, item)
- compare(control.depth, 1)
-
- // Pushing the same Item should do nothing.
- ignoreWarning(Qt.resolvedUrl("tst_stackview.qml") + ":69:9: QML StackView: push: nothing to push")
- control.push(item, StackView.Immediate)
- compare(control.currentItem, item)
- compare(control.depth, 1)
-
- // Push a component so that it becomes current.
- var current = control.push(component, StackView.Immediate)
- compare(control.currentItem, current)
- compare(control.depth, 2)
-
- // Push a bunch of stuff. "item" is already in the stack, so it should be ignored.
- current = control.push(component, item, StackView.Immediate)
- verify(current !== item)
- compare(control.currentItem, current)
- compare(control.depth, 3)
- }
-
- function test_visible() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var item1 = component.createObject(control)
- control.push(item1, StackView.Immediate)
- compare(item1.visible, true)
- compare(item1.StackView.visible, item1.visible)
-
- var item2 = component.createObject(control)
- control.push(item2, StackView.Immediate)
- compare(item1.visible, false)
- compare(item2.visible, true)
- compare(item1.StackView.visible, false)
- compare(item2.StackView.visible, true)
-
- // keep explicitly visible
- item2.StackView.visible = true
- control.push(component, StackView.Immediate)
- compare(item2.visible, true)
- compare(item2.StackView.visible, true)
-
- // show underneath
- item1.StackView.visible = true
- compare(item1.visible, true)
- compare(item1.StackView.visible, true)
-
- control.pop(StackView.Immediate)
- compare(item2.visible, true)
- compare(item2.StackView.visible, true)
-
- // hide the top-most
- item2.StackView.visible = false
- compare(item2.visible, false)
- compare(item2.StackView.visible, false)
-
- // reset the top-most
- item2.StackView.visible = undefined
- compare(item2.visible, true)
- compare(item2.StackView.visible, true)
-
- // reset underneath
- item1.StackView.visible = undefined
- compare(item1.visible, false)
- compare(item1.StackView.visible, false)
-
- control.pop(StackView.Immediate)
- compare(item1.visible, true)
- compare(item1.StackView.visible, true)
- }
-
- function test_resolveInitialItem() {
- var control = createTemporaryObject(stackView, testCase, {initialItem: "TestItem.qml"})
- verify(control)
- verify(control.currentItem)
- }
-
- function test_resolve() {
- var control = createTemporaryObject(stackView, testCase)
- verify(control)
-
- var item = control.push("TestItem.qml")
- compare(control.depth, 1)
- verify(item)
- }
-
- // QTBUG-65084
- function test_mouseArea() {
- var ma = createTemporaryObject(mouseArea, testCase, {width: testCase.width, height: testCase.height})
- verify(ma)
-
- var control = stackView.createObject(ma, {width: testCase.width, height: testCase.height})
- verify(control)
-
- mousePress(control)
- verify(ma.pressed)
-
- mouseRelease(control)
- verify(!ma.pressed)
-
- var touch = touchEvent(control)
- touch.press(0, control).commit()
- verify(ma.pressed)
-
- touch.release(0, control).commit()
- verify(!ma.pressed)
- }
-
- // Separate function to ensure that the temporary value created to hold the return value of the Qt.createComponent()
- // call is out of scope when the caller calls gc().
- function stackViewFactory()
- {
- return createTemporaryObject(stackView, testCase, {initialItem: Qt.createComponent("TestItem.qml")})
- }
-
- function test_initalItemOwnership()
- {
- var control = stackViewFactory()
- verify(control)
- gc()
- verify(control.initialItem)
- }
-}
diff --git a/tests/auto/controls/data/tst_swipedelegate.qml b/tests/auto/controls/data/tst_swipedelegate.qml
deleted file mode 100644
index 3e2ff460..00000000
--- a/tests/auto/controls/data/tst_swipedelegate.qml
+++ /dev/null
@@ -1,1652 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "SwipeDelegate"
-
- readonly property int dragDistance: Math.max(20, Qt.styleHints.startDragDistance + 5)
-
- Component {
- id: backgroundFillComponent
- SwipeDelegate {
- background: Item { anchors.fill: parent }
- }
- }
-
- Component {
- id: backgroundCenterInComponent
- SwipeDelegate {
- background: Item { anchors.centerIn: parent }
- }
- }
-
- Component {
- id: backgroundLeftComponent
- SwipeDelegate {
- background: Item { anchors.left: parent.left }
- }
- }
-
- Component {
- id: backgroundRightComponent
- SwipeDelegate {
- background: Item { anchors.right: parent.right }
- }
- }
-
- Component {
- id: contentItemFillComponent
- SwipeDelegate {
- contentItem: Item { anchors.fill: parent }
- }
- }
-
- Component {
- id: contentItemCenterInComponent
- SwipeDelegate {
- contentItem: Item { anchors.centerIn: parent }
- }
- }
-
- Component {
- id: contentItemLeftComponent
- SwipeDelegate {
- contentItem: Item { anchors.left: parent.left }
- }
- }
-
- Component {
- id: contentItemRightComponent
- SwipeDelegate {
- contentItem: Item { anchors.right: parent.right }
- }
- }
-
- function test_horizontalAnchors_data() {
- return [
- { tag: "background, fill", component: backgroundFillComponent, itemName: "background", warningLocation: ":69:25" },
- { tag: "background, centerIn", component: backgroundCenterInComponent, itemName: "background", warningLocation: ":76:25" },
- { tag: "background, left", component: backgroundLeftComponent, itemName: "background", warningLocation: ":83:25" },
- { tag: "background, right", component: backgroundRightComponent, itemName: "background", warningLocation: ":90:25" },
- { tag: "contentItem, fill", component: contentItemFillComponent, itemName: "contentItem", warningLocation: ":97:26" },
- { tag: "contentItem, centerIn", component: contentItemCenterInComponent, itemName: "contentItem", warningLocation: ":104:26" },
- { tag: "contentItem, left", component: contentItemLeftComponent, itemName: "contentItem", warningLocation: ":111:26" },
- { tag: "contentItem, right", component: contentItemRightComponent, itemName: "contentItem", warningLocation: ":118:26" }
- ];
- }
-
- function test_horizontalAnchors(data) {
- var warningMessage = Qt.resolvedUrl("tst_swipedelegate.qml") + data.warningLocation
- + ": QML QQuickItem: SwipeDelegate: cannot use horizontal anchors with " + data.itemName + "; unable to layout the item."
-
- ignoreWarning(warningMessage);
-
- var control = createTemporaryObject(data.component, testCase);
- verify(control.contentItem);
- }
-
- Component {
- id: greenLeftComponent
-
- Rectangle {
- objectName: "leftItem"
- anchors.fill: parent
- color: "green"
- }
- }
-
- Component {
- id: redRightComponent
-
- Rectangle {
- objectName: "rightItem"
- anchors.fill: parent
- color: "red"
- }
- }
-
- Component {
- id: swipeDelegateComponent
-
- SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- width: 150
- swipe.left: greenLeftComponent
- swipe.right: redRightComponent
- }
- }
-
- Component {
- id: signalSpyComponent
-
- SignalSpy {}
- }
-
- Component {
- id: itemComponent
-
- Item {}
- }
-
- // Assumes that the delegate is smaller than the width of the control.
- function swipe(control, from, to) {
- // Sanity check.
- compare(control.swipe.position, from);
-
- var distance = (to - from) * control.width;
-
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width / 2 + distance, control.height / 2);
- mouseRelease(control, control.width / 2 + distance, control.height / 2, Qt.LeftButton);
- compare(control.swipe.position, to);
-
- if (control.swipe.position === -1.0) {
- if (control.swipe.right)
- verify(control.swipe.rightItem);
- else if (control.swipe.behind)
- verify(control.swipe.behindItem);
- } else if (control.swipe.position === 1.0) {
- if (control.swipe.left)
- verify(control.swipe.leftItem);
- else if (control.swipe.behind)
- verify(control.swipe.behindItem);
- }
- }
-
- function test_settingDelegates() {
- var control = createTemporaryObject(swipeDelegateComponent, testCase);
- verify(control);
-
- ignoreWarning(Qt.resolvedUrl("tst_swipedelegate.qml") +
- ":168:9: QML SwipeDelegate: cannot set both behind and left/right properties")
- control.swipe.behind = itemComponent;
-
- // Shouldn't be any warnings when unsetting delegates.
- control.swipe.left = null;
- compare(control.swipe.leftItem, null);
-
- // right is still set.
- ignoreWarning(Qt.resolvedUrl("tst_swipedelegate.qml") +
- ":168:9: QML SwipeDelegate: cannot set both behind and left/right properties")
- control.swipe.behind = itemComponent;
-
- control.swipe.right = null;
- compare(control.swipe.rightItem, null);
-
- control.swipe.behind = itemComponent;
-
- ignoreWarning(Qt.resolvedUrl("tst_swipedelegate.qml") +
- ":168:9: QML SwipeDelegate: cannot set both behind and left/right properties")
- control.swipe.left = itemComponent;
-
- ignoreWarning(Qt.resolvedUrl("tst_swipedelegate.qml") +
- ":168:9: QML SwipeDelegate: cannot set both behind and left/right properties")
- control.swipe.right = itemComponent;
-
- control.swipe.behind = null;
- control.swipe.left = greenLeftComponent;
- control.swipe.right = redRightComponent;
-
- // Test that the user is warned when attempting to set or unset left or
- // right item while they're exposed.
- // First, try the left item.
- swipe(control, 0.0, 1.0);
-
- var oldLeft = control.swipe.left;
- var oldLeftItem = control.swipe.leftItem;
- ignoreWarning(Qt.resolvedUrl("tst_swipedelegate.qml") +
- ":168:9: QML SwipeDelegate: left/right/behind properties may only be set when swipe.position is 0")
- control.swipe.left = null;
- compare(control.swipe.left, oldLeft);
- compare(control.swipe.leftItem, oldLeftItem);
-
- // Try the same thing with the right item.
- swipe(control, 1.0, -1.0);
-
- var oldRight = control.swipe.right;
- var oldRightItem = control.swipe.rightItem;
- ignoreWarning(Qt.resolvedUrl("tst_swipedelegate.qml") +
- ":168:9: QML SwipeDelegate: left/right/behind properties may only be set when swipe.position is 0")
- control.swipe.right = null;
- compare(control.swipe.right, oldRight);
- compare(control.swipe.rightItem, oldRightItem);
-
- // Return to the default position.
- swipe(control, -1.0, 0.0);
-
- tryCompare(control.background, "x", 0, 1000);
-
- // Try the same thing with the behind item.
- control.swipe.left = null;
- verify(!control.swipe.left);
- verify(!control.swipe.leftItem);
- control.swipe.right = null;
- verify(!control.swipe.right);
- verify(!control.swipe.rightItem);
- control.swipe.behind = greenLeftComponent;
- verify(control.swipe.behind);
- verify(!control.swipe.behindItem);
-
- swipe(control, 0.0, 1.0);
-
- var oldBehind = control.swipe.behind;
- var oldBehindItem = control.swipe.behindItem;
- ignoreWarning(Qt.resolvedUrl("tst_swipedelegate.qml") +
- ":168:9: QML SwipeDelegate: left/right/behind properties may only be set when swipe.position is 0")
- control.swipe.behind = null;
- compare(control.swipe.behind, oldBehind);
- compare(control.swipe.behindItem, oldBehindItem);
- }
-
- function test_defaults() {
- var control = createTemporaryObject(swipeDelegateComponent, testCase);
- verify(control);
-
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset);
- compare(control.swipe.position, 0);
- verify(!control.pressed);
- verify(!control.swipe.complete);
- }
-
- SignalSequenceSpy {
- id: mouseSignalSequenceSpy
- signals: ["pressed", "released", "canceled", "clicked", "doubleClicked", "pressedChanged", "pressAndHold"]
- }
-
- function test_swipe() {
- var control = createTemporaryObject(swipeDelegateComponent, testCase);
- verify(control);
-
- var overDragDistance = Math.round(dragDistance * 1.1);
-
- var completedSpy = signalSpyComponent.createObject(control, { target: control.swipe, signalName: "completed" });
- verify(completedSpy);
- verify(completedSpy.valid);
-
- var openedSpy = signalSpyComponent.createObject(control, { target: control.swipe, signalName: "opened" });
- verify(openedSpy);
- verify(openedSpy.valid);
-
- var closedSpy = signalSpyComponent.createObject(control, { target: control.swipe, signalName: "closed" });
- verify(closedSpy);
- verify(closedSpy.valid);
-
- mouseSignalSequenceSpy.target = control;
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }], "pressed"];
- mousePress(control, control.width / 2, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 0.0);
- verify(!control.swipe.complete);
- compare(completedSpy.count, 0);
- compare(openedSpy.count, 0);
- compare(closedSpy.count, 0);
- verify(mouseSignalSequenceSpy.success);
- verify(!control.swipe.leftItem);
- verify(!control.swipe.rightItem);
-
- // Drag to the right so that leftItem is created and visible.
- mouseMove(control, control.width / 2 + overDragDistance, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, overDragDistance / control.width);
- verify(!control.swipe.complete);
- compare(completedSpy.count, 0);
- compare(openedSpy.count, 0);
- compare(closedSpy.count, 0);
- verify(control.swipe.leftItem);
- verify(control.swipe.leftItem.visible);
- compare(control.swipe.leftItem.parent, control);
- compare(control.swipe.leftItem.objectName, "leftItem");
- verify(!control.swipe.rightItem);
-
- // Go back to 0.
- mouseMove(control, control.width / 2, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 0.0);
- verify(!control.swipe.complete);
- compare(completedSpy.count, 0);
- compare(openedSpy.count, 0);
- compare(closedSpy.count, 0);
- verify(control.swipe.leftItem);
- verify(control.swipe.leftItem.visible);
- compare(control.swipe.leftItem.parent, control);
- compare(control.swipe.leftItem.objectName, "leftItem");
- verify(!control.swipe.rightItem);
-
- // Try the other direction. The right item should be created and visible,
- // and the left item should be hidden.
- mouseMove(control, control.width / 2 - overDragDistance, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, -overDragDistance / control.width);
- verify(!control.swipe.complete);
- compare(completedSpy.count, 0);
- compare(openedSpy.count, 0);
- compare(closedSpy.count, 0);
- verify(control.swipe.leftItem);
- verify(!control.swipe.leftItem.visible);
- verify(control.swipe.rightItem);
- verify(control.swipe.rightItem.visible);
- compare(control.swipe.rightItem.parent, control);
- compare(control.swipe.rightItem.objectName, "rightItem");
-
- // Now release outside the right edge of the control.
- mouseMove(control, control.width * 1.1, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 0.6);
- verify(!control.swipe.complete);
- compare(completedSpy.count, 0);
- compare(openedSpy.count, 0);
- compare(closedSpy.count, 0);
- verify(control.swipe.leftItem);
- verify(control.swipe.leftItem.visible);
- verify(control.swipe.rightItem);
- verify(!control.swipe.rightItem.visible);
-
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }], "canceled"];
- mouseRelease(control, control.width / 2, control.height / 2);
- verify(!control.pressed);
- tryCompare(control.swipe, "position", 1.0);
- tryCompare(control.swipe, "complete", true);
- compare(completedSpy.count, 1);
- compare(openedSpy.count, 1);
- compare(closedSpy.count, 0);
- verify(mouseSignalSequenceSpy.success);
- verify(control.swipe.leftItem);
- verify(control.swipe.leftItem.visible);
- verify(control.swipe.rightItem);
- verify(!control.swipe.rightItem.visible);
- tryCompare(control.contentItem, "x", control.width + control.leftPadding);
-
- // Swiping from the right and releasing early should return position to 1.0.
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }], "pressed"];
- mousePress(control, control.width / 2, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 1.0);
- // complete should still be true, because we haven't moved yet, and hence
- // haven't started grabbing behind's mouse events.
- verify(control.swipe.complete);
- compare(completedSpy.count, 1);
- compare(openedSpy.count, 1);
- compare(closedSpy.count, 0);
- verify(mouseSignalSequenceSpy.success);
-
- mouseMove(control, control.width / 2 - overDragDistance, control.height / 2);
- verify(control.pressed);
- verify(!control.swipe.complete);
- compare(completedSpy.count, 1);
- compare(openedSpy.count, 1);
- compare(closedSpy.count, 0);
- compare(control.swipe.position, 1.0 - overDragDistance / control.width);
-
- // Since we went over the drag distance, we should expect canceled() to be emitted.
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }], "canceled"];
- mouseRelease(control, control.width * 0.4, control.height / 2);
- verify(!control.pressed);
- tryCompare(control.swipe, "position", 1.0);
- tryCompare(control.swipe, "complete", true);
- compare(completedSpy.count, 2);
- compare(openedSpy.count, 2);
- compare(closedSpy.count, 0);
- verify(mouseSignalSequenceSpy.success);
- tryCompare(control.contentItem, "x", control.width + control.leftPadding);
-
- // Swiping from the right and releasing should return contents to default position.
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }], "pressed"];
- mousePress(control, control.width / 2, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 1.0);
- verify(control.swipe.complete);
- compare(completedSpy.count, 2);
- compare(openedSpy.count, 2);
- compare(closedSpy.count, 0);
- verify(mouseSignalSequenceSpy.success);
-
- mouseMove(control, control.width * -0.1, control.height / 2);
- verify(control.pressed);
- verify(!control.swipe.complete);
- compare(completedSpy.count, 2);
- compare(openedSpy.count, 2);
- compare(closedSpy.count, 0);
- compare(control.swipe.position, 0.4);
-
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }], "canceled"];
- mouseRelease(control, control.width * -0.1, control.height / 2);
- verify(!control.pressed);
- tryCompare(control.swipe, "position", 0.0);
- verify(!control.swipe.complete);
- compare(completedSpy.count, 2);
- compare(openedSpy.count, 2);
- tryCompare(closedSpy, "count", 1);
- verify(mouseSignalSequenceSpy.success);
- tryCompare(control.contentItem, "x", control.leftPadding);
- }
-
- function test_swipeVelocity_data() {
- return [
- { tag: "positive velocity", direction: 1 },
- { tag: "negative velocity", direction: -1 }
- ];
- }
-
- function test_swipeVelocity(data) {
- skip("QTBUG-52003");
-
- var control = createTemporaryObject(swipeDelegateComponent, testCase);
- verify(control);
-
- var distance = Math.round(dragDistance * 1.1);
- if (distance >= control.width / 2)
- skip("This test requires a startDragDistance that is less than half the width of the control");
-
- distance *= data.direction;
-
- mouseSignalSequenceSpy.target = control;
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }], "pressed"];
- mousePress(control, control.width / 2, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 0.0);
- verify(!control.swipe.complete);
- verify(mouseSignalSequenceSpy.success);
- verify(!control.swipe.leftItem);
- verify(!control.swipe.rightItem);
-
- // Swipe quickly to the side over a distance that is longer than the drag threshold,
- // quicker than the expose velocity threshold, but shorter than the halfway mark.
- mouseMove(control, control.width / 2 + distance, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, distance / control.width);
- verify(control.swipe.position < 0.5);
- verify(!control.swipe.complete);
-
- var expectedVisibleItem;
- var expectedVisibleObjectName;
- var expectedHiddenItem;
- var expectedContentItemX;
- if (distance > 0) {
- expectedVisibleObjectName = "leftItem";
- expectedVisibleItem = control.swipe.leftItem;
- expectedHiddenItem = control.swipe.rightItem;
- expectedContentItemX = control.width + control.leftPadding;
- } else {
- expectedVisibleObjectName = "rightItem";
- expectedVisibleItem = control.swipe.rightItem;
- expectedHiddenItem = control.swipe.leftItem;
- expectedContentItemX = -control.width + control.leftPadding;
- }
- verify(expectedVisibleItem);
- verify(expectedVisibleItem.visible);
- compare(expectedVisibleItem.parent, control);
- compare(expectedVisibleItem.objectName, expectedVisibleObjectName);
- verify(!expectedHiddenItem);
-
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }], "released", "clicked"];
- // Add a delay to ensure that the release event doesn't happen too quickly,
- // and hence that the second timestamp isn't zero (can happen with e.g. release builds).
- mouseRelease(control, control.width / 2 + distance, control.height / 2, Qt.LeftButton, Qt.NoModifier, 30);
- verify(!control.pressed);
- compare(control.swipe.position, data.direction);
- verify(control.swipe.complete);
- verify(mouseSignalSequenceSpy.success);
- verify(expectedVisibleItem);
- verify(expectedVisibleItem.visible);
- verify(!expectedHiddenItem);
- tryCompare(control.contentItem, "x", expectedContentItemX);
- }
-
- Component {
- id: swipeDelegateWithButtonComponent
- SwipeDelegate {
- text: "SwipeDelegate"
- width: 150
- swipe.right: Button {
- width: parent.width
- height: parent.height
- text: "Boo!"
- }
- }
- }
-
- function test_eventsToLeftAndRight() {
- var control = createTemporaryObject(swipeDelegateWithButtonComponent, testCase);
- verify(control);
-
- var closedSpy = signalSpyComponent.createObject(control, { target: control.swipe, signalName: "closed" });
- verify(closedSpy);
- verify(closedSpy.valid);
-
- // The button should be pressed instead of the SwipeDelegate.
- mouseDrag(control, control.width / 2, 0, -control.width, 0);
- // Mouse has been released by this stage.
- verify(!control.pressed);
- compare(control.swipe.position, -1.0);
- verify(control.swipe.rightItem);
- verify(control.swipe.rightItem.visible);
- compare(control.swipe.rightItem.parent, control);
-
- var buttonPressedSpy = signalSpyComponent.createObject(control, { target: control.swipe.rightItem, signalName: "pressed" });
- verify(buttonPressedSpy);
- verify(buttonPressedSpy.valid);
- var buttonReleasedSpy = signalSpyComponent.createObject(control, { target: control.swipe.rightItem, signalName: "released" });
- verify(buttonReleasedSpy);
- verify(buttonReleasedSpy.valid);
- var buttonClickedSpy = signalSpyComponent.createObject(control, { target: control.swipe.rightItem, signalName: "clicked" });
- verify(buttonClickedSpy);
- verify(buttonClickedSpy.valid);
-
- // Now press the button.
- mousePress(control, control.width / 2, control.height / 2);
- verify(!control.pressed);
- var button = control.swipe.rightItem;
- verify(button.pressed);
- compare(buttonPressedSpy.count, 1);
- compare(buttonReleasedSpy.count, 0);
- compare(buttonClickedSpy.count, 0);
-
- mouseRelease(control, control.width / 2, control.height / 2);
- verify(!button.pressed);
- compare(buttonPressedSpy.count, 1);
- compare(buttonReleasedSpy.count, 1);
- compare(buttonClickedSpy.count, 1);
-
- // Returning back to a position of 0 and pressing on the control should
- // result in the control being pressed.
- mouseDrag(control, control.width / 2, 0, control.width * 0.6, 0);
- tryCompare(closedSpy, "count", 1);
- compare(control.swipe.position, 0);
- mousePress(control, control.width / 2, control.height / 2);
- verify(control.pressed);
- verify(!button.pressed);
- mouseRelease(control, control.width / 2, control.height / 2);
- verify(!control.pressed);
- }
-
- function test_mouseButtons() {
- var control = createTemporaryObject(swipeDelegateComponent, testCase);
- verify(control);
-
- // click
- mouseSignalSequenceSpy.target = control;
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }], "pressed"];
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- compare(control.pressed, true);
-
- verify(mouseSignalSequenceSpy.success);
-
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": false }], "released", "clicked"];
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton);
- compare(control.pressed, false);
- verify(mouseSignalSequenceSpy.success);
-
- // right button
- mouseSignalSequenceSpy.expectedSequence = [];
- mousePress(control, control.width / 2, control.height / 2, Qt.RightButton);
- compare(control.pressed, false);
-
- mouseRelease(control, control.width / 2, control.height / 2, Qt.RightButton);
- compare(control.pressed, false);
- verify(mouseSignalSequenceSpy.success);
-
- // double click
- mouseSignalSequenceSpy.expectedSequence = [
- ["pressedChanged", { "pressed": true }],
- "pressed",
- ["pressedChanged", { "pressed": false }],
- "released",
- "clicked",
- ["pressedChanged", { "pressed": true }],
- "pressed",
- "doubleClicked",
- ["pressedChanged", { "pressed": false }],
- "released",
- "clicked"
- ];
- mouseDoubleClickSequence(control, control.width / 2, control.height / 2, Qt.LeftButton);
- verify(mouseSignalSequenceSpy.success);
-
- // press and hold
- var pressAndHoldSpy = signalSpyComponent.createObject(control, { target: control, signalName: "pressAndHold" });
- verify(pressAndHoldSpy);
- verify(pressAndHoldSpy.valid);
-
- mouseSignalSequenceSpy.expectedSequence = [
- ["pressedChanged", { "pressed": true }],
- "pressed",
- "pressAndHold",
- ["pressedChanged", { "pressed": false }],
- "released"
- ];
- mousePress(control);
- compare(control.pressed, true);
- tryCompare(pressAndHoldSpy, "count", 1);
-
- mouseRelease(control);
- compare(control.pressed, false);
- verify(mouseSignalSequenceSpy.success);
- }
-
- Component {
- id: removableDelegatesComponent
-
- ListView {
- id: listView
- width: 100
- height: 120
-
- model: ListModel {
- ListElement { name: "Apple" }
- ListElement { name: "Orange" }
- ListElement { name: "Pear" }
- }
-
- delegate: SwipeDelegate {
- id: rootDelegate
- text: modelData
- width: listView.width
-
- property alias removeAnimation: onRemoveAnimation
-
- ListView.onRemove: SequentialAnimation {
- id: onRemoveAnimation
-
- PropertyAction {
- target: rootDelegate
- property: "ListView.delayRemove"
- value: true
- }
- NumberAnimation {
- target: rootDelegate
- property: "height"
- to: 0
- easing.type: Easing.InOutQuad
- }
- PropertyAction {
- target: rootDelegate;
- property: "ListView.delayRemove";
- value: false
- }
- }
-
- swipe.left: Rectangle {
- objectName: "rectangle"
- color: SwipeDelegate.pressed ? "#333" : "#444"
- anchors.fill: parent
-
- SwipeDelegate.onClicked: listView.model.remove(index)
-
- Label {
- objectName: "label"
- text: "Remove"
- color: "white"
- anchors.centerIn: parent
- }
- }
- }
- }
- }
-
- function test_removableDelegates() {
- var listView = createTemporaryObject(removableDelegatesComponent, testCase);
- verify(listView);
- compare(listView.count, 3);
-
- // Expose the remove button.
- var firstItem = listView.itemAt(0, 0);
- mousePress(listView, firstItem.width / 2, firstItem.height / 2);
- verify(firstItem.pressed);
- compare(firstItem.swipe.position, 0.0);
- verify(!firstItem.swipe.complete);
- verify(!firstItem.swipe.leftItem);
-
- mouseMove(listView, firstItem.width * 1.1, firstItem.height / 2);
- verify(firstItem.pressed);
- compare(firstItem.swipe.position, 0.6);
- verify(!firstItem.swipe.complete);
- verify(firstItem.swipe.leftItem);
- verify(!firstItem.swipe.leftItem.SwipeDelegate.pressed);
-
- mouseRelease(listView, firstItem.width / 2, firstItem.height / 2);
- verify(!firstItem.pressed);
- tryCompare(firstItem.swipe, "position", 1.0);
- tryCompare(firstItem.swipe, "complete", true);
- compare(listView.count, 3);
-
- // Wait for it to settle down.
- tryCompare(firstItem.contentItem, "x", firstItem.leftPadding + firstItem.width);
-
- var leftClickedSpy = signalSpyComponent.createObject(firstItem.swipe.leftItem,
- { target: firstItem.swipe.leftItem.SwipeDelegate, signalName: "clicked" });
- verify(leftClickedSpy);
- verify(leftClickedSpy.valid);
-
- // Click the left item to remove the delegate from the list.
- var contentItemX = firstItem.contentItem.x;
- mousePress(listView, firstItem.width / 2, firstItem.height / 2);
- verify(firstItem.swipe.leftItem.SwipeDelegate.pressed);
- compare(leftClickedSpy.count, 0);
- verify(!firstItem.pressed);
-
- mouseRelease(listView, firstItem.width / 2, firstItem.height / 2);
- verify(!firstItem.swipe.leftItem.SwipeDelegate.pressed);
- compare(leftClickedSpy.count, 1);
- verify(!firstItem.pressed);
- leftClickedSpy = null;
- tryCompare(firstItem.removeAnimation, "running", true);
- // There was a bug where the resizeContent() would be called because the height
- // of the control was changing due to the animation. contentItem would then
- // change x position and hence be visible when it shouldn't be.
- verify(firstItem.removeAnimation.running);
- while (1) {
- wait(10)
- if (firstItem && firstItem.removeAnimation && firstItem.removeAnimation.running)
- compare(firstItem.contentItem.x, contentItemX);
- else
- break;
- }
- compare(listView.count, 2);
- }
-
- Component {
- id: leadingTrailingXComponent
- SwipeDelegate {
- id: delegate
- width: 150
- text: "SwipeDelegate"
-
- swipe.left: Rectangle {
- x: delegate.background.x - width
- width: delegate.width
- height: delegate.height
- color: "green"
- }
-
- swipe.right: Rectangle {
- x: delegate.background.x + delegate.background.width
- width: delegate.width
- height: delegate.height
- color: "red"
- }
- }
- }
-
- Component {
- id: leadingTrailingAnchorsComponent
- SwipeDelegate {
- id: delegate
- width: 150
- text: "SwipeDelegate"
-
- swipe.left: Rectangle {
- anchors.right: delegate.background.left
- width: delegate.width
- height: delegate.height
- color: "green"
- }
-
- swipe.right: Rectangle {
- anchors.left: delegate.background.right
- width: delegate.width
- height: delegate.height
- color: "red"
- }
- }
- }
-
- function test_leadingTrailing_data() {
- return [
- { tag: "x", component: leadingTrailingXComponent },
- { tag: "anchors", component: leadingTrailingAnchorsComponent },
- ];
- }
-
- function test_leadingTrailing(data) {
- var control = createTemporaryObject(data.component, testCase);
- verify(control);
-
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width, control.height / 2);
- verify(control.swipe.leftItem);
- compare(control.swipe.leftItem.x, -control.width / 2);
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton);
- }
-
- function test_minMaxPosition() {
- var control = createTemporaryObject(leadingTrailingXComponent, testCase);
- verify(control);
-
- // Should be limited within the range -1.0 to 1.0.
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width * 1.5, control.height / 2);
- compare(control.swipe.position, 1.0);
- mouseMove(control, control.width * 1.6, control.height / 2);
- compare(control.swipe.position, 1.0);
- mouseMove(control, control.width * -1.6, control.height / 2);
- compare(control.swipe.position, -1.0);
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton);
- }
-
- Component {
- id: emptySwipeDelegateComponent
-
- SwipeDelegate {
- text: "SwipeDelegate"
- width: 150
- }
- }
-
- Component {
- id: smallLeftComponent
-
- Rectangle {
- width: 80
- height: 40
- color: "green"
- }
- }
-
- // swipe.position should be scaled to the width of the relevant delegate,
- // and it shouldn't be possible to drag past the delegate (so that content behind the control is visible).
- function test_delegateWidth() {
- var control = createTemporaryObject(emptySwipeDelegateComponent, testCase);
- verify(control);
-
- control.swipe.left = smallLeftComponent;
-
- // Ensure that the position is scaled to the width of the currently visible delegate.
- var overDragDistance = Math.round(dragDistance * 1.1);
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width / 2 + overDragDistance, control.height / 2);
- verify(control.swipe.leftItem);
- compare(control.swipe.position, overDragDistance / control.swipe.leftItem.width);
-
- mouseMove(control, control.width / 2 + control.swipe.leftItem.width, control.height / 2);
- compare(control.swipe.position, 1.0);
-
- // Ensure that it's not possible to drag past the (left) delegate.
- mouseMove(control, control.width / 2 + control.swipe.leftItem.width + 1, control.height / 2);
- compare(control.swipe.position, 1.0);
-
- // Now release over the right side; the position should be 1.0 and the background
- // should be "anchored" to the right side of the left delegate item.
- mouseMove(control, control.width / 2 + control.swipe.leftItem.width, control.height / 2);
- mouseRelease(control, control.width / 2 + control.swipe.leftItem.width, control.height / 2, Qt.LeftButton);
- compare(control.swipe.position, 1.0);
- tryCompare(control.background, "x", control.swipe.leftItem.width, 1000);
- }
-
- SignalSpy {
- id: leftVisibleSpy
- signalName: "visibleChanged"
- }
-
- SignalSpy {
- id: rightVisibleSpy
- signalName: "visibleChanged"
- }
-
- function test_positionAfterSwipeCompleted() {
- var control = createTemporaryObject(swipeDelegateComponent, testCase);
- verify(control);
-
- // Ensure that both delegates are constructed.
- mousePress(control, 0, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width * 1.1, control.height / 2);
- verify(control.swipe.leftItem);
- mouseMove(control, control.width * -0.1, control.height / 2);
- verify(control.swipe.rightItem);
-
- // Expose the left delegate.
- mouseMove(control, control.swipe.leftItem.width, control.height / 2);
- mouseRelease(control, control.swipe.leftItem.width, control.height / 2);
- verify(control.swipe.complete);
- compare(control.swipe.position, 1.0);
-
- leftVisibleSpy.target = control.swipe.leftItem;
- rightVisibleSpy.target = control.swipe.rightItem;
-
- // Swipe from right to left without exposing the right item,
- // and make sure that the right item never becomes visible
- // (and hence that the left item never loses visibility).
- mousePress(control, control.swipe.leftItem.width, control.height / 2, Qt.LeftButton);
- compare(leftVisibleSpy.count, 0);
- compare(rightVisibleSpy.count, 0);
- var newX = control.swipe.leftItem.width - Math.round(dragDistance * 1.1);
- mouseMove(control, newX, control.height / 2);
- compare(leftVisibleSpy.count, 0);
- compare(rightVisibleSpy.count, 0);
- compare(control.swipe.position, newX / control.swipe.leftItem.width);
-
- mouseMove(control, 0, control.height / 2);
- compare(control.swipe.position, 0);
-
- // Test swiping over a distance that is greater than the width of the left item.
- mouseMove(control, -1, control.height / 2);
- verify(control.swipe.rightItem);
- compare(control.swipe.position, -1 / control.swipe.rightItem.width);
-
- // Now go back to 1.0.
- mouseMove(control, control.swipe.leftItem.width, control.height / 2);
- compare(control.swipe.position, 1.0);
- tryCompare(control.background, "x", control.swipe.leftItem.width, 1000);
- mouseRelease(control, control.swipe.leftItem.width, control.height / 2, Qt.LeftButton);
- }
-
- // TODO: this somehow results in the behind item having a negative width
-// Component {
-// id: behindSwipeDelegateComponent
-// SwipeDelegate {
-// anchors.centerIn: parent
-// swipe.behind: Rectangle {
-// onXChanged: print("x changed", x)
-// anchors.left: {
-// print("anchors.left expression", swipe.position)
-// swipe.position < 0 ? parent.background.right : undefined
-// }
-// anchors.right: {
-// print("anchors.right expression", swipe.position)
-// swipe.position > 0 ? parent.background.left : undefined
-// }
-// width: parent.width
-// height: parent.height
-// color: "green"
-// }
-// swipe.left: null
-// swipe.right: null
-// Rectangle {
-// anchors.fill: parent
-// color: "transparent"
-// border.color: "darkorange"
-// }
-// }
-// }
-
- Component {
- id: behindSwipeDelegateComponent
- SwipeDelegate {
- text: "SwipeDelegate"
- width: 150
- anchors.centerIn: parent
- swipe.behind: Rectangle {
- x: swipe.position < 0 ? parent.background.x + parent.background.width
- : (swipe.position > 0 ? parent.background.x - width : 0)
- width: parent.width
- height: parent.height
- color: "green"
- }
- swipe.left: null
- swipe.right: null
- }
- }
-
- function test_leadingTrailingBehindItem() {
- var control = createTemporaryObject(behindSwipeDelegateComponent, testCase);
- verify(control);
-
- swipe(control, 0.0, 1.0);
- verify(control.swipe.behindItem.visible);
- compare(control.swipe.behindItem.x, control.background.x - control.background.width);
-
- swipe(control, 1.0, -1.0);
- verify(control.swipe.behindItem.visible);
- compare(control.swipe.behindItem.x, control.background.x + control.background.width);
-
- swipe(control, -1.0, 1.0);
- verify(control.swipe.behindItem.visible);
- compare(control.swipe.behindItem.x, control.background.x - control.background.width);
-
- // Should be possible to "wrap" with a behind delegate specified.
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width / 2 + control.swipe.behindItem.width * 0.8, control.height / 2);
- compare(control.swipe.position, -0.2);
- mouseRelease(control, control.width / 2 + control.swipe.behindItem.width * 0.8, control.height / 2, Qt.LeftButton);
- tryCompare(control.swipe, "position", 0.0);
-
- // Try wrapping the other way.
- swipe(control, 0.0, -1.0);
- verify(control.swipe.behindItem.visible);
- compare(control.swipe.behindItem.x, control.background.x + control.background.width);
-
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width / 2 - control.swipe.behindItem.width * 0.8, control.height / 2);
- compare(control.swipe.position, 0.2);
- mouseRelease(control, control.width / 2 - control.swipe.behindItem.width * 0.8, control.height / 2, Qt.LeftButton);
- tryCompare(control.swipe, "position", 0.0);
- }
-
- Component {
- id: closeSwipeDelegateComponent
-
- SwipeDelegate {
- text: "SwipeDelegate"
- width: 150
-
- swipe.right: Item {
- width: parent.width
- height: parent.height
-
- SwipeDelegate.onClicked: swipe.close()
- }
- }
- }
-
- function test_close() {
- var control = createTemporaryObject(closeSwipeDelegateComponent, testCase);
- verify(control);
-
- var closedSpy = signalSpyComponent.createObject(control, { target: control.swipe, signalName: "closed" });
- verify(closedSpy);
- verify(closedSpy.valid);
-
- swipe(control, 0.0, -1.0);
- compare(control.swipe.rightItem.visible, true);
- // Should animate, so it shouldn't change right away.
- compare(control.swipe.rightItem.x, 0);
- tryCompare(control.swipe.rightItem, "x", control.background.x + control.background.width);
-
- mousePress(control);
- verify(control.swipe.rightItem.SwipeDelegate.pressed);
-
- mouseRelease(control);
- verify(!control.swipe.rightItem.SwipeDelegate.pressed);
- tryCompare(closedSpy, "count", 1);
- compare(control.swipe.position, 0);
-
- // Swiping after closing should work as normal.
- swipe(control, 0.0, -1.0);
- }
-
- Component {
- id: multiActionSwipeDelegateComponent
-
- SwipeDelegate {
- text: "SwipeDelegate"
- width: 150
-
- swipe.right: Item {
- objectName: "rightItemRoot"
- width: parent.width
- height: parent.height
-
- property alias firstAction: firstAction
- property alias secondAction: secondAction
-
- property int firstClickCount: 0
- property int secondClickCount: 0
-
- Row {
- anchors.fill: parent
- anchors.margins: 5
-
- Rectangle {
- id: firstAction
- width: parent.width / 2
- height: parent.height
- color: "tomato"
-
- SwipeDelegate.onClicked: ++firstClickCount
- }
- Rectangle {
- id: secondAction
- width: parent.width / 2
- height: parent.height
- color: "navajowhite"
-
- SwipeDelegate.onClicked: ++secondClickCount
- }
- }
- }
- }
- }
-
- // Tests that it's possible to have multiple non-interactive items in one delegate
- // (e.g. left/right/behind) that can each receive clicks.
- function test_multipleClickableActions() {
- var control = createTemporaryObject(multiActionSwipeDelegateComponent, testCase);
- verify(control);
-
- swipe(control, 0.0, -1.0);
- verify(control.swipe.rightItem);
- tryCompare(control.swipe, "complete", true);
-
- var firstClickedSpy = signalSpyComponent.createObject(control,
- { target: control.swipe.rightItem.firstAction.SwipeDelegate, signalName: "clicked" });
- verify(firstClickedSpy);
- verify(firstClickedSpy.valid);
-
- // Clicked within rightItem, but not within an item using the attached properties.
- mousePress(control, 2, 2);
- compare(control.swipe.rightItem.firstAction.SwipeDelegate.pressed, false);
- compare(firstClickedSpy.count, 0);
-
- mouseRelease(control, 2, 2);
- compare(control.swipe.rightItem.firstAction.SwipeDelegate.pressed, false);
- compare(firstClickedSpy.count, 0);
-
- // Click within the first item.
- mousePress(control.swipe.rightItem.firstAction, 0, 0);
- compare(control.swipe.rightItem.firstAction.SwipeDelegate.pressed, true);
- compare(firstClickedSpy.count, 0);
-
- mouseRelease(control.swipe.rightItem.firstAction, 0, 0);
- compare(control.swipe.rightItem.firstAction.SwipeDelegate.pressed, false);
- compare(firstClickedSpy.count, 1);
- compare(control.swipe.rightItem.firstClickCount, 1);
-
- var secondClickedSpy = signalSpyComponent.createObject(control,
- { target: control.swipe.rightItem.secondAction.SwipeDelegate, signalName: "clicked" });
- verify(secondClickedSpy);
- verify(secondClickedSpy.valid);
-
- // Click within the second item.
- mousePress(control.swipe.rightItem.secondAction, 0, 0);
- compare(control.swipe.rightItem.secondAction.SwipeDelegate.pressed, true);
- compare(secondClickedSpy.count, 0);
-
- mouseRelease(control.swipe.rightItem.secondAction, 0, 0);
- compare(control.swipe.rightItem.secondAction.SwipeDelegate.pressed, false);
- compare(secondClickedSpy.count, 1);
- compare(control.swipe.rightItem.secondClickCount, 1);
- }
-
- // Pressing on a "side action" and then dragging should eventually
- // cause the ListView to grab the mouse and start changing its contentY.
- // When this happens, it will grab the mouse and hence we must clear
- // that action's pressed state so that it doesn't stay pressed after releasing.
- function test_dragSideAction() {
- var listView = createTemporaryObject(removableDelegatesComponent, testCase);
- verify(listView);
-
- var control = listView.itemAt(0, 0);
- verify(control);
-
- // Expose the side action.
- swipe(control, 0.0, 1.0);
- verify(control.swipe.leftItem);
- tryCompare(control.swipe, "complete", true);
-
- var pressedSpy = signalSpyComponent.createObject(control,
- { target: control.swipe.leftItem.SwipeDelegate, signalName: "pressedChanged" });
- verify(pressedSpy);
- verify(pressedSpy.valid);
-
- mouseDrag(listView, 20, 20, 0, listView.height);
- compare(pressedSpy.count, 2);
- verify(listView.contentY !== 0);
-
- compare(control.swipe.leftItem.SwipeDelegate.pressed, false);
- }
-
- // When the width of a SwipeDelegate changes (as it does upon portrait => landscape
- // rotation, for example), the positions of the contentItem and background items
- // should be updated accordingly.
- function test_contentItemPosOnWidthChanged() {
- var control = createTemporaryObject(swipeDelegateComponent, testCase);
- verify(control);
-
- swipe(control, 0.0, 1.0);
-
- var oldContentItemX = control.contentItem.x;
- var oldBackgroundX = control.background.x;
- control.width += 100;
- compare(control.contentItem.x, oldContentItemX + 100);
- compare(control.background.x, oldBackgroundX + 100);
- }
-
- function test_contentItemHeightOnHeightChanged() {
- var control = createTemporaryObject(swipeDelegateComponent, testCase);
- verify(control);
-
- // Try when swipe.complete is false.
- var originalHeight = control.height;
- var originalContentItemHeight = control.contentItem.height;
- verify(control.height !== 10);
- control.height = 10;
- compare(control.contentItem.height, control.availableHeight);
- verify(control.contentItem.height < originalContentItemHeight);
- compare(control.contentItem.y, control.topPadding);
-
- // Try when swipe.complete is true.
- control.height = originalHeight;
- swipe(control, 0.0, 1.0);
- control.height = 10;
- compare(control.contentItem.height, control.availableHeight);
- verify(control.contentItem.height < originalContentItemHeight);
- compare(control.contentItem.y, control.topPadding);
- }
-
- function test_releaseOutside_data() {
- return [
- { tag: "no delegates", component: emptySwipeDelegateComponent },
- { tag: "delegates", component: swipeDelegateComponent },
- ];
- }
-
- function test_releaseOutside(data) {
- var control = createTemporaryObject(data.component, testCase);
- verify(control);
-
- // Press and then release below the control.
- mouseSignalSequenceSpy.target = control;
- mouseSignalSequenceSpy.expectedSequence = [["pressedChanged", { "pressed": true }], "pressed", ["pressedChanged", { "pressed": false }]];
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width / 2, control.height + 10);
- verify(mouseSignalSequenceSpy.success);
-
- mouseSignalSequenceSpy.expectedSequence = ["canceled"];
- mouseRelease(control, control.width / 2, control.height + 10, Qt.LeftButton);
- verify(mouseSignalSequenceSpy.success);
-
- // Press and then release to the right of the control.
- var hasDelegates = control.swipe.left || control.swipe.right || control.swipe.behind;
- mouseSignalSequenceSpy.target = control;
- mouseSignalSequenceSpy.expectedSequence = hasDelegates
- ? [["pressedChanged", { "pressed": true }], "pressed"]
- : [["pressedChanged", { "pressed": true }], "pressed", ["pressedChanged", { "pressed": false }]];
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width + 10, control.height / 2);
- if (hasDelegates)
- verify(control.swipe.position > 0);
- verify(mouseSignalSequenceSpy.success);
-
- mouseSignalSequenceSpy.expectedSequence = hasDelegates ? [["pressedChanged", { "pressed": false }], "canceled"] : ["canceled"];
- mouseRelease(control, control.width + 10, control.height / 2, Qt.LeftButton);
- verify(mouseSignalSequenceSpy.success);
- }
-
- Component {
- id: leftRightWithLabelsComponent
-
- SwipeDelegate {
- id: delegate
- text: "SwipeDelegate"
- width: 150
-
- background.opacity: 0.5
-
- swipe.left: Rectangle {
- width: parent.width
- height: parent.height
- color: SwipeDelegate.pressed ? Qt.darker("green") : "green"
-
- property alias label: label
-
- Label {
- id: label
- text: "Left"
- color: "white"
- anchors.margins: 10
- anchors.left: parent.left
- anchors.verticalCenter: parent.verticalCenter
- }
-
- SwipeDelegate.onClicked: delegate.swipe.close()
- }
-
- swipe.right: Rectangle {
- width: parent.width
- height: parent.height
- anchors.right: parent.right
- color: SwipeDelegate.pressed ? Qt.darker("green") : "red"
-
- property alias label: label
-
- Label {
- id: label
- text: "Right"
- color: "white"
- anchors.margins: 10
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
- }
-
- SwipeDelegate.onClicked: delegate.swipe.close()
- }
- }
- }
-
- function test_beginSwipeOverRightItem() {
- var control = createTemporaryObject(leftRightWithLabelsComponent, testCase);
- verify(control);
-
- // Swipe to the left, exposing the right item.
- swipe(control, 0.0, -1.0);
-
- // Click to close it and go back to a position of 0.
- mouseClick(control);
-
- // TODO: Swipe to the left, with the mouse over the Label in the right item.
- // The left item should not become visible at any point.
- var rightLabel = control.swipe.rightItem.label;
- var overDragDistance = Math.round(dragDistance * 1.1);
- mousePress(rightLabel, rightLabel.width / 2, rightLabel.height / 2, Qt.rightButton);
- mouseMove(rightLabel, rightLabel.width / 2 - overDragDistance, rightLabel.height / 2);
- verify(!control.swipe.leftItem);
-
- mouseRelease(rightLabel, rightLabel.width / 2 - overDragDistance, control.height / 2, Qt.LeftButton);
- verify(!control.swipe.leftItem);
- }
-
- Component {
- id: swipeDelegateDisabledComponent
-
- SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- width: parent.width
- height: checked ? implicitHeight * 2 : implicitHeight
- checkable: true
-
- swipe.enabled: false
- swipe.right: Label {
- text: swipeDelegate.checked ? qsTr("Expanded") : qsTr("Collapsed")
- width: parent.width
- height: parent.height
- padding: 12
- color: "white"
- verticalAlignment: Label.AlignVCenter
- horizontalAlignment: Label.AlignRight
- }
- }
- }
-
- function test_swipeEnabled() {
- var control = createTemporaryObject(swipeDelegateDisabledComponent, testCase);
-
- mousePress(control, control.width / 2, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 0.0);
- verify(!control.swipe.complete);
- verify(!control.swipe.leftItem);
- verify(!control.swipe.rightItem);
-
- // It shouldn't be possible to swipe.
- var overDragDistance = Math.round(dragDistance * 1.1);
- mouseMove(control, control.width / 2 - overDragDistance, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 0.0);
- verify(!control.swipe.complete);
- verify(!control.swipe.leftItem);
- verify(!control.swipe.rightItem);
-
- // Now move outside the right edge of the control and release.
- mouseMove(control, control.width * 1.1, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, 0.0);
- verify(!control.swipe.complete);
- verify(!control.swipe.leftItem);
- verify(!control.swipe.rightItem);
-
- mouseRelease(control, control.width / 2, control.height / 2);
- verify(!control.pressed);
- compare(control.swipe.position, 0.0);
- verify(!control.swipe.complete);
- verify(!control.swipe.leftItem);
- verify(!control.swipe.rightItem);
-
- // Now enabled swiping so that we can swipe to the left.
- control.swipe.enabled = true;
- swipe(control, 0, -1);
- verify(control.swipe.complete);
-
- // Now that the swipe is complete, disable swiping and then try to swipe again.
- // It should stay at its position of -1.
- control.swipe.enabled = false;
-
- mousePress(control, control.width / 2, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, -1.0);
-
- mouseMove(control, control.width / 2 + overDragDistance, control.height / 2);
- verify(control.pressed);
- compare(control.swipe.position, -1.0);
- verify(control.swipe.complete);
-
- mouseRelease(control, control.width / 2 + overDragDistance, control.height / 2);
- verify(!control.pressed);
- compare(control.swipe.position, -1.0);
- verify(control.swipe.complete);
- }
-
- function test_side() {
- compare(SwipeDelegate.Left, 1.0);
- compare(SwipeDelegate.Right, -1.0);
- }
-
- function test_open_side_data() {
- return [
- { tag: "left", side: SwipeDelegate.Left, position: 1, complete: true, left: greenLeftComponent, right: null, behind: null },
- { tag: "right", side: SwipeDelegate.Right, position: -1, complete: true, left: null, right: redRightComponent, behind: null },
- { tag: "behind,left", side: SwipeDelegate.Left, position: 1, complete: true, left: null, right: null, behind: greenLeftComponent },
- { tag: "behind,right", side: SwipeDelegate.Right, position: -1, complete: true, left: null, right: null, behind: redRightComponent },
- { tag: "left,behind", side: SwipeDelegate.Left, position: 1, complete: true, left: null, right: null, behind: greenLeftComponent },
- { tag: "right,behind", side: SwipeDelegate.Right, position: -1, complete: true, left: null, right: null, behind: redRightComponent },
- { tag: "left,null", side: SwipeDelegate.Left, position: 0, complete: false, left: null, right: null, behind: null },
- { tag: "right,null", side: SwipeDelegate.Right, position: 0, complete: false, left: null, right: null, behind: null },
- { tag: "invalid", side: 0, position: 0, complete: false, left: greenLeftComponent, right: null, behind: null }
- ]
- }
-
- function test_open_side(data) {
- var control = createTemporaryObject(emptySwipeDelegateComponent, testCase,
- {"swipe.left": data.left, "swipe.right": data.right, "swipe.behind": data.behind});
- verify(control);
-
- control.swipe.open(data.side);
- tryCompare(control.swipe, "position", data.position);
- tryCompare(control.swipe, "complete", data.complete);
- }
-
- Component {
- id: openSwipeDelegateComponent
-
- SwipeDelegate {
- text: "SwipeDelegate"
- width: 150
-
- onClicked: swipe.open(SwipeDelegate.Right)
-
- swipe.right: Item {
- width: parent.width
- height: parent.height
- }
- }
- }
-
- function test_open() {
- var control = createTemporaryObject(openSwipeDelegateComponent, testCase);
- verify(control);
-
- mouseClick(control);
- tryCompare(control.swipe, "position", SwipeDelegate.Right);
- tryCompare(control.background, "x", -control.background.width);
-
- // Swiping after opening should work as normal.
- swipe(control, SwipeDelegate.Right, 0.0);
- tryCompare(control.swipe, "position", 0.0);
- tryCompare(control.background, "x", 0);
- }
-
- Component {
- id: animationSwipeDelegateComponent
-
- SwipeDelegate {
- id: control
- text: "SwipeDelegate"
- width: 150
- swipe.left: greenLeftComponent
- swipe.right: redRightComponent
- swipe.transition: null
-
- property alias behavior: xBehavior
- property alias animation: numberAnimation
-
- background: Rectangle {
- color: control.down ? "#ccc" : "#fff"
-
- Behavior on x {
- id: xBehavior
- enabled: !control.down
-
- NumberAnimation {
- id: numberAnimation
- easing.type: Easing.InOutCubic
- duration: 400
- }
- }
- }
- }
- }
-
- function test_animations() {
- // Test that animations are run when releasing from a drag.
- var control = createTemporaryObject(animationSwipeDelegateComponent, testCase);
- verify(control);
-
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton);
- mouseMove(control, control.width - 1, control.height / 2);
- verify(control.down);
- verify(!control.behavior.enabled);
- verify(!control.animation.running);
-
- mouseRelease(control, control.width - 1, control.height / 2, Qt.LeftButton);
- verify(!control.down);
- verify(control.behavior.enabled);
- verify(control.animation.running);
- }
-
- function test_spacing() {
- var control = createTemporaryObject(swipeDelegateComponent, testCase, { text: "Some long, long, long text" })
- verify(control)
- verify(control.contentItem.implicitWidth + control.leftPadding + control.rightPadding > control.background.implicitWidth)
-
- var textLabel = findChild(control.contentItem, "label")
- verify(textLabel)
-
- // The implicitWidth of the IconLabel that all buttons use as their contentItem
- // should be equal to the implicitWidth of the Text while no icon is set.
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // That means that spacing shouldn't affect it.
- control.spacing += 100
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // The implicitWidth of the SwipeDelegate itself should, therefore, also never include spacing while no icon is set.
- compare(control.implicitWidth, textLabel.implicitWidth + control.leftPadding + control.rightPadding)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: SwipeDelegate.IconOnly },
- { "tag": "TextOnly", display: SwipeDelegate.TextOnly },
- { "tag": "TextUnderIcon", display: SwipeDelegate.TextUnderIcon },
- { "tag": "TextBesideIcon", display: SwipeDelegate.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: SwipeDelegate.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: SwipeDelegate.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: SwipeDelegate.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: SwipeDelegate.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(swipeDelegateComponent, testCase, {
- text: "SwipeDelegate",
- display: data.display,
- width: 400,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- switch (control.display) {
- case SwipeDelegate.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case SwipeDelegate.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, control.mirrored ? control.availableWidth - textLabel.width : 0)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case SwipeDelegate.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case SwipeDelegate.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_swipeview.qml b/tests/auto/controls/data/tst_swipeview.qml
deleted file mode 100644
index 38af37f7..00000000
--- a/tests/auto/controls/data/tst_swipeview.qml
+++ /dev/null
@@ -1,577 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "SwipeView"
-
- Component {
- id: swipeView
- SwipeView { }
- }
-
- Component {
- id: page
- Text { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_current() {
- var control = createTemporaryObject(swipeView, testCase)
-
- var currentItemChangedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "currentItemChanged"})
- verify(currentItemChangedSpy.valid)
-
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentItem, null)
-
- var item0 = page.createObject(control, {text: "0"})
- control.addItem(item0)
- compare(control.count, 1)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "0")
- compare(currentItemChangedSpy.count, 1);
- compare(control.contentWidth, item0.implicitWidth)
- compare(control.contentHeight, item0.implicitHeight)
-
- var item1 = page.createObject(control, {text: "11"})
- control.addItem(item1)
- compare(control.count, 2)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "0")
- compare(currentItemChangedSpy.count, 1);
- compare(control.contentWidth, item0.implicitWidth)
- compare(control.contentHeight, item0.implicitHeight)
-
- var item2 = page.createObject(control, {text: "222"})
- control.addItem(item2)
- compare(control.count, 3)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "0")
- compare(currentItemChangedSpy.count, 1);
- compare(control.contentWidth, item0.implicitWidth)
- compare(control.contentHeight, item0.implicitHeight)
-
- control.currentIndex = 1
- compare(control.currentIndex, 1)
- compare(control.currentItem.text, "11")
- compare(currentItemChangedSpy.count, 2);
- compare(control.contentWidth, item1.implicitWidth)
- compare(control.contentHeight, item1.implicitHeight)
-
- control.currentIndex = 2
- compare(control.currentIndex, 2)
- compare(control.currentItem.text, "222")
- compare(currentItemChangedSpy.count, 3);
- compare(control.contentWidth, item2.implicitWidth)
- compare(control.contentHeight, item2.implicitHeight)
-
- control.decrementCurrentIndex()
- compare(control.currentIndex, 1)
- compare(control.currentItem.text, "11")
- compare(currentItemChangedSpy.count, 4);
- compare(control.contentWidth, item1.implicitWidth)
- compare(control.contentHeight, item1.implicitHeight)
-
- control.incrementCurrentIndex()
- compare(control.currentIndex, 2)
- compare(control.currentItem.text, "222")
- compare(currentItemChangedSpy.count, 5);
- compare(control.contentWidth, item2.implicitWidth)
- compare(control.contentHeight, item2.implicitHeight)
- }
-
- Component {
- id: initialCurrentSwipeView
- SwipeView {
- currentIndex: 1
-
- property alias item0: item0
- property alias item1: item1
-
- Item {
- id: item0
- }
- Item {
- id: item1
- }
- }
- }
-
- function test_initialCurrent() {
- var control = createTemporaryObject(initialCurrentSwipeView, testCase)
-
- compare(control.count, 2)
- compare(control.currentIndex, 1)
- compare(control.currentItem, control.item1)
- }
-
- function test_addRemove() {
- var control = createTemporaryObject(swipeView, testCase)
-
- function verifyCurrentIndexCountDiff() {
- verify(control.currentIndex < control.count)
- }
- control.currentIndexChanged.connect(verifyCurrentIndexCountDiff)
- control.countChanged.connect(verifyCurrentIndexCountDiff)
-
- var currentItemChangedSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "currentItemChanged"})
- verify(currentItemChangedSpy.valid)
-
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentItem, null)
- control.addItem(page.createObject(control, {text: "1"}))
- compare(control.count, 1)
- compare(control.currentIndex, 0)
- compare(currentItemChangedSpy.count, 1)
- compare(control.currentItem.text, "1")
- control.addItem(page.createObject(control, {text: "2"}))
- compare(control.count, 2)
- compare(control.currentIndex, 0)
- compare(currentItemChangedSpy.count, 1)
- compare(control.currentItem.text, "1")
- compare(control.itemAt(0).text, "1")
- compare(control.itemAt(1).text, "2")
-
- control.currentIndex = 1
- compare(currentItemChangedSpy.count, 2)
-
- control.insertItem(1, page.createObject(control, {text: "3"}))
- compare(control.count, 3)
- compare(control.currentIndex, 2)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "1")
- compare(control.itemAt(1).text, "3")
- compare(control.itemAt(2).text, "2")
-
- control.insertItem(0, page.createObject(control, {text: "4"}))
- compare(control.count, 4)
- compare(control.currentIndex, 3)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "4")
- compare(control.itemAt(1).text, "1")
- compare(control.itemAt(2).text, "3")
- compare(control.itemAt(3).text, "2")
-
- control.insertItem(control.count, page.createObject(control, {text: "5"}))
- compare(control.count, 5)
- compare(control.currentIndex, 3)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "4")
- compare(control.itemAt(1).text, "1")
- compare(control.itemAt(2).text, "3")
- compare(control.itemAt(3).text, "2")
- compare(control.itemAt(4).text, "5")
-
- control.removeItem(control.count - 1)
- compare(control.count, 4)
- compare(control.currentIndex, 3)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "4")
- compare(control.itemAt(1).text, "1")
- compare(control.itemAt(2).text, "3")
- compare(control.itemAt(3).text, "2")
-
- control.removeItem(0)
- compare(control.count, 3)
- compare(control.currentIndex, 2)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "1")
- compare(control.itemAt(1).text, "3")
- compare(control.itemAt(2).text, "2")
-
- control.removeItem(1)
- compare(control.count, 2)
- compare(control.currentIndex, 1)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "1")
- compare(control.itemAt(1).text, "2")
-
- currentItemChangedSpy.clear()
-
- control.removeItem(1)
- compare(control.count, 1)
- compare(control.currentIndex, 0)
- compare(currentItemChangedSpy.count, 1)
- compare(control.currentItem.text, "1")
- compare(control.itemAt(0).text, "1")
-
- control.removeItem(0)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(currentItemChangedSpy.count, 2)
- }
-
- Component {
- id: contentView
- SwipeView {
- QtObject { objectName: "object" }
- Item { objectName: "page1" }
- Timer { objectName: "timer" }
- Item { objectName: "page2" }
- Component { Item { } }
- }
- }
-
- function test_content() {
- var control = createTemporaryObject(contentView, testCase)
-
- function compareObjectNames(content, names) {
- if (content.length !== names.length)
- return false
- for (var i = 0; i < names.length; ++i) {
- if (content[i].objectName !== names[i])
- return false
- }
- return true
- }
-
- verify(compareObjectNames(control.contentData, ["object", "page1", "timer", "page2", ""]))
- verify(compareObjectNames(control.contentChildren, ["page1", "page2"]))
-
- control.addItem(page.createObject(control, {objectName: "page3"}))
- verify(compareObjectNames(control.contentData, ["object", "page1", "timer", "page2", "", "page3"]))
- verify(compareObjectNames(control.contentChildren, ["page1", "page2", "page3"]))
-
- control.insertItem(0, page.createObject(control, {objectName: "page4"}))
- verify(compareObjectNames(control.contentData, ["object", "page1", "timer", "page2", "", "page3", "page4"]))
- verify(compareObjectNames(control.contentChildren, ["page4", "page1", "page2", "page3"]))
-
- control.moveItem(1, 2)
- verify(compareObjectNames(control.contentData, ["object", "page1", "timer", "page2", "", "page3", "page4"]))
- verify(compareObjectNames(control.contentChildren, ["page4", "page2", "page1", "page3"]))
-
- control.removeItem(0)
- verify(compareObjectNames(control.contentData, ["object", "page1", "timer", "page2", "", "page3"]))
- verify(compareObjectNames(control.contentChildren, ["page2", "page1", "page3"]))
- }
-
- Component {
- id: repeated
- SwipeView {
- property alias repeater: repeater
- Repeater {
- id: repeater
- model: 5
- Item { property int idx: index }
- }
- }
- }
-
- function test_repeater() {
- var control = createTemporaryObject(repeated, testCase)
- verify(control)
-
- var model = control.contentModel
- verify(model)
-
- var repeater = control.repeater
- verify(repeater)
-
- compare(repeater.count, 5)
- compare(model.count, 5)
-
- for (var i = 0; i < 5; ++i) {
- var item1 = control.itemAt(i)
- verify(item1)
- compare(item1.idx, i)
- compare(model.get(i), item1)
- compare(repeater.itemAt(i), item1)
- }
-
- repeater.model = 3
- compare(repeater.count, 3)
- compare(model.count, 3)
-
- for (var j = 0; j < 3; ++j) {
- var item2 = control.itemAt(j)
- verify(item2)
- compare(item2.idx, j)
- compare(model.get(j), item2)
- compare(repeater.itemAt(j), item2)
- }
- }
-
- Component {
- id: ordered
- SwipeView {
- id: oview
- property alias repeater: repeater
- Text { text: "static_1" }
- Repeater {
- id: repeater
- model: 2
- Text { text: "repeated_" + (index + 2) }
- }
- Text { text: "static_4" }
- Component.onCompleted: {
- addItem(page.createObject(oview, {text: "dynamic_5"}))
- addItem(page.createObject(oview.contentItem, {text: "dynamic_6"}))
- insertItem(0, page.createObject(oview, {text: "dynamic_0"}))
- }
- }
- }
-
- function test_order() {
- var control = createTemporaryObject(ordered, testCase)
- verify(control)
-
- compare(control.count, 7)
- compare(control.itemAt(0).text, "dynamic_0")
- compare(control.itemAt(1).text, "static_1")
- compare(control.itemAt(2).text, "repeated_2")
- compare(control.itemAt(3).text, "repeated_3")
- compare(control.itemAt(4).text, "static_4")
- compare(control.itemAt(5).text, "dynamic_5")
- compare(control.itemAt(6).text, "dynamic_6")
- }
-
- function test_move_data() {
- return [
- {tag:"0->1 (0)", from: 0, to: 1, currentBefore: 0, currentAfter: 1},
- {tag:"0->1 (1)", from: 0, to: 1, currentBefore: 1, currentAfter: 0},
- {tag:"0->1 (2)", from: 0, to: 1, currentBefore: 2, currentAfter: 2},
-
- {tag:"0->2 (0)", from: 0, to: 2, currentBefore: 0, currentAfter: 2},
- {tag:"0->2 (1)", from: 0, to: 2, currentBefore: 1, currentAfter: 0},
- {tag:"0->2 (2)", from: 0, to: 2, currentBefore: 2, currentAfter: 1},
-
- {tag:"1->0 (0)", from: 1, to: 0, currentBefore: 0, currentAfter: 1},
- {tag:"1->0 (1)", from: 1, to: 0, currentBefore: 1, currentAfter: 0},
- {tag:"1->0 (2)", from: 1, to: 0, currentBefore: 2, currentAfter: 2},
-
- {tag:"1->2 (0)", from: 1, to: 2, currentBefore: 0, currentAfter: 0},
- {tag:"1->2 (1)", from: 1, to: 2, currentBefore: 1, currentAfter: 2},
- {tag:"1->2 (2)", from: 1, to: 2, currentBefore: 2, currentAfter: 1},
-
- {tag:"2->0 (0)", from: 2, to: 0, currentBefore: 0, currentAfter: 1},
- {tag:"2->0 (1)", from: 2, to: 0, currentBefore: 1, currentAfter: 2},
- {tag:"2->0 (2)", from: 2, to: 0, currentBefore: 2, currentAfter: 0},
-
- {tag:"2->1 (0)", from: 2, to: 1, currentBefore: 0, currentAfter: 0},
- {tag:"2->1 (1)", from: 2, to: 1, currentBefore: 1, currentAfter: 2},
- {tag:"2->1 (2)", from: 2, to: 1, currentBefore: 2, currentAfter: 1},
-
- {tag:"0->0", from: 0, to: 0, currentBefore: 0, currentAfter: 0},
- {tag:"-1->0", from: 0, to: 0, currentBefore: 1, currentAfter: 1},
- {tag:"0->-1", from: 0, to: 0, currentBefore: 2, currentAfter: 2},
- {tag:"1->10", from: 0, to: 0, currentBefore: 0, currentAfter: 0},
- {tag:"10->2", from: 0, to: 0, currentBefore: 1, currentAfter: 1},
- {tag:"10->-1", from: 0, to: 0, currentBefore: 2, currentAfter: 2}
- ]
- }
-
- Component {
- id: pageAttached
-
- Text {
- property int index: SwipeView.index
- property SwipeView view: SwipeView.view
- property bool isCurrentItem: SwipeView.isCurrentItem
- property bool isNextItem: SwipeView.isNextItem
- property bool isPreviousItem: SwipeView.isPreviousItem
- }
- }
-
- function test_move(data) {
- var control = createTemporaryObject(swipeView, testCase)
-
- compare(control.count, 0)
- var titles = ["1", "2", "3"]
-
- var i = 0;
- for (i = 0; i < titles.length; ++i) {
- var item = pageAttached.createObject(control, {text: titles[i]})
- control.addItem(item)
- }
-
- compare(control.count, titles.length)
- for (i = 0; i < control.count; ++i) {
- compare(control.itemAt(i).text, titles[i])
- compare(control.itemAt(i).SwipeView.index, i)
- compare(control.itemAt(i).SwipeView.isCurrentItem, i === 0)
- compare(control.itemAt(i).SwipeView.isNextItem, i === 1)
- compare(control.itemAt(i).SwipeView.isPreviousItem, false)
- }
-
- control.currentIndex = data.currentBefore
- for (i = 0; i < control.count; ++i) {
- compare(control.itemAt(i).SwipeView.isCurrentItem, i === data.currentBefore)
- compare(control.itemAt(i).SwipeView.isNextItem, i === data.currentBefore + 1)
- compare(control.itemAt(i).SwipeView.isPreviousItem, i === data.currentBefore - 1)
- }
-
- control.moveItem(data.from, data.to)
-
- compare(control.count, titles.length)
- compare(control.currentIndex, data.currentAfter)
-
- var title = titles[data.from]
- titles.splice(data.from, 1)
- titles.splice(data.to, 0, title)
-
- compare(control.count, titles.length)
- for (i = 0; i < control.count; ++i) {
- compare(control.itemAt(i).text, titles[i])
- compare(control.itemAt(i).SwipeView.index, i);
- compare(control.itemAt(i).SwipeView.isCurrentItem, i === data.currentAfter)
- compare(control.itemAt(i).SwipeView.isNextItem, i === data.currentAfter + 1)
- compare(control.itemAt(i).SwipeView.isPreviousItem, i === data.currentAfter - 1)
- }
- }
-
- Component {
- id: dynamicView
- SwipeView {
- id: dview
- Text { text: "static" }
- Component.onCompleted: {
- addItem(page.createObject(dview, {text: "added"}))
- insertItem(0, page.createObject(dview, {text: "inserted"}))
- page.createObject(dview, {text: "dynamic"})
- }
- }
- }
-
- function test_dynamic() {
- var control = createTemporaryObject(dynamicView, testCase)
-
- // insertItem(), addItem(), createObject() and static page {}
- compare(control.count, 4)
- compare(control.itemAt(0).text, "inserted")
-
- var tab = page.createObject(control, {text: "dying"})
- compare(control.count, 5)
- compare(control.itemAt(4).text, "dying")
-
- // TODO: fix crash in QQuickItemView
-// tab.destroy()
-// wait(0)
-// compare(control.count, 4)
- }
-
- function test_attachedParent() {
- var control = createTemporaryObject(swipeView, testCase);
-
- var page = createTemporaryObject(pageAttached, testCase);
- compare(page.view, null);
- compare(page.index, -1);
- compare(page.isCurrentItem, false);
- compare(page.isNextItem, false);
- compare(page.isPreviousItem, false);
- page.destroy();
-
- page = createTemporaryObject(pageAttached, null);
- compare(page.view, null);
- compare(page.index, -1);
- compare(page.isCurrentItem, false);
- compare(page.isNextItem, false);
- compare(page.isPreviousItem, false);
-
- control.insertItem(0, page);
- compare(control.count, 1);
- compare(page.parent, control.contentItem.contentItem);
- compare(page.view, control);
- compare(page.index, 0);
- compare(page.isCurrentItem, true);
- compare(page.isNextItem, false);
- compare(page.isPreviousItem, false);
-
- control.removeItem(0);
- compare(control.count, 0);
- compare(page.parent, null);
- compare(page.view, null);
- compare(page.index, -1);
- compare(page.isCurrentItem, false);
- compare(page.isNextItem, false);
- compare(page.isPreviousItem, false);
- }
-
- function test_orientation() {
- var control = createTemporaryObject(swipeView, testCase, {width: 200, height: 200})
- verify(control)
-
- for (var i = 0; i < 3; ++i)
- control.addItem(page.createObject(control, {text: i}))
-
- compare(control.orientation, Qt.Horizontal)
- compare(control.horizontal, true)
- compare(control.vertical, false)
-
- for (i = 0; i < control.count; ++i) {
- control.currentIndex = i
- compare(control.itemAt(i).y, 0)
- }
-
- control.orientation = Qt.Vertical
- compare(control.orientation, Qt.Vertical)
- compare(control.horizontal, false)
- compare(control.vertical, true)
-
- for (i = 0; i < control.count; ++i) {
- control.currentIndex = i
- compare(control.itemAt(i).x, 0)
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_switch.qml b/tests/auto/controls/data/tst_switch.qml
deleted file mode 100644
index b3fab41c..00000000
--- a/tests/auto/controls/data/tst_switch.qml
+++ /dev/null
@@ -1,611 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "Switch"
-
- Component {
- id: swtch
- Switch { }
- }
-
- Component {
- id: signalSequenceSpy
- SignalSequenceSpy {
- signals: ["pressed", "released", "canceled", "clicked", "toggled", "pressedChanged", "checkedChanged"]
- }
- }
-
- function test_text() {
- var control = createTemporaryObject(swtch, testCase)
- verify(control)
-
- compare(control.text, "")
- control.text = "Switch"
- compare(control.text, "Switch")
- control.text = ""
- compare(control.text, "")
- }
-
- function test_checked() {
- var control = createTemporaryObject(swtch, testCase)
- verify(control)
-
- compare(control.checked, false)
-
- var spy = signalSequenceSpy.createObject(control, {target: control})
- spy.expectedSequence = [["checkedChanged", { "checked": true }]]
- control.checked = true
- compare(control.checked, true)
- verify(spy.success)
-
- spy.expectedSequence = [["checkedChanged", { "checked": false }]]
- control.checked = false
- compare(control.checked, false)
- verify(spy.success)
- }
-
- function test_pressed_data() {
- return [
- { tag: "indicator", x: 15 },
- { tag: "background", x: 5 }
- ]
- }
-
- function test_pressed(data) {
- var control = createTemporaryObject(swtch, testCase, {padding: 10})
- verify(control)
-
- // stays pressed when dragged outside
- compare(control.pressed, false)
- mousePress(control, data.x, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- mouseMove(control, -1, control.height / 2)
- compare(control.pressed, true)
- mouseRelease(control, -1, control.height / 2, Qt.LeftButton)
- compare(control.pressed, false)
- }
-
- function test_mouse() {
- var control = createTemporaryObject(swtch, testCase)
- verify(control)
-
- // check
- var spy = signalSequenceSpy.createObject(control, {target: control})
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // uncheck
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release on the right
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- mouseMove(control, control.width * 2, control.height / 2, 0)
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width * 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release on the left
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- mouseMove(control, -control.width, control.height / 2, 0)
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, -control.width, control.height / 2, Qt.LeftButton)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release in the middle
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, 0, 0, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- mouseMove(control, control.width / 2, control.height / 2, 0, Qt.LeftButton)
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, false)
- compare(control.pressed, false)
- tryCompare(control, "position", 0) // QTBUG-57944
- verify(spy.success)
-
- // right button
- spy.expectedSequence = []
- mousePress(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.pressed, false)
- verify(spy.success)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
- }
-
- function test_touch() {
- var control = createTemporaryObject(swtch, testCase)
- verify(control)
-
- var touch = touchEvent(control)
-
- // check
- var spy = signalSequenceSpy.createObject(control, {target: control})
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(spy.success)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // uncheck
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(spy.success)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release on the right
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(spy.success)
- touch.move(0, control, control.width * 2, control.height / 2).commit()
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width * 2, control.height / 2).commit()
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release on the left
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(spy.success)
- touch.move(0, control, -control.width, control.height / 2).commit()
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, -control.width, control.height / 2).commit()
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release in the middle
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, 0, 0).commit()
- compare(control.pressed, true)
- verify(spy.success)
- touch.move(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, false)
- compare(control.pressed, false)
- tryCompare(control, "position", 0) // QTBUG-57944
- verify(spy.success)
- }
-
- function test_mouseDrag() {
- var control = createTemporaryObject(swtch, testCase, {leftPadding: 100, rightPadding: 100})
- verify(control)
-
- var spy = signalSequenceSpy.createObject(control, {target: control})
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, false)
-
- // press-drag-release inside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control.indicator, 0)
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
- verify(spy.success)
-
- mouseMove(control.indicator, control.width)
- compare(control.position, 1.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control.indicator, control.indicator.width)
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // press-drag-release outside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- mousePress(control, 0)
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, true)
- verify(spy.success)
-
- mouseMove(control, control.width - control.rightPadding)
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- mouseMove(control, control.width / 2)
- compare(control.position, 0.5)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- mouseMove(control, control.leftPadding)
- compare(control.position, 0.0)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width)
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // press-drag-release from and to outside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, control.width)
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
- verify(spy.success)
-
- mouseMove(control, control.width - control.rightPadding)
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- mouseMove(control, control.width / 2)
- compare(control.position, 0.5)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- mouseMove(control, control.width - control.rightPadding)
- compare(control.position, 1.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width)
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
- }
-
- function test_touchDrag() {
- var control = createTemporaryObject(swtch, testCase, {leftPadding: 100, rightPadding: 100})
- verify(control)
-
- var touch = touchEvent(control)
-
- var spy = signalSequenceSpy.createObject(control, {target: control})
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, false)
-
- // press-drag-release inside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control.indicator, 0).commit()
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
- verify(spy.success)
-
- touch.move(0, control.indicator, control.width).commit()
- compare(control.position, 1.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control.indicator, control.indicator.width).commit()
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // press-drag-release outside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- touch.press(0, control, 0).commit()
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, true)
- verify(spy.success)
-
- touch.move(0, control, control.width - control.rightPadding).commit()
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- touch.move(0, control, control.width / 2).commit()
- compare(control.position, 0.5)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- touch.move(0, control, control.leftPadding).commit()
- compare(control.position, 0.0)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width).commit()
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // press-drag-release from and to outside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, control.width).commit()
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
- verify(spy.success)
-
- touch.move(0, control, control.width - control.rightPadding).commit()
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- touch.move(0, control, control.width / 2).commit()
- compare(control.position, 0.5)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- touch.move(0, control, control.width - control.rightPadding).commit()
- compare(control.position, 1.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width).commit()
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
- }
-
- function test_keys() {
- var control = createTemporaryObject(swtch, testCase)
- verify(control)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- // check
- var spy = signalSequenceSpy.createObject(control, {target: control})
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, true)
- verify(spy.success)
-
- // uncheck
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed",
- ["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- keyClick(Qt.Key_Space)
- compare(control.checked, false)
- verify(spy.success)
-
- // no change
- spy.expectedSequence = []
- var keys = [Qt.Key_Enter, Qt.Key_Return, Qt.Key_Escape, Qt.Key_Tab]
- for (var i = 0; i < keys.length; ++i) {
- keyClick(keys[i])
- compare(control.checked, false)
- verify(spy.success)
- }
- }
-
- Component {
- id: twoSwitches
- Item {
- property Switch sw1: Switch { id: sw1 }
- property Switch sw2: Switch { id: sw2; checked: sw1.checked; enabled: false }
- }
- }
-
- function test_binding() {
- var container = createTemporaryObject(twoSwitches, testCase)
- verify(container)
-
- compare(container.sw1.checked, false)
- compare(container.sw2.checked, false)
-
- container.sw1.checked = true
- compare(container.sw1.checked, true)
- compare(container.sw2.checked, true)
-
- container.sw1.checked = false
- compare(container.sw1.checked, false)
- compare(container.sw2.checked, false)
- }
-
- function test_baseline() {
- var control = createTemporaryObject(swtch, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- function test_focus() {
- var control = createTemporaryObject(swtch, testCase)
- verify(control)
-
- verify(!control.activeFocus)
- mouseClick(control.indicator)
- verify(control.activeFocus)
- }
-}
diff --git a/tests/auto/controls/data/tst_switchdelegate.qml b/tests/auto/controls/data/tst_switchdelegate.qml
deleted file mode 100644
index 1c96023f..00000000
--- a/tests/auto/controls/data/tst_switchdelegate.qml
+++ /dev/null
@@ -1,607 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "SwitchDelegate"
-
- Component {
- id: switchDelegate
- SwitchDelegate {}
- }
-
- Component {
- id: signalSequenceSpy
- SignalSequenceSpy {
- signals: ["pressed", "released", "canceled", "clicked", "toggled", "pressedChanged", "checkedChanged"]
- }
- }
-
- // TODO: data-fy tst_checkbox (rename to tst_check?) so we don't duplicate its tests here?
-
- function test_defaults() {
- var control = createTemporaryObject(switchDelegate, testCase);
- verify(control);
- verify(!control.checked);
- }
-
- function test_checked() {
- var control = createTemporaryObject(switchDelegate, testCase);
- verify(control);
-
- mouseClick(control);
- verify(control.checked);
-
- mouseClick(control);
- verify(!control.checked);
- }
-
- function test_baseline() {
- var control = createTemporaryObject(switchDelegate, testCase);
- verify(control);
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset);
- }
-
- function test_pressed_data() {
- return [
- { tag: "indicator", x: 15 },
- { tag: "background", x: 5 }
- ]
- }
-
- function test_pressed(data) {
- var control = createTemporaryObject(switchDelegate, testCase, {padding: 10})
- verify(control)
-
- // stays pressed when dragged outside
- compare(control.pressed, false)
- mousePress(control, data.x, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- mouseMove(control, -1, control.height / 2)
- compare(control.pressed, true)
- mouseRelease(control, -1, control.height / 2, Qt.LeftButton)
- compare(control.pressed, false)
- }
-
- function test_mouse() {
- var control = createTemporaryObject(switchDelegate, testCase)
- verify(control)
-
- // check
- var spy = signalSequenceSpy.createObject(control, {target: control})
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // uncheck
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release on the right
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- mouseMove(control, control.width * 2, control.height / 2, 0)
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width * 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release on the left
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- mouseMove(control, -control.width, control.height / 2, 0)
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, -control.width, control.height / 2, Qt.LeftButton)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release in the middle
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, 0, 0, Qt.LeftButton)
- compare(control.pressed, true)
- verify(spy.success)
- mouseMove(control, control.width / 2, control.height / 2, 0, Qt.LeftButton)
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- "released",
- "clicked"]
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(control.checked, false)
- compare(control.pressed, false)
- tryCompare(control, "position", 0) // QTBUG-57944
- verify(spy.success)
-
- // right button
- spy.expectedSequence = []
- mousePress(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.pressed, false)
- verify(spy.success)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
- }
-
- function test_touch() {
- var control = createTemporaryObject(switchDelegate, testCase)
- verify(control)
-
- var touch = touchEvent(control)
-
- // check
- var spy = signalSequenceSpy.createObject(control, {target: control})
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(spy.success)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // uncheck
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(spy.success)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release on the right
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(spy.success)
- touch.move(0, control, control.width * 2, control.height / 2).commit()
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width * 2, control.height / 2).commit()
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release on the left
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- touch.press(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- verify(spy.success)
- touch.move(0, control, -control.width, control.height / 2).commit()
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, -control.width, control.height / 2).commit()
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // release in the middle
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, 0, 0).commit()
- compare(control.pressed, true)
- verify(spy.success)
- touch.move(0, control, control.width / 2, control.height / 2).commit()
- compare(control.pressed, true)
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- "released",
- "clicked"]
- touch.release(0, control, control.width / 2, control.height / 2).commit()
- compare(control.checked, false)
- compare(control.pressed, false)
- tryCompare(control, "position", 0) // QTBUG-57944
- verify(spy.success)
- }
-
- function test_mouseDrag() {
- var control = createTemporaryObject(switchDelegate, testCase, {leftPadding: 100, rightPadding: 100})
- verify(control)
-
- var spy = signalSequenceSpy.createObject(control, {target: control})
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, false)
-
- // press-drag-release inside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control.indicator, 0)
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
- verify(spy.success)
-
- mouseMove(control.indicator, control.width)
- compare(control.position, 1.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control.indicator, control.indicator.width)
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // press-drag-release outside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- mousePress(control, 0)
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, true)
- verify(spy.success)
-
- mouseMove(control, control.width - control.rightPadding)
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- mouseMove(control, control.width / 2)
- compare(control.position, 0.5)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- mouseMove(control, control.leftPadding)
- compare(control.position, 0.0)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width)
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // press-drag-release from and to outside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- mousePress(control, control.width)
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
- verify(spy.success)
-
- mouseMove(control, control.width - control.rightPadding)
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- mouseMove(control, control.width / 2)
- compare(control.position, 0.5)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- mouseMove(control, control.width - control.rightPadding)
- compare(control.position, 1.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- mouseRelease(control, control.width)
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
- }
-
- function test_touchDrag() {
- var control = createTemporaryObject(switchDelegate, testCase, {leftPadding: 100, rightPadding: 100})
- verify(control)
-
- var touch = touchEvent(control)
-
- var spy = signalSequenceSpy.createObject(control, {target: control})
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, false)
-
- // press-drag-release inside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control.indicator, 0).commit()
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
- verify(spy.success)
-
- touch.move(0, control.indicator, control.width).commit()
- compare(control.position, 1.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control.indicator, control.indicator.width).commit()
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
-
- // press-drag-release outside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": true }],
- "pressed"]
- touch.press(0, control, 0).commit()
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, true)
- verify(spy.success)
-
- touch.move(0, control, control.width - control.rightPadding).commit()
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- touch.move(0, control, control.width / 2).commit()
- compare(control.position, 0.5)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- touch.move(0, control, control.leftPadding).commit()
- compare(control.position, 0.0)
- compare(control.checked, true)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": true }],
- ["checkedChanged", { "pressed": false, "checked": false }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width).commit()
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, false)
- verify(spy.success)
-
- // press-drag-release from and to outside the indicator
- spy.expectedSequence = [["pressedChanged", { "pressed": true, "checked": false }],
- "pressed"]
- touch.press(0, control, control.width).commit()
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
- verify(spy.success)
-
- touch.move(0, control, control.width - control.rightPadding).commit()
- compare(control.position, 0.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- touch.move(0, control, control.width / 2).commit()
- compare(control.position, 0.5)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- touch.move(0, control, control.width - control.rightPadding).commit()
- compare(control.position, 1.0)
- compare(control.checked, false)
- compare(control.pressed, true)
-
- spy.expectedSequence = [["pressedChanged", { "pressed": false, "checked": false }],
- ["checkedChanged", { "pressed": false, "checked": true }],
- "toggled",
- "released",
- "clicked"]
- touch.release(0, control, control.width).commit()
- compare(control.position, 1.0)
- compare(control.checked, true)
- compare(control.pressed, false)
- verify(spy.success)
- }
-
- function test_spacing() {
- var control = createTemporaryObject(switchDelegate, testCase, { text: "Some long, long, long text" })
- verify(control)
- verify(control.contentItem.implicitWidth + control.leftPadding + control.rightPadding > control.background.implicitWidth)
-
- var textLabel = findChild(control.contentItem, "label")
- verify(textLabel)
-
- // The implicitWidth of the IconLabel that all buttons use as their contentItem should be
- // equal to the implicitWidth of the Text and the switch indicator + spacing while no icon is set.
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing)
-
- control.spacing += 100
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing)
-
- compare(control.implicitWidth, textLabel.implicitWidth + control.indicator.width + control.spacing + control.leftPadding + control.rightPadding)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: SwitchDelegate.IconOnly },
- { "tag": "TextOnly", display: SwitchDelegate.TextOnly },
- { "tag": "TextUnderIcon", display: SwitchDelegate.TextUnderIcon },
- { "tag": "TextBesideIcon", display: SwitchDelegate.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: SwitchDelegate.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: SwitchDelegate.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: SwitchDelegate.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: SwitchDelegate.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(switchDelegate, testCase, {
- text: "SwitchDelegate",
- display: data.display,
- width: 400,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- var availableWidth = control.availableWidth - control.indicator.width - control.spacing
- var indicatorOffset = control.mirrored ? control.indicator.width + control.spacing : 0
-
- switch (control.display) {
- case SwitchDelegate.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, indicatorOffset + (availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case SwitchDelegate.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, control.mirrored ? control.availableWidth - textLabel.width : 0)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case SwitchDelegate.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, indicatorOffset + (availableWidth - iconImage.width) / 2)
- compare(textLabel.x, indicatorOffset + (availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case SwitchDelegate.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_tabbar.qml b/tests/auto/controls/data/tst_tabbar.qml
deleted file mode 100644
index 42e767f2..00000000
--- a/tests/auto/controls/data/tst_tabbar.qml
+++ /dev/null
@@ -1,726 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "TabBar"
-
- Component {
- id: tabButton
- TabButton { }
- }
-
- Component {
- id: tabBar
- TabBar { }
- }
-
- Component {
- id: tabBarStaticTabs
- TabBar {
- TabButton {
- text: "0"
- }
- TabButton {
- text: "1"
- }
- }
- }
-
- Component {
- id: tabBarStaticTabsCurrent
- TabBar {
- currentIndex: 1
- TabButton {
- text: "0"
- }
- TabButton {
- text: "1"
- }
- }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_defaults() {
- var control = createTemporaryObject(tabBar, testCase)
- verify(control)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentItem, null)
- }
-
- function test_current() {
- var control = createTemporaryObject(tabBar, testCase)
-
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(control.currentItem, null)
-
- control.addItem(tabButton.createObject(control, {text: "0"}))
- compare(control.count, 1)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "0")
- compare(control.currentItem.checked, true)
-
- control.addItem(tabButton.createObject(control, {text: "1"}))
- compare(control.count, 2)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "0")
- compare(control.currentItem.checked, true)
-
- control.addItem(tabButton.createObject(control, {text: "2"}))
- compare(control.count, 3)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "0")
- compare(control.currentItem.checked, true)
-
- control.currentIndex = 1
- compare(control.currentIndex, 1)
- compare(control.currentItem.text, "1")
- compare(control.currentItem.checked, true)
-
- control.currentIndex = 2
- compare(control.currentIndex, 2)
- compare(control.currentItem.text, "2")
- compare(control.currentItem.checked, true)
-
- control.decrementCurrentIndex()
- compare(control.currentIndex, 1)
- compare(control.currentItem.text, "1")
- compare(control.currentItem.checked, true)
-
- control.incrementCurrentIndex()
- compare(control.currentIndex, 2)
- compare(control.currentItem.text, "2")
- compare(control.currentItem.checked, true)
- }
-
- function test_current_static() {
- var control = createTemporaryObject(tabBarStaticTabs, testCase)
-
- compare(control.count, 2)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "0")
- compare(control.currentItem.checked, true)
-
- control = createTemporaryObject(tabBarStaticTabsCurrent, testCase)
-
- compare(control.count, 2)
- compare(control.currentIndex, 1)
- compare(control.currentItem.text, "1")
- compare(control.currentItem.checked, true)
- }
-
- function test_addRemove() {
- var control = createTemporaryObject(tabBar, testCase)
-
- function verifyCurrentIndexCountDiff() {
- verify(control.currentIndex < control.count)
- }
- control.currentIndexChanged.connect(verifyCurrentIndexCountDiff)
- control.countChanged.connect(verifyCurrentIndexCountDiff)
-
- var contentChildrenSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "contentChildrenChanged"})
- verify(contentChildrenSpy.valid)
-
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- control.addItem(tabButton.createObject(control, {text: "1"}))
- compare(control.count, 1)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "1")
- compare(contentChildrenSpy.count, 1)
-
- control.addItem(tabButton.createObject(control, {text: "2"}))
- compare(control.count, 2)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "1")
- compare(control.itemAt(0).text, "1")
- compare(control.itemAt(1).text, "2")
- compare(contentChildrenSpy.count, 2)
-
- control.currentIndex = 1
-
- control.insertItem(1, tabButton.createObject(control, {text: "3"}))
- compare(control.count, 3)
- compare(control.currentIndex, 2)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "1")
- compare(control.itemAt(1).text, "3")
- compare(control.itemAt(2).text, "2")
- compare(contentChildrenSpy.count, 4) // append + insert->move
-
- control.insertItem(0, tabButton.createObject(control, {text: "4"}))
- compare(control.count, 4)
- compare(control.currentIndex, 3)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "4")
- compare(control.itemAt(1).text, "1")
- compare(control.itemAt(2).text, "3")
- compare(control.itemAt(3).text, "2")
- compare(contentChildrenSpy.count, 6) // append + insert->move
-
- control.insertItem(control.count, tabButton.createObject(control, {text: "5"}))
- compare(control.count, 5)
- compare(control.currentIndex, 3)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "4")
- compare(control.itemAt(1).text, "1")
- compare(control.itemAt(2).text, "3")
- compare(control.itemAt(3).text, "2")
- compare(control.itemAt(4).text, "5")
- compare(contentChildrenSpy.count, 7)
-
- control.removeItem(control.count - 1)
- compare(control.count, 4)
- compare(control.currentIndex, 3)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "4")
- compare(control.itemAt(1).text, "1")
- compare(control.itemAt(2).text, "3")
- compare(control.itemAt(3).text, "2")
- compare(contentChildrenSpy.count, 8)
-
- control.removeItem(0)
- compare(control.count, 3)
- compare(control.currentIndex, 2)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "1")
- compare(control.itemAt(1).text, "3")
- compare(control.itemAt(2).text, "2")
- compare(contentChildrenSpy.count, 9)
-
- control.removeItem(1)
- compare(control.count, 2)
- compare(control.currentIndex, 1)
- compare(control.currentItem.text, "2")
- compare(control.itemAt(0).text, "1")
- compare(control.itemAt(1).text, "2")
- compare(contentChildrenSpy.count, 10)
-
- control.removeItem(1)
- compare(control.count, 1)
- compare(control.currentIndex, 0)
- compare(control.currentItem.text, "1")
- compare(control.itemAt(0).text, "1")
- compare(contentChildrenSpy.count, 11)
-
- control.removeItem(0)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- compare(contentChildrenSpy.count, 12)
- }
-
- function test_removeCurrent() {
- var control = createTemporaryObject(tabBar, testCase)
-
- control.addItem(tabButton.createObject(control, {text: "1"}))
- control.addItem(tabButton.createObject(control, {text: "2"}))
- control.addItem(tabButton.createObject(control, {text: "3"}))
- control.currentIndex = 1
- compare(control.count, 3)
- compare(control.currentIndex, 1)
-
- control.removeItem(1)
- compare(control.count, 2)
- compare(control.currentIndex, 0)
-
- control.removeItem(0)
- compare(control.count, 1)
- compare(control.currentIndex, 0)
-
- control.removeItem(0)
- compare(control.count, 0)
- compare(control.currentIndex, -1)
- }
-
- Component {
- id: contentBar
- TabBar {
- QtObject { objectName: "object" }
- TabButton { objectName: "button1" }
- Timer { objectName: "timer" }
- TabButton { objectName: "button2" }
- Component { TabButton { } }
- }
- }
-
- function test_content() {
- var control = createTemporaryObject(contentBar, testCase)
-
- function compareObjectNames(content, names) {
- if (content.length !== names.length)
- return false
- for (var i = 0; i < names.length; ++i) {
- if (content[i].objectName !== names[i])
- return false
- }
- return true
- }
-
- var contentChildrenSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "contentChildrenChanged"})
- verify(contentChildrenSpy.valid)
-
- verify(compareObjectNames(control.contentData, ["object", "button1", "timer", "button2", ""]))
- verify(compareObjectNames(control.contentChildren, ["button1", "button2"]))
-
- control.addItem(tabButton.createObject(control, {objectName: "button3"}))
- verify(compareObjectNames(control.contentData, ["object", "button1", "timer", "button2", "", "button3"]))
- verify(compareObjectNames(control.contentChildren, ["button1", "button2", "button3"]))
- compare(contentChildrenSpy.count, 1)
-
- control.insertItem(0, tabButton.createObject(control, {objectName: "button4"}))
- verify(compareObjectNames(control.contentData, ["object", "button1", "timer", "button2", "", "button3", "button4"]))
- verify(compareObjectNames(control.contentChildren, ["button4", "button1", "button2", "button3"]))
- compare(contentChildrenSpy.count, 3) // append + insert->move
-
- control.moveItem(1, 2)
- verify(compareObjectNames(control.contentData, ["object", "button1", "timer", "button2", "", "button3", "button4"]))
- verify(compareObjectNames(control.contentChildren, ["button4", "button2", "button1", "button3"]))
- compare(contentChildrenSpy.count, 4)
-
- control.removeItem(0)
- verify(compareObjectNames(control.contentData, ["object", "button1", "timer", "button2", "", "button3"]))
- verify(compareObjectNames(control.contentChildren, ["button2", "button1", "button3"]))
- compare(contentChildrenSpy.count, 5)
- }
-
- Component {
- id: repeated
- TabBar {
- property alias repeater: repeater
- Repeater {
- id: repeater
- model: 5
- TabButton { property int idx: index }
- }
- }
- }
-
- function test_repeater() {
- var control = createTemporaryObject(repeated, testCase)
- verify(control)
-
- var model = control.contentModel
- verify(model)
-
- var repeater = control.repeater
- verify(repeater)
-
- compare(repeater.count, 5)
- compare(model.count, 5)
-
- for (var i = 0; i < 5; ++i) {
- var item1 = control.itemAt(i)
- verify(item1)
- compare(item1.idx, i)
- compare(model.get(i), item1)
- compare(repeater.itemAt(i), item1)
- }
-
- repeater.model = 3
- compare(repeater.count, 3)
- compare(model.count, 3)
-
- for (var j = 0; j < 3; ++j) {
- var item2 = control.itemAt(j)
- verify(item2)
- compare(item2.idx, j)
- compare(model.get(j), item2)
- compare(repeater.itemAt(j), item2)
- }
- }
-
- Component {
- id: ordered
- TabBar {
- id: obar
- property alias repeater: repeater
- TabButton { text: "static_1" }
- Repeater {
- id: repeater
- model: 2
- TabButton { text: "repeated_" + (index + 2) }
- }
- TabButton { text: "static_4" }
- Component.onCompleted: {
- addItem(tabButton.createObject(obar, {text: "dynamic_5"}))
- addItem(tabButton.createObject(obar.contentItem, {text: "dynamic_6"}))
- insertItem(0, tabButton.createObject(obar, {text: "dynamic_0"}))
- }
- }
- }
-
- function test_order() {
- var control = createTemporaryObject(ordered, testCase)
- verify(control)
-
- compare(control.count, 7)
- compare(control.itemAt(0).text, "dynamic_0")
- compare(control.itemAt(1).text, "static_1")
- compare(control.itemAt(2).text, "repeated_2")
- compare(control.itemAt(3).text, "repeated_3")
- compare(control.itemAt(4).text, "static_4")
- compare(control.itemAt(5).text, "dynamic_5")
- compare(control.itemAt(6).text, "dynamic_6")
- }
-
- function test_move_data() {
- return [
- {tag:"0->1 (0)", from: 0, to: 1, currentBefore: 0, currentAfter: 1},
- {tag:"0->1 (1)", from: 0, to: 1, currentBefore: 1, currentAfter: 0},
- {tag:"0->1 (2)", from: 0, to: 1, currentBefore: 2, currentAfter: 2},
-
- {tag:"0->2 (0)", from: 0, to: 2, currentBefore: 0, currentAfter: 2},
- {tag:"0->2 (1)", from: 0, to: 2, currentBefore: 1, currentAfter: 0},
- {tag:"0->2 (2)", from: 0, to: 2, currentBefore: 2, currentAfter: 1},
-
- {tag:"1->0 (0)", from: 1, to: 0, currentBefore: 0, currentAfter: 1},
- {tag:"1->0 (1)", from: 1, to: 0, currentBefore: 1, currentAfter: 0},
- {tag:"1->0 (2)", from: 1, to: 0, currentBefore: 2, currentAfter: 2},
-
- {tag:"1->2 (0)", from: 1, to: 2, currentBefore: 0, currentAfter: 0},
- {tag:"1->2 (1)", from: 1, to: 2, currentBefore: 1, currentAfter: 2},
- {tag:"1->2 (2)", from: 1, to: 2, currentBefore: 2, currentAfter: 1},
-
- {tag:"2->0 (0)", from: 2, to: 0, currentBefore: 0, currentAfter: 1},
- {tag:"2->0 (1)", from: 2, to: 0, currentBefore: 1, currentAfter: 2},
- {tag:"2->0 (2)", from: 2, to: 0, currentBefore: 2, currentAfter: 0},
-
- {tag:"2->1 (0)", from: 2, to: 1, currentBefore: 0, currentAfter: 0},
- {tag:"2->1 (1)", from: 2, to: 1, currentBefore: 1, currentAfter: 2},
- {tag:"2->1 (2)", from: 2, to: 1, currentBefore: 2, currentAfter: 1},
-
- {tag:"0->0", from: 0, to: 0, currentBefore: 0, currentAfter: 0},
- {tag:"-1->0", from: 0, to: 0, currentBefore: 1, currentAfter: 1},
- {tag:"0->-1", from: 0, to: 0, currentBefore: 2, currentAfter: 2},
- {tag:"1->10", from: 0, to: 0, currentBefore: 0, currentAfter: 0},
- {tag:"10->2", from: 0, to: 0, currentBefore: 1, currentAfter: 1},
- {tag:"10->-1", from: 0, to: 0, currentBefore: 2, currentAfter: 2}
- ]
- }
-
- function test_move(data) {
- var control = createTemporaryObject(tabBar, testCase)
-
- compare(control.count, 0)
- var titles = ["1", "2", "3"]
-
- var i = 0;
- for (i = 0; i < titles.length; ++i)
- control.addItem(tabButton.createObject(control, {text: titles[i]}))
-
- compare(control.count, titles.length)
- for (i = 0; i < control.count; ++i)
- compare(control.itemAt(i).text, titles[i])
-
- control.currentIndex = data.currentBefore
- control.moveItem(data.from, data.to)
-
- compare(control.count, titles.length)
- compare(control.currentIndex, data.currentAfter)
-
- var title = titles[data.from]
- titles.splice(data.from, 1)
- titles.splice(data.to, 0, title)
-
- compare(control.count, titles.length)
- for (i = 0; i < control.count; ++i)
- compare(control.itemAt(i).text, titles[i])
- }
-
- Component {
- id: dynamicBar
- TabBar {
- id: dbar
- TabButton { text: "static" }
- Component.onCompleted: {
- addItem(tabButton.createObject(dbar, {text: "added"}))
- insertItem(0, tabButton.createObject(dbar, {text: "inserted"}))
- tabButton.createObject(dbar, {text: "dynamic"})
- }
- }
- }
-
- function test_dynamic() {
- var control = createTemporaryObject(dynamicBar, testCase)
-
- // insertItem(), addItem(), createObject() and static TabButton {}
- compare(control.count, 4)
- compare(control.itemAt(0).text, "inserted")
-
- var tab = tabButton.createObject(control, {text: "dying"})
- compare(control.count, 5)
- compare(control.itemAt(4).text, "dying")
-
- // TODO: fix crash in QQuickItemView
-// tab.destroy()
-// wait(0)
-// compare(control.count, 4)
- }
-
- function test_layout_data() {
- return [
- { tag: "spacing:0", spacing: 0 },
- { tag: "spacing:1", spacing: 1 },
- { tag: "spacing:10", spacing: 10 },
- ]
- }
-
- function test_layout(data) {
- var control = createTemporaryObject(tabBar, testCase, {spacing: data.spacing, width: 200})
-
- // remove the background so that it won't affect the implicit size of the tabbar,
- // so the implicit sizes tested below are entirely based on the content size
- control.background = null
-
- var tab1 = tabButton.createObject(control, {text: "First"})
- control.addItem(tab1)
- tryCompare(tab1, "width", control.width)
- compare(tab1.height, control.height)
- compare(control.implicitContentWidth, tab1.implicitWidth)
- compare(control.implicitContentHeight, tab1.implicitHeight)
- compare(control.contentWidth, control.implicitContentWidth)
- compare(control.contentHeight, control.implicitContentHeight)
- compare(control.implicitWidth, control.contentWidth + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentHeight + control.topPadding + control.bottomPadding)
-
- var tab2 = tabButton.createObject(control, {implicitHeight: tab1.implicitHeight + 10, text: "Second"})
- control.addItem(tab2)
- tryCompare(tab1, "width", (control.width - data.spacing) / 2)
- compare(tab1.height, control.height)
- compare(tab2.width, (control.width - data.spacing) / 2)
- compare(tab2.height, control.height)
- compare(control.implicitContentWidth, tab1.implicitWidth + tab2.implicitWidth + data.spacing)
- compare(control.implicitContentHeight, tab2.implicitHeight)
- compare(control.contentWidth, control.implicitContentWidth)
- compare(control.contentHeight, control.implicitContentHeight)
- compare(control.implicitWidth, control.contentWidth + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentHeight + control.topPadding + control.bottomPadding)
-
- var tab3 = tabButton.createObject(control, {width: 50, height: tab1.implicitHeight - 10, text: "Third"})
- control.addItem(tab3)
- tryCompare(tab1, "width", (control.width - 2 * data.spacing - 50) / 2)
- compare(tab1.y, 0)
- compare(tab1.height, control.height)
- compare(tab2.y, 0)
- compare(tab2.width, (control.width - 2 * data.spacing - 50) / 2)
- compare(tab2.height, control.height)
- verify(tab3.y > 0)
- compare(tab3.y, (control.height - tab3.height) / 2)
- compare(tab3.width, 50)
- compare(tab3.height, tab1.implicitHeight - 10)
- compare(control.implicitContentWidth, tab1.implicitWidth + tab2.implicitWidth + tab3.width + 2 * data.spacing)
- compare(control.implicitContentHeight, tab2.implicitHeight)
- compare(control.contentWidth, control.implicitContentWidth)
- compare(control.contentHeight, control.implicitContentHeight)
- compare(control.implicitWidth, control.contentWidth + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentHeight + control.topPadding + control.bottomPadding)
-
- var expectedWidth = tab3.contentItem.implicitWidth + tab3.leftPadding + tab3.rightPadding
- tab3.width = tab3.implicitWidth
- tab3.height = tab3.implicitHeight
- tryCompare(tab1, "width", (control.width - 2 * data.spacing - expectedWidth) / 2)
- compare(tab1.height, control.height)
- compare(tab2.width, (control.width - 2 * data.spacing - expectedWidth) / 2)
- compare(tab2.height, control.height)
- compare(tab3.width, expectedWidth)
- compare(tab3.height, tab3.implicitHeight)
- compare(control.implicitContentWidth, tab1.implicitWidth + tab2.implicitWidth + tab3.implicitWidth + 2 * data.spacing)
- compare(control.implicitContentHeight, tab2.implicitHeight)
- compare(control.contentWidth, control.implicitContentWidth)
- compare(control.contentHeight, control.implicitContentHeight)
- compare(control.implicitWidth, control.contentWidth + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentHeight + control.topPadding + control.bottomPadding)
-
- tab3.width = undefined
- tab3.height = undefined
- control.width = undefined
-
- control.contentWidth = 300
- control.contentHeight = 50
- expectedWidth = (control.contentWidth - 2 * data.spacing) / 3
- tryCompare(tab1, "width", expectedWidth)
- compare(tab2.width, expectedWidth)
- compare(tab3.width, expectedWidth)
- compare(tab1.height, control.contentHeight)
- compare(tab2.height, control.contentHeight)
- compare(tab3.height, control.contentHeight)
- }
-
- Component {
- id: attachedButton
- TabButton {
- property int index: TabBar.index
- property TabBar tabBar: TabBar.tabBar
- property int position: TabBar.position
- }
- }
-
- function test_attached() {
- var control = createTemporaryObject(tabBar, testCase, {position: TabBar.Footer})
-
- // append
- var tab1 = createTemporaryObject(attachedButton, testCase)
- compare(tab1.index, -1)
- compare(tab1.tabBar, null)
- compare(tab1.position, TabBar.Header)
-
- control.addItem(tab1)
- compare(tab1.index, 0)
- compare(tab1.tabBar, control)
- compare(tab1.position, TabBar.Footer)
-
- // insert in the beginning
- var tab2 = createTemporaryObject(attachedButton, testCase)
- compare(tab2.index, -1)
- compare(tab2.tabBar, null)
- compare(tab2.position, TabBar.Header)
-
- control.insertItem(0, tab2)
- compare(tab2.index, 0)
- compare(tab2.tabBar, control)
- compare(tab2.position, TabBar.Footer)
-
- compare(tab1.index, 1)
-
- // insert in the middle
- var tab3 = createTemporaryObject(attachedButton, testCase)
- compare(tab3.index, -1)
- compare(tab3.tabBar, null)
- compare(tab3.position, TabBar.Header)
-
- control.insertItem(1, tab3)
- compare(tab3.index, 1)
- compare(tab3.tabBar, control)
- compare(tab3.position, TabBar.Footer)
-
- compare(tab2.index, 0)
- compare(tab1.index, 2)
-
- // insert in the end
- var tab4 = createTemporaryObject(attachedButton, testCase)
- compare(tab4.index, -1)
- compare(tab4.tabBar, null)
- compare(tab4.position, TabBar.Header)
-
- control.insertItem(-1, tab4)
- compare(tab4.index, 3)
- compare(tab4.tabBar, control)
- compare(tab4.position, TabBar.Footer)
-
- compare(tab2.index, 0)
- compare(tab3.index, 1)
- compare(tab1.index, 2)
-
- // move forwards
- control.moveItem(0, 1)
- compare(tab3.index, 0)
- compare(tab2.index, 1)
- compare(tab1.index, 2)
- compare(tab4.index, 3)
-
- control.moveItem(0, 2)
- compare(tab2.index, 0)
- compare(tab1.index, 1)
- compare(tab3.index, 2)
- compare(tab4.index, 3)
-
- control.moveItem(1, 3)
- compare(tab2.index, 0)
- compare(tab3.index, 1)
- compare(tab4.index, 2)
- compare(tab1.index, 3)
-
- // move backwards
- control.moveItem(3, 2)
- compare(tab2.index, 0)
- compare(tab3.index, 1)
- compare(tab1.index, 2)
- compare(tab4.index, 3)
-
- control.moveItem(3, 1)
- compare(tab2.index, 0)
- compare(tab4.index, 1)
- compare(tab3.index, 2)
- compare(tab1.index, 3)
-
- // remove from the beginning
- control.removeItem(0)
- compare(tab2.index, -1)
- compare(tab2.tabBar, null)
- compare(tab2.position, TabBar.Header)
-
- compare(tab4.index, 0)
- compare(tab3.index, 1)
- compare(tab1.index, 2)
-
- // remove from the middle
- control.removeItem(1)
- compare(tab3.index, -1)
- compare(tab3.tabBar, null)
- compare(tab3.position, TabBar.Header)
-
- compare(tab4.index, 0)
- compare(tab1.index, 1)
- }
-}
diff --git a/tests/auto/controls/data/tst_tabbutton.qml b/tests/auto/controls/data/tst_tabbutton.qml
deleted file mode 100644
index 96384769..00000000
--- a/tests/auto/controls/data/tst_tabbutton.qml
+++ /dev/null
@@ -1,178 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "TabButton"
-
- Component {
- id: tabButton
- TabButton { }
- }
-
- Component {
- id: repeater
- Column {
- Repeater {
- model: 3
- delegate: TabButton { }
- }
- }
- }
-
- function test_autoExclusive() {
- var container = createTemporaryObject(repeater, testCase)
-
- for (var i = 0; i < 3; ++i) {
- container.children[i].checked = true
- compare(container.children[i].checked, true)
-
- // check that all other buttons are unchecked
- for (var j = 0; j < 3; ++j) {
- if (j !== i)
- compare(container.children[j].checked, false)
- }
- }
- }
-
- function test_baseline() {
- var control = createTemporaryObject(tabButton, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- function test_spacing() {
- var control = createTemporaryObject(tabButton, testCase, { text: "Some long, long, long text" })
- verify(control)
- if (control.background)
- verify(control.contentItem.implicitWidth + control.leftPadding + control.rightPadding > control.background.implicitWidth)
-
- var textLabel = findChild(control.contentItem, "label")
- verify(textLabel)
-
- // The implicitWidth of the IconLabel that all buttons use as their contentItem
- // should be equal to the implicitWidth of the Text while no icon is set.
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // That means that spacing shouldn't affect it.
- control.spacing += 100
- compare(control.contentItem.implicitWidth, textLabel.implicitWidth)
-
- // The implicitWidth of the TabButton itself should, therefore, also never include spacing while no icon is set.
- compare(control.implicitWidth, textLabel.implicitWidth + control.leftPadding + control.rightPadding)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: TabButton.IconOnly },
- { "tag": "TextOnly", display: TabButton.TextOnly },
- { "tag": "TextUnderIcon", display: TabButton.TextUnderIcon },
- { "tag": "TextBesideIcon", display: TabButton.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: TabButton.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: TabButton.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: TabButton.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: TabButton.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(tabButton, testCase, {
- text: "TabButton",
- display: data.display,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- switch (control.display) {
- case TabButton.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case TabButton.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case TabButton.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case TabButton.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_textarea.qml b/tests/auto/controls/data/tst_textarea.qml
deleted file mode 100644
index 1e455ffc..00000000
--- a/tests/auto/controls/data/tst_textarea.qml
+++ /dev/null
@@ -1,759 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "TextArea"
-
- Component {
- id: textArea
- TextArea { background: Item { } }
- }
-
- Component {
- id: flickable
- Flickable {
- width: 200
- height: 200
- TextArea.flickable: TextArea { }
- }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- Component {
- id: rectangle
- Rectangle { }
- }
-
- function test_creation() {
- var control = createTemporaryObject(textArea, testCase)
- verify(control)
- }
-
- function test_implicitSize() {
- var control = createTemporaryObject(textArea, testCase)
- verify(control)
-
- var implicitWidthSpy = signalSpy.createObject(control, { target: control, signalName: "implicitWidthChanged"} )
- verify(implicitWidthSpy.valid)
-
- var implicitHeightSpy = signalSpy.createObject(control, { target: control, signalName: "implicitHeightChanged"} )
- verify(implicitHeightSpy.valid)
-
- var implicitBackgroundWidthSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitBackgroundWidthChanged"})
- verify(implicitBackgroundWidthSpy.valid)
-
- var implicitBackgroundHeightSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitBackgroundHeightChanged"})
- verify(implicitBackgroundHeightSpy.valid)
-
- var implicitWidthChanges = 0
- var implicitHeightChanges = 0
- var implicitBackgroundWidthChanges = 0
- var implicitBackgroundHeightChanges = 0
-
- verify(control.implicitWidth >= control.leftPadding + control.rightPadding)
- verify(control.implicitHeight >= control.contentHeight + control.topPadding + control.bottomPadding)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
-
- control.background = rectangle.createObject(control, {implicitWidth: 400, implicitHeight: 200})
- compare(control.implicitWidth, 400)
- compare(control.implicitHeight, 200)
- compare(control.implicitBackgroundWidth, 400)
- compare(control.implicitBackgroundHeight, 200)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, ++implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, ++implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, ++implicitBackgroundHeightChanges)
-
- control.background = null
- compare(control.implicitWidth, control.leftPadding + control.rightPadding)
- verify(control.implicitHeight >= control.contentHeight + control.topPadding + control.bottomPadding)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, ++implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, ++implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, ++implicitBackgroundHeightChanges)
-
- control.text = "TextArea"
- compare(control.implicitWidth, control.contentWidth + control.leftPadding + control.rightPadding)
- verify(control.implicitHeight >= control.contentHeight + control.topPadding + control.bottomPadding)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, implicitBackgroundHeightChanges)
-
- control.placeholderText = "..."
- compare(control.implicitWidth, control.contentWidth + control.leftPadding + control.rightPadding)
- verify(control.implicitHeight >= control.contentHeight + control.topPadding + control.bottomPadding)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
- compare(implicitWidthSpy.count, implicitWidthChanges)
- compare(implicitHeightSpy.count, implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, implicitBackgroundHeightChanges)
- }
-
- function test_alignment_data() {
- return [
- { tag: "empty", text: "", placeholderText: "", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,left", text: "", placeholderText: "", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,center", text: "", placeholderText: "", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "empty,right", text: "", placeholderText: "", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "empty,ltr", text: "", placeholderText: "Search", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,ltr,left", text: "", placeholderText: "Search", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,ltr,center", text: "", placeholderText: "Search", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "empty,ltr,right", text: "", placeholderText: "Search", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "empty,rtl", text: "", placeholderText: "بحث", textAlignment: undefined, placeholderAlignment: Qt.AlignRight },
- { tag: "empty,rtl,left", text: "", placeholderText: "بحث", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,rtl,center", text: "", placeholderText: "بحث", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "empty,rtl,right", text: "", placeholderText: "بحث", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "ltr,empty", text: "Text", placeholderText: "", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,empty,left", text: "Text", placeholderText: "", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,empty,center", text: "Text", placeholderText: "", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "ltr,empty,right", text: "Text", placeholderText: "", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "ltr,ltr", text: "Text", placeholderText: "Search", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,ltr,left", text: "Text", placeholderText: "Search", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,ltr,center", text: "Text", placeholderText: "Search", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "ltr,ltr,right", text: "Text", placeholderText: "Search", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "ltr,rtl", text: "Text", placeholderText: "بحث", textAlignment: undefined, placeholderAlignment: Qt.AlignRight },
- { tag: "ltr,rtl,left", text: "Text", placeholderText: "بحث", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,rtl,center", text: "Text", placeholderText: "بحث", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "ltr,rtl,right", text: "Text", placeholderText: "بحث", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "rtl,empty", text: "نص", placeholderText: "", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,empty,left", text: "نص", placeholderText: "", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,empty,center", text: "نص", placeholderText: "", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "rtl,empty,right", text: "نص", placeholderText: "", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "rtl,ltr", text: "نص", placeholderText: "Search", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,ltr,left", text: "نص", placeholderText: "Search", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,ltr,center", text: "نص", placeholderText: "Search", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "rtl,ltr,right", text: "نص", placeholderText: "Search", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "rtl,rtl", text: "نص", placeholderText: "بحث", textAlignment: undefined, placeholderAlignment: Qt.AlignRight },
- { tag: "rtl,rtl,left", text: "نص", placeholderText: "بحث", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,rtl,center", text: "نص", placeholderText: "بحث", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "rtl,rtl,right", text: "نص", placeholderText: "بحث", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
- ]
- }
-
- function test_alignment(data) {
- var control = createTemporaryObject(textArea, testCase, {text: data.text, placeholderText: data.placeholderText, horizontalAlignment: data.textAlignment})
-
- if (data.textAlignment !== undefined)
- compare(control.horizontalAlignment, data.textAlignment)
- for (var i = 0; i < control.children.length; ++i) {
- if (control.children[i].hasOwnProperty("horizontalAlignment"))
- compare(control.children[i].effectiveHorizontalAlignment, data.placeholderAlignment) // placeholder
- }
-
- control.verticalAlignment = TextArea.AlignBottom
- compare(control.verticalAlignment, TextArea.AlignBottom)
- for (var j = 0; j < control.children.length; ++j) {
- if (control.children[j].hasOwnProperty("verticalAlignment"))
- compare(control.children[j].verticalAlignment, Text.AlignBottom) // placeholder
- }
- }
-
- function test_font_explicit_attributes_data() {
- return [
- {tag: "bold", value: true},
- {tag: "capitalization", value: Font.Capitalize},
- {tag: "family", value: "Courier"},
- {tag: "italic", value: true},
- {tag: "strikeout", value: true},
- {tag: "underline", value: true},
- {tag: "weight", value: Font.Black},
- {tag: "wordSpacing", value: 55}
- ]
- }
-
- function test_font_explicit_attributes(data) {
- var control = createTemporaryObject(textArea, testCase)
- verify(control)
-
- var child = textArea.createObject(control)
- verify(child)
-
- var controlSpy = signalSpy.createObject(control, {target: control, signalName: "fontChanged"})
- verify(controlSpy.valid)
-
- var childSpy = signalSpy.createObject(child, {target: child, signalName: "fontChanged"})
- verify(childSpy.valid)
-
- var defaultValue = control.font[data.tag]
- child.font[data.tag] = defaultValue
-
- compare(child.font[data.tag], defaultValue)
- compare(childSpy.count, 0)
-
- control.font[data.tag] = data.value
-
- compare(control.font[data.tag], data.value)
- compare(controlSpy.count, 1)
-
- compare(child.font[data.tag], defaultValue)
- compare(childSpy.count, 0)
- }
-
- function test_flickable() {
- var control = createTemporaryObject(flickable, testCase, {text:"line0", selectByMouse: true})
- verify(control)
-
- var textArea = control.TextArea.flickable
- verify(textArea)
-
- if (textArea.background)
- compare(textArea.background.parent, control)
-
- for (var i = 1; i <= 100; ++i)
- textArea.text += "line\n" + i
-
- verify(textArea.contentWidth > 0)
- verify(textArea.contentHeight > 200)
-
- compare(control.contentWidth, textArea.contentWidth + textArea.leftPadding + textArea.rightPadding)
- compare(control.contentHeight, textArea.contentHeight + textArea.topPadding + textArea.bottomPadding)
-
- compare(textArea.cursorPosition, 0)
-
- var center = textArea.positionAt(control.width / 2, control.height / 2)
- verify(center > 0)
- mouseClick(textArea, control.width / 2, control.height / 2)
- compare(textArea.cursorPosition, center)
-
- // click inside text area, but below flickable
- var below = textArea.positionAt(control.width / 2, control.height + 1)
- verify(below > center)
- mouseClick(textArea, control.width / 2, control.height + 1)
- compare(textArea.cursorPosition, center) // no change
-
- // scroll down
- control.contentY = -(control.contentHeight - control.height) / 2
-
- // click inside textarea, but above flickable
- var above = textArea.positionAt(control.width / 2, textArea.topPadding)
- verify(above > 0 && above < center)
- mouseClick(textArea, control.width / 2, 0)
- compare(textArea.cursorPosition, center) // no change
- }
-
- function test_warning() {
- ignoreWarning(Qt.resolvedUrl("tst_textarea.qml") + ":55:1: QML TestCase: TextArea must be attached to a Flickable")
- testCase.TextArea.flickable = null
- }
-
- function test_hover_data() {
- return [
- { tag: "enabled", hoverEnabled: true },
- { tag: "disabled", hoverEnabled: false },
- ]
- }
-
- function test_hover(data) {
- var control = createTemporaryObject(textArea, testCase, {text: "TextArea", hoverEnabled: data.hoverEnabled})
- verify(control)
-
- compare(control.hovered, false)
-
- mouseMove(control)
- compare(control.hovered, data.hoverEnabled)
-
- mouseMove(control, -1, -1)
- compare(control.hovered, false)
- }
-
- function test_pressedReleased_data() {
- return [
- {
- tag: "pressed outside", x: -1, y: -1, button: Qt.LeftButton,
- controlPressEvent: null,
- controlReleaseEvent: null,
- parentPressEvent: {
- x: 0, y: 0, button: Qt.LeftButton, buttons: Qt.LeftButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- parentReleaseEvent: {
- x: 0, y: 0, button: Qt.LeftButton, buttons: Qt.NoButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- },
- {
- tag: "left click", x: 0, y: 0, button: Qt.LeftButton,
- controlPressEvent: {
- x: 0, y: 0, button: Qt.LeftButton, buttons: Qt.LeftButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- controlReleaseEvent: {
- x: 0, y: 0, button: Qt.LeftButton, buttons: Qt.NoButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- parentPressEvent: null,
- parentReleaseEvent: null,
- },
- {
- tag: "right click", x: 0, y: 0, button: Qt.RightButton,
- controlPressEvent: {
- x: 0, y: 0, button: Qt.RightButton, buttons: Qt.RightButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- controlReleaseEvent: {
- x: 0, y: 0, button: Qt.RightButton, buttons: Qt.NoButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- parentPressEvent: null,
- parentReleaseEvent: null,
- },
- ];
- }
-
- Component {
- id: mouseAreaComponent
- MouseArea {
- anchors.fill: parent
- }
- }
-
- function checkMouseEvent(event, expectedEvent) {
- compare(event.x, expectedEvent.x)
- compare(event.y, expectedEvent.y)
- compare(event.button, expectedEvent.button)
- compare(event.buttons, expectedEvent.buttons)
- }
-
- function test_pressedReleased(data) {
- var mouseArea = createTemporaryObject(mouseAreaComponent, testCase)
- verify(mouseArea)
- var control = textArea.createObject(mouseArea, {text: "TextArea"})
- verify(control)
-
- // Give enough room to check presses outside of the control and on the parent.
- control.x = 1;
- control.y = 1;
-
- function checkControlPressEvent(event) {
- checkMouseEvent(event, data.controlPressEvent)
- }
- function checkControlReleaseEvent(event) {
- checkMouseEvent(event, data.controlReleaseEvent)
- }
- function checkParentPressEvent(event) {
- checkMouseEvent(event, data.parentPressEvent)
- }
- function checkParentReleaseEvent(event) {
- checkMouseEvent(event, data.parentReleaseEvent)
- }
-
- // Can't use signalArguments, because the event won't live that long.
- if (data.controlPressEvent)
- control.onPressed.connect(checkControlPressEvent)
- if (data.controlReleaseEvent)
- control.onReleased.connect(checkControlReleaseEvent)
- if (data.parentPressEvent)
- control.onPressed.connect(checkParentPressEvent)
- if (data.parentReleaseEvent)
- control.onReleased.connect(checkParentReleaseEvent)
-
- var controlPressedSpy = signalSpy.createObject(control, { target: control, signalName: "pressed" })
- verify(controlPressedSpy.valid)
- var controlReleasedSpy = signalSpy.createObject(control, { target: control, signalName: "released" })
- verify(controlReleasedSpy.valid)
- var parentPressedSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "pressed" })
- verify(parentPressedSpy.valid)
- var parentReleasedSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "released" })
- verify(parentReleasedSpy.valid)
-
- mousePress(control, data.x, data.y, data.button)
- compare(controlPressedSpy.count, data.controlPressEvent ? 1 : 0)
- compare(parentPressedSpy.count, data.parentPressEvent ? 1 : 0)
- mouseRelease(control, data.x, data.y, data.button)
- compare(controlReleasedSpy.count, data.controlReleaseEvent ? 1 : 0)
- compare(parentReleasedSpy.count, data.parentReleaseEvent ? 1 : 0)
- }
-
- Component {
- id: ignoreTextArea
-
- TextArea {
- property bool ignorePress: false
- property bool ignoreRelease: false
-
- onPressed: if (ignorePress) event.accepted = false
- onReleased: if (ignoreRelease) event.accepted = false
- }
- }
-
- function checkEventAccepted(event) {
- compare(event.accepted, true)
- }
-
- function checkEventIgnored(event) {
- compare(event.accepted, false)
- }
-
- function test_ignorePressRelease() {
- var mouseArea = createTemporaryObject(mouseAreaComponent, testCase)
- verify(mouseArea)
- var control = ignoreTextArea.createObject(mouseArea)
- verify(control)
-
- var controlPressedSpy = signalSpy.createObject(control, { target: control, signalName: "pressed" })
- verify(controlPressedSpy.valid)
- var controlReleasedSpy = signalSpy.createObject(control, { target: control, signalName: "released" })
- verify(controlReleasedSpy.valid)
- var parentPressedSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "pressed" })
- verify(parentPressedSpy.valid)
- var parentReleasedSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "released" })
- verify(parentReleasedSpy.valid)
-
- // Ignore only press events.
- control.onPressed.connect(checkEventIgnored)
- control.ignorePress = true
- mousePress(control, 0, 0, data.button)
- // The control will still get the signal, it just won't accept the event.
- compare(controlPressedSpy.count, 1)
- compare(parentPressedSpy.count, 1)
- mouseRelease(control, 0, 0, data.button)
- compare(controlReleasedSpy.count, 0)
- compare(parentReleasedSpy.count, 1)
- control.onPressed.disconnect(checkEventIgnored)
-
- // Ignore only release events.
- control.onPressed.connect(checkEventAccepted)
- control.onReleased.connect(checkEventIgnored)
- control.ignorePress = false
- control.ignoreRelease = true
- mousePress(control, 0, 0, data.button)
- compare(controlPressedSpy.count, 2)
- compare(parentPressedSpy.count, 1)
- mouseRelease(control, 0, 0, data.button)
- compare(controlReleasedSpy.count, 1)
- compare(parentReleasedSpy.count, 1)
- control.onPressed.disconnect(checkEventAccepted)
- control.onReleased.disconnect(checkEventIgnored)
- }
-
- function test_multiClick() {
- var control = createTemporaryObject(textArea, testCase, {text: "Qt Quick Controls 2 TextArea", selectByMouse: true})
- verify(control)
-
- waitForRendering(control)
- control.width = control.contentWidth
- var rect = control.positionToRectangle(12)
-
- // double click -> select word
- mouseDoubleClickSequence(control, rect.x + rect.width / 2, rect.y + rect.height / 2)
- compare(control.selectedText, "Controls")
-
- // tripple click -> select whole line
- mouseClick(control, rect.x + rect.width / 2, rect.y + rect.height / 2)
- compare(control.selectedText, "Qt Quick Controls 2 TextArea")
- }
-
- Component {
- id: scrollView
- ScrollView {
- TextArea { }
- }
- }
-
- function test_scrollView() {
- var control = createTemporaryObject(scrollView, testCase)
- verify(control)
-
- // don't crash (QTBUG-62292)
- control.destroy()
- wait(0)
- }
-
- function test_placeholderTextColor() {
- var control = createTemporaryObject(textArea, testCase)
- verify(control)
-
- // usually default value should not be pure opacue black
- verify(control.placeholderTextColor !== "#ff000000")
- control.placeholderTextColor = "#12345678"
- compare(control.placeholderTextColor, "#12345678")
-
- for (var i = 0; i < control.children.length; ++i) {
- if (control.children[i].hasOwnProperty("text"))
- compare(control.children[i].color, control.placeholderTextColor) // placeholder.color
- }
- }
-
- function test_inset() {
- var control = createTemporaryObject(textArea, testCase, {background: rectangle.createObject(control)})
- verify(control)
-
- var topInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "topInsetChanged"})
- verify(topInsetSpy.valid)
-
- var leftInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "leftInsetChanged"})
- verify(leftInsetSpy.valid)
-
- var rightInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "rightInsetChanged"})
- verify(rightInsetSpy.valid)
-
- var bottomInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "bottomInsetChanged"})
- verify(bottomInsetSpy.valid)
-
- var topInsetChanges = 0
- var leftInsetChanges = 0
- var rightInsetChanges = 0
- var bottomInsetChanges = 0
-
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
-
- control.width = 100
- control.height = 100
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 100)
-
- control.topInset = 10
- compare(control.topInset, 10)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, ++topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 10)
- compare(control.background.width, 100)
- compare(control.background.height, 90)
-
- control.leftInset = 20
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, ++leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 80)
- compare(control.background.height, 90)
-
- control.rightInset = 30
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, ++rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 50)
- compare(control.background.height, 90)
-
- control.bottomInset = 40
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, ++bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 50)
- compare(control.background.height, 50)
-
- control.topInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, ++topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 0)
- compare(control.background.width, 50)
- compare(control.background.height, 60)
-
- control.leftInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, ++leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 70)
- compare(control.background.height, 60)
-
- control.rightInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, ++rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 60)
-
- control.bottomInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, ++bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 100)
- }
-
- // QTBUG-76369
- Component {
- id: testResizeBackground
- Item {
- width: 200
- height: 200
- property alias textArea: textArea
- ScrollView {
- anchors.fill: parent
- ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
- TextArea {
- id: textArea
- // workaround test failing due to default insets on Imagine
- topInset: undefined
- leftInset: undefined
- rightInset: undefined
- bottomInset: undefined
- wrapMode : TextEdit.WordWrap
- readOnly: false
- selectByMouse: true
- focus: true
- text: "test message"
-
- background: Rectangle {
- y: parent.height - height - textArea.bottomPadding / 2
- implicitWidth: 120
- height: textArea.activeFocus ? 2 : 1
- }
- }
- }
- }
- }
-
- function test_resize_background() {
- var control = createTemporaryObject(testResizeBackground, testCase)
-
- compare(control.textArea.background.width, control.width)
- compare(control.textArea.background.height, 1)
- control.width = 400
- control.height = 400
- compare(control.textArea.background.width, control.width)
- compare(control.textArea.background.height, 1)
- control.width = 200
- control.height = 200
- compare(control.textArea.background.width, control.width)
- compare(control.textArea.background.height, 1)
-
- // hasBackgroundWidth=true
- control.textArea.background.width = 1
- compare(control.textArea.background.width, 1)
- compare(control.textArea.background.height, 1)
- control.width = 400
- control.height = 400
- compare(control.textArea.background.width, 1)
- compare(control.textArea.background.height, 1)
- // hasBackgroundHeight=false
- control.textArea.background.height = undefined
- compare(control.textArea.background.width, 1)
- compare(control.textArea.background.height, 0)
- control.textArea.background.y = 0
- compare(control.textArea.background.width, 1)
- compare(control.textArea.background.height, control.height)
- control.width = 200
- control.height = 200
- compare(control.textArea.background.width, 1)
- compare(control.textArea.background.height, control.height)
- }
-}
diff --git a/tests/auto/controls/data/tst_textfield.qml b/tests/auto/controls/data/tst_textfield.qml
deleted file mode 100644
index 2ee1db41..00000000
--- a/tests/auto/controls/data/tst_textfield.qml
+++ /dev/null
@@ -1,663 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "TextField"
-
- Component {
- id: textField
- TextField { }
- }
-
- Component {
- id: rectangle
- Rectangle { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- function test_creation() {
- var control = createTemporaryObject(textField, testCase)
- verify(control)
- }
-
- function test_implicitSize() {
- var control = createTemporaryObject(textField, testCase)
- verify(control)
-
- var implicitWidthSpy = signalSpy.createObject(control, { target: control, signalName: "implicitWidthChanged"} )
- verify(implicitWidthSpy.valid)
-
- var implicitHeightSpy = signalSpy.createObject(control, { target: control, signalName: "implicitHeightChanged"} )
- verify(implicitHeightSpy.valid)
-
- var implicitBackgroundWidthSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitBackgroundWidthChanged"})
- verify(implicitBackgroundWidthSpy.valid)
-
- var implicitBackgroundHeightSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "implicitBackgroundHeightChanged"})
- verify(implicitBackgroundHeightSpy.valid)
-
- var implicitWidthChanges = 0
- var implicitHeightChanges = 0
- var implicitBackgroundWidthChanges = 0
- var implicitBackgroundHeightChanges = 0
-
- verify(control.implicitWidth >= control.leftPadding + control.rightPadding)
- verify(control.implicitHeight >= control.contentHeight + control.topPadding + control.bottomPadding)
- compare(control.implicitBackgroundWidth, control.background.implicitWidth)
- compare(control.implicitBackgroundHeight, control.background.implicitHeight)
-
- control.background = rectangle.createObject(control, {implicitWidth: 400, implicitHeight: 200})
- compare(control.implicitWidth, 400)
- compare(control.implicitHeight, 200)
- compare(control.implicitBackgroundWidth, 400)
- compare(control.implicitBackgroundHeight, 200)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, ++implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, ++implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, ++implicitBackgroundHeightChanges)
-
- control.background = null
- compare(control.implicitWidth, control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentHeight + control.topPadding + control.bottomPadding)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, ++implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, ++implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, ++implicitBackgroundHeightChanges)
-
- control.text = "TextField"
- compare(control.implicitWidth, control.contentWidth + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentHeight + control.topPadding + control.bottomPadding)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
- compare(implicitWidthSpy.count, ++implicitWidthChanges)
- compare(implicitHeightSpy.count, implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, implicitBackgroundHeightChanges)
-
- control.placeholderText = "..."
- compare(control.implicitWidth, control.contentWidth + control.leftPadding + control.rightPadding)
- compare(control.implicitHeight, control.contentHeight + control.topPadding + control.bottomPadding)
- compare(control.implicitBackgroundWidth, 0)
- compare(control.implicitBackgroundHeight, 0)
- compare(implicitWidthSpy.count, implicitWidthChanges)
- compare(implicitHeightSpy.count, implicitHeightChanges)
- compare(implicitBackgroundWidthSpy.count, implicitBackgroundWidthChanges)
- compare(implicitBackgroundHeightSpy.count, implicitBackgroundHeightChanges)
- }
-
- function test_alignment_data() {
- return [
- { tag: "empty", text: "", placeholderText: "", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,left", text: "", placeholderText: "", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,center", text: "", placeholderText: "", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "empty,right", text: "", placeholderText: "", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "empty,ltr", text: "", placeholderText: "Search", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,ltr,left", text: "", placeholderText: "Search", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,ltr,center", text: "", placeholderText: "Search", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "empty,ltr,right", text: "", placeholderText: "Search", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "empty,rtl", text: "", placeholderText: "بحث", textAlignment: undefined, placeholderAlignment: Qt.AlignRight },
- { tag: "empty,rtl,left", text: "", placeholderText: "بحث", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "empty,rtl,center", text: "", placeholderText: "بحث", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "empty,rtl,right", text: "", placeholderText: "بحث", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "ltr,empty", text: "Text", placeholderText: "", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,empty,left", text: "Text", placeholderText: "", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,empty,center", text: "Text", placeholderText: "", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "ltr,empty,right", text: "Text", placeholderText: "", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "ltr,ltr", text: "Text", placeholderText: "Search", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,ltr,left", text: "Text", placeholderText: "Search", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,ltr,center", text: "Text", placeholderText: "Search", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "ltr,ltr,right", text: "Text", placeholderText: "Search", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "ltr,rtl", text: "Text", placeholderText: "بحث", textAlignment: undefined, placeholderAlignment: Qt.AlignRight },
- { tag: "ltr,rtl,left", text: "Text", placeholderText: "بحث", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "ltr,rtl,center", text: "Text", placeholderText: "بحث", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "ltr,rtl,right", text: "Text", placeholderText: "بحث", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "rtl,empty", text: "نص", placeholderText: "", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,empty,left", text: "نص", placeholderText: "", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,empty,center", text: "نص", placeholderText: "", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "rtl,empty,right", text: "نص", placeholderText: "", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "rtl,ltr", text: "نص", placeholderText: "Search", textAlignment: undefined, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,ltr,left", text: "نص", placeholderText: "Search", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,ltr,center", text: "نص", placeholderText: "Search", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "rtl,ltr,right", text: "نص", placeholderText: "Search", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
-
- { tag: "rtl,rtl", text: "نص", placeholderText: "بحث", textAlignment: undefined, placeholderAlignment: Qt.AlignRight },
- { tag: "rtl,rtl,left", text: "نص", placeholderText: "بحث", textAlignment: Qt.AlignLeft, placeholderAlignment: Qt.AlignLeft },
- { tag: "rtl,rtl,center", text: "نص", placeholderText: "بحث", textAlignment: Qt.AlignHCenter, placeholderAlignment: Qt.AlignHCenter },
- { tag: "rtl,rtl,right", text: "نص", placeholderText: "بحث", textAlignment: Qt.AlignRight, placeholderAlignment: Qt.AlignRight },
- ]
- }
-
- function test_alignment(data) {
- var control = createTemporaryObject(textField, testCase, {text: data.text, placeholderText: data.placeholderText, horizontalAlignment: data.textAlignment})
-
- if (data.textAlignment !== undefined)
- compare(control.horizontalAlignment, data.textAlignment)
- for (var i = 0; i < control.children.length; ++i) {
- if (control.children[i].hasOwnProperty("text") && control.children[i].hasOwnProperty("horizontalAlignment"))
- compare(control.children[i].effectiveHorizontalAlignment, data.placeholderAlignment) // placeholder
- }
-
- control.verticalAlignment = TextField.AlignBottom
- compare(control.verticalAlignment, TextField.AlignBottom)
- for (var j = 0; j < control.children.length; ++j) {
- if (control.children[j].hasOwnProperty("text") && control.children[j].hasOwnProperty("verticalAlignment"))
- compare(control.children[j].verticalAlignment, Text.AlignBottom) // placeholder
- }
- }
-
- function test_font_explicit_attributes_data() {
- return [
- {tag: "bold", value: true},
- {tag: "capitalization", value: Font.Capitalize},
- {tag: "family", value: "Courier"},
- {tag: "italic", value: true},
- {tag: "strikeout", value: true},
- {tag: "underline", value: true},
- {tag: "weight", value: Font.Black},
- {tag: "wordSpacing", value: 55}
- ]
- }
-
- function test_font_explicit_attributes(data) {
- var control = createTemporaryObject(textField, testCase)
- verify(control)
-
- var child = textField.createObject(control)
- verify(child)
-
- var controlSpy = signalSpy.createObject(control, {target: control, signalName: "fontChanged"})
- verify(controlSpy.valid)
-
- var childSpy = signalSpy.createObject(child, {target: child, signalName: "fontChanged"})
- verify(childSpy.valid)
-
- var defaultValue = control.font[data.tag]
- child.font[data.tag] = defaultValue
-
- compare(child.font[data.tag], defaultValue)
- compare(childSpy.count, 0)
-
- control.font[data.tag] = data.value
-
- compare(control.font[data.tag], data.value)
- compare(controlSpy.count, 1)
-
- compare(child.font[data.tag], defaultValue)
- compare(childSpy.count, 0)
- }
-
- function test_hover_data() {
- return [
- { tag: "enabled", hoverEnabled: true },
- { tag: "disabled", hoverEnabled: false },
- ]
- }
-
- function test_hover(data) {
- var control = createTemporaryObject(textField, testCase, {hoverEnabled: data.hoverEnabled})
- verify(control)
-
- compare(control.hovered, false)
-
- mouseMove(control)
- compare(control.hovered, data.hoverEnabled)
-
- mouseMove(control, -1, -1)
- compare(control.hovered, false)
- }
-
- function test_pressedReleased_data() {
- return [
- {
- tag: "pressed outside", x: -1, y: -1, button: Qt.LeftButton,
- controlPressEvent: null,
- controlReleaseEvent: null,
- parentPressEvent: {
- x: 0, y: 0, button: Qt.LeftButton, buttons: Qt.LeftButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- parentReleaseEvent: {
- x: 0, y: 0, button: Qt.LeftButton, buttons: Qt.NoButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- },
- {
- tag: "left click", x: 0, y: 0, button: Qt.LeftButton,
- controlPressEvent: {
- x: 0, y: 0, button: Qt.LeftButton, buttons: Qt.LeftButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- controlReleaseEvent: {
- x: 0, y: 0, button: Qt.LeftButton, buttons: Qt.NoButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- parentPressEvent: null,
- parentReleaseEvent: null,
- },
- {
- tag: "right click", x: 0, y: 0, button: Qt.RightButton,
- controlPressEvent: {
- x: 0, y: 0, button: Qt.RightButton, buttons: Qt.RightButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- controlReleaseEvent: {
- x: 0, y: 0, button: Qt.RightButton, buttons: Qt.NoButton, modifiers: Qt.NoModifier, wasHeld: false, isClick: false
- },
- parentPressEvent: null,
- parentReleaseEvent: null,
- },
- ];
- }
-
- Component {
- id: mouseAreaComponent
- MouseArea {
- anchors.fill: parent
- }
- }
-
- function checkMouseEvent(event, expectedEvent) {
- compare(event.x, expectedEvent.x)
- compare(event.y, expectedEvent.y)
- compare(event.button, expectedEvent.button)
- compare(event.buttons, expectedEvent.buttons)
- }
-
- function test_pressedReleased(data) {
- var mouseArea = createTemporaryObject(mouseAreaComponent, testCase)
- verify(mouseArea)
- var control = textField.createObject(mouseArea)
- verify(control)
-
- // Give enough room to check presses outside of the control and on the parent.
- control.x = 1;
- control.y = 1;
-
- function checkControlPressEvent(event) {
- checkMouseEvent(event, data.controlPressEvent)
- }
- function checkControlReleaseEvent(event) {
- checkMouseEvent(event, data.controlReleaseEvent)
- }
- function checkParentPressEvent(event) {
- checkMouseEvent(event, data.parentPressEvent)
- }
- function checkParentReleaseEvent(event) {
- checkMouseEvent(event, data.parentReleaseEvent)
- }
-
- // Can't use signalArguments, because the event won't live that long.
- if (data.controlPressEvent)
- control.onPressed.connect(checkControlPressEvent)
- if (data.controlReleaseEvent)
- control.onReleased.connect(checkControlReleaseEvent)
- if (data.parentPressEvent)
- control.onPressed.connect(checkParentPressEvent)
- if (data.parentReleaseEvent)
- control.onReleased.connect(checkParentReleaseEvent)
-
- var controlPressedSpy = signalSpy.createObject(control, { target: control, signalName: "pressed" })
- verify(controlPressedSpy.valid)
- var controlReleasedSpy = signalSpy.createObject(control, { target: control, signalName: "released" })
- verify(controlReleasedSpy.valid)
- var parentPressedSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "pressed" })
- verify(parentPressedSpy.valid)
- var parentReleasedSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "released" })
- verify(parentReleasedSpy.valid)
-
- mousePress(control, data.x, data.y, data.button)
- compare(controlPressedSpy.count, data.controlPressEvent ? 1 : 0)
- compare(parentPressedSpy.count, data.parentPressEvent ? 1 : 0)
- mouseRelease(control, data.x, data.y, data.button)
- compare(controlReleasedSpy.count, data.controlReleaseEvent ? 1 : 0)
- compare(parentReleasedSpy.count, data.parentReleaseEvent ? 1 : 0)
- }
-
- Component {
- id: ignoreTextField
-
- TextField {
- property bool ignorePress: false
- property bool ignoreRelease: false
-
- onPressed: if (ignorePress) event.accepted = false
- onReleased: if (ignoreRelease) event.accepted = false
- }
- }
-
- function checkEventAccepted(event) {
- compare(event.accepted, true)
- }
-
- function checkEventIgnored(event) {
- compare(event.accepted, false)
- }
-
- function test_ignorePressRelease() {
- var mouseArea = createTemporaryObject(mouseAreaComponent, testCase)
- verify(mouseArea)
- var control = ignoreTextField.createObject(mouseArea)
- verify(control)
-
- var controlPressedSpy = signalSpy.createObject(control, { target: control, signalName: "pressed" })
- verify(controlPressedSpy.valid)
- var controlReleasedSpy = signalSpy.createObject(control, { target: control, signalName: "released" })
- verify(controlReleasedSpy.valid)
- var parentPressedSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "pressed" })
- verify(parentPressedSpy.valid)
- var parentReleasedSpy = signalSpy.createObject(mouseArea, { target: mouseArea, signalName: "released" })
- verify(parentReleasedSpy.valid)
-
- // Ignore only press events.
- control.onPressed.connect(checkEventIgnored)
- control.ignorePress = true
- mousePress(control, 0, 0, data.button)
- // The control will still get the signal, it just won't accept the event.
- compare(controlPressedSpy.count, 1)
- compare(parentPressedSpy.count, 1)
- mouseRelease(control, 0, 0, data.button)
- compare(controlReleasedSpy.count, 0)
- compare(parentReleasedSpy.count, 1)
- control.onPressed.disconnect(checkEventIgnored)
-
- // Ignore only release events.
- control.onPressed.connect(checkEventAccepted)
- control.onReleased.connect(checkEventIgnored)
- control.ignorePress = false
- control.ignoreRelease = true
- mousePress(control, 0, 0, data.button)
- compare(controlPressedSpy.count, 2)
- compare(parentPressedSpy.count, 1)
- mouseRelease(control, 0, 0, data.button)
- compare(controlReleasedSpy.count, 1)
- compare(parentReleasedSpy.count, 1)
- control.onPressed.disconnect(checkEventAccepted)
- control.onReleased.disconnect(checkEventIgnored)
- }
-
- function test_multiClick() {
- var control = createTemporaryObject(textField, testCase, {text: "Qt Quick Controls 2 TextArea", selectByMouse: true})
- verify(control)
-
- waitForRendering(control)
- control.width = control.contentWidth
- var rect = control.positionToRectangle(12)
-
- // double click -> select word
- mouseDoubleClickSequence(control, rect.x + rect.width / 2, rect.y + rect.height / 2)
- compare(control.selectedText, "Controls")
-
- // tripple click -> select whole line
- mouseClick(control, rect.x + rect.width / 2, rect.y + rect.height / 2)
- compare(control.selectedText, "Qt Quick Controls 2 TextArea")
- }
-
- // QTBUG-64048
- function test_rightClick() {
- var control = createTemporaryObject(textField, testCase, {text: "TextField", selectByMouse: true})
- verify(control)
-
- control.selectAll()
- compare(control.selectedText, "TextField")
-
- mouseClick(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(control.selectedText, "TextField")
-
- mouseClick(control, control.width / 2, control.height / 2, Qt.LeftButton | Qt.RightButton)
- compare(control.selectedText, "")
- }
-
- // QTBUG-66260
- function test_placeholderTextColor() {
- var control = createTemporaryObject(textField, testCase)
- verify(control)
-
- // usually default value should not be pure opacue black
- verify(control.placeholderTextColor !== "#ff000000")
- control.placeholderTextColor = "#12345678"
- compare(control.placeholderTextColor, "#12345678")
-
- for (var i = 0; i < control.children.length; ++i) {
- if (control.children[i].hasOwnProperty("text"))
- compare(control.children[i].color, control.placeholderTextColor) // placeholder.color
- }
- }
-
- function test_inset() {
- var control = createTemporaryObject(textField, testCase, {background: rectangle.createObject(control)})
- verify(control)
-
- var topInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "topInsetChanged"})
- verify(topInsetSpy.valid)
-
- var leftInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "leftInsetChanged"})
- verify(leftInsetSpy.valid)
-
- var rightInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "rightInsetChanged"})
- verify(rightInsetSpy.valid)
-
- var bottomInsetSpy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: "bottomInsetChanged"})
- verify(bottomInsetSpy.valid)
-
- var topInsetChanges = 0
- var leftInsetChanges = 0
- var rightInsetChanges = 0
- var bottomInsetChanges = 0
-
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
-
- control.width = 100
- control.height = 100
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 100)
-
- control.topInset = 10
- compare(control.topInset, 10)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, ++topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 10)
- compare(control.background.width, 100)
- compare(control.background.height, 90)
-
- control.leftInset = 20
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, ++leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 80)
- compare(control.background.height, 90)
-
- control.rightInset = 30
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, ++rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 50)
- compare(control.background.height, 90)
-
- control.bottomInset = 40
- compare(control.topInset, 10)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, ++bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 10)
- compare(control.background.width, 50)
- compare(control.background.height, 50)
-
- control.topInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 20)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, ++topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 20)
- compare(control.background.y, 0)
- compare(control.background.width, 50)
- compare(control.background.height, 60)
-
- control.leftInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 30)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, ++leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 70)
- compare(control.background.height, 60)
-
- control.rightInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 40)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, ++rightInsetChanges)
- compare(bottomInsetSpy.count, bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 60)
-
- control.bottomInset = undefined
- compare(control.topInset, 0)
- compare(control.leftInset, 0)
- compare(control.rightInset, 0)
- compare(control.bottomInset, 0)
- compare(topInsetSpy.count, topInsetChanges)
- compare(leftInsetSpy.count, leftInsetChanges)
- compare(rightInsetSpy.count, rightInsetChanges)
- compare(bottomInsetSpy.count, ++bottomInsetChanges)
- compare(control.background.x, 0)
- compare(control.background.y, 0)
- compare(control.background.width, 100)
- compare(control.background.height, 100)
- }
-
- Component {
- id: layoutComponent
-
- ColumnLayout {
- anchors.fill: parent
-
- property alias textField: textField
-
- TextField {
- id: textField
- placeholderText: "Placeholder"
- Layout.fillWidth: true
- }
- }
- }
-
- function test_inLayout() {
- var layout = createTemporaryObject(layoutComponent, testCase)
- verify(layout)
-
- var control = layout.textField
- verify(control)
-
- compare(control.width, control.parent.width)
- compare(control.background.width, control.width)
- }
-}
diff --git a/tests/auto/controls/data/tst_toolbar.qml b/tests/auto/controls/data/tst_toolbar.qml
deleted file mode 100644
index 09c3a830..00000000
--- a/tests/auto/controls/data/tst_toolbar.qml
+++ /dev/null
@@ -1,148 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "ToolBar"
-
- Component {
- id: toolBar
- ToolBar { }
- }
-
- Component {
- id: oneChildBar
- ToolBar {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- Component {
- id: twoChildrenBar
- ToolBar {
- Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- Item {
- implicitWidth: 200
- implicitHeight: 60
- }
- }
- }
-
- Component {
- id: contentBar
- ToolBar {
- contentItem: Item {
- implicitWidth: 100
- implicitHeight: 30
- }
- }
- }
-
- function test_empty() {
- var control = createTemporaryObject(toolBar, testCase)
- verify(control)
-
- verify(control.contentItem)
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- }
-
- function test_oneChild() {
- var control = createTemporaryObject(oneChildBar, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- verify(control.implicitWidth >= 100)
- verify(control.implicitHeight >= 30)
- }
-
- function test_twoChildren() {
- var control = createTemporaryObject(twoChildrenBar, testCase)
- verify(control)
-
- compare(control.contentWidth, 0)
- compare(control.contentHeight, 0)
- compare(control.implicitContentWidth, 0)
- compare(control.implicitContentHeight, 0)
- verify(control.implicitWidth >= 0)
- verify(control.implicitHeight >= 0)
- }
-
- function test_contentItem() {
- var control = createTemporaryObject(contentBar, testCase)
- verify(control)
-
- compare(control.contentWidth, 100)
- compare(control.contentHeight, 30)
- compare(control.implicitContentWidth, 100)
- compare(control.implicitContentHeight, 30)
- verify(control.implicitWidth >= 100)
- verify(control.implicitHeight >= 30)
- }
-}
diff --git a/tests/auto/controls/data/tst_toolbutton.qml b/tests/auto/controls/data/tst_toolbutton.qml
deleted file mode 100644
index 622554c7..00000000
--- a/tests/auto/controls/data/tst_toolbutton.qml
+++ /dev/null
@@ -1,243 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "ToolButton"
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- Component {
- id: toolButton
- ToolButton { }
- }
-
- function test_text() {
- var control = createTemporaryObject(toolButton, testCase)
- verify(control)
-
- compare(control.text, "")
- control.text = "ToolButton"
- compare(control.text, "ToolButton")
- control.text = ""
- compare(control.text, "")
- }
-
- function test_mouse() {
- var control = createTemporaryObject(toolButton, testCase)
- verify(control)
-
- var pressedSpy = signalSpy.createObject(control, {target: control, signalName: "pressedChanged"})
- verify(pressedSpy.valid)
-
- var downSpy = signalSpy.createObject(control, {target: control, signalName: "downChanged"})
- verify(downSpy.valid)
-
- var clickedSpy = signalSpy.createObject(control, {target: control, signalName: "clicked"})
- verify(clickedSpy.valid)
-
- // check
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(pressedSpy.count, 1)
- compare(downSpy.count, 1)
- compare(control.pressed, true)
- compare(control.down, true)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(clickedSpy.count, 1)
- compare(pressedSpy.count, 2)
- compare(downSpy.count, 2)
- compare(control.pressed, false)
- compare(control.down, false)
-
- // uncheck
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(pressedSpy.count, 3)
- compare(downSpy.count, 3)
- compare(control.pressed, true)
- compare(control.down, true)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(clickedSpy.count, 2)
- compare(pressedSpy.count, 4)
- compare(downSpy.count, 4)
- compare(control.pressed, false)
- compare(control.down, false)
-
- // release outside
- mousePress(control, control.width / 2, control.height / 2, Qt.LeftButton)
- compare(pressedSpy.count, 5)
- compare(downSpy.count, 5)
- compare(control.pressed, true)
- compare(control.down, true)
- mouseMove(control, control.width * 2, control.height * 2)
- compare(control.pressed, false)
- compare(control.down, false)
- mouseRelease(control, control.width * 2, control.height * 2, Qt.LeftButton)
- compare(clickedSpy.count, 2)
- compare(pressedSpy.count, 6)
- compare(downSpy.count, 6)
- compare(control.pressed, false)
- compare(control.down, false)
-
- // right button
- mousePress(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(pressedSpy.count, 6)
- compare(downSpy.count, 6)
- compare(control.pressed, false)
- compare(control.down, false)
- mouseRelease(control, control.width / 2, control.height / 2, Qt.RightButton)
- compare(clickedSpy.count, 2)
- compare(pressedSpy.count, 6)
- compare(downSpy.count, 6)
- compare(control.pressed, false)
- compare(control.down, false)
- }
-
- function test_keys() {
- var control = createTemporaryObject(toolButton, testCase)
- verify(control)
-
- var clickedSpy = signalSpy.createObject(control, {target: control, signalName: "clicked"})
- verify(clickedSpy.valid)
-
- control.forceActiveFocus()
- verify(control.activeFocus)
-
- // check
- keyClick(Qt.Key_Space)
- compare(clickedSpy.count, 1)
-
- // uncheck
- keyClick(Qt.Key_Space)
- compare(clickedSpy.count, 2)
-
- // no change
- var keys = [Qt.Key_Enter, Qt.Key_Return, Qt.Key_Escape, Qt.Key_Tab]
- for (var i = 0; i < keys.length; ++i) {
- keyClick(keys[i])
- compare(clickedSpy.count, 2)
- }
- }
-
- function test_baseline() {
- var control = createTemporaryObject(toolButton, testCase)
- verify(control)
- compare(control.baselineOffset, control.contentItem.y + control.contentItem.baselineOffset)
- }
-
- function test_display_data() {
- return [
- { "tag": "IconOnly", display: ToolButton.IconOnly },
- { "tag": "TextOnly", display: ToolButton.TextOnly },
- { "tag": "TextUnderIcon", display: ToolButton.TextUnderIcon },
- { "tag": "TextBesideIcon", display: ToolButton.TextBesideIcon },
- { "tag": "IconOnly, mirrored", display: ToolButton.IconOnly, mirrored: true },
- { "tag": "TextOnly, mirrored", display: ToolButton.TextOnly, mirrored: true },
- { "tag": "TextUnderIcon, mirrored", display: ToolButton.TextUnderIcon, mirrored: true },
- { "tag": "TextBesideIcon, mirrored", display: ToolButton.TextBesideIcon, mirrored: true }
- ]
- }
-
- function test_display(data) {
- var control = createTemporaryObject(toolButton, testCase, {
- text: "ToolButton",
- display: data.display,
- "icon.source": "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png",
- "LayoutMirroring.enabled": !!data.mirrored
- })
- verify(control)
- compare(control.icon.source, "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png")
-
- var iconImage = findChild(control.contentItem, "image")
- var textLabel = findChild(control.contentItem, "label")
-
- switch (control.display) {
- case ToolButton.IconOnly:
- verify(iconImage)
- verify(!textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- break;
- case ToolButton.TextOnly:
- verify(!iconImage)
- verify(textLabel)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- case ToolButton.TextUnderIcon:
- verify(iconImage)
- verify(textLabel)
- compare(iconImage.x, (control.availableWidth - iconImage.width) / 2)
- compare(textLabel.x, (control.availableWidth - textLabel.width) / 2)
- verify(iconImage.y < textLabel.y)
- break;
- case ToolButton.TextBesideIcon:
- verify(iconImage)
- verify(textLabel)
- if (control.mirrored)
- verify(textLabel.x < iconImage.x)
- else
- verify(iconImage.x < textLabel.x)
- compare(iconImage.y, (control.availableHeight - iconImage.height) / 2)
- compare(textLabel.y, (control.availableHeight - textLabel.height) / 2)
- break;
- }
- }
-}
diff --git a/tests/auto/controls/data/tst_toolseparator.qml b/tests/auto/controls/data/tst_toolseparator.qml
deleted file mode 100644
index d3581b96..00000000
--- a/tests/auto/controls/data/tst_toolseparator.qml
+++ /dev/null
@@ -1,105 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- name: "ToolSeparator"
-
- Component {
- id: toolSeparator
- ToolSeparator {}
- }
-
- function test_size() {
- var control = createTemporaryObject(toolSeparator, testCase);
- verify(control);
- verify(control.width > 1);
- verify(control.height > 1);
- }
-
- Component {
- id: signalSpyComponent
- SignalSpy {}
- }
-
- function test_orientation() {
- var control = createTemporaryObject(toolSeparator, testCase);
- verify(control);
- compare(control.horizontal, false);
- compare(control.vertical, true);
-
- var orientationSpy = signalSpyComponent.createObject(control, { target: control, signalName: "orientationChanged" });
-
- var originalWidth = control.width;
- var originalHeight = control.height;
- control.orientation = Qt.Horizontal;
- compare(control.orientation, Qt.Horizontal);
- compare(control.width, originalHeight);
- compare(control.height, originalWidth);
- compare(control.horizontal, true);
- compare(control.vertical, false);
- compare(orientationSpy.count, 1);
-
- control.orientation = Qt.Vertical;
- compare(control.orientation, Qt.Vertical);
- compare(control.width, originalWidth);
- compare(control.height, originalHeight);
- compare(control.horizontal, false);
- compare(control.vertical, true);
- compare(orientationSpy.count, 2);
- }
-}
diff --git a/tests/auto/controls/data/tst_tooltip.qml b/tests/auto/controls/data/tst_tooltip.qml
deleted file mode 100644
index 70579c70..00000000
--- a/tests/auto/controls/data/tst_tooltip.qml
+++ /dev/null
@@ -1,424 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 400
- height: 400
- visible: true
- when: windowShown
- name: "ToolTip"
-
- Component {
- id: toolTip
- ToolTip { }
- }
-
- Component {
- id: mouseArea
- MouseArea { }
- }
-
- Component {
- id: signalSpy
- SignalSpy { }
- }
-
- QtObject {
- id: object
- }
-
- SignalSpy {
- id: sharedSpy
- target: ToolTip.toolTip
- }
-
- function test_properties_data() {
- return [
- {tag: "text", property: "text", defaultValue: "", setValue: "Hello", signalName: "textChanged"},
- {tag: "delay", property: "delay", defaultValue: 0, setValue: 1000, signalName: "delayChanged"},
- {tag: "timeout", property: "timeout", defaultValue: -1, setValue: 2000, signalName: "timeoutChanged"}
- ]
- }
-
- function test_properties(data) {
- var control = createTemporaryObject(toolTip, testCase)
- verify(control)
-
- compare(control[data.property], data.defaultValue)
-
- var spy = createTemporaryObject(signalSpy, testCase, {target: control, signalName: data.signalName})
- verify(spy.valid)
-
- control[data.property] = data.setValue
- compare(control[data.property], data.setValue)
- compare(spy.count, 1)
- }
-
- function test_attached_data() {
- return [
- {tag: "text", property: "text", defaultValue: "", setValue: "Hello", signalName: "textChanged"},
- {tag: "delay", property: "delay", defaultValue: 0, setValue: 1000, signalName: "delayChanged"},
- {tag: "timeout", property: "timeout", defaultValue: -1, setValue: 2000, signalName: "timeoutChanged"}
- ]
- }
-
- function test_attached(data) {
- var item1 = createTemporaryObject(mouseArea, testCase)
- verify(item1)
-
- var item2 = createTemporaryObject(mouseArea, testCase)
- verify(item2)
-
- // Reset the properties to the expected default values, in case
- // we're not the first test that uses attached properties to be run.
- var sharedTip = ToolTip.toolTip
- sharedTip[data.property] = data.defaultValue
-
- compare(item1.ToolTip[data.property], data.defaultValue)
- compare(item2.ToolTip[data.property], data.defaultValue)
-
- var spy1 = signalSpy.createObject(item1, {target: item1.ToolTip, signalName: data.signalName})
- verify(spy1.valid)
-
- var spy2 = signalSpy.createObject(item2, {target: item2.ToolTip, signalName: data.signalName})
- verify(spy2.valid)
-
- sharedSpy.signalName = data.signalName
- verify(sharedSpy.valid)
- sharedSpy.clear()
-
- // change attached properties while the shared tooltip is not visible
- item1.ToolTip[data.property] = data.setValue
- compare(item1.ToolTip[data.property], data.setValue)
- compare(spy1.count, 1)
-
- compare(spy2.count, 0)
- compare(item2.ToolTip[data.property], data.defaultValue)
-
- // the shared tooltip is not visible for item1, so the attached
- // property change should therefore not apply to the shared instance
- compare(sharedSpy.count, 0)
- compare(sharedTip[data.property], data.defaultValue)
-
- // show the shared tooltip for item2
- item2.ToolTip.visible = true
- verify(item2.ToolTip.visible)
- verify(sharedTip.visible)
-
- // change attached properties while the shared tooltip is visible
- item2.ToolTip[data.property] = data.setValue
- compare(item2.ToolTip[data.property], data.setValue)
- compare(spy2.count, 1)
-
- // the shared tooltip is visible for item2, so the attached
- // property change should apply to the shared instance
- compare(sharedSpy.count, 1)
- compare(sharedTip[data.property], data.setValue)
- }
-
- function test_delay_data() {
- return [
- {tag: "imperative:0", delay: 0, imperative: true},
- {tag: "imperative:100", delay: 100, imperative: true},
- {tag: "declarative:0", delay: 0, imperative: false},
- {tag: "declarative:100", delay: 100, imperative: false}
- ]
- }
-
- function test_delay(data) {
- var control = createTemporaryObject(toolTip, testCase, {delay: data.delay})
-
- compare(control.visible, false)
- if (data.imperative)
- control.open()
- else
- control.visible = true
- compare(control.visible, data.delay <= 0)
- tryCompare(control, "visible", true)
- }
-
- function test_timeout_data() {
- return [
- {tag: "imperative", imperative: true},
- {tag: "declarative", imperative: false}
- ]
- }
-
- function test_timeout(data) {
- var control = createTemporaryObject(toolTip, testCase, {timeout: 100})
-
- compare(control.visible, false)
- if (data.imperative)
- control.open()
- else
- control.visible = true
- compare(control.visible, true)
- // wait a bit to make sure that it's still visible
- wait(50)
- compare(control.visible, true)
- // re-arm for another 200 ms
- control.timeout = 200
- compare(control.visible, true)
- // ensure that it's still visible after 150 ms (where old timeout < 150 < new timeout)
- wait(150)
- compare(control.visible, true)
- tryCompare(control, "visible", false)
- }
-
- function test_warning() {
- ignoreWarning(Qt.resolvedUrl("tst_tooltip.qml") + ":78:5: QML QtObject: ToolTip must be attached to an Item")
- ignoreWarning("<Unknown File>:1:30: QML ToolTip: cannot find any window to open popup in.")
- object.ToolTip.show("") // don't crash (QTBUG-56243)
- }
-
- Component {
- id: toolTipWithExitTransition
-
- ToolTip {
- enter: Transition {
- NumberAnimation { property: "opacity"; from: 0.0; to: 1.0; duration: 100 }
- }
- exit: Transition {
- NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 1000 }
- }
- }
- }
-
- function test_makeVisibleWhileExitTransitionRunning_data() {
- return [
- { tag: "imperative", imperative: true },
- { tag: "declarative", imperative: false }
- ]
- }
-
- function test_makeVisibleWhileExitTransitionRunning(data) {
- var control = createTemporaryObject(toolTipWithExitTransition, testCase)
-
- // Show, hide, and show the tooltip again. Its exit transition should
- // start and get cancelled, and then its enter transition should run.
- if (data.imperative)
- control.open()
- else
- control.visible = true
- tryCompare(control, "opacity", 1)
-
- if (data.imperative)
- control.close()
- else
- control.visible = false
- verify(control.exit.running)
- tryVerify(function() { return control.opacity < 1; })
-
- if (data.imperative)
- control.open()
- else
- control.visible = true
- tryCompare(control, "opacity", 1)
- }
-
- Component {
- id: buttonAndShortcutComponent
-
- Item {
- property alias shortcut: shortcut
- property alias button: button
-
- Shortcut {
- id: shortcut
- sequence: "A"
- }
-
- Button {
- id: button
- text: "Just a button"
- focusPolicy: Qt.NoFocus
-
- ToolTip.visible: button.hovered
- ToolTip.text: qsTr("Some helpful text")
- }
- }
- }
-
- function test_activateShortcutWhileToolTipVisible() {
- if ((Qt.platform.pluginName === "offscreen")
- || (Qt.platform.pluginName === "minimal"))
- skip("Mouse hoovering not functional on offscreen/minimal platforms")
-
- var root = createTemporaryObject(buttonAndShortcutComponent, testCase)
- verify(root)
-
- mouseMove(root.button, root.button.width / 2, root.button.height / 2)
- tryCompare(root.button.ToolTip.toolTip, "visible", true)
-
- var shortcutActivatedSpy = signalSpy.createObject(root, { target: root.shortcut, signalName: "activated" })
- verify(shortcutActivatedSpy.valid)
- keyPress(Qt.Key_A)
- compare(shortcutActivatedSpy.count, 1)
- }
-
- Component {
- id: hoverComponent
- MouseArea {
- id: hoverArea
- property alias tooltip: tooltip
- hoverEnabled: true
- width: testCase.width
- height: testCase.height
- ToolTip {
- id: tooltip
- x: 10; y: 10
- width: 10; height: 10
- visible: hoverArea.containsMouse
- }
- }
- }
-
- // QTBUG-63644
- function test_hover() {
- var root = createTemporaryObject(hoverComponent, testCase)
- verify(root)
-
- var tooltip = root.tooltip
- verify(tooltip)
-
- for (var pos = 0; pos <= 25; pos += 5) {
- mouseMove(root, pos, pos)
- verify(tooltip.visible)
- }
- }
-
- Component {
- id: nonAttachedToolTipComponent
- ToolTip { }
- }
-
- function test_nonAttachedToolTipShowAndHide() {
- var tip = createTemporaryObject(nonAttachedToolTipComponent, testCase)
- verify(tip)
- tip.show("hello");
- verify(tip.visible)
- verify(tip.text === "hello")
- tip.hide()
- tryCompare(tip, "visible", false)
- tip.show("delay", 200)
- verify(tip.visible)
- tryCompare(tip, "visible", false)
- }
-
- Component {
- id: timeoutButtonRowComponent
-
- Row {
- Button {
- text: "Timeout: 1"
- ToolTip.text: text
- ToolTip.visible: down
- ToolTip.timeout: 1
- }
-
- Button {
- text: "Timeout: -1"
- ToolTip.text: text
- ToolTip.visible: down
- }
- }
- }
-
- // QTBUG-74226
- function test_attachedTimeout() {
- var row = createTemporaryObject(timeoutButtonRowComponent, testCase)
- verify(row)
-
- // Press the button that has no timeout; it should stay visible.
- var button2 = row.children[1]
- mousePress(button2)
- compare(button2.down, true)
- tryCompare(button2.ToolTip.toolTip, "opened", true)
-
- // Wait a bit to make sure that it's still visible.
- wait(50)
- compare(button2.ToolTip.toolTip.opened, true)
-
- // Release and should close.
- mouseRelease(button2)
- compare(button2.down, false)
- tryCompare(button2.ToolTip, "visible", false)
-
- // Now, press the first button that does have a timeout; it should close on its own eventually.
- var button1 = row.children[0]
- mousePress(button1)
- compare(button1.down, true)
- // We use a short timeout to speed up the test, but tryCompare(...opened, true) then
- // fails because the dialog has already been hidden by that point, so just check that it's
- // immediately visible, which is more or less the same thing.
- compare(button1.ToolTip.visible, true)
- tryCompare(button1.ToolTip, "visible", false)
- mouseRelease(button2)
-
- // Now, hover over the second button again. It should still stay visible until the mouse is released.
- mousePress(button2)
- compare(button2.down, true)
- tryCompare(button2.ToolTip.toolTip, "opened", true)
-
- // Wait a bit to make sure that it's still visible.
- wait(50)
- compare(button2.ToolTip.toolTip.opened, true)
-
- // Release and should close.
- mouseRelease(button2)
- compare(button2.down, false)
- tryCompare(button2.ToolTip, "visible", false)
- }
-}
diff --git a/tests/auto/controls/data/tst_tumbler.qml b/tests/auto/controls/data/tst_tumbler.qml
deleted file mode 100644
index 5b3ef6e3..00000000
--- a/tests/auto/controls/data/tst_tumbler.qml
+++ /dev/null
@@ -1,1260 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-
-TestCase {
- id: testCase
- width: 300
- height: 300
- visible: true
- when: windowShown
- name: "Tumbler"
-
- property var tumbler: null
- readonly property real implicitTumblerWidth: 60
- readonly property real implicitTumblerHeight: 200
- readonly property real defaultImplicitDelegateHeight: implicitTumblerHeight / 3
- readonly property real defaultListViewTumblerOffset: -defaultImplicitDelegateHeight
- readonly property real tumblerDelegateHeight: tumbler ? tumbler.availableHeight / tumbler.visibleItemCount : 0
- property Item tumblerView: null
-
- Component {
- id: tumblerComponent
-
- Tumbler {
- visibleItemCount: 3
- }
- }
-
- Component {
- id: itemComponent
-
- Item {
- anchors.fill: parent
- }
- }
-
- function createTumbler(args) {
- tumbler = createTemporaryObject(tumblerComponent, testCase, args);
- verify(tumbler, "Tumbler: failed to create an instance");
- tumblerView = findView(tumbler);
- verify(tumblerView);
- }
-
- function tumblerXCenter() {
- return tumbler.leftPadding + tumbler.width / 2;
- }
-
- function tumblerYCenter() {
- return tumbler.topPadding + tumbler.height / 2;
- }
-
- // visualItemIndex is from 0 to the amount of visible items.
- function itemCenterPos(visualItemIndex) {
- var halfDelegateHeight = tumblerDelegateHeight / 2;
- var yCenter = tumbler.y + tumbler.topPadding + halfDelegateHeight
- + (tumblerDelegateHeight * visualItemIndex);
- return Qt.point(tumblerXCenter(), yCenter);
- }
-
- function itemTopLeftPos(visualItemIndex) {
- return Qt.point(tumbler.leftPadding, tumbler.topPadding + (tumblerDelegateHeight * visualItemIndex));
- }
-
- function checkItemSizes() {
- var contentChildren = tumbler.wrap ? tumblerView.children : tumblerView.contentItem.children;
- verify(contentChildren.length >= tumbler.count);
- for (var i = 0; i < contentChildren.length; ++i) {
- compare(contentChildren[i].width, tumbler.availableWidth);
- compare(contentChildren[i].height, tumblerDelegateHeight);
- }
- }
-
- function findView(parent) {
- for (var i = 0; i < parent.children.length; ++i) {
- var child = parent.children[i];
- if (child.hasOwnProperty("currentIndex")) {
- return child;
- }
-
- var grandChild = findView(child);
- if (grandChild)
- return grandChild;
- }
-
- return null;
- }
-
- function findDelegateWithText(parent, text) {
- for (var i = 0; i < parent.children.length; ++i) {
- var child = parent.children[i];
- if (child.hasOwnProperty("text") && child.text === text) {
- return child;
- }
-
- var grandChild = findDelegateWithText(child, text);
- if (grandChild)
- return grandChild;
- }
-
- return null;
- }
-
- property Component noAttachedPropertiesDelegate: Text {
- text: modelData
- }
-
- function test_wrapWithoutAttachedProperties() {
- createTumbler();
- verify(tumbler.wrap);
-
- tumbler.delegate = noAttachedPropertiesDelegate;
- // Shouldn't assert.
- tumbler.wrap = false;
- verify(findView(tumbler));
- }
-
- // TODO: test that currentIndex is maintained between contentItem changes...
-// function tst_dynamicContentItemChange() {
-// }
-
- function test_currentIndex() {
- createTumbler();
- compare(tumbler.contentItem.parent, tumbler);
-
- tumbler.model = 5;
-
- compare(tumbler.currentIndex, 0);
- waitForRendering(tumbler);
-
- // Set it through user interaction.
- var pos = Qt.point(tumblerXCenter(), tumbler.height / 2);
- mouseDrag(tumbler, pos.x, pos.y, 0, tumbler.height / 3, Qt.LeftButton, Qt.NoModifier, 200);
- tryCompare(tumblerView, "offset", 1);
- compare(tumbler.currentIndex, 4);
- compare(tumblerView.currentIndex, 4);
-
- // Set it manually.
- tumbler.currentIndex = 2;
- tryCompare(tumbler, "currentIndex", 2);
- compare(tumblerView.currentIndex, 2);
-
- tumbler.model = null;
- tryCompare(tumbler, "currentIndex", -1);
- // PathView will only use 0 as the currentIndex when there are no items.
- compare(tumblerView.currentIndex, 0);
-
- tumbler.model = ["A", "B", "C"];
- tryCompare(tumbler, "currentIndex", 0);
-
- // Setting a negative current index should have no effect, because the model isn't empty.
- tumbler.currentIndex = -1;
- compare(tumbler.currentIndex, 0);
-
- tumbler.model = 1;
- compare(tumbler.currentIndex, 0);
-
- tumbler.model = 5;
- compare(tumbler.count, 5);
- tumblerView = findView(tumbler);
- tryCompare(tumblerView, "count", 5);
- tumbler.currentIndex = 4;
- compare(tumbler.currentIndex, 4);
- compare(tumblerView.currentIndex, 4);
-
- --tumbler.model;
- compare(tumbler.count, 4);
- compare(tumblerView.count, 4);
- // Removing an item from an integer-based model will cause views to reset their currentIndex to 0.
- compare(tumbler.currentIndex, 0);
- compare(tumblerView.currentIndex, 0);
-
- tumbler.model = 0;
- compare(tumbler.currentIndex, -1);
- }
-
- Component {
- id: currentIndexTumbler
-
- Tumbler {
- model: 5
- currentIndex: 2
- visibleItemCount: 3
- }
- }
-
- Component {
- id: currentIndexTumblerNoWrap
-
- Tumbler {
- model: 5
- currentIndex: 2
- wrap: false
- visibleItemCount: 3
- }
- }
-
- Component {
- id: currentIndexTumblerNoWrapReversedOrder
-
- Tumbler {
- model: 5
- wrap: false
- currentIndex: 2
- visibleItemCount: 3
- }
- }
-
- Component {
- id: negativeCurrentIndexTumblerNoWrap
-
- Tumbler {
- model: 5
- wrap: false
- currentIndex: -1
- visibleItemCount: 3
- }
- }
-
- Component {
- id: currentIndexTooLargeTumbler
-
- Tumbler {
- objectName: "currentIndexTooLargeTumbler"
- model: 10
- currentIndex: 10
- }
- }
-
-
- function test_currentIndexAtCreation_data() {
- return [
- { tag: "wrap: implicit, expected currentIndex: 2", currentIndex: 2, wrap: true, component: currentIndexTumbler },
- { tag: "wrap: false, expected currentIndex: 2", currentIndex: 2, wrap: false, component: currentIndexTumblerNoWrap },
- // Order of property assignments shouldn't matter
- { tag: "wrap: false, expected currentIndex: 2, reversed property assignment order",
- currentIndex: 2, wrap: false, component: currentIndexTumblerNoWrapReversedOrder },
- { tag: "wrap: false, expected currentIndex: 0", currentIndex: 0, wrap: false, component: negativeCurrentIndexTumblerNoWrap },
- { tag: "wrap: implicit, expected currentIndex: 0", currentIndex: 0, wrap: true, component: currentIndexTooLargeTumbler }
- ]
- }
-
- function test_currentIndexAtCreation(data) {
- // Test setting currentIndex at creation time
- tumbler = createTemporaryObject(data.component, testCase);
- verify(tumbler);
- // A "statically declared" currentIndex will be pending until the count has changed,
- // which happens when the model is set, which happens on the TumblerView's next polish.
- tryCompare(tumbler, "currentIndex", data.currentIndex);
-
- tumblerView = findView(tumbler);
- tryVerify(function() { return tumblerView.currentItem });
- compare(tumblerView.currentIndex, data.currentIndex);
- compare(tumblerView.currentItem.text, data.currentIndex.toString());
-
- if (data.wrap) {
- tryCompare(tumblerView, "offset", data.currentIndex > 0 ? tumblerView.count - data.currentIndex : 0);
- } else {
- tryCompare(tumblerView, "contentY", tumblerDelegateHeight * data.currentIndex - tumblerView.preferredHighlightBegin);
- }
- }
-
- function test_keyboardNavigation() {
- createTumbler();
-
- tumbler.model = 5;
- tumbler.forceActiveFocus();
- tumblerView.highlightMoveDuration = 0;
-
- // Navigate upwards through entire wheel.
- for (var j = 0; j < tumbler.count - 1; ++j) {
- keyClick(Qt.Key_Up, Qt.NoModifier);
- tryCompare(tumblerView, "offset", j + 1);
- compare(tumbler.currentIndex, tumbler.count - 1 - j);
- }
-
- keyClick(Qt.Key_Up, Qt.NoModifier);
- tryCompare(tumblerView, "offset", 0);
- compare(tumbler.currentIndex, 0);
-
- // Navigate downwards through entire wheel.
- for (j = 0; j < tumbler.count - 1; ++j) {
- keyClick(Qt.Key_Down, Qt.NoModifier);
- tryCompare(tumblerView, "offset", tumbler.count - 1 - j);
- compare(tumbler.currentIndex, j + 1);
- }
-
- keyClick(Qt.Key_Down, Qt.NoModifier);
- tryCompare(tumblerView, "offset", 0);
- compare(tumbler.currentIndex, 0);
- }
-
- function test_itemsCorrectlyPositioned() {
- createTumbler();
-
- tumbler.model = 4;
- tumbler.height = 120;
- compare(tumblerDelegateHeight, 40);
- checkItemSizes();
-
- wait(tumblerView.highlightMoveDuration);
- var firstItemCenterPos = itemCenterPos(1);
- var firstItem = tumblerView.itemAt(firstItemCenterPos.x, firstItemCenterPos.y);
- var actualPos = testCase.mapFromItem(firstItem, 0, 0);
- compare(actualPos.x, tumbler.leftPadding);
- compare(actualPos.y, tumbler.topPadding + 40);
-
- tumbler.forceActiveFocus();
- keyClick(Qt.Key_Down);
- tryCompare(tumblerView, "offset", 3.0);
- tryCompare(tumbler, "moving", false);
- firstItemCenterPos = itemCenterPos(0);
- firstItem = tumblerView.itemAt(firstItemCenterPos.x, firstItemCenterPos.y);
- verify(firstItem);
- // Test QTBUG-40298.
- actualPos = testCase.mapFromItem(firstItem, 0, 0);
- fuzzyCompare(actualPos.x, tumbler.leftPadding, 0.0001);
- fuzzyCompare(actualPos.y, tumbler.topPadding, 0.0001);
-
- var secondItemCenterPos = itemCenterPos(1);
- var secondItem = tumblerView.itemAt(secondItemCenterPos.x, secondItemCenterPos.y);
- verify(secondItem);
- verify(firstItem.y < secondItem.y);
-
- var thirdItemCenterPos = itemCenterPos(2);
- var thirdItem = tumblerView.itemAt(thirdItemCenterPos.x, thirdItemCenterPos.y);
- verify(thirdItem);
- verify(firstItem.y < thirdItem.y);
- verify(secondItem.y < thirdItem.y);
- }
-
- function test_focusPastTumbler() {
- tumbler = createTemporaryObject(tumblerComponent, testCase);
- verify(tumbler);
-
- var mouseArea = createTemporaryQmlObject(
- "import QtQuick 2.2; TextInput { activeFocusOnTab: true; width: 50; height: 50 }", testCase, "");
-
- tumbler.forceActiveFocus();
- verify(tumbler.activeFocus);
-
- keyClick(Qt.Key_Tab);
- verify(!tumbler.activeFocus);
- verify(mouseArea.activeFocus);
- }
-
- function test_datePicker() {
- var component = Qt.createComponent("TumblerDatePicker.qml");
- compare(component.status, Component.Ready, component.errorString());
- tumbler = createTemporaryObject(component, testCase);
- // Should not be any warnings.
-
- tryCompare(tumbler.dayTumbler, "currentIndex", 0);
- compare(tumbler.dayTumbler.count, 31);
- compare(tumbler.monthTumbler.currentIndex, 0);
- compare(tumbler.monthTumbler.count, 12);
- compare(tumbler.yearTumbler.currentIndex, 0);
- tryCompare(tumbler.yearTumbler, "count", 100);
-
- verify(findView(tumbler.dayTumbler).children.length >= tumbler.dayTumbler.visibleItemCount);
- verify(findView(tumbler.monthTumbler).children.length >= tumbler.monthTumbler.visibleItemCount);
- // TODO: do this properly somehow
- wait(100);
- verify(findView(tumbler.yearTumbler).children.length >= tumbler.yearTumbler.visibleItemCount);
-
- // March.
- tumbler.monthTumbler.currentIndex = 2;
- tryCompare(tumbler.monthTumbler, "currentIndex", 2);
-
- // 30th of March.
- tumbler.dayTumbler.currentIndex = 29;
- tryCompare(tumbler.dayTumbler, "currentIndex", 29);
-
- // February.
- tumbler.monthTumbler.currentIndex = 1;
- tryCompare(tumbler.monthTumbler, "currentIndex", 1);
- tryCompare(tumbler.dayTumbler, "currentIndex", 27);
- }
-
- Component {
- id: timePickerComponent
-
- Row {
- property alias minuteTumbler: minuteTumbler
- property alias amPmTumbler: amPmTumbler
-
- Tumbler {
- id: minuteTumbler
- currentIndex: 6
- model: 60
- width: 50
- height: 150
- }
-
- Tumbler {
- id: amPmTumbler
- model: ["AM", "PM"]
- width: 50
- height: 150
- contentItem: ListView {
- anchors.fill: parent
- model: amPmTumbler.model
- delegate: amPmTumbler.delegate
- }
- }
- }
- }
-
- function test_listViewTimePicker() {
- var root = createTemporaryObject(timePickerComponent, testCase);
- verify(root);
-
- mouseDrag(root.minuteTumbler, root.minuteTumbler.width / 2, root.minuteTumbler.height / 2, 0, 50);
- // Shouldn't crash.
- mouseDrag(root.amPmTumbler, root.amPmTumbler.width / 2, root.amPmTumbler.height / 2, 0, 50);
- }
-
- function test_displacement_data() {
- var data = [
- // At 0 offset, the first item is current.
- { count: 6, index: 0, offset: 0, expectedDisplacement: 0 },
- { count: 6, index: 1, offset: 0, expectedDisplacement: -1 },
- { count: 6, index: 5, offset: 0, expectedDisplacement: 1 },
- // When we start to move the first item down, the second item above it starts to become current.
- { count: 6, index: 0, offset: 0.25, expectedDisplacement: -0.25 },
- { count: 6, index: 1, offset: 0.25, expectedDisplacement: -1.25 },
- { count: 6, index: 5, offset: 0.25, expectedDisplacement: 0.75 },
- { count: 6, index: 0, offset: 0.5, expectedDisplacement: -0.5 },
- { count: 6, index: 1, offset: 0.5, expectedDisplacement: -1.5 },
- { count: 6, index: 5, offset: 0.5, expectedDisplacement: 0.5 },
- // By this stage, the delegate at index 1 is destroyed, so we can't test its displacement.
- { count: 6, index: 0, offset: 0.75, expectedDisplacement: -0.75 },
- { count: 6, index: 5, offset: 0.75, expectedDisplacement: 0.25 },
- { count: 6, index: 0, offset: 4.75, expectedDisplacement: 1.25 },
- { count: 6, index: 1, offset: 4.75, expectedDisplacement: 0.25 },
- { count: 6, index: 0, offset: 4.5, expectedDisplacement: 1.5 },
- { count: 6, index: 1, offset: 4.5, expectedDisplacement: 0.5 },
- { count: 6, index: 0, offset: 4.25, expectedDisplacement: 1.75 },
- { count: 6, index: 1, offset: 4.25, expectedDisplacement: 0.75 },
- // count == visibleItemCount
- { count: 3, index: 0, offset: 0, expectedDisplacement: 0 },
- { count: 3, index: 1, offset: 0, expectedDisplacement: -1 },
- { count: 3, index: 2, offset: 0, expectedDisplacement: 1 },
- // count < visibleItemCount
- { count: 2, index: 0, offset: 0, expectedDisplacement: 0 },
- { count: 2, index: 1, offset: 0, expectedDisplacement: 1 },
- // count == 1
- { count: 1, index: 0, offset: 0, expectedDisplacement: 0 }
- ];
- for (var i = 0; i < data.length; ++i) {
- var row = data[i];
- row.tag = "delegate" + row.index + " offset=" + row.offset + " expectedDisplacement=" + row.expectedDisplacement;
- }
- return data;
- }
-
- property Component displacementDelegate: Text {
- objectName: "delegate" + index
- text: modelData
- opacity: 0.2 + Math.max(0, 1 - Math.abs(Tumbler.displacement)) * 0.8
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
-
- Text {
- text: parent.displacement.toFixed(2)
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
- }
-
- property real displacement: Tumbler.displacement
- }
-
- function test_displacement(data) {
- createTumbler();
-
- // TODO: test setting these in the opposite order (delegate after model
- // doesn't seem to cause a change in delegates in PathView)
- tumbler.wrap = true;
- tumbler.delegate = displacementDelegate;
- tumbler.model = data.count;
- compare(tumbler.count, data.count);
-
- var delegate = findChild(tumblerView, "delegate" + data.index);
- verify(delegate);
-
- tumblerView.offset = data.offset;
- compare(delegate.displacement, data.expectedDisplacement);
-
- // test displacement after adding and removing items
- }
-
- function test_wrap() {
- createTumbler();
-
- tumbler.model = 5;
- compare(tumbler.count, 5);
-
- tumbler.currentIndex = 2;
- compare(tumblerView.currentIndex, 2);
-
- tumbler.wrap = false;
- tumblerView = findView(tumbler);
- compare(tumbler.count, 5);
- compare(tumbler.currentIndex, 2);
- // Tumbler's count hasn't changed (the model hasn't changed),
- // but the new view needs time to instantiate its items.
- tryCompare(tumblerView, "count", 5);
- compare(tumblerView.currentIndex, 2);
- }
-
- Component {
- id: twoItemTumbler
-
- Tumbler {
- model: 2
- }
- }
-
- Component {
- id: tenItemTumbler
-
- Tumbler {
- model: 10
- }
- }
-
- function test_countWrap() {
- tumbler = createTemporaryObject(tumblerComponent, testCase);
- verify(tumbler);
-
- // Check that a count that is less than visibleItemCount results in wrap being set to false.
- verify(2 < tumbler.visibleItemCount);
- tumbler.model = 2;
- compare(tumbler.count, 2);
- compare(tumbler.wrap, false);
- }
-
- function test_explicitlyNonwrapping() {
- // Check that explicitly setting wrap to false works even when it was implicitly false.
- var explicitlyNonWrapping = createTemporaryObject(twoItemTumbler, testCase);
- verify(explicitlyNonWrapping);
- tryCompare(explicitlyNonWrapping, "wrap", false);
-
- explicitlyNonWrapping.wrap = false;
- // wrap shouldn't be set to true now that there are more items than there are visible ones.
- verify(10 > explicitlyNonWrapping.visibleItemCount);
- explicitlyNonWrapping.model = 10;
- compare(explicitlyNonWrapping.wrap, false);
-
- // Test resetting wrap back to the default behavior.
- explicitlyNonWrapping.wrap = undefined;
- compare(explicitlyNonWrapping.wrap, true);
- }
-
- function test_explicitlyWrapping() {
- // Check that explicitly setting wrap to true works even when it was implicitly true.
- var explicitlyWrapping = createTemporaryObject(tenItemTumbler, testCase);
- verify(explicitlyWrapping);
- compare(explicitlyWrapping.wrap, true);
-
- explicitlyWrapping.wrap = true;
- // wrap shouldn't be set to false now that there are more items than there are visible ones.
- explicitlyWrapping.model = 2;
- compare(explicitlyWrapping.wrap, true);
-
- // Test resetting wrap back to the default behavior.
- explicitlyWrapping.wrap = undefined;
- compare(explicitlyWrapping.wrap, false);
- }
-
- Component {
- id: customListViewTumblerComponent
-
- Tumbler {
- id: listViewTumbler
-
- contentItem: ListView {
- anchors.fill: parent
- model: listViewTumbler.model
- delegate: listViewTumbler.delegate
-
- snapMode: ListView.SnapToItem
- highlightRangeMode: ListView.StrictlyEnforceRange
- preferredHighlightBegin: height / 2 - (height / listViewTumbler.visibleItemCount / 2)
- preferredHighlightEnd: height / 2 + (height / listViewTumbler.visibleItemCount / 2)
- clip: true
- }
- }
- }
-
- Component {
- id: customPathViewTumblerComponent
-
- Tumbler {
- id: pathViewTumbler
-
- contentItem: PathView {
- id: pathView
- model: pathViewTumbler.model
- delegate: pathViewTumbler.delegate
- clip: true
- pathItemCount: pathViewTumbler.visibleItemCount + 1
- preferredHighlightBegin: 0.5
- preferredHighlightEnd: 0.5
- dragMargin: width / 2
-
- path: Path {
- startX: pathView.width / 2
- startY: -pathView.delegateHeight / 2
- PathLine {
- x: pathView.width / 2
- y: pathView.pathItemCount * pathView.delegateHeight - pathView.delegateHeight / 2
- }
- }
-
- property real delegateHeight: pathViewTumbler.availableHeight / pathViewTumbler.visibleItemCount
- }
- }
- }
-
- function test_customContentItemAtConstruction_data() {
- return [
- { tag: "ListView", component: customListViewTumblerComponent },
- { tag: "PathView", component: customPathViewTumblerComponent }
- ];
- }
-
- function test_customContentItemAtConstruction(data) {
- var tumbler = createTemporaryObject(data.component, testCase);
- // Shouldn't assert.
-
- tumbler.model = 5;
- compare(tumbler.count, 5);
-
- tumbler.currentIndex = 2;
- var tumblerView = findView(tumbler);
- compare(tumblerView.currentIndex, 2);
-
- tumblerView.incrementCurrentIndex();
- compare(tumblerView.currentIndex, 3);
- compare(tumbler.currentIndex, 3);
-
- // Shouldn't have any affect.
- tumbler.wrap = false;
- compare(tumbler.count, 5);
- compare(tumblerView.currentIndex, 3);
- compare(tumbler.currentIndex, 3);
- }
-
- function findFirstDelegateWithText(view, text) {
- var delegate = null;
- var contentItem = view.hasOwnProperty("contentItem") ? view.contentItem : view;
- for (var i = 0; i < contentItem.children.length && !delegate; ++i) {
- var child = contentItem.children[i];
- if (child.hasOwnProperty("text") && child.text === text)
- delegate = child;
- }
- return delegate;
- }
-
- function test_customContentItemAfterConstruction_data() {
- return [
- { tag: "ListView", componentPath: "TumblerListView.qml" },
- { tag: "PathView", componentPath: "TumblerPathView.qml" }
- ];
- }
-
- function test_customContentItemAfterConstruction(data) {
- createTumbler();
-
- tumbler.model = 5;
- compare(tumbler.count, 5);
-
- tumbler.currentIndex = 2;
- compare(tumblerView.currentIndex, 2);
-
- var contentItemComponent = Qt.createComponent(data.componentPath);
- compare(contentItemComponent.status, Component.Ready);
-
- var customContentItem = createTemporaryObject(contentItemComponent, tumbler);
- tumbler.contentItem = customContentItem;
- compare(tumbler.count, 5);
- tumblerView = findView(tumbler);
- compare(tumblerView.currentIndex, 2);
-
- var delegate = findFirstDelegateWithText(tumblerView, "Custom2");
- verify(delegate);
- compare(delegate.height, defaultImplicitDelegateHeight);
- tryCompare(delegate.Tumbler, "displacement", 0);
-
- tumblerView.incrementCurrentIndex();
- compare(tumblerView.currentIndex, 3);
- compare(tumbler.currentIndex, 3);
- }
-
- function test_displacementListView_data() {
- var offset = defaultListViewTumblerOffset;
-
- var data = [
- // At 0 contentY, the first item is current.
- { contentY: offset, expectedDisplacements: [
- { index: 0, displacement: 0 },
- { index: 1, displacement: -1 },
- { index: 2, displacement: -2 } ]
- },
- // When we start to move the first item down, the second item above it starts to become current.
- { contentY: offset + defaultImplicitDelegateHeight * 0.25, expectedDisplacements: [
- { index: 0, displacement: 0.25 },
- { index: 1, displacement: -0.75 },
- { index: 2, displacement: -1.75 } ]
- },
- { contentY: offset + defaultImplicitDelegateHeight * 0.5, expectedDisplacements: [
- { index: 0, displacement: 0.5 },
- { index: 1, displacement: -0.5 },
- { index: 2, displacement: -1.5 } ]
- },
- { contentY: offset + defaultImplicitDelegateHeight * 0.75, expectedDisplacements: [
- { index: 0, displacement: 0.75 },
- { index: 1, displacement: -0.25 } ]
- },
- { contentY: offset + defaultImplicitDelegateHeight * 3.5, expectedDisplacements: [
- { index: 3, displacement: 0.5 },
- { index: 4, displacement: -0.5 } ]
- }
- ];
- for (var i = 0; i < data.length; ++i) {
- var row = data[i];
- row.tag = "contentY=" + row.contentY;
- }
- return data;
- }
-
- function test_displacementListView(data) {
- createTumbler();
-
- tumbler.wrap = false;
- tumbler.delegate = displacementDelegate;
- tumbler.model = 5;
- compare(tumbler.count, 5);
- // Ensure assumptions about the tumbler used in our data() function are correct.
- tumblerView = findView(tumbler);
- compare(tumblerView.contentY, -defaultImplicitDelegateHeight);
- var delegateCount = 0;
- var listView = tumblerView;
- var listViewContentItem = tumblerView.contentItem;
-
- // We use the mouse instead of setting contentY directly, otherwise the
- // items snap back into place. This doesn't seem to be an issue for
- // PathView for some reason.
- //
- // I tried lots of things to get this test to work with small changes
- // in ListView's contentY (to match the tests for a PathView-based Tumbler), but they didn't work:
- //
- // - Pressing once and then directly moving the mouse to the correct location
- // - Pressing once and interpolating the mouse position to the correct location
- // - Pressing once and doing some dragging up and down to trigger the
- // overThreshold of QQuickFlickable
- //
- // Even after the last item above, QQuickFlickable wouldn't consider it a drag.
- // It seems that overThreshold is set too late, and because the drag distance is quite small
- // to begin with, nothing changes (the displacement was always very close to 0 in the end).
-
- // Ensure that we at least cover the distance required to reach the desired contentY.
- var distanceToReachContentY = data.contentY - defaultListViewTumblerOffset;
- var distance = Math.abs(distanceToReachContentY) + tumbler.height / 2;
- // If distanceToReachContentY is 0, we're testing 0 displacement, so we don't need to do anything.
- if (distanceToReachContentY != 0) {
- mousePress(tumbler, tumblerXCenter(), tumblerYCenter());
-
- var dragDirection = distanceToReachContentY > 0 ? -1 : 1;
- for (var i = 0; i < distance && Math.floor(listView.contentY) !== Math.floor(data.contentY); ++i) {
- mouseMove(tumbler, tumblerXCenter(), tumblerYCenter() + i * dragDirection);
- wait(1); // because Flickable pays attention to velocity, we need some time between movements (qtdeclarative ebf07c3)
- }
- }
-
- for (var i = 0; i < data.expectedDisplacements.length; ++i) {
- var delegate = findChild(listViewContentItem, "delegate" + data.expectedDisplacements[i].index);
- verify(delegate);
- compare(delegate.height, defaultImplicitDelegateHeight);
- // Due to the way we must perform this test, we can't expect high precision.
- var expectedDisplacement = data.expectedDisplacements[i].displacement;
- fuzzyCompare(delegate.displacement, expectedDisplacement, 0.1,
- "Delegate of ListView-based Tumbler at index " + data.expectedDisplacements[i].index
- + " has displacement of " + delegate.displacement + " when it should be " + expectedDisplacement);
- }
-
- if (distanceToReachContentY != 0)
- mouseRelease(tumbler, tumblerXCenter(), itemCenterPos(1) + (data.contentY - defaultListViewTumblerOffset), Qt.LeftButton);
- }
-
- function test_listViewFlickAboveBounds_data() {
- // Tests that flicking above the bounds when already at the top of the
- // tumbler doesn't result in an incorrect displacement.
- var data = [];
- // Less than two items doesn't make sense. The default visibleItemCount
- // is 3, so we test a bit more than double that.
- for (var i = 2; i <= 7; ++i) {
- data.push({ tag: i + " items", model: i });
- }
- return data;
- }
-
- function test_listViewFlickAboveBounds(data) {
- createTumbler();
-
- tumbler.wrap = false;
- tumbler.delegate = displacementDelegate;
- tumbler.model = data.model;
- tumblerView = findView(tumbler);
-
- mousePress(tumbler, tumblerXCenter(), tumblerYCenter());
-
- // Ensure it's stationary.
- var listView = tumblerView;
- compare(listView.contentY, defaultListViewTumblerOffset);
-
- // We could just move up until the contentY changed, but this is safer.
- var distance = tumbler.height;
- var changed = false;
-
- for (var i = 0; i < distance && !changed; ++i) {
- mouseMove(tumbler, tumblerXCenter(), tumblerYCenter() + i, 10);
-
- // Don't test until the contentY has actually changed.
- if (Math.abs(listView.contentY) - listView.preferredHighlightBegin > 0.01) {
-
- for (var delegateIndex = 0; delegateIndex < Math.min(tumbler.count, tumbler.visibleItemCount); ++delegateIndex) {
- var delegate = findChild(listView.contentItem, "delegate" + delegateIndex);
- verify(delegate);
-
- verify(delegate.displacement <= -delegateIndex, "Delegate at index " + delegateIndex + " has a displacement of "
- + delegate.displacement + " when it should be less than or equal to " + -delegateIndex);
- verify(delegate.displacement > -delegateIndex - 0.1, "Delegate at index 0 has a displacement of "
- + delegate.displacement + " when it should be greater than ~ " + -delegateIndex - 0.1);
- }
-
- changed = true;
- }
- }
-
- // Sanity check that something was actually tested.
- verify(changed);
-
- mouseRelease(tumbler, tumblerXCenter(), tumbler.topPadding);
- }
-
- property Component objectNameDelegate: Text {
- objectName: "delegate" + index
- text: modelData
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
-
- function test_visibleItemCount_data() {
- var data = [
- // e.g. {0: 2} = {delegate index: y pos / delegate height}
- // Skip item at index 3, because it's out of view.
- { model: 6, visibleItemCount: 5, expectedYPositions: {0: 2, 1: 3, 2: 4, 4: 0} },
- { model: 5, visibleItemCount: 3, expectedYPositions: {0: 1, 1: 2, 4: 0} },
- // Takes up the whole view.
- { model: 2, visibleItemCount: 1, expectedYPositions: {0: 0} },
- ];
-
- for (var i = 0; i < data.length; ++i) {
- data[i].tag = "items=" + data[i].model + ", visibleItemCount=" + data[i].visibleItemCount;
- }
- return data;
- }
-
- function test_visibleItemCount(data) {
- createTumbler();
-
- tumbler.delegate = objectNameDelegate;
- tumbler.visibleItemCount = data.visibleItemCount;
-
- tumbler.model = data.model;
- compare(tumbler.count, data.model);
-
- for (var delegateIndex = 0; delegateIndex < data.visibleItemCount; ++delegateIndex) {
- if (data.expectedYPositions.hasOwnProperty(delegateIndex)) {
- var delegate = findChild(tumblerView, "delegate" + delegateIndex);
- verify(delegate, "Delegate found at index " + delegateIndex);
- var expectedYPos = data.expectedYPositions[delegateIndex] * tumblerDelegateHeight;
- compare(delegate.mapToItem(tumbler.contentItem, 0, 0).y, expectedYPos);
- }
- }
- }
-
- property Component wrongDelegateTypeComponent: QtObject {
- property real displacement: Tumbler.displacement
- }
-
- property Component noParentDelegateComponent: Item {
- property real displacement: Tumbler.displacement
- }
-
- function test_attachedProperties() {
- tumbler = createTemporaryObject(tumblerComponent, testCase);
- verify(tumbler);
-
- // TODO: crashes somewhere in QML's guts
-// tumbler.model = 5;
-// tumbler.delegate = wrongDelegateTypeComponent;
-// ignoreWarning("Attached properties of Tumbler must be accessed from within a delegate item");
-// // Cause displacement to be changed. The warning isn't triggered if we don't do this.
-// tumbler.contentItem.offset += 1;
-
- ignoreWarning("Tumbler: attached properties must be accessed through a delegate item that has a parent");
- createTemporaryObject(noParentDelegateComponent, null);
-
- ignoreWarning("Tumbler: attempting to access attached property on item without an \"index\" property");
- var object = createTemporaryObject(noParentDelegateComponent, testCase);
- verify(object);
- }
-
- property Component paddingDelegate: Text {
- objectName: "delegate" + index
- text: modelData
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
-
- Rectangle {
- anchors.fill: parent
- color: "transparent"
- border.color: "red"
- border.width: 1
- }
- }
-
- function test_padding_data() {
- var data = [];
-
- data.push({ padding: 0 });
- data.push({ padding: 10 });
- data.push({ left: 10, top: 10 });
- data.push({ right: 10, bottom: 10 });
-
- for (var i = 0; i < data.length; ++i) {
- var tag = "";
-
- if (data[i].padding !== undefined)
- tag += "padding: " + data[i].padding + " ";
- if (data[i].left !== undefined)
- tag += "left: " + data[i].left + " ";
- if (data[i].right !== undefined)
- tag += "right: " + data[i].right + " ";
- if (data[i].top !== undefined)
- tag += "top: " + data[i].top + " ";
- if (data[i].bottom !== undefined)
- tag += "bottom: " + data[i].bottom + " ";
- tag = tag.slice(0, -1);
-
- data[i].tag = tag;
- }
-
- return data;
- }
-
- function test_padding(data) {
- createTumbler();
-
- tumbler.delegate = paddingDelegate;
- tumbler.model = 5;
- compare(tumbler.padding, 0);
- compare(tumbler.leftPadding, 0);
- compare(tumbler.rightPadding, 0);
- compare(tumbler.topPadding, 0);
- compare(tumbler.bottomPadding, 0);
- compare(tumbler.contentItem.x, 0);
- compare(tumbler.contentItem.y, 0);
-
- if (data.padding !== undefined)
- tumbler.padding = data.padding;
- if (data.left !== undefined)
- tumbler.leftPadding = data.left;
- if (data.right !== undefined)
- tumbler.rightPadding = data.right;
- if (data.top !== undefined)
- tumbler.topPadding = data.top;
- if (data.bottom !== undefined)
- tumbler.bottomPadding = data.bottom;
-
- compare(tumbler.availableWidth, tumbler.implicitWidth - tumbler.leftPadding - tumbler.rightPadding);
- compare(tumbler.availableHeight, tumbler.implicitHeight - tumbler.topPadding - tumbler.bottomPadding);
- compare(tumbler.contentItem.x, tumbler.leftPadding);
- compare(tumbler.contentItem.y, tumbler.topPadding);
-
- var pathView = tumbler.contentItem;
- var expectedDelegateHeight = tumbler.availableHeight / tumbler.visibleItemCount;
- var itemIndicesInVisualOrder = [4, 0, 1];
- for (var i = 0; i < itemIndicesInVisualOrder.length; ++i) {
- var delegate = findChild(pathView, "delegate" + itemIndicesInVisualOrder[i]);
- verify(delegate, "Couldn't find delegate at index " + itemIndicesInVisualOrder[i]
- + " (iteration " + i + " out of " + (pathView.children.length - 1) + ")");
-
- compare(delegate.width, tumbler.availableWidth);
- compare(delegate.height, expectedDelegateHeight);
-
- var expectedY = tumbler.topPadding + i * expectedDelegateHeight;
- var mappedPos = delegate.mapToItem(null, delegate.width / 2, 0);
- fuzzyCompare(mappedPos.y, expectedY, 0.5,
- "Tumbler's PathView delegate at index " + itemIndicesInVisualOrder[i]
- + " should have a y pos of " + expectedY + ", but it's actually " + mappedPos.y.toFixed(20));
-
- var expectedX = tumbler.leftPadding;
- compare(delegate.mapToItem(null, 0, 0).x, expectedX,
- "Tumbler's PathView delegate at index " + itemIndicesInVisualOrder[i]
- + " should have a x pos of " + expectedX + ", but it's actually " + mappedPos.x.toFixed(20));
- }
-
- // Force new items to be created, as there was a bug where the path was correct until this happened.
- compare(tumblerView.offset, 0);
- ++tumbler.currentIndex;
- tryCompare(tumblerView, "offset", 4, tumblerView.highlightMoveDuration * 2);
- }
-
- function test_moving_data() {
- return [
- { tag: "wrap:true", wrap: true },
- { tag: "wrap:false", wrap: false }
- ]
- }
-
- function test_moving(data) {
- createTumbler({wrap: data.wrap, model: 5})
- compare(tumbler.wrap, data.wrap)
- compare(tumbler.moving, false)
-
- waitForRendering(tumbler)
-
- mousePress(tumbler, tumbler.width / 2, tumbler.height / 2, Qt.LeftButton)
- compare(tumbler.moving, false)
-
- for (var y = tumbler.height / 2; y >= tumbler.height / 4; y -= 10)
- mouseMove(tumbler, tumbler.width / 2, y, 1)
- compare(tumbler.moving, true)
-
- mouseRelease(tumbler, tumbler.width / 2, tumbler.height / 4, Qt.LeftButton)
- compare(tumbler.moving, true)
- tryCompare(tumbler, "moving", false)
- }
-
- Component {
- id: qtbug61374Component
-
- Row {
- property alias tumbler: tumbler
- property alias label: label
-
- Component.onCompleted: {
- tumbler.currentIndex = 2
- }
-
- Tumbler {
- id: tumbler
- model: 5
- // ...
- }
-
- Label {
- id: label
- text: tumbler.currentItem.text
- }
- }
- }
-
- function test_qtbug61374() {
- var row = createTemporaryObject(qtbug61374Component, testCase);
- verify(row);
-
- var tumbler = row.tumbler;
- tryCompare(tumbler, "currentIndex", 2);
-
- tumblerView = findView(tumbler);
-
- var label = row.label;
- compare(label.text, "2");
- }
-
- function test_positionViewAtIndex_data() {
- return [
- // Should be 20, 21, ... but there is a documented limitation for this in positionViewAtIndex()'s docs.
- { tag: "wrap=true, mode=Beginning", wrap: true, mode: Tumbler.Beginning, expectedVisibleIndices: [21, 22, 23, 24, 25] },
- { tag: "wrap=true, mode=Center", wrap: true, mode: Tumbler.Center, expectedVisibleIndices: [18, 19, 20, 21, 22] },
- { tag: "wrap=true, mode=End", wrap: true, mode: Tumbler.End, expectedVisibleIndices: [16, 17, 18, 19, 20] },
- // Same as Beginning; should start at 20.
- { tag: "wrap=true, mode=Contain", wrap: true, mode: Tumbler.Contain, expectedVisibleIndices: [21, 22, 23, 24, 25] },
- { tag: "wrap=true, mode=SnapPosition", wrap: true, mode: Tumbler.SnapPosition, expectedVisibleIndices: [18, 19, 20, 21, 22] },
- { tag: "wrap=false, mode=Beginning", wrap: false, mode: Tumbler.Beginning, expectedVisibleIndices: [20, 21, 22, 23, 24] },
- { tag: "wrap=false, mode=Center", wrap: false, mode: Tumbler.Center, expectedVisibleIndices: [18, 19, 20, 21, 22] },
- { tag: "wrap=false, mode=End", wrap: false, mode: Tumbler.End, expectedVisibleIndices: [16, 17, 18, 19, 20] },
- { tag: "wrap=false, mode=Visible", wrap: false, mode: Tumbler.Visible, expectedVisibleIndices: [16, 17, 18, 19, 20] },
- { tag: "wrap=false, mode=Contain", wrap: false, mode: Tumbler.Contain, expectedVisibleIndices: [16, 17, 18, 19, 20] },
- { tag: "wrap=false, mode=SnapPosition", wrap: false, mode: Tumbler.SnapPosition, expectedVisibleIndices: [18, 19, 20, 21, 22] }
- ]
- }
-
- function test_positionViewAtIndex(data) {
- createTumbler({ wrap: data.wrap, model: 40, visibleItemCount: 5 })
- compare(tumbler.wrap, data.wrap)
-
- waitForRendering(tumbler)
-
- tumbler.positionViewAtIndex(20, data.mode)
- tryCompare(tumbler, "moving", false)
-
- compare(tumbler.visibleItemCount, 5)
- for (var i = 0; i < 5; ++i) {
- // Find the item through its text, as that's easier than child/itemAt().
- var text = data.expectedVisibleIndices[i].toString()
- var item = findDelegateWithText(tumblerView, text)
- verify(item, "found no item with text \"" + text + "\"")
- compare(item.text, data.expectedVisibleIndices[i].toString())
-
- // Ensure that it's at the position we expect.
- var expectedPos = itemTopLeftPos(i)
- var actualPos = testCase.mapFromItem(item, 0, 0)
- compare(actualPos.x, expectedPos.x, "expected delegate with text " + item.text
- + " to have an x pos of " + expectedPos.x + " but it was " + actualPos.x)
- compare(actualPos.y, expectedPos.y, "expected delegate with text " + item.text
- + " to have an y pos of " + expectedPos.y + " but it was " + actualPos.y)
- }
- }
-
- Component {
- id: setCurrentIndexOnImperativeModelChangeComponent
-
- Tumbler {
- onModelChanged: currentIndex = model - 2
- }
- }
-
- function test_setCurrentIndexOnImperativeModelChange() {
- var tumbler = createTemporaryObject(setCurrentIndexOnImperativeModelChangeComponent, testCase);
- verify(tumbler);
-
- tumbler.model = 4
- compare(tumbler.count, 4);
- tumblerView = findView(tumbler);
- tryCompare(tumblerView, "count", 4);
-
- // 4 - 2 = 2
- compare(tumbler.currentIndex, 2);
-
- ++tumbler.model;
- compare(tumbler.count, 5);
- compare(tumbler.wrap, true);
- tumblerView = findView(tumbler);
- tryCompare(tumblerView, "count", 5);
- // 5 - 2 = 3
- compare(tumbler.currentIndex, 3);
- }
-
- Component {
- id: setCurrentIndexOnDeclarativeModelChangeComponent
-
- Item {
- property alias tumbler: tumbler
-
- property int setting: 4
-
- Tumbler {
- id: tumbler
- model: setting
- onModelChanged: currentIndex = model - 2
- }
- }
- }
-
- function test_setCurrentIndexOnDeclarativeModelChange() {
- var root = createTemporaryObject(setCurrentIndexOnDeclarativeModelChangeComponent, testCase);
- verify(root);
-
- var tumbler = root.tumbler;
- compare(tumbler.count, 4);
- compare(tumbler.wrap, false);
- tumblerView = findView(tumbler);
- tryCompare(tumblerView, "count", 4);
- // 4 - 2 = 2
- compare(tumbler.currentIndex, 2);
-
- ++root.setting;
- compare(tumbler.count, 5);
- compare(tumbler.wrap, true);
- tumblerView = findView(tumbler);
- tryCompare(tumblerView, "count", 5);
- // 5 - 2 = 3
- compare(tumbler.currentIndex, 3);
- }
-
- function test_displacementAfterResizing() {
- createTumbler({
- width: 200,
- wrap: false,
- delegate: displacementDelegate,
- model: 30,
- visibleItemCount: 7,
- currentIndex: 15
- })
-
- var delegate = findChild(tumblerView, "delegate15")
- verify(delegate)
-
- tryCompare(delegate, "displacement", 0)
-
- // Resizing the Tumbler shouldn't affect the displacement.
- tumbler.height *= 1.4
- tryCompare(delegate, "displacement", 0)
- }
-}
diff --git a/tests/auto/controls/default/default.pro b/tests/auto/controls/default/default.pro
deleted file mode 100644
index 290edc5f..00000000
--- a/tests/auto/controls/default/default.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-TEMPLATE = app
-TARGET = tst_default
-CONFIG += qmltestcase
-
-DEFINES += TST_CONTROLS_DATA=\\\"$$QQC2_SOURCE_TREE/tests/auto/controls/data\\\"
-
-SOURCES += \
- $$PWD/tst_default.cpp
-
-OTHER_FILES += \
- $$PWD/../data/*.qml
-
-TESTDATA += \
- $$PWD/../data/tst_*
diff --git a/tests/auto/controls/default/dependencies.qml b/tests/auto/controls/default/dependencies.qml
deleted file mode 100644
index 7ffafb84..00000000
--- a/tests/auto/controls/default/dependencies.qml
+++ /dev/null
@@ -1,5 +0,0 @@
-import QtTest 1.0
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-TestCase { }
diff --git a/tests/auto/controls/default/tst_default.cpp b/tests/auto/controls/default/tst_default.cpp
deleted file mode 100644
index 4c575ce6..00000000
--- a/tests/auto/controls/default/tst_default.cpp
+++ /dev/null
@@ -1,44 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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>
-
-int main(int argc, char *argv[])
-{
- QTEST_SET_MAIN_SOURCE_PATH
- qputenv("QML_NO_TOUCH_COMPRESSION", "1");
- return quick_test_main(argc, argv, "tst_controls::Default", TST_CONTROLS_DATA);
-}
diff --git a/tests/auto/controls/fusion/dependencies.qml b/tests/auto/controls/fusion/dependencies.qml
deleted file mode 100644
index 2da1b2bb..00000000
--- a/tests/auto/controls/fusion/dependencies.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtTest 1.0
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Fusion 2.12
-
-TestCase { }
diff --git a/tests/auto/controls/fusion/fusion.pro b/tests/auto/controls/fusion/fusion.pro
deleted file mode 100644
index f3374f34..00000000
--- a/tests/auto/controls/fusion/fusion.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = tst_fusion
-CONFIG += qmltestcase
-QT += quickcontrols2
-
-DEFINES += TST_CONTROLS_DATA=\\\"$$QQC2_SOURCE_TREE/tests/auto/controls/data\\\"
-
-SOURCES += \
- $$PWD/tst_fusion.cpp
-
-OTHER_FILES += \
- $$PWD/../data/*.qml
-
-TESTDATA += \
- $$PWD/../data/tst_*
diff --git a/tests/auto/controls/fusion/tst_fusion.cpp b/tests/auto/controls/fusion/tst_fusion.cpp
deleted file mode 100644
index 7528ccea..00000000
--- a/tests/auto/controls/fusion/tst_fusion.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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>
-#include <QtQuickControls2/qquickstyle.h>
-
-int main(int argc, char *argv[])
-{
- QTEST_SET_MAIN_SOURCE_PATH
- qputenv("QML_NO_TOUCH_COMPRESSION", "1");
- QQuickStyle::setStyle("Fusion");
- return quick_test_main(argc, argv, "tst_controls::Fusion", TST_CONTROLS_DATA);
-}
diff --git a/tests/auto/controls/imagine/dependencies.qml b/tests/auto/controls/imagine/dependencies.qml
deleted file mode 100644
index e681aa4f..00000000
--- a/tests/auto/controls/imagine/dependencies.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtTest 1.0
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-
-TestCase { }
diff --git a/tests/auto/controls/imagine/imagine.pro b/tests/auto/controls/imagine/imagine.pro
deleted file mode 100644
index ab521c98..00000000
--- a/tests/auto/controls/imagine/imagine.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = tst_imagine
-CONFIG += qmltestcase
-QT += quickcontrols2
-
-DEFINES += TST_CONTROLS_DATA=\\\"$$QQC2_SOURCE_TREE/tests/auto/controls/data\\\"
-
-SOURCES += \
- $$PWD/tst_imagine.cpp
-
-OTHER_FILES += \
- $$PWD/../data/*.qml
-
-TESTDATA += \
- $$PWD/../data/tst_*
diff --git a/tests/auto/controls/imagine/tst_imagine.cpp b/tests/auto/controls/imagine/tst_imagine.cpp
deleted file mode 100644
index 9db7ed4d..00000000
--- a/tests/auto/controls/imagine/tst_imagine.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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>
-#include <QtQuickControls2/qquickstyle.h>
-
-int main(int argc, char *argv[])
-{
- QTEST_SET_MAIN_SOURCE_PATH
- qputenv("QML_NO_TOUCH_COMPRESSION", "1");
- QQuickStyle::setStyle("Imagine");
- return quick_test_main(argc, argv, "tst_controls::Imagine", TST_CONTROLS_DATA);
-}
diff --git a/tests/auto/controls/material/dependencies.qml b/tests/auto/controls/material/dependencies.qml
deleted file mode 100644
index f926944e..00000000
--- a/tests/auto/controls/material/dependencies.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtTest 1.0
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-TestCase { }
diff --git a/tests/auto/controls/material/material.pro b/tests/auto/controls/material/material.pro
deleted file mode 100644
index 652dcf7f..00000000
--- a/tests/auto/controls/material/material.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = tst_material
-CONFIG += qmltestcase
-QT += quickcontrols2
-
-DEFINES += TST_CONTROLS_DATA=\\\"$$QQC2_SOURCE_TREE/tests/auto/controls/data\\\"
-
-SOURCES += \
- $$PWD/tst_material.cpp
-
-OTHER_FILES += \
- $$PWD/../data/*.qml
-
-TESTDATA += \
- $$PWD/../data/tst_*
diff --git a/tests/auto/controls/material/tst_material.cpp b/tests/auto/controls/material/tst_material.cpp
deleted file mode 100644
index ae8bb3a1..00000000
--- a/tests/auto/controls/material/tst_material.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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>
-#include <QtQuickControls2/qquickstyle.h>
-
-int main(int argc, char *argv[])
-{
- QTEST_SET_MAIN_SOURCE_PATH
- qputenv("QML_NO_TOUCH_COMPRESSION", "1");
- QQuickStyle::setStyle("Material");
- return quick_test_main(argc, argv, "tst_controls::Material", TST_CONTROLS_DATA);
-}
diff --git a/tests/auto/controls/universal/dependencies.qml b/tests/auto/controls/universal/dependencies.qml
deleted file mode 100644
index a4a0d0a0..00000000
--- a/tests/auto/controls/universal/dependencies.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtTest 1.0
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-TestCase { }
diff --git a/tests/auto/controls/universal/tst_universal.cpp b/tests/auto/controls/universal/tst_universal.cpp
deleted file mode 100644
index db5b560e..00000000
--- a/tests/auto/controls/universal/tst_universal.cpp
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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>
-#include <QtQuickControls2/qquickstyle.h>
-
-int main(int argc, char *argv[])
-{
- QTEST_SET_MAIN_SOURCE_PATH
- qputenv("QML_NO_TOUCH_COMPRESSION", "1");
- QQuickStyle::setStyle("Universal");
- return quick_test_main(argc, argv, "tst_controls::Universal", TST_CONTROLS_DATA);
-}
diff --git a/tests/auto/controls/universal/universal.pro b/tests/auto/controls/universal/universal.pro
deleted file mode 100644
index 835798b3..00000000
--- a/tests/auto/controls/universal/universal.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = tst_universal
-CONFIG += qmltestcase
-QT += quickcontrols2
-
-DEFINES += TST_CONTROLS_DATA=\\\"$$QQC2_SOURCE_TREE/tests/auto/controls/data\\\"
-
-SOURCES += \
- $$PWD/tst_universal.cpp
-
-OTHER_FILES += \
- $$PWD/../data/*.qml
-
-TESTDATA += \
- $$PWD/../data/tst_*
diff --git a/tests/auto/cursor/cursor.pro b/tests/auto/cursor/cursor.pro
deleted file mode 100644
index 4948e943..00000000
--- a/tests/auto/cursor/cursor.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-CONFIG += testcase
-TARGET = tst_cursor
-SOURCES += tst_cursor.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
diff --git a/tests/auto/cursor/data/buttons.qml b/tests/auto/cursor/data/buttons.qml
deleted file mode 100644
index 2107a8f3..00000000
--- a/tests/auto/cursor/data/buttons.qml
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-MouseArea {
- width: column.width
- height: column.height
- cursorShape: Qt.ForbiddenCursor
-
- Column {
- id: column
- padding: 10
- spacing: 10
-
- Button {
- text: "Button"
- }
- CheckBox {
- text: "CheckBox"
- }
- CheckDelegate {
- text: "CheckDelegate"
- }
- ItemDelegate {
- text: "ItemDelegate"
- }
- MenuItem {
- text: "MenuItem"
- }
- RadioButton {
- text: "RadioButton"
- }
- RadioDelegate {
- text: "RadioDelegate"
- }
- RoundButton {
- text: "X"
- }
- SwipeDelegate {
- text: "SwipeDelegate"
- }
- Switch {
- text: "Switch"
- }
- SwitchDelegate {
- text: "SwitchDelegate"
- }
- TabButton {
- text: "TabButton"
- }
- ToolButton {
- text: "ToolButton"
- }
- }
-}
diff --git a/tests/auto/cursor/data/containers.qml b/tests/auto/cursor/data/containers.qml
deleted file mode 100644
index c9dc09d9..00000000
--- a/tests/auto/cursor/data/containers.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-MouseArea {
- width: column.width
- height: column.height
- cursorShape: Qt.ForbiddenCursor
-
- Column {
- id: column
- padding: 10
- spacing: 10
-
- Page {
- width: 200
- height: 20
- }
- Pane {
- width: 200
- height: 20
- }
- ToolBar {
- width: 200
- height: 20
- }
- }
-}
diff --git a/tests/auto/cursor/data/editable.qml b/tests/auto/cursor/data/editable.qml
deleted file mode 100644
index 305d7d46..00000000
--- a/tests/auto/cursor/data/editable.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-MouseArea {
- width: column.width
- height: column.height
- cursorShape: Qt.ForbiddenCursor
-
- Column {
- id: column
- padding: 10
- spacing: 10
-
- ComboBox {
- editable: true
- model: "ComboBox"
- }
- SpinBox {
- editable: true
- }
- }
-}
diff --git a/tests/auto/cursor/data/pageindicator.qml b/tests/auto/cursor/data/pageindicator.qml
deleted file mode 100644
index 228f010d..00000000
--- a/tests/auto/cursor/data/pageindicator.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-MouseArea {
- width: 200
- height: 200
- cursorShape: Qt.ForbiddenCursor
-
- PageIndicator {
- anchors.centerIn: parent
- }
-}
diff --git a/tests/auto/cursor/data/scrollbar.qml b/tests/auto/cursor/data/scrollbar.qml
deleted file mode 100644
index 50b785c6..00000000
--- a/tests/auto/cursor/data/scrollbar.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias textArea: textArea
- property alias scrollBar: scrollBar
-
- Flickable {
- anchors.fill: parent
- TextArea.flickable: TextArea {
- id: textArea
- }
- ScrollBar.vertical: ScrollBar {
- id: scrollBar
- // Need to explicitly set this to account for platforms like Android,
- // where the UiEffects style hint does not include HoverEffect, and
- // hence QQuickControlPrivate::calcHoverEnabled() would otherwise return false.
- hoverEnabled: true
- }
- }
-}
diff --git a/tests/auto/cursor/data/sliders.qml b/tests/auto/cursor/data/sliders.qml
deleted file mode 100644
index e3ac2cb1..00000000
--- a/tests/auto/cursor/data/sliders.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-MouseArea {
- width: column.width
- height: column.height
- cursorShape: Qt.ForbiddenCursor
-
- Column {
- id: column
- padding: 10
- spacing: 10
-
- Dial {
- }
- Slider {
- }
- RangeSlider {
- }
- }
-}
diff --git a/tests/auto/cursor/tst_cursor.cpp b/tests/auto/cursor/tst_cursor.cpp
deleted file mode 100644
index 2491a972..00000000
--- a/tests/auto/cursor/tst_cursor.cpp
+++ /dev/null
@@ -1,215 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include "../shared/visualtestutil.h"
-
-#include <QtQuick/qquickview.h>
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQuickTemplates2/private/qquickpageindicator_p.h>
-#include <QtQuickTemplates2/private/qquickscrollbar_p.h>
-#include <QtQuickTemplates2/private/qquicktextarea_p.h>
-
-#if QT_CONFIG(cursor)
-# include <QtGui/qscreen.h>
-# include <QtGui/qcursor.h>
-#endif
-
-using namespace QQuickVisualTestUtil;
-
-class tst_cursor : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void init();
- void controls_data();
- void controls();
- void editable();
- void pageIndicator();
- void scrollBar();
-};
-
-void tst_cursor::init()
-{
-#if QT_CONFIG(cursor)
- // Ensure mouse cursor was not left by previous tests where widgets
- // will appear, as it could cause events and interfere with the tests.
- const QScreen *screen = QGuiApplication::primaryScreen();
- const QRect availableGeometry = screen->availableGeometry();
- QCursor::setPos(availableGeometry.topLeft());
-#endif
-}
-
-void tst_cursor::controls_data()
-{
- QTest::addColumn<QString>("testFile");
-
- QTest::newRow("buttons") << "buttons.qml";
- QTest::newRow("containers") << "containers.qml";
- QTest::newRow("sliders") << "sliders.qml";
-}
-
-void tst_cursor::controls()
-{
- QFETCH(QString, testFile);
-
- QQuickView view(testFileUrl(testFile));
- view.show();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickItem *mouseArea = view.rootObject();
- QVERIFY(mouseArea);
- QCOMPARE(mouseArea->cursor().shape(), Qt::ForbiddenCursor);
-
- QQuickItem *column = mouseArea->childItems().value(0);
- QVERIFY(column);
-
- const auto controls = column->childItems();
- for (QQuickItem *control : controls) {
- QCOMPARE(control->cursor().shape(), Qt::ArrowCursor);
-
- QTest::mouseMove(&view, control->mapToScene(QPointF(-1, -1)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::ForbiddenCursor);
-
- QTest::mouseMove(&view, control->mapToScene(QPointF(0, 0)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::ArrowCursor);
-
- QTest::mouseMove(&view, control->mapToScene(QPointF(control->width() + 1, control->height() + 1)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::ForbiddenCursor);
- }
-}
-
-void tst_cursor::editable()
-{
- QQuickView view(testFileUrl("editable.qml"));
- view.show();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickItem *mouseArea = view.rootObject();
- QVERIFY(mouseArea);
- QCOMPARE(mouseArea->cursor().shape(), Qt::ForbiddenCursor);
-
- QQuickItem *column = mouseArea->childItems().value(0);
- QVERIFY(column);
-
- const auto children = column->childItems();
- for (QQuickItem *child : children) {
- QQuickControl *control = qobject_cast<QQuickControl *>(child);
- QVERIFY(control);
- QCOMPARE(control->cursor().shape(), Qt::ArrowCursor);
- QCOMPARE(control->contentItem()->cursor().shape(), Qt::IBeamCursor);
-
- QTest::mouseMove(&view, control->mapToScene(QPointF(-1, -1)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::ForbiddenCursor);
-
- QTest::mouseMove(&view, control->mapToScene(QPointF(control->width() / 2, control->height() / 2)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::IBeamCursor);
-
- control->setProperty("editable", false);
- QCOMPARE(control->cursor().shape(), Qt::ArrowCursor);
- QCOMPARE(control->contentItem()->cursor().shape(), Qt::ArrowCursor);
- QCOMPARE(view.cursor().shape(), Qt::ArrowCursor);
-
- QTest::mouseMove(&view, control->mapToScene(QPointF(control->width() + 1, control->height() + 1)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::ForbiddenCursor);
- }
-}
-
-void tst_cursor::pageIndicator()
-{
- QQuickView view(testFileUrl("pageindicator.qml"));
- view.show();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickItem *mouseArea = view.rootObject();
- QVERIFY(mouseArea);
- QCOMPARE(mouseArea->cursor().shape(), Qt::ForbiddenCursor);
-
- QQuickPageIndicator *indicator = qobject_cast<QQuickPageIndicator *>(mouseArea->childItems().value(0));
- QVERIFY(indicator);
-
- QTest::mouseMove(&view, indicator->mapToScene(QPointF(-1, -1)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::ForbiddenCursor);
-
- QTest::mouseMove(&view, indicator->mapToScene(QPointF(0, 0)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::ForbiddenCursor);
-
- indicator->setInteractive(true);
- QCOMPARE(view.cursor().shape(), Qt::ArrowCursor);
-
- QTest::mouseMove(&view, indicator->mapToScene(QPointF(indicator->width() + 1, indicator->height() + 1)).toPoint());
- QCOMPARE(view.cursor().shape(), Qt::ForbiddenCursor);
-}
-
-// QTBUG-59629
-void tst_cursor::scrollBar()
-{
- // Ensure that the mouse cursor has the correct shape when over a scrollbar
- // which is itself over a text area with IBeamCursor.
- QQuickApplicationHelper helper(this, QStringLiteral("scrollbar.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickScrollBar *scrollBar = helper.appWindow->property("scrollBar").value<QQuickScrollBar*>();
- QVERIFY(scrollBar);
-
- QQuickTextArea *textArea = helper.appWindow->property("textArea").value<QQuickTextArea*>();
- QVERIFY(textArea);
-
- textArea->setText(QString("\n").repeated(100));
-
- const QPoint textAreaPos(window->width() / 2, window->height() / 2);
- QTest::mouseMove(window, textAreaPos);
- QCOMPARE(window->cursor().shape(), textArea->cursor().shape());
- QCOMPARE(textArea->cursor().shape(), Qt::CursorShape::IBeamCursor);
-
- const QPoint scrollBarPos(window->width() - scrollBar->width() / 2, window->height() / 2);
- QTest::mouseMove(window, scrollBarPos);
-
- QVERIFY(scrollBar->isActive());
- QCOMPARE(window->cursor().shape(), scrollBar->cursor().shape());
- QCOMPARE(scrollBar->cursor().shape(), Qt::CursorShape::ArrowCursor);
-
- scrollBar->setInteractive(false);
- QCOMPARE(window->cursor().shape(), textArea->cursor().shape());
-}
-
-QTEST_MAIN(tst_cursor)
-
-#include "tst_cursor.moc"
diff --git a/tests/auto/customization/customization.pro b/tests/auto/customization/customization.pro
deleted file mode 100644
index 472367a3..00000000
--- a/tests/auto/customization/customization.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-CONFIG += testcase
-TARGET = tst_customization
-SOURCES += tst_customization.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private quickcontrols2
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
diff --git a/tests/auto/customization/data/styles/empty/AbstractButton.qml b/tests/auto/customization/data/styles/empty/AbstractButton.qml
deleted file mode 100644
index 56aaaa04..00000000
--- a/tests/auto/customization/data/styles/empty/AbstractButton.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.AbstractButton {
- id: control
- objectName: "abstractbutton-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ApplicationWindow.qml b/tests/auto/customization/data/styles/empty/ApplicationWindow.qml
deleted file mode 100644
index 820b67ae..00000000
--- a/tests/auto/customization/data/styles/empty/ApplicationWindow.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ApplicationWindow {
- id: control
- objectName: "applicationwindow-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/BusyIndicator.qml b/tests/auto/customization/data/styles/empty/BusyIndicator.qml
deleted file mode 100644
index 2d212ed2..00000000
--- a/tests/auto/customization/data/styles/empty/BusyIndicator.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.BusyIndicator {
- id: control
- objectName: "busyindicator-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Button.qml b/tests/auto/customization/data/styles/empty/Button.qml
deleted file mode 100644
index 54daa586..00000000
--- a/tests/auto/customization/data/styles/empty/Button.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Button {
- id: control
- objectName: "button-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/CheckBox.qml b/tests/auto/customization/data/styles/empty/CheckBox.qml
deleted file mode 100644
index 64799ca5..00000000
--- a/tests/auto/customization/data/styles/empty/CheckBox.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.CheckBox {
- id: control
- objectName: "checkbox-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/CheckDelegate.qml b/tests/auto/customization/data/styles/empty/CheckDelegate.qml
deleted file mode 100644
index b7ea827d..00000000
--- a/tests/auto/customization/data/styles/empty/CheckDelegate.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.CheckDelegate {
- id: control
- objectName: "checkdelegate-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ComboBox.qml b/tests/auto/customization/data/styles/empty/ComboBox.qml
deleted file mode 100644
index 2c5cb266..00000000
--- a/tests/auto/customization/data/styles/empty/ComboBox.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ComboBox {
- id: control
- objectName: "combobox-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Container.qml b/tests/auto/customization/data/styles/empty/Container.qml
deleted file mode 100644
index 1d376cce..00000000
--- a/tests/auto/customization/data/styles/empty/Container.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Container {
- id: control
- objectName: "container-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Control.qml b/tests/auto/customization/data/styles/empty/Control.qml
deleted file mode 100644
index c7db674a..00000000
--- a/tests/auto/customization/data/styles/empty/Control.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Control {
- id: control
- objectName: "control-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/DelayButton.qml b/tests/auto/customization/data/styles/empty/DelayButton.qml
deleted file mode 100644
index e1cd7dde..00000000
--- a/tests/auto/customization/data/styles/empty/DelayButton.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DelayButton {
- id: control
- objectName: "delaybutton-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Dial.qml b/tests/auto/customization/data/styles/empty/Dial.qml
deleted file mode 100644
index 94af0a3e..00000000
--- a/tests/auto/customization/data/styles/empty/Dial.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dial {
- id: control
- objectName: "dial-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Dialog.qml b/tests/auto/customization/data/styles/empty/Dialog.qml
deleted file mode 100644
index 72f95f0a..00000000
--- a/tests/auto/customization/data/styles/empty/Dialog.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dialog {
- id: control
- objectName: "dialog-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/DialogButtonBox.qml b/tests/auto/customization/data/styles/empty/DialogButtonBox.qml
deleted file mode 100644
index 1f47e83f..00000000
--- a/tests/auto/customization/data/styles/empty/DialogButtonBox.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DialogButtonBox {
- id: control
- objectName: "dialogbuttonbox-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Drawer.qml b/tests/auto/customization/data/styles/empty/Drawer.qml
deleted file mode 100644
index a550d5b7..00000000
--- a/tests/auto/customization/data/styles/empty/Drawer.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Drawer {
- id: control
- objectName: "drawer-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Frame.qml b/tests/auto/customization/data/styles/empty/Frame.qml
deleted file mode 100644
index 9047035c..00000000
--- a/tests/auto/customization/data/styles/empty/Frame.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Frame {
- id: control
- objectName: "frame-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/GroupBox.qml b/tests/auto/customization/data/styles/empty/GroupBox.qml
deleted file mode 100644
index 8628cb0d..00000000
--- a/tests/auto/customization/data/styles/empty/GroupBox.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.GroupBox {
- id: control
- objectName: "groupbox-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ItemDelegate.qml b/tests/auto/customization/data/styles/empty/ItemDelegate.qml
deleted file mode 100644
index 721e4b37..00000000
--- a/tests/auto/customization/data/styles/empty/ItemDelegate.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ItemDelegate {
- id: control
- objectName: "itemdelegate-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Label.qml b/tests/auto/customization/data/styles/empty/Label.qml
deleted file mode 100644
index a0be5acf..00000000
--- a/tests/auto/customization/data/styles/empty/Label.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Label {
- id: control
- objectName: "label-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Menu.qml b/tests/auto/customization/data/styles/empty/Menu.qml
deleted file mode 100644
index ec7cd9fd..00000000
--- a/tests/auto/customization/data/styles/empty/Menu.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Menu {
- id: control
- objectName: "menu-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/MenuBar.qml b/tests/auto/customization/data/styles/empty/MenuBar.qml
deleted file mode 100644
index 6ee7350d..00000000
--- a/tests/auto/customization/data/styles/empty/MenuBar.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuBar {
- id: control
- objectName: "menubar-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/MenuBarItem.qml b/tests/auto/customization/data/styles/empty/MenuBarItem.qml
deleted file mode 100644
index 710c1208..00000000
--- a/tests/auto/customization/data/styles/empty/MenuBarItem.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuBarItem {
- id: control
- objectName: "menubaritem-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/MenuItem.qml b/tests/auto/customization/data/styles/empty/MenuItem.qml
deleted file mode 100644
index 206c2e89..00000000
--- a/tests/auto/customization/data/styles/empty/MenuItem.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuItem {
- id: control
- objectName: "menuitem-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/MenuSeparator.qml b/tests/auto/customization/data/styles/empty/MenuSeparator.qml
deleted file mode 100644
index 73b3ec41..00000000
--- a/tests/auto/customization/data/styles/empty/MenuSeparator.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuSeparator {
- id: control
- objectName: "menuseparator-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Page.qml b/tests/auto/customization/data/styles/empty/Page.qml
deleted file mode 100644
index ce77d17f..00000000
--- a/tests/auto/customization/data/styles/empty/Page.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Page {
- id: control
- objectName: "page-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/PageIndicator.qml b/tests/auto/customization/data/styles/empty/PageIndicator.qml
deleted file mode 100644
index c71e6908..00000000
--- a/tests/auto/customization/data/styles/empty/PageIndicator.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.PageIndicator {
- id: control
- objectName: "pageindicator-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Pane.qml b/tests/auto/customization/data/styles/empty/Pane.qml
deleted file mode 100644
index a710e9a2..00000000
--- a/tests/auto/customization/data/styles/empty/Pane.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Pane {
- id: control
- objectName: "pane-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Popup.qml b/tests/auto/customization/data/styles/empty/Popup.qml
deleted file mode 100644
index f2c19ed3..00000000
--- a/tests/auto/customization/data/styles/empty/Popup.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Popup {
- id: control
- objectName: "popup-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ProgressBar.qml b/tests/auto/customization/data/styles/empty/ProgressBar.qml
deleted file mode 100644
index 0ffdb015..00000000
--- a/tests/auto/customization/data/styles/empty/ProgressBar.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ProgressBar {
- id: control
- objectName: "progressbar-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/RadioButton.qml b/tests/auto/customization/data/styles/empty/RadioButton.qml
deleted file mode 100644
index 1221e667..00000000
--- a/tests/auto/customization/data/styles/empty/RadioButton.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioButton {
- id: control
- objectName: "radiobutton-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/RadioDelegate.qml b/tests/auto/customization/data/styles/empty/RadioDelegate.qml
deleted file mode 100644
index b7889e34..00000000
--- a/tests/auto/customization/data/styles/empty/RadioDelegate.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioDelegate {
- id: control
- objectName: "radiodelegate-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/RangeSlider.qml b/tests/auto/customization/data/styles/empty/RangeSlider.qml
deleted file mode 100644
index d737e4bf..00000000
--- a/tests/auto/customization/data/styles/empty/RangeSlider.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RangeSlider {
- id: control
- objectName: "rangeslider-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/RoundButton.qml b/tests/auto/customization/data/styles/empty/RoundButton.qml
deleted file mode 100644
index 01063900..00000000
--- a/tests/auto/customization/data/styles/empty/RoundButton.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RoundButton {
- id: control
- objectName: "roundbutton-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ScrollBar.qml b/tests/auto/customization/data/styles/empty/ScrollBar.qml
deleted file mode 100644
index bc727d7b..00000000
--- a/tests/auto/customization/data/styles/empty/ScrollBar.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollBar {
- id: control
- objectName: "scrollbar-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ScrollIndicator.qml b/tests/auto/customization/data/styles/empty/ScrollIndicator.qml
deleted file mode 100644
index 3e11e721..00000000
--- a/tests/auto/customization/data/styles/empty/ScrollIndicator.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollIndicator {
- id: control
- objectName: "scrollindicator-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ScrollView.qml b/tests/auto/customization/data/styles/empty/ScrollView.qml
deleted file mode 100644
index 74a9fec2..00000000
--- a/tests/auto/customization/data/styles/empty/ScrollView.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollView {
- id: control
- objectName: "scrollview-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Slider.qml b/tests/auto/customization/data/styles/empty/Slider.qml
deleted file mode 100644
index d8fe7aee..00000000
--- a/tests/auto/customization/data/styles/empty/Slider.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Slider {
- id: control
- objectName: "slider-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/SpinBox.qml b/tests/auto/customization/data/styles/empty/SpinBox.qml
deleted file mode 100644
index 4e84e55a..00000000
--- a/tests/auto/customization/data/styles/empty/SpinBox.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SpinBox {
- id: control
- objectName: "spinbox-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/StackView.qml b/tests/auto/customization/data/styles/empty/StackView.qml
deleted file mode 100644
index 7722f8a7..00000000
--- a/tests/auto/customization/data/styles/empty/StackView.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.StackView {
- id: control
- objectName: "stackview-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/SwipeDelegate.qml b/tests/auto/customization/data/styles/empty/SwipeDelegate.qml
deleted file mode 100644
index f27802f4..00000000
--- a/tests/auto/customization/data/styles/empty/SwipeDelegate.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeDelegate {
- id: control
- objectName: "swipedelegate-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/SwipeView.qml b/tests/auto/customization/data/styles/empty/SwipeView.qml
deleted file mode 100644
index 61de72b3..00000000
--- a/tests/auto/customization/data/styles/empty/SwipeView.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeView {
- id: control
- objectName: "swipeview-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Switch.qml b/tests/auto/customization/data/styles/empty/Switch.qml
deleted file mode 100644
index 3908d3f3..00000000
--- a/tests/auto/customization/data/styles/empty/Switch.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Switch {
- id: control
- objectName: "switch-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/SwitchDelegate.qml b/tests/auto/customization/data/styles/empty/SwitchDelegate.qml
deleted file mode 100644
index e581baa0..00000000
--- a/tests/auto/customization/data/styles/empty/SwitchDelegate.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwitchDelegate {
- id: control
- objectName: "switchdelegate-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/TabBar.qml b/tests/auto/customization/data/styles/empty/TabBar.qml
deleted file mode 100644
index caedefe9..00000000
--- a/tests/auto/customization/data/styles/empty/TabBar.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabBar {
- id: control
- objectName: "tabbar-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/TabButton.qml b/tests/auto/customization/data/styles/empty/TabButton.qml
deleted file mode 100644
index e6777411..00000000
--- a/tests/auto/customization/data/styles/empty/TabButton.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabButton {
- id: control
- objectName: "tabbutton-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/TextArea.qml b/tests/auto/customization/data/styles/empty/TextArea.qml
deleted file mode 100644
index 7d49af20..00000000
--- a/tests/auto/customization/data/styles/empty/TextArea.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextArea {
- id: control
- objectName: "textarea-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/TextField.qml b/tests/auto/customization/data/styles/empty/TextField.qml
deleted file mode 100644
index 0a593cbe..00000000
--- a/tests/auto/customization/data/styles/empty/TextField.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextField {
- id: control
- objectName: "textfield-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ToolBar.qml b/tests/auto/customization/data/styles/empty/ToolBar.qml
deleted file mode 100644
index 5f923267..00000000
--- a/tests/auto/customization/data/styles/empty/ToolBar.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolBar {
- id: control
- objectName: "toolbar-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ToolButton.qml b/tests/auto/customization/data/styles/empty/ToolButton.qml
deleted file mode 100644
index 9f209c55..00000000
--- a/tests/auto/customization/data/styles/empty/ToolButton.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolButton {
- id: control
- objectName: "toolbutton-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ToolSeparator.qml b/tests/auto/customization/data/styles/empty/ToolSeparator.qml
deleted file mode 100644
index bc81e3e7..00000000
--- a/tests/auto/customization/data/styles/empty/ToolSeparator.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolSeparator {
- id: control
- objectName: "toolseparator-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/ToolTip.qml b/tests/auto/customization/data/styles/empty/ToolTip.qml
deleted file mode 100644
index 0bc8e3c6..00000000
--- a/tests/auto/customization/data/styles/empty/ToolTip.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolTip {
- id: control
- objectName: "tooltip-empty"
-}
diff --git a/tests/auto/customization/data/styles/empty/Tumbler.qml b/tests/auto/customization/data/styles/empty/Tumbler.qml
deleted file mode 100644
index 984362f4..00000000
--- a/tests/auto/customization/data/styles/empty/Tumbler.qml
+++ /dev/null
@@ -1,57 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Tumbler {
- id: control
- objectName: "tumbler-empty"
-}
diff --git a/tests/auto/customization/data/styles/identified/AbstractButton.qml b/tests/auto/customization/data/styles/identified/AbstractButton.qml
deleted file mode 100644
index b9656f7a..00000000
--- a/tests/auto/customization/data/styles/identified/AbstractButton.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.AbstractButton {
- id: control
- objectName: "abstractbutton-identified"
-
- indicator: Item {
- id: indicator
- objectName: "abstractbutton-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "abstractbutton-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "abstractbutton-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ApplicationWindow.qml b/tests/auto/customization/data/styles/identified/ApplicationWindow.qml
deleted file mode 100644
index b77eebfc..00000000
--- a/tests/auto/customization/data/styles/identified/ApplicationWindow.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ApplicationWindow {
- id: control
- objectName: "applicationwindow-identified"
-
- background: Item {
- id: background
- objectName: "applicationwindow-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/BusyIndicator.qml b/tests/auto/customization/data/styles/identified/BusyIndicator.qml
deleted file mode 100644
index dc4c14b7..00000000
--- a/tests/auto/customization/data/styles/identified/BusyIndicator.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.BusyIndicator {
- id: control
- objectName: "busyindicator-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "busyindicator-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "busyindicator-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Button.qml b/tests/auto/customization/data/styles/identified/Button.qml
deleted file mode 100644
index dca3b9d0..00000000
--- a/tests/auto/customization/data/styles/identified/Button.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Button {
- id: control
- objectName: "button-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "button-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "button-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/CheckBox.qml b/tests/auto/customization/data/styles/identified/CheckBox.qml
deleted file mode 100644
index 8f1f9b25..00000000
--- a/tests/auto/customization/data/styles/identified/CheckBox.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.CheckBox {
- id: control
- objectName: "checkbox-identified"
-
- indicator: Item {
- id: indicator
- objectName: "checkbox-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "checkbox-contentItem-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/CheckDelegate.qml b/tests/auto/customization/data/styles/identified/CheckDelegate.qml
deleted file mode 100644
index cfba67d3..00000000
--- a/tests/auto/customization/data/styles/identified/CheckDelegate.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.CheckDelegate {
- id: control
- objectName: "checkdelegate-identified"
-
- indicator: Item {
- id: indicator
- objectName: "checkdelegate-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "checkdelegate-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "checkdelegate-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ComboBox.qml b/tests/auto/customization/data/styles/identified/ComboBox.qml
deleted file mode 100644
index 873d1c2a..00000000
--- a/tests/auto/customization/data/styles/identified/ComboBox.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Templates 2.12 as T
-
-T.ComboBox {
- id: control
- objectName: "combobox-identified"
-
- indicator: Item {
- id: indicator
- objectName: "combobox-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "combobox-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "combobox-background-identified"
- }
-
- popup: T.Popup {
- id: popup
- objectName: "combobox-popup-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Container.qml b/tests/auto/customization/data/styles/identified/Container.qml
deleted file mode 100644
index 8170e937..00000000
--- a/tests/auto/customization/data/styles/identified/Container.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Container {
- id: control
- objectName: "container-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "container-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "container-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Control.qml b/tests/auto/customization/data/styles/identified/Control.qml
deleted file mode 100644
index 0eb28c21..00000000
--- a/tests/auto/customization/data/styles/identified/Control.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Control {
- id: control
- objectName: "control-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "control-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "control-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/DelayButton.qml b/tests/auto/customization/data/styles/identified/DelayButton.qml
deleted file mode 100644
index fc7f67c9..00000000
--- a/tests/auto/customization/data/styles/identified/DelayButton.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DelayButton {
- id: control
- objectName: "delaybutton-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "delaybutton-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "delaybutton-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Dial.qml b/tests/auto/customization/data/styles/identified/Dial.qml
deleted file mode 100644
index 423c64e2..00000000
--- a/tests/auto/customization/data/styles/identified/Dial.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dial {
- id: control
- objectName: "dial-identified"
-
- handle: Item {
- id: handle
- objectName: "dial-handle-identified"
- }
-
- background: Item {
- id: background
- objectName: "dial-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Dialog.qml b/tests/auto/customization/data/styles/identified/Dialog.qml
deleted file mode 100644
index 58d0120e..00000000
--- a/tests/auto/customization/data/styles/identified/Dialog.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dialog {
- id: control
- objectName: "dialog-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "dialog-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "dialog-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/DialogButtonBox.qml b/tests/auto/customization/data/styles/identified/DialogButtonBox.qml
deleted file mode 100644
index 0bf56268..00000000
--- a/tests/auto/customization/data/styles/identified/DialogButtonBox.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DialogButtonBox {
- id: control
- objectName: "dialogbuttonbox-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "dialogbuttonbox-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "dialogbuttonbox-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Drawer.qml b/tests/auto/customization/data/styles/identified/Drawer.qml
deleted file mode 100644
index 82d09bd4..00000000
--- a/tests/auto/customization/data/styles/identified/Drawer.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Drawer {
- id: control
- objectName: "drawer-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "drawer-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "drawer-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Frame.qml b/tests/auto/customization/data/styles/identified/Frame.qml
deleted file mode 100644
index e84e18b1..00000000
--- a/tests/auto/customization/data/styles/identified/Frame.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Frame {
- id: control
- objectName: "frame-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "frame-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "frame-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/GroupBox.qml b/tests/auto/customization/data/styles/identified/GroupBox.qml
deleted file mode 100644
index ed56f89b..00000000
--- a/tests/auto/customization/data/styles/identified/GroupBox.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.GroupBox {
- id: control
- objectName: "groupbox-identified"
-
- label: Text {
- id: label
- objectName: "groupbox-label-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "groupbox-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "groupbox-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ItemDelegate.qml b/tests/auto/customization/data/styles/identified/ItemDelegate.qml
deleted file mode 100644
index 92801c53..00000000
--- a/tests/auto/customization/data/styles/identified/ItemDelegate.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ItemDelegate {
- id: control
- objectName: "itemdelegate-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "itemdelegate-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "itemdelegate-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Label.qml b/tests/auto/customization/data/styles/identified/Label.qml
deleted file mode 100644
index d19da135..00000000
--- a/tests/auto/customization/data/styles/identified/Label.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Label {
- id: control
- objectName: "label-identified"
-
- background: Item {
- id: background
- objectName: "label-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Menu.qml b/tests/auto/customization/data/styles/identified/Menu.qml
deleted file mode 100644
index 5a9ac617..00000000
--- a/tests/auto/customization/data/styles/identified/Menu.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Menu {
- id: control
- objectName: "menu-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "menu-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "menu-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/MenuBar.qml b/tests/auto/customization/data/styles/identified/MenuBar.qml
deleted file mode 100644
index d846e3c9..00000000
--- a/tests/auto/customization/data/styles/identified/MenuBar.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuBar {
- id: control
- objectName: "menubar-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "menubar-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "menubar-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/MenuBarItem.qml b/tests/auto/customization/data/styles/identified/MenuBarItem.qml
deleted file mode 100644
index 94fdef89..00000000
--- a/tests/auto/customization/data/styles/identified/MenuBarItem.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuBarItem {
- id: control
- objectName: "menubaritem-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "menubaritem-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "menubaritem-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/MenuItem.qml b/tests/auto/customization/data/styles/identified/MenuItem.qml
deleted file mode 100644
index 34f12cca..00000000
--- a/tests/auto/customization/data/styles/identified/MenuItem.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuItem {
- id: control
- objectName: "menuitem-identified"
-
- arrow: Item {
- id: arrow
- objectName: "menuitem-arrow-identified"
- }
-
- indicator: Item {
- id: indicator
- objectName: "menuitem-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "menuitem-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "menuitem-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/MenuSeparator.qml b/tests/auto/customization/data/styles/identified/MenuSeparator.qml
deleted file mode 100644
index 14154e2f..00000000
--- a/tests/auto/customization/data/styles/identified/MenuSeparator.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuSeparator {
- id: control
- objectName: "menuseparator-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "menuseparator-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "menuseparator-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Page.qml b/tests/auto/customization/data/styles/identified/Page.qml
deleted file mode 100644
index 945f2ac7..00000000
--- a/tests/auto/customization/data/styles/identified/Page.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Page {
- id: control
- objectName: "page-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "page-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "page-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/PageIndicator.qml b/tests/auto/customization/data/styles/identified/PageIndicator.qml
deleted file mode 100644
index ef0ab44f..00000000
--- a/tests/auto/customization/data/styles/identified/PageIndicator.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.PageIndicator {
- id: control
- objectName: "pageindicator-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "pageindicator-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "pageindicator-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Pane.qml b/tests/auto/customization/data/styles/identified/Pane.qml
deleted file mode 100644
index 849c7907..00000000
--- a/tests/auto/customization/data/styles/identified/Pane.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Pane {
- id: control
- objectName: "pane-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "pane-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "pane-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Popup.qml b/tests/auto/customization/data/styles/identified/Popup.qml
deleted file mode 100644
index 65de416c..00000000
--- a/tests/auto/customization/data/styles/identified/Popup.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Popup {
- id: control
- objectName: "popup-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "popup-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "popup-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ProgressBar.qml b/tests/auto/customization/data/styles/identified/ProgressBar.qml
deleted file mode 100644
index 24888624..00000000
--- a/tests/auto/customization/data/styles/identified/ProgressBar.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ProgressBar {
- id: control
- objectName: "progressbar-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "progressbar-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "progressbar-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/RadioButton.qml b/tests/auto/customization/data/styles/identified/RadioButton.qml
deleted file mode 100644
index 3a0c4e44..00000000
--- a/tests/auto/customization/data/styles/identified/RadioButton.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioButton {
- id: control
- objectName: "radiobutton-identified"
-
- indicator: Item {
- id: indicator
- objectName: "radiobutton-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "radiobutton-contentItem-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/RadioDelegate.qml b/tests/auto/customization/data/styles/identified/RadioDelegate.qml
deleted file mode 100644
index 3eda2408..00000000
--- a/tests/auto/customization/data/styles/identified/RadioDelegate.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioDelegate {
- id: control
- objectName: "radiodelegate-identified"
-
- indicator: Item {
- id: indicator
- objectName: "radiodelegate-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "radiodelegate-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "radiodelegate-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/RangeSlider.qml b/tests/auto/customization/data/styles/identified/RangeSlider.qml
deleted file mode 100644
index 18118dbe..00000000
--- a/tests/auto/customization/data/styles/identified/RangeSlider.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RangeSlider {
- id: control
- objectName: "rangeslider-identified"
-
- first.handle: Item {
- id: firstHandle
- objectName: "rangeslider-first.handle-identified"
- }
-
- second.handle: Item {
- id: secondHandle
- objectName: "rangeslider-second.handle-identified"
- }
-
- background: Item {
- id: background
- objectName: "rangeslider-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/RoundButton.qml b/tests/auto/customization/data/styles/identified/RoundButton.qml
deleted file mode 100644
index fc6bc95a..00000000
--- a/tests/auto/customization/data/styles/identified/RoundButton.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RoundButton {
- id: control
- objectName: "roundbutton-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "roundbutton-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "roundbutton-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ScrollBar.qml b/tests/auto/customization/data/styles/identified/ScrollBar.qml
deleted file mode 100644
index f9a4445d..00000000
--- a/tests/auto/customization/data/styles/identified/ScrollBar.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollBar {
- id: control
- objectName: "scrollbar-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "scrollbar-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "scrollbar-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ScrollIndicator.qml b/tests/auto/customization/data/styles/identified/ScrollIndicator.qml
deleted file mode 100644
index 0f15aa2d..00000000
--- a/tests/auto/customization/data/styles/identified/ScrollIndicator.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollIndicator {
- id: control
- objectName: "scrollindicator-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "scrollindicator-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "scrollindicator-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ScrollView.qml b/tests/auto/customization/data/styles/identified/ScrollView.qml
deleted file mode 100644
index 0855a5af..00000000
--- a/tests/auto/customization/data/styles/identified/ScrollView.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollView {
- id: control
- objectName: "scrollview-identified"
-
- background: Item {
- id: background
- objectName: "scrollview-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Slider.qml b/tests/auto/customization/data/styles/identified/Slider.qml
deleted file mode 100644
index 23afb67e..00000000
--- a/tests/auto/customization/data/styles/identified/Slider.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Slider {
- id: control
- objectName: "slider-identified"
-
- handle: Item {
- id: handle
- objectName: "slider-handle-identified"
- }
-
- background: Item {
- id: background
- objectName: "slider-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/SpinBox.qml b/tests/auto/customization/data/styles/identified/SpinBox.qml
deleted file mode 100644
index 7871c975..00000000
--- a/tests/auto/customization/data/styles/identified/SpinBox.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SpinBox {
- id: control
- objectName: "spinbox-identified"
-
- up.indicator: Item {
- id: upIndicator
- objectName: "spinbox-up.indicator-identified"
- }
-
- down.indicator: Item {
- id: downIndicator
- objectName: "spinbox-down.indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "spinbox-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "spinbox-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/StackView.qml b/tests/auto/customization/data/styles/identified/StackView.qml
deleted file mode 100644
index 20459d99..00000000
--- a/tests/auto/customization/data/styles/identified/StackView.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.StackView {
- id: control
- objectName: "stackview-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "stackview-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "stackview-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/SwipeDelegate.qml b/tests/auto/customization/data/styles/identified/SwipeDelegate.qml
deleted file mode 100644
index e60780f5..00000000
--- a/tests/auto/customization/data/styles/identified/SwipeDelegate.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeDelegate {
- id: control
- objectName: "swipedelegate-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "swipedelegate-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "swipedelegate-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/SwipeView.qml b/tests/auto/customization/data/styles/identified/SwipeView.qml
deleted file mode 100644
index 0e5a19f6..00000000
--- a/tests/auto/customization/data/styles/identified/SwipeView.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeView {
- id: control
- objectName: "swipeview-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "swipeview-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "swipeview-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Switch.qml b/tests/auto/customization/data/styles/identified/Switch.qml
deleted file mode 100644
index f7e22f1f..00000000
--- a/tests/auto/customization/data/styles/identified/Switch.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Switch {
- id: control
- objectName: "switch-identified"
-
- indicator: Item {
- id: indicator
- objectName: "switch-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "switch-contentItem-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/SwitchDelegate.qml b/tests/auto/customization/data/styles/identified/SwitchDelegate.qml
deleted file mode 100644
index bda30715..00000000
--- a/tests/auto/customization/data/styles/identified/SwitchDelegate.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwitchDelegate {
- id: control
- objectName: "switchdelegate-identified"
-
- indicator: Item {
- id: indicator
- objectName: "switchdelegate-indicator-identified"
- }
-
- contentItem: Item {
- id: contentItem
- objectName: "switchdelegate-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "switchdelegate-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/TabBar.qml b/tests/auto/customization/data/styles/identified/TabBar.qml
deleted file mode 100644
index 3589f505..00000000
--- a/tests/auto/customization/data/styles/identified/TabBar.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabBar {
- id: control
- objectName: "tabbar-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "tabbar-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "tabbar-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/TabButton.qml b/tests/auto/customization/data/styles/identified/TabButton.qml
deleted file mode 100644
index cc24fdfe..00000000
--- a/tests/auto/customization/data/styles/identified/TabButton.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabButton {
- id: control
- objectName: "tabbutton-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "tabbutton-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "tabbutton-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/TextArea.qml b/tests/auto/customization/data/styles/identified/TextArea.qml
deleted file mode 100644
index c7ef2545..00000000
--- a/tests/auto/customization/data/styles/identified/TextArea.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextArea {
- id: control
- objectName: "textarea-identified"
-
- background: Item {
- id: background
- objectName: "textarea-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/TextField.qml b/tests/auto/customization/data/styles/identified/TextField.qml
deleted file mode 100644
index 670fa9f7..00000000
--- a/tests/auto/customization/data/styles/identified/TextField.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextField {
- id: control
- objectName: "textfield-identified"
-
- background: Item {
- id: background
- objectName: "textfield-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ToolBar.qml b/tests/auto/customization/data/styles/identified/ToolBar.qml
deleted file mode 100644
index 950f0c53..00000000
--- a/tests/auto/customization/data/styles/identified/ToolBar.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolBar {
- id: control
- objectName: "toolbar-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "toolbar-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "toolbar-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ToolButton.qml b/tests/auto/customization/data/styles/identified/ToolButton.qml
deleted file mode 100644
index 792de9e5..00000000
--- a/tests/auto/customization/data/styles/identified/ToolButton.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolButton {
- id: control
- objectName: "toolbutton-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "toolbutton-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "toolbutton-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ToolSeparator.qml b/tests/auto/customization/data/styles/identified/ToolSeparator.qml
deleted file mode 100644
index a44fb331..00000000
--- a/tests/auto/customization/data/styles/identified/ToolSeparator.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolSeparator {
- id: control
- objectName: "toolseparator-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "toolseparator-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "toolseparator-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/ToolTip.qml b/tests/auto/customization/data/styles/identified/ToolTip.qml
deleted file mode 100644
index 5ddf8920..00000000
--- a/tests/auto/customization/data/styles/identified/ToolTip.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolTip {
- id: control
- objectName: "tooltip-identified"
-
- contentItem: Item {
- id: contentItem
- objectName: "tooltip-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "tooltip-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/identified/Tumbler.qml b/tests/auto/customization/data/styles/identified/Tumbler.qml
deleted file mode 100644
index ae123f08..00000000
--- a/tests/auto/customization/data/styles/identified/Tumbler.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Tumbler {
- id: control
- objectName: "tumbler-identified"
-
- contentItem: ListView {
- id: contentItem
- objectName: "tumbler-contentItem-identified"
- }
-
- background: Item {
- id: background
- objectName: "tumbler-background-identified"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/AbstractButton.qml b/tests/auto/customization/data/styles/incomplete/AbstractButton.qml
deleted file mode 100644
index ee78f032..00000000
--- a/tests/auto/customization/data/styles/incomplete/AbstractButton.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.AbstractButton {
- id: control
- objectName: "abstractbutton-incomplete"
-
- indicator: Item {
- objectName: "abstractbutton-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "abstractbutton-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "abstractbutton-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ApplicationWindow.qml b/tests/auto/customization/data/styles/incomplete/ApplicationWindow.qml
deleted file mode 100644
index 45abc542..00000000
--- a/tests/auto/customization/data/styles/incomplete/ApplicationWindow.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ApplicationWindow {
- id: control
- objectName: "applicationwindow-incomplete"
-
- background: Item {
- objectName: "applicationwindow-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/BusyIndicator.qml b/tests/auto/customization/data/styles/incomplete/BusyIndicator.qml
deleted file mode 100644
index e9a78add..00000000
--- a/tests/auto/customization/data/styles/incomplete/BusyIndicator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.BusyIndicator {
- id: control
- objectName: "busyindicator-incomplete"
-
- contentItem: Item {
- objectName: "busyindicator-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "busyindicator-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Button.qml b/tests/auto/customization/data/styles/incomplete/Button.qml
deleted file mode 100644
index 52f1e2f2..00000000
--- a/tests/auto/customization/data/styles/incomplete/Button.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Button {
- id: control
- objectName: "button-incomplete"
-
- contentItem: Item {
- objectName: "button-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "button-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/CheckBox.qml b/tests/auto/customization/data/styles/incomplete/CheckBox.qml
deleted file mode 100644
index c599ca93..00000000
--- a/tests/auto/customization/data/styles/incomplete/CheckBox.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.CheckBox {
- id: control
- objectName: "checkbox-incomplete"
-
- indicator: Item {
- objectName: "checkbox-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "checkbox-contentItem-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/CheckDelegate.qml b/tests/auto/customization/data/styles/incomplete/CheckDelegate.qml
deleted file mode 100644
index 673dbbd9..00000000
--- a/tests/auto/customization/data/styles/incomplete/CheckDelegate.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.CheckDelegate {
- id: control
- objectName: "checkdelegate-incomplete"
-
- indicator: Item {
- objectName: "checkdelegate-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "checkdelegate-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "checkdelegate-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ComboBox.qml b/tests/auto/customization/data/styles/incomplete/ComboBox.qml
deleted file mode 100644
index ef595e4f..00000000
--- a/tests/auto/customization/data/styles/incomplete/ComboBox.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ComboBox {
- id: control
- objectName: "combobox-incomplete"
-
- indicator: Item {
- objectName: "combobox-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "combobox-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "combobox-background-incomplete"
- }
-
- popup: T.Popup {
- objectName: "combobox-popup-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Container.qml b/tests/auto/customization/data/styles/incomplete/Container.qml
deleted file mode 100644
index 9b18ae49..00000000
--- a/tests/auto/customization/data/styles/incomplete/Container.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Container {
- id: control
- objectName: "container-incomplete"
-
- contentItem: Item {
- objectName: "container-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "container-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Control.qml b/tests/auto/customization/data/styles/incomplete/Control.qml
deleted file mode 100644
index ccec0bf0..00000000
--- a/tests/auto/customization/data/styles/incomplete/Control.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Control {
- id: control
- objectName: "control-incomplete"
-
- contentItem: Item {
- objectName: "control-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "control-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/DelayButton.qml b/tests/auto/customization/data/styles/incomplete/DelayButton.qml
deleted file mode 100644
index bb21db26..00000000
--- a/tests/auto/customization/data/styles/incomplete/DelayButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DelayButton {
- id: control
- objectName: "delaybutton-incomplete"
-
- contentItem: Item {
- objectName: "delaybutton-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "delaybutton-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Dial.qml b/tests/auto/customization/data/styles/incomplete/Dial.qml
deleted file mode 100644
index e9de0974..00000000
--- a/tests/auto/customization/data/styles/incomplete/Dial.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dial {
- id: control
- objectName: "dial-incomplete"
-
- handle: Item {
- objectName: "dial-handle-incomplete"
- }
-
- background: Item {
- objectName: "dial-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Dialog.qml b/tests/auto/customization/data/styles/incomplete/Dialog.qml
deleted file mode 100644
index 9f8ad1fa..00000000
--- a/tests/auto/customization/data/styles/incomplete/Dialog.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dialog {
- id: control
- objectName: "dialog-incomplete"
-
- contentItem: Item {
- objectName: "dialog-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "dialog-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/DialogButtonBox.qml b/tests/auto/customization/data/styles/incomplete/DialogButtonBox.qml
deleted file mode 100644
index 7dfaadf5..00000000
--- a/tests/auto/customization/data/styles/incomplete/DialogButtonBox.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DialogButtonBox {
- id: control
- objectName: "dialogbuttonbox-incomplete"
-
- contentItem: Item {
- objectName: "dialogbuttonbox-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "dialogbuttonbox-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Drawer.qml b/tests/auto/customization/data/styles/incomplete/Drawer.qml
deleted file mode 100644
index 684221e5..00000000
--- a/tests/auto/customization/data/styles/incomplete/Drawer.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Drawer {
- id: control
- objectName: "drawer-incomplete"
-
- contentItem: Item {
- objectName: "drawer-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "drawer-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Frame.qml b/tests/auto/customization/data/styles/incomplete/Frame.qml
deleted file mode 100644
index 9f409cfd..00000000
--- a/tests/auto/customization/data/styles/incomplete/Frame.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Frame {
- id: control
- objectName: "frame-incomplete"
-
- contentItem: Item {
- objectName: "frame-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "frame-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/GroupBox.qml b/tests/auto/customization/data/styles/incomplete/GroupBox.qml
deleted file mode 100644
index 4c5b258e..00000000
--- a/tests/auto/customization/data/styles/incomplete/GroupBox.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.GroupBox {
- id: control
- objectName: "groupbox-incomplete"
-
- label: Text {
- objectName: "groupbox-label-incomplete"
- }
-
- contentItem: Item {
- objectName: "groupbox-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "groupbox-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ItemDelegate.qml b/tests/auto/customization/data/styles/incomplete/ItemDelegate.qml
deleted file mode 100644
index 39063eb3..00000000
--- a/tests/auto/customization/data/styles/incomplete/ItemDelegate.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ItemDelegate {
- id: control
- objectName: "itemdelegate-incomplete"
-
- contentItem: Item {
- objectName: "itemdelegate-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "itemdelegate-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Label.qml b/tests/auto/customization/data/styles/incomplete/Label.qml
deleted file mode 100644
index 3a953004..00000000
--- a/tests/auto/customization/data/styles/incomplete/Label.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Label {
- id: control
- objectName: "label-incomplete"
-
- background: Item {
- objectName: "label-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Menu.qml b/tests/auto/customization/data/styles/incomplete/Menu.qml
deleted file mode 100644
index ca03cfe4..00000000
--- a/tests/auto/customization/data/styles/incomplete/Menu.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Menu {
- id: control
- objectName: "menu-incomplete"
-
- contentItem: Item {
- objectName: "menu-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "menu-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/MenuBar.qml b/tests/auto/customization/data/styles/incomplete/MenuBar.qml
deleted file mode 100644
index bc98d4c8..00000000
--- a/tests/auto/customization/data/styles/incomplete/MenuBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuBar {
- id: control
- objectName: "menubar-incomplete"
-
- contentItem: Item {
- objectName: "menubar-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "menubar-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/MenuBarItem.qml b/tests/auto/customization/data/styles/incomplete/MenuBarItem.qml
deleted file mode 100644
index 6b1dbc2e..00000000
--- a/tests/auto/customization/data/styles/incomplete/MenuBarItem.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuBarItem {
- id: control
- objectName: "menubaritem-incomplete"
-
- contentItem: Item {
- objectName: "menubaritem-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "menubaritem-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/MenuItem.qml b/tests/auto/customization/data/styles/incomplete/MenuItem.qml
deleted file mode 100644
index 40539eaf..00000000
--- a/tests/auto/customization/data/styles/incomplete/MenuItem.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuItem {
- id: control
- objectName: "menuitem-incomplete"
-
- arrow: Item {
- objectName: "menuitem-arrow-incomplete"
- }
-
- indicator: Item {
- objectName: "menuitem-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "menuitem-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "menuitem-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/MenuSeparator.qml b/tests/auto/customization/data/styles/incomplete/MenuSeparator.qml
deleted file mode 100644
index eb799f31..00000000
--- a/tests/auto/customization/data/styles/incomplete/MenuSeparator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuSeparator {
- id: control
- objectName: "menuseparator-incomplete"
-
- contentItem: Item {
- objectName: "menuseparator-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "menuseparator-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Page.qml b/tests/auto/customization/data/styles/incomplete/Page.qml
deleted file mode 100644
index 22964846..00000000
--- a/tests/auto/customization/data/styles/incomplete/Page.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Page {
- id: control
- objectName: "page-incomplete"
-
- contentItem: Item {
- objectName: "page-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "page-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/PageIndicator.qml b/tests/auto/customization/data/styles/incomplete/PageIndicator.qml
deleted file mode 100644
index 87cd3637..00000000
--- a/tests/auto/customization/data/styles/incomplete/PageIndicator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.PageIndicator {
- id: control
- objectName: "pageindicator-incomplete"
-
- contentItem: Item {
- objectName: "pageindicator-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "pageindicator-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Pane.qml b/tests/auto/customization/data/styles/incomplete/Pane.qml
deleted file mode 100644
index f4c96887..00000000
--- a/tests/auto/customization/data/styles/incomplete/Pane.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Pane {
- id: control
- objectName: "pane-incomplete"
-
- contentItem: Item {
- objectName: "pane-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "pane-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Popup.qml b/tests/auto/customization/data/styles/incomplete/Popup.qml
deleted file mode 100644
index fbba7f50..00000000
--- a/tests/auto/customization/data/styles/incomplete/Popup.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Popup {
- id: control
- objectName: "popup-incomplete"
-
- contentItem: Item {
- objectName: "popup-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "popup-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ProgressBar.qml b/tests/auto/customization/data/styles/incomplete/ProgressBar.qml
deleted file mode 100644
index 0186fa4e..00000000
--- a/tests/auto/customization/data/styles/incomplete/ProgressBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ProgressBar {
- id: control
- objectName: "progressbar-incomplete"
-
- contentItem: Item {
- objectName: "progressbar-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "progressbar-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/RadioButton.qml b/tests/auto/customization/data/styles/incomplete/RadioButton.qml
deleted file mode 100644
index fcd31ca6..00000000
--- a/tests/auto/customization/data/styles/incomplete/RadioButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioButton {
- id: control
- objectName: "radiobutton-incomplete"
-
- indicator: Item {
- objectName: "radiobutton-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "radiobutton-contentItem-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/RadioDelegate.qml b/tests/auto/customization/data/styles/incomplete/RadioDelegate.qml
deleted file mode 100644
index b64c0cab..00000000
--- a/tests/auto/customization/data/styles/incomplete/RadioDelegate.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioDelegate {
- id: control
- objectName: "radiodelegate-incomplete"
-
- indicator: Item {
- objectName: "radiodelegate-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "radiodelegate-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "radiodelegate-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/RangeSlider.qml b/tests/auto/customization/data/styles/incomplete/RangeSlider.qml
deleted file mode 100644
index c0faec20..00000000
--- a/tests/auto/customization/data/styles/incomplete/RangeSlider.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RangeSlider {
- id: control
- objectName: "rangeslider-incomplete"
-
- first.handle: Item {
- objectName: "rangeslider-first.handle-incomplete"
- }
-
- second.handle: Item {
- objectName: "rangeslider-second.handle-incomplete"
- }
-
- background: Item {
- objectName: "rangeslider-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/RoundButton.qml b/tests/auto/customization/data/styles/incomplete/RoundButton.qml
deleted file mode 100644
index ddb24e3d..00000000
--- a/tests/auto/customization/data/styles/incomplete/RoundButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RoundButton {
- id: control
- objectName: "roundbutton-incomplete"
-
- contentItem: Item {
- objectName: "roundbutton-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "roundbutton-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ScrollBar.qml b/tests/auto/customization/data/styles/incomplete/ScrollBar.qml
deleted file mode 100644
index a79c4daa..00000000
--- a/tests/auto/customization/data/styles/incomplete/ScrollBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollBar {
- id: control
- objectName: "scrollbar-incomplete"
-
- contentItem: Item {
- objectName: "scrollbar-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "scrollbar-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ScrollIndicator.qml b/tests/auto/customization/data/styles/incomplete/ScrollIndicator.qml
deleted file mode 100644
index 2401fbe5..00000000
--- a/tests/auto/customization/data/styles/incomplete/ScrollIndicator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollIndicator {
- id: control
- objectName: "scrollindicator-incomplete"
-
- contentItem: Item {
- objectName: "scrollindicator-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "scrollindicator-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ScrollView.qml b/tests/auto/customization/data/styles/incomplete/ScrollView.qml
deleted file mode 100644
index 736ea7b1..00000000
--- a/tests/auto/customization/data/styles/incomplete/ScrollView.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollView {
- id: control
- objectName: "scrollview-incomplete"
-
- background: Item {
- objectName: "scrollview-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Slider.qml b/tests/auto/customization/data/styles/incomplete/Slider.qml
deleted file mode 100644
index b4ede96f..00000000
--- a/tests/auto/customization/data/styles/incomplete/Slider.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Slider {
- id: control
- objectName: "slider-incomplete"
-
- handle: Item {
- objectName: "slider-handle-incomplete"
- }
-
- background: Item {
- objectName: "slider-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/SpinBox.qml b/tests/auto/customization/data/styles/incomplete/SpinBox.qml
deleted file mode 100644
index 6303ab06..00000000
--- a/tests/auto/customization/data/styles/incomplete/SpinBox.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SpinBox {
- id: control
- objectName: "spinbox-incomplete"
-
- up.indicator: Item {
- objectName: "spinbox-up.indicator-incomplete"
- }
-
- down.indicator: Item {
- objectName: "spinbox-down.indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "spinbox-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "spinbox-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/StackView.qml b/tests/auto/customization/data/styles/incomplete/StackView.qml
deleted file mode 100644
index b163a594..00000000
--- a/tests/auto/customization/data/styles/incomplete/StackView.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.StackView {
- id: control
- objectName: "stackview-incomplete"
-
- contentItem: Item {
- objectName: "stackview-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "stackview-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/SwipeDelegate.qml b/tests/auto/customization/data/styles/incomplete/SwipeDelegate.qml
deleted file mode 100644
index a64b0fae..00000000
--- a/tests/auto/customization/data/styles/incomplete/SwipeDelegate.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeDelegate {
- id: control
- objectName: "swipedelegate-incomplete"
-
- contentItem: Item {
- objectName: "swipedelegate-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "swipedelegate-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/SwipeView.qml b/tests/auto/customization/data/styles/incomplete/SwipeView.qml
deleted file mode 100644
index 07891063..00000000
--- a/tests/auto/customization/data/styles/incomplete/SwipeView.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeView {
- id: control
- objectName: "swipeview-incomplete"
-
- contentItem: Item {
- objectName: "swipeview-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "swipeview-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Switch.qml b/tests/auto/customization/data/styles/incomplete/Switch.qml
deleted file mode 100644
index 53e41149..00000000
--- a/tests/auto/customization/data/styles/incomplete/Switch.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Switch {
- id: control
- objectName: "switch-incomplete"
-
- indicator: Item {
- objectName: "switch-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "switch-contentItem-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/SwitchDelegate.qml b/tests/auto/customization/data/styles/incomplete/SwitchDelegate.qml
deleted file mode 100644
index c9be903f..00000000
--- a/tests/auto/customization/data/styles/incomplete/SwitchDelegate.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwitchDelegate {
- id: control
- objectName: "switchdelegate-incomplete"
-
- indicator: Item {
- objectName: "switchdelegate-indicator-incomplete"
- }
-
- contentItem: Item {
- objectName: "switchdelegate-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "switchdelegate-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/TabBar.qml b/tests/auto/customization/data/styles/incomplete/TabBar.qml
deleted file mode 100644
index 1a55af4d..00000000
--- a/tests/auto/customization/data/styles/incomplete/TabBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabBar {
- id: control
- objectName: "tabbar-incomplete"
-
- contentItem: Item {
- objectName: "tabbar-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "tabbar-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/TabButton.qml b/tests/auto/customization/data/styles/incomplete/TabButton.qml
deleted file mode 100644
index e2e88a99..00000000
--- a/tests/auto/customization/data/styles/incomplete/TabButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabButton {
- id: control
- objectName: "tabbutton-incomplete"
-
- contentItem: Item {
- objectName: "tabbutton-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "tabbutton-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/TextArea.qml b/tests/auto/customization/data/styles/incomplete/TextArea.qml
deleted file mode 100644
index cf56e5a0..00000000
--- a/tests/auto/customization/data/styles/incomplete/TextArea.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextArea {
- id: control
- objectName: "textarea-incomplete"
-
- background: Item {
- objectName: "textarea-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/TextField.qml b/tests/auto/customization/data/styles/incomplete/TextField.qml
deleted file mode 100644
index 66f8372b..00000000
--- a/tests/auto/customization/data/styles/incomplete/TextField.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextField {
- id: control
- objectName: "textfield-incomplete"
-
- background: Item {
- objectName: "textfield-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ToolBar.qml b/tests/auto/customization/data/styles/incomplete/ToolBar.qml
deleted file mode 100644
index a665bd25..00000000
--- a/tests/auto/customization/data/styles/incomplete/ToolBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolBar {
- id: control
- objectName: "toolbar-incomplete"
-
- contentItem: Item {
- objectName: "toolbar-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "toolbar-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ToolButton.qml b/tests/auto/customization/data/styles/incomplete/ToolButton.qml
deleted file mode 100644
index 3fa51246..00000000
--- a/tests/auto/customization/data/styles/incomplete/ToolButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolButton {
- id: control
- objectName: "toolbutton-incomplete"
-
- contentItem: Item {
- objectName: "toolbutton-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "toolbutton-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ToolSeparator.qml b/tests/auto/customization/data/styles/incomplete/ToolSeparator.qml
deleted file mode 100644
index 17b26d7c..00000000
--- a/tests/auto/customization/data/styles/incomplete/ToolSeparator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolSeparator {
- id: control
- objectName: "toolseparator-incomplete"
-
- contentItem: Item {
- objectName: "toolseparator-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "toolseparator-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/ToolTip.qml b/tests/auto/customization/data/styles/incomplete/ToolTip.qml
deleted file mode 100644
index 7aee3648..00000000
--- a/tests/auto/customization/data/styles/incomplete/ToolTip.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolTip {
- id: control
- objectName: "tooltip-incomplete"
-
- contentItem: Item {
- objectName: "tooltip-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "tooltip-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/incomplete/Tumbler.qml b/tests/auto/customization/data/styles/incomplete/Tumbler.qml
deleted file mode 100644
index cda24bc2..00000000
--- a/tests/auto/customization/data/styles/incomplete/Tumbler.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Tumbler {
- id: control
- objectName: "tumbler-incomplete"
-
- contentItem: ListView {
- objectName: "tumbler-contentItem-incomplete"
- }
-
- background: Item {
- objectName: "tumbler-background-incomplete"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/AbstractButton.qml b/tests/auto/customization/data/styles/override/AbstractButton.qml
deleted file mode 100644
index 398b51b7..00000000
--- a/tests/auto/customization/data/styles/override/AbstractButton.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.AbstractButton {
- id: control
- objectName: "abstractbutton-override"
-
- indicator: Item {
- objectName: "abstractbutton-indicator-override"
- }
-
- contentItem: Item {
- objectName: "abstractbutton-contentItem-override"
- }
-
- background: Item {
- objectName: "abstractbutton-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ApplicationWindow.qml b/tests/auto/customization/data/styles/override/ApplicationWindow.qml
deleted file mode 100644
index 7a760574..00000000
--- a/tests/auto/customization/data/styles/override/ApplicationWindow.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ApplicationWindow {
- id: control
- objectName: "applicationwindow-override"
-
- background: Item {
- objectName: "applicationwindow-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/BusyIndicator.qml b/tests/auto/customization/data/styles/override/BusyIndicator.qml
deleted file mode 100644
index 2b70548f..00000000
--- a/tests/auto/customization/data/styles/override/BusyIndicator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.BusyIndicator {
- id: control
- objectName: "busyindicator-override"
-
- contentItem: Item {
- objectName: "busyindicator-contentItem-override"
- }
-
- background: Item {
- objectName: "busyindicator-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Button.qml b/tests/auto/customization/data/styles/override/Button.qml
deleted file mode 100644
index 35f260c3..00000000
--- a/tests/auto/customization/data/styles/override/Button.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Button {
- id: control
- objectName: "button-override"
-
- contentItem: Item {
- objectName: "button-contentItem-override"
- }
-
- background: Item {
- objectName: "button-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/CheckBox.qml b/tests/auto/customization/data/styles/override/CheckBox.qml
deleted file mode 100644
index 857b86ea..00000000
--- a/tests/auto/customization/data/styles/override/CheckBox.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.CheckBox {
- id: control
- objectName: "checkbox-override"
-
- indicator: Item {
- objectName: "checkbox-indicator-override"
- }
-
- contentItem: Item {
- objectName: "checkbox-contentItem-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/CheckDelegate.qml b/tests/auto/customization/data/styles/override/CheckDelegate.qml
deleted file mode 100644
index 17e0ed48..00000000
--- a/tests/auto/customization/data/styles/override/CheckDelegate.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.CheckDelegate {
- id: control
- objectName: "checkdelegate-override"
-
- indicator: Item {
- objectName: "checkdelegate-indicator-override"
- }
-
- contentItem: Item {
- objectName: "checkdelegate-contentItem-override"
- }
-
- background: Item {
- objectName: "checkdelegate-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ComboBox.qml b/tests/auto/customization/data/styles/override/ComboBox.qml
deleted file mode 100644
index a41e4674..00000000
--- a/tests/auto/customization/data/styles/override/ComboBox.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-import "../simple" as Simple
-
-Simple.ComboBox {
- id: control
- objectName: "combobox-override"
-
- indicator: Item {
- objectName: "combobox-indicator-override"
- }
-
- contentItem: Item {
- objectName: "combobox-contentItem-override"
- }
-
- background: Item {
- objectName: "combobox-background-override"
- }
-
- popup: T.Popup {
- objectName: "combobox-popup-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Container.qml b/tests/auto/customization/data/styles/override/Container.qml
deleted file mode 100644
index d4d6c189..00000000
--- a/tests/auto/customization/data/styles/override/Container.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Container {
- id: control
- objectName: "container-override"
-
- contentItem: Item {
- objectName: "container-contentItem-override"
- }
-
- background: Item {
- objectName: "container-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Control.qml b/tests/auto/customization/data/styles/override/Control.qml
deleted file mode 100644
index fc6acb8f..00000000
--- a/tests/auto/customization/data/styles/override/Control.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Control {
- id: control
- objectName: "control-override"
-
- contentItem: Item {
- objectName: "control-contentItem-override"
- }
-
- background: Item {
- objectName: "control-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/DelayButton.qml b/tests/auto/customization/data/styles/override/DelayButton.qml
deleted file mode 100644
index 69fcf49d..00000000
--- a/tests/auto/customization/data/styles/override/DelayButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.DelayButton {
- id: control
- objectName: "delaybutton-override"
-
- contentItem: Item {
- objectName: "delaybutton-contentItem-override"
- }
-
- background: Item {
- objectName: "delaybutton-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Dial.qml b/tests/auto/customization/data/styles/override/Dial.qml
deleted file mode 100644
index 484f8c3f..00000000
--- a/tests/auto/customization/data/styles/override/Dial.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Dial {
- id: control
- objectName: "dial-override"
-
- handle: Item {
- objectName: "dial-handle-override"
- }
-
- background: Item {
- objectName: "dial-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Dialog.qml b/tests/auto/customization/data/styles/override/Dialog.qml
deleted file mode 100644
index 81798a39..00000000
--- a/tests/auto/customization/data/styles/override/Dialog.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Dialog {
- id: control
- objectName: "dialog-override"
-
- contentItem: Item {
- objectName: "dialog-contentItem-override"
- }
-
- background: Item {
- objectName: "dialog-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/DialogButtonBox.qml b/tests/auto/customization/data/styles/override/DialogButtonBox.qml
deleted file mode 100644
index 5ab315d4..00000000
--- a/tests/auto/customization/data/styles/override/DialogButtonBox.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.DialogButtonBox {
- id: control
- objectName: "dialogbuttonbox-override"
-
- contentItem: Item {
- objectName: "dialogbuttonbox-contentItem-override"
- }
-
- background: Item {
- objectName: "dialogbuttonbox-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Drawer.qml b/tests/auto/customization/data/styles/override/Drawer.qml
deleted file mode 100644
index 943522e7..00000000
--- a/tests/auto/customization/data/styles/override/Drawer.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Drawer {
- id: control
- objectName: "drawer-override"
-
- contentItem: Item {
- objectName: "drawer-contentItem-override"
- }
-
- background: Item {
- objectName: "drawer-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Frame.qml b/tests/auto/customization/data/styles/override/Frame.qml
deleted file mode 100644
index b3b589b5..00000000
--- a/tests/auto/customization/data/styles/override/Frame.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Frame {
- id: control
- objectName: "frame-override"
-
- contentItem: Item {
- objectName: "frame-contentItem-override"
- }
-
- background: Item {
- objectName: "frame-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/GroupBox.qml b/tests/auto/customization/data/styles/override/GroupBox.qml
deleted file mode 100644
index 570bc63e..00000000
--- a/tests/auto/customization/data/styles/override/GroupBox.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.GroupBox {
- id: control
- objectName: "groupbox-override"
-
- label: Text {
- objectName: "groupbox-label-override"
- }
-
- contentItem: Item {
- objectName: "groupbox-contentItem-override"
- }
-
- background: Item {
- objectName: "groupbox-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ItemDelegate.qml b/tests/auto/customization/data/styles/override/ItemDelegate.qml
deleted file mode 100644
index 6b2fd928..00000000
--- a/tests/auto/customization/data/styles/override/ItemDelegate.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ItemDelegate {
- id: control
- objectName: "itemdelegate-override"
-
- contentItem: Item {
- objectName: "itemdelegate-contentItem-override"
- }
-
- background: Item {
- objectName: "itemdelegate-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Label.qml b/tests/auto/customization/data/styles/override/Label.qml
deleted file mode 100644
index 249a9e99..00000000
--- a/tests/auto/customization/data/styles/override/Label.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Label {
- id: control
- objectName: "label-override"
-
- background: Item {
- objectName: "label-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Menu.qml b/tests/auto/customization/data/styles/override/Menu.qml
deleted file mode 100644
index 4e10c480..00000000
--- a/tests/auto/customization/data/styles/override/Menu.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Menu {
- id: control
- objectName: "menu-override"
-
- contentItem: Item {
- objectName: "menu-contentItem-override"
- }
-
- background: Item {
- objectName: "menu-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/MenuBar.qml b/tests/auto/customization/data/styles/override/MenuBar.qml
deleted file mode 100644
index baeef209..00000000
--- a/tests/auto/customization/data/styles/override/MenuBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.MenuBar {
- id: control
- objectName: "menubar-override"
-
- contentItem: Item {
- objectName: "menubar-contentItem-override"
- }
-
- background: Item {
- objectName: "menubar-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/MenuBarItem.qml b/tests/auto/customization/data/styles/override/MenuBarItem.qml
deleted file mode 100644
index a76ca190..00000000
--- a/tests/auto/customization/data/styles/override/MenuBarItem.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.MenuBarItem {
- id: control
- objectName: "menubaritem-override"
-
- contentItem: Item {
- objectName: "menubaritem-contentItem-override"
- }
-
- background: Item {
- objectName: "menubaritem-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/MenuItem.qml b/tests/auto/customization/data/styles/override/MenuItem.qml
deleted file mode 100644
index ee10e1ba..00000000
--- a/tests/auto/customization/data/styles/override/MenuItem.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.MenuItem {
- id: control
- objectName: "menuitem-override"
-
- arrow: Item {
- objectName: "menuitem-arrow-override"
- }
-
- indicator: Item {
- objectName: "menuitem-indicator-override"
- }
-
- contentItem: Item {
- objectName: "menuitem-contentItem-override"
- }
-
- background: Item {
- objectName: "menuitem-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/MenuSeparator.qml b/tests/auto/customization/data/styles/override/MenuSeparator.qml
deleted file mode 100644
index c60cedea..00000000
--- a/tests/auto/customization/data/styles/override/MenuSeparator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.MenuSeparator {
- id: control
- objectName: "menuseparator-override"
-
- contentItem: Item {
- objectName: "menuseparator-contentItem-override"
- }
-
- background: Item {
- objectName: "menuseparator-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Page.qml b/tests/auto/customization/data/styles/override/Page.qml
deleted file mode 100644
index 9f85d9e9..00000000
--- a/tests/auto/customization/data/styles/override/Page.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Page {
- id: control
- objectName: "page-override"
-
- contentItem: Item {
- objectName: "page-contentItem-override"
- }
-
- background: Item {
- objectName: "page-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/PageIndicator.qml b/tests/auto/customization/data/styles/override/PageIndicator.qml
deleted file mode 100644
index 1d1e20ed..00000000
--- a/tests/auto/customization/data/styles/override/PageIndicator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.PageIndicator {
- id: control
- objectName: "pageindicator-override"
-
- contentItem: Item {
- objectName: "pageindicator-contentItem-override"
- }
-
- background: Item {
- objectName: "pageindicator-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Pane.qml b/tests/auto/customization/data/styles/override/Pane.qml
deleted file mode 100644
index fb56cc07..00000000
--- a/tests/auto/customization/data/styles/override/Pane.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Pane {
- id: control
- objectName: "pane-override"
-
- contentItem: Item {
- objectName: "pane-contentItem-override"
- }
-
- background: Item {
- objectName: "pane-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Popup.qml b/tests/auto/customization/data/styles/override/Popup.qml
deleted file mode 100644
index 54e8a4f7..00000000
--- a/tests/auto/customization/data/styles/override/Popup.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Popup {
- id: control
- objectName: "popup-override"
-
- contentItem: Item {
- objectName: "popup-contentItem-override"
- }
-
- background: Item {
- objectName: "popup-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ProgressBar.qml b/tests/auto/customization/data/styles/override/ProgressBar.qml
deleted file mode 100644
index ce0623f2..00000000
--- a/tests/auto/customization/data/styles/override/ProgressBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ProgressBar {
- id: control
- objectName: "progressbar-override"
-
- contentItem: Item {
- objectName: "progressbar-contentItem-override"
- }
-
- background: Item {
- objectName: "progressbar-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/RadioButton.qml b/tests/auto/customization/data/styles/override/RadioButton.qml
deleted file mode 100644
index c435b3d9..00000000
--- a/tests/auto/customization/data/styles/override/RadioButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.RadioButton {
- id: control
- objectName: "radiobutton-override"
-
- indicator: Item {
- objectName: "radiobutton-indicator-override"
- }
-
- contentItem: Item {
- objectName: "radiobutton-contentItem-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/RadioDelegate.qml b/tests/auto/customization/data/styles/override/RadioDelegate.qml
deleted file mode 100644
index 2659800e..00000000
--- a/tests/auto/customization/data/styles/override/RadioDelegate.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.RadioDelegate {
- id: control
- objectName: "radiodelegate-override"
-
- indicator: Item {
- objectName: "radiodelegate-indicator-override"
- }
-
- contentItem: Item {
- objectName: "radiodelegate-contentItem-override"
- }
-
- background: Item {
- objectName: "radiodelegate-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/RangeSlider.qml b/tests/auto/customization/data/styles/override/RangeSlider.qml
deleted file mode 100644
index 7c8cdbbc..00000000
--- a/tests/auto/customization/data/styles/override/RangeSlider.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.RangeSlider {
- id: control
- objectName: "rangeslider-override"
-
- first.handle: Item {
- objectName: "rangeslider-first.handle-override"
- }
-
- second.handle: Item {
- objectName: "rangeslider-second.handle-override"
- }
-
- background: Item {
- objectName: "rangeslider-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/RoundButton.qml b/tests/auto/customization/data/styles/override/RoundButton.qml
deleted file mode 100644
index 233d0c30..00000000
--- a/tests/auto/customization/data/styles/override/RoundButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.RoundButton {
- id: control
- objectName: "roundbutton-override"
-
- contentItem: Item {
- objectName: "roundbutton-contentItem-override"
- }
-
- background: Item {
- objectName: "roundbutton-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ScrollBar.qml b/tests/auto/customization/data/styles/override/ScrollBar.qml
deleted file mode 100644
index 69fc08f6..00000000
--- a/tests/auto/customization/data/styles/override/ScrollBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ScrollBar {
- id: control
- objectName: "scrollbar-override"
-
- contentItem: Item {
- objectName: "scrollbar-contentItem-override"
- }
-
- background: Item {
- objectName: "scrollbar-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ScrollIndicator.qml b/tests/auto/customization/data/styles/override/ScrollIndicator.qml
deleted file mode 100644
index 15a44e7a..00000000
--- a/tests/auto/customization/data/styles/override/ScrollIndicator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ScrollIndicator {
- id: control
- objectName: "scrollindicator-override"
-
- contentItem: Item {
- objectName: "scrollindicator-contentItem-override"
- }
-
- background: Item {
- objectName: "scrollindicator-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ScrollView.qml b/tests/auto/customization/data/styles/override/ScrollView.qml
deleted file mode 100644
index a8041961..00000000
--- a/tests/auto/customization/data/styles/override/ScrollView.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ScrollView {
- id: control
- objectName: "scrollview-override"
-
- background: Item {
- objectName: "scrollview-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Slider.qml b/tests/auto/customization/data/styles/override/Slider.qml
deleted file mode 100644
index 252752fd..00000000
--- a/tests/auto/customization/data/styles/override/Slider.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Slider {
- id: control
- objectName: "slider-override"
-
- handle: Item {
- objectName: "slider-handle-override"
- }
-
- background: Item {
- objectName: "slider-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/SpinBox.qml b/tests/auto/customization/data/styles/override/SpinBox.qml
deleted file mode 100644
index 041ba6a0..00000000
--- a/tests/auto/customization/data/styles/override/SpinBox.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.SpinBox {
- id: control
- objectName: "spinbox-override"
-
- up.indicator: Item {
- objectName: "spinbox-up.indicator-override"
- }
-
- down.indicator: Item {
- objectName: "spinbox-down.indicator-override"
- }
-
- contentItem: Item {
- objectName: "spinbox-contentItem-override"
- }
-
- background: Item {
- objectName: "spinbox-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/StackView.qml b/tests/auto/customization/data/styles/override/StackView.qml
deleted file mode 100644
index aa35fd62..00000000
--- a/tests/auto/customization/data/styles/override/StackView.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.StackView {
- id: control
- objectName: "stackview-override"
-
- contentItem: Item {
- objectName: "stackview-contentItem-override"
- }
-
- background: Item {
- objectName: "stackview-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/SwipeDelegate.qml b/tests/auto/customization/data/styles/override/SwipeDelegate.qml
deleted file mode 100644
index 634f1e69..00000000
--- a/tests/auto/customization/data/styles/override/SwipeDelegate.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.SwipeDelegate {
- id: control
- objectName: "swipedelegate-override"
-
- contentItem: Item {
- objectName: "swipedelegate-contentItem-override"
- }
-
- background: Item {
- objectName: "swipedelegate-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/SwipeView.qml b/tests/auto/customization/data/styles/override/SwipeView.qml
deleted file mode 100644
index ffea0df8..00000000
--- a/tests/auto/customization/data/styles/override/SwipeView.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.SwipeView {
- id: control
- objectName: "swipeview-override"
-
- contentItem: Item {
- objectName: "swipeview-contentItem-override"
- }
-
- background: Item {
- objectName: "swipeview-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Switch.qml b/tests/auto/customization/data/styles/override/Switch.qml
deleted file mode 100644
index 0006b00d..00000000
--- a/tests/auto/customization/data/styles/override/Switch.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Switch {
- id: control
- objectName: "switch-override"
-
- indicator: Item {
- objectName: "switch-indicator-override"
- }
-
- contentItem: Item {
- objectName: "switch-contentItem-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/SwitchDelegate.qml b/tests/auto/customization/data/styles/override/SwitchDelegate.qml
deleted file mode 100644
index 6a9e318c..00000000
--- a/tests/auto/customization/data/styles/override/SwitchDelegate.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.SwitchDelegate {
- id: control
- objectName: "switchdelegate-override"
-
- indicator: Item {
- objectName: "switchdelegate-indicator-override"
- }
-
- contentItem: Item {
- objectName: "switchdelegate-contentItem-override"
- }
-
- background: Item {
- objectName: "switchdelegate-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/TabBar.qml b/tests/auto/customization/data/styles/override/TabBar.qml
deleted file mode 100644
index 11c009e6..00000000
--- a/tests/auto/customization/data/styles/override/TabBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.TabBar {
- id: control
- objectName: "tabbar-override"
-
- contentItem: Item {
- objectName: "tabbar-contentItem-override"
- }
-
- background: Item {
- objectName: "tabbar-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/TabButton.qml b/tests/auto/customization/data/styles/override/TabButton.qml
deleted file mode 100644
index 967e6ab5..00000000
--- a/tests/auto/customization/data/styles/override/TabButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.TabButton {
- id: control
- objectName: "tabbutton-override"
-
- contentItem: Item {
- objectName: "tabbutton-contentItem-override"
- }
-
- background: Item {
- objectName: "tabbutton-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/TextArea.qml b/tests/auto/customization/data/styles/override/TextArea.qml
deleted file mode 100644
index 5a1b1fe9..00000000
--- a/tests/auto/customization/data/styles/override/TextArea.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.TextArea {
- id: control
- objectName: "textarea-override"
-
- background: Item {
- objectName: "textarea-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/TextField.qml b/tests/auto/customization/data/styles/override/TextField.qml
deleted file mode 100644
index 2c37d9ae..00000000
--- a/tests/auto/customization/data/styles/override/TextField.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.TextField {
- id: control
- objectName: "textfield-override"
-
- background: Item {
- objectName: "textfield-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ToolBar.qml b/tests/auto/customization/data/styles/override/ToolBar.qml
deleted file mode 100644
index 51346893..00000000
--- a/tests/auto/customization/data/styles/override/ToolBar.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ToolBar {
- id: control
- objectName: "toolbar-override"
-
- contentItem: Item {
- objectName: "toolbar-contentItem-override"
- }
-
- background: Item {
- objectName: "toolbar-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ToolButton.qml b/tests/auto/customization/data/styles/override/ToolButton.qml
deleted file mode 100644
index 67bbcf64..00000000
--- a/tests/auto/customization/data/styles/override/ToolButton.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ToolButton {
- id: control
- objectName: "toolbutton-override"
-
- contentItem: Item {
- objectName: "toolbutton-contentItem-override"
- }
-
- background: Item {
- objectName: "toolbutton-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ToolSeparator.qml b/tests/auto/customization/data/styles/override/ToolSeparator.qml
deleted file mode 100644
index 70704e6b..00000000
--- a/tests/auto/customization/data/styles/override/ToolSeparator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ToolSeparator {
- id: control
- objectName: "toolseparator-override"
-
- contentItem: Item {
- objectName: "toolseparator-contentItem-override"
- }
-
- background: Item {
- objectName: "toolseparator-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/ToolTip.qml b/tests/auto/customization/data/styles/override/ToolTip.qml
deleted file mode 100644
index 4be4dc43..00000000
--- a/tests/auto/customization/data/styles/override/ToolTip.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.ToolTip {
- id: control
- objectName: "tooltip-override"
-
- contentItem: Item {
- objectName: "tooltip-contentItem-override"
- }
-
- background: Item {
- objectName: "tooltip-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/override/Tumbler.qml b/tests/auto/customization/data/styles/override/Tumbler.qml
deleted file mode 100644
index f3d56273..00000000
--- a/tests/auto/customization/data/styles/override/Tumbler.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import "../simple" as Simple
-
-Simple.Tumbler {
- id: control
- objectName: "tumbler-override"
-
- contentItem: ListView {
- objectName: "tumbler-contentItem-override"
- }
-
- background: Item {
- objectName: "tumbler-background-override"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/AbstractButton.qml b/tests/auto/customization/data/styles/simple/AbstractButton.qml
deleted file mode 100644
index 2daaea48..00000000
--- a/tests/auto/customization/data/styles/simple/AbstractButton.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.AbstractButton {
- id: control
- objectName: "abstractbutton-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth + indicator.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight, background.implicitHeight)
-
- indicator: Text {
- objectName: "abstractbutton-indicator-simple"
- text: control.checked ? "V" : ""
- }
-
- contentItem: Text {
- objectName: "abstractbutton-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "abstractbutton-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ApplicationWindow.qml b/tests/auto/customization/data/styles/simple/ApplicationWindow.qml
deleted file mode 100644
index 6cf6440d..00000000
--- a/tests/auto/customization/data/styles/simple/ApplicationWindow.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ApplicationWindow {
- id: control
- objectName: "applicationwindow-simple"
-
- minimumWidth: background.implicitWidth
- minimumHeight: background.implicitHeight
-
- background: Rectangle {
- objectName: "applicationwindow-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/BusyIndicator.qml b/tests/auto/customization/data/styles/simple/BusyIndicator.qml
deleted file mode 100644
index f859a09b..00000000
--- a/tests/auto/customization/data/styles/simple/BusyIndicator.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.BusyIndicator {
- id: control
- objectName: "busyindicator-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "busyindicator-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "busyindicator-background-simple"
- color: control.running ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Button.qml b/tests/auto/customization/data/styles/simple/Button.qml
deleted file mode 100644
index 66240ba2..00000000
--- a/tests/auto/customization/data/styles/simple/Button.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Button {
- id: control
- objectName: "button-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "button-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "button-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/CheckBox.qml b/tests/auto/customization/data/styles/simple/CheckBox.qml
deleted file mode 100644
index 931228b0..00000000
--- a/tests/auto/customization/data/styles/simple/CheckBox.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.CheckBox {
- id: control
- objectName: "checkbox-simple"
-
- implicitWidth: contentItem.implicitWidth + indicator.implicitWidth
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight)
-
- indicator: Text {
- objectName: "checkbox-indicator-simple"
- text: control.checked ? "V" : ""
- }
-
- contentItem: Text {
- objectName: "checkbox-contentItem-simple"
- text: control.text
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/CheckDelegate.qml b/tests/auto/customization/data/styles/simple/CheckDelegate.qml
deleted file mode 100644
index cc1cdd7a..00000000
--- a/tests/auto/customization/data/styles/simple/CheckDelegate.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.CheckDelegate {
- id: control
- objectName: "checkdelegate-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth + indicator.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight, background.implicitHeight)
-
- indicator: Text {
- objectName: "checkdelegate-indicator-simple"
- text: control.checked ? "V" : ""
- }
-
- contentItem: Text {
- objectName: "checkdelegate-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "checkdelegate-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ComboBox.qml b/tests/auto/customization/data/styles/simple/ComboBox.qml
deleted file mode 100644
index 658f5d77..00000000
--- a/tests/auto/customization/data/styles/simple/ComboBox.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ComboBox {
- id: control
- objectName: "combobox-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth + indicator.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight, background.implicitHeight)
-
- indicator: Text {
- objectName: "combobox-indicator-simple"
- text: control.comboed ? "V" : ""
- }
-
- contentItem: Text {
- objectName: "combobox-contentItem-simple"
- text: control.currentText
- }
-
- background: Rectangle {
- objectName: "combobox-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.down ? "red" : "green"
- }
-
- popup: T.Popup {
- objectName: "combobox-popup-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Container.qml b/tests/auto/customization/data/styles/simple/Container.qml
deleted file mode 100644
index cfa32324..00000000
--- a/tests/auto/customization/data/styles/simple/Container.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Container {
- id: control
- objectName: "container-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "container-contentItem-simple"
- }
-
- background: Item {
- objectName: "container-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Control.qml b/tests/auto/customization/data/styles/simple/Control.qml
deleted file mode 100644
index d8ba3c81..00000000
--- a/tests/auto/customization/data/styles/simple/Control.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Control {
- id: control
- objectName: "control-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "control-contentItem-simple"
- }
-
- background: Item {
- objectName: "control-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/DelayButton.qml b/tests/auto/customization/data/styles/simple/DelayButton.qml
deleted file mode 100644
index d48abf9c..00000000
--- a/tests/auto/customization/data/styles/simple/DelayButton.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DelayButton {
- id: control
- objectName: "delaybutton-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "delaybutton-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "delaybutton-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Dial.qml b/tests/auto/customization/data/styles/simple/Dial.qml
deleted file mode 100644
index 26f1f86a..00000000
--- a/tests/auto/customization/data/styles/simple/Dial.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dial {
- id: control
- objectName: "dial-simple"
-
- implicitWidth: Math.max(handle.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(handle.implicitHeight, background.implicitHeight)
-
- handle: Rectangle {
- objectName: "dial-handle-simple"
- color: control.pressed ? "red" : "green"
- }
-
- background: Rectangle {
- objectName: "dial-background-simple"
- implicitWidth: 200
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Dialog.qml b/tests/auto/customization/data/styles/simple/Dialog.qml
deleted file mode 100644
index 020ff66b..00000000
--- a/tests/auto/customization/data/styles/simple/Dialog.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Dialog {
- id: control
- objectName: "dialog-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "dialog-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "dialog-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/DialogButtonBox.qml b/tests/auto/customization/data/styles/simple/DialogButtonBox.qml
deleted file mode 100644
index 6514647e..00000000
--- a/tests/auto/customization/data/styles/simple/DialogButtonBox.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.DialogButtonBox {
- id: control
- objectName: "dialogbuttonbox-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "dialogbuttonbox-contentItem-simple"
- }
-
- background: Item {
- objectName: "dialogbuttonbox-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Drawer.qml b/tests/auto/customization/data/styles/simple/Drawer.qml
deleted file mode 100644
index ac75cbdf..00000000
--- a/tests/auto/customization/data/styles/simple/Drawer.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Drawer {
- id: control
- objectName: "drawer-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "drawer-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "drawer-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Frame.qml b/tests/auto/customization/data/styles/simple/Frame.qml
deleted file mode 100644
index 11a8e0fc..00000000
--- a/tests/auto/customization/data/styles/simple/Frame.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Frame {
- id: control
- objectName: "frame-simple"
-
- implicitWidth: Math.max(background.implicitWidth, contentWidth)
- implicitHeight: Math.max(background.implicitHeight, contentHeight)
-
- contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0)
- contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0)
-
- contentItem: Item {
- objectName: "frame-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "frame-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/GroupBox.qml b/tests/auto/customization/data/styles/simple/GroupBox.qml
deleted file mode 100644
index 309950ea..00000000
--- a/tests/auto/customization/data/styles/simple/GroupBox.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.GroupBox {
- id: control
- objectName: "groupbox-simple"
-
- implicitWidth: Math.max(background.implicitWidth, contentWidth)
- implicitHeight: Math.max(background.implicitHeight, contentHeight)
-
- contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0)
- contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0)
-
- contentItem: Item {
- objectName: "groupbox-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "groupbox-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-
- label: Text {
- objectName: "groupbox-label-simple"
- text: control.title
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ItemDelegate.qml b/tests/auto/customization/data/styles/simple/ItemDelegate.qml
deleted file mode 100644
index 9eb3c9c8..00000000
--- a/tests/auto/customization/data/styles/simple/ItemDelegate.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ItemDelegate {
- id: control
- objectName: "itemdelegate-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "itemdelegate-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "itemdelegate-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Label.qml b/tests/auto/customization/data/styles/simple/Label.qml
deleted file mode 100644
index d7afddbb..00000000
--- a/tests/auto/customization/data/styles/simple/Label.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Label {
- id: control
- objectName: "label-simple"
-
- background: Rectangle {
- objectName: "label-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Menu.qml b/tests/auto/customization/data/styles/simple/Menu.qml
deleted file mode 100644
index 3c2d487c..00000000
--- a/tests/auto/customization/data/styles/simple/Menu.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Menu {
- id: control
- objectName: "menu-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: ListView {
- objectName: "menu-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "menu-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/MenuBar.qml b/tests/auto/customization/data/styles/simple/MenuBar.qml
deleted file mode 100644
index 1e64a3ac..00000000
--- a/tests/auto/customization/data/styles/simple/MenuBar.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuBar {
- id: control
- objectName: "menubar-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "menubar-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "menubar-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/MenuBarItem.qml b/tests/auto/customization/data/styles/simple/MenuBarItem.qml
deleted file mode 100644
index 1454ceaa..00000000
--- a/tests/auto/customization/data/styles/simple/MenuBarItem.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuBarItem {
- id: control
- objectName: "menubaritem-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "menubaritem-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "menubaritem-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/MenuItem.qml b/tests/auto/customization/data/styles/simple/MenuItem.qml
deleted file mode 100644
index 59ac3471..00000000
--- a/tests/auto/customization/data/styles/simple/MenuItem.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuItem {
- id: control
- objectName: "menuitem-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth + indicator.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight, background.implicitHeight)
-
- arrow: Text {
- objectName: "menuitem-arrow-simple"
- text: control.mirrored ? "<" : ">"
- }
-
- indicator: Text {
- objectName: "menuitem-indicator-simple"
- text: control.checked ? "V" : ""
- }
-
- contentItem: Text {
- objectName: "menuitem-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "menuitem-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/MenuSeparator.qml b/tests/auto/customization/data/styles/simple/MenuSeparator.qml
deleted file mode 100644
index 413b412f..00000000
--- a/tests/auto/customization/data/styles/simple/MenuSeparator.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.MenuSeparator {
- id: control
- objectName: "menuseparator-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "menuseparator-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "menuseparator-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Page.qml b/tests/auto/customization/data/styles/simple/Page.qml
deleted file mode 100644
index 950bbdc0..00000000
--- a/tests/auto/customization/data/styles/simple/Page.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Page {
- id: control
- objectName: "page-simple"
-
- implicitWidth: Math.max(background.implicitWidth, contentWidth)
- implicitHeight: Math.max(background.implicitHeight, contentHeight)
-
- contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0)
- contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0)
-
- contentItem: Item {
- objectName: "page-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "page-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/PageIndicator.qml b/tests/auto/customization/data/styles/simple/PageIndicator.qml
deleted file mode 100644
index 7ec5c57a..00000000
--- a/tests/auto/customization/data/styles/simple/PageIndicator.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.PageIndicator {
- id: control
- objectName: "pageindicator-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "pageindicator-contentItem-simple"
- }
-
- background: Item {
- objectName: "pageindicator-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Pane.qml b/tests/auto/customization/data/styles/simple/Pane.qml
deleted file mode 100644
index 86fb079f..00000000
--- a/tests/auto/customization/data/styles/simple/Pane.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Pane {
- id: control
- objectName: "pane-simple"
-
- implicitWidth: Math.max(background.implicitWidth, contentWidth)
- implicitHeight: Math.max(background.implicitHeight, contentHeight)
-
- contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0)
- contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0)
-
- contentItem: Item {
- objectName: "pane-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "pane-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Popup.qml b/tests/auto/customization/data/styles/simple/Popup.qml
deleted file mode 100644
index 41b90be0..00000000
--- a/tests/auto/customization/data/styles/simple/Popup.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Popup {
- id: control
- objectName: "popup-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "popup-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "popup-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ProgressBar.qml b/tests/auto/customization/data/styles/simple/ProgressBar.qml
deleted file mode 100644
index 81c0f146..00000000
--- a/tests/auto/customization/data/styles/simple/ProgressBar.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ProgressBar {
- id: control
- objectName: "progressbar-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "progressbar-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "progressbar-background-simple"
- color: control.indeterminate ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/RadioButton.qml b/tests/auto/customization/data/styles/simple/RadioButton.qml
deleted file mode 100644
index c9910756..00000000
--- a/tests/auto/customization/data/styles/simple/RadioButton.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioButton {
- id: control
- objectName: "radiobutton-simple"
-
- implicitWidth: contentItem.implicitWidth + indicator.implicitWidth
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight)
-
- indicator: Text {
- objectName: "radiobutton-indicator-simple"
- text: control.checked ? "O" : ""
- }
-
- contentItem: Text {
- objectName: "radiobutton-contentItem-simple"
- text: control.text
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/RadioDelegate.qml b/tests/auto/customization/data/styles/simple/RadioDelegate.qml
deleted file mode 100644
index c59fa336..00000000
--- a/tests/auto/customization/data/styles/simple/RadioDelegate.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RadioDelegate {
- id: control
- objectName: "radiodelegate-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth + indicator.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight, background.implicitHeight)
-
- indicator: Text {
- objectName: "radiodelegate-indicator-simple"
- text: control.radioed ? "V" : ""
- }
-
- contentItem: Text {
- objectName: "radiodelegate-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "radiodelegate-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/RangeSlider.qml b/tests/auto/customization/data/styles/simple/RangeSlider.qml
deleted file mode 100644
index d16c4bcf..00000000
--- a/tests/auto/customization/data/styles/simple/RangeSlider.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RangeSlider {
- id: control
- objectName: "rangeslider-simple"
-
- implicitWidth: Math.max(control.first.handle.implicitWidth, control.second.handle.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(control.first.handle.implicitHeight, control.second.handle.implicitHeight, background.implicitHeight)
-
- first.handle: Rectangle {
- objectName: "rangeslider-first.handle-simple"
- color: control.first.pressed ? "red" : "green"
- }
-
- second.handle: Rectangle {
- objectName: "rangeslider-second.handle-simple"
- color: control.second.pressed ? "red" : "green"
- }
-
- background: Rectangle {
- objectName: "rangeslider-background-simple"
- implicitWidth: 200
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/RoundButton.qml b/tests/auto/customization/data/styles/simple/RoundButton.qml
deleted file mode 100644
index c5609e34..00000000
--- a/tests/auto/customization/data/styles/simple/RoundButton.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.RoundButton {
- id: control
- objectName: "roundbutton-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "roundbutton-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "roundbutton-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- radius: control.radius
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ScrollBar.qml b/tests/auto/customization/data/styles/simple/ScrollBar.qml
deleted file mode 100644
index 01f3f78e..00000000
--- a/tests/auto/customization/data/styles/simple/ScrollBar.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollBar {
- id: control
- objectName: "scrollbar-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "scrollbar-contentItem-simple"
- }
-
- background: Item {
- objectName: "scrollbar-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ScrollIndicator.qml b/tests/auto/customization/data/styles/simple/ScrollIndicator.qml
deleted file mode 100644
index 4b802ed7..00000000
--- a/tests/auto/customization/data/styles/simple/ScrollIndicator.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollIndicator {
- id: control
- objectName: "scrollindicator-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "scrollindicator-contentItem-simple"
- }
-
- background: Item {
- objectName: "scrollindicator-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ScrollView.qml b/tests/auto/customization/data/styles/simple/ScrollView.qml
deleted file mode 100644
index fe782285..00000000
--- a/tests/auto/customization/data/styles/simple/ScrollView.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ScrollView {
- id: control
- objectName: "scrollview-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- background: Rectangle {
- objectName: "scrollview-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Slider.qml b/tests/auto/customization/data/styles/simple/Slider.qml
deleted file mode 100644
index 109709b2..00000000
--- a/tests/auto/customization/data/styles/simple/Slider.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Slider {
- id: control
- objectName: "slider-simple"
-
- implicitWidth: Math.max(handle.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(handle.implicitHeight, background.implicitHeight)
-
- handle: Rectangle {
- objectName: "slider-handle-simple"
- color: control.pressed ? "red" : "green"
- }
-
- background: Rectangle {
- objectName: "slider-background-simple"
- implicitWidth: 200
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/SpinBox.qml b/tests/auto/customization/data/styles/simple/SpinBox.qml
deleted file mode 100644
index 9db98875..00000000
--- a/tests/auto/customization/data/styles/simple/SpinBox.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SpinBox {
- id: control
- objectName: "spinbox-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth + up.indicator.implicitWidth + down.indicator.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, up.indicator.implicitHeight, down.indicator.implicitHeight, background.implicitHeight)
-
- up.indicator: Rectangle {
- objectName: "spinbox-up.indicator-simple"
- color: control.up.pressed ? "red" : "green"
- }
-
- down.indicator: Rectangle {
- objectName: "spinbox-down.indicator-simple"
- color: control.down.pressed ? "red" : "green"
- }
-
- contentItem: Text {
- objectName: "spinbox-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "spinbox-background-simple"
- implicitWidth: 200
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/StackView.qml b/tests/auto/customization/data/styles/simple/StackView.qml
deleted file mode 100644
index f1439275..00000000
--- a/tests/auto/customization/data/styles/simple/StackView.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.StackView {
- id: control
- objectName: "stackview-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "stackview-contentItem-simple"
- }
-
- background: Item {
- objectName: "stackview-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/SwipeDelegate.qml b/tests/auto/customization/data/styles/simple/SwipeDelegate.qml
deleted file mode 100644
index 27701a92..00000000
--- a/tests/auto/customization/data/styles/simple/SwipeDelegate.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeDelegate {
- id: control
- objectName: "swipedelegate-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "swipedelegate-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "swipedelegate-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/SwipeView.qml b/tests/auto/customization/data/styles/simple/SwipeView.qml
deleted file mode 100644
index abdde942..00000000
--- a/tests/auto/customization/data/styles/simple/SwipeView.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwipeView {
- id: control
- objectName: "swipeview-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Item {
- objectName: "swipeview-contentItem-simple"
- }
-
- background: Item {
- objectName: "swipeview-background-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Switch.qml b/tests/auto/customization/data/styles/simple/Switch.qml
deleted file mode 100644
index 8d008ffb..00000000
--- a/tests/auto/customization/data/styles/simple/Switch.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Switch {
- id: control
- objectName: "switch-simple"
-
- implicitWidth: contentItem.implicitWidth + indicator.implicitWidth
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight)
-
- indicator: Item {
- objectName: "switch-indicator-simple"
- }
-
- contentItem: Item {
- objectName: "switch-contentItem-simple"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/SwitchDelegate.qml b/tests/auto/customization/data/styles/simple/SwitchDelegate.qml
deleted file mode 100644
index cdc91314..00000000
--- a/tests/auto/customization/data/styles/simple/SwitchDelegate.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.SwitchDelegate {
- id: control
- objectName: "switchdelegate-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth + indicator.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, indicator.implicitHeight, background.implicitHeight)
-
- indicator: Text {
- objectName: "switchdelegate-indicator-simple"
- text: control.radioed ? "V" : ""
- }
-
- contentItem: Text {
- objectName: "switchdelegate-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "switchdelegate-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/TabBar.qml b/tests/auto/customization/data/styles/simple/TabBar.qml
deleted file mode 100644
index 5055346e..00000000
--- a/tests/auto/customization/data/styles/simple/TabBar.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabBar {
- id: control
- objectName: "tabbar-simple"
-
- implicitWidth: Math.max(background.implicitWidth, contentItem.implicitWidth)
- implicitHeight: Math.max(background.implicitHeight, contentItem.implicitHeight)
-
- contentItem: Item {
- objectName: "tabbar-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "tabbar-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/TabButton.qml b/tests/auto/customization/data/styles/simple/TabButton.qml
deleted file mode 100644
index d6b67647..00000000
--- a/tests/auto/customization/data/styles/simple/TabButton.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TabButton {
- id: control
- objectName: "tabbutton-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "tabbutton-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "tabbutton-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/TextArea.qml b/tests/auto/customization/data/styles/simple/TextArea.qml
deleted file mode 100644
index 10c326a6..00000000
--- a/tests/auto/customization/data/styles/simple/TextArea.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextArea {
- id: control
- objectName: "textarea-simple"
-
- implicitWidth: Math.max(contentWidth, background.implicitWidth)
- implicitHeight: Math.max(contentHeight, background.implicitHeight)
-
- background: Rectangle {
- objectName: "textarea-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/TextField.qml b/tests/auto/customization/data/styles/simple/TextField.qml
deleted file mode 100644
index 09c12a60..00000000
--- a/tests/auto/customization/data/styles/simple/TextField.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.TextField {
- id: control
- objectName: "textfield-simple"
-
- implicitWidth: Math.max(contentWidth, background.implicitWidth)
- implicitHeight: Math.max(contentHeight, background.implicitHeight)
-
- background: Rectangle {
- objectName: "textfield-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ToolBar.qml b/tests/auto/customization/data/styles/simple/ToolBar.qml
deleted file mode 100644
index 9b23b67c..00000000
--- a/tests/auto/customization/data/styles/simple/ToolBar.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolBar {
- id: control
- objectName: "toolbar-simple"
-
- implicitWidth: Math.max(background.implicitWidth, contentWidth)
- implicitHeight: Math.max(background.implicitHeight, contentHeight)
-
- contentWidth: contentItem.implicitWidth || (contentChildren.length === 1 ? contentChildren[0].implicitWidth : 0)
- contentHeight: contentItem.implicitHeight || (contentChildren.length === 1 ? contentChildren[0].implicitHeight : 0)
-
- contentItem: Item {
- objectName: "toolbar-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "toolbar-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ToolButton.qml b/tests/auto/customization/data/styles/simple/ToolButton.qml
deleted file mode 100644
index 13ccb576..00000000
--- a/tests/auto/customization/data/styles/simple/ToolButton.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolButton {
- id: control
- objectName: "toolbutton-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "toolbutton-contentItem-simple"
- text: control.text
- }
-
- background: Rectangle {
- objectName: "toolbutton-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- color: control.pressed ? "red" : "green"
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ToolSeparator.qml b/tests/auto/customization/data/styles/simple/ToolSeparator.qml
deleted file mode 100644
index ef172f74..00000000
--- a/tests/auto/customization/data/styles/simple/ToolSeparator.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolSeparator {
- id: control
- objectName: "toolseparator-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "toolseparator-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "toolseparator-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/ToolTip.qml b/tests/auto/customization/data/styles/simple/ToolTip.qml
deleted file mode 100644
index 27a61c17..00000000
--- a/tests/auto/customization/data/styles/simple/ToolTip.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.ToolTip {
- id: control
- objectName: "tooltip-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: Text {
- objectName: "tooltip-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "tooltip-background-simple"
- implicitWidth: 20
- implicitHeight: 20
- }
-}
diff --git a/tests/auto/customization/data/styles/simple/Tumbler.qml b/tests/auto/customization/data/styles/simple/Tumbler.qml
deleted file mode 100644
index 58c85541..00000000
--- a/tests/auto/customization/data/styles/simple/Tumbler.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Templates 2.12 as T
-
-T.Tumbler {
- id: control
- objectName: "tumbler-simple"
-
- implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
- implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
-
- contentItem: ListView {
- objectName: "tumbler-contentItem-simple"
- }
-
- background: Rectangle {
- objectName: "tumbler-background-simple"
- }
-}
diff --git a/tests/auto/customization/tst_customization.cpp b/tests/auto/customization/tst_customization.cpp
deleted file mode 100644
index 41efc2a6..00000000
--- a/tests/auto/customization/tst_customization.cpp
+++ /dev/null
@@ -1,510 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include <QtCore/private/qhooks_p.h>
-#include <QtCore/qregularexpression.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/qquickwindow.h>
-#include <QtQuickControls2/qquickstyle.h>
-#include "../shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-struct ControlInfo
-{
- QString type;
- QStringList delegates;
-};
-
-static const ControlInfo ControlInfos[] = {
- { "AbstractButton", QStringList() << "background" << "contentItem" << "indicator" },
- { "ApplicationWindow", QStringList() << "background" },
- { "BusyIndicator", QStringList() << "background" << "contentItem" },
- { "Button", QStringList() << "background" << "contentItem" },
- { "CheckBox", QStringList() << "contentItem" << "indicator" },
- { "CheckDelegate", QStringList() << "background" << "contentItem" << "indicator" },
- { "ComboBox", QStringList() << "background" << "contentItem" << "indicator" }, // popup not created until needed
- { "Container", QStringList() << "background" << "contentItem" },
- { "Control", QStringList() << "background" << "contentItem" },
- { "DelayButton", QStringList() << "background" << "contentItem" },
- { "Dial", QStringList() << "background" << "handle" },
- { "Dialog", QStringList() << "background" << "contentItem" },
- { "DialogButtonBox", QStringList() << "background" << "contentItem" },
- { "Drawer", QStringList() << "background" << "contentItem" },
- { "Frame", QStringList() << "background" << "contentItem" },
- { "GroupBox", QStringList() << "background" << "contentItem" << "label" },
- { "ItemDelegate", QStringList() << "background" << "contentItem" },
- { "Label", QStringList() << "background" },
- { "Menu", QStringList() << "background" << "contentItem" },
- { "MenuBar", QStringList() << "background" << "contentItem" },
- { "MenuBarItem", QStringList() << "background" << "contentItem" },
- { "MenuItem", QStringList() << "arrow" << "background" << "contentItem" << "indicator" },
- { "MenuSeparator", QStringList() << "background" << "contentItem" },
- { "Page", QStringList() << "background" << "contentItem" },
- { "PageIndicator", QStringList() << "background" << "contentItem" },
- { "Pane", QStringList() << "background" << "contentItem" },
- { "Popup", QStringList() << "background" << "contentItem" },
- { "ProgressBar", QStringList() << "background" << "contentItem" },
- { "RadioButton", QStringList() << "contentItem" << "indicator" },
- { "RadioDelegate", QStringList() << "background" << "contentItem" << "indicator" },
- { "RangeSlider", QStringList() << "background" << "first.handle" << "second.handle" },
- { "RoundButton", QStringList() << "background" << "contentItem" },
- { "ScrollBar", QStringList() << "background" << "contentItem" },
- { "ScrollIndicator", QStringList() << "background" << "contentItem" },
- { "ScrollView", QStringList() << "background" },
- { "Slider", QStringList() << "background" << "handle" },
- { "SpinBox", QStringList() << "background" << "contentItem" << "up.indicator" << "down.indicator" },
- { "StackView", QStringList() << "background" << "contentItem" },
- { "SwipeDelegate", QStringList() << "background" << "contentItem" },
- { "SwipeView", QStringList() << "background" << "contentItem" },
- { "Switch", QStringList() << "contentItem" << "indicator" },
- { "SwitchDelegate", QStringList() << "background" << "contentItem" << "indicator" },
- { "TabBar", QStringList() << "background" << "contentItem" },
- { "TabButton", QStringList() << "background" << "contentItem" },
- { "TextField", QStringList() << "background" },
- { "TextArea", QStringList() << "background" },
- { "ToolBar", QStringList() << "background" << "contentItem" },
- { "ToolButton", QStringList() << "background" << "contentItem" },
- { "ToolSeparator", QStringList() << "background" << "contentItem" },
- { "ToolTip", QStringList() << "background" << "contentItem" },
- { "Tumbler", QStringList() << "background" << "contentItem" }
-};
-
-class tst_customization : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
- void cleanupTestCase();
-
- void init();
- void cleanup();
-
- void creation_data();
- void creation();
-
- void override_data();
- void override();
-
- void comboPopup();
-
-private:
- void reset();
- void addHooks();
- void removeHooks();
-
- QObject* createControl(const QString &type, const QString &qml, QString *error);
-
- QQmlEngine *engine = nullptr;
-};
-
-typedef QHash<QObject *, QString> QObjectNameHash;
-Q_GLOBAL_STATIC(QObjectNameHash, qt_objectNames)
-Q_GLOBAL_STATIC(QStringList, qt_createdQObjects)
-Q_GLOBAL_STATIC(QStringList, qt_destroyedQObjects)
-Q_GLOBAL_STATIC(QStringList, qt_destroyedParentQObjects)
-static int qt_unparentedItemCount = 0;
-
-class ItemParentListener : public QQuickItem
-{
- Q_OBJECT
-
-public:
- ItemParentListener()
- {
- m_slotIndex = metaObject()->indexOfSlot("onParentChanged()");
- m_signalIndex = QMetaObjectPrivate::signalIndex(QMetaMethod::fromSignal(&QQuickItem::parentChanged));
- }
-
- int signalIndex() const { return m_signalIndex; }
- int slotIndex() const { return m_slotIndex; }
-
-public slots:
- void onParentChanged()
- {
- const QQuickItem *item = qobject_cast<QQuickItem *>(sender());
- if (!item)
- return;
-
- if (!item->parentItem())
- ++qt_unparentedItemCount;
- }
-
-private:
- int m_slotIndex;
- int m_signalIndex;
-};
-static ItemParentListener *qt_itemParentListener = nullptr;
-
-extern "C" Q_DECL_EXPORT void qt_addQObject(QObject *object)
-{
- // objectName is not set at construction time
- QObject::connect(object, &QObject::objectNameChanged, [object](const QString &objectName) {
- QString oldObjectName = qt_objectNames()->value(object);
- if (!oldObjectName.isEmpty())
- qt_createdQObjects()->removeOne(oldObjectName);
- // Only track object names from our QML files,
- // not e.g. contentItem object names (like "ApplicationWindow").
- if (objectName.contains("-")) {
- qt_createdQObjects()->append(objectName);
- qt_objectNames()->insert(object, objectName);
- }
- });
-
- if (qt_itemParentListener) {
- static const int signalIndex = qt_itemParentListener->signalIndex();
- static const int slotIndex = qt_itemParentListener->slotIndex();
- QMetaObject::connect(object, signalIndex, qt_itemParentListener, slotIndex);
- }
-}
-
-extern "C" Q_DECL_EXPORT void qt_removeQObject(QObject *object)
-{
- QString objectName = object->objectName();
- if (!objectName.isEmpty())
- qt_destroyedQObjects()->append(objectName);
- qt_objectNames()->remove(object);
-
- QObject *parent = object->parent();
- if (parent) {
- QString parentName = parent->objectName();
- if (!parentName.isEmpty())
- qt_destroyedParentQObjects()->append(parentName);
- }
-}
-
-void tst_customization::initTestCase()
-{
- QQmlDataTest::initTestCase();
-
- qt_itemParentListener = new ItemParentListener;
-}
-
-void tst_customization::cleanupTestCase()
-{
- delete qt_itemParentListener;
- qt_itemParentListener = nullptr;
-}
-
-void tst_customization::init()
-{
- engine = new QQmlEngine(this);
-
- qtHookData[QHooks::AddQObject] = reinterpret_cast<quintptr>(&qt_addQObject);
- qtHookData[QHooks::RemoveQObject] = reinterpret_cast<quintptr>(&qt_removeQObject);
-}
-
-void tst_customization::cleanup()
-{
- qtHookData[QHooks::AddQObject] = 0;
- qtHookData[QHooks::RemoveQObject] = 0;
-
- delete engine;
- engine = nullptr;
-
- qmlClearTypeRegistrations();
-
- reset();
-}
-
-void tst_customization::reset()
-{
- qt_unparentedItemCount = 0;
- qt_createdQObjects()->clear();
- qt_destroyedQObjects()->clear();
- qt_destroyedParentQObjects()->clear();
-}
-
-QObject* tst_customization::createControl(const QString &name, const QString &qml, QString *error)
-{
- QQmlComponent component(engine);
- component.setData("import QtQuick 2.10; import QtQuick.Window 2.2; import QtQuick.Controls 2.3; " + name.toUtf8() + " { " + qml.toUtf8() + " }", QUrl());
- QObject *obj = component.create();
- if (!obj)
- *error = component.errorString();
- return obj;
-}
-
-void tst_customization::creation_data()
-{
- QTest::addColumn<QString>("style");
- QTest::addColumn<QString>("type");
- QTest::addColumn<QStringList>("delegates");
-
- // the "empty" style does not contain any delegates
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable("empty:" + control.type)) << "empty" << control.type << QStringList();
-
- // the "incomplete" style is missing bindings to the delegates (must be created regardless)
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable("incomplete:" + control.type)) << "incomplete" << control.type << control.delegates;
-
- // the "identified" style has IDs in the delegates (prevents deferred execution)
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable("identified:" + control.type)) << "identified" << control.type << control.delegates;
-
- // the "simple" style simulates a proper style and contains bindings to/in delegates
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable("simple:" + control.type)) << "simple" << control.type << control.delegates;
-
- // the "override" style overrides all delegates in the "simple" style
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable("override:" + control.type)) << "override" << control.type << control.delegates;
-}
-
-void tst_customization::creation()
-{
- QFETCH(QString, style);
- QFETCH(QString, type);
- QFETCH(QStringList, delegates);
-
- QQuickStyle::setStyle(testFile("styles/" + style));
-
- QString error;
- QScopedPointer<QObject> control(createControl(type, "", &error));
- QVERIFY2(control, qPrintable(error));
-
- QByteArray templateType = "QQuick" + type.toUtf8();
- QVERIFY2(control->inherits(templateType), qPrintable(type + " does not inherit " + templateType + " (" + control->metaObject()->className() + ")"));
-
- // <control>-<style>
- QString controlName = type.toLower() + "-" + style;
- QCOMPARE(control->objectName(), controlName);
- QVERIFY2(qt_createdQObjects()->removeOne(controlName), qPrintable(controlName + " was not created as expected"));
-
- for (QString delegate : qAsConst(delegates)) {
- QStringList properties = delegate.split(".", QString::SkipEmptyParts);
-
- // <control>-<delegate>-<style>(-<override>)
- delegate.append("-" + style);
- delegate.prepend(type.toLower() + "-");
-
- QVERIFY2(qt_createdQObjects()->removeOne(delegate), qPrintable(delegate + " was not created as expected"));
-
- // verify that the delegate instance has the expected object name
- // in case of grouped properties, we must query the properties step by step
- QObject *instance = control.data();
- while (!properties.isEmpty()) {
- QString property = properties.takeFirst();
- instance = instance->property(property.toUtf8()).value<QObject *>();
- QVERIFY2(instance, qPrintable("property was null: " + property));
- }
- QCOMPARE(instance->objectName(), delegate);
- }
-
- QEXPECT_FAIL("identified:ComboBox", "ComboBox::popup with an ID is created at construction time", Continue);
-
- QVERIFY2(qt_createdQObjects()->isEmpty(), qPrintable("unexpectedly created: " + qt_createdQObjects->join(", ")));
- QVERIFY2(qt_destroyedQObjects()->isEmpty(), qPrintable("unexpectedly destroyed: " + qt_destroyedQObjects->join(", ") + " were unexpectedly destroyed"));
-
- QVERIFY2(qt_destroyedParentQObjects()->isEmpty(), qPrintable("delegates/children of: " + qt_destroyedParentQObjects->join(", ") + " were unexpectedly destroyed"));
-}
-
-void tst_customization::override_data()
-{
- QTest::addColumn<QString>("style");
- QTest::addColumn<QString>("type");
- QTest::addColumn<QStringList>("delegates");
- QTest::addColumn<QString>("nonDeferred");
- QTest::addColumn<bool>("identify");
-
- // NOTE: delegates with IDs prevent deferred execution
-
- // default delegates with IDs, override with custom delegates with no IDs
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable("identified:" + control.type)) << "identified" << control.type << control.delegates << "identified" << false;
-
- // default delegates with no IDs, override with custom delegates with IDs
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable("simple:" + control.type)) << "simple" << control.type << control.delegates << "" << true;
-
- // default delegates with IDs, override with custom delegates with IDs
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable("overidentified:" + control.type)) << "identified" << control.type << control.delegates << "identified" << true;
-
-#ifndef Q_OS_MACOS // QTBUG-65671
-
- // test that the built-in styles don't have undesired IDs in their delegates
- const QStringList styles = QStringList() << "Default" << "Fusion" << "Material" << "Universal"; // ### TODO: QQuickStyle::availableStyles();
- for (const QString &style : styles) {
- for (const ControlInfo &control : ControlInfos)
- QTest::newRow(qPrintable(style + ":" + control.type)) << style << control.type << control.delegates << "" << false;
- }
-
-#endif
-}
-
-void tst_customization::override()
-{
- QFETCH(QString, style);
- QFETCH(QString, type);
- QFETCH(QStringList, delegates);
- QFETCH(QString, nonDeferred);
- QFETCH(bool, identify);
-
- const QString testStyle = testFile("styles/" + style);
- if (QDir(testStyle).exists())
- QQuickStyle::setStyle(testStyle);
- else
- QQuickStyle::setStyle(style);
-
- QString qml;
- qml += QString("objectName: '%1-%2-override'; ").arg(type.toLower()).arg(style);
- for (const QString &delegate : delegates) {
- QString id = identify ? QString("id: %1;").arg(delegate) : QString();
- qml += QString("%1: Item { %2 objectName: '%3-%1-%4-override' } ").arg(delegate).arg(id.replace(".", "")).arg(type.toLower()).arg(style);
- }
-
- QString error;
- QScopedPointer<QObject> control(createControl(type, qml, &error));
- QVERIFY2(control, qPrintable(error));
-
- // If there are no intentional IDs in the default delegates nor in the overridden custom
- // delegates, no item should get un-parented during the creation process. An item being
- // unparented means that a delegate got destroyed, so there must be an internal ID in one
- // of the delegates in the tested style.
- if (!identify && nonDeferred.isEmpty()) {
- QEXPECT_FAIL("Universal:ApplicationWindow", "ApplicationWindow.qml contains an intentionally unparented FocusRectangle", Continue);
- QCOMPARE(qt_unparentedItemCount, 0);
- }
-
- // <control>-<style>-override
- QString controlName = type.toLower() + "-" + style + "-override";
- QCOMPARE(control->objectName(), controlName);
- QVERIFY2(qt_createdQObjects()->removeOne(controlName), qPrintable(controlName + " was not created as expected"));
-
- for (QString delegate : qAsConst(delegates)) {
- QStringList properties = delegate.split(".", QString::SkipEmptyParts);
-
- // <control>-<delegate>-<style>(-override)
- delegate.append("-" + style);
- delegate.prepend(type.toLower() + "-");
-
- if (!nonDeferred.isEmpty())
- QVERIFY2(qt_createdQObjects()->removeOne(delegate), qPrintable(delegate + " was not created as expected"));
-
- delegate.append("-override");
- QVERIFY2(qt_createdQObjects()->removeOne(delegate), qPrintable(delegate + " was not created as expected"));
-
- // verify that the delegate instance has the expected object name
- // in case of grouped properties, we must query the properties step by step
- QObject *instance = control.data();
- while (!properties.isEmpty()) {
- QString property = properties.takeFirst();
- instance = instance->property(property.toUtf8()).value<QObject *>();
- QVERIFY2(instance, qPrintable("property was null: " + property));
- }
- QCOMPARE(instance->objectName(), delegate);
- }
-
- QEXPECT_FAIL("identified:ComboBox", "ComboBox::popup with an ID is created at construction time", Continue);
- QEXPECT_FAIL("overidentified:ComboBox", "ComboBox::popup with an ID is created at construction time", Continue);
- QVERIFY2(qt_createdQObjects()->isEmpty(), qPrintable("unexpectedly created: " + qt_createdQObjects->join(", ")));
-
- if (!nonDeferred.isEmpty()) {
- for (QString delegate : qAsConst(delegates)) {
- if (!delegate.contains("-"))
- delegate.append("-" + nonDeferred);
- delegate.prepend(type.toLower() + "-");
- QVERIFY2(qt_destroyedQObjects()->removeOne(delegate), qPrintable(delegate + " was not destroyed as expected"));
- }
- }
-
- QVERIFY2(qt_destroyedQObjects()->isEmpty(), qPrintable("unexpectedly destroyed: " + qt_destroyedQObjects->join(", ")));
-}
-
-void tst_customization::comboPopup()
-{
- QQuickStyle::setStyle(testFile("styles/simple"));
-
- {
- // test that ComboBox::popup is created when accessed
- QQmlComponent component(engine);
- component.setData("import QtQuick.Controls 2.2; ComboBox { }", QUrl());
- QScopedPointer<QQuickItem> comboBox(qobject_cast<QQuickItem *>(component.create()));
- QVERIFY(comboBox);
-
- QVERIFY(!qt_createdQObjects()->contains("combobox-popup-simple"));
-
- QObject *popup = comboBox->property("popup").value<QObject *>();
- QVERIFY(popup);
- QVERIFY(qt_createdQObjects()->contains("combobox-popup-simple"));
- }
-
- reset();
-
- {
- // test that ComboBox::popup is created when it becomes visible
- QQuickWindow window;
- window.resize(300, 300);
- window.show();
- window.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&window));
-
- QQmlComponent component(engine);
- component.setData("import QtQuick.Controls 2.2; ComboBox { }", QUrl());
- QScopedPointer<QQuickItem> comboBox(qobject_cast<QQuickItem *>(component.create()));
- QVERIFY(comboBox);
-
- comboBox->setParentItem(window.contentItem());
- QVERIFY(!qt_createdQObjects()->contains("combobox-popup-simple"));
-
- QTest::mouseClick(&window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QVERIFY(qt_createdQObjects()->contains("combobox-popup-simple"));
- }
-
- reset();
-
- {
- // test that ComboBox::popup is completed upon component completion (if appropriate)
- QQmlComponent component(engine);
- component.setData("import QtQuick 2.9; import QtQuick.Controls 2.2; ComboBox { id: control; contentItem: Item { visible: !control.popup.visible } popup: Popup { property bool wasCompleted: false; Component.onCompleted: wasCompleted = true } }", QUrl());
- QScopedPointer<QQuickItem> comboBox(qobject_cast<QQuickItem *>(component.create()));
- QVERIFY(comboBox);
-
- QObject *popup = comboBox->property("popup").value<QObject *>();
- QVERIFY(popup);
- QCOMPARE(popup->property("wasCompleted"), QVariant(true));
- }
-}
-
-QTEST_MAIN(tst_customization)
-
-#include "tst_customization.moc"
diff --git a/tests/auto/designer/designer.pro b/tests/auto/designer/designer.pro
deleted file mode 100644
index 68fbc747..00000000
--- a/tests/auto/designer/designer.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = app
-TARGET = tst_designer
-
-QT += quick quick-private quickcontrols2 testlib
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-SOURCES += \
- $$PWD/tst_designer.cpp
diff --git a/tests/auto/designer/tst_designer.cpp b/tests/auto/designer/tst_designer.cpp
deleted file mode 100644
index 2c67c2c6..00000000
--- a/tests/auto/designer/tst_designer.cpp
+++ /dev/null
@@ -1,161 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest>
-#include <QtQuick>
-
-#include <QtQuickControls2>
-#include <QQmlComponent>
-#include <QDir>
-
-#include <private/qquickdesignersupportitems_p.h>
-
-class tst_Designer : public QObject
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void test_controls();
- void test_controls_data();
-};
-
-
-void tst_Designer::initTestCase()
-{
-}
-
-void doComponentCompleteRecursive(QObject *object)
-{
- if (object) {
- QQuickItem *item = qobject_cast<QQuickItem*>(object);
-
- if (item && DesignerSupport::isComponentComplete(item))
- return;
-
- DesignerSupport::emitComponentCompleteSignalForAttachedProperty(qobject_cast<QQuickItem*>(object));
-
- QList<QObject*> childList = object->children();
-
- if (item) {
- for (QQuickItem *childItem : item->childItems()) {
- if (!childList.contains(childItem))
- childList.append(childItem);
- }
- }
-
- for (QObject *child : childList)
- doComponentCompleteRecursive(child);
-
- if (item) {
- static_cast<QQmlParserStatus*>(item)->componentComplete();
- } else {
- QQmlParserStatus *qmlParserStatus = dynamic_cast< QQmlParserStatus*>(object);
- if (qmlParserStatus)
- qmlParserStatus->componentComplete();
- }
- }
-}
-
-
-void tst_Designer::test_controls()
-{
- QFETCH(QString, type);
-
- const QByteArray before("import QtQuick 2.10\n"
- "import QtQuick.Controls 2.3\n"
- "Item {\n");
-
- QByteArray source = before;
- source.append(type);
-
- const QByteArray after(" {"
- "}\n"
- "}\n");
-
- source.append(after);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
-
- {
- ComponentCompleteDisabler disableComponentComplete;
- component.setData(source, QUrl::fromLocalFile(QDir::current().absolutePath()));
- }
-
- QObject *root = component.create();
- QVERIFY(root);
- doComponentCompleteRecursive(root);
-}
-
-void tst_Designer::test_controls_data()
-{
- QTest::addColumn<QString>("type");
-
- QTest::newRow("type") << "SpinBox";
- QTest::newRow("type") << "Switch";
- QTest::newRow("type") << "ComboBox";
- QTest::newRow("type") << "CheckBox";
- QTest::newRow("type") << "Button";
- QTest::newRow("type") << "DelayButton";
- QTest::newRow("type") << "Dial";
- QTest::newRow("type") << "Frame";
- QTest::newRow("type") << "GroupBox";
- QTest::newRow("type") << "Label";
- QTest::newRow("type") << "Page";
- QTest::newRow("type") << "Pane";
- QTest::newRow("type") << "ProgressBar";
- QTest::newRow("type") << "RadioButton";
- QTest::newRow("type") << "RangeSlider";
- QTest::newRow("type") << "RoundButton";
- QTest::newRow("type") << "ScrollView";
- QTest::newRow("type") << "Slider";
- QTest::newRow("type") << "StackView";
- QTest::newRow("type") << "SwipeView";
- QTest::newRow("type") << "Switch";
- QTest::newRow("type") << "TabBar";
- QTest::newRow("type") << "TabButton";
- QTest::newRow("type") << "TextArea";
- QTest::newRow("type") << "TextField";
- QTest::newRow("type") << "ToolBar";
- QTest::newRow("type") << "ToolButton";
- QTest::newRow("type") << "Tumbler";
-}
-
-QTEST_MAIN(tst_Designer)
-
-#include "tst_designer.moc"
diff --git a/tests/auto/focus/BLACKLIST b/tests/auto/focus/BLACKLIST
deleted file mode 100644
index 730d3844..00000000
--- a/tests/auto/focus/BLACKLIST
+++ /dev/null
@@ -1,3 +0,0 @@
-# QTBUG-78261
-[policy]
-opensuse-leap
diff --git a/tests/auto/focus/data/activeFocusOnTab.qml b/tests/auto/focus/data/activeFocusOnTab.qml
deleted file mode 100644
index 21bea5e8..00000000
--- a/tests/auto/focus/data/activeFocusOnTab.qml
+++ /dev/null
@@ -1,203 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- id: main
- objectName: "main"
- width: 400
- height: 800
- focus: true
- Component.onCompleted: button1.focus = true
- Column {
- anchors.fill: parent
- id: column
- objectName: "column"
- BusyIndicator {
- id: busyindicator
- objectName: "busyindicator"
- }
- Button {
- id: button1
- objectName: "button1"
- text: "button1"
- }
- Button {
- id: button2
- objectName: "button2"
- text: "button2"
- }
- CheckBox {
- id: checkbox
- objectName: "checkbox"
- text: "checkbox"
- }
- GroupBox {
- id: groupbox1
- objectName: "groupbox1"
- title: "grouppox1"
- Column {
- anchors.fill: parent
- CheckBox {
- id: checkbox1
- objectName: "checkbox1"
- text: "checkbox1"
- }
- CheckBox {
- id: checkbox2
- objectName: "checkbox2"
- text: "checkbox2"
- }
- }
- }
- Label {
- id: label
- objectName: "label"
- text: "label"
- }
- PageIndicator {
- id: pageindicator
- objectName: "pageindicator"
- }
- ProgressBar {
- id: progressbar
- objectName: "progressbar"
- indeterminate: true
- }
- RadioButton {
- id: radiobutton
- objectName: "radiobutton"
- text: "radiobutton"
- }
- GroupBox {
- id: groupbox2
- objectName: "groupbox2"
- title: "groupbox2"
- Column {
- anchors.fill: parent
- RadioButton {
- id: radiobutton1
- objectName: "radiobutton1"
- text: "radiobutton1"
- }
- RadioButton {
- id: radiobutton2
- objectName: "radiobutton2"
- text: "radiobutton2"
- }
- }
- }
- RangeSlider {
- id: rangeslider
- objectName: "rangeslider"
- first.handle.objectName: "rangeslider.first"
- second.handle.objectName: "rangeslider.second"
- }
- // ScrollBar
- ScrollIndicator {
- id: scrollindicator
- objectName: "scrollindicator"
- }
- Slider {
- id: slider
- objectName: "slider"
- value: 0.5
- }
- SpinBox {
- id: spinbox
- objectName: "spinbox"
- editable: true
- value: 50
- }
- // StackView
- Switch {
- id: swtich // switch
- objectName: "switch"
- text: "switch"
- }
- TabBar {
- width: parent.width
- id: tabbar
- objectName: "tabbar"
- TabButton {
- id: tabbutton1
- objectName: "tabbutton1"
- text: "tabbutton1"
- }
- TabButton {
- id: tabbutton2
- objectName: "tabbutton2"
- text: "tabbutton2"
- }
- }
- TextField {
- id: textfield
- objectName: "textfield"
- text: "abc"
- }
- ToolBar {
- width: parent.width
- id: toolbar
- objectName: "toolbar"
- ToolButton {
- id: toolbutton
- objectName: "toolbutton"
- text: "toolbutton"
- }
- }
- TextArea {
- id: textarea
- objectName: "textarea"
- text: "abc"
- }
- }
-}
diff --git a/tests/auto/focus/data/keyNavigation.qml b/tests/auto/focus/data/keyNavigation.qml
deleted file mode 100644
index 6e949d1d..00000000
--- a/tests/auto/focus/data/keyNavigation.qml
+++ /dev/null
@@ -1,260 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- id: main
- objectName: "main"
- width: 400
- height: 800
- focus: true
- Component.onCompleted: button1.focus = true
- Column {
- anchors.fill: parent
- id: column
- objectName: "column"
- BusyIndicator {
- id: busyindicator
- objectName: "busyindicator"
- }
- Button {
- id: button1
- objectName: "button1"
- text: "button1"
- KeyNavigation.up: textarea
- KeyNavigation.down: button2
- KeyNavigation.left: toolbutton
- KeyNavigation.right: button2
- }
- Button {
- id: button2
- objectName: "button2"
- text: "button2"
- KeyNavigation.up: button1
- KeyNavigation.down: checkbox
- KeyNavigation.left: button1
- KeyNavigation.right: checkbox
- }
- CheckBox {
- id: checkbox
- objectName: "checkbox"
- text: "checkbox"
- KeyNavigation.up: button2
- KeyNavigation.down: checkbox1
- KeyNavigation.left: button2
- KeyNavigation.right: checkbox1
- }
- GroupBox {
- id: groupbox1
- objectName: "groupbox1"
- title: "grouppox1"
- Column {
- anchors.fill: parent
- CheckBox {
- id: checkbox1
- objectName: "checkbox1"
- text: "checkbox1"
- KeyNavigation.up: checkbox
- KeyNavigation.down: checkbox2
- KeyNavigation.left: checkbox
- KeyNavigation.right: checkbox2
- }
- CheckBox {
- id: checkbox2
- objectName: "checkbox2"
- text: "checkbox2"
- KeyNavigation.up: checkbox1
- KeyNavigation.down: radiobutton
- KeyNavigation.left: checkbox1
- KeyNavigation.right: radiobutton
- }
- }
- }
- Label {
- id: label
- objectName: "label"
- text: "label"
- }
- PageIndicator {
- id: pageindicator
- objectName: "pageindicator"
- }
- ProgressBar {
- id: progressbar
- objectName: "progressbar"
- indeterminate: true
- }
- RadioButton {
- id: radiobutton
- objectName: "radiobutton"
- text: "radiobutton"
- KeyNavigation.up: checkbox2
- KeyNavigation.down: radiobutton1
- KeyNavigation.left: checkbox2
- KeyNavigation.right: radiobutton1
- }
- GroupBox {
- id: groupbox2
- objectName: "groupbox2"
- title: "groupbox2"
- Column {
- anchors.fill: parent
- RadioButton {
- id: radiobutton1
- objectName: "radiobutton1"
- text: "radiobutton1"
- KeyNavigation.up: radiobutton
- KeyNavigation.down: radiobutton2
- KeyNavigation.left: radiobutton
- KeyNavigation.right: radiobutton2
- }
- RadioButton {
- id: radiobutton2
- objectName: "radiobutton2"
- text: "radiobutton2"
- KeyNavigation.up: radiobutton1
- KeyNavigation.down: rangeslider
- KeyNavigation.left: radiobutton1
- KeyNavigation.right: spinbox
- }
- }
- }
- RangeSlider {
- id: rangeslider
- objectName: "rangeslider"
- first.handle.objectName: "rangeslider.first"
- second.handle.objectName: "rangeslider.second"
- KeyNavigation.up: radiobutton2
- KeyNavigation.down: slider
- }
- // ScrollBar
- ScrollIndicator {
- id: scrollindicator
- objectName: "scrollindicator"
- }
- Slider {
- id: slider
- objectName: "slider"
- value: 0.5
- KeyNavigation.up: rangeslider
- KeyNavigation.down: swtich
- }
- SpinBox {
- id: spinbox
- objectName: "spinbox"
- value: 50
- KeyNavigation.left: radiobutton2
- KeyNavigation.right: swtich
- }
- // StackView
- Switch {
- id: swtich // switch
- objectName: "switch"
- text: "switch"
- KeyNavigation.up: slider
- KeyNavigation.down: tabbutton1
- KeyNavigation.left: spinbox
- KeyNavigation.right: tabbutton1
- }
- TabBar {
- width: parent.width
- id: tabbar
- objectName: "tabbar"
- TabButton {
- id: tabbutton1
- objectName: "tabbutton1"
- text: "tabbutton1"
- KeyNavigation.up: swtich
- KeyNavigation.down: tabbutton2
- KeyNavigation.left: swtich
- KeyNavigation.right: tabbutton2
- }
- TabButton {
- id: tabbutton2
- objectName: "tabbutton2"
- text: "tabbutton2"
- KeyNavigation.up: tabbutton1
- KeyNavigation.down: textfield
- KeyNavigation.left: tabbutton1
- KeyNavigation.right: toolbutton
- }
- }
- TextField {
- id: textfield
- objectName: "textfield"
- text: "abc"
- KeyNavigation.up: tabbutton2
- KeyNavigation.down: toolbutton
- }
- ToolBar {
- width: parent.width
- id: toolbar
- objectName: "toolbar"
- ToolButton {
- id: toolbutton
- objectName: "toolbutton"
- text: "toolbutton"
- KeyNavigation.up: textfield
- KeyNavigation.down: textarea
- KeyNavigation.left: tabbutton2
- KeyNavigation.right: button1
- }
- }
- TextArea {
- id: textarea
- objectName: "textarea"
- text: "abc"
- KeyNavigation.up: toolbutton
- KeyNavigation.down: button1
- }
- }
-}
diff --git a/tests/auto/focus/data/visualFocus.qml b/tests/auto/focus/data/visualFocus.qml
deleted file mode 100644
index 3f3e8fb6..00000000
--- a/tests/auto/focus/data/visualFocus.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Column {
- width: 400
- height: 400
- Button {
- text: "Button"
- property bool showFocus: visualFocus
- }
- TextField {
- text: "TextField"
- }
-}
diff --git a/tests/auto/focus/focus.pro b/tests/auto/focus/focus.pro
deleted file mode 100644
index ad5a1423..00000000
--- a/tests/auto/focus/focus.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-CONFIG += testcase
-TARGET = tst_focus
-macos:CONFIG -= app_bundle
-
-SOURCES += tst_focus.cpp
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-QT += core-private gui-private qml-private quick-private quicktemplates2-private testlib
diff --git a/tests/auto/focus/tst_focus.cpp b/tests/auto/focus/tst_focus.cpp
deleted file mode 100644
index 8a1b36ad..00000000
--- a/tests/auto/focus/tst_focus.cpp
+++ /dev/null
@@ -1,418 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <qtest.h>
-#include <QtTest/QSignalSpy>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQml/qqmlcontext.h>
-#include <QtQuick/qquickview.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtGui/qstylehints.h>
-#include <QtGui/qtouchdevice.h>
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_focus : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void navigation_data();
- void navigation();
-
- void policy_data();
- void policy();
-
- void reason_data();
- void reason();
-
- void visualFocus();
-
- void scope_data();
- void scope();
-};
-
-void tst_focus::initTestCase()
-{
- QQmlDataTest::initTestCase();
-}
-
-void tst_focus::navigation_data()
-{
- QTest::addColumn<Qt::Key>("key");
- QTest::addColumn<QString>("testFile");
- QTest::addColumn<Qt::TabFocusBehavior>("behavior");
- QTest::addColumn<QStringList>("order");
-
- QTest::newRow("tab-all-controls") << Qt::Key_Tab << QString("activeFocusOnTab.qml") << Qt::TabFocusAllControls << (QStringList() << "button2" << "checkbox" << "checkbox1" << "checkbox2" << "radiobutton" << "radiobutton1" << "radiobutton2" << "rangeslider.first" << "rangeslider.second" << "slider" << "spinbox" << "switch" << "tabbutton1" << "tabbutton2" << "textfield" << "toolbutton" << "textarea" << "button1");
- QTest::newRow("backtab-all-controls") << Qt::Key_Backtab << QString("activeFocusOnTab.qml") << Qt::TabFocusAllControls << (QStringList() << "textarea" << "toolbutton" << "textfield" << "tabbutton2" << "tabbutton1" << "switch" << "spinbox" << "slider" << "rangeslider.second" << "rangeslider.first" << "radiobutton2" << "radiobutton1" << "radiobutton" << "checkbox2" << "checkbox1" << "checkbox" << "button2" << "button1");
-
- QTest::newRow("tab-text-controls") << Qt::Key_Tab << QString("activeFocusOnTab.qml") << Qt::TabFocusTextControls << (QStringList() << "spinbox" << "textfield" << "textarea");
- QTest::newRow("backtab-text-controls") << Qt::Key_Backtab << QString("activeFocusOnTab.qml") << Qt::TabFocusTextControls << (QStringList() << "textarea" << "textfield" << "spinbox");
-
- QTest::newRow("key-up") << Qt::Key_Up << QString("keyNavigation.qml") << Qt::TabFocusAllControls << (QStringList() << "textarea" << "toolbutton" << "textfield" << "tabbutton2" << "tabbutton1" << "switch" << "slider" << "rangeslider.first" << "radiobutton2" << "radiobutton1" << "radiobutton" << "checkbox2" << "checkbox1" << "checkbox" << "button2" << "button1");
- QTest::newRow("key-down") << Qt::Key_Down << QString("keyNavigation.qml") << Qt::TabFocusAllControls << (QStringList() << "button2" << "checkbox" << "checkbox1" << "checkbox2" << "radiobutton" << "radiobutton1" << "radiobutton2" << "rangeslider.first" << "slider" << "switch" << "tabbutton1" << "tabbutton2" << "textfield" << "toolbutton" << "textarea" << "button1");
- QTest::newRow("key-left") << Qt::Key_Left << QString("keyNavigation.qml") << Qt::TabFocusAllControls << (QStringList() << "toolbutton" << "tabbutton2" << "tabbutton1" << "switch" << "spinbox" << "radiobutton2" << "radiobutton1" << "radiobutton" << "checkbox2" << "checkbox1" << "checkbox" << "button2" << "button1");
- QTest::newRow("key-right") << Qt::Key_Right << QString("keyNavigation.qml") << Qt::TabFocusAllControls << (QStringList() << "button2" << "checkbox" << "checkbox1" << "checkbox2" << "radiobutton" << "radiobutton1" << "radiobutton2" << "spinbox" << "switch" << "tabbutton1" << "tabbutton2" << "toolbutton" << "button1");
-}
-
-void tst_focus::navigation()
-{
- QFETCH(Qt::Key, key);
- QFETCH(QString, testFile);
- QFETCH(Qt::TabFocusBehavior, behavior);
- QFETCH(QStringList, order);
-
- QGuiApplication::styleHints()->setTabFocusBehavior(behavior);
-
- QQuickView view;
- view.contentItem()->setObjectName("contentItem");
-
- view.setSource(testFileUrl(testFile));
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
- QVERIFY(QGuiApplication::focusWindow() == &view);
-
- for (const QString &name : qAsConst(order)) {
- QKeyEvent event(QEvent::KeyPress, key, Qt::NoModifier);
- QGuiApplication::sendEvent(&view, &event);
- QVERIFY(event.isAccepted());
-
- QQuickItem *item = findItem<QQuickItem>(view.rootObject(), name);
- QVERIFY2(item, qPrintable(name));
- QVERIFY2(item->hasActiveFocus(), qPrintable(QString("expected: '%1', actual: '%2'").arg(name).arg(view.activeFocusItem() ? view.activeFocusItem()->objectName() : "null")));
- }
-
- QGuiApplication::styleHints()->setTabFocusBehavior(Qt::TabFocusBehavior(-1));
-}
-
-void tst_focus::policy_data()
-{
- QTest::addColumn<QString>("name");
-
- QTest::newRow("Control") << "Control";
- QTest::newRow("ComboBox") << "ComboBox";
- QTest::newRow("Button") << "Button";
- QTest::newRow("Slider") << "Slider";
- QTest::newRow("ScrollBar") << "ScrollBar";
-}
-
-void tst_focus::policy()
-{
- QFETCH(QString, name);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(QString("import QtQuick.Controls 2.1; ApplicationWindow { width: 100; height: 100; %1 { anchors.fill: parent } }").arg(name).toUtf8(), QUrl());
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(component.create()));
- QVERIFY(window);
-
- QQuickControl *control = qobject_cast<QQuickControl *>(window->contentItem()->childItems().first());
- QVERIFY(control);
-
- QVERIFY(!control->hasActiveFocus());
- QVERIFY(!control->hasVisualFocus());
-
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
-
- struct TouchDeviceDeleter
- {
- static inline void cleanup(QTouchDevice *device)
- {
- QWindowSystemInterface::unregisterTouchDevice(device);
- delete device;
- }
- };
-
- QScopedPointer<QTouchDevice, TouchDeviceDeleter> device(new QTouchDevice);
- device->setType(QTouchDevice::TouchScreen);
- QWindowSystemInterface::registerTouchDevice(device.data());
-
- control->setFocusPolicy(Qt::NoFocus);
- QCOMPARE(control->focusPolicy(), Qt::NoFocus);
-
- // Qt::TabFocus vs. QQuickItem::activeFocusOnTab
- control->setActiveFocusOnTab(true);
- QCOMPARE(control->focusPolicy(), Qt::TabFocus);
- control->setActiveFocusOnTab(false);
- QCOMPARE(control->focusPolicy(), Qt::NoFocus);
-
- control->setFocusPolicy(Qt::TabFocus);
- QCOMPARE(control->focusPolicy(), Qt::TabFocus);
- QCOMPARE(control->activeFocusOnTab(), true);
-
- // Qt::TabFocus
- QGuiApplication::styleHints()->setTabFocusBehavior(Qt::TabFocusAllControls);
- QTest::keyClick(window.data(), Qt::Key_Tab);
- QVERIFY(control->hasActiveFocus());
- QVERIFY(control->hasVisualFocus());
- QGuiApplication::styleHints()->setTabFocusBehavior(Qt::TabFocusBehavior(-1));
-
- // reset
- control->setFocus(false);
- QVERIFY(!control->hasActiveFocus());
-
- // Qt::ClickFocus (mouse)
- control->setFocusPolicy(Qt::NoFocus);
- control->setAcceptedMouseButtons(Qt::LeftButton);
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, QPoint(control->width() / 2, control->height() / 2));
- QVERIFY(!control->hasActiveFocus());
- QVERIFY(!control->hasVisualFocus());
-
- control->setFocusPolicy(Qt::ClickFocus);
- QCOMPARE(control->focusPolicy(), Qt::ClickFocus);
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, QPoint(control->width() / 2, control->height() / 2));
- QVERIFY(control->hasActiveFocus());
- QVERIFY(!control->hasVisualFocus());
-
- // reset
- control->setFocus(false);
- QVERIFY(!control->hasActiveFocus());
-
- // Qt::ClickFocus (touch)
- control->setFocusPolicy(Qt::NoFocus);
- QTest::touchEvent(window.data(), device.data()).press(0, QPoint(control->width() / 2, control->height() / 2));
- QTest::touchEvent(window.data(), device.data()).release(0, QPoint(control->width() / 2, control->height() / 2));
- QVERIFY(!control->hasActiveFocus());
- QVERIFY(!control->hasVisualFocus());
-
- control->setFocusPolicy(Qt::ClickFocus);
- QCOMPARE(control->focusPolicy(), Qt::ClickFocus);
- QTest::touchEvent(window.data(), device.data()).press(0, QPoint(control->width() / 2, control->height() / 2));
- QTest::touchEvent(window.data(), device.data()).release(0, QPoint(control->width() / 2, control->height() / 2));
- QVERIFY(control->hasActiveFocus());
- QVERIFY(!control->hasVisualFocus());
-
- // reset
- control->setFocus(false);
- QVERIFY(!control->hasActiveFocus());
-
- // Qt::WheelFocus
- QWheelEvent wheelEvent(QPointF(control->width() / 2, control->height() / 2), QPointF(),
- QPoint(), QPoint(0, 10), Qt::NoButton, Qt::NoModifier,
- Qt::NoScrollPhase, false);
- QGuiApplication::sendEvent(control, &wheelEvent);
- QVERIFY(!control->hasActiveFocus());
- QVERIFY(!control->hasVisualFocus());
-
- control->setFocusPolicy(Qt::WheelFocus);
- QCOMPARE(control->focusPolicy(), Qt::WheelFocus);
-
- QGuiApplication::sendEvent(control, &wheelEvent);
- QVERIFY(control->hasActiveFocus());
- QVERIFY(!control->hasVisualFocus());
-}
-
-void tst_focus::reason_data()
-{
- QTest::addColumn<QString>("name");
-
- QTest::newRow("Control") << "Control";
- QTest::newRow("TextField") << "TextField";
- QTest::newRow("TextArea") << "TextArea";
- QTest::newRow("SpinBox") << "SpinBox";
- QTest::newRow("ComboBox") << "ComboBox";
-}
-
-void tst_focus::reason()
-{
- QFETCH(QString, name);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(QString("import QtQuick.Controls 2.1; ApplicationWindow { width: 100; height: 100; %1 { anchors.fill: parent } }").arg(name).toUtf8(), QUrl());
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(component.create()));
- QVERIFY(window.data());
-
- QQuickItem *control = window->contentItem()->childItems().first();
- QVERIFY(control);
-
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
-
- QCOMPARE(control->property("focusReason").toInt(), int(Qt::OtherFocusReason));
- control->forceActiveFocus(Qt::MouseFocusReason);
- QVERIFY(control->hasActiveFocus());
- QCOMPARE(control->property("focusReason").toInt(), int(Qt::MouseFocusReason));
-
- QEXPECT_FAIL("TextArea", "TODO: TextArea::visualFocus?", Continue);
- QEXPECT_FAIL("TextField", "TODO: TextField::visualFocus?", Continue);
- QCOMPARE(control->property("visualFocus"), QVariant(false));
-
- window->contentItem()->setFocus(false, Qt::TabFocusReason);
- QVERIFY(!control->hasActiveFocus());
- QCOMPARE(control->property("focusReason").toInt(), int(Qt::TabFocusReason));
-
- QEXPECT_FAIL("TextArea", "", Continue);
- QEXPECT_FAIL("TextField", "", Continue);
- QCOMPARE(control->property("visualFocus"), QVariant(false));
-
- control->forceActiveFocus(Qt::TabFocusReason);
- QVERIFY(control->hasActiveFocus());
- QCOMPARE(control->property("focusReason").toInt(), int(Qt::TabFocusReason));
-
- QEXPECT_FAIL("TextArea", "", Continue);
- QEXPECT_FAIL("TextField", "", Continue);
- QCOMPARE(control->property("visualFocus"), QVariant(true));
-}
-
-void tst_focus::visualFocus()
-{
- QQuickView view;
- view.setSource(testFileUrl("visualFocus.qml"));
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickItem *column = view.rootObject();
- QVERIFY(column);
- QCOMPARE(column->childItems().count(), 2);
-
- QQuickControl *button = qobject_cast<QQuickControl *>(column->childItems().first());
- QVERIFY(button);
-
- QQuickItem *textfield = column->childItems().last();
- QVERIFY(textfield);
-
- button->forceActiveFocus(Qt::TabFocusReason);
- QVERIFY(button->hasActiveFocus());
- QVERIFY(button->hasVisualFocus());
- QVERIFY(button->property("showFocus").toBool());
-
- QTest::mouseClick(&view, Qt::LeftButton, Qt::NoModifier, QPoint(textfield->x() + textfield->width() / 2, textfield->y() + textfield->height() / 2));
- QVERIFY(!button->hasActiveFocus());
- QVERIFY(!button->hasVisualFocus());
- QVERIFY(!button->property("showFocus").toBool());
-}
-
-void tst_focus::scope_data()
-{
- QTest::addColumn<QString>("name");
-
- QTest::newRow("Frame") << "Frame";
- QTest::newRow("GroupBox") << "Frame";
- QTest::newRow("Page") << "Page";
- QTest::newRow("Pane") << "Pane";
- QTest::newRow("StackView") << "StackView";
-}
-
-void tst_focus::scope()
-{
- QFETCH(QString, name);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(QString("import QtQuick 2.9; import QtQuick.Controls 2.2; ApplicationWindow { property alias child: child; width: 100; height: 100; %1 { anchors.fill: parent; Item { id: child; width: 10; height: 10 } } }").arg(name).toUtf8(), QUrl());
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(component.create()));
- QVERIFY2(window, qPrintable(component.errorString()));
-
- QQuickControl *control = qobject_cast<QQuickControl *>(window->contentItem()->childItems().first());
- QVERIFY(control);
-
- control->setFocusPolicy(Qt::WheelFocus);
- control->setAcceptedMouseButtons(Qt::LeftButton);
-
- QQuickItem *child = window->property("child").value<QQuickItem *>();
- QVERIFY(child);
-
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
-
- struct TouchDeviceDeleter
- {
- static inline void cleanup(QTouchDevice *device)
- {
- QWindowSystemInterface::unregisterTouchDevice(device);
- delete device;
- }
- };
-
- QScopedPointer<QTouchDevice, TouchDeviceDeleter> device(new QTouchDevice);
- device->setType(QTouchDevice::TouchScreen);
- QWindowSystemInterface::registerTouchDevice(device.data());
-
- child->forceActiveFocus();
- QVERIFY(child->hasActiveFocus());
- QVERIFY(control->hasActiveFocus());
-
- // Qt::ClickFocus (mouse)
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, QPoint(control->width() / 2, control->height() / 2));
- QVERIFY(!child->hasActiveFocus());
- QVERIFY(control->hasActiveFocus());
-
- // reset
- child->forceActiveFocus();
- QVERIFY(child->hasActiveFocus());
- QVERIFY(control->hasActiveFocus());
-
- // Qt::ClickFocus (touch)
- QTest::touchEvent(window.data(), device.data()).press(0, QPoint(control->width() / 2, control->height() / 2));
- QTest::touchEvent(window.data(), device.data()).release(0, QPoint(control->width() / 2, control->height() / 2));
- QVERIFY(!child->hasActiveFocus());
- QVERIFY(control->hasActiveFocus());
-
- // reset
- child->forceActiveFocus();
- QVERIFY(child->hasActiveFocus());
- QVERIFY(control->hasActiveFocus());
-
- // Qt::WheelFocus
- QWheelEvent wheelEvent(QPointF(control->width() / 2, control->height() / 2), QPointF(),
- QPoint(), QPoint(0, 10), Qt::NoButton, Qt::NoModifier,
- Qt::NoScrollPhase, false);
- QGuiApplication::sendEvent(control, &wheelEvent);
- QVERIFY(!child->hasActiveFocus());
- QVERIFY(control->hasActiveFocus());
-}
-
-QTEST_MAIN(tst_focus)
-
-#include "tst_focus.moc"
diff --git a/tests/auto/font/data/font-appwindow-custom.qml b/tests/auto/font/data/font-appwindow-custom.qml
deleted file mode 100644
index 20101bfa..00000000
--- a/tests/auto/font/data/font-appwindow-custom.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- font.capitalization: Font.AllUppercase
- font.family: "Courier"
- font.italic: true
- font.pixelSize: 60
- font.strikeout: true
- font.underline: true
- font.weight: Font.DemiBold
-}
diff --git a/tests/auto/font/data/font-appwindow-default.qml b/tests/auto/font/data/font-appwindow-default.qml
deleted file mode 100644
index bc75cbb2..00000000
--- a/tests/auto/font/data/font-appwindow-default.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
-}
diff --git a/tests/auto/font/data/font-control-custom.qml b/tests/auto/font/data/font-control-custom.qml
deleted file mode 100644
index 3f198746..00000000
--- a/tests/auto/font/data/font-control-custom.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Control {
- font.capitalization: Font.AllUppercase
- font.family: "Courier"
- font.italic: true
- font.pixelSize: 60
- font.strikeout: true
- font.underline: true
- font.weight: Font.DemiBold
-}
diff --git a/tests/auto/font/data/font-control-default.qml b/tests/auto/font/data/font-control-default.qml
deleted file mode 100644
index e7e78036..00000000
--- a/tests/auto/font/data/font-control-default.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Control {
-}
diff --git a/tests/auto/font/data/font-popup-custom.qml b/tests/auto/font/data/font-popup-custom.qml
deleted file mode 100644
index 3d9eb4a2..00000000
--- a/tests/auto/font/data/font-popup-custom.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Popup {
- font.capitalization: Font.AllUppercase
- font.family: "Courier"
- font.italic: true
- font.pixelSize: 60
- font.strikeout: true
- font.underline: true
- font.weight: Font.DemiBold
-}
diff --git a/tests/auto/font/data/font-popup-default.qml b/tests/auto/font/data/font-popup-default.qml
deleted file mode 100644
index a9bde413..00000000
--- a/tests/auto/font/data/font-popup-default.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Popup {
-}
diff --git a/tests/auto/font/data/inheritance-childcontrol.qml b/tests/auto/font/data/inheritance-childcontrol.qml
deleted file mode 100644
index 4ddab64c..00000000
--- a/tests/auto/font/data/inheritance-childcontrol.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property alias control: control
- property alias child: child
- property alias grandChild: grandChild
-
- Item {
- Control {
- id: control
-
- Control {
- id: child
-
- Item {
- Control {
- id: grandChild
- }
- }
- }
- }
- }
-}
diff --git a/tests/auto/font/data/inheritance-childpopup.qml b/tests/auto/font/data/inheritance-childpopup.qml
deleted file mode 100644
index 6868949b..00000000
--- a/tests/auto/font/data/inheritance-childpopup.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property alias control: control
- property alias child: child
- property alias grandChild: grandChild
-
- Item {
- Popup {
- id: control
-
- Control {
- id: child
-
- Item {
- Control {
- id: grandChild
- }
- }
- }
- }
- }
-}
diff --git a/tests/auto/font/data/inheritance-control.qml b/tests/auto/font/data/inheritance-control.qml
deleted file mode 100644
index 68f7371c..00000000
--- a/tests/auto/font/data/inheritance-control.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property alias control: control
- property alias child: child
- property alias grandChild: grandChild
-
- Control {
- id: control
-
- Control {
- id: child
-
- Item {
- Control {
- id: grandChild
- }
- }
- }
- }
-}
diff --git a/tests/auto/font/data/inheritance-dynamicchildcontrol.qml b/tests/auto/font/data/inheritance-dynamicchildcontrol.qml
deleted file mode 100644
index 1f7c56d1..00000000
--- a/tests/auto/font/data/inheritance-dynamicchildcontrol.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property Control control
- property Control child
- property Control grandChild
-
- Item {
- id: childItem
- }
-
- Component {
- id: component
- Control { }
- }
-
- Component.onCompleted: {
- control = component.createObject(childItem)
- child = component.createObject(control)
- grandChild = component.createObject(child)
- }
-}
diff --git a/tests/auto/font/data/inheritance-dynamicchildpopup.qml b/tests/auto/font/data/inheritance-dynamicchildpopup.qml
deleted file mode 100644
index a32d34ec..00000000
--- a/tests/auto/font/data/inheritance-dynamicchildpopup.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property Popup control
- property Control child
- property Control grandChild
-
- Item {
- id: childItem
- }
-
- Component {
- id: popupComponent
- Popup { }
- }
-
- Component {
- id: controlComponent
- Control { }
- }
-
- Component.onCompleted: {
- control = popupComponent.createObject(childItem)
- child = controlComponent.createObject(control.contentItem)
- grandChild = controlComponent.createObject(child)
- }
-}
diff --git a/tests/auto/font/data/inheritance-dynamiccontrol.qml b/tests/auto/font/data/inheritance-dynamiccontrol.qml
deleted file mode 100644
index d200e397..00000000
--- a/tests/auto/font/data/inheritance-dynamiccontrol.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property Control control
- property Control child
- property Control grandChild
-
- Component {
- id: component
- Control { }
- }
-
- Component.onCompleted: {
- control = component.createObject(contentItem)
- child = component.createObject(control)
- grandChild = component.createObject(child)
- }
-}
diff --git a/tests/auto/font/data/inheritance-dynamicpopup.qml b/tests/auto/font/data/inheritance-dynamicpopup.qml
deleted file mode 100644
index a084cc1b..00000000
--- a/tests/auto/font/data/inheritance-dynamicpopup.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property Popup control
- property Control child
- property Control grandChild
-
- Component {
- id: popupComponent
- Popup { }
- }
-
- Component {
- id: controlComponent
- Control { }
- }
-
- Component.onCompleted: {
- control = popupComponent.createObject(window)
- child = controlComponent.createObject(control.contentItem)
- grandChild = controlComponent.createObject(child)
- }
-}
diff --git a/tests/auto/font/data/inheritance-popup.qml b/tests/auto/font/data/inheritance-popup.qml
deleted file mode 100644
index e114287f..00000000
--- a/tests/auto/font/data/inheritance-popup.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property alias control: control
- property alias child: child
- property alias grandChild: grandChild
-
- Popup {
- id: control
-
- Control {
- id: child
-
- Item {
- Control {
- id: grandChild
- }
- }
- }
- }
-}
diff --git a/tests/auto/font/data/listview.qml b/tests/auto/font/data/listview.qml
deleted file mode 100644
index 048567e5..00000000
--- a/tests/auto/font/data/listview.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 200
- height: 200
-
- property alias listView: listView
-
- font.pixelSize: 55
-
- ListView {
- id: listView
- anchors.fill: parent
- model: 1
- delegate: Column {
- property alias control: control
- property alias label: label
- property alias textarea: textarea
- property alias textfield: textfield
-
- Control { id: control }
- Label { id: label }
- TextArea { id: textarea }
- TextField { id: textfield }
- }
- }
-}
diff --git a/tests/auto/font/font.pro b/tests/auto/font/font.pro
deleted file mode 100644
index f6ccefd3..00000000
--- a/tests/auto/font/font.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-CONFIG += testcase
-TARGET = tst_font
-SOURCES += tst_font.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private quickcontrols2-private
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
diff --git a/tests/auto/font/tst_font.cpp b/tests/auto/font/tst_font.cpp
deleted file mode 100644
index b9371c12..00000000
--- a/tests/auto/font/tst_font.cpp
+++ /dev/null
@@ -1,361 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include "../shared/visualtestutil.h"
-
-#include <QtGui/qfont.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include <QtQuickTemplates2/private/qquicktheme_p_p.h>
-
-using namespace QQuickVisualTestUtil;
-
-class tst_font : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void systemFont();
-
- void font_data();
- void font();
-
- void inheritance_data();
- void inheritance();
-
- void defaultFont_data();
- void defaultFont();
-
- void listView_data();
- void listView();
-};
-
-static QFont testFont()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData("import QtQuick 2.0; import QtQuick.Controls 2.0; Text { }", QUrl());
-
- QScopedPointer<QObject> object(component.create());
- Q_ASSERT_X(!object.isNull(), "testFont", qPrintable(component.errorString()));
-
- QVariant var = object->property("font");
- Q_ASSERT_X(var.isValid(), "testFont", var.typeName());
- return var.value<QFont>();
-}
-
-void tst_font::systemFont()
-{
- QSKIP("QTBUG-70063: qmlClearTypeRegistrations() call causes crash");
-
- const QFont *originalSystemFont = QGuiApplicationPrivate::platformTheme()->font(QPlatformTheme::SystemFont);
- if (!originalSystemFont)
- QSKIP("Cannot test the system font on a minimal platform");
-
- const QFont fontBefore = testFont();
- QCOMPARE(fontBefore, *originalSystemFont);
-
- qmlClearTypeRegistrations();
- delete QGuiApplicationPrivate::app_font;
- QGuiApplicationPrivate::app_font = nullptr;
-
- const QFont appFont = QGuiApplication::font();
- QCOMPARE(appFont, *originalSystemFont);
-
- const QFont fontAfter = testFont();
- QCOMPARE(fontAfter, *originalSystemFont);
-}
-
-void tst_font::font_data()
-{
- QTest::addColumn<QString>("testFile");
- QTest::addColumn<QFont>("expectedFont");
-
- QTest::newRow("Control") << "font-control-default.qml" << QFont();
- QTest::newRow("AppWindow") << "font-appwindow-default.qml" << QFont();
- QTest::newRow("Popup") << "font-popup-default.qml" << QFont();
-
- QFont customFont;
- customFont.setCapitalization(QFont::AllUppercase);
- customFont.setFamily("Courier");
- customFont.setItalic(true);
- customFont.setPixelSize(60);
- customFont.setStrikeOut(true);
- customFont.setUnderline(true);
- customFont.setWeight(QFont::DemiBold);
-
- QTest::newRow("Control:custom") << "font-control-custom.qml" << customFont;
- QTest::newRow("AppWindow:custom") << "font-appwindow-custom.qml" << customFont;
- QTest::newRow("Popup:custom") << "font-popup-custom.qml" << customFont;
-}
-
-void tst_font::font()
-{
- QFETCH(QString, testFile);
- QFETCH(QFont, expectedFont);
-
- if (QSysInfo::productType().compare(QLatin1String("osx"), Qt::CaseInsensitive) == 0
- && qgetenv("QTEST_ENVIRONMENT").split(' ').contains("CI")) {
- QSKIP("This test crashes on macOS: QTBUG-70063");
- }
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl(testFile));
-
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
-
- QVariant var = object->property("font");
- QVERIFY(var.isValid());
-
- QFont actualFont = var.value<QFont>();
- QCOMPARE(actualFont, expectedFont);
-}
-
-void tst_font::inheritance_data()
-{
- QTest::addColumn<QString>("testFile");
-
- QTest::newRow("Control") << "inheritance-control.qml";
- QTest::newRow("Child Control") << "inheritance-childcontrol.qml";
- QTest::newRow("Dynamic Control") << "inheritance-dynamiccontrol.qml";
- QTest::newRow("Dynamic Child Control") << "inheritance-dynamicchildcontrol.qml";
-
- QTest::newRow("Popup") << "inheritance-popup.qml";
- QTest::newRow("Child Popup") << "inheritance-childpopup.qml";
- QTest::newRow("Dynamic Popup") << "inheritance-dynamicpopup.qml";
- QTest::newRow("Dynamic Child Popup") << "inheritance-dynamicchildpopup.qml";
-}
-
-void tst_font::inheritance()
-{
- QFETCH(QString, testFile);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl(testFile));
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(component.create()));
- QVERIFY2(!window.isNull(), qPrintable(component.errorString()));
-
- QObject *control = window->property("control").value<QObject *>();
- QObject *child = window->property("child").value<QObject *>();
- QObject *grandChild = window->property("grandChild").value<QObject *>();
- QVERIFY(control && child && grandChild);
-
- QCOMPARE(window->font(), QFont());
-
- QCOMPARE(control->property("font").value<QFont>(), QFont());
- QCOMPARE(child->property("font").value<QFont>(), QFont());
- QCOMPARE(grandChild->property("font").value<QFont>(), QFont());
-
- QFont childFont;
- childFont.setFamily("Arial");
- childFont.setPixelSize(80);
- childFont.setItalic(true);
- child->setProperty("font", childFont);
- QCOMPARE(child->property("font").value<QFont>(), childFont);
- QCOMPARE(grandChild->property("font").value<QFont>(), childFont);
-
- QFont grandChildFont(childFont);
- grandChildFont.setFamily("Times New Roman");
- grandChildFont.setUnderline(true);
- grandChild->setProperty("font", grandChildFont);
- QCOMPARE(child->property("font").value<QFont>(), childFont);
- QCOMPARE(grandChild->property("font").value<QFont>(), grandChildFont);
-
- QFont windowFont;
- windowFont.setWeight(QFont::Thin);
- window->setFont(windowFont);
- QCOMPARE(window->font(), windowFont);
- QCOMPARE(control->property("font").value<QFont>(), windowFont);
-
- childFont.setWeight(QFont::Thin);
- QCOMPARE(child->property("font").value<QFont>(), childFont);
-
- grandChildFont.setWeight(QFont::Thin);
- QCOMPARE(grandChild->property("font").value<QFont>(), grandChildFont);
-
- child->setProperty("font", QVariant());
- QCOMPARE(child->property("font").value<QFont>(), windowFont);
- QCOMPARE(grandChild->property("font").value<QFont>(), grandChildFont);
-
- grandChild->setProperty("font", QVariant());
- QCOMPARE(grandChild->property("font").value<QFont>(), windowFont);
-}
-
-class TestFontTheme : public QQuickTheme
-{
-public:
- static const int NFonts = QQuickTheme::Tumbler + 1;
-
- TestFontTheme()
- {
- for (int i = 0; i < NFonts; ++i) {
- QFont font = QFont();
- font.setPixelSize(i + 10);
- setFont(static_cast<Scope>(i), font);
- }
- }
-};
-
-Q_DECLARE_METATYPE(QQuickTheme::Scope)
-
-void tst_font::defaultFont_data()
-{
- QTest::addColumn<QString>("control");
- QTest::addColumn<QQuickTheme::Scope>("scope");
-
- QTest::newRow("AbstractButton") << "AbstractButton" << QQuickTheme::System;
- QTest::newRow("ApplicationWindow") << "ApplicationWindow" << QQuickTheme::System;
- QTest::newRow("Button") << "Button" << QQuickTheme::Button;
- QTest::newRow("CheckBox") << "CheckBox" << QQuickTheme::CheckBox;
- QTest::newRow("CheckDelegate") << "CheckDelegate" << QQuickTheme::ListView;
- QTest::newRow("ComboBox") << "ComboBox" << QQuickTheme::ComboBox;
- QTest::newRow("Container") << "Container" << QQuickTheme::System;
- QTest::newRow("Control") << "Control" << QQuickTheme::System;
- QTest::newRow("Dial") << "Dial" << QQuickTheme::System;
- QTest::newRow("Dialog") << "Dialog" << QQuickTheme::System;
- QTest::newRow("DialogButtonBox") << "DialogButtonBox" << QQuickTheme::System;
- QTest::newRow("Drawer") << "Drawer" << QQuickTheme::System;
- QTest::newRow("Frame") << "Frame" << QQuickTheme::System;
- QTest::newRow("GroupBox") << "GroupBox" << QQuickTheme::GroupBox;
- QTest::newRow("ItemDelegate") << "ItemDelegate" << QQuickTheme::ItemView;
- QTest::newRow("Label") << "Label" << QQuickTheme::Label;
- QTest::newRow("Menu") << "Menu" << QQuickTheme::Menu;
- QTest::newRow("MenuItem") << "MenuItem" << QQuickTheme::Menu;
- QTest::newRow("MenuSeparator") << "MenuSeparator" << QQuickTheme::Menu;
- QTest::newRow("Page") << "Page" << QQuickTheme::System;
- QTest::newRow("Pane") << "Pane" << QQuickTheme::System;
- QTest::newRow("Popup") << "Popup" << QQuickTheme::System;
- QTest::newRow("ProgressBar") << "ProgressBar" << QQuickTheme::System;
- QTest::newRow("RadioButton") << "RadioButton" << QQuickTheme::RadioButton;
- QTest::newRow("RadioDelegate") << "RadioDelegate" << QQuickTheme::ListView;
- QTest::newRow("RangeSlider") << "RangeSlider" << QQuickTheme::System;
- QTest::newRow("RoundButton") << "RoundButton" << QQuickTheme::Button;
- QTest::newRow("ScrollBar") << "ScrollBar" << QQuickTheme::System;
- QTest::newRow("ScrollIndicator") << "ScrollIndicator" << QQuickTheme::System;
- QTest::newRow("Slider") << "Slider" << QQuickTheme::System;
- QTest::newRow("SpinBox") << "SpinBox" << QQuickTheme::SpinBox;
- QTest::newRow("SwipeDelegate") << "SwipeDelegate" << QQuickTheme::ListView;
- QTest::newRow("Switch") << "Switch" << QQuickTheme::Switch;
- QTest::newRow("SwitchDelegate") << "SwitchDelegate" << QQuickTheme::ListView;
- QTest::newRow("TabBar") << "TabBar" << QQuickTheme::TabBar;
- QTest::newRow("TabButton") << "TabButton" << QQuickTheme::TabBar;
- QTest::newRow("TextArea") << "TextArea" << QQuickTheme::TextArea;
- QTest::newRow("TextField") << "TextField" << QQuickTheme::TextField;
- QTest::newRow("ToolBar") << "ToolBar" << QQuickTheme::ToolBar;
- QTest::newRow("ToolButton") << "ToolButton" << QQuickTheme::ToolBar;
- QTest::newRow("ToolSeparator") << "ToolSeparator" << QQuickTheme::ToolBar;
- QTest::newRow("ToolTip") << "ToolTip" << QQuickTheme::ToolTip;
- QTest::newRow("Tumbler") << "Tumbler" << QQuickTheme::Tumbler;
-}
-
-void tst_font::defaultFont()
-{
- QFETCH(QString, control);
- QFETCH(QQuickTheme::Scope, scope);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(QString("import QtQuick.Controls 2.2; %1 { }").arg(control).toUtf8(), QUrl());
-
- // The call to setData() above causes QQuickDefaultTheme to be set as the current theme,
- // so we must make sure we only set our theme afterwards.
- QQuickThemePrivate::instance.reset(new TestFontTheme);
-
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
-
- QVariant var = object->property("font");
- QVERIFY(var.isValid());
-
- QFont expectedFont = QQuickTheme::font(scope);
- QFont actualFont = var.value<QFont>();
- QCOMPARE(actualFont, expectedFont);
-}
-
-void tst_font::listView_data()
-{
- QTest::addColumn<QString>("objectName");
-
- QTest::newRow("Control") << "control";
- QTest::newRow("Label") << "label";
- QTest::newRow("TextArea") << "textarea";
- QTest::newRow("TextField") << "textfield";
-}
-
-void tst_font::listView()
-{
- QFETCH(QString, objectName);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("listview.qml"));
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(component.create()));
- QVERIFY2(!window.isNull(), qPrintable(component.errorString()));
-
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
-
- QQuickItem *listView = window->property("listView").value<QQuickItem *>();
- QVERIFY(listView);
-
- QQuickItem *contentItem = listView->property("contentItem").value<QQuickItem *>();
- QVERIFY(contentItem);
-
- QVERIFY(QMetaObject::invokeMethod(listView, "forceLayout"));
-
- QQuickItem *column = contentItem->childItems().value(0);
- QVERIFY(column);
-
- QQuickItem *control = column->property(objectName.toUtf8()).value<QQuickItem *>();
- QVERIFY(control);
-
- QCOMPARE(control->property("font").value<QFont>().pixelSize(), 55);
-}
-
-QTEST_MAIN(tst_font)
-
-#include "tst_font.moc"
diff --git a/tests/auto/palette/data/inheritance-childcontrol.qml b/tests/auto/palette/data/inheritance-childcontrol.qml
deleted file mode 100644
index 4ddab64c..00000000
--- a/tests/auto/palette/data/inheritance-childcontrol.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property alias control: control
- property alias child: child
- property alias grandChild: grandChild
-
- Item {
- Control {
- id: control
-
- Control {
- id: child
-
- Item {
- Control {
- id: grandChild
- }
- }
- }
- }
- }
-}
diff --git a/tests/auto/palette/data/inheritance-childpopup.qml b/tests/auto/palette/data/inheritance-childpopup.qml
deleted file mode 100644
index 6868949b..00000000
--- a/tests/auto/palette/data/inheritance-childpopup.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property alias control: control
- property alias child: child
- property alias grandChild: grandChild
-
- Item {
- Popup {
- id: control
-
- Control {
- id: child
-
- Item {
- Control {
- id: grandChild
- }
- }
- }
- }
- }
-}
diff --git a/tests/auto/palette/data/inheritance-control.qml b/tests/auto/palette/data/inheritance-control.qml
deleted file mode 100644
index 68f7371c..00000000
--- a/tests/auto/palette/data/inheritance-control.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property alias control: control
- property alias child: child
- property alias grandChild: grandChild
-
- Control {
- id: control
-
- Control {
- id: child
-
- Item {
- Control {
- id: grandChild
- }
- }
- }
- }
-}
diff --git a/tests/auto/palette/data/inheritance-dynamicchildcontrol.qml b/tests/auto/palette/data/inheritance-dynamicchildcontrol.qml
deleted file mode 100644
index 1f7c56d1..00000000
--- a/tests/auto/palette/data/inheritance-dynamicchildcontrol.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property Control control
- property Control child
- property Control grandChild
-
- Item {
- id: childItem
- }
-
- Component {
- id: component
- Control { }
- }
-
- Component.onCompleted: {
- control = component.createObject(childItem)
- child = component.createObject(control)
- grandChild = component.createObject(child)
- }
-}
diff --git a/tests/auto/palette/data/inheritance-dynamicchildpopup.qml b/tests/auto/palette/data/inheritance-dynamicchildpopup.qml
deleted file mode 100644
index a32d34ec..00000000
--- a/tests/auto/palette/data/inheritance-dynamicchildpopup.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property Popup control
- property Control child
- property Control grandChild
-
- Item {
- id: childItem
- }
-
- Component {
- id: popupComponent
- Popup { }
- }
-
- Component {
- id: controlComponent
- Control { }
- }
-
- Component.onCompleted: {
- control = popupComponent.createObject(childItem)
- child = controlComponent.createObject(control.contentItem)
- grandChild = controlComponent.createObject(child)
- }
-}
diff --git a/tests/auto/palette/data/inheritance-dynamiccontrol.qml b/tests/auto/palette/data/inheritance-dynamiccontrol.qml
deleted file mode 100644
index d200e397..00000000
--- a/tests/auto/palette/data/inheritance-dynamiccontrol.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property Control control
- property Control child
- property Control grandChild
-
- Component {
- id: component
- Control { }
- }
-
- Component.onCompleted: {
- control = component.createObject(contentItem)
- child = component.createObject(control)
- grandChild = component.createObject(child)
- }
-}
diff --git a/tests/auto/palette/data/inheritance-dynamicpopup.qml b/tests/auto/palette/data/inheritance-dynamicpopup.qml
deleted file mode 100644
index a084cc1b..00000000
--- a/tests/auto/palette/data/inheritance-dynamicpopup.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property Popup control
- property Control child
- property Control grandChild
-
- Component {
- id: popupComponent
- Popup { }
- }
-
- Component {
- id: controlComponent
- Control { }
- }
-
- Component.onCompleted: {
- control = popupComponent.createObject(window)
- child = controlComponent.createObject(control.contentItem)
- grandChild = controlComponent.createObject(child)
- }
-}
diff --git a/tests/auto/palette/data/inheritance-popup.qml b/tests/auto/palette/data/inheritance-popup.qml
deleted file mode 100644
index e114287f..00000000
--- a/tests/auto/palette/data/inheritance-popup.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- property alias control: control
- property alias child: child
- property alias grandChild: grandChild
-
- Popup {
- id: control
-
- Control {
- id: child
-
- Item {
- Control {
- id: grandChild
- }
- }
- }
- }
-}
diff --git a/tests/auto/palette/data/listview.qml b/tests/auto/palette/data/listview.qml
deleted file mode 100644
index a19f6d26..00000000
--- a/tests/auto/palette/data/listview.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 200
- height: 200
-
- property alias listView: listView
-
- palette.highlight: "red"
-
- ListView {
- id: listView
- anchors.fill: parent
- model: 1
- delegate: Column {
- property alias control: control
- property alias label: label
- property alias textarea: textarea
- property alias textfield: textfield
-
- Control { id: control }
- Label { id: label }
- TextArea { id: textarea }
- TextField { id: textfield }
- }
- }
-}
diff --git a/tests/auto/palette/data/palette-appwindow-custom.qml b/tests/auto/palette/data/palette-appwindow-custom.qml
deleted file mode 100644
index a59fb42c..00000000
--- a/tests/auto/palette/data/palette-appwindow-custom.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- palette.alternateBase: "aqua"
- palette.base: "azure"
- palette.brightText: "beige"
- palette.button: "bisque"
- palette.buttonText: "chocolate"
- palette.dark: "coral"
- palette.highlight: "crimson"
- palette.highlightedText: "fuchsia"
- palette.light: "gold"
- palette.link: "indigo"
- palette.linkVisited: "ivory"
- palette.mid: "khaki"
- palette.midlight: "lavender"
- palette.shadow: "linen"
- palette.text: "moccasin"
- palette.toolTipBase: "navy"
- palette.toolTipText: "orchid"
- palette.window: "plum"
- palette.windowText: "salmon"
-}
diff --git a/tests/auto/palette/data/palette-appwindow-default.qml b/tests/auto/palette/data/palette-appwindow-default.qml
deleted file mode 100644
index bc75cbb2..00000000
--- a/tests/auto/palette/data/palette-appwindow-default.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
-}
diff --git a/tests/auto/palette/data/palette-control-custom.qml b/tests/auto/palette/data/palette-control-custom.qml
deleted file mode 100644
index fb4b9282..00000000
--- a/tests/auto/palette/data/palette-control-custom.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Control {
- palette.alternateBase: "aqua"
- palette.base: "azure"
- palette.brightText: "beige"
- palette.button: "bisque"
- palette.buttonText: "chocolate"
- palette.dark: "coral"
- palette.highlight: "crimson"
- palette.highlightedText: "fuchsia"
- palette.light: "gold"
- palette.link: "indigo"
- palette.linkVisited: "ivory"
- palette.mid: "khaki"
- palette.midlight: "lavender"
- palette.shadow: "linen"
- palette.text: "moccasin"
- palette.toolTipBase: "navy"
- palette.toolTipText: "orchid"
- palette.window: "plum"
- palette.windowText: "salmon"
-}
diff --git a/tests/auto/palette/data/palette-control-default.qml b/tests/auto/palette/data/palette-control-default.qml
deleted file mode 100644
index e7e78036..00000000
--- a/tests/auto/palette/data/palette-control-default.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Control {
-}
diff --git a/tests/auto/palette/data/palette-popup-custom.qml b/tests/auto/palette/data/palette-popup-custom.qml
deleted file mode 100644
index ffecfea2..00000000
--- a/tests/auto/palette/data/palette-popup-custom.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Popup {
- palette.alternateBase: "aqua"
- palette.base: "azure"
- palette.brightText: "beige"
- palette.button: "bisque"
- palette.buttonText: "chocolate"
- palette.dark: "coral"
- palette.highlight: "crimson"
- palette.highlightedText: "fuchsia"
- palette.light: "gold"
- palette.link: "indigo"
- palette.linkVisited: "ivory"
- palette.mid: "khaki"
- palette.midlight: "lavender"
- palette.shadow: "linen"
- palette.text: "moccasin"
- palette.toolTipBase: "navy"
- palette.toolTipText: "orchid"
- palette.window: "plum"
- palette.windowText: "salmon"
-}
diff --git a/tests/auto/palette/data/palette-popup-default.qml b/tests/auto/palette/data/palette-popup-default.qml
deleted file mode 100644
index a9bde413..00000000
--- a/tests/auto/palette/data/palette-popup-default.qml
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Popup {
-}
diff --git a/tests/auto/palette/palette.pro b/tests/auto/palette/palette.pro
deleted file mode 100644
index c7d55d07..00000000
--- a/tests/auto/palette/palette.pro
+++ /dev/null
@@ -1,16 +0,0 @@
-CONFIG += testcase
-TARGET = tst_palette
-SOURCES += tst_palette.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private quickcontrols2-private
-
-include (../shared/util.pri)
-
-RESOURCES += qtquickcontrols2.conf
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
diff --git a/tests/auto/palette/qtquickcontrols2.conf b/tests/auto/palette/qtquickcontrols2.conf
deleted file mode 100644
index 2ffc7ecc..00000000
--- a/tests/auto/palette/qtquickcontrols2.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-[Default]
-Palette\Base=#efefef
-
-[Default\Palette]
-Text=#101010
diff --git a/tests/auto/palette/tst_palette.cpp b/tests/auto/palette/tst_palette.cpp
deleted file mode 100644
index e91fd732..00000000
--- a/tests/auto/palette/tst_palette.cpp
+++ /dev/null
@@ -1,350 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include "../shared/visualtestutil.h"
-
-#include <QtGui/qpalette.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include <QtQuickTemplates2/private/qquicktheme_p_p.h>
-
-using namespace QQuickVisualTestUtil;
-
-class tst_palette : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void palette_data();
- void palette();
-
- void inheritance_data();
- void inheritance();
-
- void defaultPalette_data();
- void defaultPalette();
-
- void listView_data();
- void listView();
-};
-
-void tst_palette::initTestCase()
-{
- QQmlDataTest::initTestCase();
-
- // Import QtQuick.Controls to initialize styles and themes so that
- // QQuickControlPrivate::themePalette() returns a palette from the
- // style's theme instead of the platform's theme.
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData("import QtQuick.Controls 2.3; Control { }", QUrl());
- delete component.create();
-}
-
-void tst_palette::palette_data()
-{
- QTest::addColumn<QString>("testFile");
- QTest::addColumn<QPalette>("expectedPalette");
-
- QPalette defaultPalette = QQuickTheme::palette(QQuickTheme::System);
- defaultPalette.setColor(QPalette::Base, QColor("#efefef"));
- defaultPalette.setColor(QPalette::Text, QColor("#101010"));
-
- QTest::newRow("Control") << "palette-control-default.qml" << defaultPalette;
- QTest::newRow("AppWindow") << "palette-appwindow-default.qml" << defaultPalette;
- QTest::newRow("Popup") << "palette-popup-default.qml" << defaultPalette;
-
- QPalette customPalette;
- customPalette.setColor(QPalette::AlternateBase, QColor("aqua"));
- customPalette.setColor(QPalette::Base, QColor("azure"));
- customPalette.setColor(QPalette::BrightText, QColor("beige"));
- customPalette.setColor(QPalette::Button, QColor("bisque"));
- customPalette.setColor(QPalette::ButtonText, QColor("chocolate"));
- customPalette.setColor(QPalette::Dark, QColor("coral"));
- customPalette.setColor(QPalette::Highlight, QColor("crimson"));
- customPalette.setColor(QPalette::HighlightedText, QColor("fuchsia"));
- customPalette.setColor(QPalette::Light, QColor("gold"));
- customPalette.setColor(QPalette::Link, QColor("indigo"));
- customPalette.setColor(QPalette::LinkVisited, QColor("ivory"));
- customPalette.setColor(QPalette::Mid, QColor("khaki"));
- customPalette.setColor(QPalette::Midlight, QColor("lavender"));
- customPalette.setColor(QPalette::Shadow, QColor("linen"));
- customPalette.setColor(QPalette::Text, QColor("moccasin"));
- customPalette.setColor(QPalette::ToolTipBase, QColor("navy"));
- customPalette.setColor(QPalette::ToolTipText, QColor("orchid"));
- customPalette.setColor(QPalette::Window, QColor("plum"));
- customPalette.setColor(QPalette::WindowText, QColor("salmon"));
-
- QTest::newRow("Control:custom") << "palette-control-custom.qml" << customPalette;
- QTest::newRow("AppWindow:custom") << "palette-appwindow-custom.qml" << customPalette;
- QTest::newRow("Popup:custom") << "palette-popup-custom.qml" << customPalette;
-}
-
-void tst_palette::palette()
-{
- QFETCH(QString, testFile);
- QFETCH(QPalette, expectedPalette);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl(testFile));
-
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
-
- QVariant var = object->property("palette");
- QVERIFY(var.isValid());
-
- QPalette actualPalette = var.value<QPalette>();
- QCOMPARE(actualPalette, expectedPalette);
-}
-
-void tst_palette::inheritance_data()
-{
- QTest::addColumn<QString>("testFile");
-
- QTest::newRow("Control") << "inheritance-control.qml";
- QTest::newRow("Child Control") << "inheritance-childcontrol.qml";
- QTest::newRow("Dynamic Control") << "inheritance-dynamiccontrol.qml";
- QTest::newRow("Dynamic Child Control") << "inheritance-dynamicchildcontrol.qml";
-
- QTest::newRow("Popup") << "inheritance-popup.qml";
- QTest::newRow("Child Popup") << "inheritance-childpopup.qml";
- QTest::newRow("Dynamic Popup") << "inheritance-dynamicpopup.qml";
- QTest::newRow("Dynamic Child Popup") << "inheritance-dynamicchildpopup.qml";
-}
-
-void tst_palette::inheritance()
-{
- QFETCH(QString, testFile);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl(testFile));
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(component.create()));
- QVERIFY2(!window.isNull(), qPrintable(component.errorString()));
-
- QObject *control = window->property("control").value<QObject *>();
- QObject *child = window->property("child").value<QObject *>();
- QObject *grandChild = window->property("grandChild").value<QObject *>();
- QVERIFY(control && child && grandChild);
-
- QPalette defaultPalette = QQuickTheme::palette(QQuickTheme::System);
- defaultPalette.setColor(QPalette::Base, QColor("#efefef"));
- defaultPalette.setColor(QPalette::Text, QColor("#101010"));
-
- QCOMPARE(window->palette(), defaultPalette);
-
- QCOMPARE(control->property("palette").value<QPalette>(), defaultPalette);
- QCOMPARE(child->property("palette").value<QPalette>(), defaultPalette);
- QCOMPARE(grandChild->property("palette").value<QPalette>(), defaultPalette);
-
- QPalette childPalette(defaultPalette);
- childPalette.setColor(QPalette::Base, Qt::red);
- childPalette.setColor(QPalette::Text, Qt::green);
- childPalette.setColor(QPalette::Button, Qt::blue);
- child->setProperty("palette", childPalette);
- QCOMPARE(child->property("palette").value<QPalette>(), childPalette);
- QCOMPARE(grandChild->property("palette").value<QPalette>(), childPalette);
-
- QPalette grandChildPalette(childPalette);
- grandChildPalette.setColor(QPalette::Base, Qt::cyan);
- grandChildPalette.setColor(QPalette::Mid, Qt::magenta);
- grandChild->setProperty("palette", grandChildPalette);
- QCOMPARE(child->property("palette").value<QPalette>(), childPalette);
- QCOMPARE(grandChild->property("palette").value<QPalette>(), grandChildPalette);
-
- QPalette windowPalette(defaultPalette);
- windowPalette.setColor(QPalette::Window, Qt::gray);
- window->setPalette(windowPalette);
- QCOMPARE(window->palette(), windowPalette);
- QCOMPARE(control->property("palette").value<QPalette>(), windowPalette);
-
- childPalette.setColor(QPalette::Window, Qt::gray);
- QCOMPARE(child->property("palette").value<QPalette>(), childPalette);
-
- grandChildPalette.setColor(QPalette::Window, Qt::gray);
- QCOMPARE(grandChild->property("palette").value<QPalette>(), grandChildPalette);
-
- child->setProperty("palette", QVariant());
- QCOMPARE(child->property("palette").value<QPalette>(), windowPalette);
- QCOMPARE(grandChild->property("palette").value<QPalette>(), grandChildPalette);
-
- grandChild->setProperty("palette", QVariant());
- QCOMPARE(grandChild->property("palette").value<QPalette>(), windowPalette);
-}
-
-class TestTheme : public QQuickTheme
-{
-public:
- static const int NPalettes = QQuickTheme::Tumbler + 1;
-
- TestTheme()
- {
- for (int i = 0; i < NPalettes; ++i)
- setPalette(static_cast<Scope>(i), QPalette(QColor::fromRgb(i)));
- }
-};
-
-Q_DECLARE_METATYPE(QQuickTheme::Scope)
-
-void tst_palette::defaultPalette_data()
-{
- QTest::addColumn<QString>("control");
- QTest::addColumn<QQuickTheme::Scope>("scope");
-
- QTest::newRow("AbstractButton") << "AbstractButton" << QQuickTheme::System;
- QTest::newRow("ApplicationWindow") << "ApplicationWindow" << QQuickTheme::System;
- QTest::newRow("Button") << "Button" << QQuickTheme::Button;
- QTest::newRow("CheckBox") << "CheckBox" << QQuickTheme::CheckBox;
- QTest::newRow("CheckDelegate") << "CheckDelegate" << QQuickTheme::ListView;
- QTest::newRow("ComboBox") << "ComboBox" << QQuickTheme::ComboBox;
- QTest::newRow("Container") << "Container" << QQuickTheme::System;
- QTest::newRow("Control") << "Control" << QQuickTheme::System;
- QTest::newRow("Dial") << "Dial" << QQuickTheme::System;
- QTest::newRow("Dialog") << "Dialog" << QQuickTheme::System;
- QTest::newRow("DialogButtonBox") << "DialogButtonBox" << QQuickTheme::System;
- QTest::newRow("Drawer") << "Drawer" << QQuickTheme::System;
- QTest::newRow("Frame") << "Frame" << QQuickTheme::System;
- QTest::newRow("GroupBox") << "GroupBox" << QQuickTheme::GroupBox;
- QTest::newRow("ItemDelegate") << "ItemDelegate" << QQuickTheme::ItemView;
- QTest::newRow("Label") << "Label" << QQuickTheme::Label;
- QTest::newRow("Menu") << "Menu" << QQuickTheme::Menu;
- QTest::newRow("MenuItem") << "MenuItem" << QQuickTheme::Menu;
- QTest::newRow("MenuSeparator") << "MenuSeparator" << QQuickTheme::Menu;
- QTest::newRow("Page") << "Page" << QQuickTheme::System;
- QTest::newRow("Pane") << "Pane" << QQuickTheme::System;
- QTest::newRow("Popup") << "Popup" << QQuickTheme::System;
- QTest::newRow("ProgressBar") << "ProgressBar" << QQuickTheme::System;
- QTest::newRow("RadioButton") << "RadioButton" << QQuickTheme::RadioButton;
- QTest::newRow("RadioDelegate") << "RadioDelegate" << QQuickTheme::ListView;
- QTest::newRow("RangeSlider") << "RangeSlider" << QQuickTheme::System;
- QTest::newRow("RoundButton") << "RoundButton" << QQuickTheme::Button;
- QTest::newRow("ScrollBar") << "ScrollBar" << QQuickTheme::System;
- QTest::newRow("ScrollIndicator") << "ScrollIndicator" << QQuickTheme::System;
- QTest::newRow("Slider") << "Slider" << QQuickTheme::System;
- QTest::newRow("SpinBox") << "SpinBox" << QQuickTheme::SpinBox;
- QTest::newRow("SwipeDelegate") << "SwipeDelegate" << QQuickTheme::ListView;
- QTest::newRow("Switch") << "Switch" << QQuickTheme::Switch;
- QTest::newRow("SwitchDelegate") << "SwitchDelegate" << QQuickTheme::ListView;
- QTest::newRow("TabBar") << "TabBar" << QQuickTheme::TabBar;
- QTest::newRow("TabButton") << "TabButton" << QQuickTheme::TabBar;
- QTest::newRow("TextArea") << "TextArea" << QQuickTheme::TextArea;
- QTest::newRow("TextField") << "TextField" << QQuickTheme::TextField;
- QTest::newRow("ToolBar") << "ToolBar" << QQuickTheme::ToolBar;
- QTest::newRow("ToolButton") << "ToolButton" << QQuickTheme::ToolBar;
- QTest::newRow("ToolSeparator") << "ToolSeparator" << QQuickTheme::ToolBar;
- QTest::newRow("ToolTip") << "ToolTip" << QQuickTheme::ToolTip;
- QTest::newRow("Tumbler") << "Tumbler" << QQuickTheme::Tumbler;
-}
-
-void tst_palette::defaultPalette()
-{
- QFETCH(QString, control);
- QFETCH(QQuickTheme::Scope, scope);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(QString("import QtQuick.Controls 2.3; %1 { }").arg(control).toUtf8(), QUrl());
-
- // The call to setData() above causes QQuickDefaultTheme to be set as the current theme,
- // so we must make sure we only set our theme afterwards.
- QQuickThemePrivate::instance.reset(new TestTheme);
-
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
-
- QVariant var = object->property("palette");
- QVERIFY(var.isValid());
-
- QPalette expectedPalette = QQuickTheme::palette(scope);
- QPalette actualPalette = var.value<QPalette>();
- QCOMPARE(actualPalette, expectedPalette);
-}
-
-void tst_palette::listView_data()
-{
- QTest::addColumn<QString>("objectName");
-
- QTest::newRow("Control") << "control";
- QTest::newRow("Label") << "label";
- QTest::newRow("TextArea") << "textarea";
- QTest::newRow("TextField") << "textfield";
-}
-
-void tst_palette::listView()
-{
- QFETCH(QString, objectName);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("listview.qml"));
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(component.create()));
- QVERIFY2(!window.isNull(), qPrintable(component.errorString()));
-
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
-
- QQuickItem *listView = window->property("listView").value<QQuickItem *>();
- QVERIFY(listView);
-
- QQuickItem *contentItem = listView->property("contentItem").value<QQuickItem *>();
- QVERIFY(contentItem);
-
- QVERIFY(QMetaObject::invokeMethod(listView, "forceLayout"));
-
- QQuickItem *column = contentItem->childItems().value(0);
- QVERIFY(column);
-
- QQuickItem *control = column->property(objectName.toUtf8()).value<QQuickItem *>();
- QVERIFY(control);
-
- QCOMPARE(control->property("palette").value<QPalette>().color(QPalette::Highlight), QColor(Qt::red));
-}
-
-QTEST_MAIN(tst_palette)
-
-#include "tst_palette.moc"
diff --git a/tests/auto/platform/data/tst_colordialog.qml b/tests/auto/platform/data/tst_colordialog.qml
deleted file mode 100644
index 98122c25..00000000
--- a/tests/auto/platform/data/tst_colordialog.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- name: "ColorDialog"
-
- Component {
- id: colorDialog
- ColorDialog { }
- }
-
- function test_instance() {
- var dialog = colorDialog.createObject(testCase)
- verify(dialog)
- dialog.destroy()
- }
-}
diff --git a/tests/auto/platform/data/tst_filedialog.qml b/tests/auto/platform/data/tst_filedialog.qml
deleted file mode 100644
index 775e24d3..00000000
--- a/tests/auto/platform/data/tst_filedialog.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- name: "FileDialog"
-
- Component {
- id: fileDialog
- FileDialog { }
- }
-
- function test_instance() {
- var dialog = fileDialog.createObject(testCase)
- verify(dialog)
- dialog.destroy()
- }
-}
diff --git a/tests/auto/platform/data/tst_folderdialog.qml b/tests/auto/platform/data/tst_folderdialog.qml
deleted file mode 100644
index 5f44b995..00000000
--- a/tests/auto/platform/data/tst_folderdialog.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- name: "FolderDialog"
-
- Component {
- id: folderDialog
- FolderDialog { }
- }
-
- function test_instance() {
- var dialog = folderDialog.createObject(testCase)
- verify(dialog)
- dialog.destroy()
- }
-}
diff --git a/tests/auto/platform/data/tst_fontdialog.qml b/tests/auto/platform/data/tst_fontdialog.qml
deleted file mode 100644
index 8166964f..00000000
--- a/tests/auto/platform/data/tst_fontdialog.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- name: "FontDialog"
-
- Component {
- id: fontDialog
- FontDialog { }
- }
-
- function test_instance() {
- var dialog = fontDialog.createObject(testCase)
- verify(dialog)
- dialog.destroy()
- }
-}
diff --git a/tests/auto/platform/data/tst_menu.qml b/tests/auto/platform/data/tst_menu.qml
deleted file mode 100644
index bb37c17b..00000000
--- a/tests/auto/platform/data/tst_menu.qml
+++ /dev/null
@@ -1,264 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "Menu"
-
- Component {
- id: item
- MenuItem { }
- }
-
- Component {
- id: menu
- Menu { }
- }
-
- SignalSpy {
- id: itemsSpy
- signalName: "itemsChanged"
- }
-
- function init() {
- verify(!itemsSpy.target)
- compare(itemsSpy.count, 0)
- }
-
- function cleanup() {
- itemsSpy.target = null
- itemsSpy.clear()
- }
-
- function test_addRemove() {
- var control = menu.createObject(testCase)
-
- itemsSpy.target = control
- verify(itemsSpy.valid)
-
- control.addItem(item.createObject(control, {text: "1"}))
- compare(control.items.length, 1)
- compare(control.items[0].text, "1")
- compare(itemsSpy.count, 1)
-
- control.addItem(item.createObject(control, {text: "2"}))
- compare(control.items.length, 2)
- compare(control.items[0].text, "1")
- compare(control.items[1].text, "2")
- compare(itemsSpy.count, 2)
-
- control.insertItem(1, item.createObject(control, {text: "3"}))
- compare(control.items.length, 3)
- compare(control.items[0].text, "1")
- compare(control.items[1].text, "3")
- compare(control.items[2].text, "2")
- compare(itemsSpy.count, 3)
-
- control.insertItem(0, item.createObject(control, {text: "4"}))
- compare(control.items.length, 4)
- compare(control.items[0].text, "4")
- compare(control.items[1].text, "1")
- compare(control.items[2].text, "3")
- compare(control.items[3].text, "2")
- compare(itemsSpy.count, 4)
-
- control.insertItem(control.items.length, item.createObject(control, {text: "5"}))
- compare(control.items.length, 5)
- compare(control.items[0].text, "4")
- compare(control.items[1].text, "1")
- compare(control.items[2].text, "3")
- compare(control.items[3].text, "2")
- compare(control.items[4].text, "5")
- compare(itemsSpy.count, 5)
-
- control.removeItem(control.items[4])
- compare(control.items.length, 4)
- compare(control.items[0].text, "4")
- compare(control.items[1].text, "1")
- compare(control.items[2].text, "3")
- compare(control.items[3].text, "2")
- compare(itemsSpy.count, 6)
-
- control.removeItem(control.items[0])
- compare(control.items.length, 3)
- compare(control.items[0].text, "1")
- compare(control.items[1].text, "3")
- compare(control.items[2].text, "2")
- compare(itemsSpy.count, 7)
-
- control.removeItem(control.items[1])
- compare(control.items.length, 2)
- compare(control.items[0].text, "1")
- compare(control.items[1].text, "2")
- compare(itemsSpy.count, 8)
-
- control.removeItem(control.items[1])
- compare(control.items.length, 1)
- compare(control.items[0].text, "1")
- compare(itemsSpy.count, 9)
-
- control.removeItem(control.items[0])
- compare(control.items.length, 0)
- compare(itemsSpy.count, 10)
-
- control.destroy()
- }
-
- Component {
- id: contentMenu
- Menu {
- QtObject { objectName: "object" }
- MenuItem { objectName: "item1" }
- Timer { objectName: "timer" }
- MenuItem { objectName: "item2" }
- Component { MenuItem { } }
- }
- }
-
- function test_content() {
- var control = contentMenu.createObject(testCase)
-
- function compareObjectNames(content, names) {
- if (content.length !== names.length)
- return false
- for (var i = 0; i < names.length; ++i) {
- if (content[i].objectName !== names[i])
- return false
- }
- return true
- }
-
- itemsSpy.target = control
- verify(itemsSpy.valid)
-
- verify(compareObjectNames(control.data, ["object", "item1", "timer", "item2", ""]))
- verify(compareObjectNames(control.items, ["item1", "item2"]))
-
- control.addItem(item.createObject(control, {objectName: "item3"}))
- verify(compareObjectNames(control.data, ["object", "item1", "timer", "item2", "", "item3"]))
- verify(compareObjectNames(control.items, ["item1", "item2", "item3"]))
- compare(itemsSpy.count, 1)
-
- control.insertItem(0, item.createObject(control, {objectName: "item4"}))
- verify(compareObjectNames(control.data, ["object", "item1", "timer", "item2", "", "item3", "item4"]))
- verify(compareObjectNames(control.items, ["item4", "item1", "item2", "item3"]))
- compare(itemsSpy.count, 2)
-
- control.removeItem(control.items[1])
- verify(compareObjectNames(control.data, ["object", "timer", "item2", "", "item3", "item4"]))
- verify(compareObjectNames(control.items, ["item4", "item2", "item3"]))
- compare(itemsSpy.count, 3)
-
- control.destroy()
- }
-
- Component {
- id: dynamicMenu
- Menu {
- id: dmenu
- MenuItem { text: "static" }
- Component.onCompleted: {
- addItem(item.createObject(dmenu, {text: "added"}))
- insertItem(0, item.createObject(dmenu, {text: "inserted"}))
- }
- }
- }
-
- function test_dynamic() {
- var control = dynamicMenu.createObject(testCase)
-
- // insertItem(), addItem(), and static MenuItem {}
- compare(control.items.length, 3)
- compare(control.items[0].text, "inserted")
-
- var dying = item.createObject(control, {text: "dying"})
- control.addItem(dying)
- compare(control.items.length, 4)
- compare(control.items[3].text, "dying")
- dying.destroy()
- wait(0)
- compare(control.items.length, 3)
-
- control.destroy()
- }
-
- function test_type() {
- // Q_ENUMS(QPlatformMenu::MenuType)
- compare(Menu.DefaultMenu, 0)
- compare(Menu.EditMenu, 1)
- }
-
- function test_subMenus() {
- var parentMenu = createTemporaryObject(menu, testCase)
- verify(parentMenu)
-
- var subMenu = menu.createObject(parentMenu)
- verify(subMenu)
-
- var subMenuItem = subMenu.menuItem
- verify(subMenuItem)
-
- parentMenu.addMenu(subMenu)
- compare(parentMenu.items.length, 1)
- verify(parentMenu.items[0], subMenuItem)
-
- subMenu.title = "Title"
- compare(subMenu.title, "Title")
- compare(subMenuItem.text, "Title")
- }
-}
diff --git a/tests/auto/platform/data/tst_menubar.qml b/tests/auto/platform/data/tst_menubar.qml
deleted file mode 100644
index 199c5010..00000000
--- a/tests/auto/platform/data/tst_menubar.qml
+++ /dev/null
@@ -1,239 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "MenuBar"
-
- Component {
- id: menu
- Menu { }
- }
-
- Component {
- id: menuBar
- MenuBar { }
- }
-
- SignalSpy {
- id: menusSpy
- signalName: "menusChanged"
- }
-
- function init() {
- verify(!menusSpy.target)
- compare(menusSpy.count, 0)
- }
-
- function cleanup() {
- menusSpy.target = null
- menusSpy.clear()
- }
-
- function test_addRemove() {
- var control = menuBar.createObject(testCase)
-
- menusSpy.target = control
- verify(menusSpy.valid)
-
- control.addMenu(menu.createObject(control, {title: "1"}))
- compare(control.menus.length, 1)
- compare(control.menus[0].title, "1")
- compare(menusSpy.count, 1)
-
- control.addMenu(menu.createObject(control, {title: "2"}))
- compare(control.menus.length, 2)
- compare(control.menus[0].title, "1")
- compare(control.menus[1].title, "2")
- compare(menusSpy.count, 2)
-
- control.insertMenu(1, menu.createObject(control, {title: "3"}))
- compare(control.menus.length, 3)
- compare(control.menus[0].title, "1")
- compare(control.menus[1].title, "3")
- compare(control.menus[2].title, "2")
- compare(menusSpy.count, 3)
-
- control.insertMenu(0, menu.createObject(control, {title: "4"}))
- compare(control.menus.length, 4)
- compare(control.menus[0].title, "4")
- compare(control.menus[1].title, "1")
- compare(control.menus[2].title, "3")
- compare(control.menus[3].title, "2")
- compare(menusSpy.count, 4)
-
- control.insertMenu(control.menus.length, menu.createObject(control, {title: "5"}))
- compare(control.menus.length, 5)
- compare(control.menus[0].title, "4")
- compare(control.menus[1].title, "1")
- compare(control.menus[2].title, "3")
- compare(control.menus[3].title, "2")
- compare(control.menus[4].title, "5")
- compare(menusSpy.count, 5)
-
- control.removeMenu(control.menus[4])
- compare(control.menus.length, 4)
- compare(control.menus[0].title, "4")
- compare(control.menus[1].title, "1")
- compare(control.menus[2].title, "3")
- compare(control.menus[3].title, "2")
- compare(menusSpy.count, 6)
-
- control.removeMenu(control.menus[0])
- compare(control.menus.length, 3)
- compare(control.menus[0].title, "1")
- compare(control.menus[1].title, "3")
- compare(control.menus[2].title, "2")
- compare(menusSpy.count, 7)
-
- control.removeMenu(control.menus[1])
- compare(control.menus.length, 2)
- compare(control.menus[0].title, "1")
- compare(control.menus[1].title, "2")
- compare(menusSpy.count, 8)
-
- control.removeMenu(control.menus[1])
- compare(control.menus.length, 1)
- compare(control.menus[0].title, "1")
- compare(menusSpy.count, 9)
-
- control.removeMenu(control.menus[0])
- compare(control.menus.length, 0)
- compare(menusSpy.count, 10)
-
- control.destroy()
- }
-
- Component {
- id: contentBar
- MenuBar {
- QtObject { objectName: "object" }
- Menu { objectName: "menu1" }
- Timer { objectName: "timer" }
- Menu { objectName: "menu2" }
- Component { Menu { } }
- }
- }
-
- function test_content() {
- var control = contentBar.createObject(testCase)
-
- function compareObjectNames(content, names) {
- if (content.length !== names.length)
- return false
- for (var i = 0; i < names.length; ++i) {
- if (content[i].objectName !== names[i])
- return false
- }
- return true
- }
-
- menusSpy.target = control
- verify(menusSpy.valid)
-
- verify(compareObjectNames(control.data, ["object", "menu1", "timer", "menu2", ""]))
- verify(compareObjectNames(control.menus, ["menu1", "menu2"]))
-
- control.addMenu(menu.createObject(control, {objectName: "menu3"}))
- verify(compareObjectNames(control.data, ["object", "menu1", "timer", "menu2", "", "menu3"]))
- verify(compareObjectNames(control.menus, ["menu1", "menu2", "menu3"]))
- compare(menusSpy.count, 1)
-
- control.insertMenu(0, menu.createObject(control, {objectName: "menu4"}))
- verify(compareObjectNames(control.data, ["object", "menu1", "timer", "menu2", "", "menu3", "menu4"]))
- verify(compareObjectNames(control.menus, ["menu4", "menu1", "menu2", "menu3"]))
- compare(menusSpy.count, 2)
-
- control.removeMenu(control.menus[1])
- verify(compareObjectNames(control.data, ["object", "timer", "menu2", "", "menu3", "menu4"]))
- verify(compareObjectNames(control.menus, ["menu4", "menu2", "menu3"]))
- compare(menusSpy.count, 3)
-
- control.destroy()
- }
-
- Component {
- id: dynamicBar
- MenuBar {
- id: dbar
- Menu { title: "static" }
- Component.onCompleted: {
- addMenu(menu.createObject(dbar, {title: "added"}))
- insertMenu(0, menu.createObject(dbar, {title: "inserted"}))
- }
- }
- }
-
- function test_dynamic() {
- var control = dynamicBar.createObject(testCase)
-
- // insertMenu(), addMenu(), and static Menu {}
- compare(control.menus.length, 3)
- compare(control.menus[0].title, "inserted")
-
- var dying = menu.createObject(control, {title: "dying"})
- control.addMenu(dying)
- compare(control.menus.length, 4)
- compare(control.menus[3].title, "dying")
- dying.destroy()
- wait(0)
- compare(control.menus.length, 3)
-
- control.destroy()
- }
-}
diff --git a/tests/auto/platform/data/tst_menuitem.qml b/tests/auto/platform/data/tst_menuitem.qml
deleted file mode 100644
index 63d4989a..00000000
--- a/tests/auto/platform/data/tst_menuitem.qml
+++ /dev/null
@@ -1,117 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "MenuItem"
-
- Component {
- id: menuItem
- MenuItem { }
- }
-
- SignalSpy {
- id: spy
- }
-
- function test_properties_data() {
- return [
- {tag: "enabled", signal: "enabledChanged", init: true, value: false},
- {tag: "visible", signal: "visibleChanged", init: true, value: false},
- {tag: "separator", signal: "separatorChanged", init: false, value: true},
- {tag: "checkable", signal: "checkableChanged", init: false, value: true},
- {tag: "checked", signal: "checkedChanged", init: false, value: true},
- {tag: "role", signal: "roleChanged", init: MenuItem.TextHeuristicRole, value: MenuItem.AboutRole},
- {tag: "text", signal: "textChanged", init: "", value: "text"},
- {tag: "iconSource", signal: "iconSourceChanged", init: "", value: "qrc:/undo.png"},
- {tag: "iconName", signal: "iconNameChanged", init: "", value: "edit-undo"},
- {tag: "shortcut", signal: "shortcutChanged", init: undefined, value: StandardKey.Undo}
- ]
- }
-
- function test_properties(data) {
- var item = menuItem.createObject(testCase)
- verify(item)
-
- spy.target = item
- spy.signalName = data.signal
- verify(spy.valid)
-
- compare(item[data.tag], data.init)
- item[data.tag] = data.value
- compare(spy.count, 1)
- compare(item[data.tag], data.value)
-
- item[data.tag] = data.value
- compare(spy.count, 1)
-
- spy.clear()
- item.destroy()
- }
-
- function test_role() {
- // Q_ENUMS(QPlatformMenuItem::MenuRole)
- compare(MenuItem.NoRole, 0)
- compare(MenuItem.TextHeuristicRole, 1)
- compare(MenuItem.ApplicationSpecificRole, 2)
- compare(MenuItem.AboutQtRole, 3)
- compare(MenuItem.AboutRole, 4)
- compare(MenuItem.PreferencesRole, 5)
- compare(MenuItem.QuitRole, 6)
- }
-}
diff --git a/tests/auto/platform/data/tst_menuitemgroup.qml b/tests/auto/platform/data/tst_menuitemgroup.qml
deleted file mode 100644
index c65150ca..00000000
--- a/tests/auto/platform/data/tst_menuitemgroup.qml
+++ /dev/null
@@ -1,390 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "MenuItemGroup"
-
- Component {
- id: menuItemGroup
- MenuItemGroup { }
- }
-
- SignalSpy {
- id: checkedItemSpy
- signalName: "checkedItemChanged"
- }
-
- SignalSpy {
- id: itemsSpy
- signalName: "itemsChanged"
- }
-
- function init() {
- verify(!checkedItemSpy.target)
- compare(checkedItemSpy.count, 0)
-
- verify(!itemsSpy.target)
- compare(itemsSpy.count, 0)
- }
-
- function cleanup() {
- checkedItemSpy.target = null
- checkedItemSpy.clear()
-
- itemsSpy.target = null
- itemsSpy.clear()
- }
-
- function test_null() {
- var group = menuItemGroup.createObject(testCase)
- verify(group)
-
- group.addItem(null)
- group.removeItem(null)
-
- group.destroy()
- }
-
- Component {
- id: item
- MenuItem { }
- }
-
- function test_exclusive() {
- var group = menuItemGroup.createObject(testCase)
- verify(group)
-
- compare(group.exclusive, true)
-
- checkedItemSpy.target = group
- verify(checkedItemSpy.valid)
- verify(!group.checkedItem)
-
- var item1 = item.createObject(testCase, {checked: true})
- var item2 = item.createObject(testCase, {checked: false})
- var item3 = item.createObject(testCase, {checked: true})
-
- // add checked
- group.addItem(item1)
- compare(group.checkedItem, item1)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 1)
-
- // add non-checked
- group.addItem(item2)
- compare(group.checkedItem, item1)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 1)
-
- // add checked
- group.addItem(item3)
- compare(group.checkedItem, item3)
- compare(item1.checked, false)
- compare(item2.checked, false)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 2)
-
- // change checked
- group.checkedItem = item2
- compare(group.checkedItem, item2)
- compare(item1.checked, false)
- compare(item2.checked, true)
- compare(item3.checked, false)
- compare(checkedItemSpy.count, 3)
-
- // check
- item1.checked = true
- compare(group.checkedItem, item1)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, false)
- compare(checkedItemSpy.count, 4)
-
- // remove non-checked
- group.removeItem(item2)
- compare(group.checkedItem, item1)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, false)
- compare(checkedItemSpy.count, 4)
-
- // remove checked
- group.removeItem(item1)
- compare(group.checkedItem, null)
- compare(item1.checked, false)
- compare(item2.checked, false)
- compare(item3.checked, false)
- compare(checkedItemSpy.count, 5)
-
- group.destroy()
- }
-
- function test_nonExclusive() {
- var group = menuItemGroup.createObject(testCase, {exclusive: false})
- verify(group)
-
- compare(group.exclusive, false)
-
- checkedItemSpy.target = group
- verify(checkedItemSpy.valid)
- verify(!group.checkedItem)
-
- var item1 = item.createObject(testCase, {checked: true})
- var item2 = item.createObject(testCase, {checked: false})
- var item3 = item.createObject(testCase, {checked: true})
-
- // add checked
- group.addItem(item1)
- compare(group.checkedItem, null)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 0)
-
- // add non-checked
- group.addItem(item2)
- compare(group.checkedItem, null)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 0)
-
- // add checked
- group.addItem(item3)
- compare(group.checkedItem, null)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 0)
-
- // change checked
- group.checkedItem = item2
- compare(group.checkedItem, item2)
- compare(item1.checked, true)
- compare(item2.checked, true)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 1)
-
- // check
- item1.checked = false
- item1.checked = true
- compare(group.checkedItem, item2)
- compare(item1.checked, true)
- compare(item2.checked, true)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 1)
-
- // remove checked
- group.removeItem(item2)
- compare(group.checkedItem, null)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 2)
-
- // remove non-checked
- group.removeItem(item1)
- compare(group.checkedItem, null)
- compare(item1.checked, true)
- compare(item2.checked, false)
- compare(item3.checked, true)
- compare(checkedItemSpy.count, 2)
-
- group.destroy()
- }
-
- function test_items() {
- var group = menuItemGroup.createObject(testCase)
- verify(group)
-
- itemsSpy.target = group
- verify(itemsSpy.valid)
-
- compare(group.items.length, 0)
- compare(group.checkedItem, null)
-
- var item1 = item.createObject(testCase, {checked: true})
- var item2 = item.createObject(testCase, {checked: false})
-
- group.items = [item1, item2]
- compare(group.items.length, 2)
- compare(group.items[0], item1)
- compare(group.items[1], item2)
- compare(group.checkedItem, item1)
- compare(itemsSpy.count, 2)
-
- var item3 = item.createObject(testCase, {checked: true})
-
- group.addItem(item3)
- compare(group.items.length, 3)
- compare(group.items[0], item1)
- compare(group.items[1], item2)
- compare(group.items[2], item3)
- compare(group.checkedItem, item3)
- compare(itemsSpy.count, 3)
-
- group.removeItem(item1)
- compare(group.items.length, 2)
- compare(group.items[0], item2)
- compare(group.items[1], item3)
- compare(group.checkedItem, item3)
- compare(itemsSpy.count, 4)
-
- group.items = []
- compare(group.items.length, 0)
- compare(group.checkedItem, null)
- compare(itemsSpy.count, 5)
-
- group.destroy()
- }
-
- function test_itemDestroyed() {
- var group = menuItemGroup.createObject(testCase)
- verify(group)
-
- itemsSpy.target = group
- verify(itemsSpy.valid)
-
- var item1 = item.createObject(testCase, {checked: true})
-
- group.addItem(item1)
- compare(group.items.length, 1)
- compare(group.items[0], item1)
- compare(group.checkedItem, item1)
- compare(itemsSpy.count, 1)
-
- item1.destroy()
- wait(0)
- compare(group.items.length, 0)
- compare(group.checkedItem, null)
- compare(itemsSpy.count, 2)
-
- group.destroy()
- }
-
- function test_visible() {
- var group = menuItemGroup.createObject(testCase)
- verify(group)
-
- compare(group.visible, true)
-
- for (var i = 0; i < 3; ++i) {
- group.addItem(item.createObject(testCase))
- compare(group.items[i].visible, true)
- }
-
- group.visible = false
- compare(group.visible, false)
-
- for (i = 0; i < 3; ++i)
- compare(group.items[i].visible, false)
-
- group.items[1].visible = true
- compare(group.items[1].visible, false)
-
- group.items[1].visible = false
- compare(group.items[1].visible, false)
-
- group.visible = true
- compare(group.visible, true)
-
- compare(group.items[0].visible, true)
- compare(group.items[1].visible, false)
- compare(group.items[2].visible, true)
-
- group.destroy()
- }
-
- function test_enabled() {
- var group = menuItemGroup.createObject(testCase)
- verify(group)
-
- compare(group.enabled, true)
-
- for (var i = 0; i < 3; ++i) {
- group.addItem(item.createObject(testCase))
- compare(group.items[i].enabled, true)
- }
-
- group.enabled = false
- compare(group.enabled, false)
-
- for (i = 0; i < 3; ++i)
- compare(group.items[i].enabled, false)
-
- group.items[1].enabled = true
- compare(group.items[1].enabled, false)
-
- group.items[1].enabled = false
- compare(group.items[1].enabled, false)
-
- group.enabled = true
- compare(group.enabled, true)
-
- compare(group.items[0].enabled, true)
- compare(group.items[1].enabled, false)
- compare(group.items[2].enabled, true)
-
- group.destroy()
- }
-}
diff --git a/tests/auto/platform/data/tst_menuseparator.qml b/tests/auto/platform/data/tst_menuseparator.qml
deleted file mode 100644
index 29c48f6b..00000000
--- a/tests/auto/platform/data/tst_menuseparator.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- name: "MenuSeparator"
-
- Component {
- id: menuSeparator
- MenuSeparator { }
- }
-
- function test_separator() {
- var separator = menuSeparator.createObject(testCase)
- verify(separator)
-
- compare(separator.separator, true)
-
- separator.destroy()
- }
-}
diff --git a/tests/auto/platform/data/tst_messagedialog.qml b/tests/auto/platform/data/tst_messagedialog.qml
deleted file mode 100644
index d5f2e21f..00000000
--- a/tests/auto/platform/data/tst_messagedialog.qml
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- name: "MessageDialog"
-
- Component {
- id: messageDialog
- MessageDialog { }
- }
-
- SignalSpy {
- id: spy
- }
-
- function test_instance() {
- var dialog = messageDialog.createObject(testCase)
- verify(dialog)
- dialog.destroy()
- }
-
- function test_standardButtons() {
- // Q_FLAGS(QPlatformDialogHelper::StandardButtons)
- compare(MessageDialog.NoButton , 0x00000000)
- compare(MessageDialog.Ok , 0x00000400)
- compare(MessageDialog.Save , 0x00000800)
- compare(MessageDialog.SaveAll , 0x00001000)
- compare(MessageDialog.Open , 0x00002000)
- compare(MessageDialog.Yes , 0x00004000)
- compare(MessageDialog.YesToAll , 0x00008000)
- compare(MessageDialog.No , 0x00010000)
- compare(MessageDialog.NoToAll , 0x00020000)
- compare(MessageDialog.Abort , 0x00040000)
- compare(MessageDialog.Retry , 0x00080000)
- compare(MessageDialog.Ignore , 0x00100000)
- compare(MessageDialog.Close , 0x00200000)
- compare(MessageDialog.Cancel , 0x00400000)
- compare(MessageDialog.Discard , 0x00800000)
- compare(MessageDialog.Help , 0x01000000)
- compare(MessageDialog.Apply , 0x02000000)
- compare(MessageDialog.Reset , 0x04000000)
- compare(MessageDialog.RestoreDefaults, 0x08000000)
- }
-
- function test_clicked() {
- var dialog = messageDialog.createObject(testCase)
- verify(dialog)
-
- spy.target = dialog
- spy.signalName = "clicked"
-
- dialog.clicked(MessageDialog.Yes)
- compare(spy.count, 1)
- compare(spy.signalArguments[0][0], MessageDialog.Yes)
-
- spy.clear()
- dialog.destroy()
- }
-}
diff --git a/tests/auto/platform/data/tst_standardpaths.qml b/tests/auto/platform/data/tst_standardpaths.qml
deleted file mode 100644
index 35f0d23b..00000000
--- a/tests/auto/platform/data/tst_standardpaths.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- name: "StandardPaths"
-
- function test_standardLocation() {
- // Q_ENUMS(QStandardPaths::StandardLocation)
- compare(StandardPaths.DesktopLocation, 0)
- compare(StandardPaths.DocumentsLocation, 1)
- compare(StandardPaths.FontsLocation, 2)
- compare(StandardPaths.ApplicationsLocation, 3)
- compare(StandardPaths.MusicLocation, 4)
- compare(StandardPaths.MoviesLocation, 5)
- compare(StandardPaths.PicturesLocation, 6)
- compare(StandardPaths.TempLocation, 7)
- compare(StandardPaths.HomeLocation, 8)
- compare(StandardPaths.DataLocation, 9)
- compare(StandardPaths.CacheLocation, 10)
- compare(StandardPaths.GenericDataLocation, 11)
- compare(StandardPaths.RuntimeLocation, 12)
- compare(StandardPaths.ConfigLocation, 13)
- compare(StandardPaths.DownloadLocation, 14)
- compare(StandardPaths.GenericCacheLocation, 15)
- compare(StandardPaths.GenericConfigLocation, 16)
- compare(StandardPaths.AppDataLocation, 17)
- compare(StandardPaths.AppConfigLocation, 18)
- compare(StandardPaths.AppLocalDataLocation, StandardPaths.DataLocation)
- }
-
- function test_locateOptions() {
- // Q_ENUMS(QStandardPaths::LocateOptions)
- compare(StandardPaths.LocateFile, 0)
- compare(StandardPaths.LocateDirectory, 1)
- }
-}
diff --git a/tests/auto/platform/data/tst_systemtrayicon.qml b/tests/auto/platform/data/tst_systemtrayicon.qml
deleted file mode 100644
index 675f08f3..00000000
--- a/tests/auto/platform/data/tst_systemtrayicon.qml
+++ /dev/null
@@ -1,132 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import Qt.labs.platform 1.0
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "SystemTrayIcon"
-
- Component {
- id: systemTrayIcon
- SystemTrayIcon { }
- }
-
- SignalSpy {
- id: spy
- }
-
- function test_properties_data() {
- return [
- {tag: "visible", signal: "visibleChanged", init: false, value: true},
- {tag: "iconSource", signal: "iconSourceChanged", init: "", value: "qrc:/tray.png"},
- {tag: "iconName", signal: "iconNameChanged", init: "", value: "icon-name"},
- {tag: "tooltip", signal: "tooltipChanged", init: "", value: "tooltip"},
- ]
- }
-
- function test_properties(data) {
- var icon = systemTrayIcon.createObject(testCase)
- verify(icon)
-
- spy.target = icon
- spy.signalName = data.signal
- verify(spy.valid)
-
- compare(icon[data.tag], data.init)
- icon[data.tag] = data.value
- compare(spy.count, 1)
- compare(icon[data.tag], data.value)
-
- icon[data.tag] = data.value
- compare(spy.count, 1)
-
- spy.clear()
- icon.destroy()
- }
-
- function test_messageIcon() {
- // Q_ENUMS(QPlatformSystemTrayIcon::ActivationReason)
- compare(SystemTrayIcon.NoIcon, 0)
- compare(SystemTrayIcon.Information, 1)
- compare(SystemTrayIcon.Warning, 2)
- compare(SystemTrayIcon.Critical, 3)
- }
-
- function test_activationReason() {
- // Q_ENUMS(QPlatformSystemTrayIcon::ActivationReason)
- compare(SystemTrayIcon.Unknown, 0)
- compare(SystemTrayIcon.Context, 1)
- compare(SystemTrayIcon.DoubleClick, 2)
- compare(SystemTrayIcon.Trigger, 3)
- compare(SystemTrayIcon.MiddleClick, 4)
- }
-
- function test_activated() {
- var icon = systemTrayIcon.createObject(testCase)
- verify(icon)
-
- spy.target = icon
- spy.signalName = "activated"
-
- icon.activated(SystemTrayIcon.Trigger)
- compare(spy.count, 1)
- compare(spy.signalArguments[0][0], SystemTrayIcon.Trigger)
-
- spy.clear()
- icon.destroy()
- }
-}
diff --git a/tests/auto/platform/platform.pro b/tests/auto/platform/platform.pro
deleted file mode 100644
index cc537b32..00000000
--- a/tests/auto/platform/platform.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-TARGET = tst_platform
-CONFIG += qmltestcase
-
-SOURCES += \
- $$PWD/tst_platform.cpp
-
-OTHER_FILES += \
- $$PWD/data/*.qml
-
-TESTDATA += \
- $$PWD/data/tst_*
diff --git a/tests/auto/platform/tst_platform.cpp b/tests/auto/platform/tst_platform.cpp
deleted file mode 100644
index 129b0f43..00000000
--- a/tests/auto/platform/tst_platform.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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_platform)
diff --git a/tests/auto/pressandhold/data/dependencies.qml b/tests/auto/pressandhold/data/dependencies.qml
deleted file mode 100644
index dac5f935..00000000
--- a/tests/auto/pressandhold/data/dependencies.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Control { }
diff --git a/tests/auto/pressandhold/pressandhold.pro b/tests/auto/pressandhold/pressandhold.pro
deleted file mode 100644
index db0d6288..00000000
--- a/tests/auto/pressandhold/pressandhold.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = app
-TARGET = tst_pressandhold
-
-QT += quick testlib
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-SOURCES += \
- $$PWD/tst_pressandhold.cpp
diff --git a/tests/auto/pressandhold/tst_pressandhold.cpp b/tests/auto/pressandhold/tst_pressandhold.cpp
deleted file mode 100644
index e4914a19..00000000
--- a/tests/auto/pressandhold/tst_pressandhold.cpp
+++ /dev/null
@@ -1,212 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest>
-#include <QtQuick>
-
-class tst_PressAndHold : public QObject
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
- void cleanupTestCase();
-
- void pressAndHold_data();
- void pressAndHold();
-
- void keepSelection_data();
- void keepSelection();
-};
-
-void tst_PressAndHold::initTestCase()
-{
- QGuiApplication::styleHints()->setMousePressAndHoldInterval(100);
-}
-
-void tst_PressAndHold::cleanupTestCase()
-{
- QGuiApplication::styleHints()->setMousePressAndHoldInterval(-1);
-}
-
-void tst_PressAndHold::pressAndHold_data()
-{
- QTest::addColumn<QByteArray>("data");
- QTest::addColumn<QByteArray>("signal");
-
- QTest::newRow("Button") << QByteArray("import QtQuick.Controls 2.1; Button { text: 'Button' }") << QByteArray(SIGNAL(pressAndHold()));
- QTest::newRow("SwipeDelegate") << QByteArray("import QtQuick.Controls 2.1; SwipeDelegate { text: 'SwipeDelegate' }") << QByteArray(SIGNAL(pressAndHold()));
- QTest::newRow("TextField") << QByteArray("import QtQuick.Controls 2.1; TextField { text: 'TextField' }") << QByteArray(SIGNAL(pressAndHold(QQuickMouseEvent*)));
- QTest::newRow("TextArea") << QByteArray("import QtQuick.Controls 2.1; TextArea { text: 'TextArea' }") << QByteArray(SIGNAL(pressAndHold(QQuickMouseEvent*)));
-}
-
-void tst_PressAndHold::pressAndHold()
-{
- QFETCH(QByteArray, data);
- QFETCH(QByteArray, signal);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(data, QUrl());
-
- QScopedPointer<QObject> control(component.create());
- QScopedPointer<QObject> waitControl(component.create());
- QVERIFY(!control.isNull() && !waitControl.isNull());
-
- QSignalSpy spy(control.data(), signal);
- QSignalSpy waitSpy(waitControl.data(), signal);
- QVERIFY(spy.isValid() && waitSpy.isValid());
-
- int startDragDistance = QGuiApplication::styleHints()->startDragDistance();
- QMouseEvent press(QEvent::MouseButtonPress, QPointF(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
- QMouseEvent press2(QEvent::MouseButtonPress, QPointF(), Qt::RightButton, Qt::RightButton, Qt::NoModifier);
- QMouseEvent move(QEvent::MouseMove, QPointF(2 * startDragDistance, 2 * startDragDistance), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
- QMouseEvent release(QEvent::MouseButtonRelease, QPointF(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
-
- // pressAndHold() emitted
- QGuiApplication::sendEvent(control.data(), &press);
- QTRY_COMPARE(spy.count(), 1);
- QGuiApplication::sendEvent(control.data(), &release);
- QCOMPARE(spy.count(), 1);
- spy.clear();
-
- // pressAndHold() canceled by release
- QGuiApplication::sendEvent(control.data(), &press);
- QGuiApplication::processEvents();
- QGuiApplication::sendEvent(control.data(), &release);
- QCOMPARE(spy.count(), 0);
-
- // pressAndHold() canceled by move
- QGuiApplication::sendEvent(control.data(), &press);
- QGuiApplication::sendEvent(control.data(), &move); // cancels pressAndHold()
- QGuiApplication::sendEvent(waitControl.data(), &press);
- // by the time the second control emits pressAndHold(), we can reliably
- // assume that the first control would have emitted pressAndHold() if it
- // wasn't canceled as appropriate by the move event above
- QTRY_COMPARE(waitSpy.count(), 1);
- QCOMPARE(spy.count(), 0);
- QGuiApplication::sendEvent(control.data(), &release);
- QGuiApplication::sendEvent(waitControl.data(), &release);
- QCOMPARE(waitSpy.count(), 1);
- QCOMPARE(spy.count(), 0);
- waitSpy.clear();
-
- // pressAndHold() canceled by 2nd press
- QGuiApplication::sendEvent(control.data(), &press);
- QGuiApplication::sendEvent(control.data(), &press2); // cancels pressAndHold()
- QGuiApplication::sendEvent(waitControl.data(), &press);
- // by the time the second control emits pressAndHold(), we can reliably
- // assume that the first control would have emitted pressAndHold() if it
- // wasn't canceled as appropriate by the 2nd press event above
- QTRY_COMPARE(waitSpy.count(), 1);
- QCOMPARE(spy.count(), 0);
- QGuiApplication::sendEvent(control.data(), &release);
- QGuiApplication::sendEvent(waitControl.data(), &release);
- QCOMPARE(waitSpy.count(), 1);
- QCOMPARE(spy.count(), 0);
- waitSpy.clear();
-}
-
-void tst_PressAndHold::keepSelection_data()
-{
- QTest::addColumn<QByteArray>("data");
-
- QTest::newRow("TextField") << QByteArray("import QtQuick.Controls 2.1; TextField { text: 'TextField' }");
- QTest::newRow("TextArea") << QByteArray("import QtQuick.Controls 2.1; TextArea { text: 'TextArea' }");
-}
-
-void tst_PressAndHold::keepSelection()
-{
- QFETCH(QByteArray, data);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(data, QUrl());
-
- QScopedPointer<QObject> control(component.create());
- QScopedPointer<QObject> waitControl(component.create());
- QVERIFY(!control.isNull() && !waitControl.isNull());
-
- QSignalSpy spy(control.data(), SIGNAL(pressAndHold(QQuickMouseEvent*)));
- QSignalSpy waitSpy(waitControl.data(), SIGNAL(pressAndHold(QQuickMouseEvent*)));
- QVERIFY(spy.isValid() && waitSpy.isValid());
-
- QMouseEvent press(QEvent::MouseButtonPress, QPointF(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
- QMouseEvent press2(QEvent::MouseButtonPress, QPointF(), Qt::RightButton, Qt::RightButton, Qt::NoModifier);
- QMouseEvent release(QEvent::MouseButtonRelease, QPointF(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier);
-
- QVERIFY(!control->property("text").toString().isEmpty());
- QVERIFY(QMetaObject::invokeMethod(control.data(), "selectAll"));
- QCOMPARE(control->property("selectedText"), control->property("text"));
-
- // pressAndHold() emitted => selection remains
- QGuiApplication::sendEvent(control.data(), &press);
- QTRY_COMPARE(spy.count(), 1);
- QGuiApplication::sendEvent(control.data(), &release);
- QCOMPARE(spy.count(), 1);
- QCOMPARE(control->property("selectedText"), control->property("text"));
- spy.clear();
-
- // pressAndHold() canceled by release => selection cleared
- QGuiApplication::sendEvent(control.data(), &press);
- QGuiApplication::processEvents();
- QGuiApplication::sendEvent(control.data(), &release);
- QCOMPARE(spy.count(), 0);
- QVERIFY(control->property("selectedText").toString().isEmpty());
-
- QVERIFY(QMetaObject::invokeMethod(control.data(), "selectAll"));
- QCOMPARE(control->property("selectedText"), control->property("text"));
-
- // pressAndHold() canceled by 2nd press => selection cleared
- QGuiApplication::sendEvent(control.data(), &press);
- QGuiApplication::sendEvent(control.data(), &press2); // cancels pressAndHold()
- QGuiApplication::sendEvent(waitControl.data(), &press);
- // by the time the second control emits pressAndHold(), we can reliably
- // assume that the first control would have emitted pressAndHold() if it
- // wasn't canceled as appropriate by the move event above
- QTRY_COMPARE(waitSpy.count(), 1);
- QCOMPARE(spy.count(), 0);
- QGuiApplication::sendEvent(control.data(), &release);
- QGuiApplication::sendEvent(waitControl.data(), &release);
- QCOMPARE(waitSpy.count(), 1);
- QCOMPARE(spy.count(), 0);
- QVERIFY(control->property("selectedText").toString().isEmpty());
- waitSpy.clear();
-}
-
-QTEST_MAIN(tst_PressAndHold)
-
-#include "tst_pressandhold.moc"
diff --git a/tests/auto/qquickapplicationwindow/data/activeFocusControl.qml b/tests/auto/qquickapplicationwindow/data/activeFocusControl.qml
deleted file mode 100644
index 743ae16d..00000000
--- a/tests/auto/qquickapplicationwindow/data/activeFocusControl.qml
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias container_column: column
- property alias textInput_column: ti_column
- property alias textEdit_column: te_column
- property alias textField_column: tf_column
- property alias textArea_column: ta_column
- property alias spinBox_column: sp_column
- property alias spinContent_column: sp_column.contentItem
-
- property alias container_frame: frame
- property alias textInput_frame: ti_frame
- property alias textEdit_frame: te_frame
- property alias textField_frame: tf_frame
- property alias textArea_frame: ta_frame
- property alias spinBox_frame: sp_frame
- property alias spinContent_frame: sp_frame.contentItem
-
- Column {
- id: column
-
- TextInput {
- id: ti_column
- }
- TextEdit {
- id: te_column
- }
- TextField {
- id: tf_column
- }
- TextArea {
- id: ta_column
- }
- SpinBox {
- id: sp_column
- }
- }
-
- Frame {
- id: frame
-
- Column {
- TextInput {
- id: ti_frame
- }
- TextEdit {
- id: te_frame
- }
- TextField {
- id: tf_frame
- }
- TextArea {
- id: ta_frame
- }
- SpinBox {
- id: sp_frame
- }
- }
- }
-}
diff --git a/tests/auto/qquickapplicationwindow/data/activefocusontab.qml b/tests/auto/qquickapplicationwindow/data/activefocusontab.qml
deleted file mode 100644
index 45b3d1e3..00000000
--- a/tests/auto/qquickapplicationwindow/data/activefocusontab.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- title: "Test Application Window"
- width: 100
- height: 100
- Item {
- id: main
- objectName: "main"
- width: 100
- height: 100
- //focus: true
- Column {
- anchors.fill: parent
- id: column
- objectName: "column"
- Item {
- id: sub1
- objectName: "sub1"
- activeFocusOnTab: true
- Accessible.role: Accessible.Table
- width: 100
- height: 50
- Rectangle {
- anchors.fill: parent
- color: parent.activeFocus ? "red" : "black"
- }
- }
- Item {
- id: sub2
- objectName: "sub2"
- activeFocusOnTab: true
- Accessible.role: Accessible.Table
- width: 100
- height: 50
- Rectangle {
- anchors.fill: parent
- color: parent.activeFocus ? "red" : "black"
- }
- }
- }
- }
-}
diff --git a/tests/auto/qquickapplicationwindow/data/attachedProperties.qml b/tests/auto/qquickapplicationwindow/data/attachedProperties.qml
deleted file mode 100644
index 53a139c1..00000000
--- a/tests/auto/qquickapplicationwindow/data/attachedProperties.qml
+++ /dev/null
@@ -1,190 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- property alias childControl: childControl
- property alias childItem: childItem
- property alias childObject: childObject
-
- Control {
- id: childControl
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
-
- Item {
- id: childItem
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
-
- QtObject {
- id: childObject
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
-
- property alias childWindow: childWindow
- property alias childWindowControl: childWindowControl
- property alias childWindowItem: childWindowItem
- property alias childWindowObject: childWindowObject
-
- Window {
- id: childWindow
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
-
- Control {
- id: childWindowControl
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
-
- Item {
- id: childWindowItem
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
-
- QtObject {
- id: childWindowObject
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
- }
-
- property alias childAppWindow: childAppWindow
- property alias childAppWindowControl: childAppWindowControl
- property alias childAppWindowItem: childAppWindowItem
- property alias childAppWindowObject: childAppWindowObject
-
- ApplicationWindow {
- id: childAppWindow
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
-
- Control {
- id: childAppWindowControl
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
-
- Item {
- id: childAppWindowItem
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
-
- QtObject {
- id: childAppWindowObject
-
- property ApplicationWindow attached_window: ApplicationWindow.window
- property Item attached_contentItem: ApplicationWindow.contentItem
- property Item attached_activeFocusControl: ApplicationWindow.activeFocusControl
- property Item attached_header: ApplicationWindow.header
- property Item attached_footer: ApplicationWindow.footer
- property Item attached_overlay: ApplicationWindow.overlay
- }
- }
-}
diff --git a/tests/auto/qquickapplicationwindow/data/basicapplicationwindow.qml b/tests/auto/qquickapplicationwindow/data/basicapplicationwindow.qml
deleted file mode 100644
index a9412fd6..00000000
--- a/tests/auto/qquickapplicationwindow/data/basicapplicationwindow.qml
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- title: "Test Application Window"
-}
diff --git a/tests/auto/qquickapplicationwindow/data/clearfocusondestruction.qml b/tests/auto/qquickapplicationwindow/data/clearfocusondestruction.qml
deleted file mode 100644
index d3218998..00000000
--- a/tests/auto/qquickapplicationwindow/data/clearfocusondestruction.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-import QtGraphicalEffects 1.12
-
-ApplicationWindow {
- width: 200
- height: 200
- visible: true
-
- property alias textfield: textfield
-
- /*
- * The code below is the simplest way we can trigger that the signal
- * activeFocusItemChanged() is emitted during destruction of the
- * ApplicationWindow. This caused a crash in QQuickApplicationWindow.
- */
- FastBlur {
- id: fastBlur
- anchors.fill: parent
- radius: 30
- source: ShaderEffectSource {
- id: effectsource
- sourceItem: textfield
- sourceRect: Qt.rect( 0, 0, fastBlur.width, fastBlur.height )
- }
- }
-
- TextField {
- id: textfield
- anchors.bottom: parent.bottom
- focus: true
- }
-}
diff --git a/tests/auto/qquickapplicationwindow/data/defaultFocus.qml b/tests/auto/qquickapplicationwindow/data/defaultFocus.qml
deleted file mode 100644
index 5dff2b6c..00000000
--- a/tests/auto/qquickapplicationwindow/data/defaultFocus.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- visible: true
- width: 200
- height: 200
-
- property bool receivedKeyPress: false
-
- Item {
- objectName: "item"
- focus: true
- anchors.fill: parent
-
- Keys.onLeftPressed: receivedKeyPress = true
- }
-}
-
diff --git a/tests/auto/qquickapplicationwindow/data/fill.qml b/tests/auto/qquickapplicationwindow/data/fill.qml
deleted file mode 100644
index d29ed0f9..00000000
--- a/tests/auto/qquickapplicationwindow/data/fill.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias stackView: stackView
- property alias nextItem: nextItem
-
- function pushNextItem() {
- stackView.push(nextItem, StackView.Immediate);
- }
-
- Rectangle {
- id: nextItem
- color: "blue"
- visible: false
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
-
- initialItem: Rectangle {
- color: "red"
- }
- }
-}
diff --git a/tests/auto/qquickapplicationwindow/data/focusAfterPopupClosed.qml b/tests/auto/qquickapplicationwindow/data/focusAfterPopupClosed.qml
deleted file mode 100644
index 313bbb5f..00000000
--- a/tests/auto/qquickapplicationwindow/data/focusAfterPopupClosed.qml
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 200
- height: 200
- visible: true
-
- signal focusScopeKeyPressed
- signal focusPopupKeyPressed
-
- property alias fileMenu: fileMenu
- property alias toolButton: toolButton
- property alias focusScope: focusScope
- property alias focusPopup: focusPopup
-
- header: ToolBar {
- ToolButton {
- id: toolButton
- text: qsTr("File")
- onClicked: fileMenu.open()
- focusPolicy: Qt.TabFocus
-
- Menu {
- id: fileMenu
- y: parent.height
-
- MenuItem {
- text: qsTr("New")
- }
- MenuItem {
- text: qsTr("Open")
- }
- MenuItem {
- text: qsTr("Close")
- }
- }
- }
- }
-
- FocusScope {
- id: focusScope
- focus: true
- anchors.fill: parent
-
- Keys.onSpacePressed: focusScopeKeyPressed()
- }
-
- Popup {
- id: focusPopup
- focus: true
- width: parent.width
- height: parent.height
-
- Item {
- focus: true
- Keys.onSpacePressed: focusPopupKeyPressed()
- }
- }
-}
-
diff --git a/tests/auto/qquickapplicationwindow/data/font.qml b/tests/auto/qquickapplicationwindow/data/font.qml
deleted file mode 100644
index 8bde4bf1..00000000
--- a/tests/auto/qquickapplicationwindow/data/font.qml
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-ApplicationWindow {
- objectName: "appWin"
- width: 400
- height: 400
-
- property alias mainItem: mainItem
-
- font.family: "Arial"
-
- T.Control {
- id: mainItem
- objectName: "mainItem"
- anchors.fill: parent
- property alias item_2: _item_2;
- property alias item_3: _item_3;
- property alias item_4: _item_4;
- property alias item_5: _item_5;
- property alias item_6: _item_6;
- T.Control {
- id: _item_2
- objectName: "_item_2"
- T.Control {
- id: _item_3
- objectName: "_item_3"
- }
- }
- T.TextArea {
- id: _item_4
- objectName: "_item_4"
- text: "Text Area"
- }
- T.TextField {
- id: _item_5
- objectName: "_item_5"
- text: "Text Field"
- }
- T.Label {
- id: _item_6
- objectName: "_item_6"
- text: "Label"
- }
- }
-}
diff --git a/tests/auto/qquickapplicationwindow/data/layout.qml b/tests/auto/qquickapplicationwindow/data/layout.qml
deleted file mode 100644
index dc840443..00000000
--- a/tests/auto/qquickapplicationwindow/data/layout.qml
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 200
- height: 200
- visible: true
-
- menuBar: MenuBar { }
- header: ToolBar { }
- footer: ToolBar { }
-}
diff --git a/tests/auto/qquickapplicationwindow/data/locale.qml b/tests/auto/qquickapplicationwindow/data/locale.qml
deleted file mode 100644
index 5efb948f..00000000
--- a/tests/auto/qquickapplicationwindow/data/locale.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-
-ApplicationWindow {
- objectName: "appWin"
- width: 400
- height: 400
-
- property alias mainItem: mainItem
-
- T.Control {
- id: mainItem
- objectName: "mainItem"
- anchors.fill: parent
- property alias item_2: _item_2;
- property alias item_3: _item_3;
- T.Control {
- id: _item_2
- objectName: "_item_2"
- T.Control {
- id: _item_3
- objectName: "_item_3"
- }
- }
- }
-}
diff --git a/tests/auto/qquickapplicationwindow/qquickapplicationwindow.pro b/tests/auto/qquickapplicationwindow/qquickapplicationwindow.pro
deleted file mode 100644
index 775f4c90..00000000
--- a/tests/auto/qquickapplicationwindow/qquickapplicationwindow.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickapplicationwindow
-SOURCES += tst_qquickapplicationwindow.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2-private testlib
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
-
diff --git a/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp b/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp
deleted file mode 100644
index 80124230..00000000
--- a/tests/auto/qquickapplicationwindow/tst_qquickapplicationwindow.cpp
+++ /dev/null
@@ -1,889 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <qtest.h>
-#include <QtTest/QSignalSpy>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQml/qqmlcontext.h>
-#include <QtQuick/qquickview.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickoverlay_p.h>
-#include <QtQuickTemplates2/private/qquickcontrol_p.h>
-#include <QtQuickTemplates2/private/qquicklabel_p.h>
-#include <QtQuickTemplates2/private/qquickmenu_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include <QtQuickTemplates2/private/qquicktextarea_p.h>
-#include <QtQuickTemplates2/private/qquicktextfield_p.h>
-#include <QtQuickTemplates2/private/qquicktheme_p_p.h>
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_QQuickApplicationWindow : public QQmlDataTest
-{
- Q_OBJECT
-public:
-
-private slots:
- void qmlCreation();
- void activeFocusOnTab1();
- void activeFocusOnTab2();
- void defaultFocus();
- void implicitFill();
- void attachedProperties();
- void font();
- void defaultFont();
- void locale();
- void activeFocusControl_data();
- void activeFocusControl();
- void focusAfterPopupClosed();
- void clearFocusOnDestruction();
- void layout();
- void componentComplete();
-};
-
-void tst_QQuickApplicationWindow::qmlCreation()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("basicapplicationwindow.qml"));
- QObject* created = component.create();
- QScopedPointer<QObject> cleanup(created);
- QVERIFY(created);
-
- QQuickWindow* window = qobject_cast<QQuickWindow*>(created);
- QVERIFY(window);
- QVERIFY(!window->isVisible());
-
- QCOMPARE(created->property("title"), QVariant("Test Application Window"));
-
- QQuickItem* statusBar = qvariant_cast<QQuickItem*>(created->property("statusBar"));
- QVERIFY(!statusBar);
-
- QQuickItem* header = qvariant_cast<QQuickItem*>(created->property("header"));
- QVERIFY(!header);
-
- QQuickItem* footer = qvariant_cast<QQuickItem*>(created->property("footer"));
- QVERIFY(!footer);
-}
-
-void tst_QQuickApplicationWindow::activeFocusOnTab1()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("activefocusontab.qml"));
- QObject* created = component.create();
- QScopedPointer<QObject> cleanup(created);
- QVERIFY(created);
-
- QQuickWindow* window = qobject_cast<QQuickWindow*>(created);
- QVERIFY(window);
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
- QVERIFY(QGuiApplication::focusWindow() == window);
-
- QQuickItem* contentItem = window->contentItem();
- QVERIFY(contentItem);
- QVERIFY(contentItem->hasActiveFocus());
-
- QQuickItem* item = findItem<QQuickItem>(window->contentItem(), "sub1");
- QVERIFY(item);
- QVERIFY(!item->hasActiveFocus());
-
- // Tab: contentItem->sub1
- QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
- QGuiApplication::sendEvent(window, &key);
- QVERIFY(key.isAccepted());
-
- item = findItem<QQuickItem>(window->contentItem(), "sub1");
- QVERIFY(item);
- QVERIFY(item->hasActiveFocus());
-
- // Tab: sub1->sub2
- key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
- QGuiApplication::sendEvent(window, &key);
- QVERIFY(key.isAccepted());
-
- item = findItem<QQuickItem>(window->contentItem(), "sub2");
- QVERIFY(item);
- QVERIFY(item->hasActiveFocus());
-
- // Tab: sub2->sub1
- key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier, "", false, 1);
- QGuiApplication::sendEvent(window, &key);
- QVERIFY(key.isAccepted());
-
- item = findItem<QQuickItem>(window->contentItem(), "sub1");
- QVERIFY(item);
- QVERIFY(item->hasActiveFocus());
-}
-
-void tst_QQuickApplicationWindow::activeFocusOnTab2()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("activefocusontab.qml"));
- QObject* created = component.create();
- QScopedPointer<QObject> cleanup(created);
- QVERIFY(created);
-
- QQuickWindow* window = qobject_cast<QQuickWindow*>(created);
- QVERIFY(window);
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
- QVERIFY(QGuiApplication::focusWindow() == window);
-
- QQuickItem* contentItem = window->contentItem();
- QVERIFY(contentItem);
- QVERIFY(contentItem->hasActiveFocus());
-
- QQuickItem* item = findItem<QQuickItem>(window->contentItem(), "sub2");
- QVERIFY(item);
- QVERIFY(!item->hasActiveFocus());
-
- // BackTab: contentItem->sub2
- QKeyEvent key(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
- QGuiApplication::sendEvent(window, &key);
- QVERIFY(key.isAccepted());
-
- item = findItem<QQuickItem>(window->contentItem(), "sub2");
- QVERIFY(item);
- QVERIFY(item->hasActiveFocus());
-
- // BackTab: sub2->sub1
- key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
- QGuiApplication::sendEvent(window, &key);
- QVERIFY(key.isAccepted());
-
- item = findItem<QQuickItem>(window->contentItem(), "sub1");
- QVERIFY(item);
- QVERIFY(item->hasActiveFocus());
-
- // BackTab: sub1->sub2
- key = QKeyEvent(QEvent::KeyPress, Qt::Key_Tab, Qt::ShiftModifier, "", false, 1);
- QGuiApplication::sendEvent(window, &key);
- QVERIFY(key.isAccepted());
-
- item = findItem<QQuickItem>(window->contentItem(), "sub2");
- QVERIFY(item);
- QVERIFY(item->hasActiveFocus());
-}
-
-void tst_QQuickApplicationWindow::defaultFocus()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("defaultFocus.qml"));
- QObject* created = component.create();
- QScopedPointer<QObject> cleanup(created);
- Q_UNUSED(cleanup);
- QVERIFY(created);
-
- QQuickWindow* window = qobject_cast<QQuickWindow*>(created);
- QVERIFY(window);
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
- QVERIFY(QGuiApplication::focusWindow() == window);
-
- QQuickItem* contentItem = window->contentItem();
- QVERIFY(contentItem);
- QVERIFY(contentItem->hasActiveFocus());
-
- // A single item in an ApplicationWindow with focus: true should receive focus.
- QQuickItem* item = findItem<QQuickItem>(window->contentItem(), "item");
- QVERIFY(item);
- QVERIFY(item->hasFocus());
- QVERIFY(item->hasActiveFocus());
-}
-
-void tst_QQuickApplicationWindow::implicitFill()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("fill.qml"));
- QObject* created = component.create();
- QScopedPointer<QObject> cleanup(created);
- QVERIFY(created);
-
- QQuickWindow* window = qobject_cast<QQuickWindow*>(created);
- QVERIFY(window);
- QVERIFY(!window->isVisible());
- QCOMPARE(window->width(), 400);
- QCOMPARE(window->height(), 400);
-
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickItem *stackView = window->property("stackView").value<QQuickItem*>();
- QVERIFY(stackView);
- QCOMPARE(stackView->width(), 400.0);
- QCOMPARE(stackView->height(), 400.0);
-
- QQuickItem *nextItem = window->property("nextItem").value<QQuickItem*>();
- QVERIFY(nextItem);
-
- QVERIFY(QMetaObject::invokeMethod(window, "pushNextItem"));
- QCOMPARE(nextItem->width(), 400.0);
- QCOMPARE(nextItem->height(), 400.0);
-}
-
-void tst_QQuickApplicationWindow::attachedProperties()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("attachedProperties.qml"));
-
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
-
- QQuickApplicationWindow *window = qobject_cast<QQuickApplicationWindow *>(object.data());
- QVERIFY(window);
-
- QQuickItem *childControl = object->property("childControl").value<QQuickItem *>();
- QVERIFY(childControl);
- QCOMPARE(childControl->property("attached_window").value<QQuickApplicationWindow *>(), window);
- QCOMPARE(childControl->property("attached_contentItem").value<QQuickItem *>(), window->contentItem());
- QCOMPARE(childControl->property("attached_activeFocusControl").value<QQuickItem *>(), window->activeFocusControl());
- QCOMPARE(childControl->property("attached_header").value<QQuickItem *>(), window->header());
- QCOMPARE(childControl->property("attached_footer").value<QQuickItem *>(), window->footer());
- QCOMPARE(childControl->property("attached_overlay").value<QQuickItem *>(), window->overlay());
-
- QQuickItem *childItem = object->property("childItem").value<QQuickItem *>();
- QVERIFY(childItem);
- QCOMPARE(childItem->property("attached_window").value<QQuickApplicationWindow *>(), window);
- QCOMPARE(childItem->property("attached_contentItem").value<QQuickItem *>(), window->contentItem());
- QCOMPARE(childItem->property("attached_activeFocusControl").value<QQuickItem *>(), window->activeFocusControl());
- QCOMPARE(childItem->property("attached_header").value<QQuickItem *>(), window->header());
- QCOMPARE(childItem->property("attached_footer").value<QQuickItem *>(), window->footer());
- QCOMPARE(childItem->property("attached_overlay").value<QQuickItem *>(), window->overlay());
-
- QObject *childObject = object->property("childObject").value<QObject *>();
- QVERIFY(childObject);
- QVERIFY(!childObject->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childObject->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childObject->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childObject->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childObject->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childObject->property("attached_overlay").value<QQuickItem *>());
-
- QQuickWindow *childWindow = object->property("childWindow").value<QQuickWindow *>();
- QVERIFY(childWindow);
- QVERIFY(!childWindow->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childWindow->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childWindow->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childWindow->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childWindow->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childWindow->property("attached_overlay").value<QQuickItem *>());
-
- QQuickItem *childWindowControl = object->property("childWindowControl").value<QQuickItem *>();
- QVERIFY(childWindowControl);
- QVERIFY(!childWindowControl->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childWindowControl->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childWindowControl->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childWindowControl->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childWindowControl->property("attached_footer").value<QQuickItem *>());
- QCOMPARE(childWindowControl->property("attached_overlay").value<QQuickItem *>(), QQuickOverlay::overlay(childWindow));
-
- QQuickItem *childWindowItem = object->property("childWindowItem").value<QQuickItem *>();
- QVERIFY(childWindowItem);
- QVERIFY(!childWindowItem->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childWindowItem->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childWindowItem->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childWindowItem->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childWindowItem->property("attached_footer").value<QQuickItem *>());
- QCOMPARE(childWindowItem->property("attached_overlay").value<QQuickItem *>(), QQuickOverlay::overlay(childWindow));
-
- QObject *childWindowObject = object->property("childWindowObject").value<QObject *>();
- QVERIFY(childWindowObject);
- QVERIFY(!childWindowObject->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childWindowObject->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childWindowObject->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childWindowObject->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childWindowObject->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childWindowObject->property("attached_overlay").value<QQuickItem *>());
-
- QQuickApplicationWindow *childAppWindow = object->property("childAppWindow").value<QQuickApplicationWindow *>();
- QVERIFY(childAppWindow);
- QVERIFY(!childAppWindow->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childAppWindow->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childAppWindow->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childAppWindow->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childAppWindow->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childAppWindow->property("attached_overlay").value<QQuickItem *>());
-
- QQuickItem *childAppWindowControl = object->property("childAppWindowControl").value<QQuickItem *>();
- QVERIFY(childAppWindowControl);
- QCOMPARE(childAppWindowControl->property("attached_window").value<QQuickApplicationWindow *>(), childAppWindow);
- QCOMPARE(childAppWindowControl->property("attached_contentItem").value<QQuickItem *>(), childAppWindow->contentItem());
- QCOMPARE(childAppWindowControl->property("attached_activeFocusControl").value<QQuickItem *>(), childAppWindow->activeFocusControl());
- QCOMPARE(childAppWindowControl->property("attached_header").value<QQuickItem *>(), childAppWindow->header());
- QCOMPARE(childAppWindowControl->property("attached_footer").value<QQuickItem *>(), childAppWindow->footer());
- QCOMPARE(childAppWindowControl->property("attached_overlay").value<QQuickItem *>(), childAppWindow->overlay());
-
- QQuickItem *childAppWindowItem = object->property("childAppWindowItem").value<QQuickItem *>();
- QVERIFY(childAppWindowItem);
- QCOMPARE(childAppWindowItem->property("attached_window").value<QQuickApplicationWindow *>(), childAppWindow);
- QCOMPARE(childAppWindowItem->property("attached_contentItem").value<QQuickItem *>(), childAppWindow->contentItem());
- QCOMPARE(childAppWindowItem->property("attached_activeFocusControl").value<QQuickItem *>(), childAppWindow->activeFocusControl());
- QCOMPARE(childAppWindowItem->property("attached_header").value<QQuickItem *>(), childAppWindow->header());
- QCOMPARE(childAppWindowItem->property("attached_footer").value<QQuickItem *>(), childAppWindow->footer());
- QCOMPARE(childAppWindowItem->property("attached_overlay").value<QQuickItem *>(), childAppWindow->overlay());
-
- QObject *childAppWindowObject = object->property("childAppWindowObject").value<QObject *>();
- QVERIFY(childAppWindowObject);
- QVERIFY(!childAppWindowObject->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childAppWindowObject->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childAppWindowObject->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childAppWindowObject->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childAppWindowObject->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childAppWindowObject->property("attached_overlay").value<QQuickItem *>());
-
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QVERIFY(!childControl->hasActiveFocus());
- childControl->forceActiveFocus();
- QTRY_VERIFY(childControl->hasActiveFocus());
- QCOMPARE(window->activeFocusItem(), childControl);
- QCOMPARE(childControl->property("attached_activeFocusControl").value<QQuickItem *>(), childControl);
-
- QQuickItem *header = new QQuickItem;
- window->setHeader(header);
- QCOMPARE(window->header(), header);
- QCOMPARE(childControl->property("attached_header").value<QQuickItem *>(), header);
-
- QQuickItem *footer = new QQuickItem;
- window->setFooter(footer);
- QCOMPARE(window->footer(), footer);
- QCOMPARE(childControl->property("attached_footer").value<QQuickItem *>(), footer);
-
- childAppWindow->show();
- childAppWindow->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(childAppWindow));
-
- QVERIFY(!childAppWindowControl->hasActiveFocus());
- childAppWindowControl->forceActiveFocus();
- QTRY_VERIFY(childAppWindowControl->hasActiveFocus());
- QCOMPARE(childAppWindow->activeFocusItem(), childAppWindowControl);
- QCOMPARE(childAppWindowControl->property("attached_activeFocusControl").value<QQuickItem *>(), childAppWindowControl);
-
- childControl->setParentItem(childAppWindow->contentItem());
- QCOMPARE(childControl->window(), childAppWindow);
- QCOMPARE(childControl->property("attached_window").value<QQuickApplicationWindow *>(), childAppWindow);
- QCOMPARE(childControl->property("attached_contentItem").value<QQuickItem *>(), childAppWindow->contentItem());
- QCOMPARE(childControl->property("attached_activeFocusControl").value<QQuickItem *>(), childAppWindowControl);
- QCOMPARE(childControl->property("attached_header").value<QQuickItem *>(), childAppWindow->header());
- QCOMPARE(childControl->property("attached_footer").value<QQuickItem *>(), childAppWindow->footer());
- QCOMPARE(childControl->property("attached_overlay").value<QQuickItem *>(), childAppWindow->overlay());
-
- childItem->setParentItem(childAppWindow->contentItem());
- QCOMPARE(childItem->window(), childAppWindow);
- QCOMPARE(childItem->property("attached_window").value<QQuickApplicationWindow *>(), childAppWindow);
- QCOMPARE(childItem->property("attached_contentItem").value<QQuickItem *>(), childAppWindow->contentItem());
- QCOMPARE(childItem->property("attached_activeFocusControl").value<QQuickItem *>(), childAppWindowControl);
- QCOMPARE(childItem->property("attached_header").value<QQuickItem *>(), childAppWindow->header());
- QCOMPARE(childItem->property("attached_footer").value<QQuickItem *>(), childAppWindow->footer());
- QCOMPARE(childItem->property("attached_overlay").value<QQuickItem *>(), childAppWindow->overlay());
-
- childControl->setParentItem(nullptr);
- QVERIFY(!childControl->window());
- QVERIFY(!childControl->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childControl->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_overlay").value<QQuickItem *>());
-
- childItem->setParentItem(nullptr);
- QVERIFY(!childItem->window());
- QVERIFY(!childItem->property("attached_window").value<QQuickApplicationWindow *>());
- QVERIFY(!childItem->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childItem->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childItem->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childItem->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childItem->property("attached_overlay").value<QQuickItem *>());
- childAppWindow->close();
- qApp->processEvents();
-
- childWindow->show();
- childWindow->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(childWindow));
-
- QVERIFY(!childWindowControl->hasActiveFocus());
- childWindowControl->forceActiveFocus();
- QTRY_VERIFY(childWindowControl->hasActiveFocus());
- QCOMPARE(childWindow->activeFocusItem(), childWindowControl);
- QCOMPARE(childWindowControl->property("attached_activeFocusControl").value<QQuickItem *>(), childWindowControl);
-
- childControl->setParentItem(childWindow->contentItem());
- QCOMPARE(childControl->window(), childWindow);
- QVERIFY(!childControl->property("attached_window").value<QQuickWindow *>());
- QCOMPARE(childControl->property("attached_activeFocusControl").value<QQuickItem *>(), childWindowControl);
- QVERIFY(!childControl->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_footer").value<QQuickItem *>());
- QCOMPARE(childControl->property("attached_overlay").value<QQuickItem *>(), QQuickOverlay::overlay(childWindow));
-
- childItem->setParentItem(childWindow->contentItem());
- QCOMPARE(childItem->window(), childWindow);
- QVERIFY(!childControl->property("attached_window").value<QQuickWindow *>());
- QCOMPARE(childControl->property("attached_activeFocusControl").value<QQuickItem *>(), childWindowControl);
- QVERIFY(!childControl->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_footer").value<QQuickItem *>());
- QCOMPARE(childControl->property("attached_overlay").value<QQuickItem *>(), QQuickOverlay::overlay(childWindow));
-
- childControl->setParentItem(nullptr);
- QVERIFY(!childControl->window());
- QVERIFY(!childControl->property("attached_window").value<QQuickWindow *>());
- QVERIFY(!childControl->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childControl->property("attached_overlay").value<QQuickItem *>());
-
- childItem->setParentItem(nullptr);
- QVERIFY(!childItem->window());
- QVERIFY(!childItem->property("attached_window").value<QQuickWindow *>());
- QVERIFY(!childItem->property("attached_contentItem").value<QQuickItem *>());
- QVERIFY(!childItem->property("attached_activeFocusControl").value<QQuickItem *>());
- QVERIFY(!childItem->property("attached_header").value<QQuickItem *>());
- QVERIFY(!childItem->property("attached_footer").value<QQuickItem *>());
- QVERIFY(!childItem->property("attached_overlay").value<QQuickItem *>());
- childWindow->close();
-}
-
-void tst_QQuickApplicationWindow::font()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("font.qml"));
- QObject* created = component.create();
- QScopedPointer<QObject> cleanup(created);
- QVERIFY(created);
-
- QQuickApplicationWindow* window = qobject_cast<QQuickApplicationWindow*>(created);
- QVERIFY(window);
- QVERIFY(!window->isVisible());
- QCOMPARE(window->width(), 400);
- QCOMPARE(window->height(), 400);
-
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QFont font = window->font();
-
- QQuickControl *mainItem = window->property("mainItem").value<QQuickControl*>();
- QVERIFY(mainItem);
- QCOMPARE(mainItem->width(), 400.0);
- QCOMPARE(mainItem->height(), 400.0);
- QCOMPARE(mainItem->font(), font);
-
- QQuickControl *item2 = mainItem->property("item_2").value<QQuickControl*>();
- QVERIFY(item2);
- QQuickControl *item3 = mainItem->property("item_3").value<QQuickControl*>();
- QVERIFY(item3);
- QQuickTextArea *item4 = mainItem->property("item_4").value<QQuickTextArea*>();
- QVERIFY(item4);
- QQuickTextField *item5 = mainItem->property("item_5").value<QQuickTextField*>();
- QVERIFY(item5);
- QQuickLabel *item6 = mainItem->property("item_6").value<QQuickLabel*>();
- QVERIFY(item6);
-
- QCOMPARE(item2->font(), font);
- QCOMPARE(item3->font(), font);
- QCOMPARE(item4->font(), font);
- QCOMPARE(item5->font(), font);
- QCOMPARE(item6->font(), font);
-
- int pointSize = font.pointSize();
- font.setPixelSize(pointSize + 5);
- window->setFont(font);
-
- QCOMPARE(window->font(), font);
- QCOMPARE(mainItem->font(), font);
- QCOMPARE(item2->font(), font);
- QCOMPARE(item3->font(), font);
- QCOMPARE(item4->font(), font);
- QCOMPARE(item5->font(), font);
- QCOMPARE(item6->font(), font);
-}
-
-class TestTheme : public QQuickTheme
-{
-public:
- TestTheme()
- {
- setFont(System, QFont("Courier"));
- }
-};
-
-void tst_QQuickApplicationWindow::defaultFont()
-{
- QQuickThemePrivate::instance.reset(new TestTheme);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData("import QtQuick.Controls 2.1; ApplicationWindow { }", QUrl());
-
- QScopedPointer<QQuickApplicationWindow> window;
- window.reset(static_cast<QQuickApplicationWindow *>(component.create()));
- QVERIFY(!window.isNull());
- QCOMPARE(window->font(), QQuickTheme::font(QQuickTheme::System));
-}
-
-void tst_QQuickApplicationWindow::locale()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("locale.qml"));
- QObject* created = component.create();
- QScopedPointer<QObject> cleanup(created);
- QVERIFY(created);
-
- QQuickApplicationWindow* window = qobject_cast<QQuickApplicationWindow*>(created);
- QVERIFY(window);
- QVERIFY(!window->isVisible());
- QCOMPARE(window->width(), 400);
- QCOMPARE(window->height(), 400);
-
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QLocale l = window->locale();
-
- QQuickControl *mainItem = window->property("mainItem").value<QQuickControl*>();
- QVERIFY(mainItem);
- QCOMPARE(mainItem->width(), 400.0);
- QCOMPARE(mainItem->height(), 400.0);
- QCOMPARE(mainItem->locale(), l);
-
- QQuickControl *item2 = mainItem->property("item_2").value<QQuickControl*>();
- QVERIFY(item2);
- QQuickControl *item3 = mainItem->property("item_3").value<QQuickControl*>();
- QVERIFY(item3);
-
- QCOMPARE(item2->locale(), l);
- QCOMPARE(item3->locale(), l);
-
- l = QLocale("en_US");
- window->setLocale(l);
-
- QCOMPARE(window->locale(), l);
- QCOMPARE(mainItem->locale(), l);
- QCOMPARE(item2->locale(), l);
- QCOMPARE(item3->locale(), l);
-
- l = QLocale("ar_EG");
- window->setLocale(l);
-
- QCOMPARE(window->locale(), l);
- QCOMPARE(mainItem->locale(), l);
- QCOMPARE(item2->locale(), l);
- QCOMPARE(item3->locale(), l);
-}
-
-void tst_QQuickApplicationWindow::activeFocusControl_data()
-{
- QTest::addColumn<QByteArray>("containerName");
- QTest::addColumn<QByteArray>("activeFocusItemName");
- QTest::addColumn<QByteArray>("activeFocusControlName");
-
- QTest::newRow("Column:TextInput") << QByteArray("container_column") << QByteArray("textInput_column") << QByteArray();
- QTest::newRow("Column:TextEdit") << QByteArray("container_column") << QByteArray("textEdit_column") << QByteArray();
- QTest::newRow("Column:TextField") << QByteArray("container_column") << QByteArray("textField_column") << QByteArray("textField_column");
- QTest::newRow("Column:TextArea") << QByteArray("container_column") << QByteArray("textArea_column") << QByteArray("textArea_column");
- QTest::newRow("Column:SpinBox") << QByteArray("container_column") << QByteArray("spinContent_column") << QByteArray("spinBox_column");
-
- QTest::newRow("Frame:TextInput") << QByteArray("container_frame") << QByteArray("textInput_frame") << QByteArray("container_frame");
- QTest::newRow("Frame:TextEdit") << QByteArray("container_frame") << QByteArray("textEdit_frame") << QByteArray("container_frame");
- QTest::newRow("Frame:TextField") << QByteArray("container_frame") << QByteArray("textField_frame") << QByteArray("textField_frame");
- QTest::newRow("Frame:TextArea") << QByteArray("container_frame") << QByteArray("textArea_frame") << QByteArray("textArea_frame");
- QTest::newRow("Frame:SpinBox") << QByteArray("container_frame") << QByteArray("spinContent_frame") << QByteArray("spinBox_frame");
-}
-
-void tst_QQuickApplicationWindow::activeFocusControl()
-{
- QFETCH(QByteArray, containerName);
- QFETCH(QByteArray, activeFocusItemName);
- QFETCH(QByteArray, activeFocusControlName);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("activeFocusControl.qml"));
- QScopedPointer<QObject> object(component.create());
- QVERIFY(!object.isNull());
-
- QQuickApplicationWindow* window = qobject_cast<QQuickApplicationWindow*>(object.data());
- QVERIFY(window);
- QVERIFY(!window->isVisible());
- QCOMPARE(window->width(), 400);
- QCOMPARE(window->height(), 400);
-
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickItem *container = window->property(containerName).value<QQuickItem*>();
- QVERIFY(container);
-
- QQuickItem *activeFocusItem = window->property(activeFocusItemName).value<QQuickItem*>();
- QVERIFY(activeFocusItem);
- activeFocusItem->forceActiveFocus();
- QVERIFY(activeFocusItem->hasActiveFocus());
- QCOMPARE(window->activeFocusItem(), activeFocusItem);
-
- QQuickItem *activeFocusControl = window->property(activeFocusControlName).value<QQuickItem*>();
- if (activeFocusControlName.isEmpty()) {
- QVERIFY(!activeFocusControl);
- } else {
- QVERIFY(activeFocusControl);
- QVERIFY(activeFocusControl->hasActiveFocus());
- }
- QCOMPARE(window->activeFocusControl(), activeFocusControl);
-}
-
-void tst_QQuickApplicationWindow::focusAfterPopupClosed()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("focusAfterPopupClosed.qml"));
- QScopedPointer<QQuickWindow> window(qobject_cast<QQuickWindow*>(component.create()));
- QVERIFY(window);
-
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
- QVERIFY(QGuiApplication::focusWindow() == window.data());
-
- QQuickItem* contentItem = window->contentItem();
- QVERIFY(contentItem);
- QVERIFY(contentItem->hasActiveFocus());
-
- QQuickItem* focusScope = window->property("focusScope").value<QQuickItem*>();
- QVERIFY(focusScope);
- QVERIFY(focusScope->hasActiveFocus());
-
- QSignalSpy focusScopeSpy(window.data(), SIGNAL(focusScopeKeyPressed()));
- QTest::keyClick(window.data(), Qt::Key_Space);
- QCOMPARE(focusScopeSpy.count(), 1);
-
- // Open the menu.
- QQuickItem* toolButton = window->property("toolButton").value<QQuickItem*>();
- QVERIFY(toolButton);
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier,
- toolButton->mapFromScene(QPointF(toolButton->width() / 2, toolButton->height() / 2)).toPoint());
- QVERIFY(!focusScope->hasActiveFocus());
-
- // The FocusScope shouldn't receive any key events while the menu is open.
- QTest::keyClick(window.data(), Qt::Key_Space);
- QCOMPARE(focusScopeSpy.count(), 1);
-
- // Close the menu. The FocusScope should regain focus.
- QTest::keyClick(window.data(), Qt::Key_Escape);
- QVERIFY(focusScope->hasActiveFocus());
-
- QTest::keyClick(window.data(), Qt::Key_Space);
- QCOMPARE(focusScopeSpy.count(), 2);
-
- QQuickPopup *focusPopup = window->property("focusPopup").value<QQuickPopup*>();
- QVERIFY(focusPopup);
- QVERIFY(!focusPopup->hasActiveFocus());
-
- focusPopup->open();
- QVERIFY(focusPopup->isVisible());
-
- QSignalSpy focusPopupSpy(window.data(), SIGNAL(focusPopupKeyPressed()));
- QTest::keyClick(window.data(), Qt::Key_Space);
- QCOMPARE(focusPopupSpy.count(), 1);
-
- QQuickMenu *fileMenu = window->property("fileMenu").value<QQuickMenu*>();
- QVERIFY(fileMenu);
- fileMenu->open();
- QVERIFY(fileMenu->isVisible());
-
- // The Popup shouldn't receive any key events while the menu is open.
- QTest::keyClick(window.data(), Qt::Key_Space);
- QCOMPARE(focusPopupSpy.count(), 1);
-
- // Close the menu. The Popup should regain focus.
- QTest::keyClick(window.data(), Qt::Key_Escape);
- QVERIFY(focusPopup->hasActiveFocus());
-
- QTest::keyClick(window.data(), Qt::Key_Space);
- QCOMPARE(focusPopupSpy.count(), 2);
-
- // Close the popup. The FocusScope should regain focus.
- QTest::keyClick(window.data(), Qt::Key_Escape);
- QVERIFY(focusScope->hasActiveFocus());
-
- QTest::keyClick(window.data(), Qt::Key_Space);
- QCOMPARE(focusScopeSpy.count(), 3);
-}
-
-void tst_QQuickApplicationWindow::clearFocusOnDestruction()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("clearfocusondestruction.qml"));
- QScopedPointer<QQuickWindow> window(qobject_cast<QQuickWindow*>(component.create()));
- QVERIFY(window);
-
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
- QVERIFY(QGuiApplication::focusWindow() == window.data());
-
- QQuickItem* contentItem = window->contentItem();
- QVERIFY(contentItem);
- QVERIFY(contentItem->hasActiveFocus());
-
- QQuickItem* focusScope = window->property("textfield").value<QQuickItem*>();
- QVERIFY(focusScope);
- QVERIFY(focusScope->hasActiveFocus());
-
- QSignalSpy spy(window.data(), SIGNAL(activeFocusControlChanged()));
- // destroy the window, do not crash
- window.reset();
-
- /*
- QQuickWindow::activeFocusItemChanged() is emitted inconsistently and
- only for certain use cases. Ideally it should be emitted whenever a
- QQuickWindow with a focus item is destroyed, but it doesn't... It might
- also be favorable to not emit it for performance reason.
-
- However, activeFocusControlChanged() is emitted more consistently, which
- of course makes it inconsistent with the emission of
- activeFocusItemChanged()....
-
- Therefore, if you have good reasons to change the behavior (and not emit
- it) take the test below with a grain of salt.
- */
- QCOMPARE(spy.count(), 1);
-}
-
-void tst_QQuickApplicationWindow::layout()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("layout.qml"));
- QScopedPointer<QObject> object(component.create());
- QVERIFY(!object.isNull());
-
- QQuickApplicationWindow* window = qobject_cast<QQuickApplicationWindow*>(object.data());
- QVERIFY(window);
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickItem *content = window->contentItem();
- QVERIFY(content);
- QQuickItem *menuBar = window->menuBar();
- QVERIFY(menuBar);
- QQuickItem *header = window->header();
- QVERIFY(header);
- QQuickItem *footer = window->footer();
- QVERIFY(footer);
-
- QCOMPARE(menuBar->x(), 0.0);
- QCOMPARE(menuBar->y(), -menuBar->height() - header->height());
- QCOMPARE(header->width(), qreal(window->width()));
- QVERIFY(menuBar->height() > 0);
-
- QCOMPARE(header->x(), 0.0);
- QCOMPARE(header->y(), -header->height());
- QCOMPARE(header->width(), qreal(window->width()));
- QVERIFY(header->height() > 0);
-
- QCOMPARE(footer->x(), 0.0);
- QCOMPARE(footer->y(), content->height());
- QCOMPARE(footer->width(), qreal(window->width()));
- QVERIFY(footer->height() > 0.0);
-
- QCOMPARE(content->x(), 0.0);
- QCOMPARE(content->y(), menuBar->height() + header->height());
- QCOMPARE(content->width(), qreal(window->width()));
- QCOMPARE(content->height(), window->height() - menuBar->height() - header->height() - footer->height());
-
- menuBar->setVisible(false);
- QCOMPARE(content->x(), 0.0);
- QCOMPARE(content->y(), header->height());
- QCOMPARE(content->width(), qreal(window->width()));
- QCOMPARE(content->height(), window->height() - header->height() - footer->height());
-
- header->setVisible(false);
- QCOMPARE(content->x(), 0.0);
- QCOMPARE(content->y(), 0.0);
- QCOMPARE(content->width(), qreal(window->width()));
- QCOMPARE(content->height(), window->height() - footer->height());
-
- footer->setVisible(false);
- QCOMPARE(content->x(), 0.0);
- QCOMPARE(content->y(), 0.0);
- QCOMPARE(content->width(), qreal(window->width()));
- QCOMPARE(content->height(), qreal(window->height()));
-}
-
-class FriendlyApplicationWindow : public QQuickApplicationWindow
-{
- friend class tst_QQuickApplicationWindow;
-};
-
-void tst_QQuickApplicationWindow::componentComplete()
-{
- FriendlyApplicationWindow cppWindow;
- QVERIFY(cppWindow.isComponentComplete());
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData("import QtQuick.Controls 2.2; ApplicationWindow { }", QUrl());
-
- FriendlyApplicationWindow *qmlWindow = static_cast<FriendlyApplicationWindow *>(component.beginCreate(engine.rootContext()));
- QVERIFY(qmlWindow);
- QVERIFY(!qmlWindow->isComponentComplete());
-
- component.completeCreate();
- QVERIFY(qmlWindow->isComponentComplete());
-}
-
-QTEST_MAIN(tst_QQuickApplicationWindow)
-
-#include "tst_qquickapplicationwindow.moc"
diff --git a/tests/auto/qquickcolor/data/tst_color.qml b/tests/auto/qquickcolor/data/tst_color.qml
deleted file mode 100644
index e3083514..00000000
--- a/tests/auto/qquickcolor/data/tst_color.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-TestCase {
- id: testCase
- name: "Color"
-
- function test_transparent() {
- compare(Color.transparent("red", 0.2), Qt.rgba(1, 0, 0, 0.2))
- compare(Color.transparent(Qt.rgba(0, 1, 0, 1), 0.2), Qt.rgba(0, 1, 0, 0.2))
- compare(Color.transparent("#0000ff", 0.2), Qt.rgba(0, 0, 1, 0.2))
- }
-}
diff --git a/tests/auto/qquickcolor/qquickcolor.pro b/tests/auto/qquickcolor/qquickcolor.pro
deleted file mode 100644
index af562df1..00000000
--- a/tests/auto/qquickcolor/qquickcolor.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = app
-TARGET = tst_qquickcolor
-CONFIG += qmltestcase
-
-SOURCES += \
- $$PWD/tst_qquickcolor.cpp
-
-OTHER_FILES += \
- $$PWD/data/*.qml
-
-TESTDATA += \
- $$PWD/data/tst_*
diff --git a/tests/auto/qquickcolor/tst_qquickcolor.cpp b/tests/auto/qquickcolor/tst_qquickcolor.cpp
deleted file mode 100644
index 94c60080..00000000
--- a/tests/auto/qquickcolor/tst_qquickcolor.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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_qquickcolor)
diff --git a/tests/auto/qquickdrawer/data/applicationwindow-button.qml b/tests/auto/qquickdrawer/data/applicationwindow-button.qml
deleted file mode 100644
index 8e1047b5..00000000
--- a/tests/auto/qquickdrawer/data/applicationwindow-button.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias drawer: drawer
-
- Drawer {
- id: drawer
- width: 200
- height: 200
-
- Button {
- text: "Button"
- anchors.fill: parent
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/applicationwindow-hover.qml b/tests/auto/qquickdrawer/data/applicationwindow-hover.qml
deleted file mode 100644
index 3de06805..00000000
--- a/tests/auto/qquickdrawer/data/applicationwindow-hover.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias backgroundButton: backgroundButton
- property alias drawerButton: drawerButton
-
- Button {
- id: backgroundButton
- text: "Background"
- anchors.fill: parent
- }
-
- Drawer {
- id: drawer
- width: 100
- height: 400
- topPadding: 2
- leftPadding: 2
- rightPadding: 2
- bottomPadding: 2
-
- contentItem: Button {
- id: drawerButton
- text: "Drawer"
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/applicationwindow-wheel.qml b/tests/auto/qquickdrawer/data/applicationwindow-wheel.qml
deleted file mode 100644
index 5042f44f..00000000
--- a/tests/auto/qquickdrawer/data/applicationwindow-wheel.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias drawerSlider: drawerSlider
- property alias contentSlider: contentSlider
-
- Slider {
- id: contentSlider
- anchors.fill: parent
- wheelEnabled: true
- }
-
- Drawer {
- id: drawer
- edge: Qt.RightEdge
- width: window.width * 0.8
- height: window.height
- clip: true
- contentItem: Slider {
- id: drawerSlider
- wheelEnabled: true
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/applicationwindow.qml b/tests/auto/qquickdrawer/data/applicationwindow.qml
deleted file mode 100644
index 01b8ff77..00000000
--- a/tests/auto/qquickdrawer/data/applicationwindow.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias drawer: drawer
-
- Drawer {
- id: drawer
- width: 200
- height: 200
- }
-}
diff --git a/tests/auto/qquickdrawer/data/dragOverModalShadow.qml b/tests/auto/qquickdrawer/data/dragOverModalShadow.qml
deleted file mode 100644
index 7354b6b9..00000000
--- a/tests/auto/qquickdrawer/data/dragOverModalShadow.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias popup: popup
-
- Drawer {
- id: drawer
- width: 200
- height: parent.height
- dragMargin: parent.width
- }
-
- Popup {
- id: popup
- modal: true
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- width: parent.width / 2
- height: parent.height / 2
-
- Rectangle {
- objectName: "shadow"
- parent: popup.background
- anchors.fill: parent
- anchors.margins: -20
-
- z: -1
- opacity: 0.5
- color: "silver"
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/flickable.qml b/tests/auto/qquickdrawer/data/flickable.qml
deleted file mode 100644
index 4afef66b..00000000
--- a/tests/auto/qquickdrawer/data/flickable.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias flickable: flickable
-
- Drawer {
- id: drawer
- width: 300
- height: 400
-
- contentItem: ListView {
- id: flickable
- model: 100
- delegate: ItemDelegate {
- width: parent.width
- text: index
- }
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/grabber.qml b/tests/auto/qquickdrawer/data/grabber.qml
deleted file mode 100644
index 1f9bbcbb..00000000
--- a/tests/auto/qquickdrawer/data/grabber.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias popup: popup
-
- Drawer {
- id: drawer
- width: 200
- height: parent.height
- }
-
- Popup {
- id: popup
- x: 200
- width: 200
- height: parent.height
- }
-}
diff --git a/tests/auto/qquickdrawer/data/header.qml b/tests/auto/qquickdrawer/data/header.qml
deleted file mode 100644
index af84cf9b..00000000
--- a/tests/auto/qquickdrawer/data/header.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias button: button
-
- header: ToolBar {
- ToolButton {
- id: button
- text: "="
- }
- }
-
- Drawer {
- id: drawer
- width: 200
- height: parent.height
- }
-}
diff --git a/tests/auto/qquickdrawer/data/multiTouch.qml b/tests/auto/qquickdrawer/data/multiTouch.qml
deleted file mode 100644
index 57135e5f..00000000
--- a/tests/auto/qquickdrawer/data/multiTouch.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias popup: popup
- property alias button: button
-
- Drawer {
- id: drawer
- width: window.width / 2
- height: parent.height
- dragMargin: parent.width
- }
-
- Popup {
- id: popup
- x: 10; y: 10
- width: window.width - 10
- height: window.height - 10
-
- Button {
- id: button
- text: "Button"
- anchors.fill: parent
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/multiple.qml b/tests/auto/qquickdrawer/data/multiple.qml
deleted file mode 100644
index d629e3d0..00000000
--- a/tests/auto/qquickdrawer/data/multiple.qml
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias leftDrawer: leftDrawer
- property alias leftButton: leftButton
-
- property alias rightDrawer: rightDrawer
- property alias rightButton: rightButton
-
- property alias contentButton: contentButton
-
- Drawer {
- id: leftDrawer
- width: 300
- height: 400
- z: 1
-
- contentItem: Button {
- id: leftButton
- text: "Left"
- }
- }
-
- Button {
- id: contentButton
- text: "Content"
- anchors.fill: parent
- }
-
- Drawer {
- id: rightDrawer
- width: 300
- height: 400
- edge: Qt.RightEdge
-
- contentItem: Button {
- id: rightButton
- text: "Right"
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/reposition.qml b/tests/auto/qquickdrawer/data/reposition.qml
deleted file mode 100644
index 841e0b77..00000000
--- a/tests/auto/qquickdrawer/data/reposition.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias drawer2: drawer2
-
- header: Item { implicitHeight: 50 }
- footer: Item { implicitHeight: 50 }
-
- Drawer {
- id: drawer
- width: parent.width / 2
- implicitHeight: parent.height
- }
-
- Drawer {
- id: drawer2
- width: Math.min(window.width, window.height) / 3 * 2
- height: window.height
- }
-}
diff --git a/tests/auto/qquickdrawer/data/slider.qml b/tests/auto/qquickdrawer/data/slider.qml
deleted file mode 100644
index 391a79f0..00000000
--- a/tests/auto/qquickdrawer/data/slider.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias slider: slider
-
- Drawer {
- id: drawer
- width: 300
- height: 400
- position: 1.0
- visible: true
-
- Slider {
- id: slider
- value: 1
- width: parent.width
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/topEdgeScreenEdge.qml b/tests/auto/qquickdrawer/data/topEdgeScreenEdge.qml
deleted file mode 100644
index 02b5a10f..00000000
--- a/tests/auto/qquickdrawer/data/topEdgeScreenEdge.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.5
-
-ApplicationWindow {
- id: window
- width: 400
- height: 400
-
- property alias drawer: drawer
-
- header: Rectangle {
- color: "red"
- height: 40
- }
-
- Drawer {
- id: drawer
- width: window.width
- height: window.height * 0.2
- parent: window.contentItem
- edge: Qt.TopEdge
-
- Label {
- anchors.centerIn: parent
- text: "a drawer"
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/window-button.qml b/tests/auto/qquickdrawer/data/window-button.qml
deleted file mode 100644
index 975d50db..00000000
--- a/tests/auto/qquickdrawer/data/window-button.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- width: 400
- height: 400
-
- property alias drawer: drawer
-
- Drawer {
- id: drawer
- width: 200
- height: 200
-
- Button {
- text: "Button"
- anchors.fill: parent
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/window-hover.qml b/tests/auto/qquickdrawer/data/window-hover.qml
deleted file mode 100644
index 8360d7ce..00000000
--- a/tests/auto/qquickdrawer/data/window-hover.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias backgroundButton: backgroundButton
- property alias drawerButton: drawerButton
-
- Button {
- id: backgroundButton
- text: "Background"
- anchors.fill: parent
- }
-
- Drawer {
- id: drawer
- width: 100
- height: 400
- topPadding: 2
- leftPadding: 2
- rightPadding: 2
- bottomPadding: 2
-
- contentItem: Button {
- id: drawerButton
- text: "Drawer"
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/window-wheel.qml b/tests/auto/qquickdrawer/data/window-wheel.qml
deleted file mode 100644
index f313f368..00000000
--- a/tests/auto/qquickdrawer/data/window-wheel.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- id: window
- width: 400
- height: 400
-
- property alias drawer: drawer
- property alias drawerSlider: drawerSlider
- property alias contentSlider: contentSlider
-
- Slider {
- id: contentSlider
- anchors.fill: parent
- wheelEnabled: true
- }
-
- Drawer {
- id: drawer
- edge: Qt.RightEdge
- width: window.width * 0.8
- height: window.height
- clip: true
- contentItem: Slider {
- id: drawerSlider
- wheelEnabled: true
- }
- }
-}
diff --git a/tests/auto/qquickdrawer/data/window.qml b/tests/auto/qquickdrawer/data/window.qml
deleted file mode 100644
index 578d3e9f..00000000
--- a/tests/auto/qquickdrawer/data/window.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- width: 400
- height: 400
-
- property alias drawer: drawer
-
- Drawer {
- id: drawer
- width: 200
- height: 200
- }
-}
diff --git a/tests/auto/qquickdrawer/qquickdrawer.pro b/tests/auto/qquickdrawer/qquickdrawer.pro
deleted file mode 100644
index 9df205e6..00000000
--- a/tests/auto/qquickdrawer/qquickdrawer.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickdrawer
-SOURCES += tst_qquickdrawer.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
diff --git a/tests/auto/qquickdrawer/tst_qquickdrawer.cpp b/tests/auto/qquickdrawer/tst_qquickdrawer.cpp
deleted file mode 100644
index 7644cacf..00000000
--- a/tests/auto/qquickdrawer/tst_qquickdrawer.cpp
+++ /dev/null
@@ -1,1341 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include <QtTest/qsignalspy.h>
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-#include "../shared/qtest_quickcontrols.h"
-
-#include <QtGui/qstylehints.h>
-#include <QtGui/qtouchdevice.h>
-#include <QtGui/qguiapplication.h>
-#include <QtGui/qpa/qwindowsysteminterface.h>
-#include <QtQuick/private/qquickwindow_p.h>
-#include <QtQuick/private/qquickflickable_p.h>
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickoverlay_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p_p.h>
-#include <QtQuickTemplates2/private/qquickdrawer_p.h>
-#include <QtQuickTemplates2/private/qquickbutton_p.h>
-#include <QtQuickTemplates2/private/qquickslider_p.h>
-
-using namespace QQuickVisualTestUtil;
-
-class tst_QQuickDrawer : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void defaults();
- void invalidEdge();
-
- void visible_data();
- void visible();
-
- void state();
-
- void position_data();
- void position();
-
- void dragMargin_data();
- void dragMargin();
-
- void reposition();
- void header();
-
- void hover_data();
- void hover();
-
- void wheel_data();
- void wheel();
-
- void multiple();
-
- void touch_data();
- void touch();
-
- void multiTouch();
-
- void grabber();
-
- void interactive_data();
- void interactive();
-
- void flickable_data();
- void flickable();
-
- void dragOverModalShadow_data();
- void dragOverModalShadow();
-
- void nonModal_data();
- void nonModal();
-
- void slider_data();
- void slider();
-
- void topEdgeScreenEdge();
-
-private:
- struct TouchDeviceDeleter
- {
- static inline void cleanup(QTouchDevice *device)
- {
- QWindowSystemInterface::unregisterTouchDevice(device);
- delete device;
- }
- };
-
- QScopedPointer<QTouchDevice, TouchDeviceDeleter> touchDevice;
-};
-
-
-void tst_QQuickDrawer::initTestCase()
-{
- QQmlDataTest::initTestCase();
- qputenv("QML_NO_TOUCH_COMPRESSION", "1");
-
- touchDevice.reset(new QTouchDevice);
- touchDevice->setType(QTouchDevice::TouchScreen);
- QWindowSystemInterface::registerTouchDevice(touchDevice.data());
-}
-
-void tst_QQuickDrawer::defaults()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("window.qml"));
-
- QScopedPointer<QObject> root(component.create());
- QVERIFY2(!root.isNull(), qPrintable(component.errorString()));
-
- QQuickDrawer *drawer = root->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
- QCOMPARE(drawer->edge(), Qt::LeftEdge);
- QCOMPARE(drawer->position(), 0.0);
- QCOMPARE(drawer->dragMargin(), qGuiApp->styleHints()->startDragDistance());
-}
-
-void tst_QQuickDrawer::invalidEdge()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.loadUrl(testFileUrl("window.qml"));
-
- QScopedPointer<QObject> root(component.create());
- QVERIFY2(!root.isNull(), qPrintable(component.errorString()));
-
- QQuickDrawer *drawer = root->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
-
- // Test an invalid value - it should warn and ignore it.
- QTest::ignoreMessage(QtWarningMsg, qUtf8Printable(testFileUrl("window.qml").toString() + ":61:5: QML Drawer: invalid edge value - valid values are: Qt.TopEdge, Qt.LeftEdge, Qt.RightEdge, Qt.BottomEdge"));
- drawer->setEdge(static_cast<Qt::Edge>(QQuickDrawer::Right));
- QCOMPARE(drawer->edge(), Qt::LeftEdge);
-}
-
-void tst_QQuickDrawer::visible_data()
-{
- QTest::addColumn<QString>("source");
- QTest::newRow("Window") << "window.qml";
- QTest::newRow("ApplicationWindow") << "applicationwindow.qml";
-}
-
-void tst_QQuickDrawer::visible()
-{
- QFETCH(QString, source);
- QQuickApplicationHelper helper(this, source);
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
- QQuickItem *popupItem = drawer->popupItem();
-
- QCOMPARE(drawer->isVisible(), false);
- QCOMPARE(drawer->position(), qreal(0.0));
-
- QQuickOverlay *overlay = QQuickOverlay::overlay(window);
- QVERIFY(overlay);
- QVERIFY(!overlay->childItems().contains(popupItem));
-
- drawer->open();
- QVERIFY(drawer->isVisible());
- QVERIFY(overlay->childItems().contains(popupItem));
- QTRY_COMPARE(drawer->position(), qreal(1.0));
-
- drawer->close();
- QTRY_VERIFY(!drawer->isVisible());
- QTRY_COMPARE(drawer->position(), qreal(0.0));
- QVERIFY(!overlay->childItems().contains(popupItem));
-
- drawer->setVisible(true);
- QVERIFY(drawer->isVisible());
- QVERIFY(overlay->childItems().contains(popupItem));
- QTRY_COMPARE(drawer->position(), qreal(1.0));
-
- drawer->setVisible(false);
- QTRY_VERIFY(!drawer->isVisible());
- QTRY_COMPARE(drawer->position(), qreal(0.0));
- QTRY_VERIFY(!overlay->childItems().contains(popupItem));
-}
-
-void tst_QQuickDrawer::state()
-{
- QQuickApplicationHelper helper(this, "applicationwindow.qml");
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
-
- QCOMPARE(drawer->isVisible(), false);
-
- QSignalSpy visibleChangedSpy(drawer, SIGNAL(visibleChanged()));
- QSignalSpy aboutToShowSpy(drawer, SIGNAL(aboutToShow()));
- QSignalSpy aboutToHideSpy(drawer, SIGNAL(aboutToHide()));
- QSignalSpy openedSpy(drawer, SIGNAL(opened()));
- QSignalSpy closedSpy(drawer, SIGNAL(closed()));
-
- QVERIFY(visibleChangedSpy.isValid());
- QVERIFY(aboutToShowSpy.isValid());
- QVERIFY(aboutToHideSpy.isValid());
- QVERIFY(openedSpy.isValid());
- QVERIFY(closedSpy.isValid());
-
- int visibleChangedCount = 0;
- int aboutToShowCount = 0;
- int aboutToHideCount = 0;
- int openedCount = 0;
- int closedCount = 0;
-
- // open programmatically...
- drawer->open();
- QCOMPARE(visibleChangedSpy.count(), ++visibleChangedCount);
- QCOMPARE(aboutToShowSpy.count(), ++aboutToShowCount);
- QCOMPARE(aboutToHideSpy.count(), aboutToHideCount);
- QCOMPARE(openedSpy.count(), openedCount);
- QCOMPARE(closedSpy.count(), closedCount);
-
- // ...and wait until fully open
- QVERIFY(openedSpy.wait());
- QCOMPARE(visibleChangedSpy.count(), visibleChangedCount);
- QCOMPARE(aboutToShowSpy.count(), aboutToShowCount);
- QCOMPARE(aboutToHideSpy.count(), aboutToHideCount);
- QCOMPARE(openedSpy.count(), ++openedCount);
- QCOMPARE(closedSpy.count(), closedCount);
-
- // close programmatically...
- drawer->close();
- QCOMPARE(visibleChangedSpy.count(), visibleChangedCount);
- QCOMPARE(aboutToShowSpy.count(), aboutToShowCount);
- QCOMPARE(aboutToHideSpy.count(), ++aboutToHideCount);
- QCOMPARE(openedSpy.count(), openedCount);
- QCOMPARE(closedSpy.count(), closedCount);
-
- // ...and wait until fully closed
- QVERIFY(closedSpy.wait());
- QCOMPARE(visibleChangedSpy.count(), ++visibleChangedCount);
- QCOMPARE(aboutToShowSpy.count(), aboutToShowCount);
- QCOMPARE(aboutToHideSpy.count(), aboutToHideCount);
- QCOMPARE(openedSpy.count(), openedCount);
- QCOMPARE(closedSpy.count(), ++closedCount);
-
- // open interactively...
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(0, drawer->height() / 2));
- QTest::mouseMove(window, QPoint(drawer->width() * 0.2, drawer->height() / 2), 16);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(drawer->width() * 0.8, drawer->height() / 2), 16);
- QCOMPARE(visibleChangedSpy.count(), ++visibleChangedCount);
- QCOMPARE(aboutToShowSpy.count(), ++aboutToShowCount);
- QCOMPARE(aboutToHideSpy.count(), aboutToHideCount);
- QCOMPARE(openedSpy.count(), openedCount);
- QCOMPARE(closedSpy.count(), closedCount);
-
- // ...and wait until fully open
- QVERIFY(openedSpy.wait());
- QCOMPARE(visibleChangedSpy.count(), visibleChangedCount);
- QCOMPARE(aboutToShowSpy.count(), aboutToShowCount);
- QCOMPARE(aboutToHideSpy.count(), aboutToHideCount);
- QCOMPARE(openedSpy.count(), ++openedCount);
- QCOMPARE(closedSpy.count(), closedCount);
-
- // close interactively...
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(drawer->width(), drawer->height() / 2));
- QTest::mouseMove(window, QPoint(drawer->width() * 0.8, drawer->height() / 2), 16);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(drawer->width() * 0.2, drawer->height() / 2), 16);
- QCOMPARE(visibleChangedSpy.count(), visibleChangedCount);
- QCOMPARE(aboutToShowSpy.count(), aboutToShowCount);
- QCOMPARE(aboutToHideSpy.count(), ++aboutToHideCount);
- QCOMPARE(openedSpy.count(), openedCount);
- QCOMPARE(closedSpy.count(), closedCount);
-
- // ...and wait until fully closed
- QVERIFY(closedSpy.wait());
- QCOMPARE(visibleChangedSpy.count(), ++visibleChangedCount);
- QCOMPARE(aboutToShowSpy.count(), aboutToShowCount);
- QCOMPARE(aboutToHideSpy.count(), aboutToHideCount);
- QCOMPARE(openedSpy.count(), openedCount);
- QCOMPARE(closedSpy.count(), ++closedCount);
-}
-
-void tst_QQuickDrawer::position_data()
-{
- QTest::addColumn<Qt::Edge>("edge");
- QTest::addColumn<QPoint>("press");
- QTest::addColumn<QPoint>("from");
- QTest::addColumn<QPoint>("to");
- QTest::addColumn<qreal>("position");
-
- QTest::newRow("top") << Qt::TopEdge << QPoint(100, 0) << QPoint(100, 50) << QPoint(100, 150) << qreal(0.5);
- QTest::newRow("left") << Qt::LeftEdge << QPoint(0, 100) << QPoint(50, 100) << QPoint(150, 100) << qreal(0.5);
- QTest::newRow("right") << Qt::RightEdge << QPoint(399, 100) << QPoint(350, 100) << QPoint(250, 100) << qreal(0.5);
- QTest::newRow("bottom") << Qt::BottomEdge << QPoint(100, 399) << QPoint(100, 350) << QPoint(150, 250) << qreal(0.5);
-}
-
-void tst_QQuickDrawer::position()
-{
- QFETCH(Qt::Edge, edge);
- QFETCH(QPoint, press);
- QFETCH(QPoint, from);
- QFETCH(QPoint, to);
- QFETCH(qreal, position);
-
- QQuickApplicationHelper helper(this, QStringLiteral("applicationwindow.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickDrawer *drawer = helper.appWindow->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
- drawer->setEdge(edge);
-
- // Give it some time (50 ms) before the press to avoid flakiness on OpenSUSE: QTBUG-77946
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, press, 50);
- QTest::mouseMove(window, from);
- QTest::mouseMove(window, to);
- QCOMPARE(drawer->position(), position);
-
- // moved half-way open at almost infinite speed => snap to open
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, to);
- QTRY_COMPARE(drawer->position(), 1.0);
-}
-
-void tst_QQuickDrawer::dragMargin_data()
-{
- QTest::addColumn<Qt::Edge>("edge");
- QTest::addColumn<qreal>("dragMargin");
- QTest::addColumn<qreal>("dragFromLeft");
- QTest::addColumn<qreal>("dragFromRight");
-
- QTest::newRow("left:0") << Qt::LeftEdge << qreal(0) << qreal(0) << qreal(0);
- QTest::newRow("left:-1") << Qt::LeftEdge << qreal(-1) << qreal(0) << qreal(0);
- QTest::newRow("left:startDragDistance") << Qt::LeftEdge << qreal(QGuiApplication::styleHints()->startDragDistance()) << qreal(0.45) << qreal(0);
- QTest::newRow("left:startDragDistance*2") << Qt::LeftEdge << qreal(QGuiApplication::styleHints()->startDragDistance() * 2) << qreal(0.45) << qreal(0);
-
- QTest::newRow("right:0") << Qt::RightEdge << qreal(0) << qreal(0) << qreal(0);
- QTest::newRow("right:-1") << Qt::RightEdge << qreal(-1) << qreal(0) << qreal(0);
- QTest::newRow("right:startDragDistance") << Qt::RightEdge << qreal(QGuiApplication::styleHints()->startDragDistance()) << qreal(0) << qreal(0.75);
- QTest::newRow("right:startDragDistance*2") << Qt::RightEdge << qreal(QGuiApplication::styleHints()->startDragDistance() * 2) << qreal(0) << qreal(0.75);
-}
-
-void tst_QQuickDrawer::dragMargin()
-{
- QFETCH(Qt::Edge, edge);
- QFETCH(qreal, dragMargin);
- QFETCH(qreal, dragFromLeft);
- QFETCH(qreal, dragFromRight);
-
- QQuickApplicationHelper helper(this, QStringLiteral("applicationwindow.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickDrawer *drawer = helper.appWindow->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
- drawer->setEdge(edge);
- drawer->setDragMargin(dragMargin);
-
- const int startDragDistance = qMax(20, QGuiApplication::styleHints()->startDragDistance() + 5) + 1;
-
- // drag from the left
- int leftX = qMax<int>(0, dragMargin);
- int leftDistance = startDragDistance + drawer->width() * 0.45;
- QVERIFY(leftDistance > QGuiApplication::styleHints()->startDragDistance());
- // Give it some time (50 ms) before the press to avoid flakiness on OpenSUSE: QTBUG-77946
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(leftX, drawer->height() / 2), 50);
- QTest::mouseMove(window, QPoint(leftX + startDragDistance, drawer->height() / 2));
- QTest::mouseMove(window, QPoint(leftX + leftDistance, drawer->height() / 2));
- QCOMPARE(drawer->position(), dragFromLeft);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(leftX + leftDistance, drawer->height() / 2));
-
- drawer->close();
- QTRY_COMPARE(drawer->position(), qreal(0.0));
-
- // drag from the right
- int rightX = qMin<int>(window->width() - 1, window->width() - dragMargin);
- int rightDistance = startDragDistance + drawer->width() * 0.75;
- QVERIFY(rightDistance > QGuiApplication::styleHints()->startDragDistance());
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(rightX, drawer->height() / 2));
- QTest::mouseMove(window, QPoint(rightX - startDragDistance, drawer->height() / 2));
- QTest::mouseMove(window, QPoint(rightX - rightDistance, drawer->height() / 2));
- QCOMPARE(drawer->position(), dragFromRight);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(rightX - rightDistance, drawer->height() / 2));
-}
-
-static QRectF geometry(const QQuickItem *item)
-{
- return QRectF(item->x(), item->y(), item->width(), item->height());
-}
-
-void tst_QQuickDrawer::reposition()
-{
- QQuickApplicationHelper helper(this, QStringLiteral("reposition.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
- QQuickItem *popupItem = drawer->popupItem();
- QVERIFY(popupItem);
-
- drawer->open();
- QQuickItem *dimmer = QQuickPopupPrivate::get(drawer)->dimmer;
- QVERIFY(dimmer);
-
- QCOMPARE(geometry(dimmer), QRectF(0, 0, window->width(), window->height()));
- QTRY_COMPARE(geometry(popupItem), QRectF(0, 0, window->width() / 2, window->height()));
-
- drawer->setY(100);
- QCOMPARE(geometry(dimmer), QRectF(0, 100, window->width(), window->height() - 100));
- QCOMPARE(geometry(popupItem), QRectF(0, 100, window->width() / 2, window->height() - 100));
-
- drawer->setHeight(window->height());
- QCOMPARE(geometry(dimmer), QRectF(0, 100, window->width(), window->height()));
- QCOMPARE(geometry(popupItem), QRectF(0, 100, window->width() / 2, window->height()));
-
- drawer->resetHeight();
- QCOMPARE(geometry(dimmer), QRectF(0, 100, window->width(), window->height() - 100));
- QCOMPARE(geometry(popupItem), QRectF(0, 100, window->width() / 2, window->height() - 100));
-
- drawer->setParentItem(window->contentItem());
- QCOMPARE(geometry(dimmer), QRectF(0, 150, window->width(), window->height() - 150));
- QCOMPARE(geometry(popupItem), QRectF(0, 150, window->width() / 2, window->height() - 150));
-
- drawer->setEdge(Qt::RightEdge);
- QCOMPARE(geometry(dimmer), QRectF(0, 150, window->width(), window->height() - 150));
- QTRY_COMPARE(geometry(popupItem), QRectF(window->width() - drawer->width(), 150, window->width() / 2, window->height() - 150));
-
- window->setWidth(window->width() + 100);
- QTRY_COMPARE(geometry(dimmer), QRectF(0, 150, window->width(), window->height() - 150));
- QTRY_COMPARE(geometry(popupItem), QRectF(window->width() - drawer->width(), 150, window->width() / 2, window->height() - 150));
-
- drawer->close();
- QTRY_COMPARE(geometry(popupItem), QRectF(window->width(), 150, window->width() / 2, window->height() - 150));
-
- QQuickDrawer *drawer2 = window->property("drawer2").value<QQuickDrawer *>();
- QVERIFY(drawer2);
- QQuickItem *popupItem2 = drawer2->popupItem();
- QVERIFY(popupItem2);
-
- drawer2->open();
- QVERIFY(popupItem2->isVisible());
- QCOMPARE(popupItem2->x(), -drawer2->width());
- QTRY_COMPARE(popupItem2->x(), 0.0);
-}
-
-void tst_QQuickDrawer::header()
-{
- QQuickApplicationHelper helper(this, QStringLiteral("header.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickItem *content = window->contentItem();
- QVERIFY(content);
-
- QQuickOverlay *overlay = QQuickOverlay::overlay(window);
- QVERIFY(overlay);
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
- QQuickItem *popupItem = drawer->popupItem();
-
- QQuickButton *button = window->property("button").value<QQuickButton*>();
- QVERIFY(button);
-
- drawer->open();
- QVERIFY(drawer->isVisible());
-
- QCOMPARE(drawer->parentItem(), overlay);
- QCOMPARE(drawer->height(), overlay->height());
- QCOMPARE(popupItem->height(), overlay->height());
-
- drawer->setParentItem(content);
- QCOMPARE(drawer->parentItem(), content);
- QCOMPARE(drawer->height(), content->height());
- QCOMPARE(popupItem->height(), content->height());
-
- // must be possible to interact with the header when the drawer is below the header
- QSignalSpy clickSpy(button, SIGNAL(clicked()));
- QVERIFY(clickSpy.isValid());
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(button->x() + button->width() / 2, button->y() + button->height() / 2));
- QCOMPARE(clickSpy.count(), 1);
-}
-
-void tst_QQuickDrawer::hover_data()
-{
- QTest::addColumn<QString>("source");
- QTest::addColumn<bool>("modal");
-
- QTest::newRow("Window:modal") << "window-hover.qml" << true;
- QTest::newRow("Window:modeless") << "window-hover.qml" << false;
- QTest::newRow("ApplicationWindow:modal") << "applicationwindow-hover.qml" << true;
- QTest::newRow("ApplicationWindow:modeless") << "applicationwindow-hover.qml" << false;
-}
-
-void tst_QQuickDrawer::hover()
-{
- QFETCH(QString, source);
- QFETCH(bool, modal);
-
- QQuickApplicationHelper helper(this, source);
- QQuickWindow *window = helper.window;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
- drawer->setModal(modal);
-
- QQuickControl *drawerItem = qobject_cast<QQuickControl *>(drawer->popupItem());
- QVERIFY(drawerItem);
- QVERIFY(drawerItem->isHoverEnabled());
-
- QQuickButton *backgroundButton = window->property("backgroundButton").value<QQuickButton*>();
- QVERIFY(backgroundButton);
- backgroundButton->setHoverEnabled(true);
-
- QQuickButton *drawerButton = window->property("drawerButton").value<QQuickButton*>();
- QVERIFY(drawerButton);
- drawerButton->setHoverEnabled(true);
-
- QSignalSpy openedSpy(drawer, SIGNAL(opened()));
- QVERIFY(openedSpy.isValid());
- drawer->open();
- QVERIFY(openedSpy.count() == 1 || openedSpy.wait());
-
- // hover the background button outside the drawer
- QTest::mouseMove(window, QPoint(window->width() - 1, window->height() - 1));
- QCOMPARE(backgroundButton->isHovered(), !modal);
- QVERIFY(!drawerButton->isHovered());
- QVERIFY(!drawerItem->isHovered());
-
- // hover the drawer background
- QTest::mouseMove(window, QPoint(1, 1));
- QVERIFY(!backgroundButton->isHovered());
- QVERIFY(!drawerButton->isHovered());
- QVERIFY(drawerItem->isHovered());
-
- // hover the button in a drawer
- QTest::mouseMove(window, QPoint(2, 2));
- QVERIFY(!backgroundButton->isHovered());
- QVERIFY(drawerButton->isHovered());
- QVERIFY(drawerItem->isHovered());
-
- QSignalSpy closedSpy(drawer, SIGNAL(closed()));
- QVERIFY(closedSpy.isValid());
- drawer->close();
- QVERIFY(closedSpy.count() == 1 || closedSpy.wait());
-
- // hover the background button after closing the drawer
- QTest::mouseMove(window, QPoint(window->width() / 2, window->height() / 2));
- QVERIFY(backgroundButton->isHovered());
- QVERIFY(!drawerButton->isHovered());
- QVERIFY(!drawerItem->isHovered());
-}
-
-void tst_QQuickDrawer::wheel_data()
-{
- QTest::addColumn<QString>("source");
- QTest::addColumn<bool>("modal");
-
- QTest::newRow("Window:modal") << "window-wheel.qml" << true;
- QTest::newRow("Window:modeless") << "window-wheel.qml" << false;
- QTest::newRow("ApplicationWindow:modal") << "applicationwindow-wheel.qml" << true;
- QTest::newRow("ApplicationWindow:modeless") << "applicationwindow-wheel.qml" << false;
-}
-
-static bool sendWheelEvent(QQuickItem *item, const QPoint &localPos, int degrees)
-{
- QQuickWindow *window = item->window();
- QWheelEvent wheelEvent(localPos, item->window()->mapToGlobal(localPos), QPoint(0, 0),
- QPoint(0, 8 * degrees), Qt::NoButton, Qt::NoModifier, Qt::NoScrollPhase,
- false);
- QSpontaneKeyEvent::setSpontaneous(&wheelEvent);
- return qGuiApp->notify(window, &wheelEvent);
-}
-
-void tst_QQuickDrawer::wheel()
-{
- QFETCH(QString, source);
- QFETCH(bool, modal);
-
- QQuickApplicationHelper helper(this, source);
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickSlider *contentSlider = window->property("contentSlider").value<QQuickSlider*>();
- QVERIFY(contentSlider);
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer && drawer->contentItem());
- drawer->setModal(modal);
-
- QQuickSlider *drawerSlider = window->property("drawerSlider").value<QQuickSlider*>();
- QVERIFY(drawerSlider);
-
- {
- // wheel over the content
- qreal oldContentValue = contentSlider->value();
- qreal oldDrawerValue = drawerSlider->value();
-
- QVERIFY(sendWheelEvent(contentSlider, QPoint(contentSlider->width() / 2, contentSlider->height() / 2), 15));
-
- QVERIFY(!qFuzzyCompare(contentSlider->value(), oldContentValue)); // must have moved
- QVERIFY(qFuzzyCompare(drawerSlider->value(), oldDrawerValue)); // must not have moved
- }
-
- QSignalSpy openedSpy(drawer, SIGNAL(opened()));
- QVERIFY(openedSpy.isValid());
- drawer->open();
- QVERIFY(openedSpy.count() == 1 || openedSpy.wait());
-
- {
- // wheel over the drawer content
- qreal oldContentValue = contentSlider->value();
- qreal oldDrawerValue = drawerSlider->value();
-
- QVERIFY(sendWheelEvent(drawerSlider, QPoint(drawerSlider->width() / 2, drawerSlider->height() / 2), 15));
-
- QVERIFY(qFuzzyCompare(contentSlider->value(), oldContentValue)); // must not have moved
- QVERIFY(!qFuzzyCompare(drawerSlider->value(), oldDrawerValue)); // must have moved
- }
-
- {
- // wheel over the overlay
- qreal oldContentValue = contentSlider->value();
- qreal oldDrawerValue = drawerSlider->value();
-
- QVERIFY(sendWheelEvent(QQuickOverlay::overlay(window), QPoint(0, 0), 15));
-
- if (modal) {
- // the content below a modal overlay must not move
- QVERIFY(qFuzzyCompare(contentSlider->value(), oldContentValue));
- } else {
- // the content below a modeless overlay must move
- QVERIFY(!qFuzzyCompare(contentSlider->value(), oldContentValue));
- }
- QVERIFY(qFuzzyCompare(drawerSlider->value(), oldDrawerValue)); // must not have moved
- }
-}
-
-void tst_QQuickDrawer::multiple()
-{
- QQuickApplicationHelper helper(this, QStringLiteral("multiple.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickDrawer *leftDrawer = window->property("leftDrawer").value<QQuickDrawer*>();
- QVERIFY(leftDrawer);
- QQuickButton *leftButton = window->property("leftButton").value<QQuickButton*>();
- QVERIFY(leftButton);
- QSignalSpy leftClickSpy(leftButton, SIGNAL(clicked()));
- QVERIFY(leftClickSpy.isValid());
-
- QQuickDrawer *rightDrawer = window->property("rightDrawer").value<QQuickDrawer*>();
- QVERIFY(rightDrawer);
- QQuickButton *rightButton = window->property("rightButton").value<QQuickButton*>();
- QVERIFY(rightButton);
- QSignalSpy rightClickSpy(rightButton, SIGNAL(clicked()));
- QVERIFY(rightClickSpy.isValid());
-
- QQuickButton *contentButton = window->property("contentButton").value<QQuickButton*>();
- QVERIFY(contentButton);
- QSignalSpy contentClickSpy(contentButton, SIGNAL(clicked()));
- QVERIFY(contentClickSpy.isValid());
-
- // no drawers open, click the content
- QTest::mouseClick(window, Qt::LeftButton);
- QCOMPARE(contentClickSpy.count(), 1);
- QCOMPARE(leftClickSpy.count(), 0);
- QCOMPARE(rightClickSpy.count(), 0);
-
- // drag the left drawer open
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(0, window->height() / 2));
- QTest::mouseMove(window, QPoint(leftDrawer->width() / 4, window->height() / 2));
- QTest::mouseMove(window, QPoint(leftDrawer->width() / 4 * 3, window->height() / 2));
- QCOMPARE(leftDrawer->position(), 0.5);
- QCOMPARE(rightDrawer->position(), 0.0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(leftDrawer->width() / 2, window->height() / 2));
- QTRY_COMPARE(leftDrawer->position(), 1.0);
- QCOMPARE(rightDrawer->position(), 0.0);
-
- // cannot drag the right drawer while the left drawer is open
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - 1, window->height() / 2));
- QTest::mouseMove(window, QPoint(window->width() - leftDrawer->width() / 2, window->height() / 2));
- QCOMPARE(leftDrawer->position(), 1.0);
- QCOMPARE(rightDrawer->position(), 0.0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - leftDrawer->width() / 2, window->height() / 2));
- QCOMPARE(rightDrawer->position(), 0.0);
- QCOMPARE(leftDrawer->position(), 1.0);
-
- // open the right drawer below the left drawer
- rightDrawer->open();
- QTRY_COMPARE(rightDrawer->position(), 1.0);
-
- // click the left drawer's button
- QTest::mouseClick(window, Qt::LeftButton);
- QCOMPARE(contentClickSpy.count(), 1);
- QCOMPARE(leftClickSpy.count(), 1);
- QCOMPARE(rightClickSpy.count(), 0);
-
- // click the left drawer's background (button disabled, don't leak through to the right drawer below)
- leftButton->setEnabled(false);
- QTest::mouseClick(window, Qt::LeftButton);
- QCOMPARE(contentClickSpy.count(), 1);
- QCOMPARE(leftClickSpy.count(), 1);
- QCOMPARE(rightClickSpy.count(), 0);
- leftButton->setEnabled(true);
-
- // click the overlay of the left drawer (don't leak through to right drawer below)
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - (window->width() - leftDrawer->width()) / 2, window->height() / 2));
- QCOMPARE(contentClickSpy.count(), 1);
- QCOMPARE(leftClickSpy.count(), 1);
- QCOMPARE(rightClickSpy.count(), 0);
- QTRY_VERIFY(!leftDrawer->isVisible());
-
- // click the right drawer's button
- QTest::mouseClick(window, Qt::LeftButton);
- QCOMPARE(contentClickSpy.count(), 1);
- QCOMPARE(leftClickSpy.count(), 1);
- QCOMPARE(rightClickSpy.count(), 1);
-
- // cannot drag the left drawer while the right drawer is open
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(0, window->height() / 2));
- QTest::mouseMove(window, QPoint(leftDrawer->width() / 2, window->height() / 2));
- QCOMPARE(leftDrawer->position(), 0.0);
- QCOMPARE(rightDrawer->position(), 1.0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(leftDrawer->width() / 2, window->height() / 2));
- QCOMPARE(leftDrawer->position(), 0.0);
- QCOMPARE(rightDrawer->position(), 1.0);
-
- // click the right drawer's background (button disabled, don't leak through to the content below)
- rightButton->setEnabled(false);
- QTest::mouseClick(window, Qt::LeftButton);
- QCOMPARE(contentClickSpy.count(), 1);
- QCOMPARE(leftClickSpy.count(), 1);
- QCOMPARE(rightClickSpy.count(), 1);
- rightButton->setEnabled(true);
-
- // click the overlay of the right drawer (don't leak through to the content below)
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint((window->width() - rightDrawer->width()) / 2, window->height() / 2));
- QCOMPARE(contentClickSpy.count(), 1);
- QCOMPARE(leftClickSpy.count(), 1);
- QCOMPARE(rightClickSpy.count(), 1);
- QTRY_VERIFY(!rightDrawer->isVisible());
-
- // no drawers open, click the content
- QTest::mouseClick(window, Qt::LeftButton);
- QCOMPARE(contentClickSpy.count(), 2);
- QCOMPARE(leftClickSpy.count(), 1);
- QCOMPARE(rightClickSpy.count(), 1);
-
- // drag the right drawer open
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - 1, window->height() / 2));
- QTest::mouseMove(window, QPoint(window->width() - rightDrawer->width() / 4, window->height() / 2));
- QTest::mouseMove(window, QPoint(window->width() - rightDrawer->width() / 4 * 3, window->height() / 2));
- QCOMPARE(rightDrawer->position(), 0.5);
- QCOMPARE(leftDrawer->position(), 0.0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - rightDrawer->width() / 2, window->height() / 2));
- QTRY_COMPARE(rightDrawer->position(), 1.0);
- QCOMPARE(leftDrawer->position(), 0.0);
-}
-
-void tst_QQuickDrawer::touch_data()
-{
- QTest::addColumn<QString>("source");
- QTest::addColumn<QPoint>("from");
- QTest::addColumn<QPoint>("to");
-
- QTest::newRow("Window:inside") << "window.qml" << QPoint(150, 100) << QPoint(50, 100);
- QTest::newRow("Window:outside") << "window.qml" << QPoint(300, 100) << QPoint(100, 100);
- QTest::newRow("ApplicationWindow:inside") << "applicationwindow.qml" << QPoint(150, 100) << QPoint(50, 100);
- QTest::newRow("ApplicationWindow:outside") << "applicationwindow.qml" << QPoint(300, 100) << QPoint(100, 100);
-
- QTest::newRow("Window+Button:inside") << "window-button.qml" << QPoint(150, 100) << QPoint(50, 100);
- QTest::newRow("Window+Button:outside") << "window-button.qml" << QPoint(300, 100) << QPoint(100, 100);
- QTest::newRow("ApplicationWindow+Button:inside") << "applicationwindow-button.qml" << QPoint(150, 100) << QPoint(50, 100);
- QTest::newRow("ApplicationWindow+Button:outside") << "applicationwindow-button.qml" << QPoint(300, 100) << QPoint(100, 100);
-}
-
-void tst_QQuickDrawer::touch()
-{
- QFETCH(QString, source);
- QFETCH(QPoint, from);
- QFETCH(QPoint, to);
-
- QQuickApplicationHelper helper(this, source);
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
-
- QSignalSpy drawerOpenedSpy(drawer, SIGNAL(opened()));
- QSignalSpy drawerClosedSpy(drawer, SIGNAL(closed()));
- QVERIFY(drawerOpenedSpy.isValid());
- QVERIFY(drawerClosedSpy.isValid());
-
- // drag to open
- QTest::touchEvent(window, touchDevice.data()).press(0, QPoint(0, 100));
- QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(50, 100));
- QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(150, 100));
- QTest::touchEvent(window, touchDevice.data()).release(0, QPoint(150, 100));
- QVERIFY(drawerOpenedSpy.wait());
- QCOMPARE(drawer->position(), 1.0);
-
- // drag to close
- QTest::touchEvent(window, touchDevice.data()).press(0, from);
- for (int x = from.x(); x > to.x(); x -= 10)
- QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(x, to.y()));
- QTest::touchEvent(window, touchDevice.data()).move(0, to);
- QTest::touchEvent(window, touchDevice.data()).release(0, to);
- QVERIFY(drawerClosedSpy.wait());
- QCOMPARE(drawer->position(), 0.0);
-}
-
-void tst_QQuickDrawer::multiTouch()
-{
- QQuickApplicationHelper helper(this, QStringLiteral("multiTouch.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickOverlay *overlay = QQuickOverlay::overlay(window);
- QVERIFY(overlay);
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup *>();
- QVERIFY(popup);
-
- QQuickButton *button = window->property("button").value<QQuickButton *>();
- QVERIFY(button);
-
- QSignalSpy overlayPressedSpy(overlay, SIGNAL(pressed()));
- QSignalSpy overlayReleasedSpy(overlay, SIGNAL(released()));
- QVERIFY(overlayPressedSpy.isValid());
- QVERIFY(overlayReleasedSpy.isValid());
-
- QSignalSpy drawerOpenedSpy(drawer, SIGNAL(opened()));
- QVERIFY(drawerOpenedSpy.isValid());
-
- QSignalSpy buttonPressedSpy(button, SIGNAL(pressed()));
- QSignalSpy buttonReleasedSpy(button, SIGNAL(released()));
- QVERIFY(buttonPressedSpy.isValid());
- QVERIFY(buttonReleasedSpy.isValid());
-
- popup->open();
- QVERIFY(popup->isVisible());
-
- drawer->open();
- QVERIFY(drawer->isVisible());
- QVERIFY(drawerOpenedSpy.wait());
-
- // 1st press
- QTest::touchEvent(window, touchDevice.data()).press(0, QPoint(300, 100));
- QVERIFY(popup->isVisible());
- QVERIFY(drawer->isVisible());
- QCOMPARE(buttonPressedSpy.count(), 0);
- QCOMPARE(overlayPressedSpy.count(), 1);
-
- // 2nd press (blocked & ignored)
- QTest::touchEvent(window, touchDevice.data()).stationary(0).press(1, QPoint(300, 200));
- QVERIFY(popup->isVisible());
- QVERIFY(drawer->isVisible());
- QCOMPARE(buttonPressedSpy.count(), 0);
- QCOMPARE(overlayPressedSpy.count(), 2);
-
- // 2nd release (blocked & ignored)
- QTest::touchEvent(window, touchDevice.data()).stationary(0).release(1, QPoint(300, 200));
- QVERIFY(popup->isVisible());
- QVERIFY(drawer->isVisible());
- QCOMPARE(buttonPressedSpy.count(), 0);
- QCOMPARE(buttonReleasedSpy.count(), 0);
- QCOMPARE(overlayPressedSpy.count(), 2);
- QCOMPARE(overlayReleasedSpy.count(), 1);
-
- // 1st release
- QTest::touchEvent(window, touchDevice.data()).release(0, QPoint(300, 100));
- QVERIFY(popup->isVisible());
- QTRY_VERIFY(!drawer->isVisible());
- QCOMPARE(buttonPressedSpy.count(), 0);
- QCOMPARE(buttonReleasedSpy.count(), 0);
- QCOMPARE(overlayPressedSpy.count(), 2);
- QCOMPARE(overlayReleasedSpy.count(), 2);
-
- drawer->open();
- QVERIFY(drawer->isVisible());
- QVERIFY(drawerOpenedSpy.wait());
-
- // 1st drag
- QTest::touchEvent(window, touchDevice.data()).press(0, QPoint(300, 100));
- QCOMPARE(buttonPressedSpy.count(), 0);
- QCOMPARE(overlayPressedSpy.count(), 3);
- for (int x = 300; x >= 100; x -= 10) {
- QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(x, 100));
- QVERIFY(popup->isVisible());
- QVERIFY(drawer->isVisible());
- }
- QCOMPARE(drawer->position(), 0.5);
-
- // 2nd drag (blocked & ignored)
- QTest::touchEvent(window, touchDevice.data()).stationary(0).press(1, QPoint(300, 200));
- QCOMPARE(buttonPressedSpy.count(), 0);
- QCOMPARE(overlayPressedSpy.count(), 4);
- for (int x = 300; x >= 0; x -= 10) {
- QTest::touchEvent(window, touchDevice.data()).stationary(0).move(1, QPoint(x, 200));
- QVERIFY(popup->isVisible());
- QVERIFY(drawer->isVisible());
- }
- QCOMPARE(drawer->position(), 0.5);
-
- // 2nd release (blocked & ignored)
- QTest::touchEvent(window, touchDevice.data()).stationary(0).release(1, QPoint(300, 0));
- QVERIFY(popup->isVisible());
- QVERIFY(drawer->isVisible());
- QCOMPARE(drawer->position(), 0.5);
- QCOMPARE(buttonReleasedSpy.count(), 0);
- QCOMPARE(overlayReleasedSpy.count(), 3);
-
- // 1st release
- QTest::touchEvent(window, touchDevice.data()).release(0, QPoint(300, 100));
- QVERIFY(popup->isVisible());
- QTRY_VERIFY(!drawer->isVisible());
- QCOMPARE(buttonReleasedSpy.count(), 0);
- QCOMPARE(overlayReleasedSpy.count(), 4);
-}
-
-void tst_QQuickDrawer::grabber()
-{
- QQuickApplicationHelper helper(this, QStringLiteral("grabber.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
-
- QSignalSpy drawerOpenedSpy(drawer, SIGNAL(opened()));
- QSignalSpy drawerClosedSpy(drawer, SIGNAL(closed()));
- QVERIFY(drawerOpenedSpy.isValid());
- QVERIFY(drawerClosedSpy.isValid());
-
- drawer->open();
- QVERIFY(drawerOpenedSpy.wait());
-
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(300, 100));
- QVERIFY(drawerClosedSpy.wait());
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup *>();
- QVERIFY(popup);
-
- QSignalSpy popupOpenedSpy(popup, SIGNAL(opened()));
- QSignalSpy popupClosedSpy(popup, SIGNAL(closed()));
- QVERIFY(popupOpenedSpy.isValid());
- QVERIFY(popupClosedSpy.isValid());
-
- popup->open();
- QTRY_COMPARE(popupOpenedSpy.count(), 1);
-
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(100, 300));
- QTRY_COMPARE(popupClosedSpy.count(), 1);
-}
-
-void tst_QQuickDrawer::interactive_data()
-{
- QTest::addColumn<QString>("source");
- QTest::newRow("Window") << "window.qml";
- QTest::newRow("ApplicationWindow") << "applicationwindow.qml";
-}
-
-void tst_QQuickDrawer::interactive()
-{
- QFETCH(QString, source);
- QQuickApplicationHelper helper(this, source);
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer*>();
- QVERIFY(drawer);
-
- drawer->setInteractive(false);
-
- QSignalSpy openedSpy(drawer, SIGNAL(opened()));
- QSignalSpy aboutToHideSpy(drawer, SIGNAL(aboutToHide()));
- QVERIFY(openedSpy.isValid());
- QVERIFY(aboutToHideSpy.isValid());
-
- drawer->open();
- QVERIFY(openedSpy.wait());
-
- // click outside
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(300, 100));
- QCOMPARE(aboutToHideSpy.count(), 0);
-
- // drag inside
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(drawer->width(), 0));
- QTest::mouseMove(window, QPoint(0, 0));
- QCOMPARE(drawer->position(), 1.0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(0, 0));
- QCOMPARE(drawer->position(), 1.0);
- QCOMPARE(aboutToHideSpy.count(), 0);
-
- // drag outside
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - 1, 0));
- QTest::mouseMove(window, QPoint(0, 0));
- QCOMPARE(drawer->position(), 1.0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(0, 0));
- QCOMPARE(drawer->position(), 1.0);
- QCOMPARE(aboutToHideSpy.count(), 0);
-
- // close on escape
- QTest::keyClick(window, Qt::Key_Escape);
- QCOMPARE(aboutToHideSpy.count(), 0);
-}
-
-void tst_QQuickDrawer::flickable_data()
-{
- QTest::addColumn<bool>("mouse");
- QTest::addColumn<QPoint>("from");
- QTest::addColumn<QPoint>("to");
-
- QTest::newRow("mouse,straight") << true << QPoint(200, 200) << QPoint(200, 100);
- QTest::newRow("mouse,diagonal") << true << QPoint(200, 200) << QPoint(250, 100);
- QTest::newRow("touch,straight") << false << QPoint(200, 200) << QPoint(200, 100);
- QTest::newRow("touch,diagonal") << false << QPoint(200, 200) << QPoint(250, 100);
-}
-
-void tst_QQuickDrawer::flickable()
-{
- QFETCH(bool, mouse);
- QFETCH(QPoint, from);
- QFETCH(QPoint, to);
-
- QQuickApplicationHelper helper(this, QStringLiteral("flickable.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
-
- QQuickFlickable *flickable = window->property("flickable").value<QQuickFlickable *>();
- QVERIFY(flickable);
-
- QSignalSpy drawerOpenedSpy(drawer, SIGNAL(opened()));
- QVERIFY(drawerOpenedSpy.isValid());
-
- drawer->open();
- QVERIFY(drawerOpenedSpy.wait());
-
- if (mouse)
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, from);
- else
- QTest::touchEvent(window, touchDevice.data()).press(0, from);
-
- static const int steps = 10;
- for (int i = 0; i < steps; ++i) {
- int x = i * qAbs(from.x() - to.x()) / steps;
- int y = i * qAbs(from.y() - to.y()) / steps;
-
- if (mouse)
- QTest::mouseMove(window, QPoint(x, y));
- else
- QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(x, y));
- QTest::qWait(1); // avoid infinite velocity
- }
-
- QVERIFY(flickable->isDragging());
-
- if (mouse)
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, to);
- else
- QTest::touchEvent(window, touchDevice.data()).release(0, to);
-
- QVERIFY(!flickable->isDragging());
-}
-
-void tst_QQuickDrawer::dragOverModalShadow_data()
-{
- QTest::addColumn<bool>("mouse");
- QTest::newRow("mouse") << true;
- QTest::newRow("touch") << false;
-}
-
-// QTBUG-60602
-void tst_QQuickDrawer::dragOverModalShadow()
-{
- QFETCH(bool, mouse);
-
- QQuickApplicationHelper helper(this, QStringLiteral("dragOverModalShadow.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup *>();
- QVERIFY(popup);
-
- popup->open();
- QVERIFY(popup->isVisible());
- QVERIFY(!drawer->isVisible());
-
- const QPoint from(popup->x(), popup->y() + popup->height() + 5);
- const QPoint to(popup->x() + popup->width(), popup->y() + popup->height() + 5);
-
- if (mouse)
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, from);
- else
- QTest::touchEvent(window, touchDevice.data()).press(0, from);
- QVERIFY(!drawer->isVisible());
-
- static const int steps = 10;
- for (int i = 0; i < steps; ++i) {
- int x = from.x() + i * qAbs(from.x() - to.x()) / steps;
- int y = from.y() + i * qAbs(from.y() - to.y()) / steps;
-
- if (mouse)
- QTest::mouseMove(window, QPoint(x, y));
- else
- QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(x, y));
- QTest::qWait(1); // avoid infinite velocity
- QVERIFY(!drawer->isVisible());
- }
-
- if (mouse)
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, to);
- else
- QTest::touchEvent(window, touchDevice.data()).release(0, to);
- QVERIFY(!drawer->isVisible());
-}
-
-void tst_QQuickDrawer::nonModal_data()
-{
- QTest::addColumn<bool>("mouse");
- QTest::newRow("mouse") << true;
- QTest::newRow("touch") << false;
-}
-
-// QTBUG-59652
-void tst_QQuickDrawer::nonModal()
-{
- QFETCH(bool, mouse);
-
- QQuickApplicationHelper helper(this, QStringLiteral("window.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
- drawer->setModal(false);
-
- const QPoint from(1, 1);
- const QPoint to(150, 1);
-
- // drag to open
- QSignalSpy openedSpy(drawer, SIGNAL(opened()));
- QVERIFY(openedSpy.isValid());
-
- if (mouse)
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, from);
- else
- QTest::touchEvent(window, touchDevice.data()).press(0, from);
-
- static const int steps = 10;
- for (int i = 0; i < steps; ++i) {
- int x = i * qAbs(from.x() - to.x()) / steps;
- int y = i * qAbs(from.y() - to.y()) / steps;
-
- if (mouse)
- QTest::mouseMove(window, QPoint(x, y));
- else
- QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(x, y));
- QTest::qWait(1); // avoid infinite velocity
- }
- QVERIFY(drawer->isVisible());
-
- if (mouse)
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, to);
- else
- QTest::touchEvent(window, touchDevice.data()).release(0, to);
- QVERIFY(openedSpy.wait());
-
- // drag to close
- QSignalSpy closedSpy(drawer, SIGNAL(closed()));
- QVERIFY(closedSpy.isValid());
-
- if (mouse)
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, to);
- else
- QTest::touchEvent(window, touchDevice.data()).press(0, to);
-
- for (int i = steps - 1; i >= 0; --i) {
- int x = i * qAbs(from.x() - to.x()) / steps;
- int y = i * qAbs(from.y() - to.y()) / steps;
-
- if (mouse)
- QTest::mouseMove(window, QPoint(x, y));
- else
- QTest::touchEvent(window, touchDevice.data()).move(0, QPoint(x, y));
- QTest::qWait(1); // avoid infinite velocity
- }
- QVERIFY(drawer->isVisible());
-
- if (mouse)
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, from);
- else
- QTest::touchEvent(window, touchDevice.data()).release(0, from);
- QVERIFY(closedSpy.wait());
-}
-
-void tst_QQuickDrawer::slider_data()
-{
- QTest::addColumn<bool>("mouse");
- QTest::addColumn<int>("delta");
-
- QTest::newRow("mouse") << true << 2;
- QTest::newRow("touch") << false << 2;
- QTest::newRow("mouse,delta") << true << 296 / 8;
-}
-
-void tst_QQuickDrawer::slider()
-{
- QFETCH(bool, mouse);
- QFETCH(int, delta);
-
- QQuickApplicationHelper helper(this, QStringLiteral("slider.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
-
- QQuickSlider *slider = window->property("slider").value<QQuickSlider *>();
- QVERIFY(slider);
-
- QCOMPARE(slider->value(), 1.0);
- QCOMPARE(drawer->position(), 1.0);
-
- const qreal y = slider->height() / 2;
- const QPoint from(slider->width() - 1, y);
- const QPoint to(1, y);
-
- if (mouse)
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, from);
- else
- QTest::touchEvent(window, touchDevice.data()).press(0, from);
-
- int distance = qAbs(from.x() - to.x());
- for (int dx = delta; dx <= distance; dx += delta) {
- if (mouse)
- QTest::mouseMove(window, from - QPoint(dx, 0));
- else
- QTest::touchEvent(window, touchDevice.data()).move(0, from - QPoint(dx, 0));
- QTest::qWait(1); // avoid infinite velocity
- }
-
- QCOMPARE(slider->value(), 0.0);
- QCOMPARE(drawer->position(), 1.0);
-
- if (mouse)
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, to);
- else
- QTest::touchEvent(window, touchDevice.data()).release(0, to);
-}
-
-void tst_QQuickDrawer::topEdgeScreenEdge()
-{
- QQuickApplicationHelper helper(this, QStringLiteral("topEdgeScreenEdge.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickDrawer *drawer = window->property("drawer").value<QQuickDrawer *>();
- QVERIFY(drawer);
-
- QVERIFY(QMetaObject::invokeMethod(drawer, "open"));
- QTRY_COMPARE(drawer->position(), 1.0);
-}
-
-QTEST_QUICKCONTROLS_MAIN(tst_QQuickDrawer)
-
-#include "tst_qquickdrawer.moc"
diff --git a/tests/auto/qquickiconimage/data/alignment.qml b/tests/auto/qquickiconimage/data/alignment.qml
deleted file mode 100644
index 4e5ac6e7..00000000
--- a/tests/auto/qquickiconimage/data/alignment.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Row {
- width: 200
- height: 200
-
- IconImage {
- name: "appointment-new"
- sourceSize: Qt.size(22, 22)
- }
- Image {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- }
-}
diff --git a/tests/auto/qquickiconimage/data/color.qml b/tests/auto/qquickiconimage/data/color.qml
deleted file mode 100644
index b5d40d70..00000000
--- a/tests/auto/qquickiconimage/data/color.qml
+++ /dev/null
@@ -1,18 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Row {
- width: 200
- height: 200
-
- IconImage {
- source: "qrc:/icons/testtheme/22x22/actions/color-test-original.png"
- sourceSize: Qt.size(22, 22)
- color: "red"
- }
- Image {
- source: "qrc:/icons/testtheme/22x22/actions/color-test-tinted.png"
- fillMode: Image.Pad
- }
-}
diff --git a/tests/auto/qquickiconimage/data/fileSelectors.qml b/tests/auto/qquickiconimage/data/fileSelectors.qml
deleted file mode 100644
index 4e5ac6e7..00000000
--- a/tests/auto/qquickiconimage/data/fileSelectors.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Row {
- width: 200
- height: 200
-
- IconImage {
- name: "appointment-new"
- sourceSize: Qt.size(22, 22)
- }
- Image {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- }
-}
diff --git a/tests/auto/qquickiconimage/data/imageProvider.qml b/tests/auto/qquickiconimage/data/imageProvider.qml
deleted file mode 100644
index cf03ac7e..00000000
--- a/tests/auto/qquickiconimage/data/imageProvider.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Templates 2.12 as T
-
-IconLabel {
- icon.color: "transparent"
- icon.source: "image://provider/red"
-}
diff --git a/tests/auto/qquickiconimage/data/nameBindingNoSizes.qml b/tests/auto/qquickiconimage/data/nameBindingNoSizes.qml
deleted file mode 100644
index d0ea13c2..00000000
--- a/tests/auto/qquickiconimage/data/nameBindingNoSizes.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-IconImage {
- name: "appointment-new"
-}
diff --git a/tests/auto/qquickiconimage/data/nameBindingSourceSize.qml b/tests/auto/qquickiconimage/data/nameBindingSourceSize.qml
deleted file mode 100644
index 4e5ac6e7..00000000
--- a/tests/auto/qquickiconimage/data/nameBindingSourceSize.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Row {
- width: 200
- height: 200
-
- IconImage {
- name: "appointment-new"
- sourceSize: Qt.size(22, 22)
- }
- Image {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- }
-}
diff --git a/tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml b/tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml
deleted file mode 100644
index db6697d0..00000000
--- a/tests/auto/qquickiconimage/data/nameBindingSourceSizeWidthHeight.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-IconImage {
- name: "appointment-new"
- sourceSize: Qt.size(22, 22)
- width: 16
- height: 16
-}
diff --git a/tests/auto/qquickiconimage/data/root.qml b/tests/auto/qquickiconimage/data/root.qml
deleted file mode 100644
index 31ad7265..00000000
--- a/tests/auto/qquickiconimage/data/root.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-
-Item {
- width: 200
- height: 200
-}
diff --git a/tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml b/tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml
deleted file mode 100644
index 08dcd55e..00000000
--- a/tests/auto/qquickiconimage/data/sourceBindingNoSizes.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Row {
- width: 200
- height: 200
-
- IconImage {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- }
- Image {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- }
-}
diff --git a/tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml b/tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml
deleted file mode 100644
index 24678f8c..00000000
--- a/tests/auto/qquickiconimage/data/sourceBindingSourceSize.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Row {
- width: 200
- height: 200
-
- IconImage {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- sourceSize: Qt.size(22, 22)
- }
- Image {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- }
-}
diff --git a/tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml b/tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml
deleted file mode 100644
index 9ac26e22..00000000
--- a/tests/auto/qquickiconimage/data/sourceBindingSourceSizeWidthHeight.qml
+++ /dev/null
@@ -1,10 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-IconImage {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- sourceSize: Qt.size(22, 22)
- width: 16
- height: 16
-}
diff --git a/tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml b/tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml
deleted file mode 100644
index 655add7b..00000000
--- a/tests/auto/qquickiconimage/data/sourceBindingSourceTooLarge.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-IconImage {
- source: "qrc:/icons/testtheme/22x22/actions/appointment-new.png"
- sourceSize: Qt.size(32, 32)
-}
diff --git a/tests/auto/qquickiconimage/data/svgNoSizes.qml b/tests/auto/qquickiconimage/data/svgNoSizes.qml
deleted file mode 100644
index d2652827..00000000
--- a/tests/auto/qquickiconimage/data/svgNoSizes.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Row {
- width: 200
- height: 200
-
- IconImage {
- source: "qrc:/icons/testtheme/appointment-new.svg"
- }
- Image {
- source: "qrc:/icons/testtheme/appointment-new.svg"
- }
-}
diff --git a/tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml b/tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml
deleted file mode 100644
index c9157700..00000000
--- a/tests/auto/qquickiconimage/data/svgSourceBindingSourceSize.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Row {
- width: 200
- height: 200
-
- IconImage {
- source: "qrc:/data/icons/testtheme/appointment-new.svg"
- sourceSize: Qt.size(22, 22)
- }
- Image {
- source: "qrc:/data/icons/testtheme/appointment-new.svg"
- sourceSize: Qt.size(22, 22)
- }
-}
diff --git a/tests/auto/qquickiconimage/data/translucentColors.qml b/tests/auto/qquickiconimage/data/translucentColors.qml
deleted file mode 100644
index fd208235..00000000
--- a/tests/auto/qquickiconimage/data/translucentColors.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-ApplicationWindow {
- width: 500
- height: 500
- visible: true
-
- IconImage {
- width: Math.min(250, parent.width)
- height: Math.min(250, parent.height)
- source: "qrc:/icons/testtheme/22x22/actions/color-test-original.png"
- sourceSize: Qt.size(250, 0)
- color: Qt.rgba(0, 0, 0, 0.5)
- }
-}
diff --git a/tests/auto/qquickiconimage/icons/testtheme/16x16/actions/appointment-new.png b/tests/auto/qquickiconimage/icons/testtheme/16x16/actions/appointment-new.png
deleted file mode 100644
index 18b7c678..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/16x16/actions/appointment-new.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/+testselector/appointment-new.png b/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/+testselector/appointment-new.png
deleted file mode 100644
index c6ceca43..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/+testselector/appointment-new.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/+testselector/appointment-new@2x.png b/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/+testselector/appointment-new@2x.png
deleted file mode 100644
index f380ebb6..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/+testselector/appointment-new@2x.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/appointment-new.png b/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/appointment-new.png
deleted file mode 100644
index d676ffd4..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/appointment-new.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/appointment-new@2x.png b/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/appointment-new@2x.png
deleted file mode 100644
index 63ae9ce7..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/appointment-new@2x.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-original.png b/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-original.png
deleted file mode 100644
index 2d876cc1..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-original.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-original@2x.png b/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-original@2x.png
deleted file mode 100644
index c65fbed0..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-original@2x.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-tinted.png b/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-tinted.png
deleted file mode 100644
index 220a313d..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-tinted.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-tinted@2x.png b/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-tinted@2x.png
deleted file mode 100644
index cd66ef69..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22/actions/color-test-tinted@2x.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22@2/actions/+testselector/appointment-new.png b/tests/auto/qquickiconimage/icons/testtheme/22x22@2/actions/+testselector/appointment-new.png
deleted file mode 100644
index f380ebb6..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22@2/actions/+testselector/appointment-new.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/22x22@2/actions/appointment-new.png b/tests/auto/qquickiconimage/icons/testtheme/22x22@2/actions/appointment-new.png
deleted file mode 100644
index 63ae9ce7..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/22x22@2/actions/appointment-new.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickiconimage/icons/testtheme/appointment-new.svg b/tests/auto/qquickiconimage/icons/testtheme/appointment-new.svg
deleted file mode 100644
index 4cb14f82..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/appointment-new.svg
+++ /dev/null
@@ -1,425 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-<svg
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:cc="http://creativecommons.org/ns#"
- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns:svg="http://www.w3.org/2000/svg"
- xmlns="http://www.w3.org/2000/svg"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
- inkscape:export-ydpi="90.000000"
- inkscape:export-xdpi="90.000000"
- inkscape:export-filename="/home/jimmac/Desktop/wi-fi.png"
- width="48px"
- height="48px"
- id="svg11300"
- sodipodi:version="0.32"
- inkscape:version="0.46"
- sodipodi:docbase="/home/tigert/cvs/freedesktop.org/tango-icon-theme/scalable/actions"
- sodipodi:docname="appointment-new.svg"
- inkscape:output_extension="org.inkscape.output.svg.inkscape">
- <defs
- id="defs3">
- <inkscape:perspective
- sodipodi:type="inkscape:persp3d"
- inkscape:vp_x="0 : 24 : 1"
- inkscape:vp_y="0 : 1000 : 0"
- inkscape:vp_z="48 : 24 : 1"
- inkscape:persp3d-origin="24 : 16 : 1"
- id="perspective59" />
- <linearGradient
- inkscape:collect="always"
- id="linearGradient5204">
- <stop
- style="stop-color:#c4a000;stop-opacity:1;"
- offset="0"
- id="stop5206" />
- <stop
- style="stop-color:#c4a000;stop-opacity:0;"
- offset="1"
- id="stop5208" />
- </linearGradient>
- <linearGradient
- inkscape:collect="always"
- id="linearGradient5196">
- <stop
- style="stop-color:#c4a000;stop-opacity:1;"
- offset="0"
- id="stop5198" />
- <stop
- style="stop-color:#c4a000;stop-opacity:0;"
- offset="1"
- id="stop5200" />
- </linearGradient>
- <linearGradient
- id="linearGradient12512">
- <stop
- style="stop-color:#ffffff;stop-opacity:1.0000000;"
- offset="0.0000000"
- id="stop12513" />
- <stop
- style="stop-color:#fff520;stop-opacity:0.89108908;"
- offset="0.50000000"
- id="stop12517" />
- <stop
- style="stop-color:#fff300;stop-opacity:0.0000000;"
- offset="1.0000000"
- id="stop12514" />
- </linearGradient>
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient12512"
- id="radialGradient278"
- gradientUnits="userSpaceOnUse"
- cx="55.000000"
- cy="125.00000"
- fx="55.000000"
- fy="125.00000"
- r="14.375000" />
- <linearGradient
- id="linearGradient10653">
- <stop
- style="stop-color:#f3f4ff;stop-opacity:1.0000000;"
- offset="0.0000000"
- id="stop10655" />
- <stop
- style="stop-color:#9193af;stop-opacity:1.0000000;"
- offset="1.0000000"
- id="stop10657" />
- </linearGradient>
- <linearGradient
- id="linearGradient42174">
- <stop
- style="stop-color:#a0a0a0;stop-opacity:1.0000000;"
- offset="0.0000000"
- id="stop42176" />
- <stop
- style="stop-color:#ffffff;stop-opacity:1.0000000;"
- offset="1.0000000"
- id="stop42178" />
- </linearGradient>
- <linearGradient
- id="linearGradient2145">
- <stop
- style="stop-color:#fffffd;stop-opacity:1.0000000;"
- offset="0.0000000"
- id="stop2147" />
- <stop
- style="stop-color:#cbcbc9;stop-opacity:1.0000000;"
- offset="1.0000000"
- id="stop2149" />
- </linearGradient>
- <linearGradient
- id="linearGradient37935">
- <stop
- id="stop37937"
- offset="0.0000000"
- style="stop-color:#9497b3;stop-opacity:1.0000000;" />
- <stop
- id="stop37939"
- offset="1.0000000"
- style="stop-color:#4c4059;stop-opacity:1.0000000;" />
- </linearGradient>
- <linearGradient
- id="linearGradient2152">
- <stop
- id="stop2154"
- offset="0.0000000"
- style="stop-color:#9aa29a;stop-opacity:1.0000000;" />
- <stop
- id="stop2156"
- offset="1.0000000"
- style="stop-color:#b5beb5;stop-opacity:1.0000000;" />
- </linearGradient>
- <linearGradient
- inkscape:collect="always"
- id="linearGradient3816">
- <stop
- style="stop-color:#000000;stop-opacity:1;"
- offset="0"
- id="stop3818" />
- <stop
- style="stop-color:#000000;stop-opacity:0;"
- offset="1"
- id="stop3820" />
- </linearGradient>
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient3816"
- id="radialGradient3822"
- cx="31.112698"
- cy="19.008621"
- fx="31.112698"
- fy="19.008621"
- r="8.6620579"
- gradientUnits="userSpaceOnUse" />
- <linearGradient
- inkscape:collect="always"
- xlink:href="#linearGradient2152"
- id="linearGradient4307"
- gradientUnits="userSpaceOnUse"
- gradientTransform="matrix(3.123841,0.000000,0.000000,0.969691,-31.88758,-19.59492)"
- x1="8.9156475"
- y1="37.197018"
- x2="9.8855033"
- y2="52.090678" />
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient10653"
- id="radialGradient4309"
- gradientUnits="userSpaceOnUse"
- cx="11.329200"
- cy="10.583970"
- fx="11.329200"
- fy="10.583970"
- r="15.532059" />
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient2145"
- id="radialGradient4311"
- gradientUnits="userSpaceOnUse"
- cx="11.901996"
- cy="10.045444"
- fx="11.901996"
- fy="10.045444"
- r="29.292715" />
- <linearGradient
- inkscape:collect="always"
- xlink:href="#linearGradient42174"
- id="linearGradient4313"
- gradientUnits="userSpaceOnUse"
- x1="6.3422160"
- y1="7.7893324"
- x2="22.218424"
- y2="25.884274" />
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient5196"
- id="radialGradient5202"
- cx="23.375"
- cy="10.972863"
- fx="23.375"
- fy="10.972863"
- r="3.3478092"
- gradientTransform="matrix(3.630420,1.654030e-15,-1.608743e-15,3.742066,-61.48607,-29.18618)"
- gradientUnits="userSpaceOnUse" />
- <linearGradient
- inkscape:collect="always"
- xlink:href="#linearGradient5204"
- id="linearGradient5210"
- x1="19.667364"
- y1="4.2570662"
- x2="20.329933"
- y2="5.2845874"
- gradientUnits="userSpaceOnUse" />
- <radialGradient
- inkscape:collect="always"
- xlink:href="#linearGradient37935"
- id="radialGradient5212"
- gradientUnits="userSpaceOnUse"
- cx="8.7468252"
- cy="6.8283234"
- fx="8.7468252"
- fy="6.8283234"
- r="29.889715" />
- </defs>
- <sodipodi:namedview
- stroke="#c4a000"
- fill="#babdb6"
- id="base"
- pagecolor="#ffffff"
- bordercolor="#666666"
- borderopacity="0.25490196"
- inkscape:pageopacity="0.0"
- inkscape:pageshadow="2"
- inkscape:zoom="11.313708"
- inkscape:cx="13.2248"
- inkscape:cy="25.106052"
- inkscape:current-layer="layer1"
- showgrid="false"
- inkscape:grid-bbox="true"
- inkscape:document-units="px"
- inkscape:showpageshadow="false"
- inkscape:window-width="833"
- inkscape:window-height="772"
- inkscape:window-x="305"
- inkscape:window-y="76" />
- <metadata
- id="metadata4">
- <rdf:RDF>
- <cc:Work
- rdf:about="">
- <dc:format>image/svg+xml</dc:format>
- <dc:type
- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
- <dc:creator>
- <cc:Agent>
- <dc:title>Jakub Steiner</dc:title>
- </cc:Agent>
- </dc:creator>
- <dc:source>http://jimmac.musichall.cz</dc:source>
- <cc:license
- rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
- <dc:title>New Appointment</dc:title>
- <dc:subject>
- <rdf:Bag>
- <rdf:li>appointment</rdf:li>
- <rdf:li>new</rdf:li>
- <rdf:li>meeting</rdf:li>
- <rdf:li>rvsp</rdf:li>
- </rdf:Bag>
- </dc:subject>
- </cc:Work>
- <cc:License
- rdf:about="http://creativecommons.org/licenses/publicdomain/">
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#Reproduction" />
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#Distribution" />
- <cc:permits
- rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
- </cc:License>
- </rdf:RDF>
- </metadata>
- <g
- id="layer1"
- inkscape:label="Layer 1"
- inkscape:groupmode="layer">
- <path
- d="M 39.774755 19.008621 A 8.6620579 8.6620579 0 1 1 22.45064,19.008621 A 8.6620579 8.6620579 0 1 1 39.774755 19.008621 z"
- sodipodi:ry="8.6620579"
- sodipodi:rx="8.6620579"
- sodipodi:cy="19.008621"
- sodipodi:cx="31.112698"
- id="path4318"
- style="opacity:1;color:#000000;fill:url(#radialGradient3822);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
- sodipodi:type="arc"
- transform="matrix(2.563158,0.000000,0.000000,1.219602,-55.98414,14.04144)" />
- <path
- sodipodi:nodetypes="cccc"
- id="path14341"
- d="M 18.587591,1.403729 L 4.226755,18.096665 L 5.4854717,19.339844 L 18.587591,1.403729 z "
- style="color:#000000;fill:url(#linearGradient4307);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" />
- <path
- sodipodi:nodetypes="cccc"
- id="path18921"
- d="M 18.467176,1.3138035 L 5.6605716,19.072612 L 7.4900985,20.687913 L 18.467176,1.3138035 z "
- style="fill:#fefefe;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1" />
- <path
- transform="matrix(1.431529,0.000000,0.000000,1.431529,0.569459,-1.654618)"
- d="M 31.160714 16.910715 A 14.910714 14.910714 0 1 1 1.3392859,16.910715 A 14.910714 14.910714 0 1 1 31.160714 16.910715 z"
- sodipodi:ry="14.910714"
- sodipodi:rx="14.910714"
- sodipodi:cy="16.910715"
- sodipodi:cx="16.25"
- id="path27786"
- style="fill:url(#radialGradient5212);fill-opacity:1;fill-rule:evenodd;stroke:#605773;stroke-width:0.69855404;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1"
- sodipodi:type="arc" />
- <path
- transform="matrix(1.163838,0.000000,0.000000,1.163838,4.824801,2.777556)"
- d="M 31.160714 16.910715 A 14.910714 14.910714 0 1 1 1.3392859,16.910715 A 14.910714 14.910714 0 1 1 31.160714 16.910715 z"
- sodipodi:ry="14.910714"
- sodipodi:rx="14.910714"
- sodipodi:cy="16.910715"
- sodipodi:cx="16.25"
- id="path35549"
- style="fill:url(#radialGradient4311);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient4313);stroke-width:0.71139598;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1"
- sodipodi:type="arc" />
- <path
- sodipodi:type="arc"
- style="opacity:1;color:#000000;fill:url(#radialGradient5202);fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient5210);stroke-width:0.56498736;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
- id="path4120"
- sodipodi:cx="23.375"
- sodipodi:cy="11.875"
- sodipodi:rx="8.5"
- sodipodi:ry="8.5"
- d="M 16.679382,6.6387137 A 8.5,8.5 0 0 1 23.332691,3.3751053 L 23.375,11.875 z"
- transform="matrix(1.769951,0.000000,0.000000,1.769951,-17.02424,1.610741)"
- sodipodi:start="3.8052902"
- sodipodi:end="4.7074114" />
- <path
- transform="matrix(2.073295,0.000000,0.000000,2.073295,-7.310224,-13.13682)"
- d="M 16.40625 17.28125 A 1.21875 1.21875 0 1 1 13.96875,17.28125 A 1.21875 1.21875 0 1 1 16.40625 17.28125 z"
- sodipodi:ry="1.21875"
- sodipodi:rx="1.21875"
- sodipodi:cy="17.28125"
- sodipodi:cx="15.1875"
- id="path34778"
- style="fill:#f3f3f3;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:0.48232403;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;stroke-dasharray:none"
- sodipodi:type="arc" />
- <path
- id="path35559"
- d="M 22.176614,20.718014 L 13.155702,13.140282"
- style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
- <path
- id="path35561"
- d="M 19.408614,29.776506 L 22.368655,25.283228"
- style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
- sodipodi:nodetypes="cc" />
- <path
- transform="matrix(2.749493,0.000000,0.000000,2.749493,-22.30073,-12.40939)"
- d="M 17.324117 7.6932044 A 0.61871845 0.61871845 0 1 1 16.08668,7.6932044 A 0.61871845 0.61871845 0 1 1 17.324117 7.6932044 z"
- sodipodi:ry="0.61871845"
- sodipodi:rx="0.61871845"
- sodipodi:cy="7.6932044"
- sodipodi:cx="16.705399"
- id="path35563"
- style="fill:#b6b9b1;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.36871839;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;opacity:1"
- sodipodi:type="arc" />
- <path
- transform="matrix(2.749493,0.000000,0.000000,2.749493,-22.30073,14.80922)"
- d="M 17.324117 7.6932044 A 0.61871845 0.61871845 0 1 1 16.08668,7.6932044 A 0.61871845 0.61871845 0 1 1 17.324117 7.6932044 z"
- sodipodi:ry="0.61871845"
- sodipodi:rx="0.61871845"
- sodipodi:cy="7.6932044"
- sodipodi:cx="16.705399"
- id="path35565"
- style="fill:#b6b9b1;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.36871839;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;opacity:1"
- sodipodi:type="arc" />
- <path
- transform="matrix(2.749493,0.000000,0.000000,2.749493,-35.91004,1.199890)"
- d="M 17.324117 7.6932044 A 0.61871845 0.61871845 0 1 1 16.08668,7.6932044 A 0.61871845 0.61871845 0 1 1 17.324117 7.6932044 z"
- sodipodi:ry="0.61871845"
- sodipodi:rx="0.61871845"
- sodipodi:cy="7.6932044"
- sodipodi:cx="16.705399"
- id="path35567"
- style="fill:#b6b9b1;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.36871839;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;opacity:1"
- sodipodi:type="arc" />
- <path
- transform="matrix(2.749493,0.000000,0.000000,2.749493,-8.691448,1.199890)"
- d="M 17.324117 7.6932044 A 0.61871845 0.61871845 0 1 1 16.08668,7.6932044 A 0.61871845 0.61871845 0 1 1 17.324117 7.6932044 z"
- sodipodi:ry="0.61871845"
- sodipodi:rx="0.61871845"
- sodipodi:cy="7.6932044"
- sodipodi:cx="16.705399"
- id="path35569"
- style="fill:#b6b9b1;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.36871839;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;opacity:1"
- sodipodi:type="arc" />
- <path
- sodipodi:type="arc"
- style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#radialGradient4309);stroke-width:0.73656511;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1"
- id="path10651"
- sodipodi:cx="16.25"
- sodipodi:cy="16.910715"
- sodipodi:rx="14.910714"
- sodipodi:ry="14.910714"
- d="M 31.160714 16.910715 A 14.910714 14.910714 0 1 1 1.3392859,16.910715 A 14.910714 14.910714 0 1 1 31.160714 16.910715 z"
- transform="matrix(1.357654,0.000000,0.000000,1.357654,1.769896,-0.493735)" />
- <path
- sodipodi:type="arc"
- style="color:#000000;fill:url(#radialGradient278);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.25000024;stroke-linecap:butt;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block"
- id="path12511"
- sodipodi:cx="55"
- sodipodi:cy="125"
- sodipodi:rx="14.375"
- sodipodi:ry="14.375"
- d="M 69.375 125 A 14.375 14.375 0 1 1 40.625,125 A 14.375 14.375 0 1 1 69.375 125 z"
- transform="matrix(0.611127,0.000000,0.000000,0.611127,5.544052,-66.92818)"
- inkscape:export-filename="/home/jimmac/ximian_art/icons/nautilus/suse93/stock_new-16.png"
- inkscape:export-xdpi="33.852203"
- inkscape:export-ydpi="33.852203" />
- </g>
-</svg>
diff --git a/tests/auto/qquickiconimage/icons/testtheme/index.theme b/tests/auto/qquickiconimage/icons/testtheme/index.theme
deleted file mode 100644
index 6ab6c15c..00000000
--- a/tests/auto/qquickiconimage/icons/testtheme/index.theme
+++ /dev/null
@@ -1,21 +0,0 @@
-[Icon Theme]
-Name=Test
-Comment=Test Theme
-
-Directories=16x16/actions,22x22/actions,22x22@2/actions
-
-[16x16/actions]
-Size=16
-Context=Actions
-Type=Fixed
-
-[22x22/actions]
-Size=22
-Context=Actions
-Type=Fixed
-
-[22x22@2/actions]
-Size=22
-Context=Actions
-Scale=2
-Type=Fixed
diff --git a/tests/auto/qquickiconimage/qquickiconimage.pro b/tests/auto/qquickiconimage/qquickiconimage.pro
deleted file mode 100644
index 1a37d4ba..00000000
--- a/tests/auto/qquickiconimage/qquickiconimage.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-TARGET = tst_qquickiconimage
-
-QT += core gui qml quick testlib
-QT_PRIVATE += quick-private quickcontrols2-private
-qtHaveModule(svg): QT += svg
-
-include (../shared/util.pri)
-
-SOURCES += tst_qquickiconimage.cpp
-
-RESOURCES += resources.qrc
-
-TESTDATA += \
- $$PWD/data/*.qml \
- $$PWD/data/icons/*
diff --git a/tests/auto/qquickiconimage/resources.qrc b/tests/auto/qquickiconimage/resources.qrc
deleted file mode 100644
index 6558b039..00000000
--- a/tests/auto/qquickiconimage/resources.qrc
+++ /dev/null
@@ -1,17 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>icons/testtheme/16x16/actions/appointment-new.png</file>
- <file>icons/testtheme/22x22/actions/appointment-new.png</file>
- <file>icons/testtheme/22x22/actions/appointment-new@2x.png</file>
- <file>icons/testtheme/22x22@2/actions/appointment-new.png</file>
- <file>icons/testtheme/22x22/actions/+testselector/appointment-new.png</file>
- <file>icons/testtheme/22x22/actions/+testselector/appointment-new@2x.png</file>
- <file>icons/testtheme/22x22@2/actions/+testselector/appointment-new.png</file>
- <file>icons/testtheme/index.theme</file>
- <file>icons/testtheme/appointment-new.svg</file>
- <file>icons/testtheme/22x22/actions/color-test-original.png</file>
- <file>icons/testtheme/22x22/actions/color-test-tinted.png</file>
- <file>icons/testtheme/22x22/actions/color-test-original@2x.png</file>
- <file>icons/testtheme/22x22/actions/color-test-tinted@2x.png</file>
- </qresource>
-</RCC>
diff --git a/tests/auto/qquickiconimage/tst_qquickiconimage.cpp b/tests/auto/qquickiconimage/tst_qquickiconimage.cpp
deleted file mode 100644
index bc24c4fb..00000000
--- a/tests/auto/qquickiconimage/tst_qquickiconimage.cpp
+++ /dev/null
@@ -1,572 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <qtest.h>
-#include <QtTest/qsignalspy.h>
-
-#include <QtCore/qmath.h>
-#include <QtQml/qqmlapplicationengine.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQml/qqmlfileselector.h>
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/qquickview.h>
-#include <QtQuick/qquickimageprovider.h>
-#include <QtQuick/qquickitemgrabresult.h>
-#include <QtQuick/private/qquickimage_p.h>
-#include <QtQuickControls2/private/qquickiconimage_p.h>
-
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_qquickiconimage : public QQmlDataTest
-{
- Q_OBJECT
-public:
- tst_qquickiconimage();
-
-private slots:
- void initTestCase();
- void defaults();
- void nameBindingSourceSize();
- void nameBindingSourceSizeWidthHeight();
- void nameBindingNoSizes();
- void sourceBindingNoSizes();
- void sourceBindingSourceSize();
- void sourceBindingSourceSizeWidthHeight();
- void sourceBindingSourceTooLarge();
- void changeSourceSize();
- void alignment_data();
- void alignment();
- void svgNoSizes();
- void svgSourceBindingSourceSize();
- void color();
- void fileSelectors();
- void imageProvider();
- void translucentColors();
-
-private:
- void setTheme();
-
- qreal dpr;
- int integerDpr;
-};
-
-static QImage grabItemToImage(QQuickItem *item)
-{
- QSharedPointer<QQuickItemGrabResult> result = item->grabToImage();
- QSignalSpy spy(result.data(), SIGNAL(ready()));
- spy.wait();
- return result->image();
-}
-
-#define SKIP_IF_DPR_TOO_HIGH() \
- if (dpr > 2) \
- QSKIP("Test does not support device pixel ratio greater than 2")
-
-tst_qquickiconimage::tst_qquickiconimage() :
- dpr(qGuiApp->devicePixelRatio()),
- integerDpr(qCeil(dpr))
-{
-}
-
-void tst_qquickiconimage::initTestCase()
-{
- QQmlDataTest::initTestCase();
- QIcon::setThemeName(QStringLiteral("testtheme"));
-}
-
-void tst_qquickiconimage::defaults()
-{
- QQuickIconImage iconImage;
- QCOMPARE(iconImage.fillMode(), QQuickImage::Pad);
- QCOMPARE(iconImage.name(), QString());
- QCOMPARE(iconImage.source(), QUrl());
- QCOMPARE(iconImage.color(), QColor(Qt::transparent));
-}
-
-void tst_qquickiconimage::nameBindingSourceSize()
-{
- // We can't have images for every DPR.
- SKIP_IF_DPR_TOO_HIGH();
-
- QQuickView view(testFileUrl("nameBindingSourceSize.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- QQuickItem *image = view.rootObject()->childItems().at(1);
- QVERIFY(image);
-
- QCOMPARE(grabItemToImage(iconImage), grabItemToImage(image));
- QCOMPARE(iconImage->sourceSize().width(), 22);
- QCOMPARE(iconImage->sourceSize().height(), 22);
- QCOMPARE(iconImage->implicitWidth(), 22.0);
- QCOMPARE(iconImage->implicitHeight(), 22.0);
- QCOMPARE(iconImage->width(), 22.0);
- QCOMPARE(iconImage->height(), 22.0);
-
- // The requested width of 16 is less than the pixmap's size on disk which
- // is 22x22. Our default fillMode, Pad, would result in the image being clipped,
- // so instead we change the fillMode to PreserveAspectFit. Doing so causes
- // QQuickImage::updatePaintedGeometry() to set our implicit size to 22x16 to
- // ensure that the aspect ratio is respected. Since we have no explicit height,
- // the height (previously 22) becomes the implicit height (16).
- iconImage->setWidth(16.0);
- QCOMPARE(iconImage->fillMode(), QQuickImage::PreserveAspectFit);
- QCOMPARE(iconImage->sourceSize().width(), 22);
- QCOMPARE(iconImage->sourceSize().height(), 22);
- QCOMPARE(iconImage->implicitWidth(), 22.0);
- QCOMPARE(iconImage->implicitHeight(), 16.0);
- QCOMPARE(iconImage->width(), 16.0);
- QCOMPARE(iconImage->height(), 16.0);
-}
-
-void tst_qquickiconimage::nameBindingSourceSizeWidthHeight()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- QQuickView view(testFileUrl("nameBindingSourceSizeWidthHeight.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject());
- QVERIFY(iconImage);
- QCOMPARE(iconImage->sourceSize().width(), 22);
- QCOMPARE(iconImage->sourceSize().height(), 22);
- QCOMPARE(iconImage->implicitWidth(), 22.0);
- QCOMPARE(iconImage->implicitHeight(), 22.0);
- QCOMPARE(iconImage->width(), 16.0);
- QCOMPARE(iconImage->height(), 16.0);
-}
-
-void tst_qquickiconimage::nameBindingNoSizes()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- QQuickView view(testFileUrl("nameBindingNoSizes.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject());
- QVERIFY(iconImage);
- // The smallest available size will be chosen.
- QCOMPARE(iconImage->sourceSize().width(), 16);
- QCOMPARE(iconImage->sourceSize().height(), 16);
- QCOMPARE(iconImage->implicitWidth(), 16.0);
- QCOMPARE(iconImage->implicitHeight(), 16.0);
- QCOMPARE(iconImage->width(), 16.0);
- QCOMPARE(iconImage->height(), 16.0);
-}
-
-void tst_qquickiconimage::sourceBindingNoSizes()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- QQuickView view(testFileUrl("sourceBindingNoSizes.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- QQuickItem *image = view.rootObject()->childItems().at(1);
- QVERIFY(image);
-
- QCOMPARE(iconImage->sourceSize().width(), 22 * integerDpr);
- QCOMPARE(iconImage->sourceSize().height(), 22 * integerDpr);
- QCOMPARE(iconImage->implicitWidth(), 22.0);
- QCOMPARE(iconImage->implicitHeight(), 22.0);
- QCOMPARE(iconImage->width(), 22.0);
- QCOMPARE(iconImage->height(), 22.0);
- QCOMPARE(grabItemToImage(iconImage), grabItemToImage(image));
-}
-
-void tst_qquickiconimage::sourceBindingSourceSize()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- QQuickView view(testFileUrl("sourceBindingSourceSize.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- QQuickItem *image = view.rootObject()->childItems().at(1);
- QVERIFY(image);
-
- QCOMPARE(iconImage->sourceSize().width(), 22);
- QCOMPARE(iconImage->sourceSize().height(), 22);
- QCOMPARE(iconImage->implicitWidth(), 22.0);
- QCOMPARE(iconImage->implicitHeight(), 22.0);
- QCOMPARE(iconImage->width(), 22.0);
- QCOMPARE(iconImage->height(), 22.0);
- QCOMPARE(grabItemToImage(iconImage), grabItemToImage(image));
-
- // Changing width and height should not affect sourceSize.
- iconImage->setWidth(50);
- QCOMPARE(iconImage->sourceSize().width(), 22);
- QCOMPARE(iconImage->sourceSize().height(), 22);
- iconImage->setHeight(50);
- QCOMPARE(iconImage->sourceSize().width(), 22);
- QCOMPARE(iconImage->sourceSize().height(), 22);
-}
-
-void tst_qquickiconimage::sourceBindingSourceSizeWidthHeight()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- QQuickView view(testFileUrl("sourceBindingSourceSizeWidthHeight.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject());
- QVERIFY(iconImage);
- QCOMPARE(iconImage->sourceSize().width(), 22);
- QCOMPARE(iconImage->sourceSize().height(), 22);
- QCOMPARE(iconImage->implicitWidth(), 22.0);
- QCOMPARE(iconImage->implicitHeight(), 22.0);
- QCOMPARE(iconImage->width(), 16.0);
- QCOMPARE(iconImage->height(), 16.0);
-}
-
-void tst_qquickiconimage::sourceBindingSourceTooLarge()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- QQuickView view(testFileUrl("sourceBindingSourceTooLarge.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject());
- QVERIFY(iconImage);
- QCOMPARE(iconImage->sourceSize().width(), 32);
- QCOMPARE(iconImage->sourceSize().height(), 32);
- QCOMPARE(iconImage->implicitWidth(), 22.0);
- QCOMPARE(iconImage->implicitHeight(), 22.0);
- QCOMPARE(iconImage->width(), 22.0);
- QCOMPARE(iconImage->height(), 22.0);
-}
-
-void tst_qquickiconimage::alignment_data()
-{
- QTest::addColumn<QQuickImage::HAlignment>("horizontalAlignment");
- QTest::addColumn<QQuickImage::VAlignment>("verticalAlignment");
-
- QTest::newRow("AlignLeft,AlignTop") << QQuickImage::AlignLeft << QQuickImage::AlignTop;
- QTest::newRow("AlignLeft,AlignVCenter") << QQuickImage::AlignLeft << QQuickImage::AlignVCenter;
- QTest::newRow("AlignLeft,AlignBottom") << QQuickImage::AlignLeft << QQuickImage::AlignBottom;
- QTest::newRow("AlignHCenter,AlignTop") << QQuickImage::AlignHCenter << QQuickImage::AlignTop;
- QTest::newRow("AlignHCenter,AlignVCenter") << QQuickImage::AlignHCenter << QQuickImage::AlignVCenter;
- QTest::newRow("AlignHCenter,AlignBottom") << QQuickImage::AlignHCenter << QQuickImage::AlignBottom;
- QTest::newRow("AlignRight,AlignTop") << QQuickImage::AlignRight << QQuickImage::AlignTop;
- QTest::newRow("AlignRight,AlignVCenter") << QQuickImage::AlignRight << QQuickImage::AlignVCenter;
- QTest::newRow("AlignRight,AlignBottom") << QQuickImage::AlignRight << QQuickImage::AlignBottom;
-}
-
-void tst_qquickiconimage::alignment()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- QFETCH(QQuickImage::HAlignment, horizontalAlignment);
- QFETCH(QQuickImage::VAlignment, verticalAlignment);
-
- QQuickView view(testFileUrl("alignment.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- QQuickImage *image = qobject_cast<QQuickImage*>(view.rootObject()->childItems().at(1));
- QVERIFY(image);
-
- // The default fillMode for IconImage is Image::Pad, so these two grabs
- // should only be equal when the device pixel ratio is 1 or 2, as there is no
- // @3x version of the image, and hence the Image will be upscaled
- // and therefore blurry when the ratio is higher than 2.
- if (qGuiApp->devicePixelRatio() <= 2)
- QCOMPARE(grabItemToImage(iconImage), grabItemToImage(image));
- else
- QVERIFY(grabItemToImage(iconImage) != grabItemToImage(image));
-
- // Check that the images are what we expect in different alignment configurations.
- iconImage->setWidth(200);
- iconImage->setHeight(100);
- iconImage->setHorizontalAlignment(horizontalAlignment);
- iconImage->setVerticalAlignment(verticalAlignment);
- iconImage->setFillMode(QQuickImage::Pad);
- image->setWidth(200);
- image->setHeight(100);
- image->setHorizontalAlignment(horizontalAlignment);
- image->setVerticalAlignment(verticalAlignment);
- image->setFillMode(QQuickImage::Pad);
-
- if (qGuiApp->devicePixelRatio() <= 2)
- QCOMPARE(grabItemToImage(iconImage), grabItemToImage(image));
- else
- QVERIFY(grabItemToImage(iconImage) != grabItemToImage(image));
-}
-
-void tst_qquickiconimage::svgNoSizes()
-{
-#ifndef QT_SVG_LIB
- QSKIP("This test requires qtsvg");
-#else
- QQuickView view(testFileUrl("svgNoSizes.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- QQuickImage *image = qobject_cast<QQuickImage*>(view.rootObject()->childItems().at(1));
- QVERIFY(image);
-
- QCOMPARE(iconImage->sourceSize().width(), 48);
- QCOMPARE(iconImage->sourceSize().height(), 48);
- QCOMPARE(iconImage->implicitWidth(), 48.0);
- QCOMPARE(iconImage->implicitHeight(), 48.0);
- QCOMPARE(iconImage->width(), 48.0);
- QCOMPARE(iconImage->height(), 48.0);
- QCOMPARE(grabItemToImage(iconImage), grabItemToImage(image));
-#endif
-}
-
-void tst_qquickiconimage::svgSourceBindingSourceSize()
-{
-#ifndef QT_SVG_LIB
- QSKIP("This test requires qtsvg");
-#else
- QQuickView view(testFileUrl("alignment.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- QQuickImage *image = qobject_cast<QQuickImage*>(view.rootObject()->childItems().at(1));
- QVERIFY(image);
-
- QCOMPARE(iconImage->sourceSize().width(), 22);
- QCOMPARE(iconImage->sourceSize().height(), 22);
- QCOMPARE(iconImage->implicitWidth(), 22.0);
- QCOMPARE(iconImage->implicitHeight(), 22.0);
- QCOMPARE(iconImage->width(), 22.0);
- QCOMPARE(iconImage->height(), 22.0);
- QCOMPARE(grabItemToImage(iconImage), grabItemToImage(image));
-#endif
-}
-
-void tst_qquickiconimage::color()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- if (QGuiApplication::platformName() == QLatin1String("offscreen"))
- QSKIP("grabToImage() doesn't work on the \"offscreen\" platform plugin (QTBUG-63185)");
-
- QQuickView view(testFileUrl("color.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- QQuickImage *image = qobject_cast<QQuickImage*>(view.rootObject()->childItems().at(1));
- QVERIFY(image);
-
- QImage iconImageWindowGrab = grabItemToImage(iconImage);
- QCOMPARE(iconImageWindowGrab, grabItemToImage(image));
-
- // Transparent pixels should remain transparent.
- QCOMPARE(iconImageWindowGrab.pixelColor(0, 0), QColor(0, 0, 0, 0));
-
- // Set a color after component completion.
- iconImage->setColor(QColor(Qt::green));
- iconImageWindowGrab = grabItemToImage(iconImage);
- const QPoint centerPixelPos(11, 11);
- QCOMPARE(iconImageWindowGrab.pixelColor(centerPixelPos), QColor(Qt::green));
-
- // Set a semi-transparent color after component completion.
- iconImage->setColor(QColor(0, 0, 255, 127));
- iconImageWindowGrab = grabItemToImage(iconImage);
- QCOMPARE(iconImageWindowGrab.pixelColor(centerPixelPos).red(), 0);
- QCOMPARE(iconImageWindowGrab.pixelColor(centerPixelPos).green(), 0);
- QCOMPARE(iconImageWindowGrab.pixelColor(centerPixelPos).blue(), 255);
- QCOMPARE(iconImageWindowGrab.pixelColor(centerPixelPos).alpha(), 127);
-}
-
-void tst_qquickiconimage::changeSourceSize()
-{
- QQuickView view(testFileUrl("sourceBindingSourceSize.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- // Ensure that there isn't any infinite recursion when trying to change the sourceSize.
- QSize sourceSize = iconImage->sourceSize();
- sourceSize.setWidth(sourceSize.width() - 1);
- iconImage->setSourceSize(sourceSize);
-}
-
-
-void tst_qquickiconimage::fileSelectors()
-{
- SKIP_IF_DPR_TOO_HIGH();
-
- if (QGuiApplication::platformName() == QLatin1String("offscreen"))
- QSKIP("grabToImage() doesn't work on the \"offscreen\" platform plugin (QTBUG-63185)");
-
- QQuickView view;
- QQmlFileSelector* fileSelector = new QQmlFileSelector(view.engine());
- fileSelector->setExtraSelectors(QStringList() << "testselector");
- view.setSource(testFileUrl("fileSelectors.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->childItems().at(0));
- QVERIFY(iconImage);
-
- QQuickItem *image = view.rootObject()->childItems().at(1);
- QVERIFY(image);
-
- QImage iconImageWindowGrab = grabItemToImage(iconImage);
- QCOMPARE(iconImageWindowGrab, grabItemToImage(image));
-
- QCOMPARE(iconImageWindowGrab.pixelColor(iconImageWindowGrab.width() / 2, iconImageWindowGrab.height() / 2), QColor(Qt::blue));
-}
-
-class TestImageProvider : public QQuickImageProvider
-{
-public:
- TestImageProvider() : QQuickImageProvider(QQuickImageProvider::Pixmap) { }
-
- QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize)
- {
- QSize defaultSize(32, 32);
- if (size)
- *size = defaultSize;
-
- QPixmap pixmap(requestedSize.width() > 0 ? requestedSize.width() : defaultSize.width(),
- requestedSize.height() > 0 ? requestedSize.height() : defaultSize.height());
- pixmap.fill(QColor(id).rgba());
- return pixmap;
- }
-};
-
-// don't crash (QTBUG-63959)
-void tst_qquickiconimage::imageProvider()
-{
- if (QGuiApplication::platformName() == QLatin1String("offscreen"))
- QSKIP("grabToImage() doesn't work on the \"offscreen\" platform plugin (QTBUG-63185)");
-
- QQuickView view;
- view.engine()->addImageProvider("provider", new TestImageProvider);
- view.setSource(testFileUrl("imageProvider.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(view.rootObject()->findChild<QQuickIconImage *>());
- QVERIFY(iconImage);
-
- QImage image = grabItemToImage(iconImage);
- QVERIFY(!image.isNull());
- QCOMPARE(image.pixelColor(image.width() / 2, image.height() / 2), QColor(Qt::red));
-}
-
-/*
- QQuickIconImage::componentComplete() calls QQuickIconImagePrivate::updateIcon(),
- which loads the icon's image via QQuickImageBase::load(). That eventually calls
- QQuickImageBase::requestFinished(), which calls QQuickIconImage::pixmapChange().
- That then calls QQuickIconImagePrivate::updateFillMode(), which can in turn
- cause QQuickIconImage::pixmapChange() to be called again, causing recursion.
-
- This was a problem because it resulted in icon.color being applied twice.
-
- This test checks that that doesn't happen.
-*/
-void tst_qquickiconimage::translucentColors()
-{
- if (QGuiApplication::platformName() == QLatin1String("offscreen"))
- QSKIP("grabToImage() doesn't work on the \"offscreen\" platform plugin (QTBUG-63185)");
-
- // Doesn't reproduce with QQuickView.
- QQmlApplicationEngine engine;
- engine.load(testFileUrl("translucentColors.qml"));
- QQuickWindow *window = qobject_cast<QQuickWindow*>(engine.rootObjects().first());
-
- QQuickIconImage *iconImage = qobject_cast<QQuickIconImage*>(window->findChild<QQuickIconImage*>());
- QVERIFY(iconImage);
-
- const QImage image = grabItemToImage(iconImage);
- QVERIFY(!image.isNull());
- QCOMPARE(image.pixelColor(image.width() / 2, image.height() / 2), QColor::fromRgba(0x80000000));
-}
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
- QGuiApplication app(argc, argv);
- Q_UNUSED(app);
- tst_qquickiconimage test;
- QTEST_SET_MAIN_SOURCE_PATH
- return QTest::qExec(&test, argc, argv);
-}
-
-#include "tst_qquickiconimage.moc"
diff --git a/tests/auto/qquickiconlabel/data/colorChanges.qml b/tests/auto/qquickiconlabel/data/colorChanges.qml
deleted file mode 100644
index 954c1ef4..00000000
--- a/tests/auto/qquickiconlabel/data/colorChanges.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-AbstractButton {
- id: button
- width: 200
- height: 200
- icon.source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
- icon.color: enabled ? "transparent" : "red"
-
- IconLabel {
- icon: button.icon
- text: button.text
- }
-}
diff --git a/tests/auto/qquickiconlabel/data/iconlabel.qml b/tests/auto/qquickiconlabel/data/iconlabel.qml
deleted file mode 100644
index b82f9faf..00000000
--- a/tests/auto/qquickiconlabel/data/iconlabel.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-AbstractButton {
- id: button
- width: 200
- height: 200
- text: "Some text"
- icon.source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
-
- IconLabel {
- icon: button.icon
- text: button.text
- }
-}
diff --git a/tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml b/tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml
deleted file mode 100644
index 61c9f74c..00000000
--- a/tests/auto/qquickiconlabel/data/spacingWithOnlyIcon.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-AbstractButton {
- id: button
- width: 200
- height: 200
- icon.source: "qrc:/qt-project.org/imports/QtQuick/Controls.2/images/check.png"
-
- IconLabel {
- spacing: 10
- mirrored: true
- icon: button.icon
- }
-}
diff --git a/tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml b/tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml
deleted file mode 100644
index 7c2ecb0f..00000000
--- a/tests/auto/qquickiconlabel/data/spacingWithOnlyText.qml
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-
-Item {
- width: 200
- height: 200
-
- IconLabel {
- spacing: 10
- text: "Some text"
- }
-}
diff --git a/tests/auto/qquickiconlabel/qquickiconlabel.pro b/tests/auto/qquickiconlabel/qquickiconlabel.pro
deleted file mode 100644
index 6b0f73b3..00000000
--- a/tests/auto/qquickiconlabel/qquickiconlabel.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-TARGET = tst_qquickiconlabel
-
-QT += core gui qml quick testlib
-QT_PRIVATE += quick-private quickcontrols2-private
-
-include (../shared/util.pri)
-
-SOURCES += tst_qquickiconlabel.cpp
-
-TESTDATA += \
- $$PWD/data/*.qml
diff --git a/tests/auto/qquickiconlabel/tst_qquickiconlabel.cpp b/tests/auto/qquickiconlabel/tst_qquickiconlabel.cpp
deleted file mode 100644
index 0ecc95c5..00000000
--- a/tests/auto/qquickiconlabel/tst_qquickiconlabel.cpp
+++ /dev/null
@@ -1,334 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QtCore/qvector.h>
-
-#include <qtest.h>
-
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/qquickview.h>
-#include <QtQuick/qquickitemgrabresult.h>
-#include <QtQuick/private/qquicktext_p.h>
-#include <QtQuickTemplates2/private/qquickicon_p.h>
-#include <QtQuickControls2/private/qquickiconimage_p.h>
-#include <QtQuickControls2/private/qquickiconlabel_p.h>
-
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_qquickiconlabel : public QQmlDataTest
-{
- Q_OBJECT
-public:
- tst_qquickiconlabel();
-
-private slots:
- void display_data();
- void display();
- void spacingWithOneDelegate_data();
- void spacingWithOneDelegate();
- void emptyIconSource();
- void colorChanges();
-};
-
-tst_qquickiconlabel::tst_qquickiconlabel()
-{
-}
-
-void tst_qquickiconlabel::display_data()
-{
- QTest::addColumn<QVector<QQuickIconLabel::Display> >("displayTypes");
- QTest::addColumn<bool>("mirrored");
- QTest::addColumn<qreal>("labelWidth");
- QTest::addColumn<qreal>("labelHeight");
- QTest::addColumn<qreal>("spacing");
-
- typedef QVector<QQuickIconLabel::Display> DisplayVector;
- QQuickIconLabel::Display IconOnly = QQuickIconLabel::IconOnly;
- QQuickIconLabel::Display TextOnly = QQuickIconLabel::TextOnly;
- QQuickIconLabel::Display TextUnderIcon = QQuickIconLabel::TextUnderIcon;
- QQuickIconLabel::Display TextBesideIcon = QQuickIconLabel::TextBesideIcon;
-
- QTest::addRow("IconOnly") << (DisplayVector() << IconOnly) << false << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextOnly") << (DisplayVector() << TextOnly) << false << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextUnderIcon") << (DisplayVector() << TextUnderIcon) << false << -1.0 << -1.0 << 10.0;
- QTest::addRow("TextBesideIcon") << (DisplayVector() << TextBesideIcon) << false << -1.0 << -1.0 << 10.0;
- QTest::addRow("IconOnly, spacing=10") << (DisplayVector() << IconOnly) << false << -1.0 << -1.0 << 10.0;
- QTest::addRow("TextOnly, spacing=10") << (DisplayVector() << TextOnly) << false << -1.0 << -1.0 << 10.0;
- QTest::addRow("TextUnderIcon, spacing=10") << (DisplayVector() << TextUnderIcon) << false << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextUnderIcon => IconOnly => TextUnderIcon")
- << (DisplayVector() << TextUnderIcon << IconOnly << TextUnderIcon) << false << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextUnderIcon => IconOnly => TextUnderIcon, labelWidth=400")
- << (DisplayVector() << TextUnderIcon << IconOnly << TextUnderIcon) << false << 400.0 << -1.0 << 0.0;
- QTest::addRow("TextUnderIcon => TextOnly => TextUnderIcon")
- << (DisplayVector() << TextUnderIcon << TextOnly << TextUnderIcon) << false << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextUnderIcon => TextOnly => TextUnderIcon, labelWidth=400")
- << (DisplayVector() << TextUnderIcon << TextOnly << TextUnderIcon) << false << 400.0 << -1.0 << 0.0;
- QTest::addRow("TextBesideIcon, spacing=10") << (DisplayVector() << TextBesideIcon) << false << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextBesideIcon => IconOnly => TextBesideIcon")
- << (DisplayVector() << TextBesideIcon << IconOnly << TextBesideIcon) << false << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextBesideIcon => IconOnly => TextBesideIcon, labelWidth=400")
- << (DisplayVector() << TextBesideIcon << IconOnly << TextBesideIcon) << false << 400.0 << -1.0 << 0.0;
- QTest::addRow("TextBesideIcon => TextOnly => TextBesideIcon")
- << (DisplayVector() << TextBesideIcon << TextOnly << TextBesideIcon) << false << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextBesideIcon => TextOnly => TextBesideIcon, labelWidth=400")
- << (DisplayVector() << TextBesideIcon << TextOnly << TextBesideIcon) << false << 400.0 << -1.0 << 0.0;
- QTest::addRow("IconOnly, mirrored") << (DisplayVector() << IconOnly) << true << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextOnly, mirrored") << (DisplayVector() << TextOnly) << true << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextUnderIcon, mirrored") << (DisplayVector() << TextUnderIcon) << true << -1.0 << -1.0 << 0.0;
- QTest::addRow("TextBesideIcon, mirrored") << (DisplayVector() << TextBesideIcon) << true << -1.0 << -1.0 << 0.0;
-}
-
-void tst_qquickiconlabel::display()
-{
- QFETCH(QVector<QQuickIconLabel::Display>, displayTypes);
- QFETCH(bool, mirrored);
- QFETCH(qreal, labelWidth);
- QFETCH(qreal, labelHeight);
- QFETCH(qreal, spacing);
-
- QQuickView view(testFileUrl("iconlabel.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- QVERIFY(QTest::qWaitForWindowExposed(&view));
-
- QQuickItem *rootItem = view.rootObject();
- QVERIFY(rootItem);
-
- QQuickIconLabel *label = rootItem->findChild<QQuickIconLabel *>();
- QVERIFY(label);
- QCOMPARE(label->spacing(), 0.0);
- QCOMPARE(label->display(), QQuickIconLabel::TextBesideIcon);
- QCOMPARE(label->isMirrored(), false);
-
- // Setting labelWidth allows us to test the issue where the icon's
- // width was not updated after switching between different display types.
- if (!qFuzzyCompare(labelWidth, -1)) {
- label->setWidth(labelWidth);
- QCOMPARE(label->width(), labelWidth);
- }
- if (!qFuzzyCompare(labelHeight, -1)) {
- label->setHeight(labelHeight);
- QCOMPARE(label->height(), labelHeight);
- }
-
- label->setMirrored(mirrored);
- QCOMPARE(label->isMirrored(), mirrored);
-
- label->setSpacing(spacing);
- QCOMPARE(label->spacing(), spacing);
-
- const qreal horizontalPadding = label->leftPadding() + label->rightPadding();
- const qreal verticalPadding = label->topPadding() + label->bottomPadding();
-
- // Test that the icon and text are correctly positioned and sized after
- // setting several different display types in succession.
- for (QQuickIconLabel::Display displayType : qAsConst(displayTypes)) {
- label->setDisplay(displayType);
- QCOMPARE(label->display(), displayType);
-
- QQuickIconImage *icon = label->findChild<QQuickIconImage *>();
- QQuickText *text = label->findChild<QQuickText *>();
-
- const qreal horizontalCenter = label->width() / 2;
- const qreal verticalCenter = label->height() / 2;
-
- switch (displayType) {
- case QQuickIconLabel::IconOnly:
- QVERIFY(icon);
- QVERIFY(!text);
- QCOMPARE(icon->x(), horizontalCenter - icon->width() / 2);
- QCOMPARE(icon->y(), verticalCenter - icon->height() / 2);
- QCOMPARE(icon->width(), icon->implicitWidth());
- QCOMPARE(icon->height(), icon->implicitHeight());
- QCOMPARE(label->implicitWidth(), icon->implicitWidth() + horizontalPadding);
- QCOMPARE(label->implicitHeight(), icon->implicitHeight() + verticalPadding);
- break;
- case QQuickIconLabel::TextOnly:
- QVERIFY(!icon);
- QVERIFY(text);
- QCOMPARE(text->x(), horizontalCenter - text->width() / 2);
- QCOMPARE(text->y(), verticalCenter - text->height() / 2);
- QCOMPARE(text->width(), text->implicitWidth());
- QCOMPARE(text->height(), text->implicitHeight());
- QCOMPARE(label->implicitWidth(), text->implicitWidth() + horizontalPadding);
- QCOMPARE(label->implicitHeight(), text->implicitHeight() + verticalPadding);
- break;
- case QQuickIconLabel::TextUnderIcon: {
- QVERIFY(icon);
- QVERIFY(text);
- const qreal combinedHeight = icon->height() + label->spacing() + text->height();
- const qreal contentY = verticalCenter - combinedHeight / 2;
- QCOMPARE(icon->x(), horizontalCenter - icon->width() / 2);
- QCOMPARE(icon->y(), contentY);
- QCOMPARE(icon->width(), icon->implicitWidth());
- QCOMPARE(icon->height(), icon->implicitHeight());
- QCOMPARE(text->x(), horizontalCenter - text->width() / 2);
- QCOMPARE(text->y(), contentY + icon->height() + label->spacing());
- QCOMPARE(text->width(), text->implicitWidth());
- QCOMPARE(text->height(), text->implicitHeight());
- QCOMPARE(label->implicitWidth(), qMax(icon->implicitWidth(), text->implicitWidth()) + horizontalPadding);
- QCOMPARE(label->implicitHeight(), combinedHeight + verticalPadding);
- break;
- }
- case QQuickIconLabel::TextBesideIcon:
- default:
- QVERIFY(icon);
- QVERIFY(text);
- const qreal combinedWidth = icon->width() + label->spacing() + text->width();
- const qreal contentX = horizontalCenter - combinedWidth / 2;
- QCOMPARE(icon->x(), contentX + (label->isMirrored() ? text->width() + label->spacing() : 0));
- QCOMPARE(icon->y(), verticalCenter - icon->height() / 2);
- QCOMPARE(icon->width(), icon->implicitWidth());
- QCOMPARE(icon->height(), icon->implicitHeight());
- QCOMPARE(text->x(), contentX + (label->isMirrored() ? 0 : icon->width() + label->spacing()));
- QCOMPARE(text->y(), verticalCenter - text->height() / 2);
- QCOMPARE(text->width(), text->implicitWidth());
- QCOMPARE(text->height(), text->implicitHeight());
- QCOMPARE(label->implicitWidth(), combinedWidth + horizontalPadding);
- QCOMPARE(label->implicitHeight(), qMax(icon->implicitHeight(), text->implicitHeight()) + verticalPadding);
- break;
- }
-
- if (text)
- QCOMPARE(label->baselineOffset(), text->y() + text->baselineOffset());
- else
- QCOMPARE(label->baselineOffset(), 0);
- }
-}
-
-void tst_qquickiconlabel::spacingWithOneDelegate_data()
-{
- QTest::addColumn<QString>("qmlFileName");
-
- QTest::addRow("spacingWithOnlyIcon") << QStringLiteral("spacingWithOnlyIcon.qml");
- QTest::addRow("spacingWithOnlyText") << QStringLiteral("spacingWithOnlyText.qml");
-}
-
-void tst_qquickiconlabel::spacingWithOneDelegate()
-{
- QFETCH(QString, qmlFileName);
-
- QQuickView view(testFileUrl(qmlFileName));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- QVERIFY(QTest::qWaitForWindowExposed(&view));
-
- QQuickItem *rootItem = view.rootObject();
- QVERIFY(rootItem);
-
- QQuickIconLabel *label = rootItem->findChild<QQuickIconLabel *>();
- QVERIFY(label);
- QQuickItem *delegate = nullptr;
- if (!label->icon().isEmpty()) {
- QVERIFY(!label->findChild<QQuickText *>());
- delegate = label->findChild<QQuickIconImage *>();
- } else {
- QVERIFY(!label->findChild<QQuickIconImage *>());
- delegate = label->findChild<QQuickText *>();
- }
-
- QVERIFY(delegate);
- QCOMPARE(delegate->x(), 0.0);
- QCOMPARE(delegate->width(), label->width());
-}
-
-void tst_qquickiconlabel::emptyIconSource()
-{
- QQuickView view(testFileUrl("iconlabel.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- QVERIFY(QTest::qWaitForWindowExposed(&view));
-
- QQuickItem *rootItem = view.rootObject();
- QVERIFY(rootItem);
-
- QQuickIconLabel *label = rootItem->findChild<QQuickIconLabel *>();
- QVERIFY(label);
- QCOMPARE(label->spacing(), 0.0);
- QCOMPARE(label->display(), QQuickIconLabel::TextBesideIcon);
- QCOMPARE(label->isMirrored(), false);
-
- QQuickItem *icon = label->findChild<QQuickIconImage *>();
- QVERIFY(icon);
-
- QQuickItem *text = label->findChild<QQuickText *>();
- QVERIFY(text);
- qreal horizontalCenter = label->width() / 2;
- const qreal combinedWidth = icon->width() + text->width();
- const qreal contentX = horizontalCenter - combinedWidth / 2;
- // The text should be positioned next to an item.
- QCOMPARE(text->x(), contentX + icon->width() + label->spacing());
-
- // Now give the label an explicit width large enough so that implicit size
- // changes in its children don't affect its implicit size.
- label->setWidth(label->implicitWidth() + 200);
- label->setHeight(label->implicitWidth() + 100);
- QVERIFY(icon->property("source").isValid());
- label->setIcon(QQuickIcon());
- QVERIFY(!label->findChild<QQuickIconImage *>());
- horizontalCenter = label->width() / 2;
- QCOMPARE(text->x(), horizontalCenter - text->width() / 2);
-}
-
-void tst_qquickiconlabel::colorChanges()
-{
- if (QGuiApplication::platformName() == QLatin1String("offscreen"))
- QSKIP("grabToImage() doesn't work on the \"offscreen\" platform plugin (QTBUG-63185)");
-
- QQuickView view(testFileUrl("colorChanges.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- QVERIFY(QTest::qWaitForWindowExposed(&view));
-
- QQuickItem *rootItem = view.rootObject();
- QVERIFY(rootItem);
-
- QQuickIconLabel *label = rootItem->findChild<QQuickIconLabel *>();
- QVERIFY(label);
- QCOMPARE(label->spacing(), 0.0);
- QCOMPARE(label->display(), QQuickIconLabel::TextBesideIcon);
- QCOMPARE(label->isMirrored(), false);
-
- QSharedPointer<QQuickItemGrabResult> grabResult = label->grabToImage();
- QTRY_VERIFY(!grabResult->image().isNull());
- const QImage enabledImageGrab = grabResult->image();
-
- // The color should change to "red" when the item is disabled.
- rootItem->setEnabled(false);
-
- grabResult = label->grabToImage();
- QTRY_VERIFY(!grabResult->image().isNull());
- QVERIFY(grabResult->image() != enabledImageGrab);
-}
-
-QTEST_MAIN(tst_qquickiconlabel)
-
-#include "tst_qquickiconlabel.moc"
diff --git a/tests/auto/qquickimaginestyle/control-assets/button-background.9.png b/tests/auto/qquickimaginestyle/control-assets/button-background.9.png
deleted file mode 100644
index 29bd8d7c..00000000
--- a/tests/auto/qquickimaginestyle/control-assets/button-background.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickimaginestyle/data/tst_imagine.qml b/tests/auto/qquickimaginestyle/data/tst_imagine.qml
deleted file mode 100644
index 03bb9602..00000000
--- a/tests/auto/qquickimaginestyle/data/tst_imagine.qml
+++ /dev/null
@@ -1,108 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtTest 1.1
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "Imagine"
-
- Component {
- id: buttonComponent
- Button {}
- }
-
- Component {
- id: implicitQrcButtonComponent
- Button {
- Imagine.path: ":/control-assets"
- }
- }
-
- Component {
- id: explicitQrcButtonComponent
- Button {
- Imagine.path: "qrc:/control-assets"
- }
- }
-
- function test_qrcPaths_data() {
- return [
- { tag: ":/control-assets", component: implicitQrcButtonComponent },
- { tag: "qrc:/control-assets", component: explicitQrcButtonComponent }
- ]
- }
-
- function test_qrcPaths(data) {
- if (Qt.platform.pluginName === "offscreen")
- skip("grabImage() is not functional on the offscreen platform (QTBUG-63185)")
-
- var control = createTemporaryObject(data.component, testCase)
- verify(control)
- compare(control.Imagine.path, data.tag)
- var image = grabImage(control)
- compare(image.pixel(control.width / 2, control.height / 2), "#ff0000")
- }
-
- function test_fontFromConfigFile() {
- var control = createTemporaryObject(buttonComponent, testCase)
- verify(control)
- compare(control.font.pixelSize, 80)
- }
-}
diff --git a/tests/auto/qquickimaginestyle/qquickimaginestyle.pro b/tests/auto/qquickimaginestyle/qquickimaginestyle.pro
deleted file mode 100644
index c421f2dc..00000000
--- a/tests/auto/qquickimaginestyle/qquickimaginestyle.pro
+++ /dev/null
@@ -1,16 +0,0 @@
-TEMPLATE = app
-TARGET = tst_qquickimaginestyle
-CONFIG += qmltestcase
-
-SOURCES += \
- $$PWD/tst_qquickimaginestyle.cpp
-
-RESOURCES += \
- $$PWD/qtquickcontrols2.conf \
- $$PWD/control-assets/button-background.9.png
-
-OTHER_FILES += \
- $$PWD/data/*.qml
-
-TESTDATA += \
- $$PWD/data/tst_*
diff --git a/tests/auto/qquickimaginestyle/qtquickcontrols2.conf b/tests/auto/qquickimaginestyle/qtquickcontrols2.conf
deleted file mode 100644
index cc58a8e3..00000000
--- a/tests/auto/qquickimaginestyle/qtquickcontrols2.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-[Controls]
-Style=Imagine
-
-[Imagine]
-Font\PixelSize=80
diff --git a/tests/auto/qquickimaginestyle/tst_qquickimaginestyle.cpp b/tests/auto/qquickimaginestyle/tst_qquickimaginestyle.cpp
deleted file mode 100644
index cd08923a..00000000
--- a/tests/auto/qquickimaginestyle/tst_qquickimaginestyle.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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_qquickmaterialstyle)
diff --git a/tests/auto/qquickmaterialstyle/data/tst_material.qml b/tests/auto/qquickmaterialstyle/data/tst_material.qml
deleted file mode 100644
index 9f2456b8..00000000
--- a/tests/auto/qquickmaterialstyle/data/tst_material.qml
+++ /dev/null
@@ -1,718 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtTest 1.0
-import QtQuick.Templates 2.12 as T
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "Material"
-
- Component {
- id: button
- Button { }
- }
-
- Component {
- id: styledButton
- Button {
- Material.theme: Material.Dark
- Material.primary: Material.DeepOrange
- Material.accent: Material.DeepPurple
- Material.background: Material.Green
- Material.foreground: Material.Blue
- }
- }
-
- Component {
- id: window
- Window { }
- }
-
- Component {
- id: applicationWindow
- ApplicationWindow { }
- }
-
- Component {
- id: styledWindow
- Window {
- Material.theme: Material.Dark
- Material.primary: Material.Brown
- Material.accent: Material.Green
- Material.background: Material.Yellow
- Material.foreground: Material.Grey
- }
- }
-
- Component {
- id: loader
- Loader {
- active: false
- sourceComponent: Button { }
- }
- }
-
- Component {
- id: swipeView
- SwipeView {
- Material.theme: Material.Dark
- Button { }
- }
- }
-
- Component {
- id: menu
- ApplicationWindow {
- Material.primary: Material.Blue
- Material.accent: Material.Red
- property alias menu: popup
- Menu {
- id: popup
- Material.theme: Material.Dark
- MenuItem { }
- }
- }
- }
-
- Component {
- id: popupComponent
- ApplicationWindow {
- Material.primary: Material.Blue
- Material.accent: Material.Red
- visible: true
- property alias popup: popupInstance
- property alias label: labelInstance
- property alias label2: labelInstance2
- Popup {
- id: popupInstance
- Label {
- id: labelInstance
- text: "test"
- color: popupInstance.Material.textSelectionColor
- }
- Component.onCompleted: open()
- }
- T.Popup {
- contentItem: Label {
- id: labelInstance2
- text: "test"
- color: Material.textSelectionColor
- }
- Component.onCompleted: open()
- }
- }
- }
-
- Component {
- id: comboBox
- ApplicationWindow {
- width: 200
- height: 200
- visible: true
- Material.primary: Material.Blue
- Material.accent: Material.Red
- property alias combo: box
- ComboBox {
- id: box
- Material.theme: Material.Dark
- model: 1
- }
- }
- }
-
- Component {
- id: windowPane
- ApplicationWindow {
- width: 200
- height: 200
- visible: true
- property alias pane: pane
- Pane { id: pane }
- }
- }
-
- // need to be synced with QQuickMaterialStyle::themeShade()
- function themeshade(theme) {
- if (theme === Material.Light)
- return Material.Shade500
- else
- return Material.Shade200
- }
-
- function test_defaults() {
- var control = button.createObject(testCase)
- verify(control)
- verify(control.Material)
- compare(control.Material.primary, Material.color(Material.Indigo))
- compare(control.Material.accent, Material.color(Material.Pink))
- compare(control.Material.foreground, "#dd000000")
- compare(control.Material.background, "#fafafa")
- compare(control.Material.theme, Material.Light)
- control.destroy()
- }
-
- function test_set() {
- var control = button.createObject(testCase)
- verify(control)
- control.Material.primary = Material.Green
- control.Material.accent = Material.Brown
- control.Material.background = Material.Red
- control.Material.foreground = Material.Blue
- control.Material.theme = Material.Dark
- compare(control.Material.primary, Material.color(Material.Green))
- compare(control.Material.accent, Material.color(Material.Brown, themeshade(control.Material.theme)))
- compare(control.Material.background, Material.color(Material.Red, themeshade(control.Material.theme)))
- compare(control.Material.foreground, Material.color(Material.Blue))
- compare(control.Material.theme, Material.Dark)
- control.destroy()
- }
-
- function test_reset() {
- var control = styledButton.createObject(testCase)
- verify(control)
- compare(control.Material.primary, Material.color(Material.DeepOrange))
- compare(control.Material.accent, Material.color(Material.DeepPurple, themeshade(control.Material.theme)))
- compare(control.Material.background, Material.color(Material.Green, themeshade(control.Material.theme)))
- compare(control.Material.foreground, Material.color(Material.Blue))
- compare(control.Material.theme, Material.Dark)
- control.Material.primary = undefined
- control.Material.accent = undefined
- control.Material.background = undefined
- control.Material.foreground = undefined
- control.Material.theme = undefined
- compare(control.Material.primary, testCase.Material.primary)
- compare(control.Material.accent, testCase.Material.accent)
- compare(control.Material.background, testCase.Material.background)
- compare(control.Material.foreground, testCase.Material.foreground)
- compare(control.Material.theme, testCase.Material.theme)
- control.destroy()
- }
-
- function test_inheritance_data() {
- return [
- { tag: "primary", value1: Material.color(Material.Amber), value2: Material.color(Material.Indigo) },
- { tag: "accent", value1: Material.color(Material.Amber), value2: Material.color(Material.Indigo) },
- { tag: "background", value1: Material.color(Material.Amber), value2: Material.color(Material.Indigo) },
- { tag: "foreground", value1: Material.color(Material.Amber), value2: Material.color(Material.Indigo) },
- { tag: "theme", value1: Material.Dark, value2: Material.Light },
- ]
- }
-
- function test_inheritance(data) {
- var prop = data.tag
- var parent = button.createObject(testCase)
- parent.Material[prop] = data.value1
- compare(parent.Material[prop], data.value1)
-
- var child1 = button.createObject(parent)
- compare(child1.Material[prop], data.value1)
-
- parent.Material[prop] = data.value2
- compare(parent.Material[prop], data.value2)
- compare(child1.Material[prop], data.value2)
-
- var child2 = button.createObject(parent)
- compare(child2.Material[prop], data.value2)
-
- child2.Material[prop] = data.value1
- compare(child2.Material[prop], data.value1)
- compare(child1.Material[prop], data.value2)
- compare(parent.Material[prop], data.value2)
-
- parent.Material[prop] = undefined
- verify(parent.Material[prop] !== data.value1)
- verify(parent.Material[prop] !== undefined)
- compare(child1.Material[prop], parent.Material[prop])
- verify(child2.Material[prop] !== parent.Material[prop])
-
- var grandChild1 = button.createObject(child1)
- var grandChild2 = button.createObject(child2)
- compare(grandChild1.Material[prop], child1.Material[prop])
- compare(grandChild2.Material[prop], child2.Material[prop])
-
- var themelessGrandGrandChild = button.createObject(grandChild1)
- var grandGrandGrandChild1 = button.createObject(themelessGrandGrandChild)
- compare(grandGrandGrandChild1.Material[prop], parent.Material[prop])
-
- child1.Material[prop] = data.value2
- compare(child1.Material[prop], data.value2)
- compare(grandChild1.Material[prop], data.value2)
- compare(grandGrandGrandChild1.Material[prop], data.value2)
-
- parent.destroy()
- }
-
- function test_inheritance_popup_data() {
- return [
- { tag: "primary", value1: Material.color(Material.Amber), value2: Material.color(Material.Indigo) },
- { tag: "accent", value1: Material.color(Material.Amber), value2: Material.color(Material.Indigo) },
- { tag: "theme", value1: Material.Dark, value2: Material.Light },
- ]
- }
-
- function test_inheritance_popup(data) {
- var prop = data.tag
- var popupObject = popupComponent.createObject(testCase)
- compare(popupObject.popup.Material.textSelectionColor.toString(), popupObject.Material.textSelectionColor.toString())
- compare(popupObject.label.color.toString(), popupObject.Material.textSelectionColor.toString())
- compare(popupObject.label2.color.toString(), popupObject.Material.textSelectionColor.toString())
-
- popupObject.Material[prop] = data.value1
- compare(popupObject.Material[prop], data.value1)
- compare(popupObject.popup.Material.textSelectionColor.toString(), popupObject.Material.textSelectionColor.toString())
- compare(popupObject.label.color.toString(), popupObject.Material.textSelectionColor.toString())
- compare(popupObject.label2.color.toString(), popupObject.Material.textSelectionColor.toString())
-
- popupObject.Material[prop] = data.value2
- compare(popupObject.Material[prop], data.value2)
- compare(popupObject.popup.Material.textSelectionColor.toString(), popupObject.Material.textSelectionColor.toString())
- compare(popupObject.label.color.toString(), popupObject.Material.textSelectionColor.toString())
- compare(popupObject.label2.color.toString(), popupObject.Material.textSelectionColor.toString())
-
- popupObject.destroy()
- }
-
- function test_window() {
- var parent = window.createObject()
-
- var control = button.createObject(parent.contentItem)
- compare(control.Material.primary, parent.Material.primary)
- compare(control.Material.accent, parent.Material.accent)
- compare(control.Material.background, parent.Material.background)
- compare(control.Material.foreground, parent.Material.foreground)
- compare(control.Material.theme, parent.Material.theme)
-
- var styledChild = styledWindow.createObject(window)
- verify(styledChild.Material.primary !== parent.Material.primary)
- verify(styledChild.Material.accent !== parent.Material.accent)
- verify(styledChild.Material.background !== parent.Material.background)
- verify(styledChild.Material.foreground !== parent.Material.foreground)
- verify(styledChild.Material.theme !== parent.Material.theme)
-
- var unstyledChild = window.createObject(window)
- compare(unstyledChild.Material.primary, parent.Material.primary)
- compare(unstyledChild.Material.accent, parent.Material.accent)
- compare(unstyledChild.Material.background, parent.Material.background)
- compare(unstyledChild.Material.foreground, parent.Material.foreground)
- compare(unstyledChild.Material.theme, parent.Material.theme)
-
- parent.Material.primary = Material.Lime
- compare(control.Material.primary, Material.color(Material.Lime))
- verify(styledChild.Material.primary !== Material.color(Material.Lime))
- // ### TODO: compare(unstyledChild.Material.primary, Material.color(Material.Lime))
-
- parent.Material.accent = Material.Cyan
- compare(control.Material.accent, Material.color(Material.Cyan))
- verify(styledChild.Material.accent !== Material.color(Material.Cyan))
- // ### TODO: compare(unstyledChild.Material.accent, Material.color(Material.Cyan))
-
- parent.Material.background = Material.Indigo
- compare(control.Material.background, Material.color(Material.Indigo))
- verify(styledChild.Material.background !== Material.color(Material.Indigo))
- // ### TODO: compare(unstyledChild.Material.background, Material.color(Material.Indigo))
-
- parent.Material.foreground = Material.Pink
- compare(control.Material.foreground, Material.color(Material.Pink))
- verify(styledChild.Material.foreground !== Material.color(Material.Pink))
- // ### TODO: compare(unstyledChild.Material.foreground, Material.color(Material.Pink))
-
- parent.destroy()
- }
-
- function test_loader() {
- var control = loader.createObject(testCase)
- control.Material.primary = Material.Yellow
- control.Material.accent = Material.Lime
- control.Material.background = Material.LightGreen
- control.Material.foreground = Material.LightBlue
- control.active = true
- compare(control.item.Material.primary, Material.color(Material.Yellow))
- compare(control.item.Material.accent, Material.color(Material.Lime))
- compare(control.item.Material.background, Material.color(Material.LightGreen))
- compare(control.item.Material.foreground, Material.color(Material.LightBlue))
- control.Material.primary = Material.Red
- control.Material.accent = Material.Pink
- control.Material.background = Material.Blue
- control.Material.foreground = Material.Green
- compare(control.item.Material.primary, Material.color(Material.Red))
- compare(control.item.Material.accent, Material.color(Material.Pink))
- compare(control.item.Material.background, Material.color(Material.Blue))
- compare(control.item.Material.foreground, Material.color(Material.Green))
- control.active = false
- control.Material.primary = Material.Orange
- control.Material.accent = Material.Brown
- control.Material.background = Material.Red
- control.Material.foreground = Material.Pink
- control.active = true
- compare(control.item.Material.primary, Material.color(Material.Orange))
- compare(control.item.Material.accent, Material.color(Material.Brown))
- compare(control.item.Material.background, Material.color(Material.Red))
- compare(control.item.Material.foreground, Material.color(Material.Pink))
- control.destroy()
- }
-
- function test_swipeView() {
- var control = swipeView.createObject(testCase)
- verify(control)
- var child = control.itemAt(0)
- verify(child)
- compare(control.Material.theme, Material.Dark)
- compare(child.Material.theme, Material.Dark)
- control.destroy()
- }
-
- function test_menu() {
- var container = menu.createObject(testCase)
- verify(container)
- verify(container.menu)
- container.menu.open()
- verify(container.menu.visible)
- var child = container.menu.itemAt(0)
- verify(child)
- compare(container.Material.theme, Material.Light)
- compare(container.menu.Material.theme, Material.Dark)
- compare(child.Material.theme, Material.Dark)
- compare(container.Material.primary, Material.color(Material.Blue))
- compare(container.menu.Material.primary, Material.color(Material.Blue))
- compare(child.Material.primary, Material.color(Material.Blue))
- compare(container.Material.accent, Material.color(Material.Red))
- compare(container.menu.Material.accent, Material.color(Material.Red, themeshade(container.menu.Material.theme)))
- compare(child.Material.accent, Material.color(Material.Red, themeshade(child.Material.theme)))
- container.destroy()
- }
-
- function test_comboBox() {
- var window = comboBox.createObject(testCase)
- verify(window)
- verify(window.combo)
- waitForRendering(window.combo)
- window.combo.forceActiveFocus()
- verify(window.combo.activeFocus)
- keyClick(Qt.Key_Space)
- verify(window.combo.popup.visible)
- var listView = window.combo.popup.contentItem
- verify(listView)
- var child = listView.contentItem.children[0]
- verify(child)
- compare(window.Material.theme, Material.Light)
- compare(window.combo.Material.theme, Material.Dark)
- compare(child.Material.theme, Material.Dark)
- compare(window.Material.primary, Material.color(Material.Blue))
- compare(window.combo.Material.primary, Material.color(Material.Blue))
- compare(child.Material.primary, Material.color(Material.Blue))
- compare(window.Material.accent, Material.color(Material.Red))
- compare(window.combo.Material.accent, Material.color(Material.Red, themeshade(window.combo.Material.theme)))
- compare(child.Material.accent, Material.color(Material.Red, themeshade(child.Material.theme)))
- window.destroy()
- }
-
- function test_windowChange() {
- var ldr = loader.createObject()
- verify(ldr)
-
- var wnd = window.createObject()
- verify(wnd)
-
- wnd.Material.theme = Material.Dark
- compare(wnd.Material.theme, Material.Dark)
-
- ldr.active = true
- verify(ldr.item)
- compare(ldr.item.Material.theme, Material.Light)
-
- ldr.parent = wnd.contentItem
- compare(ldr.item.Material.theme, Material.Dark)
-
- wnd.destroy()
- }
-
- function test_colors_data() {
- return [
- { tag: "primary" }, { tag: "accent" }, { tag: "background" }, { tag: "foreground" }
- ]
- }
-
- function test_colors(data) {
- var control = button.createObject(testCase)
- verify(control)
-
- var prop = data.tag
-
- // Material.Color - enum
- control.Material[prop] = Material.Red
- compare(control.Material[prop], "#f44336")
-
- // Material.Color - string
- control.Material[prop] = "BlueGrey"
- compare(control.Material[prop], "#607d8b")
-
- // SVG named color
- control.Material[prop] = "tomato"
- compare(control.Material[prop], "#ff6347")
-
- // #rrggbb
- control.Material[prop] = "#123456"
- compare(control.Material[prop], "#123456")
-
- // #aarrggbb
- control.Material[prop] = "#12345678"
- compare(control.Material[prop], "#12345678")
-
- // Qt.rgba() - no alpha
- control.Material[prop] = Qt.rgba(0.5, 0.5, 0.5)
- compare(control.Material[prop], "#808080")
-
- // Qt.rgba() - with alpha
- control.Material[prop] = Qt.rgba(0.5, 0.5, 0.5, 0.5)
- compare(control.Material[prop], "#80808080")
-
- // unknown
- ignoreWarning(Qt.resolvedUrl("tst_material.qml") + ":68:9: QML Button: unknown Material." + prop + " value: 123")
- control.Material[prop] = 123
- ignoreWarning(Qt.resolvedUrl("tst_material.qml") + ":68:9: QML Button: unknown Material." + prop + " value: foo")
- control.Material[prop] = "foo"
- ignoreWarning(Qt.resolvedUrl("tst_material.qml") + ":68:9: QML Button: unknown Material." + prop + " value: #1")
- control.Material[prop] = "#1"
-
- control.destroy()
- }
-
- function test_font_data() {
- return [
- {tag: "Button:pixelSize", type: "Button", attribute: "pixelSize", value: 14, window: 20, pane: 10},
- {tag: "Button:weight", type: "Button", attribute: "weight", value: Font.Medium, window: Font.Black, pane: Font.Bold},
- {tag: "Button:capitalization", type: "Button", attribute: "capitalization", value: Font.AllUppercase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "TabButton:pixelSize", type: "TabButton", attribute: "pixelSize", value: 14, window: 20, pane: 10},
- {tag: "TabButton:weight", type: "TabButton", attribute: "weight", value: Font.Medium, window: Font.Black, pane: Font.Bold},
- {tag: "TabButton:capitalization", type: "TabButton", attribute: "capitalization", value: Font.AllUppercase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "ToolButton:pixelSize", type: "ToolButton", attribute: "pixelSize", value: 14, window: 20, pane: 10},
- {tag: "ToolButton:weight", type: "ToolButton", attribute: "weight", value: Font.Medium, window: Font.Black, pane: Font.Bold},
- {tag: "ToolButton:capitalization", type: "ToolButton", attribute: "capitalization", value: Font.AllUppercase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "ItemDelegate:pixelSize", type: "ItemDelegate", attribute: "pixelSize", value: 14, window: 20, pane: 10},
- {tag: "ItemDelegate:weight", type: "ItemDelegate", attribute: "weight", value: Font.Medium, window: Font.Black, pane: Font.Bold},
- {tag: "ItemDelegate:capitalization", type: "ItemDelegate", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "CheckDelegate:pixelSize", type: "CheckDelegate", attribute: "pixelSize", value: 16, window: 20, pane: 10},
- {tag: "CheckDelegate:weight", type: "CheckDelegate", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "CheckDelegate:capitalization", type: "CheckDelegate", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "RadioDelegate:pixelSize", type: "RadioDelegate", attribute: "pixelSize", value: 16, window: 20, pane: 10},
- {tag: "RadioDelegate:weight", type: "RadioDelegate", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "RadioDelegate:capitalization", type: "RadioDelegate", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "SwitchDelegate:pixelSize", type: "SwitchDelegate", attribute: "pixelSize", value: 16, window: 20, pane: 10},
- {tag: "SwitchDelegate:weight", type: "SwitchDelegate", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "SwitchDelegate:capitalization", type: "SwitchDelegate", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "Label:pixelSize", type: "Label", attribute: "pixelSize", value: 14, window: 20, pane: 10},
- {tag: "Label:weight", type: "Label", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "Label:capitalization", type: "Label", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "CheckBox:pixelSize", type: "CheckBox", attribute: "pixelSize", value: 14, window: 20, pane: 10},
- {tag: "CheckBox:weight", type: "CheckBox", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "CheckBox:capitalization", type: "CheckBox", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "RadioButton:pixelSize", type: "RadioButton", attribute: "pixelSize", value: 14, window: 20, pane: 10},
- {tag: "RadioButton:weight", type: "RadioButton", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "RadioButton:capitalization", type: "RadioButton", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "Switch:pixelSize", type: "Switch", attribute: "pixelSize", value: 14, window: 20, pane: 10},
- {tag: "Switch:weight", type: "Switch", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "Switch:capitalization", type: "Switch", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "MenuItem:pixelSize", type: "MenuItem", attribute: "pixelSize", value: 16, window: 20, pane: 10},
- {tag: "MenuItem:weight", type: "MenuItem", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "MenuItem:capitalization", type: "MenuItem", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "ComboBox:pixelSize", type: "ComboBox", attribute: "pixelSize", value: 16, window: 20, pane: 10},
- {tag: "ComboBox:weight", type: "ComboBox", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "ComboBox:capitalization", type: "ComboBox", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "TextField:pixelSize", type: "TextField", attribute: "pixelSize", value: 16, window: 20, pane: 10},
- {tag: "TextField:weight", type: "TextField", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "TextField:capitalization", type: "TextField", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "TextArea:pixelSize", type: "TextArea", attribute: "pixelSize", value: 16, window: 20, pane: 10},
- {tag: "TextArea:weight", type: "TextArea", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "TextArea:capitalization", type: "TextArea", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase},
-
- {tag: "SpinBox:pixelSize", type: "SpinBox", attribute: "pixelSize", value: 16, window: 20, pane: 10},
- {tag: "SpinBox:weight", type: "SpinBox", attribute: "weight", value: Font.Normal, window: Font.Black, pane: Font.Bold},
- {tag: "SpinBox:capitalization", type: "SpinBox", attribute: "capitalization", value: Font.MixedCase, window: Font.Capitalize, pane: Font.AllLowercase}
- ]
- }
-
- function test_font(data) {
- var window = windowPane.createObject(testCase)
- verify(window)
- verify(window.pane)
-
- var control = Qt.createQmlObject("import QtQuick.Controls 2.1; " + data.type + " { }", window.pane)
- verify(control)
-
- compare(control.font[data.attribute], data.value)
-
- window.font[data.attribute] = data.window
- compare(window.font[data.attribute], data.window)
- compare(window.pane.font[data.attribute], data.window)
- compare(control.font[data.attribute], data.window)
-
- window.pane.font[data.attribute] = data.pane
- compare(window.font[data.attribute], data.window)
- compare(window.pane.font[data.attribute], data.pane)
- compare(control.font[data.attribute], data.pane)
-
- window.pane.font = undefined
- compare(window.font[data.attribute], data.window)
- compare(window.pane.font[data.attribute], data.window)
- compare(control.font[data.attribute], data.window)
-
- window.destroy()
- }
-
- Component {
- id: backgroundControls
- ApplicationWindow {
- id: window
- property Button button: Button { }
- property ComboBox combobox: ComboBox { }
- property Drawer drawer: Drawer { }
- property GroupBox groupbox: GroupBox { Material.elevation: 10 }
- property Frame frame: Frame { Material.elevation: 10 }
- property Menu menu: Menu { }
- property Page page: Page { }
- property Pane pane: Pane { }
- property Popup popup: Popup { }
- property TabBar tabbar: TabBar { }
- property ToolBar toolbar: ToolBar { }
- property ToolTip tooltip: ToolTip { }
- }
- }
-
- function test_background_data() {
- return [
- { tag: "button", inherit: false, wait: 400 },
- { tag: "combobox", inherit: false, wait: 400 },
- { tag: "drawer", inherit: true },
- { tag: "groupbox", inherit: true },
- { tag: "frame", inherit: true },
- { tag: "menu", inherit: true },
- { tag: "page", inherit: true },
- { tag: "pane", inherit: true },
- { tag: "popup", inherit: true },
- { tag: "tabbar", inherit: true },
- { tag: "toolbar", inherit: false },
- { tag: "tooltip", inherit: false }
- ]
- }
-
- function test_background(data) {
- var window = backgroundControls.createObject(testCase)
- verify(window)
-
- var control = window[data.tag]
- verify(control)
-
- control.parent = window.contentItem
- control.visible = true
-
- var defaultBackground = control.background.color
-
- window.Material.background = "#ff0000"
- compare(window.color, "#ff0000")
-
- // For controls that have an animated background color, we wait the length
- // of the color animation to be sure that the color hasn't actually changed.
- if (data.wait)
- wait(data.wait)
-
- // We want the control's background color to be equal to the window's background
- // color, because we want the color to propagate to items that might actually use
- // it... Button, ComboBox, ToolBar and ToolTip have a special background color,
- // so they don't use the generic background color unless explicitly set, so we
- // compare the actual background rect color instead.
- if (data.inherit)
- compare(control.background.color, "#ff0000")
- else
- compare(control.background.color, defaultBackground)
-
- control.Material.background = "#0000ff"
- tryCompare(control.background, "color", "#0000ff")
-
- window.destroy()
- }
-
- Component {
- id: busyIndicator
- BusyIndicator { }
- }
-
- function test_shade() {
- var control = busyIndicator.createObject(testCase)
-
- compare(control.contentItem.color.toString(), Material.color(Material.Pink, Material.Shade500))
- control.Material.theme = Material.Dark
- compare(control.contentItem.color.toString(), Material.color(Material.Pink, Material.Shade200))
-
- control.destroy()
- }
-}
diff --git a/tests/auto/qquickmaterialstyle/qquickmaterialstyle.pro b/tests/auto/qquickmaterialstyle/qquickmaterialstyle.pro
deleted file mode 100644
index dac2176a..00000000
--- a/tests/auto/qquickmaterialstyle/qquickmaterialstyle.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = tst_qquickmaterialstyle
-CONFIG += qmltestcase
-
-SOURCES += \
- $$PWD/tst_qquickmaterialstyle.cpp
-
-RESOURCES += \
- $$PWD/qtquickcontrols2.conf
-
-OTHER_FILES += \
- $$PWD/data/*.qml
-
-TESTDATA += \
- $$PWD/data/tst_*
diff --git a/tests/auto/qquickmaterialstyle/qtquickcontrols2.conf b/tests/auto/qquickmaterialstyle/qtquickcontrols2.conf
deleted file mode 100644
index b6c7c87e..00000000
--- a/tests/auto/qquickmaterialstyle/qtquickcontrols2.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-[Controls]
-Style=Material
diff --git a/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp b/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp
deleted file mode 100644
index cd08923a..00000000
--- a/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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_qquickmaterialstyle)
diff --git a/tests/auto/qquickmaterialstyleconf/data/applicationwindow.qml b/tests/auto/qquickmaterialstyleconf/data/applicationwindow.qml
deleted file mode 100644
index 8e3be027..00000000
--- a/tests/auto/qquickmaterialstyleconf/data/applicationwindow.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias label: label
- property alias button: button
-
- Label {
- id: label
- }
-
- Button {
- id: button
- }
-}
diff --git a/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro b/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro
deleted file mode 100644
index af4e5349..00000000
--- a/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickmaterialstyleconf
-SOURCES += tst_qquickmaterialstyleconf.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private quickcontrols2-private
-
-include (../shared/util.pri)
-
-RESOURCES += qquickmaterialstyleconf.qrc
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
-
diff --git a/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.qrc b/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.qrc
deleted file mode 100644
index 49219139..00000000
--- a/tests/auto/qquickmaterialstyleconf/qquickmaterialstyleconf.qrc
+++ /dev/null
@@ -1,7 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>qtquickcontrols2.conf</file>
- <file>variant-dense.conf</file>
- <file>variant-normal.conf</file>
- </qresource>
-</RCC>
diff --git a/tests/auto/qquickmaterialstyleconf/qtquickcontrols2.conf b/tests/auto/qquickmaterialstyleconf/qtquickcontrols2.conf
deleted file mode 100644
index 30cee878..00000000
--- a/tests/auto/qquickmaterialstyleconf/qtquickcontrols2.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-[Controls]
-Style=Material
-
-[Material]
-Background=#444444
-Foreground=Red
-Font\PixelSize=22
-
-[Material\Font]
-Family=Courier
diff --git a/tests/auto/qquickmaterialstyleconf/tst_qquickmaterialstyleconf.cpp b/tests/auto/qquickmaterialstyleconf/tst_qquickmaterialstyleconf.cpp
deleted file mode 100644
index 72136445..00000000
--- a/tests/auto/qquickmaterialstyleconf/tst_qquickmaterialstyleconf.cpp
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <qtest.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_qquickmaterialstyleconf : public QQmlDataTest
-{
- Q_OBJECT
-
-public:
-
-private slots:
- void conf();
- void variants_data();
- void variants();
-};
-
-void tst_qquickmaterialstyleconf::conf()
-{
- QQuickApplicationHelper helper(this, QLatin1String("applicationwindow.qml"));
-
- QFont customFont;
- customFont.setFamily("Courier");
- customFont.setPixelSize(22);
-
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
- // We specified a custom background color and font, so the window should have them.
- QCOMPARE(window->property("color").value<QColor>(), QColor("#444444"));
- QCOMPARE(window->property("font").value<QFont>(), customFont);
-
- // We specified a custom foreground color and font, so the label should have them.
- QQuickItem *label = window->property("label").value<QQuickItem*>();
- QVERIFY(label);
- QCOMPARE(label->property("color").value<QColor>(), QColor("#F44336"));
- QCOMPARE(label->property("font").value<QFont>(), customFont);
-}
-
-void tst_qquickmaterialstyleconf::variants_data()
-{
- QTest::addColumn<QByteArray>("confPath");
- QTest::addColumn<int>("expectedButtonHeight");
- // Just to ensure that the correct conf is loaded.
- QTest::addColumn<QColor>("expectedColor");
-
- // (36 button height + 12 touchable area)
- QTest::newRow("normal") << QByteArray(":/variant-normal.conf") << 48 << QColor::fromRgb(0x123456);
- // We specified a custom variant (dense), so the button should be small.
- // (32 button height + 12 touchable area)
- QTest::newRow("dense") << QByteArray(":/variant-dense.conf") << 44 << QColor::fromRgb(0x789abc);
-}
-
-void tst_qquickmaterialstyleconf::variants()
-{
- QFETCH(QByteArray, confPath);
- QFETCH(int, expectedButtonHeight);
- QFETCH(QColor, expectedColor);
-
- qmlClearTypeRegistrations();
- QQuickStylePrivate::reset();
- qputenv("QT_QUICK_CONTROLS_CONF", confPath);
-
- QQuickApplicationHelper helper(this, QLatin1String("applicationwindow.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickItem *label = window->property("label").value<QQuickItem*>();
- QVERIFY(label);
- QCOMPARE(label->property("color").value<QColor>(), expectedColor);
-
- QQuickItem *button = window->property("button").value<QQuickItem*>();
- QVERIFY(button);
- QCOMPARE(button->height(), expectedButtonHeight);
-}
-
-QTEST_MAIN(tst_qquickmaterialstyleconf)
-
-#include "tst_qquickmaterialstyleconf.moc"
diff --git a/tests/auto/qquickmaterialstyleconf/variant-dense.conf b/tests/auto/qquickmaterialstyleconf/variant-dense.conf
deleted file mode 100644
index 6636894e..00000000
--- a/tests/auto/qquickmaterialstyleconf/variant-dense.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Material
-
-[Material]
-Variant=Dense
-Foreground=#789abc
diff --git a/tests/auto/qquickmaterialstyleconf/variant-normal.conf b/tests/auto/qquickmaterialstyleconf/variant-normal.conf
deleted file mode 100644
index 08778e92..00000000
--- a/tests/auto/qquickmaterialstyleconf/variant-normal.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Material
-
-[Material]
-Variant=Normal
-Foreground=#123456
diff --git a/tests/auto/qquickmenu/data/actions.qml b/tests/auto/qquickmenu/data/actions.qml
deleted file mode 100644
index 6998c722..00000000
--- a/tests/auto/qquickmenu/data/actions.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias menu: menu
-
- Menu {
- id: menu
- Action { text: "action1" }
- MenuItem { text: "menuitem2" }
- Action { text: "action3" }
- MenuItem { text: "menuitem4" }
- }
-}
diff --git a/tests/auto/qquickmenu/data/addItem.qml b/tests/auto/qquickmenu/data/addItem.qml
deleted file mode 100644
index ae592432..00000000
--- a/tests/auto/qquickmenu/data/addItem.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 200
- height: 200
-
- property alias menu: menu
-
- MenuItem {
- id: newMenuItem
- text: qsTr("New")
- }
-
- Menu {
- id: menu
- y: parent.height
-
- Component.onCompleted: addItem(newMenuItem)
- }
-}
diff --git a/tests/auto/qquickmenu/data/applicationWindowScrollable.qml b/tests/auto/qquickmenu/data/applicationWindowScrollable.qml
deleted file mode 100644
index b9894aed..00000000
--- a/tests/auto/qquickmenu/data/applicationWindowScrollable.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- title: "Test Application Window"
- width: 300
- height: 300
-
- property alias menu: menu
-
- Menu {
- id: menu
-
- Repeater {
- model: 20
-
- delegate: MenuItem {
- objectName: text
- text: (index + 1)
- }
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/applicationwindow.qml b/tests/auto/qquickmenu/data/applicationwindow.qml
deleted file mode 100644
index 986853e4..00000000
--- a/tests/auto/qquickmenu/data/applicationwindow.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- title: "Test Application Window"
- width: 400
- height: 400
-
- property alias emptyMenu: emptyMenu
- property alias menu: menu
- property alias menuButton: menuButton
-
- Menu {
- id: emptyMenu
- }
-
- Menu {
- id: menu
-
- MenuItem {
- objectName: "firstMenuItem"
- text: "A"
- }
- MenuItem {
- objectName: "secondMenuItem"
- text: "B"
- }
- MenuItem {
- objectName: "thirdMenuItem"
- text: "C"
- }
- }
-
- Button {
- id: menuButton
- x: 250
- visible: false
- text: "Open Menu"
- onClicked: menu.open()
- }
-}
diff --git a/tests/auto/qquickmenu/data/delegateFromSeparateComponent.qml b/tests/auto/qquickmenu/data/delegateFromSeparateComponent.qml
deleted file mode 100644
index 303e9155..00000000
--- a/tests/auto/qquickmenu/data/delegateFromSeparateComponent.qml
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 800
- height: 800
-
- property alias menu: menu
-
- Component {
- id: menuItemComponent
-
- MenuItem {
- contentItem: Text {
- text: parent.text
- color: "blue"
- }
- background: Rectangle {
- color: "#00ff00"
- }
- }
- }
-
- Menu {
- id: menu
- title: "Root Menu"
-
- Action {
- text: "Action Item 1"
- }
- Menu {
- title: "Sub-menu"
- delegate: menuItemComponent
-
- Action {
- text: "Sub-menu Action Item 1"
- }
- Menu {
- title: "Sub-sub-menu"
- delegate: menuItemComponent
-
- Action {
- text: "Sub-sub-menu Action Item 1"
- }
- }
- Action {
- text: "Sub-menu Action Item 2"
- }
- }
- Action {
- text: "Action Item 2"
- }
-
- delegate: menuItemComponent
- visible: true
- }
-}
diff --git a/tests/auto/qquickmenu/data/disableWhenTriggered.qml b/tests/auto/qquickmenu/data/disableWhenTriggered.qml
deleted file mode 100644
index c64916ae..00000000
--- a/tests/auto/qquickmenu/data/disableWhenTriggered.qml
+++ /dev/null
@@ -1,121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.10
-import QtQuick.Controls 2.3
-
-ApplicationWindow {
- width: 400
- height: 400
-
- Action {
- id: actionOutsideMenu
- text: "Action declared outside menu"
- onTriggered: enabled = false
- }
-
- menuBar: MenuBar {
- Menu {
- title: "Menu"
- objectName: title
-
- Action {
- text: "Action"
- objectName: text
- onTriggered: enabled = false
- }
- MenuItem {
- objectName: "MenuItem with Action"
- action: Action {
- text: "Action declared inside MenuItem"
- objectName: text
- onTriggered: enabled = false
- }
- }
- MenuItem {
- objectName: "MenuItem with Action declared outside menu"
- action: actionOutsideMenu
- }
- MenuItem {
- text: "MenuItem with no Action"
- objectName: text
- onTriggered: enabled = false
- }
-
- Menu {
- title: "Submenu"
- objectName: title
-
- Action {
- text: "Sub-Action"
- objectName: text
- onTriggered: enabled = false
- }
- MenuItem {
- objectName: "Sub-MenuItem with Action declared inside"
- action: Action {
- text: "Action declared inside Sub-MenuItem"
- objectName: text
- onTriggered: enabled = false
- }
- }
- MenuItem {
- objectName: "Sub-MenuItem with Action declared outside menu"
- action: actionOutsideMenu
- }
- MenuItem {
- text: "Sub-MenuItem with no Action"
- objectName: text
- onTriggered: enabled = false
- }
- }
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/disabledMenuItemKeyNavigation.qml b/tests/auto/qquickmenu/data/disabledMenuItemKeyNavigation.qml
deleted file mode 100644
index a39c5f44..00000000
--- a/tests/auto/qquickmenu/data/disabledMenuItemKeyNavigation.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 200
- height: 200
-
- property alias menu: menu
-
- Menu {
- id: menu
-
- MenuItem {
- text: qsTr("Enabled 1")
- }
- MenuItem {
- text: qsTr("Disabled 1")
- enabled: false
- }
- MenuItem {
- text: qsTr("Enabled 2")
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/menuItemWidths.qml b/tests/auto/qquickmenu/data/menuItemWidths.qml
deleted file mode 100644
index 6d2baa32..00000000
--- a/tests/auto/qquickmenu/data/menuItemWidths.qml
+++ /dev/null
@@ -1,103 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 600
- height: 600
-
- property alias menu: menu
-
- Menu {
- id: menu
- MenuItem {
- objectName: "MenuItem"
- text: "MenuItem"
- }
- MenuSeparator {
- objectName: "MenuSeparator"
- }
- Menu {
- title: "Sub-menu"
- objectName: "Sub-menu"
-
- MenuItem {
- objectName: "SubMenuItem"
- text: "SubMenuItem"
- }
- }
- Rectangle {
- objectName: "CustomSeparator"
- height: 2
- color: "salmon"
- }
- Rectangle {
- // Use a binding to test retranslate(), which re-evaluates all bindings.
- implicitWidth: someValue
- objectName: "CustomRectangleSeparator"
- height: 2
- color: "salmon"
-
- property int someValue: 120
- }
- Control {
- objectName: "CustomControlSeparator"
- implicitWidth: someOtherValue
- height: 2
- background: Rectangle {
- color: "navajowhite"
- }
-
- property int someOtherValue: 180
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/menuSeparator.qml b/tests/auto/qquickmenu/data/menuSeparator.qml
deleted file mode 100644
index ce6bd307..00000000
--- a/tests/auto/qquickmenu/data/menuSeparator.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 200
- height: 200
-
- property alias menu: menu
-
- MenuItem {
- id: newMenuItem
- text: qsTr("New")
- }
-
- MenuSeparator {
- id: menuSeparator
- }
-
- MenuItem {
- id: saveMenuItem
- text: qsTr("Save")
- }
-
- Menu {
- id: menu
-
- Component.onCompleted: {
- addItem(newMenuItem)
- addItem(menuSeparator)
- addItem(saveMenuItem)
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/mnemonics.qml b/tests/auto/qquickmenu/data/mnemonics.qml
deleted file mode 100644
index 510d2401..00000000
--- a/tests/auto/qquickmenu/data/mnemonics.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias menu: menu
- property alias action: action
- property alias menuItem: menuItem
- property alias subMenu: subMenu
- property alias subMenuItem: subMenuItem
-
- Menu {
- id: menu
-
- Action {
- id: action
- text: "&Action"
- }
-
- MenuItem {
- id: menuItem
- text: "Menu &Item"
- }
-
- Menu {
- id: subMenu
- title: "Sub &Menu"
-
- MenuItem {
- id: subMenuItem
- text: "&Sub Menu Item"
- }
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/order.qml b/tests/auto/qquickmenu/data/order.qml
deleted file mode 100644
index e03c86d3..00000000
--- a/tests/auto/qquickmenu/data/order.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 200
- height: 200
-
- property alias menu: menu
-
- Component {
- id: menuItem
- MenuItem { }
- }
-
- Menu {
- id: menu
- property alias repeater: repeater
- MenuItem { text: "static_1" }
- Repeater {
- id: repeater
- model: 2
- MenuItem { text: "repeated_" + (index + 2) }
- }
- MenuItem { text: "static_4" }
- Component.onCompleted: {
- addItem(menuItem.createObject(menu.contentItem, {text: "dynamic_5"}))
- addItem(menuItem.createObject(menu.contentItem, {text: "dynamic_6"}))
- insertItem(0, menuItem.createObject(menu.contentItem, {text: "dynamic_0"}))
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/popup.qml b/tests/auto/qquickmenu/data/popup.qml
deleted file mode 100644
index 3272cd6f..00000000
--- a/tests/auto/qquickmenu/data/popup.qml
+++ /dev/null
@@ -1,124 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 600
-
- property alias menu: menu
- property alias menuItem1: menuItem1
- property alias menuItem2: menuItem2
- property alias menuItem3: menuItem3
- property alias button: button
-
- function popupAtCursor() {
- menu.popup()
- }
-
- function popupAtPos(pos) {
- menu.popup(pos)
- }
-
- function popupAtCoord(x, y) {
- menu.popup(x, y)
- }
-
- function popupItemAtCursor(item) {
- menu.popup(item)
- }
-
- function popupItemAtPos(pos, item) {
- menu.popup(pos, item)
- }
-
- function popupItemAtCoord(x, y, item) {
- menu.popup(x, y, item)
- }
-
- function popupAtParentCursor(parent) {
- menu.popup(parent)
- }
-
- function popupAtParentPos(parent, pos) {
- menu.popup(parent, pos)
- }
-
- function popupAtParentCoord(parent, x, y) {
- menu.popup(parent, x, y)
- }
-
- function popupItemAtParentCursor(parent, item) {
- menu.popup(parent, item)
- }
-
- function popupItemAtParentPos(parent, pos, item) {
- menu.popup(parent, pos, item)
- }
-
- function popupItemAtParentCoord(parent, x, y, item) {
- menu.popup(parent, x, y, item)
- }
-
- Menu {
- id: menu
- MenuItem { id: menuItem1; text: "Foo" }
- MenuItem { id: menuItem2; text: "Bar" }
- MenuItem { id: menuItem3; text: "Baz" }
- }
-
- Button {
- id: button
- text: "Button"
- anchors.centerIn: parent
- }
-}
diff --git a/tests/auto/qquickmenu/data/pressAndHold.qml b/tests/auto/qquickmenu/data/pressAndHold.qml
deleted file mode 100644
index bcc46c08..00000000
--- a/tests/auto/qquickmenu/data/pressAndHold.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias menu: menu
-
- MouseArea {
- anchors.fill: parent
- onPressAndHold: menu.open()
- }
-
- Menu {
- id: menu
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
- MenuItem { text: "One" }
- MenuItem { text: "Two" }
- MenuItem { text: "Three" }
- }
-}
diff --git a/tests/auto/qquickmenu/data/removeTakeItem.qml b/tests/auto/qquickmenu/data/removeTakeItem.qml
deleted file mode 100644
index 8352bffd..00000000
--- a/tests/auto/qquickmenu/data/removeTakeItem.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 200
- height: 200
-
- property alias menu: menu
- property alias menuItem1: menuItem1
- property alias menuItem2: menuItem2
- property alias menuItem3: menuItem3
-
- function takeSecondItem() {
- return menu.takeItem(1)
- }
-
- function removeFirstItem() {
- menu.removeItem(menuItem1)
- }
-
- function removeNullItem() {
- menu.removeItem(null)
- }
-
- function removeFirstIndex() {
- menu.removeItem(0)
- }
-
- Menu {
- id: menu
- MenuItem {
- id: menuItem1
- }
- MenuItem {
- id: menuItem2
- }
- MenuItem {
- id: menuItem3
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/repeater.qml b/tests/auto/qquickmenu/data/repeater.qml
deleted file mode 100644
index 40f44281..00000000
--- a/tests/auto/qquickmenu/data/repeater.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 200
- height: 200
-
- property alias menu: menu
- property alias repeater: repeater
-
- Menu {
- id: menu
- Repeater {
- id: repeater
- model: 5
- MenuItem { property int idx: index }
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/subMenuDisabled.qml b/tests/auto/qquickmenu/data/subMenuDisabled.qml
deleted file mode 100644
index 36ca1103..00000000
--- a/tests/auto/qquickmenu/data/subMenuDisabled.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 600
- height: 400
-
- property alias mainMenu: mainMenu
- property alias subMenu: subMenu
-
- Menu {
- id: mainMenu
- title: "Menu"
-
- Menu {
- id: subMenu
- title: "Sub Menu"
- MenuItem {
- id: subMenuItem1
- text: "Sub Menu Item 1"
- enabled: false
- }
- MenuItem {
- id: subMenuItem2
- text: "Sub Menu Item 2"
- }
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/subMenus.qml b/tests/auto/qquickmenu/data/subMenus.qml
deleted file mode 100644
index 4952e7a1..00000000
--- a/tests/auto/qquickmenu/data/subMenus.qml
+++ /dev/null
@@ -1,134 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 600
- height: 400
-
- property alias mainMenu: mainMenu
- property alias subMenu1: subMenu1
- property alias subMenu2: subMenu2
- property alias subSubMenu1: subSubMenu1
-
- Menu {
- id: mainMenu
- MenuItem {
- id: mainMenuItem1
- objectName: "mainMenuItem1"
- text: "Main 1"
- }
-
- Menu {
- id: subMenu1
- objectName: "subMenu1"
- title: "Sub Menu 1"
-
- MenuItem {
- id: subMenuItem1
- objectName: "subMenuItem1"
- text: "Sub 1"
- }
- MenuItem {
- id: subMenuItem2
- objectName: "subMenuItem2"
- text: "Sub 2"
- }
-
- Menu {
- id: subSubMenu1
- objectName: "subSubMenu1"
- title: "Sub Sub Menu 1"
-
- MenuItem {
- id: subSubMenuItem1
- objectName: "subSubMenuItem1"
- text: "Sub Sub 1"
- }
- MenuItem {
- id: subSubMenuItem2
- objectName: "subSubMenuItem2"
- text: "Sub Sub 2"
- }
- }
- }
-
- MenuItem {
- id: mainMenuItem2
- objectName: "mainMenuItem2"
- text: "Main 2"
- }
-
- Menu {
- id: subMenu2
- objectName: "subMenu2"
- title: "Sub Menu 2"
-
- MenuItem {
- id: subMenuItem3
- objectName: "subMenuItem3"
- text: "Sub 3"
- }
- MenuItem {
- id: subMenuItem4
- objectName: "subMenuItem4"
- text: "Sub 4"
- }
- }
-
- MenuItem {
- id: mainMenuItem3
- objectName: "mainMenuItem3"
- text: "Main 3"
- }
- }
-}
diff --git a/tests/auto/qquickmenu/data/windowScrollable.qml b/tests/auto/qquickmenu/data/windowScrollable.qml
deleted file mode 100644
index 0d495242..00000000
--- a/tests/auto/qquickmenu/data/windowScrollable.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.11
-
-Window {
- title: "Test Window"
- width: 300
- height: 300
-
- property alias menu: menu
-
- Menu {
- id: menu
-
- Repeater {
- model: 20
-
- delegate: MenuItem {
- objectName: text
- text: (index + 1)
- }
- }
- }
-}
diff --git a/tests/auto/qquickmenu/qquickmenu.pro b/tests/auto/qquickmenu/qquickmenu.pro
deleted file mode 100644
index ee539842..00000000
--- a/tests/auto/qquickmenu/qquickmenu.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickmenu
-SOURCES += tst_qquickmenu.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
-
diff --git a/tests/auto/qquickmenu/tst_qquickmenu.cpp b/tests/auto/qquickmenu/tst_qquickmenu.cpp
deleted file mode 100644
index 2fe47477..00000000
--- a/tests/auto/qquickmenu/tst_qquickmenu.cpp
+++ /dev/null
@@ -1,1824 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include <QtTest/qsignalspy.h>
-#include <QtGui/qcursor.h>
-#include <QtGui/qstylehints.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQml/qqmlcontext.h>
-#include <QtQuick/qquickview.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-#include "../shared/qtest_quickcontrols.h"
-
-#include <QtQuickTemplates2/private/qquickaction_p.h>
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickoverlay_p.h>
-#include <QtQuickTemplates2/private/qquickbutton_p.h>
-#include <QtQuickTemplates2/private/qquickmenu_p.h>
-#include <QtQuickTemplates2/private/qquickmenuitem_p.h>
-#include <QtQuickTemplates2/private/qquickmenuseparator_p.h>
-
-using namespace QQuickVisualTestUtil;
-
-class tst_QQuickMenu : public QQmlDataTest
-{
- Q_OBJECT
-
-public:
-
-private slots:
- void defaults();
- void count();
- void mouse();
- void pressAndHold();
- void contextMenuKeyboard();
- void disabledMenuItemKeyNavigation();
- void mnemonics();
- void menuButton();
- void addItem();
- void menuSeparator();
- void repeater();
- void order();
- void popup();
- void actions();
- void removeTakeItem();
- void subMenuMouse_data();
- void subMenuMouse();
- void subMenuDisabledMouse_data();
- void subMenuDisabledMouse();
- void subMenuKeyboard_data();
- void subMenuKeyboard();
- void subMenuDisabledKeyboard_data();
- void subMenuDisabledKeyboard();
- void subMenuPosition_data();
- void subMenuPosition();
- void addRemoveSubMenus();
- void scrollable_data();
- void scrollable();
- void disableWhenTriggered_data();
- void disableWhenTriggered();
- void menuItemWidth_data();
- void menuItemWidth();
- void menuItemWidthAfterMenuWidthChanged_data();
- void menuItemWidthAfterMenuWidthChanged();
- void menuItemWidthAfterImplicitWidthChanged_data();
- void menuItemWidthAfterImplicitWidthChanged();
- void menuItemWidthAfterRetranslate();
-};
-
-void tst_QQuickMenu::defaults()
-{
- QQuickApplicationHelper helper(this, QLatin1String("applicationwindow.qml"));
-
- QQuickMenu *emptyMenu = helper.appWindow->property("emptyMenu").value<QQuickMenu*>();
- QCOMPARE(emptyMenu->isVisible(), false);
- QCOMPARE(emptyMenu->currentIndex(), -1);
- QCOMPARE(emptyMenu->contentItem()->property("currentIndex"), QVariant(-1));
- QCOMPARE(emptyMenu->count(), 0);
-}
-
-void tst_QQuickMenu::count()
-{
- QQuickApplicationHelper helper(this, QLatin1String("applicationwindow.qml"));
-
- QQuickMenu *menu = helper.window->property("emptyMenu").value<QQuickMenu*>();
- QVERIFY(menu);
-
- QSignalSpy countSpy(menu, &QQuickMenu::countChanged);
- QVERIFY(countSpy.isValid());
-
- menu->addItem(new QQuickItem);
- QCOMPARE(menu->count(), 1);
- QCOMPARE(countSpy.count(), 1);
-
- menu->insertItem(0, new QQuickItem);
- QCOMPARE(menu->count(), 2);
- QCOMPARE(countSpy.count(), 2);
-
- menu->removeItem(menu->itemAt(1));
- QCOMPARE(menu->count(), 1);
- QCOMPARE(countSpy.count(), 3);
-
- QScopedPointer<QQuickItem> item(menu->takeItem(0));
- QVERIFY(item);
- QCOMPARE(menu->count(), 0);
- QCOMPARE(countSpy.count(), 4);
-}
-
-void tst_QQuickMenu::mouse()
-{
- if ((QGuiApplication::platformName() == QLatin1String("offscreen"))
- || (QGuiApplication::platformName() == QLatin1String("minimal")))
- QSKIP("Mouse hovering not functional on offscreen/minimal platforms");
-
- QQuickApplicationHelper helper(this, QLatin1String("applicationwindow.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- menu->open();
- QVERIFY(menu->isVisible());
- QVERIFY(window->overlay()->childItems().contains(menu->contentItem()->parentItem()));
- QTRY_VERIFY(menu->isOpened());
-
- QQuickItem *firstItem = menu->itemAt(0);
- QSignalSpy clickedSpy(firstItem, SIGNAL(clicked()));
- QSignalSpy triggeredSpy(firstItem, SIGNAL(triggered()));
- QSignalSpy visibleSpy(menu, SIGNAL(visibleChanged()));
-
- // Ensure that presses cause the current index to change,
- // so that the highlight acts as a way of illustrating press state.
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier,
- QPoint(menu->leftPadding() + firstItem->width() / 2, menu->topPadding() + firstItem->height() / 2));
- QVERIFY(firstItem->hasActiveFocus());
- QCOMPARE(menu->currentIndex(), 0);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(0));
- QVERIFY(menu->isVisible());
-
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier,
- QPoint(menu->leftPadding() + firstItem->width() / 2, menu->topPadding() + firstItem->height() / 2));
- QCOMPARE(clickedSpy.count(), 1);
- QCOMPARE(triggeredSpy.count(), 1);
- QTRY_COMPARE(visibleSpy.count(), 1);
- QVERIFY(!menu->isVisible());
- QVERIFY(!window->overlay()->childItems().contains(menu->contentItem()));
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(-1));
-
- menu->open();
- QCOMPARE(visibleSpy.count(), 2);
- QVERIFY(menu->isVisible());
- QVERIFY(window->overlay()->childItems().contains(menu->contentItem()->parentItem()));
- QTRY_VERIFY(menu->isOpened());
-
- // Ensure that we have enough space to click outside of the menu.
- QVERIFY(window->width() > menu->contentItem()->width());
- QVERIFY(window->height() > menu->contentItem()->height());
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- QPoint(menu->contentItem()->width() + 1, menu->contentItem()->height() + 1));
- QTRY_COMPARE(visibleSpy.count(), 3);
- QVERIFY(!menu->isVisible());
- QVERIFY(!window->overlay()->childItems().contains(menu->contentItem()->parentItem()));
-
- menu->open();
- QCOMPARE(visibleSpy.count(), 4);
- QVERIFY(menu->isVisible());
- QVERIFY(window->overlay()->childItems().contains(menu->contentItem()->parentItem()));
- QTRY_VERIFY(menu->isOpened());
-
- // Hover-highlight through the menu items one by one
- QQuickItem *prevHoverItem = nullptr;
- QQuickItem *listView = menu->contentItem();
- for (int y = menu->topPadding(); y < listView->height(); ++y) {
- QQuickItem *hoverItem = nullptr;
- QVERIFY(QMetaObject::invokeMethod(listView, "itemAt", Q_RETURN_ARG(QQuickItem *, hoverItem), Q_ARG(qreal, 0), Q_ARG(qreal, listView->property("contentY").toReal() + y)));
- if (!hoverItem || !hoverItem->isVisible() || hoverItem == prevHoverItem)
- continue;
- QTest::mouseMove(window, QPoint(
- menu->leftPadding() + hoverItem->x() + hoverItem->width() / 2,
- menu->topPadding() + hoverItem->y() + hoverItem->height() / 2));
- QTRY_VERIFY(hoverItem->property("highlighted").toBool());
- if (prevHoverItem)
- QVERIFY(!prevHoverItem->property("highlighted").toBool());
- prevHoverItem = hoverItem;
- }
-
- // Try pressing within the menu and releasing outside of it; it should close.
- // TODO: won't work until QQuickPopup::releasedOutside() actually gets emitted
-// QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(firstItem->width() / 2, firstItem->height() / 2));
-// QVERIFY(firstItem->hasActiveFocus());
-// QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(0));
-// QVERIFY(menu->isVisible());
-// QCOMPARE(triggeredSpy.count(), 1);
-
-// QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(menu->contentItem()->width() + 1, firstItem->height() / 2));
-// QCOMPARE(clickedSpy.count(), 1);
-// QCOMPARE(triggeredSpy.count(), 1);
-// QCOMPARE(visibleSpy.count(), 5);
-// QVERIFY(!menu->isVisible());
-// QVERIFY(!window->overlay()->childItems().contains(menu->contentItem()));
-// QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(-1));
-}
-
-void tst_QQuickMenu::pressAndHold()
-{
- QQuickApplicationHelper helper(this, QLatin1String("pressAndHold.qml"));
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QVERIFY(menu);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QTRY_VERIFY(menu->isVisible());
-
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QVERIFY(menu->isVisible());
-
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QTRY_VERIFY(!menu->isVisible());
-}
-
-void tst_QQuickMenu::contextMenuKeyboard()
-{
- if (QGuiApplication::styleHints()->tabFocusBehavior() != Qt::TabFocusAllControls)
- QSKIP("This platform only allows tab focus for text controls");
-
- QQuickApplicationHelper helper(this, QLatin1String("applicationwindow.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
- QVERIFY(QGuiApplication::focusWindow() == window);
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(-1));
-
- QQuickMenuItem *firstItem = qobject_cast<QQuickMenuItem *>(menu->itemAt(0));
- QVERIFY(firstItem);
- QSignalSpy visibleSpy(menu, SIGNAL(visibleChanged()));
-
- menu->setFocus(true);
- menu->open();
- QCOMPARE(visibleSpy.count(), 1);
- QVERIFY(menu->isVisible());
- QVERIFY(window->overlay()->childItems().contains(menu->contentItem()->parentItem()));
- QTRY_VERIFY(menu->isOpened());
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->property("highlighted").toBool());
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(-1));
-
- QTest::keyClick(window, Qt::Key_Tab);
- QVERIFY(firstItem->hasActiveFocus());
- QVERIFY(firstItem->hasVisualFocus());
- QVERIFY(firstItem->isHighlighted());
- QCOMPARE(firstItem->focusReason(), Qt::TabFocusReason);
- QCOMPARE(menu->currentIndex(), 0);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(0));
-
- QQuickMenuItem *secondItem = qobject_cast<QQuickMenuItem *>(menu->itemAt(1));
- QVERIFY(secondItem);
- QTest::keyClick(window, Qt::Key_Tab);
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->hasVisualFocus());
- QVERIFY(!firstItem->isHighlighted());
- QVERIFY(secondItem->hasActiveFocus());
- QVERIFY(secondItem->hasVisualFocus());
- QVERIFY(secondItem->isHighlighted());
- QCOMPARE(secondItem->focusReason(), Qt::TabFocusReason);
- QCOMPARE(menu->currentIndex(), 1);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(1));
-
- QSignalSpy secondTriggeredSpy(secondItem, SIGNAL(triggered()));
- QTest::keyClick(window, Qt::Key_Space);
- QCOMPARE(secondTriggeredSpy.count(), 1);
- QTRY_COMPARE(visibleSpy.count(), 2);
- QVERIFY(!menu->isVisible());
- QVERIFY(!window->overlay()->childItems().contains(menu->contentItem()));
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->hasVisualFocus());
- QVERIFY(!firstItem->isHighlighted());
- QVERIFY(!secondItem->hasActiveFocus());
- QVERIFY(!secondItem->hasVisualFocus());
- QVERIFY(!secondItem->isHighlighted());
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(-1));
-
- // Enter/return should also work.
- // Open the menu.
- menu->open();
- QCOMPARE(visibleSpy.count(), 3);
- QVERIFY(menu->isVisible());
- QTRY_VERIFY(menu->isOpened());
- // Give the first item focus.
- QTest::keyClick(window, Qt::Key_Tab);
- QVERIFY(firstItem->hasActiveFocus());
- QVERIFY(firstItem->hasVisualFocus());
- QVERIFY(firstItem->isHighlighted());
- QCOMPARE(firstItem->focusReason(), Qt::TabFocusReason);
- QCOMPARE(menu->currentIndex(), 0);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(0));
- // Press enter.
- QSignalSpy firstTriggeredSpy(firstItem, SIGNAL(triggered()));
- QTest::keyClick(window, Qt::Key_Return);
- QCOMPARE(firstTriggeredSpy.count(), 1);
- QTRY_COMPARE(visibleSpy.count(), 4);
- QVERIFY(!menu->isVisible());
- QVERIFY(!window->overlay()->childItems().contains(menu->contentItem()));
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->hasVisualFocus());
- QVERIFY(!firstItem->isHighlighted());
- QVERIFY(!secondItem->hasActiveFocus());
- QVERIFY(!secondItem->hasVisualFocus());
- QVERIFY(!secondItem->isHighlighted());
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(-1));
-
- menu->open();
- QCOMPARE(visibleSpy.count(), 5);
- QVERIFY(menu->isVisible());
- QVERIFY(window->overlay()->childItems().contains(menu->contentItem()->parentItem()));
- QTRY_VERIFY(menu->isOpened());
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->hasVisualFocus());
- QVERIFY(!firstItem->isHighlighted());
- QVERIFY(!secondItem->hasActiveFocus());
- QVERIFY(!secondItem->hasVisualFocus());
- QVERIFY(!secondItem->isHighlighted());
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(-1));
-
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(firstItem->hasActiveFocus());
- QVERIFY(firstItem->hasVisualFocus());
- QVERIFY(firstItem->isHighlighted());
- QCOMPARE(firstItem->focusReason(), Qt::TabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(secondItem->hasActiveFocus());
- QVERIFY(secondItem->hasVisualFocus());
- QVERIFY(secondItem->isHighlighted());
- QCOMPARE(secondItem->focusReason(), Qt::TabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Down);
- QQuickMenuItem *thirdItem = qobject_cast<QQuickMenuItem *>(menu->itemAt(2));
- QVERIFY(thirdItem);
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->hasVisualFocus());
- QVERIFY(!firstItem->isHighlighted());
- QVERIFY(!secondItem->hasActiveFocus());
- QVERIFY(!secondItem->hasVisualFocus());
- QVERIFY(!secondItem->isHighlighted());
- QVERIFY(thirdItem->hasActiveFocus());
- QVERIFY(thirdItem->hasVisualFocus());
- QVERIFY(thirdItem->isHighlighted());
- QCOMPARE(thirdItem->focusReason(), Qt::TabFocusReason);
-
- // Key navigation shouldn't wrap by default.
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->hasVisualFocus());
- QVERIFY(!firstItem->isHighlighted());
- QVERIFY(!secondItem->hasActiveFocus());
- QVERIFY(!secondItem->hasVisualFocus());
- QVERIFY(!secondItem->isHighlighted());
- QVERIFY(thirdItem->hasActiveFocus());
- QVERIFY(thirdItem->hasVisualFocus());
- QVERIFY(thirdItem->isHighlighted());
- QCOMPARE(thirdItem->focusReason(), Qt::TabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Up);
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->hasVisualFocus());
- QVERIFY(!firstItem->isHighlighted());
- QVERIFY(secondItem->hasActiveFocus());
- QVERIFY(secondItem->hasVisualFocus());
- QVERIFY(secondItem->isHighlighted());
- QCOMPARE(secondItem->focusReason(), Qt::BacktabFocusReason);
- QVERIFY(!thirdItem->hasActiveFocus());
- QVERIFY(!thirdItem->hasVisualFocus());
- QVERIFY(!thirdItem->isHighlighted());
-
- QTest::keyClick(window, Qt::Key_Backtab);
- QVERIFY(firstItem->hasActiveFocus());
- QVERIFY(firstItem->hasVisualFocus());
- QVERIFY(firstItem->isHighlighted());
- QCOMPARE(firstItem->focusReason(), Qt::BacktabFocusReason);
- QVERIFY(!secondItem->hasActiveFocus());
- QVERIFY(!secondItem->hasVisualFocus());
- QVERIFY(!secondItem->isHighlighted());
- QVERIFY(!thirdItem->hasActiveFocus());
- QVERIFY(!thirdItem->hasVisualFocus());
- QVERIFY(!thirdItem->isHighlighted());
-
- QTest::keyClick(window, Qt::Key_Escape);
- QTRY_COMPARE(visibleSpy.count(), 6);
- QVERIFY(!menu->isVisible());
-}
-
-// QTBUG-70181
-void tst_QQuickMenu::disabledMenuItemKeyNavigation()
-{
- if (QGuiApplication::styleHints()->tabFocusBehavior() != Qt::TabFocusAllControls)
- QSKIP("This platform only allows tab focus for text controls");
-
- QQuickApplicationHelper helper(this, QLatin1String("disabledMenuItemKeyNavigation.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
- QVERIFY(QGuiApplication::focusWindow() == window);
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex"), QVariant(-1));
-
- QQuickMenuItem *firstItem = qobject_cast<QQuickMenuItem *>(menu->itemAt(0));
- QVERIFY(firstItem);
-
- QQuickMenuItem *secondItem = qobject_cast<QQuickMenuItem *>(menu->itemAt(1));
- QVERIFY(secondItem);
-
- QQuickMenuItem *thirdItem = qobject_cast<QQuickMenuItem *>(menu->itemAt(2));
- QVERIFY(thirdItem);
-
- menu->setFocus(true);
- menu->open();
- QVERIFY(menu->isVisible());
- QTRY_VERIFY(menu->isOpened());
- QVERIFY(!firstItem->hasActiveFocus());
- QVERIFY(!firstItem->property("highlighted").toBool());
- QCOMPARE(menu->currentIndex(), -1);
-
- QTest::keyClick(window, Qt::Key_Tab);
- QVERIFY(firstItem->hasActiveFocus());
- QVERIFY(firstItem->hasVisualFocus());
- QVERIFY(firstItem->isHighlighted());
- QCOMPARE(firstItem->focusReason(), Qt::TabFocusReason);
- QCOMPARE(menu->currentIndex(), 0);
-
- // Shouldn't be possible to give focus to a disabled menu item.
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(!secondItem->hasActiveFocus());
- QVERIFY(!secondItem->hasVisualFocus());
- QVERIFY(!secondItem->isHighlighted());
- QVERIFY(thirdItem->hasActiveFocus());
- QVERIFY(thirdItem->hasVisualFocus());
- QVERIFY(thirdItem->isHighlighted());
- QCOMPARE(thirdItem->focusReason(), Qt::TabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Up);
- QVERIFY(firstItem->hasActiveFocus());
- QVERIFY(firstItem->hasVisualFocus());
- QVERIFY(firstItem->isHighlighted());
- QCOMPARE(firstItem->focusReason(), Qt::BacktabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Escape);
- QTRY_VERIFY(!menu->isVisible());
-}
-
-void tst_QQuickMenu::mnemonics()
-{
-#ifdef Q_OS_MACOS
- QSKIP("Mnemonics are not used on macOS");
-#endif
-
- QQuickApplicationHelper helper(this, QLatin1String("mnemonics.qml"));
-
- QQuickWindow *window = helper.window;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QQuickAction *action = window->property("action").value<QQuickAction *>();
- QQuickMenuItem *menuItem = window->property("menuItem").value<QQuickMenuItem *>();
- QQuickMenu *subMenu = window->property("subMenu").value<QQuickMenu *>();
- QQuickMenuItem *subMenuItem = window->property("subMenuItem").value<QQuickMenuItem *>();
- QVERIFY(menu && action && menuItem && subMenu && subMenuItem);
-
- menu->open();
- QTRY_VERIFY(menu->isOpened());
-
- QSignalSpy actionSpy(action, &QQuickAction::triggered);
- QVERIFY(actionSpy.isValid());
- QTest::keyClick(window, Qt::Key_A, Qt::AltModifier); // "&Action"
- QCOMPARE(actionSpy.count(), 1);
-
- menu->open();
- QTRY_VERIFY(menu->isOpened());
-
- QSignalSpy menuItemSpy(menuItem, &QQuickMenuItem::triggered);
- QVERIFY(menuItemSpy.isValid());
- QTest::keyClick(window, Qt::Key_I, Qt::AltModifier); // "Menu &Item"
- QCOMPARE(menuItemSpy.count(), 1);
-
- menu->open();
- QTRY_VERIFY(menu->isOpened());
-
- QTest::keyClick(window, Qt::Key_M, Qt::AltModifier); // "Sub &Menu"
- QTRY_VERIFY(subMenu->isOpened());
-
- QSignalSpy subMenuItemSpy(subMenuItem, &QQuickMenuItem::triggered);
- QVERIFY(subMenuItemSpy.isValid());
- QTest::keyClick(window, Qt::Key_S, Qt::AltModifier); // "&Sub Menu Item"
- QCOMPARE(subMenuItemSpy.count(), 1);
-}
-
-void tst_QQuickMenu::menuButton()
-{
- if (QGuiApplication::styleHints()->tabFocusBehavior() != Qt::TabFocusAllControls)
- QSKIP("This platform only allows tab focus for text controls");
-
- QQuickApplicationHelper helper(this, QLatin1String("applicationwindow.qml"));
-
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
- QVERIFY(QGuiApplication::focusWindow() == window);
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- QQuickButton *menuButton = window->property("menuButton").value<QQuickButton*>();
- QSignalSpy visibleSpy(menu, SIGNAL(visibleChanged()));
-
- menuButton->setVisible(true);
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- menuButton->mapToScene(QPointF(menuButton->width() / 2, menuButton->height() / 2)).toPoint());
- QCOMPARE(visibleSpy.count(), 1);
- QVERIFY(menu->isVisible());
- QTRY_VERIFY(menu->isOpened());
-
- QTest::keyClick(window, Qt::Key_Tab);
- QQuickItem *firstItem = menu->itemAt(0);
- QVERIFY(firstItem->hasActiveFocus());
-}
-
-void tst_QQuickMenu::addItem()
-{
- QQuickApplicationHelper helper(this, QLatin1String("addItem.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- QVERIFY(menu);
- menu->open();
- QVERIFY(menu->isVisible());
-
- QQuickItem *menuItem = menu->itemAt(0);
- QVERIFY(menuItem);
- QTRY_VERIFY(!QQuickItemPrivate::get(menuItem)->culled); // QTBUG-53262
-
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- menuItem->mapToScene(QPointF(menuItem->width() / 2, menuItem->height() / 2)).toPoint());
- QTRY_VERIFY(!menu->isVisible());
-}
-
-void tst_QQuickMenu::menuSeparator()
-{
- QQuickApplicationHelper helper(this, QLatin1String("menuSeparator.qml"));
- QQuickWindow *window = helper.window;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- QVERIFY(menu);
- menu->open();
- QVERIFY(menu->isVisible());
-
- QQuickMenuItem *newMenuItem = qobject_cast<QQuickMenuItem*>(menu->itemAt(0));
- QVERIFY(newMenuItem);
- QCOMPARE(newMenuItem->text(), QStringLiteral("New"));
-
- QQuickMenuSeparator *menuSeparator = qobject_cast<QQuickMenuSeparator*>(menu->itemAt(1));
- QVERIFY(menuSeparator);
-
- QQuickMenuItem *saveMenuItem = qobject_cast<QQuickMenuItem*>(menu->itemAt(2));
- QVERIFY(saveMenuItem);
- QCOMPARE(saveMenuItem->text(), QStringLiteral("Save"));
- QTRY_VERIFY(!QQuickItemPrivate::get(saveMenuItem)->culled); // QTBUG-53262
-
- // Clicking on items should still close the menu.
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- newMenuItem->mapToScene(QPointF(newMenuItem->width() / 2, newMenuItem->height() / 2)).toPoint());
- QTRY_VERIFY(!menu->isVisible());
-
- menu->open();
- QVERIFY(menu->isVisible());
-
- // Clicking on a separator shouldn't close the menu.
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- menuSeparator->mapToScene(QPointF(menuSeparator->width() / 2, menuSeparator->height() / 2)).toPoint());
- QVERIFY(menu->isVisible());
-
- // Clicking on items should still close the menu.
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- saveMenuItem->mapToScene(QPointF(saveMenuItem->width() / 2, saveMenuItem->height() / 2)).toPoint());
- QTRY_VERIFY(!menu->isVisible());
-
- moveMouseAway(window);
-
- menu->open();
- QVERIFY(menu->isVisible());
- QTRY_VERIFY(menu->isOpened());
-
- // Key navigation skips separators
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(newMenuItem->hasActiveFocus());
- QVERIFY(newMenuItem->hasVisualFocus());
- QCOMPARE(newMenuItem->focusReason(), Qt::TabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(saveMenuItem->hasActiveFocus());
- QVERIFY(saveMenuItem->hasVisualFocus());
- QCOMPARE(saveMenuItem->focusReason(), Qt::TabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(saveMenuItem->hasActiveFocus());
- QVERIFY(saveMenuItem->hasVisualFocus());
- QCOMPARE(saveMenuItem->focusReason(), Qt::TabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Up);
- QVERIFY(newMenuItem->hasActiveFocus());
- QVERIFY(newMenuItem->hasVisualFocus());
- QCOMPARE(newMenuItem->focusReason(), Qt::BacktabFocusReason);
-
- QTest::keyClick(window, Qt::Key_Up);
- QVERIFY(newMenuItem->hasActiveFocus());
- QVERIFY(newMenuItem->hasVisualFocus());
- QCOMPARE(newMenuItem->focusReason(), Qt::BacktabFocusReason);
-}
-
-void tst_QQuickMenu::repeater()
-{
- QQuickApplicationHelper helper(this, QLatin1String("repeater.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- QVERIFY(menu);
- menu->open();
- QVERIFY(menu->isVisible());
-
- QObject *repeater = window->property("repeater").value<QObject*>();
- QVERIFY(repeater);
-
- int count = repeater->property("count").toInt();
- QCOMPARE(count, 5);
-
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = menu->itemAt(i);
- QVERIFY(item);
- QCOMPARE(item->property("idx").toInt(), i);
-
- QQuickItem *repeaterItem = nullptr;
- QVERIFY(QMetaObject::invokeMethod(repeater, "itemAt", Q_RETURN_ARG(QQuickItem*, repeaterItem), Q_ARG(int, i)));
- QCOMPARE(item, repeaterItem);
- }
-
- repeater->setProperty("model", 3);
-
- count = repeater->property("count").toInt();
- QCOMPARE(count, 3);
-
- for (int i = 0; i < count; ++i) {
- QQuickItem *item = menu->itemAt(i);
- QVERIFY(item);
- QCOMPARE(item->property("idx").toInt(), i);
-
- QQuickItem *repeaterItem = nullptr;
- QVERIFY(QMetaObject::invokeMethod(repeater, "itemAt", Q_RETURN_ARG(QQuickItem*, repeaterItem), Q_ARG(int, i)));
- QCOMPARE(item, repeaterItem);
- }
-}
-
-void tst_QQuickMenu::order()
-{
- QQuickApplicationHelper helper(this, QLatin1String("order.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- QVERIFY(menu);
- menu->open();
- QVERIFY(menu->isVisible());
-
- const QStringList texts = {"dynamic_0", "static_1", "repeated_2", "repeated_3", "static_4", "dynamic_5", "dynamic_6"};
-
- for (int i = 0; i < texts.count(); ++i) {
- QQuickItem *item = menu->itemAt(i);
- QVERIFY(item);
- QCOMPARE(item->property("text").toString(), texts.at(i));
- }
-}
-
-void tst_QQuickMenu::popup()
-{
- QQuickApplicationHelper helper(this, QLatin1String("popup.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QVERIFY(menu);
-
- QQuickMenuItem *menuItem1 = window->property("menuItem1").value<QQuickMenuItem *>();
- QVERIFY(menuItem1);
-
- QQuickMenuItem *menuItem2 = window->property("menuItem2").value<QQuickMenuItem *>();
- QVERIFY(menuItem2);
-
- QQuickMenuItem *menuItem3 = window->property("menuItem3").value<QQuickMenuItem *>();
- QVERIFY(menuItem3);
-
- QQuickItem *button = window->property("button").value<QQuickItem *>();
- QVERIFY(button);
-
-#if QT_CONFIG(cursor)
- QPoint oldCursorPos = QCursor::pos();
- QPoint cursorPos = window->mapToGlobal(QPoint(11, 22));
- QCursor::setPos(cursorPos);
- QTRY_COMPARE(QCursor::pos(), cursorPos);
-
- QVERIFY(QMetaObject::invokeMethod(window, "popupAtCursor"));
- QCOMPARE(menu->parentItem(), window->contentItem());
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), -1);
- const qreal elevenOrLeftMargin = qMax(qreal(11), menu->leftMargin());
- const qreal twentyTwoOrTopMargin = qMax(qreal(22), menu->topMargin());
- // If the Menu has large margins, it may be moved to stay within them.
- // QTBUG-75503: QTRY_COMPARE doesn't use qFuzzyCompare() in all cases,
- // meaning a lot of these comparisons could trigger a 10 second wait;
- // use QTRY_VERIFY and qFuzzyCompare instead.
- QTRY_VERIFY(qFuzzyCompare(menu->x(), elevenOrLeftMargin));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), twentyTwoOrTopMargin));
- menu->close();
-
- QVERIFY(QMetaObject::invokeMethod(window, "popupAtPos", Q_ARG(QVariant, QPointF(33, 44))));
- QCOMPARE(menu->parentItem(), window->contentItem());
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), -1);
- QTRY_VERIFY(qFuzzyCompare(menu->x(), 33));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), 44));
- menu->close();
-
- QVERIFY(QMetaObject::invokeMethod(window, "popupAtCoord", Q_ARG(QVariant, 55), Q_ARG(QVariant, 66)));
- QCOMPARE(menu->parentItem(), window->contentItem());
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), -1);
- QTRY_VERIFY(qFuzzyCompare(menu->x(), 55));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), 66));
- menu->close();
-
- menu->setParentItem(nullptr);
- QVERIFY(QMetaObject::invokeMethod(window, "popupAtParentCursor", Q_ARG(QVariant, QVariant::fromValue(button))));
- QCOMPARE(menu->parentItem(), button);
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), -1);
- QTRY_VERIFY(qFuzzyCompare(menu->x(), button->mapFromScene(QPointF(elevenOrLeftMargin, twentyTwoOrTopMargin)).x()));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), button->mapFromScene(QPointF(elevenOrLeftMargin, twentyTwoOrTopMargin)).y()));
- menu->close();
-
- menu->setParentItem(nullptr);
- QVERIFY(QMetaObject::invokeMethod(window, "popupAtParentPos", Q_ARG(QVariant, QVariant::fromValue(button)), Q_ARG(QVariant, QPointF(-11, -22))));
- QCOMPARE(menu->parentItem(), button);
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), -1);
- // Don't need to worry about margins here because we're opening close
- // to the center of the window.
- QTRY_VERIFY(qFuzzyCompare(menu->x(), -11));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), -22));
- QCOMPARE(menu->popupItem()->position(), button->mapToScene(QPointF(-11, -22)));
- menu->close();
-
- menu->setParentItem(nullptr);
- QVERIFY(QMetaObject::invokeMethod(window, "popupAtParentCoord", Q_ARG(QVariant, QVariant::fromValue(button)), Q_ARG(QVariant, -33), Q_ARG(QVariant, -44)));
- QCOMPARE(menu->parentItem(), button);
- QCOMPARE(menu->currentIndex(), -1);
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), -1);
- QTRY_VERIFY(qFuzzyCompare(menu->x(), -33));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), -44));
- QCOMPARE(menu->popupItem()->position(), button->mapToScene(QPointF(-33, -44)));
- menu->close();
-
- const qreal twelveOrLeftMargin = qMax(qreal(12), menu->leftMargin());
- cursorPos = window->mapToGlobal(QPoint(twelveOrLeftMargin, window->height() / 2));
- QCursor::setPos(cursorPos);
- QTRY_COMPARE(QCursor::pos(), cursorPos);
-
- const QList<QQuickMenuItem *> menuItems = QList<QQuickMenuItem *>() << menuItem1 << menuItem2 << menuItem3;
- for (QQuickMenuItem *menuItem : menuItems) {
- menu->resetParentItem();
-
- QVERIFY(QMetaObject::invokeMethod(window, "popupItemAtCursor", Q_ARG(QVariant, QVariant::fromValue(menuItem))));
- QCOMPARE(menu->currentIndex(), menuItems.indexOf(menuItem));
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), menuItems.indexOf(menuItem));
- QTRY_VERIFY(qFuzzyCompare(menu->x(), twelveOrLeftMargin));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), window->height() / 2 - menu->topPadding() - menuItem->y()));
- menu->close();
-
- QVERIFY(QMetaObject::invokeMethod(window, "popupItemAtPos", Q_ARG(QVariant, QPointF(33, window->height() / 3)), Q_ARG(QVariant, QVariant::fromValue(menuItem))));
- QCOMPARE(menu->currentIndex(), menuItems.indexOf(menuItem));
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), menuItems.indexOf(menuItem));
- QTRY_VERIFY(qFuzzyCompare(menu->x(), 33));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), window->height() / 3 - menu->topPadding() - menuItem->y()));
- menu->close();
-
- QVERIFY(QMetaObject::invokeMethod(window, "popupItemAtCoord", Q_ARG(QVariant, 55), Q_ARG(QVariant, window->height() / 3 * 2), Q_ARG(QVariant, QVariant::fromValue(menuItem))));
- QCOMPARE(menu->currentIndex(), menuItems.indexOf(menuItem));
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), menuItems.indexOf(menuItem));
- QTRY_VERIFY(qFuzzyCompare(menu->x(), 55));
- QTRY_COMPARE_WITH_TIMEOUT(menu->y(), window->height() / 3 * 2 - menu->topPadding() - menuItem->y(), 500);
- menu->close();
-
- menu->setParentItem(nullptr);
- QVERIFY(QMetaObject::invokeMethod(window, "popupItemAtParentCursor", Q_ARG(QVariant, QVariant::fromValue(button)), Q_ARG(QVariant, QVariant::fromValue(menuItem))));
- QCOMPARE(menu->parentItem(), button);
- QCOMPARE(menu->currentIndex(), menuItems.indexOf(menuItem));
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), menuItems.indexOf(menuItem));
- QTRY_VERIFY(qFuzzyCompare(menu->x(), button->mapFromScene(QPoint(twelveOrLeftMargin, window->height() / 2)).x()));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), button->mapFromScene(QPoint(twelveOrLeftMargin, window->height() / 2)).y() - menu->topPadding() - menuItem->y()));
- menu->close();
-
- menu->setParentItem(nullptr);
- QVERIFY(QMetaObject::invokeMethod(window, "popupItemAtParentPos", Q_ARG(QVariant, QVariant::fromValue(button)), Q_ARG(QVariant, QPointF(-11, -22)), Q_ARG(QVariant, QVariant::fromValue(menuItem))));
- QCOMPARE(menu->parentItem(), button);
- QCOMPARE(menu->currentIndex(), menuItems.indexOf(menuItem));
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), menuItems.indexOf(menuItem));
- QTRY_VERIFY(qFuzzyCompare(menu->x(), -11));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), -22 - menu->topPadding() - menuItem->y()));
- QCOMPARE(menu->popupItem()->position(), button->mapToScene(QPointF(-11, -22 - menu->topPadding() - menuItem->y())));
- menu->close();
-
- menu->setParentItem(nullptr);
- QVERIFY(QMetaObject::invokeMethod(window, "popupItemAtParentCoord", Q_ARG(QVariant, QVariant::fromValue(button)), Q_ARG(QVariant, -33), Q_ARG(QVariant, -44), Q_ARG(QVariant, QVariant::fromValue(menuItem))));
- QCOMPARE(menu->parentItem(), button);
- QCOMPARE(menu->currentIndex(), menuItems.indexOf(menuItem));
- QCOMPARE(menu->contentItem()->property("currentIndex").toInt(), menuItems.indexOf(menuItem));
- QTRY_VERIFY(qFuzzyCompare(menu->x(), -33));
- QTRY_VERIFY(qFuzzyCompare(menu->y(), -44 - menu->topPadding() - menuItem->y()));
- QCOMPARE(menu->popupItem()->position(), button->mapToScene(QPointF(-33, -44 - menu->topPadding() - menuItem->y())));
- menu->close();
- }
-
- QCursor::setPos(oldCursorPos);
- QTRY_COMPARE(QCursor::pos(), oldCursorPos);
-#endif
-}
-
-void tst_QQuickMenu::actions()
-{
- QQuickApplicationHelper helper(this, QLatin1String("actions.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QVERIFY(menu);
-
- QPointer<QQuickAction> action1 = menu->actionAt(0);
- QVERIFY(!action1.isNull());
-
- QPointer<QQuickAction> action3 = menu->actionAt(2);
- QVERIFY(!action3.isNull());
-
- QVERIFY(!menu->actionAt(1));
- QVERIFY(!menu->actionAt(3));
-
- QPointer<QQuickMenuItem> menuItem1 = qobject_cast<QQuickMenuItem *>(menu->itemAt(0));
- QVERIFY(!menuItem1.isNull());
- QCOMPARE(menuItem1->action(), action1.data());
- QCOMPARE(menuItem1->text(), "action1");
-
- QPointer<QQuickMenuItem> menuItem2 = qobject_cast<QQuickMenuItem *>(menu->itemAt(1));
- QVERIFY(!menuItem2.isNull());
- QVERIFY(!menuItem2->action());
- QCOMPARE(menuItem2->text(), "menuitem2");
-
- QPointer<QQuickMenuItem> menuItem3 = qobject_cast<QQuickMenuItem *>(menu->itemAt(2));
- QVERIFY(!menuItem3.isNull());
- QCOMPARE(menuItem3->action(), action3.data());
- QCOMPARE(menuItem3->text(), "action3");
-
- QPointer<QQuickMenuItem> menuItem4 = qobject_cast<QQuickMenuItem *>(menu->itemAt(3));
- QVERIFY(!menuItem4.isNull());
- QVERIFY(!menuItem4->action());
- QCOMPARE(menuItem4->text(), "menuitem4");
-
- // takeAction(int) does not destroy the action, but does destroy the respective item
- QCOMPARE(menu->takeAction(0), action1.data());
- QVERIFY(!menu->itemAt(3));
- QCoreApplication::sendPostedEvents(action1, QEvent::DeferredDelete);
- QVERIFY(!action1.isNull());
- QCoreApplication::sendPostedEvents(menuItem1, QEvent::DeferredDelete);
- QVERIFY(menuItem1.isNull());
-
- // takeAction(int) does not destroy an item that doesn't have an action
- QVERIFY(!menuItem2->subMenu());
- QVERIFY(!menu->takeAction(0));
- QCoreApplication::sendPostedEvents(menuItem2, QEvent::DeferredDelete);
- QVERIFY(!menuItem2.isNull());
-
- // addAction(Action) re-creates the respective item in the menu
- menu->addAction(action1);
- menuItem1 = qobject_cast<QQuickMenuItem *>(menu->itemAt(3));
- QVERIFY(!menuItem1.isNull());
- QCOMPARE(menuItem1->action(), action1.data());
-
- // removeAction(Action) destroys both the action and the respective item
- menu->removeAction(action1);
- QVERIFY(!menu->itemAt(3));
- QCoreApplication::sendPostedEvents(action1, QEvent::DeferredDelete);
- QVERIFY(action1.isNull());
- QCoreApplication::sendPostedEvents(menuItem1, QEvent::DeferredDelete);
- QVERIFY(menuItem1.isNull());
-}
-
-void tst_QQuickMenu::removeTakeItem()
-{
- QQuickApplicationHelper helper(this, QLatin1String("removeTakeItem.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QVERIFY(menu);
-
- QPointer<QQuickMenuItem> menuItem1 = window->property("menuItem1").value<QQuickMenuItem *>();
- QVERIFY(!menuItem1.isNull());
- QCOMPARE(menuItem1->menu(), menu);
-
- QPointer<QQuickMenuItem> menuItem2 = window->property("menuItem2").value<QQuickMenuItem *>();
- QVERIFY(!menuItem2.isNull());
- QCOMPARE(menuItem2->menu(), menu);
-
- QPointer<QQuickMenuItem> menuItem3 = window->property("menuItem3").value<QQuickMenuItem *>();
- QVERIFY(!menuItem3.isNull());
- QCOMPARE(menuItem3->menu(), menu);
-
- // takeItem(int) does not destroy
- QVariant ret;
- QVERIFY(QMetaObject::invokeMethod(window, "takeSecondItem", Q_RETURN_ARG(QVariant, ret)));
- QCOMPARE(ret.value<QQuickMenuItem *>(), menuItem2);
- QVERIFY(!menuItem2->menu());
- QCoreApplication::sendPostedEvents(menuItem2, QEvent::DeferredDelete);
- QVERIFY(!menuItem2.isNull());
-
- // removeItem(Item) destroys
- QVERIFY(QMetaObject::invokeMethod(window, "removeFirstItem"));
- QVERIFY(!menuItem1->menu());
- QCoreApplication::sendPostedEvents(menuItem1, QEvent::DeferredDelete);
- QVERIFY(menuItem1.isNull());
-
- // removeItem(null) must not call removeItem(0)
- QVERIFY(QMetaObject::invokeMethod(window, "removeNullItem"));
- QCOMPARE(menuItem3->menu(), menu);
- QCoreApplication::sendPostedEvents(menuItem3, QEvent::DeferredDelete);
- QVERIFY(!menuItem3.isNull());
-
- // deprecated removeItem(int) does not destroy
- QVERIFY(QMetaObject::invokeMethod(window, "removeFirstIndex"));
- QVERIFY(!menuItem3->menu());
- QCoreApplication::sendPostedEvents(menuItem3, QEvent::DeferredDelete);
- QVERIFY(!menuItem3.isNull());
-}
-
-void tst_QQuickMenu::subMenuMouse_data()
-{
- QTest::addColumn<bool>("cascade");
-
- QTest::newRow("cascading") << true;
- QTest::newRow("non-cascading") << false;
-}
-
-void tst_QQuickMenu::subMenuMouse()
-{
- if ((QGuiApplication::platformName() == QLatin1String("offscreen"))
- || (QGuiApplication::platformName() == QLatin1String("minimal")))
- QSKIP("Mouse hovering not functional on offscreen/minimal platforms");
-
- QFETCH(bool, cascade);
-
- QQuickApplicationHelper helper(this, QLatin1String("subMenus.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *mainMenu = window->property("mainMenu").value<QQuickMenu *>();
- QVERIFY(mainMenu);
- mainMenu->setCascade(cascade);
- QCOMPARE(mainMenu->cascade(), cascade);
-
- QQuickMenu *subMenu1 = window->property("subMenu1").value<QQuickMenu *>();
- QVERIFY(subMenu1);
-
- QQuickMenu *subMenu2 = window->property("subMenu2").value<QQuickMenu *>();
- QVERIFY(subMenu2);
-
- QQuickMenu *subSubMenu1 = window->property("subSubMenu1").value<QQuickMenu *>();
- QVERIFY(subSubMenu1);
-
- mainMenu->open();
- QVERIFY(mainMenu->isVisible());
- QTRY_VERIFY(mainMenu->isOpened());
- QVERIFY(!subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-
- // open the sub-menu with mouse click
- QQuickMenuItem *subMenu1Item = qobject_cast<QQuickMenuItem *>(mainMenu->itemAt(1));
- QVERIFY(subMenu1Item);
- QCOMPARE(subMenu1Item->subMenu(), subMenu1);
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, subMenu1Item->mapToScene(QPoint(1, 1)).toPoint());
- QTRY_COMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu1->isVisible());
- QTRY_VERIFY(subMenu1->isOpened());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-
- // open the cascading sub-sub-menu with mouse hover
- QQuickMenuItem *subSubMenu1Item = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(2));
- QVERIFY(subSubMenu1Item);
- QCOMPARE(subSubMenu1Item->subMenu(), subSubMenu1);
- QTest::mouseMove(window, subSubMenu1Item->mapToScene(QPoint(1, 1)).toPoint());
- QCOMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
- if (cascade) {
- QTRY_VERIFY(subSubMenu1->isVisible());
- QTRY_VERIFY(subSubMenu1->isOpened());
- }
-
- // close the sub-sub-menu with mouse hover over another parent menu item
- QQuickMenuItem *subMenuItem1 = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(0));
- QVERIFY(subMenuItem1);
- QVERIFY(!subMenuItem1->subMenu());
- QTest::mouseMove(window, subMenuItem1->mapToScene(QPoint(1, 1)).toPoint());
- QCOMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QTRY_VERIFY(!subSubMenu1->isVisible());
-
- // re-open the sub-sub-menu with mouse hover
- QTest::mouseMove(window, subSubMenu1Item->mapToScene(QPoint(1, 1)).toPoint());
- QCOMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- if (!cascade) {
- QVERIFY(!subSubMenu1->isVisible());
- } else {
- QTRY_VERIFY(subSubMenu1->isVisible());
- QTRY_VERIFY(subSubMenu1->isOpened());
- }
-
- // close sub-menu and sub-sub-menu with mouse hover in the main menu
- QQuickMenuItem *mainMenuItem1 = qobject_cast<QQuickMenuItem *>(mainMenu->itemAt(0));
- QVERIFY(mainMenuItem1);
- QTest::mouseMove(window, mainMenuItem1->mapToScene(QPoint(1, 1)).toPoint());
- QCOMPARE(mainMenu->isVisible(), cascade);
- QTRY_COMPARE(subMenu1->isVisible(), !cascade);
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-
- // close all menus by click triggering an item
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, mainMenuItem1->mapToScene(QPoint(1, 1)).toPoint());
- QTRY_VERIFY(!mainMenu->isVisible());
- QTRY_VERIFY(!subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-}
-
-void tst_QQuickMenu::subMenuDisabledMouse_data()
-{
- subMenuMouse_data();
-}
-
-// QTBUG-69540
-void tst_QQuickMenu::subMenuDisabledMouse()
-{
- if ((QGuiApplication::platformName() == QLatin1String("offscreen"))
- || (QGuiApplication::platformName() == QLatin1String("minimal")))
- QSKIP("Mouse hovering not functional on offscreen/minimal platforms");
-
- QFETCH(bool, cascade);
-
- QQuickApplicationHelper helper(this, QLatin1String("subMenuDisabled.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *mainMenu = window->property("mainMenu").value<QQuickMenu *>();
- QVERIFY(mainMenu);
- mainMenu->setCascade(cascade);
- QCOMPARE(mainMenu->cascade(), cascade);
-
- QQuickMenuItem *menuItem1 = qobject_cast<QQuickMenuItem *>(mainMenu->itemAt(0));
- QVERIFY(menuItem1);
-
- QQuickMenu *subMenu = window->property("subMenu").value<QQuickMenu *>();
- QVERIFY(subMenu);
-
- mainMenu->open();
- QVERIFY(mainMenu->isVisible());
- QVERIFY(!menuItem1->isHighlighted());
- QVERIFY(!subMenu->isVisible());
-
- // Open the sub-menu with a mouse click.
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, menuItem1->mapToScene(QPoint(1, 1)).toPoint());
- // Need to use the TRY variant here when cascade is false,
- // as e.g. Material style menus have transitions and don't close immediately.
- QTRY_COMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu->isVisible());
- QVERIFY(menuItem1->isHighlighted());
- // Now the sub-menu is open. The current behavior is that the first menu item
- // in the new menu is highlighted; make sure that we choose the next item if
- // the first is disabled.
- QQuickMenuItem *subMenuItem1 = qobject_cast<QQuickMenuItem *>(subMenu->itemAt(0));
- QVERIFY(subMenuItem1);
- QQuickMenuItem *subMenuItem2 = qobject_cast<QQuickMenuItem *>(subMenu->itemAt(1));
- QVERIFY(subMenuItem2);
- QVERIFY(!subMenuItem1->isHighlighted());
- QVERIFY(subMenuItem2->isHighlighted());
-
- // Close all menus by clicking on the item that isn't disabled.
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, subMenuItem2->mapToScene(QPoint(1, 1)).toPoint());
- QTRY_VERIFY(!mainMenu->isVisible());
- QTRY_VERIFY(!subMenu->isVisible());
-}
-
-void tst_QQuickMenu::subMenuKeyboard_data()
-{
- QTest::addColumn<bool>("cascade");
- QTest::addColumn<bool>("mirrored");
-
- QTest::newRow("cascading") << true << false;
- QTest::newRow("cascading,mirrored") << true << true;
- QTest::newRow("non-cascading") << false << false;
- QTest::newRow("non-cascading,mirrored") << false << true;
-}
-
-void tst_QQuickMenu::subMenuKeyboard()
-{
- QFETCH(bool, cascade);
- QFETCH(bool, mirrored);
-
- QQuickApplicationHelper helper(this, QLatin1String("subMenus.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- if (mirrored)
- window->setLocale(QLocale("ar_EG"));
-
- QQuickMenu *mainMenu = window->property("mainMenu").value<QQuickMenu *>();
- QVERIFY(mainMenu);
- mainMenu->setCascade(cascade);
- QCOMPARE(mainMenu->cascade(), cascade);
-
- QQuickMenu *subMenu1 = window->property("subMenu1").value<QQuickMenu *>();
- QVERIFY(subMenu1);
-
- QQuickMenu *subMenu2 = window->property("subMenu2").value<QQuickMenu *>();
- QVERIFY(subMenu2);
-
- QQuickMenu *subSubMenu1 = window->property("subSubMenu1").value<QQuickMenu *>();
- QVERIFY(subSubMenu1);
-
- mainMenu->open();
- QVERIFY(mainMenu->isVisible());
- QTRY_VERIFY(mainMenu->isOpened());
- QVERIFY(!subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-
- // navigate to the sub-menu item and trigger it to open the sub-menu
- QQuickMenuItem *subMenu1Item = qobject_cast<QQuickMenuItem *>(mainMenu->itemAt(1));
- QVERIFY(subMenu1Item);
- QVERIFY(!subMenu1Item->isHighlighted());
- QCOMPARE(subMenu1Item->subMenu(), subMenu1);
- QTest::keyClick(window, Qt::Key_Down);
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(subMenu1Item->isHighlighted());
- QTest::keyClick(window, Qt::Key_Space);
- QTRY_COMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu1->isVisible());
- QTRY_VERIFY(subMenu1->isOpened());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-
- // navigate to the sub-sub-menu item and open it with the arrow key
- QQuickMenuItem *subSubMenu1Item = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(2));
- QVERIFY(subSubMenu1Item);
- QVERIFY(!subSubMenu1Item->isHighlighted());
- QCOMPARE(subSubMenu1Item->subMenu(), subSubMenu1);
- QTest::keyClick(window, Qt::Key_Down);
- QTest::keyClick(window, Qt::Key_Down);
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(subSubMenu1Item->isHighlighted());
- QTRY_COMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
- QTest::keyClick(window, mirrored ? Qt::Key_Left : Qt::Key_Right);
- QCOMPARE(mainMenu->isVisible(), cascade);
- QTRY_COMPARE(subMenu1->isVisible(), cascade);
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(subSubMenu1->isVisible());
- QTRY_VERIFY(subSubMenu1->isOpened());
-
- // navigate within the sub-sub-menu
- QQuickMenuItem *subSubMenuItem1 = qobject_cast<QQuickMenuItem *>(subSubMenu1->itemAt(0));
- QVERIFY(subSubMenuItem1);
- QQuickMenuItem *subSubMenuItem2 = qobject_cast<QQuickMenuItem *>(subSubMenu1->itemAt(1));
- QVERIFY(subSubMenuItem2);
- QVERIFY(subSubMenuItem1->isHighlighted());
- QVERIFY(!subSubMenuItem2->isHighlighted());
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(!subSubMenuItem1->isHighlighted());
- QVERIFY(subSubMenuItem2->isHighlighted());
-
- // navigate to the parent menu with the arrow key
- QTest::keyClick(window, mirrored ? Qt::Key_Right : Qt::Key_Left);
- QVERIFY(subSubMenu1Item->isHighlighted());
- QCOMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QTRY_VERIFY(!subSubMenu1->isVisible());
-
- // navigate within the sub-menu
- QQuickMenuItem *subMenuItem1 = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(0));
- QVERIFY(subMenuItem1);
- QQuickMenuItem *subMenuItem2 = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(1));
- QVERIFY(subMenuItem2);
- QVERIFY(!subMenuItem1->isHighlighted());
- QVERIFY(!subMenuItem2->isHighlighted());
- QVERIFY(subSubMenu1Item->isHighlighted());
- QTest::keyClick(window, Qt::Key_Up);
- QVERIFY(!subMenuItem1->isHighlighted());
- QVERIFY(subMenuItem2->isHighlighted());
- QVERIFY(!subSubMenu1Item->isHighlighted());
-
- // close the menus with esc
- QTest::keyClick(window, Qt::Key_Escape);
- QCOMPARE(mainMenu->isVisible(), cascade);
- QTRY_VERIFY(!subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
- QTest::keyClick(window, Qt::Key_Escape);
- QTRY_VERIFY(!mainMenu->isVisible());
- QVERIFY(!subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-}
-
-void tst_QQuickMenu::subMenuDisabledKeyboard_data()
-{
- subMenuKeyboard_data();
-}
-
-// QTBUG-69540
-void tst_QQuickMenu::subMenuDisabledKeyboard()
-{
- QFETCH(bool, cascade);
- QFETCH(bool, mirrored);
-
- QQuickApplicationHelper helper(this, QLatin1String("subMenuDisabled.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- if (mirrored)
- window->setLocale(QLocale("ar_EG"));
-
- QQuickMenu *mainMenu = window->property("mainMenu").value<QQuickMenu *>();
- QVERIFY(mainMenu);
- mainMenu->setCascade(cascade);
- QCOMPARE(mainMenu->cascade(), cascade);
-
- QQuickMenuItem *menuItem1 = qobject_cast<QQuickMenuItem *>(mainMenu->itemAt(0));
- QVERIFY(menuItem1);
-
- QQuickMenu *subMenu = window->property("subMenu").value<QQuickMenu *>();
- QVERIFY(subMenu);
-
- mainMenu->open();
- QVERIFY(mainMenu->isVisible());
- QTRY_VERIFY(mainMenu->isOpened());
- QVERIFY(!menuItem1->isHighlighted());
- QVERIFY(!subMenu->isVisible());
-
- // Highlight the top-level menu item.
- QTest::keyClick(window, Qt::Key_Down);
- QVERIFY(menuItem1->isHighlighted());
-
- QQuickMenuItem *subMenuItem1 = qobject_cast<QQuickMenuItem *>(subMenu->itemAt(0));
- QVERIFY(subMenuItem1);
- QQuickMenuItem *subMenuItem2 = qobject_cast<QQuickMenuItem *>(subMenu->itemAt(1));
- QVERIFY(subMenuItem2);
-
- // Open the sub-menu.
- QTest::keyClick(window, mirrored ? Qt::Key_Left : Qt::Key_Right);
- // The first sub-menu item is disabled, so it should highlight the second one.
- QVERIFY(!subMenuItem1->isHighlighted());
- QVERIFY(subMenuItem2->isHighlighted());
-
- // Close the menus with escape.
- QTest::keyClick(window, Qt::Key_Escape);
- QTRY_COMPARE(mainMenu->isVisible(), cascade);
- QTRY_VERIFY(!subMenu->isVisible());
- QTest::keyClick(window, Qt::Key_Escape);
- QTRY_VERIFY(!mainMenu->isVisible());
- QVERIFY(!subMenu->isVisible());
-}
-
-void tst_QQuickMenu::subMenuPosition_data()
-{
- QTest::addColumn<bool>("cascade");
- QTest::addColumn<bool>("flip");
- QTest::addColumn<bool>("mirrored");
- QTest::addColumn<qreal>("overlap");
-
- QTest::newRow("cascading") << true << false << false << 0.0;
- QTest::newRow("cascading,flip") << true << true << false << 0.0;
- QTest::newRow("cascading,overlap") << true << false << false << 10.0;
- QTest::newRow("cascading,flip,overlap") << true << true << false << 10.0;
- QTest::newRow("cascading,mirrored") << true << false << true << 0.0;
- QTest::newRow("cascading,mirrored,flip") << true << true << true << 0.0;
- QTest::newRow("cascading,mirrored,overlap") << true << false << true << 10.0;
- QTest::newRow("cascading,mirrored,flip,overlap") << true << true << true << 10.0;
- QTest::newRow("non-cascading") << false << false << false << 0.0;
-}
-
-void tst_QQuickMenu::subMenuPosition()
-{
- QFETCH(bool, cascade);
- QFETCH(bool, flip);
- QFETCH(bool, mirrored);
- QFETCH(qreal, overlap);
-
- QQuickApplicationHelper helper(this, QLatin1String("subMenus.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
-
- // Ensure that the default size of the window fits three menus side by side.
- QQuickMenu *mainMenu = window->property("mainMenu").value<QQuickMenu *>();
- QVERIFY(mainMenu);
- window->setWidth(mainMenu->width() * 3 + mainMenu->leftMargin() + mainMenu->rightMargin());
-
- // the default size of the window fits three menus side by side.
- // when testing flipping, we resize the window so that the first
- // sub-menu fits, but the second doesn't
- if (flip)
- window->setWidth(window->width() - mainMenu->width());
-
- centerOnScreen(window);
- moveMouseAway(window);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- if (mirrored)
- window->setLocale(QLocale("ar_EG"));
-
- mainMenu->setCascade(cascade);
- QCOMPARE(mainMenu->cascade(), cascade);
- mainMenu->setOverlap(overlap);
- QCOMPARE(mainMenu->overlap(), overlap);
-
- QQuickMenu *subMenu1 = window->property("subMenu1").value<QQuickMenu *>();
- QVERIFY(subMenu1);
- subMenu1->setCascade(cascade);
- QCOMPARE(subMenu1->cascade(), cascade);
- subMenu1->setOverlap(overlap);
- QCOMPARE(subMenu1->overlap(), overlap);
-
- QQuickMenu *subMenu2 = window->property("subMenu2").value<QQuickMenu *>();
- QVERIFY(subMenu2);
- subMenu2->setCascade(cascade);
- QCOMPARE(subMenu2->cascade(), cascade);
- subMenu2->setOverlap(overlap);
- QCOMPARE(subMenu2->overlap(), overlap);
-
- QQuickMenu *subSubMenu1 = window->property("subSubMenu1").value<QQuickMenu *>();
- QVERIFY(subSubMenu1);
- subSubMenu1->setCascade(cascade);
- QCOMPARE(subSubMenu1->cascade(), cascade);
- subSubMenu1->setOverlap(overlap);
- QCOMPARE(subSubMenu1->overlap(), overlap);
-
- // choose the main menu position so that there's room for the
- // sub-menus to cascade to the left when mirrored
- if (mirrored)
- mainMenu->setX(window->width() - mainMenu->width());
-
- mainMenu->open();
- QVERIFY(mainMenu->isVisible());
- QTRY_VERIFY(mainMenu->isOpened());
- QVERIFY(!subMenu1->isVisible());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-
- // open the sub-menu (never flips)
- QQuickMenuItem *subMenu1Item = qobject_cast<QQuickMenuItem *>(mainMenu->itemAt(1));
- QVERIFY(subMenu1Item);
- QCOMPARE(subMenu1Item->subMenu(), subMenu1);
- emit subMenu1Item->triggered();
- QTRY_COMPARE(mainMenu->isVisible(), cascade);
- QVERIFY(subMenu1->isVisible());
- QTRY_VERIFY(subMenu1->isOpened());
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(!subSubMenu1->isVisible());
-
- if (cascade) {
- QCOMPARE(subMenu1->parentItem(), subMenu1Item);
- // vertically aligned to the parent menu item
- QCOMPARE(subMenu1->popupItem()->y(), mainMenu->popupItem()->y() + subMenu1Item->y());
- if (mirrored) {
- // on the left of the parent menu
- QCOMPARE(subMenu1->popupItem()->x(), mainMenu->popupItem()->x() - subMenu1->width() + overlap);
- } else {
- // on the right of the parent menu
- QCOMPARE(subMenu1->popupItem()->x(), mainMenu->popupItem()->x() + mainMenu->width() - overlap);
- }
- } else {
- QCOMPARE(subMenu1->parentItem(), mainMenu->parentItem());
- // centered over the parent menu
- QCOMPARE(subMenu1->popupItem()->x(), mainMenu->popupItem()->x() + (mainMenu->width() - subMenu1->width()) / 2);
- QCOMPARE(subMenu1->popupItem()->y(), mainMenu->popupItem()->y() + (mainMenu->height() - subMenu1->height()) / 2);
- }
-
- // open the sub-sub-menu (can flip)
- QQuickMenuItem *subSubMenu1Item = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(2));
- QVERIFY(subSubMenu1Item);
- QCOMPARE(subSubMenu1Item->subMenu(), subSubMenu1);
- emit subSubMenu1Item->triggered();
- QTRY_COMPARE(mainMenu->isVisible(), cascade);
- QTRY_COMPARE(subMenu1->isVisible(), cascade);
- QVERIFY(!subMenu2->isVisible());
- QVERIFY(subSubMenu1->isVisible());
- QTRY_VERIFY(subSubMenu1->isOpened());
-
- if (cascade) {
- QCOMPARE(subSubMenu1->parentItem(), subSubMenu1Item);
- // vertically aligned to the parent menu item
- QCOMPARE(subSubMenu1->popupItem()->y(), subMenu1->popupItem()->y() + subSubMenu1Item->y());
- if (mirrored != flip) {
- // on the left of the parent menu
- QCOMPARE(subSubMenu1->popupItem()->x(), subMenu1->popupItem()->x() - subSubMenu1->width() + overlap);
- } else {
- // on the right of the parent menu
- QCOMPARE(subSubMenu1->popupItem()->x(), subMenu1->popupItem()->x() + subMenu1->width() - overlap);
- }
- } else {
- QCOMPARE(subSubMenu1->parentItem(), subMenu1->parentItem());
- // centered over the parent menu
- QCOMPARE(subSubMenu1->popupItem()->x(), subMenu1->popupItem()->x() + (subMenu1->width() - subSubMenu1->width()) / 2);
- QCOMPARE(subSubMenu1->popupItem()->y(), subMenu1->popupItem()->y() + (subMenu1->height() - subSubMenu1->height()) / 2);
- }
-}
-
-void tst_QQuickMenu::addRemoveSubMenus()
-{
- QQuickApplicationHelper helper(this, QLatin1String("subMenus.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *mainMenu = window->property("mainMenu").value<QQuickMenu *>();
- QVERIFY(mainMenu);
-
- QVERIFY(!mainMenu->menuAt(0));
-
- QPointer<QQuickMenu> subMenu1 = window->property("subMenu1").value<QQuickMenu *>();
- QVERIFY(!subMenu1.isNull());
- QCOMPARE(mainMenu->menuAt(1), subMenu1.data());
-
- QVERIFY(!mainMenu->menuAt(2));
-
- QPointer<QQuickMenu> subMenu2 = window->property("subMenu2").value<QQuickMenu *>();
- QVERIFY(!subMenu2.isNull());
- QCOMPARE(mainMenu->menuAt(3), subMenu2.data());
-
- QVERIFY(!mainMenu->menuAt(4));
-
- QPointer<QQuickMenu> subSubMenu1 = window->property("subSubMenu1").value<QQuickMenu *>();
- QVERIFY(!subSubMenu1.isNull());
-
- // takeMenu(int) does not destroy the menu, but does destroy the respective item in the parent menu
- QPointer<QQuickMenuItem> subSubMenu1Item = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(2));
- QVERIFY(subSubMenu1Item);
- QCOMPARE(subSubMenu1Item->subMenu(), subSubMenu1.data());
- QCOMPARE(subMenu1->takeMenu(2), subSubMenu1.data());
- QVERIFY(!subMenu1->itemAt(2));
- QCoreApplication::sendPostedEvents(subSubMenu1, QEvent::DeferredDelete);
- QVERIFY(!subSubMenu1.isNull());
- QCoreApplication::sendPostedEvents(subSubMenu1Item, QEvent::DeferredDelete);
- QVERIFY(subSubMenu1Item.isNull());
-
- // takeMenu(int) does not destroy an item that doesn't present a menu
- QPointer<QQuickMenuItem> subMenuItem1 = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(0));
- QVERIFY(subMenuItem1);
- QVERIFY(!subMenuItem1->subMenu());
- QVERIFY(!subMenu1->takeMenu(0));
- QCoreApplication::sendPostedEvents(subMenuItem1, QEvent::DeferredDelete);
- QVERIFY(!subMenuItem1.isNull());
-
- // addMenu(Menu) re-creates the respective item in the parent menu
- subMenu1->addMenu(subSubMenu1);
- subSubMenu1Item = qobject_cast<QQuickMenuItem *>(subMenu1->itemAt(2));
- QVERIFY(!subSubMenu1Item.isNull());
-
- // removeMenu(Menu) destroys both the menu and the respective item in the parent menu
- subMenu1->removeMenu(subSubMenu1);
- QVERIFY(!subMenu1->itemAt(2));
- QCoreApplication::sendPostedEvents(subSubMenu1, QEvent::DeferredDelete);
- QVERIFY(subSubMenu1.isNull());
- QCoreApplication::sendPostedEvents(subSubMenu1Item, QEvent::DeferredDelete);
- QVERIFY(subSubMenu1Item.isNull());
-}
-
-void tst_QQuickMenu::scrollable_data()
-{
- QTest::addColumn<QString>("qmlFilePath");
-
- QTest::addRow("Window") << QString::fromLatin1("windowScrollable.qml");
- QTest::addRow("ApplicationWindow") << QString::fromLatin1("applicationWindowScrollable.qml");
-}
-
-void tst_QQuickMenu::scrollable()
-{
- QFETCH(QString, qmlFilePath);
-
- QQuickApplicationHelper helper(this, qmlFilePath);
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu*>();
- menu->open();
- QVERIFY(menu->isVisible());
-
- QQuickItem *contentItem = menu->contentItem();
- QCOMPARE(contentItem->property("interactive").toBool(), true);
-}
-
-void tst_QQuickMenu::disableWhenTriggered_data()
-{
- QTest::addColumn<int>("menuItemIndex");
- QTest::addColumn<int>("subMenuItemIndex");
-
- QTest::addRow("Action") << 0 << -1;
- QTest::addRow("MenuItem with Action") << 1 << -1;
- QTest::addRow("MenuItem with Action declared outside menu") << 2 << -1;
- QTest::addRow("MenuItem with no Action") << 3 << -1;
-
- QTest::addRow("Sub-Action") << 4 << 0;
- QTest::addRow("Sub-MenuItem with Action declared inside") << 4 << 1;
- QTest::addRow("Sub-MenuItem with Action declared outside menu") << 4 << 2;
- QTest::addRow("Sub-MenuItem with no Action") << 4 << 3;
-}
-
-// Tests that the menu is dismissed when a menu item sets "enabled = false" in onTriggered().
-void tst_QQuickMenu::disableWhenTriggered()
-{
- if ((QGuiApplication::platformName() == QLatin1String("offscreen"))
- || (QGuiApplication::platformName() == QLatin1String("minimal")))
- QSKIP("Mouse hovering not functional on offscreen/minimal platforms");
-
- QFETCH(int, menuItemIndex);
- QFETCH(int, subMenuItemIndex);
-
- QQuickApplicationHelper helper(this, QLatin1String("disableWhenTriggered.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->findChild<QQuickMenu*>("Menu");
- QVERIFY(menu);
-
- menu->open();
- QVERIFY(menu->isVisible());
- QTRY_VERIFY(menu->isOpened());
-
- QPointer<QQuickMenuItem> menuItem = qobject_cast<QQuickMenuItem*>(menu->itemAt(menuItemIndex));
- QVERIFY(menuItem);
-
- if (subMenuItemIndex == -1) {
- // Click a top-level menu item.
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- menuItem->mapToScene(QPointF(menuItem->width() / 2, menuItem->height() / 2)).toPoint());
- QCOMPARE(menuItem->isEnabled(), false);
- QTRY_VERIFY(!menu->isVisible());
- } else {
- // Click a sub-menu item.
- QPointer<QQuickMenu> subMenu = menuItem->subMenu();
- QVERIFY(subMenu);
-
- QPointer<QQuickMenuItem> subMenuItem = qobject_cast<QQuickMenuItem*>(subMenu->itemAt(subMenuItemIndex));
- QVERIFY(subMenuItem);
-
- // First, open the sub-menu.
- QTest::mouseMove(window, menuItem->mapToScene(QPoint(1, 1)).toPoint());
- QTRY_VERIFY(subMenu->isVisible());
- QVERIFY(menuItem->isHovered());
- QTRY_VERIFY(subMenu->contentItem()->property("contentHeight").toReal() > 0.0);
-
- // Click the item.
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- subMenuItem->mapToScene(QPointF(subMenuItem->width() / 2, subMenuItem->height() / 2)).toPoint());
- QCOMPARE(subMenuItem->isEnabled(), false);
- QTRY_VERIFY(!menu->isVisible());
- }
-}
-
-void tst_QQuickMenu::menuItemWidth_data()
-{
- QTest::addColumn<bool>("mirrored");
-
- QTest::newRow("non-mirrored") << false;
- QTest::newRow("mirrored") << true;
-}
-
-void tst_QQuickMenu::menuItemWidth()
-{
- QFETCH(bool, mirrored);
-
- QQuickApplicationHelper helper(this, QLatin1String("menuItemWidths.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- if (mirrored)
- window->setLocale(QLocale("ar_EG"));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QVERIFY(menu);
- menu->open();
- QTRY_VERIFY(menu->isOpened());
- for (int i = 0; i < menu->count(); ++i)
- QCOMPARE(menu->itemAt(i)->width(), menu->availableWidth());
-}
-
-void tst_QQuickMenu::menuItemWidthAfterMenuWidthChanged_data()
-{
- QTest::addColumn<bool>("mirrored");
-
- QTest::newRow("non-mirrored") << false;
- QTest::newRow("mirrored") << true;
-}
-
-void tst_QQuickMenu::menuItemWidthAfterMenuWidthChanged()
-{
- QFETCH(bool, mirrored);
-
- QQuickApplicationHelper helper(this, QLatin1String("menuItemWidths.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- if (mirrored)
- window->setLocale(QLocale("ar_EG"));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QVERIFY(menu);
- menu->open();
- QTRY_VERIFY(menu->isOpened());
- for (int i = 0; i < menu->count(); ++i) {
- // Check that the width of menu items is correct before we resize the menu.
- const QQuickItem *item = menu->itemAt(i);
- QVERIFY2(qFuzzyCompare(item->width(), menu->availableWidth()),
- qPrintable(QString::fromLatin1("Expected width of %1 to be %2, but it's %3")
- .arg(item->objectName()).arg(menu->availableWidth()).arg(item->width())));
- }
-
- menu->setWidth(menu->width() + 10);
-
- // Check that the width of menu items is correct after we resize the menu.
- for (int i = 0; i < menu->count(); ++i) {
- // Check that the width of menu items is correct after we resize the menu.
- const QQuickItem *item = menu->itemAt(i);
- QVERIFY2(qFuzzyCompare(item->width(), menu->availableWidth()),
- qPrintable(QString::fromLatin1("Expected width of %1 to be %2, but it's %3")
- .arg(item->objectName()).arg(menu->availableWidth()).arg(item->width())));
- }
-}
-
-void tst_QQuickMenu::menuItemWidthAfterImplicitWidthChanged_data()
-{
- QTest::addColumn<bool>("mirrored");
-
- QTest::newRow("non-mirrored") << false;
- QTest::newRow("mirrored") << true;
-}
-
-void tst_QQuickMenu::menuItemWidthAfterImplicitWidthChanged()
-{
- QFETCH(bool, mirrored);
-
- QQuickApplicationHelper helper(this, QLatin1String("menuItemWidths.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- if (mirrored)
- window->setLocale(QLocale("ar_EG"));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QVERIFY(menu);
- menu->open();
- QTRY_VERIFY(menu->isOpened());
- // Check that the width of the menu item is correct before we change its font size.
- QQuickMenuItem *menuItem = qobject_cast<QQuickMenuItem*>(menu->itemAt(0));
- QCOMPARE(menuItem->width(), menu->availableWidth());
-
- // Add some text to increase the implicitWidth of the MenuItem.
- const qreal oldImplicitWidth = menuItem->implicitWidth();
- for (int i = 0; menuItem->implicitWidth() <= oldImplicitWidth; ++i) {
- menuItem->setText(menuItem->text() + QLatin1String("---"));
- if (i == 100)
- QFAIL("Shouldn't need 100 iterations to increase MenuItem's implicitWidth; something is wrong here");
- }
-
- // Check that the width of the menu item is correct after we change its font size.
- QCOMPARE(menuItem->width(), menu->availableWidth());
-}
-
-void tst_QQuickMenu::menuItemWidthAfterRetranslate()
-{
- QQuickApplicationHelper helper(this, QLatin1String("menuItemWidths.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickMenu *menu = window->property("menu").value<QQuickMenu *>();
- QVERIFY(menu);
- menu->open();
- QTRY_VERIFY(menu->isOpened());
- for (int i = 0; i < menu->count(); ++i) {
- // Check that the width of each menu item is correct before we retranslate.
- const QQuickItem *item = menu->itemAt(i);
- QVERIFY2(qFuzzyCompare(item->width(), menu->availableWidth()),
- qPrintable(QString::fromLatin1("Expected width of %1 to be %2, but it's %3")
- .arg(item->objectName()).arg(menu->availableWidth()).arg(item->width())));
- }
-
- // Call retranslate() and cause all bindings to be re-evaluated.
- helper.engine.retranslate();
-
- for (int i = 0; i < menu->count(); ++i) {
- // Check that the width of each menu item is correct after we retranslate.
- const QQuickItem *item = menu->itemAt(i);
- QVERIFY2(qFuzzyCompare(item->width(), menu->availableWidth()),
- qPrintable(QString::fromLatin1("Expected width of %1 to be %2, but it's %3")
- .arg(item->objectName()).arg(menu->availableWidth()).arg(item->width())));
- }
-}
-
-QTEST_QUICKCONTROLS_MAIN(tst_QQuickMenu)
-
-#include "tst_qquickmenu.moc"
diff --git a/tests/auto/qquickmenubar/data/delegateFromSeparateComponent.qml b/tests/auto/qquickmenubar/data/delegateFromSeparateComponent.qml
deleted file mode 100644
index 82321bca..00000000
--- a/tests/auto/qquickmenubar/data/delegateFromSeparateComponent.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 800
- height: 800
-
- Component {
- id: menuBarItemComponent
-
- MenuBarItem {
- contentItem: Text {
- text: parent.text
- color: "blue"
- }
- background: Rectangle {
- color: "#00ff00"
- }
- }
- }
-
- menuBar: MenuBar {
- delegate: menuBarItemComponent
-
- Menu {
- title: "Menu"
- }
- }
-}
diff --git a/tests/auto/qquickmenubar/data/empty.qml b/tests/auto/qquickmenubar/data/empty.qml
deleted file mode 100644
index 87a3d73d..00000000
--- a/tests/auto/qquickmenubar/data/empty.qml
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-MenuBar { }
diff --git a/tests/auto/qquickmenubar/data/menubar.qml b/tests/auto/qquickmenubar/data/menubar.qml
deleted file mode 100644
index 1ef83a6f..00000000
--- a/tests/auto/qquickmenubar/data/menubar.qml
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
- visible: true
-
- header: MenuBar {
- MenuBarItem {
- menu: Menu {
- title: "&File"
- MenuItem { text: "&Open..." }
- MenuItem { text: "&Save" }
- MenuItem { text: "Save &As..." }
- MenuSeparator { }
- MenuItem { text: "&Quit" }
- }
- }
- MenuBarItem {
- menu: Menu {
- title: "&Edit"
- MenuItem { text: "&Cut" }
- MenuItem { text: "&Copy" }
- MenuItem { text: "&Paste" }
- }
- }
- MenuBarItem {
- menu: Menu {
- title: "&View"
- Menu {
- title: "&Alignment"
- Menu {
- title: "&Horizontal"
- MenuItem { text: "&Left" }
- MenuItem { text: "&Center" }
- MenuItem { text: "&Right" }
- }
- Menu {
- title: "&Vertical"
- MenuItem { text: "&Top" }
- MenuItem { text: "&Center" }
- MenuItem { text: "&Bottom" }
- }
- }
- }
- }
-
- MenuBarItem {
- menu: Menu {
- title: "&Help"
- MenuItem { text: "&About" }
- }
- }
- }
-}
diff --git a/tests/auto/qquickmenubar/qquickmenubar.pro b/tests/auto/qquickmenubar/qquickmenubar.pro
deleted file mode 100644
index b7d41f0f..00000000
--- a/tests/auto/qquickmenubar/qquickmenubar.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickmenubar
-SOURCES += tst_qquickmenubar.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
diff --git a/tests/auto/qquickmenubar/tst_qquickmenubar.cpp b/tests/auto/qquickmenubar/tst_qquickmenubar.cpp
deleted file mode 100644
index 9a22d26f..00000000
--- a/tests/auto/qquickmenubar/tst_qquickmenubar.cpp
+++ /dev/null
@@ -1,569 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest>
-#include <QtQml>
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-#include "../shared/qtest_quickcontrols.h"
-
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickmenu_p.h>
-#include <QtQuickTemplates2/private/qquickmenubar_p.h>
-#include <QtQuickTemplates2/private/qquickmenubaritem_p.h>
-#include <QtQuickTemplates2/private/qquickmenuitem_p.h>
-
-using namespace QQuickVisualTestUtil;
-
-class tst_qquickmenubar : public QQmlDataTest
-{
- Q_OBJECT
-
-public:
-
-private slots:
- void delegate();
- void mouse();
- void keys();
- void mnemonics();
- void addRemove();
-};
-
-void tst_qquickmenubar::delegate()
-{
- QQmlApplicationEngine engine(testFileUrl("empty.qml"));
- QScopedPointer<QQuickMenuBar> menuBar(qobject_cast<QQuickMenuBar *>(engine.rootObjects().value(0)));
- QVERIFY(menuBar);
-
- QQmlComponent *delegate = menuBar->delegate();
- QVERIFY(delegate);
-
- QScopedPointer<QQuickMenuBarItem> item(qobject_cast<QQuickMenuBarItem *>(delegate->create()));
- QVERIFY(item);
-}
-
-void tst_qquickmenubar::mouse()
-{
- if ((QGuiApplication::platformName() == QLatin1String("offscreen"))
- || (QGuiApplication::platformName() == QLatin1String("minimal")))
- QSKIP("Mouse highlight not functional on offscreen/minimal platforms");
-
- QQmlApplicationEngine engine(testFileUrl("menubar.qml"));
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(engine.rootObjects().value(0)));
- QVERIFY(window);
-
- centerOnScreen(window.data());
- moveMouseAway(window.data());
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
-
- QQuickMenuBar *menuBar = window->property("header").value<QQuickMenuBar *>();
- QVERIFY(menuBar);
-
- QQuickMenu *fileMenuBarMenu = menuBar->menuAt(0);
- QQuickMenu *editMenuBarMenu = menuBar->menuAt(1);
- QQuickMenu *viewMenuBarMenu = menuBar->menuAt(2);
- QQuickMenu *helpMenuBarMenu = menuBar->menuAt(3);
- QVERIFY(fileMenuBarMenu && editMenuBarMenu && viewMenuBarMenu && helpMenuBarMenu);
-
- QQuickMenuBarItem *fileMenuBarItem = qobject_cast<QQuickMenuBarItem *>(fileMenuBarMenu->parentItem());
- QQuickMenuBarItem *editMenuBarItem = qobject_cast<QQuickMenuBarItem *>(editMenuBarMenu->parentItem());
- QQuickMenuBarItem *viewMenuBarItem = qobject_cast<QQuickMenuBarItem *>(viewMenuBarMenu->parentItem());
- QQuickMenuBarItem *helpMenuBarItem = qobject_cast<QQuickMenuBarItem *>(helpMenuBarMenu->parentItem());
- QVERIFY(fileMenuBarItem && editMenuBarItem && viewMenuBarItem && helpMenuBarItem);
-
- // highlight a menubar item
- QTest::mouseMove(window.data(), fileMenuBarItem->mapToScene(QPointF(fileMenuBarItem->width() / 2, fileMenuBarItem->height() / 2)).toPoint());
- QVERIFY(fileMenuBarItem->isHighlighted());
- QVERIFY(!fileMenuBarMenu->isVisible());
-
- // highlight another menubar item
- QTest::mouseMove(window.data(), editMenuBarItem->mapToScene(QPointF(editMenuBarItem->width() / 2, editMenuBarItem->height() / 2)).toPoint());
- QVERIFY(!fileMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(!fileMenuBarMenu->isVisible());
- QVERIFY(!editMenuBarMenu->isVisible());
-
- // trigger a menubar item to open a menu
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, editMenuBarItem->mapToScene(QPointF(editMenuBarItem->width() / 2, editMenuBarItem->height() / 2)).toPoint());
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarMenu->isVisible());
- QTRY_VERIFY(editMenuBarMenu->isOpened());
-
- // re-trigger a menubar item to hide the menu
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, editMenuBarItem->mapToScene(QPointF(editMenuBarItem->width() / 2, editMenuBarItem->height() / 2)).toPoint());
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarItem->hasActiveFocus());
- QTRY_VERIFY(!editMenuBarMenu->isVisible());
-
- // re-trigger a menubar item to show the menu again
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, editMenuBarItem->mapToScene(QPointF(editMenuBarItem->width() / 2, editMenuBarItem->height() / 2)).toPoint());
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarMenu->isVisible());
- QTRY_VERIFY(editMenuBarMenu->isOpened());
-
- // highlight another menubar item to open another menu
- QTest::mouseMove(window.data(), helpMenuBarItem->mapToScene(QPointF(helpMenuBarItem->width() / 2, helpMenuBarItem->height() / 2)).toPoint());
- QVERIFY(!fileMenuBarItem->isHighlighted());
- QVERIFY(!editMenuBarItem->isHighlighted());
- QVERIFY(!viewMenuBarItem->isHighlighted());
- QVERIFY(helpMenuBarItem->isHighlighted());
- QVERIFY(!fileMenuBarMenu->isVisible());
- QVERIFY(!viewMenuBarMenu->isVisible());
- QVERIFY(helpMenuBarMenu->isVisible());
- QTRY_VERIFY(!editMenuBarMenu->isVisible());
- QTRY_VERIFY(helpMenuBarMenu->isOpened());
-
- // trigger a menu item to close the menu
- QQuickMenuItem *aboutMenuItem = qobject_cast<QQuickMenuItem *>(helpMenuBarMenu->itemAt(0));
- QVERIFY(aboutMenuItem);
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, aboutMenuItem->mapToScene(QPointF(aboutMenuItem->width() / 2, aboutMenuItem->height() / 2)).toPoint());
- QVERIFY(!helpMenuBarItem->isHighlighted());
- QTRY_VERIFY(!helpMenuBarMenu->isVisible());
-
- // highlight a menubar item
- QTest::mouseMove(window.data(), editMenuBarItem->mapToScene(QPointF(editMenuBarItem->width() / 2, editMenuBarItem->height() / 2)).toPoint());
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(!helpMenuBarItem->isHighlighted());
- QVERIFY(!editMenuBarMenu->isVisible());
- QVERIFY(!helpMenuBarMenu->isVisible());
-
- // trigger a menubar item to open a menu
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, viewMenuBarItem->mapToScene(QPointF(viewMenuBarItem->width() / 2, viewMenuBarItem->height() / 2)).toPoint());
- QVERIFY(!editMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarMenu->isVisible());
- QTRY_VERIFY(viewMenuBarMenu->isOpened());
-
- // trigger a menu item to open a sub-menu
- QQuickMenuItem *alignmentSubMenuItem = qobject_cast<QQuickMenuItem *>(viewMenuBarMenu->itemAt(0));
- QVERIFY(alignmentSubMenuItem);
- QQuickMenu *alignmentSubMenu = alignmentSubMenuItem->subMenu();
- QVERIFY(alignmentSubMenu);
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, alignmentSubMenuItem->mapToScene(QPointF(alignmentSubMenuItem->width() / 2, alignmentSubMenuItem->height() / 2)).toPoint());
- QVERIFY(viewMenuBarMenu->isVisible());
- QVERIFY(alignmentSubMenu->isVisible());
- QTRY_VERIFY(alignmentSubMenu->isOpened());
-
- // trigger a menu item to open a sub-sub-menu
- QQuickMenuItem *verticalSubMenuItem = qobject_cast<QQuickMenuItem *>(alignmentSubMenu->itemAt(1));
- QVERIFY(verticalSubMenuItem);
- QQuickMenu *verticalSubMenu = verticalSubMenuItem->subMenu();
- QVERIFY(verticalSubMenu);
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, verticalSubMenuItem->mapToScene(QPointF(verticalSubMenuItem->width() / 2, verticalSubMenuItem->height() / 2)).toPoint());
- QVERIFY(viewMenuBarMenu->isVisible());
- QVERIFY(alignmentSubMenu->isVisible());
- QVERIFY(verticalSubMenu->isVisible());
- QTRY_VERIFY(verticalSubMenu->isOpened());
-
- // trigger a menu item to close the whole chain of menus
- QQuickMenuItem *centerMenuItem = qobject_cast<QQuickMenuItem *>(verticalSubMenu->itemAt(1));
- QVERIFY(centerMenuItem);
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, centerMenuItem->mapToScene(QPointF(centerMenuItem->width() / 2, centerMenuItem->height() / 2)).toPoint());
- QVERIFY(!viewMenuBarItem->isHighlighted());
- QTRY_VERIFY(!viewMenuBarMenu->isVisible());
- QTRY_VERIFY(!alignmentSubMenu->isVisible());
- QTRY_VERIFY(!verticalSubMenu->isVisible());
-
- // re-highlight the same menubar item
- QTest::mouseMove(window.data(), viewMenuBarItem->mapToScene(QPointF(viewMenuBarItem->width() / 2, viewMenuBarItem->height() / 2)).toPoint());
- QVERIFY(viewMenuBarItem->isHighlighted());
-
- // re-open the chain of menus
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, viewMenuBarItem->mapToScene(QPointF(viewMenuBarItem->width() / 2, viewMenuBarItem->height() / 2)).toPoint());
- QTRY_VERIFY(viewMenuBarMenu->isOpened());
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, alignmentSubMenuItem->mapToScene(QPointF(alignmentSubMenuItem->width() / 2, alignmentSubMenuItem->height() / 2)).toPoint());
- QTRY_VERIFY(alignmentSubMenu->isOpened());
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, verticalSubMenuItem->mapToScene(QPointF(verticalSubMenuItem->width() / 2, verticalSubMenuItem->height() / 2)).toPoint());
- QTRY_VERIFY(verticalSubMenu->isOpened());
-
- // click outside to close the whole chain of menus
- QTest::mouseClick(window.data(), Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - 1, window->height() - 1));
- QVERIFY(!viewMenuBarItem->isHighlighted());
- QTRY_VERIFY(!viewMenuBarMenu->isVisible());
- QTRY_VERIFY(!alignmentSubMenu->isVisible());
- QTRY_VERIFY(!verticalSubMenu->isVisible());
-}
-
-void tst_qquickmenubar::keys()
-{
- QQmlApplicationEngine engine(testFileUrl("menubar.qml"));
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(engine.rootObjects().value(0)));
- QVERIFY(window);
-
- centerOnScreen(window.data());
- moveMouseAway(window.data());
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
-
- QQuickMenuBar *menuBar = window->property("header").value<QQuickMenuBar *>();
- QVERIFY(menuBar);
-
- QQuickMenu *fileMenuBarMenu = menuBar->menuAt(0);
- QQuickMenu *editMenuBarMenu = menuBar->menuAt(1);
- QQuickMenu *viewMenuBarMenu = menuBar->menuAt(2);
- QQuickMenu *helpMenuBarMenu = menuBar->menuAt(3);
- QVERIFY(fileMenuBarMenu && editMenuBarMenu && viewMenuBarMenu && helpMenuBarMenu);
-
- QQuickMenuBarItem *fileMenuBarItem = qobject_cast<QQuickMenuBarItem *>(fileMenuBarMenu->parentItem());
- QQuickMenuBarItem *editMenuBarItem = qobject_cast<QQuickMenuBarItem *>(editMenuBarMenu->parentItem());
- QQuickMenuBarItem *viewMenuBarItem = qobject_cast<QQuickMenuBarItem *>(viewMenuBarMenu->parentItem());
- QQuickMenuBarItem *helpMenuBarItem = qobject_cast<QQuickMenuBarItem *>(helpMenuBarMenu->parentItem());
- QVERIFY(fileMenuBarItem && editMenuBarItem && viewMenuBarItem && helpMenuBarItem);
-
- // trigger a menubar item to open a menu
- editMenuBarItem->forceActiveFocus();
- QTest::keyClick(window.data(), Qt::Key_Space);
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarMenu->isVisible());
- QTRY_VERIFY(editMenuBarMenu->isOpened());
- QVERIFY(editMenuBarMenu->hasActiveFocus());
-
- // navigate down to the menu
- QQuickMenuItem *cutMenuItem = qobject_cast<QQuickMenuItem *>(editMenuBarMenu->itemAt(0));
- QVERIFY(cutMenuItem);
- QVERIFY(!cutMenuItem->isHighlighted());
- QVERIFY(!cutMenuItem->hasActiveFocus());
- QTest::keyClick(window.data(), Qt::Key_Down);
- QVERIFY(cutMenuItem->isHighlighted());
- QVERIFY(cutMenuItem->hasActiveFocus());
-
- // navigate up, back to the menubar
- QTest::keyClick(window.data(), Qt::Key_Up);
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarItem->hasActiveFocus());
- QTRY_VERIFY(!editMenuBarMenu->isVisible());
- QVERIFY(!cutMenuItem->isHighlighted());
- QVERIFY(!cutMenuItem->hasActiveFocus());
-
- // navigate down to re-open the menu
- QTest::keyClick(window.data(), Qt::Key_Down);
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(!editMenuBarItem->hasActiveFocus());
- QVERIFY(editMenuBarMenu->isVisible());
- QTRY_VERIFY(editMenuBarMenu->isOpened());
- QVERIFY(editMenuBarMenu->hasActiveFocus());
- QVERIFY(cutMenuItem->isHighlighted());
- QVERIFY(cutMenuItem->hasActiveFocus());
-
- // navigate left in popup mode (menu open)
- QTest::keyClick(window.data(), Qt::Key_Left);
- QVERIFY(fileMenuBarItem->isHighlighted());
- QVERIFY(!editMenuBarItem->isHighlighted());
- QVERIFY(fileMenuBarMenu->isVisible());
- QTRY_VERIFY(fileMenuBarMenu->isOpened());
- QTRY_VERIFY(!editMenuBarMenu->isVisible());
-
- // navigate left in popup mode (wrap)
- QTest::keyClick(window.data(), Qt::Key_Left);
- QVERIFY(helpMenuBarItem->isHighlighted());
- QVERIFY(!fileMenuBarItem->isHighlighted());
- QVERIFY(helpMenuBarMenu->isVisible());
- QTRY_VERIFY(helpMenuBarMenu->isOpened());
- QTRY_VERIFY(!fileMenuBarMenu->isVisible());
-
- // navigate up to close the menu
- QTest::keyClick(window.data(), Qt::Key_Up);
- QVERIFY(helpMenuBarItem->isHighlighted());
- QTRY_VERIFY(!helpMenuBarMenu->isVisible());
-
- // navigate right in non-popup mode (wrap)
- QTest::keyClick(window.data(), Qt::Key_Right);
- QVERIFY(fileMenuBarItem->isHighlighted());
- QVERIFY(!helpMenuBarItem->isHighlighted());
- QVERIFY(!fileMenuBarMenu->isVisible());
- QVERIFY(!helpMenuBarMenu->isVisible());
-
- // navigate right in non-popup mode (menu closed)
- QTest::keyClick(window.data(), Qt::Key_Right);
- QVERIFY(!fileMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(!fileMenuBarMenu->isVisible());
- QVERIFY(!editMenuBarMenu->isVisible());
-
- // open a menu
- viewMenuBarItem->forceActiveFocus();
- QTest::keyClick(window.data(), Qt::Key_Space);
- QVERIFY(viewMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarMenu->isVisible());
- QTRY_VERIFY(viewMenuBarMenu->isOpened());
- QVERIFY(!viewMenuBarItem->hasActiveFocus());
- QVERIFY(viewMenuBarMenu->hasActiveFocus());
-
- // open a sub-menu
- QQuickMenuItem *alignmentSubMenuItem = qobject_cast<QQuickMenuItem *>(viewMenuBarMenu->itemAt(0));
- QVERIFY(alignmentSubMenuItem);
- QQuickMenu *alignmentSubMenu = alignmentSubMenuItem->subMenu();
- QVERIFY(alignmentSubMenu);
- QTest::keyClick(window.data(), Qt::Key_Down);
- QVERIFY(alignmentSubMenuItem->isHighlighted());
- QVERIFY(!alignmentSubMenu->isVisible());
- QTest::keyClick(window.data(), Qt::Key_Right);
- QVERIFY(alignmentSubMenu->isVisible());
- QTRY_VERIFY(alignmentSubMenu->isOpened());
-
- // open a sub-sub-menu
- QQuickMenuItem *horizontalSubMenuItem = qobject_cast<QQuickMenuItem *>(alignmentSubMenu->itemAt(0));
- QVERIFY(horizontalSubMenuItem);
- QVERIFY(horizontalSubMenuItem->isHighlighted());
- QQuickMenu *horizontalSubMenu = horizontalSubMenuItem->subMenu();
- QVERIFY(horizontalSubMenu);
- QTest::keyClick(window.data(), Qt::Key_Right);
- QVERIFY(viewMenuBarMenu->isVisible());
- QVERIFY(alignmentSubMenu->isVisible());
- QVERIFY(horizontalSubMenu->isVisible());
- QTRY_VERIFY(horizontalSubMenu->isOpened());
-
- // navigate left to close a sub-menu
- QTest::keyClick(window.data(), Qt::Key_Left);
- QTRY_VERIFY(!horizontalSubMenu->isVisible());
- QVERIFY(viewMenuBarMenu->isVisible());
- QVERIFY(alignmentSubMenu->isVisible());
-
- // navigate right to re-open the sub-menu
- QTest::keyClick(window.data(), Qt::Key_Right);
- QVERIFY(horizontalSubMenuItem->isHighlighted());
- QVERIFY(horizontalSubMenu->isVisible());
- QTRY_VERIFY(horizontalSubMenu->isOpened());
-
- // navigate right to the next menubar menu
- QTest::keyClick(window.data(), Qt::Key_Right);
- QVERIFY(!viewMenuBarItem->isHighlighted());
- QVERIFY(helpMenuBarItem->isHighlighted());
- QVERIFY(helpMenuBarMenu->isVisible());
- QTRY_VERIFY(!viewMenuBarMenu->isVisible());
- QTRY_VERIFY(!alignmentSubMenu->isVisible());
- QTRY_VERIFY(!horizontalSubMenu->isVisible());
- QTRY_VERIFY(helpMenuBarMenu->isOpened());
-
- // navigate back
- QTest::keyClick(window.data(), Qt::Key_Left);
- QVERIFY(!helpMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarMenu->isVisible());
- QTRY_VERIFY(!helpMenuBarMenu->isVisible());
- QTRY_VERIFY(viewMenuBarMenu->isOpened());
-
- // re-open the chain of menus
- QTest::keyClick(window.data(), Qt::Key_Down);
- QVERIFY(alignmentSubMenuItem->isHighlighted());
- QTest::keyClick(window.data(), Qt::Key_Right);
- QTRY_VERIFY(alignmentSubMenu->isOpened());
- QTest::keyClick(window.data(), Qt::Key_Right);
- QTRY_VERIFY(horizontalSubMenu->isOpened());
-
- // repeat escape to close the whole chain of menus one by one
- QTest::keyClick(window.data(), Qt::Key_Escape);
- QTRY_VERIFY(!horizontalSubMenu->isVisible());
- QVERIFY(viewMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarMenu->isVisible());
- QVERIFY(alignmentSubMenu->isVisible());
-
- QTest::keyClick(window.data(), Qt::Key_Escape);
- QTRY_VERIFY(!alignmentSubMenu->isVisible());
- QVERIFY(viewMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarMenu->isVisible());
-
- QTest::keyClick(window.data(), Qt::Key_Escape);
- QVERIFY(!viewMenuBarItem->isHighlighted());
- QTRY_VERIFY(!viewMenuBarMenu->isVisible());
-}
-
-void tst_qquickmenubar::mnemonics()
-{
-#ifdef Q_OS_MACOS
- QSKIP("Mnemonics are not used on macOS");
-#endif
-
- QQmlApplicationEngine engine(testFileUrl("menubar.qml"));
-
- QScopedPointer<QQuickApplicationWindow> window(qobject_cast<QQuickApplicationWindow *>(engine.rootObjects().value(0)));
- QVERIFY(window);
-
- centerOnScreen(window.data());
- moveMouseAway(window.data());
- QVERIFY(QTest::qWaitForWindowActive(window.data()));
-
- QQuickMenuBar *menuBar = window->property("header").value<QQuickMenuBar *>();
- QVERIFY(menuBar);
-
- QQuickMenu *fileMenuBarMenu = menuBar->menuAt(0);
- QQuickMenu *editMenuBarMenu = menuBar->menuAt(1);
- QQuickMenu *viewMenuBarMenu = menuBar->menuAt(2);
- QQuickMenu *helpMenuBarMenu = menuBar->menuAt(3);
- QVERIFY(fileMenuBarMenu && editMenuBarMenu && viewMenuBarMenu && helpMenuBarMenu);
-
- QQuickMenuBarItem *fileMenuBarItem = qobject_cast<QQuickMenuBarItem *>(fileMenuBarMenu->parentItem());
- QQuickMenuBarItem *editMenuBarItem = qobject_cast<QQuickMenuBarItem *>(editMenuBarMenu->parentItem());
- QQuickMenuBarItem *viewMenuBarItem = qobject_cast<QQuickMenuBarItem *>(viewMenuBarMenu->parentItem());
- QQuickMenuBarItem *helpMenuBarItem = qobject_cast<QQuickMenuBarItem *>(helpMenuBarMenu->parentItem());
- QVERIFY(fileMenuBarItem && editMenuBarItem && viewMenuBarItem && helpMenuBarItem);
-
- // trigger a menubar item to open a menu
- QTest::keyClick(window.data(), Qt::Key_E, Qt::AltModifier); // "&Edit"
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(!editMenuBarItem->hasActiveFocus());
- QVERIFY(editMenuBarMenu->isVisible());
- QTRY_VERIFY(editMenuBarMenu->isOpened());
- QVERIFY(editMenuBarMenu->hasActiveFocus());
-
- // re-trigger a menubar item to hide the menu
- QTest::keyClick(window.data(), Qt::Key_E, Qt::AltModifier); // "&Edit"
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarItem->hasActiveFocus());
- QVERIFY(!editMenuBarMenu->hasActiveFocus());
- QTRY_VERIFY(!editMenuBarMenu->isVisible());
-
- // re-trigger a menubar item to show the menu again
- QTest::keyClick(window.data(), Qt::Key_E, Qt::AltModifier); // "&Edit"
- QVERIFY(editMenuBarItem->isHighlighted());
- QVERIFY(editMenuBarMenu->isVisible());
- QTRY_VERIFY(editMenuBarMenu->isOpened());
- QVERIFY(editMenuBarMenu->hasActiveFocus());
- QVERIFY(!editMenuBarItem->hasActiveFocus());
-
- // trigger another menubar item to open another menu
- QTest::keyClick(window.data(), Qt::Key_H, Qt::AltModifier); // "&Help"
- QVERIFY(!editMenuBarItem->isHighlighted());
- QVERIFY(helpMenuBarItem->isHighlighted());
- QVERIFY(!viewMenuBarMenu->isVisible());
- QVERIFY(helpMenuBarMenu->isVisible());
- QTRY_VERIFY(helpMenuBarMenu->isOpened());
-
- // trigger a menu item to close the menu
- QTest::keyClick(window.data(), Qt::Key_A, Qt::AltModifier); // "&About"
- QVERIFY(!helpMenuBarItem->isHighlighted());
- QTRY_VERIFY(!helpMenuBarMenu->isVisible());
-
- // trigger a menubar item to open a menu
- QTest::keyClick(window.data(), Qt::Key_V, Qt::AltModifier); // "&View"
- QVERIFY(!editMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarItem->isHighlighted());
- QVERIFY(viewMenuBarMenu->isVisible());
- QTRY_VERIFY(viewMenuBarMenu->isOpened());
-
- // trigger a menu item to open a sub-menu
- QQuickMenuItem *alignmentSubMenuItem = qobject_cast<QQuickMenuItem *>(viewMenuBarMenu->itemAt(0));
- QVERIFY(alignmentSubMenuItem);
- QQuickMenu *alignmentSubMenu = alignmentSubMenuItem->subMenu();
- QVERIFY(alignmentSubMenu);
- QTest::keyClick(window.data(), Qt::Key_A, Qt::AltModifier); // "&Alignment"
- QVERIFY(viewMenuBarMenu->isVisible());
- QVERIFY(alignmentSubMenu->isVisible());
- QTRY_VERIFY(alignmentSubMenu->isOpened());
-
- // trigger a menu item to open a sub-sub-menu
- QQuickMenuItem *verticalSubMenuItem = qobject_cast<QQuickMenuItem *>(alignmentSubMenu->itemAt(1));
- QVERIFY(verticalSubMenuItem);
- QQuickMenu *verticalSubMenu = verticalSubMenuItem->subMenu();
- QVERIFY(verticalSubMenu);
- QTest::keyClick(window.data(), Qt::Key_V, Qt::AltModifier); // "&Vertical"
- QVERIFY(viewMenuBarMenu->isVisible());
- QVERIFY(alignmentSubMenu->isVisible());
- QVERIFY(verticalSubMenu->isVisible());
- QTRY_VERIFY(verticalSubMenu->isOpened());
-
- // trigger a menu item to close the whole chain of menus
- QTest::keyClick(window.data(), Qt::Key_C, Qt::AltModifier); // "&Center"
- QVERIFY(!viewMenuBarItem->isHighlighted());
- QTRY_VERIFY(!viewMenuBarMenu->isVisible());
- QTRY_VERIFY(!alignmentSubMenu->isVisible());
- QTRY_VERIFY(!verticalSubMenu->isVisible());
-}
-
-void tst_qquickmenubar::addRemove()
-{
- QQmlApplicationEngine engine(testFileUrl("empty.qml"));
-
- QScopedPointer<QQuickMenuBar> menuBar(qobject_cast<QQuickMenuBar *>(engine.rootObjects().value(0)));
- QVERIFY(menuBar);
-
- QQmlComponent component(&engine);
- component.setData("import QtQuick.Controls 2.0; Menu { }", QUrl());
-
- QPointer<QQuickMenu> menu1(qobject_cast<QQuickMenu *>(component.create()));
- QVERIFY(!menu1.isNull());
- menuBar->addMenu(menu1.data());
- QCOMPARE(menuBar->count(), 1);
- QCOMPARE(menuBar->menuAt(0), menu1.data());
-
- QPointer<QQuickMenuBarItem> menuBarItem1(qobject_cast<QQuickMenuBarItem *>(menuBar->itemAt(0)));
- QVERIFY(menuBarItem1);
- QCOMPARE(menuBarItem1->menu(), menu1.data());
- QCOMPARE(menuBar->itemAt(0), menuBarItem1.data());
-
- QScopedPointer<QQuickMenu> menu2(qobject_cast<QQuickMenu *>(component.create()));
- QVERIFY(!menu2.isNull());
- menuBar->insertMenu(0, menu2.data());
- QCOMPARE(menuBar->count(), 2);
- QCOMPARE(menuBar->menuAt(0), menu2.data());
- QCOMPARE(menuBar->menuAt(1), menu1.data());
-
- QPointer<QQuickMenuBarItem> menuBarItem2(qobject_cast<QQuickMenuBarItem *>(menuBar->itemAt(0)));
- QVERIFY(menuBarItem2);
- QCOMPARE(menuBarItem2->menu(), menu2.data());
- QCOMPARE(menuBar->itemAt(0), menuBarItem2.data());
- QCOMPARE(menuBar->itemAt(1), menuBarItem1.data());
-
- // takeMenu(int) does not destroy the menu, but does destroy the respective item in the menubar
- QCOMPARE(menuBar->takeMenu(1), menu1.data());
- QCOMPARE(menuBar->count(), 1);
- QVERIFY(!menuBar->menuAt(1));
- QVERIFY(!menuBar->itemAt(1));
- QCoreApplication::sendPostedEvents(menu1.data(), QEvent::DeferredDelete);
- QVERIFY(!menu1.isNull());
- QCoreApplication::sendPostedEvents(menuBarItem1, QEvent::DeferredDelete);
- QVERIFY(menuBarItem1.isNull());
-
- // addMenu(Menu) re-creates the respective item in the menubar
- menuBar->addMenu(menu1.data());
- QCOMPARE(menuBar->count(), 2);
- menuBarItem1 = qobject_cast<QQuickMenuBarItem *>(menuBar->itemAt(1));
- QVERIFY(!menuBarItem1.isNull());
-
- // removeMenu(Menu) destroys both the menu and the respective item in the menubar
- menuBar->removeMenu(menu1.data());
- QCOMPARE(menuBar->count(), 1);
- QVERIFY(!menuBar->itemAt(1));
- QCoreApplication::sendPostedEvents(menu1.data(), QEvent::DeferredDelete);
- QVERIFY(menu1.isNull());
- QCoreApplication::sendPostedEvents(menuBarItem1, QEvent::DeferredDelete);
- QVERIFY(menuBarItem1.isNull());
-}
-
-QTEST_QUICKCONTROLS_MAIN(tst_qquickmenubar)
-
-#include "tst_qquickmenubar.moc"
diff --git a/tests/auto/qquickninepatchimage/data/foo.9.png b/tests/auto/qquickninepatchimage/data/foo.9.png
deleted file mode 100644
index 51246990..00000000
--- a/tests/auto/qquickninepatchimage/data/foo.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/foo@2x.9.png b/tests/auto/qquickninepatchimage/data/foo@2x.9.png
deleted file mode 100644
index c8dc30a3..00000000
--- a/tests/auto/qquickninepatchimage/data/foo@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/foo@3x.9.png b/tests/auto/qquickninepatchimage/data/foo@3x.9.png
deleted file mode 100644
index 00ea4e05..00000000
--- a/tests/auto/qquickninepatchimage/data/foo@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/foo@4x.9.png b/tests/auto/qquickninepatchimage/data/foo@4x.9.png
deleted file mode 100644
index ea73340a..00000000
--- a/tests/auto/qquickninepatchimage/data/foo@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-all.9.png b/tests/auto/qquickninepatchimage/data/inset-all.9.png
deleted file mode 100644
index e08ef9c7..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-all.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-all@2x.9.png b/tests/auto/qquickninepatchimage/data/inset-all@2x.9.png
deleted file mode 100644
index 96d1c0e8..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-all@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-all@3x.9.png b/tests/auto/qquickninepatchimage/data/inset-all@3x.9.png
deleted file mode 100644
index 215ce27e..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-all@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-all@4x.9.png b/tests/auto/qquickninepatchimage/data/inset-all@4x.9.png
deleted file mode 100644
index 35e53101..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-all@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-bottomright.9.png b/tests/auto/qquickninepatchimage/data/inset-bottomright.9.png
deleted file mode 100644
index c4c37dff..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-bottomright.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-bottomright@2x.9.png b/tests/auto/qquickninepatchimage/data/inset-bottomright@2x.9.png
deleted file mode 100644
index 3d64036f..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-bottomright@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-bottomright@3x.9.png b/tests/auto/qquickninepatchimage/data/inset-bottomright@3x.9.png
deleted file mode 100644
index 115184d9..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-bottomright@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-bottomright@4x.9.png b/tests/auto/qquickninepatchimage/data/inset-bottomright@4x.9.png
deleted file mode 100644
index 2ec7cbef..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-bottomright@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-topleft.9.png b/tests/auto/qquickninepatchimage/data/inset-topleft.9.png
deleted file mode 100644
index 9cc5f43d..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-topleft.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-topleft@2x.9.png b/tests/auto/qquickninepatchimage/data/inset-topleft@2x.9.png
deleted file mode 100644
index a4ca2b12..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-topleft@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-topleft@3x.9.png b/tests/auto/qquickninepatchimage/data/inset-topleft@3x.9.png
deleted file mode 100644
index 73f3595a..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-topleft@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/inset-topleft@4x.9.png b/tests/auto/qquickninepatchimage/data/inset-topleft@4x.9.png
deleted file mode 100644
index 78baa463..00000000
--- a/tests/auto/qquickninepatchimage/data/inset-topleft@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/ninepatchimage.qml b/tests/auto/qquickninepatchimage/data/ninepatchimage.qml
deleted file mode 100644
index 4b9ac278..00000000
--- a/tests/auto/qquickninepatchimage/data/ninepatchimage.qml
+++ /dev/null
@@ -1,7 +0,0 @@
-import QtQuick.Controls 2.12
-import QtQuick.Controls.impl 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Imagine.impl 2.12
-
-NinePatchImage {
-}
diff --git a/tests/auto/qquickninepatchimage/data/padding.9.png b/tests/auto/qquickninepatchimage/data/padding.9.png
deleted file mode 100644
index 5b4f0960..00000000
--- a/tests/auto/qquickninepatchimage/data/padding.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/padding@2x.9.png b/tests/auto/qquickninepatchimage/data/padding@2x.9.png
deleted file mode 100644
index 44eb1943..00000000
--- a/tests/auto/qquickninepatchimage/data/padding@2x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/padding@3x.9.png b/tests/auto/qquickninepatchimage/data/padding@3x.9.png
deleted file mode 100644
index d1563448..00000000
--- a/tests/auto/qquickninepatchimage/data/padding@3x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/data/padding@4x.9.png b/tests/auto/qquickninepatchimage/data/padding@4x.9.png
deleted file mode 100644
index e86cce69..00000000
--- a/tests/auto/qquickninepatchimage/data/padding@4x.9.png
+++ /dev/null
Binary files differ
diff --git a/tests/auto/qquickninepatchimage/qquickninepatchimage.pro b/tests/auto/qquickninepatchimage/qquickninepatchimage.pro
deleted file mode 100644
index b40a5f4c..00000000
--- a/tests/auto/qquickninepatchimage/qquickninepatchimage.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-TARGET = tst_qquickninepatchimage
-
-QT += core gui qml quick testlib
-QT_PRIVATE += gui-private quick-private quickcontrols2-private
-
-include (../shared/util.pri)
-
-SOURCES += tst_qquickninepatchimage.cpp
-
-TESTDATA += \
- $$PWD/data/*.qml \
- $$PWD/data/*.png
diff --git a/tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp b/tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp
deleted file mode 100644
index 5a62c00a..00000000
--- a/tests/auto/qquickninepatchimage/tst_qquickninepatchimage.cpp
+++ /dev/null
@@ -1,254 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL-EXCEPT$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 3 as published by the Free Software
-** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <qtest.h>
-#include <QtTest/qsignalspy.h>
-
-#include <QtCore/qmath.h>
-#include <QtCore/qsize.h>
-#include <QtGui/private/qhighdpiscaling_p.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQuick/qquickitem.h>
-#include <QtQuick/qquickview.h>
-#include <QtQuick/qquickitemgrabresult.h>
-#include <QtQuick/private/qquickimage_p.h>
-
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_qquickninepatchimage : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void ninePatch_data();
- void ninePatch();
- void padding_data();
- void padding();
- void inset_data();
- void inset();
- void implicitSize_data();
- void implicitSize();
-};
-
-static QImage grabItemToImage(QQuickItem *item)
-{
- QSharedPointer<QQuickItemGrabResult> result = item->grabToImage();
- QSignalSpy spy(result.data(), SIGNAL(ready()));
- spy.wait();
- return result->image();
-}
-
-void tst_qquickninepatchimage::ninePatch_data()
-{
- QTest::addColumn<int>("dpr");
- QTest::addColumn<QSize>("size");
-
- // original size, downsized, stretched
- const QList<QSize> sizes = QList<QSize>()
- << QSize(40, 40) // original
- << QSize(10, 40) // downsized (h)
- << QSize(40, 10) // downsized (v)
- << QSize(10, 10) // downsized (h & v)
- << QSize(80, 40) // stretched (h)
- << QSize(40, 80) // stretched (v)
- << QSize(80, 80) // stretched (h & v)
- << QSize(8, 8); // minimal (borders only)
-
- for (const QSize &sz : sizes) {
- for (int dpr = 1; dpr <= 4; ++dpr)
- QTest::newRow(qPrintable(QString::fromLatin1("DPR=%1, %2x%3").arg(dpr).arg(sz.width()).arg(sz.height()))) << dpr << sz;
- }
-}
-
-void tst_qquickninepatchimage::ninePatch()
-{
- QFETCH(int, dpr);
- QFETCH(QSize, size);
-
- QHighDpiScaling::setGlobalFactor(dpr);
-
- QQuickView view(testFileUrl("ninepatchimage.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickImage *ninePatchImage = qobject_cast<QQuickImage *>(view.rootObject());
- QVERIFY(ninePatchImage);
- ninePatchImage->setSource(testFileUrl("foo.9.png"));
- ninePatchImage->setSize(size);
-
- const QImage ninePatchImageGrab = grabItemToImage(ninePatchImage).scaled(size * dpr);
-
- // Generate an image to compare against the actual 9-patch image.
- QImage generatedImage(size * dpr, ninePatchImageGrab.format());
- generatedImage.fill(Qt::red);
-
- QImage blueRect(4 * dpr, 4 * dpr, ninePatchImageGrab.format());
- blueRect.fill(Qt::blue);
-
- QPainter painter(&generatedImage);
- // Top-left
- painter.drawImage(0, 0, blueRect);
- // Top-right
- painter.drawImage(generatedImage.width() - blueRect.width(), 0, blueRect);
- // Bottom-right
- painter.drawImage(generatedImage.width() - blueRect.width(), generatedImage.height() - blueRect.height(), blueRect);
- // Bottom-left
- painter.drawImage(0, generatedImage.height() - blueRect.height(), blueRect);
-
- if ((QGuiApplication::platformName() == QLatin1String("offscreen"))
- || (QGuiApplication::platformName() == QLatin1String("minimal")))
- QEXPECT_FAIL("", "Grabbing does not work on offscreen/minimal platforms", Abort);
-
- QCOMPARE(ninePatchImageGrab, generatedImage);
-}
-
-void tst_qquickninepatchimage::padding_data()
-{
- QTest::addColumn<int>("dpr");
-
- for (int dpr = 1; dpr <= 4; ++dpr)
- QTest::newRow(qPrintable(QString::fromLatin1("DPR=%1").arg(dpr))) << dpr;
-}
-
-void tst_qquickninepatchimage::padding()
-{
- QFETCH(int, dpr);
-
- QHighDpiScaling::setGlobalFactor(dpr);
-
- QQuickView view(testFileUrl("ninepatchimage.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickImage *ninePatchImage = qobject_cast<QQuickImage *>(view.rootObject());
- QVERIFY(ninePatchImage);
- ninePatchImage->setSource(testFileUrl("padding.9.png"));
-
- QCOMPARE(ninePatchImage->property("topPadding").toReal(), 8);
- QCOMPARE(ninePatchImage->property("leftPadding").toReal(), 18);
- QCOMPARE(ninePatchImage->property("rightPadding").toReal(), 20);
- QCOMPARE(ninePatchImage->property("bottomPadding").toReal(), 10);
-}
-
-void tst_qquickninepatchimage::inset_data()
-{
- QTest::addColumn<int>("dpr");
- QTest::addColumn<QString>("file");
- QTest::addColumn<QMarginsF>("insets");
-
- const QStringList files = QStringList() << "inset-all.9.png" << "inset-topleft.9.png" << "inset-bottomright.9.png";
- const QList<QMarginsF> insets = QList<QMarginsF>() << QMarginsF(2, 1, 3, 4) << QMarginsF(2, 1, 0, 0) << QMarginsF(0, 0, 3, 4);
-
- for (int i = 0; i < files.count(); ++i) {
- QString file = files.at(i);
- for (int dpr = 1; dpr <= 4; ++dpr)
- QTest::newRow(qPrintable(QString::fromLatin1("%1 DPR=%2").arg(file).arg(dpr))) << dpr << file << insets.at(i);
- }
-}
-
-Q_DECLARE_METATYPE(QMarginsF)
-
-void tst_qquickninepatchimage::inset()
-{
- QFETCH(int, dpr);
- QFETCH(QString, file);
- QFETCH(QMarginsF, insets);
-
- QHighDpiScaling::setGlobalFactor(dpr);
-
- QQuickView view(testFileUrl("ninepatchimage.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickImage *ninePatchImage = qobject_cast<QQuickImage *>(view.rootObject());
- QVERIFY(ninePatchImage);
- ninePatchImage->setSource(testFileUrl(file));
-
- QCOMPARE(ninePatchImage->property("topInset").toReal(), insets.top());
- QCOMPARE(ninePatchImage->property("leftInset").toReal(), insets.left());
- QCOMPARE(ninePatchImage->property("rightInset").toReal(), insets.right());
- QCOMPARE(ninePatchImage->property("bottomInset").toReal(), insets.bottom());
-}
-
-void tst_qquickninepatchimage::implicitSize_data()
-{
- QTest::addColumn<int>("dpr");
- QTest::addColumn<QString>("file");
- QTest::addColumn<QSizeF>("implicitSize");
-
- const struct TestFile {
- QString name;
- QSizeF sizeHint;
- } testFiles [] = {
- { "foo.9.png", QSizeF(40, 40) },
- { "padding.9.png", QSizeF(40, 40) },
- { "inset-all.9.png", QSizeF(45, 45) },
- { "inset-topleft.9.png", QSizeF(42, 41) },
- { "inset-bottomright.9.png", QSizeF(43, 44) }
- };
-
- for (const TestFile &file : testFiles) {
- for (int dpr = 1; dpr <= 4; ++dpr)
- QTest::newRow(qPrintable(QString::fromLatin1("%1 DPR=%2").arg(file.name).arg(dpr))) << dpr << file.name << file.sizeHint;
- }
-}
-
-void tst_qquickninepatchimage::implicitSize()
-{
- QFETCH(int, dpr);
- QFETCH(QString, file);
- QFETCH(QSizeF, implicitSize);
-
- QHighDpiScaling::setGlobalFactor(dpr);
-
- QQuickView view(testFileUrl("ninepatchimage.qml"));
- QCOMPARE(view.status(), QQuickView::Ready);
- view.show();
- view.requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickImage *ninePatchImage = qobject_cast<QQuickImage *>(view.rootObject());
- QVERIFY(ninePatchImage);
- ninePatchImage->setSource(testFileUrl(file));
-
- QCOMPARE(ninePatchImage->implicitWidth(), implicitSize.width());
- QCOMPARE(ninePatchImage->implicitHeight(), implicitSize.height());
-}
-
-QTEST_MAIN(tst_qquickninepatchimage)
-
-#include "tst_qquickninepatchimage.moc"
diff --git a/tests/auto/qquickpopup/data/activeFocusOnClose1.qml b/tests/auto/qquickpopup/data/activeFocusOnClose1.qml
deleted file mode 100644
index ed9b65e1..00000000
--- a/tests/auto/qquickpopup/data/activeFocusOnClose1.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias focusedPopup: focusedPopup
- property alias nonFocusedPopup: nonFocusedPopup
-
- Popup {
- id: focusedPopup
- focus: true
- }
-
- Popup {
- id: nonFocusedPopup
- }
-}
diff --git a/tests/auto/qquickpopup/data/activeFocusOnClose2.qml b/tests/auto/qquickpopup/data/activeFocusOnClose2.qml
deleted file mode 100644
index d089fbbb..00000000
--- a/tests/auto/qquickpopup/data/activeFocusOnClose2.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias popup1: popup1
- property alias popup2: popup2
- property alias closePopup2Button: closePopup2Button
-
- Popup {
- id: popup1
- focus: true
- }
-
- Popup {
- id: popup2
- focus: true
-
- Button {
- id: closePopup2Button
- onClicked: {
- popup1.contentItem.forceActiveFocus();
- popup2.close();
- }
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/activeFocusOnClose3.qml b/tests/auto/qquickpopup/data/activeFocusOnClose3.qml
deleted file mode 100644
index 20bd7941..00000000
--- a/tests/auto/qquickpopup/data/activeFocusOnClose3.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias popup1: popup1
- property alias popup2: popup2
-
- Button {
- focus: true
- }
-
- Popup {
- id: popup1
- focus: true
- enter: Transition { PauseAnimation { duration: 200 } }
- exit: Transition { PauseAnimation { duration: 200 } }
- }
-
- Popup {
- id: popup2
- focus: true
- enter: Transition { PauseAnimation { duration: 100 } }
- exit: Transition { PauseAnimation { duration: 100 } }
- }
-}
diff --git a/tests/auto/qquickpopup/data/applicationwindow-hover.qml b/tests/auto/qquickpopup/data/applicationwindow-hover.qml
deleted file mode 100644
index 7b688147..00000000
--- a/tests/auto/qquickpopup/data/applicationwindow-hover.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias popup: popup
- property alias parentButton: parentButton
- property alias childButton: childButton
-
- Button {
- id: parentButton
- text: "Parent"
- anchors.fill: parent
-
- Popup {
- id: popup
- x: 1
- y: 1
- padding: 1
-
- Button {
- id: childButton
- text: "Child"
- }
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/applicationwindow-wheel.qml b/tests/auto/qquickpopup/data/applicationwindow-wheel.qml
deleted file mode 100644
index de27d7ec..00000000
--- a/tests/auto/qquickpopup/data/applicationwindow-wheel.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
- width: 400
- height: 400
-
- property alias popup: popup
- property alias popupSlider: popupSlider
- property alias contentSlider: contentSlider
-
- Slider {
- id: contentSlider
- anchors.fill: parent
- wheelEnabled: true
- }
-
- Popup {
- id: popup
- x: 50; y: 50
- implicitWidth: parent.width - 100
- implicitHeight: parent.height - 100
- clip: true
- contentItem: Slider {
- id: popupSlider
- wheelEnabled: true
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/applicationwindow.qml b/tests/auto/qquickpopup/data/applicationwindow.qml
deleted file mode 100644
index 3ce8a718..00000000
--- a/tests/auto/qquickpopup/data/applicationwindow.qml
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias popup: popup
- property alias popup2: popup2
- property alias button: button
-
- Button {
- id: button
- text: "Open"
- anchors.centerIn: parent
- anchors.verticalCenterOffset: -height
-
- Popup {
- id: popup
- y: parent.height
-
- Text {
- color: "white"
- text: "Hello, world!"
-
- MouseArea {
- anchors.fill: parent
- onClicked: popup.close()
- }
- }
- }
- }
-
- Popup {
- id: popup2
- y: popup.y
- z: 1
- contentItem: Text {
- text: "Popup2"
- font.pixelSize: 36
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/closeOnEscapeWithNestedPopups.qml b/tests/auto/qquickpopup/data/closeOnEscapeWithNestedPopups.qml
deleted file mode 100644
index 4f18fc13..00000000
--- a/tests/auto/qquickpopup/data/closeOnEscapeWithNestedPopups.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- header: ToolBar {
- ToolButton {
- objectName: "optionsToolButton"
- text: "Options"
- onClicked: optionsMenu.open()
-
- Menu {
- id: optionsMenu
- objectName: "optionsMenu"
- x: parent.width - width
- transformOrigin: Menu.TopRight
-
- MenuItem {
- objectName: "settingsMenuItem"
- text: "Settings"
- onTriggered: settingsDialog.open()
- }
- }
- }
- }
-
- Shortcut {
- sequence: "Esc"
- enabled: stackView.depth > 1
- onActivated: stackView.pop()
- }
-
- Component {
- id: itemComponent
-
- Item {}
- }
-
- StackView {
- id: stackView
- objectName: "stackView"
- anchors.fill: parent
- initialItem: Item {
- objectName: "initialStackViewItem"
- }
-
- Component.onCompleted: push(itemComponent)
- }
-
- Dialog {
- id: settingsDialog
- objectName: "settingsDialog"
- modal: true
-
- contentItem: ComboBox {
- objectName: "comboBox"
- model: 10
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/countChanged.qml b/tests/auto/qquickpopup/data/countChanged.qml
deleted file mode 100644
index ee5876d7..00000000
--- a/tests/auto/qquickpopup/data/countChanged.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.12
-import QtQuick.Controls 2.12
-
-Window {
- width: 640
- height: 480
- property bool isModel1: true
- property alias comboBox: comboBox
- property int count: comboBox.count
- ListModel {
- id: model1
- ListElement {
- display: "one"
- }
- }
- ListModel {
- id: model2
- ListElement {
- display: "one"
- }
- ListElement {
- display: "two"
- }
- }
- ComboBox {
- id: comboBox
- model: isModel1 ? model1 : model2
- }
-}
diff --git a/tests/auto/qquickpopup/data/cursor.qml b/tests/auto/qquickpopup/data/cursor.qml
deleted file mode 100644
index 4391f7a0..00000000
--- a/tests/auto/qquickpopup/data/cursor.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias popup: popup
- property alias textField: textField
-
- TextField {
- id: textField
- }
- Popup {
- id: popup
- x: textField.x + textField.width / 2
- y: textField.y + textField.height / 2 - height / 2
- width: 100
- height: 100
- }
-}
diff --git a/tests/auto/qquickpopup/data/dialog.qml b/tests/auto/qquickpopup/data/dialog.qml
deleted file mode 100644
index ee1b6bde..00000000
--- a/tests/auto/qquickpopup/data/dialog.qml
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Item {
- width: 400
- height: 400
- objectName: "Rectangle"
-
- property alias dialog: dialog
-
- Dialog {
- id: dialog
- objectName: "Dialog"
- width: 200
- height: 200
- anchors.centerIn: parent
- visible: true
-
- Component.onCompleted: {
- background.objectName = "DialogBackground"
- contentItem.objectName = "DialogContentItem"
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/disabledPalette.qml b/tests/auto/qquickpopup/data/disabledPalette.qml
deleted file mode 100644
index f080f5e8..00000000
--- a/tests/auto/qquickpopup/data/disabledPalette.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias popup: popup
-
- function disableOverlay() {
- popup.Overlay.overlay.enabled = false
- }
-
- Popup {
- id: popup
- width: 200
- height: 200
- background: Rectangle {
- color: popup.palette.base
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/grabber.qml b/tests/auto/qquickpopup/data/grabber.qml
deleted file mode 100644
index 6a6d6d65..00000000
--- a/tests/auto/qquickpopup/data/grabber.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias menu: menu
- property alias popup: popup
- property alias combo: combo.popup
-
- Menu {
- id: menu
- MenuItem {
- onTriggered: popup.open()
- }
- }
-
- Popup {
- id: popup
- modal: true
- width: 200
- height: 200
-
- ComboBox {
- id: combo
- model: 3
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/nested.qml b/tests/auto/qquickpopup/data/nested.qml
deleted file mode 100644
index 4ebdfb0c..00000000
--- a/tests/auto/qquickpopup/data/nested.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias modalPopup: modalPopup
- property alias modelessPopup: modelessPopup
-
- Popup {
- id: modalPopup
- modal: true
- width: 200
- height: 200
- }
-
- Popup {
- id: modelessPopup
- modal: false
- width: 100
- height: 100
- }
-}
diff --git a/tests/auto/qquickpopup/data/orientation.qml b/tests/auto/qquickpopup/data/orientation.qml
deleted file mode 100644
index a1cc9c0e..00000000
--- a/tests/auto/qquickpopup/data/orientation.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- width: 600
- height: 300
-
- property alias popup: popup
-
- Rectangle {
- width: 60
- height: 30
- anchors.centerIn: parent
- border.width: 1
-
- Popup {
- id: popup
- x: parent.width
- y: parent.height
- width: 30
- height: 60
- visible: true
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/toolTipCrashOnClose.qml b/tests/auto/qquickpopup/data/toolTipCrashOnClose.qml
deleted file mode 100644
index 8de14f4c..00000000
--- a/tests/auto/qquickpopup/data/toolTipCrashOnClose.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Window 2.13
-import QtQuick.Controls 2.13
-import QtGraphicalEffects 1.13
-
-Window {
- width: 640
- height: 480
-
- readonly property bool toolTipOpened: mouseArea.ToolTip.toolTip.opened
-
- Component.onCompleted: contentItem.objectName = "windowContentItem"
-
- // For the setOverlayParentToNull test.
- function nullifyOverlayParent() {
- Overlay.overlay.parent = null
- }
-
- Item {
- objectName: "outerItem"
- anchors.fill: parent
-
- Item {
- objectName: "innerItem"
- anchors.fill: parent
-
- ColorOverlay {
- objectName: "colorOverlay"
- source: parent
- anchors.fill: parent
- }
-
- MouseArea {
- id: mouseArea
- objectName: "mouseArea"
- anchors.fill: parent
- hoverEnabled: true
-
- ToolTip.visible: containsMouse
- ToolTip.text: "ToolTip text"
- }
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/window-hover.qml b/tests/auto/qquickpopup/data/window-hover.qml
deleted file mode 100644
index 0bf00660..00000000
--- a/tests/auto/qquickpopup/data/window-hover.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- width: 400
- height: 400
-
- property alias popup: popup
- property alias parentButton: parentButton
- property alias childButton: childButton
-
- Button {
- id: parentButton
- text: "Parent"
- anchors.fill: parent
-
- Popup {
- id: popup
- x: 1
- y: 1
- padding: 1
-
- Button {
- id: childButton
- text: "Child"
- }
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/window-wheel.qml b/tests/auto/qquickpopup/data/window-wheel.qml
deleted file mode 100644
index 37edee95..00000000
--- a/tests/auto/qquickpopup/data/window-wheel.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- id: window
- width: 400
- height: 400
-
- property alias popup: popup
- property alias popupSlider: popupSlider
- property alias contentSlider: contentSlider
-
- Slider {
- id: contentSlider
- anchors.fill: parent
- wheelEnabled: true
- }
-
- Popup {
- id: popup
- x: 50; y: 50
- implicitWidth: parent.width - 100
- implicitHeight: parent.height - 100
- clip: true
- contentItem: Slider {
- id: popupSlider
- wheelEnabled: true
- }
- }
-}
diff --git a/tests/auto/qquickpopup/data/window.qml b/tests/auto/qquickpopup/data/window.qml
deleted file mode 100644
index 0e15e838..00000000
--- a/tests/auto/qquickpopup/data/window.qml
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- width: 400
- height: 400
-
- property alias popup: popup
- property alias popup2: popup2
- property alias button: button
-
- Button {
- id: button
- text: "Open"
- anchors.centerIn: parent
- anchors.verticalCenterOffset: -height
-
- Popup {
- id: popup
- y: parent.height
-
- Text {
- color: "white"
- text: "Hello, world!"
-
- MouseArea {
- anchors.fill: parent
- onClicked: popup.close()
- }
- }
- }
- }
-
- Popup {
- id: popup2
- y: popup.y
- z: 1
- contentItem: Text {
- text: "Popup2"
- font.pixelSize: 36
- }
- }
-}
diff --git a/tests/auto/qquickpopup/qquickpopup.pro b/tests/auto/qquickpopup/qquickpopup.pro
deleted file mode 100644
index 935e91bd..00000000
--- a/tests/auto/qquickpopup/qquickpopup.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickpopup
-SOURCES += tst_qquickpopup.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp
deleted file mode 100644
index e1e2c470..00000000
--- a/tests/auto/qquickpopup/tst_qquickpopup.cpp
+++ /dev/null
@@ -1,1236 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include <QtTest/qsignalspy.h>
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-#include "../shared/qtest_quickcontrols.h"
-
-#include <QtGui/qpa/qwindowsysteminterface.h>
-#include <QtQuick/qquickview.h>
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-#include <QtQuickTemplates2/private/qquickcombobox_p.h>
-#include <QtQuickTemplates2/private/qquickdialog_p.h>
-#include <QtQuickTemplates2/private/qquickoverlay_p.h>
-#include <QtQuickTemplates2/private/qquickpopup_p.h>
-#include <QtQuickTemplates2/private/qquickbutton_p.h>
-#include <QtQuickTemplates2/private/qquickslider_p.h>
-#include <QtQuickTemplates2/private/qquickstackview_p.h>
-
-using namespace QQuickVisualTestUtil;
-
-class tst_QQuickPopup : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
- void visible_data();
- void visible();
- void state();
- void overlay_data();
- void overlay();
- void zOrder_data();
- void zOrder();
- void windowChange();
- void closePolicy_data();
- void closePolicy();
- void activeFocusOnClose1();
- void activeFocusOnClose2();
- void activeFocusOnClose3();
- void hover_data();
- void hover();
- void wheel_data();
- void wheel();
- void parentDestroyed();
- void nested();
- void grabber();
- void cursorShape();
- void componentComplete();
- void closeOnEscapeWithNestedPopups();
- void enabled();
- void orientation_data();
- void orientation();
- void qquickview();
- void disabledPalette();
- void disabledParentPalette();
- void countChanged();
- void toolTipCrashOnClose();
- void setOverlayParentToNull();
-};
-
-void tst_QQuickPopup::initTestCase()
-{
- QQmlDataTest::initTestCase();
- qputenv("QML_NO_TOUCH_COMPRESSION", "1");
-}
-
-void tst_QQuickPopup::visible_data()
-{
- QTest::addColumn<QString>("source");
- QTest::newRow("Window") << "window.qml";
- QTest::newRow("ApplicationWindow") << "applicationwindow.qml";
-}
-
-void tst_QQuickPopup::visible()
-{
- QFETCH(QString, source);
- QQuickApplicationHelper helper(this, source);
-
- QQuickWindow *window = helper.window;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
- QQuickItem *popupItem = popup->popupItem();
-
- popup->open();
- QVERIFY(popup->isVisible());
-
- QQuickOverlay *overlay = QQuickOverlay::overlay(window);
- QVERIFY(overlay);
- QVERIFY(overlay->childItems().contains(popupItem));
-
- popup->close();
- QTRY_VERIFY(!popup->isVisible());
- QVERIFY(!overlay->childItems().contains(popupItem));
-
- popup->setVisible(true);
- QVERIFY(popup->isVisible());
- QVERIFY(overlay->childItems().contains(popupItem));
-
- popup->setVisible(false);
- QTRY_VERIFY(!popup->isVisible());
- QVERIFY(!overlay->childItems().contains(popupItem));
-}
-
-void tst_QQuickPopup::state()
-{
- QQuickApplicationHelper helper(this, "applicationwindow.qml");
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
-
- QCOMPARE(popup->isVisible(), false);
-
- QSignalSpy visibleChangedSpy(popup, SIGNAL(visibleChanged()));
- QSignalSpy aboutToShowSpy(popup, SIGNAL(aboutToShow()));
- QSignalSpy aboutToHideSpy(popup, SIGNAL(aboutToHide()));
- QSignalSpy openedSpy(popup, SIGNAL(opened()));
- QSignalSpy closedSpy(popup, SIGNAL(closed()));
-
- QVERIFY(visibleChangedSpy.isValid());
- QVERIFY(aboutToShowSpy.isValid());
- QVERIFY(aboutToHideSpy.isValid());
- QVERIFY(openedSpy.isValid());
- QVERIFY(closedSpy.isValid());
-
- popup->open();
- QCOMPARE(visibleChangedSpy.count(), 1);
- QCOMPARE(aboutToShowSpy.count(), 1);
- QCOMPARE(aboutToHideSpy.count(), 0);
- QTRY_COMPARE(openedSpy.count(), 1);
- QCOMPARE(closedSpy.count(), 0);
-
- popup->close();
- QTRY_COMPARE(visibleChangedSpy.count(), 2);
- QCOMPARE(aboutToShowSpy.count(), 1);
- QCOMPARE(aboutToHideSpy.count(), 1);
- QCOMPARE(openedSpy.count(), 1);
- QTRY_COMPARE(closedSpy.count(), 1);
-}
-
-void tst_QQuickPopup::overlay_data()
-{
- QTest::addColumn<QString>("source");
- QTest::addColumn<bool>("modal");
- QTest::addColumn<bool>("dim");
-
- QTest::newRow("Window") << "window.qml" << false << false;
- QTest::newRow("Window,dim") << "window.qml" << false << true;
- QTest::newRow("Window,modal") << "window.qml" << true << false;
- QTest::newRow("Window,modal,dim") << "window.qml" << true << true;
-
- QTest::newRow("ApplicationWindow") << "applicationwindow.qml" << false << false;
- QTest::newRow("ApplicationWindow,dim") << "applicationwindow.qml" << false << true;
- QTest::newRow("ApplicationWindow,modal") << "applicationwindow.qml" << true << false;
- QTest::newRow("ApplicationWindow,modal,dim") << "applicationwindow.qml" << true << true;
-}
-
-void tst_QQuickPopup::overlay()
-{
- QFETCH(QString, source);
- QFETCH(bool, modal);
- QFETCH(bool, dim);
-
- QQuickApplicationHelper helper(this, source);
-
- QQuickWindow *window = helper.window;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickOverlay *overlay = QQuickOverlay::overlay(window);
- QVERIFY(overlay);
-
- QSignalSpy overlayPressedSignal(overlay, SIGNAL(pressed()));
- QSignalSpy overlayReleasedSignal(overlay, SIGNAL(released()));
- QVERIFY(overlayPressedSignal.isValid());
- QVERIFY(overlayReleasedSignal.isValid());
-
- QVERIFY(!overlay->isVisible()); // no popups open
-
- QTest::mouseClick(window, Qt::LeftButton);
- QCOMPARE(overlayPressedSignal.count(), 0);
- QCOMPARE(overlayReleasedSignal.count(), 0);
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
-
- QQuickOverlayAttached *overlayAttached = qobject_cast<QQuickOverlayAttached *>(qmlAttachedPropertiesObject<QQuickOverlay>(popup));
- QVERIFY(overlayAttached);
- QCOMPARE(overlayAttached->overlay(), overlay);
-
- QSignalSpy overlayAttachedPressedSignal(overlayAttached, SIGNAL(pressed()));
- QSignalSpy overlayAttachedReleasedSignal(overlayAttached, SIGNAL(released()));
- QVERIFY(overlayAttachedPressedSignal.isValid());
- QVERIFY(overlayAttachedReleasedSignal.isValid());
-
- QQuickButton *button = window->property("button").value<QQuickButton*>();
- QVERIFY(button);
-
- int overlayPressCount = 0;
- int overlayReleaseCount = 0;
-
- popup->open();
- QVERIFY(popup->isVisible());
- QVERIFY(overlay->isVisible());
- QTRY_VERIFY(popup->isOpened());
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QCOMPARE(overlayPressedSignal.count(), ++overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), overlayReleaseCount);
- QCOMPARE(overlayAttachedPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayAttachedReleasedSignal.count(), overlayReleaseCount);
-
- QTRY_VERIFY(!popup->isVisible());
- QVERIFY(!overlay->isVisible());
-
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QCOMPARE(overlayPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), overlayReleaseCount); // no modal-popups open
- QCOMPARE(overlayAttachedPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayAttachedReleasedSignal.count(), overlayReleaseCount);
-
- popup->setDim(dim);
- popup->setModal(modal);
- popup->setClosePolicy(QQuickPopup::CloseOnReleaseOutside);
-
- // mouse
- popup->open();
- QVERIFY(popup->isVisible());
- QVERIFY(overlay->isVisible());
- QTRY_VERIFY(popup->isOpened());
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QCOMPARE(overlayPressedSignal.count(), ++overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), overlayReleaseCount);
- QCOMPARE(overlayAttachedPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayAttachedReleasedSignal.count(), overlayReleaseCount);
-
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QCOMPARE(overlayPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), ++overlayReleaseCount);
- QCOMPARE(overlayAttachedPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayAttachedReleasedSignal.count(), overlayReleaseCount);
-
- QTRY_VERIFY(!popup->isVisible());
- QVERIFY(!overlay->isVisible());
-
- // touch
- popup->open();
- QVERIFY(popup->isVisible());
- QVERIFY(overlay->isVisible());
-
- struct TouchDeviceDeleter
- {
- static inline void cleanup(QTouchDevice *device)
- {
- QWindowSystemInterface::unregisterTouchDevice(device);
- delete device;
- }
- };
-
- QScopedPointer<QTouchDevice, TouchDeviceDeleter> device(new QTouchDevice);
- device->setType(QTouchDevice::TouchScreen);
- QWindowSystemInterface::registerTouchDevice(device.data());
-
- QTest::touchEvent(window, device.data()).press(0, QPoint(1, 1));
- QCOMPARE(overlayPressedSignal.count(), ++overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), overlayReleaseCount);
- QCOMPARE(overlayAttachedPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayAttachedReleasedSignal.count(), overlayReleaseCount);
-
- QTest::touchEvent(window, device.data()).release(0, QPoint(1, 1));
- QCOMPARE(overlayPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), ++overlayReleaseCount);
- QCOMPARE(overlayAttachedPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayAttachedReleasedSignal.count(), overlayReleaseCount);
-
- QTRY_VERIFY(!popup->isVisible());
- QVERIFY(!overlay->isVisible());
-
- // multi-touch
- popup->open();
- QVERIFY(popup->isVisible());
- QVERIFY(overlay->isVisible());
- QVERIFY(!button->isPressed());
-
- QTest::touchEvent(window, device.data()).press(0, button->mapToScene(QPointF(1, 1)).toPoint());
- QVERIFY(popup->isVisible());
- QVERIFY(overlay->isVisible());
- QCOMPARE(button->isPressed(), !modal);
- QCOMPARE(overlayPressedSignal.count(), ++overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), overlayReleaseCount);
-
- QTest::touchEvent(window, device.data()).stationary(0).press(1, button->mapToScene(QPointF(button->width() / 2, button->height() / 2)).toPoint());
- QVERIFY(popup->isVisible());
- QVERIFY(overlay->isVisible());
- QCOMPARE(button->isPressed(), !modal);
- QCOMPARE(overlayPressedSignal.count(), ++overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), overlayReleaseCount);
-
- QTest::touchEvent(window, device.data()).release(0, button->mapToScene(QPointF(1, 1)).toPoint()).stationary(1);
- QTRY_VERIFY(!popup->isVisible());
- QVERIFY(!overlay->isVisible());
- QVERIFY(!button->isPressed());
- QCOMPARE(overlayPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), ++overlayReleaseCount);
-
- QTest::touchEvent(window, device.data()).release(1, button->mapToScene(QPointF(button->width() / 2, button->height() / 2)).toPoint());
- QVERIFY(!popup->isVisible());
- QVERIFY(!overlay->isVisible());
- QVERIFY(!button->isPressed());
- QCOMPARE(overlayPressedSignal.count(), overlayPressCount);
- QCOMPARE(overlayReleasedSignal.count(), overlayReleaseCount);
-}
-
-void tst_QQuickPopup::zOrder_data()
-{
- QTest::addColumn<QString>("source");
- QTest::newRow("Window") << "window.qml";
- QTest::newRow("ApplicationWindow") << "applicationwindow.qml";
-}
-
-void tst_QQuickPopup::zOrder()
-{
- QFETCH(QString, source);
- QQuickApplicationHelper helper(this, source);
-
- QQuickWindow *window = helper.window;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
- popup->setModal(true);
-
- QQuickPopup *popup2 = window->property("popup2").value<QQuickPopup*>();
- QVERIFY(popup2);
- popup2->setModal(true);
-
- // show popups in reverse order. popup2 has higher z-order so it appears
- // on top and must be closed first, even if the other popup was opened last
- popup2->open();
- popup->open();
- QVERIFY(popup2->isVisible());
- QVERIFY(popup->isVisible());
-
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QTRY_VERIFY(!popup2->isVisible());
- QVERIFY(popup->isVisible());
-
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QVERIFY(!popup2->isVisible());
- QTRY_VERIFY(!popup->isVisible());
-}
-
-void tst_QQuickPopup::windowChange()
-{
- QQuickPopup popup;
- QSignalSpy spy(&popup, SIGNAL(windowChanged(QQuickWindow*)));
- QVERIFY(spy.isValid());
-
- QQuickItem item;
- popup.setParentItem(&item);
- QVERIFY(!popup.window());
- QCOMPARE(spy.count(), 0);
-
- QQuickWindow window;
- item.setParentItem(window.contentItem());
- QCOMPARE(popup.window(), &window);
- QCOMPARE(spy.count(), 1);
-
- item.setParentItem(nullptr);
- QVERIFY(!popup.window());
- QCOMPARE(spy.count(), 2);
-
- popup.setParentItem(window.contentItem());
- QCOMPARE(popup.window(), &window);
- QCOMPARE(spy.count(), 3);
-
- popup.resetParentItem();
- QVERIFY(!popup.window());
- QCOMPARE(spy.count(), 4);
-
- popup.setParent(&window);
- popup.resetParentItem();
- QCOMPARE(popup.window(), &window);
- QCOMPARE(spy.count(), 5);
-
- popup.setParent(this);
- popup.resetParentItem();
- QVERIFY(!popup.window());
- QCOMPARE(spy.count(), 6);
-
- item.setParentItem(window.contentItem());
- popup.setParent(&item);
- popup.resetParentItem();
- QCOMPARE(popup.window(), &window);
- QCOMPARE(spy.count(), 7);
-
- popup.setParent(nullptr);
-}
-
-Q_DECLARE_METATYPE(QQuickPopup::ClosePolicy)
-
-void tst_QQuickPopup::closePolicy_data()
-{
- qRegisterMetaType<QQuickPopup::ClosePolicy>();
-
- QTest::addColumn<QString>("source");
- QTest::addColumn<QQuickPopup::ClosePolicy>("closePolicy");
-
- QTest::newRow("Window:NoAutoClose") << "window.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::NoAutoClose);
- QTest::newRow("Window:CloseOnPressOutside") << "window.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnPressOutside);
- QTest::newRow("Window:CloseOnPressOutsideParent") << "window.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnPressOutsideParent);
- QTest::newRow("Window:CloseOnPressOutside|Parent") << "window.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnPressOutside | QQuickPopup::CloseOnPressOutsideParent);
- QTest::newRow("Window:CloseOnReleaseOutside") << "window.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnReleaseOutside);
- QTest::newRow("Window:CloseOnReleaseOutside|Parent") << "window.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnReleaseOutside | QQuickPopup::CloseOnReleaseOutsideParent);
- QTest::newRow("Window:CloseOnEscape") << "window.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnEscape);
-
- QTest::newRow("ApplicationWindow:NoAutoClose") << "applicationwindow.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::NoAutoClose);
- QTest::newRow("ApplicationWindow:CloseOnPressOutside") << "applicationwindow.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnPressOutside);
- QTest::newRow("ApplicationWindow:CloseOnPressOutsideParent") << "applicationwindow.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnPressOutsideParent);
- QTest::newRow("ApplicationWindow:CloseOnPressOutside|Parent") << "applicationwindow.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnPressOutside | QQuickPopup::CloseOnPressOutsideParent);
- QTest::newRow("ApplicationWindow:CloseOnReleaseOutside") << "applicationwindow.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnReleaseOutside);
- QTest::newRow("ApplicationWindow:CloseOnReleaseOutside|Parent") << "applicationwindow.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnReleaseOutside | QQuickPopup::CloseOnReleaseOutsideParent);
- QTest::newRow("ApplicationWindow:CloseOnEscape") << "applicationwindow.qml"<< static_cast<QQuickPopup::ClosePolicy>(QQuickPopup::CloseOnEscape);
-}
-
-void tst_QQuickPopup::closePolicy()
-{
- QFETCH(QString, source);
- QFETCH(QQuickPopup::ClosePolicy, closePolicy);
-
- QQuickApplicationHelper helper(this, source);
-
- QQuickWindow *window = helper.window;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
-
- QQuickButton *button = window->property("button").value<QQuickButton*>();
- QVERIFY(button);
-
- popup->setModal(true);
- popup->setFocus(true);
- popup->setClosePolicy(closePolicy);
-
- popup->open();
- QVERIFY(popup->isVisible());
- QTRY_VERIFY(popup->isOpened());
-
- // press outside popup and its parent
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1), 50);
- if (closePolicy.testFlag(QQuickPopup::CloseOnPressOutside) || closePolicy.testFlag(QQuickPopup::CloseOnPressOutsideParent))
- QTRY_VERIFY(!popup->isVisible());
- else
- QVERIFY(popup->isVisible());
-
- popup->open();
- QVERIFY(popup->isVisible());
- QTRY_VERIFY(popup->isOpened());
-
- // release outside popup and its parent
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- if (closePolicy.testFlag(QQuickPopup::CloseOnReleaseOutside))
- QTRY_VERIFY(!popup->isVisible());
- else
- QVERIFY(popup->isVisible());
-
- popup->open();
- QVERIFY(popup->isVisible());
- QTRY_VERIFY(popup->isOpened());
-
- // press outside popup but inside its parent
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(button->x() + 1, button->y() + 1));
- if (closePolicy.testFlag(QQuickPopup::CloseOnPressOutside) && !closePolicy.testFlag(QQuickPopup::CloseOnPressOutsideParent))
- QTRY_VERIFY(!popup->isVisible());
- else
- QVERIFY(popup->isVisible());
-
- popup->open();
- QVERIFY(popup->isVisible());
- QTRY_VERIFY(popup->isOpened());
-
- // release outside popup but inside its parent
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(button->x() + 1, button->y() + 1));
- if (closePolicy.testFlag(QQuickPopup::CloseOnReleaseOutside) && !closePolicy.testFlag(QQuickPopup::CloseOnReleaseOutsideParent))
- QTRY_VERIFY(!popup->isVisible());
- else
- QVERIFY(popup->isVisible());
-
- popup->open();
- QVERIFY(popup->isVisible());
- QTRY_VERIFY(popup->isOpened());
-
- // press inside and release outside
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(button->x() + popup->x() + 1,
- button->y() + popup->y() + 1));
- QVERIFY(popup->isVisible());
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1));
- QVERIFY(popup->isVisible());
-
- // escape
- QTest::keyClick(window, Qt::Key_Escape);
- if (closePolicy.testFlag(QQuickPopup::CloseOnEscape))
- QTRY_VERIFY(!popup->isVisible());
- else
- QVERIFY(popup->isVisible());
-}
-
-void tst_QQuickPopup::activeFocusOnClose1()
-{
- // Test that a popup that never sets focus: true (e.g. ToolTip) doesn't affect
- // the active focus item when it closes.
- QQuickApplicationHelper helper(this, QStringLiteral("activeFocusOnClose1.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *focusedPopup = helper.appWindow->property("focusedPopup").value<QQuickPopup*>();
- QVERIFY(focusedPopup);
-
- QQuickPopup *nonFocusedPopup = helper.appWindow->property("nonFocusedPopup").value<QQuickPopup*>();
- QVERIFY(nonFocusedPopup);
-
- focusedPopup->open();
- QVERIFY(focusedPopup->isVisible());
- QTRY_VERIFY(focusedPopup->isOpened());
- QVERIFY(focusedPopup->hasActiveFocus());
-
- nonFocusedPopup->open();
- QVERIFY(nonFocusedPopup->isVisible());
- QTRY_VERIFY(nonFocusedPopup->isOpened());
- QVERIFY(focusedPopup->hasActiveFocus());
-
- nonFocusedPopup->close();
- QTRY_VERIFY(!nonFocusedPopup->isVisible());
- QVERIFY(focusedPopup->hasActiveFocus());
-
- // QTBUG-66113: force active focus on a popup that did not request focus
- nonFocusedPopup->open();
- nonFocusedPopup->forceActiveFocus();
- QVERIFY(nonFocusedPopup->isVisible());
- QTRY_VERIFY(nonFocusedPopup->isOpened());
- QVERIFY(nonFocusedPopup->hasActiveFocus());
-
- nonFocusedPopup->close();
- QTRY_VERIFY(!nonFocusedPopup->isVisible());
- QVERIFY(focusedPopup->hasActiveFocus());
-}
-
-void tst_QQuickPopup::activeFocusOnClose2()
-{
- // Test that a popup that sets focus: true but relinquishes focus (e.g. by
- // calling forceActiveFocus() on another item) before it closes doesn't
- // affect the active focus item when it closes.
- QQuickApplicationHelper helper(this, QStringLiteral("activeFocusOnClose2.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup1 = helper.appWindow->property("popup1").value<QQuickPopup*>();
- QVERIFY(popup1);
-
- QQuickPopup *popup2 = helper.appWindow->property("popup2").value<QQuickPopup*>();
- QVERIFY(popup2);
-
- QQuickButton *closePopup2Button = helper.appWindow->property("closePopup2Button").value<QQuickButton*>();
- QVERIFY(closePopup2Button);
-
- popup1->open();
- QVERIFY(popup1->isVisible());
- QTRY_VERIFY(popup1->isOpened());
- QVERIFY(popup1->hasActiveFocus());
-
- popup2->open();
- QVERIFY(popup2->isVisible());
- QTRY_VERIFY(popup2->isOpened());
- QVERIFY(popup2->hasActiveFocus());
-
- // Causes popup1.contentItem.forceActiveFocus() to be called, then closes popup2.
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier,
- closePopup2Button->mapToScene(QPointF(closePopup2Button->width() / 2, closePopup2Button->height() / 2)).toPoint());
- QTRY_VERIFY(!popup2->isVisible());
- QVERIFY(popup1->hasActiveFocus());
-}
-
-void tst_QQuickPopup::activeFocusOnClose3()
-{
- // Test that a closing popup that had focus doesn't steal focus from
- // another popup that the focus was transferred to.
- QQuickApplicationHelper helper(this, QStringLiteral("activeFocusOnClose3.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup1 = helper.appWindow->property("popup1").value<QQuickPopup*>();
- QVERIFY(popup1);
-
- QQuickPopup *popup2 = helper.appWindow->property("popup2").value<QQuickPopup*>();
- QVERIFY(popup2);
-
- popup1->open();
- QVERIFY(popup1->isVisible());
- QTRY_VERIFY(popup1->hasActiveFocus());
-
- popup2->open();
- popup1->close();
-
- QSignalSpy closedSpy(popup1, SIGNAL(closed()));
- QVERIFY(closedSpy.isValid());
- QVERIFY(closedSpy.wait());
-
- QVERIFY(!popup1->isVisible());
- QVERIFY(popup2->isVisible());
- QTRY_VERIFY(popup2->hasActiveFocus());
-}
-
-void tst_QQuickPopup::hover_data()
-{
- QTest::addColumn<QString>("source");
- QTest::addColumn<bool>("modal");
-
- QTest::newRow("Window:modal") << "window-hover.qml" << true;
- QTest::newRow("Window:modeless") << "window-hover.qml" << false;
- QTest::newRow("ApplicationWindow:modal") << "applicationwindow-hover.qml" << true;
- QTest::newRow("ApplicationWindow:modeless") << "applicationwindow-hover.qml" << false;
-}
-
-void tst_QQuickPopup::hover()
-{
- QFETCH(QString, source);
- QFETCH(bool, modal);
-
- QQuickApplicationHelper helper(this, source);
- QQuickWindow *window = helper.window;
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
- popup->setModal(modal);
-
- QQuickButton *parentButton = window->property("parentButton").value<QQuickButton*>();
- QVERIFY(parentButton);
- parentButton->setHoverEnabled(true);
-
- QQuickButton *childButton = window->property("childButton").value<QQuickButton*>();
- QVERIFY(childButton);
- childButton->setHoverEnabled(true);
-
- QSignalSpy openedSpy(popup, SIGNAL(opened()));
- QVERIFY(openedSpy.isValid());
- popup->open();
- QVERIFY(openedSpy.count() == 1 || openedSpy.wait());
-
- // hover the parent button outside the popup
- QTest::mouseMove(window, QPoint(window->width() - 1, window->height() - 1));
- QCOMPARE(parentButton->isHovered(), !modal);
- QVERIFY(!childButton->isHovered());
-
- // hover the popup background
- QTest::mouseMove(window, QPoint(1, 1));
- QVERIFY(!parentButton->isHovered());
- QVERIFY(!childButton->isHovered());
-
- // hover the child button in a popup
- QTest::mouseMove(window, QPoint(popup->x() + popup->width() / 2, popup->y() + popup->height() / 2));
- QVERIFY(!parentButton->isHovered());
- QVERIFY(childButton->isHovered());
-
- QSignalSpy closedSpy(popup, SIGNAL(closed()));
- QVERIFY(closedSpy.isValid());
- popup->close();
- QVERIFY(closedSpy.count() == 1 || closedSpy.wait());
-
- // hover the parent button after closing the popup
- QTest::mouseMove(window, QPoint(window->width() / 2, window->height() / 2));
- QVERIFY(parentButton->isHovered());
-}
-
-void tst_QQuickPopup::wheel_data()
-{
- QTest::addColumn<QString>("source");
- QTest::addColumn<bool>("modal");
-
- QTest::newRow("Window:modal") << "window-wheel.qml" << true;
- QTest::newRow("Window:modeless") << "window-wheel.qml" << false;
- QTest::newRow("ApplicationWindow:modal") << "applicationwindow-wheel.qml" << true;
- QTest::newRow("ApplicationWindow:modeless") << "applicationwindow-wheel.qml" << false;
-}
-
-static bool sendWheelEvent(QQuickItem *item, const QPoint &localPos, int degrees)
-{
- QQuickWindow *window = item->window();
- QWheelEvent wheelEvent(localPos, item->window()->mapToGlobal(localPos), QPoint(0, 0),
- QPoint(0, 8 * degrees), Qt::NoButton, Qt::NoModifier, Qt::NoScrollPhase,
- false);
- QSpontaneKeyEvent::setSpontaneous(&wheelEvent);
- return qGuiApp->notify(window, &wheelEvent);
-}
-
-void tst_QQuickPopup::wheel()
-{
- QFETCH(QString, source);
- QFETCH(bool, modal);
-
- QQuickApplicationHelper helper(this, source);
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickSlider *contentSlider = window->property("contentSlider").value<QQuickSlider*>();
- QVERIFY(contentSlider);
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup && popup->contentItem());
- popup->setModal(modal);
-
- QQuickSlider *popupSlider = window->property("popupSlider").value<QQuickSlider*>();
- QVERIFY(popupSlider);
-
- {
- // wheel over the content
- qreal oldContentValue = contentSlider->value();
- qreal oldPopupValue = popupSlider->value();
-
- QVERIFY(sendWheelEvent(contentSlider, QPoint(contentSlider->width() / 2, contentSlider->height() / 2), 15));
-
- QVERIFY(!qFuzzyCompare(contentSlider->value(), oldContentValue)); // must have moved
- QVERIFY(qFuzzyCompare(popupSlider->value(), oldPopupValue)); // must not have moved
- }
-
- QSignalSpy openedSpy(popup, SIGNAL(opened()));
- QVERIFY(openedSpy.isValid());
- popup->open();
- QVERIFY(openedSpy.count() == 1 || openedSpy.wait());
-
- {
- // wheel over the popup content
- qreal oldContentValue = contentSlider->value();
- qreal oldPopupValue = popupSlider->value();
-
- QVERIFY(sendWheelEvent(popupSlider, QPoint(popupSlider->width() / 2, popupSlider->height() / 2), 15));
-
- QVERIFY(qFuzzyCompare(contentSlider->value(), oldContentValue)); // must not have moved
- QVERIFY(!qFuzzyCompare(popupSlider->value(), oldPopupValue)); // must have moved
- }
-
- {
- // wheel over the overlay
- qreal oldContentValue = contentSlider->value();
- qreal oldPopupValue = popupSlider->value();
-
- QVERIFY(sendWheelEvent(QQuickOverlay::overlay(window), QPoint(0, 0), 15));
-
- if (modal) {
- // the content below a modal overlay must not move
- QVERIFY(qFuzzyCompare(contentSlider->value(), oldContentValue));
- } else {
- // the content below a modeless overlay must move
- QVERIFY(!qFuzzyCompare(contentSlider->value(), oldContentValue));
- }
- QVERIFY(qFuzzyCompare(popupSlider->value(), oldPopupValue)); // must not have moved
- }
-}
-
-void tst_QQuickPopup::parentDestroyed()
-{
- QQuickPopup popup;
- popup.setParentItem(new QQuickItem);
- delete popup.parentItem();
- QVERIFY(!popup.parentItem());
-}
-
-void tst_QQuickPopup::nested()
-{
- QQuickApplicationHelper helper(this, QStringLiteral("nested.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickPopup *modalPopup = window->property("modalPopup").value<QQuickPopup *>();
- QVERIFY(modalPopup);
-
- QQuickPopup *modelessPopup = window->property("modelessPopup").value<QQuickPopup *>();
- QVERIFY(modelessPopup);
-
- modalPopup->open();
- QCOMPARE(modalPopup->isVisible(), true);
-
- modelessPopup->open();
- QCOMPARE(modelessPopup->isVisible(), true);
-
- // click outside the modeless popup on the top, but inside the modal popup below
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(150, 150));
-
- QTRY_COMPARE(modelessPopup->isVisible(), false);
- QCOMPARE(modalPopup->isVisible(), true);
-}
-
-// QTBUG-56697
-void tst_QQuickPopup::grabber()
-{
- QQuickApplicationHelper helper(this, QStringLiteral("grabber.qml"));
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickPopup *menu = window->property("menu").value<QQuickPopup *>();
- QVERIFY(menu);
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup *>();
- QVERIFY(popup);
-
- QQuickPopup *combo = window->property("combo").value<QQuickPopup *>();
- QVERIFY(combo);
-
- menu->open();
- QTRY_COMPARE(menu->isOpened(), true);
- QCOMPARE(popup->isVisible(), false);
- QCOMPARE(combo->isVisible(), false);
-
- // click a menu item to open the popup
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(menu->width() / 2, menu->height() / 2));
- QTRY_COMPARE(menu->isVisible(), false);
- QTRY_COMPARE(popup->isOpened(), true);
- QCOMPARE(combo->isVisible(), false);
-
- combo->open();
- QCOMPARE(menu->isVisible(), false);
- QCOMPARE(popup->isVisible(), true);
- QTRY_COMPARE(combo->isOpened(), true);
-
- // click outside to close both the combo popup and the parent popup
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - 1, window->height() - 1));
- QCOMPARE(menu->isVisible(), false);
- QTRY_COMPARE(popup->isVisible(), false);
- QTRY_COMPARE(combo->isVisible(), false);
-
- menu->open();
- QTRY_COMPARE(menu->isOpened(), true);
- QCOMPARE(popup->isVisible(), false);
- QCOMPARE(combo->isVisible(), false);
-
- // click outside the menu to close it (QTBUG-56697)
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() - 1, window->height() - 1));
- QTRY_COMPARE(menu->isVisible(), false);
- QCOMPARE(popup->isVisible(), false);
- QCOMPARE(combo->isVisible(), false);
-}
-
-void tst_QQuickPopup::cursorShape()
-{
- // Ensure that the mouse cursor has the correct shape when over a popup
- // which is itself over an item with a different shape.
- QQuickApplicationHelper helper(this, QStringLiteral("cursor.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- QQuickPopup *popup = helper.appWindow->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
-
- popup->open();
- QVERIFY(popup->isVisible());
- QTRY_VERIFY(popup->isOpened());
-
- QQuickItem *textField = helper.appWindow->property("textField").value<QQuickItem*>();
- QVERIFY(textField);
-
- // Move the mouse over the text field.
- const QPoint textFieldPos(popup->x() - 10, textField->height() / 2);
- QTest::mouseMove(window, textFieldPos);
- QCOMPARE(window->cursor().shape(), textField->cursor().shape());
-
- // Move the mouse over the popup where it overlaps with the text field.
- const QPoint textFieldOverlapPos(popup->x() + 10, textField->height() / 2);
- QTest::mouseMove(window, textFieldOverlapPos);
- QCOMPARE(window->cursor().shape(), popup->popupItem()->cursor().shape());
-
- popup->close();
- QTRY_VERIFY(!popup->isVisible());
-}
-
-class FriendlyPopup : public QQuickPopup
-{
- friend class tst_QQuickPopup;
-};
-
-void tst_QQuickPopup::componentComplete()
-{
- FriendlyPopup cppPopup;
- QVERIFY(cppPopup.isComponentComplete());
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData("import QtQuick.Controls 2.2; Popup { }", QUrl());
-
- FriendlyPopup *qmlPopup = static_cast<FriendlyPopup *>(component.beginCreate(engine.rootContext()));
- QVERIFY(qmlPopup);
- QVERIFY(!qmlPopup->isComponentComplete());
-
- component.completeCreate();
- QVERIFY(qmlPopup->isComponentComplete());
-}
-
-void tst_QQuickPopup::closeOnEscapeWithNestedPopups()
-{
- // Tests the scenario in the Gallery example, where there are nested popups that should
- // close in the correct order when the Escape key is pressed.
- QQuickApplicationHelper helper(this, QStringLiteral("closeOnEscapeWithNestedPopups.qml"));
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
-
- // The stack view should have two items, and it should pop the second when escape is pressed
- // and it has focus.
- QQuickStackView *stackView = window->findChild<QQuickStackView*>("stackView");
- QVERIFY(stackView);
- QCOMPARE(stackView->depth(), 2);
-
- QQuickItem *optionsToolButton = window->findChild<QQuickItem*>("optionsToolButton");
- QVERIFY(optionsToolButton);
-
- // Click on the options tool button. The settings menu should pop up.
- const QPoint optionsToolButtonCenter = optionsToolButton->mapToScene(
- QPointF(optionsToolButton->width() / 2, optionsToolButton->height() / 2)).toPoint();
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, optionsToolButtonCenter);
-
- QQuickPopup *optionsMenu = window->findChild<QQuickPopup*>("optionsMenu");
- QVERIFY(optionsMenu);
- QTRY_VERIFY(optionsMenu->isVisible());
-
- QQuickItem *settingsMenuItem = window->findChild<QQuickItem*>("settingsMenuItem");
- QVERIFY(settingsMenuItem);
-
- // Click on the settings menu item. The settings dialog should pop up.
- const QPoint settingsMenuItemCenter = settingsMenuItem->mapToScene(
- QPointF(settingsMenuItem->width() / 2, settingsMenuItem->height() / 2)).toPoint();
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, settingsMenuItemCenter);
-
- QQuickPopup *settingsDialog = window->contentItem()->findChild<QQuickPopup*>("settingsDialog");
- QVERIFY(settingsDialog);
- QTRY_VERIFY(settingsDialog->isVisible());
-
- QQuickComboBox *comboBox = window->contentItem()->findChild<QQuickComboBox*>("comboBox");
- QVERIFY(comboBox);
-
- // Click on the combo box button. The combo box popup should pop up.
- const QPoint comboBoxCenter = comboBox->mapToScene(
- QPointF(comboBox->width() / 2, comboBox->height() / 2)).toPoint();
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, comboBoxCenter);
- QTRY_VERIFY(comboBox->popup()->isVisible());
-
- // Close the combo box popup with the escape key. The settings dialog should still be visible.
- QTest::keyClick(window, Qt::Key_Escape);
- QTRY_VERIFY(!comboBox->popup()->isVisible());
- QVERIFY(settingsDialog->isVisible());
-
- // Close the settings dialog with the escape key.
- QTest::keyClick(window, Qt::Key_Escape);
- QTRY_VERIFY(!settingsDialog->isVisible());
-
- // The stack view should still have two items.
- QCOMPARE(stackView->depth(), 2);
-
- // Remove one by pressing the Escape key (the Shortcut should be activated).
- QTest::keyClick(window, Qt::Key_Escape);
- QCOMPARE(stackView->depth(), 1);
-}
-
-void tst_QQuickPopup::enabled()
-{
- QQuickPopup popup;
- QVERIFY(popup.isEnabled());
- QVERIFY(popup.popupItem()->isEnabled());
-
- QSignalSpy enabledSpy(&popup, &QQuickPopup::enabledChanged);
- QVERIFY(enabledSpy.isValid());
-
- popup.setEnabled(false);
- QVERIFY(!popup.isEnabled());
- QVERIFY(!popup.popupItem()->isEnabled());
- QCOMPARE(enabledSpy.count(), 1);
-
- popup.popupItem()->setEnabled(true);
- QVERIFY(popup.isEnabled());
- QVERIFY(popup.popupItem()->isEnabled());
- QCOMPARE(enabledSpy.count(), 2);
-}
-
-void tst_QQuickPopup::orientation_data()
-{
- QTest::addColumn<Qt::ScreenOrientation>("orientation");
- QTest::addColumn<QPointF>("position");
-
- QTest::newRow("Portrait") << Qt::PortraitOrientation << QPointF(330, 165);
- QTest::newRow("Landscape") << Qt::LandscapeOrientation << QPointF(165, 270);
- QTest::newRow("InvertedPortrait") << Qt::InvertedPortraitOrientation << QPointF(270, 135);
- QTest::newRow("InvertedLandscape") << Qt::InvertedLandscapeOrientation << QPointF(135, 330);
-}
-
-void tst_QQuickPopup::orientation()
-{
- QFETCH(Qt::ScreenOrientation, orientation);
- QFETCH(QPointF, position);
-
- QQuickApplicationHelper helper(this, "orientation.qml");
-
- QQuickWindow *window = helper.window;
- window->reportContentOrientationChange(orientation);
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
- popup->open();
-
- QCOMPARE(popup->popupItem()->position(), position);
-}
-
-void tst_QQuickPopup::qquickview()
-{
- QQuickView view;
- view.setObjectName("QQuickView");
- view.resize(400, 400);
- view.setSource(testFileUrl("dialog.qml"));
- QVERIFY(view.status() != QQuickView::Error);
- view.contentItem()->setObjectName("QQuickViewContentItem");
- view.show();
-
- QQuickDialog *dialog = view.rootObject()->property("dialog").value<QQuickDialog*>();
- QVERIFY(dialog);
- QTRY_COMPARE(dialog->property("opened").toBool(), true);
-
- dialog->close();
- QTRY_COMPARE(dialog->property("visible").toBool(), false);
-
- // QTBUG-72746: shouldn't crash on application exit after closing a Dialog when using QQuickView.
-}
-
-// TODO: also test it out without setting enabled directly on menu, but on a parent
-
-// QTBUG-73447
-void tst_QQuickPopup::disabledPalette()
-{
- QQuickApplicationHelper helper(this, "disabledPalette.qml");
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
-
- QSignalSpy popupEnabledSpy(popup, SIGNAL(enabledChanged()));
- QVERIFY(popupEnabledSpy.isValid());
- QSignalSpy popupPaletteSpy(popup, SIGNAL(paletteChanged()));
- QVERIFY(popupPaletteSpy.isValid());
-
- QSignalSpy popupItemEnabledSpy(popup->popupItem(), SIGNAL(enabledChanged()));
- QVERIFY(popupItemEnabledSpy.isValid());
- QSignalSpy popupItemPaletteSpy(popup->popupItem(), SIGNAL(paletteChanged()));
- QVERIFY(popupItemPaletteSpy.isValid());
-
- QPalette palette = popup->palette();
- palette.setColor(QPalette::Active, QPalette::Base, Qt::green);
- palette.setColor(QPalette::Disabled, QPalette::Base, Qt::red);
- popup->setPalette(palette);
- QCOMPARE(popupPaletteSpy.count(), 1);
- QCOMPARE(popupItemPaletteSpy.count(), 1);
- QCOMPARE(popup->background()->property("color").value<QColor>(), Qt::green);
-
- popup->setEnabled(false);
- QCOMPARE(popupEnabledSpy.count(), 1);
- QCOMPARE(popupItemEnabledSpy.count(), 1);
- QCOMPARE(popupPaletteSpy.count(), 2);
- QCOMPARE(popupItemPaletteSpy.count(), 2);
- QCOMPARE(popup->background()->property("color").value<QColor>(), Qt::red);
-}
-
-void tst_QQuickPopup::disabledParentPalette()
-{
- QQuickApplicationHelper helper(this, "disabledPalette.qml");
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickPopup *popup = window->property("popup").value<QQuickPopup*>();
- QVERIFY(popup);
-
- QSignalSpy popupEnabledSpy(popup, SIGNAL(enabledChanged()));
- QVERIFY(popupEnabledSpy.isValid());
- QSignalSpy popupPaletteSpy(popup, SIGNAL(paletteChanged()));
- QVERIFY(popupPaletteSpy.isValid());
-
- QSignalSpy popupItemEnabledSpy(popup->popupItem(), SIGNAL(enabledChanged()));
- QVERIFY(popupItemEnabledSpy.isValid());
- QSignalSpy popupItemPaletteSpy(popup->popupItem(), SIGNAL(paletteChanged()));
- QVERIFY(popupItemPaletteSpy.isValid());
-
- QPalette palette = popup->palette();
- palette.setColor(QPalette::Active, QPalette::Base, Qt::green);
- palette.setColor(QPalette::Disabled, QPalette::Base, Qt::red);
- popup->setPalette(palette);
- QCOMPARE(popupPaletteSpy.count(), 1);
- QCOMPARE(popupItemPaletteSpy.count(), 1);
- QCOMPARE(popup->background()->property("color").value<QColor>(), Qt::green);
-
- // Disable the overlay (which is QQuickPopupItem's parent) to ensure that
- // the palette is changed when the popup is indirectly disabled.
- popup->open();
- QTRY_VERIFY(popup->isOpened());
- QVERIFY(QMetaObject::invokeMethod(window, "disableOverlay"));
- QVERIFY(!popup->isEnabled());
- QVERIFY(!popup->popupItem()->isEnabled());
- QCOMPARE(popup->background()->property("color").value<QColor>(), Qt::red);
- QCOMPARE(popupEnabledSpy.count(), 1);
- QCOMPARE(popupItemEnabledSpy.count(), 1);
- QCOMPARE(popupPaletteSpy.count(), 2);
- QCOMPARE(popupItemPaletteSpy.count(), 2);
-
- popup->close();
- QTRY_VERIFY(!popup->isVisible());
-}
-
-void tst_QQuickPopup::countChanged()
-{
- QQuickApplicationHelper helper(this, "countChanged.qml");
-
- QQuickWindow *window = helper.window;
- window->show();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QQuickComboBox *comboBox = window->property("comboBox").value<QQuickComboBox*>();
- QVERIFY(comboBox);
- QCOMPARE(window->property("count").toInt(), 1);
-
- QVERIFY(window->setProperty("isModel1", false));
- QTRY_COMPARE(window->property("count").toInt(), 2);
-}
-
-// QTBUG-73243
-void tst_QQuickPopup::toolTipCrashOnClose()
-{
- QQuickApplicationHelper helper(this, "toolTipCrashOnClose.qml");
-
- QQuickWindow *window = helper.window;
- window->show();
- // TODO: Using ignoreMessage() fails in CI with macOS for release builds,
- // so for now we let the warning through.
-// QTest::ignoreMessage(QtWarningMsg, "ShaderEffectSource: 'recursive' must be set to true when rendering recursively.");
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QTest::mouseMove(window, QPoint(window->width() / 2, window->height() / 2));
- QTRY_VERIFY(window->property("toolTipOpened").toBool());
-
- QVERIFY(window->close());
- // Shouldn't crash.
-}
-
-void tst_QQuickPopup::setOverlayParentToNull()
-{
- QQuickApplicationHelper helper(this, "toolTipCrashOnClose.qml");
-
- QQuickWindow *window = helper.window;
- window->show();
- // TODO: Using ignoreMessage() fails in CI with macOS for release builds,
- // so for now we let the warning through.
-// QTest::ignoreMessage(QtWarningMsg, "ShaderEffectSource: 'recursive' must be set to true when rendering recursively.");
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QVERIFY(QMetaObject::invokeMethod(window, "nullifyOverlayParent"));
-
- QTest::mouseMove(window, QPoint(window->width() / 2, window->height() / 2));
- QTRY_VERIFY(window->property("toolTipOpened").toBool());
-
- QVERIFY(window->close());
- // While nullifying the overlay parent doesn't make much sense, it shouldn't crash.
-}
-
-QTEST_QUICKCONTROLS_MAIN(tst_QQuickPopup)
-
-#include "tst_qquickpopup.moc"
diff --git a/tests/auto/qquickstyle/data/custom.conf b/tests/auto/qquickstyle/data/custom.conf
deleted file mode 100644
index 2230b452..00000000
--- a/tests/auto/qquickstyle/data/custom.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=:/Custom
-
-[Custom]
-Font\PixelSize=3
-Palette\WindowText=#ff0000
diff --git a/tests/auto/qquickstyle/data/default.conf b/tests/auto/qquickstyle/data/default.conf
deleted file mode 100644
index 12ca5d8f..00000000
--- a/tests/auto/qquickstyle/data/default.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Default
-
-[Default]
-Font\PixelSize=3
-Palette\WindowText=#ff0000
diff --git a/tests/auto/qquickstyle/data/dependencies.qml b/tests/auto/qquickstyle/data/dependencies.qml
deleted file mode 100644
index dac5f935..00000000
--- a/tests/auto/qquickstyle/data/dependencies.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Control { }
diff --git a/tests/auto/qquickstyle/data/designer/ButtonSpecifics.qml b/tests/auto/qquickstyle/data/designer/ButtonSpecifics.qml
deleted file mode 100644
index 9faaa8b7..00000000
--- a/tests/auto/qquickstyle/data/designer/ButtonSpecifics.qml
+++ /dev/null
@@ -1,3 +0,0 @@
-import HelperWidgets 2.0
-
-ButtonSection { }
diff --git a/tests/auto/qquickstyle/data/dummy.dSYM/empty b/tests/auto/qquickstyle/data/dummy.dSYM/empty
deleted file mode 100644
index e69de29b..00000000
--- a/tests/auto/qquickstyle/data/dummy.dSYM/empty
+++ /dev/null
diff --git a/tests/auto/qquickstyle/data/dummyStyles/DummyStyle/Button.qml b/tests/auto/qquickstyle/data/dummyStyles/DummyStyle/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyle/data/dummyStyles/DummyStyle/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyle/data/fusion.conf b/tests/auto/qquickstyle/data/fusion.conf
deleted file mode 100644
index 1f343e65..00000000
--- a/tests/auto/qquickstyle/data/fusion.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Fusion
-
-[Fusion]
-Font\PixelSize=3
-Palette\WindowText=#ff0000
diff --git a/tests/auto/qquickstyle/data/imagine.conf b/tests/auto/qquickstyle/data/imagine.conf
deleted file mode 100644
index 919bbcf0..00000000
--- a/tests/auto/qquickstyle/data/imagine.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Imagine
-
-[Imagine]
-Font\PixelSize=3
-Palette\WindowText=#ff0000
diff --git a/tests/auto/qquickstyle/data/material.conf b/tests/auto/qquickstyle/data/material.conf
deleted file mode 100644
index 27c7931a..00000000
--- a/tests/auto/qquickstyle/data/material.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Material
-
-[Material]
-Font\PixelSize=3
-Palette\WindowText=#ff0000
diff --git a/tests/auto/qquickstyle/data/universal.conf b/tests/auto/qquickstyle/data/universal.conf
deleted file mode 100644
index a5ac3ca3..00000000
--- a/tests/auto/qquickstyle/data/universal.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Universal
-
-[Universal]
-Font\PixelSize=3
-Palette\WindowText=#ff0000
diff --git a/tests/auto/qquickstyle/qquickstyle.pro b/tests/auto/qquickstyle/qquickstyle.pro
deleted file mode 100644
index ef1dd2e0..00000000
--- a/tests/auto/qquickstyle/qquickstyle.pro
+++ /dev/null
@@ -1,28 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickstyle
-SOURCES += tst_qquickstyle.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += quickcontrols2 testlib
-QT_PRIVATE += core-private gui-private quickcontrols2-private
-
-include (../shared/util.pri)
-
-TESTDATA = $$PWD/data/*
-
-qrcStyles1.files = $$files(qrcStyles1/QrcStyle1/*.qml)
-qrcStyles1.prefix = /
-RESOURCES += qrcStyles1
-
-qrcStyles2.files = $$files(qrcStyles2/QrcStyle2/*.qml)
-qrcStyles2.prefix = /
-RESOURCES += qrcStyles2
-
-qrcStyles3.files = $$files(qrcStyles3/QrcStyle3/*.qml)
-qrcStyles3.prefix = /
-RESOURCES += qrcStyles3
-
-qrcStyles4.files = $$files(qrcStyles4/QrcStyle4/*.qml)
-qrcStyles4.prefix = /
-RESOURCES += qrcStyles4
diff --git a/tests/auto/qquickstyle/qrcStyles1/QrcStyle1/Button.qml b/tests/auto/qquickstyle/qrcStyles1/QrcStyle1/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyle/qrcStyles1/QrcStyle1/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyle/qrcStyles2/QrcStyle2/Button.qml b/tests/auto/qquickstyle/qrcStyles2/QrcStyle2/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyle/qrcStyles2/QrcStyle2/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyle/qrcStyles3/QrcStyle3/Button.qml b/tests/auto/qquickstyle/qrcStyles3/QrcStyle3/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyle/qrcStyles3/QrcStyle3/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyle/qrcStyles4/QrcStyle4/Button.qml b/tests/auto/qquickstyle/qrcStyles4/QrcStyle4/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyle/qrcStyles4/QrcStyle4/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyle/tst_qquickstyle.cpp b/tests/auto/qquickstyle/tst_qquickstyle.cpp
deleted file mode 100644
index e99dad62..00000000
--- a/tests/auto/qquickstyle/tst_qquickstyle.cpp
+++ /dev/null
@@ -1,348 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-#include <QtQuickControls2/qquickstyle.h>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-#include <QtQuickTemplates2/private/qquicklabel_p.h>
-#include <QtQuickTemplates2/private/qquicktheme_p.h>
-#include <QtGui/private/qguiapplication_p.h>
-
-#include "../shared/util.h"
-
-class tst_QQuickStyle : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void cleanup();
- void lookup();
- void configurationFile_data();
- void configurationFile();
- void commandLineArgument();
- void environmentVariables();
- void availableStyles();
- void qrcStylePaths_data();
- void qrcStylePaths();
- void qrcInQtQuickControlsStylePathEnvVar_data();
- void qrcInQtQuickControlsStylePathEnvVar();
-
-private:
- void loadControls();
- void unloadControls();
-};
-
-void tst_QQuickStyle::cleanup()
-{
- unloadControls();
-
- QGuiApplicationPrivate::styleOverride.clear();
- qunsetenv("QT_QUICK_CONTROLS_STYLE");
- qunsetenv("QT_QUICK_CONTROLS_STYLE_PATH");
- qunsetenv("QT_QUICK_CONTROLS_FALLBACK_STYLE");
- qunsetenv("QT_QUICK_CONTROLS_CONF");
-}
-
-void tst_QQuickStyle::loadControls()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData("import QtQuick 2.0; import QtQuick.Controls 2.1; Control { }", QUrl());
-
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
-}
-
-void tst_QQuickStyle::unloadControls()
-{
- qmlClearTypeRegistrations();
-}
-
-void tst_QQuickStyle::lookup()
-{
- QVERIFY(QQuickStyle::name().isEmpty());
- QVERIFY(!QQuickStyle::path().isEmpty());
-
- QQuickStyle::setStyle("material");
- QCOMPARE(QQuickStyle::name(), QString("Material"));
- QVERIFY(!QQuickStyle::path().isEmpty());
-
- loadControls();
-
- // The font size for editors in the (default) Normal variant is 16.
- // If this is wrong, the style plugin may not have been loaded.
- QCOMPARE(QQuickTheme::instance()->font(QQuickTheme::TextArea).pixelSize(), 16);
-
- QCOMPARE(QQuickStyle::name(), QString("Material"));
- QVERIFY(!QQuickStyle::path().isEmpty());
-}
-
-void tst_QQuickStyle::configurationFile_data()
-{
- QTest::addColumn<QString>("fileName");
- QTest::addColumn<QString>("expectedStyle");
- QTest::addColumn<QString>("expectedPath");
-
- QTest::newRow("Default") << "default.conf" << "Default" << "";
- QTest::newRow("Fusion") << "fusion.conf" << "Fusion" << "";
- QTest::newRow("Imagine") << "imagine.conf" << "Imagine" << "";
- QTest::newRow("Material") << "material.conf" << "Material" << "";
- QTest::newRow("Universal") << "universal.conf" << "Universal" << "";
- QTest::newRow("Custom") << "custom.conf" << "Custom" << ":/";
-}
-
-void tst_QQuickStyle::configurationFile()
-{
- QFETCH(QString, fileName);
- QFETCH(QString, expectedStyle);
- QFETCH(QString, expectedPath);
-
- qputenv("QT_QUICK_CONTROLS_CONF", testFile(fileName).toLocal8Bit());
-
- // Load a control. The import causes the configuration file to be read.
- QQmlEngine engine;
- QQmlComponent labelComponent(&engine);
- labelComponent.setData("import QtQuick 2.0; import QtQuick.Controls 2.12; Label {}", QUrl());
-
- QScopedPointer<QObject> object(labelComponent.create());
- QVERIFY2(!object.isNull(), qPrintable(labelComponent.errorString()));
-
- QCOMPARE(QQuickStyle::name(), expectedStyle);
- if (!expectedPath.isEmpty())
- QCOMPARE(QQuickStyle::path(), expectedPath);
-
- // Test that fonts and palettes specified in configuration files are respected.
- QQuickLabel *label = qobject_cast<QQuickLabel *>(object.data());
- QVERIFY(label);
- // Make it small so that there's less possibility for the default/system
- // pixel size to match it and give us false positives.
- QCOMPARE(label->font().pixelSize(), 3);
- QCOMPARE(label->palette().windowText(), Qt::red);
-}
-
-void tst_QQuickStyle::commandLineArgument()
-{
- QGuiApplicationPrivate::styleOverride = "CmdLineArgStyle";
-
- loadControls();
-
- QCOMPARE(QQuickStyle::name(), QString("CmdLineArgStyle"));
-}
-
-void tst_QQuickStyle::environmentVariables()
-{
- qputenv("QT_QUICK_CONTROLS_STYLE", "EnvVarStyle");
- qputenv("QT_QUICK_CONTROLS_FALLBACK_STYLE", "EnvVarFallbackStyle");
- QCOMPARE(QQuickStyle::name(), QString("EnvVarStyle"));
- QCOMPARE(QQuickStylePrivate::fallbackStyle(), QString("EnvVarFallbackStyle"));
-}
-
-void tst_QQuickStyle::availableStyles()
-{
- QString path = QFINDTESTDATA("data");
- QVERIFY(!path.isEmpty());
-
- QQuickStyle::addStylePath(path);
- QStringList paths = QQuickStylePrivate::stylePaths();
-#ifndef Q_OS_WIN
- QVERIFY(paths.contains(path));
-#else
- QVERIFY(paths.contains(path, Qt::CaseInsensitive));
-#endif
-
- const QStringList styles = QQuickStyle::availableStyles();
- QVERIFY(!styles.isEmpty());
- QCOMPARE(styles.first(), QString("Default"));
- QVERIFY(!styles.contains("designer"));
-
- // QTBUG-60973
- for (const QString &style : styles) {
- QVERIFY2(!style.endsWith(".dSYM"), qPrintable(style));
- }
-}
-
-void tst_QQuickStyle::qrcStylePaths_data()
-{
- QTest::addColumn<QString>("stylePath");
- QTest::addColumn<QString>("expectedStyleName");
-
- QTest::addRow("qrc:/qrcStyles1") << QString::fromLatin1("qrc:/qrcStyles1") << QString::fromLatin1("QrcStyle1");
- QTest::addRow(":/qrcStyles2") << QString::fromLatin1(":/qrcStyles2") << QString::fromLatin1("QrcStyle2");
-}
-
-void tst_QQuickStyle::qrcStylePaths()
-{
- QFETCH(QString, stylePath);
- QFETCH(QString, expectedStyleName);
-
- QQuickStyle::addStylePath(stylePath);
-
- const QStringList paths = QQuickStylePrivate::stylePaths();
- QString expectedStylePath = stylePath;
- if (expectedStylePath.startsWith(QLatin1String("qrc")))
- expectedStylePath.remove(0, 3);
- if (!paths.contains(expectedStylePath)) {
- QString message;
- QDebug stream(&message);
- stream.nospace() << "QQuickStylePrivate::stylePaths() doesn't contain " << expectedStylePath << ":\n" << paths;
- QFAIL(qPrintable(message));
- }
-
- const QStringList styles = QQuickStyle::availableStyles();
- QVERIFY(!styles.isEmpty());
- if (!styles.contains(expectedStyleName)) {
- QString message;
- QDebug stream(&message);
- stream.nospace() << "QQuickStyle::availableStyles() doesn't contain " << expectedStyleName << ":\n" << styles;
- QFAIL(qPrintable(message));
- }
-}
-
-void tst_QQuickStyle::qrcInQtQuickControlsStylePathEnvVar_data()
-{
- QTest::addColumn<QString>("environmentVariable");
- QTest::addColumn<QStringList>("expectedAvailableStyles");
-
- const QChar listSeparator = QDir::listSeparator();
- const QStringList defaultAvailableStyles = QQuickStyle::availableStyles();
-
- {
- QString environmentVariable;
- QDebug stream(&environmentVariable);
- // We use qrcStyles3 and qrcStyles4 in order to not conflict with
- // qrcStylePaths(), since we currently have no way of clearing customStylePaths.
- stream.noquote().nospace() << "/some/bogus/path/" << listSeparator
- << ":/qrcStyles3";
-
- QStringList expectedAvailableStyles = defaultAvailableStyles;
- // We need to keep the Default style at the start of the list,
- // as that's what availableStyles() does.
- expectedAvailableStyles.insert(1, QLatin1String("QrcStyle3"));
-
- QTest::addRow("%s", qPrintable(environmentVariable))
- << environmentVariable << expectedAvailableStyles;
- }
-
- {
- QString environmentVariable;
- QDebug stream(&environmentVariable);
- stream.noquote().nospace() << ":/qrcStyles4" << listSeparator
- << "/some/bogus/path";
-
- QStringList expectedAvailableStyles = defaultAvailableStyles;
- expectedAvailableStyles.insert(1, QLatin1String("QrcStyle4"));
-
- QTest::addRow("%s", qPrintable(environmentVariable))
- << environmentVariable << expectedAvailableStyles;
- }
-
- {
- QString environmentVariable;
- QDebug stream(&environmentVariable);
- stream.noquote().nospace() << ":/qrcStyles3" << listSeparator
- << ":/qrcStyles4" << listSeparator
- << QFINDTESTDATA("data/dummyStyles");
-
- QStringList expectedAvailableStyles = defaultAvailableStyles;
- expectedAvailableStyles.insert(1, QLatin1String("DummyStyle"));
- expectedAvailableStyles.insert(1, QLatin1String("QrcStyle4"));
- expectedAvailableStyles.insert(1, QLatin1String("QrcStyle3"));
-
- QTest::addRow("%s", qPrintable(environmentVariable))
- << environmentVariable << expectedAvailableStyles;
- }
-
- {
- QString environmentVariable;
- QDebug stream(&environmentVariable);
- stream.noquote().nospace() << QFINDTESTDATA("data/dummyStyles") << listSeparator
- << ":/qrcStyles3" << listSeparator
- << ":/qrcStyles4";
-
- QStringList expectedAvailableStyles = defaultAvailableStyles;
- expectedAvailableStyles.insert(1, QLatin1String("QrcStyle4"));
- expectedAvailableStyles.insert(1, QLatin1String("QrcStyle3"));
- expectedAvailableStyles.insert(1, QLatin1String("DummyStyle"));
-
- QTest::addRow("%s", qPrintable(environmentVariable))
- << environmentVariable << expectedAvailableStyles;
- }
-
- {
- QString environmentVariable;
- QDebug stream(&environmentVariable);
- // Same as the last row, except it adds a superfluous separator
- // to ensure that it handles it gracefully rather than failing an assertion.
- stream.noquote().nospace() << QFINDTESTDATA("data/dummyStyles") << listSeparator
- << ":/qrcStyles3" << listSeparator
- << ":/qrcStyles4" << listSeparator;
-
- QStringList expectedAvailableStyles = defaultAvailableStyles;
- expectedAvailableStyles.insert(1, QLatin1String("QrcStyle4"));
- expectedAvailableStyles.insert(1, QLatin1String("QrcStyle3"));
- expectedAvailableStyles.insert(1, QLatin1String("DummyStyle"));
-
- QTest::addRow("%s", qPrintable(environmentVariable))
- << environmentVariable << expectedAvailableStyles;
- }
-}
-
-/*
- Tests that qrc paths work with QT_QUICK_CONTROLS_STYLE_PATH.
-*/
-void tst_QQuickStyle::qrcInQtQuickControlsStylePathEnvVar()
-{
- QFETCH(QString, environmentVariable);
- QFETCH(QStringList, expectedAvailableStyles);
-
- qputenv("QT_QUICK_CONTROLS_STYLE_PATH", environmentVariable.toLocal8Bit());
-
- const QStringList availableStyles = QQuickStyle::availableStyles();
- if (availableStyles != expectedAvailableStyles) {
- QString failureMessage;
- QDebug stream(&failureMessage);
- stream << "Mismatch in actual vs expected available styles:"
- << "\n Expected:" << expectedAvailableStyles
- << "\n Actual:" << availableStyles;
- QFAIL(qPrintable(failureMessage));
- }
-}
-
-QTEST_MAIN(tst_QQuickStyle)
-
-#include "tst_qquickstyle.moc"
diff --git a/tests/auto/qquickstyleselector/ResourceStyle/Button.qml b/tests/auto/qquickstyleselector/ResourceStyle/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyleselector/ResourceStyle/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyleselector/data/Button.qml b/tests/auto/qquickstyleselector/data/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyleselector/data/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyleselector/data/Control.qml b/tests/auto/qquickstyleselector/data/Control.qml
deleted file mode 100644
index 6820b57d..00000000
--- a/tests/auto/qquickstyleselector/data/Control.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Control { }
diff --git a/tests/auto/qquickstyleselector/data/FallbackStyle/Button.qml b/tests/auto/qquickstyleselector/data/FallbackStyle/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyleselector/data/FallbackStyle/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyleselector/data/FallbackStyle/Label.qml b/tests/auto/qquickstyleselector/data/FallbackStyle/Label.qml
deleted file mode 100644
index 23699c1c..00000000
--- a/tests/auto/qquickstyleselector/data/FallbackStyle/Label.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Label { }
diff --git a/tests/auto/qquickstyleselector/data/FileSystemStyle/Button.qml b/tests/auto/qquickstyleselector/data/FileSystemStyle/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyleselector/data/FileSystemStyle/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyleselector/data/Label.qml b/tests/auto/qquickstyleselector/data/Label.qml
deleted file mode 100644
index 23699c1c..00000000
--- a/tests/auto/qquickstyleselector/data/Label.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Label { }
diff --git a/tests/auto/qquickstyleselector/data/PlatformStyle/+linux/Button.qml b/tests/auto/qquickstyleselector/data/PlatformStyle/+linux/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyleselector/data/PlatformStyle/+linux/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyleselector/data/PlatformStyle/+macos/Button.qml b/tests/auto/qquickstyleselector/data/PlatformStyle/+macos/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyleselector/data/PlatformStyle/+macos/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyleselector/data/PlatformStyle/+windows/Button.qml b/tests/auto/qquickstyleselector/data/PlatformStyle/+windows/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyleselector/data/PlatformStyle/+windows/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyleselector/data/PlatformStyle/Button.qml b/tests/auto/qquickstyleselector/data/PlatformStyle/Button.qml
deleted file mode 100644
index eaeeadcd..00000000
--- a/tests/auto/qquickstyleselector/data/PlatformStyle/Button.qml
+++ /dev/null
@@ -1,2 +0,0 @@
-import QtQuick.Templates 2.12 as T
-T.Button { }
diff --git a/tests/auto/qquickstyleselector/qquickstyleselector.pro b/tests/auto/qquickstyleselector/qquickstyleselector.pro
deleted file mode 100644
index 6569b46d..00000000
--- a/tests/auto/qquickstyleselector/qquickstyleselector.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickstyleselector
-SOURCES += tst_qquickstyleselector.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private quickcontrols2-private testlib
-
-include (../shared/util.pri)
-
-resourcestyle.prefix = /
-resourcestyle.files += $$PWD/ResourceStyle/Button.qml
-RESOURCES += resourcestyle
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
-
diff --git a/tests/auto/qquickstyleselector/tst_qquickstyleselector.cpp b/tests/auto/qquickstyleselector/tst_qquickstyleselector.cpp
deleted file mode 100644
index ce2e2e99..00000000
--- a/tests/auto/qquickstyleselector/tst_qquickstyleselector.cpp
+++ /dev/null
@@ -1,167 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include <QtQuickControls2/qquickstyle.h>
-#include <QtQuickControls2/private/qquickstyle_p.h>
-#include <QtQuickControls2/private/qquickstyleselector_p.h>
-#include "../shared/util.h"
-
-class tst_QQuickStyleSelector : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void select_data();
- void select();
-
- void platformSelectors();
-};
-
-void tst_QQuickStyleSelector::initTestCase()
-{
- QQmlDataTest::initTestCase();
- QQuickStylePrivate::init(dataDirectoryUrl());
-}
-
-void tst_QQuickStyleSelector::select_data()
-{
- QTest::addColumn<QString>("file");
- QTest::addColumn<QString>("style");
- QTest::addColumn<QString>("path");
- QTest::addColumn<QString>("fallback");
- QTest::addColumn<QString>("expected");
-
- // Control.qml exists only in the default style
- QTest::newRow("control") << "Control.qml" << "" << "data" << "" << testFileUrl("Control.qml").toString();
- QTest::newRow("/control") << "Control.qml" << "" << dataDirectory() << "" << testFileUrl("Control.qml").toString();
- QTest::newRow("fs/control") << "Control.qml" << "FileSystemStyle" << "data" << "" << testFileUrl("Control.qml").toString();
- QTest::newRow("/fs/control") << "Control.qml" << "FileSystemStyle" << dataDirectory() << "" << testFileUrl("Control.qml").toString();
- QTest::newRow(":/control") << "Control.qml" << "ResourceStyle" << ":/" << "" << testFileUrl("Control.qml").toString();
- QTest::newRow("qrc:/control") << "Control.qml" << "ResourceStyle" << "qrc:/" << "" << testFileUrl("Control.qml").toString();
- QTest::newRow("nosuch/control") << "Control.qml" << "NoSuchStyle" << "data" << "" << testFileUrl("Control.qml").toString();
- QTest::newRow("/nosuch/control") << "Control.qml" << "NoSuchStyle" << dataDirectory() << "" << testFileUrl("Control.qml").toString();
-
- QTest::newRow("control->base") << "Control.qml" << "" << "data" << "FallbackStyle" << testFileUrl("Control.qml").toString();
- QTest::newRow("/control->base") << "Control.qml" << "" << dataDirectory() << "FallbackStyle" << testFileUrl("Control.qml").toString();
- QTest::newRow("fs/control->base") << "Control.qml" << "FileSystemStyle" << "data" << "FallbackStyle" << testFileUrl("Control.qml").toString();
- QTest::newRow("/fs/control->base") << "Control.qml" << "FileSystemStyle" << dataDirectory() << "FallbackStyle" << testFileUrl("Control.qml").toString();
- QTest::newRow(":/control->base") << "Control.qml" << "ResourceStyle" << ":/" << "FallbackStyle" << testFileUrl("Control.qml").toString();
- QTest::newRow("qrc:/control->base") << "Control.qml" << "ResourceStyle" << "qrc:/" << "FallbackStyle" << testFileUrl("Control.qml").toString();
- QTest::newRow("nosuch/control->base") << "Control.qml" << "NoSuchStyle" << "data" << "FallbackStyle" << testFileUrl("Control.qml").toString();
- QTest::newRow("/nosuch/control->base") << "Control.qml" << "NoSuchStyle" << dataDirectory() << "FallbackStyle" << testFileUrl("Control.qml").toString();
-
- // Label.qml exists in the default and fallback styles
- QTest::newRow("label") << "Label.qml" << "" << "data" << "" << testFileUrl("Label.qml").toString();
- QTest::newRow("/label") << "Label.qml" << "" << dataDirectory() << "" << testFileUrl("Label.qml").toString();
- QTest::newRow("fs/label") << "Label.qml" << "FileSystemStyle" << "data" << "" << testFileUrl("Label.qml").toString();
- QTest::newRow("/fs/label") << "Label.qml" << "FileSystemStyle" << dataDirectory() << "" << testFileUrl("Label.qml").toString();
- QTest::newRow(":/label") << "Label.qml" << "ResourceStyle" << ":/" << "" << testFileUrl("Label.qml").toString();
- QTest::newRow("qrc:/label") << "Label.qml" << "ResourceStyle" << "qrc:/" << "" << testFileUrl("Label.qml").toString();
- QTest::newRow("nosuch/label") << "Label.qml" << "NoSuchStyle" << "data" << "" << testFileUrl("Label.qml").toString();
- QTest::newRow("/nosuch/label") << "Label.qml" << "NoSuchStyle" << dataDirectory() << "" << testFileUrl("Label.qml").toString();
-
- QTest::newRow("label->base") << "Label.qml" << "" << "data" << "FallbackStyle" << testFileUrl("Label.qml").toString();
- QTest::newRow("/label->base") << "Label.qml" << "" << dataDirectory() << "FallbackStyle" << testFileUrl("Label.qml").toString();
- QTest::newRow("fs/label->base") << "Label.qml" << "FileSystemStyle" << "data" << "FallbackStyle" << testFileUrl("FallbackStyle/Label.qml").toString();
- QTest::newRow("/fs/label->base") << "Label.qml" << "FileSystemStyle" << dataDirectory() << "FallbackStyle" << testFileUrl("FallbackStyle/Label.qml").toString();
- QTest::newRow(":/label->base") << "Label.qml" << "ResourceStyle" << ":/" << "FallbackStyle" << testFileUrl("FallbackStyle/Label.qml").toString();
- QTest::newRow("qrc:/label->base") << "Label.qml" << "ResourceStyle" << "qrc:/" << "FallbackStyle" << testFileUrl("FallbackStyle/Label.qml").toString();
- QTest::newRow("nosuch/label->base") << "Label.qml" << "NoSuchStyle" << "data" << "FallbackStyle" << testFileUrl("FallbackStyle/Label.qml").toString();
- QTest::newRow("/nosuch/label->base") << "Label.qml" << "NoSuchStyle" << dataDirectory() << "FallbackStyle" << testFileUrl("FallbackStyle/Label.qml").toString();
-
- // Button.qml exists in all styles including the fs and qrc styles
- QTest::newRow("button") << "Button.qml" << "" << "data" << "" << testFileUrl("Button.qml").toString();
- QTest::newRow("/button") << "Button.qml" << "" << dataDirectory() << "" << testFileUrl("Button.qml").toString();
- QTest::newRow("fs/button") << "Button.qml" << "FileSystemStyle" << "data" << "" << testFileUrl("FileSystemStyle/Button.qml").toString();
- QTest::newRow("/fs/button") << "Button.qml" << "FileSystemStyle" << dataDirectory() << "" << testFileUrl("FileSystemStyle/Button.qml").toString();
- QTest::newRow(":/button") << "Button.qml" << "ResourceStyle" << ":/" << "" << "qrc:/ResourceStyle/Button.qml";
- QTest::newRow("qrc:/button") << "Button.qml" << "ResourceStyle" << "qrc:/" << "" << "qrc:/ResourceStyle/Button.qml";
- QTest::newRow("nosuch/button") << "Button.qml" << "NoSuchStyle" << "data" << "" << testFileUrl("Button.qml").toString();
- QTest::newRow("/nosuch/button") << "Button.qml" << "NoSuchStyle" << dataDirectory() << "" << testFileUrl("Button.qml").toString();
-
- QTest::newRow("button->base") << "Button.qml" << "" << "data" << "FallbackStyle" << testFileUrl("Button.qml").toString();
- QTest::newRow("/button->base") << "Button.qml" << "" << dataDirectory() << "FallbackStyle" << testFileUrl("Button.qml").toString();
- QTest::newRow("fs/button->base") << "Button.qml" << "FileSystemStyle" << "data" << "FallbackStyle" << testFileUrl("FileSystemStyle/Button.qml").toString();
- QTest::newRow("/fs/button->base") << "Button.qml" << "FileSystemStyle" << dataDirectory() << "FallbackStyle" << testFileUrl("FileSystemStyle/Button.qml").toString();
- QTest::newRow(":/button->base") << "Button.qml" << "ResourceStyle" << ":/" << "FallbackStyle" << "qrc:/ResourceStyle/Button.qml";
- QTest::newRow("qrc:/button->base") << "Button.qml" << "ResourceStyle" << "qrc:/" << "FallbackStyle" << "qrc:/ResourceStyle/Button.qml";
- QTest::newRow("nosuch/button->base") << "Button.qml" << "NoSuchStyle" << "data" << "FallbackStyle" << testFileUrl("FallbackStyle/Button.qml").toString();
- QTest::newRow("/nosuch/button->base") << "Button.qml" << "NoSuchStyle" << dataDirectory() << "FallbackStyle" << testFileUrl("FallbackStyle/Button.qml").toString();
-}
-
-void tst_QQuickStyleSelector::select()
-{
- QFETCH(QString, file);
- QFETCH(QString, style);
- QFETCH(QString, path);
- QFETCH(QString, fallback);
- QFETCH(QString, expected);
-
- QQuickStyle::setStyle(QDir(path).filePath(style));
- QQuickStyle::setFallbackStyle(fallback);
-
- QQuickStyleSelector selector;
- selector.addSelector(style);
- selector.addSelector(fallback);
- selector.setPaths(QStringList() << dataDirectory() << ":/");
- QCOMPARE(selector.select(file), expected);
-}
-
-void tst_QQuickStyleSelector::platformSelectors()
-{
- QQuickStyle::setStyle(QDir(dataDirectory()).filePath("PlatformStyle"));
-
- QQuickStyleSelector selector;
- selector.addSelector("PlatformStyle");
- selector.setPaths(QStringList() << dataDirectory());
-
-#if defined(Q_OS_LINUX)
- QCOMPARE(selector.select("Button.qml"), testFileUrl("PlatformStyle/+linux/Button.qml").toString());
-#elif defined(Q_OS_MACOS)
- QCOMPARE(selector.select("Button.qml"), testFileUrl("PlatformStyle/+macos/Button.qml").toString());
-#elif defined(Q_OS_WIN)
- QCOMPARE(selector.select("Button.qml"), testFileUrl("PlatformStyle/+windows/Button.qml").toString());
-#else
- QCOMPARE(selector.select("Button.qml"), testFileUrl("PlatformStyle/Button.qml").toString());
-#endif
-}
-
-QTEST_MAIN(tst_QQuickStyleSelector)
-
-#include "tst_qquickstyleselector.moc"
diff --git a/tests/auto/qquickuniversalstyle/data/tst_universal.qml b/tests/auto/qquickuniversalstyle/data/tst_universal.qml
deleted file mode 100644
index 0926cae3..00000000
--- a/tests/auto/qquickuniversalstyle/data/tst_universal.qml
+++ /dev/null
@@ -1,441 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtTest 1.0
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-TestCase {
- id: testCase
- width: 200
- height: 200
- visible: true
- when: windowShown
- name: "Universal"
-
- Component {
- id: button
- Button { }
- }
-
- Component {
- id: styledButton
- Button {
- Universal.theme: Universal.Dark
- Universal.accent: Universal.Violet
- Universal.foreground: Universal.Brown
- Universal.background: Universal.Yellow
- }
- }
-
- Component {
- id: window
- Window { }
- }
-
- Component {
- id: styledWindow
- Window {
- Universal.theme: Universal.Dark
- Universal.accent: Universal.Green
- }
- }
-
- Component {
- id: loader
- Loader {
- active: false
- sourceComponent: Button { }
- }
- }
-
- Component {
- id: swipeView
- SwipeView {
- Universal.theme: Universal.Dark
- Button { }
- }
- }
-
- Component {
- id: menu
- ApplicationWindow {
- Universal.accent: Universal.Red
- property alias menu: popup
- Menu {
- id: popup
- Universal.theme: Universal.Dark
- MenuItem { }
- }
- }
- }
-
- Component {
- id: comboBox
- ApplicationWindow {
- width: 200
- height: 200
- visible: true
- Universal.accent: Universal.Red
- property alias combo: box
- ComboBox {
- id: box
- Universal.theme: Universal.Dark
- model: 1
- }
- }
- }
-
- Component {
- id: windowPane
- ApplicationWindow {
- width: 200
- height: 200
- visible: true
- property alias pane: pane
- Pane { id: pane }
- }
- }
-
- function test_defaults() {
- var control = button.createObject(testCase)
- verify(control)
- verify(control.Universal)
- compare(control.Universal.accent, "#3e65ff") // Universal.Cobalt
- compare(control.Universal.foreground, "#000000") // SystemBaseHighColor
- compare(control.Universal.background, "#ffffff") // SystemAltHighColor
- compare(control.Universal.theme, Universal.Light)
- control.destroy()
- }
-
- function test_set() {
- var control = button.createObject(testCase)
- verify(control)
- control.Universal.accent = Universal.Steel
- control.Universal.foreground = Universal.Red
- control.Universal.background = Universal.Green
- control.Universal.theme = Universal.Dark
- compare(control.Universal.accent, "#647687") // Universal.Steel
- compare(control.Universal.foreground, "#e51400") // Universal.Red
- compare(control.Universal.background, "#60a917") // Universal.Green
- compare(control.Universal.theme, Universal.Dark)
- control.destroy()
- }
-
- function test_reset() {
- var control = styledButton.createObject(testCase)
- verify(control)
- compare(control.Universal.accent, "#aa00ff") // Universal.Violet
- compare(control.Universal.foreground, "#825a2c") // Universal.Brown
- compare(control.Universal.background, "#e3c800") // Universal.Yellow
- compare(control.Universal.theme, Universal.Dark)
- control.Universal.accent = undefined
- control.Universal.foreground = undefined
- control.Universal.background = undefined
- control.Universal.theme = undefined
- compare(control.Universal.accent, testCase.Universal.accent)
- compare(control.Universal.foreground, testCase.Universal.foreground)
- compare(control.Universal.background, testCase.Universal.background)
- compare(control.Universal.theme, testCase.Universal.theme)
- control.destroy()
- }
-
- function test_inheritance_data() {
- return [
- { tag: "accent", value1: "#a20025" /*Universal.Crimson*/, value2: "#6a00ff" /*Universal.Indigo*/ },
- { tag: "foreground", value1: "#a20025" /*Universal.Crimson*/, value2: "#6a00ff" /*Universal.Indigo*/ },
- { tag: "background", value1: "#a20025" /*Universal.Crimson*/, value2: "#6a00ff" /*Universal.Indigo*/ },
- { tag: "theme", value1: Universal.Dark, value2: Universal.Light },
- ]
- }
-
- function test_inheritance(data) {
- var prop = data.tag
- var parent = button.createObject(testCase)
- parent.Universal[prop] = data.value1
- compare(parent.Universal[prop], data.value1)
-
- var child1 = button.createObject(parent)
- compare(child1.Universal[prop], data.value1)
-
- parent.Universal[prop] = data.value2
- compare(parent.Universal[prop], data.value2)
- compare(child1.Universal[prop], data.value2)
-
- var child2 = button.createObject(parent)
- compare(child2.Universal[prop], data.value2)
-
- child2.Universal[prop] = data.value1
- compare(child2.Universal[prop], data.value1)
- compare(child1.Universal[prop], data.value2)
- compare(parent.Universal[prop], data.value2)
-
- parent.Universal[prop] = undefined
- verify(parent.Universal[prop] !== data.value1)
- verify(parent.Universal[prop] !== undefined)
- compare(child1.Universal[prop], parent.Universal[prop])
- verify(child2.Universal[prop] !== parent.Universal[prop])
-
- var grandChild1 = button.createObject(child1)
- var grandChild2 = button.createObject(child2)
- compare(grandChild1.Universal[prop], child1.Universal[prop])
- compare(grandChild2.Universal[prop], child2.Universal[prop])
-
- var themelessGrandGrandChild = button.createObject(grandChild1)
- var grandGrandGrandChild1 = button.createObject(themelessGrandGrandChild)
- compare(grandGrandGrandChild1.Universal[prop], parent.Universal[prop])
-
- child1.Universal[prop] = data.value2
- compare(child1.Universal[prop], data.value2)
- compare(grandChild1.Universal[prop], data.value2)
- compare(grandGrandGrandChild1.Universal[prop], data.value2)
-
- parent.destroy()
- }
-
- function test_window() {
- var parent = window.createObject()
-
- var control = button.createObject(parent.contentItem)
- compare(control.Universal.accent, parent.Universal.accent)
- compare(control.Universal.theme, parent.Universal.theme)
-
- var styledChild = styledWindow.createObject(window)
- verify(styledChild.Universal.accent !== parent.Universal.accent)
- verify(styledChild.Universal.theme !== parent.Universal.theme)
-
- var unstyledChild = window.createObject(window)
- compare(unstyledChild.Universal.accent, parent.Universal.accent)
- compare(unstyledChild.Universal.theme, parent.Universal.theme)
-
- parent.Universal.accent = Universal.Cyan
- compare(control.Universal.accent, "#1ba1e2") // Universal.Cyan
- verify(styledChild.Universal.accent !== Universal.Cyan)
- // ### TODO: compare(unstyledChild.Universal.accent, Universal.Cyan)
-
- parent.destroy()
- }
-
- function test_loader() {
- var control = loader.createObject(testCase)
- control.Universal.accent = Universal.Lime
- control.active = true
- compare(control.item.Universal.accent, "#a4c400") // Universal.Lime
- control.Universal.accent = Universal.Pink
- compare(control.item.Universal.accent, "#f472d0") // Universal.Pink
- control.active = false
- control.Universal.accent = Universal.Brown
- control.active = true
- compare(control.item.Universal.accent, "#825a2c") // Universal.Brown
- control.destroy()
- }
-
- function test_swipeView() {
- var control = swipeView.createObject(testCase)
- verify(control)
- var child = control.itemAt(0)
- verify(child)
- compare(control.Universal.theme, Universal.Dark)
- compare(child.Universal.theme, Universal.Dark)
- control.destroy()
- }
-
- function test_menu() {
- var container = menu.createObject(testCase)
- verify(container)
- verify(container.menu)
- container.menu.open()
- verify(container.menu.visible)
- var child = container.menu.itemAt(0)
- verify(child)
- compare(container.Universal.theme, Universal.Light)
- compare(container.menu.Universal.theme, Universal.Dark)
- compare(child.Universal.theme, Universal.Dark)
- compare(container.Universal.accent, "#e51400") // Red
- compare(container.menu.Universal.accent, "#e51400") // Red
- compare(child.Universal.accent, "#e51400") // Red
- container.destroy()
- }
-
- function test_comboBox() {
- var window = comboBox.createObject(testCase)
- verify(window)
- verify(window.combo)
- waitForRendering(window.combo)
- window.combo.forceActiveFocus()
- verify(window.combo.activeFocus)
- keyClick(Qt.Key_Space)
- verify(window.combo.popup.visible)
- var listView = window.combo.popup.contentItem
- verify(listView)
- var child = listView.contentItem.children[0]
- verify(child)
- compare(window.Universal.theme, Universal.Light)
- compare(window.combo.Universal.theme, Universal.Dark)
- compare(child.Universal.theme, Universal.Dark)
- compare(window.Universal.accent, "#e51400") // Red
- compare(window.combo.Universal.accent, "#e51400") // Red
- compare(child.Universal.accent, "#e51400") // Red
- window.destroy()
- }
-
- function test_windowChange() {
- var ldr = loader.createObject()
- verify(ldr)
-
- var wnd = window.createObject()
- verify(wnd)
-
- wnd.Universal.theme = Universal.Dark
- compare(wnd.Universal.theme, Universal.Dark)
-
- ldr.active = true
- verify(ldr.item)
- compare(ldr.item.Universal.theme, Universal.Light)
-
- ldr.parent = wnd.contentItem
- compare(ldr.item.Universal.theme, Universal.Dark)
-
- wnd.destroy()
- }
-
- function test_colors_data() {
- return [
- { tag: "accent" }, { tag: "background" }, { tag: "foreground" }
- ]
- }
-
- function test_colors(data) {
- var control = button.createObject(testCase)
- verify(control)
-
- var prop = data.tag
-
- // Universal.Color - enum
- control.Universal[prop] = Universal.Red
- compare(control.Universal[prop], "#e51400")
-
- // Universal.Color - string
- control.Universal[prop] = "Emerald"
- compare(control.Universal[prop], "#008a00")
-
- // SVG named color
- control.Universal[prop] = "tomato"
- compare(control.Universal[prop], "#ff6347")
-
- // #rrggbb
- control.Universal[prop] = "#123456"
- compare(control.Universal[prop], "#123456")
-
- // #aarrggbb
- control.Universal[prop] = "#12345678"
- compare(control.Universal[prop], "#12345678")
-
- // Qt.rgba() - no alpha
- control.Universal[prop] = Qt.rgba(0.5, 0.5, 0.5)
- compare(control.Universal[prop], "#808080")
-
- // Qt.rgba() - with alpha
- control.Universal[prop] = Qt.rgba(0.5, 0.5, 0.5, 0.5)
- compare(control.Universal[prop], "#80808080")
-
- // unknown
- ignoreWarning(Qt.resolvedUrl("tst_universal.qml") + ":67:9: QML Button: unknown Universal." + prop + " value: 123")
- control.Universal[prop] = 123
- ignoreWarning(Qt.resolvedUrl("tst_universal.qml") + ":67:9: QML Button: unknown Universal." + prop + " value: foo")
- control.Universal[prop] = "foo"
- ignoreWarning(Qt.resolvedUrl("tst_universal.qml") + ":67:9: QML Button: unknown Universal." + prop + " value: #1")
- control.Universal[prop] = "#1"
-
- control.destroy()
- }
-
- function test_font_data() {
- return [
- {tag: "Control:pixelSize", type: "Control", attribute: "pixelSize", value: 15, window: 20, pane: 10},
-
- {tag: "GroupBox:pixelSize", type: "GroupBox", attribute: "pixelSize", value: 15, window: 20, pane: 10},
- {tag: "GroupBox:weight", type: "GroupBox", attribute: "weight", value: Font.DemiBold, window: Font.Light, pane: Font.Medium},
-
- {tag: "TabButton:pixelSize", type: "TabButton", attribute: "pixelSize", value: 24, window: 20, pane: 10},
- {tag: "TabButton:weight", type: "TabButton", attribute: "weight", value: Font.Light, window: Font.Black, pane: Font.Bold}
- ]
- }
-
- function test_font(data) {
- var window = windowPane.createObject(testCase)
- verify(window)
- verify(window.pane)
-
- var control = Qt.createQmlObject("import QtQuick.Controls 2.1; " + data.type + " { }", window.pane)
- verify(control)
-
- compare(control.font[data.attribute], data.value)
-
- window.font[data.attribute] = data.window
- compare(window.font[data.attribute], data.window)
- compare(window.pane.font[data.attribute], data.window)
- compare(control.font[data.attribute], data.window)
-
- window.pane.font[data.attribute] = data.pane
- compare(window.font[data.attribute], data.window)
- compare(window.pane.font[data.attribute], data.pane)
- compare(control.font[data.attribute], data.pane)
-
- window.pane.font = undefined
- compare(window.font[data.attribute], data.window)
- compare(window.pane.font[data.attribute], data.window)
- compare(control.font[data.attribute], data.window)
-
- window.destroy()
- }
-}
diff --git a/tests/auto/qquickuniversalstyle/qquickuniversalstyle.pro b/tests/auto/qquickuniversalstyle/qquickuniversalstyle.pro
deleted file mode 100644
index f77d812f..00000000
--- a/tests/auto/qquickuniversalstyle/qquickuniversalstyle.pro
+++ /dev/null
@@ -1,15 +0,0 @@
-TEMPLATE = app
-TARGET = tst_qquickuniversalstyle
-CONFIG += qmltestcase
-
-SOURCES += \
- $$PWD/tst_qquickuniversalstyle.cpp
-
-RESOURCES += \
- $$PWD/qtquickcontrols2.conf
-
-OTHER_FILES += \
- $$PWD/data/*.qml
-
-TESTDATA += \
- $$PWD/data/tst_*
diff --git a/tests/auto/qquickuniversalstyle/qtquickcontrols2.conf b/tests/auto/qquickuniversalstyle/qtquickcontrols2.conf
deleted file mode 100644
index 8c6dd807..00000000
--- a/tests/auto/qquickuniversalstyle/qtquickcontrols2.conf
+++ /dev/null
@@ -1,2 +0,0 @@
-[Controls]
-Style=Universal
diff --git a/tests/auto/qquickuniversalstyle/tst_qquickuniversalstyle.cpp b/tests/auto/qquickuniversalstyle/tst_qquickuniversalstyle.cpp
deleted file mode 100644
index c5b6b566..00000000
--- a/tests/auto/qquickuniversalstyle/tst_qquickuniversalstyle.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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_qquickuniversalstyle)
diff --git a/tests/auto/qquickuniversalstyleconf/data/applicationwindow.qml b/tests/auto/qquickuniversalstyleconf/data/applicationwindow.qml
deleted file mode 100644
index 7abc8b13..00000000
--- a/tests/auto/qquickuniversalstyleconf/data/applicationwindow.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Universal 2.12
-
-ApplicationWindow {
- width: 400
- height: 400
-
- property alias label: label
-
- Label {
- id: label
- }
-}
diff --git a/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro b/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro
deleted file mode 100644
index 6236f075..00000000
--- a/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-CONFIG += testcase
-TARGET = tst_qquickuniversalstyleconf
-SOURCES += tst_qquickuniversalstyleconf.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += core-private gui-private qml-private quick-private testlib quicktemplates2-private quickcontrols2-private
-
-include (../shared/util.pri)
-
-RESOURCES += qquickuniversalstyleconf.qrc
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
-
diff --git a/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.qrc b/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.qrc
deleted file mode 100644
index 53ba6450..00000000
--- a/tests/auto/qquickuniversalstyleconf/qquickuniversalstyleconf.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<!DOCTYPE RCC><RCC version="1.0">
-<qresource>
- <file>qtquickcontrols2.conf</file>
-</qresource>
-</RCC>
diff --git a/tests/auto/qquickuniversalstyleconf/qtquickcontrols2.conf b/tests/auto/qquickuniversalstyleconf/qtquickcontrols2.conf
deleted file mode 100644
index 0ec13258..00000000
--- a/tests/auto/qquickuniversalstyleconf/qtquickcontrols2.conf
+++ /dev/null
@@ -1,10 +0,0 @@
-[Controls]
-Style=Universal
-
-[Universal]
-Background=#444444
-Foreground=Red
-Font\PixelSize=22
-
-[Universal\Font]
-Family=Courier
diff --git a/tests/auto/qquickuniversalstyleconf/tst_qquickuniversalstyleconf.cpp b/tests/auto/qquickuniversalstyleconf/tst_qquickuniversalstyleconf.cpp
deleted file mode 100644
index 51cc5883..00000000
--- a/tests/auto/qquickuniversalstyleconf/tst_qquickuniversalstyleconf.cpp
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <qtest.h>
-#include <QtQuick/private/qquickitem_p.h>
-#include "../shared/util.h"
-#include "../shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_qquickuniversalstyleconf : public QQmlDataTest
-{
- Q_OBJECT
-
-public:
-
-private slots:
- void conf();
-};
-
-void tst_qquickuniversalstyleconf::conf()
-{
- QQuickApplicationHelper helper(this, QLatin1String("applicationwindow.qml"));
-
- QFont customFont;
- customFont.setFamily("Courier");
- customFont.setPixelSize(22);
-
- QQuickApplicationWindow *window = helper.appWindow;
- window->show();
- QVERIFY(QTest::qWaitForWindowExposed(window));
- // We specified a custom background color and font, so the window should have them.
- QCOMPARE(window->property("color").value<QColor>(), QColor("#444444"));
- QCOMPARE(window->property("font").value<QFont>(), customFont);
-
- // We specified a custom foreground color and font, so the label should have them.
- QQuickItem *label = window->property("label").value<QQuickItem*>();
- QVERIFY(label);
- QCOMPARE(label->property("color").value<QColor>(), QColor("#E51400"));
- QCOMPARE(label->property("font").value<QFont>(), customFont);
-}
-
-QTEST_MAIN(tst_qquickuniversalstyleconf)
-
-#include "tst_qquickuniversalstyleconf.moc"
diff --git a/tests/auto/revisions/data/dependencies.qml b/tests/auto/revisions/data/dependencies.qml
deleted file mode 100644
index e276ba59..00000000
--- a/tests/auto/revisions/data/dependencies.qml
+++ /dev/null
@@ -1,6 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Universal 2.12
-
-Control { }
diff --git a/tests/auto/revisions/revisions.pro b/tests/auto/revisions/revisions.pro
deleted file mode 100644
index b3c448da..00000000
--- a/tests/auto/revisions/revisions.pro
+++ /dev/null
@@ -1,7 +0,0 @@
-CONFIG += testcase
-TARGET = tst_revisions
-SOURCES += tst_revisions.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += qml testlib
diff --git a/tests/auto/revisions/tst_revisions.cpp b/tests/auto/revisions/tst_revisions.cpp
deleted file mode 100644
index 82b32827..00000000
--- a/tests/auto/revisions/tst_revisions.cpp
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest/qtest.h>
-#include <QtTest/qsignalspy.h>
-#include <QtQml/qqmlengine.h>
-#include <QtQml/qqmlcomponent.h>
-
-class tst_revisions : public QObject
-{
- Q_OBJECT
-
-private slots:
- void revisions_data();
- void revisions();
-
- void window_data();
- void window();
-};
-
-void tst_revisions::revisions_data()
-{
- QTest::addColumn<int>("revision");
-
- // Qt 5.7: 2.0, Qt 5.8: 2.1, Qt 5.9: 2.2...
- for (int i = 0; i <= 15; ++i)
- QTest::newRow(qPrintable(QString("2.%1").arg(i))) << i;
-}
-
-void tst_revisions::revisions()
-{
- QFETCH(int, revision);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(QString("import QtQuick 2.0; \
- import QtQuick.Templates 2.%1 as T; \
- import QtQuick.Controls 2.%1; \
- import QtQuick.Controls.impl 2.%1; \
- import QtQuick.Controls.Material 2.%1; \
- import QtQuick.Controls.Material.impl 2.%1; \
- import QtQuick.Controls.Universal 2.%1; \
- import QtQuick.Controls.Universal.impl 2.%1; \
- Control { }").arg(revision).toUtf8(), QUrl());
-
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(!object.isNull(), qPrintable(component.errorString()));
-}
-
-void tst_revisions::window_data()
-{
- QTest::addColumn<int>("revision");
- QTest::addColumn<QString>("qml");
- QTest::addColumn<QString>("error");
-
- // Qt 5.7: 2.0, Qt 5.8: 2.1
- for (int i = 0; i <= 1; ++i)
- QTest::newRow(qPrintable(QString("screen:2.%1").arg(i))) << i << "screen: null" << QString(":1 \"ApplicationWindow.screen\" is not available in QtQuick.Templates 2.%1").arg(i);
-
- // Qt 5.9: 2.2, Qt 5.10: 2.3...
- for (int i = 2; i <= 15; ++i)
- QTest::newRow(qPrintable(QString("screen:2.%1").arg(i))) << i << "screen: null" << "";
-}
-
-void tst_revisions::window()
-{
- QFETCH(int, revision);
- QFETCH(QString, qml);
- QFETCH(QString, error);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(QString("import QtQuick.Templates 2.%1; ApplicationWindow { %2 }").arg(revision).arg(qml).toUtf8(), QUrl());
- QScopedPointer<QObject> window(component.create());
- QCOMPARE(window.isNull(), !error.isEmpty());
-}
-
-QTEST_MAIN(tst_revisions)
-
-#include "tst_revisions.moc"
diff --git a/tests/auto/sanity/BLACKLIST b/tests/auto/sanity/BLACKLIST
deleted file mode 100644
index 42ad3448..00000000
--- a/tests/auto/sanity/BLACKLIST
+++ /dev/null
@@ -1,4 +0,0 @@
-[attachedObjects:material/Switch.qml]
-*
-[attachedObjects:material/SwitchDelegate.qml]
-*
diff --git a/tests/auto/sanity/data/dependencies.qml b/tests/auto/sanity/data/dependencies.qml
deleted file mode 100644
index dac5f935..00000000
--- a/tests/auto/sanity/data/dependencies.qml
+++ /dev/null
@@ -1,4 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Control { }
diff --git a/tests/auto/sanity/sanity.pro b/tests/auto/sanity/sanity.pro
deleted file mode 100644
index c792c073..00000000
--- a/tests/auto/sanity/sanity.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-TEMPLATE = app
-TARGET = tst_sanity
-
-QT += qml testlib core-private qml-private
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-include(../../auto/shared/util.pri)
-
-SOURCES += \
- $$PWD/tst_sanity.cpp
-
-OTHER_FILES += \
- $$PWD/BLACKLIST
diff --git a/tests/auto/sanity/tst_sanity.cpp b/tests/auto/sanity/tst_sanity.cpp
deleted file mode 100644
index a801ecaf..00000000
--- a/tests/auto/sanity/tst_sanity.cpp
+++ /dev/null
@@ -1,377 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest>
-#include <QtQml>
-#include <QtCore/private/qhooks_p.h>
-#include <QtQml/private/qqmljsengine_p.h>
-#include <QtQml/private/qqmljslexer_p.h>
-#include <QtQml/private/qqmljsparser_p.h>
-#include <QtQml/private/qqmljsast_p.h>
-#include <QtQml/private/qqmljsastvisitor_p.h>
-#include <QtQml/private/qqmlmetatype_p.h>
-#include "../../auto/shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-Q_GLOBAL_STATIC(QObjectList, qt_qobjects)
-
-extern "C" Q_DECL_EXPORT void qt_addQObject(QObject *object)
-{
- qt_qobjects->append(object);
-}
-
-extern "C" Q_DECL_EXPORT void qt_removeQObject(QObject *object)
-{
- qt_qobjects->removeAll(object);
-}
-
-class tst_Sanity : public QObject
-{
- Q_OBJECT
-
-private slots:
- void init();
- void cleanup();
- void initTestCase();
-
- void jsFiles();
- void functions();
- void functions_data();
- void signalHandlers();
- void signalHandlers_data();
- void anchors();
- void anchors_data();
- void attachedObjects();
- void attachedObjects_data();
- void ids();
- void ids_data();
-
-private:
- QQmlEngine engine;
- QMap<QString, QString> files;
-};
-
-void tst_Sanity::init()
-{
- qtHookData[QHooks::AddQObject] = reinterpret_cast<quintptr>(&qt_addQObject);
- qtHookData[QHooks::RemoveQObject] = reinterpret_cast<quintptr>(&qt_removeQObject);
-}
-
-void tst_Sanity::cleanup()
-{
- qt_qobjects->clear();
- qtHookData[QHooks::AddQObject] = 0;
- qtHookData[QHooks::RemoveQObject] = 0;
-}
-
-class BaseValidator : public QQmlJS::AST::Visitor
-{
-public:
- QString errors() const { return m_errors.join(", "); }
-
- bool validate(const QString& filePath)
- {
- m_errors.clear();
- m_fileName = QFileInfo(filePath).fileName();
-
- QFile file(filePath);
- if (!file.open(QFile::ReadOnly)) {
- m_errors += QString("%1: failed to open (%2)").arg(m_fileName, file.errorString());
- return false;
- }
-
- QQmlJS::Engine engine;
- QQmlJS::Lexer lexer(&engine);
- lexer.setCode(QString::fromUtf8(file.readAll()), /*line = */ 1);
-
- QQmlJS::Parser parser(&engine);
- if (!parser.parse()) {
- const auto diagnosticMessages = parser.diagnosticMessages();
- for (const QQmlJS::DiagnosticMessage &msg : diagnosticMessages)
-#if Q_QML_PRIVATE_API_VERSION < 5
- m_errors += QString("%s:%d : %s").arg(m_fileName).arg(msg.loc.startLine).arg(msg.message);
-#else
- m_errors += QString("%s:%d : %s").arg(m_fileName).arg(msg.line).arg(msg.message);
-#endif
- return false;
- }
-
- QQmlJS::AST::UiProgram* ast = parser.ast();
- ast->accept(this);
- return m_errors.isEmpty();
- }
-
-protected:
- void addError(const QString& error, QQmlJS::AST::Node *node)
- {
- m_errors += QString("%1:%2 : %3").arg(m_fileName).arg(node->firstSourceLocation().startLine).arg(error);
- }
-
- void throwRecursionDepthError() final
- {
- m_errors += QString::fromLatin1("%1: Maximum statement or expression depth exceeded")
- .arg(m_fileName);
- }
-
-private:
- QString m_fileName;
- QStringList m_errors;
-};
-
-void tst_Sanity::initTestCase()
-{
- QQmlEngine engine;
- QQmlComponent component(&engine);
- component.setData(QString("import QtQuick.Templates 2.%1; Control { }").arg(15).toUtf8(), QUrl());
-
- const QStringList qmlTypeNames = QQmlMetaType::qmlTypeNames();
-
- QDirIterator it(QQC2_IMPORT_PATH, QStringList() << "*.qml" << "*.js", QDir::Files, QDirIterator::Subdirectories);
- while (it.hasNext()) {
- it.next();
- QFileInfo info = it.fileInfo();
- if (qmlTypeNames.contains(QStringLiteral("QtQuick.Templates/") + info.baseName()))
- files.insert(info.dir().dirName() + "/" + info.fileName(), info.filePath());
- }
-}
-
-void tst_Sanity::jsFiles()
-{
- QMap<QString, QString>::const_iterator it;
- for (it = files.constBegin(); it != files.constEnd(); ++it) {
- if (QFileInfo(it.value()).suffix() == QStringLiteral("js"))
- QFAIL(qPrintable(it.value() + ": JS files are not allowed"));
- }
-}
-
-class FunctionValidator : public BaseValidator
-{
-protected:
- virtual bool visit(QQmlJS::AST::FunctionDeclaration *node)
- {
- addError("function declarations are not allowed", node);
- return true;
- }
-};
-
-void tst_Sanity::functions()
-{
- QFETCH(QString, control);
- QFETCH(QString, filePath);
-
- FunctionValidator validator;
- if (!validator.validate(filePath))
- QFAIL(qPrintable(validator.errors()));
-}
-
-void tst_Sanity::functions_data()
-{
- QTest::addColumn<QString>("control");
- QTest::addColumn<QString>("filePath");
-
- QMap<QString, QString>::const_iterator it;
- for (it = files.constBegin(); it != files.constEnd(); ++it)
- QTest::newRow(qPrintable(it.key())) << it.key() << it.value();
-}
-
-class SignalHandlerValidator : public BaseValidator
-{
-protected:
- static bool isSignalHandler(const QStringRef &name)
- {
- return name.length() > 2 && name.startsWith("on") && name.at(2).isUpper();
- }
-
- virtual bool visit(QQmlJS::AST::UiScriptBinding *node)
- {
- QQmlJS::AST::UiQualifiedId* id = node->qualifiedId;
- if ((id && isSignalHandler(id->name)) || (id && id->next && isSignalHandler(id->next->name)))
- addError("signal handlers are not allowed", node);
- return true;
- }
-};
-
-void tst_Sanity::signalHandlers()
-{
- QFETCH(QString, control);
- QFETCH(QString, filePath);
-
- SignalHandlerValidator validator;
- if (!validator.validate(filePath))
- QFAIL(qPrintable(validator.errors()));
-}
-
-void tst_Sanity::signalHandlers_data()
-{
- QTest::addColumn<QString>("control");
- QTest::addColumn<QString>("filePath");
-
- QMap<QString, QString>::const_iterator it;
- for (it = files.constBegin(); it != files.constEnd(); ++it)
- QTest::newRow(qPrintable(it.key())) << it.key() << it.value();
-}
-
-class AnchorValidator : public BaseValidator
-{
-protected:
- virtual bool visit(QQmlJS::AST::UiScriptBinding *node)
- {
- QQmlJS::AST::UiQualifiedId* id = node->qualifiedId;
- if (id && id->name == QStringLiteral("anchors"))
- addError("anchors are not allowed", node);
- return true;
- }
-};
-
-void tst_Sanity::anchors()
-{
- QFETCH(QString, control);
- QFETCH(QString, filePath);
-
- AnchorValidator validator;
- if (!validator.validate(filePath))
- QFAIL(qPrintable(validator.errors()));
-}
-
-void tst_Sanity::anchors_data()
-{
- QTest::addColumn<QString>("control");
- QTest::addColumn<QString>("filePath");
-
- QMap<QString, QString>::const_iterator it;
- for (it = files.constBegin(); it != files.constEnd(); ++it)
- QTest::newRow(qPrintable(it.key())) << it.key() << it.value();
-}
-
-class IdValidator : public BaseValidator
-{
-public:
- IdValidator() : m_depth(0) { }
-
-protected:
- bool visit(QQmlJS::AST::UiObjectBinding *) override
- {
- ++m_depth;
- return true;
- }
-
- void endVisit(QQmlJS::AST::UiObjectBinding *) override
- {
- --m_depth;
- }
-
- bool visit(QQmlJS::AST::UiScriptBinding *node) override
- {
- if (m_depth == 0)
- return true;
-
- QQmlJS::AST::UiQualifiedId *id = node->qualifiedId;
- if (id && id->name == QStringLiteral("id"))
- addError(QString("Internal IDs are not allowed (%1)").arg(extractName(node->statement)), node);
- return true;
- }
-
-private:
- QString extractName(QQmlJS::AST::Statement *statement)
- {
- QQmlJS::AST::ExpressionStatement *expressionStatement = static_cast<QQmlJS::AST::ExpressionStatement *>(statement);
- if (!expressionStatement)
- return QString();
-
- QQmlJS::AST::IdentifierExpression *expression = static_cast<QQmlJS::AST::IdentifierExpression *>(expressionStatement->expression);
- if (!expression)
- return QString();
-
- return expression->name.toString();
- }
-
- int m_depth;
-};
-
-void tst_Sanity::ids()
-{
- QFETCH(QString, control);
- QFETCH(QString, filePath);
-
- IdValidator validator;
- if (!validator.validate(filePath))
- QFAIL(qPrintable(validator.errors()));
-}
-
-void tst_Sanity::ids_data()
-{
- QTest::addColumn<QString>("control");
- QTest::addColumn<QString>("filePath");
-
- QMap<QString, QString>::const_iterator it;
- for (it = files.constBegin(); it != files.constEnd(); ++it)
- QTest::newRow(qPrintable(it.key())) << it.key() << it.value();
-}
-
-void tst_Sanity::attachedObjects()
-{
- QFETCH(QUrl, url);
-
- QQmlComponent component(&engine);
- component.loadUrl(url);
-
- QSet<QString> classNames;
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(object.data(), qPrintable(component.errorString()));
- for (QObject *object : qAsConst(*qt_qobjects)) {
- if (object->parent() == &engine)
- continue; // allow "global" instances
- QString className = object->metaObject()->className();
- if (className.endsWith("Attached") || className.endsWith("Style"))
- QVERIFY2(!classNames.contains(className), qPrintable(QString("Multiple %1 instances").arg(className)));
- classNames.insert(className);
- }
-}
-
-void tst_Sanity::attachedObjects_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "calendar", "Qt/labs/calendar");
- addTestRowForEachControl(&engine, "controls", "QtQuick/Controls.2");
- addTestRowForEachControl(&engine, "controls/fusion", "QtQuick/Controls.2", QStringList() << "CheckIndicator" << "RadioIndicator" << "SliderGroove" << "SliderHandle" << "SwitchIndicator");
- addTestRowForEachControl(&engine, "controls/material", "QtQuick/Controls.2/Material", QStringList() << "Ripple" << "SliderHandle" << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate");
- addTestRowForEachControl(&engine, "controls/universal", "QtQuick/Controls.2/Universal", QStringList() << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator");
-}
-
-QTEST_MAIN(tst_Sanity)
-
-#include "tst_sanity.moc"
diff --git a/tests/auto/shared/qtest_quickcontrols.h b/tests/auto/shared/qtest_quickcontrols.h
deleted file mode 100644
index 4a06c021..00000000
--- a/tests/auto/shared/qtest_quickcontrols.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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$
-**
-****************************************************************************/
-
-#ifndef QTEST_QUICKCONTROLS_H
-#define QTEST_QUICKCONTROLS_H
-
-#include <QtTest/qtest.h>
-#include <QtTest/private/qtestresult_p.h>
-#include <QtGui/qguiapplication.h>
-#include <QtQml/qqml.h>
-#include <QtQuickControls2/qquickstyle.h>
-
-static QStringList testStyles()
-{
- if (QQuickStyle::name().isEmpty())
- return QQuickStyle::availableStyles();
- return QStringList(QQuickStyle::name());
-}
-
-static int runTests(QObject *testObject, int argc, char *argv[])
-{
- int res = 0;
- QTest::qInit(testObject, argc, argv);
- const QByteArray testObjectName = QTestResult::currentTestObjectName();
- // setCurrentTestObject() takes a C string, which means we must ensure
- // that the string we pass in lives long enough (i.e until the next call
- // to setCurrentTestObject()), so store the name outside of the loop.
- QByteArray testName;
- const QStringList styles = testStyles();
- for (const QString &style : styles) {
- qmlClearTypeRegistrations();
- QQuickStyle::setStyle(style);
- testName = testObjectName + "::" + style.toLocal8Bit();
- QTestResult::setCurrentTestObject(testName);
- res += QTest::qRun();
- }
- QTestResult::setCurrentTestObject(testObjectName);
- QTest::qCleanup();
- return res;
-}
-
-#define QTEST_QUICKCONTROLS_MAIN(TestCase) \
-int main(int argc, char *argv[]) \
-{ \
- qputenv("QML_NO_TOUCH_COMPRESSION", "1"); \
- QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); \
- QGuiApplication app(argc, argv); \
- TestCase tc; \
- QTEST_SET_MAIN_SOURCE_PATH \
- return runTests(&tc, argc, argv); \
-}
-
-#endif // QTEST_QUICKCONTROLS_H
diff --git a/tests/auto/shared/util.cpp b/tests/auto/shared/util.cpp
deleted file mode 100644
index 2f6b7f54..00000000
--- a/tests/auto/shared/util.cpp
+++ /dev/null
@@ -1,136 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 "util.h"
-
-#include <QtQml/QQmlComponent>
-#include <QtQml/QQmlError>
-#include <QtQml/QQmlContext>
-#include <QtQml/QQmlEngine>
-#include <QtCore/QTextStream>
-#include <QtCore/QDebug>
-#include <QtCore/QMutexLocker>
-
-QQmlDataTest *QQmlDataTest::m_instance = 0;
-
-QQmlDataTest::QQmlDataTest() :
-#ifdef QT_TESTCASE_BUILDDIR
- m_dataDirectory(QTest::qFindTestData("data", QT_QMLTEST_DATADIR, 0, QT_TESTCASE_BUILDDIR)),
-#else
- m_dataDirectory(QTest::qFindTestData("data", QT_QMLTEST_DATADIR, 0)),
-#endif
-
- m_dataDirectoryUrl(m_dataDirectory.startsWith(QLatin1Char(':'))
- ? QUrl(QLatin1String("qrc") + m_dataDirectory)
- : QUrl::fromLocalFile(m_dataDirectory + QLatin1Char('/')))
-{
- m_instance = this;
-}
-
-QQmlDataTest::~QQmlDataTest()
-{
- m_instance = 0;
-}
-
-void QQmlDataTest::initTestCase()
-{
- QVERIFY2(!m_dataDirectory.isEmpty(), "'data' directory not found");
- m_directory = QFileInfo(m_dataDirectory).absolutePath();
- if (m_dataDirectoryUrl.scheme() != QLatin1String("qrc"))
- QVERIFY2(QDir::setCurrent(m_directory), qPrintable(QLatin1String("Could not chdir to ") + m_directory));
-}
-
-QString QQmlDataTest::testFile(const QString &fileName) const
-{
- if (m_directory.isEmpty())
- qFatal("QQmlDataTest::initTestCase() not called.");
- QString result = m_dataDirectory;
- result += QLatin1Char('/');
- result += fileName;
- return result;
-}
-
-QByteArray QQmlDataTest::msgComponentError(const QQmlComponent &c,
- const QQmlEngine *engine /* = 0 */)
-{
- QString result;
- const QList<QQmlError> errors = c.errors();
- QTextStream str(&result);
- str << "Component '" << c.url().toString() << "' has " << errors.size()
- << " errors: '";
- for (int i = 0; i < errors.size(); ++i) {
- if (i)
- str << ", '";
- str << errors.at(i).toString() << '\'';
-
- }
- if (!engine)
- if (QQmlContext *context = c.creationContext())
- engine = context->engine();
- if (engine) {
- str << " Import paths: (" << engine->importPathList().join(QStringLiteral(", "))
- << ") Plugin paths: (" << engine->pluginPathList().join(QStringLiteral(", "))
- << ')';
- }
- return result.toLocal8Bit();
-}
-
-Q_GLOBAL_STATIC(QMutex, qQmlTestMessageHandlerMutex)
-
-QQmlTestMessageHandler *QQmlTestMessageHandler::m_instance = 0;
-
-void QQmlTestMessageHandler::messageHandler(QtMsgType, const QMessageLogContext &, const QString &message)
-{
- QMutexLocker locker(qQmlTestMessageHandlerMutex());
- if (QQmlTestMessageHandler::m_instance)
- QQmlTestMessageHandler::m_instance->m_messages.push_back(message);
-}
-
-QQmlTestMessageHandler::QQmlTestMessageHandler()
-{
- QMutexLocker locker(qQmlTestMessageHandlerMutex());
- Q_ASSERT(!QQmlTestMessageHandler::m_instance);
- QQmlTestMessageHandler::m_instance = this;
- m_oldHandler = qInstallMessageHandler(messageHandler);
-}
-
-QQmlTestMessageHandler::~QQmlTestMessageHandler()
-{
- QMutexLocker locker(qQmlTestMessageHandlerMutex());
- Q_ASSERT(QQmlTestMessageHandler::m_instance);
- qInstallMessageHandler(m_oldHandler);
- QQmlTestMessageHandler::m_instance = 0;
-}
diff --git a/tests/auto/shared/util.h b/tests/auto/shared/util.h
deleted file mode 100644
index 4295d798..00000000
--- a/tests/auto/shared/util.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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$
-**
-****************************************************************************/
-
-#ifndef QQMLTESTUTILS_H
-#define QQMLTESTUTILS_H
-
-#include <QtCore/QDir>
-#include <QtCore/QUrl>
-#include <QtCore/QCoreApplication>
-#include <QtCore/QStringList>
-#include <QtTest/QTest>
-
-QT_FORWARD_DECLARE_CLASS(QQmlComponent)
-QT_FORWARD_DECLARE_CLASS(QQmlEngine)
-
-/* Base class for tests with data that are located in a "data" subfolder. */
-
-class QQmlDataTest : public QObject
-{
- Q_OBJECT
-public:
- QQmlDataTest();
- virtual ~QQmlDataTest();
-
- QString testFile(const QString &fileName) const;
- inline QString testFile(const char *fileName) const
- { return testFile(QLatin1String(fileName)); }
- inline QUrl testFileUrl(const QString &fileName) const
- { return QUrl::fromLocalFile(testFile(fileName)); }
- inline QUrl testFileUrl(const char *fileName) const
- { return testFileUrl(QLatin1String(fileName)); }
-
- inline QString dataDirectory() const { return m_dataDirectory; }
- inline QUrl dataDirectoryUrl() const { return m_dataDirectoryUrl; }
- inline QString directory() const { return m_directory; }
-
- static inline QQmlDataTest *instance() { return m_instance; }
-
- static QByteArray msgComponentError(const QQmlComponent &,
- const QQmlEngine *engine = 0);
-
-public slots:
- virtual void initTestCase();
-
-private:
- static QQmlDataTest *m_instance;
-
- const QString m_dataDirectory;
- const QUrl m_dataDirectoryUrl;
- QString m_directory;
-};
-
-class QQmlTestMessageHandler
-{
- Q_DISABLE_COPY(QQmlTestMessageHandler)
-public:
- QQmlTestMessageHandler();
- ~QQmlTestMessageHandler();
-
- const QStringList &messages() const { return m_messages; }
- const QString messageString() const { return m_messages.join(QLatin1Char('\n')); }
-
- void clear() { m_messages.clear(); }
-
-private:
- static void messageHandler(QtMsgType, const QMessageLogContext &, const QString &message);
-
- static QQmlTestMessageHandler *m_instance;
- QStringList m_messages;
- QtMessageHandler m_oldHandler;
-};
-
-#endif // QQMLTESTUTILS_H
diff --git a/tests/auto/shared/util.pri b/tests/auto/shared/util.pri
deleted file mode 100644
index 99607a66..00000000
--- a/tests/auto/shared/util.pri
+++ /dev/null
@@ -1,14 +0,0 @@
-QT += testlib-private core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2
-
-HEADERS += $$PWD/visualtestutil.h \
- $$PWD/util.h \
- $$PWD/qtest_quickcontrols.h
-SOURCES += $$PWD/visualtestutil.cpp \
- $$PWD/util.cpp
-
-android|ios {
- DEFINES += QT_QMLTEST_DATADIR=\\\":/data\\\"
-} else {
- DEFINES += QT_QMLTEST_DATADIR=\\\"$${_PRO_FILE_PWD_}/data\\\"
-}
-DEFINES += QQC2_IMPORT_PATH=\\\"$$QQC2_SOURCE_TREE/src/imports\\\"
diff --git a/tests/auto/shared/visualtestutil.cpp b/tests/auto/shared/visualtestutil.cpp
deleted file mode 100644
index 3eaaa588..00000000
--- a/tests/auto/shared/visualtestutil.cpp
+++ /dev/null
@@ -1,135 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 "visualtestutil.h"
-
-#include <QtQuick/QQuickItem>
-#include <QtCore/QDebug>
-#include <QtGui/QCursor>
-#include <QtCore/QCoreApplication>
-#include <QtQml/QQmlFile>
-#include <QtTest/QTest>
-
-bool QQuickVisualTestUtil::delegateVisible(QQuickItem *item)
-{
- return item->isVisible() && !QQuickItemPrivate::get(item)->culled;
-}
-
-QQuickItem *QQuickVisualTestUtil::findVisibleChild(QQuickItem *parent, const QString &objectName)
-{
- QQuickItem *item = 0;
- QList<QQuickItem*> items = parent->findChildren<QQuickItem*>(objectName);
- for (int i = 0; i < items.count(); ++i) {
- if (items.at(i)->isVisible() && !QQuickItemPrivate::get(items.at(i))->culled) {
- item = items.at(i);
- break;
- }
- }
- return item;
-}
-
-void QQuickVisualTestUtil::dumpTree(QQuickItem *parent, int depth)
-{
- static QString padding(" ");
- for (int i = 0; i < parent->childItems().count(); ++i) {
- QQuickItem *item = qobject_cast<QQuickItem*>(parent->childItems().at(i));
- if (!item)
- continue;
- qDebug() << padding.left(depth*2) << item;
- dumpTree(item, depth+1);
- }
-}
-
-void QQuickVisualTestUtil::moveMouseAway(QQuickWindow *window)
-{
-#if QT_CONFIG(cursor) // Get the cursor out of the way.
- // Using "bottomRight() + QPoint(100, 100)" was causing issues on Ubuntu,
- // where the window was positioned at the bottom right corner of the window
- // (even after centering the window on the screen), so we use another position.
- QCursor::setPos(window->geometry().bottomLeft() + QPoint(0, 10));
-#endif
-
- // make sure hover events from QQuickWindowPrivate::flushFrameSynchronousEvents()
- // do not interfere with the tests
- QEvent leave(QEvent::Leave);
- QCoreApplication::sendEvent(window, &leave);
-}
-
-void QQuickVisualTestUtil::centerOnScreen(QQuickWindow *window)
-{
- const QRect screenGeometry = window->screen()->availableGeometry();
- const QPoint offset = QPoint(window->width() / 2, window->height() / 2);
- window->setFramePosition(screenGeometry.center() - offset);
-}
-
-void QQuickVisualTestUtil::addTestRowForEachControl(QQmlEngine *engine, const QString &sourcePath, const QString &targetPath, const QStringList &skiplist)
-{
- // We cannot use QQmlComponent to load QML files directly from the source tree.
- // For styles that use internal QML types (eg. material/Ripple.qml), the source
- // dir would be added as an "implicit" import path overriding the actual import
- // path (qtbase/qml/QtQuick/Controls.2/Material). => The QML engine fails to load
- // the style C++ plugin from the implicit import path (the source dir).
- //
- // Therefore we only use the source tree for finding out the set of QML files that
- // a particular style implements, and then we locate the respective QML files in
- // the engine's import path. This way we can use QQmlComponent to load each QML file
- // for benchmarking.
-
- const QFileInfoList entries = QDir(QQC2_IMPORT_PATH "/" + sourcePath).entryInfoList(QStringList("*.qml"), QDir::Files);
- for (const QFileInfo &entry : entries) {
- QString name = entry.baseName();
- if (!skiplist.contains(name)) {
- const auto importPathList = engine->importPathList();
- for (const QString &importPath : importPathList) {
- QString name = entry.dir().dirName() + "/" + entry.fileName();
- QString filePath = importPath + "/" + targetPath + "/" + entry.fileName();
- if (filePath.startsWith(":"))
- filePath.prepend("qrc");
- if (QFile::exists(filePath)) {
- QTest::newRow(qPrintable(name)) << QUrl::fromLocalFile(filePath);
- break;
- } else {
- QUrl url(filePath);
- filePath = QQmlFile::urlToLocalFileOrQrc(filePath);
- if (!filePath.isEmpty() && QFile::exists(filePath)) {
- QTest::newRow(qPrintable(name)) << url;
- break;
- }
- }
- }
- }
- }
-}
diff --git a/tests/auto/shared/visualtestutil.h b/tests/auto/shared/visualtestutil.h
deleted file mode 100644
index d5e651c5..00000000
--- a/tests/auto/shared/visualtestutil.h
+++ /dev/null
@@ -1,146 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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$
-**
-****************************************************************************/
-
-#ifndef QQUICKVISUALTESTUTIL_H
-#define QQUICKVISUALTESTUTIL_H
-
-#include <QtQuick/QQuickItem>
-#include <QtQml/QQmlExpression>
-
-#include <QtQuick/private/qquickitem_p.h>
-
-#include <QtQuickTemplates2/private/qquickapplicationwindow_p.h>
-
-#include "util.h"
-
-namespace QQuickVisualTestUtil
-{
- QQuickItem *findVisibleChild(QQuickItem *parent, const QString &objectName);
-
- void dumpTree(QQuickItem *parent, int depth = 0);
-
- bool delegateVisible(QQuickItem *item);
-
- void centerOnScreen(QQuickWindow *window);
-
- void moveMouseAway(QQuickWindow *window);
-
- /*
- Find an item with the specified objectName. If index is supplied then the
- item must also evaluate the {index} expression equal to index
- */
- template<typename T>
- T *findItem(QQuickItem *parent, const QString &objectName, int index = -1)
- {
- const QMetaObject &mo = T::staticMetaObject;
- for (int i = 0; i < parent->childItems().count(); ++i) {
- QQuickItem *item = qobject_cast<QQuickItem*>(parent->childItems().at(i));
- if (!item)
- continue;
- if (mo.cast(item) && (objectName.isEmpty() || item->objectName() == objectName)) {
- if (index != -1) {
- QQmlExpression e(qmlContext(item), item, "index");
- if (e.evaluate().toInt() == index)
- return static_cast<T*>(item);
- } else {
- return static_cast<T*>(item);
- }
- }
- item = findItem<T>(item, objectName, index);
- if (item)
- return static_cast<T*>(item);
- }
-
- return 0;
- }
-
- template<typename T>
- QList<T*> findItems(QQuickItem *parent, const QString &objectName, bool visibleOnly = true)
- {
- QList<T*> items;
- const QMetaObject &mo = T::staticMetaObject;
- for (int i = 0; i < parent->childItems().count(); ++i) {
- QQuickItem *item = qobject_cast<QQuickItem*>(parent->childItems().at(i));
- if (!item || (visibleOnly && (!item->isVisible() || QQuickItemPrivate::get(item)->culled)))
- continue;
- if (mo.cast(item) && (objectName.isEmpty() || item->objectName() == objectName))
- items.append(static_cast<T*>(item));
- items += findItems<T>(item, objectName);
- }
-
- return items;
- }
-
- template<typename T>
- QList<T*> findItems(QQuickItem *parent, const QString &objectName, const QList<int> &indexes)
- {
- QList<T*> items;
- for (int i=0; i<indexes.count(); i++)
- items << qobject_cast<QQuickItem*>(findItem<T>(parent, objectName, indexes[i]));
- return items;
- }
-
- class QQuickApplicationHelper
- {
- public:
- QQuickApplicationHelper(QQmlDataTest *testCase, const QString &testFilePath) :
- component(&engine)
- {
- component.loadUrl(testCase->testFileUrl(testFilePath));
- QObject *rootObject = component.create();
- cleanup.reset(rootObject);
- QVERIFY2(rootObject, qPrintable(QString::fromLatin1("Failed to create window: %1").arg(component.errorString())));
-
- window = qobject_cast<QQuickWindow*>(rootObject);
- appWindow = qobject_cast<QQuickApplicationWindow*>(rootObject);
- QVERIFY(window);
- QVERIFY(!window->isVisible());
- }
-
- QQmlEngine engine;
- QQmlComponent component;
- QScopedPointer<QObject> cleanup;
- QQuickApplicationWindow *appWindow;
- QQuickWindow *window;
- };
-
- void addTestRowForEachControl(QQmlEngine *engine, const QString &sourcePath, const QString &targetPath, const QStringList &skiplist = QStringList());
-}
-
-#define QQUICK_VERIFY_POLISH(item) \
- QTRY_COMPARE(QQuickItemPrivate::get(item)->polishScheduled, false)
-
-#endif // QQUICKVISUALTESTUTIL_H
diff --git a/tests/auto/snippets/data/dependencies.qml b/tests/auto/snippets/data/dependencies.qml
deleted file mode 100644
index db0a968d..00000000
--- a/tests/auto/snippets/data/dependencies.qml
+++ /dev/null
@@ -1,8 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Universal 2.12
-import Qt.labs.calendar 1.0
-
-Control { }
diff --git a/tests/auto/snippets/snippets.pro b/tests/auto/snippets/snippets.pro
deleted file mode 100644
index 6f366f23..00000000
--- a/tests/auto/snippets/snippets.pro
+++ /dev/null
@@ -1,17 +0,0 @@
-TEMPLATE = app
-TARGET = tst_snippets
-
-QT += quick quickcontrols2 testlib
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-DEFINES += QQC2_SNIPPETS_PATH=\\\"$$QQC2_SOURCE_TREE/src/imports/controls/doc/snippets\\\"
-
-SOURCES += \
- $$PWD/tst_snippets.cpp
-
-OTHER_FILES += \
- $$PWD/data/*.qml
-
-TESTDATA += \
- $$PWD/data/*
diff --git a/tests/auto/snippets/tst_snippets.cpp b/tests/auto/snippets/tst_snippets.cpp
deleted file mode 100644
index 107759ce..00000000
--- a/tests/auto/snippets/tst_snippets.cpp
+++ /dev/null
@@ -1,168 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest>
-#include <QtQuick>
-#include <QtQuickControls2>
-
-typedef QPair<QString, QString> QStringPair;
-
-class tst_Snippets : public QObject
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void verify();
- void verify_data();
-
-private:
- void loadSnippet(const QString &source);
-
- bool takeScreenshots;
- QMap<QString, QStringPair> snippetPaths;
-};
-
-static QMap<QString, QStringPair> findSnippets(const QDir &inputDir, const QDir &outputDir = QDir())
-{
- QMap<QString, QStringPair> snippetPaths;
- QDirIterator it(inputDir.path(), QStringList() << "qtquick*.qml" << "qtlabs*.qml", QDir::Files | QDir::Readable);
- while (it.hasNext()) {
- QFileInfo fi(it.next());
- const QString outDirPath = !outputDir.path().isEmpty() ? outputDir.filePath(fi.baseName() + ".png") : QString();
- snippetPaths.insert(fi.baseName(), qMakePair(fi.filePath(), outDirPath));
- }
- return snippetPaths;
-}
-
-void tst_Snippets::initTestCase()
-{
- qInfo() << "Snippets are taken from" << QQC2_SNIPPETS_PATH;
-
- QDir snippetsDir(QQC2_SNIPPETS_PATH);
- QVERIFY(!snippetsDir.path().isEmpty());
-
- QDir screenshotsDir(QDir::current().filePath("screenshots"));
-
- takeScreenshots = qgetenv("SCREENSHOTS").toInt();
- if (takeScreenshots)
- QVERIFY(screenshotsDir.exists() || QDir::current().mkpath("screenshots"));
-
- snippetPaths = findSnippets(snippetsDir, screenshotsDir);
- QVERIFY(!snippetPaths.isEmpty());
-}
-
-Q_DECLARE_METATYPE(QList<QQmlError>)
-
-void tst_Snippets::verify()
-{
- QFETCH(QString, input);
- QFETCH(QString, output);
-
- QQmlEngine engine;
- QQmlComponent component(&engine);
-
- qRegisterMetaType<QList<QQmlError> >();
- QSignalSpy warnings(&engine, SIGNAL(warnings(QList<QQmlError>)));
- QVERIFY(warnings.isValid());
-
- QUrl url = QUrl::fromLocalFile(input);
- component.loadUrl(url);
-
- QScopedPointer<QObject> root(component.create());
- QVERIFY2(!root.isNull(), qPrintable(component.errorString()));
-
- QCOMPARE(component.status(), QQmlComponent::Ready);
- QVERIFY(component.errors().isEmpty());
-
- QVERIFY(warnings.isEmpty());
-
- if (takeScreenshots) {
- const QString currentDataTag = QLatin1String(QTest::currentDataTag());
- static const QString applicationStyle = QQuickStyle::name().isEmpty() ? "Default" : QQuickStyle::name();
- static const QStringList availableStyles = QQuickStyle::availableStyles();
-
- bool isStyledSnippet = false;
- const QString snippetStyle = currentDataTag.section("-", 1, 1);
- for (const QString &availableStyle : availableStyles) {
- if (!snippetStyle.compare(availableStyle, Qt::CaseInsensitive)) {
- if (applicationStyle != availableStyle)
- QSKIP(qPrintable(QString("%1 style specific snippet. Running with the %2 style.").arg(availableStyle, applicationStyle)));
- isStyledSnippet = true;
- }
- }
-
- if (!isStyledSnippet && !applicationStyle.isEmpty()) {
- int index = output.indexOf("-", output.lastIndexOf("/"));
- if (index != -1)
- output.insert(index, "-" + applicationStyle.toLower());
- }
-
- QQuickWindow *window = qobject_cast<QQuickWindow *>(root.data());
- if (!window) {
- QQuickView *view = new QQuickView;
- view->setContent(url, &component, root.data());
- window = view;
- }
-
- window->show();
- window->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(window));
-
- QSharedPointer<QQuickItemGrabResult> result = window->contentItem()->grabToImage();
- QSignalSpy spy(result.data(), SIGNAL(ready()));
- QVERIFY(spy.isValid());
- QVERIFY(spy.wait());
- QVERIFY(result->saveToFile(output));
-
- window->close();
- }
-}
-
-void tst_Snippets::verify_data()
-{
- QTest::addColumn<QString>("input");
- QTest::addColumn<QString>("output");
-
- QMap<QString, QStringPair>::const_iterator it;
- for (it = snippetPaths.constBegin(); it != snippetPaths.constEnd(); ++it)
- QTest::newRow(qPrintable(it.key())) << it.value().first << it.value().second;
-}
-
-QTEST_MAIN(tst_Snippets)
-
-#include "tst_snippets.moc"
diff --git a/tests/auto/translation/data/dialogButtonBox.qml b/tests/auto/translation/data/dialogButtonBox.qml
deleted file mode 100644
index 03a3ae0e..00000000
--- a/tests/auto/translation/data/dialogButtonBox.qml
+++ /dev/null
@@ -1,61 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Controls 2.13
-
-Item {
- property Dialog dialog: Dialog {
- width: 300
- height: 300
- visible: true
- standardButtons: DialogButtonBox.Save | DialogButtonBox.Discard
- }
-}
diff --git a/tests/auto/translation/qtbase_fr.ts b/tests/auto/translation/qtbase_fr.ts
deleted file mode 100644
index a2a05a07..00000000
--- a/tests/auto/translation/qtbase_fr.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS>
-<TS version="2.1" language="fr_FR">
-<context>
- <name>QPlatformTheme</name>
- <message>
- <source>Save</source>
- <translation>Enregistrer</translation>
- </message>
- <message>
- <source>Discard</source>
- <translation>Ne pas tenir compte</translation>
- </message>
-</context>
-<context>
- <name>QGnomeTheme</name>
- <message>
- <source>&amp;Save</source>
- <translation>&amp;Enregistrer</translation>
- </message>
-</context>
-</TS>
diff --git a/tests/auto/translation/translation.pro b/tests/auto/translation/translation.pro
deleted file mode 100644
index d2d9d6ee..00000000
--- a/tests/auto/translation/translation.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-CONFIG += testcase
-TARGET = tst_translation
-SOURCES += tst_translation.cpp
-
-macos:CONFIG -= app_bundle
-
-QT += testlib gui-private quicktemplates2-private
-
-include (../shared/util.pri)
-
-TESTDATA = data/*
-
-OTHER_FILES += \
- data/*.qml
-
-# We only want to run lrelease, which is why we use EXTRA_TRANSLATIONS.
-EXTRA_TRANSLATIONS = qtbase_fr.ts
-# Embed the translations in a qrc file.
-CONFIG += lrelease embed_translations
diff --git a/tests/auto/translation/tst_translation.cpp b/tests/auto/translation/tst_translation.cpp
deleted file mode 100644
index 9cbca915..00000000
--- a/tests/auto/translation/tst_translation.cpp
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 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 <QtTest/qtest.h>
-#include "../shared/visualtestutil.h"
-
-#include <QtCore/qtranslator.h>
-#include <QtGui/private/qguiapplication_p.h>
-#include <QtGui/qpa/qplatformtheme.h>
-#include <QtQuick/qquickview.h>
-#include <QtQuickTemplates2/private/qquickabstractbutton_p.h>
-#include <QtQuickTemplates2/private/qquickdialog_p.h>
-#include <QtQuickTemplates2/private/qquickdialogbuttonbox_p.h>
-
-using namespace QQuickVisualTestUtil;
-
-class tst_translation : public QQmlDataTest
-{
- Q_OBJECT
-
-private slots:
- void dialogButtonBox();
-};
-
-void tst_translation::dialogButtonBox()
-{
- QQuickView view(testFileUrl("dialogButtonBox.qml"));
- if (view.status() != QQuickView::Ready)
- QFAIL("Failed to load QML file");
- view.show();
- QVERIFY(QTest::qWaitForWindowActive(&view));
-
- QQuickDialog *dialog = view.rootObject()->property("dialog").value<QQuickDialog*>();
- QVERIFY(dialog);
-
- QQuickDialogButtonBox *dialogButtonBox = qobject_cast<QQuickDialogButtonBox*>(dialog->footer());
- QVERIFY(dialogButtonBox);
-
- QQuickAbstractButton *saveButton = dialogButtonBox->standardButton(QPlatformDialogHelper::Save);
- QVERIFY(saveButton);
- QString defaultSaveText = QGuiApplicationPrivate::platformTheme()->standardButtonText(QPlatformDialogHelper::Save);
- defaultSaveText = QPlatformTheme::removeMnemonics(defaultSaveText);
- QCOMPARE(saveButton->text(), defaultSaveText);
-
- QQuickAbstractButton *discardButton = dialogButtonBox->standardButton(QPlatformDialogHelper::Discard);
- QVERIFY(discardButton);
- QString defaultDiscardText = QGuiApplicationPrivate::platformTheme()->standardButtonText(QPlatformDialogHelper::Discard);
- defaultDiscardText = QPlatformTheme::removeMnemonics(defaultDiscardText);
- QCOMPARE(discardButton->text(), defaultDiscardText);
-
- QTranslator translator;
- QVERIFY(translator.load(":/i18n/qtbase_fr.qm"));
- QVERIFY(qApp->installTranslator(&translator));
- view.engine()->retranslate();
-
- QString translatedSaveText = QGuiApplicationPrivate::platformTheme()->standardButtonText(QPlatformDialogHelper::Save);
- translatedSaveText = QPlatformTheme::removeMnemonics(translatedSaveText);
- QCOMPARE(saveButton->text(), translatedSaveText);
-
- QString translatedDiscardText = QGuiApplicationPrivate::platformTheme()->standardButtonText(QPlatformDialogHelper::Discard);
- translatedDiscardText = QPlatformTheme::removeMnemonics(translatedDiscardText);
- QCOMPARE(discardButton->text(), translatedDiscardText);
-}
-
-QTEST_MAIN(tst_translation)
-
-#include "tst_translation.moc"
diff --git a/tests/benchmarks/benchmarks.pro b/tests/benchmarks/benchmarks.pro
deleted file mode 100644
index 7c4ca224..00000000
--- a/tests/benchmarks/benchmarks.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- creationtime \
- objectcount
diff --git a/tests/benchmarks/creationtime/creationtime.pro b/tests/benchmarks/creationtime/creationtime.pro
deleted file mode 100644
index a594027e..00000000
--- a/tests/benchmarks/creationtime/creationtime.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-TARGET = tst_creationtime
-
-QT += qml testlib
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-include(../../auto/shared/util.pri)
-
-SOURCES += \
- tst_creationtime.cpp
diff --git a/tests/benchmarks/creationtime/data/dependencies.qml b/tests/benchmarks/creationtime/data/dependencies.qml
deleted file mode 100644
index 130ee37d..00000000
--- a/tests/benchmarks/creationtime/data/dependencies.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Universal 2.12
-import Qt.labs.calendar 1.0
-
-Control { }
diff --git a/tests/benchmarks/creationtime/tst_creationtime.cpp b/tests/benchmarks/creationtime/tst_creationtime.cpp
deleted file mode 100644
index 41d7224d..00000000
--- a/tests/benchmarks/creationtime/tst_creationtime.cpp
+++ /dev/null
@@ -1,167 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtQml>
-#include <QtTest>
-
-#include "../../auto/shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-class tst_CreationTime : public QObject
-{
- Q_OBJECT
-
-private slots:
- void init();
-
- void controls();
- void controls_data();
-
- void fusion();
- void fusion_data();
-
- void imagine();
- void imagine_data();
-
- void material();
- void material_data();
-
- void universal();
- void universal_data();
-
- void calendar();
- void calendar_data();
-
-private:
- QQmlEngine engine;
-};
-
-void tst_CreationTime::init()
-{
- engine.clearComponentCache();
-}
-
-static void doBenchmark(QQmlEngine *engine, const QUrl &url)
-{
- QQmlComponent component(engine);
- component.loadUrl(url);
-
- QObjectList objects;
- objects.reserve(4096);
- QBENCHMARK {
- QObject *object = component.create();
- QVERIFY2(object, qPrintable(component.errorString()));
- objects += object;
- }
- qDeleteAll(objects);
-}
-
-void tst_CreationTime::controls()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::controls_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls", "QtQuick/Controls.2", QStringList() << "ApplicationWindow");
-}
-
-void tst_CreationTime::fusion()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::fusion_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls/fusion", "QtQuick/Controls.2/Fusion", QStringList() << "ApplicationWindow" << "ButtonPanel" << "CheckIndicator" << "RadioIndicator" << "SliderGroove" << "SliderHandle" << "SwitchIndicator");
-}
-
-void tst_CreationTime::imagine()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::imagine_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls/imagine", "QtQuick/Controls.2/Imagine", QStringList() << "ApplicationWindow");
-}
-
-void tst_CreationTime::material()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::material_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls/material", "QtQuick/Controls.2/Material", QStringList() << "ApplicationWindow" << "Ripple" << "SliderHandle" << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate");
-}
-
-void tst_CreationTime::universal()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::universal_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "controls/universal", "QtQuick/Controls.2/Universal", QStringList() << "ApplicationWindow" << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator");
-}
-
-void tst_CreationTime::calendar()
-{
- QFETCH(QUrl, url);
- doBenchmark(&engine, url);
-}
-
-void tst_CreationTime::calendar_data()
-{
- QTest::addColumn<QUrl>("url");
- addTestRowForEachControl(&engine, "calendar", "Qt/labs/calendar");
-}
-
-QTEST_MAIN(tst_CreationTime)
-
-#include "tst_creationtime.moc"
diff --git a/tests/benchmarks/objectcount/data/dependencies.qml b/tests/benchmarks/objectcount/data/dependencies.qml
deleted file mode 100644
index 130ee37d..00000000
--- a/tests/benchmarks/objectcount/data/dependencies.qml
+++ /dev/null
@@ -1,9 +0,0 @@
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Fusion 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Universal 2.12
-import Qt.labs.calendar 1.0
-
-Control { }
diff --git a/tests/benchmarks/objectcount/objectcount.pro b/tests/benchmarks/objectcount/objectcount.pro
deleted file mode 100644
index 046bfc45..00000000
--- a/tests/benchmarks/objectcount/objectcount.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-TARGET = tst_objectcount
-
-QT += quick testlib core-private
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-include(../../auto/shared/util.pri)
-
-SOURCES += \
- tst_objectcount.cpp
diff --git a/tests/benchmarks/objectcount/tst_objectcount.cpp b/tests/benchmarks/objectcount/tst_objectcount.cpp
deleted file mode 100644
index c37469c3..00000000
--- a/tests/benchmarks/objectcount/tst_objectcount.cpp
+++ /dev/null
@@ -1,154 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest>
-#include <QtQuick>
-#include <QtCore/private/qhooks_p.h>
-#include <iostream>
-#include "../../auto/shared/visualtestutil.h"
-
-using namespace QQuickVisualTestUtil;
-
-static int qt_verbose = qgetenv("VERBOSE").toInt() != 0;
-
-Q_GLOBAL_STATIC(QObjectList, qt_qobjects)
-
-extern "C" Q_DECL_EXPORT void qt_addQObject(QObject *object)
-{
- qt_qobjects->append(object);
-}
-
-extern "C" Q_DECL_EXPORT void qt_removeQObject(QObject *object)
-{
- qt_qobjects->removeAll(object);
-}
-
-class tst_ObjectCount : public QObject
-{
- Q_OBJECT
-
-private slots:
- void init();
- void cleanup();
-
- void qobjects();
- void qobjects_data();
-
- void qquickitems();
- void qquickitems_data();
-
-private:
- QQmlEngine engine;
-};
-
-void tst_ObjectCount::init()
-{
- qtHookData[QHooks::AddQObject] = reinterpret_cast<quintptr>(&qt_addQObject);
- qtHookData[QHooks::RemoveQObject] = reinterpret_cast<quintptr>(&qt_removeQObject);
-
- // warmup
- QQmlComponent component(&engine);
- component.setData("import QtQuick 2.0; import QtQuick.Controls 2.1; Item { Button {} }", QUrl());
- delete component.create();
-}
-
-void tst_ObjectCount::cleanup()
-{
- qtHookData[QHooks::AddQObject] = 0;
- qtHookData[QHooks::RemoveQObject] = 0;
-}
-
-static void initTestRows(QQmlEngine *engine)
-{
- addTestRowForEachControl(engine, "controls", "QtQuick/Controls.2");
- addTestRowForEachControl(engine, "controls/fusion", "QtQuick/Controls.2/Fusion", QStringList() << "ButtonPanel" << "CheckIndicator" << "RadioIndicator" << "SliderGroove" << "SliderHandle" << "SwitchIndicator");
- addTestRowForEachControl(engine, "controls/imagine", "QtQuick/Controls.2/Imagine");
- addTestRowForEachControl(engine, "controls/material", "QtQuick/Controls.2/Material", QStringList() << "Ripple" << "SliderHandle" << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator" << "BoxShadow" << "ElevationEffect" << "CursorDelegate");
- addTestRowForEachControl(engine, "controls/universal", "QtQuick/Controls.2/Universal", QStringList() << "CheckIndicator" << "RadioIndicator" << "SwitchIndicator");
-}
-
-template <typename T>
-static void doBenchmark(QQmlEngine *engine, const QUrl &url)
-{
- QQmlComponent component(engine);
-
- qt_qobjects->clear();
-
- component.loadUrl(url);
- QScopedPointer<QObject> object(component.create());
- QVERIFY2(object.data(), qPrintable(component.errorString()));
-
- QObjectList objects;
- for (QObject *object : qAsConst(*qt_qobjects())) {
- if (qobject_cast<T *>(object))
- objects += object;
- }
-
- if (qt_verbose) {
- for (QObject *object : objects)
- qInfo() << "\t" << object;
- }
-
- QTest::setBenchmarkResult(objects.count(), QTest::Events);
-}
-
-void tst_ObjectCount::qobjects()
-{
- QFETCH(QUrl, url);
- doBenchmark<QObject>(&engine, url);
-}
-
-void tst_ObjectCount::qobjects_data()
-{
- QTest::addColumn<QUrl>("url");
- initTestRows(&engine);
-}
-
-void tst_ObjectCount::qquickitems()
-{
- QFETCH(QUrl, url);
- doBenchmark<QQuickItem>(&engine, url);
-}
-
-void tst_ObjectCount::qquickitems_data()
-{
- QTest::addColumn<QUrl>("url");
- initTestRows(&engine);
-}
-
-QTEST_MAIN(tst_ObjectCount)
-
-#include "tst_objectcount.moc"
diff --git a/tests/benchmarks/qmlbench/creation/delegates_abstractbutton.qml b/tests/benchmarks/qmlbench/creation/delegates_abstractbutton.qml
deleted file mode 100644
index 02074cb0..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_abstractbutton.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: AbstractButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- checkable: index % 2
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_busyindicator.qml b/tests/benchmarks/qmlbench/creation/delegates_busyindicator.qml
deleted file mode 100644
index c6e53bcf..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_busyindicator.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: BusyIndicator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- running: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_button.qml b/tests/benchmarks/qmlbench/creation/delegates_button.qml
deleted file mode 100644
index 5e6cc12f..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_button.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: Button {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "Button"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_checkbox.qml b/tests/benchmarks/qmlbench/creation/delegates_checkbox.qml
deleted file mode 100644
index 73b18865..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_checkbox.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: CheckBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "CheckBox"
- checked: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_checkdelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_checkdelegate.qml
deleted file mode 100644
index b4fde74a..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_checkdelegate.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: CheckDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "CheckDelegate"
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_combobox.qml b/tests/benchmarks/qmlbench/creation/delegates_combobox.qml
deleted file mode 100644
index 6519fc77..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_combobox.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: ComboBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- model: 5
- currentIndex: index % count
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_container.qml b/tests/benchmarks/qmlbench/creation/delegates_container.qml
deleted file mode 100644
index eb684a74..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_container.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Container {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_control.qml b/tests/benchmarks/qmlbench/creation/delegates_control.qml
deleted file mode 100644
index da4263dc..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_control.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Control {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_delaybutton.qml b/tests/benchmarks/qmlbench/creation/delegates_delaybutton.qml
deleted file mode 100644
index ae8aa0b7..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_delaybutton.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: DelayButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "DelayButton"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_dial.qml b/tests/benchmarks/qmlbench/creation/delegates_dial.qml
deleted file mode 100644
index 6fd33c70..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_dial.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 500
- delegate: Dial {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- value: index / root.staticCount
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_dialog.qml b/tests/benchmarks/qmlbench/creation/delegates_dialog.qml
deleted file mode 100644
index 36b1fbe1..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_dialog.qml
+++ /dev/null
@@ -1,28 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 200
- delegate: Item {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: dialog.width
- height: dialog.height
- Dialog {
- id: dialog
- visible: true
- title: "Dialog"
- modal: (index % 100) === 0
- width: parent.width
- height: parent.height
- standardButtons: Dialog.Ok | Dialog.Cancel
- Item {
- implicitWidth: 200
- implicitHeight: 200
- }
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml b/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml
deleted file mode 100644
index e5fac0eb..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_dialogbuttonbox.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: DialogButtonBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- standardButtons: DialogButtonBox.Ok | DialogButtonBox.Cancel
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_drawer.qml b/tests/benchmarks/qmlbench/creation/delegates_drawer.qml
deleted file mode 100644
index 9c1e74b5..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_drawer.qml
+++ /dev/null
@@ -1,21 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: Item {
- width: root.width
- height: root.height
- Drawer {
- id: drawer
- visible: true
- position: 1.0
- edge: index % 2 ? Qt.LeftEdge : Qt.RightEdge
- width: root.width / 3
- height: parent.height
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_frame.qml b/tests/benchmarks/qmlbench/creation/delegates_frame.qml
deleted file mode 100644
index 27852898..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_frame.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Frame {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- Item {
- implicitWidth: 100
- implicitHeight: 100
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml b/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml
deleted file mode 100644
index ccfe2927..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_groupbox.qml
+++ /dev/null
@@ -1,18 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: GroupBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- title: "GroupBox"
- Item {
- implicitWidth: 100
- implicitHeight: 100
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_itemdelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_itemdelegate.qml
deleted file mode 100644
index 8c7f67dd..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_itemdelegate.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ItemDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "ItemDelegate"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_label.qml b/tests/benchmarks/qmlbench/creation/delegates_label.qml
deleted file mode 100644
index 3c3e76b1..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_label.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: Label {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "Label"
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_menu.qml b/tests/benchmarks/qmlbench/creation/delegates_menu.qml
deleted file mode 100644
index 1566f40a..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_menu.qml
+++ /dev/null
@@ -1,22 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 200
- delegate: Item {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: menu.width
- height: menu.height
- Menu {
- id: menu
- visible: true
- MenuItem { text: "MenuItem1" }
- MenuItem { text: "MenuItem2" }
- MenuItem { text: "MenuItem3" }
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_menuitem.qml b/tests/benchmarks/qmlbench/creation/delegates_menuitem.qml
deleted file mode 100644
index 5c700707..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_menuitem.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: MenuItem {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "MenuItem"
- checkable: index % 2
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml b/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml
deleted file mode 100644
index 59abe333..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_menuseparator.qml
+++ /dev/null
@@ -1,13 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: MenuSeparator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_page.qml b/tests/benchmarks/qmlbench/creation/delegates_page.qml
deleted file mode 100644
index 9c9124dc..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_page.qml
+++ /dev/null
@@ -1,18 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Page {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- header: Item { }
- footer: Item { }
- Item { }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_pageindicator.qml b/tests/benchmarks/qmlbench/creation/delegates_pageindicator.qml
deleted file mode 100644
index 37eee037..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_pageindicator.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: PageIndicator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- count: 5
- currentIndex: index % 5
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_pane.qml b/tests/benchmarks/qmlbench/creation/delegates_pane.qml
deleted file mode 100644
index e811df93..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_pane.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: Pane {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- Item {
- implicitWidth: 100
- implicitHeight: 100
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_popup.qml b/tests/benchmarks/qmlbench/creation/delegates_popup.qml
deleted file mode 100644
index 9effd917..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_popup.qml
+++ /dev/null
@@ -1,26 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 500
- delegate: Item {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: popup.width
- height: popup.height
- Popup {
- id: popup
- visible: true
- modal: (index % 100) === 0
- width: parent.width
- height: parent.height
- Item {
- implicitWidth: 100
- implicitHeight: 100
- }
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_progressbar.qml b/tests/benchmarks/qmlbench/creation/delegates_progressbar.qml
deleted file mode 100644
index 4bb773f2..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_progressbar.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ProgressBar {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- value: index / root.staticCount
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_radiobutton.qml b/tests/benchmarks/qmlbench/creation/delegates_radiobutton.qml
deleted file mode 100644
index 3236835f..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_radiobutton.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: RadioButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "RadioButton"
- autoExclusive: false
- checked: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_radiodelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_radiodelegate.qml
deleted file mode 100644
index b6ffe174..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_radiodelegate.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: RadioDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "RadioDelegate"
- autoExclusive: false
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_rangeslider.qml b/tests/benchmarks/qmlbench/creation/delegates_rangeslider.qml
deleted file mode 100644
index a595bd7a..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_rangeslider.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: RangeSlider {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- first.value: (index / root.staticCount) * 0.5
- second.value: 0.5 + (index / root.staticCount) * 0.5
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_roundbutton.qml b/tests/benchmarks/qmlbench/creation/delegates_roundbutton.qml
deleted file mode 100644
index 572bf5e9..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_roundbutton.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: RoundButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "X"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_scrollbar.qml b/tests/benchmarks/qmlbench/creation/delegates_scrollbar.qml
deleted file mode 100644
index 2e6fc1fd..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_scrollbar.qml
+++ /dev/null
@@ -1,17 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ScrollBar {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- height: 100
- size: index / root.staticCount
- pressed: index % 2
- active: true
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml b/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml
deleted file mode 100644
index fd9e52e6..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_scrollindicator.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ScrollIndicator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- height: 100
- size: index / root.staticCount
- active: true
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml b/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml
deleted file mode 100644
index 0daa44dd..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_scrollview.qml
+++ /dev/null
@@ -1,23 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: ScrollView {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- Item {
- implicitWidth: 200
- implicitHeight: 200
- }
- ScrollBar.vertical.active: true
- ScrollBar.vertical.pressed: index % 3 === 1
- ScrollBar.horizontal.active: true
- ScrollBar.horizontal.pressed: index % 3 === 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_slider.qml b/tests/benchmarks/qmlbench/creation/delegates_slider.qml
deleted file mode 100644
index 44dac819..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_slider.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: Slider {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- value: index / root.staticCount
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_spinbox.qml b/tests/benchmarks/qmlbench/creation/delegates_spinbox.qml
deleted file mode 100644
index 90695102..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_spinbox.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: SpinBox {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- value: index / root.staticCount * to
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_stackview.qml b/tests/benchmarks/qmlbench/creation/delegates_stackview.qml
deleted file mode 100644
index e2644aef..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_stackview.qml
+++ /dev/null
@@ -1,18 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: StackView {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- initialItem: Item {
- focus: StackView.status === StackView.Active
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_swipedelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_swipedelegate.qml
deleted file mode 100644
index 752dc37b..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_swipedelegate.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: SwitchDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "SwipeDelegate"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_swipeview.qml b/tests/benchmarks/qmlbench/creation/delegates_swipeview.qml
deleted file mode 100644
index 0a922343..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_swipeview.qml
+++ /dev/null
@@ -1,24 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: SwipeView {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: 100
- height: 100
- Item {
- focus: SwipeView.isCurrentItem
- }
- Item {
- focus: SwipeView.isCurrentItem
- }
- Item {
- focus: SwipeView.isCurrentItem
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_switch.qml b/tests/benchmarks/qmlbench/creation/delegates_switch.qml
deleted file mode 100644
index 9381342d..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_switch.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: Switch {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "Switch"
- checked: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_switchdelegate.qml b/tests/benchmarks/qmlbench/creation/delegates_switchdelegate.qml
deleted file mode 100644
index f41281fa..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_switchdelegate.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: SwitchDelegate {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "SwitchDelegate"
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml b/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml
deleted file mode 100644
index 95bb7291..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_tabbar.qml
+++ /dev/null
@@ -1,23 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: TabBar {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- currentIndex: index / root.staticCount * count
- TabButton {
- text: "Tab1"
- }
- TabButton {
- text: "Tab2"
- }
- TabButton {
- text: "Tab3"
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tabbutton.qml b/tests/benchmarks/qmlbench/creation/delegates_tabbutton.qml
deleted file mode 100644
index dc549a3a..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_tabbutton.qml
+++ /dev/null
@@ -1,16 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: TabButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "TabButton"
- checked: index % 2
- down: index % 3
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_textarea.qml b/tests/benchmarks/qmlbench/creation/delegates_textarea.qml
deleted file mode 100644
index ab383ad4..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_textarea.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 500
- delegate: TextArea {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "Text\nArea"
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_textfield.qml b/tests/benchmarks/qmlbench/creation/delegates_textfield.qml
deleted file mode 100644
index 32f31fe8..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_textfield.qml
+++ /dev/null
@@ -1,14 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: TextField {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "TextField"
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_toolbutton.qml b/tests/benchmarks/qmlbench/creation/delegates_toolbutton.qml
deleted file mode 100644
index 38e9a59f..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_toolbutton.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 1000
- delegate: ToolButton {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- text: "ToolButton"
- down: index % 2
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_toolseparator.qml b/tests/benchmarks/qmlbench/creation/delegates_toolseparator.qml
deleted file mode 100644
index e3db91f8..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_toolseparator.qml
+++ /dev/null
@@ -1,13 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 2000
- delegate: ToolSeparator {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml b/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml
deleted file mode 100644
index f8e7a283..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_tooltip.qml
+++ /dev/null
@@ -1,20 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 500
- delegate: Item {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- width: tooltip.width
- height: tooltip.height
- ToolTip {
- id: tooltip
- visible: true
- text: "ToolTip"
- }
- }
-}
diff --git a/tests/benchmarks/qmlbench/creation/delegates_tumbler.qml b/tests/benchmarks/qmlbench/creation/delegates_tumbler.qml
deleted file mode 100644
index 4af07b7f..00000000
--- a/tests/benchmarks/qmlbench/creation/delegates_tumbler.qml
+++ /dev/null
@@ -1,15 +0,0 @@
-import QtQuick 2.12
-import QmlBench 1.0
-import QtQuick.Controls 2.12
-
-CreationBenchmark {
- id: root
- count: 20
- staticCount: 250
- delegate: Tumbler {
- x: QmlBench.getRandom() * root.width - width
- y: QmlBench.getRandom() * root.height - height
- model: 5
- currentIndex: index % count
- }
-}
diff --git a/tests/global/global.cfg b/tests/global/global.cfg
deleted file mode 100644
index 67d6832f..00000000
--- a/tests/global/global.cfg
+++ /dev/null
@@ -1,5 +0,0 @@
-<config>
-<modules>
-<module name="QtQuickControls2" qtname="quickcontrols2"/>
-</modules>
-</config>
diff --git a/tests/manual/buttons/ButtonLoader.qml b/tests/manual/buttons/ButtonLoader.qml
deleted file mode 100644
index 574997e1..00000000
--- a/tests/manual/buttons/ButtonLoader.qml
+++ /dev/null
@@ -1,101 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- id: root
- implicitWidth: activeButton.implicitWidth
- implicitHeight: activeButton.implicitHeight
-
- property bool round: false
-
- property string text
- property bool flat
- property bool hoverEnabled
- property bool highlighted
- property bool checked
- property var down: undefined
-
- property AbstractButton activeButton: round ? roundButton : button
-
- Button {
- id: button
- visible: !round
- text: root.text
- flat: root.flat
- hoverEnabled: root.hoverEnabled
- highlighted: root.highlighted
- checked: root.checked
- down: root.down
- enabled: root.enabled
- }
-
- RoundButton {
- id: roundButton
- visible: round
- text: "\u2713"
- flat: root.flat
- hoverEnabled: root.hoverEnabled
- highlighted: root.highlighted
- checked: root.checked
- down: root.down
- enabled: root.enabled
-
- Label {
- text: root.text
- font.pixelSize: roundButton.font.pixelSize * 0.5
- anchors.top: parent.bottom
- anchors.topMargin: 2
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/tests/manual/buttons/buttons.cpp b/tests/manual/buttons/buttons.cpp
deleted file mode 100644
index 1e90930d..00000000
--- a/tests/manual/buttons/buttons.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/buttons.qml"));
-
- return app.exec();
-}
diff --git a/tests/manual/buttons/buttons.pro b/tests/manual/buttons/buttons.pro
deleted file mode 100644
index 2cb1c14c..00000000
--- a/tests/manual/buttons/buttons.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-TEMPLATE = app
-TARGET = buttons
-QT += qml quickcontrols2
-
-SOURCES += buttons.cpp
-RESOURCES += $$files(*.qml)
diff --git a/tests/manual/buttons/buttons.qml b/tests/manual/buttons/buttons.qml
deleted file mode 100644
index 0848038d..00000000
--- a/tests/manual/buttons/buttons.qml
+++ /dev/null
@@ -1,150 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Material 2.12
-import QtQuick.Controls.Universal 2.12
-
-ApplicationWindow {
- id: window
- visible: true
- title: "Buttons"
-
- Component.onCompleted: {
- var pane = repeater.itemAt(0)
- width = pane.implicitWidth * 2 + flickable.leftMargin + flickable.rightMargin + flow.spacing
- height = header.height + pane.implicitHeight * 2 + flickable.topMargin + flickable.bottomMargin + flow.spacing
- }
-
- header: ToolBar {
- Row {
- spacing: 20
- anchors.right: parent.right
- CheckBox {
- id: hoverBox
- text: "Hover"
- checked: true
- }
- CheckBox {
- id: roundBox
- text: "Round"
- checked: false
- }
- }
- }
-
- Flickable {
- id: flickable
- anchors.fill: parent
-
- topMargin: 40
- leftMargin: 40
- rightMargin: 40
- bottomMargin: 40
-
- contentHeight: flow.implicitHeight
-
- Flow {
- id: flow
- spacing: 40
- width: flickable.width - flickable.leftMargin - flickable.rightMargin
-
- Repeater {
- id: repeater
-
- model: [
- { title: "Normal", theme: Material.Light, flat: false },
- { title: "Flat", theme: Material.Light, flat: true },
- { title: "Normal", theme: Material.Dark, flat: false },
- { title: "Flat", theme: Material.Dark, flat: true }
- ]
-
- Pane {
- Material.elevation: 8
- Material.theme: modelData.theme
- Universal.theme: modelData.theme
-
- GroupBox {
- title: modelData.title
- background.visible: false
-
- Grid {
- columns: 4
- spacing: 20
- padding: 20
-
- ButtonLoader { text: "Normal"; flat: modelData.flat; hoverEnabled: hoverBox.checked; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; enabled: false; round: roundBox.checked }
- ButtonLoader { text: "Down"; flat: modelData.flat; hoverEnabled: hoverBox.checked; down: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; down: true; enabled: false; round: roundBox.checked }
-
- ButtonLoader { text: "Checked"; flat: modelData.flat; hoverEnabled: hoverBox.checked; checked: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; checked: true; enabled: false; round: roundBox.checked }
- ButtonLoader { text: "Down"; flat: modelData.flat; hoverEnabled: hoverBox.checked; checked: true; down: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; checked: true; down: true; enabled: false; round: roundBox.checked }
-
- ButtonLoader { text: "Highlighted"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; enabled: false; round: roundBox.checked }
- ButtonLoader { text: "Down"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; down: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; down: true; enabled: false; round: roundBox.checked }
-
- ButtonLoader { text: "Hi-checked"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; checked: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; checked: true; enabled: false; round: roundBox.checked }
- ButtonLoader { text: "Down"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; checked: true; down: true; round: roundBox.checked }
- ButtonLoader { text: "Disabled"; flat: modelData.flat; hoverEnabled: hoverBox.checked; highlighted: true; checked: true; down: true; enabled: false; round: roundBox.checked }
- }
- }
- }
- }
- }
-
- ScrollIndicator.vertical: ScrollIndicator { }
- }
-}
diff --git a/tests/manual/dialogs/CustomDialog.qml b/tests/manual/dialogs/CustomDialog.qml
deleted file mode 100644
index 0e86fbb8..00000000
--- a/tests/manual/dialogs/CustomDialog.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls 2.12
-
-Dialog {
- id: root
- x: previousDialog ? previousDialog.x + previousDialog.width + space : 0
- y: previousDialog ? previousDialog.y : 0
- closePolicy: Dialog.NoAutoClose
- visible: true
-
- property Dialog previousDialog
- property int space: dialogSpacing
-
- Marker {
- parent: root.footer.contentItem
- visible: visualizeDialogButtonBoxContentItem
- text: "footer.contentItem"
- }
- Marker {
- parent: root.footer
- visible: visualizeDialogButtonBox
- text: "footer"
- border.color: "red"
- }
-}
diff --git a/tests/manual/dialogs/DialogLabel.qml b/tests/manual/dialogs/DialogLabel.qml
deleted file mode 100644
index c4775aea..00000000
--- a/tests/manual/dialogs/DialogLabel.qml
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick.Controls 2.12
-
-Label {
- x: dialog.x + (dialog.width - width) / 2
- y: dialog.y - height
- width: dialog.width
- wrapMode: Label.Wrap
-
- property Dialog dialog
-}
diff --git a/tests/manual/dialogs/Marker.qml b/tests/manual/dialogs/Marker.qml
deleted file mode 100644
index 439b50f2..00000000
--- a/tests/manual/dialogs/Marker.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Rectangle {
- anchors.fill: parent
- color: "transparent"
- border.color: "darkorange"
-
- property alias text: label.text
-
- Text {
- id: label
- font.pixelSize: Qt.application.font.pixelSize * 0.6
- color: parent.border.color
- anchors.left: parent.left
- anchors.bottom: parent.bottom
- anchors.margins: 4
- }
-}
diff --git a/tests/manual/dialogs/dialogs.cpp b/tests/manual/dialogs/dialogs.cpp
deleted file mode 100644
index 73faa175..00000000
--- a/tests/manual/dialogs/dialogs.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/dialogs.qml"));
-
- return app.exec();
-}
diff --git a/tests/manual/dialogs/dialogs.pro b/tests/manual/dialogs/dialogs.pro
deleted file mode 100644
index 4863923f..00000000
--- a/tests/manual/dialogs/dialogs.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-TARGET = dialogs
-QT += qml quickcontrols2
-
-SOURCES += dialogs.cpp
-RESOURCES += \
- qtquickcontrols2.conf \
- dialogs.qml \
- Marker.qml \
- CustomDialog.qml \
- DialogLabel.qml
diff --git a/tests/manual/dialogs/dialogs.qml b/tests/manual/dialogs/dialogs.qml
deleted file mode 100644
index a3048c34..00000000
--- a/tests/manual/dialogs/dialogs.qml
+++ /dev/null
@@ -1,247 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-ApplicationWindow {
- id: window
- width: 1200
- height: 800
- title: "Buttons"
- visible: true
-
- property alias visualizeDialogButtonBoxContentItem: visualizeDialogButtonBoxContentItemMenuItem.checked
- property alias visualizeDialogButtonBox: visualizeDialogButtonBoxMenuItem.checked
-
- property int dialogSpacing: 60
-
- header: ToolBar {
- RowLayout {
- anchors.fill: parent
- Item {
- Layout.fillWidth: true
- }
-
- ToolButton {
- text: "Settings"
- onClicked: settingsMenu.open()
-
- Menu {
- id: settingsMenu
- width: 400
-
- MenuItem {
- id: visualizeDialogButtonBoxContentItemMenuItem
- text: "Visualize DialogButtonBox contentItem"
- checkable: true
- }
-
- MenuItem {
- id: visualizeDialogButtonBoxMenuItem
- text: "Visualize DialogButtonBox"
- checkable: true
- }
- }
- }
- }
- }
-
-
- DialogLabel {
- text: "implicit width"
- dialog: dialogImplicitWidthNoButtons
- width: 100
- }
- CustomDialog {
- id: dialogImplicitWidthNoButtons
- x: dialogSpacing
- y: dialogSpacing
- space: 200
- }
-
- DialogLabel {
- text: "title, implicit width"
- dialog: dialogImplicitWidthTitleNoButtons
- width: 150
- }
- CustomDialog {
- id: dialogImplicitWidthTitleNoButtons
- y: dialogSpacing
- title: "Test"
- previousDialog: dialogImplicitWidthNoButtons
- space: 200
- }
-
- DialogLabel {
- text: "title, fixed width"
- dialog: dialogFixedWidthTitleNoButtons
- }
- CustomDialog {
- id: dialogFixedWidthTitleNoButtons
- y: dialogSpacing
- width: 300
- title: "Test"
- previousDialog: dialogImplicitWidthTitleNoButtons
- space: 200
- }
-
-
- DialogLabel {
- text: "one standard button, implicit width"
- dialog: dialogImplicitWidthOneButton
- }
- CustomDialog {
- id: dialogImplicitWidthOneButton
- x: dialogSpacing
- y: dialogFixedWidthTitleNoButtons.y + dialogFixedWidthTitleNoButtons.height + dialogSpacing
- standardButtons: Dialog.Ok
- }
-
- DialogLabel {
- text: "two standard buttons, implicit width"
- dialog: dialogImplicitWidthTwoButtons
- }
- CustomDialog {
- id: dialogImplicitWidthTwoButtons
- standardButtons: Dialog.Ok | Dialog.Cancel
- previousDialog: dialogImplicitWidthOneButton
- }
-
- DialogLabel {
- text: "three standard buttons, implicit width"
- dialog: dialogImplicitWidthThreeButtons
- }
- CustomDialog {
- id: dialogImplicitWidthThreeButtons
- standardButtons: Dialog.Apply | Dialog.RestoreDefaults | Dialog.Cancel
- previousDialog: dialogImplicitWidthTwoButtons
- }
-
-
- DialogLabel {
- text: "text, one standard button, implicit width"
- dialog: dialogTextImplicitWidthOneButton
- }
- CustomDialog {
- id: dialogTextImplicitWidthOneButton
- x: dialogSpacing
- y: dialogImplicitWidthThreeButtons.y + dialogImplicitWidthThreeButtons.height + dialogSpacing
- standardButtons: Dialog.Ok
-
- Label {
- text: "A Label"
- }
- }
-
- DialogLabel {
- text: "text, two standard buttons, implicit width"
- dialog: dialogTextImplicitWidthTwoButtons
- }
- CustomDialog {
- id: dialogTextImplicitWidthTwoButtons
- standardButtons: Dialog.Ok | Dialog.Cancel
- previousDialog: dialogTextImplicitWidthOneButton
-
- Label {
- text: "A Label"
- }
- }
-
- DialogLabel {
- text: "text, three standard buttons, implicit width"
- dialog: dialogTextImplicitWidthThreeButtons
- }
- CustomDialog {
- id: dialogTextImplicitWidthThreeButtons
- standardButtons: Dialog.Apply | Dialog.RestoreDefaults | Dialog.Cancel
- previousDialog: dialogTextImplicitWidthTwoButtons
-
- Label {
- text: "A Label"
- }
- }
-
-
- DialogLabel {
- text: "one standard button, fixed width (300)"
- dialog: dialogFixedWidthOneButton
- }
- CustomDialog {
- id: dialogFixedWidthOneButton
- x: dialogSpacing
- y: dialogTextImplicitWidthThreeButtons.y + dialogTextImplicitWidthThreeButtons.height + dialogSpacing
- width: 300
- standardButtons: Dialog.Ok
- }
-
- DialogLabel {
- text: "two standard buttons, fixed width (300)"
- dialog: dialogFixedWidthTwoButtons
- }
- CustomDialog {
- id: dialogFixedWidthTwoButtons
- width: 300
- standardButtons: Dialog.Ok | Dialog.Cancel
- previousDialog: dialogFixedWidthOneButton
- }
-
- DialogLabel {
- text: "three standard buttons, fixed width (300)"
- dialog: dialogFixedWidthThreeButtons
- }
- CustomDialog {
- id: dialogFixedWidthThreeButtons
- width: 300
- standardButtons: Dialog.Apply | Dialog.RestoreDefaults | Dialog.Cancel
- previousDialog: dialogFixedWidthTwoButtons
- }
-}
diff --git a/tests/manual/dialogs/qtquickcontrols2.conf b/tests/manual/dialogs/qtquickcontrols2.conf
deleted file mode 100644
index 7ac31807..00000000
--- a/tests/manual/dialogs/qtquickcontrols2.conf
+++ /dev/null
@@ -1,6 +0,0 @@
-[Controls]
-Style=Default
-;Style=Fusion
-;Style=Imagine
-;Style=Material
-;Style=Universal
diff --git a/tests/manual/fonts/deployment.pri b/tests/manual/fonts/deployment.pri
deleted file mode 100644
index c89af25a..00000000
--- a/tests/manual/fonts/deployment.pri
+++ /dev/null
@@ -1,14 +0,0 @@
-unix:!android {
- isEmpty(target.path) {
- qnx {
- target.path = /tmp/$${TARGET}/bin
- } else {
- target.path = /opt/$${TARGET}/bin
- }
- export(target.path)
- }
- INSTALLS += target
-}
-
-export(INSTALLS)
-
diff --git a/tests/manual/fonts/fonts.pro b/tests/manual/fonts/fonts.pro
deleted file mode 100644
index 36e70f7e..00000000
--- a/tests/manual/fonts/fonts.pro
+++ /dev/null
@@ -1,14 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick
-
-SOURCES += main.cpp
-
-RESOURCES += qml.qrc
-
-# Additional import path used to resolve QML modules in Qt Creator's code model
-QML_IMPORT_PATH =
-
-# Default rules for deployment.
-include(deployment.pri)
-
diff --git a/tests/manual/fonts/main.cpp b/tests/manual/fonts/main.cpp
deleted file mode 100644
index 43e58bdd..00000000
--- a/tests/manual/fonts/main.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
-
- return app.exec();
-}
-
diff --git a/tests/manual/fonts/main.qml b/tests/manual/fonts/main.qml
deleted file mode 100644
index 4182a654..00000000
--- a/tests/manual/fonts/main.qml
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Templates 2.12 as T
-import QtQuick.Layouts 1.12
-
-ApplicationWindow {
- visible: true
- width: 480
- height: 640
- title: qsTr("Hello World")
-
- header: ToolBar {
- Slider {
- from: 16
- to: 48
- stepSize: 1
- onValueChanged: control.font.pointSize = value
- }
- }
-
- Flickable {
- anchors.fill: parent
- contentWidth: control.width
- contentHeight: control.height
-
- T.Control {
- id: control
- width: layout.implicitWidth + 40
- height: layout.implicitHeight + 40
- ColumnLayout {
- id: layout
- anchors.fill: parent
- anchors.margins: 20
- Button { text: "Button" }
- CheckBox { text: "CheckBox" }
- GroupBox { title: "GroupBox" }
- RadioButton { text: "RadioButton" }
- Switch { text: "Switch" }
- TabButton {
- text: "TabButton"
- font.pointSize: control.font.pointSize
- }
- TextField { placeholderText: "TextField" }
- TextArea { placeholderText: "TextArea" }
- ToolButton { text: "ToolButton" }
- Tumbler { model: 3 }
- }
- }
-
- ScrollBar.vertical: ScrollBar { }
- }
-}
diff --git a/tests/manual/fonts/qml.qrc b/tests/manual/fonts/qml.qrc
deleted file mode 100644
index 0ff3892d..00000000
--- a/tests/manual/fonts/qml.qrc
+++ /dev/null
@@ -1,6 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- </qresource>
-</RCC>
-
diff --git a/tests/manual/gifs/capturedevent.cpp b/tests/manual/gifs/capturedevent.cpp
deleted file mode 100644
index cec5e97a..00000000
--- a/tests/manual/gifs/capturedevent.cpp
+++ /dev/null
@@ -1,113 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 "capturedevent.h"
-
-#include <QMetaEnum>
-#include <QMouseEvent>
-
-namespace {
- static inline bool isMouseEvent(const QEvent &event)
- {
- return event.type() >= QEvent::MouseButtonPress && event.type() <= QEvent::MouseMove;
- }
-}
-
-CapturedEvent::CapturedEvent()
-{
-}
-
-CapturedEvent::CapturedEvent(const QEvent &event, int delay)
-{
- setEvent(event);
- setDelay(delay);
-}
-
-void CapturedEvent::setEvent(const QEvent &event)
-{
- mType = event.type();
-
- if (isMouseEvent(event)) {
- const QMouseEvent *mouseEvent = static_cast<const QMouseEvent*>(&event);
- mPos = mouseEvent->pos();
- mMouseButton = mouseEvent->button();
- }
-}
-
-QEvent::Type CapturedEvent::type() const
-{
- return mType;
-}
-
-int CapturedEvent::delay() const
-{
- return mDelay;
-}
-
-void CapturedEvent::setDelay(int delay)
-{
- mDelay = delay;
-
- mCppCommand.clear();
-
- // We generate the C++ command here instead of when the event is captured,
- // because events() might trim some events, causing the delay of some events to change.
- // If we did it earlier, the events wouldn't have correct delays.
- if (mType == QEvent::MouseMove) {
- mCppCommand = QString::fromLatin1("QTest::mouseMove(&view, QPoint(%1, %2), %3);")
- .arg(mPos.x())
- .arg(mPos.y())
- .arg(mDelay);
-
- } else if (mType >= QEvent::MouseButtonPress && mType <= QEvent::MouseButtonDblClick) {
- QString eventTestFunctionName = (mType == QEvent::MouseButtonPress
- ? "mousePress" : (mType == QEvent::MouseButtonRelease
- ? "mouseRelease" : "mouseDClick"));
- QString buttonStr = QMetaEnum::fromType<Qt::MouseButtons>().valueToKey(mMouseButton);
- mCppCommand = QString::fromLatin1("QTest::%1(&view, Qt::%2, Qt::NoModifier, QPoint(%3, %4), %5);")
- .arg(eventTestFunctionName)
- .arg(buttonStr)
- .arg(mPos.x())
- .arg(mPos.y())
- .arg(mDelay);
- }
-}
-
-QString CapturedEvent::cppCommand() const
-{
- return mCppCommand;
-}
-
diff --git a/tests/manual/gifs/capturedevent.h b/tests/manual/gifs/capturedevent.h
deleted file mode 100644
index 28ed510a..00000000
--- a/tests/manual/gifs/capturedevent.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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$
-**
-****************************************************************************/
-
-#ifndef CAPTUREDEVENT_H
-#define CAPTUREDEVENT_H
-
-#include <QEvent>
-#include <QPoint>
-#include <QString>
-
-class CapturedEvent
-{
-public:
- CapturedEvent();
- CapturedEvent(const QEvent &event, int delay);
-
- void setEvent(const QEvent &event);
-
- int delay() const;
- void setDelay(int delay);
-
- QEvent::Type type() const;
-
- QString cppCommand() const;
-
-private:
- QEvent::Type mType;
- QPoint mPos;
- Qt::MouseButton mMouseButton;
- int mDelay;
- QString mCppCommand;
-};
-
-#endif // CAPTUREDEVENT_H
diff --git a/tests/manual/gifs/data/qtquickcontrols2-busyindicator.qml b/tests/manual/gifs/data/qtquickcontrols2-busyindicator.qml
deleted file mode 100644
index b0504cd7..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-busyindicator.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: busyIndicator.implicitWidth
- height: busyIndicator.implicitHeight
- visible: true
-
- property alias busyIndicator: busyIndicator
-
- BusyIndicator {
- id: busyIndicator
- running: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-button-flat.qml b/tests/manual/gifs/data/qtquickcontrols2-button-flat.qml
deleted file mode 100644
index c52c0391..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-button-flat.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: button.width
- height: button.height
- visible: true
-
- Button {
- id: button
- text: pressed ? "Pressed" : "Button"
- flat: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-button-highlighted.qml b/tests/manual/gifs/data/qtquickcontrols2-button-highlighted.qml
deleted file mode 100644
index 6398df50..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-button-highlighted.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: button.width
- height: button.height
- visible: true
-
- Button {
- id: button
- text: pressed ? "Pressed" : "Button"
- highlighted: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-button.qml b/tests/manual/gifs/data/qtquickcontrols2-button.qml
deleted file mode 100644
index 6361174f..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-button.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: button.width
- height: button.height
- visible: true
-
- Button {
- id: button
- text: pressed ? "Pressed" : "Button"
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-checkbox-tristate.qml b/tests/manual/gifs/data/qtquickcontrols2-checkbox-tristate.qml
deleted file mode 100644
index b6f31682..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-checkbox-tristate.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Window 2.0
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property alias english: english
- property alias norwegian: norwegian
-
- ColumnLayout {
- id: column
- anchors.centerIn: parent
-
- CheckBox {
- text: qsTr("Languages")
- checkState: english.checked && norwegian.checked
- ? Qt.Checked : (english.checked || norwegian.checked) ? Qt.PartiallyChecked : Qt.Unchecked
- tristate: true
- }
- CheckBox {
- id: english
- text: qsTr("English")
- checked: true
- leftPadding: indicator.width
- }
- CheckBox {
- id: norwegian
- text: qsTr("Norwegian")
- checked: true
- leftPadding: indicator.width
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-checkbox.qml b/tests/manual/gifs/data/qtquickcontrols2-checkbox.qml
deleted file mode 100644
index 1e1348f5..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-checkbox.qml
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Window 2.0
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property alias control2: control2
- property alias control3: control3
-
- ColumnLayout {
- id: column
- anchors.centerIn: parent
-
- CheckBox {
- checked: true
- text: qsTr("First")
- }
- CheckBox {
- id: control2
- text: qsTr("Second")
- }
- CheckBox {
- id: control3
- checked: true
- text: qsTr("Third")
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-checkdelegate-tristate.qml b/tests/manual/gifs/data/qtquickcontrols2-checkdelegate-tristate.qml
deleted file mode 100644
index 767f80dc..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-checkdelegate-tristate.qml
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Window 2.0
-
-Window {
- id: window
- width: 170
- height: column.implicitHeight
- visible: true
-
- property alias english: english
- property alias norwegian: norwegian
-
- ColumnLayout {
- id: column
- anchors.fill: parent
-
- CheckDelegate {
- text: qsTr("Languages")
- checkState: english.checked && norwegian.checked
- ? Qt.Checked : (english.checked || norwegian.checked) ? Qt.PartiallyChecked : Qt.Unchecked
- tristate: true
- Layout.fillWidth: true
- }
- CheckDelegate {
- id: english
- text: qsTr("English")
- checked: true
- leftPadding: indicator.width + 14
- Layout.fillWidth: true
- }
- CheckDelegate {
- id: norwegian
- text: qsTr("Norwegian")
- checked: true
- leftPadding: indicator.width + 14
- Layout.fillWidth: true
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-checkdelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-checkdelegate.qml
deleted file mode 100644
index d222b21f..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-checkdelegate.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property var delegate: repeater.count > 0 ? repeater.itemAt(0) : null
-
- Column {
- id: column
- anchors.centerIn: parent
-
- Repeater {
- id: repeater
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: CheckDelegate {
- text: modelData
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-combobox.qml b/tests/manual/gifs/data/qtquickcontrols2-combobox.qml
deleted file mode 100644
index bd46b54d..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-combobox.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Window 2.0
-
-Window {
- width: 140
- height: 180
- visible: true
-
- property alias comboBox: comboBox
-
- ComboBox {
- id: comboBox
- model: ["First", "Second", "Third"]
- y: 10
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-delaybutton.qml b/tests/manual/gifs/data/qtquickcontrols2-delaybutton.qml
deleted file mode 100644
index b0feddcb..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-delaybutton.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: button.width
- height: button.height
- visible: true
-
- DelayButton {
- id: button
- progress: 0.69
- text: "DelayButton"
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml
deleted file mode 100644
index 04f167a2..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-dial-no-wrap.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: dial.implicitWidth + 20
- height: dial.implicitHeight + 20
- visible: true
-
- property alias dial: dial
-
- Dial {
- id: dial
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml
deleted file mode 100644
index e00139f0..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-dial-wrap.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: dial.implicitWidth + 20
- height: dial.implicitHeight + 20
- visible: true
-
- property alias dial: dial
-
- Dial {
- id: dial
- wrap: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-drawer.qml b/tests/manual/gifs/data/qtquickcontrols2-drawer.qml
deleted file mode 100644
index 690dfdc4..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-drawer.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Window 2.0
-
-ApplicationWindow {
- id: window
- width: 300
- height: 300
- visible: true
-
- property alias drawer: drawer
-
- Drawer {
- id: drawer
- width: window.width * 0.66
- height: window.height
- rightPadding: 0
-
- Rectangle {
- border.width: 1
- anchors.fill: parent
-
- Label {
- text: "Drawer"
- font.pixelSize: 32
- anchors.centerIn: parent
- }
- }
- }
-
- Rectangle {
- border.width: 1
- anchors.fill: parent
-
- Label {
- text: "Content"
- font.pixelSize: 32
- anchors.centerIn: parent
- }
- }
-
- Rectangle {
- z: 1
- color: "black"
- width: 1
- height: parent.height
- parent: window.overlay
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-itemdelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-itemdelegate.qml
deleted file mode 100644
index b0188edb..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-itemdelegate.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property var delegate: repeater.count > 0 ? repeater.itemAt(0) : null
-
- Column {
- id: column
-
- Repeater {
- id: repeater
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: ItemDelegate {
- text: modelData
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-menu.qml b/tests/manual/gifs/data/qtquickcontrols2-menu.qml
deleted file mode 100644
index 39403e06..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-menu.qml
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-// TODO: restore and finish https://codereview.qt-project.org/#/c/123948/
-ApplicationWindow {
- width: menu.contentItem.width + 20
- height: menu.contentItem.height + fileButton.height + 20
-
- property alias fileButton: fileButton
- property alias menu: menu
-
- Button {
- id: fileButton
- text: "File"
- onClicked: menu.open()
- x: 10
- y: 10
- }
- Menu {
- id: menu
- // TODO
- contentItem.x: fileButton.x
- contentItem.y: fileButton.y + fileButton.height
-
- MenuItem {
- text: "New..."
- }
- MenuItem {
- text: "Open..."
- }
- MenuItem {
- text: "Save"
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-progressbar-indeterminate.qml b/tests/manual/gifs/data/qtquickcontrols2-progressbar-indeterminate.qml
deleted file mode 100644
index 6d2c50b2..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-progressbar-indeterminate.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: progressBar.implicitWidth
- height: 64
- visible: true
-
- property alias progressBar: progressBar
-
- ProgressBar {
- id: progressBar
- indeterminate: true
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-progressbar.qml b/tests/manual/gifs/data/qtquickcontrols2-progressbar.qml
deleted file mode 100644
index a8f751ce..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-progressbar.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: progressBar.implicitWidth
- height: 64
- visible: true
-
- property alias progressBar: progressBar
-
- ProgressBar {
- id: progressBar
- value: 0.5
- anchors.centerIn: parent
-
- Timer {
- running: true
- interval: 500
- onTriggered: animation.start()
- }
-
- NumberAnimation {
- id: animation
- target: progressBar
- property: "value"
- to: 1
- duration: 2000
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-radiobutton.qml b/tests/manual/gifs/data/qtquickcontrols2-radiobutton.qml
deleted file mode 100644
index 1e640ced..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-radiobutton.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Window 2.0
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property alias control1: control1
- property alias control2: control2
- property alias control3: control3
-
- ColumnLayout {
- id: column
- anchors.centerIn: parent
-
- RadioButton {
- id: control1
- text: qsTr("First")
- checked: true
- }
- RadioButton {
- id: control2
- text: qsTr("Second")
- }
- RadioButton {
- id: control3
- text: qsTr("Third")
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-radiodelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-radiodelegate.qml
deleted file mode 100644
index eaa1ff7a..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-radiodelegate.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property var delegate: repeater.count > 0 ? repeater.itemAt(0) : null
-
- ButtonGroup {
- id: buttonGroup
- }
-
- Column {
- id: column
- anchors.centerIn: parent
-
- Repeater {
- id: repeater
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: RadioDelegate {
- checked: index == 0
- text: modelData
- ButtonGroup.group: buttonGroup
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-rangeslider.qml b/tests/manual/gifs/data/qtquickcontrols2-rangeslider.qml
deleted file mode 100644
index b30711b4..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-rangeslider.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: slider.implicitWidth
- height: slider.implicitHeight
- visible: true
-
- property alias slider: slider
-
- RangeSlider {
- id: slider
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-scrollbar-snap.qml b/tests/manual/gifs/data/qtquickcontrols2-scrollbar-snap.qml
deleted file mode 100644
index 27b6b280..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-scrollbar-snap.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: 100
- maximumHeight: 20
- visible: true
-
- property alias scrollbar: scrollbar
-
- ScrollBar {
- id: scrollbar
- size: 0.2
- stepSize: 0.25
- active: true
- width: parent.width
- anchors.centerIn: parent
- orientation: Qt.Horizontal
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-scrollbar.qml b/tests/manual/gifs/data/qtquickcontrols2-scrollbar.qml
deleted file mode 100644
index 573c408b..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-scrollbar.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: 100
- height: 120
- visible: true
- color: "#eeeeee"
-
- property alias scrollBar: scrollBar
-
- ListView {
- anchors.fill: parent
-
- ScrollBar.vertical: ScrollBar {
- id: scrollBar
- active: true
- }
-
- model: 10
- delegate: Label {
- text: qsTr("Item %1").arg(index + 1)
- width: 100
- height: 40
- leftPadding: 10
- verticalAlignment: Text.AlignVCenter
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-scrollindicator.qml b/tests/manual/gifs/data/qtquickcontrols2-scrollindicator.qml
deleted file mode 100644
index 1cdd1b61..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-scrollindicator.qml
+++ /dev/null
@@ -1,77 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: 100
- height: 120
- visible: true
- color: "#eeeeee"
-
- ListView {
- anchors.fill: parent
-
- ScrollIndicator.vertical: ScrollIndicator {
- active: true
- }
-
- model: 10
- delegate: Label {
- text: qsTr("Item %1").arg(index + 1)
- width: 100
- height: 40
- leftPadding: 10
- verticalAlignment: Text.AlignVCenter
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-slider-snap.qml b/tests/manual/gifs/data/qtquickcontrols2-slider-snap.qml
deleted file mode 100644
index ff7dd780..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-slider-snap.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: slider.implicitWidth
- height: slider.implicitHeight
- visible: true
-
- property alias slider: slider
-
- Slider {
- id: slider
- stepSize: 0.2
- anchors.centerIn: parent
-
- Rectangle {
- anchors.fill: slider.handle
- radius: width / 2
- color: slider.pressed ? "#aa666666" : "transparent"
- }
-
- contentItem: Item {
- Repeater {
- id: repeater
- model: 6
-
- Rectangle {
- x: ((slider.contentItem.width - slider.handle.width) * (index / (repeater.count - 1)))
- - width / 2 + slider.handle.width / 2
- y: parent.height
- width: 1
- height: 4
- color: "#888"
- }
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-slider.qml b/tests/manual/gifs/data/qtquickcontrols2-slider.qml
deleted file mode 100644
index 689e50f2..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-slider.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: slider.implicitWidth
- height: slider.implicitHeight
- visible: true
-
- property alias slider: slider
-
- Slider {
- id: slider
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-stackview-pop.qml b/tests/manual/gifs/data/qtquickcontrols2-stackview-pop.qml
deleted file mode 100644
index 9c3ad1f1..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-stackview-pop.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 160
- height: 160
- visible: true
- color: "#eeeeee"
-
- property int maxDepth: 3
-
- function itemText(index) {
- return String.fromCharCode(65 + index);
- }
-
- Component {
- id: labelComponent
-
- Label {
- font.pixelSize: 60
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
-
- Component.onCompleted: {
- for (var i = 0; i < maxDepth; ++i) {
- stackView.push(labelComponent, { text: itemText(i) }, StackView.Immediate);
- }
- }
- }
-
- Label {
- id: operationLabel
- text: "pop()"
- font.pixelSize: 16
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.margins: 10
- }
-
- Timer {
- id: operationTimer
- running: true
- interval: 1500
- onTriggered: {
- stackView.pop();
- hideOperationTimer.start();
- }
- }
-
- Timer {
- id: hideOperationTimer
- interval: operationTimer.interval
- onTriggered: operationLabel.visible = false
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-stackview-push.qml b/tests/manual/gifs/data/qtquickcontrols2-stackview-push.qml
deleted file mode 100644
index cf3e8c3c..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-stackview-push.qml
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 160
- height: 160
- visible: true
- color: "#eeeeee"
-
- property int itemIndex: 0
- property int maxDepth: 3
-
- function itemText(index) {
- return String.fromCharCode(65 + index);
- }
-
- Component {
- id: labelComponent
-
- Label {
- font.pixelSize: 60
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
- }
-
- Label {
- id: operationLabel
- text: "push(" + itemText(Math.max(0, Math.min(maxDepth - 1, itemIndex - 1))) + ")"
- font.pixelSize: 16
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.margins: 10
- }
-
- Timer {
- id: operationTimer
- running: true
- interval: 1500
- repeat: stackView.depth < maxDepth - 1
- onRepeatChanged: if (!repeat) hideOperationTimer.start()
-
- onTriggered: stackView.push(labelComponent, { text: itemText(itemIndex++) })
- }
-
- Timer {
- id: hideOperationTimer
- interval: operationTimer.interval * 2
- onTriggered: operationLabel.visible = false
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-stackview-replace.qml b/tests/manual/gifs/data/qtquickcontrols2-stackview-replace.qml
deleted file mode 100644
index 2c68a3cb..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-stackview-replace.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 160
- height: 160
- visible: true
- color: "#eeeeee"
-
- property int maxDepth: 3
-
- function itemText(index) {
- return String.fromCharCode(65 + index);
- }
-
- Component {
- id: labelComponent
-
- Label {
- font.pixelSize: 60
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
-
- Component.onCompleted: {
- for (var i = 0; i < maxDepth; ++i) {
- stackView.push(labelComponent, { text: itemText(i) }, StackView.Immediate);
- }
- }
- }
-
- Label {
- id: operationLabel
- text: "replace(D)"
- font.pixelSize: 16
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.margins: 10
- }
-
- Timer {
- id: operationTimer
- running: true
- interval: 1500
- onTriggered: {
- stackView.replace(labelComponent, { text: "D" });
- hideOperationTimer.start();
- }
- }
-
- Timer {
- id: hideOperationTimer
- interval: operationTimer.interval
- onTriggered: operationLabel.visible = false
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-stackview-unwind.qml b/tests/manual/gifs/data/qtquickcontrols2-stackview-unwind.qml
deleted file mode 100644
index afb1f242..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-stackview-unwind.qml
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- width: 160
- height: 160
- visible: true
- color: "#eeeeee"
-
- property int maxDepth: 3
-
- function itemText(index) {
- return String.fromCharCode(65 + index);
- }
-
- Component {
- id: labelComponent
-
- Label {
- font.pixelSize: 60
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- StackView {
- id: stackView
- anchors.fill: parent
-
- Component.onCompleted: {
- for (var i = 0; i < maxDepth; ++i) {
- stackView.push(labelComponent, { text: itemText(i) }, StackView.Immediate);
- }
- }
- }
-
- Label {
- id: operationLabel
- text: "pop(null)"
- font.pixelSize: 16
- anchors.bottom: parent.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- anchors.margins: 10
- }
-
- Timer {
- id: operationTimer
- running: true
- interval: 1500
- onTriggered: {
- stackView.pop(null);
- hideOperationTimer.start();
- }
- }
-
- Timer {
- id: hideOperationTimer
- interval: operationTimer.interval
- onTriggered: operationLabel.visible = false
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-behind.qml b/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-behind.qml
deleted file mode 100644
index 6025b62b..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-behind.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: swipeDelegate.implicitWidth
- height: swipeDelegate.implicitHeight
- visible: true
-
- property alias swipeDelegate: swipeDelegate
-
- SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- anchors.centerIn: parent
-
- swipe.left: null
- swipe.right: null
- swipe.behind: Rectangle {
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
-
- Label {
- text: "Behind Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-leading-trailing.qml b/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-leading-trailing.qml
deleted file mode 100644
index da9d0fb5..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate-leading-trailing.qml
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: swipeDelegate.implicitWidth
- height: swipeDelegate.implicitHeight
- visible: true
-
- property alias swipeDelegate: swipeDelegate
-
- SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- anchors.centerIn: parent
-
- swipe.left: Rectangle {
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
- anchors.right: parent.left
-
- Label {
- text: "Left Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
-
- swipe.right: Rectangle {
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
- anchors.left: parent.right
-
- Label {
- text: "Right Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-swipedelegate.qml
deleted file mode 100644
index 745432cb..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-swipedelegate.qml
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: swipeDelegate.implicitWidth
- height: swipeDelegate.implicitHeight
- visible: true
-
- property alias swipeDelegate: swipeDelegate
-
- SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- anchors.centerIn: parent
-
- swipe.left: Rectangle {
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
-
- Label {
- text: "Left Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
-
- swipe.right: Rectangle {
- anchors.fill: parent
- width: swipeDelegate.width
- height: swipeDelegate.height
- color: swipeDelegate.pressed ? "#333" : "#444"
-
- Label {
- text: "Right Action"
- color: "#fff"
- anchors.centerIn: parent
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-swipeview.qml b/tests/manual/gifs/data/qtquickcontrols2-swipeview.qml
deleted file mode 100644
index d7d8829a..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-swipeview.qml
+++ /dev/null
@@ -1,99 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: 300
- height: 300
- visible: true
-
- property alias swipeView: view
-
- Rectangle {
- border.width: 1
- anchors.fill: parent
- }
-
- SwipeView {
- id: view
- anchors.fill: parent
-
- Label {
- text: "First\nPage"
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- }
-
- Label {
- text: "Second\nPage"
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- }
-
- Label {
- text: "Third\nPage"
- horizontalAlignment: Qt.AlignHCenter
- verticalAlignment: Qt.AlignVCenter
- }
- }
-
- PageIndicator {
- id: indicator
-
- count: view.count
- currentIndex: view.currentIndex
-
- anchors.bottom: view.bottom
- anchors.horizontalCenter: parent.horizontalCenter
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-switch.qml b/tests/manual/gifs/data/qtquickcontrols2-switch.qml
deleted file mode 100644
index 7e98d9db..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-switch.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: 100
- height: 50
- visible: true
-
- Switch {
- id: theSwitch
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-switchdelegate.qml b/tests/manual/gifs/data/qtquickcontrols2-switchdelegate.qml
deleted file mode 100644
index 2a70e484..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-switchdelegate.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: column.implicitWidth
- height: column.implicitHeight
- visible: true
-
- property var delegate: repeater.count > 0 ? repeater.itemAt(0) : null
-
- Column {
- id: column
- anchors.centerIn: parent
-
- Repeater {
- id: repeater
- model: ["Option 1", "Option 2", "Option 3"]
- delegate: SwitchDelegate {
- text: modelData
- }
- }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-tabbar.qml b/tests/manual/gifs/data/qtquickcontrols2-tabbar.qml
deleted file mode 100644
index e01c7665..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-tabbar.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.0
-import QtQuick.Controls 2.12
-
-Window {
- width: 300
- height: tabBar.height
- visible: true
-
- TabBar {
- id: tabBar
- width: parent.width
-
- TabButton { text: qsTr("Home") }
- TabButton { text: qsTr("Discover") }
- TabButton { text: qsTr("Activity") }
- }
-}
diff --git a/tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml b/tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml
deleted file mode 100644
index 77d17f11..00000000
--- a/tests/manual/gifs/data/qtquickcontrols2-tumbler-wrap.qml
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.2
-import QtQuick.Controls 2.12
-
-Window {
- width: frame.implicitWidth + 10
- height: frame.implicitHeight + 10
- visible: true
-
- function formatText(count, modelData) {
- var data = count === 12 ? modelData + 1 : modelData;
- return data.toString().length < 2 ? "0" + data : data;
- }
-
- Component {
- id: delegateComponent
-
- Label {
- text: formatText(Tumbler.tumbler.count, modelData)
- opacity: 1.0 - Math.abs(Tumbler.displacement) / (Tumbler.tumbler.visibleItemCount / 2)
- horizontalAlignment: Text.AlignHCenter
- verticalAlignment: Text.AlignVCenter
- }
- }
-
- Frame {
- id: frame
- padding: 0
- anchors.centerIn: parent
-
- Row {
- id: row
-
- Tumbler {
- id: hoursTumbler
- model: 12
- delegate: delegateComponent
- }
-
- Tumbler {
- id: minutesTumbler
- model: 60
- delegate: delegateComponent
- }
-
- Tumbler {
- id: amPmTumbler
- wrap: false
- model: ["AM", "PM"]
- delegate: delegateComponent
- }
- }
- }
-}
diff --git a/tests/manual/gifs/eventcapturer.cpp b/tests/manual/gifs/eventcapturer.cpp
deleted file mode 100644
index b3bbd7c8..00000000
--- a/tests/manual/gifs/eventcapturer.cpp
+++ /dev/null
@@ -1,236 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 "eventcapturer.h"
-
-#include <QDebug>
-#include <QMetaEnum>
-#include <QMouseEvent>
-#include <QTimer>
-
-/*!
- Installs an event filter on a particular object to record specific events
- that can be retrieved as C++ source code.
-
- For example:
-
- \code
- EventCapturer eventCapturer;
-
- view.show();
-
- eventCapturer.startCapturing(&view, 5000);
-
- // interact with the view here, in order for the events to be captured
-
- qDebug() << "\n";
- const auto capturedEvents = eventCapturer.capturedEvents();
- for (CapturedEvent event : capturedEvents)
- qDebug().noquote() << event.cppCommand();
- \endcode
-
- It is recommended to set the \c Qt::FramelessWindowHint flag on the view
- (this code has not been tested under other usage):
-
- view.setFlags(view.flags() | Qt::FramelessWindowHint);
-*/
-
-EventCapturer::EventCapturer(QObject *parent) :
- QObject(parent),
- mEventSource(nullptr),
- mStopCaptureKey(Qt::Key_Escape),
- mMoveEventTrimFlags(TrimNone),
- mDuration(0),
- mLastCaptureTime(0)
-{
- mCapturedEventTypes << QEvent::MouseButtonPress << QEvent::MouseButtonRelease << QEvent::MouseButtonDblClick << QEvent::MouseMove;
-}
-
-void EventCapturer::startCapturing(QObject *eventSource, int duration)
-{
- mEventSource = eventSource;
-
- if (!mEventSource)
- return;
-
- mEventSource->installEventFilter(this);
- mDelayTimer.start();
- mDuration = duration;
- mLastCaptureTime = 0;
-
- QTimer::singleShot(mDuration, this, SLOT(stopCapturing()));
-}
-
-void EventCapturer::setStopCaptureKey(Qt::Key stopCaptureKey)
-{
- mStopCaptureKey = stopCaptureKey;
-}
-
-/*!
- Move events generate a lot of clutter, and for most cases they're not
- necessary. Here's a list of scenarios where various trim flags make sense:
-
- Scenario Flags
-
- Record the mouse cursor TrimNone
- Record mouseover/hover effects TrimNone
- Dragging/flicking TrimAll
-*/
-void EventCapturer::setMoveEventTrimFlags(MoveEventTrimFlags trimFlags)
-{
- mMoveEventTrimFlags = trimFlags;
-}
-
-QSet<QEvent::Type> EventCapturer::capturedEventTypes()
-{
- return mCapturedEventTypes;
-}
-
-void EventCapturer::setCapturedEventTypes(QSet<QEvent::Type> types)
-{
- mCapturedEventTypes = types;
-}
-
-QVector<CapturedEvent> EventCapturer::capturedEvents() const
-{
- if (mMoveEventTrimFlags == TrimNone || mEvents.isEmpty())
- return mEvents;
-
- // We can't easily trim "trailing" move events as they come in without
- // storing them in some form, so we just do it all here.
-
- int firstEventIndex = 0;
- int lastEventIndex = mEvents.size() - 1;
- // The accumulated delay of all of the move events that we remove.
- // We keep this in order to maintain the correct timing between events.
- int accumulatedDelay = 0;
-
- bool encounteredNonMoveEvent = false;
- if (mMoveEventTrimFlags.testFlag(TrimLeading)) {
- for (int eventIndex = 0; !encounteredNonMoveEvent && eventIndex < mEvents.size(); ++eventIndex) {
- const CapturedEvent event = mEvents.at(eventIndex);
- if (event.type() != QEvent::MouseMove) {
- encounteredNonMoveEvent = true;
- firstEventIndex = eventIndex;
- } else {
- accumulatedDelay += event.delay();
- }
- }
- }
-
- if (mMoveEventTrimFlags.testFlag(TrimTrailing)) {
- encounteredNonMoveEvent = false;
- for (int eventIndex = mEvents.size() - 1; !encounteredNonMoveEvent && eventIndex >= 0; --eventIndex) {
- const CapturedEvent event = mEvents.at(eventIndex);
- if (event.type() != QEvent::MouseMove) {
- encounteredNonMoveEvent = true;
- lastEventIndex = eventIndex;
- // Don't need to bother with delays for trailing mouse moves, as there is nothing after them.
- }
- }
- }
-
- // Before we go any further, we need to copy the subset of commands while
- // the indices are still valid - we could be removing from the middle of
- // the commands next. Also, the function is const, so we can't remove from
- // mEvents anyway. :)
- QVector<CapturedEvent> events = mEvents.mid(firstEventIndex, (lastEventIndex - firstEventIndex) + 1);
-
- if (mMoveEventTrimFlags.testFlag(TrimAfterReleases)) {
- bool lastNonMoveEventWasRelease = false;
- for (int eventIndex = 0; eventIndex < events.size(); ) {
- CapturedEvent &event = events[eventIndex];
- if (event.type() == QEvent::MouseMove && lastNonMoveEventWasRelease) {
- accumulatedDelay += event.delay();
- events.remove(eventIndex);
- } else {
- lastNonMoveEventWasRelease = event.type() == QEvent::MouseButtonRelease;
- if (event.type() == QEvent::MouseButtonPress) {
- event.setDelay(event.delay() + accumulatedDelay);
- accumulatedDelay = 0;
- }
- ++eventIndex;
- }
- }
- }
-
- return events;
-}
-
-bool EventCapturer::eventFilter(QObject *object, QEvent *event)
-{
- if (event->type() == QEvent::KeyPress && static_cast<QKeyEvent*>(event)->key() == mStopCaptureKey) {
- stopCapturing();
- return true;
- }
-
- if (object != mEventSource)
- return false;
-
- if (!mCapturedEventTypes.contains(event->type()))
- return false;
-
- if (event->type() == QEvent::MouseButtonPress) {
- captureEvent(event);
- } else if (event->type() == QEvent::MouseButtonRelease) {
- captureEvent(event);
- } else if (event->type() == QEvent::MouseButtonDblClick) {
- captureEvent(event);
- } else if (event->type() == QEvent::MouseMove) {
- captureEvent(event);
- } else {
- qWarning() << "No support for event type" << QMetaEnum::fromType<QEvent::Type>().valueToKey(event->type());
- }
- return false;
-}
-
-void EventCapturer::stopCapturing()
-{
- if (mEventSource) {
- mEventSource->removeEventFilter(this);
- mEventSource = 0;
- mDuration = 0;
- mLastCaptureTime = 0;
- }
-}
-
-void EventCapturer::captureEvent(const QEvent *event)
-{
- qDebug() << "captured" << event->type();
- CapturedEvent capturedEvent(*event, mDelayTimer.elapsed() - mLastCaptureTime);
- mEvents.append(capturedEvent);
- mLastCaptureTime = mDelayTimer.elapsed();
-}
diff --git a/tests/manual/gifs/eventcapturer.h b/tests/manual/gifs/eventcapturer.h
deleted file mode 100644
index e2b8b3a4..00000000
--- a/tests/manual/gifs/eventcapturer.h
+++ /dev/null
@@ -1,97 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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$
-**
-****************************************************************************/
-
-#ifndef EVENTCAPTURER_H
-#define EVENTCAPTURER_H
-
-#include <QObject>
-#include <QElapsedTimer>
-#include <QEvent>
-#include <QPoint>
-#include <QSet>
-#include <QVector>
-
-#include "capturedevent.h"
-
-class EventCapturer : public QObject
-{
- Q_OBJECT
-
-public:
- EventCapturer(QObject *parent = 0);
-
- enum MoveEventTrimFlag
- {
- TrimNone = 0x0,
- TrimLeading = 0x1,
- TrimTrailing = 0x2,
- TrimAfterReleases = 0x4,
- TrimAll = TrimLeading | TrimTrailing | TrimAfterReleases
- };
-
- Q_DECLARE_FLAGS(MoveEventTrimFlags, MoveEventTrimFlag)
-
- void setStopCaptureKey(Qt::Key stopCaptureKey);
- void setMoveEventTrimFlags(MoveEventTrimFlags trimFlags);
-
- void startCapturing(QObject *eventSource, int duration);
-
- QSet<QEvent::Type> capturedEventTypes();
- void setCapturedEventTypes(QSet<QEvent::Type> types);
-
- QVector<CapturedEvent> capturedEvents() const;
-protected:
- bool eventFilter(QObject *object, QEvent *event) override;
-
-private slots:
- void stopCapturing();
-
-private:
- void captureEvent(const QEvent *event);
-
- QObject *mEventSource;
- QSet<QEvent::Type> mCapturedEventTypes;
- Qt::Key mStopCaptureKey;
- MoveEventTrimFlags mMoveEventTrimFlags;
- QElapsedTimer mDelayTimer;
- QVector<CapturedEvent> mEvents;
- int mDuration;
- int mLastCaptureTime;
-};
-
-Q_DECLARE_OPERATORS_FOR_FLAGS(EventCapturer::MoveEventTrimFlags)
-
-#endif // EVENTCAPTURER_H
diff --git a/tests/manual/gifs/gifrecorder.cpp b/tests/manual/gifs/gifrecorder.cpp
deleted file mode 100644
index a7a5b9d6..00000000
--- a/tests/manual/gifs/gifrecorder.cpp
+++ /dev/null
@@ -1,327 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 "gifrecorder.h"
-
-#include <QLoggingCategory>
-#include <QQmlComponent>
-#include <QQuickItem>
-#include <QtTest>
-
-/*!
- QProcess wrapper around byzanz-record (sudo apt-get install byzanz).
-
- \note The following programs must be installed if \c setHighQuality(true)
- is called:
-
- \li \e ffmpeg (sudo apt-get install ffmpeg)
- \li \e convert (sudo apt-get install imagemagick)
- \li \e gifsicle (sudo apt-get install gifsicle)
-
- It is recommended to set the \c Qt::FramelessWindowHint flag on the view
- (this code has not been tested under other usage):
-
- view.setFlags(view.flags() | Qt::FramelessWindowHint);
-*/
-
-Q_LOGGING_CATEGORY(lcGifRecorder, "qt.gifrecorder")
-
-namespace {
- static const char *byzanzProcessName = "byzanz-record";
-}
-
-GifRecorder::GifRecorder() :
- QObject(nullptr),
- mWindow(nullptr),
- mHighQuality(false),
- mRecordingDuration(0),
- mRecordCursor(false),
- mByzanzProcessFinished(false)
-{
- if (lcGifRecorder().isDebugEnabled()) {
- // Ensures output from the process goes directly into the console.
- mByzanzProcess.setProcessChannelMode(QProcess::ForwardedChannels);
- }
-
- connect(&mByzanzProcess, SIGNAL(errorOccurred(QProcess::ProcessError)), this, SLOT(onByzanzError()));
- connect(&mByzanzProcess, SIGNAL(finished(int)), this, SLOT(onByzanzFinished()));
-}
-
-void GifRecorder::setRecordingDuration(int duration)
-{
- QVERIFY2(duration >= 1, qPrintable(QString::fromLatin1("Recording duration %1 must be larger than 1 second").arg(duration)));
- QVERIFY2(duration < 20, qPrintable(QString::fromLatin1("Recording duration %1 must be less than 20 seconds").arg(duration)));
-
- mRecordingDuration = duration;
-}
-
-void GifRecorder::setRecordCursor(bool recordCursor)
-{
- mRecordCursor = recordCursor;
-}
-
-void GifRecorder::setDataDirPath(const QString &path)
-{
- QVERIFY2(!path.isEmpty(), "Data directory path cannot be empty");
- mDataDirPath = path;
-}
-
-void GifRecorder::setOutputDir(const QDir &dir)
-{
- QVERIFY2(dir.exists(), "Output directory must exist");
- mOutputDir = dir;
-}
-
-void GifRecorder::setOutputFileBaseName(const QString &fileBaseName)
-{
- mOutputFileBaseName = fileBaseName;
-}
-
-void GifRecorder::setQmlFileName(const QString &fileName)
-{
- QVERIFY2(!fileName.isEmpty(), "QML file name cannot be empty");
- mQmlInputFileName = fileName;
-}
-
-void GifRecorder::setView(QQuickWindow *view)
-{
- this->mWindow = view;
-}
-
-/*!
- If \a highQuality is \c true, records as .flv (lossless) and then converts
- to .gif in order to retain more color information, at the expense of a
- larger file size. Otherwise, records directly to .gif using a limited
- amount of colors, resulting in a smaller file size.
-
- Set this to \c true if any of the items have transparency, for example.
-
- The default value is \c false.
-*/
-void GifRecorder::setHighQuality(bool highQuality)
-{
- mHighQuality = highQuality;
-}
-
-QQuickWindow *GifRecorder::window() const
-{
- return mWindow;
-}
-
-namespace {
- struct ProcessWaitResult {
- bool success;
- QString errorMessage;
- };
-
- ProcessWaitResult waitForProcessToStart(QProcess &process, const QString &processName, const QString &args)
- {
- qCDebug(lcGifRecorder) << "Starting" << processName << "with the following arguments:" << args;
- const QString command = processName + QLatin1Char(' ') + args;
- process.start(command);
- if (!process.waitForStarted(1000)) {
- QString errorMessage = QString::fromLatin1("Could not launch %1 with the following arguments: %2\nError:\n%3");
- errorMessage = errorMessage.arg(processName).arg(args).arg(process.errorString());
- return { false, errorMessage };
- }
-
- qCDebug(lcGifRecorder) << "Successfully started" << processName;
- return { true, QString() };
- }
-
- ProcessWaitResult waitForProcessToFinish(QProcess &process, const QString &processName, int waitDuration)
- {
- if (!process.waitForFinished(waitDuration) || process.exitCode() != 0) {
- QString errorMessage = QString::fromLatin1("\"%1\" failed to finish (exit code %2): %3");
- errorMessage = errorMessage.arg(processName).arg(process.exitCode()).arg(process.errorString());
- return { false, errorMessage };
- }
-
- qCDebug(lcGifRecorder) << processName << "finished";
- return { true, QString() };
- }
-}
-
-void GifRecorder::start()
-{
- QDir gifQmlDir(mDataDirPath);
- QVERIFY(gifQmlDir.entryList().contains(mQmlInputFileName));
-
- const QString qmlPath = gifQmlDir.absoluteFilePath(mQmlInputFileName);
- mEngine.load(QUrl::fromLocalFile(qmlPath));
- mWindow = qobject_cast<QQuickWindow*>(mEngine.rootObjects().first());
- QVERIFY2(mWindow, "Top level item must be a window");
-
- mWindow->setFlags(mWindow->flags() | Qt::FramelessWindowHint);
-
- mWindow->show();
- mWindow->requestActivate();
- QVERIFY(QTest::qWaitForWindowActive(mWindow, 500));
- QVERIFY(QTest::qWaitForWindowExposed(mWindow, 500));
- // For some reason, whatever is behind the window is sometimes
- // in the recording, so add this delay to be extra sure that it isn't.
- QTest::qWait(200);
-
- if (mOutputFileBaseName.isEmpty()) {
- mOutputFileBaseName = mOutputDir.absoluteFilePath(mQmlInputFileName);
- mOutputFileBaseName.replace(".qml", "");
- }
-
- mByzanzOutputFileName = mOutputDir.absoluteFilePath(mOutputFileBaseName);
- if (mHighQuality) {
- mByzanzOutputFileName.append(QLatin1String(".flv"));
- mGifFileName = mByzanzOutputFileName;
- mGifFileName.replace(QLatin1String(".flv"), QLatin1String(".gif"));
- } else {
- mByzanzOutputFileName.append(QLatin1String(".gif"));
- }
-
- const QPoint globalWindowPos = mWindow->mapToGlobal(QPoint(0, 0));
- QString args = QLatin1String("-d %1 -v %2 -x %3 -y %4 -w %5 -h %6 %7");
- args = args.arg(QString::number(mRecordingDuration))
- .arg(mRecordCursor ? QStringLiteral("-c") : QString())
- .arg(QString::number(globalWindowPos.x()))
- .arg(QString::number(globalWindowPos.y()))
- .arg(QString::number(mWindow->width()))
- .arg(QString::number(mWindow->height()))
- .arg(mByzanzOutputFileName);
-
-
- // https://bugs.launchpad.net/ubuntu/+source/byzanz/+bug/1483581
- // It seems that byzanz-record will cut a recording short if there are no
- // screen repaints, no matter what format it outputs. This can be tested
- // manually from the command line by recording any section of the screen
- // without moving the mouse and then running avprobe on the resulting .flv.
- // Our workaround is to force view updates.
- connect(&mEventTimer, SIGNAL(timeout()), mWindow, SLOT(update()));
- mEventTimer.start(100);
-
- const ProcessWaitResult result = waitForProcessToStart(mByzanzProcess, byzanzProcessName, args);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-}
-
-void GifRecorder::waitForFinish()
-{
- // Give it an extra couple of seconds on top of its recording duration.
- const int recordingDurationMs = mRecordingDuration * 1000;
- const int waitDuration = recordingDurationMs + 2000;
- QTRY_VERIFY_WITH_TIMEOUT(mByzanzProcessFinished, waitDuration);
-
- mEventTimer.stop();
-
- if (!QFileInfo::exists(mByzanzOutputFileName)) {
- const QString message = QString::fromLatin1(
- "The process said it finished successfully, but %1 was not generated.").arg(mByzanzOutputFileName);
- QFAIL(qPrintable(message));
- }
-
- if (mHighQuality) {
- // Indicate the end of recording and the beginning of conversion.
- QQmlComponent busyComponent(&mEngine);
- busyComponent.setData("import QtQuick 2.6; import QtQuick.Controls 2.1; Rectangle { anchors.fill: parent; " \
- "BusyIndicator { width: 32; height: 32; anchors.centerIn: parent } }", QUrl());
- QCOMPARE(busyComponent.status(), QQmlComponent::Ready);
- QQuickItem *busyRect = qobject_cast<QQuickItem*>(busyComponent.create());
- QVERIFY(busyRect);
- busyRect->setParentItem(mWindow->contentItem());
- QSignalSpy spy(mWindow, SIGNAL(frameSwapped()));
- QVERIFY(spy.wait());
-
- // Start ffmpeg and send its output to imagemagick's convert command.
- // Based on the example in the documentation for QProcess::setStandardOutputProcess().
- QProcess ffmpegProcess;
- QProcess convertProcess;
- ffmpegProcess.setStandardOutputProcess(&convertProcess);
-
- const QString ffmpegProcessName = QStringLiteral("ffmpeg");
- const QString ffmpegArgs = QString::fromLatin1("-i %1 -r 20 -f image2pipe -vcodec ppm -").arg(mByzanzOutputFileName);
- ProcessWaitResult result = waitForProcessToStart(ffmpegProcess, ffmpegProcessName, ffmpegArgs);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-
- const QString convertProcessName = QStringLiteral("convert");
- const QString convertArgs = QString::fromLatin1("-delay 5 -loop 0 - %1").arg(mGifFileName);
-
- result = waitForProcessToStart(convertProcess, convertProcessName, convertArgs);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-
- result = waitForProcessToFinish(ffmpegProcess, ffmpegProcessName, waitDuration);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
- // Conversion can take a bit longer, so double the wait time.
- result = waitForProcessToFinish(convertProcess, convertProcessName, waitDuration * 2);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-
- const QString gifsicleProcessName = QStringLiteral("gifsicle");
- const QString verbose = lcGifRecorder().isDebugEnabled() ? QStringLiteral("-V") : QString();
-
- // --colors 256 stops the warning about local color tables being used, and results in smaller files,
- // but it seems to affect the duration of the GIF (checked with exiftool), so we don't use it.
- // For example, the slider GIF has the following attributes with and without the option:
- // With Without
- // Frame Count 57 61
- // Duration 2.85 seconds 3.05 seconds
- // File size 11 kB 13 kB
- const QString gifsicleArgs = QString::fromLatin1("%1 -b -O %2").arg(verbose).arg(mGifFileName);
- QProcess gifsicleProcess;
- if (lcGifRecorder().isDebugEnabled())
- gifsicleProcess.setProcessChannelMode(QProcess::ForwardedChannels);
- result = waitForProcessToStart(gifsicleProcess, gifsicleProcessName, gifsicleArgs);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
- result = waitForProcessToFinish(gifsicleProcess, gifsicleProcessName, waitDuration);
- if (!result.success)
- QFAIL(qPrintable(result.errorMessage));
-
- if (QFile::exists(mByzanzOutputFileName))
- QVERIFY(QFile::remove(mByzanzOutputFileName));
- }
-}
-
-void GifRecorder::onByzanzError()
-{
- const QString message = QString::fromLatin1("%1 failed to finish: %2");
- QFAIL(qPrintable(message.arg(byzanzProcessName).arg(mByzanzProcess.errorString())));
-}
-
-void GifRecorder::onByzanzFinished()
-{
- qCDebug(lcGifRecorder) << byzanzProcessName << "finished";
- mByzanzProcessFinished = true;
-}
diff --git a/tests/manual/gifs/gifrecorder.h b/tests/manual/gifs/gifrecorder.h
deleted file mode 100644
index 30d06b11..00000000
--- a/tests/manual/gifs/gifrecorder.h
+++ /dev/null
@@ -1,92 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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$
-**
-****************************************************************************/
-
-#ifndef GIFRECORDER_H
-#define GIFRECORDER_H
-
-#include <QObject>
-#include <QProcess>
-#include <QQmlApplicationEngine>
-#include <QQuickWindow>
-#include <QDir>
-#include <QString>
-#include <QTimer>
-
-class GifRecorder : public QObject
-{
- Q_OBJECT
-
-public:
- GifRecorder();
-
- void setRecordingDuration(int duration);
- void setRecordCursor(bool recordCursor);
- void setDataDirPath(const QString &path);
- void setOutputDir(const QDir &dir);
- void setOutputFileBaseName(const QString &fileBaseName);
- void setQmlFileName(const QString &fileName);
- void setView(QQuickWindow *mWindow);
- void setHighQuality(bool highQuality);
-
- QQuickWindow *window() const;
-
- void start();
- bool hasStarted() const;
- void waitForFinish();
-
-private slots:
- void onByzanzError();
- void onByzanzFinished();
-
-private:
- QString mDataDirPath;
- QDir mOutputDir;
- QString mOutputFileBaseName;
- QString mByzanzOutputFileName;
- QString mGifFileName;
- QString mQmlInputFileName;
- QQmlApplicationEngine mEngine;
- QQuickWindow *mWindow;
- bool mHighQuality;
- int mRecordingDuration;
- bool mRecordCursor;
-
- QProcess mByzanzProcess;
- bool mByzanzProcessFinished;
- QTimer mEventTimer;
-};
-
-#endif // GIFRECORDER_H
diff --git a/tests/manual/gifs/gifs.pro b/tests/manual/gifs/gifs.pro
deleted file mode 100644
index a5bb72c7..00000000
--- a/tests/manual/gifs/gifs.pro
+++ /dev/null
@@ -1,20 +0,0 @@
-TEMPLATE = app
-TARGET = tst_gifs
-
-QT += quick testlib
-CONFIG += testcase
-macos:CONFIG -= app_bundle
-
-HEADERS += \
- $$PWD/gifrecorder.h \
- $$PWD/eventcapturer.h \
- capturedevent.h
-
-SOURCES += \
- $$PWD/tst_gifs.cpp \
- $$PWD/gifrecorder.cpp \
- $$PWD/eventcapturer.cpp \
- capturedevent.cpp
-
-TESTDATA += \
- $$PWD/data/*
diff --git a/tests/manual/gifs/tst_gifs.cpp b/tests/manual/gifs/tst_gifs.cpp
deleted file mode 100644
index d7d8f98d..00000000
--- a/tests/manual/gifs/tst_gifs.cpp
+++ /dev/null
@@ -1,1052 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QtTest>
-#include <QtQuick>
-
-#include "gifrecorder.h"
-#include "eventcapturer.h"
-
-//#define GENERATE_EVENT_CODE
-
-class tst_Gifs : public QObject
-{
- Q_OBJECT
-
-private slots:
- void initTestCase();
-
- void tumblerWrap();
- void slider();
- void sliderSnap_data();
- void sliderSnap();
- void rangeSlider();
- void busyIndicator();
- void switchGif();
- void button_data();
- void button();
- void tabBar();
- void menu();
- void swipeView();
- void swipeDelegate_data();
- void swipeDelegate();
- void swipeDelegateBehind();
- void delegates_data();
- void delegates();
- void dial_data();
- void dial();
- void scrollBar();
- void scrollBarSnap_data();
- void scrollBarSnap();
- void scrollIndicator();
- void progressBar_data();
- void progressBar();
- void triState_data();
- void triState();
- void checkables_data();
- void checkables();
- void comboBox();
- void stackView_data();
- void stackView();
- void drawer();
- void delayButton();
-
-private:
- void moveSmoothly(QQuickWindow *window, const QPoint &from, const QPoint &to, int movements,
- QEasingCurve::Type easingCurveType = QEasingCurve::OutQuint, int movementDelay = 15);
- void moveSmoothlyAlongArc(QQuickWindow *window, QPoint arcCenter, qreal distanceFromCenter,
- qreal startAngleRadians, qreal endAngleRadians, QEasingCurve::Type easingCurveType = QEasingCurve::OutQuint);
-
- QString dataDirPath;
- QDir outputDir;
-};
-
-void tst_Gifs::initTestCase()
-{
- dataDirPath = QFINDTESTDATA("data");
- QVERIFY(!dataDirPath.isEmpty());
- qInfo() << "data directory:" << dataDirPath;
-
- outputDir = QDir(QDir::current().filePath("gifs"));
- QVERIFY(outputDir.exists() || QDir::current().mkpath("gifs"));
- qInfo() << "output directory:" << outputDir.absolutePath();
-}
-
-void tst_Gifs::moveSmoothly(QQuickWindow *window, const QPoint &from, const QPoint &to,
- int movements, QEasingCurve::Type easingCurveType, int movementDelay)
-{
- QEasingCurve curve(easingCurveType);
- int xDifference = to.x() - from.x();
- int yDifference = to.y() - from.y();
- for (int movement = 0; movement < movements; ++movement) {
- QPoint pos = QPoint(
- from.x() + qRound(curve.valueForProgress(movement / qreal(qAbs(xDifference))) * xDifference),
- from.y() + qRound(curve.valueForProgress(movement / qreal(qAbs(yDifference))) * yDifference));
- QTest::mouseMove(window, pos, movementDelay);
- }
-}
-
-QPoint posAlongArc(QPoint arcCenter, qreal startAngleRadians, qreal endAngleRadians,
- qreal distanceFromCenter, qreal progress, QEasingCurve::Type easingCurveType)
-{
- QEasingCurve curve(easingCurveType);
- const qreal angle = startAngleRadians + curve.valueForProgress(progress) * (endAngleRadians - startAngleRadians);
- return (arcCenter - QTransform().rotateRadians(angle).map(QPointF(0, distanceFromCenter))).toPoint();
-}
-
-void tst_Gifs::moveSmoothlyAlongArc(QQuickWindow *window, QPoint arcCenter, qreal distanceFromCenter,
- qreal startAngleRadians, qreal endAngleRadians, QEasingCurve::Type easingCurveType)
-{
- QEasingCurve curve(easingCurveType);
- const qreal angleSpan = endAngleRadians - startAngleRadians;
- const int movements = qAbs(angleSpan) * 20 + 20;
-
- for (int movement = 0; movement < movements; ++movement) {
- const qreal progress = movement / qreal(movements);
- const QPoint pos = posAlongArc(arcCenter, startAngleRadians, endAngleRadians,
- distanceFromCenter, progress, easingCurveType);
- QTest::mouseMove(window, pos, 15);
- }
-}
-
-void tst_Gifs::tumblerWrap()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(5);
- gifRecorder.setQmlFileName("qtquickcontrols2-tumbler-wrap.qml");
-
- gifRecorder.start();
-
- // Left as an example. Usually EventCapturer code would be removed after
- // the GIF has been generated.
- QQuickWindow *window = gifRecorder.window();
- EventCapturer eventCapturer;
-#ifdef GENERATE_EVENT_CODE
- eventCapturer.setMoveEventTrimFlags(EventCapturer::TrimAll);
- eventCapturer.startCapturing(window, 4000);
-#else
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(89, 75), 326);
- QTest::mouseMove(window, QPoint(89, 76), 31);
- QTest::mouseMove(window, QPoint(89, 80), 10);
- QTest::mouseMove(window, QPoint(93, 93), 10);
- QTest::mouseMove(window, QPoint(95, 101), 10);
- QTest::mouseMove(window, QPoint(97, 109), 11);
- QTest::mouseMove(window, QPoint(101, 125), 10);
- QTest::mouseMove(window, QPoint(103, 133), 11);
- QTest::mouseMove(window, QPoint(103, 141), 11);
- QTest::mouseMove(window, QPoint(105, 158), 10);
- QTest::mouseMove(window, QPoint(105, 162), 13);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(105, 162), 0);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(154, 100), 1098);
- QTest::mouseMove(window, QPoint(154, 99), 16);
- QTest::mouseMove(window, QPoint(153, 98), 16);
- QTest::mouseMove(window, QPoint(153, 95), 16);
- QTest::mouseMove(window, QPoint(152, 91), 15);
- QTest::mouseMove(window, QPoint(152, 87), 14);
- QTest::mouseMove(window, QPoint(151, 83), 13);
- QTest::mouseMove(window, QPoint(151, 86), 13);
- QTest::mouseMove(window, QPoint(150, 79), 12);
- QTest::mouseMove(window, QPoint(148, 73), 12);
- QTest::mouseMove(window, QPoint(148, 68), 12);
- QTest::mouseMove(window, QPoint(148, 60), 10);
- QTest::mouseMove(window, QPoint(147, 50), 10);
- QTest::mouseMove(window, QPoint(147, 40), 9);
- QTest::mouseMove(window, QPoint(147, 30), 8);
- QTest::mouseMove(window, QPoint(147, 20), 7);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(147, 20), 0);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(154, 100), 1000);
- QTest::mouseMove(window, QPoint(147, 101), 16);
- QTest::mouseMove(window, QPoint(147, 102), 16);
- QTest::mouseMove(window, QPoint(147, 105), 16);
- QTest::mouseMove(window, QPoint(148, 109), 15);
- QTest::mouseMove(window, QPoint(148, 115), 14);
- QTest::mouseMove(window, QPoint(148, 120), 13);
- QTest::mouseMove(window, QPoint(150, 125), 13);
- QTest::mouseMove(window, QPoint(151, 130), 12);
- QTest::mouseMove(window, QPoint(151, 135), 12);
- QTest::mouseMove(window, QPoint(153, 140), 12);
- QTest::mouseMove(window, QPoint(153, 150), 10);
- QTest::mouseMove(window, QPoint(153, 160), 10);
- QTest::mouseMove(window, QPoint(153, 170), 9);
- QTest::mouseMove(window, QPoint(155, 180), 8);
- QTest::mouseMove(window, QPoint(155, 188), 7);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(20, 188), 0);
-#endif
-
- gifRecorder.waitForFinish();
-
- const auto capturedEvents = eventCapturer.capturedEvents();
- for (CapturedEvent event : capturedEvents)
- qDebug().noquote() << event.cppCommand();
-}
-
-void tst_Gifs::slider()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(5);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-slider.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *slider = window->property("slider").value<QQuickItem*>();
- QVERIFY(slider);
- QQuickItem *handle = slider->property("handle").value<QQuickItem*>();
- QVERIFY(handle);
-
- const QPoint handleCenter = handle->mapToItem(window->contentItem(),
- QPoint(handle->width() / 2, handle->height() / 2)).toPoint();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, handleCenter, 100);
- QPoint pos1 = handleCenter + QPoint(slider->width() * 0.3, 0);
- moveSmoothly(window, handleCenter, pos1, pos1.x() - handleCenter.x(), QEasingCurve::OutQuint, 10);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos1, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, handleCenter, 100);
- const QPoint pos2 = QPoint(slider->width() - handleCenter.x() + slider->property("rightPadding").toInt(), handleCenter.y());
- moveSmoothly(window, pos1, pos2, pos2.x() - pos1.x(), QEasingCurve::OutQuint, 10);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos2, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos2, 100);
- moveSmoothly(window, pos2, handleCenter, qAbs(handleCenter.x() - pos2.x()), QEasingCurve::OutQuint, 10);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, handleCenter, 20);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::sliderSnap_data()
-{
- QTest::addColumn<QString>("gifBaseName");
- QTest::addColumn<int>("snapMode");
- QTest::newRow("NoSnap") << "qtquickcontrols2-slider-nosnap" << 0;
- QTest::newRow("SnapAlways") << "qtquickcontrols2-slider-snapalways" << 1;
- QTest::newRow("SnapOnRelease") << "qtquickcontrols2-slider-snaponrelease" << 2;
-}
-
-void tst_Gifs::sliderSnap()
-{
- QFETCH(QString, gifBaseName);
- QFETCH(int, snapMode);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(8);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-slider-snap.qml");
- gifRecorder.setOutputFileBaseName(gifBaseName);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *slider = window->property("slider").value<QQuickItem*>();
- QVERIFY(slider);
- QVERIFY(slider->setProperty("snapMode", QVariant(snapMode)));
- QCOMPARE(slider->property("snapMode").toInt(), snapMode);
- QQuickItem *handle = slider->property("handle").value<QQuickItem*>();
- QVERIFY(handle);
-
- const QPoint startPos(slider->property("leftPadding").toReal(), slider->height() / 2);
- const int trackWidth = slider->property("availableWidth").toReal();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, startPos, 200);
- QPoint pos1 = startPos + QPoint(trackWidth * 0.3, 0);
- moveSmoothly(window, startPos, pos1, pos1.x() - startPos.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos1, 0);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, startPos, 400);
- const QPoint pos2 = startPos + QPoint(trackWidth * 0.6, 0);
- moveSmoothly(window, pos1, pos2, pos2.x() - pos1.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos2, 0);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos2, 400);
- moveSmoothly(window, pos2, startPos, qAbs(startPos.x() - pos2.x()) / 2, QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, startPos, 0);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::rangeSlider()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(7);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-rangeslider.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *slider = window->property("slider").value<QQuickItem*>();
- QVERIFY(slider);
- QObject *first = slider->property("first").value<QObject*>();
- QVERIFY(first);
- QQuickItem *firstHandle = first->property("handle").value<QQuickItem*>();
- QVERIFY(firstHandle);
- QObject *second = slider->property("second").value<QObject*>();
- QVERIFY(second);
- QQuickItem *secondHandle = second->property("handle").value<QQuickItem*>();
- QVERIFY(secondHandle);
-
- const QPoint firstCenter = firstHandle->mapToItem(slider,
- QPoint(firstHandle->width() / 2, firstHandle->height() / 2)).toPoint();
- const QPoint secondCenter = secondHandle->mapToItem(slider,
- QPoint(secondHandle->width() / 2, secondHandle->height() / 2)).toPoint();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, firstCenter, 100);
- const QPoint firstTarget = firstCenter + QPoint(slider->width() * 0.25, 0);
- moveSmoothly(window, firstCenter, firstTarget, firstTarget.x() - firstCenter.x());
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, firstTarget, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, secondCenter, 100);
- const QPoint secondTarget = secondCenter - QPoint(slider->width() * 0.25, 0);
- moveSmoothly(window, secondCenter, secondTarget, qAbs(secondTarget.x() - secondCenter.x()));
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, secondTarget, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, secondTarget, 100);
- moveSmoothly(window, secondTarget, secondCenter, qAbs(secondTarget.x() - secondCenter.x()));
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, secondCenter, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, firstTarget, 100);
- moveSmoothly(window, firstTarget, firstCenter, firstTarget.x() - firstCenter.x());
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, firstCenter, 20);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::busyIndicator()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-busyindicator.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- // Record nothing for a bit to make it smoother.
- QTest::qWait(800 * 2);
-
- QQuickItem *busyIndicator = window->property("busyIndicator").value<QQuickItem*>();
- QVERIFY(busyIndicator);
-
- busyIndicator->setProperty("running", false);
-
- // 800 ms is the duration of one rotation animation cycle for BusyIndicator.
- QTest::qWait(800 * 2);
-
- busyIndicator->setProperty("running", true);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::switchGif()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(3);
- gifRecorder.setQmlFileName("qtquickcontrols2-switch.qml");
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.8, window->height() / 2), 0);
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.2, window->height() / 2), 800);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::button_data()
-{
- QTest::addColumn<QString>("qmlFileName");
- QTest::newRow("button") << QString::fromLatin1("qtquickcontrols2-button.qml");
- QTest::newRow("button-flat") << QString::fromLatin1("qtquickcontrols2-button-flat.qml");
- QTest::newRow("button-highlighted") << QString::fromLatin1("qtquickcontrols2-button-highlighted.qml");
-}
-
-void tst_Gifs::button()
-{
- QFETCH(QString, qmlFileName);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(3);
- gifRecorder.setQmlFileName(qmlFileName);
- // Seems to be necessary to show the Default button background.
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 700);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::tabBar()
-{
- const QString qmlFileName = QStringLiteral("qtquickcontrols2-tabbar.qml");
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(4);
- gifRecorder.setQmlFileName(qmlFileName);
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.6, window->height() / 2), 0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.6, window->height() / 2), 50);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.9, window->height() / 2), 400);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.9, window->height() / 2), 50);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.6, window->height() / 2), 800);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.6, window->height() / 2), 50);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.3, window->height() / 2), 400);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() * 0.3, window->height() / 2), 50);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::menu()
-{
- const QString qmlFileName = QStringLiteral("qtquickcontrols2-menu.qml");
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(3);
- gifRecorder.setQmlFileName(qmlFileName);
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- const QQuickItem *fileButton = window->property("fileButton").value<QQuickItem*>();
- QVERIFY(fileButton);
-
- const QPoint fileButtonCenter = fileButton->mapToScene(QPointF(fileButton->width() / 2, fileButton->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, fileButtonCenter, 0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, fileButtonCenter, 200);
-
- const QObject *menu = window->property("menu").value<QObject*>();
- QVERIFY(menu);
- const QQuickItem *menuContentItem = menu->property("contentItem").value<QQuickItem*>();
- QVERIFY(menuContentItem);
-
- const QPoint lastItemPos = menuContentItem->mapToScene(QPointF(menuContentItem->width() / 2, menuContentItem->height() - 10)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, lastItemPos, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, lastItemPos, 300);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::swipeView()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(8);
- gifRecorder.setQmlFileName(QStringLiteral("qtquickcontrols2-swipeview.qml"));
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *swipeView = window->property("swipeView").value<QQuickItem*>();
- QVERIFY(swipeView);
-
- QTest::qWait(1200);
- swipeView->setProperty("currentIndex", 1);
- QTest::qWait(2000);
- swipeView->setProperty("currentIndex", 2);
- QTest::qWait(2000);
- swipeView->setProperty("currentIndex", 0);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::swipeDelegate_data()
-{
- QTest::addColumn<QString>("qmlFileName");
- QTest::newRow("qtquickcontrols2-swipedelegate.qml") << QString::fromLatin1("qtquickcontrols2-swipedelegate.qml");
- QTest::newRow("qtquickcontrols2-swipedelegate-leading-trailing.qml") << QString::fromLatin1("qtquickcontrols2-swipedelegate-leading-trailing.qml");
-}
-
-void tst_Gifs::swipeDelegate()
-{
- QFETCH(QString, qmlFileName);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(10);
- gifRecorder.setQmlFileName(qmlFileName);
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *swipeDelegate = window->property("swipeDelegate").value<QQuickItem*>();
- QVERIFY(swipeDelegate);
-
- // Show left item.
- const QPoint leftTarget = QPoint(swipeDelegate->width() * 0.2, 0);
- const QPoint rightTarget = QPoint(swipeDelegate->width() * 0.8, 0);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 100);
- const int movements = rightTarget.x() - leftTarget.x();
- moveSmoothly(window, leftTarget, rightTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 1000);
- moveSmoothly(window, rightTarget, leftTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 20);
-
- QTest::qWait(1000);
-
- // Show right item.
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 1000);
- moveSmoothly(window, rightTarget, leftTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 20);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 1000);
- moveSmoothly(window, leftTarget, rightTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 20);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::swipeDelegateBehind()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(14);
- gifRecorder.setQmlFileName(QStringLiteral("qtquickcontrols2-swipedelegate-behind.qml"));
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *swipeDelegate = window->property("swipeDelegate").value<QQuickItem*>();
- QVERIFY(swipeDelegate);
-
- // Show wrapping around left item.
- const QPoint leftTarget = QPoint(swipeDelegate->width() * 0.2, 0);
- const QPoint rightTarget = QPoint(swipeDelegate->width() * 0.8, 0);
- const int movements = rightTarget.x() - leftTarget.x();
- for (int i = 0; i < 4; ++i) {
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 100);
- moveSmoothly(window, leftTarget, rightTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 20);
-
- QTest::qWait(500);
- }
-
- QTest::qWait(1000);
-
- // Show wrapping around right item.
- for (int i = 0; i < 4; ++i) {
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, rightTarget, 100);
- moveSmoothly(window, rightTarget, leftTarget, movements, QEasingCurve::OutQuint, 5);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, leftTarget, 20);
-
- QTest::qWait(500);
- }
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::delegates_data()
-{
- QTest::addColumn<QString>("name");
- QTest::addColumn<QVector<int> >("pressIndices");
- QTest::addColumn<int>("duration");
-
- QTest::newRow("ItemDelegate") << "itemdelegate" << (QVector<int>() << 0 << 1 << 2) << 5;
- QTest::newRow("CheckDelegate") << "checkdelegate" << (QVector<int>() << 0 << 0) << 5;
- QTest::newRow("RadioDelegate") << "radiodelegate" << (QVector<int>() << 1 << 0) << 5;
- QTest::newRow("SwitchDelegate") << "switchdelegate" << (QVector<int>() << 0 << 0) << 5;
-}
-
-void tst_Gifs::delegates()
-{
- QFETCH(QString, name);
- QFETCH(QVector<int>, pressIndices);
- QFETCH(int, duration);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(duration);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-%1.qml").arg(name));
- gifRecorder.setHighQuality(true);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *delegate = window->property("delegate").value<QQuickItem*>();
- QVERIFY(delegate);
-
- for (int i = 0; i < pressIndices.size(); ++i) {
- const int pressIndex = pressIndices.at(i);
- const QPoint delegateCenter(delegate->mapToScene(QPointF(
- delegate->width() / 2, delegate->height() / 2 + delegate->height() * pressIndex)).toPoint());
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, delegateCenter, i == 0 ? 200 : 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, delegateCenter, 400);
- }
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::dial_data()
-{
- QTest::addColumn<QString>("name");
-
- QTest::newRow("dial-wrap") << "wrap";
- QTest::newRow("dial-no-wrap") << "no-wrap";
-}
-
-void tst_Gifs::dial()
-{
- QFETCH(QString, name);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(10);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-dial-%1.qml").arg(name));
- gifRecorder.setHighQuality(false);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *dial = window->property("dial").value<QQuickItem*>();
- QVERIFY(dial);
-
- const QPoint arcCenter = dial->mapToScene(QPoint(dial->width() / 2, dial->height() / 2)).toPoint();
- const qreal distanceFromCenter = dial->height() * 0.25;
- // Go a bit past the actual min/max to ensure that we get the full range.
- const qreal minAngle = qDegreesToRadians(-170.0);
- const qreal maxAngle = qDegreesToRadians(170.0);
- // Drag from start to end.
- qreal startAngle = minAngle;
- qreal endAngle = maxAngle;
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, posAlongArc(
- arcCenter, startAngle, endAngle, distanceFromCenter, 0, QEasingCurve::InOutQuad), 30);
-
- moveSmoothlyAlongArc(window, arcCenter, distanceFromCenter, startAngle, endAngle, QEasingCurve::InOutQuad);
-
- // Come back from the end a bit.
- startAngle = endAngle;
- endAngle -= qDegreesToRadians(50.0);
- moveSmoothlyAlongArc(window, arcCenter, distanceFromCenter, startAngle, endAngle, QEasingCurve::InOutQuad);
-
- // Try to drag over max to show what happens with different wrap settings.
- startAngle = endAngle;
- endAngle = qDegreesToRadians(270.0);
- moveSmoothlyAlongArc(window, arcCenter, distanceFromCenter, startAngle, endAngle, QEasingCurve::InOutQuad);
-
- // Go back to the start so that it loops nicely.
- startAngle = endAngle;
- endAngle = minAngle;
- moveSmoothlyAlongArc(window, arcCenter, distanceFromCenter, startAngle, endAngle, QEasingCurve::InOutQuad);
-
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, posAlongArc(
- arcCenter, startAngle, endAngle, distanceFromCenter, 1, QEasingCurve::InOutQuad), 30);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::checkables_data()
-{
- QTest::addColumn<QString>("name");
- QTest::addColumn<QVector<int> >("pressIndices");
-
- QTest::newRow("checkbox") << "checkbox" << (QVector<int>() << 1 << 2 << 2 << 1);
- QTest::newRow("radiobutton") << "radiobutton" << (QVector<int>() << 1 << 2 << 1 << 0);
-}
-
-void tst_Gifs::checkables()
-{
- QFETCH(QString, name);
- QFETCH(QVector<int>, pressIndices);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-%1.qml").arg(name));
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
-
- for (int i = 0; i < pressIndices.size(); ++i) {
- const int pressIndex = pressIndices.at(i);
- const QString controlId = QString::fromLatin1("control%1").arg(pressIndex + 1);
- QQuickItem *control = window->property(qPrintable(controlId)).value<QQuickItem*>();
- QVERIFY(control);
-
- const QPoint pos = control->mapToScene(QPointF(control->width() / 2, control->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos, 800);
- QTest::mouseClick(window, Qt::LeftButton, Qt::NoModifier, pos, 300);
- }
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::comboBox()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName(QStringLiteral("qtquickcontrols2-combobox.qml"));
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *comboBox = window->property("comboBox").value<QQuickItem*>();
- QVERIFY(comboBox);
-
- // Open the popup.
- const QPoint center = comboBox->mapToScene(
- QPoint(comboBox->width() / 2, comboBox->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, center, 800);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, center, 80);
-
- // Select the third item.
- QObject *popup = comboBox->property("popup").value<QObject*>();
- QVERIFY(popup);
- QQuickItem *popupContent = popup->property("contentItem").value<QQuickItem*>();
- QVERIFY(popupContent);
- const QPoint lastItemPos = popupContent->mapToScene(
- QPoint(popupContent->width() / 2, popupContent->height() * 0.8)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, lastItemPos, 600);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, lastItemPos, 200);
-
- // Open the popup.
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, center, 1500);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, center, 80);
-
- // Select the first item.
- const QPoint firstItemPos = popupContent->mapToScene(
- QPoint(popupContent->width() / 2, popupContent->height() * 0.2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, firstItemPos, 600);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, firstItemPos, 200);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::triState_data()
-{
- QTest::addColumn<QString>("name");
-
- QTest::newRow("checkbox-tristate") << "checkbox-tristate";
- QTest::newRow("checkdelegate-tristate") << "checkdelegate-tristate";
-}
-
-void tst_Gifs::triState()
-{
- QFETCH(QString, name);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-%1.qml").arg(name));
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *english = window->property("english").value<QQuickItem*>();
- QVERIFY(english);
- QQuickItem *norwegian = window->property("norwegian").value<QQuickItem*>();
- QVERIFY(norwegian);
-
- const QPoint englishCenter = english->mapToScene(
- QPointF(english->width() / 2, english->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, englishCenter, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, englishCenter, 300);
-
- const QPoint norwegianCenter = norwegian->mapToScene(
- QPointF(norwegian->width() / 2, norwegian->height() / 2)).toPoint();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, norwegianCenter, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, norwegianCenter, 300);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, norwegianCenter, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, norwegianCenter, 300);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, englishCenter, 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, englishCenter, 300);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::scrollBar()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName("qtquickcontrols2-scrollbar.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *scrollBar = window->property("scrollBar").value<QQuickItem*>();
- QVERIFY(scrollBar);
-
- // Flick in the center of the screen to show that there's a scroll bar.
- const QPoint lhsWindowBottom = QPoint(0, window->height() - 1);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, lhsWindowBottom, 100);
- QTest::mouseMove(window, lhsWindowBottom - QPoint(0, 10), 30);
- QTest::mouseMove(window, lhsWindowBottom - QPoint(0, 30), 30);
- QTest::mouseMove(window, lhsWindowBottom - QPoint(0, 60), 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, lhsWindowBottom - QPoint(0, 100), 30);
-
- // Scroll with the scroll bar.
- const QPoint rhsWindowBottom = QPoint(window->width() - 1, window->height() - 1);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, rhsWindowBottom, 2000);
- const QPoint rhsWindowTop = QPoint(window->width() - 1, 1);
- moveSmoothly(window, rhsWindowBottom, rhsWindowTop,
- qAbs(rhsWindowTop.y() - rhsWindowBottom.y()), QEasingCurve::InCubic, 10);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, rhsWindowTop, 20);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::scrollBarSnap_data()
-{
- QTest::addColumn<QString>("gifBaseName");
- QTest::addColumn<int>("snapMode");
- QTest::newRow("NoSnap") << "qtquickcontrols2-scrollbar-nosnap" << 0;
- QTest::newRow("SnapAlways") << "qtquickcontrols2-scrollbar-snapalways" << 1;
- QTest::newRow("SnapOnRelease") << "qtquickcontrols2-scrollbar-snaponrelease" << 2;
-}
-
-void tst_Gifs::scrollBarSnap()
-{
- QFETCH(QString, gifBaseName);
- QFETCH(int, snapMode);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(8);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-scrollbar-snap.qml");
- gifRecorder.setOutputFileBaseName(gifBaseName);
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QQuickItem *scrollbar = window->property("scrollbar").value<QQuickItem*>();
- QVERIFY(scrollbar);
- QVERIFY(scrollbar->setProperty("snapMode", QVariant(snapMode)));
- QCOMPARE(scrollbar->property("snapMode").toInt(), snapMode);
-
- const QPoint startPos(scrollbar->property("leftPadding").toReal(), scrollbar->y() + scrollbar->height() / 2);
- const int availableWidth = scrollbar->property("availableWidth").toReal();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, startPos, 200);
- const QPoint pos1 = startPos + QPoint(availableWidth * 0.3, 0);
- moveSmoothly(window, startPos, pos1, pos1.x() - startPos.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos1, 0);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos1, 400);
- const QPoint pos2 = startPos + QPoint(availableWidth * 0.6, 0);
- moveSmoothly(window, pos1, pos2, pos2.x() - pos1.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, pos2, 0);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, pos2, 400);
- moveSmoothly(window, pos2, startPos, pos2.x() - startPos.x(), QEasingCurve::OutQuint, 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, startPos, 0);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::scrollIndicator()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(6);
- gifRecorder.setQmlFileName("qtquickcontrols2-scrollindicator.qml");
-
- gifRecorder.start();
-
- // Flick in the center of the screen to show that there's a scroll indicator.
- QQuickWindow *window = gifRecorder.window();
- const QPoint windowBottom = QPoint(0, window->height() - 1);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, windowBottom, 100);
- QTest::mouseMove(window, windowBottom - QPoint(0, 10), 30);
- QTest::mouseMove(window, windowBottom - QPoint(0, 30), 30);
- QTest::mouseMove(window, windowBottom - QPoint(0, 60), 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, windowBottom - QPoint(0, 100), 30);
-
- // Scroll back down.
- const QPoint windowTop = QPoint(0, 0);
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, windowTop, 2000);
- QTest::mouseMove(window, windowTop + QPoint(0, 10), 30);
- QTest::mouseMove(window, windowTop + QPoint(0, 30), 30);
- QTest::mouseMove(window, windowTop + QPoint(0, 60), 30);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, windowTop + QPoint(0, 100), 30);
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::progressBar_data()
-{
- QTest::addColumn<bool>("indeterminate");
-
- QTest::newRow("indeterminate:false") << false;
- QTest::newRow("indeterminate:true") << true;
-}
-
-void tst_Gifs::progressBar()
-{
- QFETCH(bool, indeterminate);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(4);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-progressbar%1").arg(
- indeterminate ? QLatin1String("-indeterminate.qml") : QLatin1String(".qml")));
-
- gifRecorder.start();
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::stackView_data()
-{
- QTest::addColumn<QString>("name");
- QTest::addColumn<int>("duration");
-
- QTest::newRow("push") << "push" << 8;
- QTest::newRow("pop") << "pop" << 6;
- QTest::newRow("unwind") << "unwind" << 6;
- QTest::newRow("replace") << "replace" << 6;
-}
-
-void tst_Gifs::stackView()
-{
- QFETCH(QString, name);
- QFETCH(int, duration);
-
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(duration);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName(QString::fromLatin1("qtquickcontrols2-stackview-%1.qml").arg(name));
-
- gifRecorder.start();
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::drawer()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(4);
- gifRecorder.setHighQuality(true);
- gifRecorder.setQmlFileName("qtquickcontrols2-drawer.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QObject *drawer = window->property("drawer").value<QObject*>();
- qreal width = drawer->property("width").toReal();
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(1, 1), 100);
- moveSmoothly(window, QPoint(1, 1), QPoint(width, 1), width, QEasingCurve::InOutBack, 1);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(width, 1), 30);
-
- QTest::qWait(1000);
- QMetaObject::invokeMethod(drawer, "close");
-
- gifRecorder.waitForFinish();
-}
-
-void tst_Gifs::delayButton()
-{
- GifRecorder gifRecorder;
- gifRecorder.setDataDirPath(dataDirPath);
- gifRecorder.setOutputDir(outputDir);
- gifRecorder.setRecordingDuration(9);
- gifRecorder.setQmlFileName("qtquickcontrols2-delaybutton.qml");
-
- gifRecorder.start();
-
- QQuickWindow *window = gifRecorder.window();
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 0);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1500);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 200);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1500);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1730);
-
- QTest::mousePress(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 1000);
- QTest::mouseRelease(window, Qt::LeftButton, Qt::NoModifier, QPoint(window->width() / 2, window->height() / 2), 2070); // 0.69 * 3000
-
- gifRecorder.waitForFinish();
-}
-
-QTEST_MAIN(tst_Gifs)
-
-#include "tst_gifs.moc"
diff --git a/tests/manual/manual.pro b/tests/manual/manual.pro
deleted file mode 100644
index d23b4494..00000000
--- a/tests/manual/manual.pro
+++ /dev/null
@@ -1,12 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- buttons \
- gifs \
- fonts \
- screenshots \
- styles \
- testbench
-
-qtConfig(systemtrayicon): SUBDIRS += systemtrayicon
-
-qtHaveModule(widgets): SUBDIRS += viewinqwidget
diff --git a/tests/manual/screenshots/qtquickcontrols2.conf b/tests/manual/screenshots/qtquickcontrols2.conf
deleted file mode 100644
index d2081db1..00000000
--- a/tests/manual/screenshots/qtquickcontrols2.conf
+++ /dev/null
@@ -1,5 +0,0 @@
-[Controls]
-Style=Material
-
-[Material]
-;Variant=Dense
diff --git a/tests/manual/screenshots/screenshots.cpp b/tests/manual/screenshots/screenshots.cpp
deleted file mode 100644
index e4e1844d..00000000
--- a/tests/manual/screenshots/screenshots.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-#include <QFileInfo>
-#include <QDir>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- const QUrl snippetsDir = QUrl::fromLocalFile(SNIPPETS_DIR);
- Q_ASSERT(snippetsDir.isValid() && QFileInfo(snippetsDir.toLocalFile()).exists());
- engine.rootContext()->setContextProperty("snippetsDir", snippetsDir);
- engine.rootContext()->setContextProperty("screenshotsDir", QUrl::fromLocalFile(QDir::currentPath()));
- engine.rootContext()->setContextProperty("screenshotsDirStr", QDir::currentPath());
- engine.load(QUrl("qrc:/screenshots.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/screenshots/screenshots.pro b/tests/manual/screenshots/screenshots.pro
deleted file mode 100644
index 5894888f..00000000
--- a/tests/manual/screenshots/screenshots.pro
+++ /dev/null
@@ -1,13 +0,0 @@
-TEMPLATE = app
-TARGET = screenshots
-QT += quick widgets
-
-DEFINES += SNIPPETS_DIR=\\\"$$PWD/../../../src/imports/controls/doc/snippets\\\"
-message($$DEFINES)
-
-SOURCES += \
- screenshots.cpp
-
-RESOURCES += \
- screenshots.qml \
- qtquickcontrols2.conf
diff --git a/tests/manual/screenshots/screenshots.qml b/tests/manual/screenshots/screenshots.qml
deleted file mode 100644
index 2ab684c1..00000000
--- a/tests/manual/screenshots/screenshots.qml
+++ /dev/null
@@ -1,174 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-import Qt.labs.folderlistmodel 2.1
-
-ApplicationWindow {
- id: window
- title: "Qt Quick Controls 2 - Screenshots"
- visible: true
- width: Math.max(600, loader.implicitWidth)
- height: Math.max(600, loader.implicitHeight + header.implicitHeight + footer.implicitHeight)
-
- property string currentFilePath
- property url lastSaveUrl
-
- Shortcut {
- sequence: "Ctrl+Q"
- onActivated: Qt.quit()
- }
-
- header: ToolBar {
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: "Choose Snippet"
- focusPolicy: Qt.NoFocus
- onClicked: snippetDrawer.open()
- }
- }
- }
-
- Drawer {
- id: snippetDrawer
- width: window.width / 2
- height: window.height
-
- ListView {
- id: snippetsListView
- anchors.fill: parent
- model: FolderListModel {
- folder: snippetsDir
- nameFilters: ["*.qml"]
- showDirs: false
- }
- delegate: ItemDelegate {
- width: parent.width
- text: fileName
- focusPolicy: Qt.NoFocus
-
- readonly property string baseName: fileBaseName
-
- contentItem: Label {
- text: parent.text
- elide: Text.ElideLeft
- }
- onClicked: {
- snippetsListView.currentIndex = index;
- loader.source = "file:///" + filePath;
- currentFilePath = filePath;
- snippetDrawer.close();
- }
- }
- }
- }
-
- Loader {
- id: loader
- anchors.centerIn: parent
- }
-
- ToolTip {
- id: saveResultToolTip
- x: window.contentItem.width / 2 - width / 2
- y: window.contentItem.height - height - 20
- timeout: 3000
- }
-
- footer: ToolBar {
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: "Open Output Folder"
- focusPolicy: Qt.NoFocus
- onClicked: Qt.openUrlExternally(screenshotsDir)
- }
-
- ToolButton {
- text: "Open Last Screenshot"
- focusPolicy: Qt.NoFocus
- enabled: lastSaveUrl.toString().length > 0
- onClicked: Qt.openUrlExternally(lastSaveUrl)
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- ToolButton {
- text: "Take Screenshot"
- focusPolicy: Qt.NoFocus
- enabled: loader.status === Loader.Ready
- onClicked: {
- if (!loader.item)
- return;
-
- var grabSuccessful = loader.grabToImage(function(result) {
- var savePath = screenshotsDirStr + "/" + snippetsListView.currentItem.baseName + ".png";
- if (result.saveToFile(savePath)) {
- saveResultToolTip.text = "Successfully saved screenshot to output folder";
- lastSaveUrl = screenshotsDir + "/" + snippetsListView.currentItem.baseName + ".png";
- } else {
- saveResultToolTip.text = "Failed to save screenshot";
- }
- })
- if (!grabSuccessful)
- saveResultToolTip.text = "Failed to grab image";
- saveResultToolTip.open();
- }
- }
- }
- }
-}
diff --git a/tests/manual/shared/FontAwesome.otf b/tests/manual/shared/FontAwesome.otf
deleted file mode 100644
index 681bdd4d..00000000
--- a/tests/manual/shared/FontAwesome.otf
+++ /dev/null
Binary files differ
diff --git a/tests/manual/shared/FontAwesome.qml b/tests/manual/shared/FontAwesome.qml
deleted file mode 100644
index 9e387594..00000000
--- a/tests/manual/shared/FontAwesome.qml
+++ /dev/null
@@ -1,746 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.12
-
-pragma Singleton
-
-QtObject {
-
- // Font Awesome by Dave Gandy - http://fontawesome.io
- // Font Awesome is licensed under SIL OFL 1.1 (http://scripts.sil.org/OFL)
- property FontLoader fontLoader: FontLoader {
- source: "FontAwesome.otf"
- }
-
- // Generated from copying the contents of https://fortawesome.github.io/Font-Awesome/cheatsheet/ and running it through
- // sed -E 's/([0-9].[0-9])?..fa-([a-zA-Z0-9-]+) (\(alias\) )?\[\&\#x([a-f0-9]+);\]/\2: \"\\\u\4\";/g'
- // | tr \; "\n"
- // | awk '{ r="-[a-z0-9]"; while (match($0, r)) sub(r, toupper(substr($0, RSTART + 1, 1))); print "readonly property string" $0 }'
-
- // Some icon names have been manually edited either because the symbol is reserved or invalid.
-
- // Manually edited. Was "500px"
- readonly property string i500px: "\uf26e"
- readonly property string adjust: "\uf042"
- readonly property string adn: "\uf170"
- readonly property string alignCenter: "\uf037"
- readonly property string alignJustify: "\uf039"
- readonly property string alignLeft: "\uf036"
- readonly property string alignRight: "\uf038"
- readonly property string amazon: "\uf270"
- readonly property string ambulance: "\uf0f9"
- readonly property string anchor: "\uf13d"
- readonly property string android: "\uf17b"
- readonly property string angellist: "\uf209"
- readonly property string angleDoubleDown: "\uf103"
- readonly property string angleDoubleLeft: "\uf100"
- readonly property string angleDoubleRight: "\uf101"
- readonly property string angleDoubleUp: "\uf102"
- readonly property string angleDown: "\uf107"
- readonly property string angleLeft: "\uf104"
- readonly property string angleRight: "\uf105"
- readonly property string angleUp: "\uf106"
- readonly property string apple: "\uf179"
- readonly property string archive: "\uf187"
- readonly property string areaChart: "\uf1fe"
- readonly property string arrowCircleDown: "\uf0ab"
- readonly property string arrowCircleLeft: "\uf0a8"
- readonly property string arrowCircleODown: "\uf01a"
- readonly property string arrowCircleOLeft: "\uf190"
- readonly property string arrowCircleORight: "\uf18e"
- readonly property string arrowCircleOUp: "\uf01b"
- readonly property string arrowCircleRight: "\uf0a9"
- readonly property string arrowCircleUp: "\uf0aa"
- readonly property string arrowDown: "\uf063"
- readonly property string arrowLeft: "\uf060"
- readonly property string arrowRight: "\uf061"
- readonly property string arrowUp: "\uf062"
- readonly property string arrows: "\uf047"
- readonly property string arrowsAlt: "\uf0b2"
- readonly property string arrowsH: "\uf07e"
- readonly property string arrowsV: "\uf07d"
- readonly property string asterisk: "\uf069"
- readonly property string at: "\uf1fa"
- readonly property string automobile: "\uf1b9"
- readonly property string backward: "\uf04a"
- readonly property string balanceScale: "\uf24e"
- readonly property string ban: "\uf05e"
- readonly property string bank: "\uf19c"
- readonly property string barChart: "\uf080"
- readonly property string barChartO: "\uf080"
- readonly property string barcode: "\uf02a"
- readonly property string bars: "\uf0c9"
- readonly property string battery0: "\uf244"
- readonly property string battery1: "\uf243"
- readonly property string battery2: "\uf242"
- readonly property string battery3: "\uf241"
- readonly property string battery4: "\uf240"
- readonly property string batteryEmpty: "\uf244"
- readonly property string batteryFull: "\uf240"
- readonly property string batteryHalf: "\uf242"
- readonly property string batteryQuarter: "\uf243"
- readonly property string batteryThreeQuarters: "\uf241"
- readonly property string bed: "\uf236"
- readonly property string beer: "\uf0fc"
- readonly property string behance: "\uf1b4"
- readonly property string behanceSquare: "\uf1b5"
- readonly property string bell: "\uf0f3"
- readonly property string bellO: "\uf0a2"
- readonly property string bellSlash: "\uf1f6"
- readonly property string bellSlashO: "\uf1f7"
- readonly property string bicycle: "\uf206"
- readonly property string binoculars: "\uf1e5"
- readonly property string birthdayCake: "\uf1fd"
- readonly property string bitbucket: "\uf171"
- readonly property string bitbucketSquare: "\uf172"
- readonly property string bitcoin: "\uf15a"
- readonly property string blackTie: "\uf27e"
- readonly property string bold: "\uf032"
- readonly property string bolt: "\uf0e7"
- readonly property string bomb: "\uf1e2"
- readonly property string book: "\uf02d"
- readonly property string bookmark: "\uf02e"
- readonly property string bookmarkO: "\uf097"
- readonly property string briefcase: "\uf0b1"
- readonly property string btc: "\uf15a"
- readonly property string bug: "\uf188"
- readonly property string building: "\uf1ad"
- readonly property string buildingO: "\uf0f7"
- readonly property string bullhorn: "\uf0a1"
- readonly property string bullseye: "\uf140"
- readonly property string bus: "\uf207"
- readonly property string buysellads: "\uf20d"
- readonly property string cab: "\uf1ba"
- readonly property string calculator: "\uf1ec"
- readonly property string calendar: "\uf073"
- readonly property string calendarCheckO: "\uf274"
- readonly property string calendarMinusO: "\uf272"
- readonly property string calendarO: "\uf133"
- readonly property string calendarPlusO: "\uf271"
- readonly property string calendarTimesO: "\uf273"
- readonly property string camera: "\uf030"
- readonly property string cameraRetro: "\uf083"
- readonly property string car: "\uf1b9"
- readonly property string caretDown: "\uf0d7"
- readonly property string caretLeft: "\uf0d9"
- readonly property string caretRight: "\uf0da"
- readonly property string caretSquareODown: "\uf150"
- readonly property string caretSquareOLeft: "\uf191"
- readonly property string caretSquareORight: "\uf152"
- readonly property string caretSquareOUp: "\uf151"
- readonly property string caretUp: "\uf0d8"
- readonly property string cartArrowDown: "\uf218"
- readonly property string cartPlus: "\uf217"
- readonly property string cc: "\uf20a"
- readonly property string ccAmex: "\uf1f3"
- readonly property string ccDinersClub: "\uf24c"
- readonly property string ccDiscover: "\uf1f2"
- readonly property string ccJcb: "\uf24b"
- readonly property string ccMastercard: "\uf1f1"
- readonly property string ccPaypal: "\uf1f4"
- readonly property string ccStripe: "\uf1f5"
- readonly property string ccVisa: "\uf1f0"
- readonly property string certificate: "\uf0a3"
- readonly property string chain: "\uf0c1"
- readonly property string chainBroken: "\uf127"
- readonly property string check: "\uf00c"
- readonly property string checkCircle: "\uf058"
- readonly property string checkCircleO: "\uf05d"
- readonly property string checkSquare: "\uf14a"
- readonly property string checkSquareO: "\uf046"
- readonly property string chevronCircleDown: "\uf13a"
- readonly property string chevronCircleLeft: "\uf137"
- readonly property string chevronCircleRight: "\uf138"
- readonly property string chevronCircleUp: "\uf139"
- readonly property string chevronDown: "\uf078"
- readonly property string chevronLeft: "\uf053"
- readonly property string chevronRight: "\uf054"
- readonly property string chevronUp: "\uf077"
- readonly property string child: "\uf1ae"
- readonly property string chrome: "\uf268"
- readonly property string circle: "\uf111"
- readonly property string circleO: "\uf10c"
- readonly property string circleONotch: "\uf1ce"
- readonly property string circleThin: "\uf1db"
- readonly property string clipboard: "\uf0ea"
- readonly property string clockO: "\uf017"
- readonly property string clone: "\uf24d"
- readonly property string close: "\uf00d"
- readonly property string cloud: "\uf0c2"
- readonly property string cloudDownload: "\uf0ed"
- readonly property string cloudUpload: "\uf0ee"
- readonly property string cny: "\uf157"
- readonly property string code: "\uf121"
- readonly property string codeFork: "\uf126"
- readonly property string codepen: "\uf1cb"
- readonly property string coffee: "\uf0f4"
- readonly property string cog: "\uf013"
- readonly property string cogs: "\uf085"
- readonly property string columns: "\uf0db"
- readonly property string comment: "\uf075"
- readonly property string commentO: "\uf0e5"
- readonly property string commenting: "\uf27a"
- readonly property string commentingO: "\uf27b"
- readonly property string comments: "\uf086"
- readonly property string commentsO: "\uf0e6"
- readonly property string compass: "\uf14e"
- readonly property string compress: "\uf066"
- readonly property string connectdevelop: "\uf20e"
- readonly property string contao: "\uf26d"
- readonly property string copy: "\uf0c5"
- readonly property string copyright: "\uf1f9"
- readonly property string creativeCommons: "\uf25e"
- readonly property string creditCard: "\uf09d"
- readonly property string crop: "\uf125"
- readonly property string crosshairs: "\uf05b"
- readonly property string css3: "\uf13c"
- readonly property string cube: "\uf1b2"
- readonly property string cubes: "\uf1b3"
- readonly property string cut: "\uf0c4"
- readonly property string cutlery: "\uf0f5"
- readonly property string dashboard: "\uf0e4"
- readonly property string dashcube: "\uf210"
- readonly property string database: "\uf1c0"
- readonly property string dedent: "\uf03b"
- readonly property string delicious: "\uf1a5"
- readonly property string desktop: "\uf108"
- readonly property string deviantart: "\uf1bd"
- readonly property string diamond: "\uf219"
- readonly property string digg: "\uf1a6"
- readonly property string dollar: "\uf155"
- readonly property string dotCircleO: "\uf192"
- readonly property string download: "\uf019"
- readonly property string dribbble: "\uf17d"
- readonly property string dropbox: "\uf16b"
- readonly property string drupal: "\uf1a9"
- readonly property string edit: "\uf044"
- readonly property string eject: "\uf052"
- readonly property string ellipsisH: "\uf141"
- readonly property string ellipsisV: "\uf142"
- readonly property string empire: "\uf1d1"
- readonly property string envelope: "\uf0e0"
- readonly property string envelopeO: "\uf003"
- readonly property string envelopeSquare: "\uf199"
- readonly property string eraser: "\uf12d"
- readonly property string eur: "\uf153"
- readonly property string euro: "\uf153"
- readonly property string exchange: "\uf0ec"
- readonly property string exclamation: "\uf12a"
- readonly property string exclamationCircle: "\uf06a"
- readonly property string exclamationTriangle: "\uf071"
- readonly property string expand: "\uf065"
- readonly property string expeditedssl: "\uf23e"
- readonly property string externalLink: "\uf08e"
- readonly property string externalLinkSquare: "\uf14c"
- readonly property string eye: "\uf06e"
- readonly property string eyeSlash: "\uf070"
- readonly property string eyedropper: "\uf1fb"
- readonly property string facebook: "\uf09a"
- readonly property string facebookF: "\uf09a"
- readonly property string facebookOfficial: "\uf230"
- readonly property string facebookSquare: "\uf082"
- readonly property string fastBackward: "\uf049"
- readonly property string fastForward: "\uf050"
- readonly property string fax: "\uf1ac"
- readonly property string feed: "\uf09e"
- readonly property string female: "\uf182"
- readonly property string fighterJet: "\uf0fb"
- readonly property string file: "\uf15b"
- readonly property string fileArchiveO: "\uf1c6"
- readonly property string fileAudioO: "\uf1c7"
- readonly property string fileCodeO: "\uf1c9"
- readonly property string fileExcelO: "\uf1c3"
- readonly property string fileImageO: "\uf1c5"
- readonly property string fileMovieO: "\uf1c8"
- readonly property string fileO: "\uf016"
- readonly property string filePdfO: "\uf1c1"
- readonly property string filePhotoO: "\uf1c5"
- readonly property string filePictureO: "\uf1c5"
- readonly property string filePowerpointO: "\uf1c4"
- readonly property string fileSoundO: "\uf1c7"
- readonly property string fileText: "\uf15c"
- readonly property string fileTextO: "\uf0f6"
- readonly property string fileVideoO: "\uf1c8"
- readonly property string fileWordO: "\uf1c2"
- readonly property string fileZipO: "\uf1c6"
- readonly property string filesO: "\uf0c5"
- readonly property string film: "\uf008"
- readonly property string filter: "\uf0b0"
- readonly property string fire: "\uf06d"
- readonly property string fireExtinguisher: "\uf134"
- readonly property string firefox: "\uf269"
- readonly property string flag: "\uf024"
- readonly property string flagCheckered: "\uf11e"
- readonly property string flagO: "\uf11d"
- readonly property string flash: "\uf0e7"
- readonly property string flask: "\uf0c3"
- readonly property string flickr: "\uf16e"
- readonly property string floppyO: "\uf0c7"
- readonly property string folder: "\uf07b"
- readonly property string folderO: "\uf114"
- readonly property string folderOpen: "\uf07c"
- readonly property string folderOpenO: "\uf115"
- readonly property string font: "\uf031"
- readonly property string fonticons: "\uf280"
- readonly property string forumbee: "\uf211"
- readonly property string forward: "\uf04e"
- readonly property string foursquare: "\uf180"
- readonly property string frownO: "\uf119"
- readonly property string futbolO: "\uf1e3"
- readonly property string gamepad: "\uf11b"
- readonly property string gavel: "\uf0e3"
- readonly property string gbp: "\uf154"
- readonly property string ge: "\uf1d1"
- readonly property string gear: "\uf013"
- readonly property string gears: "\uf085"
- readonly property string genderless: "\uf22d"
- readonly property string getPocket: "\uf265"
- readonly property string gg: "\uf260"
- readonly property string ggCircle: "\uf261"
- readonly property string gift: "\uf06b"
- readonly property string git: "\uf1d3"
- readonly property string gitSquare: "\uf1d2"
- readonly property string github: "\uf09b"
- readonly property string githubAlt: "\uf113"
- readonly property string githubSquare: "\uf092"
- readonly property string gittip: "\uf184"
- readonly property string glass: "\uf000"
- readonly property string globe: "\uf0ac"
- readonly property string google: "\uf1a0"
- readonly property string googlePlus: "\uf0d5"
- readonly property string googlePlusSquare: "\uf0d4"
- readonly property string googleWallet: "\uf1ee"
- readonly property string graduationCap: "\uf19d"
- readonly property string gratipay: "\uf184"
- readonly property string group: "\uf0c0"
- readonly property string hSquare: "\uf0fd"
- readonly property string hackerNews: "\uf1d4"
- readonly property string handGrabO: "\uf255"
- readonly property string handLizardO: "\uf258"
- readonly property string handODown: "\uf0a7"
- readonly property string handOLeft: "\uf0a5"
- readonly property string handORight: "\uf0a4"
- readonly property string handOUp: "\uf0a6"
- readonly property string handPaperO: "\uf256"
- readonly property string handPeaceO: "\uf25b"
- readonly property string handPointerO: "\uf25a"
- readonly property string handRockO: "\uf255"
- readonly property string handScissorsO: "\uf257"
- readonly property string handSpockO: "\uf259"
- readonly property string handStopO: "\uf256"
- readonly property string hddO: "\uf0a0"
- readonly property string header: "\uf1dc"
- readonly property string headphones: "\uf025"
- readonly property string heart: "\uf004"
- readonly property string heartO: "\uf08a"
- readonly property string heartbeat: "\uf21e"
- readonly property string history: "\uf1da"
- readonly property string home: "\uf015"
- readonly property string hospitalO: "\uf0f8"
- readonly property string hotel: "\uf236"
- readonly property string hourglass: "\uf254"
- readonly property string hourglass1: "\uf251"
- readonly property string hourglass2: "\uf252"
- readonly property string hourglass3: "\uf253"
- readonly property string hourglassEnd: "\uf253"
- readonly property string hourglassHalf: "\uf252"
- readonly property string hourglassO: "\uf250"
- readonly property string hourglassStart: "\uf251"
- readonly property string houzz: "\uf27c"
- readonly property string html5: "\uf13b"
- readonly property string iCursor: "\uf246"
- readonly property string ils: "\uf20b"
- readonly property string image: "\uf03e"
- readonly property string inbox: "\uf01c"
- readonly property string indent: "\uf03c"
- readonly property string industry: "\uf275"
- readonly property string info: "\uf129"
- readonly property string infoCircle: "\uf05a"
- readonly property string inr: "\uf156"
- readonly property string instagram: "\uf16d"
- readonly property string institution: "\uf19c"
- readonly property string internetExplorer: "\uf26b"
- readonly property string intersex: "\uf224"
- readonly property string ioxhost: "\uf208"
- readonly property string italic: "\uf033"
- readonly property string joomla: "\uf1aa"
- readonly property string jpy: "\uf157"
- readonly property string jsfiddle: "\uf1cc"
- readonly property string key: "\uf084"
- readonly property string keyboardO: "\uf11c"
- readonly property string krw: "\uf159"
- readonly property string language: "\uf1ab"
- readonly property string laptop: "\uf109"
- readonly property string lastfm: "\uf202"
- readonly property string lastfmSquare: "\uf203"
- readonly property string leaf: "\uf06c"
- readonly property string leanpub: "\uf212"
- readonly property string legal: "\uf0e3"
- readonly property string lemonO: "\uf094"
- readonly property string levelDown: "\uf149"
- readonly property string levelUp: "\uf148"
- readonly property string lifeBouy: "\uf1cd"
- readonly property string lifeBuoy: "\uf1cd"
- readonly property string lifeRing: "\uf1cd"
- readonly property string lifeSaver: "\uf1cd"
- readonly property string lightbulbO: "\uf0eb"
- readonly property string lineChart: "\uf201"
- readonly property string link: "\uf0c1"
- readonly property string linkedin: "\uf0e1"
- readonly property string linkedinSquare: "\uf08c"
- readonly property string linux: "\uf17c"
- readonly property string list: "\uf03a"
- readonly property string listAlt: "\uf022"
- readonly property string listOl: "\uf0cb"
- readonly property string listUl: "\uf0ca"
- readonly property string locationArrow: "\uf124"
- readonly property string lock: "\uf023"
- readonly property string longArrowDown: "\uf175"
- readonly property string longArrowLeft: "\uf177"
- readonly property string longArrowRight: "\uf178"
- readonly property string longArrowUp: "\uf176"
- readonly property string magic: "\uf0d0"
- readonly property string magnet: "\uf076"
- readonly property string mailForward: "\uf064"
- readonly property string mailReply: "\uf112"
- readonly property string mailReplyAll: "\uf122"
- readonly property string male: "\uf183"
- readonly property string map: "\uf279"
- readonly property string mapMarker: "\uf041"
- readonly property string mapO: "\uf278"
- readonly property string mapPin: "\uf276"
- readonly property string mapSigns: "\uf277"
- readonly property string mars: "\uf222"
- readonly property string marsDouble: "\uf227"
- readonly property string marsStroke: "\uf229"
- readonly property string marsStrokeH: "\uf22b"
- readonly property string marsStrokeV: "\uf22a"
- readonly property string maxcdn: "\uf136"
- readonly property string meanpath: "\uf20c"
- readonly property string medium: "\uf23a"
- readonly property string medkit: "\uf0fa"
- readonly property string mehO: "\uf11a"
- readonly property string mercury: "\uf223"
- readonly property string microphone: "\uf130"
- readonly property string microphoneSlash: "\uf131"
- readonly property string minus: "\uf068"
- readonly property string minusCircle: "\uf056"
- readonly property string minusSquare: "\uf146"
- readonly property string minusSquareO: "\uf147"
- readonly property string mobile: "\uf10b"
- readonly property string mobilePhone: "\uf10b"
- readonly property string money: "\uf0d6"
- readonly property string moonO: "\uf186"
- readonly property string mortarBoard: "\uf19d"
- readonly property string motorcycle: "\uf21c"
- readonly property string mousePointer: "\uf245"
- readonly property string music: "\uf001"
- readonly property string navicon: "\uf0c9"
- readonly property string neuter: "\uf22c"
- readonly property string newspaperO: "\uf1ea"
- readonly property string objectGroup: "\uf247"
- readonly property string objectUngroup: "\uf248"
- readonly property string odnoklassniki: "\uf263"
- readonly property string odnoklassnikiSquare: "\uf264"
- readonly property string opencart: "\uf23d"
- readonly property string openid: "\uf19b"
- readonly property string opera: "\uf26a"
- readonly property string optinMonster: "\uf23c"
- readonly property string outdent: "\uf03b"
- readonly property string pagelines: "\uf18c"
- readonly property string paintBrush: "\uf1fc"
- readonly property string paperPlane: "\uf1d8"
- readonly property string paperPlaneO: "\uf1d9"
- readonly property string paperclip: "\uf0c6"
- readonly property string paragraph: "\uf1dd"
- readonly property string paste: "\uf0ea"
- readonly property string pause: "\uf04c"
- readonly property string paw: "\uf1b0"
- readonly property string paypal: "\uf1ed"
- readonly property string pencil: "\uf040"
- readonly property string pencilSquare: "\uf14b"
- readonly property string pencilSquareO: "\uf044"
- readonly property string phone: "\uf095"
- readonly property string phoneSquare: "\uf098"
- readonly property string photo: "\uf03e"
- readonly property string pictureO: "\uf03e"
- readonly property string pieChart: "\uf200"
- readonly property string piedPiper: "\uf1a7"
- readonly property string piedPiperAlt: "\uf1a8"
- readonly property string pinterest: "\uf0d2"
- readonly property string pinterestP: "\uf231"
- readonly property string pinterestSquare: "\uf0d3"
- readonly property string plane: "\uf072"
- readonly property string play: "\uf04b"
- readonly property string playCircle: "\uf144"
- readonly property string playCircleO: "\uf01d"
- readonly property string plug: "\uf1e6"
- readonly property string plus: "\uf067"
- readonly property string plusCircle: "\uf055"
- readonly property string plusSquare: "\uf0fe"
- readonly property string plusSquareO: "\uf196"
- readonly property string powerOff: "\uf011"
- // Manually edited. Was "print"
- readonly property string printer: "\uf02f"
- readonly property string puzzlePiece: "\uf12e"
- readonly property string qq: "\uf1d6"
- readonly property string qrcode: "\uf029"
- readonly property string question: "\uf128"
- readonly property string questionCircle: "\uf059"
- readonly property string quoteLeft: "\uf10d"
- readonly property string quoteRight: "\uf10e"
- readonly property string ra: "\uf1d0"
- readonly property string random: "\uf074"
- readonly property string rebel: "\uf1d0"
- readonly property string recycle: "\uf1b8"
- readonly property string reddit: "\uf1a1"
- readonly property string redditSquare: "\uf1a2"
- readonly property string refresh: "\uf021"
- readonly property string registered: "\uf25d"
- readonly property string remove: "\uf00d"
- readonly property string renren: "\uf18b"
- readonly property string reorder: "\uf0c9"
- readonly property string repeat: "\uf01e"
- readonly property string reply: "\uf112"
- readonly property string replyAll: "\uf122"
- readonly property string retweet: "\uf079"
- readonly property string rmb: "\uf157"
- readonly property string road: "\uf018"
- readonly property string rocket: "\uf135"
- readonly property string rotateLeft: "\uf0e2"
- readonly property string rotateRight: "\uf01e"
- readonly property string rouble: "\uf158"
- readonly property string rss: "\uf09e"
- readonly property string rssSquare: "\uf143"
- readonly property string rub: "\uf158"
- readonly property string ruble: "\uf158"
- readonly property string rupee: "\uf156"
- readonly property string safari: "\uf267"
- readonly property string save: "\uf0c7"
- readonly property string scissors: "\uf0c4"
- readonly property string search: "\uf002"
- readonly property string searchMinus: "\uf010"
- readonly property string searchPlus: "\uf00e"
- readonly property string sellsy: "\uf213"
- readonly property string send: "\uf1d8"
- readonly property string sendO: "\uf1d9"
- readonly property string server: "\uf233"
- readonly property string share: "\uf064"
- readonly property string shareAlt: "\uf1e0"
- readonly property string shareAltSquare: "\uf1e1"
- readonly property string shareSquare: "\uf14d"
- readonly property string shareSquareO: "\uf045"
- readonly property string shekel: "\uf20b"
- readonly property string sheqel: "\uf20b"
- readonly property string shield: "\uf132"
- readonly property string ship: "\uf21a"
- readonly property string shirtsinbulk: "\uf214"
- readonly property string shoppingCart: "\uf07a"
- readonly property string signIn: "\uf090"
- readonly property string signOut: "\uf08b"
- readonly property string signal: "\uf012"
- readonly property string simplybuilt: "\uf215"
- readonly property string sitemap: "\uf0e8"
- readonly property string skyatlas: "\uf216"
- readonly property string skype: "\uf17e"
- readonly property string slack: "\uf198"
- readonly property string sliders: "\uf1de"
- readonly property string slideshare: "\uf1e7"
- readonly property string smileO: "\uf118"
- readonly property string soccerBallO: "\uf1e3"
- readonly property string sort: "\uf0dc"
- readonly property string sortAlphaAsc: "\uf15d"
- readonly property string sortAlphaDesc: "\uf15e"
- readonly property string sortAmountAsc: "\uf160"
- readonly property string sortAmountDesc: "\uf161"
- readonly property string sortAsc: "\uf0de"
- readonly property string sortDesc: "\uf0dd"
- readonly property string sortDown: "\uf0dd"
- readonly property string sortNumericAsc: "\uf162"
- readonly property string sortNumericDesc: "\uf163"
- readonly property string sortUp: "\uf0de"
- readonly property string soundcloud: "\uf1be"
- readonly property string spaceShuttle: "\uf197"
- readonly property string spinner: "\uf110"
- readonly property string spoon: "\uf1b1"
- readonly property string spotify: "\uf1bc"
- readonly property string square: "\uf0c8"
- readonly property string squareO: "\uf096"
- readonly property string stackExchange: "\uf18d"
- readonly property string stackOverflow: "\uf16c"
- readonly property string star: "\uf005"
- readonly property string starHalf: "\uf089"
- readonly property string starHalfEmpty: "\uf123"
- readonly property string starHalfFull: "\uf123"
- readonly property string starHalfO: "\uf123"
- readonly property string starO: "\uf006"
- readonly property string steam: "\uf1b6"
- readonly property string steamSquare: "\uf1b7"
- readonly property string stepBackward: "\uf048"
- readonly property string stepForward: "\uf051"
- readonly property string stethoscope: "\uf0f1"
- readonly property string stickyNote: "\uf249"
- readonly property string stickyNoteO: "\uf24a"
- readonly property string stop: "\uf04d"
- readonly property string streetView: "\uf21d"
- readonly property string strikethrough: "\uf0cc"
- readonly property string stumbleupon: "\uf1a4"
- readonly property string stumbleuponCircle: "\uf1a3"
- readonly property string subscript: "\uf12c"
- readonly property string subway: "\uf239"
- readonly property string suitcase: "\uf0f2"
- readonly property string sunO: "\uf185"
- readonly property string superscript: "\uf12b"
- readonly property string support: "\uf1cd"
- readonly property string table: "\uf0ce"
- readonly property string tablet: "\uf10a"
- readonly property string tachometer: "\uf0e4"
- readonly property string tag: "\uf02b"
- readonly property string tags: "\uf02c"
- readonly property string tasks: "\uf0ae"
- readonly property string taxi: "\uf1ba"
- readonly property string television: "\uf26c"
- readonly property string tencentWeibo: "\uf1d5"
- readonly property string terminal: "\uf120"
- readonly property string textHeight: "\uf034"
- readonly property string textWidth: "\uf035"
- readonly property string th: "\uf00a"
- readonly property string thLarge: "\uf009"
- readonly property string thList: "\uf00b"
- readonly property string thumbTack: "\uf08d"
- readonly property string thumbsDown: "\uf165"
- readonly property string thumbsODown: "\uf088"
- readonly property string thumbsOUp: "\uf087"
- readonly property string thumbsUp: "\uf164"
- readonly property string ticket: "\uf145"
- readonly property string times: "\uf00d"
- readonly property string timesCircle: "\uf057"
- readonly property string timesCircleO: "\uf05c"
- readonly property string tint: "\uf043"
- readonly property string toggleDown: "\uf150"
- readonly property string toggleLeft: "\uf191"
- readonly property string toggleOff: "\uf204"
- readonly property string toggleOn: "\uf205"
- readonly property string toggleRight: "\uf152"
- readonly property string toggleUp: "\uf151"
- readonly property string trademark: "\uf25c"
- readonly property string train: "\uf238"
- readonly property string transgender: "\uf224"
- readonly property string transgenderAlt: "\uf225"
- readonly property string trash: "\uf1f8"
- readonly property string trashO: "\uf014"
- readonly property string tree: "\uf1bb"
- readonly property string trello: "\uf181"
- readonly property string tripadvisor: "\uf262"
- readonly property string trophy: "\uf091"
- readonly property string truck: "\uf0d1"
- // Reserved word. Use turkishLira
- // readonly property string try: "\uf195"
- readonly property string tty: "\uf1e4"
- readonly property string tumblr: "\uf173"
- readonly property string tumblrSquare: "\uf174"
- readonly property string turkishLira: "\uf195"
- readonly property string tv: "\uf26c"
- readonly property string twitch: "\uf1e8"
- readonly property string twitter: "\uf099"
- readonly property string twitterSquare: "\uf081"
- readonly property string umbrella: "\uf0e9"
- readonly property string underline: "\uf0cd"
- readonly property string undo: "\uf0e2"
- readonly property string university: "\uf19c"
- readonly property string unlink: "\uf127"
- readonly property string unlock: "\uf09c"
- readonly property string unlockAlt: "\uf13e"
- readonly property string unsorted: "\uf0dc"
- readonly property string upload: "\uf093"
- readonly property string usd: "\uf155"
- readonly property string user: "\uf007"
- readonly property string userMd: "\uf0f0"
- readonly property string userPlus: "\uf234"
- readonly property string userSecret: "\uf21b"
- readonly property string userTimes: "\uf235"
- readonly property string users: "\uf0c0"
- readonly property string venus: "\uf221"
- readonly property string venusDouble: "\uf226"
- readonly property string venusMars: "\uf228"
- readonly property string viacoin: "\uf237"
- readonly property string videoCamera: "\uf03d"
- readonly property string vimeo: "\uf27d"
- readonly property string vimeoSquare: "\uf194"
- readonly property string vine: "\uf1ca"
- readonly property string vk: "\uf189"
- readonly property string volumeDown: "\uf027"
- readonly property string volumeOff: "\uf026"
- readonly property string volumeUp: "\uf028"
- readonly property string warning: "\uf071"
- readonly property string wechat: "\uf1d7"
- readonly property string weibo: "\uf18a"
- readonly property string weixin: "\uf1d7"
- readonly property string whatsapp: "\uf232"
- readonly property string wheelchair: "\uf193"
- readonly property string wifi: "\uf1eb"
- readonly property string wikipediaW: "\uf266"
- readonly property string windows: "\uf17a"
- readonly property string won: "\uf159"
- readonly property string wordpress: "\uf19a"
- readonly property string wrench: "\uf0ad"
- readonly property string xing: "\uf168"
- readonly property string xingSquare: "\uf169"
- readonly property string yCombinator: "\uf23b"
- readonly property string yCombinatorSquare: "\uf1d4"
- readonly property string yahoo: "\uf19e"
- readonly property string yc: "\uf23b"
- readonly property string ycSquare: "\uf1d4"
- readonly property string yelp: "\uf1e9"
- readonly property string yen: "\uf157"
- readonly property string youtube: "\uf167"
- readonly property string youtubePlay: "\uf16a"
- readonly property string youtubeSquare: "\uf166"
-}
diff --git a/tests/manual/shared/FontAwesomeIcon.qml b/tests/manual/shared/FontAwesomeIcon.qml
deleted file mode 100644
index f46ed364..00000000
--- a/tests/manual/shared/FontAwesomeIcon.qml
+++ /dev/null
@@ -1,58 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-import QtQuick 2.12
-import "qrc:/shared"
-
-Text {
- id: icon
- property alias iconId: icon.text
- property alias size: icon.font.pixelSize
- font.family: FontAwesome.fontLoader.name
-}
diff --git a/tests/manual/shared/qmldir b/tests/manual/shared/qmldir
deleted file mode 100644
index 3cb55667..00000000
--- a/tests/manual/shared/qmldir
+++ /dev/null
@@ -1,4 +0,0 @@
-depends QtQuick 2.6
-singleton FontAwesome 1.0 FontAwesome.qml
-FontAwesomeIcon 1.0 FontAwesomeIcon.qml
-
diff --git a/tests/manual/shared/shared.qrc b/tests/manual/shared/shared.qrc
deleted file mode 100644
index 8dbb3421..00000000
--- a/tests/manual/shared/shared.qrc
+++ /dev/null
@@ -1,8 +0,0 @@
-<RCC>
- <qresource prefix="/shared">
- <file>FontAwesome.qml</file>
- <file>FontAwesomeIcon.qml</file>
- <file>FontAwesome.otf</file>
- <file>qmldir</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/styles-cover-flow/CoverFlowDelegate.qml b/tests/manual/styles-cover-flow/CoverFlowDelegate.qml
deleted file mode 100644
index 474a189a..00000000
--- a/tests/manual/styles-cover-flow/CoverFlowDelegate.qml
+++ /dev/null
@@ -1,136 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtGraphicalEffects 1.12
-import QtQuick 2.12
-
-Item {
- id: root
- width: PathView.view.delegateSize
- height: width
- z: PathView.zOrder
-
- transform: [
- Rotation {
- angle: root.PathView.rotateY
- origin.x: sourceImage.width / 2
- origin.y: sourceImage.height * 0.3
- axis.x: 0
- axis.y: 1
- axis.z: 0
- },
- Scale {
- xScale: 1.0
- yScale: root.PathView.scale
- origin.x: sourceImage.width / 2
- origin.y: sourceImage.height * 0.4
- }
- ]
-
- Image {
- id: sourceImage
- width: root.PathView.view.delegateSize
- height: width
- fillMode: Image.PreserveAspectFit
- source: "file:/" + docImagesDir + model.source
-
- Rectangle {
- x: (sourceImage.width - sourceImage.paintedWidth) / 2
- width: sourceImage.paintedWidth + (index == 6 ? 2 : 1)
- height: sourceImage.height
- color: "transparent"
- border.color: "#f4f4f4"
- antialiasing: true
- visible: !model.dark
- }
- }
-
- ShaderEffectSource {
- id: reflection
- sourceItem: sourceImage
- y: sourceItem.height
- width: sourceItem.width
- height: sourceItem.height
-
- transform: [
- Rotation {
- origin.x: reflection.width / 2
- origin.y: reflection.height / 2
- axis.x: 1
- axis.y: 0
- axis.z: 0
- angle: 180
- }
- ]
- }
-
- Rectangle {
- objectName: sourceImage.source.toString().slice(-20)
- x: (parent.width - sourceImage.paintedWidth) / 2// + (paintedWidthDiff > 0 ? 1.0 - paintedWidthDiff : 0)
- y: reflection.y
- width: sourceImage.paintedWidth + (index == 6 ? 2 : 1)
- height: sourceImage.paintedHeight
-
- // TODO: figure out how to get perfect x/width without using the current width hack
-// readonly property real paintedWidthDiff: sourceImage.paintedWidth - Math.floor(sourceImage.paintedWidth)
-
- gradient: Gradient {
- GradientStop {
- position: 0.0
- color: Qt.rgba(backgroundColor.r, backgroundColor.g, backgroundColor.b, 0.33)
- }
- GradientStop {
- // This determines the point at which the reflection fades out.
- position: 1.0
- color: backgroundColor
- }
- }
- }
-}
diff --git a/tests/manual/styles-cover-flow/CoverFlowPath.qml b/tests/manual/styles-cover-flow/CoverFlowPath.qml
deleted file mode 100644
index 37e7f894..00000000
--- a/tests/manual/styles-cover-flow/CoverFlowPath.qml
+++ /dev/null
@@ -1,157 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Path {
- // Point 1
- property PathView pathView
-
- startX: 0
- startY: pathView.centerY
-
- PathAttribute {
- name: "rotateY"
- value: 50.0
- }
- PathAttribute {
- name: "scale"
- value: 0.7
- }
- PathAttribute {
- name: "zOrder"
- value: 1.0
- }
-
- // Line to point 2
- PathLine {
- x: pathView.centerX - pathView.delegateSize * 0.4
- y: pathView.centerY
- }
- PathPercent {
- value: 0.44
- }
- PathAttribute {
- name: "rotateY"
- value: 50.0
- }
- PathAttribute {
- name: "scale"
- value: 0.7
- }
- PathAttribute {
- name: "zOrder"
- value: 10.0
- }
-
- // Quad to point 3
- PathQuad {
- x: pathView.centerX
- y: pathView.centerY + pathView.delegateSize * 0.04
- controlX: pathView.centerX - pathView.delegateSize * 0.2
- controlY: pathView.centerY + pathView.delegateSize * 0.04
- }
- PathPercent {
- value: 0.5
- }
- PathAttribute {
- name: "rotateY"
- value: 0.0
- }
- PathAttribute {
- name: "scale"
- value: 1.0
- }
- PathAttribute {
- name: "zOrder"
- value: 50.0
- }
-
- // Quad to point 4
- PathQuad {
- x: pathView.centerX + pathView.delegateSize * 0.4
- y: pathView.centerY
- controlX: pathView.centerX + pathView.delegateSize * 0.2
- controlY: pathView.centerY + pathView.delegateSize * 0.04
- }
- PathPercent {
- value: 0.56
- }
- PathAttribute {
- name: "rotateY"
- value: -50.0
- }
- PathAttribute {
- name: "scale"
- value: 0.7
- }
- PathAttribute {
- name: "zOrder"
- value: 10.0
- }
-
- // Line to point 5
- PathLine {
- x: pathView.width
- y: pathView.centerY
- }
- PathAttribute {
- name: "rotateY"
- value: -50.0
- }
- PathAttribute {
- name: "scale"
- value: 0.7
- }
- PathAttribute {
- name: "zOrder"
- value: 1.0
- }
-}
diff --git a/tests/manual/styles-cover-flow/styles-cover-flow.cpp b/tests/manual/styles-cover-flow/styles-cover-flow.cpp
deleted file mode 100644
index d665d613..00000000
--- a/tests/manual/styles-cover-flow/styles-cover-flow.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.rootContext()->setContextProperty("docImagesDir", QString(DOC_IMAGES_DIR));
- engine.load(QUrl("qrc:/styles-cover-flow.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/styles-cover-flow/styles-cover-flow.pro b/tests/manual/styles-cover-flow/styles-cover-flow.pro
deleted file mode 100644
index 2faa9fba..00000000
--- a/tests/manual/styles-cover-flow/styles-cover-flow.pro
+++ /dev/null
@@ -1,11 +0,0 @@
-TEMPLATE = app
-TARGET = stylescoverflow
-QT += quick quickcontrols2
-
-SOURCES += \
- styles-cover-flow.cpp
-
-RESOURCES += \
- $$files(*.qml, true)
-
-DEFINES += DOC_IMAGES_DIR=\\\"$$PWD/../../../src/imports/controls/doc/images/\\\"
diff --git a/tests/manual/styles-cover-flow/styles-cover-flow.qml b/tests/manual/styles-cover-flow/styles-cover-flow.qml
deleted file mode 100644
index 273f0869..00000000
--- a/tests/manual/styles-cover-flow/styles-cover-flow.qml
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.12
-
-Window {
- // Different delegate positions and widths and window background colors
- // can cause some unwanted "rogue pixels", so an easy way to get it perfect
- // is to mess with the width.
- width: 814
- height: 512
- visible: true
- color: backgroundColor
- flags: Qt.FramelessWindowHint
-
- readonly property color backgroundColor: "#ffffff"
-
- Shortcut {
- sequence: "Ctrl+Q"
- onActivated: Qt.quit()
- }
-
- PathView {
- id: view
- anchors.fill: parent
- anchors.leftMargin: 130
- anchors.rightMargin: 130
- model: ListModel {
- ListElement { source: "qtquickcontrols2-default.png"; dark: false }
- ListElement { source: "qtquickcontrols2-fusion.png"; dark: false }
- ListElement { source: "qtquickcontrols2-universal-light.png"; dark: false }
- ListElement { source: "qtquickcontrols2-universal-dark.png"; dark: true }
- ListElement { source: "qtquickcontrols2-material-dark.png"; dark: true }
- ListElement { source: "qtquickcontrols2-imagine.png"; dark: false }
- ListElement { source: "qtquickcontrols2-material-light.png"; dark: false }
- }
-
- highlightRangeMode: PathView.StrictlyEnforceRange
- preferredHighlightBegin: 0.5
- preferredHighlightEnd: 0.5
- pathItemCount: 9
-
- property real centerX: width / 2
- property real centerY: height * 0.4
- property real delegateSize: 393 / 2
-
- path: CoverFlowPath {
- pathView: view
- }
- delegate: CoverFlowDelegate {}
- }
-}
diff --git a/tests/manual/styles/styles.cpp b/tests/manual/styles/styles.cpp
deleted file mode 100644
index a0f0de7b..00000000
--- a/tests/manual/styles/styles.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/styles.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/styles/styles.pro b/tests/manual/styles/styles.pro
deleted file mode 100644
index 060ab4f7..00000000
--- a/tests/manual/styles/styles.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = app
-TARGET = styles
-QT += quick quickcontrols2
-
-SOURCES += \
- styles.cpp
-
-RESOURCES += \
- styles.qml
diff --git a/tests/manual/styles/styles.qml b/tests/manual/styles/styles.qml
deleted file mode 100644
index 7c4721d1..00000000
--- a/tests/manual/styles/styles.qml
+++ /dev/null
@@ -1,115 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-
-ApplicationWindow {
- id: window
-
- visible: true
- minimumWidth: column.implicitWidth + 80
- minimumHeight: column.implicitHeight + 80
- title: "Qt Quick Controls 2 - Styles"
-
- // for taking frameless screenshots:
- // flags: Qt.Window | Qt.FramelessWindowHint
-
- ColumnLayout {
- id: column
-
- spacing: 20
- anchors.fill: parent
- anchors.margins: 40
-
- GroupBox {
- title: "Font Size"
- topPadding: 30
- background.visible: false
-
- ColumnLayout {
- anchors.fill: parent
- anchors.leftMargin: 20
-
- RadioButton { leftPadding: 0; text: "Small" }
- RadioButton { leftPadding: 0; text: "Medium"; checked: true }
- RadioButton { leftPadding: 0; text: "Large" }
- }
- }
-
- GroupBox {
- title: "Audio"
- topPadding: 30
- background.visible: false
-
- GridLayout {
- columns: 2
- columnSpacing: 30
- anchors.fill: parent
- anchors.leftMargin: 20
-
- Label { text: "Volume" }
- Slider { value: 1.0 }
- Label { text: "Bass" }
- Slider { value: 0.75 }
- Label { text: "Treble" }
- Slider { value: 0.5 }
- }
- }
-
- Button {
- text: "Save"
- Layout.alignment: Qt.AlignRight
- }
-
- Item { Layout.fillHeight: true }
- }
-}
diff --git a/tests/manual/systemtrayicon/images/qt_logo_green_256.png b/tests/manual/systemtrayicon/images/qt_logo_green_256.png
deleted file mode 100644
index 92243fd5..00000000
--- a/tests/manual/systemtrayicon/images/qt_logo_green_256.png
+++ /dev/null
Binary files differ
diff --git a/tests/manual/systemtrayicon/systemtrayicon.cpp b/tests/manual/systemtrayicon/systemtrayicon.cpp
deleted file mode 100644
index 1866a269..00000000
--- a/tests/manual/systemtrayicon/systemtrayicon.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QGuiApplication>
-#include <QQmlApplicationEngine>
-
-int main(int argc, char *argv[])
-{
- QGuiApplication app(argc, argv);
-
- QQmlApplicationEngine engine;
- engine.load(QUrl("qrc:/files/systemtrayicon.qml"));
- if (engine.rootObjects().isEmpty())
- return -1;
-
- return app.exec();
-}
diff --git a/tests/manual/systemtrayicon/systemtrayicon.pro b/tests/manual/systemtrayicon/systemtrayicon.pro
deleted file mode 100644
index 24b9caa0..00000000
--- a/tests/manual/systemtrayicon/systemtrayicon.pro
+++ /dev/null
@@ -1,9 +0,0 @@
-TEMPLATE = app
-TARGET = systemtrayicon
-QT += quick quickcontrols2
-
-SOURCES += \
- systemtrayicon.cpp
-
-RESOURCES += \
- systemtrayicon.qrc
diff --git a/tests/manual/systemtrayicon/systemtrayicon.qml b/tests/manual/systemtrayicon/systemtrayicon.qml
deleted file mode 100644
index a7e656d4..00000000
--- a/tests/manual/systemtrayicon/systemtrayicon.qml
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import Qt.labs.platform 1.0
-
-ApplicationWindow {
- id: window
-
- visible: true
- title: "Qt Quick Controls 2 - System Tray Icon"
-
- MenuBar {
- id: menuBar
-
- Menu {
- id: fileMenu
- title: qsTr("File")
-
- MenuItem {
- id : quitItem
- text : "Quit"
- onTriggered: Qt.quit()
- }
- }
- }
-
- SystemTrayIcon {
- visible: true
- iconSource: "qrc:/files/images/qt_logo_green_256.png"
-
- menu: Menu {
- MenuItem {
- text: qsTr("Quit")
- onTriggered: Qt.quit()
- }
- }
-
- onActivated: console.log("Activated")
- }
-}
diff --git a/tests/manual/systemtrayicon/systemtrayicon.qrc b/tests/manual/systemtrayicon/systemtrayicon.qrc
deleted file mode 100644
index 656476d9..00000000
--- a/tests/manual/systemtrayicon/systemtrayicon.qrc
+++ /dev/null
@@ -1,6 +0,0 @@
-<RCC>
- <qresource prefix="/files">
- <file>systemtrayicon.qml</file>
- <file>images/qt_logo_green_256.png</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/testbench/.gitignore b/tests/manual/testbench/.gitignore
deleted file mode 100644
index 75fae8bc..00000000
--- a/tests/manual/testbench/.gitignore
+++ /dev/null
@@ -1,83 +0,0 @@
-testbench
-*.png
-*.so
-*.so.*
-*.app
-*.exe
-*.dll
-*.dylib
-*.lib
-*.exp
-*.a
-*.la
-*.core
-*.moc
-*.o
-*.obj
-*.orig
-*.swp
-*.rej
-*.so
-*.pbxuser
-*.mode1
-*.mode1v3
-*_pch.h.cpp
-*_resource.rc
-*~
-.#*
-*.*#
-.qmake.stash
-.qmake.cache
-.qmake.vars
-*.prl
-tags
-.DS_Store
-*.debug
-Makefile*
-*.Debug
-*.Release
-*.prl
-*.pro.user
-*.qmlproject.user*
-moc_*.h
-moc_*.cpp
-ui_*.h
-qrc_*.cpp
-callgrind.out.*
-pcviewer.cfg
-*.flc
-.*.swp
-*.ib_pdb_index
-*.idb
-*.ilk
-*.pdb
-*.sln
-*.suo
-*.vcproj
-*vcproj.*.*.user
-*.ncb
-.pch
-.rcc
-.project
-.cproject
-.make.cache
-android-build
-app_process
-qtc-debugging-helper
-android-*.so-deployment-settings.json
-*.directory
-*_plugin_import.cpp
-*_wrapper.sh
-*_wrapper.bat
-*.mak
-*.xib
-*.plist
-*.pbxproj
-*_plugin_import.cpp
-*.xcsettings
-*.xcscheme
-*.xcodeproj
-qt.conf
-*.version
-*.version.in
-*.qmlc
diff --git a/tests/manual/testbench/ColorEditor.qml b/tests/manual/testbench/ColorEditor.qml
deleted file mode 100644
index 1e10d6d2..00000000
--- a/tests/manual/testbench/ColorEditor.qml
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-RowLayout {
- property alias labelText: label.text
- property string toolTipText
- property alias color: textField.text
-
- ToolTip.text: toolTipText
- ToolTip.visible: textField.hovered
-
- Layout.columnSpan: 2
-
- Label {
- id: label
-
- Layout.fillWidth: true
- }
-
- TextField {
- id: textField
-
- validator: RegExpValidator{
- regExp: /#?[0-9a-fA-F]*/
- }
-
- Layout.preferredWidth: 200
- }
-}
diff --git a/tests/manual/testbench/ControlContainer.qml b/tests/manual/testbench/ControlContainer.qml
deleted file mode 100644
index 095d3822..00000000
--- a/tests/manual/testbench/ControlContainer.qml
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-
-Item {
- id: container
-
- implicitWidth: delegate.implicitWidth
- implicitHeight: delegate.implicitHeight
-
- property var controlMetaObject
- property var states
-
- Loader {
- id: delegate
- sourceComponent: controlMetaObject ? controlMetaObject.component : null
-
- function is(state) {
- return container.states.indexOf(state) !== -1
- }
- }
-}
diff --git a/tests/manual/testbench/ExampleContainer.qml b/tests/manual/testbench/ExampleContainer.qml
deleted file mode 100644
index 5d2ac758..00000000
--- a/tests/manual/testbench/ExampleContainer.qml
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-Frame {
- id: container
-
- property var controlMetaObject
-
- ColumnLayout {
- id: exampleLayout
- anchors.centerIn: parent
-
- Label {
- text: !exampleLoader.active ? qsTr("Show example") : qsTr("Hide example")
-
- Layout.alignment: Qt.AlignHCenter
-
- MouseArea {
- anchors.fill: parent
- onClicked: exampleLoader.active = !exampleLoader.active
- }
- }
-
- Loader {
- id: exampleLoader
- active: false
- sourceComponent: controlMetaObject ? controlMetaObject.exampleComponent : null
-
- Layout.preferredHeight: active ? item.implicitHeight : 0
- }
- }
-}
diff --git a/tests/manual/testbench/README.md b/tests/manual/testbench/README.md
deleted file mode 100644
index bd434de6..00000000
--- a/tests/manual/testbench/README.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Style Testbench
-
-The Style Testbench provides a way to quickly see how controls look in different states with a given style.
-
-When run with the Imagine style, the testbench will react to changes to image assets and automatically fix and reload them.
-To use this functionality, click on the settings icon and then the settings menu item.
-From there, check "Use Custom Imagine Style Assets" and provide a path to your custom assets in the text field.
-If you want your 9-patch assets to be automatically fixed up (e.g. turn 4 pixel-thick 9-patch lines exported at
-@4x to a 1 pixel-thick line), check "Fix Imagine Style Assets".
-
-## Custom Text colors
-
-To use custom text colors, enable the "Use Custom Palette" option in the settings dialog, and then provide colors in the relevant fields. As an example, the WindowText palette role affects text that is displayed directly against the window (labels, flat button text, etc.), ButtonText affects text that is displayed against a button's background, and so on. A full list of color roles can be found here:
-
-http://doc.qt.io/qt-5/qpalette.html#ColorRole-enum
-
-The custom text color settings apply to every style that supports palettes, until turned off.
-
-The "Copy Palette Settings To Clipboard" button in the settings dialog can be used to copy the current colors and share them with others. Once someone has your custom colors, they can import them with the "Imort Palette Settings From Clipboard" button.
-
-## Tips
-
-- Ensure that 9-patch lines are black (#000000) or red (#ff0000). If these colors are slightly
- off (e.g. #010101), the assets won't display correctly when run in the application.
-- Don't use pure black in assets that have black 9-patch lines, as this will confuse the asset fixer.
-
-## Shortcuts
-
-| Name | Shortcut | Shortcut (Mac) | Description |
-|-------------------|--------------|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
-| Use Custom Assets | Ctrl+Shift+C | ⌘+Shift+C | If using the Imagine style, toggles between the default assets and the user's custom assets. Custom assets are specified in the settings dialog. |
-| Fix Custom Assets | Ctrl+Shift+X | ⌘+Shift+X | If using the Imagine style, manually fixes the assets. This is done automatically when "Automatically Fix Custom Assets" checkbox is checked. |
-| Reload Assets | Ctrl+R | ⌘+R | If using the Imagine style, reloads the assets from disk. This is usually done automatically. |
-| Search/Filter | Ctrl+F | ⌘+F | Filter the controls that are shown. Case-sensitive. |
-| Quit | Ctrl+Q | ⌘+Q | Quit the application. |
diff --git a/tests/manual/testbench/SettingsDialog.qml b/tests/manual/testbench/SettingsDialog.qml
deleted file mode 100644
index 71b4c342..00000000
--- a/tests/manual/testbench/SettingsDialog.qml
+++ /dev/null
@@ -1,453 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-import QtQuick.Layouts 1.12
-
-import App 1.0
-
-Dialog {
- id: settingsDialog
- title: "Settings"
- width: 500
- height: 400
- x: (parent.width - width) / 2
- y: (parent.height - height) / 2
-
- Imagine.path: defaultImaginePath
-
- property alias imaginePathTextField: imaginePathTextField
- property alias customImagineStyleCheckBox: customImagineStyleCheckBox
- property alias autoFixImagineAssetsCheckBox: autoFixImagineAssetsCheckBox
-
- onAboutToShow: {
- styleComboBox.currentIndex = styleComboBox.styleIndex
- customImagineStyleCheckBox.checked = settings.useCustomImaginePath
- imaginePathTextField.text = settings.imaginePath
- autoFixImagineAssetsCheckBox.checked = settings.autoFixImagineAssets
-
- updatePaletteSettingsControls(paletteSettings)
- }
-
- onAccepted: {
- settings.style = styleComboBox.displayText
- settings.useCustomImaginePath = customImagineStyleCheckBox.checked
- settings.imaginePath = imaginePathTextField.text
- settings.autoFixImagineAssets = autoFixImagineAssetsCheckBox.checked
-
- paletteSettings.useCustomPalette = useCustomPaletteCheckBox.checked
- paletteSettings.window = windowColorEditor.color
- paletteSettings.windowText = windowTextColorEditor.color
- paletteSettings.base = baseColorEditor.color
- paletteSettings.text = textColorEditor.color
- paletteSettings.button = buttonColorEditor.color
- paletteSettings.buttonText = buttonTextColorEditor.color
- paletteSettings.brightText = brightTextColorEditor.color
- paletteSettings.toolTipBase = toolTipBaseColorEditor.color
- paletteSettings.toolTipText = toolTipTextColorEditor.color
- paletteSettings.light = lightColorEditor.color
- paletteSettings.midlight = midlightColorEditor.color
- paletteSettings.dark = darkColorEditor.color
- paletteSettings.mid = midColorEditor.color
- paletteSettings.shadow = shadowColorEditor.color
- paletteSettings.highlight = highlightColorEditor.color
- paletteSettings.highlightedText = highlightedTextColorEditor.color
- paletteSettings.link = linkColorEditor.color
- }
-
- function updatePaletteSettingsControls(source) {
- useCustomPaletteCheckBox.checked = paletteSettings.useCustomPalette
- windowColorEditor.color = source.window
- windowTextColorEditor.color = source.windowText
- baseColorEditor.color = source.base
- textColorEditor.color = source.text
- buttonColorEditor.color = source.button
- buttonTextColorEditor.color = source.buttonText
- brightTextColorEditor.color = source.brightText
- toolTipBaseColorEditor.color = source.toolTipBase
- toolTipTextColorEditor.color = source.toolTipText
- lightColorEditor.color = source.light
- midlightColorEditor.color = source.midlight
- darkColorEditor.color = source.dark
- midColorEditor.color = source.mid
- shadowColorEditor.color = source.shadow
- highlightColorEditor.color = source.highlight
- highlightedTextColorEditor.color = source.highlightedText
- linkColorEditor.color = source.link
- }
-
- function paletteSettingsMap() {
- var map = ({});
- map.window = windowColorEditor.color
- map.windowText = windowTextColorEditor.color
- map.base = baseColorEditor.color
- map.text = textColorEditor.color
- map.button = buttonColorEditor.color
- map.buttonText = buttonTextColorEditor.color
- map.brightText = brightTextColorEditor.color
- map.toolTipBase = toolTipBaseColorEditor.color
- map.toolTipText = toolTipTextColorEditor.color
- map.light = lightColorEditor.color
- map.midlight = midlightColorEditor.color
- map.dark = darkColorEditor.color
- map.mid = midColorEditor.color
- map.shadow = shadowColorEditor.color
- map.highlight = highlightColorEditor.color
- map.highlightedText = highlightedTextColorEditor.color
- map.link = linkColorEditor.color
- return map;
- }
-
- Clipboard {
- id: clipboard
- }
-
- DirectoryValidator {
- id: directoryValidator
- path: imaginePathTextField.text
- }
-
- contentItem: Flickable {
- contentWidth: settingsDialog.availableWidth
- contentHeight: contentLayout.implicitHeight
- flickableDirection: Qt.Vertical
- clip: true
-
- ColumnLayout {
- id: contentLayout
- anchors.fill: parent
-
- GroupBox {
- title: qsTr("General")
- Layout.fillWidth: true
-
- GridLayout {
- columns: 2
-
- Label {
- text: "Style:"
- }
-
- ComboBox {
- id: styleComboBox
- model: availableStyles
-
- property int styleIndex: -1
-
- Component.onCompleted: {
- styleIndex = find(settings.style, Qt.MatchFixedString)
- if (styleIndex !== -1)
- currentIndex = styleIndex
- }
-
- Layout.fillWidth: true
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- Label {
- text: "Restart required"
- color: "#e41e25"
- opacity: styleComboBox.currentIndex !== styleComboBox.styleIndex ? 1.0 : 0.0
- Layout.topMargin: 12
- Layout.maximumHeight: styleComboBox.currentIndex !== styleComboBox.styleIndex ? implicitHeight : 0
- }
- }
- }
-
- GroupBox {
- title: qsTr("Imagine Style")
- visible: usingImagineStyle
- Layout.fillWidth: true
- Layout.columnSpan: 2
-
- GridLayout {
- columns: 2
- anchors.fill: parent
-
- CheckBox {
- id: customImagineStyleCheckBox
- text: qsTr("Use Custom Assets")
- enabled: usingImagineStyle
-
- Layout.columnSpan: 2
- }
-
- Label {
- text: "Asset Path"
- enabled: usingImagineStyle && customImagineStyleCheckBox.checked
- }
-
- TextField {
- id: imaginePathTextField
- text: settings.imaginePath
- enabled: usingImagineStyle && customImagineStyleCheckBox.checked
-
- Layout.preferredWidth: 200
- Layout.fillWidth: true
-
- ToolTip {
- text: "Path to a folder that contains Imagine style image assets"
- visible: imaginePathTextField.hovered
- delay: 500
- parent: imaginePathTextField
-
- Imagine.path: defaultImaginePath
- }
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- Label {
- text: directoryValidator.errorMessage
- color: "#e41e25"
- opacity: !directoryValidator.valid ? 1.0 : 0.0
- elide: Label.ElideMiddle
- Layout.topMargin: !directoryValidator.valid ? 12 : 0
- Layout.maximumHeight: !directoryValidator.valid ? implicitHeight : 0
-
- Layout.fillWidth: true
- }
-
- CheckBox {
- id: autoFixImagineAssetsCheckBox
- text: "Automatically Fix Custom Assets"
- enabled: usingImagineStyle && customImagineStyleCheckBox.checked
-
- Layout.columnSpan: 2
-
- ToolTip {
- text: "If set, custom Imagine style assets will be modified to be compliant whenever they have changed on disk"
- visible: autoFixImagineAssetsCheckBox.hovered
- delay: 500
- parent: imaginePathTextField
-
- Imagine.path: defaultImaginePath
- }
- }
- }
- }
-
- GroupBox {
- title: qsTr("Palette")
- Layout.fillWidth: true
-
- GridLayout {
- columns: 2
- anchors.fill: parent
-
- CheckBox {
- id: useCustomPaletteCheckBox
- text: qsTr("Use Custom Palette")
- }
-
- ColorEditor {
- id: windowColorEditor
- labelText: qsTr("Window")
- toolTipText: qsTr("A general background color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: windowTextColorEditor
- labelText: qsTr("WindowText")
- toolTipText: qsTr("A general foreground color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: baseColorEditor
- labelText: qsTr("Base")
- toolTipText: qsTr("Used mostly as the background color for text editor controls and items views. It is usually white or another light color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: textColorEditor
- labelText: qsTr("Text")
- toolTipText: qsTr("The foreground color used with Base. This is usually the same as the WindowText, in which case it must provide good contrast with Window and Base.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: buttonColorEditor
- labelText: qsTr("Button")
- toolTipText: qsTr("The general button background color. This background can be different from Window as some styles require a different background color for buttons.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: buttonTextColorEditor
- labelText: qsTr("ButtonText")
- toolTipText: qsTr("A foreground color used with the Button color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: brightTextColorEditor
- labelText: qsTr("BrightText")
- toolTipText: qsTr("A text color that is very different from WindowText, and contrasts well with e.g. Dark. Typically used for text that needs to be drawn where Text, WindowText or ButtonText would give poor contrast, such as on highlighted buttons.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: toolTipBaseColorEditor
- labelText: qsTr("ToolTipBase")
- toolTipText: qsTr("Used as the background color for tooltips.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: toolTipTextColorEditor
- labelText: qsTr("ToolTipText")
- toolTipText: qsTr("Used as the foreground color for tooltips.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: lightColorEditor
- labelText: qsTr("Light")
- toolTipText: qsTr("Lighter than Button.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: midlightColorEditor
- labelText: qsTr("Midlight")
- toolTipText: qsTr("Between Button and Light.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: darkColorEditor
- labelText: qsTr("Dark")
- toolTipText: qsTr("Darker than Button.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: midColorEditor
- labelText: qsTr("Mid")
- toolTipText: qsTr("Between Button and Dark.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: shadowColorEditor
- labelText: qsTr("Shadow")
- toolTipText: qsTr("A very dark color.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: highlightColorEditor
- labelText: qsTr("Highlight")
- toolTipText: qsTr("A color to indicate a selected item or the current item.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: linkColorEditor
- labelText: qsTr("Link")
- toolTipText: qsTr("A text color used for hyperlinks.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- ColorEditor {
- id: highlightedTextColorEditor
- labelText: qsTr("HighlightedText")
- toolTipText: qsTr("A text color that contrasts with Highlight.")
- enabled: useCustomPaletteCheckBox.checked
- }
-
- Button {
- text: qsTr("Copy Palette Settings To Clipboard")
- enabled: useCustomPaletteCheckBox.checked
- onClicked: clipboard.copy(paletteSettingsMap())
-
- Layout.columnSpan: 2
- Layout.alignment: Qt.AlignRight
- }
-
- Button {
- text: qsTr("Import Palette Settings From Clipboard")
- enabled: useCustomPaletteCheckBox.checked
- onClicked: updatePaletteSettingsControls(clipboard.paste())
-
- Layout.columnSpan: 2
- Layout.alignment: Qt.AlignRight
- }
- }
- }
-
- Item {
- Layout.fillHeight: true
- }
- }
- }
-
- footer: DialogButtonBox {
- Button {
- text: qsTr("OK")
- DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole
- enabled: !imaginePathTextField.enabled || (imaginePathTextField.enabled && directoryValidator.valid)
- }
- Button {
- text: qsTr("Cancel")
- DialogButtonBox.buttonRole: DialogButtonBox.RejectRole
- }
- }
-}
diff --git a/tests/manual/testbench/assetfixer.cpp b/tests/manual/testbench/assetfixer.cpp
deleted file mode 100644
index 4813dac5..00000000
--- a/tests/manual/testbench/assetfixer.cpp
+++ /dev/null
@@ -1,564 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "assetfixer.h"
-
-#include <QDebug>
-#include <QDir>
-#include <QDirIterator>
-#include <QImage>
-#include <QLoggingCategory>
-#include <QQmlApplicationEngine>
-#include <QQuickWindow>
-#include <QtMath>
-
-#include "directoryvalidator.h"
-
-Q_LOGGING_CATEGORY(lcAssetFixer, "qt.quick.controls.tools.testbench.assetfixer.brief")
-Q_LOGGING_CATEGORY(lcAssetFixerVerbose, "qt.quick.controls.tools.testbench.assetfixer.verbose")
-
-static const QColor black = Qt::black;
-static const QColor red = Qt::red;
-
-/*
- This class:
-
- - Watches a given asset directory for changes. When it notices a change in the directory's
- "last modification" time, it suggests that client code call fixAssets(). It suggests
- rather than just doing it itself because the client code (QML) may want to wait a second
- or two to see if more changes are coming before doing an expensive fixup, as exporting
- a bunch of files into a directory will cause several directoryChanged() emissions from
- QFileSystemWatcher.
- - Fixes 9-patch image assets via the function below.
-*/
-
-/*
- This function:
-
- - Crops the image to the area within the 9-patch lines if necessary.
- This can happen if e.g. a shadow is applied to an asset in Illustrator
- and it causes the image to be larger than necessary.
- - Reduces the thickness of the 9-patch lines. This is necessary to enable
- designers not to have to worry about creating one pixel-thick lines for
- each DPI variant of an asset; they can simply export the asset at each
- DPI variant as usual and this program will fix it for them.
-
- See README.md for more information.
-*/
-bool cropImageToLines(QImage *image)
-{
- QRect cropArea;
- /*
- We need to keep track of this because of the following case:
-
- ______________________
- ______________________
- ||
- oooooooooooooooooooooooo
- ||
-
- If we didn't keep track of thickness, the top edge's lines would be found fine,
- but then we'd look at the bottom edge and we'd accidentally pick up the left edge's lines.
- Keeping track of thickness ensures that we have some way of knowing if we're far enough
- in for the line to belong to a certain edge.
-
- Note that this approach is still limited, as it doesn't account for the top edge,
- but we have to start somewhere in order to find the thickness.
- */
- int thickness = 0;
-
- bool cropTop = false;
- bool foundOnePixelThick9PatchLine = false;
- // We have to go row by row because otherwise we might find a pixel that
- // belongs to e.g. the left edge.
- for (int y = 0; y < qFloor(image->height() / 2.0) && !cropTop && !foundOnePixelThick9PatchLine; ++y) {
- for (int x = 1; x < image->width() - 2 && !cropTop && !foundOnePixelThick9PatchLine; ++x) {
- const QColor pixelColor = image->pixelColor(x, y);
- if (pixelColor == black || pixelColor == red) {
- if (y == 0) {
- const QColor pixelColorBelow = image->pixelColor(x, y + 1);
- if (pixelColorBelow != black && pixelColorBelow != red) {
- // We've already found the top of the 9-patch line, and the row below it
- // is a different color, so we know that it's one pixel thick, and that we're done.
- // Note that we can't just assume all of the other edges are the same and return here,
- // as we also need to account for e.g. shadows.
- qCDebug(lcAssetFixerVerbose) << "found one-pixel-thick nine patch line on top edge at x" << x;
- foundOnePixelThick9PatchLine = true;
- thickness = 1;
- }
- } else {
- // It's not already at the top edge, so crop the top edge.
- cropTop = true;
-
- // Now that we've found the line, find out how thick it is.
- for (int yy = y; yy < qFloor(image->height() / 2.0); ++yy) {
- const QColor pixelColor = image->pixelColor(x, yy);
- if (pixelColor == black || pixelColor == red) {
- cropArea.setTop(yy);
- } else {
- break;
- }
- }
-
- // + 1 for the pixel that we leave in when cropping,
- // another +1 for the fact that this else statement is only entered when y > 0
- if (thickness == 0) {
- thickness = cropArea.top() - y + 2;
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on top edge at x" << x << "y" << y
- << "with thickness" << thickness;
- } else {
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on top edge at x" << x << "y" << y
- << "using existing thickness of" << thickness;
- }
- }
- }
- }
- }
-
- bool cropBottom = false;
- foundOnePixelThick9PatchLine = false;
- for (int y = image->height() - 1; y >= qCeil(image->height() / 2.0) && !cropBottom && !foundOnePixelThick9PatchLine; --y) {
- for (int x = qMax(1, thickness); x < image->width() - 2 && !cropBottom && !foundOnePixelThick9PatchLine; ++x) {
- const QColor pixelColor = image->pixelColor(x, y);
- if (pixelColor == black || pixelColor == red) {
- if (y == image->height() - 1) {
- const QColor pixelColorAbove = image->pixelColor(x, y - 1);
- if (pixelColorAbove != black && pixelColorAbove != red) {
- // We've already found the bottom of the 9-patch line, and the row above it
- // is a different color, so we know that it's one pixel thick, and that we're done.
- qCDebug(lcAssetFixerVerbose) << "found one-pixel-thick nine patch line on bottom edge at x" << x;
- foundOnePixelThick9PatchLine = true;
- if (thickness == 0)
- thickness = 1;
- }
- } else {
- // It's not already at the bottom edge, so crop the bottom edge.
- cropBottom = true;
-
- // Now that we've found the line, find out how thick it is.
- for (int yy = y; yy >= qCeil(image->height() / 2.0); --yy) {
- const QColor pixelColor = image->pixelColor(x, yy);
- if (pixelColor == black || pixelColor == red) {
- cropArea.setBottom(yy);
- } else {
- break;
- }
- }
-
- // + 1 for the pixel that we leave in when cropping,
- // another +1 for the fact that this else statement is only entered when y < image->height() - 1
- if (thickness == 0) {
- thickness = y - cropArea.bottom() + 2;
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on bottom edge at x" << x << "y" << y
- << "with thickness" << thickness;
- } else {
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on bottom edge at x" << x << "y" << y
- << "using existing thickness of" << thickness;
- }
- }
- break;
- }
- }
- }
-
- bool cropLeft = false;
- foundOnePixelThick9PatchLine = false;
- for (int x = 0; x < qFloor(image->width() / 2.0) && !cropLeft && !foundOnePixelThick9PatchLine; ++x) {
- for (int y = qMax(1, thickness); y < image->height() - 2 && !cropLeft && !foundOnePixelThick9PatchLine; ++y) {
- const QColor pixelColor = image->pixelColor(x, y);
- if (pixelColor == black || pixelColor == red) {
- if (x == 0) {
- const QColor pixelColorToTheRight = image->pixelColor(x + 1, y);
- if (pixelColorToTheRight != black && pixelColorToTheRight != red) {
- // We've already found the beginning of the 9-patch line, and the column after it
- // is a different color, so we know that it's one pixel thick, and that we're done.
- qCDebug(lcAssetFixerVerbose) << "found one-pixel-thick nine patch line on left edge at y" << y;
- foundOnePixelThick9PatchLine = true;
- }
- } else {
- // It's not already at the left edge, so crop the left edge.
- cropLeft = true;
-
- // Now that we've found the line, find out how thick it is.
- for (int xx = x; xx < qFloor(image->width() / 2.0); ++xx) {
- const QColor pixelColor = image->pixelColor(xx, y);
- if (pixelColor == black || pixelColor == red) {
- cropArea.setLeft(xx);
- } else {
- break;
- }
- }
-
- // + 1 for the pixel that we leave in when cropping,
- // another +1 for the fact that this else statement is only entered when x > 0
- if (thickness == 0) {
- thickness = cropArea.left() - x + 2;
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on left edge at x" << x << "y" << y
- << "with thickness" << thickness;
- } else {
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on left edge at x" << x << "y" << y
- << "using existing thickness of" << thickness;
- }
- }
- }
- }
- }
-
- bool cropRight = false;
- foundOnePixelThick9PatchLine = false;
- for (int x = image->width() - 1; x >= qCeil(image->width() / 2.0) && !cropRight && !foundOnePixelThick9PatchLine; --x) {
- for (int y = qMax(1, thickness); y < image->height() - 2 && !cropRight && !foundOnePixelThick9PatchLine; ++y) {
- const QColor pixelColor = image->pixelColor(x, y);
- if (pixelColor == black || pixelColor == red) {
- if (x == image->width() - 1) {
- const QColor pixelColorToTheLeft = image->pixelColor(x - 1, y);
- if (pixelColorToTheLeft != black && pixelColorToTheLeft != red) {
- // We've already found the end of the 9-patch line, and the column before it
- // is a different color, so we know that it's one pixel thick, and that we're done.
- qCDebug(lcAssetFixerVerbose) << "found one-pixel-thick nine patch line on right edge at y" << y;
- foundOnePixelThick9PatchLine = true;
- }
- } else {
- // It's not already at the right edge, so crop the right edge.
- cropRight = true;
-
- // Now that we've found the line, find out how thick it is.
- for (int xx = x; xx >= qCeil(image->width() / 2.0); --xx) {
- const QColor pixelColor = image->pixelColor(xx, y);
- if (pixelColor == black || pixelColor == red) {
- cropArea.setRight(xx);
- } else {
- break;
- }
- }
-
- // + 1 for the pixel that we leave in when cropping,
- // another +1 for the fact that this else statement is only entered when x < image->width() - 1
- if (thickness == 0) {
- thickness = x - cropArea.right() + 2;
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on right edge at x" << x << "y" << y
- << "with thickness" << thickness;
- } else {
- qCDebug(lcAssetFixerVerbose) << "found first croppable nine patch line on right edge at x" << x << "y" << y
- << "using existing thickness of" << thickness;
- }
- }
- break;
- }
- }
- }
-
- const QRect copyArea(cropLeft ? cropArea.x() : (thickness ? thickness - 1 : 0),
- cropTop ? cropArea.y() : (thickness ? thickness - 1 : 0),
- cropRight ? cropArea.width() : image->width() - (thickness ? (thickness - 1) * 2 : 0),
- cropBottom ? cropArea.height() : image->height() - (thickness ? (thickness - 1) * 2 : 0));
-
- if (cropLeft | cropRight | cropTop | cropBottom) {
- qCDebug(lcAssetFixerVerbose) << "cropping area" << copyArea;
- *image = image->copy(copyArea);
- return true;
- }
-
- return false;
-}
-
-AssetFixer::AssetFixer(QObject *parent) :
- QObject(parent),
- mComponentComplete(false),
- mFirstWatch(true),
- mShouldWatch(false),
- mShouldFix(false),
- mLastModified(QDateTime::fromSecsSinceEpoch(0))
-{
-}
-
-bool AssetFixer::shouldWatch() const
-{
- return mShouldWatch;
-}
-
-void AssetFixer::setShouldWatch(bool watch)
-{
- if (watch == mShouldWatch)
- return;
-
- stopWatching();
-
- mShouldWatch = watch;
-
- startWatching();
-
- emit shouldWatchChanged();
-}
-
-bool AssetFixer::shouldFix() const
-{
- return mShouldFix;
-}
-
-void AssetFixer::setShouldFix(bool fix)
-{
- if (fix == mShouldFix)
- return;
-
- mShouldFix = fix;
- emit shouldFixChanged();
-}
-
-QString AssetFixer::assetDirectory() const
-{
- return mAssetDirectory;
-}
-
-void AssetFixer::setAssetDirectory(const QString &assetDirectory)
-{
- if (assetDirectory == mAssetDirectory)
- return;
-
- stopWatching();
-
- const QString oldAssetDirectory = assetDirectory;
- mAssetDirectory.clear();
-
- if (isAssetDirectoryValid(assetDirectory)) {
- mAssetDirectory = assetDirectory;
- startWatching();
- }
-
- if (mAssetDirectory != oldAssetDirectory)
- emit assetDirectoryChanged();
-}
-
-QUrl AssetFixer::assetDirectoryUrl() const
-{
- return QUrl::fromLocalFile(mAssetDirectory);
-}
-
-QDateTime AssetFixer::assetDirectoryLastModified() const
-{
- return mLastModified;
-}
-
-void AssetFixer::setAssetDirectoryLastModified(const QDateTime &assetDirectoryLastModified)
-{
- if (assetDirectoryLastModified == mLastModified)
- return;
-
- mLastModified = assetDirectoryLastModified;
- emit assetDirectoryLastModifiedChanged();
-}
-
-void AssetFixer::componentComplete()
-{
- mComponentComplete = true;
-}
-
-void AssetFixer::classBegin()
-{
-}
-
-void AssetFixer::onAssetsChanged()
-{
- const QFileInfo fileInfo(mAssetDirectory);
- const QDateTime lastModified = fileInfo.lastModified();
-
- qCDebug(lcAssetFixer) << "Change in asset directory" << mAssetDirectory << "detected"
- << "lastModified:" << lastModified;
- const qint64 secsSinceLastModification = mLastModified.secsTo(lastModified);
- if (secsSinceLastModification == 0) {
- qCDebug(lcAssetFixer) << "Change in asset directory" << mAssetDirectory << "detected, "
- << "but QFileInfo says the directory hasn't been modified; ignoring";
- } else {
- setAssetDirectoryLastModified(lastModified);
-
- QString message;
- if (lcAssetFixer().isDebugEnabled()) {
- message = QString::fromLatin1("Change in asset directory %1 detected, and QFileInfo says that there have been " \
- "%2 seconds since it was previously last modified); %3").arg(mAssetDirectory).arg(secsSinceLastModification);
- }
-
- if (shouldFix()) {
- qCDebug(lcAssetFixer) << message.arg(QLatin1String("suggesting delayed fix"));
- emit delayedFixSuggested();
- } else {
- qCDebug(lcAssetFixer) << message.arg(QLatin1String("suggesting reload"));
- emit reloadSuggested();
- }
- }
-}
-
-void AssetFixer::stopWatching()
-{
- if (!mShouldWatch || mAssetDirectory.isEmpty() || !mComponentComplete)
- return;
-
- disconnect(&mFileSystemWatcher, &QFileSystemWatcher::directoryChanged, this, &AssetFixer::onAssetsChanged);
- mFileSystemWatcher.removePath(mAssetDirectory);
-}
-
-void AssetFixer::startWatching()
-{
- if (!mShouldWatch || mAssetDirectory.isEmpty() || !mComponentComplete || !isAssetDirectoryValid(mAssetDirectory))
- return;
-
- if (mFileSystemWatcher.addPath(mAssetDirectory)) {
- // TODO: for some reason this is not called when an image is edited, but is when the same image is "touch"ed.
- // We could add watchers for each file, but then the application might have to be limited to displaying
- // the elements for one control at a time so that we don't breach the 256 file descriptor limit on some platforms:
- // http://doc.qt.io/qt-5/qfilesystemwatcher.html#details
-
- // We only emit a signal here rather than automatically responding to it ourselves,
- // because we want to give the UI time to start animations.
- connect(&mFileSystemWatcher, &QFileSystemWatcher::directoryChanged, this, &AssetFixer::onAssetsChanged);
-
- const QFileInfo fileInfo(mAssetDirectory);
- bool suggestFix = false;
- if (mFirstWatch) {
- mFirstWatch = false;
-
- // Here we check if the assets have been modified since the last time the application closed.
- // Checking this avoids a slow startup (due to fixing up assets).
- if (fileInfo.lastModified() > mLastModified) {
- qCDebug(lcAssetFixer) << "asset directory" << mAssetDirectory << "was modified at"
- << fileInfo.lastModified() << ", which is later than our last stored modification time of"
- << mLastModified << "; suggesting fix";
- suggestFix = true;
- } else {
- qCDebug(lcAssetFixer) << "asset directory" << mAssetDirectory << "has not been modified since"
- << "the application was last closed; a fix is not necessary";
-
- // For some reason not all assets are updated if we don't do this.
- emit reloadSuggested();
- }
-
- // Don't need to call setAssetDirectoryLastModified() here, as we should have gotten it from settings.
- } else {
- suggestFix = true;
- }
-
- if (suggestFix) {
- setAssetDirectoryLastModified(fileInfo.lastModified());
- emit fixSuggested();
- }
- } else {
- qWarning() << "Could not watch asset directory" << mAssetDirectory;
- }
-}
-
-bool AssetFixer::isAssetDirectoryValid(const QString &assetDirectory)
-{
- DirectoryValidator validator;
- validator.setPath(assetDirectory);
- return validator.isValid();
-}
-
-void AssetFixer::clearImageCache()
-{
- QQmlApplicationEngine *engine = qobject_cast<QQmlApplicationEngine*>(qmlEngine(this));
- if (!engine) {
- qWarning() << "No QQmlApplicationEngine for AssetFixer - assets may not reload properly";
- return;
- }
-
- QQuickWindow *window = qobject_cast<QQuickWindow*>(engine->rootObjects().first());
- if (!window) {
- qWarning() << "No QQuickWindow - assets may not reload properly";
- return;
- }
-
- // We can't seem to disable image caching on a per-Image basis (by the time the QQuickImages
- // are available, the cache has already been filled), so we call this instead.
- qCDebug(lcAssetFixer) << "Calling QQuickWindow::releaseResources() to clear pixmap cache";
- window->releaseResources();
-}
-
-void AssetFixer::fixAssets()
-{
- if (!mShouldFix || !mComponentComplete || mAssetDirectory.isEmpty() || !isAssetDirectoryValid(mAssetDirectory))
- return;
-
- QDir assetDir(mAssetDirectory);
- qCDebug(lcAssetFixer) << "Fixing up assets in" << assetDir.absolutePath() << "...";
- int filesChanged = 0;
-
- QStringList nameFilters;
- nameFilters << QLatin1String("*.9.png");
- QDirIterator dirIt(assetDir.absolutePath(), nameFilters, QDir::Files | QDir::Readable | QDir::NoSymLinks);
- while (dirIt.hasNext()) {
- const QString imagePath = dirIt.next();
-
- QImage image(imagePath);
- if (image.isNull()) {
- qWarning() << "Couldn't open image at" << imagePath;
- return;
- }
-
- qCDebug(lcAssetFixerVerbose).nospace() << "found " << imagePath << " (" << image.width() << "x" << image.height() << ") - "
- << "checking if we need to crop 9-patch lines";
-
- if (cropImageToLines(&image)) {
- if (!image.save(imagePath)) {
- qWarning() << "Couldn't save" << imagePath;
- return;
- }
-
- ++filesChanged;
- }
- }
-
- qCDebug(lcAssetFixer) << "Fixed" << filesChanged << "assets";
-
- // Let the application know that it should reload the Imagine style's assets.
- // Currently we always suggest a reload after fixing files, even if no files were fixed.
- // This is because the default Imagine style assets are automatically loaded at first, and then we
- // set a custom path shortly after, so we must ensure that the Imagine style is using the correct assets.
- // Reloads are just a matter of changing Imagine.path, which is very fast.
- emit reloadSuggested();
-}
diff --git a/tests/manual/testbench/assetfixer.h b/tests/manual/testbench/assetfixer.h
deleted file mode 100644
index 4af9ccf4..00000000
--- a/tests/manual/testbench/assetfixer.h
+++ /dev/null
@@ -1,126 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef ASSETFIXER_H
-#define ASSETFIXER_H
-
-#include <QObject>
-#include <QDateTime>
-#include <QFileSystemWatcher>
-#include <QQmlParserStatus>
-#include <QUrl>
-
-class AssetFixer : public QObject, public QQmlParserStatus
-{
- Q_OBJECT
- Q_PROPERTY(bool shouldWatch READ shouldWatch WRITE setShouldWatch NOTIFY shouldWatchChanged FINAL)
- Q_PROPERTY(bool shouldFix READ shouldFix WRITE setShouldFix NOTIFY shouldFixChanged FINAL)
- Q_PROPERTY(QString assetDirectory READ assetDirectory WRITE setAssetDirectory NOTIFY assetDirectoryChanged FINAL)
- Q_PROPERTY(QUrl assetDirectoryUrl READ assetDirectoryUrl NOTIFY assetDirectoryChanged FINAL)
- Q_PROPERTY(QDateTime assetDirectoryLastModified READ assetDirectoryLastModified WRITE setAssetDirectoryLastModified
- NOTIFY assetDirectoryLastModifiedChanged FINAL)
- Q_INTERFACES(QQmlParserStatus)
-
-public:
- explicit AssetFixer(QObject *parent = nullptr);
-
- bool shouldWatch() const;
- void setShouldWatch(bool shouldWatch);
-
- bool shouldFix() const;
- void setShouldFix(bool shouldFix);
-
- QString assetDirectory() const;
- void setAssetDirectory(const QString &assetDirectory);
-
- QUrl assetDirectoryUrl() const;
-
- QDateTime assetDirectoryLastModified() const;
- void setAssetDirectoryLastModified(const QDateTime &assetDirectoryLastModified);
-
-signals:
- void shouldWatchChanged();
- void shouldFixChanged();
- void assetDirectoryChanged();
- void assetDirectoryLastModifiedChanged();
-
- void fixSuggested();
- void delayedFixSuggested();
- void reloadSuggested();
-
- void error(const QString &errorMessage);
-
-public slots:
- void clearImageCache();
- void fixAssets();
-
-protected:
- void componentComplete() override;
- void classBegin() override;
-
-private slots:
- void onAssetsChanged();
-
-private:
- void stopWatching();
- void startWatching();
-
- bool isAssetDirectoryValid(const QString &assetDirectory);
-
- bool mComponentComplete;
- bool mFirstWatch;
- bool mShouldWatch;
- bool mShouldFix;
- QString mAssetDirectory;
- QFileSystemWatcher mFileSystemWatcher;
- QDateTime mLastModified;
-};
-
-#endif // ASSETFIXER_H
diff --git a/tests/manual/testbench/clipboard.cpp b/tests/manual/testbench/clipboard.cpp
deleted file mode 100644
index 1daebfc9..00000000
--- a/tests/manual/testbench/clipboard.cpp
+++ /dev/null
@@ -1,124 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "clipboard.h"
-
-#include <QClipboard>
-#include <QGuiApplication>
-#include <QSettings>
-
-const QStringList keys = {
- "Palette/window",
- "Palette/windowText",
- "Palette/base",
- "Palette/text",
- "Palette/button",
- "Palette/buttonText",
- "Palette/brightText",
- "Palette/toolTipBase",
- "Palette/toolTipText",
- "Palette/light",
- "Palette/midlight",
- "Palette/dark",
- "Palette/mid",
- "Palette/shadow",
- "Palette/highlight",
- "Palette/highlightedText",
- "Palette/link"
-};
-
-Clipboard::Clipboard(QObject *parent) :
- QObject(parent)
-{
-}
-
-// Converts the JS map into a big string and copies it to the clipboard.
-void Clipboard::copy(const QJSValue &keyValueMap)
-{
- QString paletteSettingsString;
- QVariantMap map = keyValueMap.toVariant().value<QVariantMap>();
- const QList<QString> mapKeys = map.keys();
- for (const QString &key : mapKeys) {
- paletteSettingsString += "Palette/" + key + "=" + map.value(key).toString() + ",";
- }
-
- // Remove the trailing comma.
- if (!paletteSettingsString.isEmpty())
- paletteSettingsString.chop(1);
-
- QGuiApplication::clipboard()->setText(paletteSettingsString);
-}
-
-// Converts the big string into a JS map and returns it.
-QVariant Clipboard::paste() const
-{
- QClipboard *clipboard = QGuiApplication::clipboard();
- if (clipboard->text().isEmpty())
- return QVariant();
-
- QVariantMap keyValueMap;
-
- const QStringList settingsList = clipboard->text().split(QLatin1Char(','));
- for (const QString &setting : settingsList) {
- const QStringList keyValuePair = setting.split(QLatin1Char('='));
- if (keyValuePair.size() < 2)
- continue;
-
- QString key = keyValuePair.first();
- if (keys.contains(key)) {
- key.remove(QLatin1String("Palette/"));
- const QString value = keyValuePair.last();
-
- keyValueMap.insert(key, value);
- }
- }
-
- return QVariant(keyValueMap);
-}
diff --git a/tests/manual/testbench/clipboard.h b/tests/manual/testbench/clipboard.h
deleted file mode 100644
index a21dd9c6..00000000
--- a/tests/manual/testbench/clipboard.h
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef CLIPBOARD_H
-#define CLIPBOARD_H
-
-#include <QObject>
-#include <QJSValue>
-#include <QVariant>
-
-class Clipboard : public QObject
-{
- Q_OBJECT
-public:
- explicit Clipboard(QObject *parent = nullptr);
-
-public slots:
- void copy(const QJSValue &keyValueMap);
- QVariant paste() const;
-
-// void copyPaletteSettingsToClipboard();
-// void importPaletteSettingsFromClipboard();
-};
-
-#endif // CLIPBOARD_H
diff --git a/tests/manual/testbench/controls/BusyIndicator.qml b/tests/manual/testbench/controls/BusyIndicator.qml
deleted file mode 100644
index 22b3d98a..00000000
--- a/tests/manual/testbench/controls/BusyIndicator.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["mirrored"]
- ]
-
- property Component component: BusyIndicator {
- enabled: !is("disabled")
- LayoutMirroring.enabled: is("mirrored")
- }
-}
diff --git a/tests/manual/testbench/controls/Button.qml b/tests/manual/testbench/controls/Button.qml
deleted file mode 100644
index 44ddfee0..00000000
--- a/tests/manual/testbench/controls/Button.qml
+++ /dev/null
@@ -1,90 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked"],
- ["highlighted"],
- ["highlighted", "disabled"],
- ["highlighted", "pressed"],
- ["highlighted", "checked"],
- ["highlighted", "checkable", "pressed"],
- ["highlighted", "checkable", "checked"],
- ["flat"],
- ["flat", "disabled"],
- ["flat", "pressed"],
- ["flat", "checked"],
- ["flat", "checkable"],
- ["flat", "checkable", "pressed"],
- ["flat", "checkable", "checked", "pressed"],
- ["flat", "checkable", "highlighted"],
- ["flat", "checkable", "highlighted", "pressed"],
- ["flat", "checkable", "highlighted", "checked"]
- ]
-
- property Component component: Button {
- text: "Button"
- enabled: !is("disabled")
- flat: is("flat")
- checkable: is("checkable")
- checked: is("checked")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- }
-}
diff --git a/tests/manual/testbench/controls/CheckBox.qml b/tests/manual/testbench/controls/CheckBox.qml
deleted file mode 100644
index b79d800d..00000000
--- a/tests/manual/testbench/controls/CheckBox.qml
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "pressed"],
- ["partially-checked"],
- ["partially-checked", "disabled"],
- ["partially-checked", "pressed"],
- ]
-
- property Component component: CheckBox {
- text: "CheckBox"
- enabled: !is("disabled")
- checkState: is("checked") ? Qt.Checked : is("partially-checked") ? Qt.PartiallyChecked : Qt.Unchecked
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- }
-}
diff --git a/tests/manual/testbench/controls/CheckDelegate.qml b/tests/manual/testbench/controls/CheckDelegate.qml
deleted file mode 100644
index c8089fab..00000000
--- a/tests/manual/testbench/controls/CheckDelegate.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "pressed"],
- ["partially-checked"],
- ["partially-checked", "disabled"],
- ["partially-checked", "pressed"],
- ]
-
- property Component component: CheckDelegate {
- text: "CheckDelegate"
- enabled: !is("disabled")
- checkState: is("checked") ? Qt.Checked : is("partially-checked") ? Qt.PartiallyChecked : Qt.Unchecked
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- focusPolicy: Qt.StrongFocus
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: CheckDelegate {
- width: parent.width
- text: "CheckDelegate"
- focusPolicy: Qt.StrongFocus
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ComboBox.qml b/tests/manual/testbench/controls/ComboBox.qml
deleted file mode 100644
index 335eeb56..00000000
--- a/tests/manual/testbench/controls/ComboBox.qml
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["open"],
- ["editable"],
- ["editable", "disabled"]
- ]
-
- property Component component: ComboBox {
- enabled: !is("disabled")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- editable: is("editable")
- model: ["ComboBox", "Apple", "Bird", "Cat", "Dog", "Elephant"]
- }
-}
diff --git a/tests/manual/testbench/controls/DelayButton.qml b/tests/manual/testbench/controls/DelayButton.qml
deleted file mode 100644
index ae887ef3..00000000
--- a/tests/manual/testbench/controls/DelayButton.qml
+++ /dev/null
@@ -1,72 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["disabled", "checked"],
- ["pressed"],
- ["checked"],
- ]
-
- property Component component: Component {
- DelayButton {
- text: "DelayButton"
-// enabled: !is("disabled")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
-// down: is("pressed") ? true : undefined
- onDownChanged: print("down", down)
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Dial.qml b/tests/manual/testbench/controls/Dial.qml
deleted file mode 100644
index 06b91076..00000000
--- a/tests/manual/testbench/controls/Dial.qml
+++ /dev/null
@@ -1,65 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- // TODO: no down property to test this with
-// ["pressed"]
- ]
-
- property Component component: Dial {
- enabled: !is("disabled")
- }
-}
diff --git a/tests/manual/testbench/controls/Dialog.qml b/tests/manual/testbench/controls/Dialog.qml
deleted file mode 100644
index 52aa923e..00000000
--- a/tests/manual/testbench/controls/Dialog.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-// TODO
-QtObject {
- property string customControlName: qsTr("Dialog")
-
- property var supportedStates: [
- [],
- ["modal"],
- ["dim"]
- ]
-
- property Component component: Button {
- id: dialogButton
- text: qsTr("Dialog")
- hoverEnabled: true
-
- onClicked: dialog.open()
-
- Dialog {
- id: dialog
- x: (window.width - width) / 2
- y: (window.height - height) / 2
- standardButtons: Dialog.Ok | Dialog.Cancel
- parent: window.contentItem
- modal: is("modal")
- dim: is("dim") || is("modal")
-
- Label {
- text: "Lorem ipsum dolor sit amet, \nconsectetuer adipiscing elit, \n"
- + "sed diam nonummy nibh euismod tincidunt ut \nlaoreet dolore magna aliquam erat volutpat."
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Frame.qml b/tests/manual/testbench/controls/Frame.qml
deleted file mode 100644
index c7b176fb..00000000
--- a/tests/manual/testbench/controls/Frame.qml
+++ /dev/null
@@ -1,64 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ]
-
- property Component component: Frame {
- Label {
- text: "Frame"
- }
- }
-}
diff --git a/tests/manual/testbench/controls/GroupBox.qml b/tests/manual/testbench/controls/GroupBox.qml
deleted file mode 100644
index eda7ad79..00000000
--- a/tests/manual/testbench/controls/GroupBox.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ]
-
- property Component component: GroupBox {
- title: qsTr("Title")
-
- Label {
- text: qsTr("GroupBox")
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ItemDelegate.qml b/tests/manual/testbench/controls/ItemDelegate.qml
deleted file mode 100644
index 8cf348d4..00000000
--- a/tests/manual/testbench/controls/ItemDelegate.qml
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["highlighted"],
- ["highlighted", "pressed"]
- ]
-
- property Component component: ItemDelegate {
- text: "ItemDelegate"
- enabled: !is("disabled")
- checkable: is("checkable")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- focusPolicy: Qt.StrongFocus
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: ItemDelegate {
- width: parent.width
- text: "ItemDelegate"
- focusPolicy: Qt.StrongFocus
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Label.qml b/tests/manual/testbench/controls/Label.qml
deleted file mode 100644
index 92192e09..00000000
--- a/tests/manual/testbench/controls/Label.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"]
- ]
-
- property Component component: Label {
- text: "Label with a <a href=\"http://doc.qt.io\">link</a>"
- onTextChanged: print(text)
- enabled: !is("disabled")
- textFormat: Label.StyledText
- }
-}
diff --git a/tests/manual/testbench/controls/Menu.qml b/tests/manual/testbench/controls/Menu.qml
deleted file mode 100644
index 3bb54009..00000000
--- a/tests/manual/testbench/controls/Menu.qml
+++ /dev/null
@@ -1,121 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-// TODO
-QtObject {
- property string customControlName: qsTr("Menu, MenuItem & MenuSeparator")
-
- property var supportedStates: [
- []
- ]
-
- property Component component: Button {
- id: menuButton
- text: qsTr("Menu")
- checked: menu.visible
- checkable: true
-
- Menu {
- id: menu
- x: 1
- y: 1 + parent.height
- visible: menuButton.checked
- closePolicy: Popup.CloseOnPressOutsideParent
-
- MenuItem {
- text: "Normal"
- }
- MenuItem {
- text: "Pressed"
- down: true
- }
- MenuItem {
- text: "Disabled"
- enabled: false
- }
-
- MenuSeparator {}
-
- MenuItem {
- text: "Checked"
- checked: true
- }
- MenuItem {
- text: "Checked + Pressed"
- checked: true
- down: true
- }
- MenuItem {
- text: "Checked + Disabled"
- checked: true
- enabled: false
- }
-
- MenuSeparator {}
-
- Menu {
- title: "Submenu"
-
- MenuItem {
- text: "Submenu item"
- }
- }
-
- Menu {
- title: "Disabled Submenu"
- enabled: false
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/MenuBar.qml b/tests/manual/testbench/controls/MenuBar.qml
deleted file mode 100644
index 77a7da2b..00000000
--- a/tests/manual/testbench/controls/MenuBar.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-// TODO
-QtObject {
- property string customControlName: qsTr("MenuBar & MenuBarItem")
-
- property var supportedStates: [
- []
- ]
-
- property Component component: MenuBar {
- MenuBarItem {
- text: qsTr("Normal")
- }
- MenuBarItem {
- text: qsTr("Pressed")
- down: true
- }
- MenuBarItem {
- text: qsTr("Highlighted")
- highlighted: true
- }
- MenuBarItem {
- text: qsTr("Disabled")
- enabled: false
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Page.qml b/tests/manual/testbench/controls/Page.qml
deleted file mode 100644
index add9cc09..00000000
--- a/tests/manual/testbench/controls/Page.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ]
-
- property Component component: Page {
- width: 100
- height: 100
-
- Label {
- text: "Page"
- anchors.centerIn: parent
- }
- }
-}
diff --git a/tests/manual/testbench/controls/PageIndicator.qml b/tests/manual/testbench/controls/PageIndicator.qml
deleted file mode 100644
index 60094e4d..00000000
--- a/tests/manual/testbench/controls/PageIndicator.qml
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- // TODO: no down property to test this with
-// ["pressed"]
- ]
-
- property Component component: PageIndicator {
- enabled: !is("disabled")
- count: 5
- }
-
- property Component exampleComponent: ColumnLayout {
- implicitWidth: 200
- implicitHeight: 200
-
- // TODO: why doesn't this fill the ColumnLayout? :/
- StackLayout {
- id: swipeView
- currentIndex: pageIndicator.currentIndex
-
- Label {
- text: qsTr("Page 1")
- horizontalAlignment: Label.AlignHCenter
- }
-
- Label {
- text: qsTr("Page 2")
- horizontalAlignment: Label.AlignHCenter
- }
-
- Label {
- text: qsTr("Page 3")
- horizontalAlignment: Label.AlignHCenter
- }
-
- Label {
- text: qsTr("Page 4")
- horizontalAlignment: Label.AlignHCenter
- }
-
- Label {
- text: qsTr("Page 5")
- horizontalAlignment: Label.AlignHCenter
- }
- }
-
- PageIndicator {
- id: pageIndicator
- currentIndex: swipeView.currentIndex
- count: swipeView.count
- interactive: true
- anchors.horizontalCenter: parent.horizontalCenter
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Pane.qml b/tests/manual/testbench/controls/Pane.qml
deleted file mode 100644
index c8b6c699..00000000
--- a/tests/manual/testbench/controls/Pane.qml
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ]
-
- property Component component: Pane {
- width: 100
- height: 100
-
- Label {
- text: "Pane"
- anchors.centerIn: parent
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ProgressBar.qml b/tests/manual/testbench/controls/ProgressBar.qml
deleted file mode 100644
index 67047178..00000000
--- a/tests/manual/testbench/controls/ProgressBar.qml
+++ /dev/null
@@ -1,66 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["indeterminate"]
- ]
-
- property Component component: ProgressBar {
- enabled: !is("disabled")
- indeterminate: is("indeterminate")
- value: 0.25
- }
-}
diff --git a/tests/manual/testbench/controls/RadioButton.qml b/tests/manual/testbench/controls/RadioButton.qml
deleted file mode 100644
index b1fff6dc..00000000
--- a/tests/manual/testbench/controls/RadioButton.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "pressed"],
- ]
-
- property Component component: Component {
- RadioButton {
- text: "RadioButton"
- enabled: !is("disabled")
- checked: is("checked")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- }
- }
-}
diff --git a/tests/manual/testbench/controls/RadioDelegate.qml b/tests/manual/testbench/controls/RadioDelegate.qml
deleted file mode 100644
index e449744c..00000000
--- a/tests/manual/testbench/controls/RadioDelegate.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "pressed"]
- ]
-
- property Component component: Component {
- RadioDelegate {
- text: "RadioDelegate"
- enabled: !is("disabled")
- checked: is("checked")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- focusPolicy: Qt.StrongFocus
- }
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: RadioDelegate {
- width: parent.width
- text: "RadioDelegate"
- focusPolicy: Qt.StrongFocus
- }
- }
-}
diff --git a/tests/manual/testbench/controls/RangeSlider.qml b/tests/manual/testbench/controls/RangeSlider.qml
deleted file mode 100644
index b3d84e53..00000000
--- a/tests/manual/testbench/controls/RangeSlider.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- ["vertical"],
- ["vertical", "disabled"],
- ["vertical", "pressed"],
- ["horizontal"],
- ["horizontal", "disabled"],
- ["horizontal", "pressed"]
- ]
-
- property Component component: RangeSlider {
- enabled: !is("disabled")
- orientation: is("horizontal") ? Qt.Horizontal : Qt.Vertical
- second.value: 0.5
- }
-}
diff --git a/tests/manual/testbench/controls/RoundButton.qml b/tests/manual/testbench/controls/RoundButton.qml
deleted file mode 100644
index 5d066133..00000000
--- a/tests/manual/testbench/controls/RoundButton.qml
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["highlighted"],
- ["highlighted", "disabled"],
- ["highlighted", "pressed"],
- ["highlighted", "checked"],
- ["highlighted", "checkable", "pressed"],
- ["highlighted", "checkable", "checked"],
- ["flat"],
- ["flat", "disabled"],
- ["flat", "pressed"],
- ["flat", "checked"],
- ["flat", "checkable"],
- ["flat", "checkable", "pressed"],
- ["flat", "checkable", "checked", "pressed"],
- ["flat", "checkable", "highlighted"],
- ["flat", "checkable", "highlighted", "pressed"],
- ["flat", "checkable", "highlighted", "checked"]
- ]
-
- property Component component: RoundButton {
- text: "B"
- enabled: !is("disabled")
- flat: is("flat")
- checkable: is("checkable")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- }
-}
diff --git a/tests/manual/testbench/controls/ScrollBar.qml b/tests/manual/testbench/controls/ScrollBar.qml
deleted file mode 100644
index 25c7f4d6..00000000
--- a/tests/manual/testbench/controls/ScrollBar.qml
+++ /dev/null
@@ -1,114 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- ["vertical"],
- ["vertical", "disabled"],
- ["vertical", "interactive"],
- ["vertical", "interactive", "disabled"],
- ["horizontal"],
- ["horizontal", "disabled"],
- ["horizontal", "interactive"],
- ["horizontal", "interactive", "disabled"]
- ]
-
- property Component component: Frame {
- width: 100
- height: 100
- clip: true
-
- Label {
- text: "ABCDEFG\nHIJKLMN"
- font.pixelSize: 40
- x: -horizontalScrollBar.position * width
- y: -verticalScrollBar.position * height
- }
-
- ScrollBar {
- id: verticalScrollBar
- enabled: !is("disabled")
- orientation: Qt.Vertical
- interactive: is("interactive")
- visible: is("vertical")
- size: 0.3
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
-
- Binding {
- target: verticalScrollBar
- property: "active"
- value: verticalScrollBar.visible
- }
- }
-
- ScrollBar {
- id: horizontalScrollBar
- enabled: !is("disabled")
- orientation: Qt.Horizontal
- interactive: is("interactive")
- visible: is("horizontal")
- size: 0.3
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
-
- Binding {
- target: horizontalScrollBar
- property: "active"
- value: horizontalScrollBar.visible
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ScrollIndicator.qml b/tests/manual/testbench/controls/ScrollIndicator.qml
deleted file mode 100644
index 2c6fd4a9..00000000
--- a/tests/manual/testbench/controls/ScrollIndicator.qml
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- ["vertical"],
- ["vertical", "disabled"],
- ["horizontal"],
- ["horizontal", "disabled"],
- ]
-
- property Component component: Frame {
- width: 100
- height: 100
- clip: true
-
- Label {
- text: "ABCDEFG\nHIJKLMN"
- font.pixelSize: 40
- x: horizontalScrollIndicator.position * width
- y: verticalScrollIndicator.position * height
- }
-
- ScrollIndicator {
- id: verticalScrollIndicator
- enabled: !is("disabled")
- orientation: Qt.Vertical
- active: true
- visible: is("vertical")
- size: 0.3
- anchors.right: parent.right
- anchors.top: parent.top
- anchors.bottom: parent.bottom
- }
-
- ScrollIndicator {
- id: horizontalScrollIndicator
- enabled: !is("disabled")
- orientation: Qt.Horizontal
- active: true
- visible: is("horizontal")
- size: 0.3
- anchors.left: parent.left
- anchors.right: parent.right
- anchors.bottom: parent.bottom
-
- Binding {
- target: horizontalScrollIndicator
- property: "active"
- value: horizontalScrollIndicator.visible
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Slider.qml b/tests/manual/testbench/controls/Slider.qml
deleted file mode 100644
index 831f4778..00000000
--- a/tests/manual/testbench/controls/Slider.qml
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- ["vertical"],
- ["vertical", "disabled"],
- ["vertical", "pressed"],
- ["horizontal"],
- ["horizontal", "disabled"],
- ["horizontal", "pressed"]
- ]
-
- property Component component: Slider {
- enabled: !is("disabled")
- orientation: is("horizontal") ? Qt.Horizontal : Qt.Vertical
- value: 0.5
- }
-}
diff --git a/tests/manual/testbench/controls/SpinBox.qml b/tests/manual/testbench/controls/SpinBox.qml
deleted file mode 100644
index 0fdfb9fe..00000000
--- a/tests/manual/testbench/controls/SpinBox.qml
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["pressed"],
- ["disabled"],
- ["mirrored"],
- ["mirrored", "pressed"],
- ["mirrored", "disabled"],
- ["editable"],
- ["editable", "pressed"],
- ["editable", "disabled"],
- ["editable", "mirrored"],
- ["editable", "mirrored", "pressed"],
- ["editable", "mirrored", "disabled"]
- ]
-
- property Component component: SpinBox {
- value: 1
- enabled: !is("disabled")
- editable: is("editable")
- up.pressed: is("pressed")
-
- LayoutMirroring.enabled: is("mirrored")
- }
-}
diff --git a/tests/manual/testbench/controls/SplitView.qml b/tests/manual/testbench/controls/SplitView.qml
deleted file mode 100644
index 94f06221..00000000
--- a/tests/manual/testbench/controls/SplitView.qml
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.13
-import QtQuick.Controls 2.13
-
-QtObject {
- property var supportedStates: [
- []
- ]
-
- property Component component: SplitView {
- implicitWidth: 400
- implicitHeight: 100
-
- Rectangle {
- color: "salmon"
- implicitWidth: 25
- implicitHeight: 25
- }
- Rectangle {
- color: "navajowhite"
- implicitWidth: 100
- implicitHeight: 100
- }
- Rectangle {
- color: "steelblue"
- implicitWidth: 200
- implicitHeight: 200
- }
- }
-}
diff --git a/tests/manual/testbench/controls/SwipeDelegate.qml b/tests/manual/testbench/controls/SwipeDelegate.qml
deleted file mode 100644
index 141435d8..00000000
--- a/tests/manual/testbench/controls/SwipeDelegate.qml
+++ /dev/null
@@ -1,106 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["highlighted"],
- ["highlighted", "pressed"]
- ]
-
- property Component actionComponent: Component {
- Rectangle {
- color: SwipeDelegate.pressed ? "#333" : "#444"
- width: parent ? parent.width : 0
- height: parent ? parent.height: 0
- clip: true
-
- Label {
- text: "Test"
- color: "white"
- anchors.centerIn: parent
- }
- }
- }
-
- property Component component: SwipeDelegate {
- id: swipeDelegate
- text: "SwipeDelegate"
- enabled: !is("disabled")
- checkable: is("checkable")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- focusPolicy: Qt.StrongFocus
-
- swipe.left: actionComponent
- swipe.right: actionComponent
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: SwipeDelegate {
- width: parent.width
- text: "SwipeDelegate"
- focusPolicy: Qt.StrongFocus
-
- swipe.left: actionComponent
- swipe.right: actionComponent
- }
- }
-}
diff --git a/tests/manual/testbench/controls/Switch.qml b/tests/manual/testbench/controls/Switch.qml
deleted file mode 100644
index 6df1a0e0..00000000
--- a/tests/manual/testbench/controls/Switch.qml
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["checked"],
- ["checked", "disabled"],
- ["checked", "disabled", "mirrored"],
- ["checked", "pressed"],
- ["checked", "pressed", "mirrored"],
- ["mirrored"],
- ]
-
- property Component component: Switch {
- text: "Switch"
- enabled: !is("disabled")
- checked: is("checked")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
-
- LayoutMirroring.enabled: is("mirrored")
- }
-}
diff --git a/tests/manual/testbench/controls/SwitchDelegate.qml b/tests/manual/testbench/controls/SwitchDelegate.qml
deleted file mode 100644
index ac4a322a..00000000
--- a/tests/manual/testbench/controls/SwitchDelegate.qml
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ["pressed"],
- ["highlighted"],
- ["highlighted", "pressed"],
- ["mirrored"]
- ]
-
- property Component component: SwitchDelegate {
- text: "SwitchDelegate"
- enabled: !is("disabled")
- // Only set it if it's pressed, or the non-pressed examples will have no press effects
- down: is("pressed") ? true : undefined
- highlighted: is("highlighted")
- focusPolicy: Qt.StrongFocus
-
- LayoutMirroring.enabled: is("mirrored")
- }
-
- property Component exampleComponent: ListView {
- implicitWidth: 200
- implicitHeight: 200
- clip: true
- model: 20
- delegate: SwitchDelegate {
- width: parent.width
- text: "SwitchDelegate"
- focusPolicy: Qt.StrongFocus
- }
- }
-}
diff --git a/tests/manual/testbench/controls/TabBar.qml b/tests/manual/testbench/controls/TabBar.qml
deleted file mode 100644
index 7e98eb93..00000000
--- a/tests/manual/testbench/controls/TabBar.qml
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-// TODO
-QtObject {
- property string customControlName: qsTr("TabBar & TabButton")
-
- property var supportedStates: [
- ["header"],
- ["header", "disabled"],
- ["footer"],
- ["footer", "disabled"]
- ]
-
- property Component component: TabBar {
- implicitHeight: tabButton1.implicitHeight
- enabled: !is("disabled")
- position: is("header") ? TabBar.Header : TabBar.Footer
-
- TabButton {
- id: tabButton1
- text: qsTr("TabButton 1")
- }
- TabButton {
- text: qsTr("TabButton 2")
- }
- TabButton {
- text: qsTr("TabButton 3")
- }
- }
-}
diff --git a/tests/manual/testbench/controls/TextArea.qml b/tests/manual/testbench/controls/TextArea.qml
deleted file mode 100644
index ae3cf08b..00000000
--- a/tests/manual/testbench/controls/TextArea.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ]
-
- property Component component: Column {
- spacing: 10
-
- TextArea {
- text: "TextArea\nwith\ntext"
- enabled: !is("disabled")
- }
-
- TextArea {
- placeholderText: "TextArea with placeholderText"
- enabled: !is("disabled")
- }
- }
-}
diff --git a/tests/manual/testbench/controls/TextField.qml b/tests/manual/testbench/controls/TextField.qml
deleted file mode 100644
index b9a5bfb8..00000000
--- a/tests/manual/testbench/controls/TextField.qml
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"],
- ]
-
- property Component component: Column {
- spacing: 10
-
- TextField {
- text: "TextField with text"
- enabled: !is("disabled")
- }
-
- TextField {
- placeholderText: "TextField with placeholderText"
- enabled: !is("disabled")
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ToolBar.qml b/tests/manual/testbench/controls/ToolBar.qml
deleted file mode 100644
index ec80ebe7..00000000
--- a/tests/manual/testbench/controls/ToolBar.qml
+++ /dev/null
@@ -1,87 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-// TODO
-QtObject {
- property string customControlName: qsTr("ToolBar, ToolButton & ToolSeparator")
-
- property var supportedStates: [
- ["header"],
- ["header", "disabled"],
- ["footer"],
- ["footer", "disabled"]
- ]
-
- property Component component: ToolBar {
- enabled: !is("disabled")
- position: is("header") ? ToolBar.Header : ToolBar.Footer
-
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: qsTr("ToolButton 1")
- }
- ToolButton {
- text: qsTr("ToolButton 2")
- }
-
- ToolSeparator {}
-
- ToolButton {
- text: qsTr("ToolButton 3")
- }
- }
- }
-}
diff --git a/tests/manual/testbench/controls/ToolTip.qml b/tests/manual/testbench/controls/ToolTip.qml
deleted file mode 100644
index 3e3a017b..00000000
--- a/tests/manual/testbench/controls/ToolTip.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-QtObject {
- property var supportedStates: [
- []
- ]
-
- property Component component: Button {
- text: qsTr("Hover over me")
-
- ToolTip.text: qsTr("ToolTip")
- ToolTip.visible: hovered
- ToolTip.delay: 500
- }
-}
diff --git a/tests/manual/testbench/controls/Tumbler.qml b/tests/manual/testbench/controls/Tumbler.qml
deleted file mode 100644
index f10af24e..00000000
--- a/tests/manual/testbench/controls/Tumbler.qml
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-import QtQuick.Layouts 1.12
-
-QtObject {
- property var supportedStates: [
- [],
- ["disabled"]
- ]
-
- property Component component: Tumbler {
- model: 20
- enabled: !is("disabled")
-
- LayoutMirroring.enabled: is("mirrored")
- }
-}
diff --git a/tests/manual/testbench/deployment.pri b/tests/manual/testbench/deployment.pri
deleted file mode 100644
index c89af25a..00000000
--- a/tests/manual/testbench/deployment.pri
+++ /dev/null
@@ -1,14 +0,0 @@
-unix:!android {
- isEmpty(target.path) {
- qnx {
- target.path = /tmp/$${TARGET}/bin
- } else {
- target.path = /opt/$${TARGET}/bin
- }
- export(target.path)
- }
- INSTALLS += target
-}
-
-export(INSTALLS)
-
diff --git a/tests/manual/testbench/directoryvalidator.cpp b/tests/manual/testbench/directoryvalidator.cpp
deleted file mode 100644
index d0d4cd8d..00000000
--- a/tests/manual/testbench/directoryvalidator.cpp
+++ /dev/null
@@ -1,102 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include "directoryvalidator.h"
-
-#include <QFileInfo>
-
-DirectoryValidator::DirectoryValidator(QObject *parent) :
- QObject(parent)
-{
-}
-
-QString DirectoryValidator::path() const
-{
- return mPath;
-}
-
-void DirectoryValidator::setPath(const QString &path)
-{
- if (path == mPath)
- return;
-
- const bool wasValid = isValid();
- const QString oldErrorMessage = mErrorMessage;
-
- mPath = path;
- mErrorMessage.clear();
-
- QFileInfo fileInfo(mPath);
- if (!fileInfo.exists()) {
- mErrorMessage = QLatin1String("Directory does not exist");
- } else {
- if (!fileInfo.isDir()) {
- mErrorMessage = QLatin1String("Not a directory");
- }
- }
-
- if (isValid() != wasValid)
- emit validChanged();
-
- if (mErrorMessage != oldErrorMessage)
- emit errorMessageChanged();
-
- emit pathChanged();
-}
-
-bool DirectoryValidator::isValid() const
-{
- return mErrorMessage.isEmpty();
-}
-
-QString DirectoryValidator::errorMessage() const
-{
- return mErrorMessage;
-}
diff --git a/tests/manual/testbench/directoryvalidator.h b/tests/manual/testbench/directoryvalidator.h
deleted file mode 100644
index a1650d86..00000000
--- a/tests/manual/testbench/directoryvalidator.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef DIRECTORYVALIDATOR_H
-#define DIRECTORYVALIDATOR_H
-
-#include <QObject>
-
-class DirectoryValidator : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged FINAL)
- Q_PROPERTY(bool valid READ isValid NOTIFY validChanged FINAL)
- Q_PROPERTY(QString errorMessage READ errorMessage NOTIFY errorMessageChanged FINAL)
-
-public:
- explicit DirectoryValidator(QObject *parent = nullptr);
-
- QString path() const;
- void setPath(const QString &path);
-
- bool isValid() const;
- QString errorMessage() const;
-
-signals:
- void pathChanged();
- void validChanged();
- void errorMessageChanged();
-
-private:
- void updateValid();
-
- QString mPath;
- QString mErrorMessage;
-};
-
-#endif // DIRECTORYVALIDATOR_H
diff --git a/tests/manual/testbench/fonts.qrc b/tests/manual/testbench/fonts.qrc
deleted file mode 100644
index fc86e031..00000000
--- a/tests/manual/testbench/fonts.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>fonts/fontawesome.ttf</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/testbench/fonts/LICENSE.txt b/tests/manual/testbench/fonts/LICENSE.txt
deleted file mode 100644
index 8fa3da36..00000000
--- a/tests/manual/testbench/fonts/LICENSE.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Font license info
-
-
-## Font Awesome
-
- Copyright (C) 2016 by Dave Gandy
-
- Author: Dave Gandy
- License: SIL ()
- Homepage: http://fortawesome.github.com/Font-Awesome/
-
-
diff --git a/tests/manual/testbench/fonts/fontawesome.ttf b/tests/manual/testbench/fonts/fontawesome.ttf
deleted file mode 100644
index 49b6c5da..00000000
--- a/tests/manual/testbench/fonts/fontawesome.ttf
+++ /dev/null
Binary files differ
diff --git a/tests/manual/testbench/main.cpp b/tests/manual/testbench/main.cpp
deleted file mode 100644
index 0287537d..00000000
--- a/tests/manual/testbench/main.cpp
+++ /dev/null
@@ -1,94 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#include <QDebug>
-#include <QFontDatabase>
-#include <QGuiApplication>
-#include <QSettings>
-#include <QQmlApplicationEngine>
-#include <QQmlContext>
-#include <QQuickStyle>
-
-#include "assetfixer.h"
-#include "clipboard.h"
-#include "directoryvalidator.h"
-
-int main(int argc, char *argv[])
-{
- QGuiApplication::setApplicationName("testbench");
- QGuiApplication::setOrganizationName("QtProject");
- QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
-
- QGuiApplication app(argc, argv);
-
- QSettings settings;
- QString style = QQuickStyle::name();
- if (!style.isEmpty())
- settings.setValue("style", style);
- else
- QQuickStyle::setStyle(settings.value("style").isValid() ? settings.value("style").toString() : "Imagine");
-
- if (QFontDatabase::addApplicationFont(":/fonts/fontawesome.ttf") == -1) {
- qWarning() << "Failed to load fontawesome font";
- }
-
- QQmlApplicationEngine engine;
-
- qmlRegisterType<AssetFixer>("App", 1, 0, "AssetFixer");
- qmlRegisterType<Clipboard>("App", 1, 0, "Clipboard");
- qmlRegisterType<DirectoryValidator>("App", 1, 0, "DirectoryValidator");
-
- engine.rootContext()->setContextProperty("availableStyles", QQuickStyle::availableStyles());
-
- engine.load(QUrl(QStringLiteral("qrc:/testbench.qml")));
-
- return app.exec();
-}
-
diff --git a/tests/manual/testbench/qml.qrc b/tests/manual/testbench/qml.qrc
deleted file mode 100644
index 743e6629..00000000
--- a/tests/manual/testbench/qml.qrc
+++ /dev/null
@@ -1,45 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>ControlContainer.qml</file>
- <file>controls/Button.qml</file>
- <file>controls/CheckBox.qml</file>
- <file>controls/RadioButton.qml</file>
- <file>controls/CheckDelegate.qml</file>
- <file>controls/ComboBox.qml</file>
- <file>controls/DelayButton.qml</file>
- <file>controls/Dial.qml</file>
- <file>controls/Frame.qml</file>
- <file>controls/GroupBox.qml</file>
- <file>controls/ItemDelegate.qml</file>
- <file>controls/Page.qml</file>
- <file>controls/PageIndicator.qml</file>
- <file>controls/Pane.qml</file>
- <file>controls/ProgressBar.qml</file>
- <file>controls/RadioDelegate.qml</file>
- <file>controls/RangeSlider.qml</file>
- <file>controls/RoundButton.qml</file>
- <file>controls/ScrollBar.qml</file>
- <file>controls/ScrollIndicator.qml</file>
- <file>controls/Slider.qml</file>
- <file>controls/SpinBox.qml</file>
- <file>controls/SwipeDelegate.qml</file>
- <file>controls/Switch.qml</file>
- <file>controls/SwitchDelegate.qml</file>
- <file>controls/TabBar.qml</file>
- <file>controls/TextArea.qml</file>
- <file>controls/TextField.qml</file>
- <file>SettingsDialog.qml</file>
- <file>ColorEditor.qml</file>
- <file>controls/ToolBar.qml</file>
- <file>controls/Dialog.qml</file>
- <file>controls/Menu.qml</file>
- <file>ExampleContainer.qml</file>
- <file>controls/Label.qml</file>
- <file>controls/ToolTip.qml</file>
- <file>controls/Tumbler.qml</file>
- <file>controls/BusyIndicator.qml</file>
- <file>testbench.qml</file>
- <file>controls/MenuBar.qml</file>
- <file>controls/SplitView.qml</file>
- </qresource>
-</RCC>
diff --git a/tests/manual/testbench/testbench.pro b/tests/manual/testbench/testbench.pro
deleted file mode 100644
index 829bcbde..00000000
--- a/tests/manual/testbench/testbench.pro
+++ /dev/null
@@ -1,24 +0,0 @@
-TEMPLATE = app
-
-QT += qml quick quickcontrols2
-CONFIG += c++11
-
-HEADERS += \
- assetfixer.h \
- directoryvalidator.h \
- clipboard.h
-
-SOURCES += main.cpp \
- assetfixer.cpp \
- directoryvalidator.cpp \
- clipboard.cpp
-
-RESOURCES += qml.qrc \
- fonts.qrc
-
-# Additional import path used to resolve QML modules in Qt Creator's code model
-QML_IMPORT_PATH =
-
-# Default rules for deployment.
-include(deployment.pri)
-
diff --git a/tests/manual/testbench/testbench.qml b/tests/manual/testbench/testbench.qml
deleted file mode 100644
index daef63b1..00000000
--- a/tests/manual/testbench/testbench.qml
+++ /dev/null
@@ -1,545 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the test suite of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** 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 https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Window 2.12
-import QtQuick.Layouts 1.12
-import QtQuick.Controls 2.12
-import QtQuick.Controls.Imagine 2.12
-import Qt.labs.folderlistmodel 2.2
-import Qt.labs.settings 1.0
-
-import App 1.0
-
-ApplicationWindow {
- id: window
- visible: true
- width: 1000
- height: 750
- title: "Style Testbench - " + settings.style + " Style" + (usingImagineStyle ? imagineTitleText : "")
-
- Imagine.path: defaultImaginePath
-
- readonly property bool usingImagineStyle: settings.style.toLowerCase() === "imagine"
- // Some controls should be visible regardless of whether or not custom assets are lacking for it,
- // so we use the default assets in some cases.
- readonly property string defaultImaginePath: "qrc:/qt-project.org/imports/QtQuick/Controls.2/Imagine/images/"
- property bool settingsLoaded: false
- readonly property string imagineTitleText: " - " + (settings.useCustomImaginePath ? settings.imaginePath : "Default Assets")
-
- LoggingCategory {
- id: brief
- name: "qt.quick.controls.tools.testbench.assetfixer.brief"
- }
-
- Shortcut {
- sequence: "Ctrl+F"
- onActivated: searchTextField.forceActiveFocus()
- }
-
- Shortcut {
- sequence: "Ctrl+Q"
- onActivated: Qt.quit()
- }
-
- Action {
- id: fixAssetsAction
- text: qsTr("Fix Custom Assets")
- shortcut: "Ctrl+Shift+X"
- enabled: usingImagineStyle
- onTriggered: assetFixer.manualFix()
- }
-
- Action {
- id: useCustomAssetsAction
- text: qsTr("Use Custom Assets")
- shortcut: "Ctrl+Shift+C"
- enabled: usingImagineStyle
- checkable: true
- checked: settings.useCustomImaginePath
- onTriggered: settings.useCustomImaginePath = !settings.useCustomImaginePath
- }
-
- Action {
- id: reloadAssetsAction
- text: qsTr("Reload Assets")
- shortcut: "Ctrl+R"
- enabled: usingImagineStyle
- onTriggered: assetFixer.reloadAssets()
- }
-
- FontMetrics {
- id: fontMetrics
- }
-
- Settings {
- id: settings
-
- property alias windowX: window.x
- property alias windowY: window.y
- property alias windowWidth: window.width
- property alias windowHeight: window.height
-
- property string style: "Imagine"
-
- property bool useCustomImaginePath
- property string imaginePath
- property bool autoFixImagineAssets
- property alias imagineDirLastModified: assetFixer.assetDirectoryLastModified
-
- Component.onCompleted: settingsLoaded = true
- }
-
- Settings {
- id: paletteSettings
-
- category: "Palette"
-
- property bool useCustomPalette
- property string window
- property string windowText
- property string base
- property string text
- property string button
- property string buttonText
- property string brightText
- property string toolTipBase
- property string toolTipText
- property string light
- property string midlight
- property string dark
- property string mid
- property string shadow
- property string highlight
- property string highlightedText
- property string link
- }
-
- header: ToolBar {
- // Seems to be necessary to get the default assets to be used here,
- // though it should inherit the window's path
- Imagine.path: defaultImaginePath
-
- RowLayout {
- anchors.fill: parent
-
- ToolButton {
- text: "\uf0c9"
- font.family: "fontawesome"
- font.pixelSize: Qt.application.font.pixelSize * 1.6
- onClicked: drawer.open()
- }
-
- ToolSeparator {}
-
- TextField {
- id: searchTextField
- placeholderText: "Search"
- }
-
- Item {
- Layout.fillWidth: true
- }
-
- ToolButton {
- id: optionsMenuButton
- text: "\ue800"
- font.family: "FontAwesome"
- font.pixelSize: Qt.application.font.pixelSize * 1.6
- checked: optionsMenu.visible
- checkable: true
-
- onClicked: optionsMenu.open()
-
- Menu {
- id: optionsMenu
- x: 1
- y: 1 + parent.height
- visible: optionsMenuButton.checked
- closePolicy: Popup.CloseOnPressOutsideParent
-
- Imagine.path: defaultImaginePath
-
- MenuItem {
- text: qsTr("Open Asset Directory")
- onClicked: Qt.openUrlExternally(assetFixer.assetDirectoryUrl)
- enabled: usingImagineStyle
- }
-
- MenuItem {
- action: reloadAssetsAction
- }
-
- MenuItem {
- action: useCustomAssetsAction
- }
-
- MenuItem {
- action: fixAssetsAction
- }
-
- MenuSeparator {}
-
- MenuItem {
- id: settingsMenuItem
- text: qsTr("Settings")
- onTriggered: settingsDialog.open()
- }
-
- MenuSeparator {}
-
- MenuItem {
- text: qsTr("Quit")
- onTriggered: Qt.quit()
- }
- }
- }
- }
- }
-
- SettingsDialog {
- id: settingsDialog
-
- Imagine.path: defaultImaginePath
- }
-
- Drawer {
- id: drawer
- width: parent.width * 0.33
- height: window.height
- focus: false
- modal: false
-
- Label {
- text: "Drawer contents go here"
- anchors.centerIn: parent
- }
- }
-
- AssetFixer {
- id: assetFixer
- assetDirectory: settings.imaginePath
- // Don't start watching until the settings have loaded, as AssetFixer can be completed before it.
- // AssetFixer needs the settings in order to check the last modified time of the asset directory.
- // Also, wait until the UI has been rendered for the first time so that we can show our busy indicators, etc.
- shouldWatch: usingImagineStyle && settings.useCustomImaginePath && settingsLoaded && initialUiRenderDelayTimer.hasRun
- shouldFix: (shouldWatch && settings.autoFixImagineAssets) || manuallyFixing
-
- onFixSuggested: autoFix()
- onDelayedFixSuggested: assetFixerFileSystemDelayTimer.restart()
- onReloadSuggested: reloadAssets()
-
- property bool manuallyFixing: false
-
- function reloadAssets() {
- console.log(brief, "Reloading assets...")
- // Clear the model, otherwise ListView will keep the old items around
- // with the old assets, even after clearing the pixmap cache
- listView.resettingModel = true
- listView.model = null
- window.Imagine.path = ""
- assetReloadNextFrameTimer.start()
- }
-
- function autoFix() {
- // This is a bit of a hack, but I can't think of a nice way to solve it.
- // The problem is that shouldWatch becomes true, causing startWatching() to be called.
- // If a fix is suggested as a result of that, this function is called.
- // However, the shouldFix binding hasn't been updated yet, so even though shouldWatch
- // and settings.autoFixImagineAssets are both true (the properties that make up its binding),
- // the if check below fails. So, we check for that case with effectiveShouldFix.
- var effectiveShouldFix = shouldWatch && settings.autoFixImagineAssets;
- if (shouldWatch && effectiveShouldFix && assetDirectory.length > 0) {
- fixEmUp();
- }
- }
-
- function manualFix() {
- fixEmUp(true);
- }
-
- function fixEmUp(manually) {
- assetFixer.manuallyFixing = !!manually
-
- // Disable image caching if it hasn't already been done.
- assetFixer.clearImageCache()
-
- busyIndicatorRow.visible = true
- assetFixerAnimationDelayTimer.start()
- }
- }
-
- // The controls' assets don't always "reload" if the path is cleared and then set in the same frame,
- // so we delay the setting to the next frame.
- Timer {
- id: assetReloadNextFrameTimer
- interval: 0
- onTriggered: {
- window.Imagine.path = Qt.binding(function() {
- return settings.useCustomImaginePath && settings.imaginePath.length > 0 ? settings.imaginePath : undefined
- })
-
- infoToolTip.text = "Reloaded assets"
- infoToolTip.timeout = 1500
- infoToolTip.open()
-
- listView.model = controlFolderListModel
- listView.resettingModel = false
-
- console.log(brief, "... reloaded assets.")
- }
- }
-
- // When exporting or deleting a large amount of assets (not uncommon),
- // the filesystem watcher seems to emit directoryChanged() every second or so,
- // so rather than process hundreds of assets every time we get notified, delay
- // it until we haven't been notified for a while.
- Timer {
- id: assetFixerFileSystemDelayTimer
- interval: 2000
- onRunningChanged: {
- if (running) {
- infoToolTip.text = "Assets changed on disk - reloading in 2 seconds if no further changes are detected"
- infoToolTip.timeout = 2000
- infoToolTip.open()
- }
- }
- onTriggered: assetFixer.autoFix()
- }
-
- // Gives the BusyIndicator animation a chance to start.
- Timer {
- id: assetFixerAnimationDelayTimer
- interval: 100
- onTriggered: {
- assetFixer.fixAssets()
- busyIndicatorRow.visible = false
- assetFixer.manuallyFixing = false
- }
- }
-
- // Gives the UI a chance to render before the initial fixup.
- Timer {
- id: initialUiRenderDelayTimer
- interval: 300
- running: true
- onTriggered: hasRun = true
-
- property bool hasRun: false
- }
-
- function getControlElements(control) {
- var props = [];
- for (var p in control) {
- if (p !== "component" && typeof control[p] === 'object')
- props.push(p);
- }
- return props;
- }
-
- Pane {
- id: contentPane
- anchors.fill: parent
-
- Imagine.path: settings.useCustomImaginePath && settings.imaginePath.length > 0 ? settings.imaginePath : undefined
-
- palette.window: effectiveColor(paletteSettings.window)
- palette.windowText: effectiveColor(paletteSettings.windowText)
- palette.base: effectiveColor(paletteSettings.base)
- palette.text: effectiveColor(paletteSettings.text)
- palette.button: effectiveColor(paletteSettings.button)
- palette.buttonText: effectiveColor(paletteSettings.buttonText)
- palette.brightText: effectiveColor(paletteSettings.brightText)
- palette.toolTipBase: effectiveColor(paletteSettings.toolTipBase)
- palette.toolTipText: effectiveColor(paletteSettings.toolTipText)
- palette.light: effectiveColor(paletteSettings.light)
- palette.midlight: effectiveColor(paletteSettings.midlight)
- palette.dark: effectiveColor(paletteSettings.dark)
- palette.mid: effectiveColor(paletteSettings.mid)
- palette.shadow: effectiveColor(paletteSettings.shadow)
- palette.highlight: effectiveColor(paletteSettings.highlight)
- palette.highlightedText: effectiveColor(paletteSettings.highlightedText)
- palette.link: effectiveColor(paletteSettings.link)
-
- function effectiveColor(paletteColorString) {
- return paletteSettings.useCustomPalette && paletteColorString.length > 0 ? paletteColorString : undefined
- }
-
- FolderListModel {
- id: controlFolderListModel
- folder: "qrc:/controls"
- showDirs: false
- nameFilters: searchTextField.text.length > 0 ? ["*" + searchTextField.text + "*.qml"] : []
- caseSensitive: false
- }
-
- ListView {
- id: listView
- anchors.fill: parent
- spacing: 30
- visible: !busyIndicatorRow.visible && !resettingModel
-
- property bool resettingModel: false
-
- ScrollBar.vertical: ScrollBar {
- parent: contentPane
- anchors.top: parent.top
- anchors.right: parent.right
- anchors.bottom: parent.bottom
- }
-
- model: controlFolderListModel
- delegate: ColumnLayout {
- id: rootDelegate
- width: parent.width
-
- MenuSeparator {
- Layout.fillWidth: true
- visible: index !== 0
- }
-
- Label {
- text: customControlName.length === 0 ? model.fileBaseName : customControlName
- font.pixelSize: Qt.application.font.pixelSize * 2
- }
-
- readonly property var controlName: model.fileBaseName
- readonly property var controlMetaObject: controlMetaObjectLoader.item
- readonly property string customControlName: controlMetaObject && controlMetaObject.hasOwnProperty("customControlName")
- ? controlMetaObject.customControlName : ""
- readonly property var supportedStates: rootDelegate.controlMetaObject.supportedStates
- readonly property int maxStateCombinations: {
- var largest = 0;
- for (var i = 0; i < supportedStates.length; ++i) {
- var combinations = supportedStates[i];
- if (combinations.length > largest)
- largest = combinations.length;
- }
- return largest;
- }
-
- Loader {
- id: controlMetaObjectLoader
- source: "qrc" + model.filePath
- }
-
- Flow {
- spacing: 10
-
- Layout.fillWidth: true
-
- Repeater {
- id: stateRepeater
- model: rootDelegate.supportedStates
-
- ColumnLayout {
- id: labelWithDelegatesColumn
- spacing: 4
-
- readonly property var states: modelData
- readonly property string statesAsString: states.join("\n")
-
- Label {
- text: statesAsString.length > 0 ? statesAsString : "normal"
-
- // 4 is the most states for any element (Button)
- Layout.preferredHeight: (fontMetrics.lineSpacing) * (rootDelegate.maxStateCombinations + 1)
- }
-
- ControlContainer {
- id: controlContainer
- objectName: controlName + "ControlContainer"
- controlMetaObject: rootDelegate.controlMetaObject
- states: labelWithDelegatesColumn.states
-
- Layout.alignment: Qt.AlignHCenter
- }
- }
- }
- }
-
- ExampleContainer {
- id: exampleContainer
- controlMetaObject: rootDelegate.controlMetaObject
- visible: !!controlMetaObject.exampleComponent
-
- Layout.alignment: Qt.AlignHCenter
- Layout.topMargin: visible ? 14 : 0
- Layout.fillWidth: true
- Layout.preferredHeight: visible ? implicitHeight : 0
- }
- }
- }
- }
-
- RowLayout {
- id: busyIndicatorRow
- anchors.centerIn: parent
- visible: false
-
- BusyIndicator {
- id: busyIndicator
- running: visible
- }
-
- Label {
- text: qsTr("Fixing assets...")
- font.pixelSize: Qt.application.font.pixelSize * 2
- }
- }
-
- ToolTip {
- id: infoToolTip
- x: (parent.width - width) / 2
- y: parent.height - height - 40
- parent: window.contentItem
- }
-}
-
diff --git a/tests/manual/viewinqwidget/main.cpp b/tests/manual/viewinqwidget/main.cpp
deleted file mode 100644
index 80cbb415..00000000
--- a/tests/manual/viewinqwidget/main.cpp
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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 <QApplication>
-#include <QHBoxLayout>
-#include <QVBoxLayout>
-#include <QDebug>
-#include <QDesktopWidget>
-#include <QDir>
-#include <QGroupBox>
-#include <QQmlApplicationEngine>
-#include <QQmlError>
-#include <QQuickView>
-#include <QQuickWidget>
-
-int main(int argc, char *argv[])
-{
- QApplication app(argc, argv);
-
- QWidget widget;
- widget.setWindowTitle(QT_VERSION_STR);
-
- QHBoxLayout *hLayout = new QHBoxLayout(&widget);
- QGroupBox *groupBox = new QGroupBox("QuickWidget", &widget);
- QVBoxLayout *vLayout = new QVBoxLayout(groupBox);
- QQuickWidget *quickWidget = new QQuickWidget(groupBox);
- quickWidget->setMinimumSize(360, 520);
- vLayout->addWidget(quickWidget);
- quickWidget->setResizeMode(QQuickWidget::SizeRootObjectToView);
- quickWidget->setSource(QUrl(QLatin1String("qrc:/main.qml")));
- if (quickWidget->status() == QQuickWidget::Error) {
- qWarning() << quickWidget->errors();
- return 1;
- }
- hLayout->addWidget(groupBox);
-
- const QString gallerySource =
- QDir::cleanPath(QLatin1String(SRCDIR"../../../examples/quickcontrols2/gallery/gallery.qml"));
- QQmlApplicationEngine engine(QUrl::fromLocalFile(gallerySource));
- QObject *root = engine.rootObjects().value(0, nullptr);
- if (!root || !root->isWindowType()) {
- qWarning() << "Load error" << gallerySource;
- return 1;
- }
- groupBox = new QGroupBox("QQuickView/createWindowContainer", &widget);
- vLayout = new QVBoxLayout(groupBox);
- QWidget *container = QWidget::createWindowContainer(qobject_cast<QWindow *>(root), groupBox);
- container->setMinimumSize(360, 520);
- vLayout->addWidget(container);
- hLayout->addWidget(groupBox);
-
- const QRect availableGeometry = QApplication::desktop()->availableGeometry(&widget);
- widget.move(availableGeometry.center() - QPoint(widget.sizeHint().width() / 2, widget.sizeHint().height() / 2));
-
- widget.show();
-
- return app.exec();
-}
diff --git a/tests/manual/viewinqwidget/main.qml b/tests/manual/viewinqwidget/main.qml
deleted file mode 100644
index f383f022..00000000
--- a/tests/manual/viewinqwidget/main.qml
+++ /dev/null
@@ -1,49 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 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$
-**
-****************************************************************************/
-
-import QtQuick 2.12
-import QtQuick.Controls 2.12
-
-Item {
- visible: true
- width: 360
- height: 520
-
- ComboBox {
- model: ["First", "Second", "Third"]
- anchors.centerIn: parent
- }
-}
diff --git a/tests/manual/viewinqwidget/viewinqwidget.pro b/tests/manual/viewinqwidget/viewinqwidget.pro
deleted file mode 100644
index 649829d4..00000000
--- a/tests/manual/viewinqwidget/viewinqwidget.pro
+++ /dev/null
@@ -1,6 +0,0 @@
-QT += qml quick widgets quickwidgets
-TARGET = viewinqwidget
-SOURCES += $$PWD/main.cpp
-OTHER_FILES += main.qml
-RESOURCES += viewinqwidget.qrc
-DEFINES += SRCDIR=\\\"$$PWD/\\\"
diff --git a/tests/manual/viewinqwidget/viewinqwidget.qrc b/tests/manual/viewinqwidget/viewinqwidget.qrc
deleted file mode 100644
index 5f6483ac..00000000
--- a/tests/manual/viewinqwidget/viewinqwidget.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-<RCC>
- <qresource prefix="/">
- <file>main.qml</file>
- </qresource>
-</RCC>
diff --git a/tests/tests.pro b/tests/tests.pro
deleted file mode 100644
index e98339ef..00000000
--- a/tests/tests.pro
+++ /dev/null
@@ -1,4 +0,0 @@
-TEMPLATE = subdirs
-SUBDIRS += \
- auto \
- benchmarks